@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
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @seed-design/css
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@seed-design/css",
3
+ "version": "0.0.1-rc.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/daangn/seed-design.git",
7
+ "directory": "packages/css"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "sideEffects": [
13
+ "*.css"
14
+ ],
15
+ "scripts": {
16
+ "generate": "bun rootage:generate && qvism:generate",
17
+ "rootage:generate": "bun rootage token-ts ./vars && rootage component-spec ./vars/component",
18
+ "qvism:generate": "bun qvism css && bun qvism js ./recipes"
19
+ },
20
+ "exports": {
21
+ "./*.css": "./*.css",
22
+ "./recipes/*": {
23
+ "types": "./recipes/*.d.ts",
24
+ "import": "./recipes/*.mjs"
25
+ },
26
+ "./vars": {
27
+ "types": "./vars/index.d.ts",
28
+ "import": "./vars/index.mjs"
29
+ },
30
+ "./vars/component": {
31
+ "types": "./vars/component/index.d.ts",
32
+ "import": "./vars/component/index.mjs"
33
+ },
34
+ "./package.json": "./package.json"
35
+ },
36
+ "files": [
37
+ "package.json",
38
+ "recipes",
39
+ "vars",
40
+ "*.css"
41
+ ]
42
+ }
@@ -0,0 +1,32 @@
1
+ declare interface ActionButtonVariant {
2
+ /**
3
+ * @default brandSolid
4
+ */
5
+ variant: "brandSolid" | "neutralSolid" | "neutralWeak" | "criticalSolid" | "brandOutline" | "neutralOutline";
6
+ /**
7
+ * @default medium
8
+ */
9
+ size: "xsmall" | "small" | "medium" | "large";
10
+ /**
11
+ * @default withText
12
+ */
13
+ layout: "withText" | "iconOnly";
14
+ }
15
+
16
+ declare type ActionButtonVariantMap = {
17
+ [key in keyof ActionButtonVariant]: Array<ActionButtonVariant[key]>;
18
+ };
19
+
20
+ export declare type ActionButtonVariantProps = Partial<ActionButtonVariant>;
21
+
22
+ export declare type ActionButtonSlotName = "root";
23
+
24
+ export declare const actionButtonVariantMap: ActionButtonVariantMap;
25
+
26
+ export declare const actionButton: ((
27
+ props?: ActionButtonVariantProps,
28
+ ) => Record<ActionButtonSlotName, string>) & {
29
+ splitVariantProps: <T extends ActionButtonVariantProps>(
30
+ props: T,
31
+ ) => [ActionButtonVariantProps, Omit<T, keyof ActionButtonVariantProps>];
32
+ }
@@ -0,0 +1,87 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const actionButtonSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-action-button__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {
13
+ "variant": "brandSolid",
14
+ "size": "medium",
15
+ "layout": "withText"
16
+ };
17
+
18
+ const compoundVariants = [
19
+ {
20
+ "size": "xsmall",
21
+ "layout": "withText"
22
+ },
23
+ {
24
+ "size": "xsmall",
25
+ "layout": "iconOnly"
26
+ },
27
+ {
28
+ "size": "small",
29
+ "layout": "withText"
30
+ },
31
+ {
32
+ "size": "small",
33
+ "layout": "iconOnly"
34
+ },
35
+ {
36
+ "size": "medium",
37
+ "layout": "withText"
38
+ },
39
+ {
40
+ "size": "medium",
41
+ "layout": "iconOnly"
42
+ },
43
+ {
44
+ "size": "large",
45
+ "layout": "withText"
46
+ },
47
+ {
48
+ "size": "large",
49
+ "layout": "iconOnly"
50
+ }
51
+ ];
52
+
53
+ export const actionButtonVariantMap = {
54
+ "variant": [
55
+ "brandSolid",
56
+ "neutralSolid",
57
+ "neutralWeak",
58
+ "criticalSolid",
59
+ "brandOutline",
60
+ "neutralOutline"
61
+ ],
62
+ "size": [
63
+ "xsmall",
64
+ "small",
65
+ "medium",
66
+ "large"
67
+ ],
68
+ "layout": [
69
+ "withText",
70
+ "iconOnly"
71
+ ]
72
+ };
73
+
74
+ export const actionButtonVariantKeys = Object.keys(actionButtonVariantMap);
75
+
76
+ export function actionButton(props) {
77
+ return Object.fromEntries(
78
+ actionButtonSlotNames.map(([slot, className]) => {
79
+ return [
80
+ slot,
81
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
82
+ ];
83
+ }),
84
+ );
85
+ }
86
+
87
+ Object.assign(actionButton, { splitVariantProps: (props) => splitVariantProps(props, actionButtonVariantMap) });
@@ -0,0 +1,28 @@
1
+ declare interface ActionChipVariant {
2
+ /**
3
+ * @default medium
4
+ */
5
+ size: "medium" | "small";
6
+ /**
7
+ * @default withText
8
+ */
9
+ layout: "withText" | "iconOnly";
10
+ }
11
+
12
+ declare type ActionChipVariantMap = {
13
+ [key in keyof ActionChipVariant]: Array<ActionChipVariant[key]>;
14
+ };
15
+
16
+ export declare type ActionChipVariantProps = Partial<ActionChipVariant>;
17
+
18
+ export declare type ActionChipSlotName = "root";
19
+
20
+ export declare const actionChipVariantMap: ActionChipVariantMap;
21
+
22
+ export declare const actionChip: ((
23
+ props?: ActionChipVariantProps,
24
+ ) => Record<ActionChipSlotName, string>) & {
25
+ splitVariantProps: <T extends ActionChipVariantProps>(
26
+ props: T,
27
+ ) => [ActionChipVariantProps, Omit<T, keyof ActionChipVariantProps>];
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 actionChipSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-action-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 actionChipVariantMap = {
37
+ "size": [
38
+ "medium",
39
+ "small"
40
+ ],
41
+ "layout": [
42
+ "withText",
43
+ "iconOnly"
44
+ ]
45
+ };
46
+
47
+ export const actionChipVariantKeys = Object.keys(actionChipVariantMap);
48
+
49
+ export function actionChip(props) {
50
+ return Object.fromEntries(
51
+ actionChipSlotNames.map(([slot, className]) => {
52
+ return [
53
+ slot,
54
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
55
+ ];
56
+ }),
57
+ );
58
+ }
59
+
60
+ Object.assign(actionChip, { splitVariantProps: (props) => splitVariantProps(props, actionChipVariantMap) });
@@ -0,0 +1,24 @@
1
+ declare interface ActionSheetItemVariant {
2
+ /**
3
+ * @default neutral
4
+ */
5
+ tone: "neutral" | "critical";
6
+ }
7
+
8
+ declare type ActionSheetItemVariantMap = {
9
+ [key in keyof ActionSheetItemVariant]: Array<ActionSheetItemVariant[key]>;
10
+ };
11
+
12
+ export declare type ActionSheetItemVariantProps = Partial<ActionSheetItemVariant>;
13
+
14
+ export declare type ActionSheetItemSlotName = "root";
15
+
16
+ export declare const actionSheetItemVariantMap: ActionSheetItemVariantMap;
17
+
18
+ export declare const actionSheetItem: ((
19
+ props?: ActionSheetItemVariantProps,
20
+ ) => Record<ActionSheetItemSlotName, string>) & {
21
+ splitVariantProps: <T extends ActionSheetItemVariantProps>(
22
+ props: T,
23
+ ) => [ActionSheetItemVariantProps, Omit<T, keyof ActionSheetItemVariantProps>];
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 actionSheetItemSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-action-sheet-item__root"
9
+ ]
10
+ ];
11
+
12
+ const defaultVariant = {
13
+ "tone": "neutral"
14
+ };
15
+
16
+ const compoundVariants = [];
17
+
18
+ export const actionSheetItemVariantMap = {
19
+ "tone": [
20
+ "neutral",
21
+ "critical"
22
+ ]
23
+ };
24
+
25
+ export const actionSheetItemVariantKeys = Object.keys(actionSheetItemVariantMap);
26
+
27
+ export function actionSheetItem(props) {
28
+ return Object.fromEntries(
29
+ actionSheetItemSlotNames.map(([slot, className]) => {
30
+ return [
31
+ slot,
32
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
33
+ ];
34
+ }),
35
+ );
36
+ }
37
+
38
+ Object.assign(actionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, actionSheetItemVariantMap) });
@@ -0,0 +1,21 @@
1
+ declare interface ActionSheetVariant {
2
+
3
+ }
4
+
5
+ declare type ActionSheetVariantMap = {
6
+ [key in keyof ActionSheetVariant]: Array<ActionSheetVariant[key]>;
7
+ };
8
+
9
+ export declare type ActionSheetVariantProps = Partial<ActionSheetVariant>;
10
+
11
+ export declare type ActionSheetSlotName = "backdrop" | "positioner" | "content" | "header" | "title" | "description" | "list" | "closeButton";
12
+
13
+ export declare const actionSheetVariantMap: ActionSheetVariantMap;
14
+
15
+ export declare const actionSheet: ((
16
+ props?: ActionSheetVariantProps,
17
+ ) => Record<ActionSheetSlotName, string>) & {
18
+ splitVariantProps: <T extends ActionSheetVariantProps>(
19
+ props: T,
20
+ ) => [ActionSheetVariantProps, Omit<T, keyof ActionSheetVariantProps>];
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 actionSheetSlotNames = [
6
+ [
7
+ "backdrop",
8
+ "seed-action-sheet__backdrop"
9
+ ],
10
+ [
11
+ "positioner",
12
+ "seed-action-sheet__positioner"
13
+ ],
14
+ [
15
+ "content",
16
+ "seed-action-sheet__content"
17
+ ],
18
+ [
19
+ "header",
20
+ "seed-action-sheet__header"
21
+ ],
22
+ [
23
+ "title",
24
+ "seed-action-sheet__title"
25
+ ],
26
+ [
27
+ "description",
28
+ "seed-action-sheet__description"
29
+ ],
30
+ [
31
+ "list",
32
+ "seed-action-sheet__list"
33
+ ],
34
+ [
35
+ "closeButton",
36
+ "seed-action-sheet__closeButton"
37
+ ]
38
+ ];
39
+
40
+ const defaultVariant = {};
41
+
42
+ const compoundVariants = [];
43
+
44
+ export const actionSheetVariantMap = {};
45
+
46
+ export const actionSheetVariantKeys = Object.keys(actionSheetVariantMap);
47
+
48
+ export function actionSheet(props) {
49
+ return Object.fromEntries(
50
+ actionSheetSlotNames.map(([slot, className]) => {
51
+ return [
52
+ slot,
53
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
54
+ ];
55
+ }),
56
+ );
57
+ }
58
+
59
+ Object.assign(actionSheet, { splitVariantProps: (props) => splitVariantProps(props, actionSheetVariantMap) });
@@ -0,0 +1,36 @@
1
+ declare interface AppBarMainVariant {
2
+ /**
3
+ * @default titleOnly
4
+ */
5
+ layout: "titleOnly" | "withSubtitle";
6
+ /**
7
+ * @default cupertino
8
+ */
9
+ theme: "cupertino" | "android";
10
+ /**
11
+ * @default slideFromRightIOS
12
+ */
13
+ transitionStyle: "slideFromRightIOS" | "fadeFromBottomAndroid";
14
+ /**
15
+ * @default layer
16
+ */
17
+ tone: "layer" | "transparent";
18
+ }
19
+
20
+ declare type AppBarMainVariantMap = {
21
+ [key in keyof AppBarMainVariant]: Array<AppBarMainVariant[key]>;
22
+ };
23
+
24
+ export declare type AppBarMainVariantProps = Partial<AppBarMainVariant>;
25
+
26
+ export declare type AppBarMainSlotName = "root" | "title" | "subtitle";
27
+
28
+ export declare const appBarMainVariantMap: AppBarMainVariantMap;
29
+
30
+ export declare const appBarMain: ((
31
+ props?: AppBarMainVariantProps,
32
+ ) => Record<AppBarMainSlotName, string>) & {
33
+ splitVariantProps: <T extends AppBarMainVariantProps>(
34
+ props: T,
35
+ ) => [AppBarMainVariantProps, Omit<T, keyof AppBarMainVariantProps>];
36
+ }
@@ -0,0 +1,61 @@
1
+ import { createClassName } from "./className.mjs";
2
+ import { mergeVariants } from "./mergeVariants.mjs";
3
+ import { splitVariantProps } from "./splitVariantProps.mjs";
4
+
5
+ const appBarMainSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-app-bar-main__root"
9
+ ],
10
+ [
11
+ "title",
12
+ "seed-app-bar-main__title"
13
+ ],
14
+ [
15
+ "subtitle",
16
+ "seed-app-bar-main__subtitle"
17
+ ]
18
+ ];
19
+
20
+ const defaultVariant = {
21
+ "layout": "titleOnly",
22
+ "theme": "cupertino",
23
+ "transitionStyle": "slideFromRightIOS",
24
+ "tone": "layer"
25
+ };
26
+
27
+ const compoundVariants = [];
28
+
29
+ export const appBarMainVariantMap = {
30
+ "layout": [
31
+ "titleOnly",
32
+ "withSubtitle"
33
+ ],
34
+ "theme": [
35
+ "cupertino",
36
+ "android"
37
+ ],
38
+ "transitionStyle": [
39
+ "slideFromRightIOS",
40
+ "fadeFromBottomAndroid"
41
+ ],
42
+ "tone": [
43
+ "layer",
44
+ "transparent"
45
+ ]
46
+ };
47
+
48
+ export const appBarMainVariantKeys = Object.keys(appBarMainVariantMap);
49
+
50
+ export function appBarMain(props) {
51
+ return Object.fromEntries(
52
+ appBarMainSlotNames.map(([slot, className]) => {
53
+ return [
54
+ slot,
55
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
56
+ ];
57
+ }),
58
+ );
59
+ }
60
+
61
+ Object.assign(appBarMain, { splitVariantProps: (props) => splitVariantProps(props, appBarMainVariantMap) });
@@ -0,0 +1,36 @@
1
+ declare interface AppBarVariant {
2
+ /**
3
+ * @default cupertino
4
+ */
5
+ theme: "cupertino" | "android";
6
+ /**
7
+ * @default slideFromRightIOS
8
+ */
9
+ transitionStyle: "slideFromRightIOS" | "fadeFromBottomAndroid";
10
+ /**
11
+ * @default layer
12
+ */
13
+ tone: "layer" | "transparent";
14
+ /**
15
+ * @default false
16
+ */
17
+ divider: boolean;
18
+ }
19
+
20
+ declare type AppBarVariantMap = {
21
+ [key in keyof AppBarVariant]: Array<AppBarVariant[key]>;
22
+ };
23
+
24
+ export declare type AppBarVariantProps = Partial<AppBarVariant>;
25
+
26
+ export declare type AppBarSlotName = "root" | "left" | "right" | "iconButton" | "icon";
27
+
28
+ export declare const appBarVariantMap: AppBarVariantMap;
29
+
30
+ export declare const appBar: ((
31
+ props?: AppBarVariantProps,
32
+ ) => Record<AppBarSlotName, string>) & {
33
+ splitVariantProps: <T extends AppBarVariantProps>(
34
+ props: T,
35
+ ) => [AppBarVariantProps, Omit<T, keyof AppBarVariantProps>];
36
+ }
@@ -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 appBarSlotNames = [
6
+ [
7
+ "root",
8
+ "seed-app-bar__root"
9
+ ],
10
+ [
11
+ "left",
12
+ "seed-app-bar__left"
13
+ ],
14
+ [
15
+ "right",
16
+ "seed-app-bar__right"
17
+ ],
18
+ [
19
+ "iconButton",
20
+ "seed-app-bar__iconButton"
21
+ ],
22
+ [
23
+ "icon",
24
+ "seed-app-bar__icon"
25
+ ]
26
+ ];
27
+
28
+ const defaultVariant = {
29
+ "theme": "cupertino",
30
+ "transitionStyle": "slideFromRightIOS",
31
+ "tone": "layer",
32
+ "divider": false
33
+ };
34
+
35
+ const compoundVariants = [];
36
+
37
+ export const appBarVariantMap = {
38
+ "theme": [
39
+ "cupertino",
40
+ "android"
41
+ ],
42
+ "transitionStyle": [
43
+ "slideFromRightIOS",
44
+ "fadeFromBottomAndroid"
45
+ ],
46
+ "tone": [
47
+ "layer",
48
+ "transparent"
49
+ ],
50
+ "divider": [
51
+ true
52
+ ]
53
+ };
54
+
55
+ export const appBarVariantKeys = Object.keys(appBarVariantMap);
56
+
57
+ export function appBar(props) {
58
+ return Object.fromEntries(
59
+ appBarSlotNames.map(([slot, className]) => {
60
+ return [
61
+ slot,
62
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
63
+ ];
64
+ }),
65
+ );
66
+ }
67
+
68
+ Object.assign(appBar, { splitVariantProps: (props) => splitVariantProps(props, appBarVariantMap) });
@@ -0,0 +1,36 @@
1
+ declare interface AppScreenVariant {
2
+ /**
3
+ * @default cupertino
4
+ */
5
+ theme: "cupertino" | "android";
6
+ /**
7
+ * @default slideFromRightIOS
8
+ */
9
+ transitionStyle: "slideFromRightIOS" | "fadeFromBottomAndroid";
10
+ /**
11
+ * @default appBar
12
+ */
13
+ layerOffsetTop: "none" | "safeArea" | "appBar";
14
+ /**
15
+ * @default none
16
+ */
17
+ layerOffsetBottom: "none" | "safeArea";
18
+ }
19
+
20
+ declare type AppScreenVariantMap = {
21
+ [key in keyof AppScreenVariant]: Array<AppScreenVariant[key]>;
22
+ };
23
+
24
+ export declare type AppScreenVariantProps = Partial<AppScreenVariant>;
25
+
26
+ export declare type AppScreenSlotName = "root" | "layer" | "dim" | "edge";
27
+
28
+ export declare const appScreenVariantMap: AppScreenVariantMap;
29
+
30
+ export declare const appScreen: ((
31
+ props?: AppScreenVariantProps,
32
+ ) => Record<AppScreenSlotName, string>) & {
33
+ splitVariantProps: <T extends AppScreenVariantProps>(
34
+ props: T,
35
+ ) => [AppScreenVariantProps, Omit<T, keyof AppScreenVariantProps>];
36
+ }