@seed-design/lynx-css 0.0.0-alpha-20260622094810

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 (301) hide show
  1. package/all.css +2137 -0
  2. package/all.min.css +1 -0
  3. package/base.css +643 -0
  4. package/base.min.css +1 -0
  5. package/package.json +60 -0
  6. package/recipes/action-button.css +489 -0
  7. package/recipes/action-button.d.ts +44 -0
  8. package/recipes/action-button.mjs +212 -0
  9. package/recipes/app-bar-main.css +67 -0
  10. package/recipes/app-bar-main.d.ts +36 -0
  11. package/recipes/app-bar-main.mjs +63 -0
  12. package/recipes/app-bar.css +101 -0
  13. package/recipes/app-bar.d.ts +32 -0
  14. package/recipes/app-bar.mjs +74 -0
  15. package/recipes/badge.css +157 -0
  16. package/recipes/badge.d.ts +32 -0
  17. package/recipes/badge.mjs +131 -0
  18. package/recipes/bottom-sheet-handle.css +19 -0
  19. package/recipes/bottom-sheet-handle.d.ts +21 -0
  20. package/recipes/bottom-sheet-handle.mjs +36 -0
  21. package/recipes/bottom-sheet.css +93 -0
  22. package/recipes/bottom-sheet.d.ts +28 -0
  23. package/recipes/bottom-sheet.mjs +76 -0
  24. package/recipes/checkbox-group.css +5 -0
  25. package/recipes/checkbox-group.d.ts +21 -0
  26. package/recipes/checkbox-group.mjs +36 -0
  27. package/recipes/checkbox.css +34 -0
  28. package/recipes/checkbox.d.ts +32 -0
  29. package/recipes/checkbox.mjs +53 -0
  30. package/recipes/checkmark.css +131 -0
  31. package/recipes/checkmark.d.ts +48 -0
  32. package/recipes/checkmark.mjs +220 -0
  33. package/recipes/progress-circle.css +80 -0
  34. package/recipes/progress-circle.d.ts +30 -0
  35. package/recipes/progress-circle.mjs +40 -0
  36. package/recipes/radio-group.css +5 -0
  37. package/recipes/radio-group.d.ts +21 -0
  38. package/recipes/radio-group.mjs +36 -0
  39. package/recipes/radio.css +34 -0
  40. package/recipes/radio.d.ts +32 -0
  41. package/recipes/radio.mjs +53 -0
  42. package/recipes/radiomark.css +94 -0
  43. package/recipes/radiomark.d.ts +40 -0
  44. package/recipes/radiomark.mjs +121 -0
  45. package/recipes/shared.mjs +48 -0
  46. package/recipes/switch.css +40 -0
  47. package/recipes/switch.d.ts +28 -0
  48. package/recipes/switch.mjs +49 -0
  49. package/recipes/switchmark.css +75 -0
  50. package/recipes/switchmark.d.ts +36 -0
  51. package/recipes/switchmark.mjs +90 -0
  52. package/recipes/tag-group-item.css +34 -0
  53. package/recipes/tag-group-item.d.ts +32 -0
  54. package/recipes/tag-group-item.mjs +55 -0
  55. package/recipes/tag-group.css +32 -0
  56. package/recipes/tag-group.d.ts +24 -0
  57. package/recipes/tag-group.mjs +48 -0
  58. package/vars/color/banner.d.ts +10 -0
  59. package/vars/color/banner.mjs +10 -0
  60. package/vars/color/bg.d.ts +76 -0
  61. package/vars/color/bg.mjs +42 -0
  62. package/vars/color/fg.d.ts +30 -0
  63. package/vars/color/fg.mjs +16 -0
  64. package/vars/color/index.d.ts +6 -0
  65. package/vars/color/index.mjs +6 -0
  66. package/vars/color/manner-temp/index.d.ts +10 -0
  67. package/vars/color/manner-temp/index.mjs +10 -0
  68. package/vars/color/manner-temp/l1.d.ts +2 -0
  69. package/vars/color/manner-temp/l1.mjs +2 -0
  70. package/vars/color/manner-temp/l10.d.ts +2 -0
  71. package/vars/color/manner-temp/l10.mjs +2 -0
  72. package/vars/color/manner-temp/l2.d.ts +2 -0
  73. package/vars/color/manner-temp/l2.mjs +2 -0
  74. package/vars/color/manner-temp/l3.d.ts +2 -0
  75. package/vars/color/manner-temp/l3.mjs +2 -0
  76. package/vars/color/manner-temp/l4.d.ts +2 -0
  77. package/vars/color/manner-temp/l4.mjs +2 -0
  78. package/vars/color/manner-temp/l5.d.ts +2 -0
  79. package/vars/color/manner-temp/l5.mjs +2 -0
  80. package/vars/color/manner-temp/l6.d.ts +2 -0
  81. package/vars/color/manner-temp/l6.mjs +2 -0
  82. package/vars/color/manner-temp/l7.d.ts +2 -0
  83. package/vars/color/manner-temp/l7.mjs +2 -0
  84. package/vars/color/manner-temp/l8.d.ts +2 -0
  85. package/vars/color/manner-temp/l8.mjs +2 -0
  86. package/vars/color/manner-temp/l9.d.ts +2 -0
  87. package/vars/color/manner-temp/l9.mjs +2 -0
  88. package/vars/color/palette.d.ts +94 -0
  89. package/vars/color/palette.mjs +94 -0
  90. package/vars/color/stroke.d.ts +31 -0
  91. package/vars/color/stroke.mjs +16 -0
  92. package/vars/component/accordion-item.d.ts +132 -0
  93. package/vars/component/accordion-item.mjs +126 -0
  94. package/vars/component/accordion.d.ts +22 -0
  95. package/vars/component/accordion.mjs +16 -0
  96. package/vars/component/action-button.d.ts +660 -0
  97. package/vars/component/action-button.mjs +541 -0
  98. package/vars/component/action-chip.d.ts +132 -0
  99. package/vars/component/action-chip.mjs +132 -0
  100. package/vars/component/action-sheet-close-button.d.ts +23 -0
  101. package/vars/component/action-sheet-close-button.mjs +23 -0
  102. package/vars/component/action-sheet-item.d.ts +36 -0
  103. package/vars/component/action-sheet-item.mjs +36 -0
  104. package/vars/component/action-sheet.d.ts +46 -0
  105. package/vars/component/action-sheet.mjs +46 -0
  106. package/vars/component/attachment-input-dropzone.d.ts +32 -0
  107. package/vars/component/attachment-input-dropzone.mjs +30 -0
  108. package/vars/component/attachment-input-item-action-button.d.ts +37 -0
  109. package/vars/component/attachment-input-item-action-button.mjs +37 -0
  110. package/vars/component/attachment-input-item-remove-button.d.ts +28 -0
  111. package/vars/component/attachment-input-item-remove-button.mjs +28 -0
  112. package/vars/component/attachment-input-item.d.ts +103 -0
  113. package/vars/component/attachment-input-item.mjs +102 -0
  114. package/vars/component/attachment-input-trigger.d.ts +46 -0
  115. package/vars/component/attachment-input-trigger.mjs +46 -0
  116. package/vars/component/attachment-input.d.ts +14 -0
  117. package/vars/component/attachment-input.mjs +12 -0
  118. package/vars/component/avatar-stack.d.ts +110 -0
  119. package/vars/component/avatar-stack.mjs +110 -0
  120. package/vars/component/avatar.d.ts +204 -0
  121. package/vars/component/avatar.mjs +162 -0
  122. package/vars/component/badge.d.ts +316 -0
  123. package/vars/component/badge.mjs +236 -0
  124. package/vars/component/bottom-sheet-close-button.d.ts +21 -0
  125. package/vars/component/bottom-sheet-close-button.mjs +21 -0
  126. package/vars/component/bottom-sheet-handle.d.ts +24 -0
  127. package/vars/component/bottom-sheet-handle.mjs +24 -0
  128. package/vars/component/bottom-sheet.d.ts +86 -0
  129. package/vars/component/bottom-sheet.mjs +86 -0
  130. package/vars/component/callout.d.ts +229 -0
  131. package/vars/component/callout.mjs +197 -0
  132. package/vars/component/checkbox-group.d.ts +9 -0
  133. package/vars/component/checkbox-group.mjs +9 -0
  134. package/vars/component/checkbox.d.ts +53 -0
  135. package/vars/component/checkbox.mjs +53 -0
  136. package/vars/component/checkmark.d.ts +195 -0
  137. package/vars/component/checkmark.mjs +165 -0
  138. package/vars/component/chip-tab.d.ts +121 -0
  139. package/vars/component/chip-tab.mjs +121 -0
  140. package/vars/component/chip-tablist.d.ts +24 -0
  141. package/vars/component/chip-tablist.mjs +24 -0
  142. package/vars/component/chip.d.ts +321 -0
  143. package/vars/component/chip.mjs +303 -0
  144. package/vars/component/content-placeholder.d.ts +28 -0
  145. package/vars/component/content-placeholder.mjs +27 -0
  146. package/vars/component/contextual-floating-button.d.ts +144 -0
  147. package/vars/component/contextual-floating-button.mjs +132 -0
  148. package/vars/component/control-chip.d.ts +158 -0
  149. package/vars/component/control-chip.mjs +158 -0
  150. package/vars/component/dialog.d.ts +52 -0
  151. package/vars/component/dialog.mjs +52 -0
  152. package/vars/component/divider.d.ts +9 -0
  153. package/vars/component/divider.mjs +9 -0
  154. package/vars/component/extended-action-sheet-close-button.d.ts +24 -0
  155. package/vars/component/extended-action-sheet-close-button.mjs +24 -0
  156. package/vars/component/extended-action-sheet-item.d.ts +46 -0
  157. package/vars/component/extended-action-sheet-item.mjs +46 -0
  158. package/vars/component/extended-action-sheet.d.ts +55 -0
  159. package/vars/component/extended-action-sheet.mjs +55 -0
  160. package/vars/component/extended-fab.d.ts +88 -0
  161. package/vars/component/extended-fab.mjs +82 -0
  162. package/vars/component/fab.d.ts +21 -0
  163. package/vars/component/fab.mjs +21 -0
  164. package/vars/component/field-label.d.ts +25 -0
  165. package/vars/component/field-label.mjs +25 -0
  166. package/vars/component/field.d.ts +78 -0
  167. package/vars/component/field.mjs +72 -0
  168. package/vars/component/floating-action-button.d.ts +60 -0
  169. package/vars/component/floating-action-button.mjs +54 -0
  170. package/vars/component/help-bubble.d.ts +52 -0
  171. package/vars/component/help-bubble.mjs +50 -0
  172. package/vars/component/identity-placeholder.d.ts +12 -0
  173. package/vars/component/identity-placeholder.mjs +12 -0
  174. package/vars/component/image-frame-floater.d.ts +10 -0
  175. package/vars/component/image-frame-floater.mjs +9 -0
  176. package/vars/component/image-frame-indicator.d.ts +20 -0
  177. package/vars/component/image-frame-indicator.mjs +18 -0
  178. package/vars/component/image-frame-reaction-button.d.ts +35 -0
  179. package/vars/component/image-frame-reaction-button.mjs +26 -0
  180. package/vars/component/image-frame.d.ts +27 -0
  181. package/vars/component/image-frame.mjs +18 -0
  182. package/vars/component/index.d.ts +90 -0
  183. package/vars/component/index.mjs +90 -0
  184. package/vars/component/inline-banner.d.ts +191 -0
  185. package/vars/component/inline-banner.mjs +191 -0
  186. package/vars/component/input-button.d.ts +162 -0
  187. package/vars/component/input-button.mjs +155 -0
  188. package/vars/component/link-content.d.ts +58 -0
  189. package/vars/component/link-content.mjs +58 -0
  190. package/vars/component/list-header.d.ts +29 -0
  191. package/vars/component/list-header.mjs +29 -0
  192. package/vars/component/list-item.d.ts +89 -0
  193. package/vars/component/list-item.mjs +87 -0
  194. package/vars/component/manner-temp-badge.d.ts +117 -0
  195. package/vars/component/manner-temp-badge.mjs +117 -0
  196. package/vars/component/manner-temp.d.ts +88 -0
  197. package/vars/component/manner-temp.mjs +88 -0
  198. package/vars/component/menu-item.d.ts +129 -0
  199. package/vars/component/menu-item.mjs +117 -0
  200. package/vars/component/menu-sheet-close-button.d.ts +24 -0
  201. package/vars/component/menu-sheet-close-button.mjs +24 -0
  202. package/vars/component/menu-sheet-item.d.ts +73 -0
  203. package/vars/component/menu-sheet-item.mjs +61 -0
  204. package/vars/component/menu-sheet.d.ts +56 -0
  205. package/vars/component/menu-sheet.mjs +56 -0
  206. package/vars/component/menu.d.ts +68 -0
  207. package/vars/component/menu.mjs +60 -0
  208. package/vars/component/notification-badge.d.ts +48 -0
  209. package/vars/component/notification-badge.mjs +42 -0
  210. package/vars/component/page-banner.d.ts +382 -0
  211. package/vars/component/page-banner.mjs +336 -0
  212. package/vars/component/progress-circle.d.ts +88 -0
  213. package/vars/component/progress-circle.mjs +67 -0
  214. package/vars/component/radio-group.d.ts +9 -0
  215. package/vars/component/radio-group.mjs +9 -0
  216. package/vars/component/radio.d.ts +53 -0
  217. package/vars/component/radio.mjs +53 -0
  218. package/vars/component/radiomark.d.ts +117 -0
  219. package/vars/component/radiomark.mjs +117 -0
  220. package/vars/component/reaction-button.d.ts +136 -0
  221. package/vars/component/reaction-button.mjs +136 -0
  222. package/vars/component/scroll-fog.d.ts +11 -0
  223. package/vars/component/scroll-fog.mjs +11 -0
  224. package/vars/component/segmented-control-indicator.d.ts +24 -0
  225. package/vars/component/segmented-control-indicator.mjs +24 -0
  226. package/vars/component/segmented-control-item.d.ts +41 -0
  227. package/vars/component/segmented-control-item.mjs +41 -0
  228. package/vars/component/segmented-control.d.ts +11 -0
  229. package/vars/component/segmented-control.mjs +11 -0
  230. package/vars/component/select-box-checkmark.d.ts +40 -0
  231. package/vars/component/select-box-checkmark.mjs +40 -0
  232. package/vars/component/select-box-group.d.ts +10 -0
  233. package/vars/component/select-box-group.mjs +10 -0
  234. package/vars/component/select-box.d.ts +107 -0
  235. package/vars/component/select-box.mjs +102 -0
  236. package/vars/component/side-panel-close-button.d.ts +23 -0
  237. package/vars/component/side-panel-close-button.mjs +23 -0
  238. package/vars/component/side-panel.d.ts +94 -0
  239. package/vars/component/side-panel.mjs +83 -0
  240. package/vars/component/skeleton.d.ts +76 -0
  241. package/vars/component/skeleton.mjs +58 -0
  242. package/vars/component/slider-thumb.d.ts +25 -0
  243. package/vars/component/slider-thumb.mjs +25 -0
  244. package/vars/component/slider-tick.d.ts +23 -0
  245. package/vars/component/slider-tick.mjs +23 -0
  246. package/vars/component/slider.d.ts +78 -0
  247. package/vars/component/slider.mjs +75 -0
  248. package/vars/component/snackbar.d.ts +65 -0
  249. package/vars/component/snackbar.mjs +65 -0
  250. package/vars/component/switch.d.ts +53 -0
  251. package/vars/component/switch.mjs +53 -0
  252. package/vars/component/switchmark.d.ts +112 -0
  253. package/vars/component/switchmark.mjs +112 -0
  254. package/vars/component/tab.d.ts +47 -0
  255. package/vars/component/tab.mjs +47 -0
  256. package/vars/component/tablist.d.ts +51 -0
  257. package/vars/component/tablist.mjs +51 -0
  258. package/vars/component/tag-group-item.d.ts +122 -0
  259. package/vars/component/tag-group-item.mjs +122 -0
  260. package/vars/component/tag-group.d.ts +34 -0
  261. package/vars/component/tag-group.mjs +34 -0
  262. package/vars/component/text-button.d.ts +23 -0
  263. package/vars/component/text-button.mjs +23 -0
  264. package/vars/component/text-input.d.ts +292 -0
  265. package/vars/component/text-input.mjs +263 -0
  266. package/vars/component/toggle-button.d.ts +213 -0
  267. package/vars/component/toggle-button.mjs +207 -0
  268. package/vars/component/top-navigation-icon-button.d.ts +36 -0
  269. package/vars/component/top-navigation-icon-button.mjs +36 -0
  270. package/vars/component/top-navigation-text-button.d.ts +52 -0
  271. package/vars/component/top-navigation-text-button.mjs +51 -0
  272. package/vars/component/top-navigation.d.ts +102 -0
  273. package/vars/component/top-navigation.mjs +94 -0
  274. package/vars/component/typography.d.ts +956 -0
  275. package/vars/component/typography.mjs +785 -0
  276. package/vars/dimension/index.d.ts +22 -0
  277. package/vars/dimension/index.mjs +22 -0
  278. package/vars/dimension/spacing-x.d.ts +4 -0
  279. package/vars/dimension/spacing-x.mjs +2 -0
  280. package/vars/dimension/spacing-y.d.ts +8 -0
  281. package/vars/dimension/spacing-y.mjs +4 -0
  282. package/vars/duration.d.ts +8 -0
  283. package/vars/duration.mjs +8 -0
  284. package/vars/font-size.d.ts +46 -0
  285. package/vars/font-size.mjs +28 -0
  286. package/vars/font-weight.d.ts +3 -0
  287. package/vars/font-weight.mjs +3 -0
  288. package/vars/gradient.d.ts +11 -0
  289. package/vars/gradient.mjs +6 -0
  290. package/vars/index.d.ts +51 -0
  291. package/vars/index.mjs +1 -0
  292. package/vars/line-height.d.ts +46 -0
  293. package/vars/line-height.mjs +28 -0
  294. package/vars/radius.d.ts +11 -0
  295. package/vars/radius.mjs +11 -0
  296. package/vars/shadow.d.ts +4 -0
  297. package/vars/shadow.mjs +3 -0
  298. package/vars/timing-function.d.ts +7 -0
  299. package/vars/timing-function.mjs +7 -0
  300. package/vars/vars.d.ts +10 -0
  301. package/vars/vars.mjs +10 -0
@@ -0,0 +1,212 @@
1
+ import './action-button.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const actionButtonSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-action-button__root"
8
+ ],
9
+ [
10
+ "content",
11
+ "seed-action-button__content"
12
+ ],
13
+ [
14
+ "text",
15
+ "seed-action-button__text"
16
+ ],
17
+ [
18
+ "prefixIcon",
19
+ "seed-action-button__prefixIcon"
20
+ ],
21
+ [
22
+ "suffixIcon",
23
+ "seed-action-button__suffixIcon"
24
+ ],
25
+ [
26
+ "icon",
27
+ "seed-action-button__icon"
28
+ ],
29
+ [
30
+ "loadingIndicator",
31
+ "seed-action-button__loadingIndicator"
32
+ ]
33
+ ];
34
+
35
+ const defaultVariant = {
36
+ "variant": "brandSolid",
37
+ "size": "medium",
38
+ "layout": "withText",
39
+ "pressed": false,
40
+ "disabled": false,
41
+ "loading": false
42
+ };
43
+
44
+ const compoundVariants = [
45
+ {
46
+ "size": "xsmall",
47
+ "layout": "withText"
48
+ },
49
+ {
50
+ "size": "xsmall",
51
+ "layout": "iconOnly"
52
+ },
53
+ {
54
+ "size": "small",
55
+ "layout": "withText"
56
+ },
57
+ {
58
+ "size": "small",
59
+ "layout": "iconOnly"
60
+ },
61
+ {
62
+ "size": "medium",
63
+ "layout": "withText"
64
+ },
65
+ {
66
+ "size": "medium",
67
+ "layout": "iconOnly"
68
+ },
69
+ {
70
+ "size": "large",
71
+ "layout": "withText"
72
+ },
73
+ {
74
+ "size": "large",
75
+ "layout": "iconOnly"
76
+ },
77
+ {
78
+ "variant": "brandSolid",
79
+ "pressed": true
80
+ },
81
+ {
82
+ "variant": "neutralSolid",
83
+ "pressed": true
84
+ },
85
+ {
86
+ "variant": "neutralWeak",
87
+ "pressed": true
88
+ },
89
+ {
90
+ "variant": "criticalSolid",
91
+ "pressed": true
92
+ },
93
+ {
94
+ "variant": "brandOutline",
95
+ "pressed": true
96
+ },
97
+ {
98
+ "variant": "neutralOutline",
99
+ "pressed": true
100
+ },
101
+ {
102
+ "variant": "ghost",
103
+ "pressed": true
104
+ },
105
+ {
106
+ "variant": "brandSolid",
107
+ "disabled": true
108
+ },
109
+ {
110
+ "variant": "neutralSolid",
111
+ "disabled": true
112
+ },
113
+ {
114
+ "variant": "neutralWeak",
115
+ "disabled": true
116
+ },
117
+ {
118
+ "variant": "criticalSolid",
119
+ "disabled": true
120
+ },
121
+ {
122
+ "variant": "brandOutline",
123
+ "disabled": true
124
+ },
125
+ {
126
+ "variant": "neutralOutline",
127
+ "disabled": true
128
+ },
129
+ {
130
+ "variant": "ghost",
131
+ "disabled": true
132
+ },
133
+ {
134
+ "variant": "brandSolid",
135
+ "loading": true
136
+ },
137
+ {
138
+ "variant": "neutralSolid",
139
+ "loading": true
140
+ },
141
+ {
142
+ "variant": "neutralWeak",
143
+ "loading": true
144
+ },
145
+ {
146
+ "variant": "criticalSolid",
147
+ "loading": true
148
+ },
149
+ {
150
+ "variant": "brandOutline",
151
+ "loading": true
152
+ },
153
+ {
154
+ "variant": "neutralOutline",
155
+ "loading": true
156
+ },
157
+ {
158
+ "variant": "ghost",
159
+ "loading": true
160
+ }
161
+ ];
162
+
163
+ export const actionButtonVariantMap = {
164
+ "variant": [
165
+ "brandSolid",
166
+ "neutralSolid",
167
+ "neutralWeak",
168
+ "criticalSolid",
169
+ "brandOutline",
170
+ "neutralOutline",
171
+ "ghost"
172
+ ],
173
+ "size": [
174
+ "xsmall",
175
+ "small",
176
+ "medium",
177
+ "large"
178
+ ],
179
+ "layout": [
180
+ "withText",
181
+ "iconOnly"
182
+ ],
183
+ "pressed": [
184
+ true,
185
+ false
186
+ ],
187
+ "disabled": [
188
+ true,
189
+ false
190
+ ],
191
+ "loading": [
192
+ true,
193
+ false
194
+ ]
195
+ };
196
+
197
+ export const actionButtonVariantKeys = Object.keys(actionButtonVariantMap);
198
+
199
+ export function actionButton(props) {
200
+ return Object.fromEntries(
201
+ actionButtonSlotNames.map(([slot, className]) => {
202
+ return [
203
+ slot,
204
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
205
+ ];
206
+ }),
207
+ );
208
+ }
209
+
210
+ Object.assign(actionButton, { splitVariantProps: (props) => splitVariantProps(props, actionButtonVariantMap) });
211
+
212
+ // @recipe(seed): action-button
@@ -0,0 +1,67 @@
1
+ .seed-app-bar-main__root {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex: 1;
5
+ min-width: 0
6
+ }
7
+ .seed-app-bar-main__title {
8
+ white-space: nowrap;
9
+ overflow: hidden;
10
+ text-overflow: ellipsis
11
+ }
12
+ .seed-app-bar-main__subtitle {
13
+ white-space: nowrap;
14
+ overflow: hidden;
15
+ text-overflow: ellipsis
16
+ }
17
+ .seed-app-bar-main__title--layout_titleOnly {
18
+ font-size: var(--seed-font-size-t6);
19
+ font-weight: var(--seed-font-weight-bold);
20
+ line-height: var(--seed-line-height-t6)
21
+ }
22
+ .seed-app-bar-main__title--layout_withSubtitle {
23
+ font-size: var(--seed-font-size-t5);
24
+ font-weight: var(--seed-font-weight-bold);
25
+ line-height: var(--seed-line-height-t5)
26
+ }
27
+ .seed-app-bar-main__subtitle--layout_withSubtitle {
28
+ font-size: var(--seed-font-size-t2);
29
+ font-weight: var(--seed-font-weight-regular);
30
+ line-height: var(--seed-line-height-t2)
31
+ }
32
+ .seed-app-bar-main__root--theme_cupertino {
33
+ position: absolute;
34
+ align-items: center;
35
+ justify-content: center;
36
+ text-align: center;
37
+ top: var(--seed-safe-area-top);
38
+ right: 0;
39
+ bottom: 0;
40
+ left: 0;
41
+ padding-left: var(--centered-title-padding-x, 0);
42
+ padding-right: var(--centered-title-padding-x, 0)
43
+ }
44
+ .seed-app-bar-main__root--theme_android {
45
+ align-items: flex-start;
46
+ justify-content: center;
47
+ width: 100%;
48
+ height: 56px
49
+ }
50
+ .seed-app-bar-main__root--tone_layer {
51
+ color: var(--seed-color-fg-neutral)
52
+ }
53
+ .seed-app-bar-main__title--tone_layer {
54
+ color: var(--seed-color-fg-neutral)
55
+ }
56
+ .seed-app-bar-main__subtitle--tone_layer {
57
+ color: var(--seed-color-fg-neutral-muted)
58
+ }
59
+ .seed-app-bar-main__root--tone_transparent {
60
+ color: var(--seed-color-palette-static-white)
61
+ }
62
+ .seed-app-bar-main__title--tone_transparent {
63
+ color: var(--seed-color-palette-static-white)
64
+ }
65
+ .seed-app-bar-main__subtitle--tone_transparent {
66
+ color: var(--seed-color-palette-static-white)
67
+ }
@@ -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" | "fadeIn";
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,63 @@
1
+ import './app-bar-main.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const appBarMainSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-app-bar-main__root"
8
+ ],
9
+ [
10
+ "title",
11
+ "seed-app-bar-main__title"
12
+ ],
13
+ [
14
+ "subtitle",
15
+ "seed-app-bar-main__subtitle"
16
+ ]
17
+ ];
18
+
19
+ const defaultVariant = {
20
+ "layout": "titleOnly",
21
+ "theme": "cupertino",
22
+ "transitionStyle": "slideFromRightIOS",
23
+ "tone": "layer"
24
+ };
25
+
26
+ const compoundVariants = [];
27
+
28
+ export const appBarMainVariantMap = {
29
+ "layout": [
30
+ "titleOnly",
31
+ "withSubtitle"
32
+ ],
33
+ "theme": [
34
+ "cupertino",
35
+ "android"
36
+ ],
37
+ "transitionStyle": [
38
+ "slideFromRightIOS",
39
+ "fadeFromBottomAndroid",
40
+ "fadeIn"
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) });
62
+
63
+ // @recipe(seed): app-bar-main
@@ -0,0 +1,101 @@
1
+ .seed-app-bar__root {
2
+ position: relative;
3
+ z-index: var(--z-index-app-bar);
4
+ width: 100%;
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: flex-end
8
+ }
9
+ .seed-app-bar__background {
10
+ position: absolute;
11
+ top: 0;
12
+ right: 0;
13
+ bottom: 0;
14
+ left: 0;
15
+ z-index: -1
16
+ }
17
+ .seed-app-bar__left {
18
+ display: flex;
19
+ flex-direction: row;
20
+ align-items: center;
21
+ height: 100%;
22
+ z-index: 1
23
+ }
24
+ .seed-app-bar__right {
25
+ display: flex;
26
+ flex-direction: row;
27
+ align-items: center;
28
+ height: 100%;
29
+ margin-left: auto;
30
+ z-index: 1
31
+ }
32
+ .seed-app-bar__iconButton {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ border-width: 0;
37
+ background: #00000000;
38
+ padding: 0;
39
+ border-radius: var(--seed-radius-r1)
40
+ }
41
+ .seed-app-bar__icon {
42
+ flex-shrink: 0
43
+ }
44
+ .seed-app-bar__custom {
45
+ display: flex;
46
+ flex-direction: row;
47
+ align-items: center
48
+ }
49
+ .seed-app-bar__root--theme_cupertino {
50
+ height: calc(44px + var(--seed-safe-area-top));
51
+ padding-left: var(--seed-dimension-x4);
52
+ padding-right: var(--seed-dimension-x4);
53
+ padding-top: var(--seed-safe-area-top)
54
+ }
55
+ .seed-app-bar__left--theme_cupertino {
56
+ height: 44px
57
+ }
58
+ .seed-app-bar__right--theme_cupertino {
59
+ height: 44px
60
+ }
61
+ .seed-app-bar__iconButton--theme_cupertino {
62
+ width: 44px;
63
+ height: 44px
64
+ }
65
+ .seed-app-bar__icon--theme_cupertino {
66
+ width: 24px;
67
+ height: 24px
68
+ }
69
+ .seed-app-bar__root--theme_android {
70
+ height: calc(56px + var(--seed-safe-area-top));
71
+ padding-left: var(--seed-dimension-x4);
72
+ padding-right: var(--seed-dimension-x4);
73
+ padding-top: var(--seed-safe-area-top)
74
+ }
75
+ .seed-app-bar__left--theme_android {
76
+ height: 56px;
77
+ padding-right: 16px
78
+ }
79
+ .seed-app-bar__right--theme_android {
80
+ height: 56px
81
+ }
82
+ .seed-app-bar__iconButton--theme_android {
83
+ width: 44px;
84
+ height: 44px
85
+ }
86
+ .seed-app-bar__icon--theme_android {
87
+ width: 24px;
88
+ height: 24px
89
+ }
90
+ .seed-app-bar__background--tone_layer {
91
+ background: var(--seed-color-bg-layer-default)
92
+ }
93
+ .seed-app-bar__icon--tone_layer {
94
+ color: var(--seed-color-fg-neutral)
95
+ }
96
+ .seed-app-bar__background--tone_transparent {
97
+ background: #00000000
98
+ }
99
+ .seed-app-bar__icon--tone_transparent {
100
+ color: var(--seed-color-palette-static-white)
101
+ }
@@ -0,0 +1,32 @@
1
+ declare interface AppBarVariant {
2
+ /**
3
+ * @default "cupertino"
4
+ */
5
+ theme: "cupertino" | "android";
6
+ /**
7
+ * @default "slideFromRightIOS"
8
+ */
9
+ transitionStyle: "slideFromRightIOS" | "fadeFromBottomAndroid" | "fadeIn";
10
+ /**
11
+ * @default "layer"
12
+ */
13
+ tone: "layer" | "transparent";
14
+ }
15
+
16
+ declare type AppBarVariantMap = {
17
+ [key in keyof AppBarVariant]: Array<AppBarVariant[key]>;
18
+ };
19
+
20
+ export declare type AppBarVariantProps = Partial<AppBarVariant>;
21
+
22
+ export declare type AppBarSlotName = "root" | "background" | "left" | "right" | "iconButton" | "icon" | "custom";
23
+
24
+ export declare const appBarVariantMap: AppBarVariantMap;
25
+
26
+ export declare const appBar: ((
27
+ props?: AppBarVariantProps,
28
+ ) => Record<AppBarSlotName, string>) & {
29
+ splitVariantProps: <T extends AppBarVariantProps>(
30
+ props: T,
31
+ ) => [AppBarVariantProps, Omit<T, keyof AppBarVariantProps>];
32
+ }
@@ -0,0 +1,74 @@
1
+ import './app-bar.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const appBarSlotNames = [
5
+ [
6
+ "root",
7
+ "seed-app-bar__root"
8
+ ],
9
+ [
10
+ "background",
11
+ "seed-app-bar__background"
12
+ ],
13
+ [
14
+ "left",
15
+ "seed-app-bar__left"
16
+ ],
17
+ [
18
+ "right",
19
+ "seed-app-bar__right"
20
+ ],
21
+ [
22
+ "iconButton",
23
+ "seed-app-bar__iconButton"
24
+ ],
25
+ [
26
+ "icon",
27
+ "seed-app-bar__icon"
28
+ ],
29
+ [
30
+ "custom",
31
+ "seed-app-bar__custom"
32
+ ]
33
+ ];
34
+
35
+ const defaultVariant = {
36
+ "theme": "cupertino",
37
+ "transitionStyle": "slideFromRightIOS",
38
+ "tone": "layer"
39
+ };
40
+
41
+ const compoundVariants = [];
42
+
43
+ export const appBarVariantMap = {
44
+ "theme": [
45
+ "cupertino",
46
+ "android"
47
+ ],
48
+ "transitionStyle": [
49
+ "slideFromRightIOS",
50
+ "fadeFromBottomAndroid",
51
+ "fadeIn"
52
+ ],
53
+ "tone": [
54
+ "layer",
55
+ "transparent"
56
+ ]
57
+ };
58
+
59
+ export const appBarVariantKeys = Object.keys(appBarVariantMap);
60
+
61
+ export function appBar(props) {
62
+ return Object.fromEntries(
63
+ appBarSlotNames.map(([slot, className]) => {
64
+ return [
65
+ slot,
66
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
67
+ ];
68
+ }),
69
+ );
70
+ }
71
+
72
+ Object.assign(appBar, { splitVariantProps: (props) => splitVariantProps(props, appBarVariantMap) });
73
+
74
+ // @recipe(seed): app-bar