@atom-learning/components 5.12.0 → 5.12.1

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 (240) hide show
  1. package/CHANGELOG.md +16 -22
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionTrigger.js +1 -1
  4. package/dist/components/accordion/AccordionTrigger.js.map +1 -1
  5. package/dist/components/action-icon/ActionIcon.d.ts +1 -1
  6. package/dist/components/action-icon/ActionIcon.js +1 -1
  7. package/dist/components/action-icon/ActionIcon.js.map +1 -1
  8. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  9. package/dist/components/alert-dialog/AlertDialogContent.js.map +1 -1
  10. package/dist/components/avatar/Avatar.js +1 -1
  11. package/dist/components/avatar/Avatar.js.map +1 -1
  12. package/dist/components/badge/Badge.d.ts +4 -4
  13. package/dist/components/badge/BadgeText.js +1 -1
  14. package/dist/components/badge/BadgeText.js.map +1 -1
  15. package/dist/components/banner/BannerContainer.d.ts +4 -4
  16. package/dist/components/banner/banner-regular/BannerRegular.d.ts +11 -11
  17. package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +2 -2
  18. package/dist/components/banner/banner-regular/BannerRegularImage.js +1 -1
  19. package/dist/components/banner/banner-regular/BannerRegularImage.js.map +1 -1
  20. package/dist/components/banner/banner-slim/BannerSlim.d.ts +27 -27
  21. package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +4 -4
  22. package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +2 -2
  23. package/dist/components/banner/banner-slim/BannerSlimImage.js +1 -1
  24. package/dist/components/banner/banner-slim/BannerSlimImage.js.map +1 -1
  25. package/dist/components/button/Button.js +1 -1
  26. package/dist/components/button/Button.js.map +1 -1
  27. package/dist/components/carousel/Carousel.js +1 -1
  28. package/dist/components/carousel/Carousel.js.map +1 -1
  29. package/dist/components/carousel/CarouselArrows.js +1 -1
  30. package/dist/components/carousel/CarouselArrows.js.map +1 -1
  31. package/dist/components/carousel/CarouselSlider.js +1 -1
  32. package/dist/components/carousel/CarouselSlider.js.map +1 -1
  33. package/dist/components/checkbox/Checkbox.js +1 -1
  34. package/dist/components/checkbox/Checkbox.js.map +1 -1
  35. package/dist/components/checkbox-tree/CheckboxTree.d.ts +123 -123
  36. package/dist/components/chip/Chip.d.ts +14 -14
  37. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +5 -5
  38. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +5 -5
  39. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
  40. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
  41. package/dist/components/combobox/ComboboxInput.js +1 -1
  42. package/dist/components/combobox/ComboboxOption.js +1 -1
  43. package/dist/components/combobox/ComboboxOption.js.map +1 -1
  44. package/dist/components/combobox/ComboboxPopover.js +1 -1
  45. package/dist/components/combobox/ComboboxPopover.js.map +1 -1
  46. package/dist/components/create-password-field/CreatePasswordField.d.ts +1 -2
  47. package/dist/components/create-password-field/CreatePasswordField.js +1 -1
  48. package/dist/components/create-password-field/CreatePasswordField.js.map +1 -1
  49. package/dist/components/data-table/DataTable.d.ts +9 -9
  50. package/dist/components/data-table/DataTableHead.d.ts +1 -1
  51. package/dist/components/data-table/DataTableHead.js +1 -1
  52. package/dist/components/data-table/DataTableHead.js.map +1 -1
  53. package/dist/components/data-table/DataTableHeaderCell.js +1 -1
  54. package/dist/components/data-table/DataTableHeaderCell.js.map +1 -1
  55. package/dist/components/data-table/DataTableRow.js +1 -1
  56. package/dist/components/data-table/DataTableRow.js.map +1 -1
  57. package/dist/components/data-table/DataTableRowSelectionCheckbox.js +1 -1
  58. package/dist/components/data-table/DataTableRowSelectionCheckbox.js.map +1 -1
  59. package/dist/components/date-input/DateInput.js +1 -1
  60. package/dist/components/date-input/DateInput.js.map +1 -1
  61. package/dist/components/dialog/DialogContent.js +1 -1
  62. package/dist/components/dialog/DialogContent.js.map +1 -1
  63. package/dist/components/drawer/DrawerContent.js +1 -1
  64. package/dist/components/drawer/DrawerContent.js.map +1 -1
  65. package/dist/components/drawer/DrawerFooter.js +1 -1
  66. package/dist/components/drawer/DrawerFooter.js.map +1 -1
  67. package/dist/components/drawer/DrawerHeader.js +1 -1
  68. package/dist/components/drawer/DrawerHeader.js.map +1 -1
  69. package/dist/components/drawer/DrawerMain.js +1 -1
  70. package/dist/components/drawer/DrawerMain.js.map +1 -1
  71. package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
  72. package/dist/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
  73. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +2 -428
  74. package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
  75. package/dist/components/dropdown-menu/DropdownMenuItem.js.map +1 -1
  76. package/dist/components/dropdown-menu/DropdownMenuTrigger.js +1 -1
  77. package/dist/components/dropdown-menu/DropdownMenuTrigger.js.map +1 -1
  78. package/dist/components/empty-state/EmptyState.d.ts +4 -4
  79. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  80. package/dist/components/field-wrapper/InlineFieldWrapper.js.map +1 -1
  81. package/dist/components/flex/Flex.d.ts +4 -4
  82. package/dist/components/flex/Flex.js +1 -1
  83. package/dist/components/flex/Flex.js.map +1 -1
  84. package/dist/components/grid/Grid.d.ts +1 -3
  85. package/dist/components/grid/Grid.js +1 -1
  86. package/dist/components/grid/Grid.js.map +1 -1
  87. package/dist/components/heading/Heading.js +1 -1
  88. package/dist/components/icon/Icon.js +1 -1
  89. package/dist/components/icon/Icon.js.map +1 -1
  90. package/dist/components/inline-message/InlineMessage.config.d.ts +0 -2
  91. package/dist/components/inline-message/InlineMessage.config.js +1 -1
  92. package/dist/components/inline-message/InlineMessage.config.js.map +1 -1
  93. package/dist/components/inline-message/InlineMessage.d.ts +5 -6
  94. package/dist/components/inline-message/InlineMessage.js +1 -1
  95. package/dist/components/inline-message/InlineMessage.js.map +1 -1
  96. package/dist/components/input/Input.d.ts +4 -4
  97. package/dist/components/input/Input.js +1 -1
  98. package/dist/components/input/Input.js.map +1 -1
  99. package/dist/components/label/Label.d.ts +1 -1
  100. package/dist/components/link/Link.js +1 -1
  101. package/dist/components/link/Link.js.map +1 -1
  102. package/dist/components/list/List.js +1 -1
  103. package/dist/components/list/List.js.map +1 -1
  104. package/dist/components/loader/Loader.js +1 -1
  105. package/dist/components/loader/Loader.js.map +1 -1
  106. package/dist/components/markdown-content/MarkdownContent.d.ts +4 -4
  107. package/dist/components/markdown-content/MarkdownContent.js +1 -1
  108. package/dist/components/markdown-content/MarkdownContent.js.map +1 -1
  109. package/dist/components/markdown-content/components/MarkdownList.d.ts +1 -1
  110. package/dist/components/markdown-content/components/MarkdownList.js.map +1 -1
  111. package/dist/components/navigation/NavigationMenu.js +1 -1
  112. package/dist/components/navigation/NavigationMenu.js.map +1 -1
  113. package/dist/components/navigation/NavigationMenuDropdownTrigger.js +1 -1
  114. package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
  115. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +5 -5
  116. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.d.ts +7 -7
  117. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js +1 -1
  118. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -1
  119. package/dist/components/number-input/NumberInput.js +1 -1
  120. package/dist/components/number-input/NumberInputStepper.d.ts +2 -2
  121. package/dist/components/number-input/NumberInputStepper.js +1 -1
  122. package/dist/components/number-input/NumberInputStepper.js.map +1 -1
  123. package/dist/components/pagination/PaginationNextButton.d.ts +2 -2
  124. package/dist/components/pagination/PaginationPage.js +1 -1
  125. package/dist/components/pagination/PaginationPage.js.map +1 -1
  126. package/dist/components/pagination/PaginationPreviousButton.d.ts +2 -2
  127. package/dist/components/password-field/PasswordField.js.map +1 -1
  128. package/dist/components/password-input/PasswordInput.js +1 -1
  129. package/dist/components/password-input/PasswordInput.js.map +1 -1
  130. package/dist/components/popover/PopoverContent.js +1 -1
  131. package/dist/components/popover/PopoverContent.js.map +1 -1
  132. package/dist/components/progress-bar/ProgressBar.js +1 -1
  133. package/dist/components/progress-bar/ProgressBar.js.map +1 -1
  134. package/dist/components/radio-button/RadioButton.js +1 -1
  135. package/dist/components/radio-button/RadioButton.js.map +1 -1
  136. package/dist/components/search-input/SearchInput.js +1 -1
  137. package/dist/components/section-message/SectionMessageLayout.js +1 -1
  138. package/dist/components/section-message/SectionMessageLayout.js.map +1 -1
  139. package/dist/components/segmented-control/SegmentedControlItem.js +1 -1
  140. package/dist/components/segmented-control/SegmentedControlItem.js.map +1 -1
  141. package/dist/components/segmented-control/SegmentedControlItemList.js +1 -1
  142. package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -1
  143. package/dist/components/select/Select.js +1 -1
  144. package/dist/components/select/Select.js.map +1 -1
  145. package/dist/components/side-bar/SideBar.d.ts +1 -1
  146. package/dist/components/side-bar/SideBar.js +1 -1
  147. package/dist/components/side-bar/SideBar.js.map +1 -1
  148. package/dist/components/slider/Slider.d.ts +372 -2
  149. package/dist/components/slider/Slider.js +1 -1
  150. package/dist/components/slider/Slider.js.map +1 -1
  151. package/dist/components/sortable/Handle.d.ts +2 -2
  152. package/dist/components/sortable/Handle.js +1 -1
  153. package/dist/components/sortable/Handle.js.map +1 -1
  154. package/dist/components/sortable/SortableItem.d.ts +3 -1
  155. package/dist/components/sortable/SortableItem.js +1 -1
  156. package/dist/components/sortable/SortableItem.js.map +1 -1
  157. package/dist/components/sortable/index.d.ts +1 -1
  158. package/dist/components/stepper/StepperStepBullet.d.ts +4 -4
  159. package/dist/components/stepper/StepperStepContainer.d.ts +4 -4
  160. package/dist/components/stepper/StepperStepContainer.js +1 -1
  161. package/dist/components/stepper/StepperStepContainer.js.map +1 -1
  162. package/dist/components/stepper/StepperSteps.js +1 -1
  163. package/dist/components/stepper/StepperSteps.js.map +1 -1
  164. package/dist/components/switch/Switch.js +1 -1
  165. package/dist/components/switch/Switch.js.map +1 -1
  166. package/dist/components/table/Table.d.ts +1 -1
  167. package/dist/components/table/Table.js +1 -1
  168. package/dist/components/table/Table.js.map +1 -1
  169. package/dist/components/table/TableBody.js +1 -1
  170. package/dist/components/table/TableBody.js.map +1 -1
  171. package/dist/components/table/TableHeader.d.ts +1 -1
  172. package/dist/components/table/TableHeader.js +1 -1
  173. package/dist/components/table/TableHeader.js.map +1 -1
  174. package/dist/components/table/TableRow.d.ts +2 -1
  175. package/dist/components/table/TableRow.js +1 -1
  176. package/dist/components/table/TableRow.js.map +1 -1
  177. package/dist/components/tabs/TabsTrigger.js +1 -1
  178. package/dist/components/tabs/TabsTrigger.js.map +1 -1
  179. package/dist/components/text/Text.js +1 -1
  180. package/dist/components/text/Text.js.map +1 -1
  181. package/dist/components/tile/TileGroup.d.ts +4 -4
  182. package/dist/components/tile-interactive/TileInteractive.js +1 -1
  183. package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
  184. package/dist/components/toast/Toast.d.ts +5 -23
  185. package/dist/components/toast/Toast.js +1 -1
  186. package/dist/components/toast/Toast.js.map +1 -1
  187. package/dist/components/toast/ToastProvider.js +1 -1
  188. package/dist/components/toast/ToastProvider.js.map +1 -1
  189. package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
  190. package/dist/components/toggle-group/ToggleGroupButton.js.map +1 -1
  191. package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
  192. package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
  193. package/dist/components/toggle-group/ToggleGroupRoot.js +1 -1
  194. package/dist/components/toggle-group/ToggleGroupRoot.js.map +1 -1
  195. package/dist/components/toggle-group/index.d.ts +5 -5
  196. package/dist/components/tooltip/TooltipContent.js +1 -1
  197. package/dist/components/tooltip/TooltipContent.js.map +1 -1
  198. package/dist/components/top-bar/TopBar.d.ts +2 -2
  199. package/dist/components/top-bar/TopBar.js +1 -1
  200. package/dist/components/top-bar/TopBar.js.map +1 -1
  201. package/dist/components/tree/Tree.d.ts +100 -100
  202. package/dist/components/tree/TreeCollapsibleTrigger.js +1 -1
  203. package/dist/components/tree/TreeCollapsibleTrigger.js.map +1 -1
  204. package/dist/components/tree/TreeItemContent.d.ts +5 -5
  205. package/dist/components/tree/TreeListItem.d.ts +5 -5
  206. package/dist/components/video/Video.js +1 -1
  207. package/dist/components/video/Video.js.map +1 -1
  208. package/dist/docgen.json +1 -1
  209. package/dist/index.cjs.js +1 -1
  210. package/dist/index.cjs.js.map +1 -1
  211. package/dist/index.d.ts +1 -1
  212. package/dist/index.js +1 -1
  213. package/dist/utilities/index.d.ts +1 -2
  214. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +1 -374
  215. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js +1 -1
  216. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js.map +1 -1
  217. package/dist/utilities/no-overflow-wrapper/index.d.ts +1 -1
  218. package/dist/utilities/style/backdrop-overlay.js +1 -1
  219. package/dist/utilities/style/backdrop-overlay.js.map +1 -1
  220. package/dist/utilities/style/index.d.ts +0 -2
  221. package/package.json +1 -1
  222. package/dist/components/drawer/Drawer.styles.d.ts +0 -4
  223. package/dist/components/drawer/Drawer.styles.js +0 -2
  224. package/dist/components/drawer/Drawer.styles.js.map +0 -1
  225. package/dist/constants/zIndices.d.ts +0 -6
  226. package/dist/constants/zIndices.js +0 -2
  227. package/dist/constants/zIndices.js.map +0 -1
  228. package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +0 -22
  229. package/dist/utilities/create-theme-variants/createThemeVariants.js +0 -2
  230. package/dist/utilities/create-theme-variants/createThemeVariants.js.map +0 -1
  231. package/dist/utilities/create-theme-variants/index.d.ts +0 -1
  232. package/dist/utilities/style/disabledStyle.d.ts +0 -2
  233. package/dist/utilities/style/disabledStyle.js +0 -2
  234. package/dist/utilities/style/disabledStyle.js.map +0 -1
  235. package/dist/utilities/style/focus-visible-style-block.d.ts +0 -13
  236. package/dist/utilities/style/focus-visible-style-block.js +0 -2
  237. package/dist/utilities/style/focus-visible-style-block.js.map +0 -1
  238. package/dist/utilities/style/reset.d.ts +0 -13
  239. package/dist/utilities/style/reset.js +0 -2
  240. package/dist/utilities/style/reset.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{styled as s}from"../../stitches.js";import{Tabs as d}from"../tabs/Tabs.js";import{SegmentedControlContext as l}from"./SegmentedControlContext.js";const m=s(d.Trigger,{position:"relative",bg:"transparent",borderRadius:"$2",p:0,zIndex:2,minWidth:"140px",border:"2px solid transparent",variants:{theme:{primary:{"&[data-state=inactive]:hover":{bg:"$primary300"},"&:focus-visible":{borderColor:"$primary800"}},marsh:{"&[data-state=inactive]:hover":{bg:"$marsh300"},"&:focus-visible":{borderColor:"$marsh800"}}},size:{sm:{flex:"unset",p:"$4 $24",gap:"$3"},md:{flex:1,p:"$24 $4",gap:"$4"},lg:{flex:1,p:"$24 $4",gap:"$4"}}},"& > div":{display:"none"},"& > span":{display:"flex",flexDirection:"column",alignItems:"center"},"&[data-state=active]":{boxShadow:"none",border:"2px solid transparent",fontWeight:600,color:"$textBold","&:focus-visible":{boxShadow:"none",borderColor:"$primary800"}},"&[data-state=inactive]":{fontWeight:400,color:"$grey900"},"&[disabled]":{opacity:.3}}),t=e.forwardRef(({children:r,...o},a)=>{const{size:i,theme:n}=e.useContext(l);return e.createElement(m,{...o,theme:n,size:i,ref:a},r)});t.displayName="SegmentedControlItem";export{t as SegmentedControlItem};
1
+ import*as e from"react";import{styled as s}from"../../stitches.js";import{Tabs as d}from"../tabs/Tabs.js";import{SegmentedControlContext as l}from"./SegmentedControlContext.js";const m=s(d.Trigger,{position:"relative",bg:"transparent",borderRadius:"$2",p:0,zIndex:2,minWidth:"140px",border:"2px solid transparent",variants:{theme:{primary:{"&[data-state=inactive]":{"&:hover":{bg:"$primary300"}},"&:focus-visible":{borderColor:"$primary800"}},marsh:{"&[data-state=inactive]":{"&:hover":{bg:"$marsh300"}},"&:focus-visible":{borderColor:"$marsh800"}}},size:{sm:{flex:"unset",p:"$4 $24",gap:"$3"},md:{flex:1,p:"$24 $4",gap:"$4"},lg:{flex:1,p:"$24 $4",gap:"$4"}}},"& > div":{display:"none"},"& > span":{display:"flex",flexDirection:"column",alignItems:"center"},"&[data-state=active]":{boxShadow:"none",border:"2px solid transparent",fontWeight:600,color:"$textBold","&:focus-visible":{boxShadow:"none",borderColor:"$primary800"}},"&[data-state=inactive]":{fontWeight:400,color:"$grey900"},"&[disabled]":{opacity:.3}}),t=e.forwardRef(({children:r,...o},a)=>{const{size:i,theme:n}=e.useContext(l);return e.createElement(m,{...o,theme:n,size:i,ref:a},r)});t.displayName="SegmentedControlItem";export{t as SegmentedControlItem};
2
2
  //# sourceMappingURL=SegmentedControlItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlItem.js","sources":["../../../src/components/segmented-control/SegmentedControlItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '../../stitches'\nimport { Tabs } from '../tabs'\nimport { SegmentedControlContext } from './SegmentedControlContext'\n\nconst StyledItem = styled(Tabs.Trigger, {\n position: 'relative',\n bg: 'transparent',\n borderRadius: '$2',\n p: 0,\n zIndex: 2,\n minWidth: '140px',\n border: '2px solid transparent',\n variants: {\n theme: {\n primary: {\n '&[data-state=inactive]:hover': {\n bg: '$primary300'\n },\n '&:focus-visible': {\n borderColor: '$primary800'\n }\n },\n marsh: {\n '&[data-state=inactive]:hover': {\n bg: '$marsh300'\n },\n '&:focus-visible': {\n borderColor: '$marsh800'\n }\n }\n },\n size: {\n sm: {\n flex: 'unset',\n p: '$4 $24',\n gap: '$3'\n },\n md: {\n flex: 1,\n p: '$24 $4',\n gap: '$4'\n },\n lg: {\n flex: 1,\n p: '$24 $4',\n gap: '$4'\n }\n }\n },\n '& > div': { display: 'none' },\n '& > span': {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n '&[data-state=active]': {\n boxShadow: 'none',\n border: '2px solid transparent',\n fontWeight: 600,\n color: '$textBold',\n '&:focus-visible': {\n boxShadow: 'none',\n borderColor: '$primary800'\n }\n },\n '&[data-state=inactive]': {\n fontWeight: 400,\n color: '$grey900'\n },\n '&[disabled]': {\n opacity: 0.3\n }\n})\n\nexport const SegmentedControlItem = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ComponentProps<typeof StyledItem>, 'size'>\n>(({ children, ...props }, ref) => {\n const { size, theme } = React.useContext(SegmentedControlContext)\n\n return (\n <StyledItem {...props} theme={theme} size={size} ref={ref}>\n {children}\n </StyledItem>\n )\n})\n\nSegmentedControlItem.displayName = 'SegmentedControlItem'\n"],"names":["StyledItem","styled","Tabs","SegmentedControlItem","React","children","props","ref","size","theme","SegmentedControlContext"],"mappings":"iLAMA,MAAMA,EAAaC,EAAOC,EAAK,QAAS,CACtC,SAAU,WACV,GAAI,cACJ,aAAc,KACd,EAAG,EACH,OAAQ,EACR,SAAU,QACV,OAAQ,wBACR,SAAU,CACR,MAAO,CACL,QAAS,CACP,+BAAgC,CAC9B,GAAI,aACN,EACA,kBAAmB,CACjB,YAAa,aACf,CACF,EACA,MAAO,CACL,+BAAgC,CAC9B,GAAI,WACN,EACA,kBAAmB,CACjB,YAAa,WACf,CACF,CACF,EACA,KAAM,CACJ,GAAI,CACF,KAAM,QACN,EAAG,SACH,IAAK,IACP,EACA,GAAI,CACF,KAAM,EACN,EAAG,SACH,IAAK,IACP,EACA,GAAI,CACF,KAAM,EACN,EAAG,SACH,IAAK,IACP,CACF,CACF,EACA,UAAW,CAAE,QAAS,MAAO,EAC7B,WAAY,CACV,QAAS,OACT,cAAe,SACf,WAAY,QACd,EACA,uBAAwB,CACtB,UAAW,OACX,OAAQ,wBACR,WAAY,IACZ,MAAO,YACP,kBAAmB,CACjB,UAAW,OACX,YAAa,aACf,CACF,EACA,yBAA0B,CACxB,WAAY,IACZ,MAAO,UACT,EACA,cAAe,CACb,QAAS,EACX,CACF,CAAC,EAEYC,EAAuBC,EAAM,WAGxC,CAAC,CAAE,SAAAC,KAAaC,CAAM,EAAGC,IAAQ,CACjC,KAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIL,EAAM,WAAWM,CAAuB,EAEhE,OACEN,EAAA,cAACJ,EAAA,CAAY,GAAGM,EAAO,MAAOG,EAAO,KAAMD,EAAM,IAAKD,CACnDF,EAAAA,CACH,CAEJ,CAAC,EAEDF,EAAqB,YAAc"}
1
+ {"version":3,"file":"SegmentedControlItem.js","sources":["../../../src/components/segmented-control/SegmentedControlItem.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '../../stitches'\nimport { Tabs } from '../tabs'\nimport { SegmentedControlContext } from './SegmentedControlContext'\n\nconst StyledItem = styled(Tabs.Trigger, {\n position: 'relative',\n bg: 'transparent',\n borderRadius: '$2',\n p: 0,\n zIndex: 2,\n minWidth: '140px',\n border: '2px solid transparent',\n variants: {\n theme: {\n primary: {\n '&[data-state=inactive]': {\n '&:hover': {\n bg: '$primary300'\n }\n },\n '&:focus-visible': {\n borderColor: '$primary800'\n }\n },\n marsh: {\n '&[data-state=inactive]': {\n '&:hover': {\n bg: '$marsh300'\n }\n },\n '&:focus-visible': {\n borderColor: '$marsh800'\n }\n }\n },\n size: {\n sm: {\n flex: 'unset',\n p: '$4 $24',\n gap: '$3'\n },\n md: {\n flex: 1,\n p: '$24 $4',\n gap: '$4'\n },\n lg: {\n flex: 1,\n p: '$24 $4',\n gap: '$4'\n }\n }\n },\n '& > div': { display: 'none' },\n '& > span': {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n '&[data-state=active]': {\n boxShadow: 'none',\n border: '2px solid transparent',\n fontWeight: 600,\n color: '$textBold',\n '&:focus-visible': {\n boxShadow: 'none',\n borderColor: '$primary800'\n }\n },\n '&[data-state=inactive]': {\n fontWeight: 400,\n color: '$grey900'\n },\n '&[disabled]': {\n opacity: 0.3\n }\n})\n\nexport const SegmentedControlItem = React.forwardRef<\n HTMLButtonElement,\n Omit<React.ComponentProps<typeof StyledItem>, 'size'>\n>(({ children, ...props }, ref) => {\n const { size, theme } = React.useContext(SegmentedControlContext)\n\n return (\n <StyledItem {...props} theme={theme} size={size} ref={ref}>\n {children}\n </StyledItem>\n )\n})\n\nSegmentedControlItem.displayName = 'SegmentedControlItem'\n"],"names":["StyledItem","styled","Tabs","SegmentedControlItem","React","children","props","ref","size","theme","SegmentedControlContext"],"mappings":"iLAMA,MAAMA,EAAaC,EAAOC,EAAK,QAAS,CACtC,SAAU,WACV,GAAI,cACJ,aAAc,KACd,EAAG,EACH,OAAQ,EACR,SAAU,QACV,OAAQ,wBACR,SAAU,CACR,MAAO,CACL,QAAS,CACP,yBAA0B,CACxB,UAAW,CACT,GAAI,aACN,CACF,EACA,kBAAmB,CACjB,YAAa,aACf,CACF,EACA,MAAO,CACL,yBAA0B,CACxB,UAAW,CACT,GAAI,WACN,CACF,EACA,kBAAmB,CACjB,YAAa,WACf,CACF,CACF,EACA,KAAM,CACJ,GAAI,CACF,KAAM,QACN,EAAG,SACH,IAAK,IACP,EACA,GAAI,CACF,KAAM,EACN,EAAG,SACH,IAAK,IACP,EACA,GAAI,CACF,KAAM,EACN,EAAG,SACH,IAAK,IACP,CACF,CACF,EACA,UAAW,CAAE,QAAS,MAAO,EAC7B,WAAY,CACV,QAAS,OACT,cAAe,SACf,WAAY,QACd,EACA,uBAAwB,CACtB,UAAW,OACX,OAAQ,wBACR,WAAY,IACZ,MAAO,YACP,kBAAmB,CACjB,UAAW,OACX,YAAa,aACf,CACF,EACA,yBAA0B,CACxB,WAAY,IACZ,MAAO,UACT,EACA,cAAe,CACb,QAAS,EACX,CACF,CAAC,EAEYC,EAAuBC,EAAM,WAGxC,CAAC,CAAE,SAAAC,KAAaC,CAAM,EAAGC,IAAQ,CACjC,KAAM,CAAE,KAAAC,EAAM,MAAAC,CAAM,EAAIL,EAAM,WAAWM,CAAuB,EAEhE,OACEN,EAAA,cAACJ,EAAA,CAAY,GAAGM,EAAO,MAAOG,EAAO,KAAMD,EAAM,IAAKD,CAAAA,EACnDF,CACH,CAEJ,CAAC,EAEDF,EAAqB,YAAc"}
@@ -1,2 +1,2 @@
1
- import*as t from"react";import{styled as l}from"../../stitches.js";import{Box as v}from"../box/Box.js";import{Tabs as g}from"../tabs/Tabs.js";import{SegmentedControlContext as b}from"./SegmentedControlContext.js";const C=l(g.TriggerList,{position:"relative",p:"$1",borderRadius:"$3",overflow:"hidden",variants:{theme:{primary:{bg:"$primary200"},marsh:{bg:"$marsh200"}}},'& > div[role="tablist"]':{position:"relative"},"& > button":{zIndex:2}}),E=l(v,{content:"",position:"absolute",bg:"white",borderRadius:"$2",variants:{interacted:{true:{transition:"all 0.3s ease"},false:{transition:"none"}}}}),w=s=>{const{theme:d,defaultValue:c,value:m}=t.useContext(b),a=t.useRef([]),i=t.Children.toArray(s.children).findIndex(e=>(e==null?void 0:e.props.value)===m),[u,f]=t.useState({left:0,height:0,width:0}),[h,p]=t.useState(!1),n=t.useCallback(()=>{const e=a.current[i];if(!e)return;const{width:o,height:r}=e.getBoundingClientRect();f({left:e.offsetLeft,height:r,width:o})},[i]);return t.useEffect(()=>{const e=new ResizeObserver(n),o=a.current;return o.forEach(r=>{r&&e.observe(r)}),()=>{o.forEach(r=>{r&&e.unobserve(r)}),e.disconnect()}},[i,n]),t.useEffect(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[n]),t.useEffect(()=>{n()},[i,n]),t.createElement(C,{theme:d,defaultValue:c,...s},t.createElement(E,{css:{...u},interacted:h}),t.Children.map(s.children,(e,o)=>{if(!t.isValidElement(e))throw new Error("Child passed to SegmentedControlItemList is not a valid element");return t.cloneElement(e,{onClick:r=>{p(!0),e.props.onClick&&e.props.onClick(r)},ref:r=>a.current[o]=r})}))};export{w as SegmentedControlItemList};
1
+ import*as t from"react";import{styled as l}from"../../stitches.js";import{Box as v}from"../box/Box.js";import{Tabs as g}from"../tabs/Tabs.js";import{SegmentedControlContext as b}from"./SegmentedControlContext.js";const C=l(g.TriggerList,{position:"relative",p:"$1",borderRadius:"$3",overflow:"hidden",variants:{theme:{primary:{bg:"$primary200"},marsh:{bg:"$marsh200"}}},'& > div[role="tablist"]':{position:"relative"},"& > button":{zIndex:2}}),E=l(v,{content:"",position:"absolute",bg:"white",borderRadius:"$2",variants:{interacted:{true:{transition:"all 300ms ease"},false:{transition:"none"}}}}),w=s=>{const{theme:d,defaultValue:c,value:m}=t.useContext(b),a=t.useRef([]),i=t.Children.toArray(s.children).findIndex(e=>(e==null?void 0:e.props.value)===m),[u,f]=t.useState({left:0,height:0,width:0}),[h,p]=t.useState(!1),n=t.useCallback(()=>{const e=a.current[i];if(!e)return;const{width:o,height:r}=e.getBoundingClientRect();f({left:e.offsetLeft,height:r,width:o})},[i]);return t.useEffect(()=>{const e=new ResizeObserver(n),o=a.current;return o.forEach(r=>{r&&e.observe(r)}),()=>{o.forEach(r=>{r&&e.unobserve(r)}),e.disconnect()}},[i,n]),t.useEffect(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[n]),t.useEffect(()=>{n()},[i,n]),t.createElement(C,{theme:d,defaultValue:c,...s},t.createElement(E,{css:{...u},interacted:h}),t.Children.map(s.children,(e,o)=>{if(!t.isValidElement(e))throw new Error("Child passed to SegmentedControlItemList is not a valid element");return t.cloneElement(e,{onClick:r=>{p(!0),e.props.onClick&&e.props.onClick(r)},ref:r=>a.current[o]=r})}))};export{w as SegmentedControlItemList};
2
2
  //# sourceMappingURL=SegmentedControlItemList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlItemList.js","sources":["../../../src/components/segmented-control/SegmentedControlItemList.tsx"],"sourcesContent":["import invariant from 'invariant'\nimport * as React from 'react'\n\nimport { styled } from '../../stitches'\nimport { Box } from '../box'\nimport { Tabs } from '../tabs'\nimport { SegmentedControlContext } from './SegmentedControlContext'\nimport { SegmentedControlItem } from './SegmentedControlItem'\n\nconst StyledTriggerList = styled(Tabs.TriggerList, {\n position: 'relative',\n p: '$1',\n borderRadius: '$3',\n overflow: 'hidden',\n variants: {\n theme: {\n primary: { bg: '$primary200' },\n marsh: { bg: '$marsh200' }\n }\n },\n '& > div[role=\"tablist\"]': {\n position: 'relative'\n },\n '& > button': {\n zIndex: 2\n }\n})\n\nconst SelectionIndicator = styled(Box, {\n content: '',\n position: 'absolute',\n bg: 'white',\n borderRadius: '$2',\n variants: {\n interacted: {\n true: {\n transition: 'all 0.3s ease'\n },\n false: {\n transition: 'none'\n }\n }\n }\n})\n\nexport const SegmentedControlItemList = (\n props: React.ComponentProps<typeof Tabs.TriggerList>\n): JSX.Element => {\n const { theme, defaultValue, value } = React.useContext(\n SegmentedControlContext\n )\n\n const tabsRef = React.useRef<(HTMLElement | null)[]>([])\n\n const selectedIndex = React.Children.toArray(props.children).findIndex(\n (child) => (child as React.ReactElement)?.props.value === value\n )\n\n const [indicatorStyles, setIndicatorStyles] = React.useState({\n left: 0,\n height: 0,\n width: 0\n })\n const [hasInteracted, setHasInteracted] = React.useState(false)\n\n const updateIndicatorPosition = React.useCallback(() => {\n const currentTab = tabsRef.current[selectedIndex]\n if (!currentTab) return\n\n const { width, height } = currentTab.getBoundingClientRect()\n setIndicatorStyles({ left: currentTab.offsetLeft, height, width })\n }, [selectedIndex])\n\n React.useEffect(() => {\n const resizeObserver = new ResizeObserver(updateIndicatorPosition)\n const currentTabs = tabsRef.current\n currentTabs.forEach((tab) => {\n if (tab) resizeObserver.observe(tab)\n })\n\n return () => {\n currentTabs.forEach((tab) => {\n if (tab) resizeObserver.unobserve(tab)\n })\n resizeObserver.disconnect()\n }\n }, [selectedIndex, updateIndicatorPosition])\n\n React.useEffect(() => {\n window.addEventListener('resize', updateIndicatorPosition)\n return () => {\n window.removeEventListener('resize', updateIndicatorPosition)\n }\n }, [updateIndicatorPosition])\n\n React.useEffect(() => {\n updateIndicatorPosition()\n }, [selectedIndex, updateIndicatorPosition])\n\n return (\n <StyledTriggerList theme={theme} defaultValue={defaultValue} {...props}>\n <SelectionIndicator\n css={{\n ...indicatorStyles\n }}\n interacted={hasInteracted}\n />\n {React.Children.map(props.children, (child, index) => {\n if (!React.isValidElement(child)) {\n throw new Error(\n `Child passed to SegmentedControlItemList is not a valid element`\n )\n }\n\n return React.cloneElement(\n child as React.ReactElement<\n React.ComponentProps<typeof SegmentedControlItem>\n >,\n {\n onClick: (e) => {\n setHasInteracted(true)\n if (child.props.onClick) child.props.onClick(e)\n },\n ref: (el) => (tabsRef.current[index] = el)\n }\n )\n })}\n </StyledTriggerList>\n )\n}\n"],"names":["StyledTriggerList","styled","Tabs","SelectionIndicator","Box","SegmentedControlItemList","props","theme","defaultValue","value","React","SegmentedControlContext","tabsRef","selectedIndex","child","indicatorStyles","setIndicatorStyles","hasInteracted","setHasInteracted","updateIndicatorPosition","currentTab","width","height","resizeObserver","currentTabs","tab","index","e","el"],"mappings":"qNASA,MAAMA,EAAoBC,EAAOC,EAAK,YAAa,CACjD,SAAU,WACV,EAAG,KACH,aAAc,KACd,SAAU,SACV,SAAU,CACR,MAAO,CACL,QAAS,CAAE,GAAI,aAAc,EAC7B,MAAO,CAAE,GAAI,WAAY,CAC3B,CACF,EACA,0BAA2B,CACzB,SAAU,UACZ,EACA,aAAc,CACZ,OAAQ,CACV,CACF,CAAC,EAEKC,EAAqBF,EAAOG,EAAK,CACrC,QAAS,GACT,SAAU,WACV,GAAI,QACJ,aAAc,KACd,SAAU,CACR,WAAY,CACV,KAAM,CACJ,WAAY,eACd,EACA,MAAO,CACL,WAAY,MACd,CACF,CACF,CACF,CAAC,EAEYC,EACXC,GACgB,CAChB,KAAM,CAAE,MAAAC,EAAO,aAAAC,EAAc,MAAAC,CAAM,EAAIC,EAAM,WAC3CC,CACF,EAEMC,EAAUF,EAAM,OAA+B,CAAA,CAAE,EAEjDG,EAAgBH,EAAM,SAAS,QAAQJ,EAAM,QAAQ,EAAE,UAC1DQ,IAAWA,GAAA,KAAAA,OAAAA,EAA8B,MAAM,SAAU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EAGF,OAAOJ,EAAM,aACXI,EAGA,CACE,QAAUa,GAAM,CACdT,EAAiB,EAAI,EACjBJ,EAAM,MAAM,SAASA,EAAM,MAAM,QAAQa,CAAC,CAChD,EACA,IAAMC,GAAQhB,EAAQ,QAAQc,GAASE,CACzC,CACF,CACF,CAAC,CACH,CAEJ"}
1
+ {"version":3,"file":"SegmentedControlItemList.js","sources":["../../../src/components/segmented-control/SegmentedControlItemList.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '../../stitches'\nimport { Box } from '../box'\nimport { Tabs } from '../tabs'\nimport { SegmentedControlContext } from './SegmentedControlContext'\nimport { SegmentedControlItem } from './SegmentedControlItem'\n\nconst StyledTriggerList = styled(Tabs.TriggerList, {\n position: 'relative',\n p: '$1',\n borderRadius: '$3',\n overflow: 'hidden',\n variants: {\n theme: {\n primary: { bg: '$primary200' },\n marsh: { bg: '$marsh200' }\n }\n },\n '& > div[role=\"tablist\"]': {\n position: 'relative'\n },\n '& > button': {\n zIndex: 2\n }\n})\n\nconst SelectionIndicator = styled(Box, {\n content: '',\n position: 'absolute',\n bg: 'white',\n borderRadius: '$2',\n variants: {\n interacted: {\n true: {\n transition: 'all 300ms ease'\n },\n false: {\n transition: 'none'\n }\n }\n }\n})\n\nexport const SegmentedControlItemList = (\n props: React.ComponentProps<typeof Tabs.TriggerList>\n): JSX.Element => {\n const { theme, defaultValue, value } = React.useContext(\n SegmentedControlContext\n )\n\n const tabsRef = React.useRef<(HTMLElement | null)[]>([])\n\n const selectedIndex = React.Children.toArray(props.children).findIndex(\n (child) => (child as React.ReactElement)?.props.value === value\n )\n\n const [indicatorStyles, setIndicatorStyles] = React.useState({\n left: 0,\n height: 0,\n width: 0\n })\n const [hasInteracted, setHasInteracted] = React.useState(false)\n\n const updateIndicatorPosition = React.useCallback(() => {\n const currentTab = tabsRef.current[selectedIndex]\n if (!currentTab) return\n\n const { width, height } = currentTab.getBoundingClientRect()\n setIndicatorStyles({ left: currentTab.offsetLeft, height, width })\n }, [selectedIndex])\n\n React.useEffect(() => {\n const resizeObserver = new ResizeObserver(updateIndicatorPosition)\n const currentTabs = tabsRef.current\n currentTabs.forEach((tab) => {\n if (tab) resizeObserver.observe(tab)\n })\n\n return () => {\n currentTabs.forEach((tab) => {\n if (tab) resizeObserver.unobserve(tab)\n })\n resizeObserver.disconnect()\n }\n }, [selectedIndex, updateIndicatorPosition])\n\n React.useEffect(() => {\n window.addEventListener('resize', updateIndicatorPosition)\n return () => {\n window.removeEventListener('resize', updateIndicatorPosition)\n }\n }, [updateIndicatorPosition])\n\n React.useEffect(() => {\n updateIndicatorPosition()\n }, [selectedIndex, updateIndicatorPosition])\n\n return (\n <StyledTriggerList theme={theme} defaultValue={defaultValue} {...props}>\n <SelectionIndicator\n css={{\n ...indicatorStyles\n }}\n interacted={hasInteracted}\n />\n {React.Children.map(props.children, (child, index) => {\n if (!React.isValidElement(child)) {\n throw new Error(\n `Child passed to SegmentedControlItemList is not a valid element`\n )\n }\n\n return React.cloneElement(\n child as React.ReactElement<\n React.ComponentProps<typeof SegmentedControlItem>\n >,\n {\n onClick: (e) => {\n setHasInteracted(true)\n if (child.props.onClick) child.props.onClick(e)\n },\n ref: (el) => (tabsRef.current[index] = el)\n }\n )\n })}\n </StyledTriggerList>\n )\n}\n"],"names":["StyledTriggerList","styled","Tabs","SelectionIndicator","Box","SegmentedControlItemList","props","theme","defaultValue","value","React","SegmentedControlContext","tabsRef","selectedIndex","child","indicatorStyles","setIndicatorStyles","hasInteracted","setHasInteracted","updateIndicatorPosition","currentTab","width","height","resizeObserver","currentTabs","tab","index","e","el"],"mappings":"qNAQA,MAAMA,EAAoBC,EAAOC,EAAK,YAAa,CACjD,SAAU,WACV,EAAG,KACH,aAAc,KACd,SAAU,SACV,SAAU,CACR,MAAO,CACL,QAAS,CAAE,GAAI,aAAc,EAC7B,MAAO,CAAE,GAAI,WAAY,CAC3B,CACF,EACA,0BAA2B,CACzB,SAAU,UACZ,EACA,aAAc,CACZ,OA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S,CAAuB,EAClD,IAAM,CACX,OAAO,oBAAoB,SAAUA,CAAuB,CAC9D,GACC,CAACA,CAAuB,CAAC,EAE5BT,EAAM,UAAU,IAAM,CACpBS,EAAwB,CAC1B,EAAG,CAACN,EAAeM,CAAuB,CAAC,EAGzCT,EAAA,cAACV,EAAA,CAAkB,MAAOO,EAAO,aAAcC,EAAe,GAAGF,CAAAA,EAC/DI,EAAA,cAACP,EAAA,CACC,IAAK,CACH,GAAGY,CACL,EACA,WAAYE,CAAAA,CACd,EACCP,EAAM,SAAS,IAAIJ,EAAM,SAAU,CAACQ,EAAOY,IAAU,CACpD,GAAI,CAAChB,EAAM,eAAeI,CAAK,EAC7B,MAAM,IAAI,MACR,iEACF,EAGF,OAAOJ,EAAM,aACXI,EAGA,CACE,QAAUa,GAAM,CACdT,EAAiB,EAAI,EACjBJ,EAAM,MAAM,SAASA,EAAM,MAAM,QAAQa,CAAC,CAChD,EACA,IAAMC,GAAQhB,EAAQ,QAAQc,GAASE,CACzC,CACF,CACF,CAAC,CACH,CAEJ"}
@@ -1,2 +1,2 @@
1
- import*as o from"react";import{styled as s,theme as c}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{encodeBackgroundIcon as u}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as g}from"../../utilities/style/disabledStyle.js";const m=s("select",{appearance:"none",backgroundImage:u(c.colors.grey700.value,"chevron"),backgroundRepeat:"no-repeat, repeat",borderRadius:"$1",color:"$grey1000",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,width:"100%","&:hover":{cursor:"pointer"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":g,variants:{size:{sm:{backgroundPosition:"right $space$2 top 50%, 0 0",backgroundSize:"18px auto, 100%",fontSize:"$sm",height:"$3",pl:"$2",pr:"$5"},md:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$4",pl:"$3",pr:"$6"},lg:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$5",pl:"$3",pr:"$6"}},state:{error:{}},appearance:{standard:{backgroundColor:"white",border:"1px solid $grey700","&:focus":{borderColor:"$primary800",outline:"none"}},modern:{backgroundColor:"$grey100",border:"none","&:focus":{outline:"2px solid $blue800",outlineOffset:1,zIndex:1}}}},compoundVariants:[{state:"error",appearance:"standard",css:{borderColor:"$danger"}},{state:"error",appearance:"modern",css:{backgroundColor:"$dangerLight","&:focus":{outlineColor:"$danger"}}}]}),t=o.forwardRef(({placeholder:r,children:n,size:d="md",appearance:i="standard",...e},p)=>{const a={size:d,appearance:i,ref:p,...e};return[e.value,e.defaultValue].every(l=>l===void 0)&&(a.defaultValue=""),o.createElement(m,{...a},r&&o.createElement("option",{disabled:!0,hidden:!0,value:""},r),n)});t.displayName="Select";export{t as Select};
1
+ import*as o from"react";import{styled as l,theme as s}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import{encodeBackgroundIcon as u}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";const g=l("select",{appearance:"none",backgroundImage:u(s.colors.grey700.value,"chevron"),backgroundRepeat:"no-repeat, repeat",borderRadius:"$1",color:"$grey1000",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,width:"100%","&:hover":{cursor:"pointer"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":{opacity:.3,cursor:"not-allowed"},variants:{size:{sm:{backgroundPosition:"right $space$2 top 50%, 0 0",backgroundSize:"18px auto, 100%",fontSize:"$sm",height:"$3",pl:"$2",pr:"$5"},md:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$4",pl:"$3",pr:"$6"},lg:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$5",pl:"$3",pr:"$6"}},state:{error:{}},appearance:{standard:{backgroundColor:"white",border:"1px solid $grey700","&:focus":{borderColor:"$primary800",outline:"none"}},modern:{backgroundColor:"$grey100",border:"none","&:focus":{outline:"2px solid $blue800",outlineOffset:1,zIndex:1}}}},compoundVariants:[{state:"error",appearance:"standard",css:{borderColor:"$danger"}},{state:"error",appearance:"modern",css:{backgroundColor:"$dangerLight","&:focus":{outlineColor:"$danger"}}}]}),t=o.forwardRef(({placeholder:r,children:n,size:d="md",appearance:i="standard",...e},p)=>{const a={size:d,appearance:i,ref:p,...e};return[e.value,e.defaultValue].every(c=>c===void 0)&&(a.defaultValue=""),o.createElement(g,{...a},r&&o.createElement("option",{disabled:!0,hidden:!0,value:""},r),n)});t.displayName="Select";export{t as Select};
2
2
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { disabledStyle, encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundImage: encodeBackgroundIcon(theme.colors.grey700.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n borderRadius: '$1',\n color: '$grey1000',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': disabledStyle,\n variants: {\n size: {\n sm: {\n backgroundPosition: 'right $space$2 top 50%, 0 0',\n backgroundSize: '18px auto, 100%',\n fontSize: '$sm',\n height: '$3',\n pl: '$2',\n pr: '$5'\n },\n md: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$4',\n pl: '$3',\n pr: '$6'\n },\n lg: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$5',\n pl: '$3',\n pr: '$6'\n }\n },\n state: {\n error: {}\n },\n appearance: {\n standard: {\n backgroundColor: 'white',\n border: '1px solid $grey700',\n '&:focus': {\n borderColor: '$primary800',\n outline: 'none'\n }\n },\n modern: {\n backgroundColor: '$grey100',\n border: 'none',\n '&:focus': {\n outline: '2px solid $blue800',\n outlineOffset: 1,\n zIndex: 1\n }\n }\n }\n },\n compoundVariants: [\n {\n state: 'error',\n appearance: 'standard',\n css: { borderColor: '$danger' }\n },\n {\n state: 'error',\n appearance: 'modern',\n css: {\n backgroundColor: '$dangerLight',\n '&:focus': {\n outlineColor: '$danger'\n }\n }\n }\n ]\n})\n\nexport type SelectProps = Override<\n React.ComponentProps<typeof StyledSelect>,\n {\n as?: never\n placeholder?: string\n }\n // TODO: figure out why uncommenting this causes TS errors in\n // component declaration\n // & (\n // | { id: string; 'aria-label'?: string }\n // | { 'aria-label': string; id?: string }\n // )\n>\n\nexport const Select: React.ForwardRefExoticComponent<SelectProps> =\n React.forwardRef(\n (\n {\n placeholder,\n children,\n size = 'md',\n appearance = 'standard',\n ...remainingProps\n },\n ref\n ) => {\n const props = { size, appearance, ref, ...remainingProps }\n\n if (\n [remainingProps.value, remainingProps.defaultValue].every(\n (value) => value === undefined\n )\n ) {\n props.defaultValue = ''\n }\n\n return (\n <StyledSelect {...props}>\n {placeholder && (\n <option disabled hidden value=\"\">\n {placeholder}\n </option>\n )}\n {children}\n </StyledSelect>\n )\n }\n )\n\nSelect.displayName = 'Select'\n"],"names":["StyledSelect","styled","encodeBackgroundIcon","theme","disabledStyle","Select","React","placeholder","children","size","appearance","remainingProps","ref","props","value"],"mappings":"oZAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiBC,EAAqBC,EAAM,OAAO,QAAQ,MAAO,SAAS,EAC3E,iBAAkB,oBAClB,a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Q,GAAC,OAAM,GAAC,MAAM,EAC3BC,EAAAA,CACH,EAEDC,CACH,CAEJ,CACF,EAEFH,EAAO,YAAc"}
1
+ {"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundImage: encodeBackgroundIcon(theme.colors.grey700.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n borderRadius: '$1',\n color: '$grey1000',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n variants: {\n size: {\n sm: {\n backgroundPosition: 'right $space$2 top 50%, 0 0',\n backgroundSize: '18px auto, 100%',\n fontSize: '$sm',\n height: '$3',\n pl: '$2',\n pr: '$5'\n },\n md: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$4',\n pl: '$3',\n pr: '$6'\n },\n lg: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$5',\n pl: '$3',\n pr: '$6'\n }\n },\n state: {\n error: {}\n },\n appearance: {\n standard: {\n backgroundColor: 'white',\n border: '1px solid $grey700',\n '&:focus': {\n borderColor: '$primary800',\n outline: 'none'\n }\n },\n modern: {\n backgroundColor: '$grey100',\n border: 'none',\n '&:focus': {\n outline: '2px solid $blue800',\n outlineOffset: 1,\n zIndex: 1\n }\n }\n }\n },\n compoundVariants: [\n {\n state: 'error',\n appearance: 'standard',\n css: { borderColor: '$danger' }\n },\n {\n state: 'error',\n appearance: 'modern',\n css: {\n backgroundColor: '$dangerLight',\n '&:focus': {\n outlineColor: '$danger'\n }\n }\n }\n ]\n})\n\nexport type SelectProps = Override<\n React.ComponentProps<typeof StyledSelect>,\n {\n as?: never\n placeholder?: string\n }\n // TODO: figure out why uncommenting this causes TS errors in\n // component declaration\n // & (\n // | { id: string; 'aria-label'?: string }\n // | { 'aria-label': string; id?: string }\n // )\n>\n\nexport const Select: React.ForwardRefExoticComponent<SelectProps> =\n React.forwardRef(\n (\n {\n placeholder,\n children,\n size = 'md',\n appearance = 'standard',\n ...remainingProps\n },\n ref\n ) => {\n const props = { size, appearance, ref, ...remainingProps }\n\n if (\n [remainingProps.value, remainingProps.defaultValue].every(\n (value) => value === undefined\n )\n ) {\n props.defaultValue = ''\n }\n\n return (\n <StyledSelect {...props}>\n {placeholder && (\n <option disabled hidden value=\"\">\n {placeholder}\n </option>\n )}\n {children}\n </StyledSelect>\n )\n }\n )\n\nSelect.displayName = 'Select'\n"],"names":["StyledSelect","styled","encodeBackgroundIcon","theme","Select","React","placeholder","children","size","appearance","remainingProps","ref","props","value"],"mappings":"6UAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiBC,EAAqBC,EAAM,OAAO,QAAQ,MAAO,SAAS,EAC3E,iBAAkB,oBAClB,aAAc,KACd,MAAO,YACP,QAAS,QACT,WAAY,QACZ,WAAY,IACZ,WAAY,IACZ,MAAO,OACP,UAAW,CACT,OAAQ,SACV,EACA,gBAAiB,CACf,QAAS,MACX,EACA,kCAAmC,CACjC,QAAS,GACT,OAAQ,aACV,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,CACF,EACA,MAAO,CACL,MAAO,CACT,CAAA,EACA,WAAY,CACV,SAAU,CACR,gBAAiB,QACjB,OAAQ,qBACR,UAAW,CACT,YAAa,cACb,QAAS,MACX,CACF,EACA,OAAQ,CACN,gBAAiB,WACjB,OAAQ,OACR,UAAW,CACT,QAAS,qBACT,cAAe,EACf,OAAQ,CACV,CACF,CACF,CACF,EACA,iBAAkB,CAChB,CACE,MAAO,QACP,WAAY,WACZ,IAAK,CAAE,YAAa,SAAU,CAChC,EACA,CACE,MAAO,QACP,WAAY,SACZ,IAAK,CACH,gBAAiB,eACjB,UAAW,CACT,aAAc,SAChB,CACF,CACF,CACF,CACF,CAAC,EAgBYC,EACXC,EAAM,WACJ,CACE,CACE,YAAAC,EACA,SAAAC,EACA,KAAAC,EAAO,KACP,WAAAC,EAAa,cACVC,CACL,EACAC,IACG,CACH,MAAMC,EAAQ,CAAE,KAAAJ,EAAM,WAAAC,EAAY,IAAAE,EAAK,GAAGD,CAAe,EAEzD,MACE,CAACA,EAAe,MAAOA,EAAe,YAAY,EAAE,MACjDG,GAAUA,IAAU,MACvB,IAEAD,EAAM,aAAe,IAIrBP,EAAA,cAACL,EAAA,CAAc,GAAGY,CACfN,EAAAA,GACCD,EAAA,cAAC,SAAO,CAAA,SAAQ,GAAC,OAAM,GAAC,MAAM,EAC3BC,EAAAA,CACH,EAEDC,CACH,CAEJ,CACF,EAEFH,EAAO,YAAc"}
@@ -374,7 +374,7 @@ type SideBarProps = React.ComponentProps<typeof Root> & {
374
374
  offset?: number | string;
375
375
  };
376
376
  export declare const SideBar: {
377
- ({ className, children, type, offset, css, ...rest }: SideBarProps): React.JSX.Element;
377
+ ({ className, children, type, offset, css, style, ...rest }: SideBarProps): React.JSX.Element;
378
378
  Brand: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<"a", {}, {
379
379
  sm: string;
380
380
  md: string;
@@ -1,2 +1,2 @@
1
- import t from"react";import{useInteractOutside as f,useFocusWithin as v,useHover as y}from"react-aria";import{createTheme as B,styled as r}from"../../stitches.js";import{SideBarBrand as g,SideBarBrandLogo as S,SideBarBrandName as w,SideBarHeader as E,SideBarBody as H,SideBarFooter as N}from"./SideBarComponents.js";import{SideBarContext as $}from"./SideBarContext.js";const n="5.5rem",D="16rem",F=B({colors:{background:"white",text:"$grey800",border:"$grey200"}}),I=r("div",{position:"sticky",zIndex:1,variants:{type:{static:{},expandable:{width:n}}}}),W=r("div",{bg:"$background",borderRight:"1px solid $border",boxShadow:"4px 0 4px -2px rgba(31, 31, 31, 0)",display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",willChange:"width","@allowMotion":{transition:"width 125ms ease-out, box-shadow 125ms ease-out"},variants:{type:{static:{},expandable:{}},isExpanded:{true:{width:D},false:{width:n}}},compoundVariants:[{isExpanded:!0,type:"expandable",css:{boxShadow:"4px 0 4px -2px rgba(31, 31, 31, 0.1)"}}]}),k=r("div",{bottom:0,left:0,position:"absolute",right:0,top:0,transition:"all",variants:{isVisible:{true:{visibility:"visible",transitionDelay:"0s"},false:{visibility:"hidden",transitionDelay:"50ms"}}}}),e=({className:l=F,children:p,type:a="expandable",offset:s="0px",css:c,...h})=>{const[o,i]=t.useState(a==="static"),d=t.useRef(null);f({ref:d,onInteractOutside:()=>i(!1)});const{focusWithinProps:m}=v({onFocusWithin:()=>i(!0),onBlurWithin:()=>i(!1)}),{hoverProps:x,isHovered:u}=y({onHoverStart:()=>i(!0),onHoverEnd:()=>i(!1)}),b=a==="expandable"?{...m,...x,onTouchEnd:()=>i(!0),ref:d}:{};return t.createElement($.Provider,{value:{isExpanded:o}},t.createElement(I,{...h,className:l,css:{height:`calc(100svh - ${s})`,top:s,...c},type:a},t.createElement(W,{...b,isExpanded:o,type:a},p,a==="expandable"&&t.createElement(k,{isVisible:!u&&!o}))))};e.Brand=g,e.BrandLogo=S,e.BrandName=w,e.Header=E,e.Body=H,e.Footer=N,e.displayName="SideBar";export{e as SideBar};
1
+ import i from"react";import{useInteractOutside as v,useFocusWithin as y,useHover as B}from"react-aria";import{createTheme as g,styled as r}from"../../stitches.js";import{SideBarBrand as S,SideBarBrandLogo as w,SideBarBrandName as E,SideBarHeader as H,SideBarBody as N,SideBarFooter as k}from"./SideBarComponents.js";import{SideBarContext as F}from"./SideBarContext.js";const d="5.5rem",I="16rem",W=g({colors:{background:"white",text:"$grey800",border:"$grey200"}}),$=r("div",{position:"sticky",zIndex:1,variants:{type:{static:{},expandable:{width:d}}}}),D=r("div",{bg:"$background",borderRight:"1px solid $border",boxShadow:"4px 0 4px -2px rgba(31, 31, 31, 0)",display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",willChange:"width","@allowMotion":{transition:"width 125ms ease-out, box-shadow 125ms ease-out"},variants:{type:{static:{},expandable:{}},isExpanded:{true:{width:I},false:{width:d}}},compoundVariants:[{isExpanded:!0,type:"expandable",css:{boxShadow:"4px 0 4px -2px rgba(31, 31, 31, 0.1)"}}]}),L=r("div",{bottom:0,left:0,position:"absolute",right:0,top:0,transition:"all",variants:{isVisible:{true:{visibility:"visible",transitionDelay:"0ms"},false:{visibility:"hidden",transitionDelay:"50ms"}}}}),e=({className:n=W,children:l,type:a="expandable",offset:p="0px",css:c,style:m,...h})=>{const[o,t]=i.useState(a==="static"),s=i.useRef(null);v({ref:s,onInteractOutside:()=>t(!1)});const{focusWithinProps:x}=y({onFocusWithin:()=>t(!0),onBlurWithin:()=>t(!1)}),{hoverProps:b,isHovered:u}=B({onHoverStart:()=>t(!0),onHoverEnd:()=>t(!1)}),f=a==="expandable"?{...x,...b,onTouchEnd:()=>t(!0),ref:s}:{};return i.createElement(F.Provider,{value:{isExpanded:o}},i.createElement($,{...h,style:{...m,"--offset":p},className:n,css:{height:"calc(100svh - var(--offset))",top:"var(--offset)",...c},type:a},i.createElement(D,{...f,isExpanded:o,type:a},l,a==="expandable"&&i.createElement(L,{isVisible:!u&&!o}))))};e.Brand=S,e.BrandLogo=w,e.BrandName=E,e.Header=H,e.Body=N,e.Footer=k,e.displayName="SideBar";export{e as SideBar};
2
2
  //# sourceMappingURL=SideBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideBar.js","sources":["../../../src/components/side-bar/SideBar.tsx"],"sourcesContent":["import React from 'react'\nimport { useFocusWithin, useHover, useInteractOutside } from 'react-aria'\n\nimport { createTheme, styled } from '~/stitches'\n\nimport {\n SideBarBody,\n SideBarBrand,\n SideBarBrandLogo,\n SideBarBrandName,\n SideBarFooter,\n SideBarHeader\n} from './SideBarComponents'\nimport { SideBarContext } from './SideBarContext'\n\nconst SIZE_COLLAPSED = '5.5rem'\nconst SIZE_EXPANDED = '16rem'\n\nconst light = createTheme({\n colors: {\n background: 'white',\n text: '$grey800',\n border: '$grey200'\n }\n})\n\nconst Root = styled('div', {\n position: 'sticky',\n zIndex: 1,\n variants: {\n type: {\n static: {},\n expandable: { width: SIZE_COLLAPSED }\n }\n }\n})\n\nconst Content = styled('div', {\n bg: '$background',\n borderRight: '1px solid $border',\n boxShadow: '4px 0 4px -2px rgba(31, 31, 31, 0)',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n overflow: 'hidden',\n willChange: 'width',\n '@allowMotion': {\n transition: 'width 125ms ease-out, box-shadow 125ms ease-out'\n },\n variants: {\n type: {\n static: {},\n expandable: {}\n },\n isExpanded: {\n true: { width: SIZE_EXPANDED },\n false: { width: SIZE_COLLAPSED }\n }\n },\n compoundVariants: [\n {\n isExpanded: true,\n type: 'expandable',\n css: { boxShadow: '4px 0 4px -2px rgba(31, 31, 31, 0.1)' }\n }\n ]\n})\n\nconst PointerBlocker = styled('div', {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n transition: 'all',\n variants: {\n isVisible: {\n true: { visibility: 'visible', transitionDelay: '0s' },\n false: { visibility: 'hidden', transitionDelay: '50ms' }\n }\n }\n})\n\ntype SideBarProps = React.ComponentProps<typeof Root> & {\n offset?: number | string\n}\n\nexport const SideBar = ({\n className = light,\n children,\n type = 'expandable',\n offset = '0px',\n css,\n ...rest\n}: SideBarProps) => {\n const [isExpanded, setIsExpanded] = React.useState(type === 'static')\n const ref = React.useRef<HTMLDivElement>(null)\n\n useInteractOutside({\n ref,\n onInteractOutside: () => setIsExpanded(false)\n })\n const { focusWithinProps } = useFocusWithin({\n onFocusWithin: () => setIsExpanded(true),\n onBlurWithin: () => setIsExpanded(false)\n })\n const { hoverProps, isHovered } = useHover({\n onHoverStart: () => setIsExpanded(true),\n onHoverEnd: () => setIsExpanded(false)\n })\n const touchProps = {\n onTouchEnd: () => setIsExpanded(true)\n }\n\n const expandableProps =\n type === 'expandable'\n ? {\n ...focusWithinProps,\n ...hoverProps,\n ...touchProps,\n ref\n }\n : {}\n\n return (\n <SideBarContext.Provider value={{ isExpanded }}>\n <Root\n {...rest}\n className={className}\n css={{ height: `calc(100svh - ${offset})`, top: offset, ...css }}\n type={type}\n >\n <Content {...expandableProps} isExpanded={isExpanded} type={type}>\n {children}\n {/**\n * When the SideBar is collapsed, ensure that the initial tap event\n * is used to expand the nav first before making the items available\n */}\n {type === 'expandable' && (\n <PointerBlocker isVisible={!isHovered && !isExpanded} />\n )}\n </Content>\n </Root>\n </SideBarContext.Provider>\n )\n}\n\nSideBar.Brand = SideBarBrand\nSideBar.BrandLogo = SideBarBrandLogo\nSideBar.BrandName = SideBarBrandName\nSideBar.Header = SideBarHeader\nSideBar.Body = SideBarBody\nSideBar.Footer = SideBarFooter\n\nSideBar.displayName = 'SideBar'\n"],"names":["SIZE_COLLAPSED","SIZE_EXPANDED","light","createTheme","Root","styled","Content","PointerBlocker","SideBar","className","children","type","offset","css","rest","isExpanded","setIsExpanded","React","ref","useInteractOutside","focusWithinProps","useFocusWithin","hoverProps","isHovered","useHover","expandableProps","SideBarContext","SideBarBrand","SideBarBrandLogo","SideBarBrandName","SideBarHeader","SideBarBody","SideBarFooter"],"mappings":"iXAeA,MAAMA,EAAiB,SACjBC,EAAgB,QAEhBC,EAAQC,EAAY,CACxB,OAAQ,CACN,WAAY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AAAM,EAAY,UAAAC,CAAU,EAAIC,EAAS,CACzC,aAAc,IAAMR,EAAc,EAAI,EACtC,WAAY,IAAMA,EAAc,EAAK,CACvC,CAAC,EAKKS,EACJd,IAAS,aACL,CACE,GAAGS,EACH,GAAGE,EAPT,WAAY,IAAMN,EAAc,EAAI,EAS9B,IAAAE,CACF,EACA,CAEN,EAAA,OACED,EAAA,cAACS,EAAe,SAAf,CAAwB,MAAO,CAAE,WAAAX,CAAW,CAC3CE,EAAAA,EAAA,cAACb,EAAA,CACE,GAAGU,EACJ,UAAWL,EACX,IAAK,CAAE,OAAQ,iBAAiBG,KAAW,IAAKA,EAAQ,GAAGC,CAAI,EAC/D,KAAMF,GAENM,EAAA,cAACX,EAAA,CAAS,GAAGmB,EAAiB,WAAYV,EAAY,KAAMJ,CAAAA,EACzDD,EAKAC,IAAS,cACRM,EAAA,cAACV,EAAA,CAAe,UAAW,CAACgB,GAAa,CAACR,CAAAA,CAAY,CAE1D,CACF,CACF,CAEJ,EAEAP,EAAQ,MAAQmB,EAChBnB,EAAQ,UAAYoB,EACpBpB,EAAQ,UAAYqB,EACpBrB,EAAQ,OAASsB,EACjBtB,EAAQ,KAAOuB,EACfvB,EAAQ,OAASwB,EAEjBxB,EAAQ,YAAc"}
1
+ {"version":3,"file":"SideBar.js","sources":["../../../src/components/side-bar/SideBar.tsx"],"sourcesContent":["import React from 'react'\nimport { useFocusWithin, useHover, useInteractOutside } from 'react-aria'\n\nimport { createTheme, styled } from '~/stitches'\n\nimport {\n SideBarBody,\n SideBarBrand,\n SideBarBrandLogo,\n SideBarBrandName,\n SideBarFooter,\n SideBarHeader\n} from './SideBarComponents'\nimport { SideBarContext } from './SideBarContext'\n\nconst SIZE_COLLAPSED = '5.5rem'\nconst SIZE_EXPANDED = '16rem'\n\nconst light = createTheme({\n colors: {\n background: 'white',\n text: '$grey800',\n border: '$grey200'\n }\n})\n\nconst Root = styled('div', {\n position: 'sticky',\n zIndex: 1,\n variants: {\n type: {\n static: {},\n expandable: { width: SIZE_COLLAPSED }\n }\n }\n})\n\nconst Content = styled('div', {\n bg: '$background',\n borderRight: '1px solid $border',\n boxShadow: '4px 0 4px -2px rgba(31, 31, 31, 0)',\n display: 'flex',\n flexDirection: 'column',\n height: '100%',\n overflow: 'hidden',\n willChange: 'width',\n '@allowMotion': {\n transition: 'width 125ms ease-out, box-shadow 125ms ease-out'\n },\n variants: {\n type: {\n static: {},\n expandable: {}\n },\n isExpanded: {\n true: { width: SIZE_EXPANDED },\n false: { width: SIZE_COLLAPSED }\n }\n },\n compoundVariants: [\n {\n isExpanded: true,\n type: 'expandable',\n css: { boxShadow: '4px 0 4px -2px rgba(31, 31, 31, 0.1)' }\n }\n ]\n})\n\nconst PointerBlocker = styled('div', {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n transition: 'all',\n variants: {\n isVisible: {\n true: { visibility: 'visible', transitionDelay: '0ms' },\n false: { visibility: 'hidden', transitionDelay: '50ms' }\n }\n }\n})\n\ntype SideBarProps = React.ComponentProps<typeof Root> & {\n offset?: number | string\n}\n\nexport const SideBar = ({\n className = light,\n children,\n type = 'expandable',\n offset = '0px',\n css,\n style,\n ...rest\n}: SideBarProps) => {\n const [isExpanded, setIsExpanded] = React.useState(type === 'static')\n const ref = React.useRef<HTMLDivElement>(null)\n\n useInteractOutside({\n ref,\n onInteractOutside: () => setIsExpanded(false)\n })\n const { focusWithinProps } = useFocusWithin({\n onFocusWithin: () => setIsExpanded(true),\n onBlurWithin: () => setIsExpanded(false)\n })\n const { hoverProps, isHovered } = useHover({\n onHoverStart: () => setIsExpanded(true),\n onHoverEnd: () => setIsExpanded(false)\n })\n const touchProps = {\n onTouchEnd: () => setIsExpanded(true)\n }\n\n const expandableProps =\n type === 'expandable'\n ? {\n ...focusWithinProps,\n ...hoverProps,\n ...touchProps,\n ref\n }\n : {}\n\n return (\n <SideBarContext.Provider value={{ isExpanded }}>\n <Root\n {...rest}\n style={{ ...style, '--offset': offset }}\n className={className}\n css={{\n height: `calc(100svh - var(--offset))`,\n top: 'var(--offset)',\n ...css\n }}\n type={type}\n >\n <Content {...expandableProps} isExpanded={isExpanded} type={type}>\n {children}\n {/**\n * When the SideBar is collapsed, ensure that the initial tap event\n * is used to expand the nav first before making the items available\n */}\n {type === 'expandable' && (\n <PointerBlocker isVisible={!isHovered && !isExpanded} />\n )}\n </Content>\n </Root>\n </SideBarContext.Provider>\n )\n}\n\nSideBar.Brand = SideBarBrand\nSideBar.BrandLogo = SideBarBrandLogo\nSideBar.BrandName = SideBarBrandName\nSideBar.Header = SideBarHeader\nSideBar.Body = SideBarBody\nSideBar.Footer = SideBarFooter\n\nSideBar.displayName = 'SideBar'\n"],"names":["SIZE_COLLAPSED","SIZE_EXPANDED","light","createTheme","Root","styled","Content","PointerBlocker","SideBar","className","children","type","offset","css","style","rest","isExpanded","setIsExpanded","React","ref","useInteractOutside","focusWithinProps","useFocusWithin","hoverProps","isHovered","useHover","expandableProps","SideBarContext","SideBarBrand","SideBarBrandLogo","SideBarBrandName","SideBarHeader","SideBarBody","SideBarFooter"],"mappings":"iXAeA,MAAMA,EAAiB,SACjBC,EAAgB,QAEhBC,EAAQC,EAAY,CACxB,OAAQ,CACN,WAAY,QACZ,KAAM,WACN,OAAQ,UACV,CACF,CAAC,EAEKC,EAAOC,EAAO,MAAO,CACzB,SAAU,SACV,OAAQ,EACR,SAAU,CACR,KAAM,CACJ,OAAQ,CAAA,EACR,WAAY,CAAE,MAAOL,CAAe,CACtC,CACF,CACF,CAAC,EAEKM,EAAUD,EAAO,MAAO,CAC5B,GAAI,cACJ,YAAa,oBACb,UAAW,qCACX,QAAS,OACT,cAAe,SACf,OAAQ,OACR,SAAU,SACV,WAAY,QACZ,eAAgB,CACd,WAAY,iDACd,EACA,SAAU,CACR,KAAM,CACJ,OAAQ,CAAC,EACT,WAAY,CACd,CAAA,EACA,WAAY,CACV,KAAM,CAAE,MAAOJ,CAAc,EAC7B,MAAO,CAAE,MAAOD,CAAe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CAENO,EAAAA,EAAA,cAACZ,EAAA,CAAS,GAAGoB,EAAiB,WAAYV,EAAY,KAAML,GACzDD,EAKAC,IAAS,cACRO,EAAA,cAACX,EAAA,CAAe,UAAW,CAACiB,GAAa,CAACR,EAAY,CAE1D,CACF,CACF,CAEJ,EAEAR,EAAQ,MAAQoB,EAChBpB,EAAQ,UAAYqB,EACpBrB,EAAQ,UAAYsB,EACpBtB,EAAQ,OAASuB,EACjBvB,EAAQ,KAAOwB,EACfxB,EAAQ,OAASyB,EAEjBzB,EAAQ,YAAc"}
@@ -1,7 +1,8 @@
1
+ import type { VariantProps } from '@atom-learning/stitches-react';
1
2
  import * as React from 'react';
2
3
  import { SliderSteps } from './SliderSteps';
3
4
  import { SliderValue } from './SliderValue';
4
- declare const StyledSlider: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-slider").SliderProps & React.RefAttributes<HTMLSpanElement>>, {
5
+ declare const StyledTrack: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-slider").SliderTrackProps & React.RefAttributes<HTMLSpanElement>>, {
5
6
  theme?: "light" | "tonal" | undefined;
6
7
  }, {
7
8
  sm: string;
@@ -372,7 +373,376 @@ declare const StyledSlider: import("@atom-learning/stitches-react/types/styled-c
372
373
  marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
373
374
  };
374
375
  }>>;
375
- export type SliderProps = React.ComponentProps<typeof StyledSlider>;
376
+ declare const StyledSlider: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-slider").SliderProps & React.RefAttributes<HTMLSpanElement>>, {}, {
377
+ sm: string;
378
+ md: string;
379
+ lg: string;
380
+ xl: string;
381
+ reducedMotion: string;
382
+ allowMotion: string;
383
+ hover: string;
384
+ }, import("@atom-learning/stitches-react/types/css-util").CSS<{
385
+ sm: string;
386
+ md: string;
387
+ lg: string;
388
+ xl: string;
389
+ reducedMotion: string;
390
+ allowMotion: string;
391
+ hover: string;
392
+ }, {
393
+ colors: {
394
+ textBold: string;
395
+ textRegular: string;
396
+ textSubtle: string;
397
+ textMinimal: string;
398
+ background: string;
399
+ backgroundAccent: string;
400
+ grey100: string;
401
+ grey200: string;
402
+ grey300: string;
403
+ grey400: string;
404
+ grey500: string;
405
+ grey600: string;
406
+ grey700: string;
407
+ grey800: string;
408
+ grey900: string;
409
+ grey1000: string;
410
+ grey1100: string;
411
+ grey1200: string;
412
+ blue100: string;
413
+ blue200: string;
414
+ blue300: string;
415
+ blue400: string;
416
+ blue500: string;
417
+ blue600: string;
418
+ blue700: string;
419
+ blue800: string;
420
+ blue900: string;
421
+ blue1000: string;
422
+ blue1100: string;
423
+ blue1200: string;
424
+ pink100: string;
425
+ pink200: string;
426
+ pink300: string;
427
+ pink400: string;
428
+ pink500: string;
429
+ pink600: string;
430
+ pink700: string;
431
+ pink800: string;
432
+ pink900: string;
433
+ pink1000: string;
434
+ pink1100: string;
435
+ pink1200: string;
436
+ purple100: string;
437
+ purple200: string;
438
+ purple300: string;
439
+ purple400: string;
440
+ purple500: string;
441
+ purple600: string;
442
+ purple700: string;
443
+ purple800: string;
444
+ purple900: string;
445
+ purple1000: string;
446
+ purple1100: string;
447
+ purple1200: string;
448
+ cyan100: string;
449
+ cyan200: string;
450
+ cyan300: string;
451
+ cyan400: string;
452
+ cyan500: string;
453
+ cyan600: string;
454
+ cyan700: string;
455
+ cyan800: string;
456
+ cyan900: string;
457
+ cyan1000: string;
458
+ cyan1100: string;
459
+ cyan1200: string;
460
+ green100: string;
461
+ green200: string;
462
+ green300: string;
463
+ green400: string;
464
+ green500: string;
465
+ green600: string;
466
+ green700: string;
467
+ green800: string;
468
+ green900: string;
469
+ green1000: string;
470
+ green1100: string;
471
+ green1200: string;
472
+ magenta100: string;
473
+ magenta200: string;
474
+ magenta300: string;
475
+ magenta400: string;
476
+ magenta500: string;
477
+ magenta600: string;
478
+ magenta700: string;
479
+ magenta800: string;
480
+ magenta900: string;
481
+ magenta1000: string;
482
+ magenta1100: string;
483
+ magenta1200: string;
484
+ red100: string;
485
+ red200: string;
486
+ red300: string;
487
+ red400: string;
488
+ red500: string;
489
+ red600: string;
490
+ red700: string;
491
+ red800: string;
492
+ red900: string;
493
+ red1000: string;
494
+ red1100: string;
495
+ red1200: string;
496
+ teal100: string;
497
+ teal200: string;
498
+ teal300: string;
499
+ teal400: string;
500
+ teal500: string;
501
+ teal600: string;
502
+ teal700: string;
503
+ teal800: string;
504
+ teal900: string;
505
+ teal1000: string;
506
+ teal1100: string;
507
+ teal1200: string;
508
+ orange100: string;
509
+ orange200: string;
510
+ orange300: string;
511
+ orange400: string;
512
+ orange500: string;
513
+ orange600: string;
514
+ orange700: string;
515
+ orange800: string;
516
+ orange900: string;
517
+ orange1000: string;
518
+ orange1100: string;
519
+ orange1200: string;
520
+ yellow100: string;
521
+ yellow200: string;
522
+ yellow300: string;
523
+ yellow400: string;
524
+ yellow500: string;
525
+ yellow600: string;
526
+ yellow700: string;
527
+ yellow800: string;
528
+ yellow900: string;
529
+ yellow1000: string;
530
+ yellow1100: string;
531
+ yellow1200: string;
532
+ lime100: string;
533
+ lime200: string;
534
+ lime300: string;
535
+ lime400: string;
536
+ lime500: string;
537
+ lime600: string;
538
+ lime700: string;
539
+ lime800: string;
540
+ lime900: string;
541
+ lime1000: string;
542
+ lime1100: string;
543
+ lime1200: string;
544
+ lapis100: string;
545
+ lapis200: string;
546
+ lapis300: string;
547
+ lapis400: string;
548
+ lapis500: string;
549
+ lapis600: string;
550
+ lapis700: string;
551
+ lapis800: string;
552
+ lapis900: string;
553
+ lapis1000: string;
554
+ lapis1100: string;
555
+ lapis1200: string;
556
+ maroon100: string;
557
+ maroon200: string;
558
+ maroon300: string;
559
+ maroon400: string;
560
+ maroon500: string;
561
+ maroon600: string;
562
+ maroon700: string;
563
+ maroon800: string;
564
+ maroon900: string;
565
+ maroon1000: string;
566
+ maroon1100: string;
567
+ maroon1200: string;
568
+ marsh100: string;
569
+ marsh200: string;
570
+ marsh300: string;
571
+ marsh400: string;
572
+ marsh500: string;
573
+ marsh600: string;
574
+ marsh700: string;
575
+ marsh800: string;
576
+ marsh900: string;
577
+ marsh1000: string;
578
+ marsh1100: string;
579
+ marsh1200: string;
580
+ alpha100: string;
581
+ alpha150: string;
582
+ alpha200: string;
583
+ alpha250: string;
584
+ alpha600: string;
585
+ infoLight: string;
586
+ info: string;
587
+ infoMid: string;
588
+ infoDark: string;
589
+ successLight: string;
590
+ success: string;
591
+ successMid: string;
592
+ successDark: string;
593
+ dangerLight: string;
594
+ danger: string;
595
+ dangerMid: string;
596
+ dangerDark: string;
597
+ warningLight: string;
598
+ warning: string;
599
+ warningMid: string;
600
+ warningDark: string;
601
+ warningText: string;
602
+ subjectEnglish: string;
603
+ subjectMaths: string;
604
+ subjectScience: string;
605
+ subjectVerbalReasoning: string;
606
+ subjectNonVerbalReasoning: string;
607
+ subjectCreativeWriting: string;
608
+ subjectExamSkills: string;
609
+ subjectGcseEnglishLiterature: string;
610
+ subjectGcseMaths: string;
611
+ subjectGcseChemistry: string;
612
+ subjectGcsePhysics: string;
613
+ subjectGcseBiology: string;
614
+ glBlueLight: string;
615
+ glBluePrimary: string;
616
+ glBlueDark: string;
617
+ primary100: string;
618
+ primary200: string;
619
+ primary300: string;
620
+ primary400: string;
621
+ primary500: string;
622
+ primary600: string;
623
+ primary700: string;
624
+ primary800: string;
625
+ primary900: string;
626
+ primary1000: string;
627
+ primary1100: string;
628
+ primary1200: string;
629
+ };
630
+ space: {
631
+ "0": string;
632
+ "1": string;
633
+ "2": string;
634
+ "3": string;
635
+ "4": string;
636
+ "5": string;
637
+ "6": string;
638
+ "7": string;
639
+ "8": string;
640
+ "9": string;
641
+ "24": string;
642
+ };
643
+ fontSizes: {
644
+ xs: string;
645
+ sm: string;
646
+ md: string;
647
+ lg: string;
648
+ xl: string;
649
+ "2xl": string;
650
+ "3xl": string;
651
+ "4xl": string;
652
+ };
653
+ fonts: {
654
+ sans: string;
655
+ mono: string;
656
+ display: string;
657
+ body: string;
658
+ };
659
+ sizes: {
660
+ "0": string;
661
+ "1": string;
662
+ "2": string;
663
+ "3": string;
664
+ "4": string;
665
+ "5": string;
666
+ "6": string;
667
+ "7": string;
668
+ "8": string;
669
+ };
670
+ radii: {
671
+ "0": string;
672
+ "1": string;
673
+ "2": string;
674
+ "3": string;
675
+ round: string;
676
+ };
677
+ shadows: {
678
+ "0": string;
679
+ "1": string;
680
+ "2": string;
681
+ "3": string;
682
+ };
683
+ ratios: {
684
+ "16-9": string;
685
+ "3-2": string;
686
+ "4-3": string;
687
+ "1-1": string;
688
+ "3-4": string;
689
+ };
690
+ }, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
691
+ bg: (value: import("@atom-learning/stitches-react").PropertyValue<"background">) => {
692
+ background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
693
+ };
694
+ size: (value: import("@atom-learning/stitches-react").ScaleValue<"size"> | number | string) => {
695
+ height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
696
+ width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
697
+ };
698
+ p: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
699
+ padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
700
+ };
701
+ pt: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
702
+ paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
703
+ };
704
+ pr: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
705
+ paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
706
+ };
707
+ pb: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
708
+ paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
709
+ };
710
+ pl: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
711
+ paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
712
+ };
713
+ px: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
714
+ paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
715
+ paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
716
+ };
717
+ py: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
718
+ paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
719
+ paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
720
+ };
721
+ m: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
722
+ margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
723
+ };
724
+ mt: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
725
+ marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
726
+ };
727
+ mr: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
728
+ marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
729
+ };
730
+ mb: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
731
+ marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
732
+ };
733
+ ml: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
734
+ marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
735
+ };
736
+ mx: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
737
+ marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
738
+ marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
739
+ };
740
+ my: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
741
+ marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
742
+ marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
743
+ };
744
+ }>>;
745
+ export type SliderProps = React.ComponentProps<typeof StyledSlider> & VariantProps<typeof StyledTrack>;
376
746
  type SliderType = React.ForwardRefExoticComponent<SliderProps> & {
377
747
  Value: typeof SliderValue;
378
748
  Steps: typeof SliderSteps;
@@ -1,2 +1,2 @@
1
- import{Track as $,Root as b,Range as g,Thumb as y}from"@radix-ui/react-slider";import*as e from"react";import{styled as t}from"../../stitches.js";import{CSSWrapper as v}from"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as o}from"../../utilities/style/disabledStyle.js";import{SliderSteps as S}from"./SliderSteps.js";import{SliderValue as x}from"./SliderValue.js";const a=t($,{borderRadius:"$round",flexGrow:1,position:"relative",'&[data-orientation="horizontal"]':{height:"$space$1"},'&[data-orientation="vertical"]':{width:"$space$1"}}),R=t(b,{alignItems:"center",display:"flex",position:"relative",touchAction:"none",userSelect:"none",cursor:"pointer",'&[data-orientation="horizontal"]':{height:"$1"},'&[data-orientation="vertical"]':{flexDirection:"column",width:"$1"},"&[disabled]":o,variants:{theme:{light:{[`${a}`]:{bg:"#fff"}},tonal:{[`${a}`]:{bg:"$grey600"}}}}}),E=t(g,{bg:"$primary800",borderRadius:"$round",height:"100%",position:"absolute","&[disabled]":o}),k=t(y,{bg:"$primary900",borderRadius:"$round",display:"block",size:"$1","&:hover":{bg:"$primary1000"},"&:focus":{outline:"2px solid $primary900",outlineOffset:"2px"},"&[disabled]":o}),r=e.forwardRef(({value:l,defaultValue:n,min:m=0,max:d=100,theme:s="tonal",css:p,children:u,...c},f)=>{const i=l||n;return e.createElement(v,{css:p},e.createElement(R,{theme:s,defaultValue:n,value:l,min:m,max:d,ref:f,...c},e.createElement(a,null,e.createElement(E,null)),(i==null?void 0:i.length)&&i.map((w,h)=>e.createElement(k,{key:`thumb${h}`}))),u)});r.Value=x,r.Steps=S,r.displayName="Slider";export{r as Slider};
1
+ import{Track as f,Root as h,Range as $,Thumb as b}from"@radix-ui/react-slider";import*as e from"react";import{styled as t}from"../../stitches.js";import{CSSWrapper as g}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{SliderSteps as y}from"./SliderSteps.js";import{SliderValue as v}from"./SliderValue.js";const x=t(f,{borderRadius:"$round",flexGrow:1,position:"relative",'&[data-orientation="horizontal"]':{height:"$space$1"},'&[data-orientation="vertical"]':{width:"$space$1"},variants:{theme:{light:{bg:"#fff"},tonal:{bg:"$grey600"}}}}),S=t(h,{alignItems:"center",display:"flex",position:"relative",touchAction:"none",userSelect:"none",cursor:"pointer",'&[data-orientation="horizontal"]':{height:"$1"},'&[data-orientation="vertical"]':{flexDirection:"column",width:"$1"},"&[disabled]":{opacity:.3,cursor:"not-allowed"}}),w=t($,{bg:"$primary800",borderRadius:"$round",height:"100%",position:"absolute","&[disabled]":{opacity:.3,cursor:"not-allowed"}}),R=t(b,{bg:"$primary900",borderRadius:"$round",display:"block",size:"$1","&:hover":{bg:"$primary1000"},"&:focus":{outline:"2px solid $primary900",outlineOffset:"2px"},"&[disabled]":{opacity:.3,cursor:"not-allowed"}}),r=e.forwardRef(({value:i,defaultValue:a,min:l=0,max:n=100,theme:d="tonal",css:m,children:s,...p},c)=>{const o=i||a;return e.createElement(g,{css:m},e.createElement(S,{defaultValue:a,value:i,min:l,max:n,ref:c,...p},e.createElement(x,{theme:d},e.createElement(w,null)),(o==null?void 0:o.length)&&o.map((E,u)=>e.createElement(R,{key:`thumb${u}`}))),s)});r.Value=v,r.Steps=y,r.displayName="Slider";export{r as Slider};
2
2
  //# sourceMappingURL=Slider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["import { Range, Root, Thumb, Track } from '@radix-ui/react-slider'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { CSSWrapper, disabledStyle } from '~/utilities'\n\nimport { SliderSteps } from './SliderSteps'\nimport { SliderValue } from './SliderValue'\n\nconst StyledTrack = styled(Track, {\n borderRadius: '$round',\n flexGrow: 1,\n position: 'relative',\n '&[data-orientation=\"horizontal\"]': { height: '$space$1' },\n '&[data-orientation=\"vertical\"]': { width: '$space$1' }\n})\n\nconst StyledSlider = styled(Root, {\n alignItems: 'center',\n display: 'flex',\n position: 'relative',\n touchAction: 'none',\n userSelect: 'none',\n cursor: 'pointer',\n '&[data-orientation=\"horizontal\"]': {\n height: '$1'\n },\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$1'\n },\n '&[disabled]': disabledStyle,\n variants: {\n theme: {\n light: {\n [`${StyledTrack}`]: { bg: '#fff' }\n },\n tonal: {\n [`${StyledTrack}`]: { bg: '$grey600' }\n }\n }\n }\n})\n\nconst StyledRange = styled(Range, {\n bg: '$primary800',\n borderRadius: '$round',\n height: '100%',\n position: 'absolute',\n '&[disabled]': disabledStyle\n})\n\nconst StyledThumb = styled(Thumb, {\n bg: '$primary900',\n borderRadius: '$round',\n display: 'block',\n size: '$1',\n '&:hover': {\n bg: '$primary1000'\n },\n '&:focus': {\n outline: '2px solid $primary900',\n outlineOffset: '2px'\n },\n '&[disabled]': disabledStyle\n})\n\nexport type SliderProps = React.ComponentProps<typeof StyledSlider>\n\ntype SliderType = React.ForwardRefExoticComponent<SliderProps> & {\n Value: typeof SliderValue\n Steps: typeof SliderSteps\n}\n\nexport const Slider: SliderType = React.forwardRef(\n (\n {\n value,\n defaultValue,\n min = 0,\n max = 100,\n theme = 'tonal',\n css,\n children,\n ...remainingProps\n },\n ref\n ) => {\n const values = value || defaultValue\n return (\n <CSSWrapper css={css}>\n <StyledSlider\n theme={theme}\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n ref={ref}\n {...remainingProps}\n >\n <StyledTrack>\n <StyledRange />\n </StyledTrack>\n {values?.length &&\n values.map((_, i) => <StyledThumb key={`thumb${i}`} />)}\n </StyledSlider>\n {children}\n </CSSWrapper>\n )\n }\n) as SliderType\n\nSlider.Value = SliderValue\nSlider.Steps = SliderSteps\n\nSlider.displayName = 'Slider'\n"],"names":["StyledTrack","styled","Track","StyledSlider","Root","disabledStyle","StyledRange","Range","StyledThumb","Thumb","Slider","React","value","defaultValue","min","max","theme","css","children","remainingProps","ref","values","CSSWrapper","_","i","SliderValue","SliderSteps"],"mappings":"ogBASA,MAAMA,EAAcC,EAAOC,EAAO,CAChC,aAAc,SACd,SAAU,EACV,SAAU,WACV,mCAAoC,CAAE,OAAQ,UAAW,EACzD,iCAAkC,CAAE,MAAO,UAAW,CACxD,CAAC,EAEKC,EAAeF,EAAOG,EAAM,CAChC,WAAY,SACZ,QAAS,OACT,SAAU,WACV,YAAa,OACb,WAAY,OACZ,OAAQ,UACR,mCAAoC,CAClC,OAAQ,IACV,EACA,iCAAkC,CAChC,cAAe,SACf,MAAO,IACT,EACA,cAAeC,EACf,SAAU,CACR,MAAO,CACL,MAAO,CACL,CAAC,GAAGL,KAAgB,CAAE,GAAI,MAAO,CACnC,EACA,MAAO,CACL,CAAC,GAAGA,KAAgB,CAAE,GAAI,UAAW,CACvC,CACF,CACF,CACF,CAAC,EAEKM,EAAcL,EAAOM,EAAO,CAChC,GAAI,cACJ,aAAc,SACd,OAAQ,OACR,SAAU,WACV,cAAeF,CACjB,CAAC,EAEKG,EAAcP,EAAOQ,EAAO,CAChC,GAAI,cACJ,aAAc,SACd,QAAS,QACT,KAAM,KACN,UAAW,CACT,GAAI,cACN,EACA,UAAW,CACT,QAAS,wBACT,cAAe,KACjB,EACA,cAAeJ,CACjB,CAAC,EASYK,EAAqBC,EAAM,WACtC,CACE,CACE,MAAAC,EACA,aAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,MAAAC,EAAQ,QACR,IAAAC,EACA,SAAAC,KACGC,CACL,EACAC,IACG,CACH,MAAMC,EAAST,GAASC,EACxB,OACEF,EAAA,cAACW,EAAA,CAAW,IAAKL,CAAAA,EACfN,EAAA,cAACR,EAAA,CACC,MAAOa,EACP,aAAcH,EACd,MAAOD,EACP,IAAKE,EACL,IAAKC,EACL,IAAKK,EACJ,GAAGD,CAAAA,EAEJR,EAAA,cAACX,EAAA,KACCW,EAAA,cAACL,EAAA,IAAY,CACf,GACCe,GAAA,KAAA,OAAAA,EAAQ,SACPA,EAAO,IAAI,CAACE,EAAGC,IAAMb,EAAA,cAACH,EAAA,CAAY,IAAK,QAAQgB,GAAAA,CAAK,CAAE,CAC1D,EACCN,CACH,CAEJ,CACF,EAEAR,EAAO,MAAQe,EACff,EAAO,MAAQgB,EAEfhB,EAAO,YAAc"}
1
+ {"version":3,"file":"Slider.js","sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["import type { VariantProps } from '@atom-learning/stitches-react'\nimport { Range, Root, Thumb, Track } from '@radix-ui/react-slider'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nimport { SliderSteps } from './SliderSteps'\nimport { SliderValue } from './SliderValue'\n\nconst StyledTrack = styled(Track, {\n borderRadius: '$round',\n flexGrow: 1,\n position: 'relative',\n '&[data-orientation=\"horizontal\"]': { height: '$space$1' },\n '&[data-orientation=\"vertical\"]': { width: '$space$1' },\n variants: {\n theme: {\n light: { bg: '#fff' },\n tonal: { bg: '$grey600' }\n }\n }\n})\n\nconst StyledSlider = styled(Root, {\n alignItems: 'center',\n display: 'flex',\n position: 'relative',\n touchAction: 'none',\n userSelect: 'none',\n cursor: 'pointer',\n '&[data-orientation=\"horizontal\"]': {\n height: '$1'\n },\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$1'\n },\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n }\n})\n\nconst StyledRange = styled(Range, {\n bg: '$primary800',\n borderRadius: '$round',\n height: '100%',\n position: 'absolute',\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n }\n})\n\nconst StyledThumb = styled(Thumb, {\n bg: '$primary900',\n borderRadius: '$round',\n display: 'block',\n size: '$1',\n '&:hover': {\n bg: '$primary1000'\n },\n '&:focus': {\n outline: '2px solid $primary900',\n outlineOffset: '2px'\n },\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n }\n})\n\nexport type SliderProps = React.ComponentProps<typeof StyledSlider> &\n VariantProps<typeof StyledTrack>\n\ntype SliderType = React.ForwardRefExoticComponent<SliderProps> & {\n Value: typeof SliderValue\n Steps: typeof SliderSteps\n}\n\nexport const Slider: SliderType = React.forwardRef(\n (\n {\n value,\n defaultValue,\n min = 0,\n max = 100,\n theme = 'tonal',\n css,\n children,\n ...remainingProps\n },\n ref\n ) => {\n const values = value || defaultValue\n return (\n <CSSWrapper css={css}>\n <StyledSlider\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n ref={ref}\n {...remainingProps}\n >\n <StyledTrack theme={theme}>\n <StyledRange />\n </StyledTrack>\n {values?.length &&\n values.map((_, i) => <StyledThumb key={`thumb${i}`} />)}\n </StyledSlider>\n {children}\n </CSSWrapper>\n )\n }\n) as SliderType\n\nSlider.Value = SliderValue\nSlider.Steps = SliderSteps\n\nSlider.displayName = 'Slider'\n"],"names":["StyledTrack","styled","Track","StyledSlider","Root","StyledRange","Range","StyledThumb","Thumb","Slider","React","value","defaultValue","min","max","theme","css","children","remainingProps","ref","values","CSSWrapper","_","i","SliderValue","SliderSteps"],"mappings":"6bAUA,MAAMA,EAAcC,EAAOC,EAAO,CAChC,aAAc,SACd,SAAU,EACV,SAAU,WACV,mCAAoC,CAAE,OAAQ,UAAW,EACzD,iCAAkC,CAAE,MAAO,UAAW,EACtD,SAAU,CACR,MAAO,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