@marigold/components 0.0.2 → 0.3.0

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 (224) hide show
  1. package/CHANGELOG.md +294 -0
  2. package/dist/ActionGroup/ActionGroup.d.ts +8 -0
  3. package/dist/ActionGroup/ActionGroup.stories.d.ts +5 -0
  4. package/dist/ActionGroup/index.d.ts +1 -0
  5. package/dist/Alert/Alert.d.ts +16 -3
  6. package/dist/Alert/Alert.stories.d.ts +5 -0
  7. package/dist/Badge/Badge.d.ts +11 -5
  8. package/dist/Badge/Badge.stories.d.ts +5 -0
  9. package/dist/Box.d.ts +2 -0
  10. package/dist/Button/Button.d.ts +9 -5
  11. package/dist/Button/Button.stories.d.ts +5 -0
  12. package/dist/Card/Card.d.ts +14 -0
  13. package/dist/Card/Card.stories.d.ts +5 -0
  14. package/dist/Card/index.d.ts +1 -0
  15. package/dist/Checkbox/Checkbox.d.ts +17 -5
  16. package/dist/Checkbox/Checkbox.stories.d.ts +5 -0
  17. package/dist/Checkbox/CheckboxIcons.d.ts +9 -0
  18. package/dist/Column/Column.d.ts +6 -4
  19. package/dist/Column/Column.stories.d.ts +5 -0
  20. package/dist/Columns/Columns.d.ts +10 -0
  21. package/dist/Columns/Columns.stories.d.ts +5 -0
  22. package/dist/Columns/index.d.ts +1 -0
  23. package/dist/Container/Container.d.ts +5 -4
  24. package/dist/Container/Container.stories.d.ts +5 -0
  25. package/dist/Dialog/Dialog.d.ts +17 -0
  26. package/dist/Dialog/Dialog.stories.d.ts +5 -0
  27. package/dist/Dialog/ModalDialog.d.ts +8 -0
  28. package/dist/Dialog/index.d.ts +1 -0
  29. package/dist/Divider/Divider.d.ts +10 -3
  30. package/dist/Divider/Divider.stories.d.ts +5 -0
  31. package/dist/Field/Field.d.ts +10 -5
  32. package/dist/Field/Field.stories.d.ts +5 -0
  33. package/dist/Image/Image.d.ts +11 -5
  34. package/dist/Image/Image.stories.d.ts +5 -0
  35. package/dist/Inline/Inline.d.ts +7 -0
  36. package/dist/Inline/Inline.stories.d.ts +5 -0
  37. package/dist/Inline/index.d.ts +1 -0
  38. package/dist/Input/Input.d.ts +10 -4
  39. package/dist/Input/Input.stories.d.ts +5 -0
  40. package/dist/Label/Label.d.ts +18 -5
  41. package/dist/Label/Label.stories.d.ts +5 -0
  42. package/dist/Link/Link.d.ts +10 -5
  43. package/dist/Link/Link.stories.d.ts +5 -0
  44. package/dist/Menu/Menu.d.ts +11 -4
  45. package/dist/Menu/Menu.stories.d.ts +5 -0
  46. package/dist/MenuItem/MenuItem.d.ts +11 -4
  47. package/dist/MenuItem/MenuItem.stories.d.ts +5 -0
  48. package/dist/Message/Message.d.ts +10 -4
  49. package/dist/Message/Message.stories.d.ts +5 -0
  50. package/dist/Provider/MarigoldProvider.d.ts +11 -0
  51. package/dist/Provider/index.d.ts +3 -0
  52. package/dist/Radio/Radio.d.ts +17 -4
  53. package/dist/Radio/RadioIcons.d.ts +10 -0
  54. package/dist/Select/ListBox.d.ts +9 -0
  55. package/dist/Select/ListBoxSection.d.ts +9 -0
  56. package/dist/Select/Option.d.ts +9 -0
  57. package/dist/Select/Popover.d.ts +9 -0
  58. package/dist/Select/Select.d.ts +27 -3
  59. package/dist/Select/Select.stories.d.ts +5 -0
  60. package/dist/Slider/Slider.d.ts +10 -4
  61. package/dist/Slider/Slider.stories.d.ts +5 -0
  62. package/dist/Stack/Stack.d.ts +7 -0
  63. package/dist/Stack/Stack.stories.d.ts +5 -0
  64. package/dist/Stack/index.d.ts +1 -0
  65. package/dist/Text/Text.d.ts +17 -7
  66. package/dist/Text/Text.stories.d.ts +5 -0
  67. package/dist/Textarea/Textarea.d.ts +15 -4
  68. package/dist/Textarea/Textarea.stories.d.ts +5 -0
  69. package/dist/ValidationMessage/ValidationMessage.d.ts +10 -4
  70. package/dist/ValidationMessage/ValidationMessage.stories.d.ts +5 -0
  71. package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  72. package/dist/VisuallyHidden/VisuallyHidden.stories.d.ts +5 -0
  73. package/dist/VisuallyHidden/index.d.ts +1 -0
  74. package/dist/components.cjs.development.js +1276 -461
  75. package/dist/components.cjs.development.js.map +1 -1
  76. package/dist/components.cjs.production.min.js +1 -1
  77. package/dist/components.cjs.production.min.js.map +1 -1
  78. package/dist/components.esm.js +1229 -461
  79. package/dist/components.esm.js.map +1 -1
  80. package/dist/index.d.ts +10 -3
  81. package/dist/theme.d.ts +23 -28
  82. package/package.json +27 -4
  83. package/src/ActionGroup/ActionGroup.stories.tsx +47 -0
  84. package/src/ActionGroup/ActionGroup.test.tsx +83 -0
  85. package/src/ActionGroup/ActionGroup.tsx +32 -0
  86. package/src/ActionGroup/index.ts +1 -0
  87. package/src/Alert/Alert.stories.tsx +32 -0
  88. package/src/Alert/Alert.test.tsx +34 -23
  89. package/src/Alert/Alert.tsx +48 -24
  90. package/src/Badge/Badge.stories.tsx +38 -0
  91. package/src/Badge/Badge.test.tsx +14 -40
  92. package/src/Badge/Badge.tsx +31 -28
  93. package/src/Box.ts +2 -0
  94. package/src/Button/Button.stories.tsx +57 -0
  95. package/src/Button/Button.test.tsx +76 -13
  96. package/src/Button/Button.tsx +58 -23
  97. package/src/Card/Card.stories.tsx +41 -0
  98. package/src/Card/Card.test.tsx +71 -0
  99. package/src/Card/Card.tsx +48 -0
  100. package/src/Card/index.ts +1 -0
  101. package/src/Checkbox/Checkbox.stories.mdx +90 -112
  102. package/src/Checkbox/Checkbox.stories.tsx +78 -0
  103. package/src/Checkbox/Checkbox.test.tsx +139 -24
  104. package/src/Checkbox/Checkbox.tsx +95 -58
  105. package/src/Checkbox/CheckboxIcons.tsx +59 -0
  106. package/src/Column/Column.stories.tsx +33 -0
  107. package/src/Column/Column.test.tsx +15 -59
  108. package/src/Column/Column.tsx +21 -19
  109. package/src/Columns/Columns.stories.tsx +75 -0
  110. package/src/Columns/Columns.test.tsx +113 -0
  111. package/src/Columns/Columns.tsx +69 -0
  112. package/src/Columns/index.ts +1 -0
  113. package/src/Container/Container.stories.tsx +14 -0
  114. package/src/Container/Container.test.tsx +8 -49
  115. package/src/Container/Container.tsx +8 -19
  116. package/src/Dialog/Dialog.stories.tsx +88 -0
  117. package/src/Dialog/Dialog.test.tsx +158 -0
  118. package/src/Dialog/Dialog.tsx +130 -0
  119. package/src/Dialog/ModalDialog.tsx +76 -0
  120. package/src/Dialog/index.ts +1 -0
  121. package/src/Divider/Divider.stories.tsx +30 -0
  122. package/src/Divider/Divider.test.tsx +14 -6
  123. package/src/Divider/Divider.tsx +20 -13
  124. package/src/Field/Field.stories.tsx +110 -0
  125. package/src/Field/Field.test.tsx +75 -34
  126. package/src/Field/Field.tsx +50 -43
  127. package/src/Image/Image.stories.tsx +34 -0
  128. package/src/Image/Image.test.tsx +6 -3
  129. package/src/Image/Image.tsx +21 -15
  130. package/src/Inline/Inline.stories.tsx +39 -0
  131. package/src/Inline/Inline.test.tsx +99 -0
  132. package/src/Inline/Inline.tsx +38 -0
  133. package/src/Inline/index.ts +1 -0
  134. package/src/Input/Input.stories.tsx +54 -0
  135. package/src/Input/Input.test.tsx +9 -5
  136. package/src/Input/Input.tsx +21 -16
  137. package/src/Label/Label.stories.tsx +41 -0
  138. package/src/Label/Label.test.tsx +41 -6
  139. package/src/Label/Label.tsx +59 -18
  140. package/src/Link/Link.stories.tsx +35 -0
  141. package/src/Link/Link.test.tsx +52 -22
  142. package/src/Link/Link.tsx +40 -20
  143. package/src/Menu/Menu.stories.tsx +62 -0
  144. package/src/Menu/Menu.test.tsx +13 -7
  145. package/src/Menu/Menu.tsx +44 -38
  146. package/src/MenuItem/MenuItem.stories.tsx +30 -0
  147. package/src/MenuItem/MenuItem.test.tsx +23 -14
  148. package/src/MenuItem/MenuItem.tsx +29 -18
  149. package/src/Message/Message.stories.tsx +30 -0
  150. package/src/Message/Message.test.tsx +5 -2
  151. package/src/Message/Message.tsx +48 -40
  152. package/src/Provider/MarigoldProvider.test.tsx +136 -0
  153. package/src/Provider/MarigoldProvider.tsx +47 -0
  154. package/src/Provider/index.ts +4 -0
  155. package/src/Radio/Radio.stories.mdx +91 -94
  156. package/src/Radio/Radio.test.tsx +92 -16
  157. package/src/Radio/Radio.tsx +114 -50
  158. package/src/Radio/RadioIcons.tsx +39 -0
  159. package/src/Select/ListBox.tsx +40 -0
  160. package/src/Select/ListBoxSection.tsx +40 -0
  161. package/src/Select/Option.tsx +48 -0
  162. package/src/Select/Popover.tsx +50 -0
  163. package/src/Select/Select.stories.tsx +81 -0
  164. package/src/Select/Select.test.tsx +311 -43
  165. package/src/Select/Select.tsx +174 -28
  166. package/src/Slider/Slider.stories.tsx +24 -0
  167. package/src/Slider/Slider.test.tsx +11 -7
  168. package/src/Slider/Slider.tsx +30 -15
  169. package/src/Stack/Stack.stories.tsx +57 -0
  170. package/src/Stack/Stack.test.tsx +138 -0
  171. package/src/Stack/Stack.tsx +39 -0
  172. package/src/Stack/index.ts +1 -0
  173. package/src/Text/Text.stories.tsx +61 -0
  174. package/src/Text/Text.test.tsx +41 -36
  175. package/src/Text/Text.tsx +55 -29
  176. package/src/Textarea/Textarea.stories.tsx +64 -0
  177. package/src/Textarea/Textarea.test.tsx +41 -5
  178. package/src/Textarea/Textarea.tsx +57 -17
  179. package/src/ValidationMessage/ValidationMessage.stories.tsx +27 -0
  180. package/src/ValidationMessage/ValidationMessage.test.tsx +19 -14
  181. package/src/ValidationMessage/ValidationMessage.tsx +36 -21
  182. package/src/VisuallyHidden/VisuallyHidden.stories.tsx +19 -0
  183. package/src/VisuallyHidden/VisuallyHidden.test.tsx +10 -0
  184. package/src/VisuallyHidden/VisuallyHidden.tsx +1 -0
  185. package/src/VisuallyHidden/index.ts +1 -0
  186. package/src/index.ts +11 -3
  187. package/src/theme.ts +49 -28
  188. package/dist/Heading/Heading.d.ts +0 -5
  189. package/dist/Heading/index.d.ts +0 -1
  190. package/dist/Hidden/Hidden.d.ts +0 -6
  191. package/dist/Hidden/index.d.ts +0 -1
  192. package/dist/Svg/Svg.d.ts +0 -6
  193. package/dist/Svg/index.d.ts +0 -1
  194. package/src/Alert/Alert.stories.mdx +0 -49
  195. package/src/Badge/Badge.stories.mdx +0 -41
  196. package/src/Button/Button.stories.mdx +0 -155
  197. package/src/Column/Column.stories.mdx +0 -76
  198. package/src/Container/Container.stories.mdx +0 -42
  199. package/src/Divider/Divider.stories.mdx +0 -42
  200. package/src/Field/Field.stories.mdx +0 -57
  201. package/src/Heading/Heading.stories.mdx +0 -79
  202. package/src/Heading/Heading.test.tsx +0 -63
  203. package/src/Heading/Heading.tsx +0 -22
  204. package/src/Heading/index.ts +0 -1
  205. package/src/Hidden/Hidden.stories.mdx +0 -64
  206. package/src/Hidden/Hidden.test.tsx +0 -87
  207. package/src/Hidden/Hidden.tsx +0 -25
  208. package/src/Hidden/index.ts +0 -1
  209. package/src/Image/Image.stories.mdx +0 -40
  210. package/src/Input/Input.stories.mdx +0 -44
  211. package/src/Label/Label.stories.mdx +0 -34
  212. package/src/Link/Link.stories.mdx +0 -37
  213. package/src/Menu/Menu.stories.mdx +0 -47
  214. package/src/MenuItem/MenuItem.stories.mdx +0 -32
  215. package/src/Message/Message.stories.mdx +0 -43
  216. package/src/Select/Select.stories.mdx +0 -43
  217. package/src/Slider/Slider.stories.mdx +0 -57
  218. package/src/Svg/Svg.stories.mdx +0 -47
  219. package/src/Svg/Svg.test.tsx +0 -76
  220. package/src/Svg/Svg.tsx +0 -31
  221. package/src/Svg/index.ts +0 -1
  222. package/src/Text/Text.stories.mdx +0 -60
  223. package/src/Textarea/Textarea.stories.mdx +0 -34
  224. package/src/ValidationMessage/ValidationMessage.stories.mdx +0 -36
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Field } from './Field';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Field>;
@@ -1,6 +1,12 @@
1
- declare type ImageProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface ImageThemeExtension<Value> {
4
+ image?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type ImageProps = {
2
9
  variant?: string;
3
- alt?: string;
4
- };
5
- export declare const Image: import("@marigold/system").SystemComponent<ImageProps, "img">;
6
- export {};
10
+ children?: never;
11
+ } & ComponentProps<'img'>;
12
+ export declare const Image: React.FC<ImageProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Image } from './Image';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Image>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ResponsiveStyleValue } from '@marigold/system';
3
+ export declare type InlineProps = {
4
+ space?: ResponsiveStyleValue<string>;
5
+ align?: 'top' | 'center' | 'bottom';
6
+ };
7
+ export declare const Inline: React.FC<InlineProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Inline } from './Inline';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Inline>;
@@ -0,0 +1 @@
1
+ export * from './Inline';
@@ -1,5 +1,11 @@
1
- declare type InputProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface InputThemeExtension<Value> {
4
+ input?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type InputProps = {
2
9
  variant?: string;
3
- };
4
- export declare const Input: import("@marigold/system").SystemComponent<InputProps, "input">;
5
- export {};
10
+ } & ComponentProps<'input'>;
11
+ export declare const Input: React.FC<InputProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Input } from './Input';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Input>;
@@ -1,6 +1,19 @@
1
- declare type TextProps = {
2
- htmlFor: string;
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { ResponsiveStyleValue } from '@marigold/system';
4
+ export interface LabelThemeExtension<Value> {
5
+ label?: {
6
+ [key: string]: Value;
7
+ };
8
+ }
9
+ export declare type LabelBaseProps = {
10
+ htmlFor?: string;
3
11
  variant?: string;
4
- };
5
- export declare const Label: import("@marigold/system").SystemComponent<TextProps, "label">;
6
- export {};
12
+ required?: boolean;
13
+ color?: ResponsiveStyleValue<string>;
14
+ } & ComponentProps<'label'>;
15
+ export declare const LabelBase: React.FC<LabelProps>;
16
+ export declare type LabelProps = {
17
+ required?: boolean;
18
+ } & LabelBaseProps;
19
+ export declare const Label: React.FC<LabelProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Label } from './Label';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Label>;
@@ -1,5 +1,10 @@
1
- declare type LinkProps = {
2
- variant?: string;
3
- };
4
- export declare const Link: import("@marigold/system").SystemComponent<LinkProps, "a">;
5
- export {};
1
+ import { PolymorphicComponent, PolymorphicProps } from '@marigold/types';
2
+ import { TextOwnProps } from '../Text';
3
+ export interface LinkThemeExtension<Value> {
4
+ link?: Value;
5
+ }
6
+ export declare type LinkOwnProps = {
7
+ disabled?: boolean;
8
+ } & TextOwnProps;
9
+ export declare type LinkProps = PolymorphicProps<LinkOwnProps, 'a'>;
10
+ export declare const Link: PolymorphicComponent<any, "a">;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Link } from './Link';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Link>;
@@ -1,8 +1,15 @@
1
- declare type MenuProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { Button } from '../Button';
4
+ export interface MenuThemeExtension<Value> {
5
+ menu?: Value;
6
+ }
7
+ export declare type MenuProps = {
2
8
  variant?: string;
3
9
  label?: string;
4
- onClick: () => void;
10
+ onClick: ComponentProps<typeof Button>['onClick'];
5
11
  show?: boolean;
12
+ className?: string;
13
+ title?: string;
6
14
  };
7
- export declare const Menu: import("@marigold/system").SystemComponent<MenuProps, "div">;
8
- export {};
15
+ export declare const Menu: React.FC<MenuProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Menu } from './Menu';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Menu>;
@@ -1,5 +1,12 @@
1
- declare type MenuItemProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { Link } from '../Link';
4
+ export interface MenuItemThemeExtension<Value> {
5
+ menuItem?: {
6
+ [key: string]: Value;
7
+ };
8
+ }
9
+ export declare type MenuItemProps = {
2
10
  variant?: string;
3
- };
4
- export declare const MenuItem: import("@marigold/system").SystemComponent<MenuItemProps, "a">;
5
- export {};
11
+ } & ComponentProps<typeof Link>;
12
+ export declare const MenuItem: React.FC<MenuItemProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { MenuItem } from './MenuItem';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof MenuItem>;
@@ -1,6 +1,12 @@
1
- declare type MessageProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface MessageThemeExtension<Value> {
4
+ message?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type MessageProps = {
2
9
  messageTitle: string;
3
10
  variant?: string;
4
- };
5
- export declare const Message: import("@marigold/system").SystemComponent<MessageProps, "div">;
6
- export {};
11
+ } & ComponentProps<'div'>;
12
+ export declare const Message: React.FC<MessageProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Message } from './Message';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Message>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Theme, ThemeProviderProps } from '@marigold/system';
3
+ export interface RootThemeExtension<Value> {
4
+ root?: {
5
+ body?: Value;
6
+ html?: Value;
7
+ };
8
+ }
9
+ export interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
10
+ }
11
+ export declare function MarigoldProvider<T extends Theme>({ theme, children, }: MarigoldProviderProps<T>): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { useTheme, ThemeProvider } from '@marigold/system';
2
+ export { SSRProvider } from '@react-aria/ssr';
3
+ export * from './MarigoldProvider';
@@ -1,8 +1,21 @@
1
- declare type RadioProps = {
2
- id: string;
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface RadioThemeExtension<Value> {
4
+ radio?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ declare type RadioInputProps = {
3
9
  variant?: string;
10
+ error?: boolean;
11
+ } & ComponentProps<'input'>;
12
+ export declare type RadioProps = {
13
+ id: string;
4
14
  label?: string;
5
15
  required?: boolean;
6
- };
7
- export declare const Radio: import("@marigold/system").SystemComponent<RadioProps, "input">;
16
+ labelVariant?: string;
17
+ error?: boolean;
18
+ errorMessage?: string;
19
+ } & RadioInputProps;
20
+ export declare const Radio: React.FC<RadioProps>;
8
21
  export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export declare const RadioChecked: ({ disabled, ...props }: {
3
+ [x: string]: any;
4
+ disabled?: boolean | undefined;
5
+ }) => JSX.Element;
6
+ export declare const RadioUnchecked: ({ disabled, error, ...props }: {
7
+ [x: string]: any;
8
+ disabled?: boolean | undefined;
9
+ error?: boolean | undefined;
10
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { AriaListBoxOptions } from '@react-aria/listbox';
3
+ import type { ListState } from '@react-stately/list';
4
+ interface ListBoxProps extends AriaListBoxOptions<unknown> {
5
+ state: ListState<unknown>;
6
+ error?: boolean;
7
+ }
8
+ export declare const ListBox: (props: ListBoxProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ListState } from '@react-stately/list';
3
+ import type { Node } from '@react-types/shared';
4
+ interface SectionProps {
5
+ section: Node<unknown>;
6
+ state: ListState<unknown>;
7
+ }
8
+ export declare const ListBoxSection: ({ section, state }: SectionProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { ListState } from '@react-stately/list';
3
+ import type { Node } from '@react-types/shared';
4
+ interface OptionProps {
5
+ item: Node<unknown>;
6
+ state: ListState<unknown>;
7
+ }
8
+ export declare const Option: ({ item, state }: OptionProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface PopoverProps {
3
+ isOpen?: boolean;
4
+ onClose?: () => void;
5
+ ref?: React.Ref<HTMLDivElement>;
6
+ className?: string;
7
+ }
8
+ export declare const Popover: React.FC<PopoverProps>;
9
+ export {};
@@ -1,3 +1,27 @@
1
- declare type SelectProps = {};
2
- export declare const Select: import("@marigold/system").SystemComponent<SelectProps, "select">;
3
- export {};
1
+ /// <reference types="react" />
2
+ import type { AriaSelectProps } from '@react-types/select';
3
+ import { SingleSelection } from '@react-types/shared';
4
+ import { ComponentProps } from '@marigold/types';
5
+ import { ResponsiveStyleValue } from '@marigold/system';
6
+ export interface SelectThemeExtension<Value> {
7
+ select?: {
8
+ __default: Value;
9
+ disabled?: Value;
10
+ listbox?: {
11
+ __default: Value;
12
+ error?: Value;
13
+ };
14
+ section?: Value;
15
+ option?: Value;
16
+ };
17
+ }
18
+ export declare type SelectProps = {
19
+ labelVariant?: string;
20
+ placeholder?: string;
21
+ disabled?: boolean;
22
+ required?: boolean;
23
+ width?: ResponsiveStyleValue<number | string>;
24
+ error?: boolean;
25
+ errorMessage?: string;
26
+ } & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
27
+ export declare const Select: ({ labelVariant, placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Select } from './Select';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Select>;
@@ -1,5 +1,11 @@
1
- declare type SliderProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface SliderThemeExtension<Value> {
4
+ slider?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type SliderProps = {
2
9
  variant?: string;
3
- };
4
- export declare const Slider: import("@marigold/system").SystemComponent<SliderProps, "input">;
5
- export {};
10
+ } & ComponentProps<'input'>;
11
+ export declare const Slider: React.FC<SliderProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Slider } from './Slider';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Slider>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ResponsiveStyleValue } from '@marigold/system';
3
+ export declare type StackProps = {
4
+ space?: ResponsiveStyleValue<string>;
5
+ align?: 'left' | 'right' | 'center';
6
+ };
7
+ export declare const Stack: React.FC<StackProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Stack } from './Stack';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Stack>;
@@ -0,0 +1 @@
1
+ export * from './Stack';
@@ -1,7 +1,17 @@
1
- declare type TextProps = {
2
- as?: 'p' | 'span';
3
- variant?: 'body' | 'heading';
4
- textColor?: string;
5
- };
6
- export declare const Text: import("@marigold/system").SystemComponent<TextProps, "span">;
7
- export {};
1
+ import { ResponsiveStyleValue } from '@marigold/system';
2
+ import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
3
+ import { BoxOwnProps } from '../Box';
4
+ export interface TextThemeExtension<Value> {
5
+ text?: {
6
+ [key: string]: Value;
7
+ };
8
+ }
9
+ export declare type TextOwnProps = {
10
+ align?: ResponsiveStyleValue<string>;
11
+ color?: ResponsiveStyleValue<string>;
12
+ cursor?: ResponsiveStyleValue<string>;
13
+ outline?: ResponsiveStyleValue<string>;
14
+ userSelect?: ResponsiveStyleValue<string>;
15
+ } & BoxOwnProps;
16
+ export declare type TextProps = PolymorphicPropsWithRef<TextOwnProps, 'span'>;
17
+ export declare const Text: PolymorphicComponentWithRef<TextOwnProps, 'span'>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Text } from './Text';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Text>;
@@ -1,5 +1,16 @@
1
- declare type TextareaProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface TextareaThemeExtension<Value> {
4
+ textarea?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type TextareaProps = {
2
9
  variant?: string;
3
- };
4
- export declare const Textarea: import("@marigold/system").SystemComponent<TextareaProps, "textarea">;
5
- export {};
10
+ label?: string;
11
+ htmlFor?: string;
12
+ required?: boolean;
13
+ error?: boolean;
14
+ errorMessage?: string;
15
+ } & ComponentProps<'textarea'>;
16
+ export declare const Textarea: React.FC<TextareaProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { Textarea } from '.';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof Textarea>;
@@ -1,5 +1,11 @@
1
- declare type ValidationMessageProps = {
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export interface ValidationMessageThemeExtension<Value> {
4
+ validation?: {
5
+ [key: string]: Value;
6
+ };
7
+ }
8
+ export declare type ValidationMessageProps = {
2
9
  variant?: string;
3
- };
4
- export declare const ValidationMessage: import("@marigold/system").SystemComponent<ValidationMessageProps, "span">;
5
- export {};
10
+ } & ComponentProps<'span'>;
11
+ export declare const ValidationMessage: React.FC<ValidationMessageProps>;
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { ValidationMessage } from './ValidationMessage';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof ValidationMessage>;
@@ -0,0 +1 @@
1
+ export { VisuallyHidden } from '@react-aria/visually-hidden';
@@ -0,0 +1,5 @@
1
+ import type { ComponentStory } from '@storybook/react';
2
+ import { VisuallyHidden } from './VisuallyHidden';
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Basic: ComponentStory<typeof VisuallyHidden>;
@@ -0,0 +1 @@
1
+ export * from './VisuallyHidden';