@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.
Files changed (219) hide show
  1. package/README.md +1 -0
  2. package/package.json +42 -0
  3. package/recipes/action-button.d.ts +32 -0
  4. package/recipes/action-button.mjs +87 -0
  5. package/recipes/action-chip.d.ts +28 -0
  6. package/recipes/action-chip.mjs +60 -0
  7. package/recipes/action-sheet-item.d.ts +24 -0
  8. package/recipes/action-sheet-item.mjs +38 -0
  9. package/recipes/action-sheet.d.ts +21 -0
  10. package/recipes/action-sheet.mjs +59 -0
  11. package/recipes/app-bar-main.d.ts +36 -0
  12. package/recipes/app-bar-main.mjs +61 -0
  13. package/recipes/app-bar.d.ts +36 -0
  14. package/recipes/app-bar.mjs +68 -0
  15. package/recipes/app-screen.d.ts +36 -0
  16. package/recipes/app-screen.mjs +66 -0
  17. package/recipes/avatar-stack.d.ts +24 -0
  18. package/recipes/avatar-stack.mjs +45 -0
  19. package/recipes/avatar.d.ts +24 -0
  20. package/recipes/avatar.mjs +55 -0
  21. package/recipes/badge.d.ts +36 -0
  22. package/recipes/badge.mjs +126 -0
  23. package/recipes/bottom-sheet.d.ts +21 -0
  24. package/recipes/bottom-sheet.mjs +63 -0
  25. package/recipes/callout.d.ts +24 -0
  26. package/recipes/callout.mjs +61 -0
  27. package/recipes/checkbox.d.ts +32 -0
  28. package/recipes/checkbox.mjs +77 -0
  29. package/recipes/chip-tabs.d.ts +32 -0
  30. package/recipes/chip-tabs.mjs +68 -0
  31. package/recipes/className.mjs +25 -0
  32. package/recipes/control-chip.d.ts +28 -0
  33. package/recipes/control-chip.mjs +60 -0
  34. package/recipes/dialog.d.ts +21 -0
  35. package/recipes/dialog.mjs +59 -0
  36. package/recipes/extended-action-sheet-item.d.ts +24 -0
  37. package/recipes/extended-action-sheet-item.mjs +38 -0
  38. package/recipes/extended-action-sheet.d.ts +21 -0
  39. package/recipes/extended-action-sheet.mjs +63 -0
  40. package/recipes/extended-fab.d.ts +28 -0
  41. package/recipes/extended-fab.mjs +43 -0
  42. package/recipes/fab.d.ts +21 -0
  43. package/recipes/fab.mjs +31 -0
  44. package/recipes/help-bubble.d.ts +21 -0
  45. package/recipes/help-bubble.mjs +55 -0
  46. package/recipes/identity-placeholder.d.ts +24 -0
  47. package/recipes/identity-placeholder.mjs +41 -0
  48. package/recipes/inline-banner.d.ts +24 -0
  49. package/recipes/inline-banner.mjs +63 -0
  50. package/recipes/link-with-icon.d.ts +24 -0
  51. package/recipes/link-with-icon.mjs +39 -0
  52. package/recipes/manner-temp-badge.d.ts +24 -0
  53. package/recipes/manner-temp-badge.mjs +42 -0
  54. package/recipes/mergeVariants.mjs +9 -0
  55. package/recipes/progress-circle.d.ts +28 -0
  56. package/recipes/progress-circle.mjs +54 -0
  57. package/recipes/pull-to-refresh.d.ts +21 -0
  58. package/recipes/pull-to-refresh.mjs +35 -0
  59. package/recipes/radio.d.ts +24 -0
  60. package/recipes/radio.mjs +42 -0
  61. package/recipes/reaction-button.d.ts +24 -0
  62. package/recipes/reaction-button.mjs +38 -0
  63. package/recipes/segmented-control.d.ts +21 -0
  64. package/recipes/segmented-control.mjs +39 -0
  65. package/recipes/select-box-group.d.ts +21 -0
  66. package/recipes/select-box-group.mjs +31 -0
  67. package/recipes/select-box.d.ts +21 -0
  68. package/recipes/select-box.mjs +59 -0
  69. package/recipes/skeleton.d.ts +24 -0
  70. package/recipes/skeleton.mjs +40 -0
  71. package/recipes/snackbar-region.d.ts +21 -0
  72. package/recipes/snackbar-region.mjs +31 -0
  73. package/recipes/snackbar.d.ts +24 -0
  74. package/recipes/snackbar.mjs +51 -0
  75. package/recipes/splitVariantProps.mjs +12 -0
  76. package/recipes/switch.d.ts +24 -0
  77. package/recipes/switch.mjs +50 -0
  78. package/recipes/tabs.d.ts +36 -0
  79. package/recipes/tabs.mjs +81 -0
  80. package/recipes/text-field.d.ts +24 -0
  81. package/recipes/text-field.mjs +103 -0
  82. package/recipes/text.d.ts +28 -0
  83. package/recipes/text.mjs +64 -0
  84. package/recipes/toggle-button.d.ts +28 -0
  85. package/recipes/toggle-button.mjs +43 -0
  86. package/recipes/visually-hidden.d.ts +21 -0
  87. package/recipes/visually-hidden.mjs +31 -0
  88. package/seed.css +5017 -0
  89. package/seed.min.css +1 -0
  90. package/vars/color/bg.d.ts +37 -0
  91. package/vars/color/bg.mjs +37 -0
  92. package/vars/color/fg.d.ts +16 -0
  93. package/vars/color/fg.mjs +16 -0
  94. package/vars/color/index.d.ts +5 -0
  95. package/vars/color/index.mjs +5 -0
  96. package/vars/color/manner-temp/index.d.ts +6 -0
  97. package/vars/color/manner-temp/index.mjs +6 -0
  98. package/vars/color/manner-temp/l1.d.ts +2 -0
  99. package/vars/color/manner-temp/l1.mjs +2 -0
  100. package/vars/color/manner-temp/l2.d.ts +2 -0
  101. package/vars/color/manner-temp/l2.mjs +2 -0
  102. package/vars/color/manner-temp/l3.d.ts +2 -0
  103. package/vars/color/manner-temp/l3.mjs +2 -0
  104. package/vars/color/manner-temp/l4.d.ts +2 -0
  105. package/vars/color/manner-temp/l4.mjs +2 -0
  106. package/vars/color/manner-temp/l5.d.ts +2 -0
  107. package/vars/color/manner-temp/l5.mjs +2 -0
  108. package/vars/color/manner-temp/l6.d.ts +2 -0
  109. package/vars/color/manner-temp/l6.mjs +2 -0
  110. package/vars/color/palette.d.ts +78 -0
  111. package/vars/color/palette.mjs +78 -0
  112. package/vars/color/stroke.d.ts +10 -0
  113. package/vars/color/stroke.mjs +10 -0
  114. package/vars/component/action-button.d.ts +491 -0
  115. package/vars/component/action-button.mjs +491 -0
  116. package/vars/component/action-chip.d.ts +128 -0
  117. package/vars/component/action-chip.mjs +128 -0
  118. package/vars/component/action-sheet-close-button.d.ts +23 -0
  119. package/vars/component/action-sheet-close-button.mjs +23 -0
  120. package/vars/component/action-sheet-item.d.ts +36 -0
  121. package/vars/component/action-sheet-item.mjs +36 -0
  122. package/vars/component/action-sheet.d.ts +45 -0
  123. package/vars/component/action-sheet.mjs +45 -0
  124. package/vars/component/avatar-stack.d.ts +60 -0
  125. package/vars/component/avatar-stack.mjs +60 -0
  126. package/vars/component/avatar.d.ts +83 -0
  127. package/vars/component/avatar.mjs +83 -0
  128. package/vars/component/badge.d.ts +223 -0
  129. package/vars/component/badge.mjs +223 -0
  130. package/vars/component/bottom-sheet.d.ts +61 -0
  131. package/vars/component/bottom-sheet.mjs +61 -0
  132. package/vars/component/callout.d.ts +173 -0
  133. package/vars/component/callout.mjs +173 -0
  134. package/vars/component/checkbox.d.ts +171 -0
  135. package/vars/component/checkbox.mjs +171 -0
  136. package/vars/component/chip-tab.d.ts +98 -0
  137. package/vars/component/chip-tab.mjs +98 -0
  138. package/vars/component/chip-tablist.d.ts +23 -0
  139. package/vars/component/chip-tablist.mjs +23 -0
  140. package/vars/component/control-chip.d.ts +156 -0
  141. package/vars/component/control-chip.mjs +156 -0
  142. package/vars/component/dialog.d.ts +49 -0
  143. package/vars/component/dialog.mjs +49 -0
  144. package/vars/component/extended-action-sheet-close-button.d.ts +25 -0
  145. package/vars/component/extended-action-sheet-close-button.mjs +25 -0
  146. package/vars/component/extended-action-sheet-item.d.ts +46 -0
  147. package/vars/component/extended-action-sheet-item.mjs +46 -0
  148. package/vars/component/extended-action-sheet.d.ts +48 -0
  149. package/vars/component/extended-action-sheet.mjs +48 -0
  150. package/vars/component/extended-fab.d.ts +82 -0
  151. package/vars/component/extended-fab.mjs +82 -0
  152. package/vars/component/fab.d.ts +21 -0
  153. package/vars/component/fab.mjs +21 -0
  154. package/vars/component/help-bubble.d.ts +36 -0
  155. package/vars/component/help-bubble.mjs +36 -0
  156. package/vars/component/identity-placeholder.d.ts +12 -0
  157. package/vars/component/identity-placeholder.mjs +12 -0
  158. package/vars/component/index.d.ts +40 -0
  159. package/vars/component/index.mjs +40 -0
  160. package/vars/component/inline-banner.d.ts +191 -0
  161. package/vars/component/inline-banner.mjs +191 -0
  162. package/vars/component/link-with-icon.d.ts +46 -0
  163. package/vars/component/link-with-icon.mjs +46 -0
  164. package/vars/component/manner-temp-badge.d.ts +77 -0
  165. package/vars/component/manner-temp-badge.mjs +77 -0
  166. package/vars/component/progress-circle.d.ts +67 -0
  167. package/vars/component/progress-circle.mjs +67 -0
  168. package/vars/component/radio.d.ts +77 -0
  169. package/vars/component/radio.mjs +77 -0
  170. package/vars/component/reaction-button.d.ts +134 -0
  171. package/vars/component/reaction-button.mjs +134 -0
  172. package/vars/component/segmented-control-item.d.ts +34 -0
  173. package/vars/component/segmented-control-item.mjs +34 -0
  174. package/vars/component/segmented-control.d.ts +18 -0
  175. package/vars/component/segmented-control.mjs +18 -0
  176. package/vars/component/select-box.d.ts +92 -0
  177. package/vars/component/select-box.mjs +92 -0
  178. package/vars/component/skeleton.d.ts +42 -0
  179. package/vars/component/skeleton.mjs +42 -0
  180. package/vars/component/snackbar.d.ts +58 -0
  181. package/vars/component/snackbar.mjs +58 -0
  182. package/vars/component/switch.d.ts +65 -0
  183. package/vars/component/switch.mjs +65 -0
  184. package/vars/component/tab.d.ts +53 -0
  185. package/vars/component/tab.mjs +53 -0
  186. package/vars/component/tablist.d.ts +51 -0
  187. package/vars/component/tablist.mjs +51 -0
  188. package/vars/component/text-field.d.ts +295 -0
  189. package/vars/component/text-field.mjs +295 -0
  190. package/vars/component/toggle-button.d.ts +205 -0
  191. package/vars/component/toggle-button.mjs +205 -0
  192. package/vars/component/top-navigation.d.ts +86 -0
  193. package/vars/component/top-navigation.mjs +86 -0
  194. package/vars/component/typography.d.ts +200 -0
  195. package/vars/component/typography.mjs +200 -0
  196. package/vars/dimension/index.d.ts +22 -0
  197. package/vars/dimension/index.mjs +22 -0
  198. package/vars/dimension/spacing-x.d.ts +2 -0
  199. package/vars/dimension/spacing-x.mjs +2 -0
  200. package/vars/dimension/spacing-y.d.ts +2 -0
  201. package/vars/dimension/spacing-y.mjs +2 -0
  202. package/vars/duration.d.ts +6 -0
  203. package/vars/duration.mjs +6 -0
  204. package/vars/font-size.d.ts +13 -0
  205. package/vars/font-size.mjs +13 -0
  206. package/vars/font-weight.d.ts +3 -0
  207. package/vars/font-weight.mjs +3 -0
  208. package/vars/gradient.d.ts +1 -0
  209. package/vars/gradient.mjs +1 -0
  210. package/vars/index.d.ts +32 -0
  211. package/vars/index.mjs +1 -0
  212. package/vars/line-height.d.ts +10 -0
  213. package/vars/line-height.mjs +10 -0
  214. package/vars/radius.d.ts +11 -0
  215. package/vars/radius.mjs +11 -0
  216. package/vars/timing-function.d.ts +6 -0
  217. package/vars/timing-function.mjs +6 -0
  218. package/vars/vars.d.ts +9 -0
  219. package/vars/vars.mjs +9 -0
@@ -0,0 +1,68 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const chipTabsSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-chip-tabs__root"
9
+ ],
10
+ [
11
+ "list",
12
+ "seed-chip-tabs__list"
13
+ ],
14
+ [
15
+ "carousel",
16
+ "seed-chip-tabs__carousel"
17
+ ],
18
+ [
19
+ "carouselCamera",
20
+ "seed-chip-tabs__carouselCamera"
21
+ ],
22
+ [
23
+ "content",
24
+ "seed-chip-tabs__content"
25
+ ],
26
+ [
27
+ "trigger",
28
+ "seed-chip-tabs__trigger"
29
+ ]
30
+ ];
31
+
32
+ const defaultVariant = {
33
+ "variant": "neutralSolid",
34
+ "contentLayout": "hug",
35
+ "stickyList": false
36
+ };
37
+
38
+ const compoundVariants = [];
39
+
40
+ export const chipTabsVariantMap = {
41
+ "variant": [
42
+ "neutralSolid",
43
+ "brandSolid"
44
+ ],
45
+ "contentLayout": [
46
+ "fill",
47
+ "hug"
48
+ ],
49
+ "stickyList": [
50
+ true,
51
+ false
52
+ ]
53
+ };
54
+
55
+ export const chipTabsVariantKeys = Object.keys(chipTabsVariantMap);
56
+
57
+ export function chipTabs(props) {
58
+ return Object.fromEntries(
59
+ chipTabsSlotNames.map(([slot, className]) => {
60
+ return [
61
+ slot,
62
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
63
+ ];
64
+ }),
65
+ );
66
+ }
67
+
68
+ Object.assign(chipTabs, { splitVariantProps: (props) => splitVariantProps(props, chipTabsVariantMap) });
@@ -0,0 +1,25 @@
1
+ export const createClassName = (className, variants, compoundVariants = []) => {
2
+ const variantKeys = Object.keys(variants)
3
+
4
+ const variantValues = variantKeys.map((key) => variants[key]);
5
+
6
+ const variantClassName = variantKeys
7
+ .map((key, index) => `${className}--${key}_${variantValues[index]}`)
8
+ .join(" ");
9
+
10
+ const compountVariantClassName = compoundVariants
11
+ .filter((compoundVariant) =>
12
+ Object.keys(compoundVariant).every((key) => compoundVariant[key] === variants[key]),
13
+ )
14
+ .map(
15
+ (compoundVariant) =>
16
+ `${className}--${Object.keys(compoundVariant)
17
+ .map((key) => {
18
+ return `${key}_${compoundVariant[key]}`;
19
+ })
20
+ .join("-")}`,
21
+ )
22
+ .join(" ");
23
+
24
+ return [className, variantClassName, compountVariantClassName].filter(Boolean).join(" ");
25
+ };
@@ -0,0 +1,28 @@
1
+ declare interface ControlChipVariant {
2
+ /**
3
+ * @default medium
4
+ */
5
+ size: "medium" | "small";
6
+ /**
7
+ * @default withText
8
+ */
9
+ layout: "withText" | "iconOnly";
10
+ }
11
+
12
+ declare type ControlChipVariantMap = {
13
+ [key in keyof ControlChipVariant]: Array<ControlChipVariant[key]>;
14
+ };
15
+
16
+ export declare type ControlChipVariantProps = Partial<ControlChipVariant>;
17
+
18
+ export declare type ControlChipSlotName = "root";
19
+
20
+ export declare const controlChipVariantMap: ControlChipVariantMap;
21
+
22
+ export declare const controlChip: ((
23
+ props?: ControlChipVariantProps,
24
+ ) => Record<ControlChipSlotName, string>) & {
25
+ splitVariantProps: <T extends ControlChipVariantProps>(
26
+ props: T,
27
+ ) => [ControlChipVariantProps, Omit<T, keyof ControlChipVariantProps>];
28
+ }
@@ -0,0 +1,60 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const controlChipSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-control-chip__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {
13
+ "size": "medium",
14
+ "layout": "withText"
15
+ };
16
+
17
+ const compoundVariants = [
18
+ {
19
+ "size": "medium",
20
+ "layout": "withText"
21
+ },
22
+ {
23
+ "size": "medium",
24
+ "layout": "iconOnly"
25
+ },
26
+ {
27
+ "size": "small",
28
+ "layout": "withText"
29
+ },
30
+ {
31
+ "size": "small",
32
+ "layout": "iconOnly"
33
+ }
34
+ ];
35
+
36
+ export const controlChipVariantMap = {
37
+ "size": [
38
+ "medium",
39
+ "small"
40
+ ],
41
+ "layout": [
42
+ "withText",
43
+ "iconOnly"
44
+ ]
45
+ };
46
+
47
+ export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
48
+
49
+ export function controlChip(props) {
50
+ return Object.fromEntries(
51
+ controlChipSlotNames.map(([slot, className]) => {
52
+ return [
53
+ slot,
54
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
55
+ ];
56
+ }),
57
+ );
58
+ }
59
+
60
+ Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
@@ -0,0 +1,21 @@
1
+ declare interface DialogVariant {
2
+
3
+ }
4
+
5
+ declare type DialogVariantMap = {
6
+ [key in keyof DialogVariant]: Array<DialogVariant[key]>;
7
+ };
8
+
9
+ export declare type DialogVariantProps = Partial<DialogVariant>;
10
+
11
+ export declare type DialogSlotName = "positioner" | "backdrop" | "content" | "header" | "footer" | "action" | "title" | "description";
12
+
13
+ export declare const dialogVariantMap: DialogVariantMap;
14
+
15
+ export declare const dialog: ((
16
+ props?: DialogVariantProps,
17
+ ) => Record<DialogSlotName, string>) & {
18
+ splitVariantProps: <T extends DialogVariantProps>(
19
+ props: T,
20
+ ) => [DialogVariantProps, Omit<T, keyof DialogVariantProps>];
21
+ }
@@ -0,0 +1,59 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const dialogSlotNames = [
6
+ [
7
+ "positioner",
8
+ "seed-dialog__positioner"
9
+ ],
10
+ [
11
+ "backdrop",
12
+ "seed-dialog__backdrop"
13
+ ],
14
+ [
15
+ "content",
16
+ "seed-dialog__content"
17
+ ],
18
+ [
19
+ "header",
20
+ "seed-dialog__header"
21
+ ],
22
+ [
23
+ "footer",
24
+ "seed-dialog__footer"
25
+ ],
26
+ [
27
+ "action",
28
+ "seed-dialog__action"
29
+ ],
30
+ [
31
+ "title",
32
+ "seed-dialog__title"
33
+ ],
34
+ [
35
+ "description",
36
+ "seed-dialog__description"
37
+ ]
38
+ ];
39
+
40
+ const defaultVariant = {};
41
+
42
+ const compoundVariants = [];
43
+
44
+ export const dialogVariantMap = {};
45
+
46
+ export const dialogVariantKeys = Object.keys(dialogVariantMap);
47
+
48
+ export function dialog(props) {
49
+ return Object.fromEntries(
50
+ dialogSlotNames.map(([slot, className]) => {
51
+ return [
52
+ slot,
53
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
54
+ ];
55
+ }),
56
+ );
57
+ }
58
+
59
+ Object.assign(dialog, { splitVariantProps: (props) => splitVariantProps(props, dialogVariantMap) });
@@ -0,0 +1,24 @@
1
+ declare interface ExtendedActionSheetItemVariant {
2
+ /**
3
+ * @default neutral
4
+ */
5
+ tone: "neutral" | "critical";
6
+ }
7
+
8
+ declare type ExtendedActionSheetItemVariantMap = {
9
+ [key in keyof ExtendedActionSheetItemVariant]: Array<ExtendedActionSheetItemVariant[key]>;
10
+ };
11
+
12
+ export declare type ExtendedActionSheetItemVariantProps = Partial<ExtendedActionSheetItemVariant>;
13
+
14
+ export declare type ExtendedActionSheetItemSlotName = "root";
15
+
16
+ export declare const extendedActionSheetItemVariantMap: ExtendedActionSheetItemVariantMap;
17
+
18
+ export declare const extendedActionSheetItem: ((
19
+ props?: ExtendedActionSheetItemVariantProps,
20
+ ) => Record<ExtendedActionSheetItemSlotName, string>) & {
21
+ splitVariantProps: <T extends ExtendedActionSheetItemVariantProps>(
22
+ props: T,
23
+ ) => [ExtendedActionSheetItemVariantProps, Omit<T, keyof ExtendedActionSheetItemVariantProps>];
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 extendedActionSheetItemSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-extended-action-sheet-item__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {
13
+ "tone": "neutral"
14
+ };
15
+
16
+ const compoundVariants = [];
17
+
18
+ export const extendedActionSheetItemVariantMap = {
19
+ "tone": [
20
+ "neutral",
21
+ "critical"
22
+ ]
23
+ };
24
+
25
+ export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
26
+
27
+ export function extendedActionSheetItem(props) {
28
+ return Object.fromEntries(
29
+ extendedActionSheetItemSlotNames.map(([slot, className]) => {
30
+ return [
31
+ slot,
32
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
33
+ ];
34
+ }),
35
+ );
36
+ }
37
+
38
+ Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
@@ -0,0 +1,21 @@
1
+ declare interface ExtendedActionSheetVariant {
2
+
3
+ }
4
+
5
+ declare type ExtendedActionSheetVariantMap = {
6
+ [key in keyof ExtendedActionSheetVariant]: Array<ExtendedActionSheetVariant[key]>;
7
+ };
8
+
9
+ export declare type ExtendedActionSheetVariantProps = Partial<ExtendedActionSheetVariant>;
10
+
11
+ export declare type ExtendedActionSheetSlotName = "backdrop" | "positioner" | "content" | "header" | "title" | "list" | "group" | "footer" | "closeButton";
12
+
13
+ export declare const extendedActionSheetVariantMap: ExtendedActionSheetVariantMap;
14
+
15
+ export declare const extendedActionSheet: ((
16
+ props?: ExtendedActionSheetVariantProps,
17
+ ) => Record<ExtendedActionSheetSlotName, string>) & {
18
+ splitVariantProps: <T extends ExtendedActionSheetVariantProps>(
19
+ props: T,
20
+ ) => [ExtendedActionSheetVariantProps, Omit<T, keyof ExtendedActionSheetVariantProps>];
21
+ }
@@ -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 extendedActionSheetSlotNames = [
6
+ [
7
+ "backdrop",
8
+ "seed-extended-action-sheet__backdrop"
9
+ ],
10
+ [
11
+ "positioner",
12
+ "seed-extended-action-sheet__positioner"
13
+ ],
14
+ [
15
+ "content",
16
+ "seed-extended-action-sheet__content"
17
+ ],
18
+ [
19
+ "header",
20
+ "seed-extended-action-sheet__header"
21
+ ],
22
+ [
23
+ "title",
24
+ "seed-extended-action-sheet__title"
25
+ ],
26
+ [
27
+ "list",
28
+ "seed-extended-action-sheet__list"
29
+ ],
30
+ [
31
+ "group",
32
+ "seed-extended-action-sheet__group"
33
+ ],
34
+ [
35
+ "footer",
36
+ "seed-extended-action-sheet__footer"
37
+ ],
38
+ [
39
+ "closeButton",
40
+ "seed-extended-action-sheet__closeButton"
41
+ ]
42
+ ];
43
+
44
+ const defaultVariant = {};
45
+
46
+ const compoundVariants = [];
47
+
48
+ export const extendedActionSheetVariantMap = {};
49
+
50
+ export const extendedActionSheetVariantKeys = Object.keys(extendedActionSheetVariantMap);
51
+
52
+ export function extendedActionSheet(props) {
53
+ return Object.fromEntries(
54
+ extendedActionSheetSlotNames.map(([slot, className]) => {
55
+ return [
56
+ slot,
57
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
58
+ ];
59
+ }),
60
+ );
61
+ }
62
+
63
+ Object.assign(extendedActionSheet, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetVariantMap) });
@@ -0,0 +1,28 @@
1
+ declare interface ExtendedFabVariant {
2
+ /**
3
+ * @default neutralSolid
4
+ */
5
+ variant: "neutralSolid" | "layerFloating";
6
+ /**
7
+ * @default medium
8
+ */
9
+ size: "small" | "medium";
10
+ }
11
+
12
+ declare type ExtendedFabVariantMap = {
13
+ [key in keyof ExtendedFabVariant]: Array<ExtendedFabVariant[key]>;
14
+ };
15
+
16
+ export declare type ExtendedFabVariantProps = Partial<ExtendedFabVariant>;
17
+
18
+ export declare type ExtendedFabSlotName = "root";
19
+
20
+ export declare const extendedFabVariantMap: ExtendedFabVariantMap;
21
+
22
+ export declare const extendedFab: ((
23
+ props?: ExtendedFabVariantProps,
24
+ ) => Record<ExtendedFabSlotName, string>) & {
25
+ splitVariantProps: <T extends ExtendedFabVariantProps>(
26
+ props: T,
27
+ ) => [ExtendedFabVariantProps, Omit<T, keyof ExtendedFabVariantProps>];
28
+ }
@@ -0,0 +1,43 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const extendedFabSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-extended-fab__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {
13
+ "variant": "neutralSolid",
14
+ "size": "medium"
15
+ };
16
+
17
+ const compoundVariants = [];
18
+
19
+ export const extendedFabVariantMap = {
20
+ "variant": [
21
+ "neutralSolid",
22
+ "layerFloating"
23
+ ],
24
+ "size": [
25
+ "small",
26
+ "medium"
27
+ ]
28
+ };
29
+
30
+ export const extendedFabVariantKeys = Object.keys(extendedFabVariantMap);
31
+
32
+ export function extendedFab(props) {
33
+ return Object.fromEntries(
34
+ extendedFabSlotNames.map(([slot, className]) => {
35
+ return [
36
+ slot,
37
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
38
+ ];
39
+ }),
40
+ );
41
+ }
42
+
43
+ Object.assign(extendedFab, { splitVariantProps: (props) => splitVariantProps(props, extendedFabVariantMap) });
@@ -0,0 +1,21 @@
1
+ declare interface FabVariant {
2
+
3
+ }
4
+
5
+ declare type FabVariantMap = {
6
+ [key in keyof FabVariant]: Array<FabVariant[key]>;
7
+ };
8
+
9
+ export declare type FabVariantProps = Partial<FabVariant>;
10
+
11
+ export declare type FabSlotName = "root";
12
+
13
+ export declare const fabVariantMap: FabVariantMap;
14
+
15
+ export declare const fab: ((
16
+ props?: FabVariantProps,
17
+ ) => Record<FabSlotName, string>) & {
18
+ splitVariantProps: <T extends FabVariantProps>(
19
+ props: T,
20
+ ) => [FabVariantProps, Omit<T, keyof FabVariantProps>];
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 fabSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-fab__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {};
13
+
14
+ const compoundVariants = [];
15
+
16
+ export const fabVariantMap = {};
17
+
18
+ export const fabVariantKeys = Object.keys(fabVariantMap);
19
+
20
+ export function fab(props) {
21
+ return Object.fromEntries(
22
+ fabSlotNames.map(([slot, className]) => {
23
+ return [
24
+ slot,
25
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
26
+ ];
27
+ }),
28
+ );
29
+ }
30
+
31
+ Object.assign(fab, { splitVariantProps: (props) => splitVariantProps(props, fabVariantMap) });
@@ -0,0 +1,21 @@
1
+ declare interface HelpBubbleVariant {
2
+
3
+ }
4
+
5
+ declare type HelpBubbleVariantMap = {
6
+ [key in keyof HelpBubbleVariant]: Array<HelpBubbleVariant[key]>;
7
+ };
8
+
9
+ export declare type HelpBubbleVariantProps = Partial<HelpBubbleVariant>;
10
+
11
+ export declare type HelpBubbleSlotName = "positioner" | "backdrop" | "content" | "arrow" | "title" | "description" | "closeButton";
12
+
13
+ export declare const helpBubbleVariantMap: HelpBubbleVariantMap;
14
+
15
+ export declare const helpBubble: ((
16
+ props?: HelpBubbleVariantProps,
17
+ ) => Record<HelpBubbleSlotName, string>) & {
18
+ splitVariantProps: <T extends HelpBubbleVariantProps>(
19
+ props: T,
20
+ ) => [HelpBubbleVariantProps, Omit<T, keyof HelpBubbleVariantProps>];
21
+ }
@@ -0,0 +1,55 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const helpBubbleSlotNames = [
6
+ [
7
+ "positioner",
8
+ "seed-help-bubble__positioner"
9
+ ],
10
+ [
11
+ "backdrop",
12
+ "seed-help-bubble__backdrop"
13
+ ],
14
+ [
15
+ "content",
16
+ "seed-help-bubble__content"
17
+ ],
18
+ [
19
+ "arrow",
20
+ "seed-help-bubble__arrow"
21
+ ],
22
+ [
23
+ "title",
24
+ "seed-help-bubble__title"
25
+ ],
26
+ [
27
+ "description",
28
+ "seed-help-bubble__description"
29
+ ],
30
+ [
31
+ "closeButton",
32
+ "seed-help-bubble__closeButton"
33
+ ]
34
+ ];
35
+
36
+ const defaultVariant = {};
37
+
38
+ const compoundVariants = [];
39
+
40
+ export const helpBubbleVariantMap = {};
41
+
42
+ export const helpBubbleVariantKeys = Object.keys(helpBubbleVariantMap);
43
+
44
+ export function helpBubble(props) {
45
+ return Object.fromEntries(
46
+ helpBubbleSlotNames.map(([slot, className]) => {
47
+ return [
48
+ slot,
49
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
50
+ ];
51
+ }),
52
+ );
53
+ }
54
+
55
+ Object.assign(helpBubble, { splitVariantProps: (props) => splitVariantProps(props, helpBubbleVariantMap) });
@@ -0,0 +1,24 @@
1
+ declare interface IdentityPlaceholderVariant {
2
+ /**
3
+ * @default person
4
+ */
5
+ identity: "person";
6
+ }
7
+
8
+ declare type IdentityPlaceholderVariantMap = {
9
+ [key in keyof IdentityPlaceholderVariant]: Array<IdentityPlaceholderVariant[key]>;
10
+ };
11
+
12
+ export declare type IdentityPlaceholderVariantProps = Partial<IdentityPlaceholderVariant>;
13
+
14
+ export declare type IdentityPlaceholderSlotName = "root" | "image";
15
+
16
+ export declare const identityPlaceholderVariantMap: IdentityPlaceholderVariantMap;
17
+
18
+ export declare const identityPlaceholder: ((
19
+ props?: IdentityPlaceholderVariantProps,
20
+ ) => Record<IdentityPlaceholderSlotName, string>) & {
21
+ splitVariantProps: <T extends IdentityPlaceholderVariantProps>(
22
+ props: T,
23
+ ) => [IdentityPlaceholderVariantProps, Omit<T, keyof IdentityPlaceholderVariantProps>];
24
+ }
@@ -0,0 +1,41 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const identityPlaceholderSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-identity-placeholder__root"
9
+ ],
10
+ [
11
+ "image",
12
+ "seed-identity-placeholder__image"
13
+ ]
14
+ ];
15
+
16
+ const defaultVariant = {
17
+ "identity": "person"
18
+ };
19
+
20
+ const compoundVariants = [];
21
+
22
+ export const identityPlaceholderVariantMap = {
23
+ "identity": [
24
+ "person"
25
+ ]
26
+ };
27
+
28
+ export const identityPlaceholderVariantKeys = Object.keys(identityPlaceholderVariantMap);
29
+
30
+ export function identityPlaceholder(props) {
31
+ return Object.fromEntries(
32
+ identityPlaceholderSlotNames.map(([slot, className]) => {
33
+ return [
34
+ slot,
35
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
36
+ ];
37
+ }),
38
+ );
39
+ }
40
+
41
+ Object.assign(identityPlaceholder, { splitVariantProps: (props) => splitVariantProps(props, identityPlaceholderVariantMap) });