@marigold/components 0.0.1 → 0.2.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 (194) hide show
  1. package/dist/ActionGroup/ActionGroup.d.ts +9 -0
  2. package/dist/ActionGroup/index.d.ts +1 -0
  3. package/dist/Alert/Alert.d.ts +20 -2
  4. package/dist/Badge/Badge.d.ts +8 -0
  5. package/dist/Badge/index.d.ts +1 -0
  6. package/dist/Box/Box.d.ts +47 -0
  7. package/dist/Box/index.d.ts +1 -0
  8. package/dist/Button/Button.d.ts +4 -3
  9. package/dist/Card/Card.d.ts +9 -0
  10. package/dist/Card/index.d.ts +1 -0
  11. package/dist/Checkbox/Checkbox.d.ts +14 -2
  12. package/dist/Checkbox/CheckboxIcons.d.ts +9 -0
  13. package/dist/Column/Column.d.ts +8 -0
  14. package/dist/Column/index.d.ts +1 -0
  15. package/dist/Columns/Columns.d.ts +10 -0
  16. package/dist/Columns/index.d.ts +1 -0
  17. package/dist/Container/Container.d.ts +6 -0
  18. package/dist/Container/index.d.ts +1 -0
  19. package/dist/Dialog/Dialog.d.ts +14 -0
  20. package/dist/Dialog/ModalDialog.d.ts +5 -0
  21. package/dist/Dialog/index.d.ts +1 -0
  22. package/dist/Divider/Divider.d.ts +7 -0
  23. package/dist/Divider/index.d.ts +1 -0
  24. package/dist/Field/Field.d.ts +11 -0
  25. package/dist/Field/index.d.ts +1 -0
  26. package/dist/Heading/Heading.d.ts +7 -5
  27. package/dist/Hidden/Hidden.d.ts +5 -0
  28. package/dist/Hidden/index.d.ts +1 -0
  29. package/dist/Image/Image.d.ts +7 -0
  30. package/dist/Image/index.d.ts +1 -0
  31. package/dist/Input/Input.d.ts +6 -0
  32. package/dist/Input/index.d.ts +1 -0
  33. package/dist/Label/Label.d.ts +8 -5
  34. package/dist/Link/Link.d.ts +7 -3
  35. package/dist/Menu/Menu.d.ts +12 -0
  36. package/dist/Menu/index.d.ts +1 -0
  37. package/dist/MenuItem/MenuItem.d.ts +7 -0
  38. package/dist/MenuItem/index.d.ts +1 -0
  39. package/dist/Message/Message.d.ts +7 -0
  40. package/dist/Message/index.d.ts +1 -0
  41. package/dist/Provider/MarigoldProvider.d.ts +3 -0
  42. package/dist/Provider/index.d.ts +3 -0
  43. package/dist/Radio/Radio.d.ts +14 -2
  44. package/dist/Radio/RadioIcons.d.ts +9 -0
  45. package/dist/Select/ListBox.d.ts +8 -0
  46. package/dist/Select/ListBoxSection.d.ts +8 -0
  47. package/dist/Select/Option.d.ts +8 -0
  48. package/dist/Select/Popover.d.ts +9 -0
  49. package/dist/Select/Select.d.ts +13 -3
  50. package/dist/Slider/Slider.d.ts +6 -3
  51. package/dist/Stack/Stack.d.ts +7 -0
  52. package/dist/Stack/index.d.ts +1 -0
  53. package/dist/Text/Text.d.ts +12 -3
  54. package/dist/Textarea/Textarea.d.ts +11 -3
  55. package/dist/ValidationMessage/ValidationMessage.d.ts +6 -0
  56. package/dist/ValidationMessage/index.d.ts +1 -0
  57. package/dist/components.cjs.development.js +1308 -195
  58. package/dist/components.cjs.development.js.map +1 -1
  59. package/dist/components.cjs.production.min.js +1 -1
  60. package/dist/components.cjs.production.min.js.map +1 -1
  61. package/dist/components.esm.js +1267 -185
  62. package/dist/components.esm.js.map +1 -1
  63. package/dist/index.d.ts +21 -4
  64. package/dist/theme.d.ts +24 -4
  65. package/package.json +24 -4
  66. package/src/ActionGroup/ActionGroup.stories.mdx +62 -0
  67. package/src/ActionGroup/ActionGroup.test.tsx +83 -0
  68. package/src/ActionGroup/ActionGroup.tsx +43 -0
  69. package/src/ActionGroup/index.ts +1 -0
  70. package/src/Alert/Alert.stories.mdx +30 -42
  71. package/src/Alert/Alert.test.tsx +37 -22
  72. package/src/Alert/Alert.tsx +31 -21
  73. package/src/Badge/Badge.stories.mdx +57 -0
  74. package/src/Badge/Badge.test.tsx +61 -0
  75. package/src/Badge/Badge.tsx +25 -0
  76. package/src/Badge/index.ts +1 -0
  77. package/src/Box/Box.stories.mdx +334 -0
  78. package/src/Box/Box.test.tsx +133 -0
  79. package/src/Box/Box.tsx +165 -0
  80. package/src/Box/index.ts +1 -0
  81. package/src/Button/Button.stories.mdx +58 -134
  82. package/src/Button/Button.test.tsx +65 -23
  83. package/src/Button/Button.tsx +48 -14
  84. package/src/Card/Card.stories.mdx +49 -0
  85. package/src/Card/Card.test.tsx +66 -0
  86. package/src/Card/Card.tsx +36 -0
  87. package/src/Card/index.ts +1 -0
  88. package/src/Checkbox/Checkbox.stories.mdx +79 -101
  89. package/src/Checkbox/Checkbox.test.tsx +73 -32
  90. package/src/Checkbox/Checkbox.tsx +114 -35
  91. package/src/Checkbox/CheckboxIcons.tsx +49 -0
  92. package/src/Column/Column.stories.mdx +49 -0
  93. package/src/Column/Column.test.tsx +32 -0
  94. package/src/Column/Column.tsx +27 -0
  95. package/src/Column/index.ts +1 -0
  96. package/src/Columns/Columns.stories.mdx +65 -0
  97. package/src/Columns/Columns.test.tsx +102 -0
  98. package/src/Columns/Columns.tsx +69 -0
  99. package/src/Columns/index.ts +1 -0
  100. package/src/Container/Container.stories.mdx +19 -0
  101. package/src/Container/Container.test.tsx +26 -0
  102. package/src/Container/Container.tsx +13 -0
  103. package/src/Container/index.ts +1 -0
  104. package/src/Dialog/Dialog.stories.mdx +73 -0
  105. package/src/Dialog/Dialog.test.tsx +87 -0
  106. package/src/Dialog/Dialog.tsx +84 -0
  107. package/src/Dialog/ModalDialog.tsx +47 -0
  108. package/src/Dialog/index.ts +1 -0
  109. package/src/Divider/Divider.stories.mdx +37 -0
  110. package/src/Divider/Divider.test.tsx +63 -0
  111. package/src/Divider/Divider.tsx +13 -0
  112. package/src/Divider/index.ts +1 -0
  113. package/src/Field/Field.stories.mdx +97 -0
  114. package/src/Field/Field.test.tsx +80 -0
  115. package/src/Field/Field.tsx +54 -0
  116. package/src/Field/index.ts +1 -0
  117. package/src/Heading/Heading.stories.mdx +36 -76
  118. package/src/Heading/Heading.test.tsx +31 -17
  119. package/src/Heading/Heading.tsx +15 -12
  120. package/src/Hidden/Hidden.stories.mdx +39 -0
  121. package/src/Hidden/Hidden.test.tsx +24 -0
  122. package/src/Hidden/Hidden.tsx +16 -0
  123. package/src/Hidden/index.ts +1 -0
  124. package/src/Image/Image.stories.mdx +36 -0
  125. package/src/Image/Image.test.tsx +70 -0
  126. package/src/Image/Image.tsx +13 -0
  127. package/src/Image/index.ts +1 -0
  128. package/src/Input/Input.stories.mdx +61 -0
  129. package/src/Input/Input.test.tsx +70 -0
  130. package/src/Input/Input.tsx +13 -0
  131. package/src/Input/index.ts +1 -0
  132. package/src/Label/Label.stories.mdx +50 -34
  133. package/src/Label/Label.test.tsx +45 -16
  134. package/src/Label/Label.tsx +26 -17
  135. package/src/Link/Link.stories.mdx +40 -31
  136. package/src/Link/Link.test.tsx +53 -28
  137. package/src/Link/Link.tsx +32 -14
  138. package/src/Menu/Menu.stories.mdx +81 -0
  139. package/src/Menu/Menu.test.tsx +79 -0
  140. package/src/Menu/Menu.tsx +41 -0
  141. package/src/Menu/index.ts +1 -0
  142. package/src/MenuItem/MenuItem.stories.mdx +37 -0
  143. package/src/MenuItem/MenuItem.test.tsx +63 -0
  144. package/src/MenuItem/MenuItem.tsx +23 -0
  145. package/src/MenuItem/index.ts +1 -0
  146. package/src/Message/Message.stories.mdx +44 -0
  147. package/src/Message/Message.test.tsx +87 -0
  148. package/src/Message/Message.tsx +43 -0
  149. package/src/Message/index.ts +1 -0
  150. package/src/Provider/MarigoldProvider.test.tsx +126 -0
  151. package/src/Provider/MarigoldProvider.tsx +29 -0
  152. package/src/Provider/index.ts +3 -0
  153. package/src/Radio/Radio.stories.mdx +80 -83
  154. package/src/Radio/Radio.test.tsx +63 -22
  155. package/src/Radio/Radio.tsx +110 -35
  156. package/src/Radio/RadioIcons.tsx +39 -0
  157. package/src/Select/ListBox.tsx +39 -0
  158. package/src/Select/ListBoxSection.tsx +40 -0
  159. package/src/Select/Option.tsx +48 -0
  160. package/src/Select/Popover.tsx +50 -0
  161. package/src/Select/Select.stories.mdx +72 -37
  162. package/src/Select/Select.test.tsx +271 -28
  163. package/src/Select/Select.tsx +158 -23
  164. package/src/Slider/Slider.stories.mdx +26 -54
  165. package/src/Slider/Slider.test.tsx +13 -13
  166. package/src/Slider/Slider.tsx +20 -18
  167. package/src/Stack/Stack.stories.mdx +51 -0
  168. package/src/Stack/Stack.test.tsx +129 -0
  169. package/src/Stack/Stack.tsx +39 -0
  170. package/src/Stack/index.ts +1 -0
  171. package/src/Text/Text.stories.mdx +53 -47
  172. package/src/Text/Text.test.tsx +55 -15
  173. package/src/Text/Text.tsx +44 -10
  174. package/src/Textarea/Textarea.stories.mdx +68 -21
  175. package/src/Textarea/Textarea.test.tsx +47 -16
  176. package/src/Textarea/Textarea.tsx +46 -14
  177. package/src/ValidationMessage/ValidationMessage.stories.mdx +36 -0
  178. package/src/ValidationMessage/ValidationMessage.test.tsx +63 -0
  179. package/src/ValidationMessage/ValidationMessage.tsx +28 -0
  180. package/src/ValidationMessage/index.ts +1 -0
  181. package/src/index.ts +22 -4
  182. package/src/theme.ts +24 -4
  183. package/dist/Svg/Svg.d.ts +0 -5
  184. package/dist/Svg/index.d.ts +0 -1
  185. package/dist/TextInput/TextInput.d.ts +0 -3
  186. package/dist/TextInput/index.d.ts +0 -1
  187. package/src/Svg/Svg.stories.mdx +0 -47
  188. package/src/Svg/Svg.test.tsx +0 -58
  189. package/src/Svg/Svg.tsx +0 -25
  190. package/src/Svg/index.ts +0 -1
  191. package/src/TextInput/TextInput.stories.mdx +0 -37
  192. package/src/TextInput/TextInput.test.tsx +0 -71
  193. package/src/TextInput/TextInput.tsx +0 -21
  194. package/src/TextInput/index.ts +0 -1
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ResponsiveStyleValue } from '@marigold/system';
3
+ import { ComponentProps } from '@marigold/types';
4
+ export declare type ActionGroupProps = {
5
+ variant?: string;
6
+ space?: ResponsiveStyleValue<number | string>;
7
+ verticalAlignment?: boolean;
8
+ } & ComponentProps<'div'>;
9
+ export declare const ActionGroup: React.FC<ActionGroupProps>;
@@ -0,0 +1 @@
1
+ export * from './ActionGroup';
@@ -1,3 +1,21 @@
1
- declare type AlertProps = {};
2
- export declare const Alert: import("@marigold/system").SystemComponent<AlertProps, "div">;
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ declare const ICON_MAP: {
4
+ readonly success: ({ className, ...props }: {
5
+ [x: string]: any;
6
+ className?: string | undefined;
7
+ }) => JSX.Element;
8
+ readonly warning: ({ className, ...props }: {
9
+ [x: string]: any;
10
+ className?: string | undefined;
11
+ }) => JSX.Element;
12
+ readonly error: ({ className, ...props }: {
13
+ [x: string]: any;
14
+ className?: string | undefined;
15
+ }) => JSX.Element;
16
+ };
17
+ export declare type AlertProps = {
18
+ variant?: keyof typeof ICON_MAP;
19
+ } & ComponentProps<'div'>;
20
+ export declare const Alert: React.FC<AlertProps>;
3
21
  export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type BadgeProps = {
4
+ variant?: string;
5
+ bgColor?: string;
6
+ borderColor?: string;
7
+ } & ComponentProps<'div'>;
8
+ export declare const Badge: React.FC<BadgeProps>;
@@ -0,0 +1 @@
1
+ export * from './Badge';
@@ -0,0 +1,47 @@
1
+ import { CSSObject, ResponsiveStyleValue } from '@marigold/system';
2
+ import { PolymorphicPropsWithRef, PolymorphicComponentWithRef } from '@marigold/types';
3
+ export declare type BoxOwnProps = {
4
+ className?: string;
5
+ variant?: string | string[];
6
+ css?: CSSObject;
7
+ display?: ResponsiveStyleValue<string>;
8
+ height?: ResponsiveStyleValue<number | string>;
9
+ width?: ResponsiveStyleValue<number | string>;
10
+ minWidth?: ResponsiveStyleValue<number | string>;
11
+ maxWidth?: ResponsiveStyleValue<number | string>;
12
+ position?: ResponsiveStyleValue<string>;
13
+ top?: ResponsiveStyleValue<number | string>;
14
+ bottom?: ResponsiveStyleValue<number | string>;
15
+ right?: ResponsiveStyleValue<number | string>;
16
+ left?: ResponsiveStyleValue<number | string>;
17
+ zIndex?: ResponsiveStyleValue<number | string>;
18
+ p?: ResponsiveStyleValue<number | string>;
19
+ px?: ResponsiveStyleValue<number | string>;
20
+ py?: ResponsiveStyleValue<number | string>;
21
+ pt?: ResponsiveStyleValue<number | string>;
22
+ pb?: ResponsiveStyleValue<number | string>;
23
+ pl?: ResponsiveStyleValue<number | string>;
24
+ pr?: ResponsiveStyleValue<number | string>;
25
+ m?: ResponsiveStyleValue<number | string>;
26
+ mx?: ResponsiveStyleValue<number | string>;
27
+ my?: ResponsiveStyleValue<number | string>;
28
+ mt?: ResponsiveStyleValue<number | string>;
29
+ mb?: ResponsiveStyleValue<number | string>;
30
+ ml?: ResponsiveStyleValue<number | string>;
31
+ mr?: ResponsiveStyleValue<number | string>;
32
+ flexDirection?: ResponsiveStyleValue<string>;
33
+ flexWrap?: ResponsiveStyleValue<string>;
34
+ flexShrink?: ResponsiveStyleValue<number | string>;
35
+ flexGrow?: ResponsiveStyleValue<number | string>;
36
+ alignItems?: ResponsiveStyleValue<string>;
37
+ justifyContent?: ResponsiveStyleValue<string>;
38
+ bg?: ResponsiveStyleValue<number | string>;
39
+ border?: ResponsiveStyleValue<number | string>;
40
+ borderRadius?: ResponsiveStyleValue<number | string>;
41
+ boxShadow?: ResponsiveStyleValue<number | string>;
42
+ opacity?: ResponsiveStyleValue<number | string>;
43
+ overflow?: ResponsiveStyleValue<string>;
44
+ transition?: ResponsiveStyleValue<number | string>;
45
+ };
46
+ export declare type BoxProps = PolymorphicPropsWithRef<BoxOwnProps, 'div'>;
47
+ export declare const Box: PolymorphicComponentWithRef<BoxOwnProps, 'div'>;
@@ -0,0 +1 @@
1
+ export * from './Box';
@@ -1,3 +1,4 @@
1
- declare type ButtonProps = {};
2
- export declare const Button: import("@marigold/system").SystemComponent<ButtonProps, "button">;
3
- export {};
1
+ import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
2
+ import { BoxOwnProps } from '../Box';
3
+ export declare type ButtonProps = PolymorphicPropsWithRef<BoxOwnProps, 'button'>;
4
+ export declare const Button: PolymorphicComponentWithRef<BoxOwnProps, 'button'>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ResponsiveStyleValue } from '@marigold/system';
3
+ import { ComponentProps } from '@marigold/types';
4
+ export declare type CardProps = {
5
+ title?: string;
6
+ width?: ResponsiveStyleValue<string>;
7
+ variant?: string;
8
+ } & ComponentProps<'div'>;
9
+ export declare const Card: React.FC<CardProps>;
@@ -0,0 +1 @@
1
+ export * from './Card';
@@ -1,3 +1,15 @@
1
- declare type CheckboxProps = {};
2
- export declare const Checkbox: import("@marigold/system").SystemComponent<CheckboxProps, "input">;
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ declare type CheckboxInputProps = {
4
+ variant?: string;
5
+ error?: boolean;
6
+ } & ComponentProps<'input'>;
7
+ export declare type CheckboxProps = {
8
+ id: string;
9
+ label?: string;
10
+ required?: boolean;
11
+ error?: boolean;
12
+ errorMessage?: string;
13
+ } & CheckboxInputProps;
14
+ export declare const Checkbox: React.FC<CheckboxProps>;
3
15
  export {};
@@ -0,0 +1,9 @@
1
+ export declare const CheckboxChecked: ({ disabled, ...props }: {
2
+ [x: string]: any;
3
+ disabled?: boolean | undefined;
4
+ }) => JSX.Element;
5
+ export declare const CheckboxUnchecked: ({ disabled, error, ...props }: {
6
+ [x: string]: any;
7
+ disabled?: boolean | undefined;
8
+ error?: boolean | undefined;
9
+ }) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type WidthValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
3
+ export declare type ColumnProps = {
4
+ className?: string;
5
+ width?: WidthValues | WidthValues[];
6
+ };
7
+ export declare const Column: React.FC<ColumnProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Column';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare type ColumnsProps = {
3
+ className?: string;
4
+ space?: number;
5
+ horizontalAlign?: 'left' | 'right' | 'center';
6
+ verticalAlign?: 'top' | 'bottom' | 'center';
7
+ title?: string;
8
+ };
9
+ export declare const Columns: React.FC<ColumnsProps>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Columns';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare type ContainerProps = {
3
+ className?: string;
4
+ title?: string;
5
+ };
6
+ export declare const Container: React.FC<ContainerProps>;
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { Button } from '../Button';
4
+ export declare type DialogProps = {
5
+ isOpen: boolean;
6
+ close: ComponentProps<typeof Button>['onClick'];
7
+ title?: string;
8
+ } & ComponentProps<'div'>;
9
+ export declare const Dialog: React.FC<DialogProps>;
10
+ export declare const useDialogButtonProps: () => {
11
+ state: import("@react-stately/overlays").OverlayTriggerState;
12
+ openButtonProps: React.HTMLAttributes<HTMLSpanElement>;
13
+ openButtonRef: React.RefObject<HTMLElement>;
14
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { OverlayProps } from '@react-aria/overlays';
3
+ import { AriaDialogProps } from '@react-types/dialog';
4
+ export declare type ModalDialogProps = OverlayProps & AriaDialogProps;
5
+ export declare const ModalDialog: React.FC<ModalDialogProps>;
@@ -0,0 +1 @@
1
+ export * from './Dialog';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare type DividerProps = {
3
+ className?: string;
4
+ variant?: string;
5
+ title?: string;
6
+ };
7
+ export declare const Divider: React.FC<DividerProps>;
@@ -0,0 +1 @@
1
+ export * from './Divider';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type FieldProps = {
4
+ htmlFor: string;
5
+ label: string;
6
+ required?: boolean;
7
+ error?: boolean;
8
+ errorMessage?: string;
9
+ disabled?: boolean;
10
+ } & ComponentProps<'input'>;
11
+ export declare const Field: React.FC<FieldProps>;
@@ -0,0 +1 @@
1
+ export * from './Field';
@@ -1,5 +1,7 @@
1
- declare type HeadingProps = {
2
- headingStyle?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
3
- };
4
- export declare const Heading: import("@marigold/system").SystemComponent<HeadingProps, "h2">;
5
- export {};
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type HeadingProps = {
4
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
+ variant?: string;
6
+ } & ComponentProps<'h1'>;
7
+ export declare const Heading: React.FC<HeadingProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare type HiddenProps = {
3
+ show?: boolean;
4
+ };
5
+ export declare const Hidden: React.FC<HiddenProps>;
@@ -0,0 +1 @@
1
+ export * from './Hidden';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type ImageProps = {
4
+ variant?: string;
5
+ children?: never;
6
+ } & ComponentProps<'img'>;
7
+ export declare const Image: React.FC<ImageProps>;
@@ -0,0 +1 @@
1
+ export * from './Image';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type InputProps = {
4
+ variant?: string;
5
+ } & ComponentProps<'input'>;
6
+ export declare const Input: React.FC<InputProps>;
@@ -0,0 +1 @@
1
+ export * from './Input';
@@ -1,5 +1,8 @@
1
- declare type LabelProps = {
2
- htmlFor: string;
3
- };
4
- export declare const Label: import("@marigold/system").SystemComponent<LabelProps, "label">;
5
- export {};
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type LabelProps = {
4
+ htmlFor?: string;
5
+ variant?: string;
6
+ required?: boolean;
7
+ } & ComponentProps<'label'>;
8
+ export declare const Label: React.FC<LabelProps>;
@@ -1,3 +1,7 @@
1
- declare type LinkProps = {};
2
- export declare const Link: import("@marigold/system").SystemComponent<LinkProps, "a">;
3
- export {};
1
+ import { PolymorphicComponent, PolymorphicProps } from '@marigold/types';
2
+ import { TextOwnProps } from '../Text';
3
+ export declare type LinkOwnProps = {
4
+ disabled?: boolean;
5
+ } & TextOwnProps;
6
+ export declare type LinkProps = PolymorphicProps<LinkOwnProps, 'a'>;
7
+ export declare const Link: PolymorphicComponent<LinkOwnProps, "a">;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { Button } from '../Button';
4
+ export declare type MenuProps = {
5
+ variant?: string;
6
+ label?: string;
7
+ onClick: ComponentProps<typeof Button>['onClick'];
8
+ show?: boolean;
9
+ className?: string;
10
+ title?: string;
11
+ };
12
+ export declare const Menu: React.FC<MenuProps>;
@@ -0,0 +1 @@
1
+ export * from './Menu';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ import { Link } from '../Link';
4
+ export declare type MenuItemProps = {
5
+ variant?: string;
6
+ } & ComponentProps<typeof Link>;
7
+ export declare const MenuItem: React.FC<MenuItemProps>;
@@ -0,0 +1 @@
1
+ export * from './MenuItem';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type MessageProps = {
4
+ messageTitle: string;
5
+ variant?: string;
6
+ } & ComponentProps<'div'>;
7
+ export declare const Message: React.FC<MessageProps>;
@@ -0,0 +1 @@
1
+ export * from './Message';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ThemeProviderProps } from '@marigold/system';
3
+ export declare const MarigoldProvider: React.FC<ThemeProviderProps>;
@@ -0,0 +1,3 @@
1
+ export { useTheme, ThemeProvider } from '@marigold/system';
2
+ export * from './MarigoldProvider';
3
+ export { SSRProvider } from '@react-aria/ssr';
@@ -1,3 +1,15 @@
1
- declare type RadioProps = {};
2
- export declare const Radio: import("@marigold/system").SystemComponent<RadioProps, "input">;
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ declare type RadioInputProps = {
4
+ variant?: string;
5
+ error?: boolean;
6
+ } & ComponentProps<'input'>;
7
+ export declare type RadioProps = {
8
+ id: string;
9
+ label?: string;
10
+ required?: boolean;
11
+ error?: boolean;
12
+ errorMessage?: string;
13
+ } & RadioInputProps;
14
+ export declare const Radio: React.FC<RadioProps>;
3
15
  export {};
@@ -0,0 +1,9 @@
1
+ export declare const RadioChecked: ({ disabled, ...props }: {
2
+ [x: string]: any;
3
+ disabled?: boolean | undefined;
4
+ }) => JSX.Element;
5
+ export declare const RadioUnchecked: ({ disabled, error, ...props }: {
6
+ [x: string]: any;
7
+ disabled?: boolean | undefined;
8
+ error?: boolean | undefined;
9
+ }) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { AriaListBoxOptions } from '@react-aria/listbox';
2
+ import type { ListState } from '@react-stately/list';
3
+ interface ListBoxProps extends AriaListBoxOptions<unknown> {
4
+ state: ListState<unknown>;
5
+ error?: boolean;
6
+ }
7
+ export declare const ListBox: (props: ListBoxProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ListState } from '@react-stately/list';
2
+ import type { Node } from '@react-types/shared';
3
+ interface SectionProps {
4
+ section: Node<unknown>;
5
+ state: ListState<unknown>;
6
+ }
7
+ export declare const ListBoxSection: ({ section, state }: SectionProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ListState } from '@react-stately/list';
2
+ import type { Node } from '@react-types/shared';
3
+ interface OptionProps {
4
+ item: Node<unknown>;
5
+ state: ListState<unknown>;
6
+ }
7
+ export declare const Option: ({ item, state }: OptionProps) => JSX.Element;
8
+ 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,13 @@
1
- declare type SelectProps = {};
2
- export declare const Select: import("@marigold/system").SystemComponent<SelectProps, "select">;
3
- export {};
1
+ import type { AriaSelectProps } from '@react-types/select';
2
+ import { SingleSelection } from '@react-types/shared';
3
+ import { ComponentProps } from '@marigold/types';
4
+ import { ResponsiveStyleValue } from '@marigold/system';
5
+ export declare type SelectProps = {
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ required?: boolean;
9
+ width?: ResponsiveStyleValue<number | string>;
10
+ error?: boolean;
11
+ errorMessage?: string;
12
+ } & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
13
+ export declare const Select: ({ placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
@@ -1,3 +1,6 @@
1
- declare type SliderProps = {};
2
- export declare const Slider: import("@marigold/system").SystemComponent<SliderProps, "input">;
3
- export {};
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type SliderProps = {
4
+ variant?: string;
5
+ } & ComponentProps<'input'>;
6
+ export declare const Slider: React.FC<SliderProps>;
@@ -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 @@
1
+ export * from './Stack';
@@ -1,3 +1,12 @@
1
- declare type TextProps = {};
2
- export declare const Text: import("@marigold/system").SystemComponent<TextProps, "span">;
3
- export {};
1
+ import { ResponsiveStyleValue } from '@marigold/system';
2
+ import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
3
+ import { BoxOwnProps } from '../Box';
4
+ export declare type TextOwnProps = {
5
+ align?: ResponsiveStyleValue<string>;
6
+ color?: ResponsiveStyleValue<string>;
7
+ cursor?: ResponsiveStyleValue<string>;
8
+ outline?: ResponsiveStyleValue<string>;
9
+ userSelect?: ResponsiveStyleValue<string>;
10
+ } & BoxOwnProps;
11
+ export declare type TextProps = PolymorphicPropsWithRef<TextOwnProps, 'span'>;
12
+ export declare const Text: PolymorphicComponentWithRef<TextOwnProps, 'span'>;
@@ -1,3 +1,11 @@
1
- declare type TextareaProps = {};
2
- export declare const Textarea: import("@marigold/system").SystemComponent<TextareaProps, "textarea">;
3
- export {};
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type TextareaProps = {
4
+ variant?: string;
5
+ label?: string;
6
+ htmlFor?: string;
7
+ required?: boolean;
8
+ error?: boolean;
9
+ errorMessage?: string;
10
+ } & ComponentProps<'textarea'>;
11
+ export declare const Textarea: React.FC<TextareaProps>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ComponentProps } from '@marigold/types';
3
+ export declare type ValidationMessageProps = {
4
+ variant?: string;
5
+ } & ComponentProps<'span'>;
6
+ export declare const ValidationMessage: React.FC<ValidationMessageProps>;
@@ -0,0 +1 @@
1
+ export * from './ValidationMessage';