reshaped 2.11.12 → 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 (1212) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/bin/cli.js +1 -1
  3. package/dist/bundle.css +1 -0
  4. package/dist/bundle.js +27 -0
  5. package/dist/cjs/cli/theming/index.js +38 -0
  6. package/dist/cjs/cli/theming/reshaped.config.js +26 -0
  7. package/dist/cjs/themes/_generator/definitions/figma.js +187 -0
  8. package/dist/cjs/themes/_generator/definitions/reshaped.js +197 -0
  9. package/dist/cjs/themes/_generator/definitions/slate.js +13 -0
  10. package/dist/cjs/themes/_generator/tokens/color/color.types.d.ts +7 -0
  11. package/dist/cjs/themes/_generator/tokens/font/font.transforms.js +37 -0
  12. package/dist/cjs/themes/_generator/tokens/fontWeight/fontWeight.types.d.ts +4 -0
  13. package/dist/cjs/themes/_generator/tokens/radius/radius.transforms.d.ts +4 -0
  14. package/dist/cjs/themes/_generator/tokens/radius/radius.transforms.js +11 -0
  15. package/dist/cjs/themes/_generator/tokens/radius/radius.types.d.ts +4 -0
  16. package/dist/cjs/themes/_generator/tokens/transforms.d.ts +12 -0
  17. package/dist/cjs/themes/_generator/tokens/transforms.js +28 -0
  18. package/dist/cjs/themes/_generator/tokens/types.d.ts +55 -0
  19. package/dist/cjs/themes/_generator/tokens/unit/unit.types.d.ts +5 -0
  20. package/dist/cjs/themes/_generator/transform.js +61 -0
  21. package/dist/cjs/themes/_generator/types.d.ts +19 -0
  22. package/dist/cjs/themes/_generator/utilities/color.d.ts +89 -0
  23. package/dist/cjs/themes/_generator/utilities/color.js +359 -0
  24. package/dist/cjs/themes/_generator/utilities/generateBackgroundColors.js +57 -0
  25. package/dist/cjs/themes/_generator/utilities/generateColors.d.ts +11 -0
  26. package/dist/cjs/themes/_generator/utilities/generateColors.js +177 -0
  27. package/dist/cjs/themes/_generator/utilities/generateUnits.js +16 -0
  28. package/dist/cjs/themes/_generator/utilities/mergeDefinitions.js +17 -0
  29. package/dist/cjs/themes/_generator/utilities/tests/color.test.js +49 -0
  30. package/dist/cjs/themes/figma/theme.css +1 -0
  31. package/dist/cjs/themes/index.d.ts +12 -0
  32. package/dist/cjs/themes/reshaped/theme.css +1 -0
  33. package/dist/cjs/themes/slate/theme.css +1 -0
  34. package/dist/cjs/types/config.js +2 -0
  35. package/dist/cli/theming/index.d.ts +4 -0
  36. package/dist/cli/theming/index.js +30 -0
  37. package/dist/cli/theming/reshaped.config.d.ts +3 -0
  38. package/dist/cli/theming/reshaped.config.js +21 -0
  39. package/dist/components/Accordion/Accordion.js +14 -0
  40. package/dist/components/Accordion/Accordion.types.d.ts +39 -0
  41. package/dist/components/Accordion/AccordionControlled.js +23 -0
  42. package/dist/components/Accordion/AccordionTrigger.js +24 -0
  43. package/dist/components/Accordion/AccordionUncontrolled.js +14 -0
  44. package/dist/components/ActionBar/ActionBar.types.d.ts +10 -0
  45. package/dist/components/Actionable/Actionable.js +54 -0
  46. package/dist/components/Actionable/Actionable.types.d.ts +18 -0
  47. package/dist/components/Alert/Alert.js +25 -0
  48. package/dist/components/Alert/Alert.module.css +1 -0
  49. package/dist/components/Alert/Alert.types.d.ts +14 -0
  50. package/dist/components/Alert/tests/Alert.stories.js +99 -0
  51. package/dist/components/Autocomplete/Autocomplete.js +72 -0
  52. package/dist/components/Autocomplete/Autocomplete.types.d.ts +17 -0
  53. package/dist/components/Avatar/Avatar.js +29 -0
  54. package/dist/components/Avatar/Avatar.types.d.ts +30 -0
  55. package/dist/components/Badge/Badge.d.ts +3 -0
  56. package/dist/components/Badge/Badge.js +24 -0
  57. package/dist/components/Badge/Badge.module.css +1 -0
  58. package/dist/components/Badge/Badge.types.d.ts +42 -0
  59. package/dist/components/Badge/BadgeContainer.js +9 -0
  60. package/dist/components/Badge/tests/Badge.stories.d.ts +19 -0
  61. package/dist/components/Badge/tests/Badge.stories.js +247 -0
  62. package/dist/components/Breadcrumbs/Breadcrumbs.js +42 -0
  63. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +14 -0
  64. package/dist/components/Button/Button.js +34 -0
  65. package/dist/components/Button/Button.module.css +1 -0
  66. package/dist/components/Button/Button.types.d.ts +33 -0
  67. package/dist/components/Button/ButtonAligner.js +7 -0
  68. package/dist/components/Button/ButtonGroup.js +9 -0
  69. package/dist/components/Button/tests/Button.stories.js +614 -0
  70. package/dist/components/Calendar/Calendar.js +9 -0
  71. package/dist/components/Calendar/Calendar.module.css +1 -0
  72. package/dist/components/Calendar/Calendar.utils.js +110 -0
  73. package/dist/components/Calendar/CalendarControlled.js +68 -0
  74. package/dist/components/Calendar/CalendarControls.js +46 -0
  75. package/dist/components/Calendar/CalendarDate.js +57 -0
  76. package/dist/components/Calendar/CalendarMonth.js +50 -0
  77. package/dist/components/Calendar/CalendarUncontrolled.js +19 -0
  78. package/dist/components/Calendar/CalendarYear.js +43 -0
  79. package/dist/components/Calendar/useCalendarKeyboardNavigation.js +66 -0
  80. package/dist/components/Card/Card.d.ts +16 -0
  81. package/dist/components/Card/Card.js +35 -0
  82. package/dist/components/Card/Card.module.css +1 -0
  83. package/dist/components/Card/Card.types.d.ts +16 -0
  84. package/dist/components/Card/tests/Card.stories.d.ts +31 -0
  85. package/dist/components/Carousel/Carousel.js +67 -0
  86. package/dist/components/Carousel/Carousel.types.d.ts +28 -0
  87. package/dist/components/Carousel/CarouselControl.js +42 -0
  88. package/dist/components/Checkbox/Checkbox.js +41 -0
  89. package/dist/components/Checkbox/Checkbox.module.css +1 -0
  90. package/dist/components/Checkbox/Checkbox.types.d.ts +26 -0
  91. package/dist/components/CheckboxGroup/CheckboxGroup.js +10 -0
  92. package/dist/components/CheckboxGroup/CheckboxGroupUncontrolled.js +17 -0
  93. package/dist/components/Container/Container.js +10 -0
  94. package/dist/components/Container/Container.types.d.ts +9 -0
  95. package/dist/components/Container/tests/Container.stories.d.ts +13 -0
  96. package/dist/components/Container/tests/Container.stories.js +42 -0
  97. package/dist/components/Dismissible/Dismissible.js +12 -0
  98. package/dist/components/Dismissible/Dismissible.types.d.ts +20 -0
  99. package/dist/components/Divider/Divider.js +14 -0
  100. package/dist/components/Divider/Divider.types.d.ts +7 -0
  101. package/dist/components/DropdownMenu/DropdownMenu.js +75 -0
  102. package/dist/components/FileUpload/FileUpload.js +47 -0
  103. package/dist/components/FileUpload/FileUpload.types.d.ts +13 -0
  104. package/dist/components/FormControl/FormControl.context.d.ts +278 -0
  105. package/dist/components/FormControl/FormControl.d.ts +11 -0
  106. package/dist/components/FormControl/FormControlLabel.js +18 -0
  107. package/dist/components/FormControl/tests/FormControl.stories.d.ts +19 -0
  108. package/dist/components/Hidden/Hidden.js +9 -0
  109. package/dist/components/Hidden/Hidden.module.css +1 -0
  110. package/dist/components/Hidden/Hidden.types.d.ts +8 -0
  111. package/dist/components/Hidden/tests/Hidden.stories.d.ts +11 -0
  112. package/dist/components/Hidden/tests/Hidden.stories.js +36 -0
  113. package/dist/components/Hotkey/Hotkey.module.css +1 -0
  114. package/dist/components/Hotkey/Hotkey.types.d.ts +8 -0
  115. package/dist/components/Hotkey/tests/Hotkey.stories.js +38 -0
  116. package/dist/components/Icon/Icon.js +18 -0
  117. package/dist/components/Icon/Icon.types.d.ts +10 -0
  118. package/dist/components/Image/Image.js +41 -0
  119. package/dist/components/Image/Image.types.d.ts +17 -0
  120. package/dist/components/Link/Link.d.ts +6 -0
  121. package/dist/components/Link/Link.module.css +1 -0
  122. package/dist/components/Link/Link.types.d.ts +7 -0
  123. package/dist/components/Link/tests/Link.stories.d.ts +19 -0
  124. package/dist/components/Link/tests/Link.stories.js +72 -0
  125. package/dist/components/Loader/Loader.js +10 -0
  126. package/dist/components/Loader/Loader.module.css +1 -0
  127. package/dist/components/Loader/Loader.types.d.ts +7 -0
  128. package/dist/components/Loader/tests/Loader.stories.js +39 -0
  129. package/dist/components/MenuItem/MenuItem.js +17 -0
  130. package/dist/components/MenuItem/MenuItem.module.css +1 -0
  131. package/dist/components/MenuItem/MenuItem.types.d.ts +23 -0
  132. package/dist/components/MenuItem/MenuItemAligner.js +7 -0
  133. package/dist/components/MenuItem/tests/MenuItem.stories.js +130 -0
  134. package/dist/components/Modal/Modal.js +174 -0
  135. package/dist/components/Modal/Modal.module.css +1 -0
  136. package/dist/components/Modal/Modal.types.d.ts +30 -0
  137. package/dist/components/Modal/tests/Modal.stories.d.ts +23 -0
  138. package/dist/components/Modal/tests/Modal.stories.js +206 -0
  139. package/dist/components/Overlay/Overlay.js +106 -0
  140. package/dist/components/Overlay/Overlay.module.css +1 -0
  141. package/dist/components/Overlay/Overlay.types.d.ts +13 -0
  142. package/dist/components/Pagination/Pagination.js +10 -0
  143. package/dist/components/Pagination/Pagination.types.d.ts +52 -0
  144. package/dist/components/Pagination/PaginationControlled.js +48 -0
  145. package/dist/components/Pagination/PaginationUncontrolled.js +14 -0
  146. package/dist/components/PinField/PinField.js +10 -0
  147. package/dist/components/PinField/PinField.types.d.ts +23 -0
  148. package/dist/components/PinField/PinFieldControlled.js +160 -0
  149. package/dist/components/PinField/PinFieldUncontrolled.js +14 -0
  150. package/dist/components/Popover/Popover.js +18 -0
  151. package/dist/components/Popover/Popover.module.css +1 -0
  152. package/dist/components/Progress/Progress.js +17 -0
  153. package/dist/components/Progress/Progress.module.css +1 -0
  154. package/dist/components/Progress/Progress.types.d.ts +11 -0
  155. package/dist/components/Progress/tests/Progress.stories.js +66 -0
  156. package/dist/components/Radio/Radio.js +30 -0
  157. package/dist/components/Radio/Radio.module.css +1 -0
  158. package/dist/components/Radio/Radio.types.d.ts +25 -0
  159. package/dist/components/RadioGroup/RadioGroup.js +10 -0
  160. package/dist/components/RadioGroup/RadioGroupUncontrolled.js +17 -0
  161. package/dist/components/Reshaped/Reshaped.css +1 -0
  162. package/dist/components/Reshaped/Reshaped.js +22 -0
  163. package/dist/components/Scrim/Scrim.js +10 -0
  164. package/dist/components/Scrim/Scrim.types.d.ts +11 -0
  165. package/dist/components/ScrollArea/ScrollArea.js +141 -0
  166. package/dist/components/ScrollArea/ScrollArea.module.css +1 -0
  167. package/dist/components/ScrollArea/ScrollArea.types.d.ts +23 -0
  168. package/dist/components/Select/Select.js +52 -0
  169. package/dist/components/Select/Select.module.css +1 -0
  170. package/dist/components/Select/Select.types.d.ts +51 -0
  171. package/dist/components/Skeleton/Skeleton.types.d.ts +6 -0
  172. package/dist/components/Slider/Slider.js +15 -0
  173. package/dist/components/Slider/Slider.module.css +1 -0
  174. package/dist/components/Slider/Slider.types.d.ts +80 -0
  175. package/dist/components/Slider/Slider.utilities.js +14 -0
  176. package/dist/components/Slider/SliderControlled.js +203 -0
  177. package/dist/components/Slider/SliderUncontrolled.js +33 -0
  178. package/dist/components/Slider/tests/Slider.stories.js +51 -0
  179. package/dist/components/Stepper/Stepper.js +30 -0
  180. package/dist/components/Stepper/Stepper.types.d.ts +26 -0
  181. package/dist/components/Switch/Switch.js +26 -0
  182. package/dist/components/Switch/Switch.module.css +1 -0
  183. package/dist/components/Switch/Switch.types.d.ts +26 -0
  184. package/dist/components/Switch/tests/Switch.stories.js +63 -0
  185. package/dist/components/Table/Table.js +50 -0
  186. package/dist/components/Table/Table.module.css +1 -0
  187. package/dist/components/Tabs/Tabs.js +16 -0
  188. package/dist/components/Tabs/Tabs.module.css +1 -0
  189. package/dist/components/Tabs/Tabs.types.d.ts +61 -0
  190. package/dist/components/Tabs/TabsContext.d.ts +23 -0
  191. package/dist/components/Tabs/TabsContext.js +12 -0
  192. package/dist/components/Tabs/TabsItem.js +63 -0
  193. package/dist/components/Tabs/TabsList.js +156 -0
  194. package/dist/components/Tabs/TabsUncontrolled.js +19 -0
  195. package/dist/components/Text/Text.js +27 -0
  196. package/dist/components/Text/Text.types.d.ts +16 -0
  197. package/dist/components/Text/tests/Text.stories.js +134 -0
  198. package/dist/components/TextArea/TextArea.js +34 -0
  199. package/dist/components/TextArea/TextArea.module.css +1 -0
  200. package/dist/components/TextArea/TextArea.types.d.ts +29 -0
  201. package/dist/components/TextField/TextField.js +44 -0
  202. package/dist/components/TextField/TextField.module.css +1 -0
  203. package/dist/components/TextField/TextField.types.d.ts +42 -0
  204. package/dist/components/Theme/Theme.context.js +16 -0
  205. package/dist/components/Theme/Theme.js +60 -0
  206. package/dist/components/Theme/Theme.types.d.ts +26 -0
  207. package/dist/components/Theme/useTheme.d.ts +10 -0
  208. package/dist/components/Theme/useTheme.js +20 -0
  209. package/dist/components/Timeline/Timeline.js +20 -0
  210. package/dist/components/Timeline/Timeline.types.d.ts +13 -0
  211. package/dist/components/Toast/Toast.constants.js +21 -0
  212. package/dist/components/Toast/Toast.js +44 -0
  213. package/dist/components/Toast/Toast.module.css +1 -0
  214. package/dist/components/Toast/Toast.types.d.ts +80 -0
  215. package/dist/components/Toast/ToastContainer.js +96 -0
  216. package/dist/components/Toast/ToastProvider.js +77 -0
  217. package/dist/components/Toast/ToastRegion.js +64 -0
  218. package/dist/components/Tooltip/Tooltip.module.css +1 -0
  219. package/dist/components/Tooltip/tests/Tooltip.stories.js +96 -0
  220. package/dist/components/View/View.d.ts +6 -0
  221. package/dist/components/View/View.js +169 -0
  222. package/dist/components/View/tests/View.stories.d.ts +43 -0
  223. package/dist/components/View/tests/View.stories.js +1090 -0
  224. package/dist/components/_private/Aligner/Aligner.js +10 -0
  225. package/dist/components/_private/Aligner/Aligner.types.d.ts +9 -0
  226. package/dist/components/_private/Expandable/Expandable.js +44 -0
  227. package/dist/components/_private/Expandable/Expandable.module.css +1 -0
  228. package/dist/components/_private/Flyout/Flyout.context.d.ts +9 -0
  229. package/dist/components/_private/Flyout/Flyout.context.js +10 -0
  230. package/dist/components/_private/Flyout/Flyout.js +14 -0
  231. package/dist/components/_private/Flyout/Flyout.types.d.ts +112 -0
  232. package/dist/components/_private/Flyout/FlyoutContent.js +57 -0
  233. package/dist/components/_private/Flyout/FlyoutControlled.js +240 -0
  234. package/dist/components/_private/Flyout/FlyoutTrigger.js +38 -0
  235. package/dist/components/_private/Flyout/FlyoutUncontrolled.js +20 -0
  236. package/dist/components/_private/Flyout/tests/Flyout.stories.js +183 -0
  237. package/dist/components/_private/Flyout/useFlyout.js +198 -0
  238. package/dist/components/_private/HiddenInput/HiddenInput.js +9 -0
  239. package/dist/components/_private/Portal/Portal.js +34 -0
  240. package/dist/config/postcss.d.ts +28 -0
  241. package/dist/config/postcss.js +26 -0
  242. package/dist/config/tailwind.d.ts +2 -0
  243. package/dist/config/tailwind.js +83 -0
  244. package/dist/hooks/_private/useIsDismissible.js +44 -0
  245. package/dist/hooks/_private/useSingletonHotkeys.js +179 -0
  246. package/dist/hooks/tests/useHotkeys.stories.js +30 -0
  247. package/dist/hooks/useHotkeys.js +25 -0
  248. package/dist/icons/Mic.js +5 -0
  249. package/dist/styles/radius/radius.module.css +1 -0
  250. package/dist/tests/themingWithDefinition.js +5 -0
  251. package/dist/tests/themingWithoutDefinition.js +5 -0
  252. package/dist/themes/_generator/constants.d.ts +2 -0
  253. package/dist/themes/_generator/constants.js +8 -0
  254. package/dist/themes/_generator/definitions/figma.d.ts +3 -0
  255. package/dist/themes/_generator/definitions/figma.js +185 -0
  256. package/dist/themes/_generator/definitions/reshaped.d.ts +3 -0
  257. package/dist/themes/_generator/definitions/reshaped.js +195 -0
  258. package/dist/themes/_generator/definitions/slate.d.ts +3 -0
  259. package/dist/themes/_generator/definitions/slate.js +8 -0
  260. package/dist/themes/_generator/tests/themes.stories.js +242 -0
  261. package/dist/themes/_generator/tokens/color/color.transforms.d.ts +4 -0
  262. package/dist/themes/_generator/tokens/color/color.transforms.js +18 -0
  263. package/dist/themes/_generator/tokens/color/color.types.d.ts +7 -0
  264. package/dist/themes/_generator/tokens/duration/duration.transforms.d.ts +4 -0
  265. package/dist/themes/_generator/tokens/duration/duration.transforms.js +9 -0
  266. package/dist/themes/_generator/tokens/duration/duration.types.d.ts +4 -0
  267. package/dist/themes/_generator/tokens/duration/duration.types.js +1 -0
  268. package/dist/themes/_generator/tokens/easing/easing.transforms.d.ts +4 -0
  269. package/dist/themes/_generator/tokens/easing/easing.transforms.js +9 -0
  270. package/dist/themes/_generator/tokens/easing/easing.types.d.ts +7 -0
  271. package/dist/themes/_generator/tokens/easing/easing.types.js +1 -0
  272. package/dist/themes/_generator/tokens/font/font.transforms.d.ts +4 -0
  273. package/dist/themes/_generator/tokens/font/font.transforms.js +35 -0
  274. package/dist/themes/_generator/tokens/font/font.types.d.ts +10 -0
  275. package/dist/themes/_generator/tokens/font/font.types.js +1 -0
  276. package/dist/themes/_generator/tokens/fontFamily/fontFamily.transforms.d.ts +4 -0
  277. package/dist/themes/_generator/tokens/fontFamily/fontFamily.transforms.js +9 -0
  278. package/dist/themes/_generator/tokens/fontFamily/fontFamily.types.d.ts +4 -0
  279. package/dist/themes/_generator/tokens/fontFamily/fontFamily.types.js +1 -0
  280. package/dist/themes/_generator/tokens/fontWeight/fontWeight.transforms.d.ts +4 -0
  281. package/dist/themes/_generator/tokens/fontWeight/fontWeight.transforms.js +9 -0
  282. package/dist/themes/_generator/tokens/fontWeight/fontWeight.types.d.ts +4 -0
  283. package/dist/themes/_generator/tokens/fontWeight/fontWeight.types.js +1 -0
  284. package/dist/themes/_generator/tokens/radius/radius.transforms.d.ts +4 -0
  285. package/dist/themes/_generator/tokens/radius/radius.transforms.js +9 -0
  286. package/dist/themes/_generator/tokens/radius/radius.types.d.ts +4 -0
  287. package/dist/themes/_generator/tokens/radius/radius.types.js +1 -0
  288. package/dist/themes/_generator/tokens/shadow/shadow.transforms.d.ts +4 -0
  289. package/dist/themes/_generator/tokens/shadow/shadow.transforms.js +20 -0
  290. package/dist/themes/_generator/tokens/shadow/shadow.types.d.ts +13 -0
  291. package/dist/themes/_generator/tokens/shadow/shadow.types.js +1 -0
  292. package/dist/themes/_generator/tokens/transforms.d.ts +12 -0
  293. package/dist/themes/_generator/tokens/transforms.js +22 -0
  294. package/dist/themes/_generator/tokens/types.d.ts +55 -0
  295. package/dist/themes/_generator/tokens/types.js +1 -0
  296. package/dist/themes/_generator/tokens/unit/unit.transforms.d.ts +4 -0
  297. package/dist/themes/_generator/tokens/unit/unit.transforms.js +9 -0
  298. package/dist/themes/_generator/tokens/unit/unit.types.d.ts +5 -0
  299. package/dist/themes/_generator/tokens/unit/unit.types.js +1 -0
  300. package/dist/themes/_generator/tokens/viewport/viewport.transforms.d.ts +4 -0
  301. package/dist/themes/_generator/tokens/viewport/viewport.transforms.js +16 -0
  302. package/dist/themes/_generator/tokens/viewport/viewport.types.d.ts +9 -0
  303. package/dist/themes/_generator/tokens/viewport/viewport.types.js +1 -0
  304. package/dist/themes/_generator/transform.d.ts +7 -0
  305. package/dist/themes/_generator/transform.js +33 -0
  306. package/dist/themes/_generator/types.d.ts +19 -0
  307. package/dist/themes/_generator/types.js +1 -0
  308. package/dist/themes/_generator/utilities/color.d.ts +89 -0
  309. package/dist/themes/_generator/utilities/color.js +329 -0
  310. package/dist/themes/_generator/utilities/css.d.ts +6 -0
  311. package/dist/themes/_generator/utilities/css.js +44 -0
  312. package/dist/themes/_generator/utilities/generateBackgroundColors.d.ts +4 -0
  313. package/dist/themes/_generator/utilities/generateBackgroundColors.js +55 -0
  314. package/dist/themes/_generator/utilities/generateColors.d.ts +11 -0
  315. package/dist/themes/_generator/utilities/generateColors.js +175 -0
  316. package/dist/themes/_generator/utilities/generateUnits.d.ts +4 -0
  317. package/dist/themes/_generator/utilities/generateUnits.js +14 -0
  318. package/dist/themes/_generator/utilities/mergeDeep.d.ts +5 -0
  319. package/dist/themes/_generator/utilities/mergeDeep.js +22 -0
  320. package/dist/themes/_generator/utilities/mergeDefinitions.d.ts +5 -0
  321. package/dist/themes/_generator/utilities/mergeDefinitions.js +15 -0
  322. package/dist/themes/_generator/utilities/resolveTokenReference.d.ts +3 -0
  323. package/dist/themes/_generator/utilities/resolveTokenReference.js +14 -0
  324. package/dist/themes/figma/media.css +1 -0
  325. package/dist/themes/figma/theme.css +1 -0
  326. package/dist/themes/fragments/twitter/theme.css +1 -0
  327. package/dist/themes/index.d.ts +12 -0
  328. package/dist/themes/index.js +10 -0
  329. package/dist/themes/reshaped/media.css +1 -0
  330. package/dist/themes/reshaped/theme.css +1 -0
  331. package/dist/themes/slate/media.css +1 -0
  332. package/dist/themes/slate/theme.css +1 -0
  333. package/dist/types/config.d.ts +14 -0
  334. package/dist/types/config.js +1 -0
  335. package/dist/types/global.d.ts +29 -0
  336. package/dist/types/global.js +1 -0
  337. package/dist/utilities/Chain.js +60 -0
  338. package/dist/utilities/a11y/TrapFocus.js +130 -0
  339. package/dist/utilities/a11y/TrapScreenReader.js +40 -0
  340. package/dist/utilities/a11y/focus.js +89 -0
  341. package/dist/utilities/a11y/types.js +1 -0
  342. package/dist/utilities/dom.js +18 -0
  343. package/dist/utilities/helpers.js +138 -0
  344. package/dist/utilities/storybook/Example.js +14 -0
  345. package/dist/utilities/storybook/Placeholder.js +17 -0
  346. package/dist/utilities/string.d.ts +2 -0
  347. package/dist/utilities/string.js +6 -0
  348. package/package.json +41 -27
  349. package/bin/clean.sh +0 -3
  350. package/bin/release-copy.sh +0 -8
  351. package/bin/release-source.sh +0 -20
  352. package/bundle.css +0 -1
  353. package/bundle.js +0 -27
  354. package/cli/theming/index.js +0 -38
  355. package/cli/theming/reshaped.config.js +0 -25
  356. package/components/Accordion/Accordion.js +0 -14
  357. package/components/Accordion/Accordion.types.d.ts +0 -39
  358. package/components/Accordion/AccordionControlled.js +0 -23
  359. package/components/Accordion/AccordionTrigger.js +0 -24
  360. package/components/Accordion/AccordionUncontrolled.js +0 -25
  361. package/components/ActionBar/ActionBar.types.d.ts +0 -10
  362. package/components/Actionable/Actionable.js +0 -55
  363. package/components/Actionable/Actionable.types.d.ts +0 -18
  364. package/components/Alert/Alert.js +0 -21
  365. package/components/Alert/Alert.types.d.ts +0 -14
  366. package/components/Alert/tests/Alert.stories.js +0 -95
  367. package/components/Autocomplete/Autocomplete.js +0 -78
  368. package/components/Autocomplete/Autocomplete.types.d.ts +0 -16
  369. package/components/Avatar/Avatar.js +0 -29
  370. package/components/Avatar/Avatar.types.d.ts +0 -30
  371. package/components/Badge/Badge.d.ts +0 -6
  372. package/components/Badge/Badge.js +0 -19
  373. package/components/Badge/Badge.module.css +0 -1
  374. package/components/Badge/Badge.types.d.ts +0 -39
  375. package/components/Badge/BadgeContainer.js +0 -9
  376. package/components/Badge/tests/Badge.stories.d.ts +0 -22
  377. package/components/Badge/tests/Badge.stories.js +0 -242
  378. package/components/Breadcrumbs/Breadcrumbs.js +0 -42
  379. package/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -14
  380. package/components/Button/Button.js +0 -34
  381. package/components/Button/Button.module.css +0 -1
  382. package/components/Button/Button.types.d.ts +0 -33
  383. package/components/Button/ButtonAligner.js +0 -7
  384. package/components/Button/ButtonGroup.js +0 -9
  385. package/components/Button/tests/Button.stories.js +0 -646
  386. package/components/Calendar/Calendar.js +0 -9
  387. package/components/Calendar/Calendar.module.css +0 -1
  388. package/components/Calendar/Calendar.utils.js +0 -110
  389. package/components/Calendar/CalendarControlled.js +0 -69
  390. package/components/Calendar/CalendarControls.js +0 -46
  391. package/components/Calendar/CalendarDate.js +0 -57
  392. package/components/Calendar/CalendarMonth.js +0 -51
  393. package/components/Calendar/CalendarUncontrolled.js +0 -30
  394. package/components/Calendar/CalendarYear.js +0 -44
  395. package/components/Calendar/useCalendarKeyboardNavigation.js +0 -66
  396. package/components/Card/Card.d.ts +0 -17
  397. package/components/Card/Card.js +0 -30
  398. package/components/Card/Card.module.css +0 -1
  399. package/components/Card/Card.types.d.ts +0 -16
  400. package/components/Card/tests/Card.stories.d.ts +0 -31
  401. package/components/Carousel/Carousel.js +0 -64
  402. package/components/Carousel/Carousel.types.d.ts +0 -28
  403. package/components/Carousel/CarouselControl.js +0 -42
  404. package/components/Checkbox/Checkbox.js +0 -39
  405. package/components/Checkbox/Checkbox.module.css +0 -1
  406. package/components/Checkbox/Checkbox.types.d.ts +0 -26
  407. package/components/CheckboxGroup/CheckboxGroup.js +0 -10
  408. package/components/CheckboxGroup/CheckboxGroupUncontrolled.js +0 -17
  409. package/components/Container/Container.js +0 -10
  410. package/components/Container/Container.types.d.ts +0 -9
  411. package/components/Container/tests/Container.stories.d.ts +0 -12
  412. package/components/Container/tests/Container.stories.js +0 -35
  413. package/components/Dismissible/Dismissible.js +0 -12
  414. package/components/Dismissible/Dismissible.types.d.ts +0 -20
  415. package/components/Divider/Divider.js +0 -14
  416. package/components/Divider/Divider.types.d.ts +0 -7
  417. package/components/DropdownMenu/DropdownMenu.js +0 -88
  418. package/components/FileUpload/FileUpload.js +0 -52
  419. package/components/FileUpload/FileUpload.types.d.ts +0 -13
  420. package/components/FormControl/FormControl.context.d.ts +0 -278
  421. package/components/FormControl/FormControl.d.ts +0 -11
  422. package/components/FormControl/FormControlLabel.js +0 -18
  423. package/components/FormControl/tests/FormControl.stories.d.ts +0 -19
  424. package/components/Hidden/Hidden.js +0 -11
  425. package/components/Hidden/Hidden.module.css +0 -1
  426. package/components/Hidden/Hidden.types.d.ts +0 -9
  427. package/components/Hidden/tests/Hidden.stories.d.ts +0 -12
  428. package/components/Hidden/tests/Hidden.stories.js +0 -46
  429. package/components/Hotkey/Hotkey.module.css +0 -1
  430. package/components/Hotkey/Hotkey.types.d.ts +0 -8
  431. package/components/Hotkey/tests/Hotkey.stories.js +0 -33
  432. package/components/Icon/Icon.js +0 -18
  433. package/components/Icon/Icon.types.d.ts +0 -10
  434. package/components/Image/Image.js +0 -38
  435. package/components/Image/Image.types.d.ts +0 -19
  436. package/components/Link/Link.d.ts +0 -6
  437. package/components/Link/Link.module.css +0 -1
  438. package/components/Link/Link.types.d.ts +0 -7
  439. package/components/Link/tests/Link.stories.d.ts +0 -19
  440. package/components/Link/tests/Link.stories.js +0 -69
  441. package/components/Loader/Loader.js +0 -10
  442. package/components/Loader/Loader.module.css +0 -1
  443. package/components/Loader/Loader.types.d.ts +0 -7
  444. package/components/Loader/tests/Loader.stories.js +0 -36
  445. package/components/MenuItem/MenuItem.js +0 -17
  446. package/components/MenuItem/MenuItem.module.css +0 -1
  447. package/components/MenuItem/MenuItem.types.d.ts +0 -23
  448. package/components/MenuItem/MenuItemAligner.js +0 -7
  449. package/components/MenuItem/tests/MenuItem.stories.js +0 -129
  450. package/components/Modal/Modal.js +0 -170
  451. package/components/Modal/Modal.module.css +0 -1
  452. package/components/Modal/Modal.types.d.ts +0 -29
  453. package/components/Modal/tests/Modal.stories.d.ts +0 -22
  454. package/components/Modal/tests/Modal.stories.js +0 -193
  455. package/components/Overlay/Overlay.js +0 -103
  456. package/components/Overlay/Overlay.module.css +0 -1
  457. package/components/Overlay/Overlay.types.d.ts +0 -12
  458. package/components/Pagination/Pagination.js +0 -10
  459. package/components/Pagination/Pagination.types.d.ts +0 -52
  460. package/components/Pagination/PaginationControlled.js +0 -48
  461. package/components/Pagination/PaginationUncontrolled.js +0 -25
  462. package/components/PinField/PinField.js +0 -10
  463. package/components/PinField/PinField.types.d.ts +0 -23
  464. package/components/PinField/PinFieldControlled.js +0 -161
  465. package/components/PinField/PinFieldUncontrolled.js +0 -25
  466. package/components/Popover/Popover.js +0 -19
  467. package/components/Popover/Popover.module.css +0 -1
  468. package/components/Progress/Progress.js +0 -17
  469. package/components/Progress/Progress.module.css +0 -1
  470. package/components/Progress/Progress.types.d.ts +0 -11
  471. package/components/Progress/tests/Progress.stories.js +0 -66
  472. package/components/Radio/Radio.js +0 -30
  473. package/components/Radio/Radio.module.css +0 -1
  474. package/components/Radio/Radio.types.d.ts +0 -25
  475. package/components/RadioGroup/RadioGroup.js +0 -10
  476. package/components/RadioGroup/RadioGroupUncontrolled.js +0 -17
  477. package/components/Reshaped/Reshaped.css +0 -1
  478. package/components/Reshaped/Reshaped.js +0 -22
  479. package/components/Scrim/Scrim.js +0 -10
  480. package/components/Scrim/Scrim.types.d.ts +0 -11
  481. package/components/ScrollArea/ScrollArea.js +0 -139
  482. package/components/ScrollArea/ScrollArea.module.css +0 -1
  483. package/components/ScrollArea/ScrollArea.types.d.ts +0 -23
  484. package/components/Select/Select.js +0 -49
  485. package/components/Select/Select.module.css +0 -1
  486. package/components/Select/Select.types.d.ts +0 -49
  487. package/components/Skeleton/Skeleton.types.d.ts +0 -6
  488. package/components/Slider/Slider.js +0 -26
  489. package/components/Slider/Slider.module.css +0 -1
  490. package/components/Slider/Slider.types.d.ts +0 -80
  491. package/components/Slider/Slider.utilities.js +0 -14
  492. package/components/Slider/SliderControlled.js +0 -209
  493. package/components/Slider/SliderUncontrolled.js +0 -33
  494. package/components/Slider/tests/Slider.stories.js +0 -52
  495. package/components/Stepper/Stepper.js +0 -30
  496. package/components/Stepper/Stepper.types.d.ts +0 -26
  497. package/components/Switch/Switch.js +0 -27
  498. package/components/Switch/Switch.module.css +0 -1
  499. package/components/Switch/Switch.types.d.ts +0 -26
  500. package/components/Switch/tests/Switch.stories.js +0 -60
  501. package/components/Table/Table.js +0 -45
  502. package/components/Table/Table.module.css +0 -1
  503. package/components/Tabs/Tabs.js +0 -16
  504. package/components/Tabs/Tabs.module.css +0 -1
  505. package/components/Tabs/Tabs.types.d.ts +0 -61
  506. package/components/Tabs/TabsContext.d.ts +0 -23
  507. package/components/Tabs/TabsContext.js +0 -19
  508. package/components/Tabs/TabsItem.js +0 -61
  509. package/components/Tabs/TabsList.js +0 -153
  510. package/components/Tabs/TabsUncontrolled.js +0 -19
  511. package/components/Text/Text.js +0 -24
  512. package/components/Text/Text.types.d.ts +0 -16
  513. package/components/Text/tests/Text.stories.js +0 -134
  514. package/components/TextArea/TextArea.js +0 -35
  515. package/components/TextArea/TextArea.module.css +0 -1
  516. package/components/TextArea/TextArea.types.d.ts +0 -29
  517. package/components/TextField/TextField.js +0 -45
  518. package/components/TextField/TextField.module.css +0 -1
  519. package/components/TextField/TextField.types.d.ts +0 -42
  520. package/components/Theme/Theme.context.js +0 -14
  521. package/components/Theme/Theme.js +0 -48
  522. package/components/Theme/Theme.types.d.ts +0 -24
  523. package/components/Theme/useTheme.d.ts +0 -8
  524. package/components/Theme/useTheme.js +0 -18
  525. package/components/Timeline/Timeline.js +0 -20
  526. package/components/Timeline/Timeline.types.d.ts +0 -13
  527. package/components/Toast/Toast.constants.js +0 -21
  528. package/components/Toast/Toast.js +0 -44
  529. package/components/Toast/Toast.module.css +0 -1
  530. package/components/Toast/Toast.types.d.ts +0 -80
  531. package/components/Toast/ToastContainer.js +0 -96
  532. package/components/Toast/ToastProvider.js +0 -85
  533. package/components/Toast/ToastRegion.js +0 -64
  534. package/components/Tooltip/Tooltip.module.css +0 -1
  535. package/components/Tooltip/tests/Tooltip.stories.js +0 -84
  536. package/components/View/View.d.ts +0 -6
  537. package/components/View/View.js +0 -152
  538. package/components/View/tests/View.stories.d.ts +0 -43
  539. package/components/View/tests/View.stories.js +0 -1090
  540. package/components/_private/Aligner/Aligner.js +0 -10
  541. package/components/_private/Aligner/Aligner.types.d.ts +0 -9
  542. package/components/_private/Expandable/Expandable.js +0 -27
  543. package/components/_private/Expandable/Expandable.module.css +0 -1
  544. package/components/_private/Flyout/Flyout.context.d.ts +0 -6
  545. package/components/_private/Flyout/Flyout.context.js +0 -6
  546. package/components/_private/Flyout/Flyout.js +0 -14
  547. package/components/_private/Flyout/Flyout.types.d.ts +0 -111
  548. package/components/_private/Flyout/FlyoutContent.js +0 -54
  549. package/components/_private/Flyout/FlyoutControlled.js +0 -238
  550. package/components/_private/Flyout/FlyoutTrigger.js +0 -38
  551. package/components/_private/Flyout/FlyoutUncontrolled.js +0 -20
  552. package/components/_private/Flyout/tests/Flyout.stories.js +0 -183
  553. package/components/_private/Flyout/useFlyout.js +0 -186
  554. package/components/_private/HiddenInput/HiddenInput.js +0 -9
  555. package/components/_private/Portal/Portal.js +0 -34
  556. package/hooks/_private/useIsDismissible.js +0 -45
  557. package/hooks/_private/useSingletonHotkeys.js +0 -183
  558. package/hooks/tests/useHotkeys.stories.js +0 -24
  559. package/hooks/useHotkeys.js +0 -25
  560. package/icons/Mic.js +0 -5
  561. package/styles/radius/radius.module.css +0 -1
  562. package/themes/_generator/definitions/figma.js +0 -186
  563. package/themes/_generator/definitions/reshaped.js +0 -160
  564. package/themes/_generator/definitions/slate.js +0 -80
  565. package/themes/_generator/tests/themes.stories.js +0 -180
  566. package/themes/_generator/tokens/color/color.types.d.ts +0 -7
  567. package/themes/_generator/tokens/font/font.transforms.js +0 -36
  568. package/themes/_generator/tokens/fontWeight/fontWeight.types.d.ts +0 -4
  569. package/themes/_generator/tokens/transforms.d.ts +0 -11
  570. package/themes/_generator/tokens/transforms.js +0 -26
  571. package/themes/_generator/tokens/types.d.ts +0 -52
  572. package/themes/_generator/tokens/unit/unit.types.d.ts +0 -7
  573. package/themes/_generator/transform.js +0 -62
  574. package/themes/_generator/types.d.ts +0 -15
  575. package/themes/_generator/utilities/color.d.ts +0 -90
  576. package/themes/_generator/utilities/color.js +0 -364
  577. package/themes/_generator/utilities/generateBackgroundColors.js +0 -53
  578. package/themes/_generator/utilities/generateColors.d.ts +0 -11
  579. package/themes/_generator/utilities/generateColors.js +0 -131
  580. package/themes/_generator/utilities/generateUnits.js +0 -17
  581. package/themes/_generator/utilities/mergeDefinitions.js +0 -17
  582. package/themes/_generator/utilities/tests/color.test.js +0 -63
  583. package/themes/_generator/utilities/tests/generateColors.test.js +0 -20
  584. package/themes/figma/theme.css +0 -1
  585. package/themes/index.d.ts +0 -12
  586. package/themes/reshaped/theme.css +0 -1
  587. package/themes/slate/theme.css +0 -1
  588. package/types/global.d.ts +0 -29
  589. package/utilities/Chain.js +0 -63
  590. package/utilities/a11y/TrapFocus.js +0 -127
  591. package/utilities/a11y/TrapScreenReader.js +0 -39
  592. package/utilities/a11y/focus.js +0 -90
  593. package/utilities/dom.js +0 -18
  594. package/utilities/helpers.js +0 -135
  595. package/utilities/storybook/Example.js +0 -14
  596. package/utilities/storybook/Placeholder.js +0 -17
  597. /package/{bundle.d.ts → dist/bundle.d.ts} +0 -0
  598. /package/{cli → dist/cjs/cli}/theming/index.d.ts +0 -0
  599. /package/{cli → dist/cjs/cli}/theming/reshaped.config.d.ts +0 -0
  600. /package/{config → dist/cjs/config}/postcss.d.ts +0 -0
  601. /package/{config → dist/cjs/config}/postcss.js +0 -0
  602. /package/{config → dist/cjs/config}/tailwind.d.ts +0 -0
  603. /package/{config → dist/cjs/config}/tailwind.js +0 -0
  604. /package/{themes → dist/cjs/themes}/_generator/constants.d.ts +0 -0
  605. /package/{themes → dist/cjs/themes}/_generator/constants.js +0 -0
  606. /package/{themes → dist/cjs/themes}/_generator/definitions/figma.d.ts +0 -0
  607. /package/{themes → dist/cjs/themes}/_generator/definitions/reshaped.d.ts +0 -0
  608. /package/{themes → dist/cjs/themes}/_generator/definitions/slate.d.ts +0 -0
  609. /package/{themes → dist/cjs/themes}/_generator/tokens/color/color.transforms.d.ts +0 -0
  610. /package/{themes → dist/cjs/themes}/_generator/tokens/color/color.transforms.js +0 -0
  611. /package/{themes → dist/cjs/themes}/_generator/tokens/color/color.types.js +0 -0
  612. /package/{themes → dist/cjs/themes}/_generator/tokens/duration/duration.transforms.d.ts +0 -0
  613. /package/{themes → dist/cjs/themes}/_generator/tokens/duration/duration.transforms.js +0 -0
  614. /package/{themes → dist/cjs/themes}/_generator/tokens/duration/duration.types.d.ts +0 -0
  615. /package/{themes → dist/cjs/themes}/_generator/tokens/duration/duration.types.js +0 -0
  616. /package/{themes → dist/cjs/themes}/_generator/tokens/easing/easing.transforms.d.ts +0 -0
  617. /package/{themes → dist/cjs/themes}/_generator/tokens/easing/easing.transforms.js +0 -0
  618. /package/{themes → dist/cjs/themes}/_generator/tokens/easing/easing.types.d.ts +0 -0
  619. /package/{themes → dist/cjs/themes}/_generator/tokens/easing/easing.types.js +0 -0
  620. /package/{themes → dist/cjs/themes}/_generator/tokens/font/font.transforms.d.ts +0 -0
  621. /package/{themes → dist/cjs/themes}/_generator/tokens/font/font.types.d.ts +0 -0
  622. /package/{themes → dist/cjs/themes}/_generator/tokens/font/font.types.js +0 -0
  623. /package/{themes → dist/cjs/themes}/_generator/tokens/fontFamily/fontFamily.transforms.d.ts +0 -0
  624. /package/{themes → dist/cjs/themes}/_generator/tokens/fontFamily/fontFamily.transforms.js +0 -0
  625. /package/{themes → dist/cjs/themes}/_generator/tokens/fontFamily/fontFamily.types.d.ts +0 -0
  626. /package/{themes → dist/cjs/themes}/_generator/tokens/fontFamily/fontFamily.types.js +0 -0
  627. /package/{themes → dist/cjs/themes}/_generator/tokens/fontWeight/fontWeight.transforms.d.ts +0 -0
  628. /package/{themes → dist/cjs/themes}/_generator/tokens/fontWeight/fontWeight.transforms.js +0 -0
  629. /package/{themes → dist/cjs/themes}/_generator/tokens/fontWeight/fontWeight.types.js +0 -0
  630. /package/{themes/_generator/tokens/shadow/shadow.types.js → dist/cjs/themes/_generator/tokens/radius/radius.types.js} +0 -0
  631. /package/{themes → dist/cjs/themes}/_generator/tokens/shadow/shadow.transforms.d.ts +0 -0
  632. /package/{themes → dist/cjs/themes}/_generator/tokens/shadow/shadow.transforms.js +0 -0
  633. /package/{themes → dist/cjs/themes}/_generator/tokens/shadow/shadow.types.d.ts +0 -0
  634. /package/{themes/_generator/tokens/types.js → dist/cjs/themes/_generator/tokens/shadow/shadow.types.js} +0 -0
  635. /package/{themes/_generator → dist/cjs/themes/_generator/tokens}/types.js +0 -0
  636. /package/{themes → dist/cjs/themes}/_generator/tokens/unit/unit.transforms.d.ts +0 -0
  637. /package/{themes → dist/cjs/themes}/_generator/tokens/unit/unit.transforms.js +0 -0
  638. /package/{themes → dist/cjs/themes}/_generator/tokens/unit/unit.types.js +0 -0
  639. /package/{themes → dist/cjs/themes}/_generator/tokens/viewport/viewport.transforms.d.ts +0 -0
  640. /package/{themes → dist/cjs/themes}/_generator/tokens/viewport/viewport.transforms.js +0 -0
  641. /package/{themes → dist/cjs/themes}/_generator/tokens/viewport/viewport.types.d.ts +0 -0
  642. /package/{themes → dist/cjs/themes}/_generator/tokens/viewport/viewport.types.js +0 -0
  643. /package/{themes → dist/cjs/themes}/_generator/transform.d.ts +0 -0
  644. /package/{types/config.js → dist/cjs/themes/_generator/types.js} +0 -0
  645. /package/{themes → dist/cjs/themes}/_generator/utilities/css.d.ts +0 -0
  646. /package/{themes → dist/cjs/themes}/_generator/utilities/css.js +0 -0
  647. /package/{themes → dist/cjs/themes}/_generator/utilities/generateBackgroundColors.d.ts +0 -0
  648. /package/{themes → dist/cjs/themes}/_generator/utilities/generateUnits.d.ts +0 -0
  649. /package/{themes → dist/cjs/themes}/_generator/utilities/mergeDeep.d.ts +0 -0
  650. /package/{themes → dist/cjs/themes}/_generator/utilities/mergeDeep.js +0 -0
  651. /package/{themes → dist/cjs/themes}/_generator/utilities/mergeDefinitions.d.ts +0 -0
  652. /package/{themes → dist/cjs/themes}/_generator/utilities/resolveTokenReference.d.ts +0 -0
  653. /package/{themes → dist/cjs/themes}/_generator/utilities/resolveTokenReference.js +0 -0
  654. /package/{themes → dist/cjs/themes}/_generator/utilities/tests/color.test.d.ts +0 -0
  655. /package/{themes → dist/cjs/themes}/figma/media.css +0 -0
  656. /package/{themes → dist/cjs/themes}/fragments/twitter/theme.css +0 -0
  657. /package/{themes → dist/cjs/themes}/index.js +0 -0
  658. /package/{themes → dist/cjs/themes}/reshaped/media.css +0 -0
  659. /package/{themes → dist/cjs/themes}/slate/media.css +0 -0
  660. /package/{types → dist/cjs/types}/config.d.ts +0 -0
  661. /package/{utilities → dist/cjs/utilities}/string.d.ts +0 -0
  662. /package/{utilities → dist/cjs/utilities}/string.js +0 -0
  663. /package/{components → dist/components}/Accordion/Accordion.context.d.ts +0 -0
  664. /package/{components → dist/components}/Accordion/Accordion.context.js +0 -0
  665. /package/{components → dist/components}/Accordion/Accordion.d.ts +0 -0
  666. /package/{components → dist/components}/Accordion/Accordion.module.css +0 -0
  667. /package/{components → dist/components}/Accordion/Accordion.types.js +0 -0
  668. /package/{components → dist/components}/Accordion/AccordionContent.d.ts +0 -0
  669. /package/{components → dist/components}/Accordion/AccordionContent.js +0 -0
  670. /package/{components → dist/components}/Accordion/AccordionControlled.d.ts +0 -0
  671. /package/{components → dist/components}/Accordion/AccordionTrigger.d.ts +0 -0
  672. /package/{components → dist/components}/Accordion/AccordionUncontrolled.d.ts +0 -0
  673. /package/{components → dist/components}/Accordion/index.d.ts +0 -0
  674. /package/{components → dist/components}/Accordion/index.js +0 -0
  675. /package/{components → dist/components}/Accordion/tests/Accordion.stories.d.ts +0 -0
  676. /package/{components → dist/components}/Accordion/tests/Accordion.stories.js +0 -0
  677. /package/{components → dist/components}/ActionBar/ActionBar.d.ts +0 -0
  678. /package/{components → dist/components}/ActionBar/ActionBar.js +0 -0
  679. /package/{components → dist/components}/ActionBar/ActionBar.module.css +0 -0
  680. /package/{components → dist/components}/ActionBar/ActionBar.types.js +0 -0
  681. /package/{components → dist/components}/ActionBar/index.d.ts +0 -0
  682. /package/{components → dist/components}/ActionBar/index.js +0 -0
  683. /package/{components → dist/components}/ActionBar/tests/ActionBar.stories.d.ts +0 -0
  684. /package/{components → dist/components}/ActionBar/tests/ActionBar.stories.js +0 -0
  685. /package/{components → dist/components}/Actionable/Actionable.d.ts +0 -0
  686. /package/{components → dist/components}/Actionable/Actionable.module.css +0 -0
  687. /package/{components → dist/components}/Actionable/Actionable.types.js +0 -0
  688. /package/{components → dist/components}/Actionable/index.d.ts +0 -0
  689. /package/{components → dist/components}/Actionable/index.js +0 -0
  690. /package/{components → dist/components}/Actionable/tests/Actionable.stories.d.ts +0 -0
  691. /package/{components → dist/components}/Actionable/tests/Actionable.stories.js +0 -0
  692. /package/{components → dist/components}/Alert/Alert.d.ts +0 -0
  693. /package/{components → dist/components}/Alert/Alert.types.js +0 -0
  694. /package/{components → dist/components}/Alert/index.d.ts +0 -0
  695. /package/{components → dist/components}/Alert/index.js +0 -0
  696. /package/{components → dist/components}/Alert/tests/Alert.stories.d.ts +0 -0
  697. /package/{components → dist/components}/Autocomplete/Autocomplete.d.ts +0 -0
  698. /package/{components → dist/components}/Autocomplete/Autocomplete.types.js +0 -0
  699. /package/{components → dist/components}/Autocomplete/index.d.ts +0 -0
  700. /package/{components → dist/components}/Autocomplete/index.js +0 -0
  701. /package/{components → dist/components}/Autocomplete/tests/Autocomplete.stories.d.ts +0 -0
  702. /package/{components → dist/components}/Autocomplete/tests/Autocomplete.stories.js +0 -0
  703. /package/{components → dist/components}/Avatar/Avatar.d.ts +0 -0
  704. /package/{components → dist/components}/Avatar/Avatar.module.css +0 -0
  705. /package/{components → dist/components}/Avatar/Avatar.types.js +0 -0
  706. /package/{components → dist/components}/Avatar/index.d.ts +0 -0
  707. /package/{components → dist/components}/Avatar/index.js +0 -0
  708. /package/{components → dist/components}/Avatar/tests/Avatar.stories.d.ts +0 -0
  709. /package/{components → dist/components}/Avatar/tests/Avatar.stories.js +0 -0
  710. /package/{components → dist/components}/Badge/Badge.types.js +0 -0
  711. /package/{components → dist/components}/Badge/BadgeContainer.d.ts +0 -0
  712. /package/{components → dist/components}/Badge/index.d.ts +0 -0
  713. /package/{components → dist/components}/Badge/index.js +0 -0
  714. /package/{components → dist/components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
  715. /package/{components → dist/components}/Breadcrumbs/Breadcrumbs.types.js +0 -0
  716. /package/{components → dist/components}/Breadcrumbs/BreadcrumbsItem.d.ts +0 -0
  717. /package/{components → dist/components}/Breadcrumbs/BreadcrumbsItem.js +0 -0
  718. /package/{components → dist/components}/Breadcrumbs/index.d.ts +0 -0
  719. /package/{components → dist/components}/Breadcrumbs/index.js +0 -0
  720. /package/{components → dist/components}/Breadcrumbs/tests/Breadcrumbs.stories.d.ts +0 -0
  721. /package/{components → dist/components}/Breadcrumbs/tests/Breadcrumbs.stories.js +0 -0
  722. /package/{components → dist/components}/Button/Button.d.ts +0 -0
  723. /package/{components → dist/components}/Button/Button.types.js +0 -0
  724. /package/{components → dist/components}/Button/ButtonAligner.d.ts +0 -0
  725. /package/{components → dist/components}/Button/ButtonGroup.d.ts +0 -0
  726. /package/{components → dist/components}/Button/index.d.ts +0 -0
  727. /package/{components → dist/components}/Button/index.js +0 -0
  728. /package/{components → dist/components}/Button/tests/Button.stories.d.ts +0 -0
  729. /package/{components → dist/components}/Calendar/Calendar.d.ts +0 -0
  730. /package/{components → dist/components}/Calendar/Calendar.types.d.ts +0 -0
  731. /package/{components → dist/components}/Calendar/Calendar.types.js +0 -0
  732. /package/{components → dist/components}/Calendar/Calendar.utils.d.ts +0 -0
  733. /package/{components → dist/components}/Calendar/CalendarControlled.d.ts +0 -0
  734. /package/{components → dist/components}/Calendar/CalendarControls.d.ts +0 -0
  735. /package/{components → dist/components}/Calendar/CalendarDate.d.ts +0 -0
  736. /package/{components → dist/components}/Calendar/CalendarMonth.d.ts +0 -0
  737. /package/{components → dist/components}/Calendar/CalendarUncontrolled.d.ts +0 -0
  738. /package/{components → dist/components}/Calendar/CalendarYear.d.ts +0 -0
  739. /package/{components → dist/components}/Calendar/index.d.ts +0 -0
  740. /package/{components → dist/components}/Calendar/index.js +0 -0
  741. /package/{components → dist/components}/Calendar/tests/Calendar.stories.d.ts +0 -0
  742. /package/{components → dist/components}/Calendar/tests/Calendar.stories.js +0 -0
  743. /package/{components → dist/components}/Calendar/useCalendarKeyboardNavigation.d.ts +0 -0
  744. /package/{components → dist/components}/Card/Card.types.js +0 -0
  745. /package/{components → dist/components}/Card/index.d.ts +0 -0
  746. /package/{components → dist/components}/Card/index.js +0 -0
  747. /package/{components → dist/components}/Card/tests/Card.stories.js +0 -0
  748. /package/{components → dist/components}/Carousel/Carousel.d.ts +0 -0
  749. /package/{components → dist/components}/Carousel/Carousel.module.css +0 -0
  750. /package/{components → dist/components}/Carousel/Carousel.types.js +0 -0
  751. /package/{components → dist/components}/Carousel/CarouselControl.d.ts +0 -0
  752. /package/{components → dist/components}/Carousel/index.d.ts +0 -0
  753. /package/{components → dist/components}/Carousel/index.js +0 -0
  754. /package/{components → dist/components}/Carousel/tests/Carousel.stories.d.ts +0 -0
  755. /package/{components → dist/components}/Carousel/tests/Carousel.stories.js +0 -0
  756. /package/{components → dist/components}/Checkbox/Checkbox.d.ts +0 -0
  757. /package/{components → dist/components}/Checkbox/Checkbox.types.js +0 -0
  758. /package/{components → dist/components}/Checkbox/index.d.ts +0 -0
  759. /package/{components → dist/components}/Checkbox/index.js +0 -0
  760. /package/{components → dist/components}/Checkbox/tests/Checkbox.stories.d.ts +0 -0
  761. /package/{components → dist/components}/Checkbox/tests/Checkbox.stories.js +0 -0
  762. /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.context.d.ts +0 -0
  763. /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.context.js +0 -0
  764. /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.d.ts +0 -0
  765. /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.types.d.ts +0 -0
  766. /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.types.js +0 -0
  767. /package/{components → dist/components}/CheckboxGroup/CheckboxGroupControlled.d.ts +0 -0
  768. /package/{components → dist/components}/CheckboxGroup/CheckboxGroupControlled.js +0 -0
  769. /package/{components → dist/components}/CheckboxGroup/CheckboxGroupUncontrolled.d.ts +0 -0
  770. /package/{components → dist/components}/CheckboxGroup/index.d.ts +0 -0
  771. /package/{components → dist/components}/CheckboxGroup/index.js +0 -0
  772. /package/{components → dist/components}/CheckboxGroup/tests/CheckboxGroup.stories.d.ts +0 -0
  773. /package/{components → dist/components}/CheckboxGroup/tests/CheckboxGroup.stories.js +0 -0
  774. /package/{components → dist/components}/Container/Container.d.ts +0 -0
  775. /package/{components → dist/components}/Container/Container.module.css +0 -0
  776. /package/{components → dist/components}/Container/Container.types.js +0 -0
  777. /package/{components → dist/components}/Container/index.d.ts +0 -0
  778. /package/{components → dist/components}/Container/index.js +0 -0
  779. /package/{components → dist/components}/Dismissible/Dismissible.d.ts +0 -0
  780. /package/{components → dist/components}/Dismissible/Dismissible.module.css +0 -0
  781. /package/{components → dist/components}/Dismissible/Dismissible.types.js +0 -0
  782. /package/{components → dist/components}/Dismissible/index.d.ts +0 -0
  783. /package/{components → dist/components}/Dismissible/index.js +0 -0
  784. /package/{components → dist/components}/Dismissible/tests/Dismissible.stories.d.ts +0 -0
  785. /package/{components → dist/components}/Dismissible/tests/Dismissible.stories.js +0 -0
  786. /package/{components → dist/components}/Divider/Divider.d.ts +0 -0
  787. /package/{components → dist/components}/Divider/Divider.module.css +0 -0
  788. /package/{components → dist/components}/Divider/Divider.types.js +0 -0
  789. /package/{components → dist/components}/Divider/index.d.ts +0 -0
  790. /package/{components → dist/components}/Divider/index.js +0 -0
  791. /package/{components → dist/components}/Divider/tests/Divider.stories.d.ts +0 -0
  792. /package/{components → dist/components}/Divider/tests/Divider.stories.js +0 -0
  793. /package/{components → dist/components}/DropdownMenu/DropdownMenu.d.ts +0 -0
  794. /package/{components → dist/components}/DropdownMenu/DropdownMenu.module.css +0 -0
  795. /package/{components → dist/components}/DropdownMenu/DropdownMenu.types.d.ts +0 -0
  796. /package/{components → dist/components}/DropdownMenu/DropdownMenu.types.js +0 -0
  797. /package/{components → dist/components}/DropdownMenu/index.d.ts +0 -0
  798. /package/{components → dist/components}/DropdownMenu/index.js +0 -0
  799. /package/{components → dist/components}/DropdownMenu/tests/DropdownMenu.stories.d.ts +0 -0
  800. /package/{components → dist/components}/DropdownMenu/tests/DropdownMenu.stories.js +0 -0
  801. /package/{components → dist/components}/FileUpload/FileUpload.d.ts +0 -0
  802. /package/{components → dist/components}/FileUpload/FileUpload.module.css +0 -0
  803. /package/{components → dist/components}/FileUpload/FileUpload.types.js +0 -0
  804. /package/{components → dist/components}/FileUpload/index.d.ts +0 -0
  805. /package/{components → dist/components}/FileUpload/index.js +0 -0
  806. /package/{components → dist/components}/FileUpload/tests/FileUpload.stories.d.ts +0 -0
  807. /package/{components → dist/components}/FileUpload/tests/FileUpload.stories.js +0 -0
  808. /package/{components → dist/components}/FormControl/FormControl.context.js +0 -0
  809. /package/{components → dist/components}/FormControl/FormControl.js +0 -0
  810. /package/{components → dist/components}/FormControl/FormControl.module.css +0 -0
  811. /package/{components → dist/components}/FormControl/FormControl.types.d.ts +0 -0
  812. /package/{components → dist/components}/FormControl/FormControl.types.js +0 -0
  813. /package/{components → dist/components}/FormControl/FormControl.utilities.d.ts +0 -0
  814. /package/{components → dist/components}/FormControl/FormControl.utilities.js +0 -0
  815. /package/{components → dist/components}/FormControl/FormControlCaption.d.ts +0 -0
  816. /package/{components → dist/components}/FormControl/FormControlCaption.js +0 -0
  817. /package/{components → dist/components}/FormControl/FormControlClient.d.ts +0 -0
  818. /package/{components → dist/components}/FormControl/FormControlClient.js +0 -0
  819. /package/{components → dist/components}/FormControl/FormControlError.d.ts +0 -0
  820. /package/{components → dist/components}/FormControl/FormControlError.js +0 -0
  821. /package/{components → dist/components}/FormControl/FormControlHelper.d.ts +0 -0
  822. /package/{components → dist/components}/FormControl/FormControlHelper.js +0 -0
  823. /package/{components → dist/components}/FormControl/FormControlLabel.d.ts +0 -0
  824. /package/{components → dist/components}/FormControl/index.d.ts +0 -0
  825. /package/{components → dist/components}/FormControl/index.js +0 -0
  826. /package/{components → dist/components}/FormControl/tests/FormControl.stories.js +0 -0
  827. /package/{components → dist/components}/Hidden/Hidden.d.ts +0 -0
  828. /package/{components → dist/components}/Hidden/Hidden.types.js +0 -0
  829. /package/{components → dist/components}/Hidden/index.d.ts +0 -0
  830. /package/{components → dist/components}/Hidden/index.js +0 -0
  831. /package/{components → dist/components}/HiddenVisually/HiddenVisually.d.ts +0 -0
  832. /package/{components → dist/components}/HiddenVisually/HiddenVisually.js +0 -0
  833. /package/{components → dist/components}/HiddenVisually/HiddenVisually.module.css +0 -0
  834. /package/{components → dist/components}/HiddenVisually/HiddenVisually.types.d.ts +0 -0
  835. /package/{components → dist/components}/HiddenVisually/HiddenVisually.types.js +0 -0
  836. /package/{components → dist/components}/HiddenVisually/index.d.ts +0 -0
  837. /package/{components → dist/components}/HiddenVisually/index.js +0 -0
  838. /package/{components → dist/components}/HiddenVisually/tests/HiddenVisually.stories.d.ts +0 -0
  839. /package/{components → dist/components}/HiddenVisually/tests/HiddenVisually.stories.js +0 -0
  840. /package/{components → dist/components}/Hotkey/Hotkey.d.ts +0 -0
  841. /package/{components → dist/components}/Hotkey/Hotkey.js +0 -0
  842. /package/{components → dist/components}/Hotkey/Hotkey.types.js +0 -0
  843. /package/{components → dist/components}/Hotkey/index.d.ts +0 -0
  844. /package/{components → dist/components}/Hotkey/index.js +0 -0
  845. /package/{components → dist/components}/Hotkey/tests/Hotkey.stories.d.ts +0 -0
  846. /package/{components → dist/components}/Icon/Icon.d.ts +0 -0
  847. /package/{components → dist/components}/Icon/Icon.module.css +0 -0
  848. /package/{components → dist/components}/Icon/Icon.types.js +0 -0
  849. /package/{components → dist/components}/Icon/index.d.ts +0 -0
  850. /package/{components → dist/components}/Icon/index.js +0 -0
  851. /package/{components → dist/components}/Icon/tests/Icon.stories.d.ts +0 -0
  852. /package/{components → dist/components}/Icon/tests/Icon.stories.js +0 -0
  853. /package/{components → dist/components}/Image/Image.d.ts +0 -0
  854. /package/{components → dist/components}/Image/Image.module.css +0 -0
  855. /package/{components → dist/components}/Image/Image.types.js +0 -0
  856. /package/{components → dist/components}/Image/index.d.ts +0 -0
  857. /package/{components → dist/components}/Image/index.js +0 -0
  858. /package/{components → dist/components}/Image/tests/Image.stories.d.ts +0 -0
  859. /package/{components → dist/components}/Image/tests/Image.stories.js +0 -0
  860. /package/{components → dist/components}/Link/Link.js +0 -0
  861. /package/{components → dist/components}/Link/Link.types.js +0 -0
  862. /package/{components → dist/components}/Link/index.d.ts +0 -0
  863. /package/{components → dist/components}/Link/index.js +0 -0
  864. /package/{components → dist/components}/Loader/Loader.d.ts +0 -0
  865. /package/{components → dist/components}/Loader/Loader.types.js +0 -0
  866. /package/{components → dist/components}/Loader/index.d.ts +0 -0
  867. /package/{components → dist/components}/Loader/index.js +0 -0
  868. /package/{components → dist/components}/Loader/tests/Loader.stories.d.ts +0 -0
  869. /package/{components → dist/components}/MenuItem/MenuItem.d.ts +0 -0
  870. /package/{components → dist/components}/MenuItem/MenuItem.types.js +0 -0
  871. /package/{components → dist/components}/MenuItem/MenuItemAligner.d.ts +0 -0
  872. /package/{components → dist/components}/MenuItem/index.d.ts +0 -0
  873. /package/{components → dist/components}/MenuItem/index.js +0 -0
  874. /package/{components → dist/components}/MenuItem/tests/MenuItem.stories.d.ts +0 -0
  875. /package/{components → dist/components}/Modal/Modal.d.ts +0 -0
  876. /package/{components → dist/components}/Modal/Modal.types.js +0 -0
  877. /package/{components → dist/components}/Modal/index.d.ts +0 -0
  878. /package/{components → dist/components}/Modal/index.js +0 -0
  879. /package/{components → dist/components}/Overlay/Overlay.d.ts +0 -0
  880. /package/{components → dist/components}/Overlay/Overlay.types.js +0 -0
  881. /package/{components → dist/components}/Overlay/index.d.ts +0 -0
  882. /package/{components → dist/components}/Overlay/index.js +0 -0
  883. /package/{components → dist/components}/Overlay/tests/Overlay.stories.d.ts +0 -0
  884. /package/{components → dist/components}/Overlay/tests/Overlay.stories.js +0 -0
  885. /package/{components → dist/components}/Pagination/Pagination.d.ts +0 -0
  886. /package/{components → dist/components}/Pagination/Pagination.module.css +0 -0
  887. /package/{components → dist/components}/Pagination/Pagination.types.js +0 -0
  888. /package/{components → dist/components}/Pagination/PaginationControlled.d.ts +0 -0
  889. /package/{components → dist/components}/Pagination/PaginationUncontrolled.d.ts +0 -0
  890. /package/{components → dist/components}/Pagination/index.d.ts +0 -0
  891. /package/{components → dist/components}/Pagination/index.js +0 -0
  892. /package/{components → dist/components}/Pagination/tests/Pagination.stories.d.ts +0 -0
  893. /package/{components → dist/components}/Pagination/tests/Pagination.stories.js +0 -0
  894. /package/{components → dist/components}/PinField/PinField.constants.d.ts +0 -0
  895. /package/{components → dist/components}/PinField/PinField.constants.js +0 -0
  896. /package/{components → dist/components}/PinField/PinField.d.ts +0 -0
  897. /package/{components → dist/components}/PinField/PinField.module.css +0 -0
  898. /package/{components → dist/components}/PinField/PinField.types.js +0 -0
  899. /package/{components → dist/components}/PinField/PinFieldControlled.d.ts +0 -0
  900. /package/{components → dist/components}/PinField/PinFieldUncontrolled.d.ts +0 -0
  901. /package/{components → dist/components}/PinField/index.d.ts +0 -0
  902. /package/{components → dist/components}/PinField/index.js +0 -0
  903. /package/{components → dist/components}/PinField/tests/PinField.stories.d.ts +0 -0
  904. /package/{components → dist/components}/PinField/tests/PinField.stories.js +0 -0
  905. /package/{components → dist/components}/Popover/Popover.d.ts +0 -0
  906. /package/{components → dist/components}/Popover/Popover.types.d.ts +0 -0
  907. /package/{components → dist/components}/Popover/Popover.types.js +0 -0
  908. /package/{components → dist/components}/Popover/index.d.ts +0 -0
  909. /package/{components → dist/components}/Popover/index.js +0 -0
  910. /package/{components → dist/components}/Popover/tests/Popover.stories.d.ts +0 -0
  911. /package/{components → dist/components}/Popover/tests/Popover.stories.js +0 -0
  912. /package/{components → dist/components}/Progress/Progress.d.ts +0 -0
  913. /package/{components → dist/components}/Progress/Progress.types.js +0 -0
  914. /package/{components → dist/components}/Progress/index.d.ts +0 -0
  915. /package/{components → dist/components}/Progress/index.js +0 -0
  916. /package/{components → dist/components}/Progress/tests/Progress.stories.d.ts +0 -0
  917. /package/{components → dist/components}/Radio/Radio.d.ts +0 -0
  918. /package/{components → dist/components}/Radio/Radio.types.js +0 -0
  919. /package/{components → dist/components}/Radio/index.d.ts +0 -0
  920. /package/{components → dist/components}/Radio/index.js +0 -0
  921. /package/{components → dist/components}/Radio/tests/Radio.stories.d.ts +0 -0
  922. /package/{components → dist/components}/Radio/tests/Radio.stories.js +0 -0
  923. /package/{components → dist/components}/RadioGroup/RadioGroup.context.d.ts +0 -0
  924. /package/{components → dist/components}/RadioGroup/RadioGroup.context.js +0 -0
  925. /package/{components → dist/components}/RadioGroup/RadioGroup.d.ts +0 -0
  926. /package/{components → dist/components}/RadioGroup/RadioGroup.types.d.ts +0 -0
  927. /package/{components → dist/components}/RadioGroup/RadioGroup.types.js +0 -0
  928. /package/{components → dist/components}/RadioGroup/RadioGroupControlled.d.ts +0 -0
  929. /package/{components → dist/components}/RadioGroup/RadioGroupControlled.js +0 -0
  930. /package/{components → dist/components}/RadioGroup/RadioGroupUncontrolled.d.ts +0 -0
  931. /package/{components → dist/components}/RadioGroup/index.d.ts +0 -0
  932. /package/{components → dist/components}/RadioGroup/index.js +0 -0
  933. /package/{components → dist/components}/RadioGroup/tests/RadioGroup.stories.d.ts +0 -0
  934. /package/{components → dist/components}/RadioGroup/tests/RadioGroup.stories.js +0 -0
  935. /package/{components → dist/components}/Reshaped/Reshaped.d.ts +0 -0
  936. /package/{components → dist/components}/Reshaped/Reshaped.module.css +0 -0
  937. /package/{components → dist/components}/Reshaped/Reshaped.types.d.ts +0 -0
  938. /package/{components → dist/components}/Reshaped/Reshaped.types.js +0 -0
  939. /package/{components → dist/components}/Reshaped/index.d.ts +0 -0
  940. /package/{components → dist/components}/Reshaped/index.js +0 -0
  941. /package/{components → dist/components}/Scrim/Scrim.d.ts +0 -0
  942. /package/{components → dist/components}/Scrim/Scrim.module.css +0 -0
  943. /package/{components → dist/components}/Scrim/Scrim.types.js +0 -0
  944. /package/{components → dist/components}/Scrim/index.d.ts +0 -0
  945. /package/{components → dist/components}/Scrim/index.js +0 -0
  946. /package/{components → dist/components}/Scrim/tests/Scrim.stories.d.ts +0 -0
  947. /package/{components → dist/components}/Scrim/tests/Scrim.stories.js +0 -0
  948. /package/{components → dist/components}/ScrollArea/ScrollArea.d.ts +0 -0
  949. /package/{components → dist/components}/ScrollArea/ScrollArea.types.js +0 -0
  950. /package/{components → dist/components}/ScrollArea/index.d.ts +0 -0
  951. /package/{components → dist/components}/ScrollArea/index.js +0 -0
  952. /package/{components → dist/components}/ScrollArea/tests/ScrollArea.stories.d.ts +0 -0
  953. /package/{components → dist/components}/ScrollArea/tests/ScrollArea.stories.js +0 -0
  954. /package/{components → dist/components}/Select/Select.d.ts +0 -0
  955. /package/{components → dist/components}/Select/Select.types.js +0 -0
  956. /package/{components → dist/components}/Select/index.d.ts +0 -0
  957. /package/{components → dist/components}/Select/index.js +0 -0
  958. /package/{components → dist/components}/Select/tests/Select.stories.d.ts +0 -0
  959. /package/{components → dist/components}/Select/tests/Select.stories.js +0 -0
  960. /package/{components → dist/components}/Skeleton/Skeleton.d.ts +0 -0
  961. /package/{components → dist/components}/Skeleton/Skeleton.js +0 -0
  962. /package/{components → dist/components}/Skeleton/Skeleton.module.css +0 -0
  963. /package/{components → dist/components}/Skeleton/Skeleton.types.js +0 -0
  964. /package/{components → dist/components}/Skeleton/index.d.ts +0 -0
  965. /package/{components → dist/components}/Skeleton/index.js +0 -0
  966. /package/{components → dist/components}/Skeleton/tests/Skeleton.stories.d.ts +0 -0
  967. /package/{components → dist/components}/Skeleton/tests/Skeleton.stories.js +0 -0
  968. /package/{components → dist/components}/Slider/Slider.d.ts +0 -0
  969. /package/{components → dist/components}/Slider/Slider.types.js +0 -0
  970. /package/{components → dist/components}/Slider/Slider.utilities.d.ts +0 -0
  971. /package/{components → dist/components}/Slider/SliderControlled.d.ts +0 -0
  972. /package/{components → dist/components}/Slider/SliderThumb.d.ts +0 -0
  973. /package/{components → dist/components}/Slider/SliderThumb.js +0 -0
  974. /package/{components → dist/components}/Slider/SliderUncontrolled.d.ts +0 -0
  975. /package/{components → dist/components}/Slider/index.d.ts +0 -0
  976. /package/{components → dist/components}/Slider/index.js +0 -0
  977. /package/{components → dist/components}/Slider/tests/Slider.stories.d.ts +0 -0
  978. /package/{components → dist/components}/Stepper/Stepper.d.ts +0 -0
  979. /package/{components → dist/components}/Stepper/Stepper.module.css +0 -0
  980. /package/{components → dist/components}/Stepper/Stepper.types.js +0 -0
  981. /package/{components → dist/components}/Stepper/index.d.ts +0 -0
  982. /package/{components → dist/components}/Stepper/index.js +0 -0
  983. /package/{components → dist/components}/Stepper/tests/Stepper.stories.d.ts +0 -0
  984. /package/{components → dist/components}/Stepper/tests/Stepper.stories.js +0 -0
  985. /package/{components → dist/components}/Switch/Switch.d.ts +0 -0
  986. /package/{components → dist/components}/Switch/Switch.types.js +0 -0
  987. /package/{components → dist/components}/Switch/index.d.ts +0 -0
  988. /package/{components → dist/components}/Switch/index.js +0 -0
  989. /package/{components → dist/components}/Switch/tests/Switch.stories.d.ts +0 -0
  990. /package/{components → dist/components}/Table/Table.d.ts +0 -0
  991. /package/{components → dist/components}/Table/Table.types.d.ts +0 -0
  992. /package/{components → dist/components}/Table/Table.types.js +0 -0
  993. /package/{components → dist/components}/Table/index.d.ts +0 -0
  994. /package/{components → dist/components}/Table/index.js +0 -0
  995. /package/{components → dist/components}/Table/tests/Table.stories.d.ts +0 -0
  996. /package/{components → dist/components}/Table/tests/Table.stories.js +0 -0
  997. /package/{components → dist/components}/Tabs/Tabs.d.ts +0 -0
  998. /package/{components → dist/components}/Tabs/Tabs.types.js +0 -0
  999. /package/{components → dist/components}/Tabs/TabsControlled.d.ts +0 -0
  1000. /package/{components → dist/components}/Tabs/TabsControlled.js +0 -0
  1001. /package/{components → dist/components}/Tabs/TabsItem.d.ts +0 -0
  1002. /package/{components → dist/components}/Tabs/TabsList.d.ts +0 -0
  1003. /package/{components → dist/components}/Tabs/TabsPanel.d.ts +0 -0
  1004. /package/{components → dist/components}/Tabs/TabsPanel.js +0 -0
  1005. /package/{components → dist/components}/Tabs/TabsUncontrolled.d.ts +0 -0
  1006. /package/{components → dist/components}/Tabs/index.d.ts +0 -0
  1007. /package/{components → dist/components}/Tabs/index.js +0 -0
  1008. /package/{components → dist/components}/Tabs/tests/Tabs.stories.d.ts +0 -0
  1009. /package/{components → dist/components}/Tabs/tests/Tabs.stories.js +0 -0
  1010. /package/{components → dist/components}/Text/Text.d.ts +0 -0
  1011. /package/{components → dist/components}/Text/Text.module.css +0 -0
  1012. /package/{components → dist/components}/Text/Text.types.js +0 -0
  1013. /package/{components → dist/components}/Text/index.d.ts +0 -0
  1014. /package/{components → dist/components}/Text/index.js +0 -0
  1015. /package/{components → dist/components}/Text/tests/Text.stories.d.ts +0 -0
  1016. /package/{components → dist/components}/TextArea/TextArea.d.ts +0 -0
  1017. /package/{components → dist/components}/TextArea/TextArea.types.js +0 -0
  1018. /package/{components → dist/components}/TextArea/index.d.ts +0 -0
  1019. /package/{components → dist/components}/TextArea/index.js +0 -0
  1020. /package/{components → dist/components}/TextArea/tests/TextArea.stories.d.ts +0 -0
  1021. /package/{components → dist/components}/TextArea/tests/TextArea.stories.js +0 -0
  1022. /package/{components → dist/components}/TextField/TextField.d.ts +0 -0
  1023. /package/{components → dist/components}/TextField/TextField.types.js +0 -0
  1024. /package/{components → dist/components}/TextField/index.d.ts +0 -0
  1025. /package/{components → dist/components}/TextField/index.js +0 -0
  1026. /package/{components → dist/components}/TextField/tests/TextField.stories.d.ts +0 -0
  1027. /package/{components → dist/components}/TextField/tests/TextField.stories.js +0 -0
  1028. /package/{components → dist/components}/Theme/GlobalColorMode.d.ts +0 -0
  1029. /package/{components → dist/components}/Theme/GlobalColorMode.js +0 -0
  1030. /package/{components → dist/components}/Theme/Theme.context.d.ts +0 -0
  1031. /package/{components → dist/components}/Theme/Theme.d.ts +0 -0
  1032. /package/{components → dist/components}/Theme/Theme.module.css +0 -0
  1033. /package/{components → dist/components}/Theme/Theme.types.js +0 -0
  1034. /package/{components → dist/components}/Theme/index.d.ts +0 -0
  1035. /package/{components → dist/components}/Theme/index.js +0 -0
  1036. /package/{components → dist/components}/Theme/tests/Theme.stories.d.ts +0 -0
  1037. /package/{components → dist/components}/Theme/tests/Theme.stories.js +0 -0
  1038. /package/{components → dist/components}/Timeline/Timeline.d.ts +0 -0
  1039. /package/{components → dist/components}/Timeline/Timeline.module.css +0 -0
  1040. /package/{components → dist/components}/Timeline/Timeline.types.js +0 -0
  1041. /package/{components → dist/components}/Timeline/index.d.ts +0 -0
  1042. /package/{components → dist/components}/Timeline/index.js +0 -0
  1043. /package/{components → dist/components}/Timeline/tests/Timeline.stories.d.ts +0 -0
  1044. /package/{components → dist/components}/Timeline/tests/Timeline.stories.js +0 -0
  1045. /package/{components → dist/components}/Toast/Toast.constants.d.ts +0 -0
  1046. /package/{components → dist/components}/Toast/Toast.context.d.ts +0 -0
  1047. /package/{components → dist/components}/Toast/Toast.context.js +0 -0
  1048. /package/{components → dist/components}/Toast/Toast.d.ts +0 -0
  1049. /package/{components → dist/components}/Toast/Toast.types.js +0 -0
  1050. /package/{components → dist/components}/Toast/ToastContainer.d.ts +0 -0
  1051. /package/{components → dist/components}/Toast/ToastProvider.d.ts +0 -0
  1052. /package/{components → dist/components}/Toast/ToastRegion.d.ts +0 -0
  1053. /package/{components → dist/components}/Toast/index.d.ts +0 -0
  1054. /package/{components → dist/components}/Toast/index.js +0 -0
  1055. /package/{components → dist/components}/Toast/tests/Toast.stories.d.ts +0 -0
  1056. /package/{components → dist/components}/Toast/tests/Toast.stories.js +0 -0
  1057. /package/{components → dist/components}/Toast/useToast.d.ts +0 -0
  1058. /package/{components → dist/components}/Toast/useToast.js +0 -0
  1059. /package/{components → dist/components}/Tooltip/Tooltip.d.ts +0 -0
  1060. /package/{components → dist/components}/Tooltip/Tooltip.js +0 -0
  1061. /package/{components → dist/components}/Tooltip/Tooltip.types.d.ts +0 -0
  1062. /package/{components → dist/components}/Tooltip/Tooltip.types.js +0 -0
  1063. /package/{components → dist/components}/Tooltip/index.d.ts +0 -0
  1064. /package/{components → dist/components}/Tooltip/index.js +0 -0
  1065. /package/{components → dist/components}/Tooltip/tests/Tooltip.stories.d.ts +0 -0
  1066. /package/{components → dist/components}/View/View.module.css +0 -0
  1067. /package/{components → dist/components}/View/View.types.d.ts +0 -0
  1068. /package/{components → dist/components}/View/View.types.js +0 -0
  1069. /package/{components → dist/components}/View/index.d.ts +0 -0
  1070. /package/{components → dist/components}/View/index.js +0 -0
  1071. /package/{components → dist/components}/_private/Aligner/Aligner.d.ts +0 -0
  1072. /package/{components → dist/components}/_private/Aligner/Aligner.module.css +0 -0
  1073. /package/{components → dist/components}/_private/Aligner/Aligner.types.js +0 -0
  1074. /package/{components → dist/components}/_private/Aligner/index.d.ts +0 -0
  1075. /package/{components → dist/components}/_private/Aligner/index.js +0 -0
  1076. /package/{components → dist/components}/_private/Expandable/Expandable.d.ts +0 -0
  1077. /package/{components → dist/components}/_private/Expandable/Expandable.types.d.ts +0 -0
  1078. /package/{components → dist/components}/_private/Expandable/Expandable.types.js +0 -0
  1079. /package/{components → dist/components}/_private/Expandable/index.d.ts +0 -0
  1080. /package/{components → dist/components}/_private/Expandable/index.js +0 -0
  1081. /package/{components → dist/components}/_private/Flyout/Flyout.d.ts +0 -0
  1082. /package/{components → dist/components}/_private/Flyout/Flyout.module.css +0 -0
  1083. /package/{components → dist/components}/_private/Flyout/Flyout.types.js +0 -0
  1084. /package/{components → dist/components}/_private/Flyout/FlyoutContent.d.ts +0 -0
  1085. /package/{components → dist/components}/_private/Flyout/FlyoutControlled.d.ts +0 -0
  1086. /package/{components → dist/components}/_private/Flyout/FlyoutTrigger.d.ts +0 -0
  1087. /package/{components → dist/components}/_private/Flyout/FlyoutUncontrolled.d.ts +0 -0
  1088. /package/{components → dist/components}/_private/Flyout/index.d.ts +0 -0
  1089. /package/{components → dist/components}/_private/Flyout/index.js +0 -0
  1090. /package/{components → dist/components}/_private/Flyout/tests/Flyout.stories.d.ts +0 -0
  1091. /package/{components → dist/components}/_private/Flyout/useFlyout.d.ts +0 -0
  1092. /package/{components → dist/components}/_private/Flyout/utilities/calculatePosition.d.ts +0 -0
  1093. /package/{components → dist/components}/_private/Flyout/utilities/calculatePosition.js +0 -0
  1094. /package/{components → dist/components}/_private/HiddenInput/HiddenInput.d.ts +0 -0
  1095. /package/{components → dist/components}/_private/HiddenInput/HiddenInput.module.css +0 -0
  1096. /package/{components → dist/components}/_private/HiddenInput/HiddenInput.types.d.ts +0 -0
  1097. /package/{components → dist/components}/_private/HiddenInput/HiddenInput.types.js +0 -0
  1098. /package/{components → dist/components}/_private/HiddenInput/index.d.ts +0 -0
  1099. /package/{components → dist/components}/_private/HiddenInput/index.js +0 -0
  1100. /package/{components → dist/components}/_private/Portal/Portal.d.ts +0 -0
  1101. /package/{components → dist/components}/_private/Portal/Portal.types.d.ts +0 -0
  1102. /package/{components → dist/components}/_private/Portal/Portal.types.js +0 -0
  1103. /package/{components → dist/components}/_private/Portal/index.d.ts +0 -0
  1104. /package/{components → dist/components}/_private/Portal/index.js +0 -0
  1105. /package/{components → dist/components}/_private/Portal/tests/Portal.stories.d.ts +0 -0
  1106. /package/{components → dist/components}/_private/Portal/tests/Portal.stories.js +0 -0
  1107. /package/{constants → dist/constants}/keys.d.ts +0 -0
  1108. /package/{constants → dist/constants}/keys.js +0 -0
  1109. /package/{constants → dist/constants}/timeouts.d.ts +0 -0
  1110. /package/{constants → dist/constants}/timeouts.js +0 -0
  1111. /package/{hooks → dist/hooks}/_private/useIsDismissible.d.ts +0 -0
  1112. /package/{hooks → dist/hooks}/_private/useOnClickOutside.d.ts +0 -0
  1113. /package/{hooks → dist/hooks}/_private/useOnClickOutside.js +0 -0
  1114. /package/{hooks → dist/hooks}/_private/useSingletonEnvironment.d.ts +0 -0
  1115. /package/{hooks → dist/hooks}/_private/useSingletonEnvironment.js +0 -0
  1116. /package/{hooks → dist/hooks}/_private/useSingletonHotkeys.d.ts +0 -0
  1117. /package/{hooks → dist/hooks}/_private/useSingletonKeyboardMode.d.ts +0 -0
  1118. /package/{hooks → dist/hooks}/_private/useSingletonKeyboardMode.js +0 -0
  1119. /package/{hooks → dist/hooks}/tests/useHotkeys.stories.d.ts +0 -0
  1120. /package/{hooks → dist/hooks}/tests/useResponsiveClientValue.stories.d.ts +0 -0
  1121. /package/{hooks → dist/hooks}/tests/useResponsiveClientValue.stories.js +0 -0
  1122. /package/{hooks → dist/hooks}/useElementId.d.ts +0 -0
  1123. /package/{hooks → dist/hooks}/useElementId.js +0 -0
  1124. /package/{hooks → dist/hooks}/useHotkeys.d.ts +0 -0
  1125. /package/{hooks → dist/hooks}/useIsomorphicLayoutEffect.d.ts +0 -0
  1126. /package/{hooks → dist/hooks}/useIsomorphicLayoutEffect.js +0 -0
  1127. /package/{hooks → dist/hooks}/useRTL.d.ts +0 -0
  1128. /package/{hooks → dist/hooks}/useRTL.js +0 -0
  1129. /package/{hooks → dist/hooks}/useResponsiveClientValue.d.ts +0 -0
  1130. /package/{hooks → dist/hooks}/useResponsiveClientValue.js +0 -0
  1131. /package/{hooks → dist/hooks}/useScrollLock.d.ts +0 -0
  1132. /package/{hooks → dist/hooks}/useScrollLock.js +0 -0
  1133. /package/{hooks → dist/hooks}/useToggle.d.ts +0 -0
  1134. /package/{hooks → dist/hooks}/useToggle.js +0 -0
  1135. /package/{icons → dist/icons}/ArrowUpRight.d.ts +0 -0
  1136. /package/{icons → dist/icons}/ArrowUpRight.js +0 -0
  1137. /package/{icons → dist/icons}/Checkmark.d.ts +0 -0
  1138. /package/{icons → dist/icons}/Checkmark.js +0 -0
  1139. /package/{icons → dist/icons}/ChevronDown.d.ts +0 -0
  1140. /package/{icons → dist/icons}/ChevronDown.js +0 -0
  1141. /package/{icons → dist/icons}/ChevronLeft.d.ts +0 -0
  1142. /package/{icons → dist/icons}/ChevronLeft.js +0 -0
  1143. /package/{icons → dist/icons}/ChevronRight.d.ts +0 -0
  1144. /package/{icons → dist/icons}/ChevronRight.js +0 -0
  1145. /package/{icons → dist/icons}/ChevronVertical.d.ts +0 -0
  1146. /package/{icons → dist/icons}/ChevronVertical.js +0 -0
  1147. /package/{icons → dist/icons}/Close.d.ts +0 -0
  1148. /package/{icons → dist/icons}/Close.js +0 -0
  1149. /package/{icons → dist/icons}/DotsHorizontal.d.ts +0 -0
  1150. /package/{icons → dist/icons}/DotsHorizontal.js +0 -0
  1151. /package/{icons → dist/icons}/Mic.d.ts +0 -0
  1152. /package/{icons → dist/icons}/Zap.d.ts +0 -0
  1153. /package/{icons → dist/icons}/Zap.js +0 -0
  1154. /package/{index.d.ts → dist/index.d.ts} +0 -0
  1155. /package/{index.js → dist/index.js} +0 -0
  1156. /package/{styles → dist/styles}/aspectRatio/aspectRatio.module.css +0 -0
  1157. /package/{styles → dist/styles}/aspectRatio/index.d.ts +0 -0
  1158. /package/{styles → dist/styles}/aspectRatio/index.js +0 -0
  1159. /package/{styles → dist/styles}/bleed/bleed.module.css +0 -0
  1160. /package/{styles → dist/styles}/bleed/index.d.ts +0 -0
  1161. /package/{styles → dist/styles}/bleed/index.js +0 -0
  1162. /package/{styles → dist/styles}/height/height.module.css +0 -0
  1163. /package/{styles → dist/styles}/height/index.d.ts +0 -0
  1164. /package/{styles → dist/styles}/height/index.js +0 -0
  1165. /package/{styles → dist/styles}/inset/index.d.ts +0 -0
  1166. /package/{styles → dist/styles}/inset/index.js +0 -0
  1167. /package/{styles → dist/styles}/inset/inset.module.css +0 -0
  1168. /package/{styles → dist/styles}/maxHeight/index.d.ts +0 -0
  1169. /package/{styles → dist/styles}/maxHeight/index.js +0 -0
  1170. /package/{styles → dist/styles}/maxHeight/maxHeight.module.css +0 -0
  1171. /package/{styles → dist/styles}/maxWidth/index.d.ts +0 -0
  1172. /package/{styles → dist/styles}/maxWidth/index.js +0 -0
  1173. /package/{styles → dist/styles}/maxWidth/maxWidth.module.css +0 -0
  1174. /package/{styles → dist/styles}/minHeight/index.d.ts +0 -0
  1175. /package/{styles → dist/styles}/minHeight/index.js +0 -0
  1176. /package/{styles → dist/styles}/minHeight/minHeight.module.css +0 -0
  1177. /package/{styles → dist/styles}/minWidth/index.d.ts +0 -0
  1178. /package/{styles → dist/styles}/minWidth/index.js +0 -0
  1179. /package/{styles → dist/styles}/minWidth/minWidth.module.css +0 -0
  1180. /package/{styles → dist/styles}/padding/index.d.ts +0 -0
  1181. /package/{styles → dist/styles}/padding/index.js +0 -0
  1182. /package/{styles → dist/styles}/padding/padding.module.css +0 -0
  1183. /package/{styles → dist/styles}/position/index.d.ts +0 -0
  1184. /package/{styles → dist/styles}/position/index.js +0 -0
  1185. /package/{styles → dist/styles}/position/position.module.css +0 -0
  1186. /package/{styles → dist/styles}/radius/index.d.ts +0 -0
  1187. /package/{styles → dist/styles}/radius/index.js +0 -0
  1188. /package/{styles → dist/styles}/types.d.ts +0 -0
  1189. /package/{styles → dist/styles}/types.js +0 -0
  1190. /package/{styles → dist/styles}/width/index.d.ts +0 -0
  1191. /package/{styles → dist/styles}/width/index.js +0 -0
  1192. /package/{styles → dist/styles}/width/width.module.css +0 -0
  1193. /package/{themes/_generator/utilities/tests/generateColors.test.d.ts → dist/tests/themingWithDefinition.d.ts} +0 -0
  1194. /package/{types/global.js → dist/tests/themingWithoutDefinition.d.ts} +0 -0
  1195. /package/{themes → dist/themes}/_generator/tests/themes.stories.d.ts +0 -0
  1196. /package/{utilities/a11y/types.js → dist/themes/_generator/tokens/color/color.types.js} +0 -0
  1197. /package/{utilities → dist/utilities}/Chain.d.ts +0 -0
  1198. /package/{utilities → dist/utilities}/a11y/TrapFocus.d.ts +0 -0
  1199. /package/{utilities → dist/utilities}/a11y/TrapScreenReader.d.ts +0 -0
  1200. /package/{utilities → dist/utilities}/a11y/focus.d.ts +0 -0
  1201. /package/{utilities → dist/utilities}/a11y/keyboardMode.d.ts +0 -0
  1202. /package/{utilities → dist/utilities}/a11y/keyboardMode.js +0 -0
  1203. /package/{utilities → dist/utilities}/a11y/types.d.ts +0 -0
  1204. /package/{utilities → dist/utilities}/animation.d.ts +0 -0
  1205. /package/{utilities → dist/utilities}/animation.js +0 -0
  1206. /package/{utilities → dist/utilities}/dom.d.ts +0 -0
  1207. /package/{utilities → dist/utilities}/helpers.d.ts +0 -0
  1208. /package/{utilities → dist/utilities}/storybook/Example.d.ts +0 -0
  1209. /package/{utilities → dist/utilities}/storybook/Example.module.css +0 -0
  1210. /package/{utilities → dist/utilities}/storybook/Placeholder.d.ts +0 -0
  1211. /package/{utilities → dist/utilities}/storybook/index.d.ts +0 -0
  1212. /package/{utilities → dist/utilities}/storybook/index.js +0 -0
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const color_1 = require("./color");
4
- const constants_1 = require("../constants");
5
- const string_1 = require("../../../utilities/string");
6
- const generateBackgroundColors = (definition, themeOptions) => {
7
- if (!definition.color)
8
- return;
9
- Object.keys(definition.color).forEach((tokenName) => {
10
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
11
- const bgToken = (_a = definition.color) === null || _a === void 0 ? void 0 : _a[tokenName];
12
- const generatedForegroundName = `on${(0, string_1.capitalize)(tokenName)}`;
13
- const generatedRGBName = `rgb${(0, string_1.capitalize)(tokenName)}`;
14
- const generateOnColorsFor = [
15
- ...constants_1.bgWithDynamicForeground,
16
- ...((themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.generateOnColorsFor) || []),
17
- ];
18
- const needsDynamicForeground = generateOnColorsFor.includes(tokenName);
19
- const needsRGB = tokenName.startsWith("background") ||
20
- tokenName.startsWith("border") ||
21
- tokenName.endsWith("black") ||
22
- tokenName.endsWith("white");
23
- if (!bgToken)
24
- return;
25
- if (needsDynamicForeground) {
26
- const overrideKeys = (themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) && Object.keys(themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues);
27
- const onColorKey = overrideKeys && overrideKeys.find((key) => tokenName.toLowerCase().includes(key));
28
- const onColorHexMap = {
29
- lightHexColor: (onColorKey && ((_c = (_b = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) === null || _b === void 0 ? void 0 : _b[onColorKey]) === null || _c === void 0 ? void 0 : _c.hexLight)) ||
30
- ((_e = (_d = definition === null || definition === void 0 ? void 0 : definition.color) === null || _d === void 0 ? void 0 : _d.white) === null || _e === void 0 ? void 0 : _e.hex),
31
- darkHexColor: (onColorKey && ((_g = (_f = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.onColorValues) === null || _f === void 0 ? void 0 : _f[onColorKey]) === null || _g === void 0 ? void 0 : _g.hexDark)) ||
32
- ((_j = (_h = definition === null || definition === void 0 ? void 0 : definition.color) === null || _h === void 0 ? void 0 : _h.black) === null || _j === void 0 ? void 0 : _j.hex),
33
- };
34
- const hex = (0, color_1.getOnColor)(Object.assign({ bgHexColor: bgToken.hex, mode: "light" }, onColorHexMap));
35
- const hexDark = (0, color_1.getOnColor)(Object.assign({ bgHexColor: bgToken.hexDark || bgToken.hex, mode: "dark" }, onColorHexMap));
36
- // eslint-disable-next-line no-param-reassign
37
- definition.color[generatedForegroundName] = {
38
- hex,
39
- hexDark: hex !== hexDark ? hexDark : undefined,
40
- };
41
- }
42
- if (needsRGB) {
43
- const rgb = (0, color_1.hexToRgb)(bgToken.hex);
44
- const rgbDark = bgToken.hexDark && (0, color_1.hexToRgb)(bgToken.hexDark);
45
- // eslint-disable-next-line no-param-reassign
46
- definition.color[generatedRGBName] = {
47
- hex: `${rgb.r}, ${rgb.g}, ${rgb.b}`,
48
- hexDark: rgbDark && `${rgbDark.r}, ${rgbDark.g}, ${rgbDark.b}`,
49
- };
50
- }
51
- });
52
- };
53
- exports.default = generateBackgroundColors;
@@ -1,11 +0,0 @@
1
- declare const generate: (args?: {
2
- primary?: string;
3
- critical?: string;
4
- warning?: string;
5
- positive?: string;
6
- neutral?: string;
7
- brand?: string;
8
- }) => Record<import("../tokens/color/color.types").Name, import("../tokens/color/color.types").Token> & {
9
- [tokenName: string]: import("../tokens/color/color.types").Token;
10
- };
11
- export default generate;
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const color_1 = require("./color");
4
- /**
5
- * Generator
6
- */
7
- const FG_L_DARK = 62;
8
- const generateColorValues = (args) => {
9
- const { key, hex } = args;
10
- const capitalizedKey = key.charAt(0).toUpperCase() + key.slice(1);
11
- const hsl = (0, color_1.hexToHsl)(hex);
12
- const rgb = (0, color_1.hexToRgb)(hex);
13
- const hsluv = (0, color_1.hexToHsluv)(hex);
14
- const luminance = (0, color_1.getRgbLuminance)(rgb);
15
- const luminanceDelta = (0, color_1.getLuminanceDelta)(luminance);
16
- const hslDark = (0, color_1.getDarkModeColor)(hsl);
17
- const bgHex = hex;
18
- const bgHexDark = (0, color_1.hslToHex)(hslDark);
19
- const hsluvDark = (0, color_1.hexToHsluv)(bgHexDark);
20
- const bdHex = (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: hsluv.l - 5 - luminanceDelta }));
21
- const bdHexDark = (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: key === "neutral" ? 35 : FG_L_DARK }));
22
- const fgHsluv = Object.assign(Object.assign({}, hsluv), { l: 43 });
23
- const fgHsluvDark = Object.assign(Object.assign({}, hsluv), { l: key === "neutral" ? 80 : FG_L_DARK });
24
- const fgHex = (0, color_1.hsluvToHex)(fgHsluv);
25
- const fgHexDark = (0, color_1.hsluvToHex)(fgHsluvDark);
26
- const saturationModifier = hsl.s / 40;
27
- const bgFadedHex = (0, color_1.rgbToHex)((0, color_1.hslToRgb)(Object.assign(Object.assign({}, hsl), { l: 98 - saturationModifier - (key === "neutral" ? 2 : 0) })));
28
- const bgFadedHsluv = (0, color_1.hexToHsluv)(bgFadedHex);
29
- const bgFadedHsluvDark = Object.assign(Object.assign({}, hsluv), { l: 16, s: 32 });
30
- const bgFadedHexDark = (0, color_1.hsluvToHex)(bgFadedHsluvDark);
31
- const fadedLuminance = (0, color_1.getRgbLuminance)((0, color_1.hexToRgb)(bgFadedHex));
32
- const fadedLuminanceDark = (0, color_1.getRgbLuminance)((0, color_1.hexToRgb)(bgFadedHexDark));
33
- const fadedLuminanceDeltaDark = (0, color_1.getLuminanceDelta)(fadedLuminanceDark);
34
- const bdFadedHex = (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, bgFadedHsluv), { s: Math.max(0, bgFadedHsluv.s - 6 - Math.max(0, fadedLuminance - 98) * 20), l: bgFadedHsluv.l - 7 + saturationModifier }));
35
- const bdFadedHexDark = (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, bgFadedHsluvDark), { s: 40, l: bgFadedHsluvDark.l + 7 - fadedLuminanceDeltaDark }));
36
- const output = {
37
- [`background${capitalizedKey}`]: {
38
- hex: bgHex,
39
- hexDark: bgHexDark,
40
- },
41
- [`background${capitalizedKey}Faded`]: {
42
- hex: bgFadedHex,
43
- hexDark: bgFadedHexDark,
44
- },
45
- [`background${capitalizedKey}Highlighted`]: {
46
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: hsluv.l - 4 })),
47
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: hsluvDark.l + 4 })),
48
- },
49
- [`border${capitalizedKey}`]: {
50
- hex: bdHex,
51
- hexDark: bdHexDark,
52
- },
53
- [`border${capitalizedKey}Faded`]: {
54
- hex: bdFadedHex,
55
- hexDark: bdFadedHexDark,
56
- },
57
- [`foreground${capitalizedKey}`]: {
58
- hex: fgHex,
59
- hexDark: fgHexDark,
60
- },
61
- };
62
- if (key === "neutral") {
63
- output[`foreground${capitalizedKey}`] = {
64
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, fgHsluv), { l: 8 })),
65
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, fgHsluvDark), { l: 95 })),
66
- };
67
- output[`foreground${capitalizedKey}Faded`] = {
68
- hex: fgHex,
69
- hexDark: fgHexDark,
70
- };
71
- output[`backgroundDisabled`] = {
72
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: 94 })),
73
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 13 })),
74
- };
75
- output[`backgroundDisabledFaded`] = {
76
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: 97 })),
77
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 9 })),
78
- };
79
- output[`borderDisabled`] = {
80
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: 90 })),
81
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 17 })),
82
- };
83
- output[`foregroundDisabled`] = {
84
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: 82 })),
85
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 31 })),
86
- };
87
- output[`backgroundElevationBase`] = {
88
- hex: "#ffffff",
89
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 8 })),
90
- };
91
- output[`backgroundElevationRaised`] = {
92
- hex: "#ffffff",
93
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 10 })),
94
- };
95
- output[`backgroundElevationOverlay`] = {
96
- hex: "#ffffff",
97
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 12 })),
98
- };
99
- output[`backgroundPage`] = {
100
- hex: "#ffffff",
101
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 5 })),
102
- };
103
- output[`backgroundPageFaded`] = {
104
- hex: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluv), { l: 98 })),
105
- hexDark: (0, color_1.hsluvToHex)(Object.assign(Object.assign({}, hsluvDark), { l: 6 })),
106
- };
107
- }
108
- else {
109
- output[`foreground${capitalizedKey}`] = {
110
- hex: fgHex,
111
- hexDark: fgHexDark,
112
- };
113
- }
114
- return output;
115
- };
116
- const validateHexColor = (color) => {
117
- const hexColorRegex = /^#([A-Fa-f0-9]{3}){2}$/;
118
- if (!hexColorRegex.test(color)) {
119
- throw new Error(`Invalid hex color: ${color}`);
120
- }
121
- return color;
122
- };
123
- const generate = (args = {}) => {
124
- const { primary = "#5a58f2", critical = "#e22c2c", warning = "#facc15", positive = "#118850", neutral = "#dfe2ea", brand, } = args;
125
- const primaryColors = generateColorValues({
126
- key: "primary",
127
- hex: validateHexColor(primary),
128
- });
129
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, primaryColors), generateColorValues({ key: "critical", hex: validateHexColor(critical) })), generateColorValues({ key: "warning", hex: validateHexColor(warning) })), generateColorValues({ key: "positive", hex: validateHexColor(positive) })), generateColorValues({ key: "neutral", hex: validateHexColor(neutral) })), { brand: { hex: brand || primary }, white: { hex: "#ffffff" }, black: { hex: "#000000" } });
130
- };
131
- exports.default = generate;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const generateUnits = (definition) => {
4
- var _a, _b;
5
- const baseValue = (_b = (_a = definition.unit) === null || _a === void 0 ? void 0 : _a.base) === null || _b === void 0 ? void 0 : _b.px;
6
- // If base value hasn't changed, we don't need to regenerate tokens
7
- if (!baseValue)
8
- return;
9
- for (let i = 1; i <= 10; i += 1) {
10
- const generatedName = `x${i}`;
11
- // eslint-disable-next-line no-param-reassign
12
- definition.unit[generatedName] = {
13
- px: baseValue * i,
14
- };
15
- }
16
- };
17
- exports.default = generateUnits;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // Level 1 is token types, level 2 is token values
4
- // { color: { foreground: {} } }
5
- // We don't merge token values
6
- const MAX_LEVEL = 2;
7
- const mergeDefinitions = (originalDefinition, newDefinition, currentLevel = 1) => {
8
- // Overwrite the token value
9
- if (currentLevel > MAX_LEVEL)
10
- return newDefinition;
11
- const mergedDefinition = Object.assign({}, originalDefinition);
12
- Object.keys(newDefinition).forEach((key) => {
13
- mergedDefinition[key] = mergeDefinitions(mergedDefinition[key], newDefinition[key], currentLevel + 1);
14
- });
15
- return mergedDefinition;
16
- };
17
- exports.default = mergeDefinitions;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const color_1 = require("../color");
4
- describe("cli/utilities/color", () => {
5
- test("returns white for black background", () => {
6
- expect((0, color_1.getOnColor)({ bgHexColor: "#000000", mode: "light" })).toBe("#ffffff");
7
- });
8
- test("returns white for dark colored background", () => {
9
- expect((0, color_1.getOnColor)({ bgHexColor: "#aa0000", mode: "light" })).toBe("#ffffff");
10
- });
11
- test("returns black for white background", () => {
12
- expect((0, color_1.getOnColor)({ bgHexColor: "#ffffff", mode: "light" })).toBe("#000000");
13
- });
14
- test("returns white for light colored background", () => {
15
- expect((0, color_1.getOnColor)({ bgHexColor: "#dedede", mode: "light" })).toBe("#000000");
16
- });
17
- /**
18
- * 8-digit hex
19
- */
20
- test("returns black for dark background with alpha: 0", () => {
21
- expect((0, color_1.getOnColor)({ bgHexColor: "#00000000", mode: "light" })).toBe("#000000");
22
- });
23
- test("returns black for light background with alpha: 0", () => {
24
- expect((0, color_1.getOnColor)({ bgHexColor: "#ffffff00", mode: "light" })).toBe("#000000");
25
- });
26
- test("returns black for dark background with alpha: 25%", () => {
27
- expect((0, color_1.getOnColor)({ bgHexColor: "#00000040", mode: "light" })).toBe("#000000");
28
- });
29
- test("returns white for dark background with alpha: 30%", () => {
30
- expect((0, color_1.getOnColor)({ bgHexColor: "#0000004D", mode: "light" })).toBe("#ffffff");
31
- });
32
- /**
33
- * Dark mode
34
- */
35
- test("returns black for white background in dark mode", () => {
36
- expect((0, color_1.getOnColor)({ bgHexColor: "#ffffff", mode: "dark" })).toBe("#000000");
37
- });
38
- test("returns white for dark background with alpha: 25% in dark mode", () => {
39
- expect((0, color_1.getOnColor)({ bgHexColor: "#00000040", mode: "dark" })).toBe("#ffffff");
40
- });
41
- test("returns white for dark background with alpha: 0 in dark mode", () => {
42
- expect((0, color_1.getOnColor)({ bgHexColor: "#00000000", mode: "dark" })).toBe("#ffffff");
43
- });
44
- /**
45
- * Custom resolved color
46
- */
47
- test("returns #999 for white background in dark mode", () => {
48
- expect((0, color_1.getOnColor)({
49
- bgHexColor: "#ffffff",
50
- mode: "dark",
51
- lightHexColor: "#eeeeee",
52
- darkHexColor: "#999999",
53
- })).toBe("#999999");
54
- });
55
- test("returns #eee for black background in dark mode", () => {
56
- expect((0, color_1.getOnColor)({
57
- bgHexColor: "#000000",
58
- mode: "dark",
59
- lightHexColor: "#eeeeee",
60
- darkHexColor: "#999999",
61
- })).toBe("#eeeeee");
62
- });
63
- });
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const generateColors_1 = __importDefault(require("../generateColors"));
7
- describe("Themes/Utilties/generateColors", () => {
8
- test("generate the default theme", () => {
9
- const colors = (0, generateColors_1.default)();
10
- expect(colors).toMatchSnapshot();
11
- });
12
- test("applies color overrides", () => {
13
- const colors = (0, generateColors_1.default)({
14
- primary: "#2563eb",
15
- critical: "#dc2626",
16
- positive: "#16a34a",
17
- });
18
- expect(colors).toMatchSnapshot();
19
- });
20
- });
@@ -1 +0,0 @@
1
- [data-rs-theme=figma]{--rs-font-family-title:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-family-body:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-weight-regular:400;--rs-font-weight-medium:500;--rs-font-weight-semibold:600;--rs-font-weight-bold:700;--rs-font-weight-heavy:800;--rs-font-weight-black:900;--rs-font-size-title-1:80px;--rs-line-height-title-1:84px;--rs-font-family-title-1:var(--rs-font-family-title);--rs-font-weight-title-1:var(--rs-font-weight-semibold);--rs-font-size-title-2:64px;--rs-line-height-title-2:68px;--rs-font-family-title-2:var(--rs-font-family-title);--rs-font-weight-title-2:var(--rs-font-weight-semibold);--rs-font-size-title-3:56px;--rs-line-height-title-3:60px;--rs-font-family-title-3:var(--rs-font-family-title);--rs-font-weight-title-3:var(--rs-font-weight-semibold);--rs-font-size-title-4:40px;--rs-line-height-title-4:44px;--rs-font-family-title-4:var(--rs-font-family-title);--rs-font-weight-title-4:var(--rs-font-weight-semibold);--rs-font-size-title-5:36px;--rs-line-height-title-5:40px;--rs-font-family-title-5:var(--rs-font-family-title);--rs-font-weight-title-5:var(--rs-font-weight-semibold);--rs-font-size-title-6:24px;--rs-line-height-title-6:28px;--rs-font-family-title-6:var(--rs-font-family-title);--rs-font-weight-title-6:var(--rs-font-weight-semibold);--rs-font-size-featured-1:22px;--rs-line-height-featured-1:28px;--rs-font-family-featured-1:var(--rs-font-family-body);--rs-font-size-featured-2:20px;--rs-line-height-featured-2:28px;--rs-font-family-featured-2:var(--rs-font-family-body);--rs-font-size-featured-3:18px;--rs-line-height-featured-3:24px;--rs-font-family-featured-3:var(--rs-font-family-body);--rs-font-size-body-1:14px;--rs-line-height-body-1:20px;--rs-font-family-body-1:var(--rs-font-family-body);--rs-font-size-body-2:13px;--rs-line-height-body-2:20px;--rs-font-family-body-2:var(--rs-font-family-body);--rs-font-size-body-3:11px;--rs-line-height-body-3:16px;--rs-font-family-body-3:var(--rs-font-family-body);--rs-font-size-caption-1:11px;--rs-line-height-caption-1:16px;--rs-font-family-caption-1:var(--rs-font-family-body);--rs-font-size-caption-2:10px;--rs-line-height-caption-2:12px;--rs-font-family-caption-2:var(--rs-font-family-body);--rs-unit-base:4px;--rs-unit-radius-small:4px;--rs-unit-radius-medium:4px;--rs-unit-radius-large:4px;--rs-unit-x1:4px;--rs-unit-x2:8px;--rs-unit-x3:12px;--rs-unit-x4:16px;--rs-unit-x5:20px;--rs-unit-x6:24px;--rs-unit-x7:28px;--rs-unit-x8:32px;--rs-unit-x9:36px;--rs-unit-x10:40px;--rs-color-brand:#5a58f2;--rs-color-white:#fff;--rs-color-black:#000;--rs-color-on-background-primary:#fff;--rs-color-on-background-critical:#fff;--rs-color-on-background-warning:#000;--rs-color-on-background-positive:#fff;--rs-color-on-brand:#fff;--rs-color-rgb-white:255,255,255;--rs-color-rgb-black:0,0,0;--rs-duration-fast:200ms;--rs-duration-medium:300ms;--rs-duration-slow:400ms;--rs-easing-standard:cubic-bezier(0.4,0,0.2,1);--rs-easing-accelerate:cubic-bezier(0.4,0,1,1);--rs-easing-decelerate:cubic-bezier(0,0,0.2,1);--rs-shadow-raised:0px 1px 3px 0px rgba(0,0,0,.15);--rs-shadow-overlay:0px 10px 24px 0px rgba(0,0,0,.1),0px 2px 5px 0px rgba(0,0,0,.04)}[data-rs-theme=figma][data-rs-color-mode=light]{--rs-color-background-primary:#0d99ff;--rs-color-background-primary-faded:#e5f4ff;--rs-color-background-primary-highlighted:#007be5;--rs-color-border-primary:#007be5;--rs-color-border-primary-faded:#bde3ff;--rs-color-foreground-primary:#007be5;--rs-color-background-critical:#f24822;--rs-color-background-critical-faded:#ffe2e0;--rs-color-background-critical-highlighted:#dc3412;--rs-color-border-critical:#dc3412;--rs-color-border-critical-faded:#ffc7c2;--rs-color-foreground-critical:#dc3412;--rs-color-background-warning:#facc15;--rs-color-background-warning-faded:#fffae9;--rs-color-background-warning-highlighted:#edc113;--rs-color-border-warning:#cfa90f;--rs-color-border-warning-faded:#faedbb;--rs-color-foreground-warning:#7b6305;--rs-color-background-positive:#14ae5c;--rs-color-background-positive-faded:#daecdf;--rs-color-background-positive-highlighted:#009951;--rs-color-border-positive:#009951;--rs-color-border-positive-faded:#bbddc6;--rs-color-foreground-positive:#009951;--rs-color-background-neutral:#dfe2ea;--rs-color-background-neutral-faded:#f5f5f5;--rs-color-background-neutral-highlighted:#d4d8e3;--rs-color-border-neutral:#e6e6e6;--rs-color-border-neutral-faded:#e6e6e6;--rs-color-foreground-neutral:#191919;--rs-color-foreground-neutral-faded:#474747;--rs-color-background-disabled:#e4e4e4;--rs-color-background-disabled-faded:#f5f5f5;--rs-color-border-disabled:#e6e6e6;--rs-color-foreground-disabled:#b2b2b2;--rs-color-background-elevation-base:#fff;--rs-color-background-elevation-raised:#fff;--rs-color-background-elevation-overlay:#fff;--rs-color-background-page:#fff;--rs-color-background-page-faded:#fafafa;--rs-color-rgb-background-primary:13,153,255;--rs-color-rgb-background-primary-faded:229,244,255;--rs-color-rgb-background-primary-highlighted:0,123,229;--rs-color-rgb-border-primary:0,123,229;--rs-color-rgb-border-primary-faded:189,227,255;--rs-color-rgb-background-critical:242,72,34;--rs-color-rgb-background-critical-faded:255,226,224;--rs-color-rgb-background-critical-highlighted:220,52,18;--rs-color-rgb-border-critical:220,52,18;--rs-color-rgb-border-critical-faded:255,199,194;--rs-color-rgb-background-warning:250,204,21;--rs-color-rgb-background-warning-faded:255,250,233;--rs-color-rgb-background-warning-highlighted:237,193,19;--rs-color-rgb-border-warning:207,169,15;--rs-color-rgb-border-warning-faded:250,237,187;--rs-color-rgb-background-positive:20,174,92;--rs-color-rgb-background-positive-faded:218,236,223;--rs-color-rgb-background-positive-highlighted:0,153,81;--rs-color-rgb-border-positive:0,153,81;--rs-color-rgb-border-positive-faded:187,221,198;--rs-color-on-background-neutral:#000;--rs-color-rgb-background-neutral:223,226,234;--rs-color-rgb-background-neutral-faded:245,245,245;--rs-color-rgb-background-neutral-highlighted:212,216,227;--rs-color-rgb-border-neutral:230,230,230;--rs-color-rgb-border-neutral-faded:230,230,230;--rs-color-rgb-background-disabled:228,228,228;--rs-color-rgb-background-disabled-faded:245,245,245;--rs-color-rgb-border-disabled:230,230,230;--rs-color-rgb-background-elevation-base:255,255,255;--rs-color-rgb-background-elevation-raised:255,255,255;--rs-color-rgb-background-elevation-overlay:255,255,255;--rs-color-rgb-background-page:255,255,255;--rs-color-rgb-background-page-faded:250,250,250}[data-rs-theme=figma][data-rs-color-mode=dark]{--rs-color-background-primary:#0c8ce9;--rs-color-background-primary-faded:#394360;--rs-color-background-primary-highlighted:#0a6dc2;--rs-color-border-primary:#7cc4f8;--rs-color-border-primary-faded:#2a4d72;--rs-color-foreground-primary:#7cc4f8;--rs-color-background-critical:#e03e1a;--rs-color-background-critical-faded:#60332a;--rs-color-background-critical-highlighted:#c4381c;--rs-color-border-critical:#fca397;--rs-color-border-critical-faded:#803226;--rs-color-foreground-critical:#fca397;--rs-color-background-warning:#f1c512;--rs-color-background-warning-faded:#2c271f;--rs-color-background-warning-highlighted:#fed014;--rs-color-border-warning:#b4920a;--rs-color-border-warning-faded:#3d3628;--rs-color-foreground-warning:#b4920c;--rs-color-background-positive:#198f51;--rs-color-background-positive-faded:#3d5749;--rs-color-background-positive-highlighted:#078348;--rs-color-border-positive:#79d297;--rs-color-border-positive-faded:#086338;--rs-color-foreground-positive:#79d297;--rs-color-background-neutral:#444;--rs-color-background-neutral-faded:#383838;--rs-color-background-neutral-highlighted:#525252;--rs-color-border-neutral:#444;--rs-color-border-neutral-faded:#444;--rs-color-foreground-neutral:#fff;--rs-color-foreground-neutral-faded:#b2b2b2;--rs-color-background-disabled:#474747;--rs-color-background-disabled-faded:#3a3a3a;--rs-color-border-disabled:#3e3e3e;--rs-color-foreground-disabled:#656565;--rs-color-background-elevation-base:#2c2c2c;--rs-color-background-elevation-raised:#2c2c2c;--rs-color-background-elevation-overlay:#2c2c2c;--rs-color-background-page:#2c2c2c;--rs-color-background-page-faded:#1e1e1e;--rs-color-rgb-background-primary:12,140,233;--rs-color-rgb-background-primary-faded:57,67,96;--rs-color-rgb-background-primary-highlighted:10,109,194;--rs-color-rgb-border-primary:124,196,248;--rs-color-rgb-border-primary-faded:42,77,114;--rs-color-rgb-background-critical:224,62,26;--rs-color-rgb-background-critical-faded:96,51,42;--rs-color-rgb-background-critical-highlighted:196,56,28;--rs-color-rgb-border-critical:252,163,151;--rs-color-rgb-border-critical-faded:128,50,38;--rs-color-rgb-background-warning:241,197,18;--rs-color-rgb-background-warning-faded:44,39,31;--rs-color-rgb-background-warning-highlighted:254,208,20;--rs-color-rgb-border-warning:180,146,10;--rs-color-rgb-border-warning-faded:61,54,40;--rs-color-rgb-background-positive:25,143,81;--rs-color-rgb-background-positive-faded:61,87,73;--rs-color-rgb-background-positive-highlighted:7,131,72;--rs-color-rgb-border-positive:121,210,151;--rs-color-rgb-border-positive-faded:8,99,56;--rs-color-on-background-neutral:#fff;--rs-color-rgb-background-neutral:68,68,68;--rs-color-rgb-background-neutral-faded:56,56,56;--rs-color-rgb-background-neutral-highlighted:82,82,82;--rs-color-rgb-border-neutral:68,68,68;--rs-color-rgb-border-neutral-faded:68,68,68;--rs-color-rgb-background-disabled:71,71,71;--rs-color-rgb-background-disabled-faded:58,58,58;--rs-color-rgb-border-disabled:62,62,62;--rs-color-rgb-background-elevation-base:44,44,44;--rs-color-rgb-background-elevation-raised:44,44,44;--rs-color-rgb-background-elevation-overlay:44,44,44;--rs-color-rgb-background-page:44,44,44;--rs-color-rgb-background-page-faded:30,30,30}
package/themes/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import type * as T from "./_generator/types";
2
- import type { FullThemeDefinition } from "./_generator/tokens/types";
3
- export { default as baseThemeDefinition } from "./_generator/definitions/reshaped";
4
- export declare const generateThemeColors: (options: {
5
- primary: string;
6
- critical?: string;
7
- positive?: string;
8
- neutral?: string;
9
- }) => Record<import("./_generator/tokens/color/color.types").Name, import("./_generator/tokens/color/color.types").Token> & {
10
- [tokenName: string]: import("./_generator/tokens/color/color.types").Token;
11
- };
12
- export declare const getThemeCSS: (name: string, definition: T.PartialDeep<FullThemeDefinition>, options?: T.PublicOptions["themeOptions"]) => string;
@@ -1 +0,0 @@
1
- [data-rs-theme=reshaped]{--rs-font-family-title:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-family-body:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-weight-regular:400;--rs-font-weight-medium:500;--rs-font-weight-semibold:600;--rs-font-weight-bold:700;--rs-font-weight-heavy:800;--rs-font-weight-black:900;--rs-font-size-title-1:96px;--rs-line-height-title-1:100px;--rs-font-family-title-1:var(--rs-font-family-title);--rs-font-weight-title-1:var(--rs-font-weight-heavy);--rs-font-size-title-2:80px;--rs-line-height-title-2:84px;--rs-font-family-title-2:var(--rs-font-family-title);--rs-font-weight-title-2:var(--rs-font-weight-heavy);--rs-font-size-title-3:64px;--rs-line-height-title-3:68px;--rs-font-family-title-3:var(--rs-font-family-title);--rs-font-weight-title-3:var(--rs-font-weight-heavy);--rs-font-size-title-4:56px;--rs-line-height-title-4:60px;--rs-font-family-title-4:var(--rs-font-family-title);--rs-font-weight-title-4:var(--rs-font-weight-bold);--rs-font-size-title-5:48px;--rs-line-height-title-5:52px;--rs-font-family-title-5:var(--rs-font-family-title);--rs-font-weight-title-5:var(--rs-font-weight-bold);--rs-font-size-title-6:36px;--rs-line-height-title-6:40px;--rs-font-family-title-6:var(--rs-font-family-title);--rs-font-weight-title-6:var(--rs-font-weight-bold);--rs-font-size-featured-1:32px;--rs-line-height-featured-1:40px;--rs-font-family-featured-1:var(--rs-font-family-body);--rs-font-size-featured-2:24px;--rs-line-height-featured-2:32px;--rs-font-family-featured-2:var(--rs-font-family-body);--rs-font-size-featured-3:20px;--rs-line-height-featured-3:28px;--rs-font-family-featured-3:var(--rs-font-family-body);--rs-font-size-body-1:18px;--rs-line-height-body-1:28px;--rs-font-family-body-1:var(--rs-font-family-body);--rs-font-size-body-2:16px;--rs-line-height-body-2:24px;--rs-font-family-body-2:var(--rs-font-family-body);--rs-font-size-body-3:14px;--rs-line-height-body-3:20px;--rs-font-family-body-3:var(--rs-font-family-body);--rs-font-size-caption-1:12px;--rs-line-height-caption-1:16px;--rs-font-family-caption-1:var(--rs-font-family-body);--rs-font-size-caption-2:10px;--rs-line-height-caption-2:12px;--rs-font-family-caption-2:var(--rs-font-family-body);--rs-unit-base:4px;--rs-unit-radius-small:4px;--rs-unit-radius-medium:8px;--rs-unit-radius-large:12px;--rs-unit-x1:4px;--rs-unit-x2:8px;--rs-unit-x3:12px;--rs-unit-x4:16px;--rs-unit-x5:20px;--rs-unit-x6:24px;--rs-unit-x7:28px;--rs-unit-x8:32px;--rs-unit-x9:36px;--rs-unit-x10:40px;--rs-color-brand:#5a58f2;--rs-color-white:#fff;--rs-color-black:#000;--rs-color-on-background-primary:#fff;--rs-color-on-background-critical:#fff;--rs-color-on-background-warning:#000;--rs-color-on-background-positive:#fff;--rs-color-on-brand:#fff;--rs-color-rgb-white:255,255,255;--rs-color-rgb-black:0,0,0;--rs-duration-fast:200ms;--rs-duration-medium:300ms;--rs-duration-slow:400ms;--rs-easing-standard:cubic-bezier(0.4,0,0.2,1);--rs-easing-accelerate:cubic-bezier(0.4,0,1,1);--rs-easing-decelerate:cubic-bezier(0,0,0.2,1);--rs-shadow-raised:0px 2px 3px 0px rgba(0,0,0,.1),0px 1px 2px -1px rgba(0,0,0,.1);--rs-shadow-overlay:0px 5px 10px 0px rgba(0,0,0,.05),0px 15px 25px 0px rgba(0,0,0,.07)}[data-rs-theme=reshaped][data-rs-color-mode=light]{--rs-color-background-primary:#5a58f2;--rs-color-background-primary-faded:#ecebfe;--rs-color-background-primary-highlighted:#4d4af0;--rs-color-border-primary:#3b38ed;--rs-color-border-primary-faded:#dedcfb;--rs-color-foreground-primary:#4f4cf0;--rs-color-background-critical:#e22c2c;--rs-color-background-critical-faded:#fdeded;--rs-color-background-critical-highlighted:#d02828;--rs-color-border-critical:#bf2424;--rs-color-border-critical-faded:#fadbdb;--rs-color-foreground-critical:#c42525;--rs-color-background-warning:#facc15;--rs-color-background-warning-faded:#fffae9;--rs-color-background-warning-highlighted:#edc113;--rs-color-border-warning:#cfa90f;--rs-color-border-warning-faded:#faedbb;--rs-color-foreground-warning:#7b6305;--rs-color-background-positive:#118850;--rs-color-background-positive-faded:#edfdf5;--rs-color-background-positive-highlighted:#0f7d49;--rs-color-border-positive:#0c6e40;--rs-color-border-positive-faded:#d0f3e2;--rs-color-foreground-positive:#0d7544;--rs-color-background-neutral:#dfe2ea;--rs-color-background-neutral-faded:#f1f2f6;--rs-color-background-neutral-highlighted:#d2d7e2;--rs-color-border-neutral:#b3bbce;--rs-color-border-neutral-faded:#dddfe7;--rs-color-foreground-neutral:#14181f;--rs-color-foreground-neutral-faded:#5b667e;--rs-color-background-disabled:#eceef2;--rs-color-background-disabled-faded:#f5f6f9;--rs-color-border-disabled:#dfe2ea;--rs-color-foreground-disabled:#c6ccda;--rs-color-background-elevation-base:#fff;--rs-color-background-elevation-raised:#fff;--rs-color-background-elevation-overlay:#fff;--rs-color-background-page:#fff;--rs-color-background-page-faded:#f9f9fb;--rs-color-rgb-background-primary:90,88,242;--rs-color-rgb-background-primary-faded:236,235,254;--rs-color-rgb-background-primary-highlighted:77,74,240;--rs-color-rgb-border-primary:59,56,237;--rs-color-rgb-border-primary-faded:222,220,251;--rs-color-rgb-background-critical:226,44,44;--rs-color-rgb-background-critical-faded:253,237,237;--rs-color-rgb-background-critical-highlighted:208,40,40;--rs-color-rgb-border-critical:191,36,36;--rs-color-rgb-border-critical-faded:250,219,219;--rs-color-rgb-background-warning:250,204,21;--rs-color-rgb-background-warning-faded:255,250,233;--rs-color-rgb-background-warning-highlighted:237,193,19;--rs-color-rgb-border-warning:207,169,15;--rs-color-rgb-border-warning-faded:250,237,187;--rs-color-rgb-background-positive:17,136,80;--rs-color-rgb-background-positive-faded:237,253,245;--rs-color-rgb-background-positive-highlighted:15,125,73;--rs-color-rgb-border-positive:12,110,64;--rs-color-rgb-border-positive-faded:208,243,226;--rs-color-on-background-neutral:#000;--rs-color-rgb-background-neutral:223,226,234;--rs-color-rgb-background-neutral-faded:241,242,246;--rs-color-rgb-background-neutral-highlighted:210,215,226;--rs-color-rgb-border-neutral:179,187,206;--rs-color-rgb-border-neutral-faded:221,223,231;--rs-color-rgb-background-disabled:236,238,242;--rs-color-rgb-background-disabled-faded:245,246,249;--rs-color-rgb-border-disabled:223,226,234;--rs-color-rgb-background-elevation-base:255,255,255;--rs-color-rgb-background-elevation-raised:255,255,255;--rs-color-rgb-background-elevation-overlay:255,255,255;--rs-color-rgb-background-page:255,255,255;--rs-color-rgb-background-page-faded:249,249,251}[data-rs-theme=reshaped][data-rs-color-mode=dark]{--rs-color-background-primary:#524fea;--rs-color-background-primary-faded:#252544;--rs-color-background-primary-highlighted:#5f5ced;--rs-color-border-primary:#8c8bf3;--rs-color-border-primary-faded:#323164;--rs-color-foreground-primary:#8b8af7;--rs-color-background-critical:#d02626;--rs-color-background-critical-faded:#3e1f1f;--rs-color-background-critical-highlighted:#e22a2a;--rs-color-border-critical:#f46969;--rs-color-border-critical-faded:#582929;--rs-color-foreground-critical:#f36a6a;--rs-color-background-warning:#f1c512;--rs-color-background-warning-faded:#2c271f;--rs-color-background-warning-highlighted:#fed014;--rs-color-border-warning:#b4920a;--rs-color-border-warning-faded:#3d3628;--rs-color-foreground-warning:#b4920c;--rs-color-background-positive:#14784a;--rs-color-background-positive-faded:#1f2a23;--rs-color-background-positive-highlighted:#178351;--rs-color-border-positive:#21ab6b;--rs-color-border-positive-faded:#293b2f;--rs-color-foreground-positive:#18ab66;--rs-color-background-neutral:#494f60;--rs-color-background-neutral-faded:#222835;--rs-color-background-neutral-highlighted:#52586b;--rs-color-border-neutral:#4c5264;--rs-color-border-neutral-faded:#2d374c;--rs-color-foreground-neutral:#eff1f5;--rs-color-foreground-neutral-faded:#c0c6d6;--rs-color-background-disabled:#1e212a;--rs-color-background-disabled-faded:#171921;--rs-color-border-disabled:#262a34;--rs-color-foreground-disabled:#434959;--rs-color-background-elevation-base:#15171e;--rs-color-background-elevation-raised:#191b23;--rs-color-background-elevation-overlay:#1c1f28;--rs-color-background-page:#0f1116;--rs-color-background-page-faded:#111319;--rs-color-rgb-background-primary:82,79,234;--rs-color-rgb-background-primary-faded:37,37,68;--rs-color-rgb-background-primary-highlighted:95,92,237;--rs-color-rgb-border-primary:140,139,243;--rs-color-rgb-border-primary-faded:50,49,100;--rs-color-rgb-background-critical:208,38,38;--rs-color-rgb-background-critical-faded:62,31,31;--rs-color-rgb-background-critical-highlighted:226,42,42;--rs-color-rgb-border-critical:244,105,105;--rs-color-rgb-border-critical-faded:88,41,41;--rs-color-rgb-background-warning:241,197,18;--rs-color-rgb-background-warning-faded:44,39,31;--rs-color-rgb-background-warning-highlighted:254,208,20;--rs-color-rgb-border-warning:180,146,10;--rs-color-rgb-border-warning-faded:61,54,40;--rs-color-rgb-background-positive:20,120,74;--rs-color-rgb-background-positive-faded:31,42,35;--rs-color-rgb-background-positive-highlighted:23,131,81;--rs-color-rgb-border-positive:33,171,107;--rs-color-rgb-border-positive-faded:41,59,47;--rs-color-on-background-neutral:#fff;--rs-color-rgb-background-neutral:73,79,96;--rs-color-rgb-background-neutral-faded:34,40,53;--rs-color-rgb-background-neutral-highlighted:82,88,107;--rs-color-rgb-border-neutral:76,82,100;--rs-color-rgb-border-neutral-faded:45,55,76;--rs-color-rgb-background-disabled:30,33,42;--rs-color-rgb-background-disabled-faded:23,25,33;--rs-color-rgb-border-disabled:38,42,52;--rs-color-rgb-background-elevation-base:21,23,30;--rs-color-rgb-background-elevation-raised:25,27,35;--rs-color-rgb-background-elevation-overlay:28,31,40;--rs-color-rgb-background-page:15,17,22;--rs-color-rgb-background-page-faded:17,19,25}
@@ -1 +0,0 @@
1
- [data-rs-theme=slate]{--rs-font-family-title:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-family-body:Inter,BlinkMacSystemFont,-apple-system,Roboto,Helvetica,Arial,sans-serif;--rs-font-weight-regular:400;--rs-font-weight-medium:500;--rs-font-weight-semibold:600;--rs-font-weight-bold:700;--rs-font-weight-heavy:800;--rs-font-weight-black:900;--rs-font-size-title-1:96px;--rs-line-height-title-1:100px;--rs-font-family-title-1:var(--rs-font-family-title);--rs-font-weight-title-1:var(--rs-font-weight-heavy);--rs-font-size-title-2:80px;--rs-line-height-title-2:84px;--rs-font-family-title-2:var(--rs-font-family-title);--rs-font-weight-title-2:var(--rs-font-weight-heavy);--rs-font-size-title-3:64px;--rs-line-height-title-3:68px;--rs-font-family-title-3:var(--rs-font-family-title);--rs-font-weight-title-3:var(--rs-font-weight-heavy);--rs-font-size-title-4:56px;--rs-line-height-title-4:60px;--rs-font-family-title-4:var(--rs-font-family-title);--rs-font-weight-title-4:var(--rs-font-weight-bold);--rs-font-size-title-5:48px;--rs-line-height-title-5:52px;--rs-font-family-title-5:var(--rs-font-family-title);--rs-font-weight-title-5:var(--rs-font-weight-bold);--rs-font-size-title-6:36px;--rs-line-height-title-6:40px;--rs-font-family-title-6:var(--rs-font-family-title);--rs-font-weight-title-6:var(--rs-font-weight-bold);--rs-font-size-featured-1:32px;--rs-line-height-featured-1:40px;--rs-font-family-featured-1:var(--rs-font-family-body);--rs-font-size-featured-2:24px;--rs-line-height-featured-2:32px;--rs-font-family-featured-2:var(--rs-font-family-body);--rs-font-size-featured-3:20px;--rs-line-height-featured-3:28px;--rs-font-family-featured-3:var(--rs-font-family-body);--rs-font-size-body-1:18px;--rs-line-height-body-1:28px;--rs-font-family-body-1:var(--rs-font-family-body);--rs-font-size-body-2:16px;--rs-line-height-body-2:24px;--rs-font-family-body-2:var(--rs-font-family-body);--rs-font-size-body-3:14px;--rs-line-height-body-3:20px;--rs-font-family-body-3:var(--rs-font-family-body);--rs-font-size-caption-1:12px;--rs-line-height-caption-1:16px;--rs-font-family-caption-1:var(--rs-font-family-body);--rs-font-size-caption-2:10px;--rs-line-height-caption-2:12px;--rs-font-family-caption-2:var(--rs-font-family-body);--rs-unit-base:4px;--rs-unit-radius-small:2px;--rs-unit-radius-medium:4px;--rs-unit-radius-large:6px;--rs-unit-x1:4px;--rs-unit-x2:8px;--rs-unit-x3:12px;--rs-unit-x4:16px;--rs-unit-x5:20px;--rs-unit-x6:24px;--rs-unit-x7:28px;--rs-unit-x8:32px;--rs-unit-x9:36px;--rs-unit-x10:40px;--rs-color-brand:#5a58f2;--rs-color-white:#fff;--rs-color-black:#000;--rs-color-on-background-primary:#fff;--rs-color-on-background-critical:#fff;--rs-color-on-background-warning:#000;--rs-color-on-background-positive:#fff;--rs-color-on-brand:#fff;--rs-color-rgb-white:255,255,255;--rs-color-rgb-black:0,0,0;--rs-duration-fast:200ms;--rs-duration-medium:300ms;--rs-duration-slow:400ms;--rs-easing-standard:cubic-bezier(0.4,0,0.2,1);--rs-easing-accelerate:cubic-bezier(0.4,0,1,1);--rs-easing-decelerate:cubic-bezier(0,0,0.2,1);--rs-shadow-raised:0px 2px 3px 0px rgba(0,0,0,.1),0px 1px 2px -1px rgba(0,0,0,.1);--rs-shadow-overlay:0px 5px 10px 0px rgba(0,0,0,.05),0px 15px 25px 0px rgba(0,0,0,.07)}[data-rs-theme=slate][data-rs-color-mode=light]{--rs-color-background-primary:#2383e2;--rs-color-background-primary-faded:#e5f4fb;--rs-color-background-primary-highlighted:#3273cc;--rs-color-border-primary:#3d76c7;--rs-color-border-primary-faded:#c6d9f4;--rs-color-foreground-primary:#2383e2;--rs-color-background-critical:#e22c2c;--rs-color-background-critical-faded:#fdeded;--rs-color-background-critical-highlighted:#d02828;--rs-color-border-critical:#bf2424;--rs-color-border-critical-faded:#fadbdb;--rs-color-foreground-critical:#c42525;--rs-color-background-warning:#facc15;--rs-color-background-warning-faded:#fffae9;--rs-color-background-warning-highlighted:#edc113;--rs-color-border-warning:#cfa90f;--rs-color-border-warning-faded:#faedbb;--rs-color-foreground-warning:#7b6305;--rs-color-background-positive:#118850;--rs-color-background-positive-faded:#edfdf5;--rs-color-background-positive-highlighted:#0f7d49;--rs-color-border-positive:#0c6e40;--rs-color-border-positive-faded:#d0f3e2;--rs-color-foreground-positive:#0d7544;--rs-color-background-neutral:#e3e3e5;--rs-color-background-neutral-faded:#f2f3f5;--rs-color-background-neutral-highlighted:#dedee1;--rs-color-border-neutral:#d2d2d2;--rs-color-border-neutral-faded:#e2e2e2;--rs-color-foreground-neutral:#161a26;--rs-color-foreground-neutral-faded:#717787;--rs-color-background-disabled:#eceef3;--rs-color-background-disabled-faded:#f4f5f7;--rs-color-border-disabled:#e2e2e2;--rs-color-foreground-disabled:#d4d0d0;--rs-color-background-elevation-base:#fff;--rs-color-background-elevation-raised:#fff;--rs-color-background-elevation-overlay:#fff;--rs-color-background-page:#fff;--rs-color-background-page-faded:#f7f7f5;--rs-color-rgb-background-primary:35,131,226;--rs-color-rgb-background-primary-faded:229,244,251;--rs-color-rgb-background-primary-highlighted:50,115,204;--rs-color-rgb-border-primary:61,118,199;--rs-color-rgb-border-primary-faded:198,217,244;--rs-color-rgb-background-critical:226,44,44;--rs-color-rgb-background-critical-faded:253,237,237;--rs-color-rgb-background-critical-highlighted:208,40,40;--rs-color-rgb-border-critical:191,36,36;--rs-color-rgb-border-critical-faded:250,219,219;--rs-color-rgb-background-warning:250,204,21;--rs-color-rgb-background-warning-faded:255,250,233;--rs-color-rgb-background-warning-highlighted:237,193,19;--rs-color-rgb-border-warning:207,169,15;--rs-color-rgb-border-warning-faded:250,237,187;--rs-color-rgb-background-positive:17,136,80;--rs-color-rgb-background-positive-faded:237,253,245;--rs-color-rgb-background-positive-highlighted:15,125,73;--rs-color-rgb-border-positive:12,110,64;--rs-color-rgb-border-positive-faded:208,243,226;--rs-color-on-background-neutral:#000;--rs-color-rgb-background-neutral:227,227,229;--rs-color-rgb-background-neutral-faded:242,243,245;--rs-color-rgb-background-neutral-highlighted:222,222,225;--rs-color-rgb-border-neutral:210,210,210;--rs-color-rgb-border-neutral-faded:226,226,226;--rs-color-rgb-background-disabled:236,238,243;--rs-color-rgb-background-disabled-faded:244,245,247;--rs-color-rgb-border-disabled:226,226,226;--rs-color-rgb-background-elevation-base:255,255,255;--rs-color-rgb-background-elevation-raised:255,255,255;--rs-color-rgb-background-elevation-overlay:255,255,255;--rs-color-rgb-background-page:255,255,255;--rs-color-rgb-background-page-faded:247,247,245}[data-rs-theme=slate][data-rs-color-mode=dark]{--rs-color-background-primary:#4281db;--rs-color-background-primary-faded:#1e2c45;--rs-color-background-primary-highlighted:#3273cc;--rs-color-border-primary:#5a91e0;--rs-color-border-primary-faded:#163a6a;--rs-color-foreground-primary:#5098ff;--rs-color-background-critical:#d02626;--rs-color-background-critical-faded:#3e1f1f;--rs-color-background-critical-highlighted:#e22a2a;--rs-color-border-critical:#f46969;--rs-color-border-critical-faded:#582929;--rs-color-foreground-critical:#f36a6a;--rs-color-background-warning:#f1c512;--rs-color-background-warning-faded:#2c271f;--rs-color-background-warning-highlighted:#fed014;--rs-color-border-warning:#b4920a;--rs-color-border-warning-faded:#3d3628;--rs-color-foreground-warning:#b4920c;--rs-color-background-positive:#14784a;--rs-color-background-positive-faded:#1f2a23;--rs-color-background-positive-highlighted:#178351;--rs-color-border-positive:#21ab6b;--rs-color-border-positive-faded:#293b2f;--rs-color-foreground-positive:#18ab66;--rs-color-background-neutral:#4f5155;--rs-color-background-neutral-faded:#34363f;--rs-color-background-neutral-highlighted:#595c60;--rs-color-border-neutral:#414141;--rs-color-border-neutral-faded:#464646;--rs-color-foreground-neutral:#f2f3f5;--rs-color-foreground-neutral-faded:#9f9e9e;--rs-color-background-disabled:#313131;--rs-color-background-disabled-faded:#262626;--rs-color-border-disabled:#404040;--rs-color-foreground-disabled:#656565;--rs-color-background-elevation-base:#232323;--rs-color-background-elevation-raised:#262626;--rs-color-background-elevation-overlay:#292929;--rs-color-background-page:#191919;--rs-color-background-page-faded:#202020;--rs-color-rgb-background-primary:66,129,219;--rs-color-rgb-background-primary-faded:30,44,69;--rs-color-rgb-background-primary-highlighted:50,115,204;--rs-color-rgb-border-primary:90,145,224;--rs-color-rgb-border-primary-faded:22,58,106;--rs-color-rgb-background-critical:208,38,38;--rs-color-rgb-background-critical-faded:62,31,31;--rs-color-rgb-background-critical-highlighted:226,42,42;--rs-color-rgb-border-critical:244,105,105;--rs-color-rgb-border-critical-faded:88,41,41;--rs-color-rgb-background-warning:241,197,18;--rs-color-rgb-background-warning-faded:44,39,31;--rs-color-rgb-background-warning-highlighted:254,208,20;--rs-color-rgb-border-warning:180,146,10;--rs-color-rgb-border-warning-faded:61,54,40;--rs-color-rgb-background-positive:20,120,74;--rs-color-rgb-background-positive-faded:31,42,35;--rs-color-rgb-background-positive-highlighted:23,131,81;--rs-color-rgb-border-positive:33,171,107;--rs-color-rgb-border-positive-faded:41,59,47;--rs-color-on-background-neutral:#fff;--rs-color-rgb-background-neutral:79,81,85;--rs-color-rgb-background-neutral-faded:52,54,63;--rs-color-rgb-background-neutral-highlighted:89,92,96;--rs-color-rgb-border-neutral:65,65,65;--rs-color-rgb-border-neutral-faded:70,70,70;--rs-color-rgb-background-disabled:49,49,49;--rs-color-rgb-background-disabled-faded:38,38,38;--rs-color-rgb-border-disabled:64,64,64;--rs-color-rgb-background-elevation-base:35,35,35;--rs-color-rgb-background-elevation-raised:38,38,38;--rs-color-rgb-background-elevation-overlay:41,41,41;--rs-color-rgb-background-page:25,25,25;--rs-color-rgb-background-page-faded:32,32,32}
package/types/global.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- type ClassNameValue = string | null | undefined | false;
3
- export type ClassName = ClassNameValue | ClassNameValue[] | ClassName[];
4
- export type CSSVariable = `--${string}`;
5
- export type StyleAttribute = React.CSSProperties & Record<CSSVariable, string | number | undefined>;
6
- type DataAttributes = Record<`data-${string}`, string | boolean>;
7
- export type Attributes<TagName = void, O = void> = Omit<(TagName extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[TagName] : React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>) & DataAttributes & {
8
- style?: StyleAttribute;
9
- }, O extends object ? keyof O : "className">;
10
- export type Viewport = "s" | "m" | "l" | "xl";
11
- export type ResponsiveOnly<T> = {
12
- [key in Viewport]?: T;
13
- };
14
- export type Responsive<T> = T | ResponsiveOnly<T>;
15
- /**
16
- * Form handlers
17
- */
18
- type ChangeHandlerArgs<Value, Event> = Value extends Boolean ? {
19
- name: string;
20
- value?: string;
21
- checked: Value;
22
- event?: Event;
23
- } : {
24
- name: string;
25
- value: Value;
26
- event?: Event;
27
- };
28
- export type ChangeHandler<Value, Event = React.ChangeEvent<HTMLInputElement>> = (args: ChangeHandlerArgs<Value, Event>) => void;
29
- export {};
@@ -1,63 +0,0 @@
1
- class Chain {
2
- constructor() {
3
- this.chain = {};
4
- this.tailId = null;
5
- this.idCounter = 0;
6
- }
7
- generateId() {
8
- this.idCounter += 1;
9
- return this.idCounter;
10
- }
11
- getAll() {
12
- return this.chain;
13
- }
14
- get(id) {
15
- return this.chain[id];
16
- }
17
- isLast(id) {
18
- return this.tailId !== null && id === this.tailId;
19
- }
20
- isEmpty() {
21
- return typeof this.tailId !== "number";
22
- }
23
- add(data) {
24
- const previousId = this.tailId;
25
- const previousItem = previousId && this.get(previousId);
26
- const id = this.generateId();
27
- this.chain[id] = { previousId, data };
28
- if (previousItem)
29
- previousItem.nextId = id;
30
- this.tailId = id;
31
- return id;
32
- }
33
- remove(id) {
34
- var _a, _b;
35
- const target = this.chain[id];
36
- if (!target)
37
- return;
38
- const previousId = target.previousId;
39
- const previousItem = previousId && this.get(previousId);
40
- const nextId = target.nextId;
41
- const nextItem = nextId && this.get(nextId);
42
- if (previousItem)
43
- previousItem.nextId = (_a = target.nextId) !== null && _a !== void 0 ? _a : null;
44
- if (nextItem)
45
- nextItem.previousId = (_b = target.previousId) !== null && _b !== void 0 ? _b : null;
46
- if (!nextId)
47
- this.tailId = previousId !== null && previousId !== void 0 ? previousId : null;
48
- const data = this.get(id).data;
49
- delete this.chain[id];
50
- return data;
51
- }
52
- removePreviousTill(id, condition) {
53
- const target = this.get(id);
54
- const data = this.remove(id);
55
- if (!target || !target.previousId)
56
- return data;
57
- const keepIterating = !condition(target);
58
- if (keepIterating)
59
- return this.removePreviousTill(target.previousId, condition);
60
- return data;
61
- }
62
- }
63
- export default Chain;
@@ -1,127 +0,0 @@
1
- import Chain from "../Chain.js";
2
- import * as keys from "../../constants/keys.js";
3
- import TrapScreenReader from "./TrapScreenReader.js";
4
- import { getActiveElement, getFocusableElements, focusElement, getFocusData } from "./focus.js";
5
- import { checkKeyboardMode } from "./keyboardMode.js";
6
- class TrapFocus {
7
- constructor(root) {
8
- this.trigger = null;
9
- this.options = {};
10
- this.mutationObserver = null;
11
- /**
12
- * Handle keyboard navigation while focus is trapped
13
- */
14
- this.handleKeyDown = (event) => {
15
- if (TrapFocus.chain.tailId !== this.chainId)
16
- return;
17
- const { mode, onNavigateOutside, pseudoFocus, includeTrigger } = this.options;
18
- let navigationMode = "tabs";
19
- if (mode === "action-menu" || mode === "selection-menu")
20
- navigationMode = "arrows";
21
- const key = event.key;
22
- const isTab = key === keys.TAB;
23
- const isNextTab = isTab && !event.shiftKey;
24
- const isBackTab = isTab && event.shiftKey;
25
- const isUp = navigationMode === "arrows" && key === keys.UP;
26
- const isDown = navigationMode === "arrows" && key === keys.DOWN;
27
- const isPrev = (isBackTab && navigationMode === "tabs") || isUp;
28
- const isNext = (isNextTab && navigationMode === "tabs") || isDown;
29
- const isFocusedOnTrigger = getActiveElement() === this.trigger;
30
- const focusData = getFocusData({
31
- root: this.root,
32
- target: isPrev ? "prev" : "next",
33
- options: {
34
- additionalElement: includeTrigger ? this.trigger : undefined,
35
- circular: mode !== "action-menu",
36
- },
37
- });
38
- // Release the trap when tab is used in navigation modes that support arrows
39
- const hasNavigatedOutside = (isTab && navigationMode === "arrows") ||
40
- (mode === "content-menu" && isTab && focusData.overflow);
41
- if (hasNavigatedOutside) {
42
- // Prevent shift + tab event to avoid focus moving after the trap release
43
- if (isBackTab && !isFocusedOnTrigger)
44
- event.preventDefault();
45
- this.release();
46
- onNavigateOutside === null || onNavigateOutside === void 0 ? void 0 : onNavigateOutside();
47
- return;
48
- }
49
- if (!isPrev && !isNext)
50
- return;
51
- event.preventDefault();
52
- if (!focusData.el)
53
- return;
54
- focusElement(focusData.el, { pseudoFocus });
55
- };
56
- this.addListeners = () => document.addEventListener("keydown", this.handleKeyDown);
57
- this.removeListeners = () => document.removeEventListener("keydown", this.handleKeyDown);
58
- /**
59
- * Trap the focus, add observer and keyboard event listeners
60
- * and create a chain item
61
- */
62
- this.trap = (options = {}) => {
63
- const { mode = "dialog", includeTrigger, initialFocusEl } = options;
64
- const trigger = getActiveElement();
65
- const focusable = getFocusableElements(this.root, {
66
- additionalElement: includeTrigger ? trigger : undefined,
67
- });
68
- const pseudoFocus = mode === "selection-menu";
69
- this.options = Object.assign(Object.assign({}, options), { pseudoFocus });
70
- this.trigger = trigger;
71
- this.mutationObserver = new MutationObserver(() => {
72
- const currentActiveElement = getActiveElement();
73
- // Focus stayed inside the wrapper, no need to refocus
74
- if (this.root.contains(currentActiveElement))
75
- return;
76
- const focusable = getFocusableElements(this.root, {
77
- additionalElement: includeTrigger ? trigger : undefined,
78
- });
79
- if (!focusable.length)
80
- return;
81
- focusElement(focusable[0], { pseudoFocus });
82
- });
83
- this.removeListeners();
84
- if (mode === "dialog")
85
- this.screenReaderTrap.trap();
86
- this.mutationObserver.observe(this.root, { childList: true, subtree: true });
87
- if (!focusable.length && !initialFocusEl)
88
- return;
89
- this.addListeners();
90
- // Don't add back to the chain if we're traversing back
91
- const tailItem = TrapFocus.chain.tailId && TrapFocus.chain.get(TrapFocus.chain.tailId);
92
- if (!tailItem || this.root !== tailItem.data.root) {
93
- this.chainId = TrapFocus.chain.add(this);
94
- focusElement(initialFocusEl || focusable[0], { pseudoFocus });
95
- }
96
- this.trapped = true;
97
- };
98
- /**
99
- * Disabled the trap focus for the element,
100
- * cleanup all observers/handlers and trap for the previous element in the chain
101
- */
102
- this.release = (releaseOptions = {}) => {
103
- var _a;
104
- const { withoutFocusReturn } = releaseOptions;
105
- if (!this.trapped || !this.chainId)
106
- return;
107
- this.trapped = false;
108
- if (this.trigger) {
109
- const preventScroll = withoutFocusReturn || !checkKeyboardMode();
110
- this.trigger.focus({ preventScroll });
111
- }
112
- TrapFocus.chain.removePreviousTill(this.chainId, (item) => document.body.contains(item.data.trigger));
113
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
114
- this.removeListeners();
115
- this.screenReaderTrap.release();
116
- const previousItem = TrapFocus.chain.tailId && TrapFocus.chain.get(TrapFocus.chain.tailId);
117
- if (previousItem) {
118
- const trapInstance = new TrapFocus(previousItem.data.root);
119
- trapInstance.trap(previousItem.data.options);
120
- }
121
- };
122
- this.root = root;
123
- this.screenReaderTrap = new TrapScreenReader(root);
124
- }
125
- }
126
- TrapFocus.chain = new Chain();
127
- export default TrapFocus;