@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.
- package/CHANGELOG.md +294 -0
- package/dist/ActionGroup/ActionGroup.d.ts +8 -0
- package/dist/ActionGroup/ActionGroup.stories.d.ts +5 -0
- package/dist/ActionGroup/index.d.ts +1 -0
- package/dist/Alert/Alert.d.ts +16 -3
- package/dist/Alert/Alert.stories.d.ts +5 -0
- package/dist/Badge/Badge.d.ts +11 -5
- package/dist/Badge/Badge.stories.d.ts +5 -0
- package/dist/Box.d.ts +2 -0
- package/dist/Button/Button.d.ts +9 -5
- package/dist/Button/Button.stories.d.ts +5 -0
- package/dist/Card/Card.d.ts +14 -0
- package/dist/Card/Card.stories.d.ts +5 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Checkbox/Checkbox.d.ts +17 -5
- package/dist/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/Checkbox/CheckboxIcons.d.ts +9 -0
- package/dist/Column/Column.d.ts +6 -4
- package/dist/Column/Column.stories.d.ts +5 -0
- package/dist/Columns/Columns.d.ts +10 -0
- package/dist/Columns/Columns.stories.d.ts +5 -0
- package/dist/Columns/index.d.ts +1 -0
- package/dist/Container/Container.d.ts +5 -4
- package/dist/Container/Container.stories.d.ts +5 -0
- package/dist/Dialog/Dialog.d.ts +17 -0
- package/dist/Dialog/Dialog.stories.d.ts +5 -0
- package/dist/Dialog/ModalDialog.d.ts +8 -0
- package/dist/Dialog/index.d.ts +1 -0
- package/dist/Divider/Divider.d.ts +10 -3
- package/dist/Divider/Divider.stories.d.ts +5 -0
- package/dist/Field/Field.d.ts +10 -5
- package/dist/Field/Field.stories.d.ts +5 -0
- package/dist/Image/Image.d.ts +11 -5
- package/dist/Image/Image.stories.d.ts +5 -0
- package/dist/Inline/Inline.d.ts +7 -0
- package/dist/Inline/Inline.stories.d.ts +5 -0
- package/dist/Inline/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +10 -4
- package/dist/Input/Input.stories.d.ts +5 -0
- package/dist/Label/Label.d.ts +18 -5
- package/dist/Label/Label.stories.d.ts +5 -0
- package/dist/Link/Link.d.ts +10 -5
- package/dist/Link/Link.stories.d.ts +5 -0
- package/dist/Menu/Menu.d.ts +11 -4
- package/dist/Menu/Menu.stories.d.ts +5 -0
- package/dist/MenuItem/MenuItem.d.ts +11 -4
- package/dist/MenuItem/MenuItem.stories.d.ts +5 -0
- package/dist/Message/Message.d.ts +10 -4
- package/dist/Message/Message.stories.d.ts +5 -0
- package/dist/Provider/MarigoldProvider.d.ts +11 -0
- package/dist/Provider/index.d.ts +3 -0
- package/dist/Radio/Radio.d.ts +17 -4
- package/dist/Radio/RadioIcons.d.ts +10 -0
- package/dist/Select/ListBox.d.ts +9 -0
- package/dist/Select/ListBoxSection.d.ts +9 -0
- package/dist/Select/Option.d.ts +9 -0
- package/dist/Select/Popover.d.ts +9 -0
- package/dist/Select/Select.d.ts +27 -3
- package/dist/Select/Select.stories.d.ts +5 -0
- package/dist/Slider/Slider.d.ts +10 -4
- package/dist/Slider/Slider.stories.d.ts +5 -0
- package/dist/Stack/Stack.d.ts +7 -0
- package/dist/Stack/Stack.stories.d.ts +5 -0
- package/dist/Stack/index.d.ts +1 -0
- package/dist/Text/Text.d.ts +17 -7
- package/dist/Text/Text.stories.d.ts +5 -0
- package/dist/Textarea/Textarea.d.ts +15 -4
- package/dist/Textarea/Textarea.stories.d.ts +5 -0
- package/dist/ValidationMessage/ValidationMessage.d.ts +10 -4
- package/dist/ValidationMessage/ValidationMessage.stories.d.ts +5 -0
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/VisuallyHidden/VisuallyHidden.stories.d.ts +5 -0
- package/dist/VisuallyHidden/index.d.ts +1 -0
- package/dist/components.cjs.development.js +1276 -461
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +1229 -461
- package/dist/components.esm.js.map +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/theme.d.ts +23 -28
- package/package.json +27 -4
- package/src/ActionGroup/ActionGroup.stories.tsx +47 -0
- package/src/ActionGroup/ActionGroup.test.tsx +83 -0
- package/src/ActionGroup/ActionGroup.tsx +32 -0
- package/src/ActionGroup/index.ts +1 -0
- package/src/Alert/Alert.stories.tsx +32 -0
- package/src/Alert/Alert.test.tsx +34 -23
- package/src/Alert/Alert.tsx +48 -24
- package/src/Badge/Badge.stories.tsx +38 -0
- package/src/Badge/Badge.test.tsx +14 -40
- package/src/Badge/Badge.tsx +31 -28
- package/src/Box.ts +2 -0
- package/src/Button/Button.stories.tsx +57 -0
- package/src/Button/Button.test.tsx +76 -13
- package/src/Button/Button.tsx +58 -23
- package/src/Card/Card.stories.tsx +41 -0
- package/src/Card/Card.test.tsx +71 -0
- package/src/Card/Card.tsx +48 -0
- package/src/Card/index.ts +1 -0
- package/src/Checkbox/Checkbox.stories.mdx +90 -112
- package/src/Checkbox/Checkbox.stories.tsx +78 -0
- package/src/Checkbox/Checkbox.test.tsx +139 -24
- package/src/Checkbox/Checkbox.tsx +95 -58
- package/src/Checkbox/CheckboxIcons.tsx +59 -0
- package/src/Column/Column.stories.tsx +33 -0
- package/src/Column/Column.test.tsx +15 -59
- package/src/Column/Column.tsx +21 -19
- package/src/Columns/Columns.stories.tsx +75 -0
- package/src/Columns/Columns.test.tsx +113 -0
- package/src/Columns/Columns.tsx +69 -0
- package/src/Columns/index.ts +1 -0
- package/src/Container/Container.stories.tsx +14 -0
- package/src/Container/Container.test.tsx +8 -49
- package/src/Container/Container.tsx +8 -19
- package/src/Dialog/Dialog.stories.tsx +88 -0
- package/src/Dialog/Dialog.test.tsx +158 -0
- package/src/Dialog/Dialog.tsx +130 -0
- package/src/Dialog/ModalDialog.tsx +76 -0
- package/src/Dialog/index.ts +1 -0
- package/src/Divider/Divider.stories.tsx +30 -0
- package/src/Divider/Divider.test.tsx +14 -6
- package/src/Divider/Divider.tsx +20 -13
- package/src/Field/Field.stories.tsx +110 -0
- package/src/Field/Field.test.tsx +75 -34
- package/src/Field/Field.tsx +50 -43
- package/src/Image/Image.stories.tsx +34 -0
- package/src/Image/Image.test.tsx +6 -3
- package/src/Image/Image.tsx +21 -15
- package/src/Inline/Inline.stories.tsx +39 -0
- package/src/Inline/Inline.test.tsx +99 -0
- package/src/Inline/Inline.tsx +38 -0
- package/src/Inline/index.ts +1 -0
- package/src/Input/Input.stories.tsx +54 -0
- package/src/Input/Input.test.tsx +9 -5
- package/src/Input/Input.tsx +21 -16
- package/src/Label/Label.stories.tsx +41 -0
- package/src/Label/Label.test.tsx +41 -6
- package/src/Label/Label.tsx +59 -18
- package/src/Link/Link.stories.tsx +35 -0
- package/src/Link/Link.test.tsx +52 -22
- package/src/Link/Link.tsx +40 -20
- package/src/Menu/Menu.stories.tsx +62 -0
- package/src/Menu/Menu.test.tsx +13 -7
- package/src/Menu/Menu.tsx +44 -38
- package/src/MenuItem/MenuItem.stories.tsx +30 -0
- package/src/MenuItem/MenuItem.test.tsx +23 -14
- package/src/MenuItem/MenuItem.tsx +29 -18
- package/src/Message/Message.stories.tsx +30 -0
- package/src/Message/Message.test.tsx +5 -2
- package/src/Message/Message.tsx +48 -40
- package/src/Provider/MarigoldProvider.test.tsx +136 -0
- package/src/Provider/MarigoldProvider.tsx +47 -0
- package/src/Provider/index.ts +4 -0
- package/src/Radio/Radio.stories.mdx +91 -94
- package/src/Radio/Radio.test.tsx +92 -16
- package/src/Radio/Radio.tsx +114 -50
- package/src/Radio/RadioIcons.tsx +39 -0
- package/src/Select/ListBox.tsx +40 -0
- package/src/Select/ListBoxSection.tsx +40 -0
- package/src/Select/Option.tsx +48 -0
- package/src/Select/Popover.tsx +50 -0
- package/src/Select/Select.stories.tsx +81 -0
- package/src/Select/Select.test.tsx +311 -43
- package/src/Select/Select.tsx +174 -28
- package/src/Slider/Slider.stories.tsx +24 -0
- package/src/Slider/Slider.test.tsx +11 -7
- package/src/Slider/Slider.tsx +30 -15
- package/src/Stack/Stack.stories.tsx +57 -0
- package/src/Stack/Stack.test.tsx +138 -0
- package/src/Stack/Stack.tsx +39 -0
- package/src/Stack/index.ts +1 -0
- package/src/Text/Text.stories.tsx +61 -0
- package/src/Text/Text.test.tsx +41 -36
- package/src/Text/Text.tsx +55 -29
- package/src/Textarea/Textarea.stories.tsx +64 -0
- package/src/Textarea/Textarea.test.tsx +41 -5
- package/src/Textarea/Textarea.tsx +57 -17
- package/src/ValidationMessage/ValidationMessage.stories.tsx +27 -0
- package/src/ValidationMessage/ValidationMessage.test.tsx +19 -14
- package/src/ValidationMessage/ValidationMessage.tsx +36 -21
- package/src/VisuallyHidden/VisuallyHidden.stories.tsx +19 -0
- package/src/VisuallyHidden/VisuallyHidden.test.tsx +10 -0
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -0
- package/src/VisuallyHidden/index.ts +1 -0
- package/src/index.ts +11 -3
- package/src/theme.ts +49 -28
- package/dist/Heading/Heading.d.ts +0 -5
- package/dist/Heading/index.d.ts +0 -1
- package/dist/Hidden/Hidden.d.ts +0 -6
- package/dist/Hidden/index.d.ts +0 -1
- package/dist/Svg/Svg.d.ts +0 -6
- package/dist/Svg/index.d.ts +0 -1
- package/src/Alert/Alert.stories.mdx +0 -49
- package/src/Badge/Badge.stories.mdx +0 -41
- package/src/Button/Button.stories.mdx +0 -155
- package/src/Column/Column.stories.mdx +0 -76
- package/src/Container/Container.stories.mdx +0 -42
- package/src/Divider/Divider.stories.mdx +0 -42
- package/src/Field/Field.stories.mdx +0 -57
- package/src/Heading/Heading.stories.mdx +0 -79
- package/src/Heading/Heading.test.tsx +0 -63
- package/src/Heading/Heading.tsx +0 -22
- package/src/Heading/index.ts +0 -1
- package/src/Hidden/Hidden.stories.mdx +0 -64
- package/src/Hidden/Hidden.test.tsx +0 -87
- package/src/Hidden/Hidden.tsx +0 -25
- package/src/Hidden/index.ts +0 -1
- package/src/Image/Image.stories.mdx +0 -40
- package/src/Input/Input.stories.mdx +0 -44
- package/src/Label/Label.stories.mdx +0 -34
- package/src/Link/Link.stories.mdx +0 -37
- package/src/Menu/Menu.stories.mdx +0 -47
- package/src/MenuItem/MenuItem.stories.mdx +0 -32
- package/src/Message/Message.stories.mdx +0 -43
- package/src/Select/Select.stories.mdx +0 -43
- package/src/Slider/Slider.stories.mdx +0 -57
- package/src/Svg/Svg.stories.mdx +0 -47
- package/src/Svg/Svg.test.tsx +0 -76
- package/src/Svg/Svg.tsx +0 -31
- package/src/Svg/index.ts +0 -1
- package/src/Text/Text.stories.mdx +0 -60
- package/src/Textarea/Textarea.stories.mdx +0 -34
- 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>;
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const Image:
|
|
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,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';
|
package/dist/Input/Input.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
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:
|
|
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>;
|
package/dist/Label/Label.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
6
|
-
|
|
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>;
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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>;
|
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
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:
|
|
10
|
+
onClick: ComponentProps<typeof Button>['onClick'];
|
|
5
11
|
show?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
title?: string;
|
|
6
14
|
};
|
|
7
|
-
export declare const Menu:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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;
|
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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 {};
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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>;
|
package/dist/Slider/Slider.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
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:
|
|
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,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';
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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:
|
|
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';
|