@marigold/components 0.2.0 → 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 +1 -2
- package/dist/ActionGroup/ActionGroup.stories.d.ts +5 -0
- package/dist/Alert/Alert.d.ts +10 -13
- package/dist/Alert/Alert.stories.d.ts +5 -0
- package/dist/Badge/Badge.d.ts +5 -0
- package/dist/Badge/Badge.stories.d.ts +5 -0
- package/dist/Box.d.ts +2 -0
- package/dist/Button/Button.d.ts +5 -0
- package/dist/Button/Button.stories.d.ts +5 -0
- package/dist/Card/Card.d.ts +5 -0
- package/dist/Card/Card.stories.d.ts +5 -0
- package/dist/Checkbox/Checkbox.d.ts +10 -5
- package/dist/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/Checkbox/CheckboxIcons.d.ts +9 -9
- package/dist/Column/Column.stories.d.ts +5 -0
- package/dist/Columns/Columns.d.ts +2 -2
- package/dist/Columns/Columns.stories.d.ts +5 -0
- package/dist/Container/Container.stories.d.ts +5 -0
- package/dist/Dialog/Dialog.d.ts +5 -2
- package/dist/Dialog/Dialog.stories.d.ts +5 -0
- package/dist/Dialog/ModalDialog.d.ts +4 -1
- package/dist/Divider/Divider.d.ts +5 -0
- package/dist/Divider/Divider.stories.d.ts +5 -0
- package/dist/Field/Field.d.ts +2 -0
- package/dist/Field/Field.stories.d.ts +5 -0
- package/dist/Image/Image.d.ts +5 -0
- 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 +5 -0
- package/dist/Input/Input.stories.d.ts +5 -0
- package/dist/Label/Label.d.ts +12 -1
- package/dist/Label/Label.stories.d.ts +5 -0
- package/dist/Link/Link.d.ts +4 -1
- package/dist/Link/Link.stories.d.ts +5 -0
- package/dist/Menu/Menu.d.ts +3 -0
- package/dist/Menu/Menu.stories.d.ts +5 -0
- package/dist/MenuItem/MenuItem.d.ts +5 -0
- package/dist/MenuItem/MenuItem.stories.d.ts +5 -0
- package/dist/Message/Message.d.ts +5 -0
- package/dist/Message/Message.stories.d.ts +5 -0
- package/dist/Provider/MarigoldProvider.d.ts +11 -3
- package/dist/Provider/index.d.ts +1 -1
- package/dist/Radio/Radio.d.ts +6 -0
- package/dist/Radio/RadioIcons.d.ts +1 -0
- package/dist/Select/ListBox.d.ts +1 -0
- package/dist/Select/ListBoxSection.d.ts +1 -0
- package/dist/Select/Option.d.ts +1 -0
- package/dist/Select/Select.d.ts +15 -1
- package/dist/Select/Select.stories.d.ts +5 -0
- package/dist/Slider/Slider.d.ts +5 -0
- package/dist/Slider/Slider.stories.d.ts +5 -0
- package/dist/Stack/Stack.stories.d.ts +5 -0
- package/dist/Text/Text.d.ts +5 -0
- package/dist/Text/Text.stories.d.ts +5 -0
- package/dist/Textarea/Textarea.d.ts +5 -0
- package/dist/Textarea/Textarea.stories.d.ts +5 -0
- package/dist/ValidationMessage/ValidationMessage.d.ts +5 -0
- 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 +480 -496
- 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 +415 -441
- package/dist/components.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/theme.d.ts +23 -48
- package/package.json +4 -1
- package/src/ActionGroup/ActionGroup.stories.tsx +47 -0
- package/src/ActionGroup/ActionGroup.test.tsx +36 -36
- package/src/ActionGroup/ActionGroup.tsx +17 -28
- package/src/Alert/Alert.stories.tsx +32 -0
- package/src/Alert/Alert.test.tsx +4 -1
- package/src/Alert/Alert.tsx +18 -3
- package/src/Badge/Badge.stories.tsx +38 -0
- package/src/Badge/Badge.test.tsx +5 -1
- package/src/Badge/Badge.tsx +13 -1
- package/src/Box.ts +2 -0
- package/src/Button/{Button.stories.mdx → Button.stories.tsx} +10 -17
- package/src/Button/Button.test.tsx +34 -11
- package/src/Button/Button.tsx +17 -3
- package/src/Card/{Card.stories.mdx → Card.stories.tsx} +9 -17
- package/src/Card/Card.test.tsx +8 -3
- package/src/Card/Card.tsx +13 -1
- package/src/Checkbox/Checkbox.stories.mdx +11 -0
- package/src/Checkbox/Checkbox.stories.tsx +78 -0
- package/src/Checkbox/Checkbox.test.tsx +77 -8
- package/src/Checkbox/Checkbox.tsx +70 -90
- package/src/Checkbox/CheckboxIcons.tsx +51 -41
- package/src/Column/Column.stories.tsx +33 -0
- package/src/Columns/Columns.stories.tsx +75 -0
- package/src/Columns/Columns.test.tsx +34 -23
- package/src/Columns/Columns.tsx +30 -30
- package/src/Container/Container.stories.tsx +14 -0
- package/src/Dialog/{Dialog.stories.mdx → Dialog.stories.tsx} +33 -18
- package/src/Dialog/Dialog.test.tsx +91 -20
- package/src/Dialog/Dialog.tsx +63 -17
- package/src/Dialog/ModalDialog.tsx +33 -4
- package/src/Divider/{Divider.stories.mdx → Divider.stories.tsx} +10 -17
- package/src/Divider/Divider.test.tsx +13 -5
- package/src/Divider/Divider.tsx +12 -0
- package/src/Field/{Field.stories.mdx → Field.stories.tsx} +33 -20
- package/src/Field/Field.test.tsx +55 -5
- package/src/Field/Field.tsx +10 -8
- package/src/Image/Image.stories.tsx +34 -0
- package/src/Image/Image.test.tsx +4 -1
- package/src/Image/Image.tsx +13 -1
- 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.mdx → Input.stories.tsx} +10 -17
- package/src/Input/Input.test.tsx +7 -3
- package/src/Input/Input.tsx +13 -1
- package/src/Label/{Label.stories.mdx → Label.stories.tsx} +10 -21
- package/src/Label/Label.test.tsx +25 -4
- package/src/Label/Label.tsx +42 -9
- package/src/Link/Link.stories.tsx +35 -0
- package/src/Link/Link.test.tsx +6 -2
- package/src/Link/Link.tsx +10 -0
- package/src/Menu/{Menu.stories.mdx → Menu.stories.tsx} +13 -32
- package/src/Menu/Menu.test.tsx +7 -2
- package/src/Menu/Menu.tsx +10 -0
- package/src/MenuItem/MenuItem.stories.tsx +30 -0
- package/src/MenuItem/MenuItem.test.tsx +7 -2
- package/src/MenuItem/MenuItem.tsx +12 -0
- package/src/Message/Message.stories.tsx +30 -0
- package/src/Message/Message.test.tsx +4 -1
- package/src/Message/Message.tsx +17 -5
- package/src/Provider/MarigoldProvider.test.tsx +65 -55
- package/src/Provider/MarigoldProvider.tsx +37 -19
- package/src/Provider/index.ts +2 -1
- package/src/Radio/Radio.stories.mdx +11 -0
- package/src/Radio/Radio.test.tsx +36 -2
- package/src/Radio/Radio.tsx +13 -2
- package/src/Radio/RadioIcons.tsx +1 -1
- package/src/Select/ListBox.tsx +1 -0
- package/src/Select/{Select.stories.mdx → Select.stories.tsx} +23 -20
- package/src/Select/Select.test.tsx +39 -1
- package/src/Select/Select.tsx +24 -13
- package/src/Slider/Slider.stories.tsx +24 -0
- package/src/Slider/Slider.test.tsx +10 -6
- package/src/Slider/Slider.tsx +25 -13
- package/src/Stack/Stack.stories.tsx +57 -0
- package/src/Stack/Stack.test.tsx +16 -7
- package/src/Text/{Text.stories.mdx → Text.stories.tsx} +20 -19
- package/src/Text/Text.test.tsx +2 -2
- package/src/Text/Text.tsx +12 -0
- package/src/Textarea/{Textarea.stories.mdx → Textarea.stories.tsx} +14 -24
- package/src/Textarea/Textarea.test.tsx +7 -3
- package/src/Textarea/Textarea.tsx +13 -1
- package/src/ValidationMessage/{ValidationMessage.stories.mdx → ValidationMessage.stories.tsx} +8 -17
- package/src/ValidationMessage/ValidationMessage.test.tsx +7 -2
- package/src/ValidationMessage/ValidationMessage.tsx +12 -0
- 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 +2 -2
- package/src/theme.ts +49 -48
- package/dist/Box/Box.d.ts +0 -47
- package/dist/Box/index.d.ts +0 -1
- package/dist/Heading/Heading.d.ts +0 -7
- package/dist/Heading/index.d.ts +0 -1
- package/dist/Hidden/Hidden.d.ts +0 -5
- package/dist/Hidden/index.d.ts +0 -1
- package/src/ActionGroup/ActionGroup.stories.mdx +0 -62
- package/src/Alert/Alert.stories.mdx +0 -35
- package/src/Badge/Badge.stories.mdx +0 -57
- package/src/Box/Box.stories.mdx +0 -334
- package/src/Box/Box.test.tsx +0 -133
- package/src/Box/Box.tsx +0 -165
- package/src/Box/index.ts +0 -1
- package/src/Column/Column.stories.mdx +0 -49
- package/src/Columns/Columns.stories.mdx +0 -65
- package/src/Container/Container.stories.mdx +0 -19
- package/src/Heading/Heading.stories.mdx +0 -39
- package/src/Heading/Heading.test.tsx +0 -77
- package/src/Heading/Heading.tsx +0 -19
- package/src/Heading/index.ts +0 -1
- package/src/Hidden/Hidden.stories.mdx +0 -39
- package/src/Hidden/Hidden.test.tsx +0 -24
- package/src/Hidden/Hidden.tsx +0 -16
- package/src/Hidden/index.ts +0 -1
- package/src/Image/Image.stories.mdx +0 -36
- package/src/Link/Link.stories.mdx +0 -45
- package/src/MenuItem/MenuItem.stories.mdx +0 -37
- package/src/Message/Message.stories.mdx +0 -44
- package/src/Slider/Slider.stories.mdx +0 -31
- package/src/Stack/Stack.stories.mdx +0 -51
package/dist/Input/Input.d.ts
CHANGED
|
@@ -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,8 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentProps } from '@marigold/types';
|
|
3
|
-
|
|
3
|
+
import { ResponsiveStyleValue } from '@marigold/system';
|
|
4
|
+
export interface LabelThemeExtension<Value> {
|
|
5
|
+
label?: {
|
|
6
|
+
[key: string]: Value;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare type LabelBaseProps = {
|
|
4
10
|
htmlFor?: string;
|
|
5
11
|
variant?: string;
|
|
6
12
|
required?: boolean;
|
|
13
|
+
color?: ResponsiveStyleValue<string>;
|
|
7
14
|
} & ComponentProps<'label'>;
|
|
15
|
+
export declare const LabelBase: React.FC<LabelProps>;
|
|
16
|
+
export declare type LabelProps = {
|
|
17
|
+
required?: boolean;
|
|
18
|
+
} & LabelBaseProps;
|
|
8
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,7 +1,10 @@
|
|
|
1
1
|
import { PolymorphicComponent, PolymorphicProps } from '@marigold/types';
|
|
2
2
|
import { TextOwnProps } from '../Text';
|
|
3
|
+
export interface LinkThemeExtension<Value> {
|
|
4
|
+
link?: Value;
|
|
5
|
+
}
|
|
3
6
|
export declare type LinkOwnProps = {
|
|
4
7
|
disabled?: boolean;
|
|
5
8
|
} & TextOwnProps;
|
|
6
9
|
export declare type LinkProps = PolymorphicProps<LinkOwnProps, 'a'>;
|
|
7
|
-
export declare const Link: PolymorphicComponent<
|
|
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
|
@@ -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,6 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentProps } from '@marigold/types';
|
|
3
3
|
import { Link } from '../Link';
|
|
4
|
+
export interface MenuItemThemeExtension<Value> {
|
|
5
|
+
menuItem?: {
|
|
6
|
+
[key: string]: Value;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
4
9
|
export declare type MenuItemProps = {
|
|
5
10
|
variant?: string;
|
|
6
11
|
} & ComponentProps<typeof Link>;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { ThemeProviderProps } from '@marigold/system';
|
|
3
|
-
export
|
|
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/Provider/index.d.ts
CHANGED
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export interface RadioThemeExtension<Value> {
|
|
4
|
+
radio?: {
|
|
5
|
+
[key: string]: Value;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
3
8
|
declare type RadioInputProps = {
|
|
4
9
|
variant?: string;
|
|
5
10
|
error?: boolean;
|
|
@@ -8,6 +13,7 @@ export declare type RadioProps = {
|
|
|
8
13
|
id: string;
|
|
9
14
|
label?: string;
|
|
10
15
|
required?: boolean;
|
|
16
|
+
labelVariant?: string;
|
|
11
17
|
error?: boolean;
|
|
12
18
|
errorMessage?: string;
|
|
13
19
|
} & RadioInputProps;
|
package/dist/Select/ListBox.d.ts
CHANGED
package/dist/Select/Option.d.ts
CHANGED
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { AriaSelectProps } from '@react-types/select';
|
|
2
3
|
import { SingleSelection } from '@react-types/shared';
|
|
3
4
|
import { ComponentProps } from '@marigold/types';
|
|
4
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
|
+
}
|
|
5
18
|
export declare type SelectProps = {
|
|
19
|
+
labelVariant?: string;
|
|
6
20
|
placeholder?: string;
|
|
7
21
|
disabled?: boolean;
|
|
8
22
|
required?: boolean;
|
|
@@ -10,4 +24,4 @@ export declare type SelectProps = {
|
|
|
10
24
|
error?: boolean;
|
|
11
25
|
errorMessage?: string;
|
|
12
26
|
} & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
|
|
13
|
-
export declare const Select: ({ placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
|
|
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,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export interface SliderThemeExtension<Value> {
|
|
4
|
+
slider?: {
|
|
5
|
+
[key: string]: Value;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
3
8
|
export declare type SliderProps = {
|
|
4
9
|
variant?: string;
|
|
5
10
|
} & ComponentProps<'input'>;
|
|
@@ -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>;
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ResponsiveStyleValue } from '@marigold/system';
|
|
2
2
|
import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
|
|
3
3
|
import { BoxOwnProps } from '../Box';
|
|
4
|
+
export interface TextThemeExtension<Value> {
|
|
5
|
+
text?: {
|
|
6
|
+
[key: string]: Value;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
4
9
|
export declare type TextOwnProps = {
|
|
5
10
|
align?: ResponsiveStyleValue<string>;
|
|
6
11
|
color?: ResponsiveStyleValue<string>;
|
|
@@ -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>;
|
|
@@ -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,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export interface ValidationMessageThemeExtension<Value> {
|
|
4
|
+
validation?: {
|
|
5
|
+
[key: string]: Value;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
3
8
|
export declare type ValidationMessageProps = {
|
|
4
9
|
variant?: string;
|
|
5
10
|
} & ComponentProps<'span'>;
|
|
@@ -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';
|