@sakura-ui/sakura-ui 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/package.json +4 -4
  2. package/packages/config/package.json +1 -1
  3. package/packages/config/src/index.ts +165 -10
  4. package/packages/core/package.json +1 -1
  5. package/packages/core/src/components/Button.tsx +3 -4
  6. package/packages/core/src/components/Heading.tsx +18 -16
  7. package/packages/core/src/components/Icon.tsx +1 -1
  8. package/packages/core/src/components/IconButton.tsx +3 -4
  9. package/packages/core/src/components/Link.tsx +1 -1
  10. package/packages/forms/dist/components/Checkbox.d.ts +1 -1
  11. package/packages/forms/dist/components/Checkbox.d.ts.map +1 -1
  12. package/packages/forms/dist/components/FieldsetControl.d.ts +2 -2
  13. package/packages/forms/dist/components/FieldsetControl.d.ts.map +1 -1
  14. package/packages/forms/dist/components/Input.d.ts +5 -0
  15. package/packages/forms/dist/components/Input.d.ts.map +1 -0
  16. package/packages/forms/dist/components/LabelControl.d.ts +2 -2
  17. package/packages/forms/dist/components/LabelControl.d.ts.map +1 -1
  18. package/packages/forms/dist/components/Radio.d.ts +2 -2
  19. package/packages/forms/dist/components/Radio.d.ts.map +1 -1
  20. package/packages/forms/dist/components/Select.d.ts +2 -2
  21. package/packages/forms/dist/components/Select.d.ts.map +1 -1
  22. package/packages/forms/dist/components/Textarea.d.ts +2 -2
  23. package/packages/forms/dist/components/Textarea.d.ts.map +1 -1
  24. package/packages/forms/dist/components/controlled/CheckboxGroup.d.ts +2 -2
  25. package/packages/forms/dist/components/controlled/CheckboxGroup.d.ts.map +1 -1
  26. package/packages/forms/dist/components/controlled/InputControl.d.ts +10 -0
  27. package/packages/forms/dist/components/controlled/InputControl.d.ts.map +1 -0
  28. package/packages/forms/dist/components/controlled/RadioGroup.d.ts +2 -2
  29. package/packages/forms/dist/components/controlled/RadioGroup.d.ts.map +1 -1
  30. package/packages/forms/dist/components/controlled/SelectControl.d.ts +2 -2
  31. package/packages/forms/dist/components/controlled/SelectControl.d.ts.map +1 -1
  32. package/packages/forms/dist/components/controlled/TextareaControl.d.ts +2 -2
  33. package/packages/forms/dist/components/controlled/TextareaControl.d.ts.map +1 -1
  34. package/packages/forms/dist/components/controlled/index.d.ts +1 -1
  35. package/packages/forms/dist/components/controlled/index.d.ts.map +1 -1
  36. package/packages/forms/dist/components/index.d.ts +1 -1
  37. package/packages/forms/dist/components/index.d.ts.map +1 -1
  38. package/packages/forms/dist/index.cjs.js +13 -13
  39. package/packages/forms/dist/index.cjs.js.map +1 -1
  40. package/packages/forms/dist/index.d.ts +2 -2
  41. package/packages/forms/dist/index.d.ts.map +1 -1
  42. package/packages/forms/dist/index.es.js +94 -90
  43. package/packages/forms/dist/index.es.js.map +1 -1
  44. package/packages/forms/package.json +1 -1
  45. package/packages/forms/src/components/Checkbox.tsx +2 -2
  46. package/packages/forms/src/components/FieldsetControl.tsx +7 -6
  47. package/packages/forms/src/components/{Text.tsx → Input.tsx} +3 -3
  48. package/packages/forms/src/components/LabelControl.tsx +6 -8
  49. package/packages/forms/src/components/Radio.tsx +3 -3
  50. package/packages/forms/src/components/Select.tsx +2 -2
  51. package/packages/forms/src/components/Textarea.tsx +2 -3
  52. package/packages/forms/src/components/controlled/CheckboxGroup.tsx +2 -2
  53. package/packages/forms/src/components/controlled/InputControl.tsx +39 -0
  54. package/packages/forms/src/components/controlled/RadioGroup.tsx +2 -2
  55. package/packages/forms/src/components/controlled/SelectControl.tsx +2 -3
  56. package/packages/forms/src/components/controlled/TextareaControl.tsx +2 -3
  57. package/packages/forms/src/components/controlled/index.ts +1 -1
  58. package/packages/forms/src/components/index.ts +1 -1
  59. package/packages/forms/src/index.ts +2 -2
  60. package/packages/forms/tests/{Text.test.tsx → Input.test.tsx} +7 -7
  61. package/packages/forms/tests/LabelControl.test.tsx +7 -7
  62. package/packages/forms/dist/components/Text.d.ts +0 -5
  63. package/packages/forms/dist/components/Text.d.ts.map +0 -1
  64. package/packages/forms/dist/components/controlled/TextControl.d.ts +0 -10
  65. package/packages/forms/dist/components/controlled/TextControl.d.ts.map +0 -1
  66. package/packages/forms/src/components/controlled/TextControl.tsx +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/sakura-ui",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "keywords": [],
5
5
  "author": "glassonion1",
6
6
  "homepage": "https://github.com/glassonion1/sakura-ui",
@@ -13,9 +13,9 @@
13
13
  "packages"
14
14
  ],
15
15
  "dependencies": {
16
- "@sakura-ui/config": "0.0.12",
17
- "@sakura-ui/core": "0.0.5",
18
- "@sakura-ui/forms": "0.0.7"
16
+ "@sakura-ui/config": "0.1.1",
17
+ "@sakura-ui/core": "0.1.1",
18
+ "@sakura-ui/forms": "0.1.1"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "^18.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/config",
3
- "version": "0.0.12",
3
+ "version": "0.1.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -14,16 +14,171 @@ const sakuraPlugin = plugin(
14
14
  theme: {
15
15
  extend: {
16
16
  fontSize: {
17
- h1: ['42px', '42px'],
18
- h2: ['32px', '32px'],
19
- h3: ['26px', '26px'],
20
- h4: ['22px', '22px'],
21
- h5: ['20px', '20px'],
22
- h6: ['18px', '18px'],
23
- base: ['16px', '28px'],
24
- code: ['16px', '24px'],
25
- sm: ['14px', '24px'],
26
- xs: ['12px', '20px']
17
+ '6xl': [
18
+ '57px',
19
+ {
20
+ lineHeight: '1.4',
21
+ letterSpacing: '0.04em',
22
+ fontWeight: '400'
23
+ }
24
+ ],
25
+ '5xl': [
26
+ '45px',
27
+ {
28
+ lineHeight: '1.4',
29
+ letterSpacing: '0.04em',
30
+ fontWeight: '400'
31
+ }
32
+ ],
33
+ // h1
34
+ '4xl': [
35
+ '36px',
36
+ {
37
+ lineHeight: '1.4',
38
+ letterSpacing: '0.04em',
39
+ fontWeight: '400'
40
+ }
41
+ ],
42
+ '4xlm': [
43
+ '32px',
44
+ {
45
+ lineHeight: '1.5',
46
+ letterSpacing: '0.04em',
47
+ fontWeight: '500'
48
+ }
49
+ ],
50
+ // h2
51
+ '3xl': [
52
+ '32px',
53
+ {
54
+ lineHeight: '1.5',
55
+ letterSpacing: '0.04em',
56
+ fontWeight: '400'
57
+ }
58
+ ],
59
+ '3xlm': [
60
+ '28px',
61
+ {
62
+ lineHeight: '1.5',
63
+ letterSpacing: '0.04em',
64
+ fontWeight: '500'
65
+ }
66
+ ],
67
+ // h3
68
+ '2xl': [
69
+ '28px',
70
+ {
71
+ lineHeight: '1.5',
72
+ letterSpacing: '0.04em',
73
+ fontWeight: '400'
74
+ }
75
+ ],
76
+ '2xlm': [
77
+ '24px',
78
+ {
79
+ lineHeight: '1.5',
80
+ letterSpacing: '0.04em',
81
+ fontWeight: '500'
82
+ }
83
+ ],
84
+ // h4
85
+ xl: [
86
+ '24px',
87
+ {
88
+ lineHeight: '1.5',
89
+ letterSpacing: '0.04em',
90
+ fontWeight: '400'
91
+ }
92
+ ],
93
+ xlm: [
94
+ '20px',
95
+ {
96
+ lineHeight: '1.5',
97
+ letterSpacing: '0.04em',
98
+ fontWeight: '500'
99
+ }
100
+ ],
101
+ // h5 h6
102
+ lg: [
103
+ '20px',
104
+ {
105
+ lineHeight: '1.5',
106
+ letterSpacing: '0.04em',
107
+ fontWeight: '400'
108
+ }
109
+ ],
110
+ lgm: [
111
+ '16px',
112
+ {
113
+ lineHeight: '1.5',
114
+ letterSpacing: '0.04em',
115
+ fontWeight: '500'
116
+ }
117
+ ],
118
+ base: [
119
+ '16px',
120
+ {
121
+ lineHeight: '1.7',
122
+ letterSpacing: '0.04em',
123
+ fontWeight: '400'
124
+ }
125
+ ],
126
+ small: [
127
+ '14px',
128
+ {
129
+ lineHeight: '1.7',
130
+ letterSpacing: '0.04em',
131
+ fontWeight: '400'
132
+ }
133
+ ],
134
+ label: [
135
+ '14px',
136
+ {
137
+ lineHeight: '1.5',
138
+ letterSpacing: '0.04em',
139
+ fontWeight: '500'
140
+ }
141
+ ],
142
+ labelSmall: [
143
+ '12px',
144
+ {
145
+ lineHeight: '1.5',
146
+ letterSpacing: '0.04em',
147
+ fontWeight: '500'
148
+ }
149
+ ],
150
+ xs: [
151
+ '12px',
152
+ {
153
+ lineHeight: '1.7',
154
+ letterSpacing: '0.04em',
155
+ fontWeight: '400'
156
+ }
157
+ ],
158
+ xxs: [
159
+ '10px',
160
+ {
161
+ lineHeight: '1.7',
162
+ letterSpacing: '0.04em',
163
+ fontWeight: '400'
164
+ }
165
+ ],
166
+ button: [
167
+ '16px',
168
+ {
169
+ lineHeight: '1.5',
170
+ letterSpacing: '0.04em',
171
+ fontWeight: '700'
172
+ }
173
+ ],
174
+ code: [
175
+ '16px',
176
+ {
177
+ lineHeight: '1.7',
178
+ letterSpacing: '0.04em',
179
+ fontWeight: '400'
180
+ }
181
+ ]
27
182
  },
28
183
  colors: {
29
184
  white: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/core",
3
- "version": "0.0.5",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,10 +16,9 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
16
16
  const style = `
17
17
  inline-block
18
18
  p-4
19
- text-base
20
- font-bold
21
- rounded-lg
19
+ text-button
22
20
  text-${align}
21
+ rounded-lg
23
22
  cursor-pointer
24
23
  whitespace-nowrap
25
24
  border
@@ -63,4 +62,4 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
63
62
  </button>
64
63
  )
65
64
  }
66
- )
65
+ ) as React.ElementType
@@ -3,21 +3,18 @@ import { cx } from '../utils/class'
3
3
 
4
4
  export interface HeadingProps extends React.ComponentProps<'h1'> {}
5
5
 
6
- const common = `
7
- font-bold
8
- `
9
-
10
6
  export const H1 = (props: HeadingProps) => {
11
7
  const { className, children, ...restProps } = props
12
8
 
13
9
  const style = `
14
- text-h1
10
+ text-4xlm
11
+ sm:text-4xl
15
12
  mt-16
16
13
  mb-6
17
14
  `
18
15
 
19
16
  return (
20
- <h1 className={cx(common, style, className)} {...restProps}>
17
+ <h1 className={cx(style, className)} {...restProps}>
21
18
  {children}
22
19
  </h1>
23
20
  )
@@ -28,13 +25,14 @@ export const H2 = (props: HeadingProps) => {
28
25
  const { className, children, ...restProps } = props
29
26
 
30
27
  const style = `
31
- text-h2
28
+ text-3xlm
29
+ sm:text-3xl
32
30
  mt-16
33
31
  mb-6
34
32
  `
35
33
 
36
34
  return (
37
- <h2 className={cx(common, style, className)} {...restProps}>
35
+ <h2 className={cx(style, className)} {...restProps}>
38
36
  {children}
39
37
  </h2>
40
38
  )
@@ -45,13 +43,14 @@ export const H3 = (props: HeadingProps) => {
45
43
  const { className, children, ...restProps } = props
46
44
 
47
45
  const style = `
48
- text-h3
46
+ text-2xlm
47
+ sm:text-2xl
49
48
  mt-10
50
49
  mb-6
51
50
  `
52
51
 
53
52
  return (
54
- <h3 className={cx(common, style, className)} {...restProps}>
53
+ <h3 className={cx(style, className)} {...restProps}>
55
54
  {children}
56
55
  </h3>
57
56
  )
@@ -62,13 +61,14 @@ export const H4 = (props: HeadingProps) => {
62
61
  const { className, children, ...restProps } = props
63
62
 
64
63
  const style = `
65
- text-h4
64
+ text-xlm
65
+ sm:text-xl
66
66
  mt-10
67
67
  mb-4
68
68
  `
69
69
 
70
70
  return (
71
- <h4 className={cx(common, style, className)} {...restProps}>
71
+ <h4 className={cx(style, className)} {...restProps}>
72
72
  {children}
73
73
  </h4>
74
74
  )
@@ -79,13 +79,14 @@ export const H5 = (props: HeadingProps) => {
79
79
  const { className, children, ...restProps } = props
80
80
 
81
81
  const style = `
82
- text-h5
82
+ text-lgm
83
+ sm:text-lg
83
84
  mt-10
84
85
  mb-4
85
86
  `
86
87
 
87
88
  return (
88
- <h5 className={cx(common, style, className)} {...restProps}>
89
+ <h5 className={cx(style, className)} {...restProps}>
89
90
  {children}
90
91
  </h5>
91
92
  )
@@ -96,13 +97,14 @@ export const H6 = (props: HeadingProps) => {
96
97
  const { className, children, ...restProps } = props
97
98
 
98
99
  const style = `
99
- text-h6
100
+ text-lgm
101
+ sm:text-lg
100
102
  mt-6
101
103
  mb-4
102
104
  `
103
105
 
104
106
  return (
105
- <h6 className={cx(common, style, className)} {...restProps}>
107
+ <h6 className={cx(style, className)} {...restProps}>
106
108
  {children}
107
109
  </h6>
108
110
  )
@@ -24,4 +24,4 @@ export const Icon = React.forwardRef<HTMLElement, IconProps>((props, ref) => {
24
24
  {icon}
25
25
  </span>
26
26
  )
27
- })
27
+ }) as React.ElementType
@@ -19,10 +19,9 @@ export const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
19
19
  const style = `
20
20
  inline-block
21
21
  p-4
22
- text-base
23
- font-bold
24
- rounded-lg
22
+ text-button
25
23
  text-${align}
24
+ rounded-lg
26
25
  cursor-pointer
27
26
  whitespace-nowrap
28
27
  border
@@ -78,4 +77,4 @@ export const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
78
77
  </button>
79
78
  )
80
79
  }
81
- )
80
+ ) as React.ElementType
@@ -73,4 +73,4 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
73
73
  </a>
74
74
  )
75
75
  }
76
- )
76
+ ) as React.ElementType
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export interface CheckboxProps extends React.ComponentProps<'input'> {
3
3
  }
4
- export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
4
+ export declare const Checkbox: React.ElementType<any>;
5
5
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;CAAG;AAEvE,eAAO,MAAM,QAAQ,qGA8DpB,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;CAAG;AAEvE,eAAO,MAAM,QAAQ,wBA8DC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface FieldsetControlProps extends React.ComponentPropsWithoutRef<'fieldset'> {
2
+ export interface FieldsetControlProps extends React.ComponentProps<'fieldset'> {
3
3
  labelText: string;
4
4
  helperText?: string;
5
5
  errorMessage?: string;
@@ -7,5 +7,5 @@ export interface FieldsetControlProps extends React.ComponentPropsWithoutRef<'fi
7
7
  isRequired?: boolean;
8
8
  direction?: 'flex-col' | 'flex-row';
9
9
  }
10
- export declare const FieldsetControl: React.ForwardRefExoticComponent<FieldsetControlProps & React.RefAttributes<HTMLFieldSetElement>>;
10
+ export declare const FieldsetControl: React.ElementType<any>;
11
11
  //# sourceMappingURL=FieldsetControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldsetControl.d.ts","sourceRoot":"","sources":["../../src/components/FieldsetControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;CACpC;AAED,eAAO,MAAM,eAAe,kGAuD1B,CAAA"}
1
+ {"version":3,"file":"FieldsetControl.d.ts","sourceRoot":"","sources":["../../src/components/FieldsetControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC;IAC5E,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;CACpC;AAED,eAAO,MAAM,eAAe,wBAyDL,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface InputProps extends React.ComponentProps<'input'> {
3
+ }
4
+ export declare const Input: React.ElementType<any>;
5
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;CAAG;AAEpE,eAAO,MAAM,KAAK,wBAoCI,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export interface LabelControlProps extends React.ComponentPropsWithoutRef<'label'> {
2
+ export interface LabelControlProps extends React.ComponentProps<'label'> {
3
3
  labelText: string;
4
4
  helperText?: string;
5
5
  errorMessage?: string;
6
6
  isInvalid?: boolean;
7
7
  isRequired?: boolean;
8
8
  }
9
- export declare const LabelControl: React.ForwardRefExoticComponent<LabelControlProps & React.RefAttributes<HTMLLabelElement>>;
9
+ export declare const LabelControl: React.ElementType<any>;
10
10
  //# sourceMappingURL=LabelControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelControl.d.ts","sourceRoot":"","sources":["../../src/components/LabelControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,YAAY,4FAsDvB,CAAA"}
1
+ {"version":3,"file":"LabelControl.d.ts","sourceRoot":"","sources":["../../src/components/LabelControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,YAAY,wBAqDF,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface Props extends React.ComponentPropsWithoutRef<'input'> {
2
+ export interface Props extends React.ComponentProps<'input'> {
3
3
  }
4
- export declare const Radio: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
4
+ export declare const Radio: React.ElementType<any>;
5
5
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,KAAM,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC;CAAG;AAEzE,eAAO,MAAM,KAAK,gFAsDhB,CAAA"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,KAAM,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;CAAG;AAE/D,eAAO,MAAM,KAAK,wBAsDK,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface SelectProps extends React.ComponentPropsWithoutRef<'select'> {
2
+ export interface SelectProps extends React.ComponentProps<'select'> {
3
3
  }
4
- export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
4
+ export declare const Select: React.ElementType<any>;
5
5
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;CAAG;AAEhF,eAAO,MAAM,MAAM,uFA0DlB,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;CAAG;AAEtE,eAAO,MAAM,MAAM,wBA0DG,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface TextareaProps extends React.ComponentPropsWithoutRef<'textarea'> {
2
+ export interface TextareaProps extends React.ComponentProps<'textarea'> {
3
3
  }
4
- export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export declare const Textarea: React.ElementType<any>;
5
5
  //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC;CAAG;AAEvD,eAAO,MAAM,QAAQ,2FAsCpB,CAAA"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC;CAAG;AAE1E,eAAO,MAAM,QAAQ,wBAsCC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputItem } from './InputItem';
3
- export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
3
+ export interface CheckboxGroupProps extends Omit<React.ComponentProps<'fieldset'>, 'onChange'> {
4
4
  items: InputItem[];
5
5
  onChange: React.ChangeEventHandler<HTMLInputElement>;
6
6
  labelText: string;
@@ -9,5 +9,5 @@ export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithoutRef<
9
9
  isInvalid?: boolean;
10
10
  isRequired?: boolean;
11
11
  }
12
- export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
12
+ export declare const CheckboxGroup: React.ElementType<any>;
13
13
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACpE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,gGAoCxB,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAC1D,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,wBAoCH,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface InputControlProps extends React.ComponentProps<'input'> {
3
+ labelText: string;
4
+ helperText?: string;
5
+ errorMessage?: string;
6
+ isInvalid?: boolean;
7
+ isRequired?: boolean;
8
+ }
9
+ export declare const InputControl: React.ElementType<any>;
10
+ //# sourceMappingURL=InputControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputControl.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/InputControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,YAAY,wBA0BF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputItem } from './InputItem';
3
- export interface RadioGroupProps extends Omit<React.ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
3
+ export interface RadioGroupProps extends Omit<React.ComponentProps<'fieldset'>, 'onChange'> {
4
4
  items: InputItem[];
5
5
  onChange: React.ChangeEventHandler<HTMLInputElement>;
6
6
  labelText: string;
@@ -10,5 +10,5 @@ export interface RadioGroupProps extends Omit<React.ComponentPropsWithoutRef<'fi
10
10
  isRequired?: boolean;
11
11
  defaultValue?: string;
12
12
  }
13
- export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
13
+ export declare const RadioGroup: React.ElementType<any>;
14
14
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACpE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,UAAU,6FA0CrB,CAAA"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAC1D,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,UAAU,wBA0CA,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export interface SelectControlProps extends React.ComponentPropsWithoutRef<'select'> {
2
+ export interface SelectControlProps extends React.ComponentProps<'select'> {
3
3
  labelText: string;
4
4
  helperText?: string;
5
5
  errorMessage?: string;
6
6
  isInvalid?: boolean;
7
7
  isRequired?: boolean;
8
8
  }
9
- export declare const SelectControl: React.ForwardRefExoticComponent<SelectControlProps & React.RefAttributes<HTMLSelectElement>>;
9
+ export declare const SelectControl: React.ElementType<any>;
10
10
  //# sourceMappingURL=SelectControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectControl.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/SelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IAChD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,8FA0BxB,CAAA"}
1
+ {"version":3,"file":"SelectControl.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/SelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,wBA0BH,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export interface TextareaControlProps extends React.ComponentPropsWithoutRef<'textarea'> {
2
+ export interface TextareaControlProps extends React.ComponentProps<'textarea'> {
3
3
  labelText: string;
4
4
  helperText?: string;
5
5
  errorMessage?: string;
6
6
  isInvalid?: boolean;
7
7
  isRequired?: boolean;
8
8
  }
9
- export declare const TextareaControl: React.ForwardRefExoticComponent<TextareaControlProps & React.RefAttributes<HTMLTextAreaElement>>;
9
+ export declare const TextareaControl: React.ElementType<any>;
10
10
  //# sourceMappingURL=TextareaControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaControl.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/TextareaControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,eAAe,kGA0B1B,CAAA"}
1
+ {"version":3,"file":"TextareaControl.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/TextareaControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC;IAC5E,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,eAAe,wBA0BL,CAAA"}
@@ -1,6 +1,6 @@
1
1
  export { CheckboxGroup } from './CheckboxGroup';
2
2
  export { RadioGroup } from './RadioGroup';
3
3
  export { SelectControl } from './SelectControl';
4
- export { TextControl } from './TextControl';
4
+ export { InputControl } from './InputControl';
5
5
  export { TextareaControl } from './TextareaControl';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/controlled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  export { Checkbox } from './Checkbox';
2
2
  export { Radio } from './Radio';
3
3
  export { Select } from './Select';
4
- export { Text } from './Text';
4
+ export { Input } from './Input';
5
5
  export { Textarea } from './Textarea';
6
6
  export { LabelControl } from './LabelControl';
7
7
  export { FieldsetControl } from './FieldsetControl';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}