@tempoxyz/ds 0.2.2 → 0.2.4

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 (336) hide show
  1. package/dist/mobile/components/Button.d.ts +1 -1
  2. package/dist/mobile/components/Button.js +1 -1
  3. package/dist/mobile/components/Button.js.map +1 -1
  4. package/dist/mobile/components/IconButton.d.ts +1 -1
  5. package/dist/mobile/components/IconButton.js +1 -1
  6. package/dist/mobile/components/IconButton.js.map +1 -1
  7. package/dist/mobile/components/Spinner.d.ts +3 -3
  8. package/dist/mobile/components/Spinner.d.ts.map +1 -1
  9. package/dist/mobile/components/Spinner.js +3 -3
  10. package/dist/mobile/components/Spinner.js.map +1 -1
  11. package/dist/mobile/components/Toast.d.ts +1 -1
  12. package/dist/mobile/components/Toast.d.ts.map +1 -1
  13. package/dist/mobile/components/Toast.js +1 -1
  14. package/dist/mobile/components/Toast.js.map +1 -1
  15. package/dist/mobile/components/Toggle.d.ts +2 -2
  16. package/dist/mobile/components/Toggle.js +2 -2
  17. package/dist/mobile/components/Toggle.js.map +1 -1
  18. package/dist/mobile/vars.d.ts +24 -0
  19. package/dist/mobile/vars.d.ts.map +1 -1
  20. package/dist/mobile/vars.js +12 -0
  21. package/dist/mobile/vars.js.map +1 -1
  22. package/dist/mobile/zyzz.config.d.ts +96 -0
  23. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  24. package/dist/web/components/Accordion.css +1 -1
  25. package/dist/web/components/Accordion.d.ts +7 -7
  26. package/dist/web/components/Accordion.js.map +1 -1
  27. package/dist/web/components/Accordion.js.zyzz.json +1 -1
  28. package/dist/web/components/AlertDialog.css +1 -1
  29. package/dist/web/components/AlertDialog.d.ts.map +1 -1
  30. package/dist/web/components/AlertDialog.js +1 -1
  31. package/dist/web/components/AlertDialog.js.map +1 -1
  32. package/dist/web/components/AlertDialog.js.zyzz.json +1 -1
  33. package/dist/web/components/Amount.js.zyzz.json +1 -1
  34. package/dist/web/components/AmountInput.css +1 -1
  35. package/dist/web/components/AmountInput.js +1 -1
  36. package/dist/web/components/AmountInput.js.map +1 -1
  37. package/dist/web/components/AmountInput.js.zyzz.json +1 -1
  38. package/dist/web/components/AppShell.css +1 -1
  39. package/dist/web/components/AppShell.d.ts +10 -10
  40. package/dist/web/components/AppShell.js.map +1 -1
  41. package/dist/web/components/AppShell.js.zyzz.json +1 -1
  42. package/dist/web/components/Autocomplete.js.zyzz.json +1 -1
  43. package/dist/web/components/Avatar.css +1 -1
  44. package/dist/web/components/Avatar.d.ts +3 -3
  45. package/dist/web/components/Avatar.js.map +1 -1
  46. package/dist/web/components/Avatar.js.zyzz.json +1 -1
  47. package/dist/web/components/Banner.css +1 -1
  48. package/dist/web/components/Banner.js +2 -2
  49. package/dist/web/components/Banner.js.map +1 -1
  50. package/dist/web/components/Banner.js.zyzz.json +1 -1
  51. package/dist/web/components/Breadcrumbs.css +1 -1
  52. package/dist/web/components/Breadcrumbs.d.ts +4 -4
  53. package/dist/web/components/Breadcrumbs.js.map +1 -1
  54. package/dist/web/components/Breadcrumbs.js.zyzz.json +1 -1
  55. package/dist/web/components/Button.css +1 -1
  56. package/dist/web/components/Button.d.ts +12 -11
  57. package/dist/web/components/Button.d.ts.map +1 -1
  58. package/dist/web/components/Button.js +2 -2
  59. package/dist/web/components/Button.js.map +1 -1
  60. package/dist/web/components/Button.js.zyzz.json +1 -1
  61. package/dist/web/components/Calendar.css +1 -1
  62. package/dist/web/components/Calendar.js.map +1 -1
  63. package/dist/web/components/Calendar.js.zyzz.json +1 -1
  64. package/dist/web/components/Callout.css +1 -1
  65. package/dist/web/components/Callout.d.ts +6 -6
  66. package/dist/web/components/Callout.js +1 -1
  67. package/dist/web/components/Callout.js.map +1 -1
  68. package/dist/web/components/Callout.js.zyzz.json +1 -1
  69. package/dist/web/components/Checkbox.css +1 -1
  70. package/dist/web/components/Checkbox.d.ts +8 -8
  71. package/dist/web/components/Checkbox.js.map +1 -1
  72. package/dist/web/components/Checkbox.js.zyzz.json +1 -1
  73. package/dist/web/components/CheckboxGroup.js.zyzz.json +1 -1
  74. package/dist/web/components/ChoiceGroup.css +1 -1
  75. package/dist/web/components/ChoiceGroup.d.ts +2 -2
  76. package/dist/web/components/ChoiceGroup.d.ts.map +1 -1
  77. package/dist/web/components/ChoiceGroup.js +2 -2
  78. package/dist/web/components/ChoiceGroup.js.map +1 -1
  79. package/dist/web/components/ChoiceGroup.js.zyzz.json +1 -1
  80. package/dist/web/components/Choicebox.css +1 -1
  81. package/dist/web/components/Choicebox.d.ts +4 -4
  82. package/dist/web/components/Choicebox.js +1 -1
  83. package/dist/web/components/Choicebox.js.map +1 -1
  84. package/dist/web/components/Choicebox.js.zyzz.json +1 -1
  85. package/dist/web/components/Combobox.css +1 -1
  86. package/dist/web/components/Combobox.js.map +1 -1
  87. package/dist/web/components/Combobox.js.zyzz.json +1 -1
  88. package/dist/web/components/Container.js.zyzz.json +1 -1
  89. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  90. package/dist/web/components/DatePicker.css +1 -1
  91. package/dist/web/components/DatePicker.d.ts +19 -19
  92. package/dist/web/components/DatePicker.d.ts.map +1 -1
  93. package/dist/web/components/DatePicker.js +2 -2
  94. package/dist/web/components/DatePicker.js.map +1 -1
  95. package/dist/web/components/DatePicker.js.zyzz.json +1 -1
  96. package/dist/web/components/Dialog.css +1 -1
  97. package/dist/web/components/Dialog.d.ts.map +1 -1
  98. package/dist/web/components/Dialog.js +1 -1
  99. package/dist/web/components/Dialog.js.map +1 -1
  100. package/dist/web/components/Dialog.js.zyzz.json +1 -1
  101. package/dist/web/components/Drawer.css +1 -1
  102. package/dist/web/components/Drawer.js.map +1 -1
  103. package/dist/web/components/Drawer.js.zyzz.json +1 -1
  104. package/dist/web/components/Empty.js.zyzz.json +1 -1
  105. package/dist/web/components/Field.css +1 -1
  106. package/dist/web/components/Field.js.map +1 -1
  107. package/dist/web/components/Field.js.zyzz.json +1 -1
  108. package/dist/web/components/Fieldset.js.zyzz.json +1 -1
  109. package/dist/web/components/Frame.css +1 -1
  110. package/dist/web/components/Frame.d.ts +27 -10
  111. package/dist/web/components/Frame.d.ts.map +1 -1
  112. package/dist/web/components/Frame.js +12 -5
  113. package/dist/web/components/Frame.js.map +1 -1
  114. package/dist/web/components/Frame.js.zyzz.json +1 -1
  115. package/dist/web/components/Gauge.css +1 -1
  116. package/dist/web/components/Gauge.js.map +1 -1
  117. package/dist/web/components/Gauge.js.zyzz.json +1 -1
  118. package/dist/web/components/Grid.js.zyzz.json +1 -1
  119. package/dist/web/components/Hex.css +1 -1
  120. package/dist/web/components/Hex.d.ts +5 -5
  121. package/dist/web/components/Hex.js +1 -1
  122. package/dist/web/components/Hex.js.map +1 -1
  123. package/dist/web/components/Hex.js.zyzz.json +1 -1
  124. package/dist/web/components/IconChip.css +1 -1
  125. package/dist/web/components/IconChip.d.ts +1 -1
  126. package/dist/web/components/IconChip.js.map +1 -1
  127. package/dist/web/components/IconChip.js.zyzz.json +1 -1
  128. package/dist/web/components/Identicon.js.zyzz.json +1 -1
  129. package/dist/web/components/Inline.js.zyzz.json +1 -1
  130. package/dist/web/components/Input.css +1 -1
  131. package/dist/web/components/Input.js.map +1 -1
  132. package/dist/web/components/Input.js.zyzz.json +1 -1
  133. package/dist/web/components/Inset.js.zyzz.json +1 -1
  134. package/dist/web/components/Kbd.css +1 -1
  135. package/dist/web/components/Kbd.d.ts +1 -1
  136. package/dist/web/components/Kbd.js.map +1 -1
  137. package/dist/web/components/Kbd.js.zyzz.json +1 -1
  138. package/dist/web/components/LoadingDots.css +1 -1
  139. package/dist/web/components/LoadingDots.d.ts +2 -2
  140. package/dist/web/components/LoadingDots.js.map +1 -1
  141. package/dist/web/components/LoadingDots.js.zyzz.json +1 -1
  142. package/dist/web/components/Menu.css +1 -1
  143. package/dist/web/components/Menu.d.ts +11 -11
  144. package/dist/web/components/Menu.d.ts.map +1 -1
  145. package/dist/web/components/Menu.js +1 -1
  146. package/dist/web/components/Menu.js.map +1 -1
  147. package/dist/web/components/Menu.js.zyzz.json +1 -1
  148. package/dist/web/components/NumberField.css +1 -1
  149. package/dist/web/components/NumberField.js +1 -1
  150. package/dist/web/components/NumberField.js.map +1 -1
  151. package/dist/web/components/NumberField.js.zyzz.json +1 -1
  152. package/dist/web/components/OtpField.css +1 -1
  153. package/dist/web/components/OtpField.d.ts.map +1 -1
  154. package/dist/web/components/OtpField.js +1 -1
  155. package/dist/web/components/OtpField.js.map +1 -1
  156. package/dist/web/components/OtpField.js.zyzz.json +1 -1
  157. package/dist/web/components/Pagination.css +1 -1
  158. package/dist/web/components/Pagination.d.ts +12 -12
  159. package/dist/web/components/Pagination.js +1 -1
  160. package/dist/web/components/Pagination.js.map +1 -1
  161. package/dist/web/components/Pagination.js.zyzz.json +1 -1
  162. package/dist/web/components/Popover.css +1 -1
  163. package/dist/web/components/Popover.d.ts.map +1 -1
  164. package/dist/web/components/Popover.js +1 -1
  165. package/dist/web/components/Popover.js.map +1 -1
  166. package/dist/web/components/Popover.js.zyzz.json +1 -1
  167. package/dist/web/components/Progress.css +1 -1
  168. package/dist/web/components/Progress.js.map +1 -1
  169. package/dist/web/components/Progress.js.zyzz.json +1 -1
  170. package/dist/web/components/Qr.js.zyzz.json +1 -1
  171. package/dist/web/components/RadioGroup.css +1 -1
  172. package/dist/web/components/RadioGroup.d.ts +4 -4
  173. package/dist/web/components/RadioGroup.js.map +1 -1
  174. package/dist/web/components/RadioGroup.js.zyzz.json +1 -1
  175. package/dist/web/components/Rows.css +1 -1
  176. package/dist/web/components/Rows.d.ts +6 -6
  177. package/dist/web/components/Rows.js.map +1 -1
  178. package/dist/web/components/Rows.js.zyzz.json +1 -1
  179. package/dist/web/components/SecretValue.css +1 -1
  180. package/dist/web/components/SecretValue.d.ts +4 -4
  181. package/dist/web/components/SecretValue.js +1 -1
  182. package/dist/web/components/SecretValue.js.map +1 -1
  183. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  184. package/dist/web/components/Select.css +1 -1
  185. package/dist/web/components/Select.js.map +1 -1
  186. package/dist/web/components/Select.js.zyzz.json +1 -1
  187. package/dist/web/components/Separator.js.zyzz.json +1 -1
  188. package/dist/web/components/SidebarMenu.css +1 -1
  189. package/dist/web/components/SidebarMenu.d.ts +11 -11
  190. package/dist/web/components/SidebarMenu.d.ts.map +1 -1
  191. package/dist/web/components/SidebarMenu.js +1 -1
  192. package/dist/web/components/SidebarMenu.js.map +1 -1
  193. package/dist/web/components/SidebarMenu.js.zyzz.json +1 -1
  194. package/dist/web/components/Skeleton.js.zyzz.json +1 -1
  195. package/dist/web/components/Slider.css +1 -1
  196. package/dist/web/components/Slider.d.ts.map +1 -1
  197. package/dist/web/components/Slider.js.map +1 -1
  198. package/dist/web/components/Slider.js.zyzz.json +1 -1
  199. package/dist/web/components/Snippet.css +1 -1
  200. package/dist/web/components/Snippet.d.ts +4 -4
  201. package/dist/web/components/Snippet.js +1 -1
  202. package/dist/web/components/Snippet.js.map +1 -1
  203. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  204. package/dist/web/components/Spinner.js.zyzz.json +1 -1
  205. package/dist/web/components/SplitButton.css +1 -1
  206. package/dist/web/components/SplitButton.d.ts.map +1 -1
  207. package/dist/web/components/SplitButton.js +1 -1
  208. package/dist/web/components/SplitButton.js.map +1 -1
  209. package/dist/web/components/SplitButton.js.zyzz.json +1 -1
  210. package/dist/web/components/Stack.js.zyzz.json +1 -1
  211. package/dist/web/components/Stepper.css +1 -1
  212. package/dist/web/components/Stepper.d.ts +1 -1
  213. package/dist/web/components/Stepper.js.map +1 -1
  214. package/dist/web/components/Stepper.js.zyzz.json +1 -1
  215. package/dist/web/components/Surface.css +1 -1
  216. package/dist/web/components/Surface.d.ts +46 -46
  217. package/dist/web/components/Surface.js +2 -2
  218. package/dist/web/components/Surface.js.map +1 -1
  219. package/dist/web/components/Surface.js.zyzz.json +1 -1
  220. package/dist/web/components/Switch.css +1 -1
  221. package/dist/web/components/Switch.d.ts +14 -14
  222. package/dist/web/components/Switch.d.ts.map +1 -1
  223. package/dist/web/components/Switch.js.map +1 -1
  224. package/dist/web/components/Switch.js.zyzz.json +1 -1
  225. package/dist/web/components/Table.css +1 -1
  226. package/dist/web/components/Table.d.ts +4 -4
  227. package/dist/web/components/Table.js.map +1 -1
  228. package/dist/web/components/Table.js.zyzz.json +1 -1
  229. package/dist/web/components/Tabs.css +1 -1
  230. package/dist/web/components/Tabs.d.ts +14 -14
  231. package/dist/web/components/Tabs.js +1 -1
  232. package/dist/web/components/Tabs.js.map +1 -1
  233. package/dist/web/components/Tabs.js.zyzz.json +1 -1
  234. package/dist/web/components/Tag.css +1 -1
  235. package/dist/web/components/Tag.d.ts +10 -10
  236. package/dist/web/components/Tag.js +1 -1
  237. package/dist/web/components/Tag.js.map +1 -1
  238. package/dist/web/components/Tag.js.zyzz.json +1 -1
  239. package/dist/web/components/Textarea.css +1 -1
  240. package/dist/web/components/Textarea.d.ts +14 -14
  241. package/dist/web/components/Textarea.js.map +1 -1
  242. package/dist/web/components/Textarea.js.zyzz.json +1 -1
  243. package/dist/web/components/Toast.css +1 -1
  244. package/dist/web/components/Toast.d.ts.map +1 -1
  245. package/dist/web/components/Toast.js +2 -2
  246. package/dist/web/components/Toast.js.map +1 -1
  247. package/dist/web/components/Toast.js.zyzz.json +1 -1
  248. package/dist/web/components/Token.js.zyzz.json +1 -1
  249. package/dist/web/components/Tooltip.css +1 -1
  250. package/dist/web/components/Tooltip.d.ts.map +1 -1
  251. package/dist/web/components/Tooltip.js +1 -1
  252. package/dist/web/components/Tooltip.js.map +1 -1
  253. package/dist/web/components/Tooltip.js.zyzz.json +1 -1
  254. package/dist/web/components/internal/Field.css +1 -1
  255. package/dist/web/components/internal/Field.d.ts +7 -7
  256. package/dist/web/components/internal/Field.js.map +1 -1
  257. package/dist/web/components/internal/Field.js.zyzz.json +1 -1
  258. package/dist/web/components/internal/InputGroup.css +1 -1
  259. package/dist/web/components/internal/InputGroup.d.ts +12 -12
  260. package/dist/web/components/internal/InputGroup.d.ts.map +1 -1
  261. package/dist/web/components/internal/InputGroup.js +1 -1
  262. package/dist/web/components/internal/InputGroup.js.map +1 -1
  263. package/dist/web/components/internal/InputGroup.js.zyzz.json +1 -1
  264. package/dist/web/components/internal/Listbox.css +1 -1
  265. package/dist/web/components/internal/Listbox.d.ts +9 -9
  266. package/dist/web/components/internal/Listbox.d.ts.map +1 -1
  267. package/dist/web/components/internal/Listbox.js +1 -1
  268. package/dist/web/components/internal/Listbox.js.map +1 -1
  269. package/dist/web/components/internal/Listbox.js.zyzz.json +1 -1
  270. package/dist/web/index.js.zyzz.json +1 -1
  271. package/dist/web/vars.d.ts +91 -0
  272. package/dist/web/vars.d.ts.map +1 -1
  273. package/dist/web/vars.js.map +1 -1
  274. package/dist/web/vars.js.zyzz.json +1 -1
  275. package/dist/web/zyzz.config.d.ts +455 -0
  276. package/dist/web/zyzz.config.d.ts.map +1 -1
  277. package/dist/web/zyzz.config.js.zyzz.json +1 -1
  278. package/package.json +1 -1
  279. package/src/mobile/components/Button.tsx +1 -1
  280. package/src/mobile/components/IconButton.tsx +1 -1
  281. package/src/mobile/components/Spinner.tsx +3 -4
  282. package/src/mobile/components/Toast.tsx +1 -2
  283. package/src/mobile/components/Toggle.tsx +2 -2
  284. package/src/mobile/vars.ts +14 -0
  285. package/src/web/components/Accordion.tsx +8 -8
  286. package/src/web/components/AlertDialog.tsx +11 -8
  287. package/src/web/components/AmountInput.tsx +12 -12
  288. package/src/web/components/AppShell.tsx +23 -23
  289. package/src/web/components/Avatar.tsx +3 -3
  290. package/src/web/components/Banner.tsx +15 -15
  291. package/src/web/components/Breadcrumbs.tsx +4 -4
  292. package/src/web/components/Button.tsx +15 -12
  293. package/src/web/components/Calendar.tsx +5 -5
  294. package/src/web/components/Callout.tsx +15 -15
  295. package/src/web/components/Checkbox.tsx +9 -9
  296. package/src/web/components/ChoiceGroup.tsx +13 -14
  297. package/src/web/components/Choicebox.tsx +21 -21
  298. package/src/web/components/Combobox.tsx +3 -3
  299. package/src/web/components/DatePicker.tsx +24 -24
  300. package/src/web/components/Dialog.tsx +26 -17
  301. package/src/web/components/Drawer.tsx +6 -6
  302. package/src/web/components/Field.tsx +9 -9
  303. package/src/web/components/Frame.tsx +30 -9
  304. package/src/web/components/Gauge.tsx +1 -1
  305. package/src/web/components/Hex.tsx +5 -5
  306. package/src/web/components/IconChip.tsx +1 -1
  307. package/src/web/components/Input.tsx +10 -10
  308. package/src/web/components/Kbd.tsx +1 -1
  309. package/src/web/components/LoadingDots.tsx +4 -4
  310. package/src/web/components/Menu.tsx +15 -12
  311. package/src/web/components/NumberField.tsx +16 -16
  312. package/src/web/components/OtpField.tsx +14 -6
  313. package/src/web/components/Pagination.tsx +12 -12
  314. package/src/web/components/Popover.tsx +14 -11
  315. package/src/web/components/Progress.tsx +2 -2
  316. package/src/web/components/RadioGroup.tsx +11 -11
  317. package/src/web/components/Rows.tsx +7 -7
  318. package/src/web/components/SecretValue.tsx +4 -4
  319. package/src/web/components/Select.tsx +1 -1
  320. package/src/web/components/SidebarMenu.tsx +14 -15
  321. package/src/web/components/Slider.tsx +6 -7
  322. package/src/web/components/Snippet.tsx +8 -8
  323. package/src/web/components/SplitButton.tsx +17 -5
  324. package/src/web/components/Stepper.tsx +1 -1
  325. package/src/web/components/Surface.tsx +47 -47
  326. package/src/web/components/Switch.tsx +21 -23
  327. package/src/web/components/Table.tsx +4 -4
  328. package/src/web/components/Tabs.tsx +14 -14
  329. package/src/web/components/Tag.tsx +12 -12
  330. package/src/web/components/Textarea.tsx +14 -14
  331. package/src/web/components/Toast.tsx +23 -20
  332. package/src/web/components/Tooltip.tsx +12 -9
  333. package/src/web/components/internal/Field.ts +19 -19
  334. package/src/web/components/internal/InputGroup.ts +12 -13
  335. package/src/web/components/internal/Listbox.ts +17 -14
  336. package/src/web/vars.ts +81 -2
@@ -132,30 +132,30 @@ namespace styles {
132
132
  flexShrink: '0 !custom',
133
133
  // Inline padding keeps the focus ring off the label. The negative end margin holds the label at
134
134
  // the callout's edge.
135
- marginInlineEnd: '-4px !custom',
135
+ marginInlineEnd: '-4',
136
136
  marginInlineStart: 'auto !custom',
137
137
  outlineColor: 'transparent !custom',
138
- outlineOffset: '0px !custom',
138
+ outlineOffset: '0',
139
139
  outlineStyle: 'solid !custom',
140
- outlineWidth: '2px !custom',
140
+ outlineWidth: '2',
141
141
  paddingBlock: '0',
142
142
  paddingInline: '4',
143
143
  textDecoration: 'underline !custom',
144
144
  textUnderlineOffset: '2px !custom',
145
- transitionDuration: '160ms',
146
- transitionProperty: 'outline-color, outline-offset, text-decoration-color, transform',
145
+ transitionDuration: '160',
146
+ transitionProperty: 'outline-color, outline-offset, text-decoration-color, scale',
147
147
  transitionTimingFunction: 'snappy',
148
148
  // The shorthand takes the callout's type, so actions match the message text.
149
149
  font: 'inherit !custom',
150
150
  whiteSpace: 'nowrap',
151
151
  selectors: {
152
- '&:active': { transform: 'scale(0.97) !custom' },
153
- '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2px !custom' },
152
+ '&:active': { scale: 'press' },
153
+ '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
154
154
  '&:hover': { textDecorationColor: 'transparent !custom' },
155
155
  },
156
156
  '@media (prefers-reduced-motion: reduce)': {
157
157
  transitionProperty: 'outline-color, text-decoration-color',
158
- selectors: { '&:active': { transform: 'none !custom' } },
158
+ selectors: { '&:active': { scale: 'none !custom' } },
159
159
  },
160
160
  },
161
161
  { id: 'tds/web/callout/action' },
@@ -167,7 +167,7 @@ namespace styles {
167
167
  selectors: {
168
168
  // The action's start padding would narrow the message, so the message gives the 4px back
169
169
  // and wraps at the same point.
170
- '&:not(:last-child)': { marginInlineEnd: '-4px !custom' },
170
+ '&:not(:last-child)': { marginInlineEnd: '-4' },
171
171
  },
172
172
  },
173
173
  { id: 'tds/web/callout/content' },
@@ -201,10 +201,10 @@ namespace styles {
201
201
  // Light mode takes step 300, since step 100 nearly matches the page background. Dark mode
202
202
  // keeps step 100, which already stands apart from the page while keeping the text legible.
203
203
  intent: {
204
- info: { backgroundColor: 'light-dark(#e6eefe, #161b29) !custom', color: 'blue.900' },
205
- negative: { backgroundColor: 'light-dark(#ffe6e0, #2a1410) !custom', color: 'red.900' },
206
- positive: { backgroundColor: 'light-dark(#d3f8df, #052315) !custom', color: 'green.900' },
207
- warning: { backgroundColor: 'light-dark(#ffede2, #2d1504) !custom', color: 'amber.900' },
204
+ info: { backgroundColor: 'background.info', color: 'blue.900' },
205
+ negative: { backgroundColor: 'background.negative', color: 'red.900' },
206
+ positive: { backgroundColor: 'background.positive', color: 'green.900' },
207
+ warning: { backgroundColor: 'background.warning', color: 'amber.900' },
208
208
  },
209
209
  shape: {
210
210
  default: {},
@@ -221,7 +221,7 @@ namespace styles {
221
221
  },
222
222
  medium: {
223
223
  columnGap: '12',
224
- paddingBlock: '10px !custom',
224
+ paddingBlock: '10',
225
225
  paddingInline: '16',
226
226
  typography: 'copy.14',
227
227
  selectors: { '& [data-callout-icon]': { fontSize: '16', height: '20' } },
@@ -231,7 +231,7 @@ namespace styles {
231
231
  paddingBlock: '7px !custom',
232
232
  paddingInline: '12',
233
233
  typography: 'copy.13',
234
- selectors: { '& [data-callout-icon]': { fontSize: '14', height: '18px !custom' } },
234
+ selectors: { '& [data-callout-icon]': { fontSize: '14', height: '18' } },
235
235
  },
236
236
  },
237
237
  },
@@ -87,27 +87,27 @@ namespace styles {
87
87
  flexShrink: '0 !custom',
88
88
  justifyContent: 'center',
89
89
  outlineColor: 'transparent !custom',
90
- outlineOffset: '0px !custom',
90
+ outlineOffset: '0',
91
91
  outlineStyle: 'solid !custom',
92
- outlineWidth: '2px !custom',
92
+ outlineWidth: '2',
93
93
  padding: '0',
94
94
  position: 'relative',
95
- transitionDuration: '160ms',
95
+ transitionDuration: '160',
96
96
  transitionProperty: 'background-color, opacity, outline-color, outline-offset, transform',
97
97
  transitionTimingFunction: 'snappy',
98
98
  selectors: {
99
- '&::after': { content: '"" !custom', inset: '-10px !custom', position: 'absolute' },
99
+ '&::after': { content: '"" !custom', inset: '-10', position: 'absolute' },
100
100
  '&:active:not([data-disabled])': { transform: 'scale(0.96) !custom' },
101
- '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2px !custom' },
101
+ '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
102
102
  '&:hover:not([data-disabled])': { backgroundColor: 'grayAlpha.400' },
103
103
  '&[data-checked], &[data-indeterminate]': { backgroundColor: 'foreground' },
104
104
  '&[data-checked]:hover:not([data-disabled]), &[data-indeterminate]:hover:not([data-disabled])':
105
- { backgroundColor: 'foreground', opacity: '0.86 !custom' },
106
- '&[data-disabled]': { cursor: 'default', opacity: '0.4 !custom' },
105
+ { backgroundColor: 'foreground', opacity: 'hover' },
106
+ '&[data-disabled]': { cursor: 'default', opacity: 'disabled' },
107
107
  '&[data-invalid]': {
108
108
  outlineColor: 'red.800',
109
109
  outlineStyle: 'solid !custom',
110
- outlineWidth: '1px !custom',
110
+ outlineWidth: '1',
111
111
  },
112
112
  },
113
113
  '@media (prefers-reduced-motion: reduce)': {
@@ -146,7 +146,7 @@ namespace styles {
146
146
  export const indicator = style(
147
147
  {
148
148
  display: 'flex',
149
- transitionDuration: '200ms',
149
+ transitionDuration: '200',
150
150
  transitionProperty: 'opacity, transform',
151
151
  transitionTimingFunction: 'overshoot',
152
152
  selectors: {
@@ -3,7 +3,7 @@ import * as BaseUi from '@base-ui/react/radio'
3
3
  import * as BaseUiGroup from '@base-ui/react/radio-group'
4
4
  import { type ComponentPropsWithRef, useCallback, useLayoutEffect, useRef } from 'react'
5
5
  import type * as zyzz from 'zyzz'
6
- import { style, variants } from '../zyzz.config.js'
6
+ import { style, variants, vars } from '../zyzz.config.js'
7
7
 
8
8
  /**
9
9
  * A single-select segmented control built on Base UI Radio Group. The root has
@@ -195,27 +195,26 @@ namespace styles {
195
195
  flexShrink: '0 !custom',
196
196
  justifyContent: 'center',
197
197
  outlineColor: 'transparent !custom',
198
- outlineOffset: '0px !custom',
198
+ outlineOffset: '0',
199
199
  outlineStyle: 'solid !custom',
200
- outlineWidth: '2px !custom',
200
+ outlineWidth: '2',
201
201
  position: 'relative',
202
- transitionDuration: '160ms',
203
- transitionProperty:
204
- 'background-color, color, opacity, outline-color, outline-offset, transform',
202
+ transitionDuration: '160',
203
+ transitionProperty: 'background-color, color, opacity, outline-color, outline-offset, scale',
205
204
  transitionTimingFunction: 'snappy',
206
205
  userSelect: 'none',
207
206
  whiteSpace: 'nowrap',
208
207
  zIndex: '1 !custom',
209
208
  selectors: {
210
- '&:active:not([data-disabled])': { transform: 'scale(0.97) !custom' },
211
- '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2px !custom' },
209
+ '&:active:not([data-disabled])': { scale: 'press' },
210
+ '&:focus-visible': { outlineColor: 'blue.700', outlineOffset: '2' },
212
211
  '&:hover:not([data-disabled])': { color: 'foreground' },
213
212
  '&[data-checked]': { color: 'foreground' },
214
- '&[data-disabled]': { cursor: 'default', opacity: '0.4 !custom' },
213
+ '&[data-disabled]': { cursor: 'default', opacity: 'disabled' },
215
214
  },
216
215
  '@media (prefers-reduced-motion: reduce)': {
217
216
  transitionProperty: 'background-color, color, opacity, outline-color',
218
- selectors: { '&:active:not([data-disabled])': { transform: 'none !custom' } },
217
+ selectors: { '&:active:not([data-disabled])': { scale: 'none !custom' } },
219
218
  },
220
219
  },
221
220
  { id: 'tds/web/choice-group/item' },
@@ -223,7 +222,7 @@ namespace styles {
223
222
 
224
223
  export const pill = style(
225
224
  {
226
- backgroundColor: 'light-dark(white, rgb(255 255 255 / 0.16)) !custom',
225
+ backgroundColor: 'background.indicator',
227
226
  boxShadow: 'raised',
228
227
  boxSizing: 'border-box',
229
228
  insetBlock: '4',
@@ -232,7 +231,7 @@ namespace styles {
232
231
  selectors: {
233
232
  // The pill matches each item's width, so it transitions width with its position.
234
233
  '&[data-ready]': {
235
- transitionDuration: '240ms',
234
+ transitionDuration: '240',
236
235
  transitionProperty: 'transform, width',
237
236
  transitionTimingFunction: 'spring',
238
237
  },
@@ -315,8 +314,8 @@ namespace styles {
315
314
  chips: {
316
315
  columnGap: '8',
317
316
  height: 'auto !custom',
318
- margin: '-4px !custom',
319
- maxWidth: 'calc(100% + 8px) !custom',
317
+ margin: '-4',
318
+ maxWidth: `calc(100% + ${vars.spacing['8']}) !custom`,
320
319
  overflowX: 'auto',
321
320
  padding: '4',
322
321
  scrollbarWidth: 'none !custom',
@@ -301,7 +301,7 @@ namespace styles {
301
301
  {
302
302
  display: 'inline-flex',
303
303
  fontSize: '14',
304
- transitionDuration: '200ms',
304
+ transitionDuration: '200',
305
305
  transitionProperty: 'opacity, transform',
306
306
  transitionTimingFunction: 'overshoot',
307
307
  selectors: {
@@ -340,7 +340,7 @@ namespace styles {
340
340
  height: '20',
341
341
  justifyContent: 'center',
342
342
  padding: '0',
343
- transitionDuration: '160ms',
343
+ transitionDuration: '160',
344
344
  transitionProperty: 'background-color, border-color',
345
345
  transitionTimingFunction: 'snappy',
346
346
  width: '20',
@@ -387,7 +387,7 @@ namespace styles {
387
387
  borderRadius: 'full',
388
388
  height: '8',
389
389
  width: '8',
390
- transitionDuration: '200ms',
390
+ transitionDuration: '200',
391
391
  transitionProperty: 'opacity, transform',
392
392
  transitionTimingFunction: 'overshoot',
393
393
  selectors: {
@@ -437,7 +437,7 @@ namespace styles {
437
437
  '& [data-choicebox-description]': { typography: 'copy.15' },
438
438
  '& :is([role="checkbox"], [role="radio"])': { height: '24', width: '24' },
439
439
  '& [role="checkbox"]': { borderRadius: '8' },
440
- '& [role="radio"] > span': { height: '10px !custom', width: '10px !custom' },
440
+ '& [role="radio"] > span': { height: '10', width: '10' },
441
441
  },
442
442
  },
443
443
  medium: {},
@@ -453,7 +453,7 @@ namespace styles {
453
453
  '& [data-choicebox-description]': { typography: 'copy.13' },
454
454
  '& :is([role="checkbox"], [role="radio"])': { height: '16', width: '16' },
455
455
  '& [role="checkbox"]': { borderRadius: '4' },
456
- '& [role="radio"] > span': { height: '6px !custom', width: '6px !custom' },
456
+ '& [role="radio"] > span': { height: '6', width: '6' },
457
457
  },
458
458
  },
459
459
  },
@@ -476,7 +476,7 @@ namespace styles {
476
476
  height: '20',
477
477
  justifyContent: 'center',
478
478
  padding: '0',
479
- transitionDuration: '160ms',
479
+ transitionDuration: '160',
480
480
  transitionProperty: 'background-color, border-color',
481
481
  transitionTimingFunction: 'snappy',
482
482
  width: '20',
@@ -502,33 +502,33 @@ namespace styles {
502
502
  outlineColor: 'grayAlpha.200',
503
503
  outlineOffset: '-1px !custom',
504
504
  outlineStyle: 'solid !custom',
505
- outlineWidth: '1px !custom',
505
+ outlineWidth: '1',
506
506
  padding: '16',
507
- transitionDuration: '160ms',
508
- transitionProperty: 'opacity, outline-color, outline-offset, outline-width, transform',
507
+ transitionDuration: '160',
508
+ transitionProperty: 'opacity, outline-color, outline-offset, outline-width, scale',
509
509
  transitionTimingFunction: 'snappy',
510
510
  userSelect: 'none',
511
511
  selectors: {
512
- '&:active:not(:has([data-disabled]))': { transform: 'scale(0.98) !custom' },
512
+ '&:active:not(:has([data-disabled]))': { scale: 'press' },
513
513
  '&:hover:not(:disabled, :focus-visible, :has([data-checked], [data-disabled], :focus-visible))':
514
514
  {
515
515
  outlineColor: 'grayAlpha.400',
516
516
  },
517
517
  '&:has(:focus-visible)': {
518
518
  outlineColor: 'blue.700',
519
- outlineOffset: '2px !custom',
520
- outlineWidth: '2px !custom',
519
+ outlineOffset: '2',
520
+ outlineWidth: '2',
521
521
  },
522
522
  '&:has([data-checked])': {
523
523
  outlineColor: 'foreground',
524
- outlineOffset: '-2px !custom',
525
- outlineWidth: '2px !custom',
524
+ outlineOffset: '-2',
525
+ outlineWidth: '2',
526
526
  },
527
527
  '&:has([data-checked]):has(:focus-visible)': {
528
528
  outlineColor: 'blue.700',
529
- outlineOffset: '2px !custom',
529
+ outlineOffset: '2',
530
530
  },
531
- '&:has([data-disabled])': { cursor: 'default', opacity: '0.4 !custom' },
531
+ '&:has([data-disabled])': { cursor: 'default', opacity: 'disabled' },
532
532
  // Button tiles drop native button styles and take their own focus and disabled states.
533
533
  '&:is(button)': {
534
534
  border: 'none !custom',
@@ -538,15 +538,15 @@ namespace styles {
538
538
  },
539
539
  '&:is(button):focus-visible': {
540
540
  outlineColor: 'blue.700',
541
- outlineOffset: '2px !custom',
542
- outlineWidth: '2px !custom',
541
+ outlineOffset: '2',
542
+ outlineWidth: '2',
543
543
  },
544
- '&:is(button):disabled': { cursor: 'default', opacity: '0.4 !custom' },
545
- '&:is(button):disabled:active': { transform: 'none !custom' },
544
+ '&:is(button):disabled': { cursor: 'default', opacity: 'disabled' },
545
+ '&:is(button):disabled:active': { scale: 'none !custom' },
546
546
  },
547
547
  '@media (prefers-reduced-motion: reduce)': {
548
548
  transitionProperty: 'opacity, outline-color, outline-width',
549
- selectors: { '&:active:not(:has([data-disabled]))': { transform: 'none !custom' } },
549
+ selectors: { '&:active:not(:has([data-disabled]))': { scale: 'none !custom' } },
550
550
  },
551
551
  },
552
552
  { id: 'tds/web/choicebox/tile' },
@@ -463,7 +463,7 @@ namespace styles {
463
463
  outline: 'none !custom',
464
464
  paddingInlineEnd: '4',
465
465
  paddingInlineStart: '12',
466
- transitionDuration: '120ms !custom',
466
+ transitionDuration: '120',
467
467
  transitionProperty: 'background-color, color, opacity !custom',
468
468
  transitionTimingFunction: 'snappy',
469
469
  typography: 'copy.14',
@@ -472,7 +472,7 @@ namespace styles {
472
472
  backgroundColor: 'foreground',
473
473
  color: 'background.primary',
474
474
  },
475
- '&[data-disabled]': { opacity: '0.4 !custom' },
475
+ '&[data-disabled]': { opacity: 'disabled' },
476
476
  },
477
477
  },
478
478
  { id: 'tds/web/combobox/chip' },
@@ -492,7 +492,7 @@ namespace styles {
492
492
  justifyContent: 'center',
493
493
  opacity: '0.72 !custom',
494
494
  padding: '0',
495
- transitionDuration: '120ms !custom',
495
+ transitionDuration: '120',
496
496
  transitionProperty: 'opacity, transform !custom',
497
497
  transitionTimingFunction: 'snappy',
498
498
  width: '24',
@@ -240,7 +240,7 @@ namespace styles {
240
240
  height: '16',
241
241
  width: '16',
242
242
  selectors: {
243
- '[data-size="medium"] > &': { height: '14px !custom', width: '14px !custom' },
243
+ '[data-size="medium"] > &': { height: '14', width: '14' },
244
244
  '[data-size="small"] > &': { height: '12', width: '12' },
245
245
  },
246
246
  },
@@ -258,24 +258,27 @@ namespace styles {
258
258
  opacity: '1 !custom',
259
259
  padding: '8',
260
260
  transformOrigin: 'var(--transform-origin) !custom',
261
- transitionDuration: '240ms !custom',
262
- transitionProperty: 'opacity, transform !custom',
261
+ transitionDuration: '240',
262
+ transitionProperty: 'opacity, scale !custom',
263
263
  transitionTimingFunction: 'spring',
264
264
  selectors: {
265
265
  '&:focus-visible': { outline: 'none !custom' },
266
266
  '&[data-ending-style]': {
267
267
  opacity: '0 !custom',
268
- transform: 'scale(0.96) !custom',
269
- transitionDuration: '150ms !custom',
268
+ scale: 'enter',
269
+ transitionDuration: '150',
270
270
  transitionTimingFunction: 'snappy',
271
271
  },
272
- '&[data-starting-style]': { opacity: '0 !custom', transform: 'scale(0.96) !custom' },
272
+ '&[data-starting-style]': {
273
+ opacity: '0 !custom',
274
+ scale: 'enter',
275
+ },
273
276
  },
274
277
  '@media (prefers-reduced-motion: reduce)': {
275
- transitionDuration: '150ms !custom',
278
+ transitionDuration: '150',
276
279
  transitionProperty: 'opacity !custom',
277
280
  selectors: {
278
- '&[data-ending-style], &[data-starting-style]': { transform: 'none !custom' },
281
+ '&[data-ending-style], &[data-starting-style]': { scale: 'none !custom' },
279
282
  },
280
283
  },
281
284
  },
@@ -283,10 +286,7 @@ namespace styles {
283
286
  { id: 'tds/web/date-picker/popup' },
284
287
  )
285
288
 
286
- export const positioner = style(
287
- { zIndex: '50 !custom' },
288
- { id: 'tds/web/date-picker/positioner' },
289
- )
289
+ export const positioner = style({ zIndex: 'popover' }, { id: 'tds/web/date-picker/positioner' })
290
290
 
291
291
  export const trigger = variants(
292
292
  {
@@ -300,32 +300,32 @@ namespace styles {
300
300
  minWidth: '224',
301
301
  position: 'relative',
302
302
  outlineColor: 'transparent !custom',
303
- outlineOffset: '2px !custom',
303
+ outlineOffset: '2',
304
304
  outlineStyle: 'solid !custom',
305
- outlineWidth: '2px !custom',
305
+ outlineWidth: '2',
306
306
  textAlign: 'start',
307
- transitionDuration: '160ms !custom',
307
+ transitionDuration: '160',
308
308
  transitionProperty:
309
- 'background-color, border-color, color, opacity, outline-color, transform !custom',
309
+ 'background-color, border-color, color, opacity, outline-color, scale !custom',
310
310
  transitionTimingFunction: 'snappy',
311
311
  selectors: {
312
312
  '&:active:not(:disabled)': {
313
- transform: 'scale(0.98) !custom',
314
- transitionDuration: '100ms !custom',
313
+ scale: 'press',
314
+ transitionDuration: '100',
315
315
  },
316
- '&:disabled': { cursor: 'default', opacity: '0.4 !custom' },
316
+ '&:disabled': { cursor: 'default', opacity: 'disabled' },
317
317
  '&:focus-visible': { outlineColor: 'blue.700' },
318
318
  '&::before': {
319
319
  borderColor: 'transparent !custom',
320
320
  borderRadius: 'inherit !custom',
321
321
  borderStyle: 'solid !custom',
322
- borderWidth: '2px !custom',
322
+ borderWidth: '2',
323
323
  boxSizing: 'border-box',
324
324
  content: '"" !custom',
325
325
  inset: '0',
326
326
  pointerEvents: 'none',
327
327
  position: 'absolute',
328
- transitionDuration: '160ms !custom',
328
+ transitionDuration: '160',
329
329
  transitionProperty: 'border-color !custom',
330
330
  transitionTimingFunction: 'snappy',
331
331
  },
@@ -341,7 +341,7 @@ namespace styles {
341
341
  '@media (prefers-reduced-motion: reduce)': {
342
342
  transitionProperty:
343
343
  'background-color, border-color, color, opacity, outline-color !custom',
344
- selectors: { '&:active:not(:disabled)': { transform: 'none !custom' } },
344
+ selectors: { '&:active:not(:disabled)': { scale: 'none !custom' } },
345
345
  },
346
346
  },
347
347
  defaultVariants: { size: 'medium', variant: 'filled' },
@@ -364,7 +364,7 @@ namespace styles {
364
364
  },
365
365
  small: {
366
366
  borderRadius: '8',
367
- columnGap: '6px !custom',
367
+ columnGap: '6',
368
368
  height: '32',
369
369
  paddingInline: '12',
370
370
  typography: 'copy.13',
@@ -380,7 +380,7 @@ namespace styles {
380
380
  backgroundColor: 'background.surface',
381
381
  borderColor: 'grayAlpha.200',
382
382
  borderStyle: 'solid !custom',
383
- borderWidth: '1px !custom',
383
+ borderWidth: '1',
384
384
  selectors: { '&:hover:not(:disabled)': { borderColor: 'grayAlpha.400' } },
385
385
  },
386
386
  },
@@ -134,13 +134,13 @@ export namespace styles {
134
134
  {
135
135
  backgroundColor: 'black',
136
136
  inset: '0',
137
- opacity: '0.4 !custom',
137
+ opacity: 'disabled',
138
138
  position: 'fixed',
139
- transitionDuration: '240ms',
139
+ transitionDuration: '240',
140
140
  transitionProperty: 'opacity',
141
141
  transitionTimingFunction: 'snappy',
142
142
  selectors: {
143
- '&[data-ending-style]': { opacity: '0 !custom', transitionDuration: '160ms' },
143
+ '&[data-ending-style]': { opacity: '0 !custom', transitionDuration: '160' },
144
144
  '&[data-starting-style]': { opacity: '0 !custom' },
145
145
  },
146
146
  },
@@ -151,8 +151,8 @@ export namespace styles {
151
151
  export const close = style(
152
152
  {
153
153
  height: '36',
154
- insetBlockStart: '22px !custom',
155
- insetInlineEnd: '22px !custom',
154
+ insetBlockStart: '22',
155
+ insetInlineEnd: '22',
156
156
  position: 'absolute',
157
157
  },
158
158
  { id: 'tds/web/dialog/close' },
@@ -169,42 +169,51 @@ export namespace styles {
169
169
 
170
170
  export const popup = style(
171
171
  {
172
- backgroundColor: 'light-dark(#fff, #1f1e1e) !custom',
172
+ backgroundColor: 'background.raised',
173
173
  borderRadius: '16',
174
- boxShadow: '0 32px 64px -16px rgb(0 0 0 / 0.28) !custom',
174
+ boxShadow: 'modal',
175
175
  boxSizing: 'border-box',
176
176
  color: 'foreground',
177
177
  maxWidth: '448',
178
178
  outline: 'none !custom',
179
179
  padding: '24',
180
180
  position: 'relative',
181
- transitionDuration: '280ms',
182
- transitionProperty: 'opacity, transform',
181
+ transitionDuration: '280',
182
+ transitionProperty: 'opacity, scale, transform',
183
183
  transitionTimingFunction: 'spring',
184
184
  typography: 'copy.14',
185
185
  width: '100% !custom',
186
186
  selectors: {
187
187
  '&[data-ending-style]': {
188
188
  opacity: '0 !custom',
189
- transform: 'scale(0.96) !custom',
190
- transitionDuration: '180ms',
189
+ scale: 'enter',
190
+ transitionDuration: '180',
191
+ },
192
+ '&[data-starting-style]': {
193
+ opacity: '0 !custom',
194
+ scale: 'enter',
191
195
  },
192
- '&[data-starting-style]': { opacity: '0 !custom', transform: 'scale(0.96) !custom' },
193
196
  },
194
197
  '@media (max-width: 40rem)': {
195
- borderBottomLeftRadius: '0 !custom',
196
- borderBottomRightRadius: '0 !custom',
198
+ borderBottomLeftRadius: '0',
199
+ borderBottomRightRadius: '0',
197
200
  maxWidth: 'none !custom',
198
201
  paddingBottom: 'calc(24px + env(safe-area-inset-bottom, 0px)) !custom',
199
202
  selectors: {
200
- '&[data-ending-style]': { transform: 'translateY(100%) !custom' },
201
- '&[data-starting-style]': { transform: 'translateY(100%) !custom' },
203
+ '&[data-ending-style]': { scale: 'none !custom', transform: 'translateY(100%) !custom' },
204
+ '&[data-starting-style]': {
205
+ scale: 'none !custom',
206
+ transform: 'translateY(100%) !custom',
207
+ },
202
208
  },
203
209
  },
204
210
  '@media (prefers-reduced-motion: reduce)': {
205
211
  transitionProperty: 'opacity',
206
212
  selectors: {
207
- '&[data-ending-style], &[data-starting-style]': { transform: 'none !custom' },
213
+ '&[data-ending-style], &[data-starting-style]': {
214
+ scale: 'none !custom',
215
+ transform: 'none !custom',
216
+ },
208
217
  },
209
218
  },
210
219
  },
@@ -153,7 +153,7 @@ namespace styles {
153
153
  inset: '0',
154
154
  opacity: 'calc(0.4 * (1 - var(--drawer-swipe-progress, 0))) !custom',
155
155
  position: 'fixed',
156
- transitionDuration: '320ms',
156
+ transitionDuration: '320',
157
157
  transitionProperty: 'opacity',
158
158
  transitionTimingFunction: 'spring',
159
159
  selectors: {
@@ -163,7 +163,7 @@ namespace styles {
163
163
  transitionDuration: 'calc(var(--drawer-swipe-strength, 1) * 240ms) !custom',
164
164
  },
165
165
  '&[data-starting-style]': { opacity: '0 !custom' },
166
- '&[data-swiping]': { transitionDuration: '0ms' },
166
+ '&[data-swiping]': { transitionDuration: '0' },
167
167
  },
168
168
  },
169
169
  { id: 'tds/web/drawer/backdrop' },
@@ -176,8 +176,8 @@ namespace styles {
176
176
 
177
177
  export const popup = style(
178
178
  {
179
- backgroundColor: 'light-dark(#fff, #1f1e1e) !custom',
180
- boxShadow: '0 32px 64px -16px rgb(0 0 0 / 0.28) !custom',
179
+ backgroundColor: 'background.raised',
180
+ boxShadow: 'modal',
181
181
  boxSizing: 'border-box',
182
182
  color: 'foreground',
183
183
  maxHeight: '100% !custom',
@@ -186,7 +186,7 @@ namespace styles {
186
186
  overscrollBehavior: 'contain',
187
187
  padding: '24',
188
188
  position: 'relative',
189
- transitionDuration: '320ms',
189
+ transitionDuration: '320',
190
190
  transitionProperty: 'opacity, transform',
191
191
  transitionTimingFunction: 'spring',
192
192
  typography: 'copy.14',
@@ -237,7 +237,7 @@ namespace styles {
237
237
  '&[data-swipe-direction="up"][data-ending-style], &[data-swipe-direction="up"][data-starting-style]':
238
238
  { transform: 'translateY(-100%) !custom' },
239
239
  // The popup follows the pointer without lag while swiping.
240
- '&[data-swiping]': { transitionDuration: '0ms', userSelect: 'none' },
240
+ '&[data-swiping]': { transitionDuration: '0', userSelect: 'none' },
241
241
  },
242
242
  '@media (prefers-reduced-motion: reduce)': {
243
243
  transitionProperty: 'opacity',