@seed-design/css 2.9.0 → 3.0.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 (363) hide show
  1. package/README.md +2 -2
  2. package/all.css +928 -1493
  3. package/all.layered.css +928 -1493
  4. package/all.layered.min.css +1 -1
  5. package/all.min.css +1 -1
  6. package/base.css +45 -4
  7. package/base.layered.css +45 -4
  8. package/base.layered.min.css +1 -1
  9. package/base.min.css +1 -1
  10. package/package.json +8 -11
  11. package/recipes/accordion.css +3 -0
  12. package/recipes/accordion.layered.css +4 -0
  13. package/recipes/action-button.css +19 -19
  14. package/recipes/action-button.layered.css +19 -19
  15. package/recipes/alert-dialog.css +101 -0
  16. package/recipes/alert-dialog.d.ts +24 -0
  17. package/recipes/alert-dialog.layered.css +114 -0
  18. package/recipes/alert-dialog.layered.mjs +66 -0
  19. package/recipes/alert-dialog.mjs +66 -0
  20. package/recipes/badge.css +83 -27
  21. package/recipes/badge.d.ts +1 -1
  22. package/recipes/badge.layered.css +63 -8
  23. package/recipes/badge.layered.mjs +8 -0
  24. package/recipes/badge.mjs +8 -0
  25. package/recipes/checkmark.css +5 -5
  26. package/recipes/checkmark.layered.css +5 -5
  27. package/recipes/chip-tabs.css +8 -8
  28. package/recipes/chip-tabs.layered.css +8 -8
  29. package/recipes/chip.css +10 -10
  30. package/recipes/chip.layered.css +10 -10
  31. package/recipes/contextual-floating-button.css +8 -8
  32. package/recipes/contextual-floating-button.layered.css +8 -8
  33. package/recipes/date-picker.css +29 -16
  34. package/recipes/date-picker.d.ts +1 -1
  35. package/recipes/date-picker.layered.css +34 -15
  36. package/recipes/date-picker.layered.mjs +6 -14
  37. package/recipes/date-picker.mjs +6 -14
  38. package/recipes/dialog.css +206 -46
  39. package/recipes/dialog.d.ts +3 -3
  40. package/recipes/dialog.layered.css +228 -46
  41. package/recipes/dialog.layered.mjs +12 -7
  42. package/recipes/dialog.mjs +12 -7
  43. package/recipes/floating-action-button.css +2 -2
  44. package/recipes/floating-action-button.layered.css +2 -2
  45. package/recipes/help-bubble.css +9 -6
  46. package/recipes/help-bubble.layered.css +10 -6
  47. package/recipes/menu-item.css +3 -0
  48. package/recipes/menu-item.layered.css +4 -0
  49. package/recipes/menu-sheet-item.css +3 -0
  50. package/recipes/menu-sheet-item.layered.css +4 -0
  51. package/recipes/notification-badge.css +1 -1
  52. package/recipes/notification-badge.layered.css +1 -1
  53. package/recipes/page-banner.css +32 -29
  54. package/recipes/page-banner.layered.css +23 -19
  55. package/recipes/pagination-page-item.css +4 -4
  56. package/recipes/pagination-page-item.layered.css +4 -4
  57. package/recipes/{content-dialog.css → popover.css} +77 -104
  58. package/recipes/popover.d.ts +21 -0
  59. package/recipes/{content-dialog.layered.css → popover.layered.css} +80 -111
  60. package/recipes/popover.layered.mjs +60 -0
  61. package/recipes/popover.mjs +60 -0
  62. package/recipes/radiomark.css +5 -5
  63. package/recipes/radiomark.layered.css +5 -5
  64. package/recipes/segmented-control.css +3 -0
  65. package/recipes/segmented-control.layered.css +4 -0
  66. package/recipes/select-box.css +4 -0
  67. package/recipes/select-box.layered.css +5 -0
  68. package/recipes/select-item.css +3 -0
  69. package/recipes/select-item.layered.css +4 -0
  70. package/recipes/select-trigger.css +3 -0
  71. package/recipes/select-trigger.layered.css +4 -0
  72. package/recipes/side-panel.css +0 -33
  73. package/recipes/side-panel.layered.css +0 -33
  74. package/recipes/slider-tick.css +1 -1
  75. package/recipes/slider-tick.layered.css +1 -1
  76. package/recipes/slider.css +4 -4
  77. package/recipes/slider.layered.css +4 -4
  78. package/recipes/snackbar.css +2 -2
  79. package/recipes/snackbar.layered.css +2 -2
  80. package/recipes/switchmark.css +2 -2
  81. package/recipes/switchmark.layered.css +2 -2
  82. package/recipes/time-picker.css +2 -5
  83. package/recipes/time-picker.d.ts +1 -1
  84. package/recipes/time-picker.layered.css +2 -3
  85. package/recipes/time-picker.layered.mjs +0 -12
  86. package/recipes/time-picker.mjs +0 -12
  87. package/recipes/toggle-button.css +4 -4
  88. package/recipes/toggle-button.layered.css +4 -4
  89. package/recipes/wheel-picker.css +42 -3
  90. package/recipes/wheel-picker.d.ts +5 -2
  91. package/recipes/wheel-picker.layered.css +47 -3
  92. package/recipes/wheel-picker.layered.mjs +13 -2
  93. package/recipes/wheel-picker.mjs +13 -2
  94. package/vars/color/bg.d.ts +8 -4
  95. package/vars/color/bg.mjs +3 -1
  96. package/vars/color/fg.d.ts +13 -1
  97. package/vars/color/fg.mjs +6 -0
  98. package/vars/component/index.d.ts +1 -104
  99. package/vars/component/index.mjs +1 -104
  100. package/recipes/action-chip.css +0 -75
  101. package/recipes/action-chip.d.ts +0 -26
  102. package/recipes/action-chip.layered.css +0 -84
  103. package/recipes/action-chip.layered.mjs +0 -51
  104. package/recipes/action-chip.mjs +0 -51
  105. package/recipes/action-sheet-item.css +0 -32
  106. package/recipes/action-sheet-item.d.ts +0 -22
  107. package/recipes/action-sheet-item.layered.css +0 -38
  108. package/recipes/action-sheet-item.layered.mjs +0 -29
  109. package/recipes/action-sheet-item.mjs +0 -29
  110. package/recipes/action-sheet.css +0 -125
  111. package/recipes/action-sheet.d.ts +0 -21
  112. package/recipes/action-sheet.layered.css +0 -134
  113. package/recipes/action-sheet.layered.mjs +0 -60
  114. package/recipes/action-sheet.mjs +0 -60
  115. package/recipes/content-dialog.d.ts +0 -24
  116. package/recipes/content-dialog.layered.mjs +0 -71
  117. package/recipes/content-dialog.mjs +0 -71
  118. package/recipes/control-chip.css +0 -88
  119. package/recipes/control-chip.d.ts +0 -26
  120. package/recipes/control-chip.layered.css +0 -99
  121. package/recipes/control-chip.layered.mjs +0 -51
  122. package/recipes/control-chip.mjs +0 -51
  123. package/recipes/extended-action-sheet-item.css +0 -31
  124. package/recipes/extended-action-sheet-item.d.ts +0 -22
  125. package/recipes/extended-action-sheet-item.layered.css +0 -38
  126. package/recipes/extended-action-sheet-item.layered.mjs +0 -29
  127. package/recipes/extended-action-sheet-item.mjs +0 -29
  128. package/recipes/extended-action-sheet.css +0 -123
  129. package/recipes/extended-action-sheet.d.ts +0 -21
  130. package/recipes/extended-action-sheet.layered.css +0 -132
  131. package/recipes/extended-action-sheet.layered.mjs +0 -64
  132. package/recipes/extended-action-sheet.mjs +0 -64
  133. package/recipes/extended-fab.css +0 -66
  134. package/recipes/extended-fab.d.ts +0 -26
  135. package/recipes/extended-fab.layered.css +0 -79
  136. package/recipes/extended-fab.layered.mjs +0 -34
  137. package/recipes/extended-fab.mjs +0 -34
  138. package/recipes/fab.css +0 -31
  139. package/recipes/fab.d.ts +0 -19
  140. package/recipes/fab.layered.css +0 -37
  141. package/recipes/fab.layered.mjs +0 -22
  142. package/recipes/fab.mjs +0 -22
  143. package/recipes/inline-banner.css +0 -180
  144. package/recipes/inline-banner.d.ts +0 -24
  145. package/recipes/inline-banner.layered.css +0 -161
  146. package/recipes/inline-banner.layered.mjs +0 -64
  147. package/recipes/inline-banner.mjs +0 -64
  148. package/recipes/link-content.css +0 -41
  149. package/recipes/link-content.d.ts +0 -26
  150. package/recipes/link-content.layered.css +0 -48
  151. package/recipes/link-content.layered.mjs +0 -35
  152. package/recipes/link-content.mjs +0 -35
  153. package/recipes/wheel-picker-public.css +0 -124
  154. package/recipes/wheel-picker-public.d.ts +0 -24
  155. package/recipes/wheel-picker-public.layered.css +0 -144
  156. package/recipes/wheel-picker-public.layered.mjs +0 -63
  157. package/recipes/wheel-picker-public.mjs +0 -63
  158. package/vars/component/accordion-item.d.ts +0 -132
  159. package/vars/component/accordion-item.mjs +0 -126
  160. package/vars/component/accordion.d.ts +0 -22
  161. package/vars/component/accordion.mjs +0 -16
  162. package/vars/component/action-button.d.ts +0 -660
  163. package/vars/component/action-button.mjs +0 -541
  164. package/vars/component/action-chip.d.ts +0 -132
  165. package/vars/component/action-chip.mjs +0 -132
  166. package/vars/component/action-sheet-close-button.d.ts +0 -23
  167. package/vars/component/action-sheet-close-button.mjs +0 -23
  168. package/vars/component/action-sheet-item.d.ts +0 -36
  169. package/vars/component/action-sheet-item.mjs +0 -36
  170. package/vars/component/action-sheet.d.ts +0 -46
  171. package/vars/component/action-sheet.mjs +0 -46
  172. package/vars/component/alert-dialog.d.ts +0 -52
  173. package/vars/component/alert-dialog.mjs +0 -52
  174. package/vars/component/attachment-input-dropzone.d.ts +0 -32
  175. package/vars/component/attachment-input-dropzone.mjs +0 -30
  176. package/vars/component/attachment-input-item-action-button.d.ts +0 -37
  177. package/vars/component/attachment-input-item-action-button.mjs +0 -37
  178. package/vars/component/attachment-input-item-remove-button.d.ts +0 -28
  179. package/vars/component/attachment-input-item-remove-button.mjs +0 -28
  180. package/vars/component/attachment-input-item.d.ts +0 -103
  181. package/vars/component/attachment-input-item.mjs +0 -102
  182. package/vars/component/attachment-input-trigger.d.ts +0 -46
  183. package/vars/component/attachment-input-trigger.mjs +0 -46
  184. package/vars/component/attachment-input.d.ts +0 -14
  185. package/vars/component/attachment-input.mjs +0 -12
  186. package/vars/component/avatar-stack.d.ts +0 -110
  187. package/vars/component/avatar-stack.mjs +0 -110
  188. package/vars/component/avatar.d.ts +0 -204
  189. package/vars/component/avatar.mjs +0 -162
  190. package/vars/component/badge.d.ts +0 -316
  191. package/vars/component/badge.mjs +0 -236
  192. package/vars/component/bottom-sheet-close-button.d.ts +0 -21
  193. package/vars/component/bottom-sheet-close-button.mjs +0 -21
  194. package/vars/component/bottom-sheet-handle.d.ts +0 -24
  195. package/vars/component/bottom-sheet-handle.mjs +0 -24
  196. package/vars/component/bottom-sheet.d.ts +0 -86
  197. package/vars/component/bottom-sheet.mjs +0 -86
  198. package/vars/component/callout-close-button.d.ts +0 -81
  199. package/vars/component/callout-close-button.mjs +0 -63
  200. package/vars/component/callout.d.ts +0 -232
  201. package/vars/component/callout.mjs +0 -200
  202. package/vars/component/checkbox-group.d.ts +0 -9
  203. package/vars/component/checkbox-group.mjs +0 -9
  204. package/vars/component/checkbox.d.ts +0 -56
  205. package/vars/component/checkbox.mjs +0 -53
  206. package/vars/component/checkmark.d.ts +0 -195
  207. package/vars/component/checkmark.mjs +0 -165
  208. package/vars/component/chip-tablist.d.ts +0 -24
  209. package/vars/component/chip-tablist.mjs +0 -24
  210. package/vars/component/chip.d.ts +0 -321
  211. package/vars/component/chip.mjs +0 -303
  212. package/vars/component/content-placeholder.d.ts +0 -28
  213. package/vars/component/content-placeholder.mjs +0 -27
  214. package/vars/component/contextual-floating-button.d.ts +0 -144
  215. package/vars/component/contextual-floating-button.mjs +0 -132
  216. package/vars/component/control-chip.d.ts +0 -158
  217. package/vars/component/control-chip.mjs +0 -158
  218. package/vars/component/date-picker.d.ts +0 -103
  219. package/vars/component/date-picker.mjs +0 -103
  220. package/vars/component/dialog-close-button.d.ts +0 -24
  221. package/vars/component/dialog-close-button.mjs +0 -24
  222. package/vars/component/dialog.d.ts +0 -91
  223. package/vars/component/dialog.mjs +0 -83
  224. package/vars/component/divider.d.ts +0 -9
  225. package/vars/component/divider.mjs +0 -9
  226. package/vars/component/extended-action-sheet-close-button.d.ts +0 -24
  227. package/vars/component/extended-action-sheet-close-button.mjs +0 -24
  228. package/vars/component/extended-action-sheet-item.d.ts +0 -46
  229. package/vars/component/extended-action-sheet-item.mjs +0 -46
  230. package/vars/component/extended-action-sheet.d.ts +0 -55
  231. package/vars/component/extended-action-sheet.mjs +0 -55
  232. package/vars/component/extended-fab.d.ts +0 -88
  233. package/vars/component/extended-fab.mjs +0 -82
  234. package/vars/component/fab.d.ts +0 -21
  235. package/vars/component/fab.mjs +0 -21
  236. package/vars/component/field-label.d.ts +0 -25
  237. package/vars/component/field-label.mjs +0 -25
  238. package/vars/component/field.d.ts +0 -78
  239. package/vars/component/field.mjs +0 -72
  240. package/vars/component/floating-action-button.d.ts +0 -60
  241. package/vars/component/floating-action-button.mjs +0 -54
  242. package/vars/component/help-bubble.d.ts +0 -55
  243. package/vars/component/help-bubble.mjs +0 -52
  244. package/vars/component/identity-placeholder.d.ts +0 -12
  245. package/vars/component/identity-placeholder.mjs +0 -12
  246. package/vars/component/image-frame-floater.d.ts +0 -10
  247. package/vars/component/image-frame-floater.mjs +0 -9
  248. package/vars/component/image-frame-indicator.d.ts +0 -20
  249. package/vars/component/image-frame-indicator.mjs +0 -18
  250. package/vars/component/image-frame-reaction-button.d.ts +0 -60
  251. package/vars/component/image-frame-reaction-button.mjs +0 -51
  252. package/vars/component/image-frame.d.ts +0 -27
  253. package/vars/component/image-frame.mjs +0 -18
  254. package/vars/component/inline-banner.d.ts +0 -191
  255. package/vars/component/inline-banner.mjs +0 -191
  256. package/vars/component/input-button.d.ts +0 -162
  257. package/vars/component/input-button.mjs +0 -155
  258. package/vars/component/link-content.d.ts +0 -58
  259. package/vars/component/link-content.mjs +0 -58
  260. package/vars/component/list-header.d.ts +0 -29
  261. package/vars/component/list-header.mjs +0 -29
  262. package/vars/component/list-item.d.ts +0 -85
  263. package/vars/component/list-item.mjs +0 -84
  264. package/vars/component/manner-temp-badge.d.ts +0 -117
  265. package/vars/component/manner-temp-badge.mjs +0 -117
  266. package/vars/component/manner-temp.d.ts +0 -88
  267. package/vars/component/manner-temp.mjs +0 -88
  268. package/vars/component/menu-item.d.ts +0 -129
  269. package/vars/component/menu-item.mjs +0 -117
  270. package/vars/component/menu-sheet-close-button.d.ts +0 -24
  271. package/vars/component/menu-sheet-close-button.mjs +0 -24
  272. package/vars/component/menu-sheet-item.d.ts +0 -69
  273. package/vars/component/menu-sheet-item.mjs +0 -57
  274. package/vars/component/menu-sheet.d.ts +0 -56
  275. package/vars/component/menu-sheet.mjs +0 -56
  276. package/vars/component/menu.d.ts +0 -68
  277. package/vars/component/menu.mjs +0 -60
  278. package/vars/component/notification-badge.d.ts +0 -48
  279. package/vars/component/notification-badge.mjs +0 -42
  280. package/vars/component/page-banner-close-button.d.ts +0 -133
  281. package/vars/component/page-banner-close-button.mjs +0 -99
  282. package/vars/component/page-banner.d.ts +0 -385
  283. package/vars/component/page-banner.mjs +0 -339
  284. package/vars/component/pagination-button.d.ts +0 -33
  285. package/vars/component/pagination-button.mjs +0 -33
  286. package/vars/component/pagination-page-item.d.ts +0 -54
  287. package/vars/component/pagination-page-item.mjs +0 -54
  288. package/vars/component/progress-circle.d.ts +0 -88
  289. package/vars/component/progress-circle.mjs +0 -67
  290. package/vars/component/quantity-picker-button.d.ts +0 -78
  291. package/vars/component/quantity-picker-button.mjs +0 -78
  292. package/vars/component/quantity-picker.d.ts +0 -80
  293. package/vars/component/quantity-picker.mjs +0 -80
  294. package/vars/component/radio-group.d.ts +0 -9
  295. package/vars/component/radio-group.mjs +0 -9
  296. package/vars/component/radio.d.ts +0 -56
  297. package/vars/component/radio.mjs +0 -53
  298. package/vars/component/radiomark.d.ts +0 -117
  299. package/vars/component/radiomark.mjs +0 -117
  300. package/vars/component/reaction-button.d.ts +0 -136
  301. package/vars/component/reaction-button.mjs +0 -136
  302. package/vars/component/scroll-fog.d.ts +0 -78
  303. package/vars/component/scroll-fog.mjs +0 -78
  304. package/vars/component/segmented-control-indicator.d.ts +0 -24
  305. package/vars/component/segmented-control-indicator.mjs +0 -24
  306. package/vars/component/segmented-control-item.d.ts +0 -41
  307. package/vars/component/segmented-control-item.mjs +0 -41
  308. package/vars/component/segmented-control.d.ts +0 -11
  309. package/vars/component/segmented-control.mjs +0 -11
  310. package/vars/component/select-box-checkmark.d.ts +0 -40
  311. package/vars/component/select-box-checkmark.mjs +0 -40
  312. package/vars/component/select-box-group.d.ts +0 -10
  313. package/vars/component/select-box-group.mjs +0 -10
  314. package/vars/component/select-box.d.ts +0 -107
  315. package/vars/component/select-box.mjs +0 -102
  316. package/vars/component/select-item.d.ts +0 -101
  317. package/vars/component/select-item.mjs +0 -95
  318. package/vars/component/select-trigger.d.ts +0 -127
  319. package/vars/component/select-trigger.mjs +0 -120
  320. package/vars/component/select.d.ts +0 -62
  321. package/vars/component/select.mjs +0 -54
  322. package/vars/component/side-panel-close-button.d.ts +0 -24
  323. package/vars/component/side-panel-close-button.mjs +0 -24
  324. package/vars/component/side-panel.d.ts +0 -97
  325. package/vars/component/side-panel.mjs +0 -85
  326. package/vars/component/skeleton.d.ts +0 -80
  327. package/vars/component/skeleton.mjs +0 -62
  328. package/vars/component/slider-thumb.d.ts +0 -25
  329. package/vars/component/slider-thumb.mjs +0 -25
  330. package/vars/component/slider-tick.d.ts +0 -23
  331. package/vars/component/slider-tick.mjs +0 -23
  332. package/vars/component/slider.d.ts +0 -81
  333. package/vars/component/slider.mjs +0 -78
  334. package/vars/component/snackbar.d.ts +0 -65
  335. package/vars/component/snackbar.mjs +0 -65
  336. package/vars/component/switch.d.ts +0 -56
  337. package/vars/component/switch.mjs +0 -53
  338. package/vars/component/switchmark.d.ts +0 -114
  339. package/vars/component/switchmark.mjs +0 -112
  340. package/vars/component/tab.d.ts +0 -47
  341. package/vars/component/tab.mjs +0 -47
  342. package/vars/component/tablist.d.ts +0 -51
  343. package/vars/component/tablist.mjs +0 -51
  344. package/vars/component/tag-group-item.d.ts +0 -122
  345. package/vars/component/tag-group-item.mjs +0 -122
  346. package/vars/component/tag-group.d.ts +0 -34
  347. package/vars/component/tag-group.mjs +0 -34
  348. package/vars/component/text-button.d.ts +0 -23
  349. package/vars/component/text-button.mjs +0 -23
  350. package/vars/component/text-input.d.ts +0 -292
  351. package/vars/component/text-input.mjs +0 -263
  352. package/vars/component/time-picker.d.ts +0 -27
  353. package/vars/component/time-picker.mjs +0 -27
  354. package/vars/component/toggle-button.d.ts +0 -213
  355. package/vars/component/toggle-button.mjs +0 -207
  356. package/vars/component/top-navigation-icon-button.d.ts +0 -45
  357. package/vars/component/top-navigation-icon-button.mjs +0 -45
  358. package/vars/component/top-navigation-text-button.d.ts +0 -61
  359. package/vars/component/top-navigation-text-button.mjs +0 -60
  360. package/vars/component/top-navigation.d.ts +0 -118
  361. package/vars/component/top-navigation.mjs +0 -109
  362. package/vars/component/wheel-picker.d.ts +0 -72
  363. package/vars/component/wheel-picker.mjs +0 -72
@@ -1,71 +0,0 @@
1
- import './content-dialog.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const contentDialogSlotNames = [
5
- [
6
- "positioner",
7
- "seed-content-dialog__positioner"
8
- ],
9
- [
10
- "backdrop",
11
- "seed-content-dialog__backdrop"
12
- ],
13
- [
14
- "content",
15
- "seed-content-dialog__content"
16
- ],
17
- [
18
- "header",
19
- "seed-content-dialog__header"
20
- ],
21
- [
22
- "body",
23
- "seed-content-dialog__body"
24
- ],
25
- [
26
- "footer",
27
- "seed-content-dialog__footer"
28
- ],
29
- [
30
- "title",
31
- "seed-content-dialog__title"
32
- ],
33
- [
34
- "description",
35
- "seed-content-dialog__description"
36
- ],
37
- [
38
- "closeButton",
39
- "seed-content-dialog__closeButton"
40
- ]
41
- ];
42
-
43
- const defaultVariant = {
44
- "size": "medium"
45
- };
46
-
47
- const compoundVariants = [];
48
-
49
- export const contentDialogVariantMap = {
50
- "size": [
51
- "medium",
52
- "large"
53
- ]
54
- };
55
-
56
- export const contentDialogVariantKeys = Object.keys(contentDialogVariantMap);
57
-
58
- export function contentDialog(props) {
59
- return Object.fromEntries(
60
- contentDialogSlotNames.map(([slot, className]) => {
61
- return [
62
- slot,
63
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
64
- ];
65
- }),
66
- );
67
- }
68
-
69
- Object.assign(contentDialog, { splitVariantProps: (props) => splitVariantProps(props, contentDialogVariantMap) });
70
-
71
- // @recipe(seed): content-dialog
@@ -1,88 +0,0 @@
1
- .seed-control-chip {
2
- position: relative;
3
- display: inline-flex;
4
- justify-content: center;
5
- align-items: center;
6
- box-sizing: border-box;
7
- cursor: pointer;
8
- border: none;
9
- text-transform: none;
10
- text-align: start;
11
- white-space: nowrap;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- flex-shrink: 0;
15
- line-height: 1;
16
- border-radius: var(--seed-radius-full);
17
- box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
18
- color: var(--seed-color-fg-neutral);
19
- font-weight: var(--seed-font-weight-medium);
20
- --seed-prefix-icon-color: var(--seed-color-fg-neutral);
21
- --seed-suffix-icon-color: var(--seed-color-fg-neutral-subtle);
22
- --seed-icon-color: var(--seed-color-fg-neutral);
23
- --seed-count-font-weight: var(--seed-font-weight-medium);
24
- --seed-count-color: var(--seed-color-fg-neutral-muted);
25
- }
26
- .seed-control-chip:is(:focus, [data-focus]) {
27
- outline: none;
28
- }
29
- .seed-control-chip:is(:active, [data-active]) {
30
- background: var(--seed-color-bg-layer-default-pressed);
31
- }
32
- .seed-control-chip:is(:checked, [data-checked]) {
33
- box-shadow: none;
34
- background: var(--seed-color-bg-neutral-solid-muted);
35
- color: var(--seed-color-palette-static-white);
36
- font-weight: var(--seed-font-weight-bold);
37
- --seed-prefix-icon-color: var(--seed-color-palette-static-white);
38
- --seed-suffix-icon-color: var(--seed-color-palette-static-white);
39
- --seed-icon-color: var(--seed-color-palette-static-white);
40
- --seed-count-color: var(--seed-color-palette-static-white-alpha-800);
41
- }
42
- .seed-control-chip:is(:checked, [data-checked]):is(:active, [data-active]) {
43
- background: var(--seed-color-bg-neutral-solid-muted-pressed);
44
- }
45
- .seed-control-chip:is(:disabled, [disabled], [data-disabled]) {
46
- cursor: not-allowed;
47
- background: var(--seed-color-bg-disabled);
48
- color: var(--seed-color-fg-disabled);
49
- --seed-prefix-icon-color: var(--seed-color-fg-disabled);
50
- --seed-suffix-icon-color: var(--seed-color-fg-disabled);
51
- --seed-icon-color: var(--seed-color-fg-disabled);
52
- }
53
- .seed-control-chip--size_medium {
54
- min-height: var(--seed-dimension-x9);
55
- padding-block: var(--seed-dimension-x2);
56
- gap: var(--seed-dimension-x1);
57
- font-size: var(--seed-font-size-t4);
58
- line-height: var(--seed-line-height-t4);
59
- --seed-prefix-icon-size: var(--seed-dimension-x4);
60
- --seed-suffix-icon-size: var(--seed-dimension-x3_5);
61
- --seed-icon-size: var(--seed-dimension-x4);
62
- --seed-count-font-size: var(--seed-font-size-t4);
63
- }
64
- .seed-control-chip--size_small {
65
- min-height: var(--seed-dimension-x8);
66
- padding-block: var(--seed-dimension-x1_5);
67
- gap: var(--seed-dimension-x1);
68
- font-size: var(--seed-font-size-t4);
69
- line-height: var(--seed-line-height-t4);
70
- --seed-prefix-icon-size: var(--seed-dimension-x4);
71
- --seed-suffix-icon-size: var(--seed-dimension-x3_5);
72
- --seed-icon-size: var(--seed-dimension-x4);
73
- --seed-count-font-size: var(--seed-font-size-t4);
74
- }
75
- .seed-control-chip--layout_withText {}
76
- .seed-control-chip--layout_iconOnly {}
77
- .seed-control-chip--size_medium-layout_withText {
78
- padding-inline: var(--seed-dimension-x3_5);
79
- }
80
- .seed-control-chip--size_medium-layout_iconOnly {
81
- min-width: var(--seed-dimension-x9);
82
- }
83
- .seed-control-chip--size_small-layout_withText {
84
- padding-inline: var(--seed-dimension-x3);
85
- }
86
- .seed-control-chip--size_small-layout_iconOnly {
87
- min-width: var(--seed-dimension-x8);
88
- }
@@ -1,26 +0,0 @@
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 const controlChipVariantMap: ControlChipVariantMap;
19
-
20
- export declare const controlChip: ((
21
- props?: ControlChipVariantProps,
22
- ) => string) & {
23
- splitVariantProps: <T extends ControlChipVariantProps>(
24
- props: T,
25
- ) => [ControlChipVariantProps, Omit<T, keyof ControlChipVariantProps>];
26
- }
@@ -1,99 +0,0 @@
1
- @layer seed-components {
2
- .seed-control-chip {
3
- box-sizing: border-box;
4
- cursor: pointer;
5
- text-transform: none;
6
- text-align: start;
7
- white-space: nowrap;
8
- -webkit-font-smoothing: antialiased;
9
- -moz-osx-font-smoothing: grayscale;
10
- border-radius: var(--seed-radius-full);
11
- box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
12
- color: var(--seed-color-fg-neutral);
13
- line-height: 1;
14
- font-weight: var(--seed-font-weight-medium);
15
- --seed-prefix-icon-color: var(--seed-color-fg-neutral);
16
- --seed-suffix-icon-color: var(--seed-color-fg-neutral-subtle);
17
- --seed-icon-color: var(--seed-color-fg-neutral);
18
- --seed-count-font-weight: var(--seed-font-weight-medium);
19
- --seed-count-color: var(--seed-color-fg-neutral-muted);
20
- border: none;
21
- flex-shrink: 0;
22
- justify-content: center;
23
- align-items: center;
24
- display: inline-flex;
25
- position: relative;
26
- }
27
-
28
- .seed-control-chip:is(:focus, [data-focus]) {
29
- outline: none;
30
- }
31
-
32
- .seed-control-chip:is(:active, [data-active]) {
33
- background: var(--seed-color-bg-layer-default-pressed);
34
- }
35
-
36
- .seed-control-chip:is(:checked, [data-checked]) {
37
- box-shadow: none;
38
- background: var(--seed-color-bg-neutral-solid-muted);
39
- color: var(--seed-color-palette-static-white);
40
- font-weight: var(--seed-font-weight-bold);
41
- --seed-prefix-icon-color: var(--seed-color-palette-static-white);
42
- --seed-suffix-icon-color: var(--seed-color-palette-static-white);
43
- --seed-icon-color: var(--seed-color-palette-static-white);
44
- --seed-count-color: var(--seed-color-palette-static-white-alpha-800);
45
- }
46
-
47
- .seed-control-chip:is(:checked, [data-checked]):is(:active, [data-active]) {
48
- background: var(--seed-color-bg-neutral-solid-muted-pressed);
49
- }
50
-
51
- .seed-control-chip:is(:disabled, [disabled], [data-disabled]) {
52
- cursor: not-allowed;
53
- background: var(--seed-color-bg-disabled);
54
- color: var(--seed-color-fg-disabled);
55
- --seed-prefix-icon-color: var(--seed-color-fg-disabled);
56
- --seed-suffix-icon-color: var(--seed-color-fg-disabled);
57
- --seed-icon-color: var(--seed-color-fg-disabled);
58
- }
59
-
60
- .seed-control-chip--size_medium {
61
- min-height: var(--seed-dimension-x9);
62
- padding-block: var(--seed-dimension-x2);
63
- gap: var(--seed-dimension-x1);
64
- font-size: var(--seed-font-size-t4);
65
- line-height: var(--seed-line-height-t4);
66
- --seed-prefix-icon-size: var(--seed-dimension-x4);
67
- --seed-suffix-icon-size: var(--seed-dimension-x3_5);
68
- --seed-icon-size: var(--seed-dimension-x4);
69
- --seed-count-font-size: var(--seed-font-size-t4);
70
- }
71
-
72
- .seed-control-chip--size_small {
73
- min-height: var(--seed-dimension-x8);
74
- padding-block: var(--seed-dimension-x1_5);
75
- gap: var(--seed-dimension-x1);
76
- font-size: var(--seed-font-size-t4);
77
- line-height: var(--seed-line-height-t4);
78
- --seed-prefix-icon-size: var(--seed-dimension-x4);
79
- --seed-suffix-icon-size: var(--seed-dimension-x3_5);
80
- --seed-icon-size: var(--seed-dimension-x4);
81
- --seed-count-font-size: var(--seed-font-size-t4);
82
- }
83
-
84
- .seed-control-chip--size_medium-layout_withText {
85
- padding-inline: var(--seed-dimension-x3_5);
86
- }
87
-
88
- .seed-control-chip--size_medium-layout_iconOnly {
89
- min-width: var(--seed-dimension-x9);
90
- }
91
-
92
- .seed-control-chip--size_small-layout_withText {
93
- padding-inline: var(--seed-dimension-x3);
94
- }
95
-
96
- .seed-control-chip--size_small-layout_iconOnly {
97
- min-width: var(--seed-dimension-x8);
98
- }
99
- }
@@ -1,51 +0,0 @@
1
- import './control-chip.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const defaultVariant = {
5
- "size": "medium",
6
- "layout": "withText"
7
- };
8
-
9
- const compoundVariants = [
10
- {
11
- "size": "medium",
12
- "layout": "withText"
13
- },
14
- {
15
- "size": "medium",
16
- "layout": "iconOnly"
17
- },
18
- {
19
- "size": "small",
20
- "layout": "withText"
21
- },
22
- {
23
- "size": "small",
24
- "layout": "iconOnly"
25
- }
26
- ];
27
-
28
- export const controlChipVariantMap = {
29
- "size": [
30
- "medium",
31
- "small"
32
- ],
33
- "layout": [
34
- "withText",
35
- "iconOnly"
36
- ]
37
- };
38
-
39
- export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
40
-
41
- export function controlChip(props) {
42
- return createClassName(
43
- "seed-control-chip",
44
- mergeVariants(defaultVariant, props),
45
- compoundVariants,
46
- );
47
- }
48
-
49
- Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
50
-
51
- // @recipe(seed): control-chip
@@ -1,51 +0,0 @@
1
- import './control-chip.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const defaultVariant = {
5
- "size": "medium",
6
- "layout": "withText"
7
- };
8
-
9
- const compoundVariants = [
10
- {
11
- "size": "medium",
12
- "layout": "withText"
13
- },
14
- {
15
- "size": "medium",
16
- "layout": "iconOnly"
17
- },
18
- {
19
- "size": "small",
20
- "layout": "withText"
21
- },
22
- {
23
- "size": "small",
24
- "layout": "iconOnly"
25
- }
26
- ];
27
-
28
- export const controlChipVariantMap = {
29
- "size": [
30
- "medium",
31
- "small"
32
- ],
33
- "layout": [
34
- "withText",
35
- "iconOnly"
36
- ]
37
- };
38
-
39
- export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
40
-
41
- export function controlChip(props) {
42
- return createClassName(
43
- "seed-control-chip",
44
- mergeVariants(defaultVariant, props),
45
- compoundVariants,
46
- );
47
- }
48
-
49
- Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
50
-
51
- // @recipe(seed): control-chip
@@ -1,31 +0,0 @@
1
- .seed-extended-action-sheet-item {
2
- display: flex;
3
- align-items: center;
4
- justify-content: flex-start;
5
- background-color: var(--seed-color-bg-neutral-weak);
6
- min-height: 52px;
7
- padding-inline: var(--seed-dimension-x4);
8
- padding-block: var(--seed-dimension-x3_5);
9
- gap: var(--seed-dimension-x3_5);
10
- box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
11
- font-size: var(--seed-font-size-t5);
12
- line-height: var(--seed-line-height-t5);
13
- font-weight: var(--seed-font-weight-regular);
14
- }
15
- .seed-extended-action-sheet-item:is(:active, [data-active]) {
16
- background-color: var(--seed-color-bg-neutral-weak-pressed);
17
- }
18
- .seed-extended-action-sheet-item:last-child {
19
- box-shadow: none;
20
- }
21
- .seed-extended-action-sheet-item {
22
- --seed-prefix-icon-size: 22px;
23
- }
24
- .seed-extended-action-sheet-item--tone_neutral {
25
- color: var(--seed-color-fg-neutral);
26
- --seed-prefix-icon-color: var(--seed-color-fg-neutral);
27
- }
28
- .seed-extended-action-sheet-item--tone_critical {
29
- color: var(--seed-color-fg-critical);
30
- --seed-prefix-icon-color: var(--seed-color-fg-critical);
31
- }
@@ -1,22 +0,0 @@
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 const extendedActionSheetItemVariantMap: ExtendedActionSheetItemVariantMap;
15
-
16
- export declare const extendedActionSheetItem: ((
17
- props?: ExtendedActionSheetItemVariantProps,
18
- ) => string) & {
19
- splitVariantProps: <T extends ExtendedActionSheetItemVariantProps>(
20
- props: T,
21
- ) => [ExtendedActionSheetItemVariantProps, Omit<T, keyof ExtendedActionSheetItemVariantProps>];
22
- }
@@ -1,38 +0,0 @@
1
- @layer seed-components {
2
- .seed-extended-action-sheet-item {
3
- background-color: var(--seed-color-bg-neutral-weak);
4
- min-height: 52px;
5
- padding-inline: var(--seed-dimension-x4);
6
- padding-block: var(--seed-dimension-x3_5);
7
- justify-content: flex-start;
8
- align-items: center;
9
- gap: var(--seed-dimension-x3_5);
10
- box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
11
- font-size: var(--seed-font-size-t5);
12
- line-height: var(--seed-line-height-t5);
13
- font-weight: var(--seed-font-weight-regular);
14
- display: flex;
15
- }
16
-
17
- .seed-extended-action-sheet-item:is(:active, [data-active]) {
18
- background-color: var(--seed-color-bg-neutral-weak-pressed);
19
- }
20
-
21
- .seed-extended-action-sheet-item:last-child {
22
- box-shadow: none;
23
- }
24
-
25
- .seed-extended-action-sheet-item {
26
- --seed-prefix-icon-size: 22px;
27
- }
28
-
29
- .seed-extended-action-sheet-item--tone_neutral {
30
- color: var(--seed-color-fg-neutral);
31
- --seed-prefix-icon-color: var(--seed-color-fg-neutral);
32
- }
33
-
34
- .seed-extended-action-sheet-item--tone_critical {
35
- color: var(--seed-color-fg-critical);
36
- --seed-prefix-icon-color: var(--seed-color-fg-critical);
37
- }
38
- }
@@ -1,29 +0,0 @@
1
- import './extended-action-sheet-item.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const defaultVariant = {
5
- "tone": "neutral"
6
- };
7
-
8
- const compoundVariants = [];
9
-
10
- export const extendedActionSheetItemVariantMap = {
11
- "tone": [
12
- "neutral",
13
- "critical"
14
- ]
15
- };
16
-
17
- export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
18
-
19
- export function extendedActionSheetItem(props) {
20
- return createClassName(
21
- "seed-extended-action-sheet-item",
22
- mergeVariants(defaultVariant, props),
23
- compoundVariants,
24
- );
25
- }
26
-
27
- Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
28
-
29
- // @recipe(seed): extended-action-sheet-item
@@ -1,29 +0,0 @@
1
- import './extended-action-sheet-item.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const defaultVariant = {
5
- "tone": "neutral"
6
- };
7
-
8
- const compoundVariants = [];
9
-
10
- export const extendedActionSheetItemVariantMap = {
11
- "tone": [
12
- "neutral",
13
- "critical"
14
- ]
15
- };
16
-
17
- export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
18
-
19
- export function extendedActionSheetItem(props) {
20
- return createClassName(
21
- "seed-extended-action-sheet-item",
22
- mergeVariants(defaultVariant, props),
23
- compoundVariants,
24
- );
25
- }
26
-
27
- Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
28
-
29
- // @recipe(seed): extended-action-sheet-item
@@ -1,123 +0,0 @@
1
- .seed-extended-action-sheet__positioner {
2
- position: fixed;
3
- display: flex;
4
- justify-content: center;
5
- align-items: flex-end;
6
- top: 0;
7
- right: 0;
8
- bottom: 0;
9
- left: 0;
10
- overscroll-behavior-y: none;
11
- --sheet-z-index: 2;
12
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
13
- }
14
- .seed-extended-action-sheet__backdrop {
15
- position: fixed;
16
- top: 0;
17
- right: 0;
18
- bottom: 0;
19
- left: 0;
20
- background: var(--seed-color-bg-overlay);
21
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
22
- }
23
- .seed-extended-action-sheet__backdrop:not(:is([data-state="open"], [data-open])) {
24
- animation: seed-exit;
25
- animation-timing-function: var(--seed-timing-function-exit);
26
- animation-duration: var(--seed-duration-d2);
27
- animation-fill-mode: forwards;
28
- --seed-exit-translate-x: 0;
29
- --seed-exit-translate-y: 0;
30
- --seed-exit-opacity: 0;
31
- --seed-exit-scale: 1;
32
- }
33
- .seed-extended-action-sheet__backdrop:is([data-state="open"], [data-open]) {
34
- animation: seed-enter;
35
- animation-timing-function: var(--seed-timing-function-enter);
36
- animation-duration: var(--seed-duration-d2);
37
- --seed-enter-translate-x: 0;
38
- --seed-enter-translate-y: 0;
39
- --seed-enter-opacity: 0;
40
- --seed-enter-scale: 1;
41
- }
42
- .seed-extended-action-sheet__content {
43
- position: relative;
44
- display: flex;
45
- flex: 1;
46
- flex-direction: column;
47
- box-sizing: border-box;
48
- word-break: break-all;
49
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
50
- background: var(--seed-color-bg-layer-floating);
51
- padding-inline: var(--seed-dimension-spacing-x-global-gutter);
52
- padding-block: var(--seed-dimension-x4);
53
- border-top-left-radius: var(--seed-radius-r5);
54
- border-top-right-radius: var(--seed-radius-r5);
55
- }
56
- .seed-extended-action-sheet__content:not(:is([data-state="open"], [data-open])) {
57
- animation: seed-exit;
58
- animation-timing-function: var(--seed-timing-function-exit);
59
- animation-duration: var(--seed-duration-d4);
60
- animation-fill-mode: forwards;
61
- --seed-exit-translate-x: 0;
62
- --seed-exit-translate-y: 100%;
63
- --seed-exit-opacity: 1;
64
- --seed-exit-scale: 1;
65
- }
66
- .seed-extended-action-sheet__content:is([data-state="open"], [data-open]) {
67
- animation: seed-enter;
68
- animation-timing-function: var(--seed-timing-function-enter-expressive);
69
- animation-duration: var(--seed-duration-d6);
70
- --seed-enter-translate-x: 0;
71
- --seed-enter-translate-y: 100%;
72
- --seed-enter-opacity: 1;
73
- --seed-enter-scale: 1;
74
- }
75
- .seed-extended-action-sheet__header {
76
- display: flex;
77
- flex-direction: column;
78
- align-items: center;
79
- gap: var(--seed-dimension-x1);
80
- padding-bottom: var(--seed-dimension-x4);
81
- }
82
- .seed-extended-action-sheet__title {
83
- color: var(--seed-color-fg-neutral);
84
- font-size: var(--seed-font-size-t6);
85
- line-height: var(--seed-line-height-t6);
86
- font-weight: var(--seed-font-weight-bold);
87
- }
88
- .seed-extended-action-sheet__list {
89
- display: flex;
90
- flex-direction: column;
91
- align-items: stretch;
92
- gap: var(--seed-dimension-x2_5);
93
- }
94
- .seed-extended-action-sheet__group {
95
- display: flex;
96
- flex-direction: column;
97
- align-items: stretch;
98
- overflow: hidden;
99
- border-radius: var(--seed-radius-r4);
100
- }
101
- .seed-extended-action-sheet__footer {
102
- display: flex;
103
- flex-direction: column;
104
- align-items: stretch;
105
- padding-top: var(--seed-dimension-x2_5);
106
- }
107
- .seed-extended-action-sheet__closeButton {
108
- display: flex;
109
- align-items: center;
110
- justify-content: center;
111
- background-color: var(--seed-color-bg-neutral-weak);
112
- min-height: 52px;
113
- padding-inline: var(--seed-dimension-x5);
114
- padding-block: var(--seed-dimension-x3_5);
115
- border-radius: var(--seed-radius-r3);
116
- color: var(--seed-color-fg-neutral);
117
- font-size: var(--seed-font-size-t5);
118
- line-height: var(--seed-line-height-t5);
119
- font-weight: var(--seed-font-weight-medium);
120
- }
121
- .seed-extended-action-sheet__closeButton:is(:active, [data-active]) {
122
- background-color: var(--seed-color-bg-neutral-weak-pressed);
123
- }
@@ -1,21 +0,0 @@
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
- }