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