@marigold/components 0.3.3 → 0.4.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 +19 -0
- package/dist/index.d.ts +364 -32
- package/dist/index.js +1421 -5
- package/dist/index.mjs +1369 -0
- package/package.json +29 -10
- 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,24 @@
|
|
|
1
1
|
# @marigold/components
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - chore: Use `tsup` to build packages
|
|
8
|
+
|
|
9
|
+
* [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - Improved size in node_modules
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - feat(comp): Rewrite Textarea with react-aria
|
|
14
|
+
|
|
15
|
+
* [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - feat(comp): rewrite Field component with react-aria
|
|
16
|
+
|
|
17
|
+
* Updated dependencies [[`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942), [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942)]:
|
|
18
|
+
- @marigold/icons@0.4.0
|
|
19
|
+
- @marigold/system@0.4.0
|
|
20
|
+
- @marigold/types@0.4.0
|
|
21
|
+
|
|
3
22
|
## 0.3.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,364 @@
|
|
|
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
|
+
declare type AlertProps = {
|
|
48
|
+
variant?: AlertVariants;
|
|
49
|
+
} & ComponentProps<'div'>;
|
|
50
|
+
declare const Alert: React.FC<AlertProps>;
|
|
51
|
+
|
|
52
|
+
interface BadgeThemeExtension<Value> {
|
|
53
|
+
badge?: {
|
|
54
|
+
[key: string]: Value;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
declare type BadgeProps = {
|
|
58
|
+
variant?: string;
|
|
59
|
+
bgColor?: string;
|
|
60
|
+
borderColor?: string;
|
|
61
|
+
} & ComponentProps<'div'>;
|
|
62
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
63
|
+
|
|
64
|
+
interface ButtonThemeExtension<Value> {
|
|
65
|
+
button?: {
|
|
66
|
+
[key: string]: Value;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
declare type ButtonProps = PolymorphicPropsWithRef<BoxOwnProps, 'button'>;
|
|
70
|
+
declare const Button: PolymorphicComponentWithRef<BoxOwnProps, 'button'>;
|
|
71
|
+
|
|
72
|
+
interface CardThemeExtension<Value> {
|
|
73
|
+
card?: {
|
|
74
|
+
[key: string]: Value;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
declare type CardProps = {
|
|
78
|
+
title?: string;
|
|
79
|
+
width?: ResponsiveStyleValue<string>;
|
|
80
|
+
variant?: string;
|
|
81
|
+
} & ComponentProps<'div'>;
|
|
82
|
+
declare const Card: React.FC<CardProps>;
|
|
83
|
+
|
|
84
|
+
declare type CheckboxIconProps = {
|
|
85
|
+
variant?: string;
|
|
86
|
+
checked?: boolean;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
error?: boolean;
|
|
89
|
+
children?: never;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
interface CheckboxThemeExtension<Value> {
|
|
93
|
+
checkbox?: {
|
|
94
|
+
[key: string]: Value;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
declare type CheckboxInputProps = CheckboxIconProps & ToggleProps & ComponentProps<'input'>;
|
|
98
|
+
declare type CheckboxProps = {
|
|
99
|
+
id: string;
|
|
100
|
+
label: string;
|
|
101
|
+
required?: boolean;
|
|
102
|
+
labelVariant?: string;
|
|
103
|
+
error?: boolean;
|
|
104
|
+
errorMessage?: string;
|
|
105
|
+
} & CheckboxInputProps;
|
|
106
|
+
declare const Checkbox: React.FC<CheckboxProps>;
|
|
107
|
+
|
|
108
|
+
interface DividerThemeExtension<Value> {
|
|
109
|
+
divider?: {
|
|
110
|
+
[key: string]: Value;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
declare type DividerProps = {
|
|
114
|
+
variant?: string;
|
|
115
|
+
} & SeparatorProps;
|
|
116
|
+
declare const Divider: React.FC<DividerProps>;
|
|
117
|
+
|
|
118
|
+
interface ImageThemeExtension<Value> {
|
|
119
|
+
image?: {
|
|
120
|
+
[key: string]: Value;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
declare type ImageProps = {
|
|
124
|
+
variant?: string;
|
|
125
|
+
children?: never;
|
|
126
|
+
} & ComponentProps<'img'>;
|
|
127
|
+
declare const Image: React.FC<ImageProps>;
|
|
128
|
+
|
|
129
|
+
interface InputThemeExtension<Value> {
|
|
130
|
+
input?: {
|
|
131
|
+
[key: string]: Value;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
declare type InputProps = {
|
|
135
|
+
variant?: string;
|
|
136
|
+
} & ComponentProps<'input'>;
|
|
137
|
+
declare const Input: React.FC<InputProps>;
|
|
138
|
+
|
|
139
|
+
interface LabelThemeExtension<Value> {
|
|
140
|
+
label?: {
|
|
141
|
+
[key: string]: Value;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
declare type LabelBaseProps = {
|
|
145
|
+
htmlFor?: string;
|
|
146
|
+
variant?: string;
|
|
147
|
+
required?: boolean;
|
|
148
|
+
color?: ResponsiveStyleValue<string>;
|
|
149
|
+
} & ComponentProps<'label'>;
|
|
150
|
+
declare const LabelBase: React.FC<LabelProps>;
|
|
151
|
+
declare type LabelProps = {
|
|
152
|
+
required?: boolean;
|
|
153
|
+
} & LabelBaseProps;
|
|
154
|
+
declare const Label: React.FC<LabelProps>;
|
|
155
|
+
|
|
156
|
+
interface TextThemeExtension<Value> {
|
|
157
|
+
text?: {
|
|
158
|
+
[key: string]: Value;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
declare type TextOwnProps = {
|
|
162
|
+
align?: ResponsiveStyleValue<string>;
|
|
163
|
+
color?: ResponsiveStyleValue<string>;
|
|
164
|
+
cursor?: ResponsiveStyleValue<string>;
|
|
165
|
+
outline?: ResponsiveStyleValue<string>;
|
|
166
|
+
userSelect?: ResponsiveStyleValue<string>;
|
|
167
|
+
} & BoxOwnProps;
|
|
168
|
+
declare type TextProps = PolymorphicPropsWithRef<TextOwnProps, 'span'>;
|
|
169
|
+
declare const Text: PolymorphicComponentWithRef<TextOwnProps, 'span'>;
|
|
170
|
+
|
|
171
|
+
interface LinkThemeExtension<Value> {
|
|
172
|
+
link?: Value;
|
|
173
|
+
}
|
|
174
|
+
declare type LinkOwnProps = {
|
|
175
|
+
disabled?: boolean;
|
|
176
|
+
} & TextOwnProps;
|
|
177
|
+
declare type LinkProps = PolymorphicProps<LinkOwnProps, 'a'>;
|
|
178
|
+
declare const Link: PolymorphicComponent<LinkOwnProps, "a">;
|
|
179
|
+
|
|
180
|
+
interface MenuThemeExtension<Value> {
|
|
181
|
+
menu?: Value;
|
|
182
|
+
}
|
|
183
|
+
declare type MenuProps = {
|
|
184
|
+
variant?: string;
|
|
185
|
+
label?: string;
|
|
186
|
+
onClick: ComponentProps<typeof Button>['onClick'];
|
|
187
|
+
show?: boolean;
|
|
188
|
+
className?: string;
|
|
189
|
+
title?: string;
|
|
190
|
+
};
|
|
191
|
+
declare const Menu: React.FC<MenuProps>;
|
|
192
|
+
|
|
193
|
+
interface MenuItemThemeExtension<Value> {
|
|
194
|
+
menuItem?: {
|
|
195
|
+
[key: string]: Value;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
declare type MenuItemProps = {
|
|
199
|
+
variant?: string;
|
|
200
|
+
} & ComponentProps<typeof Link>;
|
|
201
|
+
declare const MenuItem: React.FC<MenuItemProps>;
|
|
202
|
+
|
|
203
|
+
interface MessageThemeExtension<Value> {
|
|
204
|
+
message?: {
|
|
205
|
+
[key: string]: Value;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
declare type MessageProps = {
|
|
209
|
+
messageTitle: string;
|
|
210
|
+
variant?: string;
|
|
211
|
+
} & ComponentProps<'div'>;
|
|
212
|
+
declare const Message: React.FC<MessageProps>;
|
|
213
|
+
|
|
214
|
+
declare type RadioIconProps = {
|
|
215
|
+
variant?: string;
|
|
216
|
+
checked?: boolean;
|
|
217
|
+
disabled?: boolean;
|
|
218
|
+
error?: boolean;
|
|
219
|
+
children?: never;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
interface RadioThemeExtension<Value> {
|
|
223
|
+
radio?: {
|
|
224
|
+
[key: string]: Value;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
declare type RadioInputProps = RadioIconProps & ComponentProps<'input'>;
|
|
228
|
+
declare type RadioProps = {
|
|
229
|
+
id: string;
|
|
230
|
+
label: string;
|
|
231
|
+
required?: boolean;
|
|
232
|
+
labelVariant?: string;
|
|
233
|
+
error?: boolean;
|
|
234
|
+
errorMessage?: string;
|
|
235
|
+
} & RadioInputProps;
|
|
236
|
+
declare const Radio: React.FC<RadioProps>;
|
|
237
|
+
|
|
238
|
+
interface SelectThemeExtension<Value> {
|
|
239
|
+
select?: {
|
|
240
|
+
__default: Value;
|
|
241
|
+
disabled?: Value;
|
|
242
|
+
listbox?: {
|
|
243
|
+
__default: Value;
|
|
244
|
+
error?: Value;
|
|
245
|
+
};
|
|
246
|
+
section?: Value;
|
|
247
|
+
option?: Value;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
declare type SelectProps = {
|
|
251
|
+
labelVariant?: string;
|
|
252
|
+
placeholder?: string;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
required?: boolean;
|
|
255
|
+
width?: ResponsiveStyleValue<number | string>;
|
|
256
|
+
error?: boolean;
|
|
257
|
+
errorMessage?: string;
|
|
258
|
+
} & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
|
|
259
|
+
declare const Select: ({ labelVariant, placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
|
|
260
|
+
|
|
261
|
+
interface SliderThemeExtension<Value> {
|
|
262
|
+
slider?: {
|
|
263
|
+
[key: string]: Value;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
declare type SliderProps = {
|
|
267
|
+
variant?: string;
|
|
268
|
+
} & ComponentProps<'input'>;
|
|
269
|
+
declare const Slider: React.FC<SliderProps>;
|
|
270
|
+
|
|
271
|
+
interface TextareaThemeExtension<Value> {
|
|
272
|
+
textarea?: {
|
|
273
|
+
[key: string]: Value;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
declare type TextareaProps = {
|
|
277
|
+
variant?: string;
|
|
278
|
+
htmlFor: string;
|
|
279
|
+
required?: boolean;
|
|
280
|
+
error?: boolean;
|
|
281
|
+
} & AriaTextFieldProps & ComponentProps<'textarea'>;
|
|
282
|
+
declare const Textarea: React.FC<TextareaProps>;
|
|
283
|
+
|
|
284
|
+
interface ValidationMessageThemeExtension<Value> {
|
|
285
|
+
validation?: {
|
|
286
|
+
[key: string]: Value;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
declare type ValidationMessageProps = {
|
|
290
|
+
variant?: string;
|
|
291
|
+
} & ComponentProps<'span'>;
|
|
292
|
+
declare const ValidationMessage: React.FC<ValidationMessageProps>;
|
|
293
|
+
|
|
294
|
+
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> {
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare type ActionGroupProps = {
|
|
298
|
+
space?: ResponsiveStyleValue<string>;
|
|
299
|
+
verticalAlignment?: boolean;
|
|
300
|
+
} & ComponentProps<'div'>;
|
|
301
|
+
declare const ActionGroup: React.FC<ActionGroupProps>;
|
|
302
|
+
|
|
303
|
+
declare type WidthValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
304
|
+
declare type ColumnProps = {
|
|
305
|
+
className?: string;
|
|
306
|
+
width?: WidthValues | WidthValues[];
|
|
307
|
+
};
|
|
308
|
+
declare const Column: React.FC<ColumnProps>;
|
|
309
|
+
|
|
310
|
+
declare type ColumnsProps = {
|
|
311
|
+
className?: string;
|
|
312
|
+
space?: ResponsiveStyleValue<string>;
|
|
313
|
+
horizontalAlign?: 'left' | 'right' | 'center';
|
|
314
|
+
verticalAlign?: 'top' | 'bottom' | 'center';
|
|
315
|
+
};
|
|
316
|
+
declare const Columns: React.FC<ColumnsProps>;
|
|
317
|
+
|
|
318
|
+
declare type ModalDialogProps = {
|
|
319
|
+
variant?: string;
|
|
320
|
+
backdropVariant?: string;
|
|
321
|
+
} & OverlayProps & AriaDialogProps;
|
|
322
|
+
|
|
323
|
+
declare type DialogProps = {
|
|
324
|
+
backdropVariant?: string;
|
|
325
|
+
close: ComponentProps<typeof Button>['onClick'];
|
|
326
|
+
isOpen: boolean;
|
|
327
|
+
title?: string;
|
|
328
|
+
variant?: string;
|
|
329
|
+
} & ModalDialogProps & ComponentProps<'div'>;
|
|
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
|
+
declare type InlineProps = {
|
|
347
|
+
space?: ResponsiveStyleValue<string>;
|
|
348
|
+
align?: 'top' | 'center' | 'bottom';
|
|
349
|
+
};
|
|
350
|
+
declare const Inline: React.FC<InlineProps>;
|
|
351
|
+
|
|
352
|
+
declare type StackProps = {
|
|
353
|
+
space?: ResponsiveStyleValue<string>;
|
|
354
|
+
align?: 'left' | 'right' | 'center';
|
|
355
|
+
};
|
|
356
|
+
declare const Stack: React.FC<StackProps>;
|
|
357
|
+
|
|
358
|
+
declare type ContainerProps = {
|
|
359
|
+
className?: string;
|
|
360
|
+
title?: string;
|
|
361
|
+
};
|
|
362
|
+
declare const Container: React.FC<ContainerProps>;
|
|
363
|
+
|
|
364
|
+
export { ActionGroup, ActionGroupProps, Alert, AlertProps, AlertThemeExtension, AlertVariants, Badge, BadgeProps, BadgeThemeExtension, Button, ButtonProps, ButtonThemeExtension, Card, CardProps, CardThemeExtension, Checkbox, CheckboxProps, CheckboxThemeExtension, Column, ColumnProps, Columns, 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 };
|