@@ -4,29 +4,37 @@ import { useState } from "react";
4
4
import { HiPhone } from "react-icons/hi" ;
5
5
import { Button , Dialog , DivPx , Input } from "../../core" ;
6
6
import { GalleryInput1 , GalleryInput2 } from "../../gallery" ;
7
- import { Utils } from "../../old-docs/utils/utils" ;
7
+ import { docsMetaParameters } from "../utils/parameter" ;
8
+ import { docsMetaArgTypes } from "../utils/arg-type" ;
8
9
9
10
const meta : Meta = {
10
11
title : "Components/Input" ,
11
12
component : Input ,
12
- argTypes : {
13
- type : Utils . arg ( "string" , "Visual" ) ,
14
- style : Utils . arg ( Input . styles , "Visual" ) ,
15
- size : Utils . arg ( Input . sizes , "Visual" ) ,
16
- icon : Utils . arg ( null , "Visual" ) ,
17
- list : Utils . arg ( null , "Visual" ) ,
18
- defaultValue : Utils . arg ( null , "State" ) ,
19
- value : Utils . arg ( null , "State" ) ,
20
- setValue : Utils . arg ( null , "State" ) ,
21
- onChange : Utils . arg ( null , "State" ) ,
22
- } ,
13
+ parameters : docsMetaParameters ( {
14
+ gallery : (
15
+ < >
16
+ < GalleryInput1 key = "1" />
17
+ < GalleryInput2 key = "2" />
18
+ </ >
19
+ ) ,
20
+ } ) ,
21
+ argTypes : docsMetaArgTypes ( {
22
+ Visual : {
23
+ type : false ,
24
+ style : Input . styles ,
25
+ size : Input . sizes ,
26
+ icon : false ,
27
+ list : false ,
28
+ } ,
29
+ State : {
30
+ defaultValue : false ,
31
+ value : false ,
32
+ setValue : false ,
33
+ onChange : false ,
34
+ } ,
35
+ } ) ,
23
36
} ;
24
37
25
- Utils . page . component ( meta , {
26
- primary : "sticky" ,
27
- shots : [ < GalleryInput1 key = "1" /> , < GalleryInput2 key = "2" /> ] ,
28
- } ) ;
29
-
30
38
export default meta ;
31
39
32
40
export const Primary : StoryObj < typeof Input > = {
0 commit comments