@marigold/components 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionGroup/ActionGroup.d.ts +9 -0
- package/dist/ActionGroup/index.d.ts +1 -0
- package/dist/Alert/Alert.d.ts +20 -2
- package/dist/Badge/Badge.d.ts +8 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Box/Box.d.ts +47 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Button/Button.d.ts +4 -3
- package/dist/Card/Card.d.ts +9 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Checkbox/Checkbox.d.ts +14 -2
- package/dist/Checkbox/CheckboxIcons.d.ts +9 -0
- package/dist/Column/Column.d.ts +8 -0
- package/dist/Column/index.d.ts +1 -0
- package/dist/Columns/Columns.d.ts +10 -0
- package/dist/Columns/index.d.ts +1 -0
- package/dist/Container/Container.d.ts +6 -0
- package/dist/Container/index.d.ts +1 -0
- package/dist/Dialog/Dialog.d.ts +14 -0
- package/dist/Dialog/ModalDialog.d.ts +5 -0
- package/dist/Dialog/index.d.ts +1 -0
- package/dist/Divider/Divider.d.ts +7 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Field/Field.d.ts +11 -0
- package/dist/Field/index.d.ts +1 -0
- package/dist/Heading/Heading.d.ts +7 -5
- package/dist/Hidden/Hidden.d.ts +5 -0
- package/dist/Hidden/index.d.ts +1 -0
- package/dist/Image/Image.d.ts +7 -0
- package/dist/Image/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +6 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Label/Label.d.ts +8 -5
- package/dist/Link/Link.d.ts +7 -3
- package/dist/Menu/Menu.d.ts +12 -0
- package/dist/Menu/index.d.ts +1 -0
- package/dist/MenuItem/MenuItem.d.ts +7 -0
- package/dist/MenuItem/index.d.ts +1 -0
- package/dist/Message/Message.d.ts +7 -0
- package/dist/Message/index.d.ts +1 -0
- package/dist/Provider/MarigoldProvider.d.ts +3 -0
- package/dist/Provider/index.d.ts +3 -0
- package/dist/Radio/Radio.d.ts +14 -2
- package/dist/Radio/RadioIcons.d.ts +9 -0
- package/dist/Select/ListBox.d.ts +8 -0
- package/dist/Select/ListBoxSection.d.ts +8 -0
- package/dist/Select/Option.d.ts +8 -0
- package/dist/Select/Popover.d.ts +9 -0
- package/dist/Select/Select.d.ts +13 -3
- package/dist/Slider/Slider.d.ts +6 -3
- package/dist/Stack/Stack.d.ts +7 -0
- package/dist/Stack/index.d.ts +1 -0
- package/dist/Text/Text.d.ts +12 -3
- package/dist/Textarea/Textarea.d.ts +11 -3
- package/dist/ValidationMessage/ValidationMessage.d.ts +6 -0
- package/dist/ValidationMessage/index.d.ts +1 -0
- package/dist/components.cjs.development.js +1308 -195
- 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 +1267 -185
- package/dist/components.esm.js.map +1 -1
- package/dist/index.d.ts +21 -4
- package/dist/theme.d.ts +24 -4
- package/package.json +24 -4
- package/src/ActionGroup/ActionGroup.stories.mdx +62 -0
- package/src/ActionGroup/ActionGroup.test.tsx +83 -0
- package/src/ActionGroup/ActionGroup.tsx +43 -0
- package/src/ActionGroup/index.ts +1 -0
- package/src/Alert/Alert.stories.mdx +30 -42
- package/src/Alert/Alert.test.tsx +37 -22
- package/src/Alert/Alert.tsx +31 -21
- package/src/Badge/Badge.stories.mdx +57 -0
- package/src/Badge/Badge.test.tsx +61 -0
- package/src/Badge/Badge.tsx +25 -0
- package/src/Badge/index.ts +1 -0
- package/src/Box/Box.stories.mdx +334 -0
- package/src/Box/Box.test.tsx +133 -0
- package/src/Box/Box.tsx +165 -0
- package/src/Box/index.ts +1 -0
- package/src/Button/Button.stories.mdx +58 -134
- package/src/Button/Button.test.tsx +65 -23
- package/src/Button/Button.tsx +48 -14
- package/src/Card/Card.stories.mdx +49 -0
- package/src/Card/Card.test.tsx +66 -0
- package/src/Card/Card.tsx +36 -0
- package/src/Card/index.ts +1 -0
- package/src/Checkbox/Checkbox.stories.mdx +79 -101
- package/src/Checkbox/Checkbox.test.tsx +73 -32
- package/src/Checkbox/Checkbox.tsx +114 -35
- package/src/Checkbox/CheckboxIcons.tsx +49 -0
- package/src/Column/Column.stories.mdx +49 -0
- package/src/Column/Column.test.tsx +32 -0
- package/src/Column/Column.tsx +27 -0
- package/src/Column/index.ts +1 -0
- package/src/Columns/Columns.stories.mdx +65 -0
- package/src/Columns/Columns.test.tsx +102 -0
- package/src/Columns/Columns.tsx +69 -0
- package/src/Columns/index.ts +1 -0
- package/src/Container/Container.stories.mdx +19 -0
- package/src/Container/Container.test.tsx +26 -0
- package/src/Container/Container.tsx +13 -0
- package/src/Container/index.ts +1 -0
- package/src/Dialog/Dialog.stories.mdx +73 -0
- package/src/Dialog/Dialog.test.tsx +87 -0
- package/src/Dialog/Dialog.tsx +84 -0
- package/src/Dialog/ModalDialog.tsx +47 -0
- package/src/Dialog/index.ts +1 -0
- package/src/Divider/Divider.stories.mdx +37 -0
- package/src/Divider/Divider.test.tsx +63 -0
- package/src/Divider/Divider.tsx +13 -0
- package/src/Divider/index.ts +1 -0
- package/src/Field/Field.stories.mdx +97 -0
- package/src/Field/Field.test.tsx +80 -0
- package/src/Field/Field.tsx +54 -0
- package/src/Field/index.ts +1 -0
- package/src/Heading/Heading.stories.mdx +36 -76
- package/src/Heading/Heading.test.tsx +31 -17
- package/src/Heading/Heading.tsx +15 -12
- package/src/Hidden/Hidden.stories.mdx +39 -0
- package/src/Hidden/Hidden.test.tsx +24 -0
- package/src/Hidden/Hidden.tsx +16 -0
- package/src/Hidden/index.ts +1 -0
- package/src/Image/Image.stories.mdx +36 -0
- package/src/Image/Image.test.tsx +70 -0
- package/src/Image/Image.tsx +13 -0
- package/src/Image/index.ts +1 -0
- package/src/Input/Input.stories.mdx +61 -0
- package/src/Input/Input.test.tsx +70 -0
- package/src/Input/Input.tsx +13 -0
- package/src/Input/index.ts +1 -0
- package/src/Label/Label.stories.mdx +50 -34
- package/src/Label/Label.test.tsx +45 -16
- package/src/Label/Label.tsx +26 -17
- package/src/Link/Link.stories.mdx +40 -31
- package/src/Link/Link.test.tsx +53 -28
- package/src/Link/Link.tsx +32 -14
- package/src/Menu/Menu.stories.mdx +81 -0
- package/src/Menu/Menu.test.tsx +79 -0
- package/src/Menu/Menu.tsx +41 -0
- package/src/Menu/index.ts +1 -0
- package/src/MenuItem/MenuItem.stories.mdx +37 -0
- package/src/MenuItem/MenuItem.test.tsx +63 -0
- package/src/MenuItem/MenuItem.tsx +23 -0
- package/src/MenuItem/index.ts +1 -0
- package/src/Message/Message.stories.mdx +44 -0
- package/src/Message/Message.test.tsx +87 -0
- package/src/Message/Message.tsx +43 -0
- package/src/Message/index.ts +1 -0
- package/src/Provider/MarigoldProvider.test.tsx +126 -0
- package/src/Provider/MarigoldProvider.tsx +29 -0
- package/src/Provider/index.ts +3 -0
- package/src/Radio/Radio.stories.mdx +80 -83
- package/src/Radio/Radio.test.tsx +63 -22
- package/src/Radio/Radio.tsx +110 -35
- package/src/Radio/RadioIcons.tsx +39 -0
- package/src/Select/ListBox.tsx +39 -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.mdx +72 -37
- package/src/Select/Select.test.tsx +271 -28
- package/src/Select/Select.tsx +158 -23
- package/src/Slider/Slider.stories.mdx +26 -54
- package/src/Slider/Slider.test.tsx +13 -13
- package/src/Slider/Slider.tsx +20 -18
- package/src/Stack/Stack.stories.mdx +51 -0
- package/src/Stack/Stack.test.tsx +129 -0
- package/src/Stack/Stack.tsx +39 -0
- package/src/Stack/index.ts +1 -0
- package/src/Text/Text.stories.mdx +53 -47
- package/src/Text/Text.test.tsx +55 -15
- package/src/Text/Text.tsx +44 -10
- package/src/Textarea/Textarea.stories.mdx +68 -21
- package/src/Textarea/Textarea.test.tsx +47 -16
- package/src/Textarea/Textarea.tsx +46 -14
- package/src/ValidationMessage/ValidationMessage.stories.mdx +36 -0
- package/src/ValidationMessage/ValidationMessage.test.tsx +63 -0
- package/src/ValidationMessage/ValidationMessage.tsx +28 -0
- package/src/ValidationMessage/index.ts +1 -0
- package/src/index.ts +22 -4
- package/src/theme.ts +24 -4
- package/dist/Svg/Svg.d.ts +0 -5
- package/dist/Svg/index.d.ts +0 -1
- package/dist/TextInput/TextInput.d.ts +0 -3
- package/dist/TextInput/index.d.ts +0 -1
- package/src/Svg/Svg.stories.mdx +0 -47
- package/src/Svg/Svg.test.tsx +0 -58
- package/src/Svg/Svg.tsx +0 -25
- package/src/Svg/index.ts +0 -1
- package/src/TextInput/TextInput.stories.mdx +0 -37
- package/src/TextInput/TextInput.test.tsx +0 -71
- package/src/TextInput/TextInput.tsx +0 -21
- package/src/TextInput/index.ts +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResponsiveStyleValue } from '@marigold/system';
|
|
3
|
+
import { ComponentProps } from '@marigold/types';
|
|
4
|
+
export declare type ActionGroupProps = {
|
|
5
|
+
variant?: string;
|
|
6
|
+
space?: ResponsiveStyleValue<number | string>;
|
|
7
|
+
verticalAlignment?: boolean;
|
|
8
|
+
} & ComponentProps<'div'>;
|
|
9
|
+
export declare const ActionGroup: React.FC<ActionGroupProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionGroup';
|
package/dist/Alert/Alert.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
declare const ICON_MAP: {
|
|
4
|
+
readonly success: ({ className, ...props }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
readonly warning: ({ className, ...props }: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
readonly error: ({ className, ...props }: {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare type AlertProps = {
|
|
18
|
+
variant?: keyof typeof ICON_MAP;
|
|
19
|
+
} & ComponentProps<'div'>;
|
|
20
|
+
export declare const Alert: React.FC<AlertProps>;
|
|
3
21
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Badge';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CSSObject, ResponsiveStyleValue } from '@marigold/system';
|
|
2
|
+
import { PolymorphicPropsWithRef, PolymorphicComponentWithRef } from '@marigold/types';
|
|
3
|
+
export declare type BoxOwnProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: string | string[];
|
|
6
|
+
css?: CSSObject;
|
|
7
|
+
display?: ResponsiveStyleValue<string>;
|
|
8
|
+
height?: ResponsiveStyleValue<number | string>;
|
|
9
|
+
width?: ResponsiveStyleValue<number | string>;
|
|
10
|
+
minWidth?: ResponsiveStyleValue<number | string>;
|
|
11
|
+
maxWidth?: ResponsiveStyleValue<number | string>;
|
|
12
|
+
position?: ResponsiveStyleValue<string>;
|
|
13
|
+
top?: ResponsiveStyleValue<number | string>;
|
|
14
|
+
bottom?: ResponsiveStyleValue<number | string>;
|
|
15
|
+
right?: ResponsiveStyleValue<number | string>;
|
|
16
|
+
left?: ResponsiveStyleValue<number | string>;
|
|
17
|
+
zIndex?: ResponsiveStyleValue<number | string>;
|
|
18
|
+
p?: ResponsiveStyleValue<number | string>;
|
|
19
|
+
px?: ResponsiveStyleValue<number | string>;
|
|
20
|
+
py?: ResponsiveStyleValue<number | string>;
|
|
21
|
+
pt?: ResponsiveStyleValue<number | string>;
|
|
22
|
+
pb?: ResponsiveStyleValue<number | string>;
|
|
23
|
+
pl?: ResponsiveStyleValue<number | string>;
|
|
24
|
+
pr?: ResponsiveStyleValue<number | string>;
|
|
25
|
+
m?: ResponsiveStyleValue<number | string>;
|
|
26
|
+
mx?: ResponsiveStyleValue<number | string>;
|
|
27
|
+
my?: ResponsiveStyleValue<number | string>;
|
|
28
|
+
mt?: ResponsiveStyleValue<number | string>;
|
|
29
|
+
mb?: ResponsiveStyleValue<number | string>;
|
|
30
|
+
ml?: ResponsiveStyleValue<number | string>;
|
|
31
|
+
mr?: ResponsiveStyleValue<number | string>;
|
|
32
|
+
flexDirection?: ResponsiveStyleValue<string>;
|
|
33
|
+
flexWrap?: ResponsiveStyleValue<string>;
|
|
34
|
+
flexShrink?: ResponsiveStyleValue<number | string>;
|
|
35
|
+
flexGrow?: ResponsiveStyleValue<number | string>;
|
|
36
|
+
alignItems?: ResponsiveStyleValue<string>;
|
|
37
|
+
justifyContent?: ResponsiveStyleValue<string>;
|
|
38
|
+
bg?: ResponsiveStyleValue<number | string>;
|
|
39
|
+
border?: ResponsiveStyleValue<number | string>;
|
|
40
|
+
borderRadius?: ResponsiveStyleValue<number | string>;
|
|
41
|
+
boxShadow?: ResponsiveStyleValue<number | string>;
|
|
42
|
+
opacity?: ResponsiveStyleValue<number | string>;
|
|
43
|
+
overflow?: ResponsiveStyleValue<string>;
|
|
44
|
+
transition?: ResponsiveStyleValue<number | string>;
|
|
45
|
+
};
|
|
46
|
+
export declare type BoxProps = PolymorphicPropsWithRef<BoxOwnProps, 'div'>;
|
|
47
|
+
export declare const Box: PolymorphicComponentWithRef<BoxOwnProps, 'div'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Box';
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
|
|
2
|
+
import { BoxOwnProps } from '../Box';
|
|
3
|
+
export declare type ButtonProps = PolymorphicPropsWithRef<BoxOwnProps, 'button'>;
|
|
4
|
+
export declare const Button: PolymorphicComponentWithRef<BoxOwnProps, 'button'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResponsiveStyleValue } from '@marigold/system';
|
|
3
|
+
import { ComponentProps } from '@marigold/types';
|
|
4
|
+
export declare type CardProps = {
|
|
5
|
+
title?: string;
|
|
6
|
+
width?: ResponsiveStyleValue<string>;
|
|
7
|
+
variant?: string;
|
|
8
|
+
} & ComponentProps<'div'>;
|
|
9
|
+
export declare const Card: React.FC<CardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Card';
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
declare type CheckboxInputProps = {
|
|
4
|
+
variant?: string;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
} & ComponentProps<'input'>;
|
|
7
|
+
export declare type CheckboxProps = {
|
|
8
|
+
id: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
} & CheckboxInputProps;
|
|
14
|
+
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
3
15
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CheckboxChecked: ({ disabled, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean | undefined;
|
|
4
|
+
}) => JSX.Element;
|
|
5
|
+
export declare const CheckboxUnchecked: ({ disabled, error, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
error?: boolean | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type WidthValues = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3
|
+
export declare type ColumnProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
width?: WidthValues | WidthValues[];
|
|
6
|
+
};
|
|
7
|
+
export declare const Column: React.FC<ColumnProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Column';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ColumnsProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
space?: number;
|
|
5
|
+
horizontalAlign?: 'left' | 'right' | 'center';
|
|
6
|
+
verticalAlign?: 'top' | 'bottom' | 'center';
|
|
7
|
+
title?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const Columns: React.FC<ColumnsProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Columns';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Container';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
import { Button } from '../Button';
|
|
4
|
+
export declare type DialogProps = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
close: ComponentProps<typeof Button>['onClick'];
|
|
7
|
+
title?: string;
|
|
8
|
+
} & ComponentProps<'div'>;
|
|
9
|
+
export declare const Dialog: React.FC<DialogProps>;
|
|
10
|
+
export declare const useDialogButtonProps: () => {
|
|
11
|
+
state: import("@react-stately/overlays").OverlayTriggerState;
|
|
12
|
+
openButtonProps: React.HTMLAttributes<HTMLSpanElement>;
|
|
13
|
+
openButtonRef: React.RefObject<HTMLElement>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverlayProps } from '@react-aria/overlays';
|
|
3
|
+
import { AriaDialogProps } from '@react-types/dialog';
|
|
4
|
+
export declare type ModalDialogProps = OverlayProps & AriaDialogProps;
|
|
5
|
+
export declare const ModalDialog: React.FC<ModalDialogProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export declare type FieldProps = {
|
|
4
|
+
htmlFor: string;
|
|
5
|
+
label: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
} & ComponentProps<'input'>;
|
|
11
|
+
export declare const Field: React.FC<FieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Field';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export declare type HeadingProps = {
|
|
4
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
|
+
variant?: string;
|
|
6
|
+
} & ComponentProps<'h1'>;
|
|
7
|
+
export declare const Heading: React.FC<HeadingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Hidden';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Image';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
package/dist/Label/Label.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export declare type LabelProps = {
|
|
4
|
+
htmlFor?: string;
|
|
5
|
+
variant?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
} & ComponentProps<'label'>;
|
|
8
|
+
export declare const Label: React.FC<LabelProps>;
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import { PolymorphicComponent, PolymorphicProps } from '@marigold/types';
|
|
2
|
+
import { TextOwnProps } from '../Text';
|
|
3
|
+
export declare type LinkOwnProps = {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
} & TextOwnProps;
|
|
6
|
+
export declare type LinkProps = PolymorphicProps<LinkOwnProps, 'a'>;
|
|
7
|
+
export declare const Link: PolymorphicComponent<LinkOwnProps, "a">;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
import { Button } from '../Button';
|
|
4
|
+
export declare type MenuProps = {
|
|
5
|
+
variant?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
onClick: ComponentProps<typeof Button>['onClick'];
|
|
8
|
+
show?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Menu: React.FC<MenuProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MenuItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Message';
|
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
declare type RadioInputProps = {
|
|
4
|
+
variant?: string;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
} & ComponentProps<'input'>;
|
|
7
|
+
export declare type RadioProps = {
|
|
8
|
+
id: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
} & RadioInputProps;
|
|
14
|
+
export declare const Radio: React.FC<RadioProps>;
|
|
3
15
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RadioChecked: ({ disabled, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean | undefined;
|
|
4
|
+
}) => JSX.Element;
|
|
5
|
+
export declare const RadioUnchecked: ({ disabled, error, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
error?: boolean | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AriaListBoxOptions } from '@react-aria/listbox';
|
|
2
|
+
import type { ListState } from '@react-stately/list';
|
|
3
|
+
interface ListBoxProps extends AriaListBoxOptions<unknown> {
|
|
4
|
+
state: ListState<unknown>;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListBox: (props: ListBoxProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListState } from '@react-stately/list';
|
|
2
|
+
import type { Node } from '@react-types/shared';
|
|
3
|
+
interface SectionProps {
|
|
4
|
+
section: Node<unknown>;
|
|
5
|
+
state: ListState<unknown>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListBoxSection: ({ section, state }: SectionProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ListState } from '@react-stately/list';
|
|
2
|
+
import type { Node } from '@react-types/shared';
|
|
3
|
+
interface OptionProps {
|
|
4
|
+
item: Node<unknown>;
|
|
5
|
+
state: ListState<unknown>;
|
|
6
|
+
}
|
|
7
|
+
export declare const Option: ({ item, state }: OptionProps) => JSX.Element;
|
|
8
|
+
export {};
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { AriaSelectProps } from '@react-types/select';
|
|
2
|
+
import { SingleSelection } from '@react-types/shared';
|
|
3
|
+
import { ComponentProps } from '@marigold/types';
|
|
4
|
+
import { ResponsiveStyleValue } from '@marigold/system';
|
|
5
|
+
export declare type SelectProps = {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
width?: ResponsiveStyleValue<number | string>;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
} & ComponentProps<'select'> & AriaSelectProps<object> & SingleSelection;
|
|
13
|
+
export declare const Select: ({ placeholder, disabled, required, error, errorMessage, width, className, ...props }: SelectProps) => JSX.Element;
|
package/dist/Slider/Slider.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export declare type SliderProps = {
|
|
4
|
+
variant?: string;
|
|
5
|
+
} & ComponentProps<'input'>;
|
|
6
|
+
export declare const Slider: React.FC<SliderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Stack';
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ResponsiveStyleValue } from '@marigold/system';
|
|
2
|
+
import { PolymorphicComponentWithRef, PolymorphicPropsWithRef } from '@marigold/types';
|
|
3
|
+
import { BoxOwnProps } from '../Box';
|
|
4
|
+
export declare type TextOwnProps = {
|
|
5
|
+
align?: ResponsiveStyleValue<string>;
|
|
6
|
+
color?: ResponsiveStyleValue<string>;
|
|
7
|
+
cursor?: ResponsiveStyleValue<string>;
|
|
8
|
+
outline?: ResponsiveStyleValue<string>;
|
|
9
|
+
userSelect?: ResponsiveStyleValue<string>;
|
|
10
|
+
} & BoxOwnProps;
|
|
11
|
+
export declare type TextProps = PolymorphicPropsWithRef<TextOwnProps, 'span'>;
|
|
12
|
+
export declare const Text: PolymorphicComponentWithRef<TextOwnProps, 'span'>;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '@marigold/types';
|
|
3
|
+
export declare type TextareaProps = {
|
|
4
|
+
variant?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
htmlFor?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
} & ComponentProps<'textarea'>;
|
|
11
|
+
export declare const Textarea: React.FC<TextareaProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ValidationMessage';
|