@marigold/components 0.3.3 → 0.5.1

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 (232) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/index.d.ts +362 -32
  3. package/dist/index.js +1422 -5
  4. package/dist/index.mjs +1374 -0
  5. package/package.json +30 -11
  6. package/dist/ActionGroup/ActionGroup.d.ts +0 -8
  7. package/dist/ActionGroup/ActionGroup.stories.d.ts +0 -5
  8. package/dist/ActionGroup/index.d.ts +0 -1
  9. package/dist/Alert/Alert.d.ts +0 -27
  10. package/dist/Alert/Alert.stories.d.ts +0 -5
  11. package/dist/Alert/index.d.ts +0 -1
  12. package/dist/Badge/Badge.d.ts +0 -13
  13. package/dist/Badge/Badge.stories.d.ts +0 -5
  14. package/dist/Badge/index.d.ts +0 -1
  15. package/dist/Box.d.ts +0 -2
  16. package/dist/Button/Button.d.ts +0 -9
  17. package/dist/Button/Button.stories.d.ts +0 -5
  18. package/dist/Button/index.d.ts +0 -1
  19. package/dist/Card/Card.d.ts +0 -14
  20. package/dist/Card/Card.stories.d.ts +0 -5
  21. package/dist/Card/index.d.ts +0 -1
  22. package/dist/Checkbox/Checkbox.d.ts +0 -20
  23. package/dist/Checkbox/Checkbox.stories.d.ts +0 -5
  24. package/dist/Checkbox/CheckboxIcons.d.ts +0 -9
  25. package/dist/Checkbox/index.d.ts +0 -1
  26. package/dist/Column/Column.d.ts +0 -8
  27. package/dist/Column/Column.stories.d.ts +0 -5
  28. package/dist/Column/index.d.ts +0 -1
  29. package/dist/Columns/Columns.d.ts +0 -10
  30. package/dist/Columns/Columns.stories.d.ts +0 -5
  31. package/dist/Columns/index.d.ts +0 -1
  32. package/dist/Container/Container.d.ts +0 -6
  33. package/dist/Container/Container.stories.d.ts +0 -5
  34. package/dist/Container/index.d.ts +0 -1
  35. package/dist/Dialog/Dialog.d.ts +0 -17
  36. package/dist/Dialog/Dialog.stories.d.ts +0 -5
  37. package/dist/Dialog/ModalDialog.d.ts +0 -8
  38. package/dist/Dialog/index.d.ts +0 -1
  39. package/dist/Divider/Divider.d.ts +0 -11
  40. package/dist/Divider/Divider.stories.d.ts +0 -5
  41. package/dist/Divider/index.d.ts +0 -1
  42. package/dist/Field/Field.d.ts +0 -13
  43. package/dist/Field/Field.stories.d.ts +0 -5
  44. package/dist/Field/index.d.ts +0 -1
  45. package/dist/Image/Image.d.ts +0 -12
  46. package/dist/Image/Image.stories.d.ts +0 -5
  47. package/dist/Image/index.d.ts +0 -1
  48. package/dist/Inline/Inline.d.ts +0 -7
  49. package/dist/Inline/Inline.stories.d.ts +0 -5
  50. package/dist/Inline/index.d.ts +0 -1
  51. package/dist/Input/Input.d.ts +0 -11
  52. package/dist/Input/Input.stories.d.ts +0 -5
  53. package/dist/Input/index.d.ts +0 -1
  54. package/dist/Label/Label.d.ts +0 -19
  55. package/dist/Label/Label.stories.d.ts +0 -5
  56. package/dist/Label/index.d.ts +0 -1
  57. package/dist/Link/Link.d.ts +0 -10
  58. package/dist/Link/Link.stories.d.ts +0 -5
  59. package/dist/Link/index.d.ts +0 -1
  60. package/dist/Menu/Menu.d.ts +0 -15
  61. package/dist/Menu/Menu.stories.d.ts +0 -5
  62. package/dist/Menu/index.d.ts +0 -1
  63. package/dist/MenuItem/MenuItem.d.ts +0 -12
  64. package/dist/MenuItem/MenuItem.stories.d.ts +0 -5
  65. package/dist/MenuItem/index.d.ts +0 -1
  66. package/dist/Message/Message.d.ts +0 -12
  67. package/dist/Message/Message.stories.d.ts +0 -5
  68. package/dist/Message/index.d.ts +0 -1
  69. package/dist/Provider/MarigoldProvider.d.ts +0 -11
  70. package/dist/Provider/index.d.ts +0 -3
  71. package/dist/Radio/Radio.d.ts +0 -19
  72. package/dist/Radio/Radio.stories.d.ts +0 -5
  73. package/dist/Radio/RadioIcon.d.ts +0 -9
  74. package/dist/Radio/index.d.ts +0 -1
  75. package/dist/Select/ListBox.d.ts +0 -9
  76. package/dist/Select/ListBoxSection.d.ts +0 -9
  77. package/dist/Select/Option.d.ts +0 -9
  78. package/dist/Select/Popover.d.ts +0 -9
  79. package/dist/Select/Select.d.ts +0 -27
  80. package/dist/Select/Select.stories.d.ts +0 -5
  81. package/dist/Select/index.d.ts +0 -1
  82. package/dist/Slider/Slider.d.ts +0 -11
  83. package/dist/Slider/Slider.stories.d.ts +0 -5
  84. package/dist/Slider/index.d.ts +0 -1
  85. package/dist/Stack/Stack.d.ts +0 -7
  86. package/dist/Stack/Stack.stories.d.ts +0 -5
  87. package/dist/Stack/index.d.ts +0 -1
  88. package/dist/Text/Text.d.ts +0 -17
  89. package/dist/Text/Text.stories.d.ts +0 -5
  90. package/dist/Text/index.d.ts +0 -1
  91. package/dist/Textarea/Textarea.d.ts +0 -16
  92. package/dist/Textarea/Textarea.stories.d.ts +0 -5
  93. package/dist/Textarea/index.d.ts +0 -1
  94. package/dist/ValidationMessage/ValidationMessage.d.ts +0 -11
  95. package/dist/ValidationMessage/ValidationMessage.stories.d.ts +0 -5
  96. package/dist/ValidationMessage/index.d.ts +0 -1
  97. package/dist/VisuallyHidden/VisuallyHidden.d.ts +0 -1
  98. package/dist/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -5
  99. package/dist/VisuallyHidden/index.d.ts +0 -1
  100. package/dist/components.cjs.development.js +0 -1394
  101. package/dist/components.cjs.development.js.map +0 -1
  102. package/dist/components.cjs.production.min.js +0 -2
  103. package/dist/components.cjs.production.min.js.map +0 -1
  104. package/dist/components.esm.js +0 -1320
  105. package/dist/components.esm.js.map +0 -1
  106. package/dist/theme.d.ts +0 -23
  107. package/src/ActionGroup/ActionGroup.stories.tsx +0 -47
  108. package/src/ActionGroup/ActionGroup.test.tsx +0 -83
  109. package/src/ActionGroup/ActionGroup.tsx +0 -32
  110. package/src/ActionGroup/index.ts +0 -1
  111. package/src/Alert/Alert.stories.tsx +0 -32
  112. package/src/Alert/Alert.test.tsx +0 -82
  113. package/src/Alert/Alert.tsx +0 -52
  114. package/src/Alert/index.ts +0 -1
  115. package/src/Badge/Badge.stories.tsx +0 -38
  116. package/src/Badge/Badge.test.tsx +0 -65
  117. package/src/Badge/Badge.tsx +0 -37
  118. package/src/Badge/index.ts +0 -1
  119. package/src/Box.ts +0 -2
  120. package/src/Button/Button.stories.tsx +0 -57
  121. package/src/Button/Button.test.tsx +0 -149
  122. package/src/Button/Button.tsx +0 -64
  123. package/src/Button/index.ts +0 -1
  124. package/src/Card/Card.stories.tsx +0 -41
  125. package/src/Card/Card.test.tsx +0 -71
  126. package/src/Card/Card.tsx +0 -48
  127. package/src/Card/index.ts +0 -1
  128. package/src/Checkbox/Checkbox.stories.tsx +0 -78
  129. package/src/Checkbox/Checkbox.test.tsx +0 -166
  130. package/src/Checkbox/Checkbox.tsx +0 -101
  131. package/src/Checkbox/CheckboxIcons.tsx +0 -59
  132. package/src/Checkbox/index.ts +0 -1
  133. package/src/Column/Column.stories.tsx +0 -33
  134. package/src/Column/Column.test.tsx +0 -32
  135. package/src/Column/Column.tsx +0 -27
  136. package/src/Column/index.ts +0 -1
  137. package/src/Columns/Columns.stories.tsx +0 -75
  138. package/src/Columns/Columns.test.tsx +0 -113
  139. package/src/Columns/Columns.tsx +0 -69
  140. package/src/Columns/index.ts +0 -1
  141. package/src/Container/Container.stories.tsx +0 -14
  142. package/src/Container/Container.test.tsx +0 -26
  143. package/src/Container/Container.tsx +0 -13
  144. package/src/Container/index.ts +0 -1
  145. package/src/Dialog/Dialog.stories.tsx +0 -88
  146. package/src/Dialog/Dialog.test.tsx +0 -158
  147. package/src/Dialog/Dialog.tsx +0 -130
  148. package/src/Dialog/ModalDialog.tsx +0 -76
  149. package/src/Dialog/index.ts +0 -1
  150. package/src/Divider/Divider.stories.tsx +0 -30
  151. package/src/Divider/Divider.test.tsx +0 -72
  152. package/src/Divider/Divider.tsx +0 -33
  153. package/src/Divider/index.ts +0 -1
  154. package/src/Field/Field.stories.tsx +0 -110
  155. package/src/Field/Field.test.tsx +0 -130
  156. package/src/Field/Field.tsx +0 -56
  157. package/src/Field/index.ts +0 -1
  158. package/src/Image/Image.stories.tsx +0 -34
  159. package/src/Image/Image.test.tsx +0 -73
  160. package/src/Image/Image.tsx +0 -25
  161. package/src/Image/index.ts +0 -1
  162. package/src/Inline/Inline.stories.tsx +0 -39
  163. package/src/Inline/Inline.test.tsx +0 -99
  164. package/src/Inline/Inline.tsx +0 -38
  165. package/src/Inline/index.ts +0 -1
  166. package/src/Input/Input.stories.tsx +0 -54
  167. package/src/Input/Input.test.tsx +0 -74
  168. package/src/Input/Input.tsx +0 -25
  169. package/src/Input/index.ts +0 -1
  170. package/src/Label/Label.stories.tsx +0 -41
  171. package/src/Label/Label.test.tsx +0 -109
  172. package/src/Label/Label.tsx +0 -64
  173. package/src/Label/index.ts +0 -1
  174. package/src/Link/Link.stories.tsx +0 -35
  175. package/src/Link/Link.test.tsx +0 -97
  176. package/src/Link/Link.tsx +0 -43
  177. package/src/Link/index.ts +0 -1
  178. package/src/Menu/Menu.stories.tsx +0 -62
  179. package/src/Menu/Menu.test.tsx +0 -84
  180. package/src/Menu/Menu.tsx +0 -51
  181. package/src/Menu/index.ts +0 -1
  182. package/src/MenuItem/MenuItem.stories.tsx +0 -30
  183. package/src/MenuItem/MenuItem.test.tsx +0 -68
  184. package/src/MenuItem/MenuItem.tsx +0 -35
  185. package/src/MenuItem/index.ts +0 -1
  186. package/src/Message/Message.stories.tsx +0 -30
  187. package/src/Message/Message.test.tsx +0 -90
  188. package/src/Message/Message.tsx +0 -55
  189. package/src/Message/index.ts +0 -1
  190. package/src/Provider/MarigoldProvider.test.tsx +0 -136
  191. package/src/Provider/MarigoldProvider.tsx +0 -47
  192. package/src/Provider/index.ts +0 -4
  193. package/src/Radio/Radio.stories.tsx +0 -78
  194. package/src/Radio/Radio.test.tsx +0 -154
  195. package/src/Radio/Radio.tsx +0 -88
  196. package/src/Radio/RadioIcon.tsx +0 -49
  197. package/src/Radio/index.ts +0 -1
  198. package/src/Select/ListBox.tsx +0 -40
  199. package/src/Select/ListBoxSection.tsx +0 -40
  200. package/src/Select/Option.tsx +0 -48
  201. package/src/Select/Popover.tsx +0 -50
  202. package/src/Select/Select.stories.tsx +0 -81
  203. package/src/Select/Select.test.tsx +0 -349
  204. package/src/Select/Select.tsx +0 -174
  205. package/src/Select/index.ts +0 -1
  206. package/src/Slider/Slider.stories.tsx +0 -24
  207. package/src/Slider/Slider.test.tsx +0 -63
  208. package/src/Slider/Slider.tsx +0 -35
  209. package/src/Slider/index.ts +0 -1
  210. package/src/Stack/Stack.stories.tsx +0 -57
  211. package/src/Stack/Stack.test.tsx +0 -138
  212. package/src/Stack/Stack.tsx +0 -39
  213. package/src/Stack/index.ts +0 -1
  214. package/src/Text/Text.stories.tsx +0 -61
  215. package/src/Text/Text.test.tsx +0 -99
  216. package/src/Text/Text.tsx +0 -60
  217. package/src/Text/index.ts +0 -1
  218. package/src/Textarea/Textarea.stories.tsx +0 -64
  219. package/src/Textarea/Textarea.test.tsx +0 -95
  220. package/src/Textarea/Textarea.tsx +0 -62
  221. package/src/Textarea/index.ts +0 -1
  222. package/src/ValidationMessage/ValidationMessage.stories.tsx +0 -27
  223. package/src/ValidationMessage/ValidationMessage.test.tsx +0 -68
  224. package/src/ValidationMessage/ValidationMessage.tsx +0 -40
  225. package/src/ValidationMessage/index.ts +0 -1
  226. package/src/VisuallyHidden/VisuallyHidden.stories.tsx +0 -19
  227. package/src/VisuallyHidden/VisuallyHidden.test.tsx +0 -10
  228. package/src/VisuallyHidden/VisuallyHidden.tsx +0 -1
  229. package/src/VisuallyHidden/index.ts +0 -1
  230. package/src/index.ts +0 -34
  231. package/src/theme.ts +0 -50
  232. package/tsconfig.build.json +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @marigold/components
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1795](https://github.com/marigold-ui/marigold/pull/1795) [`a178eafe`](https://github.com/marigold-ui/marigold/commit/a178eafe8c8380ee23b4587d953ee52b231414ff) Thanks [@ti10le](https://github.com/ti10le)! - refa: use interface instead of type
8
+
9
+ * [#1798](https://github.com/marigold-ui/marigold/pull/1798) [`9939b743`](https://github.com/marigold-ui/marigold/commit/9939b743df4dfe40bfd5dd61a1a4b88641ef9559) Thanks [@sebald](https://github.com/sebald)! - fix(components): Use own `flattenChildren` helper to fix ESM build
10
+
11
+ * Updated dependencies [[`a178eafe`](https://github.com/marigold-ui/marigold/commit/a178eafe8c8380ee23b4587d953ee52b231414ff)]:
12
+ - @marigold/system@0.5.1
13
+ - @marigold/icons@0.4.2
14
+
15
+ ## 0.5.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#1784](https://github.com/marigold-ui/marigold/pull/1784) [`99af3b37`](https://github.com/marigold-ui/marigold/commit/99af3b37de24599138777ed90de0445571c3095e) Thanks [@ti10le](https://github.com/ti10le)! - refa(comp): use interface instead of type
20
+
21
+ * [#1727](https://github.com/marigold-ui/marigold/pull/1727) [`026300b1`](https://github.com/marigold-ui/marigold/commit/026300b1b539b57785c0eb0282a3d3fd763194bc) Thanks [@sebald](https://github.com/sebald)! - feat(components): <Text> add possibility to change font size via style props
22
+
23
+ ### Patch Changes
24
+
25
+ - [#1774](https://github.com/marigold-ui/marigold/pull/1774) [`93480b63`](https://github.com/marigold-ui/marigold/commit/93480b6333a4d6231db35dbf12de5726533ebfc8) Thanks [@ti10le](https://github.com/ti10le)! - feat(comp): remove label prop and add children + refa
26
+
27
+ * [#1775](https://github.com/marigold-ui/marigold/pull/1775) [`6da8eba2`](https://github.com/marigold-ui/marigold/commit/6da8eba28c518c75758180697e5f0f5e5989c1f4) Thanks [@ti10le](https://github.com/ti10le)! - feat(comp): Checkbox remove label prop and add children + refa
28
+
29
+ * Updated dependencies [[`5936de75`](https://github.com/marigold-ui/marigold/commit/5936de75e5a0134584438117c53c5edfe15c6c5d)]:
30
+ - @marigold/system@0.5.0
31
+ - @marigold/icons@0.4.1
32
+
33
+ ## 0.4.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - chore: Use `tsup` to build packages
38
+
39
+ * [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - Improved size in node_modules
40
+
41
+ ### Patch Changes
42
+
43
+ - [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - feat(comp): Rewrite Textarea with react-aria
44
+
45
+ * [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - feat(comp): rewrite Field component with react-aria
46
+
47
+ * Updated dependencies [[`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942), [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942)]:
48
+ - @marigold/icons@0.4.0
49
+ - @marigold/system@0.4.0
50
+ - @marigold/types@0.4.0
51
+
3
52
  ## 0.3.2
4
53
 
5
54
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,32 +1,362 @@
1
- export * from './theme';
2
- export * from './ActionGroup';
3
- export * from './Alert';
4
- export * from './Badge';
5
- export * from './Box';
6
- export * from './Button';
7
- export * from './Card';
8
- export * from './Checkbox';
9
- export * from './Column';
10
- export * from './Columns';
11
- export * from './Dialog';
12
- export * from './Divider';
13
- export * from './Field';
14
- export * from './VisuallyHidden';
15
- export * from './Image';
16
- export * from './Inline';
17
- export * from './Label';
18
- export * from './Link';
19
- export * from './Menu';
20
- export * from './MenuItem';
21
- export * from './Message';
22
- export * from './Provider';
23
- export * from './Radio';
24
- export * from './Slider';
25
- export * from './Select';
26
- export * from './Stack';
27
- export * from './Text';
28
- export * from './Textarea';
29
- export * from './Input';
30
- export * from './Container';
31
- export * from './ValidationMessage';
32
- export { Item, Section } from '@react-stately/collections';
1
+ import { Theme as Theme$1, ThemeProviderProps, BoxOwnProps, ResponsiveStyleValue, CSSObject } from '@marigold/system';
2
+ export { Box, BoxOwnProps, BoxProps, StyleProps, ThemeProvider, useTheme } from '@marigold/system';
3
+ import React from 'react';
4
+ import { ComponentProps, PolymorphicPropsWithRef, PolymorphicComponentWithRef, PolymorphicProps, PolymorphicComponent } from '@marigold/types';
5
+ import { ToggleProps } from '@react-types/checkbox';
6
+ import { SeparatorProps } from '@react-aria/separator';
7
+ import { AriaSelectProps } from '@react-types/select';
8
+ import { SingleSelection } from '@react-types/shared';
9
+ import { AriaTextFieldProps } from '@react-types/textfield';
10
+ import * as _react_stately_overlays from '@react-stately/overlays';
11
+ import { OverlayProps } from '@react-aria/overlays';
12
+ import { AriaDialogProps } from '@react-types/dialog';
13
+ export { VisuallyHidden } from '@react-aria/visually-hidden';
14
+ export { SSRProvider } from '@react-aria/ssr';
15
+ export { Item, Section } from '@react-stately/collections';
16
+
17
+ interface RootThemeExtension<Value> {
18
+ root?: {
19
+ body?: Value;
20
+ html?: Value;
21
+ };
22
+ }
23
+ interface MarigoldProviderProps<T extends Theme$1> extends ThemeProviderProps<T> {
24
+ }
25
+ declare function MarigoldProvider<T extends Theme$1>({ theme, children, }: MarigoldProviderProps<T>): JSX.Element;
26
+
27
+ declare const ICON_MAP: {
28
+ readonly success: ({ className, ...props }: {
29
+ [x: string]: any;
30
+ className?: string | undefined;
31
+ }) => JSX.Element;
32
+ readonly warning: ({ className, ...props }: {
33
+ [x: string]: any;
34
+ className?: string | undefined;
35
+ }) => JSX.Element;
36
+ readonly error: ({ className, ...props }: {
37
+ [x: string]: any;
38
+ className?: string | undefined;
39
+ }) => JSX.Element;
40
+ };
41
+ declare type AlertVariants = keyof typeof ICON_MAP;
42
+ interface AlertThemeExtension<Value> {
43
+ alert?: {
44
+ [key in AlertVariants]?: Value;
45
+ };
46
+ }
47
+ interface AlertProps extends ComponentProps<'div'> {
48
+ variant?: AlertVariants;
49
+ }
50
+ declare const Alert: React.FC<AlertProps>;
51
+
52
+ interface BadgeThemeExtension<Value> {
53
+ badge?: {
54
+ [key: string]: Value;
55
+ };
56
+ }
57
+ interface BadgeProps extends ComponentProps<'div'> {
58
+ variant?: string;
59
+ bgColor?: string;
60
+ borderColor?: string;
61
+ }
62
+ declare const Badge: React.FC<BadgeProps>;
63
+
64
+ interface ButtonThemeExtension<Value> {
65
+ button?: {
66
+ [key: string]: Value;
67
+ };
68
+ }
69
+ interface ButtonProps extends PolymorphicPropsWithRef<BoxOwnProps, 'button'> {
70
+ }
71
+ declare const Button: PolymorphicComponentWithRef<BoxOwnProps, 'button'>;
72
+
73
+ interface CardThemeExtension<Value> {
74
+ card?: {
75
+ [key: string]: Value;
76
+ };
77
+ }
78
+ interface CardProps extends ComponentProps<'div'> {
79
+ title?: string;
80
+ width?: ResponsiveStyleValue<string>;
81
+ variant?: string;
82
+ }
83
+ declare const Card: React.FC<CardProps>;
84
+
85
+ interface CheckboxIconProps {
86
+ variant?: string;
87
+ checked?: boolean;
88
+ disabled?: boolean;
89
+ error?: boolean;
90
+ }
91
+
92
+ interface CheckboxThemeExtension<Value> {
93
+ checkbox?: {
94
+ [key: string]: Value;
95
+ };
96
+ }
97
+ declare type CheckboxInputProps = CheckboxIconProps & ToggleProps & ComponentProps<'input'>;
98
+ interface CheckboxProps extends CheckboxInputProps {
99
+ id: string;
100
+ required?: boolean;
101
+ labelVariant?: string;
102
+ errorMessage?: string;
103
+ }
104
+ declare const Checkbox: React.FC<CheckboxProps>;
105
+
106
+ interface DividerThemeExtension<Value> {
107
+ divider?: {
108
+ [key: string]: Value;
109
+ };
110
+ }
111
+ interface DividerProps extends SeparatorProps {
112
+ variant?: string;
113
+ }
114
+ declare const Divider: React.FC<DividerProps>;
115
+
116
+ interface ImageThemeExtension<Value> {
117
+ image?: {
118
+ [key: string]: Value;
119
+ };
120
+ }
121
+ interface ImageProps extends ComponentProps<'img'> {
122
+ variant?: string;
123
+ children?: never;
124
+ }
125
+ declare const Image: React.FC<ImageProps>;
126
+
127
+ interface InputThemeExtension<Value> {
128
+ input?: {
129
+ [key: string]: Value;
130
+ };
131
+ }
132
+ interface InputProps extends ComponentProps<'input'> {
133
+ variant?: string;
134
+ }
135
+ declare const Input: React.FC<InputProps>;
136
+
137
+ interface LabelThemeExtension<Value> {
138
+ label?: {
139
+ [key: string]: Value;
140
+ };
141
+ }
142
+ declare type LabelBaseProps = {
143
+ htmlFor?: string;
144
+ variant?: string;
145
+ required?: boolean;
146
+ color?: ResponsiveStyleValue<string>;
147
+ } & ComponentProps<'label'>;
148
+ declare const LabelBase: React.FC<LabelProps>;
149
+ interface LabelProps extends LabelBaseProps {
150
+ required?: boolean;
151
+ }
152
+ declare const Label: React.FC<LabelProps>;
153
+
154
+ interface TextThemeExtension<Value> {
155
+ text?: {
156
+ [key: string]: Value;
157
+ };
158
+ }
159
+ interface TextOwnProps extends BoxOwnProps {
160
+ align?: ResponsiveStyleValue<string>;
161
+ color?: ResponsiveStyleValue<string>;
162
+ cursor?: ResponsiveStyleValue<string>;
163
+ size?: ResponsiveStyleValue<keyof Theme$1['fontSizes'] | string>;
164
+ outline?: ResponsiveStyleValue<string>;
165
+ userSelect?: ResponsiveStyleValue<string>;
166
+ }
167
+ interface TextProps extends PolymorphicPropsWithRef<TextOwnProps, 'span'> {
168
+ }
169
+ declare const Text: PolymorphicComponentWithRef<TextOwnProps, 'span'>;
170
+
171
+ interface LinkThemeExtension<Value> {
172
+ link?: Value;
173
+ }
174
+ interface LinkOwnProps extends TextOwnProps {
175
+ disabled?: boolean;
176
+ }
177
+ interface LinkProps extends PolymorphicProps<LinkOwnProps, 'a'> {
178
+ }
179
+ declare const Link: PolymorphicComponent<LinkOwnProps, "a">;
180
+
181
+ interface MenuThemeExtension<Value> {
182
+ menu?: Value;
183
+ }
184
+ interface MenuProps {
185
+ variant?: string;
186
+ label?: string;
187
+ onClick: ComponentProps<typeof Button>['onClick'];
188
+ show?: boolean;
189
+ className?: string;
190
+ title?: string;
191
+ }
192
+ declare const Menu: React.FC<MenuProps>;
193
+
194
+ interface MenuItemThemeExtension<Value> {
195
+ menuItem?: {
196
+ [key: string]: Value;
197
+ };
198
+ }
199
+ interface MenuItemProps extends ComponentProps<typeof Link> {
200
+ variant?: string;
201
+ }
202
+ declare const MenuItem: React.FC<MenuItemProps>;
203
+
204
+ interface MessageThemeExtension<Value> {
205
+ message?: {
206
+ [key: string]: Value;
207
+ };
208
+ }
209
+ interface MessageProps extends ComponentProps<'div'> {
210
+ messageTitle: string;
211
+ variant?: string;
212
+ }
213
+ declare const Message: React.FC<MessageProps>;
214
+
215
+ interface RadioIconProps {
216
+ variant?: string;
217
+ checked?: boolean;
218
+ disabled?: boolean;
219
+ error?: boolean;
220
+ }
221
+
222
+ interface RadioThemeExtension<Value> {
223
+ radio?: {
224
+ [key: string]: Value;
225
+ };
226
+ }
227
+ interface RadioInputProps extends RadioIconProps, ComponentProps<'input'> {
228
+ }
229
+ interface RadioProps extends RadioInputProps {
230
+ id: string;
231
+ required?: boolean;
232
+ labelVariant?: string;
233
+ errorMessage?: string;
234
+ }
235
+ declare const Radio: React.FC<RadioProps>;
236
+
237
+ interface SelectThemeExtension<Value> {
238
+ select?: {
239
+ __default: Value;
240
+ disabled?: Value;
241
+ listbox?: {
242
+ __default: Value;
243
+ error?: Value;
244
+ };
245
+ section?: Value;
246
+ option?: Value;
247
+ };
248
+ }
249
+ declare type SelectProps = {
250
+ labelVariant?: string;
251
+ placeholder?: string;
252
+ disabled?: boolean;
253
+ required?: boolean;
254
+ width?: ResponsiveStyleValue<number | string>;
255
+ error?: boolean;
256
+ errorMessage?: string;
257
+ } & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
258
+ declare const Select: ({ labelVariant, placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
259
+
260
+ interface SliderThemeExtension<Value> {
261
+ slider?: {
262
+ [key: string]: Value;
263
+ };
264
+ }
265
+ interface SliderProps extends ComponentProps<'input'> {
266
+ variant?: string;
267
+ }
268
+ declare const Slider: React.FC<SliderProps>;
269
+
270
+ interface TextareaThemeExtension<Value> {
271
+ textarea?: {
272
+ [key: string]: Value;
273
+ };
274
+ }
275
+ declare type TextareaProps = {
276
+ variant?: string;
277
+ htmlFor: string;
278
+ required?: boolean;
279
+ error?: boolean;
280
+ } & AriaTextFieldProps & ComponentProps<'textarea'>;
281
+ declare const Textarea: React.FC<TextareaProps>;
282
+
283
+ interface ValidationMessageThemeExtension<Value> {
284
+ validation?: {
285
+ [key: string]: Value;
286
+ };
287
+ }
288
+ interface ValidationMessageProps extends ComponentProps<'span'> {
289
+ variant?: string;
290
+ }
291
+ declare const ValidationMessage: React.FC<ValidationMessageProps>;
292
+
293
+ interface Theme extends Theme$1, RootThemeExtension<CSSObject>, AlertThemeExtension<CSSObject>, BadgeThemeExtension<CSSObject>, ButtonThemeExtension<CSSObject>, CardThemeExtension<CSSObject>, CheckboxThemeExtension<CSSObject>, DividerThemeExtension<CSSObject>, ImageThemeExtension<CSSObject>, InputThemeExtension<CSSObject>, LabelThemeExtension<CSSObject>, LinkThemeExtension<CSSObject>, MenuThemeExtension<CSSObject>, MenuItemThemeExtension<CSSObject>, MessageThemeExtension<CSSObject>, RadioThemeExtension<CSSObject>, SelectThemeExtension<CSSObject>, SliderThemeExtension<CSSObject>, TextThemeExtension<CSSObject>, TextareaThemeExtension<CSSObject>, ValidationMessageThemeExtension<CSSObject> {
294
+ }
295
+
296
+ interface ActionGroupProps extends ComponentProps<'div'> {
297
+ space?: ResponsiveStyleValue<string>;
298
+ verticalAlignment?: boolean;
299
+ }
300
+ declare const ActionGroup: React.FC<ActionGroupProps>;
301
+
302
+ declare type WidthValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
303
+ interface ColumnProps {
304
+ className?: string;
305
+ width?: WidthValues | WidthValues[];
306
+ }
307
+ declare const Column: React.FC<ColumnProps>;
308
+
309
+ interface ColumnsProps {
310
+ className?: string;
311
+ space?: ResponsiveStyleValue<string>;
312
+ horizontalAlign?: 'left' | 'right' | 'center';
313
+ verticalAlign?: 'top' | 'bottom' | 'center';
314
+ }
315
+ declare const Columns: React.FC<ColumnsProps>;
316
+
317
+ interface ModalDialogProps extends OverlayProps, AriaDialogProps {
318
+ variant?: string;
319
+ backdropVariant?: string;
320
+ }
321
+
322
+ interface DialogProps extends ModalDialogProps, ComponentProps<'div'> {
323
+ backdropVariant?: string;
324
+ close: ComponentProps<typeof Button>['onClick'];
325
+ isOpen: boolean;
326
+ title?: string;
327
+ variant?: string;
328
+ role?: 'dialog' | 'alertdialog';
329
+ }
330
+ declare const Dialog: React.FC<DialogProps>;
331
+ declare const useDialogButtonProps: () => {
332
+ state: _react_stately_overlays.OverlayTriggerState;
333
+ openButtonProps: React.HTMLAttributes<HTMLSpanElement>;
334
+ openButtonRef: React.RefObject<HTMLElement>;
335
+ };
336
+
337
+ declare type FieldProps = {
338
+ variant?: string;
339
+ labelVariant?: string;
340
+ htmlFor: string;
341
+ required?: boolean;
342
+ error?: boolean;
343
+ } & AriaTextFieldProps & ComponentProps<'input'>;
344
+ declare const Field: React.FC<FieldProps>;
345
+
346
+ interface InlineProps {
347
+ space?: ResponsiveStyleValue<string>;
348
+ align?: 'top' | 'center' | 'bottom';
349
+ }
350
+ declare const Inline: React.FC<InlineProps>;
351
+
352
+ interface StackProps {
353
+ space?: ResponsiveStyleValue<string>;
354
+ align?: 'left' | 'right' | 'center';
355
+ }
356
+ declare const Stack: React.FC<StackProps>;
357
+
358
+ interface ContainerProps extends ComponentProps<'div'> {
359
+ }
360
+ declare const Container: React.FC<ContainerProps>;
361
+
362
+ export { ActionGroup, ActionGroupProps, Alert, AlertProps, AlertThemeExtension, AlertVariants, Badge, BadgeProps, BadgeThemeExtension, Button, ButtonProps, ButtonThemeExtension, Card, CardProps, CardThemeExtension, Checkbox, CheckboxProps, CheckboxThemeExtension, Column, ColumnProps, Columns, ColumnsProps, Container, ContainerProps, Dialog, DialogProps, Divider, DividerProps, DividerThemeExtension, Field, FieldProps, Image, ImageProps, ImageThemeExtension, Inline, InlineProps, Input, InputProps, InputThemeExtension, Label, LabelBase, LabelBaseProps, LabelProps, LabelThemeExtension, Link, LinkOwnProps, LinkProps, LinkThemeExtension, MarigoldProvider, MarigoldProviderProps, Menu, MenuItem, MenuItemProps, MenuItemThemeExtension, MenuProps, MenuThemeExtension, Message, MessageProps, MessageThemeExtension, Radio, RadioProps, RadioThemeExtension, RootThemeExtension, Select, SelectProps, SelectThemeExtension, Slider, SliderProps, SliderThemeExtension, Stack, StackProps, Text, TextOwnProps, TextProps, TextThemeExtension, Textarea, TextareaProps, TextareaThemeExtension, Theme, ValidationMessage, ValidationMessageProps, ValidationMessageThemeExtension, useDialogButtonProps };