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
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../../utilities/helpers.js";
3
+ import Flyout from "../_private/Flyout/index.js";
4
+ import s from "./Popover.module.css";
5
+ import getPaddingStyles from "../../styles/padding/index.js";
6
+ const Popover = (props) => {
7
+ const { id, forcePosition, onOpen, onClose, active, defaultActive, children, width, contentGap, variant = "elevated", triggerType = "click", position = "bottom", disableHideAnimation, instanceRef, } = props;
8
+ const padding = props.padding ?? (variant === "headless" ? 0 : 4);
9
+ const trapFocusMode = props.trapFocusMode || (triggerType === "hover" ? "content-menu" : undefined);
10
+ const paddingStyles = getPaddingStyles(padding);
11
+ const contentClassName = classNames(s.content, !!width && s["content--has-width"], variant && s[`content--variant-${variant}`], paddingStyles?.classNames);
12
+ return (
13
+ // @ts-ignore
14
+ _jsx(Flyout, { id: id, instanceRef: instanceRef, position: position, forcePosition: forcePosition, onOpen: onOpen, onClose: onClose, trapFocusMode: trapFocusMode, triggerType: triggerType, active: active, defaultActive: defaultActive, width: width, disableHideAnimation: disableHideAnimation, contentGap: contentGap, contentClassName: contentClassName, contentAttributes: { style: { ...paddingStyles?.variables } }, children: children }));
15
+ };
16
+ Popover.Trigger = Flyout.Trigger;
17
+ Popover.Content = Flyout.Content;
18
+ export default Popover;
@@ -0,0 +1 @@
1
+ .content{max-width:360px}.content--variant-elevated{background:var(--rs-color-background-elevation-overlay);border:1px solid var(--rs-color-border-neutral-faded);border-radius:var(--rs-radius-medium);box-shadow:var(--rs-shadow-overlay);color:var(--rs-color-foreground-neutral);min-width:220px;overflow:hidden}.content.content--has-width{max-width:none;min-width:0}@media (--rs-viewport-s ){.content{max-width:none}}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../../utilities/helpers.js";
3
+ import s from "./Progress.module.css";
4
+ const Progress = (props) => {
5
+ const { value = 0, min = 0, max = 100, color = "primary", size = "medium", duration, className, attributes, } = props;
6
+ const rootClassNames = classNames(s.root, className, color && s[`--color-${color}`], size && s[`--size-${size}`], !!duration && s["--duration"]);
7
+ const total = max - min;
8
+ const normalizedValue = value - min;
9
+ const resolvedValue = Math.max(min, Math.min(max, normalizedValue));
10
+ const width = (resolvedValue / total) * 100;
11
+ const translate = `${width - 100}%`;
12
+ return (_jsx("div", { role: "progressbar", ...attributes, className: rootClassNames, "aria-valuemax": max, "aria-valuemin": min, "aria-valuenow": value, children: _jsx("div", { className: s.value, style: {
13
+ "--rs-progress-value": translate,
14
+ "--rs-progress-duration": duration ? `${duration}ms` : undefined,
15
+ } }) }));
16
+ };
17
+ export default Progress;
@@ -0,0 +1 @@
1
+ .root{align-items:flex-start;display:flex;overflow:hidden}.root,.value{background:var(--rs-color-background-neutral-faded);border-radius:var(--rs-radius-small)}.value{height:100%;transform:translateX(var(--rs-progress-value));transition:transform var(--rs-easing-decelerate);transition-duration:var(--rs-progress-duration,var(--rs-duration-slow));width:100%}[dir=rtl] .value{transform:translateX(calc(var(--rs-progress-value) * -1))}.--duration .value{transition-timing-function:linear}.--size-small{height:var(--rs-unit-x1)}.--size-medium{height:var(--rs-unit-x2)}.--color-primary .value{background:var(--rs-color-background-primary)}.--color-critical .value{background:var(--rs-color-background-critical)}.--color-warning .value{background:var(--rs-color-background-warning)}.--color-positive .value{background:var(--rs-color-background-positive)}.--color-media{background:rgba(var(--rs-color-rgb-white),28%)}.--color-media .value{background:var(--rs-color-white)}
@@ -0,0 +1,11 @@
1
+ import type * as G from "../../types/global";
2
+ export type Props = {
3
+ value?: number;
4
+ max?: number;
5
+ min?: number;
6
+ size?: "small" | "medium";
7
+ color?: "primary" | "critical" | "warning" | "positive" | "media";
8
+ duration?: number;
9
+ className?: G.ClassName;
10
+ attributes?: G.Attributes<"div">;
11
+ };
@@ -0,0 +1,66 @@
1
+ import React from "react";
2
+ import { Example } from "../../../utilities/storybook/index.js";
3
+ import View from "../../View/index.js";
4
+ import Progress from "../index.js";
5
+ import Button from "../../Button/index.js";
6
+ export default {
7
+ title: "Components/Progress",
8
+ component: Progress,
9
+ parameters: {
10
+ iframe: {
11
+ url: "https://reshaped.so/docs/components/progress",
12
+ },
13
+ },
14
+ };
15
+ export const value = () => (<Example>
16
+ <Example.Item title="value: 50">
17
+ <Progress value={50}/>
18
+ </Example.Item>
19
+ <Example.Item title="value: 20, min: 0, max: 40">
20
+ <Progress value={20} min={0} max={40}/>
21
+ </Example.Item>
22
+ <Example.Item title="value: 50, min: 0, max: 40">
23
+ <Progress value={50} min={0} max={40}/>
24
+ </Example.Item>
25
+ </Example>);
26
+ export const size = () => (<Example>
27
+ <Example.Item title="size: small, value: 50">
28
+ <Progress value={50} size="small"/>
29
+ </Example.Item>
30
+ <Example.Item title="size: medium, value: 50">
31
+ <Progress value={50} size="medium"/>
32
+ </Example.Item>
33
+ </Example>);
34
+ export const color = () => (<Example>
35
+ <Example.Item title="color: critical, value: 50">
36
+ <Progress value={50} color="critical"/>
37
+ </Example.Item>
38
+ <Example.Item title="color: warning, value: 50">
39
+ <Progress value={50} color="warning"/>
40
+ </Example.Item>
41
+ <Example.Item title="color: positive, value: 50">
42
+ <Progress value={50} color="positive"/>
43
+ </Example.Item>
44
+ <Example.Item title="color: media, value: 50">
45
+ <View padding={4} backgroundColor="black" borderRadius="medium">
46
+ <Progress value={50} color="media"/>
47
+ </View>
48
+ </Example.Item>
49
+ </Example>);
50
+ export const duration = () => {
51
+ const [active, setActive] = React.useState(false);
52
+ const handleChange = () => {
53
+ setActive((state) => !state);
54
+ };
55
+ return (<Example>
56
+ <Example.Item title="duration: 2000">
57
+ <View gap={3}>
58
+ <View.Item>
59
+ <Button onClick={handleChange}>Change</Button>
60
+ </View.Item>
61
+
62
+ <Progress value={active ? 100 : 0} duration={2000}/>
63
+ </View>
64
+ </Example.Item>
65
+ </Example>);
66
+ };
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { classNames } from "../../utilities/helpers.js";
4
+ import HiddenInput from "../_private/HiddenInput/index.js";
5
+ import { useRadioGroup } from "../RadioGroup/index.js";
6
+ import { useFormControl } from "../FormControl/index.js";
7
+ import s from "./Radio.module.css";
8
+ const Radio = (props) => {
9
+ const { children, value, onChange, onFocus, onBlur, className, attributes, inputAttributes } = props;
10
+ const formControl = useFormControl();
11
+ const radioGroup = useRadioGroup();
12
+ const hasError = formControl?.hasError || props.hasError || radioGroup?.hasError;
13
+ const disabled = formControl?.disabled || props.disabled || radioGroup?.disabled;
14
+ const checked = radioGroup ? radioGroup.value === value : props.checked;
15
+ const defaultChecked = radioGroup ? undefined : props.defaultChecked;
16
+ const name = radioGroup ? radioGroup.name : props.name;
17
+ const rootClassName = classNames(s.root, className, hasError && s["--error"], disabled && s["--disabled"]);
18
+ const handleChange = (event) => {
19
+ if (!name)
20
+ return;
21
+ const { checked } = event.target;
22
+ const changeArgs = { name, value, checked, event };
23
+ if (onChange)
24
+ onChange(changeArgs);
25
+ if (radioGroup?.onChange)
26
+ radioGroup.onChange(changeArgs);
27
+ };
28
+ return (_jsxs("label", { ...attributes, className: rootClassName, children: [_jsxs("span", { className: s.field, children: [_jsx(HiddenInput, { className: s.input, type: "radio", checked: checked, defaultChecked: defaultChecked, name: name, disabled: disabled, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, attributes: inputAttributes }), _jsx("div", { className: s.decorator })] }), children && _jsx("span", { className: s.text, children: children })] }));
29
+ };
30
+ export default Radio;
@@ -0,0 +1 @@
1
+ .root{align-items:center;cursor:pointer;display:inline-flex;user-select:none;vertical-align:top;-webkit-tap-highlight-color:transparent}.root:hover .input:not(:checked)+.decorator{background:var(--rs-color-background-neutral-faded)}.field{position:relative}.decorator{--rs-radio-decorator-size:var(--rs-line-height-body-3);background:var(--rs-color-background-elevation-base);border:1px solid var(--rs-color-border-neutral);border-radius:50%;height:var(--rs-radio-decorator-size);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:background-color,border-color;width:var(--rs-radio-decorator-size)}.decorator:after{background:var(--rs-color-on-background-primary);border-radius:50%;content:"";height:calc(var(--rs-radio-decorator-size) * .4);left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform;width:calc(var(--rs-radio-decorator-size) * .4)}[data-rs-keyboard] .input:focus+.decorator{box-shadow:var(--rs-focus-shadow)}.input:checked+.decorator,.root.--error .input:checked+.decorator,.root.--error:hover .input:checked+.decorator{background:var(--rs-color-background-primary);border-color:var(--rs-color-background-primary);border-width:2px}.input:checked+.decorator:after,.root.--error .input:checked+.decorator:after,.root.--error:hover .input:checked+.decorator:after{opacity:1;transform:translate(-50%,-50%) scale(1)}.text{margin-inline-start:var(--rs-unit-x2)}.root.--error .decorator,.root.--error:hover .input+.decorator{border-color:var(--rs-color-border-critical)}.root.--disabled{color:var(--rs-color-foreground-disabled);cursor:not-allowed}.root.--disabled .decorator,.root.--disabled .input:checked+.decorator,.root.--disabled:hover .input+.decorator{background:var(--rs-color-background-disabled-faded);border-color:var(--rs-color-border-disabled)}.root.--disabled .input:checked+.decorator{border-color:transparent}.root.--disabled .input:checked+.decorator:after{background:var(--rs-color-border-disabled)}
@@ -0,0 +1,25 @@
1
+ import type React from "react";
2
+ import type * as G from "../../types/global";
3
+ type BaseProps = {
4
+ children?: React.ReactNode;
5
+ name?: string;
6
+ disabled?: boolean;
7
+ hasError?: boolean;
8
+ value: string;
9
+ onChange?: G.ChangeHandler<boolean>;
10
+ onFocus?: (e: React.FocusEvent) => void;
11
+ onBlur?: (e: React.FocusEvent) => void;
12
+ className?: G.ClassName;
13
+ attributes?: G.Attributes<"label">;
14
+ inputAttributes?: G.Attributes<"input">;
15
+ };
16
+ export type ControlledProps = BaseProps & {
17
+ checked: boolean;
18
+ defaultChecked?: never;
19
+ };
20
+ export type UncontrolledProps = BaseProps & {
21
+ checked?: never;
22
+ defaultChecked?: boolean;
23
+ };
24
+ export type Props = ControlledProps | UncontrolledProps;
25
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import RadioGroupControlled from "./RadioGroupControlled.js";
3
+ import RadioGroupUncontrolled from "./RadioGroupUncontrolled.js";
4
+ const RadioGroup = (props) => {
5
+ const { value } = props;
6
+ if (value !== undefined)
7
+ return _jsx(RadioGroupControlled, { ...props });
8
+ return _jsx(RadioGroupUncontrolled, { ...props });
9
+ };
10
+ export default RadioGroup;
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import RadioGroupControlled from "./RadioGroupControlled.js";
5
+ const RadioGroupUncontrolled = (props) => {
6
+ const { defaultValue, onChange } = props;
7
+ const [value, setValue] = React.useState(defaultValue || null);
8
+ const handleChange = (args) => {
9
+ if (!args.value)
10
+ return;
11
+ setValue(args.value);
12
+ if (onChange)
13
+ onChange(args);
14
+ };
15
+ return (_jsx(RadioGroupControlled, { ...props, value: value, defaultValue: undefined, onChange: handleChange }));
16
+ };
17
+ export default RadioGroupUncontrolled;
@@ -0,0 +1 @@
1
+ :root{--rs-z-index-raised:5;--rs-z-index-flyout:80;--rs-z-index-fixed:90;--rs-z-index-overlay:100;--rs-z-index-notification:110}blockquote,body,dd,dl,figcaption,figure,h1,h2,h3,h4,h5,h6,li,ol,p,ul{margin:0;padding:0}ol[class],ul[class]{list-style:none}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}fieldset{border:0;margin:0;padding:0}img{display:block;max-width:100%}button,input,select,textarea{font:inherit}option{background:var(--rs-color-background-elevation-base)}label{cursor:pointer}input::placeholder,textarea::placeholder{color:var(--rs-color-foreground-neutral-faded);opacity:.5}html{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;font-family:var(--rs-font-family-body);font-size:87.5%;font-weight:var(--rs-font-weight-regular);line-height:var(--rs-line-height-body-3);text-rendering:optimizelegibility;touch-action:manipulation}*{box-sizing:border-box}body,html{background:var(--rs-color-background-page);color:var(--rs-color-foreground-neutral);height:100%;scroll-behavior:smooth}[data-rs-theme]:not(html){font-family:var(--rs-font-family-body);font-size:var(--rs-font-size-body-3);font-weight:var(--rs-font-weight-regular);line-height:var(--rs-line-height-body-3)}[data-rs-color-mode=light]{color-scheme:light}[data-rs-color-mode=dark]{color-scheme:dark}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}[data-rs-no-transition] *,[data-rs-no-transition] :after,[data-rs-no-transition] :before{transition:none!important}@layer rs.reset;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { classNames } from "../../utilities/helpers.js";
4
+ import Theme, { GlobalColorMode } from "../Theme/index.js";
5
+ import { ToastProvider } from "../Toast/index.js";
6
+ import useSingletonKeyboardMode from "../../hooks/_private/useSingletonKeyboardMode.js";
7
+ import { SingletonEnvironmentContext, useSingletonRTL, } from "../../hooks/_private/useSingletonEnvironment.js";
8
+ import { SingletonHotkeysProvider } from "../../hooks/_private/useSingletonHotkeys.js";
9
+ import "./Reshaped.css";
10
+ import s from "./Reshaped.module.css";
11
+ const ReshapedInner = (props) => {
12
+ const { children, defaultRTL, defaultViewport = "s", toastOptions } = props;
13
+ const rtlState = useSingletonRTL(defaultRTL);
14
+ useSingletonKeyboardMode();
15
+ return (_jsx(SingletonEnvironmentContext.Provider, { value: { rtl: rtlState, defaultViewport }, children: _jsx(SingletonHotkeysProvider, { children: _jsx(ToastProvider, { options: toastOptions, children: children }) }) }));
16
+ };
17
+ const Reshaped = (props) => {
18
+ const { theme, defaultTheme = "reshaped", defaultColorMode, className } = props;
19
+ const rootClassNames = classNames(s.root, className);
20
+ return (_jsx(GlobalColorMode, { defaultMode: defaultColorMode, children: _jsx(Theme, { name: theme, defaultName: defaultTheme, className: rootClassNames, children: _jsx(ReshapedInner, { ...props, children: props.children }) }) }));
21
+ };
22
+ export default Reshaped;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { classNames } from "../../utilities/helpers.js";
3
+ import s from "./Scrim.module.css";
4
+ const Scrim = (props) => {
5
+ const { children, backgroundSlot, position = "cover", attributes, className, scrimClassName, } = props;
6
+ const rootClassNames = classNames(s.root, !!backgroundSlot && s["--with-background"], position && s[`--position-${position}`], className);
7
+ const scrimClassNames = classNames(s.scrim, scrimClassName);
8
+ return (_jsxs("div", { ...attributes, className: rootClassNames, children: [backgroundSlot, _jsx("div", { className: scrimClassNames, children: _jsx("div", { className: s.content, children: children }) })] }));
9
+ };
10
+ export default Scrim;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type * as G from "../../types/global";
3
+ export type Props = {
4
+ children?: React.ReactNode;
5
+ backgroundSlot?: React.ReactNode;
6
+ position?: "full" | "top" | "bottom" | "start" | "end";
7
+ fill?: boolean;
8
+ scrimClassName?: G.ClassName;
9
+ className?: G.ClassName;
10
+ attributes?: G.Attributes<"div">;
11
+ };
@@ -0,0 +1,141 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React, { forwardRef } from "react";
4
+ import { classNames } from "../../utilities/helpers.js";
5
+ import { disableUserSelect, enableUserSelect } from "../../utilities/dom.js";
6
+ import getHeightStyles from "../../styles/height/index.js";
7
+ import getMaxHeightStyles from "../../styles/maxHeight/index.js";
8
+ import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
9
+ import s from "./ScrollArea.module.css";
10
+ const ScrollAreaBar = (props) => {
11
+ const { ratio, position, vertical, onThumbMove } = props;
12
+ const [dragging, setDragging] = React.useState(false);
13
+ const dragStartPositionRef = React.useRef(0);
14
+ const barRef = React.useRef(null);
15
+ const barClassNames = classNames(s.scrollbar, vertical ? s["--scrollbar-y"] : s["--scrollbar-x"], dragging && s["--scrollbar-dragging"]);
16
+ const handleClick = (e) => {
17
+ const elBar = barRef.current;
18
+ const isDirty = dragStartPositionRef.current;
19
+ dragStartPositionRef.current = 0;
20
+ if (isDirty)
21
+ return;
22
+ if (!elBar || e.currentTarget !== elBar)
23
+ return;
24
+ const rect = elBar.getBoundingClientRect();
25
+ const diff = vertical ? e.pageY - rect.top : e.pageX - rect.left;
26
+ const total = vertical ? elBar.clientHeight : elBar.clientWidth;
27
+ // Move the center of the thumb to the clicked coordinates
28
+ onThumbMove({ value: diff / total - ratio / 2, type: "absolute" });
29
+ };
30
+ const handleDrag = React.useCallback((e) => {
31
+ if (!dragStartPositionRef.current) {
32
+ dragStartPositionRef.current = vertical ? e.pageY : e.pageX;
33
+ }
34
+ const elBar = barRef.current;
35
+ if (!elBar)
36
+ return;
37
+ if (!dragging)
38
+ return;
39
+ const diff = vertical ? e.movementY : e.movementX;
40
+ const total = vertical ? elBar.scrollHeight : elBar.scrollWidth;
41
+ onThumbMove({ value: diff / total, type: "relative" });
42
+ },
43
+ // eslint-disable-next-line react-hooks/exhaustive-deps
44
+ [ratio, vertical, dragging]);
45
+ const handleDragEnd = React.useCallback(() => {
46
+ setDragging(false);
47
+ enableUserSelect();
48
+ }, []);
49
+ const handleDragStart = () => {
50
+ setDragging(true);
51
+ disableUserSelect();
52
+ };
53
+ React.useEffect(() => {
54
+ if (!dragging)
55
+ return;
56
+ document.addEventListener("mousemove", handleDrag);
57
+ document.addEventListener("mouseup", handleDragEnd);
58
+ return () => {
59
+ document.removeEventListener("mousemove", handleDrag);
60
+ document.removeEventListener("mouseup", handleDragEnd);
61
+ };
62
+ }, [handleDrag, handleDragEnd, dragging]);
63
+ return (_jsx("div", { className: barClassNames, style: {
64
+ "--rs-scroll-area-ratio": ratio,
65
+ "--rs-scroll-area-position": position,
66
+ }, ref: barRef, onClick: handleClick, onMouseDown: handleDragStart, "aria-hidden": "true", children: _jsx("div", { className: s.thumb }) }));
67
+ };
68
+ const ScrollArea = forwardRef((props, ref) => {
69
+ const { children, height, maxHeight, scrollbarDisplay = "hover", onScroll, className, attributes, } = props;
70
+ const [scrollRatio, setScrollRatio] = React.useState({ x: 1, y: 1 });
71
+ const [scrollPosition, setScrollPosition] = React.useState({ x: 0, y: 0 });
72
+ const scrollableRef = React.useRef(null);
73
+ const resizeObserverRef = React.useRef();
74
+ const heightStyles = getHeightStyles(height);
75
+ const maxHeightStyles = getMaxHeightStyles(maxHeight);
76
+ const rootClassNames = classNames(s.root, scrollbarDisplay && s[`--display-${scrollbarDisplay}`], heightStyles?.classNames, maxHeightStyles?.classNames, className);
77
+ const rootVariables = {
78
+ ...heightStyles?.variables,
79
+ ...maxHeightStyles?.variables,
80
+ };
81
+ const updateScroll = React.useCallback(() => {
82
+ const scrollableEl = scrollableRef.current;
83
+ if (!scrollableEl)
84
+ return;
85
+ setScrollRatio({
86
+ x: scrollableEl.clientWidth / scrollableEl.scrollWidth,
87
+ y: scrollableEl.clientHeight / scrollableEl.scrollHeight,
88
+ });
89
+ }, []);
90
+ const handleScroll = (e) => {
91
+ const scrollableEl = scrollableRef.current;
92
+ if (!scrollableEl)
93
+ return;
94
+ const next = {
95
+ x: e.currentTarget.scrollLeft / scrollableEl.scrollWidth,
96
+ y: e.currentTarget.scrollTop / scrollableEl.scrollHeight,
97
+ };
98
+ setScrollPosition(next);
99
+ onScroll?.(next);
100
+ };
101
+ const handleThumbYMove = (args) => {
102
+ const scrollableEl = scrollableRef.current;
103
+ if (!scrollableEl)
104
+ return;
105
+ const value = scrollableEl.scrollHeight * args.value;
106
+ if (args.type === "absolute") {
107
+ scrollableEl.scrollTop = value;
108
+ }
109
+ else {
110
+ scrollableEl.scrollTop += value;
111
+ }
112
+ };
113
+ const handleThumbXMove = (args) => {
114
+ const scrollableEl = scrollableRef.current;
115
+ if (!scrollableEl)
116
+ return;
117
+ const value = scrollableEl.clientWidth * args.value;
118
+ if (args.type === "absolute") {
119
+ scrollableEl.scrollLeft = value;
120
+ }
121
+ else {
122
+ scrollableEl.scrollLeft += value;
123
+ }
124
+ };
125
+ React.useImperativeHandle(ref, () => scrollableRef.current);
126
+ useIsomorphicLayoutEffect(() => {
127
+ updateScroll();
128
+ }, [updateScroll]);
129
+ useIsomorphicLayoutEffect(() => {
130
+ const scrollableEl = scrollableRef.current;
131
+ if (!scrollableEl)
132
+ return;
133
+ resizeObserverRef.current = new ResizeObserver(updateScroll);
134
+ resizeObserverRef.current.observe(scrollableEl);
135
+ return () => {
136
+ resizeObserverRef.current?.disconnect();
137
+ };
138
+ }, [updateScroll]);
139
+ return (_jsxs("div", { ...attributes, className: rootClassNames, style: rootVariables, children: [_jsx("div", { className: s.scrollable, ref: scrollableRef, onScroll: handleScroll, children: children }), scrollRatio.y < 1 && scrollbarDisplay !== "hidden" && (_jsx(ScrollAreaBar, { vertical: true, onThumbMove: handleThumbYMove, ratio: scrollRatio.y, position: scrollPosition.y })), scrollRatio.x < 1 && scrollbarDisplay !== "hidden" && (_jsx(ScrollAreaBar, { onThumbMove: handleThumbXMove, ratio: scrollRatio.x, position: scrollPosition.x }))] }));
140
+ });
141
+ export default ScrollArea;
@@ -0,0 +1 @@
1
+ .root{--rs-scroll-area-thumb-size:calc(var(--rs-unit-x1) * 1.5);--rs-scroll-area-thumb-offset:calc(var(--rs-unit-x1) / 2);overflow:hidden}.root,.scrollable{height:100%;position:relative}.scrollable{overflow:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.scrollable::-webkit-scrollbar{display:none;height:0;width:0}.scrollbar{box-sizing:initial;padding:var(--rs-scroll-area-thumb-offset);position:absolute}.thumb{height:100%;position:relative;width:100%}.thumb:before{background:var(--rs-color-foreground-neutral);border-radius:999px;content:"";display:block;opacity:0;position:absolute;transition:opacity var(--rs-duration-fast) var(--rs-easing-standard)}.--scrollbar-y{inset-block:0;inset-inline-end:0;width:var(--rs-scroll-area-thumb-size)}.--scrollbar-y .thumb:before{height:calc(var(--rs-scroll-area-ratio) * 100%);inset-block-start:calc(var(--rs-scroll-area-position) * 100%);width:100%}.--scrollbar-x{height:var(--rs-scroll-area-thumb-size);inset-block-end:0;inset-inline:0}.--scrollbar-x .thumb:before{height:100%;inset-inline-start:calc(var(--rs-scroll-area-position) * 100%);width:calc(var(--rs-scroll-area-ratio) * 100%)}.--scrollbar-y:not(:last-child){inset-block-end:calc(var(--rs-scroll-area-thumb-size) + var(--rs-scroll-area-thumb-offset) * 2)}.--scrollbar-y~.--scrollbar-x{inset-inline-end:calc(var(--rs-scroll-area-thumb-size) + var(--rs-scroll-area-thumb-offset) * 2)}.--display-hover:hover .thumb:before,.--display-visible .thumb:before{opacity:.2}.--display-hover:hover .--scrollbar-dragging .thumb:before,.--scrollbar-dragging .thumb:before,.scrollbar:hover .thumb:before{opacity:.32}
@@ -0,0 +1,23 @@
1
+ import type React from "react";
2
+ import type * as G from "../../types/global";
3
+ export type Props = {
4
+ children: React.ReactNode;
5
+ scrollbarDisplay?: "visible" | "hover" | "hidden";
6
+ onScroll?: (args: {
7
+ x: number;
8
+ y: number;
9
+ }) => void;
10
+ height?: G.Responsive<string | number>;
11
+ maxHeight?: G.Responsive<string | number>;
12
+ className?: G.ClassName;
13
+ attributes?: G.Attributes<"div">;
14
+ };
15
+ export type BarProps = {
16
+ ratio: number;
17
+ position: number;
18
+ vertical?: boolean;
19
+ onThumbMove: (args: {
20
+ value: number;
21
+ type: "absolute" | "relative";
22
+ }) => void;
23
+ };
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import Icon from "../Icon/index.js";
5
+ import { useFormControl } from "../FormControl/index.js";
6
+ import Actionable from "../Actionable/index.js";
7
+ import Text from "../Text/index.js";
8
+ import IconArrow from "../../icons/ChevronVertical.js";
9
+ import { classNames, responsiveClassNames, responsivePropDependency } from "../../utilities/helpers.js";
10
+ import useElementId from "../../hooks/useElementId.js";
11
+ import s from "./Select.module.css";
12
+ const Select = (props) => {
13
+ const { onChange, onClick, onFocus, onBlur, name, value, defaultValue, placeholder, options, children, icon, startSlot, size = "medium", variant = "outline", className, attributes, } = props;
14
+ const [empty, setEmpty] = React.useState(value === undefined ? !defaultValue : !value);
15
+ const formControl = useFormControl();
16
+ const id = useElementId(props.id);
17
+ const inputId = formControl?.attributes?.id || props.inputAttributes?.id || id;
18
+ const disabled = formControl?.disabled || props.disabled;
19
+ const hasError = formControl?.hasError || props.hasError;
20
+ const inputAttributes = { ...props.inputAttributes, ...formControl?.attributes };
21
+ const rootClassName = classNames(s.root, className, size && responsiveClassNames(s, "--size", size), hasError && s["--status-error"], disabled && s["--disabled"], empty && options && s["--placeholder"], variant && s[`--variant-${variant}`]);
22
+ const handleChange = (event) => {
23
+ const nextValue = event.target.value;
24
+ // Uncontrolled placeholder
25
+ if (value === undefined)
26
+ setEmpty(!nextValue);
27
+ if (!onChange)
28
+ return;
29
+ onChange({ name, value: nextValue, event });
30
+ };
31
+ // Controlled placeholder
32
+ React.useEffect(() => {
33
+ if (value === undefined)
34
+ return;
35
+ setEmpty(!value);
36
+ }, [value]);
37
+ const startContent = (startSlot || icon) && (_jsx("div", { className: s.slot, children: icon ? (_jsx(Icon, { size: responsivePropDependency(size, (size) => {
38
+ if (size === "large")
39
+ return 5;
40
+ if (size === "xlarge")
41
+ return 6;
42
+ return 4;
43
+ }), svg: icon })) : (startSlot) }));
44
+ return (_jsxs("div", { ...attributes, className: rootClassName, children: [options ? (_jsxs(_Fragment, { children: [startContent, _jsxs("select", { ...inputAttributes, onFocus: (onFocus || inputAttributes?.onFocus), onBlur: (onBlur || inputAttributes?.onBlur), className: s.input, disabled: disabled, name: name, value: value, defaultValue: defaultValue, onChange: handleChange, id: inputId, children: [placeholder && _jsx("option", { value: "", children: placeholder }), options.map((option) => (_jsx("option", { value: option.value, disabled: option.disabled, children: option.label }, option.value)))] })] })) : (_jsxs(_Fragment, { children: [_jsxs(Actionable, { className: s.input, disabled: disabled, onClick: onClick, attributes: {
45
+ ...inputAttributes,
46
+ onFocus: onFocus || inputAttributes?.onFocus,
47
+ onBlur: onBlur || inputAttributes?.onBlur,
48
+ }, children: [startContent, children || (placeholder ? _jsx(Text, { color: "neutral-faded", children: placeholder }) : null)] }), _jsx("input", { type: "hidden", value: value, name: name })] })), _jsx("div", { className: s.arrow, children: _jsx(Icon, { svg: IconArrow, color: disabled ? "disabled" : "neutral-faded", size: responsivePropDependency(size, (size) => {
49
+ return size === "large" || size === "xlarge" ? 5 : 4;
50
+ }) }) })] }));
51
+ };
52
+ export default Select;
@@ -0,0 +1 @@
1
+ .root{background:var(--rs-color-background-elevation-base);border:1px solid var(--rs-color-border-neutral);display:flex;overflow:hidden;padding:calc(var(--rs-unit-x1) - 1px) 0;position:relative;z-index:0}.root:focus-within{border-color:var(--rs-color-border-primary);box-shadow:0 0 0 1px var(--rs-color-border-primary)}.input{align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;color:var(--rs-color-foreground-neutral);cursor:pointer;display:flex;flex-grow:1;font-family:var(--rs-font-family-body);font-weight:var(--rs-font-weight-regular);outline:none;padding-inline-end:calc(var(--rs-select-chevron-size) + var(--rs-select-gap) * 2 + var(--rs-unit-x1));padding-inline-start:var(--rs-select-gap);position:relative;width:100%;z-index:1}.input::-ms-expand{display:none}.slot{align-items:center;display:flex;flex-shrink:0;padding-inline-start:var(--rs-select-gap);position:relative;z-index:5}.input .slot{padding-inline-end:var(--rs-select-gap);padding-inline-start:0}.arrow{color:var(--rs-color-foreground-neutral-faded);display:flex;inset-block-start:50%;inset-inline-end:var(--rs-select-gap);pointer-events:none;position:absolute;transform:translateY(-50%);z-index:5}.--size-medium{--rs-select-gap:var(--rs-unit-x2);--rs-select-chevron-size:var(--rs-unit-x4);border-radius:var(--rs-radius-small)}.--size-medium .input{font-size:var(--rs-font-size-body-3);line-height:var(--rs-line-height-body-3);padding-bottom:var(--rs-unit-x1);padding-top:var(--rs-unit-x1)}.--size-large{--rs-select-gap:var(--rs-unit-x3);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-large .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x2);padding-top:var(--rs-unit-x2)}.--size-xlarge{--rs-select-gap:var(--rs-unit-x4);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-xlarge .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x3);padding-top:var(--rs-unit-x3)}.root.--variant-faded{background:var(--rs-color-background-neutral-faded);border-color:transparent}.root.--variant-faded:focus-within{border-color:var(--rs-color-border-primary)}.root.--variant-headless{background:transparent;border-color:transparent}.root.--variant-headless.--status-error,.root.--variant-headless.--status-error:focus-within,.root.--variant-headless:focus-within{border-color:transparent;box-shadow:none}.root.--status-error{border-color:var(--rs-color-border-critical)}.root.--status-error:focus-within{border-color:var(--rs-color-border-primary)}.root.--placeholder .input{color:var(--rs-color-foreground-neutral-faded)}.root.--disabled{background:var(--rs-color-background-disabled-faded);border-color:var(--rs-color-border-disabled)}.root.--disabled .arrow,.root.--disabled .input{color:var(--rs-color-foreground-disabled);cursor:not-allowed}@media (--rs-viewport-s ) and (hover:none){.input{font-size:var(--rs-font-size-body-2)!important}}@media (--rs-viewport-m ){.--size-medium--m{--rs-select-gap:var(--rs-unit-x2);--rs-select-chevron-size:var(--rs-unit-x4);border-radius:var(--rs-radius-small)}.--size-medium--m .input{font-size:var(--rs-font-size-body-3);line-height:var(--rs-line-height-body-3);padding-bottom:var(--rs-unit-x1);padding-top:var(--rs-unit-x1)}.--size-large--m{--rs-select-gap:var(--rs-unit-x3);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-large--m .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x2);padding-top:var(--rs-unit-x2)}.--size-xlarge--m{--rs-select-gap:var(--rs-unit-x4);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-xlarge--m .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x3);padding-top:var(--rs-unit-x3)}}@media (--rs-viewport-l ){.--size-medium--l{--rs-select-gap:var(--rs-unit-x2);--rs-select-chevron-size:var(--rs-unit-x4);border-radius:var(--rs-radius-small)}.--size-medium--l .input{font-size:var(--rs-font-size-body-3);line-height:var(--rs-line-height-body-3);padding-bottom:var(--rs-unit-x1);padding-top:var(--rs-unit-x1)}.--size-large--l{--rs-select-gap:var(--rs-unit-x3);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-large--l .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x2);padding-top:var(--rs-unit-x2)}.--size-xlarge--l{--rs-select-gap:var(--rs-unit-x4);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-xlarge--l .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x3);padding-top:var(--rs-unit-x3)}}@media (--rs-viewport-xl ){.--size-medium--xl{--rs-select-gap:var(--rs-unit-x2);--rs-select-chevron-size:var(--rs-unit-x4);border-radius:var(--rs-radius-small)}.--size-medium--xl .input{font-size:var(--rs-font-size-body-3);line-height:var(--rs-line-height-body-3);padding-bottom:var(--rs-unit-x1);padding-top:var(--rs-unit-x1)}.--size-large--xl{--rs-select-gap:var(--rs-unit-x3);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-large--xl .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x2);padding-top:var(--rs-unit-x2)}.--size-xlarge--xl{--rs-select-gap:var(--rs-unit-x4);--rs-select-chevron-size:var(--rs-unit-x5);border-radius:var(--rs-radius-medium)}.--size-xlarge--xl .input{font-size:var(--rs-font-size-body-2);line-height:var(--rs-line-height-body-2);padding-bottom:var(--rs-unit-x3);padding-top:var(--rs-unit-x3)}}
@@ -0,0 +1,51 @@
1
+ import React from "react";
2
+ import type * as G from "../../types/global";
3
+ import { FormControlProps } from "../FormControl";
4
+ import { ActionableProps } from "../Actionable";
5
+ import { IconProps } from "../Icon";
6
+ type Size = G.Responsive<"medium" | "large" | "xlarge">;
7
+ type Option = {
8
+ label: string;
9
+ value: string;
10
+ disabled?: boolean;
11
+ };
12
+ export type ButtonTriggerProps = {
13
+ onClick?: () => void;
14
+ children?: React.ReactNode;
15
+ inputAttributes?: ActionableProps["attributes"];
16
+ onFocus?: (e: React.FocusEvent<HTMLButtonElement>) => void;
17
+ onBlur?: (e: React.FocusEvent<HTMLButtonElement>) => void;
18
+ options?: never;
19
+ onChange?: never;
20
+ };
21
+ export type SelectTriggerProps = {
22
+ options: Option[];
23
+ onChange?: G.ChangeHandler<string, React.ChangeEvent<HTMLSelectElement>>;
24
+ onFocus?: (e: React.FocusEvent<HTMLSelectElement>) => void;
25
+ onBlur?: (e: React.FocusEvent<HTMLSelectElement>) => void;
26
+ inputAttributes?: G.Attributes<"select">;
27
+ onClick?: never;
28
+ children?: never;
29
+ };
30
+ type BaseProps = ((ButtonTriggerProps | SelectTriggerProps) & Pick<FormControlProps, "hasError">) & {
31
+ id?: string;
32
+ name: string;
33
+ size?: Size;
34
+ variant?: "outline" | "faded" | "headless";
35
+ disabled?: boolean;
36
+ placeholder?: string;
37
+ icon?: IconProps["svg"];
38
+ startSlot?: React.ReactNode;
39
+ className?: G.ClassName;
40
+ attributes?: G.Attributes<"div">;
41
+ };
42
+ export type ControlledProps = BaseProps & {
43
+ value: string;
44
+ defaultValue?: never;
45
+ };
46
+ export type UncontrolledProps = BaseProps & {
47
+ value?: never;
48
+ defaultValue?: string;
49
+ };
50
+ export type Props = ControlledProps | UncontrolledProps;
51
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "../View";
2
+ import type * as G from "../../types/global";
3
+ export type Props = Pick<ViewProps, "width" | "height" | "borderRadius"> & {
4
+ className?: G.ClassName;
5
+ attributes?: G.Attributes<"div">;
6
+ };
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import SliderControlled from "./SliderControlled.js";
3
+ import SliderUncontrolled from "./SliderUncontrolled.js";
4
+ const Slider = (props) => {
5
+ const { min = 0, max = 100, ...rest } = props;
6
+ if (("value" in props && props.value !== undefined) ||
7
+ ("minValue" in props &&
8
+ "maxValue" in props &&
9
+ props.minValue !== undefined &&
10
+ props.maxValue !== undefined)) {
11
+ return _jsx(SliderControlled, { ...rest, min: min, max: max });
12
+ }
13
+ return _jsx(SliderUncontrolled, { ...rest, min: min, max: max });
14
+ };
15
+ export default Slider;
@@ -0,0 +1 @@
1
+ .root{--rs-slider-overflow-gap:var(--rs-unit-x1);--rs-slider-thumb-size:var(--rs-unit-x4);align-items:center;cursor:pointer;display:flex;height:var(--rs-slider-thumb-size);position:relative;user-select:none;-webkit-tap-highlight-color:transparent;margin-inline:calc(var(--rs-slider-overflow-gap) * -1);overflow-x:clip;padding-inline:var(--rs-slider-overflow-gap)}.root:has(.thumb:hover,.thumb--active,.input:focus){overflow:visible}.bar{background:var(--rs-color-background-neutral);border-radius:var(--rs-radius-small);height:var(--rs-unit-x1);position:relative;width:100%}.bar,.input{overflow:hidden}.input{height:1px;opacity:0;pointer-events:none;position:absolute;width:1px}.selection{background:var(--rs-color-background-primary);height:100%;position:absolute}.tooltip{--rs-slider-tooltip-translate-x:calc(-50% + var(--rs-slider-tooltip-offset, 0px));background:var(--rs-color-background-elevation-overlay);border-radius:var(--rs-radius-small);bottom:100%;box-shadow:var(--rs-shadow-overlay);box-sizing:initial;color:var(--rs-color-foreground-neutral);font-variant-numeric:tabular-nums;left:50%;min-width:var(--rs-line-height-caption-1);opacity:0;padding:calc(var(--rs-unit-x1) / 2) var(--rs-unit-x1);pointer-events:none;position:absolute;text-align:center;transform:translate(var(--rs-slider-tooltip-translate-x));transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform;user-select:none;white-space:nowrap;will-change:transform}.thumbs{inset-inline:calc(var(--rs-slider-thumb-size) / 2 + var(--rs-slider-overflow-gap))}.thumb,.thumbs{height:100%;position:absolute}.thumb{width:0}.thumb:before{background:var(--rs-color-background-primary);border-radius:999px;box-shadow:0 0 0 2px var(--rs-color-background-elevation-base);box-sizing:border-box;height:var(--rs-slider-thumb-size);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:box-shadow;width:var(--rs-slider-thumb-size)}.thumb:after,.thumb:before{content:"";left:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.thumb:after{cursor:grab;height:var(--rs-unit-x7);width:var(--rs-unit-x7)}.thumb:hover .tooltip{opacity:1;transform:translate(var(--rs-slider-tooltip-translate-x),calc(var(--rs-unit-x1) * -1.5))}.input:focus+.thumb:after,.thumb--active:after{cursor:grabbing}.input:focus+.thumb:before,.thumb--active:before{box-shadow:0 0 0 1px var(--rs-color-background-elevation-base)}.input:focus+.thumb .tooltip,.thumb--active .tooltip{opacity:1;transform:translate(var(--rs-slider-tooltip-translate-x),calc(var(--rs-unit-x1) * -1.5))!important}.input:focus+.thumb:before{box-shadow:var(--rs-focus-shadow)}.--disabled{cursor:not-allowed}.--disabled .bar{background-color:var(--rs-color-background-disabled)}.--disabled .selection,.--disabled .thumb:before{background-color:var(--rs-color-foreground-disabled)}.--disabled .thumb:after{cursor:not-allowed}.--disabled .thumb:hover .tooltip{opacity:0}