@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
@@ -0,0 +1,24 @@
1
+ declare interface AlertDialogVariant {
2
+ /**
3
+ * @default false
4
+ */
5
+ skipAnimation: boolean;
6
+ }
7
+
8
+ declare type AlertDialogVariantMap = {
9
+ [key in keyof AlertDialogVariant]: Array<AlertDialogVariant[key]>;
10
+ };
11
+
12
+ export declare type AlertDialogVariantProps = Partial<AlertDialogVariant>;
13
+
14
+ export declare type AlertDialogSlotName = "positioner" | "backdrop" | "content" | "header" | "footer" | "action" | "title" | "description";
15
+
16
+ export declare const alertDialogVariantMap: AlertDialogVariantMap;
17
+
18
+ export declare const alertDialog: ((
19
+ props?: AlertDialogVariantProps,
20
+ ) => Record<AlertDialogSlotName, string>) & {
21
+ splitVariantProps: <T extends AlertDialogVariantProps>(
22
+ props: T,
23
+ ) => [AlertDialogVariantProps, Omit<T, keyof AlertDialogVariantProps>];
24
+ }
@@ -0,0 +1,114 @@
1
+ @layer seed-components {
2
+ .seed-alert-dialog__positioner {
3
+ overscroll-behavior-y: none;
4
+ --dialog-z-index: 2;
5
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
6
+ justify-content: center;
7
+ align-items: center;
8
+ display: flex;
9
+ position: fixed;
10
+ inset: 0;
11
+ }
12
+
13
+ .seed-alert-dialog__backdrop {
14
+ background: var(--seed-color-bg-overlay);
15
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
16
+ position: fixed;
17
+ inset: 0;
18
+ }
19
+
20
+ .seed-alert-dialog__content {
21
+ box-sizing: border-box;
22
+ word-break: break-all;
23
+ z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
24
+ background: var(--seed-color-bg-layer-floating);
25
+ max-width: 272px;
26
+ margin: auto var(--seed-dimension-x8);
27
+ border-radius: var(--seed-radius-r5);
28
+ outline: none;
29
+ flex-direction: column;
30
+ flex: 1;
31
+ display: flex;
32
+ position: relative;
33
+ }
34
+
35
+ .seed-alert-dialog__content:is(:focus, [data-focus]) {
36
+ outline: none;
37
+ }
38
+
39
+ .seed-alert-dialog__header {
40
+ padding-inline: var(--seed-dimension-x5);
41
+ padding-top: var(--seed-dimension-x5);
42
+ gap: var(--seed-dimension-x1_5);
43
+ flex-direction: column;
44
+ display: flex;
45
+ }
46
+
47
+ .seed-alert-dialog__title {
48
+ color: var(--seed-color-fg-neutral);
49
+ font-size: var(--seed-font-size-t7);
50
+ line-height: var(--seed-line-height-t7);
51
+ font-weight: var(--seed-font-weight-bold);
52
+ margin: 0;
53
+ }
54
+
55
+ .seed-alert-dialog__description {
56
+ color: var(--seed-color-fg-neutral);
57
+ font-size: var(--seed-font-size-t5);
58
+ line-height: var(--seed-line-height-t5);
59
+ font-weight: var(--seed-font-weight-regular);
60
+ white-space: pre-wrap;
61
+ margin: 0;
62
+ }
63
+
64
+ .seed-alert-dialog__footer {
65
+ padding-inline: var(--seed-dimension-x5);
66
+ padding-top: var(--seed-dimension-x4);
67
+ padding-bottom: var(--seed-dimension-x5);
68
+ flex-direction: column;
69
+ align-items: stretch;
70
+ display: flex;
71
+ }
72
+
73
+ .seed-alert-dialog__backdrop--skipAnimation_false:is([data-state="open"], [data-open]) {
74
+ animation: seed-enter;
75
+ animation-timing-function: var(--seed-timing-function-enter);
76
+ animation-duration: var(--seed-duration-d2);
77
+ --seed-enter-translate-x: 0;
78
+ --seed-enter-translate-y: 0;
79
+ --seed-enter-opacity: 0;
80
+ --seed-enter-scale: 1;
81
+ }
82
+
83
+ .seed-alert-dialog__backdrop--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
84
+ animation: seed-exit;
85
+ animation-timing-function: var(--seed-timing-function-exit);
86
+ animation-duration: var(--seed-duration-d2);
87
+ --seed-exit-translate-x: 0;
88
+ --seed-exit-translate-y: 0;
89
+ --seed-exit-opacity: 0;
90
+ --seed-exit-scale: 1;
91
+ animation-fill-mode: forwards;
92
+ }
93
+
94
+ .seed-alert-dialog__content--skipAnimation_false:is([data-state="open"], [data-open]) {
95
+ animation: seed-enter;
96
+ animation-timing-function: var(--seed-timing-function-enter-expressive);
97
+ animation-duration: var(--seed-duration-d4);
98
+ --seed-enter-translate-x: 0;
99
+ --seed-enter-translate-y: 0;
100
+ --seed-enter-opacity: 0;
101
+ --seed-enter-scale: 1.3;
102
+ }
103
+
104
+ .seed-alert-dialog__content--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
105
+ animation: seed-exit;
106
+ animation-timing-function: var(--seed-timing-function-exit);
107
+ animation-duration: var(--seed-duration-d2);
108
+ --seed-exit-translate-x: 0;
109
+ --seed-exit-translate-y: 0;
110
+ --seed-exit-opacity: 0;
111
+ --seed-exit-scale: 1;
112
+ animation-fill-mode: forwards;
113
+ }
114
+ }
@@ -0,0 +1,66 @@
1
+ import './alert-dialog.layered.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const alertDialogSlotNames = [
5
+ [
6
+ "positioner",
7
+ "seed-alert-dialog__positioner"
8
+ ],
9
+ [
10
+ "backdrop",
11
+ "seed-alert-dialog__backdrop"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-alert-dialog__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-alert-dialog__header"
20
+ ],
21
+ [
22
+ "footer",
23
+ "seed-alert-dialog__footer"
24
+ ],
25
+ [
26
+ "action",
27
+ "seed-alert-dialog__action"
28
+ ],
29
+ [
30
+ "title",
31
+ "seed-alert-dialog__title"
32
+ ],
33
+ [
34
+ "description",
35
+ "seed-alert-dialog__description"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {
40
+ "skipAnimation": false
41
+ };
42
+
43
+ const compoundVariants = [];
44
+
45
+ export const alertDialogVariantMap = {
46
+ "skipAnimation": [
47
+ false
48
+ ]
49
+ };
50
+
51
+ export const alertDialogVariantKeys = Object.keys(alertDialogVariantMap);
52
+
53
+ export function alertDialog(props) {
54
+ return Object.fromEntries(
55
+ alertDialogSlotNames.map(([slot, className]) => {
56
+ return [
57
+ slot,
58
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
59
+ ];
60
+ }),
61
+ );
62
+ }
63
+
64
+ Object.assign(alertDialog, { splitVariantProps: (props) => splitVariantProps(props, alertDialogVariantMap) });
65
+
66
+ // @recipe(seed): alert-dialog
@@ -0,0 +1,66 @@
1
+ import './alert-dialog.css';
2
+ import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
+
4
+ const alertDialogSlotNames = [
5
+ [
6
+ "positioner",
7
+ "seed-alert-dialog__positioner"
8
+ ],
9
+ [
10
+ "backdrop",
11
+ "seed-alert-dialog__backdrop"
12
+ ],
13
+ [
14
+ "content",
15
+ "seed-alert-dialog__content"
16
+ ],
17
+ [
18
+ "header",
19
+ "seed-alert-dialog__header"
20
+ ],
21
+ [
22
+ "footer",
23
+ "seed-alert-dialog__footer"
24
+ ],
25
+ [
26
+ "action",
27
+ "seed-alert-dialog__action"
28
+ ],
29
+ [
30
+ "title",
31
+ "seed-alert-dialog__title"
32
+ ],
33
+ [
34
+ "description",
35
+ "seed-alert-dialog__description"
36
+ ]
37
+ ];
38
+
39
+ const defaultVariant = {
40
+ "skipAnimation": false
41
+ };
42
+
43
+ const compoundVariants = [];
44
+
45
+ export const alertDialogVariantMap = {
46
+ "skipAnimation": [
47
+ false
48
+ ]
49
+ };
50
+
51
+ export const alertDialogVariantKeys = Object.keys(alertDialogVariantMap);
52
+
53
+ export function alertDialog(props) {
54
+ return Object.fromEntries(
55
+ alertDialogSlotNames.map(([slot, className]) => {
56
+ return [
57
+ slot,
58
+ createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
59
+ ];
60
+ }),
61
+ );
62
+ }
63
+
64
+ Object.assign(alertDialog, { splitVariantProps: (props) => splitVariantProps(props, alertDialogVariantMap) });
65
+
66
+ // @recipe(seed): alert-dialog
@@ -35,7 +35,8 @@
35
35
  top: var(--seed-safe-area-top);
36
36
  bottom: 0;
37
37
  inset-inline: 0;
38
- padding-inline: var(--centered-title-padding-x, 0);
38
+ padding-left: calc(var(--seed-safe-area-left) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-left) - var(--seed-dimension-x4)))), 0px));
39
+ padding-right: calc(var(--seed-safe-area-right) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-right) - var(--seed-dimension-x4)))), 0px));
39
40
  pointer-events: none
40
41
  }
41
42
  .seed-app-bar-main__root--theme_android {
@@ -31,7 +31,8 @@
31
31
  text-align: center;
32
32
  top: var(--seed-safe-area-top);
33
33
  bottom: 0;
34
- padding-inline: var(--centered-title-padding-x, 0);
34
+ padding-left: calc(var(--seed-safe-area-left) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-left) - var(--seed-dimension-x4)))), 0px));
35
+ padding-right: calc(var(--seed-safe-area-right) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-right) - var(--seed-dimension-x4)))), 0px));
35
36
  pointer-events: none;
36
37
  justify-content: center;
37
38
  align-items: center;
@@ -46,8 +46,9 @@
46
46
  flex-shrink: 0;
47
47
  }
48
48
  .seed-app-bar__root--theme_cupertino {
49
- height: calc(44px + var(--seed-safe-area-top));
50
- padding-inline: var(--seed-dimension-x4);
49
+ height: calc(56px + var(--seed-safe-area-top));
50
+ padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
51
+ padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
51
52
  padding-top: var(--seed-safe-area-top);
52
53
  }
53
54
  .seed-app-bar__iconButton--theme_cupertino {
@@ -66,7 +67,8 @@
66
67
  }
67
68
  .seed-app-bar__root--theme_android {
68
69
  height: calc(56px + var(--seed-safe-area-top));
69
- padding-inline: var(--seed-dimension-x4);
70
+ padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
71
+ padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
70
72
  padding-top: var(--seed-safe-area-top);
71
73
  }
72
74
  .seed-app-bar__iconButton--theme_android {
@@ -54,8 +54,9 @@
54
54
  }
55
55
 
56
56
  .seed-app-bar__root--theme_cupertino {
57
- height: calc(44px + var(--seed-safe-area-top));
58
- padding-inline: var(--seed-dimension-x4);
57
+ height: calc(56px + var(--seed-safe-area-top));
58
+ padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
59
+ padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
59
60
  padding-top: var(--seed-safe-area-top);
60
61
  }
61
62
 
@@ -79,7 +80,8 @@
79
80
 
80
81
  .seed-app-bar__root--theme_android {
81
82
  height: calc(56px + var(--seed-safe-area-top));
82
- padding-inline: var(--seed-dimension-x4);
83
+ padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
84
+ padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
83
85
  padding-top: var(--seed-safe-area-top);
84
86
  }
85
87
 
@@ -20,6 +20,8 @@
20
20
  width: 100%;
21
21
  height: 100%;
22
22
  inset-inline: 0;
23
+ padding-left: var(--seed-safe-area-left);
24
+ padding-right: var(--seed-safe-area-right);
23
25
  overflow-y: scroll;
24
26
  -webkit-overflow-scrolling: touch;
25
27
  }
@@ -40,7 +42,7 @@
40
42
  inset-inline: 0;
41
43
  }
42
44
  .seed-app-screen__root--theme_cupertino {
43
- --app-bar-height: 44px;
45
+ --app-bar-height: 56px;
44
46
  }
45
47
  .seed-app-screen__root--theme_android {
46
48
  --app-bar-height: 56px;
@@ -99,6 +101,8 @@
99
101
  inset-inline: 0;
100
102
  top: 0;
101
103
  margin-bottom: calc(-1 * (66px + 400px + var(--seed-safe-area-top)));
104
+ margin-left: calc(-1 * var(--seed-safe-area-left));
105
+ margin-right: calc(-1 * var(--seed-safe-area-right));
102
106
  height: calc(66px + 400px + var(--seed-safe-area-top));
103
107
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.35) 400px, rgba(0, 0, 0, 0.00) 100%);
104
108
  pointer-events: none;
@@ -19,9 +19,11 @@
19
19
  .seed-app-screen__layer {
20
20
  z-index: var(--z-index-layer);
21
21
  box-sizing: border-box;
22
- -webkit-overflow-scrolling: touch;
23
22
  width: 100%;
24
23
  height: 100%;
24
+ padding-left: var(--seed-safe-area-left);
25
+ padding-right: var(--seed-safe-area-right);
26
+ -webkit-overflow-scrolling: touch;
25
27
  position: absolute;
26
28
  inset-inline: 0;
27
29
  overflow-y: scroll;
@@ -47,11 +49,7 @@
47
49
  inset-inline: 0;
48
50
  }
49
51
 
50
- .seed-app-screen__root--theme_cupertino {
51
- --app-bar-height: 44px;
52
- }
53
-
54
- .seed-app-screen__root--theme_android {
52
+ .seed-app-screen__root--theme_cupertino, .seed-app-screen__root--theme_android {
55
53
  --app-bar-height: 56px;
56
54
  }
57
55
 
@@ -118,6 +116,8 @@
118
116
  content: "";
119
117
  inset-inline: 0;
120
118
  margin-bottom: calc(-1 * (66px + 400px + var(--seed-safe-area-top)));
119
+ margin-left: calc(-1 * var(--seed-safe-area-left));
120
+ margin-right: calc(-1 * var(--seed-safe-area-right));
121
121
  height: calc(66px + 400px + var(--seed-safe-area-top));
122
122
  pointer-events: none;
123
123
  z-index: 1;
package/recipes/badge.css CHANGED
@@ -2,113 +2,169 @@
2
2
  display: inline-flex;
3
3
  box-sizing: border-box;
4
4
  align-items: center;
5
+ min-width: 0;
6
+ overflow: hidden;
5
7
  text-transform: none;
6
8
  text-align: start;
7
9
  -webkit-font-smoothing: antialiased;
8
10
  -moz-osx-font-smoothing: grayscale;
9
- text-decoration: none
11
+ text-decoration: none;
12
+ }
13
+ .seed-badge__prefix {
14
+ display: inline-flex;
15
+ flex-shrink: 0;
16
+ align-items: center;
17
+ justify-content: center;
18
+ color: inherit;
19
+ --seed-icon-size: 100%;
20
+ --seed-icon-color: currentColor;
10
21
  }
11
22
  .seed-badge__label {
23
+ min-width: 0;
24
+ flex-shrink: 1;
12
25
  overflow: hidden;
13
26
  text-overflow: ellipsis;
14
- white-space: nowrap
27
+ white-space: nowrap;
28
+ }
29
+ .seed-badge__action {
30
+ display: inline-flex;
31
+ flex-shrink: 0;
32
+ align-items: center;
33
+ justify-content: center;
34
+ padding: 0;
35
+ font-family: inherit;
36
+ border: none;
37
+ border-radius: inherit;
38
+ background-color: transparent;
39
+ color: inherit;
40
+ cursor: pointer;
41
+ --seed-icon-size: 100%;
42
+ --seed-icon-color: currentColor;
43
+ }
44
+ .seed-badge__action:is(:active, [data-active]) {
45
+ scale: var(--seed-feedback-scale);
46
+ }
47
+ .seed-badge__action {
48
+ transition: scale var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
49
+ outline: var(--seed-dimension-x0_5) solid transparent;
50
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
51
+ }
52
+ .seed-badge__action:is(:focus-visible, [data-focus-visible]) {
53
+ outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
54
+ outline-offset: calc(var(--seed-dimension-x0_5) * -1);
15
55
  }
16
56
  .seed-badge__root--size_medium {
17
- max-width: clamp(calc(108px * var(--seed-font-size-limit-min)), 7.5rem, calc(108px * var(--seed-font-size-limit-max)));
18
57
  min-height: var(--seed-dimension-x5);
19
58
  padding-inline: var(--seed-dimension-x1_5);
20
59
  padding-block: var(--seed-dimension-x0_5);
21
60
  border-radius: var(--seed-radius-r1);
61
+ gap: var(--seed-dimension-x0_5);
22
62
  font-size: var(--seed-font-size-t1);
23
- line-height: var(--seed-line-height-t1)
63
+ line-height: var(--seed-line-height-t1);
64
+ }
65
+ .seed-badge__prefix--size_medium {
66
+ width: var(--seed-dimension-x3);
67
+ height: var(--seed-dimension-x3);
68
+ }
69
+ .seed-badge__action--size_medium {
70
+ width: var(--seed-dimension-x3);
71
+ height: var(--seed-dimension-x3);
24
72
  }
25
73
  .seed-badge__root--size_large {
26
- max-width: clamp(calc(120px * var(--seed-font-size-limit-min)), 6.75rem, calc(120px * var(--seed-font-size-limit-max)));
27
74
  min-height: var(--seed-dimension-x6);
28
75
  padding-inline: var(--seed-dimension-x2);
29
76
  padding-block: var(--seed-dimension-x1);
30
77
  border-radius: var(--seed-radius-r1_5);
78
+ gap: var(--seed-dimension-x0_5);
31
79
  font-size: var(--seed-font-size-t2);
32
- line-height: var(--seed-line-height-t2)
80
+ line-height: var(--seed-line-height-t2);
81
+ }
82
+ .seed-badge__prefix--size_large {
83
+ width: var(--seed-dimension-x3_5);
84
+ height: var(--seed-dimension-x3_5);
85
+ }
86
+ .seed-badge__action--size_large {
87
+ width: var(--seed-dimension-x3_5);
88
+ height: var(--seed-dimension-x3_5);
33
89
  }
34
90
  .seed-badge__root--variant_weak {
35
- font-weight: var(--seed-font-weight-medium)
91
+ font-weight: var(--seed-font-weight-medium);
36
92
  }
37
93
  .seed-badge__root--variant_solid {
38
- font-weight: var(--seed-font-weight-bold)
94
+ font-weight: var(--seed-font-weight-bold);
39
95
  }
40
96
  .seed-badge__root--variant_outline {
41
- font-weight: var(--seed-font-weight-bold)
97
+ font-weight: var(--seed-font-weight-bold);
42
98
  }
43
99
  .seed-badge__root--tone_neutral-variant_weak {
44
100
  background-color: var(--seed-color-bg-neutral-weak);
45
- color: var(--seed-color-fg-neutral-muted)
101
+ color: var(--seed-color-fg-neutral-muted);
46
102
  }
47
103
  .seed-badge__root--tone_neutral-variant_solid {
48
104
  background-color: var(--seed-color-palette-gray-800);
49
- color: var(--seed-color-fg-neutral-inverted)
105
+ color: var(--seed-color-fg-on-neutral-solid);
50
106
  }
51
107
  .seed-badge__root--tone_neutral-variant_outline {
52
108
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
53
- color: var(--seed-color-fg-neutral-muted)
109
+ color: var(--seed-color-fg-neutral-muted);
54
110
  }
55
111
  .seed-badge__root--tone_brand-variant_weak {
56
112
  background-color: var(--seed-color-bg-brand-weak);
57
- color: var(--seed-color-fg-brand-contrast)
113
+ color: var(--seed-color-fg-brand-contrast);
58
114
  }
59
115
  .seed-badge__root--tone_brand-variant_solid {
60
116
  background-color: var(--seed-color-bg-brand-solid);
61
- color: var(--seed-color-palette-static-white)
117
+ color: var(--seed-color-fg-on-brand-solid);
62
118
  }
63
119
  .seed-badge__root--tone_brand-variant_outline {
64
120
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-brand-weak);
65
- color: var(--seed-color-fg-brand)
121
+ color: var(--seed-color-fg-brand);
66
122
  }
67
123
  .seed-badge__root--tone_informative-variant_weak {
68
124
  background-color: var(--seed-color-bg-informative-weak);
69
- color: var(--seed-color-fg-informative-contrast)
125
+ color: var(--seed-color-fg-informative-contrast);
70
126
  }
71
127
  .seed-badge__root--tone_informative-variant_solid {
72
128
  background-color: var(--seed-color-bg-informative-solid);
73
- color: var(--seed-color-palette-static-white)
129
+ color: var(--seed-color-fg-on-informative-solid);
74
130
  }
75
131
  .seed-badge__root--tone_informative-variant_outline {
76
132
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-weak);
77
- color: var(--seed-color-fg-informative)
133
+ color: var(--seed-color-fg-informative);
78
134
  }
79
135
  .seed-badge__root--tone_positive-variant_weak {
80
136
  background-color: var(--seed-color-bg-positive-weak);
81
- color: var(--seed-color-fg-positive-contrast)
137
+ color: var(--seed-color-fg-positive-contrast);
82
138
  }
83
139
  .seed-badge__root--tone_positive-variant_solid {
84
140
  background-color: var(--seed-color-bg-positive-solid);
85
- color: var(--seed-color-palette-static-white)
141
+ color: var(--seed-color-fg-on-positive-solid);
86
142
  }
87
143
  .seed-badge__root--tone_positive-variant_outline {
88
144
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive-weak);
89
- color: var(--seed-color-fg-positive)
145
+ color: var(--seed-color-fg-positive);
90
146
  }
91
147
  .seed-badge__root--tone_warning-variant_weak {
92
148
  background-color: var(--seed-color-bg-warning-weak);
93
- color: var(--seed-color-fg-warning-contrast)
149
+ color: var(--seed-color-fg-warning-contrast);
94
150
  }
95
151
  .seed-badge__root--tone_warning-variant_solid {
96
152
  background-color: var(--seed-color-bg-warning-solid);
97
- color: var(--seed-color-palette-static-black-alpha-900)
153
+ color: var(--seed-color-fg-on-warning-solid);
98
154
  }
99
155
  .seed-badge__root--tone_warning-variant_outline {
100
156
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-warning-weak);
101
- color: var(--seed-color-fg-warning)
157
+ color: var(--seed-color-fg-warning);
102
158
  }
103
159
  .seed-badge__root--tone_critical-variant_weak {
104
160
  background-color: var(--seed-color-bg-critical-weak);
105
- color: var(--seed-color-fg-critical-contrast)
161
+ color: var(--seed-color-fg-critical-contrast);
106
162
  }
107
163
  .seed-badge__root--tone_critical-variant_solid {
108
164
  background-color: var(--seed-color-bg-critical-solid);
109
- color: var(--seed-color-palette-static-white)
165
+ color: var(--seed-color-fg-on-critical-solid);
110
166
  }
111
167
  .seed-badge__root--tone_critical-variant_outline {
112
168
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-critical-weak);
113
- color: var(--seed-color-fg-critical)
169
+ color: var(--seed-color-fg-critical);
114
170
  }
@@ -29,7 +29,7 @@ declare type BadgeVariantMap = {
29
29
 
30
30
  export declare type BadgeVariantProps = Partial<BadgeVariant>;
31
31
 
32
- export declare type BadgeSlotName = "root" | "label";
32
+ export declare type BadgeSlotName = "root" | "prefix" | "label" | "action";
33
33
 
34
34
  export declare const badgeVariantMap: BadgeVariantMap;
35
35