@seed-design/css 0.0.1-rc.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/README.md +1 -0
- package/package.json +42 -0
- package/recipes/action-button.d.ts +32 -0
- package/recipes/action-button.mjs +87 -0
- package/recipes/action-chip.d.ts +28 -0
- package/recipes/action-chip.mjs +60 -0
- package/recipes/action-sheet-item.d.ts +24 -0
- package/recipes/action-sheet-item.mjs +38 -0
- package/recipes/action-sheet.d.ts +21 -0
- package/recipes/action-sheet.mjs +59 -0
- package/recipes/app-bar-main.d.ts +36 -0
- package/recipes/app-bar-main.mjs +61 -0
- package/recipes/app-bar.d.ts +36 -0
- package/recipes/app-bar.mjs +68 -0
- package/recipes/app-screen.d.ts +36 -0
- package/recipes/app-screen.mjs +66 -0
- package/recipes/avatar-stack.d.ts +24 -0
- package/recipes/avatar-stack.mjs +45 -0
- package/recipes/avatar.d.ts +24 -0
- package/recipes/avatar.mjs +55 -0
- package/recipes/badge.d.ts +36 -0
- package/recipes/badge.mjs +126 -0
- package/recipes/bottom-sheet.d.ts +21 -0
- package/recipes/bottom-sheet.mjs +63 -0
- package/recipes/callout.d.ts +24 -0
- package/recipes/callout.mjs +61 -0
- package/recipes/checkbox.d.ts +32 -0
- package/recipes/checkbox.mjs +77 -0
- package/recipes/chip-tabs.d.ts +32 -0
- package/recipes/chip-tabs.mjs +68 -0
- package/recipes/className.mjs +25 -0
- package/recipes/control-chip.d.ts +28 -0
- package/recipes/control-chip.mjs +60 -0
- package/recipes/dialog.d.ts +21 -0
- package/recipes/dialog.mjs +59 -0
- package/recipes/extended-action-sheet-item.d.ts +24 -0
- package/recipes/extended-action-sheet-item.mjs +38 -0
- package/recipes/extended-action-sheet.d.ts +21 -0
- package/recipes/extended-action-sheet.mjs +63 -0
- package/recipes/extended-fab.d.ts +28 -0
- package/recipes/extended-fab.mjs +43 -0
- package/recipes/fab.d.ts +21 -0
- package/recipes/fab.mjs +31 -0
- package/recipes/help-bubble.d.ts +21 -0
- package/recipes/help-bubble.mjs +55 -0
- package/recipes/identity-placeholder.d.ts +24 -0
- package/recipes/identity-placeholder.mjs +41 -0
- package/recipes/inline-banner.d.ts +24 -0
- package/recipes/inline-banner.mjs +63 -0
- package/recipes/link-with-icon.d.ts +24 -0
- package/recipes/link-with-icon.mjs +39 -0
- package/recipes/manner-temp-badge.d.ts +24 -0
- package/recipes/manner-temp-badge.mjs +42 -0
- package/recipes/mergeVariants.mjs +9 -0
- package/recipes/progress-circle.d.ts +28 -0
- package/recipes/progress-circle.mjs +54 -0
- package/recipes/pull-to-refresh.d.ts +21 -0
- package/recipes/pull-to-refresh.mjs +35 -0
- package/recipes/radio.d.ts +24 -0
- package/recipes/radio.mjs +42 -0
- package/recipes/reaction-button.d.ts +24 -0
- package/recipes/reaction-button.mjs +38 -0
- package/recipes/segmented-control.d.ts +21 -0
- package/recipes/segmented-control.mjs +39 -0
- package/recipes/select-box-group.d.ts +21 -0
- package/recipes/select-box-group.mjs +31 -0
- package/recipes/select-box.d.ts +21 -0
- package/recipes/select-box.mjs +59 -0
- package/recipes/skeleton.d.ts +24 -0
- package/recipes/skeleton.mjs +40 -0
- package/recipes/snackbar-region.d.ts +21 -0
- package/recipes/snackbar-region.mjs +31 -0
- package/recipes/snackbar.d.ts +24 -0
- package/recipes/snackbar.mjs +51 -0
- package/recipes/splitVariantProps.mjs +12 -0
- package/recipes/switch.d.ts +24 -0
- package/recipes/switch.mjs +50 -0
- package/recipes/tabs.d.ts +36 -0
- package/recipes/tabs.mjs +81 -0
- package/recipes/text-field.d.ts +24 -0
- package/recipes/text-field.mjs +103 -0
- package/recipes/text.d.ts +28 -0
- package/recipes/text.mjs +64 -0
- package/recipes/toggle-button.d.ts +28 -0
- package/recipes/toggle-button.mjs +43 -0
- package/recipes/visually-hidden.d.ts +21 -0
- package/recipes/visually-hidden.mjs +31 -0
- package/seed.css +5017 -0
- package/seed.min.css +1 -0
- package/vars/color/bg.d.ts +37 -0
- package/vars/color/bg.mjs +37 -0
- package/vars/color/fg.d.ts +16 -0
- package/vars/color/fg.mjs +16 -0
- package/vars/color/index.d.ts +5 -0
- package/vars/color/index.mjs +5 -0
- package/vars/color/manner-temp/index.d.ts +6 -0
- package/vars/color/manner-temp/index.mjs +6 -0
- package/vars/color/manner-temp/l1.d.ts +2 -0
- package/vars/color/manner-temp/l1.mjs +2 -0
- package/vars/color/manner-temp/l2.d.ts +2 -0
- package/vars/color/manner-temp/l2.mjs +2 -0
- package/vars/color/manner-temp/l3.d.ts +2 -0
- package/vars/color/manner-temp/l3.mjs +2 -0
- package/vars/color/manner-temp/l4.d.ts +2 -0
- package/vars/color/manner-temp/l4.mjs +2 -0
- package/vars/color/manner-temp/l5.d.ts +2 -0
- package/vars/color/manner-temp/l5.mjs +2 -0
- package/vars/color/manner-temp/l6.d.ts +2 -0
- package/vars/color/manner-temp/l6.mjs +2 -0
- package/vars/color/palette.d.ts +78 -0
- package/vars/color/palette.mjs +78 -0
- package/vars/color/stroke.d.ts +10 -0
- package/vars/color/stroke.mjs +10 -0
- package/vars/component/action-button.d.ts +491 -0
- package/vars/component/action-button.mjs +491 -0
- package/vars/component/action-chip.d.ts +128 -0
- package/vars/component/action-chip.mjs +128 -0
- package/vars/component/action-sheet-close-button.d.ts +23 -0
- package/vars/component/action-sheet-close-button.mjs +23 -0
- package/vars/component/action-sheet-item.d.ts +36 -0
- package/vars/component/action-sheet-item.mjs +36 -0
- package/vars/component/action-sheet.d.ts +45 -0
- package/vars/component/action-sheet.mjs +45 -0
- package/vars/component/avatar-stack.d.ts +60 -0
- package/vars/component/avatar-stack.mjs +60 -0
- package/vars/component/avatar.d.ts +83 -0
- package/vars/component/avatar.mjs +83 -0
- package/vars/component/badge.d.ts +223 -0
- package/vars/component/badge.mjs +223 -0
- package/vars/component/bottom-sheet.d.ts +61 -0
- package/vars/component/bottom-sheet.mjs +61 -0
- package/vars/component/callout.d.ts +173 -0
- package/vars/component/callout.mjs +173 -0
- package/vars/component/checkbox.d.ts +171 -0
- package/vars/component/checkbox.mjs +171 -0
- package/vars/component/chip-tab.d.ts +98 -0
- package/vars/component/chip-tab.mjs +98 -0
- package/vars/component/chip-tablist.d.ts +23 -0
- package/vars/component/chip-tablist.mjs +23 -0
- package/vars/component/control-chip.d.ts +156 -0
- package/vars/component/control-chip.mjs +156 -0
- package/vars/component/dialog.d.ts +49 -0
- package/vars/component/dialog.mjs +49 -0
- package/vars/component/extended-action-sheet-close-button.d.ts +25 -0
- package/vars/component/extended-action-sheet-close-button.mjs +25 -0
- package/vars/component/extended-action-sheet-item.d.ts +46 -0
- package/vars/component/extended-action-sheet-item.mjs +46 -0
- package/vars/component/extended-action-sheet.d.ts +48 -0
- package/vars/component/extended-action-sheet.mjs +48 -0
- package/vars/component/extended-fab.d.ts +82 -0
- package/vars/component/extended-fab.mjs +82 -0
- package/vars/component/fab.d.ts +21 -0
- package/vars/component/fab.mjs +21 -0
- package/vars/component/help-bubble.d.ts +36 -0
- package/vars/component/help-bubble.mjs +36 -0
- package/vars/component/identity-placeholder.d.ts +12 -0
- package/vars/component/identity-placeholder.mjs +12 -0
- package/vars/component/index.d.ts +40 -0
- package/vars/component/index.mjs +40 -0
- package/vars/component/inline-banner.d.ts +191 -0
- package/vars/component/inline-banner.mjs +191 -0
- package/vars/component/link-with-icon.d.ts +46 -0
- package/vars/component/link-with-icon.mjs +46 -0
- package/vars/component/manner-temp-badge.d.ts +77 -0
- package/vars/component/manner-temp-badge.mjs +77 -0
- package/vars/component/progress-circle.d.ts +67 -0
- package/vars/component/progress-circle.mjs +67 -0
- package/vars/component/radio.d.ts +77 -0
- package/vars/component/radio.mjs +77 -0
- package/vars/component/reaction-button.d.ts +134 -0
- package/vars/component/reaction-button.mjs +134 -0
- package/vars/component/segmented-control-item.d.ts +34 -0
- package/vars/component/segmented-control-item.mjs +34 -0
- package/vars/component/segmented-control.d.ts +18 -0
- package/vars/component/segmented-control.mjs +18 -0
- package/vars/component/select-box.d.ts +92 -0
- package/vars/component/select-box.mjs +92 -0
- package/vars/component/skeleton.d.ts +42 -0
- package/vars/component/skeleton.mjs +42 -0
- package/vars/component/snackbar.d.ts +58 -0
- package/vars/component/snackbar.mjs +58 -0
- package/vars/component/switch.d.ts +65 -0
- package/vars/component/switch.mjs +65 -0
- package/vars/component/tab.d.ts +53 -0
- package/vars/component/tab.mjs +53 -0
- package/vars/component/tablist.d.ts +51 -0
- package/vars/component/tablist.mjs +51 -0
- package/vars/component/text-field.d.ts +295 -0
- package/vars/component/text-field.mjs +295 -0
- package/vars/component/toggle-button.d.ts +205 -0
- package/vars/component/toggle-button.mjs +205 -0
- package/vars/component/top-navigation.d.ts +86 -0
- package/vars/component/top-navigation.mjs +86 -0
- package/vars/component/typography.d.ts +200 -0
- package/vars/component/typography.mjs +200 -0
- package/vars/dimension/index.d.ts +22 -0
- package/vars/dimension/index.mjs +22 -0
- package/vars/dimension/spacing-x.d.ts +2 -0
- package/vars/dimension/spacing-x.mjs +2 -0
- package/vars/dimension/spacing-y.d.ts +2 -0
- package/vars/dimension/spacing-y.mjs +2 -0
- package/vars/duration.d.ts +6 -0
- package/vars/duration.mjs +6 -0
- package/vars/font-size.d.ts +13 -0
- package/vars/font-size.mjs +13 -0
- package/vars/font-weight.d.ts +3 -0
- package/vars/font-weight.mjs +3 -0
- package/vars/gradient.d.ts +1 -0
- package/vars/gradient.mjs +1 -0
- package/vars/index.d.ts +32 -0
- package/vars/index.mjs +1 -0
- package/vars/line-height.d.ts +10 -0
- package/vars/line-height.mjs +10 -0
- package/vars/radius.d.ts +11 -0
- package/vars/radius.mjs +11 -0
- package/vars/timing-function.d.ts +6 -0
- package/vars/timing-function.mjs +6 -0
- package/vars/vars.d.ts +9 -0
- package/vars/vars.mjs +9 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface InlineBannerVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default neutralWeak
|
|
4
|
+
*/
|
|
5
|
+
variant: "neutralWeak" | "positiveWeak" | "informativeWeak" | "warningWeak" | "warningSolid" | "criticalWeak" | "criticalSolid";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type InlineBannerVariantMap = {
|
|
9
|
+
[key in keyof InlineBannerVariant]: Array<InlineBannerVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type InlineBannerVariantProps = Partial<InlineBannerVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type InlineBannerSlotName = "root" | "content" | "title" | "description" | "link" | "closeButton";
|
|
15
|
+
|
|
16
|
+
export declare const inlineBannerVariantMap: InlineBannerVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const inlineBanner: ((
|
|
19
|
+
props?: InlineBannerVariantProps,
|
|
20
|
+
) => Record<InlineBannerSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends InlineBannerVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [InlineBannerVariantProps, Omit<T, keyof InlineBannerVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const inlineBannerSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-inline-banner__root"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"content",
|
|
12
|
+
"seed-inline-banner__content"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"title",
|
|
16
|
+
"seed-inline-banner__title"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"description",
|
|
20
|
+
"seed-inline-banner__description"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"link",
|
|
24
|
+
"seed-inline-banner__link"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"closeButton",
|
|
28
|
+
"seed-inline-banner__closeButton"
|
|
29
|
+
]
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const defaultVariant = {
|
|
33
|
+
"variant": "neutralWeak"
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const compoundVariants = [];
|
|
37
|
+
|
|
38
|
+
export const inlineBannerVariantMap = {
|
|
39
|
+
"variant": [
|
|
40
|
+
"neutralWeak",
|
|
41
|
+
"positiveWeak",
|
|
42
|
+
"informativeWeak",
|
|
43
|
+
"warningWeak",
|
|
44
|
+
"warningSolid",
|
|
45
|
+
"criticalWeak",
|
|
46
|
+
"criticalSolid"
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const inlineBannerVariantKeys = Object.keys(inlineBannerVariantMap);
|
|
51
|
+
|
|
52
|
+
export function inlineBanner(props) {
|
|
53
|
+
return Object.fromEntries(
|
|
54
|
+
inlineBannerSlotNames.map(([slot, className]) => {
|
|
55
|
+
return [
|
|
56
|
+
slot,
|
|
57
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
58
|
+
];
|
|
59
|
+
}),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
Object.assign(inlineBanner, { splitVariantProps: (props) => splitVariantProps(props, inlineBannerVariantMap) });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface LinkWithIconVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default t6
|
|
4
|
+
*/
|
|
5
|
+
size: "t6" | "t5" | "t4";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type LinkWithIconVariantMap = {
|
|
9
|
+
[key in keyof LinkWithIconVariant]: Array<LinkWithIconVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type LinkWithIconVariantProps = Partial<LinkWithIconVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type LinkWithIconSlotName = "root";
|
|
15
|
+
|
|
16
|
+
export declare const linkWithIconVariantMap: LinkWithIconVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const linkWithIcon: ((
|
|
19
|
+
props?: LinkWithIconVariantProps,
|
|
20
|
+
) => Record<LinkWithIconSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends LinkWithIconVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [LinkWithIconVariantProps, Omit<T, keyof LinkWithIconVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const linkWithIconSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-link-with-icon__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
const defaultVariant = {
|
|
13
|
+
"size": "t6"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const compoundVariants = [];
|
|
17
|
+
|
|
18
|
+
export const linkWithIconVariantMap = {
|
|
19
|
+
"size": [
|
|
20
|
+
"t6",
|
|
21
|
+
"t5",
|
|
22
|
+
"t4"
|
|
23
|
+
]
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const linkWithIconVariantKeys = Object.keys(linkWithIconVariantMap);
|
|
27
|
+
|
|
28
|
+
export function linkWithIcon(props) {
|
|
29
|
+
return Object.fromEntries(
|
|
30
|
+
linkWithIconSlotNames.map(([slot, className]) => {
|
|
31
|
+
return [
|
|
32
|
+
slot,
|
|
33
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
34
|
+
];
|
|
35
|
+
}),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Object.assign(linkWithIcon, { splitVariantProps: (props) => splitVariantProps(props, linkWithIconVariantMap) });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface MannerTempBadgeVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default l1
|
|
4
|
+
*/
|
|
5
|
+
level: "l1" | "l2" | "l3" | "l4" | "l5" | "l6";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type MannerTempBadgeVariantMap = {
|
|
9
|
+
[key in keyof MannerTempBadgeVariant]: Array<MannerTempBadgeVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type MannerTempBadgeVariantProps = Partial<MannerTempBadgeVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type MannerTempBadgeSlotName = "root";
|
|
15
|
+
|
|
16
|
+
export declare const mannerTempBadgeVariantMap: MannerTempBadgeVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const mannerTempBadge: ((
|
|
19
|
+
props?: MannerTempBadgeVariantProps,
|
|
20
|
+
) => Record<MannerTempBadgeSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends MannerTempBadgeVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [MannerTempBadgeVariantProps, Omit<T, keyof MannerTempBadgeVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const mannerTempBadgeSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-manner-temp-badge__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
const defaultVariant = {
|
|
13
|
+
"level": "l1"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const compoundVariants = [];
|
|
17
|
+
|
|
18
|
+
export const mannerTempBadgeVariantMap = {
|
|
19
|
+
"level": [
|
|
20
|
+
"l1",
|
|
21
|
+
"l2",
|
|
22
|
+
"l3",
|
|
23
|
+
"l4",
|
|
24
|
+
"l5",
|
|
25
|
+
"l6"
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const mannerTempBadgeVariantKeys = Object.keys(mannerTempBadgeVariantMap);
|
|
30
|
+
|
|
31
|
+
export function mannerTempBadge(props) {
|
|
32
|
+
return Object.fromEntries(
|
|
33
|
+
mannerTempBadgeSlotNames.map(([slot, className]) => {
|
|
34
|
+
return [
|
|
35
|
+
slot,
|
|
36
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
37
|
+
];
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Object.assign(mannerTempBadge, { splitVariantProps: (props) => splitVariantProps(props, mannerTempBadgeVariantMap) });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare interface ProgressCircleVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default neutral
|
|
4
|
+
*/
|
|
5
|
+
tone: "neutral" | "brand" | "staticWhite" | "inherit";
|
|
6
|
+
/**
|
|
7
|
+
* @default 40
|
|
8
|
+
*/
|
|
9
|
+
size: "24" | "40" | "inherit";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare type ProgressCircleVariantMap = {
|
|
13
|
+
[key in keyof ProgressCircleVariant]: Array<ProgressCircleVariant[key]>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare type ProgressCircleVariantProps = Partial<ProgressCircleVariant>;
|
|
17
|
+
|
|
18
|
+
export declare type ProgressCircleSlotName = "root" | "track" | "range";
|
|
19
|
+
|
|
20
|
+
export declare const progressCircleVariantMap: ProgressCircleVariantMap;
|
|
21
|
+
|
|
22
|
+
export declare const progressCircle: ((
|
|
23
|
+
props?: ProgressCircleVariantProps,
|
|
24
|
+
) => Record<ProgressCircleSlotName, string>) & {
|
|
25
|
+
splitVariantProps: <T extends ProgressCircleVariantProps>(
|
|
26
|
+
props: T,
|
|
27
|
+
) => [ProgressCircleVariantProps, Omit<T, keyof ProgressCircleVariantProps>];
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const progressCircleSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-progress-circle__root"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"track",
|
|
12
|
+
"seed-progress-circle__track"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"range",
|
|
16
|
+
"seed-progress-circle__range"
|
|
17
|
+
]
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
const defaultVariant = {
|
|
21
|
+
"tone": "neutral",
|
|
22
|
+
"size": 40
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const compoundVariants = [];
|
|
26
|
+
|
|
27
|
+
export const progressCircleVariantMap = {
|
|
28
|
+
"tone": [
|
|
29
|
+
"neutral",
|
|
30
|
+
"brand",
|
|
31
|
+
"staticWhite",
|
|
32
|
+
"inherit"
|
|
33
|
+
],
|
|
34
|
+
"size": [
|
|
35
|
+
"24",
|
|
36
|
+
"40",
|
|
37
|
+
"inherit"
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const progressCircleVariantKeys = Object.keys(progressCircleVariantMap);
|
|
42
|
+
|
|
43
|
+
export function progressCircle(props) {
|
|
44
|
+
return Object.fromEntries(
|
|
45
|
+
progressCircleSlotNames.map(([slot, className]) => {
|
|
46
|
+
return [
|
|
47
|
+
slot,
|
|
48
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
49
|
+
];
|
|
50
|
+
}),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
Object.assign(progressCircle, { splitVariantProps: (props) => splitVariantProps(props, progressCircleVariantMap) });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface PullToRefreshVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type PullToRefreshVariantMap = {
|
|
6
|
+
[key in keyof PullToRefreshVariant]: Array<PullToRefreshVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type PullToRefreshVariantProps = Partial<PullToRefreshVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type PullToRefreshSlotName = "root" | "indicator";
|
|
12
|
+
|
|
13
|
+
export declare const pullToRefreshVariantMap: PullToRefreshVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const pullToRefresh: ((
|
|
16
|
+
props?: PullToRefreshVariantProps,
|
|
17
|
+
) => Record<PullToRefreshSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends PullToRefreshVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [PullToRefreshVariantProps, Omit<T, keyof PullToRefreshVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const pullToRefreshSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-pull-to-refresh__root"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"indicator",
|
|
12
|
+
"seed-pull-to-refresh__indicator"
|
|
13
|
+
]
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const defaultVariant = {};
|
|
17
|
+
|
|
18
|
+
const compoundVariants = [];
|
|
19
|
+
|
|
20
|
+
export const pullToRefreshVariantMap = {};
|
|
21
|
+
|
|
22
|
+
export const pullToRefreshVariantKeys = Object.keys(pullToRefreshVariantMap);
|
|
23
|
+
|
|
24
|
+
export function pullToRefresh(props) {
|
|
25
|
+
return Object.fromEntries(
|
|
26
|
+
pullToRefreshSlotNames.map(([slot, className]) => {
|
|
27
|
+
return [
|
|
28
|
+
slot,
|
|
29
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
30
|
+
];
|
|
31
|
+
}),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Object.assign(pullToRefresh, { splitVariantProps: (props) => splitVariantProps(props, pullToRefreshVariantMap) });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface RadioVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default medium
|
|
4
|
+
*/
|
|
5
|
+
size: "large" | "medium";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type RadioVariantMap = {
|
|
9
|
+
[key in keyof RadioVariant]: Array<RadioVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type RadioVariantProps = Partial<RadioVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type RadioSlotName = "root" | "icon";
|
|
15
|
+
|
|
16
|
+
export declare const radioVariantMap: RadioVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const radio: ((
|
|
19
|
+
props?: RadioVariantProps,
|
|
20
|
+
) => Record<RadioSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends RadioVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [RadioVariantProps, Omit<T, keyof RadioVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const radioSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-radio__root"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"icon",
|
|
12
|
+
"seed-radio__icon"
|
|
13
|
+
]
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const defaultVariant = {
|
|
17
|
+
"size": "medium"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const compoundVariants = [];
|
|
21
|
+
|
|
22
|
+
export const radioVariantMap = {
|
|
23
|
+
"size": [
|
|
24
|
+
"large",
|
|
25
|
+
"medium"
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const radioVariantKeys = Object.keys(radioVariantMap);
|
|
30
|
+
|
|
31
|
+
export function radio(props) {
|
|
32
|
+
return Object.fromEntries(
|
|
33
|
+
radioSlotNames.map(([slot, className]) => {
|
|
34
|
+
return [
|
|
35
|
+
slot,
|
|
36
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
37
|
+
];
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Object.assign(radio, { splitVariantProps: (props) => splitVariantProps(props, radioVariantMap) });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface ReactionButtonVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default small
|
|
4
|
+
*/
|
|
5
|
+
size: "xsmall" | "small";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type ReactionButtonVariantMap = {
|
|
9
|
+
[key in keyof ReactionButtonVariant]: Array<ReactionButtonVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type ReactionButtonVariantProps = Partial<ReactionButtonVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type ReactionButtonSlotName = "root";
|
|
15
|
+
|
|
16
|
+
export declare const reactionButtonVariantMap: ReactionButtonVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const reactionButton: ((
|
|
19
|
+
props?: ReactionButtonVariantProps,
|
|
20
|
+
) => Record<ReactionButtonSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends ReactionButtonVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [ReactionButtonVariantProps, Omit<T, keyof ReactionButtonVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const reactionButtonSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-reaction-button__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
const defaultVariant = {
|
|
13
|
+
"size": "small"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const compoundVariants = [];
|
|
17
|
+
|
|
18
|
+
export const reactionButtonVariantMap = {
|
|
19
|
+
"size": [
|
|
20
|
+
"xsmall",
|
|
21
|
+
"small"
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const reactionButtonVariantKeys = Object.keys(reactionButtonVariantMap);
|
|
26
|
+
|
|
27
|
+
export function reactionButton(props) {
|
|
28
|
+
return Object.fromEntries(
|
|
29
|
+
reactionButtonSlotNames.map(([slot, className]) => {
|
|
30
|
+
return [
|
|
31
|
+
slot,
|
|
32
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
33
|
+
];
|
|
34
|
+
}),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
Object.assign(reactionButton, { splitVariantProps: (props) => splitVariantProps(props, reactionButtonVariantMap) });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface SegmentedControlVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type SegmentedControlVariantMap = {
|
|
6
|
+
[key in keyof SegmentedControlVariant]: Array<SegmentedControlVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type SegmentedControlVariantProps = Partial<SegmentedControlVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type SegmentedControlSlotName = "root" | "indicator" | "item";
|
|
12
|
+
|
|
13
|
+
export declare const segmentedControlVariantMap: SegmentedControlVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const segmentedControl: ((
|
|
16
|
+
props?: SegmentedControlVariantProps,
|
|
17
|
+
) => Record<SegmentedControlSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends SegmentedControlVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [SegmentedControlVariantProps, Omit<T, keyof SegmentedControlVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const segmentedControlSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-segmented-control__root"
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
"indicator",
|
|
12
|
+
"seed-segmented-control__indicator"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"item",
|
|
16
|
+
"seed-segmented-control__item"
|
|
17
|
+
]
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
const defaultVariant = {};
|
|
21
|
+
|
|
22
|
+
const compoundVariants = [];
|
|
23
|
+
|
|
24
|
+
export const segmentedControlVariantMap = {};
|
|
25
|
+
|
|
26
|
+
export const segmentedControlVariantKeys = Object.keys(segmentedControlVariantMap);
|
|
27
|
+
|
|
28
|
+
export function segmentedControl(props) {
|
|
29
|
+
return Object.fromEntries(
|
|
30
|
+
segmentedControlSlotNames.map(([slot, className]) => {
|
|
31
|
+
return [
|
|
32
|
+
slot,
|
|
33
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
34
|
+
];
|
|
35
|
+
}),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Object.assign(segmentedControl, { splitVariantProps: (props) => splitVariantProps(props, segmentedControlVariantMap) });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface SelectBoxGroupVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type SelectBoxGroupVariantMap = {
|
|
6
|
+
[key in keyof SelectBoxGroupVariant]: Array<SelectBoxGroupVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type SelectBoxGroupVariantProps = Partial<SelectBoxGroupVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type SelectBoxGroupSlotName = "root";
|
|
12
|
+
|
|
13
|
+
export declare const selectBoxGroupVariantMap: SelectBoxGroupVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const selectBoxGroup: ((
|
|
16
|
+
props?: SelectBoxGroupVariantProps,
|
|
17
|
+
) => Record<SelectBoxGroupSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends SelectBoxGroupVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [SelectBoxGroupVariantProps, Omit<T, keyof SelectBoxGroupVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createClassName } from "./className.mjs";
|
|
2
|
+
import { mergeVariants } from "./mergeVariants.mjs";
|
|
3
|
+
import { splitVariantProps } from "./splitVariantProps.mjs";
|
|
4
|
+
|
|
5
|
+
const selectBoxGroupSlotNames = [
|
|
6
|
+
[
|
|
7
|
+
"root",
|
|
8
|
+
"seed-select-box-group__root"
|
|
9
|
+
]
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
const defaultVariant = {};
|
|
13
|
+
|
|
14
|
+
const compoundVariants = [];
|
|
15
|
+
|
|
16
|
+
export const selectBoxGroupVariantMap = {};
|
|
17
|
+
|
|
18
|
+
export const selectBoxGroupVariantKeys = Object.keys(selectBoxGroupVariantMap);
|
|
19
|
+
|
|
20
|
+
export function selectBoxGroup(props) {
|
|
21
|
+
return Object.fromEntries(
|
|
22
|
+
selectBoxGroupSlotNames.map(([slot, className]) => {
|
|
23
|
+
return [
|
|
24
|
+
slot,
|
|
25
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
26
|
+
];
|
|
27
|
+
}),
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
Object.assign(selectBoxGroup, { splitVariantProps: (props) => splitVariantProps(props, selectBoxGroupVariantMap) });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface SelectBoxVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type SelectBoxVariantMap = {
|
|
6
|
+
[key in keyof SelectBoxVariant]: Array<SelectBoxVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type SelectBoxVariantProps = Partial<SelectBoxVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type SelectBoxSlotName = "root" | "content" | "label" | "description" | "checkboxControl" | "checkboxIcon" | "radioControl" | "radioIcon";
|
|
12
|
+
|
|
13
|
+
export declare const selectBoxVariantMap: SelectBoxVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const selectBox: ((
|
|
16
|
+
props?: SelectBoxVariantProps,
|
|
17
|
+
) => Record<SelectBoxSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends SelectBoxVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [SelectBoxVariantProps, Omit<T, keyof SelectBoxVariantProps>];
|
|
21
|
+
}
|