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