@serendie/ui 0.1.6
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/README.md +86 -0
- package/dist/components/Accordion.d.ts +23 -0
- package/dist/components/AccordionGroup.d.ts +2 -0
- package/dist/components/Avatar.d.ts +40 -0
- package/dist/components/Badge.d.ts +90 -0
- package/dist/components/Banner.d.ts +43 -0
- package/dist/components/BottomNavigation.d.ts +2 -0
- package/dist/components/BottomNavigationItem.d.ts +30 -0
- package/dist/components/Button.d.ts +133 -0
- package/dist/components/CheckBox.d.ts +47 -0
- package/dist/components/ChoiceBox.d.ts +8 -0
- package/dist/components/DashboardWidget.d.ts +13 -0
- package/dist/components/Divider.d.ts +33 -0
- package/dist/components/Drawer.d.ts +40 -0
- package/dist/components/DropdownMenu.d.ts +14 -0
- package/dist/components/IconButton.d.ts +81 -0
- package/dist/components/List.d.ts +2 -0
- package/dist/components/ListItem.d.ts +46 -0
- package/dist/components/ModalDialog.d.ts +15 -0
- package/dist/components/NotificationBadge.d.ts +54 -0
- package/dist/components/ProgressIndicator.d.ts +29 -0
- package/dist/components/RadioButton.d.ts +30 -0
- package/dist/components/RadioGroup.d.ts +2 -0
- package/dist/components/Search.d.ts +51 -0
- package/dist/components/Select.d.ts +63 -0
- package/dist/components/SvgIcon.d.ts +75 -0
- package/dist/components/SvgIcon.stories.d.ts +7 -0
- package/dist/components/Switch.d.ts +10 -0
- package/dist/components/TabItem.d.ts +22 -0
- package/dist/components/Tabs.d.ts +3 -0
- package/dist/components/TextArea.d.ts +8 -0
- package/dist/components/TextField.d.ts +7 -0
- package/dist/components/Toast.d.ts +35 -0
- package/dist/components/TopAppBar.d.ts +37 -0
- package/dist/index.cjs +65 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +19523 -0
- package/dist/preset.d.ts +534 -0
- package/dist/recipes/index.d.ts +2 -0
- package/dist/styles.css +1 -0
- package/dist/tokens/getToken.d.ts +789 -0
- package/dist/tokens/index.d.ts +1808 -0
- package/dist/tokens/keyframes/index.d.ts +10 -0
- package/package.json +100 -0
- package/styled-system/css/conditions.js +34 -0
- package/styled-system/css/css.d.ts +22 -0
- package/styled-system/css/css.js +45 -0
- package/styled-system/css/cva.d.ts +6 -0
- package/styled-system/css/cva.js +87 -0
- package/styled-system/css/cx.d.ts +5 -0
- package/styled-system/css/cx.js +15 -0
- package/styled-system/css/index.d.ts +5 -0
- package/styled-system/css/index.js +4 -0
- package/styled-system/css/sva.d.ts +4 -0
- package/styled-system/css/sva.js +41 -0
- package/styled-system/helpers.js +326 -0
- package/styled-system/jsx/aspect-ratio.d.ts +10 -0
- package/styled-system/jsx/aspect-ratio.js +14 -0
- package/styled-system/jsx/bleed.d.ts +10 -0
- package/styled-system/jsx/bleed.js +14 -0
- package/styled-system/jsx/box.d.ts +10 -0
- package/styled-system/jsx/box.js +14 -0
- package/styled-system/jsx/center.d.ts +10 -0
- package/styled-system/jsx/center.js +14 -0
- package/styled-system/jsx/circle.d.ts +10 -0
- package/styled-system/jsx/circle.js +14 -0
- package/styled-system/jsx/container.d.ts +10 -0
- package/styled-system/jsx/container.js +14 -0
- package/styled-system/jsx/cq.d.ts +10 -0
- package/styled-system/jsx/cq.js +14 -0
- package/styled-system/jsx/divider.d.ts +10 -0
- package/styled-system/jsx/divider.js +14 -0
- package/styled-system/jsx/factory-helper.js +22 -0
- package/styled-system/jsx/factory.d.ts +3 -0
- package/styled-system/jsx/factory.js +80 -0
- package/styled-system/jsx/flex.d.ts +10 -0
- package/styled-system/jsx/flex.js +14 -0
- package/styled-system/jsx/float.d.ts +10 -0
- package/styled-system/jsx/float.js +14 -0
- package/styled-system/jsx/grid-item.d.ts +10 -0
- package/styled-system/jsx/grid-item.js +14 -0
- package/styled-system/jsx/grid.d.ts +10 -0
- package/styled-system/jsx/grid.js +14 -0
- package/styled-system/jsx/hstack.d.ts +10 -0
- package/styled-system/jsx/hstack.js +14 -0
- package/styled-system/jsx/index.d.ts +24 -0
- package/styled-system/jsx/index.js +22 -0
- package/styled-system/jsx/is-valid-prop.d.ts +11 -0
- package/styled-system/jsx/is-valid-prop.js +17 -0
- package/styled-system/jsx/link-overlay.d.ts +10 -0
- package/styled-system/jsx/link-overlay.js +14 -0
- package/styled-system/jsx/spacer.d.ts +10 -0
- package/styled-system/jsx/spacer.js +14 -0
- package/styled-system/jsx/square.d.ts +10 -0
- package/styled-system/jsx/square.js +14 -0
- package/styled-system/jsx/stack.d.ts +10 -0
- package/styled-system/jsx/stack.js +14 -0
- package/styled-system/jsx/visually-hidden.d.ts +10 -0
- package/styled-system/jsx/visually-hidden.js +14 -0
- package/styled-system/jsx/vstack.d.ts +10 -0
- package/styled-system/jsx/vstack.js +14 -0
- package/styled-system/jsx/wrap.d.ts +10 -0
- package/styled-system/jsx/wrap.js +14 -0
- package/styled-system/patterns/aspect-ratio.d.ts +21 -0
- package/styled-system/patterns/aspect-ratio.js +38 -0
- package/styled-system/patterns/bleed.d.ts +22 -0
- package/styled-system/patterns/bleed.js +24 -0
- package/styled-system/patterns/box.d.ts +21 -0
- package/styled-system/patterns/box.js +15 -0
- package/styled-system/patterns/center.d.ts +21 -0
- package/styled-system/patterns/center.js +21 -0
- package/styled-system/patterns/circle.d.ts +21 -0
- package/styled-system/patterns/circle.js +25 -0
- package/styled-system/patterns/container.d.ts +21 -0
- package/styled-system/patterns/container.js +21 -0
- package/styled-system/patterns/cq.d.ts +22 -0
- package/styled-system/patterns/cq.js +21 -0
- package/styled-system/patterns/divider.d.ts +23 -0
- package/styled-system/patterns/divider.js +25 -0
- package/styled-system/patterns/flex.d.ts +27 -0
- package/styled-system/patterns/flex.js +26 -0
- package/styled-system/patterns/float.d.ts +24 -0
- package/styled-system/patterns/float.js +52 -0
- package/styled-system/patterns/grid-item.d.ts +26 -0
- package/styled-system/patterns/grid-item.js +25 -0
- package/styled-system/patterns/grid.d.ts +25 -0
- package/styled-system/patterns/grid.js +27 -0
- package/styled-system/patterns/hstack.d.ts +22 -0
- package/styled-system/patterns/hstack.js +24 -0
- package/styled-system/patterns/index.d.ts +21 -0
- package/styled-system/patterns/index.js +20 -0
- package/styled-system/patterns/link-overlay.d.ts +21 -0
- package/styled-system/patterns/link-overlay.js +24 -0
- package/styled-system/patterns/spacer.d.ts +21 -0
- package/styled-system/patterns/spacer.js +21 -0
- package/styled-system/patterns/square.d.ts +21 -0
- package/styled-system/patterns/square.js +24 -0
- package/styled-system/patterns/stack.d.ts +24 -0
- package/styled-system/patterns/stack.js +24 -0
- package/styled-system/patterns/visually-hidden.d.ts +21 -0
- package/styled-system/patterns/visually-hidden.js +18 -0
- package/styled-system/patterns/vstack.d.ts +22 -0
- package/styled-system/patterns/vstack.js +24 -0
- package/styled-system/patterns/wrap.d.ts +25 -0
- package/styled-system/patterns/wrap.js +25 -0
- package/styled-system/themes/asagi.json +5 -0
- package/styled-system/themes/index.d.ts +36 -0
- package/styled-system/themes/index.js +24 -0
- package/styled-system/themes/kurikawa.json +5 -0
- package/styled-system/themes/sumire.json +5 -0
- package/styled-system/themes/theme-asagi.json +5 -0
- package/styled-system/themes/theme-kurikawa.json +5 -0
- package/styled-system/themes/theme-sumire.json +5 -0
- package/styled-system/themes/theme-tsutsuji.json +5 -0
- package/styled-system/themes/tsutsuji.json +5 -0
- package/styled-system/tokens/index.d.ts +9 -0
- package/styled-system/tokens/index.js +3548 -0
- package/styled-system/tokens/tokens.d.ts +48 -0
- package/styled-system/types/composition.d.ts +138 -0
- package/styled-system/types/conditions.d.ts +214 -0
- package/styled-system/types/csstype.d.ts +21298 -0
- package/styled-system/types/global.d.ts +19 -0
- package/styled-system/types/index.d.ts +8 -0
- package/styled-system/types/jsx.d.ts +52 -0
- package/styled-system/types/parts.d.ts +8 -0
- package/styled-system/types/pattern.d.ts +78 -0
- package/styled-system/types/prop-type.d.ts +237 -0
- package/styled-system/types/recipe.d.ts +181 -0
- package/styled-system/types/selectors.d.ts +59 -0
- package/styled-system/types/static-css.d.ts +51 -0
- package/styled-system/types/style-props.d.ts +7468 -0
- package/styled-system/types/system-types.d.ts +88 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { default as React, ComponentProps } from 'react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/types';
|
|
3
|
+
export declare const IconButtonStyle: import('../../styled-system/types').RecipeRuntimeFn<{
|
|
4
|
+
shape: {
|
|
5
|
+
rectangle: {
|
|
6
|
+
borderRadius: "sd.system.dimension.radius.medium";
|
|
7
|
+
};
|
|
8
|
+
circle: {
|
|
9
|
+
borderRadius: "sd.system.dimension.radius.full";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
styleType: {
|
|
13
|
+
filled: {
|
|
14
|
+
color: "sd.system.color.impression.onPrimaryContainer";
|
|
15
|
+
bgColor: "sd.system.color.impression.primaryContainer";
|
|
16
|
+
_enabled: {
|
|
17
|
+
_hover: {
|
|
18
|
+
backgroundImage: "linear-gradient(0deg, {colors.sd.system.color.interaction.hovered} 0%, {colors.sd.system.color.interaction.hovered} 100%)";
|
|
19
|
+
};
|
|
20
|
+
_focusVisible: {
|
|
21
|
+
outlineWidth: "sd.system.dimension.border.medium";
|
|
22
|
+
outlineStyle: "solid";
|
|
23
|
+
outlineColor: "sd.system.color.interaction.hovered";
|
|
24
|
+
outlineOffset: "-1px";
|
|
25
|
+
backgroundImage: "linear-gradient(0deg, {colors.sd.system.color.interaction.hovered} 0%, {colors.sd.system.color.interaction.hovered} 100%)";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
outlined: {
|
|
30
|
+
outlineColor: "sd.system.color.component.outline";
|
|
31
|
+
bgColor: "sd.system.color.component.surface";
|
|
32
|
+
_enabled: {
|
|
33
|
+
_hover: {
|
|
34
|
+
bgColor: "sd.system.color.interaction.hoveredVariant";
|
|
35
|
+
};
|
|
36
|
+
_focusVisible: {
|
|
37
|
+
outlineColor: "sd.system.color.component.outlineVariant";
|
|
38
|
+
bgColor: "sd.system.color.interaction.hoveredVariant";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
ghost: {
|
|
43
|
+
outlineColor: "transparent";
|
|
44
|
+
_enabled: {
|
|
45
|
+
_hover: {
|
|
46
|
+
bgColor: "sd.system.color.interaction.hoveredVariant";
|
|
47
|
+
};
|
|
48
|
+
_focusVisible: {
|
|
49
|
+
bgColor: "sd.system.color.interaction.hoveredVariant";
|
|
50
|
+
outlineColor: "sd.system.color.component.outlineVariant";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
_disabled: {
|
|
54
|
+
bg: "transparent";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
size: {
|
|
59
|
+
large: {
|
|
60
|
+
w: "{spacing.sd.reference.dimension.scale.17}";
|
|
61
|
+
h: "{spacing.sd.reference.dimension.scale.17}";
|
|
62
|
+
"& svg": {
|
|
63
|
+
width: "sd.reference.dimension.scale.12";
|
|
64
|
+
height: "sd.reference.dimension.scale.12";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
medium: {
|
|
68
|
+
w: "{spacing.sd.reference.dimension.scale.13}";
|
|
69
|
+
h: "{spacing.sd.reference.dimension.scale.13}";
|
|
70
|
+
};
|
|
71
|
+
small: {
|
|
72
|
+
w: "{spacing.sd.reference.dimension.scale.10}";
|
|
73
|
+
h: "{spacing.sd.reference.dimension.scale.10}";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
type ButtonProps = RecipeVariantProps<typeof IconButtonStyle> & ComponentProps<"button"> & {
|
|
78
|
+
icon: React.ReactElement;
|
|
79
|
+
};
|
|
80
|
+
export declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
81
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export declare const ListItemStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"description" | "title" | "root" | "badge" | "leftIcon" | "rightIcon" | "wrapper" | "textGroup", {
|
|
3
|
+
isLargeLeftIcon: {
|
|
4
|
+
true: {
|
|
5
|
+
leftIcon: {
|
|
6
|
+
"& svg": {
|
|
7
|
+
width: "40px";
|
|
8
|
+
height: "40px";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
false: {};
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
small: {
|
|
16
|
+
wrapper: {
|
|
17
|
+
minH: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
type ListItemBaseProps = {
|
|
23
|
+
title: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
rightIcon?: React.ReactElement;
|
|
26
|
+
leftIcon?: React.ReactElement;
|
|
27
|
+
isLargeLeftIcon?: boolean;
|
|
28
|
+
badge?: number;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
selected?: boolean;
|
|
32
|
+
focusVisible?: boolean;
|
|
33
|
+
size?: "small";
|
|
34
|
+
};
|
|
35
|
+
type ExclusiveRightItemProps = ({
|
|
36
|
+
badge?: number;
|
|
37
|
+
} & {
|
|
38
|
+
rightIcon?: never;
|
|
39
|
+
}) | ({
|
|
40
|
+
badge?: never;
|
|
41
|
+
} & {
|
|
42
|
+
rightIcon?: React.ReactElement;
|
|
43
|
+
});
|
|
44
|
+
type ListItemProps = ComponentProps<"li"> & ListItemBaseProps & ExclusiveRightItemProps;
|
|
45
|
+
export declare const ListItem: React.FC<ListItemProps>;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DialogRootProps } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
declare const ModalDialogStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"content" | "description" | "title" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper", import('../../styled-system/types').SlotRecipeVariantRecord<"content" | "description" | "title" | "backdrop" | "contentInner" | "closeTrigger" | "buttonWrapper">>;
|
|
4
|
+
type Props = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
cancelButtonLabel?: string;
|
|
10
|
+
submitButtonLabel: string;
|
|
11
|
+
onButtonClick: () => void;
|
|
12
|
+
};
|
|
13
|
+
export type ModalDialogProps = Props & DialogRootProps & RecipeVariantProps<typeof ModalDialogStyle>;
|
|
14
|
+
export declare const ModalDialog: React.FC<ModalDialogProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
declare const NotificationBadgeStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root", {
|
|
4
|
+
size: {
|
|
5
|
+
small: {
|
|
6
|
+
root: {
|
|
7
|
+
height: number;
|
|
8
|
+
minWidth: number;
|
|
9
|
+
paddingX: "sd.system.dimension.spacing.twoExtraSmall";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
medium: {
|
|
13
|
+
root: {
|
|
14
|
+
height: number;
|
|
15
|
+
minWidth: number;
|
|
16
|
+
paddingX: "sd.system.dimension.spacing.extraSmall";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
variant: {
|
|
21
|
+
primary: {
|
|
22
|
+
root: {
|
|
23
|
+
backgroundColor: "sd.system.color.impression.negative";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
secondary: {
|
|
27
|
+
root: {
|
|
28
|
+
backgroundColor: "sd.system.color.impression.primary";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
noNumber: {
|
|
33
|
+
true: {
|
|
34
|
+
root: {
|
|
35
|
+
height: number;
|
|
36
|
+
paddingX: number;
|
|
37
|
+
minWidth: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
position: {
|
|
42
|
+
relative: {
|
|
43
|
+
root: {
|
|
44
|
+
position: "relative";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
type BadgeProps = {
|
|
50
|
+
count?: number;
|
|
51
|
+
};
|
|
52
|
+
export type NotificationBadgeProps = BadgeProps & ComponentProps<"div"> & RecipeVariantProps<typeof NotificationBadgeStyle>;
|
|
53
|
+
export declare const NotificationBadge: React.FC<NotificationBadgeProps>;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const ProgressIndicatorStyle: import('../../styled-system/types').RecipeRuntimeFn<{
|
|
4
|
+
size: {
|
|
5
|
+
small: {
|
|
6
|
+
width: "16px";
|
|
7
|
+
height: "16px";
|
|
8
|
+
};
|
|
9
|
+
medium: {
|
|
10
|
+
width: "24px";
|
|
11
|
+
height: "24px";
|
|
12
|
+
};
|
|
13
|
+
large: {
|
|
14
|
+
width: "96px";
|
|
15
|
+
height: "96px";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
gray: {
|
|
20
|
+
stroke: "sd.reference.color.scale.gray.400";
|
|
21
|
+
};
|
|
22
|
+
white: {
|
|
23
|
+
stroke: "sd.reference.color.scale.white.1000";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
type ProgressIndicatorProps = ComponentProps<"svg"> & RecipeVariantProps<typeof ProgressIndicatorStyle>;
|
|
28
|
+
export declare const ProgressIndicator: ({ className, ...props }: ProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RadioGroupItemProps } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const radioIconCss: {
|
|
4
|
+
flexShrink: number;
|
|
5
|
+
cursor: string;
|
|
6
|
+
".group:has(:focus-visible) &": {
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const radioCheckedIconCss: {
|
|
12
|
+
color: string;
|
|
13
|
+
_disabled: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const radioUncheckedIconCss: {
|
|
18
|
+
color: string;
|
|
19
|
+
_disabled: {
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const RadioButtonStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"item" | "itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "unCheckedIcon", import('../../styled-system/types').SlotRecipeVariantRecord<"item" | "itemControl" | "checkedIcon" | "itemTextGroup" | "itemText" | "helperText" | "unCheckedIcon">>;
|
|
24
|
+
type RadioButtonItemProps = {
|
|
25
|
+
label?: string;
|
|
26
|
+
helperText?: string;
|
|
27
|
+
};
|
|
28
|
+
export type RadioButtonProps = RadioGroupItemProps & RecipeVariantProps<typeof RadioButtonStyle> & RadioButtonItemProps;
|
|
29
|
+
export declare const RadioButton: React.FC<RadioButtonProps>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ComboboxRootProps } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const SearchStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "input" | "combobox" | "control" | "comboboxItem" | "iconBox" | "closeIcon", {
|
|
4
|
+
size: {
|
|
5
|
+
medium: {
|
|
6
|
+
iconBox: {
|
|
7
|
+
w: "40px";
|
|
8
|
+
};
|
|
9
|
+
control: {
|
|
10
|
+
height: number;
|
|
11
|
+
gap: "sd.system.dimension.spacing.extraSmall";
|
|
12
|
+
textStyle: "sd.system.typography.body.medium_compact";
|
|
13
|
+
paddingTop: "sd.system.dimension.spacing.small";
|
|
14
|
+
paddingRight: "sd.system.dimension.spacing.extraSmall";
|
|
15
|
+
paddingBottom: "sd.system.dimension.spacing.small";
|
|
16
|
+
paddingLeft: "sd.system.dimension.spacing.twoExtraSmall";
|
|
17
|
+
};
|
|
18
|
+
comboboxItem: {
|
|
19
|
+
paddingRight: "sd.system.dimension.spacing.medium";
|
|
20
|
+
paddingLeft: "sd.system.dimension.spacing.medium";
|
|
21
|
+
paddingBottom: "sd.system.dimension.spacing.extraSmall";
|
|
22
|
+
paddingTop: "sd.system.dimension.spacing.extraSmall";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
small: {
|
|
26
|
+
iconBox: {
|
|
27
|
+
w: "20px";
|
|
28
|
+
};
|
|
29
|
+
control: {
|
|
30
|
+
height: number;
|
|
31
|
+
gap: "sd.system.dimension.spacing.twoExtraSmall";
|
|
32
|
+
textStyle: "sd.system.typography.body.small_compact";
|
|
33
|
+
paddingTop: "sd.system.dimension.spacing.twoExtraSmall";
|
|
34
|
+
paddingLeft: "sd.system.dimension.spacing.extraSmall";
|
|
35
|
+
paddingRight: "sd.system.dimension.spacing.extraSmall";
|
|
36
|
+
paddingBottom: "sd.system.dimension.spacing.twoExtraSmall";
|
|
37
|
+
scrollPaddingLeft: "sd.system.dimension.spacing.twoExtraSmall";
|
|
38
|
+
};
|
|
39
|
+
comboboxItem: {
|
|
40
|
+
gap: "sd.system.dimension.spacing.twoExtraSmall";
|
|
41
|
+
paddingTop: "sd.system.dimension.spacing.extraSmall";
|
|
42
|
+
paddingRight: "sd.system.dimension.spacing.extraSmall";
|
|
43
|
+
paddingBottom: "sd.system.dimension.spacing.extraSmall";
|
|
44
|
+
paddingLeft: "sd.system.dimension.spacing.extraSmall";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
type SearchStyleProps = ComboboxRootProps<string> & RecipeVariantProps<typeof SearchStyle>;
|
|
50
|
+
export declare const Search: React.FC<SearchStyleProps>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SelectRootProps } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const SelectStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"content" | "item" | "root" | "iconBox" | "valueText" | "trigger", {
|
|
4
|
+
size: {
|
|
5
|
+
medium: {
|
|
6
|
+
root: {
|
|
7
|
+
textStyle: {
|
|
8
|
+
base: "sd.system.typography.body.medium_compact";
|
|
9
|
+
expanded: "sd.system.typography.body.medium_expanded";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
valueText: {
|
|
13
|
+
textStyle: {
|
|
14
|
+
base: "sd.system.typography.body.medium_compact";
|
|
15
|
+
expanded: "sd.system.typography.body.medium_expanded";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
trigger: {
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
item: {};
|
|
22
|
+
};
|
|
23
|
+
small: {
|
|
24
|
+
root: {
|
|
25
|
+
gridTemplateColumns: "minmax(auto, 150px)";
|
|
26
|
+
textStyle: {
|
|
27
|
+
base: "sd.system.typography.body.small_compact";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
valueText: {
|
|
31
|
+
textStyle: {
|
|
32
|
+
base: "sd.system.typography.body.small_compact";
|
|
33
|
+
expanded: "sd.system.typography.body.small_expanded";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
trigger: {
|
|
37
|
+
height: number;
|
|
38
|
+
paddingTop: "sd.system.dimension.spacing.twoExtraSmall";
|
|
39
|
+
paddingRight: "sd.system.dimension.spacing.extraSmall";
|
|
40
|
+
paddingBottom: "sd.system.dimension.spacing.twoExtraSmall";
|
|
41
|
+
paddingLeft: "sd.system.dimension.spacing.extraSmall";
|
|
42
|
+
borderRadius: "sd.system.dimension.radius.small";
|
|
43
|
+
};
|
|
44
|
+
content: {
|
|
45
|
+
borderRadius: "sd.system.dimension.radius.small";
|
|
46
|
+
};
|
|
47
|
+
item: {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
type Props = {
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
label?: string;
|
|
54
|
+
required?: boolean;
|
|
55
|
+
invalidMessage?: string;
|
|
56
|
+
};
|
|
57
|
+
type selectItem = {
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
};
|
|
61
|
+
type SelectStyleProps = Props & SelectRootProps<selectItem> & RecipeVariantProps<typeof SelectStyle>;
|
|
62
|
+
export declare const Select: React.FC<SelectStyleProps>;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const icons: {
|
|
2
|
+
add: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
3
|
+
title?: string;
|
|
4
|
+
}>;
|
|
5
|
+
avatar: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
}>;
|
|
8
|
+
check: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
9
|
+
title?: string;
|
|
10
|
+
}>;
|
|
11
|
+
checkCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
12
|
+
title?: string;
|
|
13
|
+
}>;
|
|
14
|
+
arrow_outward: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
15
|
+
title?: string;
|
|
16
|
+
}>;
|
|
17
|
+
arrow_blank: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
18
|
+
title?: string;
|
|
19
|
+
}>;
|
|
20
|
+
content_copy: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
21
|
+
title?: string;
|
|
22
|
+
}>;
|
|
23
|
+
clipboard_copy: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
24
|
+
title?: string;
|
|
25
|
+
}>;
|
|
26
|
+
chevron_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
}>;
|
|
29
|
+
chevron_right: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
30
|
+
title?: string;
|
|
31
|
+
}>;
|
|
32
|
+
close: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
33
|
+
title?: string;
|
|
34
|
+
}>;
|
|
35
|
+
face: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
36
|
+
title?: string;
|
|
37
|
+
}>;
|
|
38
|
+
search: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
}>;
|
|
41
|
+
texture: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
42
|
+
title?: string;
|
|
43
|
+
}>;
|
|
44
|
+
expandMore: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
45
|
+
title?: string;
|
|
46
|
+
}>;
|
|
47
|
+
errorCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
48
|
+
title?: string;
|
|
49
|
+
}>;
|
|
50
|
+
error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
51
|
+
title?: string;
|
|
52
|
+
}>;
|
|
53
|
+
error_fill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
54
|
+
title?: string;
|
|
55
|
+
}>;
|
|
56
|
+
info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
57
|
+
title?: string;
|
|
58
|
+
}>;
|
|
59
|
+
menu: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
60
|
+
title?: string;
|
|
61
|
+
}>;
|
|
62
|
+
account_circle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
63
|
+
title?: string;
|
|
64
|
+
}>;
|
|
65
|
+
settings: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
66
|
+
title?: string;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
export type SvgIconName = keyof typeof icons;
|
|
70
|
+
interface SvgIconProps extends React.SVGProps<SVGSVGElement> {
|
|
71
|
+
icon: SvgIconName;
|
|
72
|
+
size?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare const SvgIcon: React.FC<SvgIconProps>;
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SvgIcon } from './SvgIcon';
|
|
3
|
+
declare const meta: Meta<typeof SvgIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const CustomClassName: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Switch as ArkSwitch, SwitchRootProps } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const SwitchStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb", import('../../styled-system/types').SlotRecipeVariantRecord<"label" | "root" | "helperText" | "textGroup" | "control" | "thumb">>;
|
|
4
|
+
type SwitchItemProps = {
|
|
5
|
+
label: string;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
};
|
|
8
|
+
export type SwitchProps = SwitchRootProps & RecipeVariantProps<typeof SwitchStyle> & SwitchItemProps;
|
|
9
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<ArkSwitch.RootProps & {} & SwitchItemProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Tabs as ArkTabs } from '@ark-ui/react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
export declare const TabItemStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"badge" | "dot" | "trigger" | "badgeBox", import('../../styled-system/types').SlotRecipeVariantRecord<"badge" | "dot" | "trigger" | "badgeBox">>;
|
|
4
|
+
type TabItemBaseProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
value: string;
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
badge?: number;
|
|
10
|
+
};
|
|
11
|
+
type ExclusiveBadgeProps = ({
|
|
12
|
+
badge?: number;
|
|
13
|
+
} & {
|
|
14
|
+
dot?: never;
|
|
15
|
+
}) | ({
|
|
16
|
+
badge?: never;
|
|
17
|
+
} & {
|
|
18
|
+
dot?: boolean;
|
|
19
|
+
});
|
|
20
|
+
export type TabItemProps = TabItemBaseProps & RecipeVariantProps<typeof TabItemStyle> & ArkTabs.TriggerProps & ExclusiveBadgeProps;
|
|
21
|
+
export declare const TabItem: ({ title, value, disabled, dot, badge, className, ...props }: TabItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Tabs as ArkTabs } from '@ark-ui/react';
|
|
2
|
+
export declare const TabsStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"list" | "root", import('../../styled-system/types').SlotRecipeVariantRecord<"list" | "root">>;
|
|
3
|
+
export declare const Tabs: ({ children, className, ...props }: ArkTabs.RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
3
|
+
label?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
invalidMessage?: string;
|
|
7
|
+
autoAdjustHeight?: boolean;
|
|
8
|
+
} & Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const TextField: React.ForwardRefExoticComponent<{
|
|
3
|
+
label?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
invalidMessage?: string;
|
|
7
|
+
} & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createToaster } from '@ark-ui/react';
|
|
2
|
+
export declare const ToastStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"icon" | "text" | "root" | "textGroup", {
|
|
3
|
+
variant: {
|
|
4
|
+
default: {
|
|
5
|
+
root: {
|
|
6
|
+
background: "sd.system.color.component.inverseSurface";
|
|
7
|
+
};
|
|
8
|
+
text: {
|
|
9
|
+
color: "sd.system.color.component.inverseOnSurface";
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
color: "sd.system.color.impression.positive";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
error: {
|
|
16
|
+
root: {
|
|
17
|
+
background: "sd.system.color.impression.negativeContainer";
|
|
18
|
+
borderColor: "sd.system.color.impression.negative";
|
|
19
|
+
borderWidth: number;
|
|
20
|
+
};
|
|
21
|
+
text: {
|
|
22
|
+
color: "sd.system.color.impression.negative";
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
color: "sd.system.color.impression.negative";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
declare const toaster: ReturnType<typeof createToaster>;
|
|
31
|
+
type ToastProps = {
|
|
32
|
+
toaster: typeof toaster;
|
|
33
|
+
};
|
|
34
|
+
declare const Toast: React.FC<ToastProps>;
|
|
35
|
+
export { Toast, toaster };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { RecipeVariantProps } from '../../styled-system/css';
|
|
3
|
+
import { NotificationBadgeProps } from './NotificationBadge';
|
|
4
|
+
declare const topAppBarStyle: import('../../styled-system/types').SlotRecipeRuntimeFn<"container" | "left" | "title" | "root" | "buttonContainer", {
|
|
5
|
+
type: {
|
|
6
|
+
navbar: {};
|
|
7
|
+
titleBar: {};
|
|
8
|
+
titleBarTitleOnly: {
|
|
9
|
+
root: {
|
|
10
|
+
_lastOfType: {
|
|
11
|
+
paddingBottom: "8px";
|
|
12
|
+
};
|
|
13
|
+
_firstOfType: {
|
|
14
|
+
paddingBottom: "0px";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
type VariantProps = Omit<RecipeVariantProps<typeof topAppBarStyle>, "type">;
|
|
21
|
+
type BaseProps = {
|
|
22
|
+
headingIconButton?: React.ReactElement;
|
|
23
|
+
trailingIconButtons?: React.ReactElement;
|
|
24
|
+
badge?: NotificationBadgeProps["count"];
|
|
25
|
+
title?: string;
|
|
26
|
+
} & VariantProps & ComponentProps<"nav">;
|
|
27
|
+
type NavbarProps = BaseProps & {
|
|
28
|
+
type: "navbar";
|
|
29
|
+
title?: string;
|
|
30
|
+
};
|
|
31
|
+
type TitleBarProps = BaseProps & {
|
|
32
|
+
type: "titleBar";
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
type Props = React.FC<NavbarProps | TitleBarProps>;
|
|
36
|
+
export declare const TopAppBar: Props;
|
|
37
|
+
export {};
|