@atom-learning/components 2.51.0 → 2.53.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 (182) hide show
  1. package/CHANGELOG.md +7 -6
  2. package/dist/components/accordion/Accordion.d.ts +7 -0
  3. package/dist/components/accordion/AccordionContent.d.ts +7 -0
  4. package/dist/components/accordion/AccordionContent.js +1 -1
  5. package/dist/components/accordion/AccordionContent.js.map +1 -1
  6. package/dist/components/accordion/AccordionItem.d.ts +7 -0
  7. package/dist/components/accordion/AccordionTrigger.d.ts +7 -0
  8. package/dist/components/accordion/AccordionTrigger.js +1 -1
  9. package/dist/components/accordion/AccordionTrigger.js.map +1 -1
  10. package/dist/components/action-icon/ActionIcon.d.ts +7 -0
  11. package/dist/components/alert-dialog/AlertDialog.d.ts +7 -0
  12. package/dist/components/alert-dialog/AlertDialogContent.d.ts +7 -0
  13. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  14. package/dist/components/alert-dialog/AlertDialogContent.js.map +1 -1
  15. package/dist/components/avatar/Avatar.d.ts +14 -0
  16. package/dist/components/avatar/Avatar.js +1 -1
  17. package/dist/components/avatar/Avatar.js.map +1 -1
  18. package/dist/components/badge/Badge.d.ts +14 -0
  19. package/dist/components/banner/BannerContainer.d.ts +14 -0
  20. package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +14 -0
  21. package/dist/components/box/Box.d.ts +7 -0
  22. package/dist/components/button/Button.d.ts +7 -0
  23. package/dist/components/calendar/Day.d.ts +7 -0
  24. package/dist/components/carousel/Carousel.js +1 -1
  25. package/dist/components/carousel/Carousel.js.map +1 -1
  26. package/dist/components/carousel/CarouselPagination.d.ts +7 -0
  27. package/dist/components/carousel/CarouselSlide.d.ts +7 -0
  28. package/dist/components/carousel/CarouselSlider.d.ts +7 -0
  29. package/dist/components/checkbox/Checkbox.d.ts +7 -0
  30. package/dist/components/chip/Chip.d.ts +49 -0
  31. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +14 -0
  32. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +14 -0
  33. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
  34. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
  35. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +14 -0
  36. package/dist/components/combobox/Combobox.d.ts +7 -0
  37. package/dist/components/combobox/ComboboxInput.d.ts +7 -0
  38. package/dist/components/combobox/ComboboxInput.js +1 -1
  39. package/dist/components/combobox/ComboboxInput.js.map +1 -1
  40. package/dist/components/combobox/ComboboxList.d.ts +7 -0
  41. package/dist/components/combobox/ComboboxOption.d.ts +7 -0
  42. package/dist/components/combobox/ComboboxPopover.d.ts +7 -0
  43. package/dist/components/data-table/DataTableLoading.d.ts +7 -0
  44. package/dist/components/data-table/pagination/Pagination.d.ts +7 -0
  45. package/dist/components/dialog/Dialog.d.ts +7 -0
  46. package/dist/components/dialog/DialogBackground.d.ts +14 -0
  47. package/dist/components/dialog/DialogClose.d.ts +7 -0
  48. package/dist/components/dialog/DialogContent.d.ts +7 -0
  49. package/dist/components/dialog/DialogContent.js +1 -1
  50. package/dist/components/dialog/DialogContent.js.map +1 -1
  51. package/dist/components/divider/Divider.d.ts +7 -0
  52. package/dist/components/dropdown-menu/DropdownMenu.d.ts +7 -0
  53. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +7 -0
  54. package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
  55. package/dist/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
  56. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +7 -0
  57. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +7 -0
  58. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +7 -0
  59. package/dist/components/empty-state/EmptyState.d.ts +14 -0
  60. package/dist/components/empty-state/EmptyStateBody.d.ts +14 -0
  61. package/dist/components/empty-state/EmptyStateImage.d.ts +14 -0
  62. package/dist/components/empty-state/EmptyStateTitle.d.ts +7 -0
  63. package/dist/components/flex/Flex.d.ts +7 -0
  64. package/dist/components/form/Form.d.ts +7 -0
  65. package/dist/components/grid/Grid.d.ts +7 -0
  66. package/dist/components/grid/Grid.js +1 -1
  67. package/dist/components/grid/Grid.js.map +1 -1
  68. package/dist/components/heading/Heading.d.ts +7 -0
  69. package/dist/components/heading/Heading.js +1 -1
  70. package/dist/components/heading/Heading.js.map +1 -1
  71. package/dist/components/icon/Icon.d.ts +7 -0
  72. package/dist/components/image/Image.d.ts +7 -0
  73. package/dist/components/inline-message/InlineMessage.d.ts +14 -0
  74. package/dist/components/input/Input.d.ts +7 -0
  75. package/dist/components/label/Label.d.ts +7 -0
  76. package/dist/components/link/Link.d.ts +7 -0
  77. package/dist/components/list/List.d.ts +14 -0
  78. package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +7 -0
  79. package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +14 -0
  80. package/dist/components/notification-badge/NotificationBadge.d.ts +14 -0
  81. package/dist/components/popover/Popover.d.ts +7 -0
  82. package/dist/components/popover/PopoverContent.d.ts +7 -0
  83. package/dist/components/popover/PopoverContent.js +1 -1
  84. package/dist/components/popover/PopoverContent.js.map +1 -1
  85. package/dist/components/progress-bar/ProgressBar.d.ts +7 -0
  86. package/dist/components/radio-button/RadioButton.d.ts +7 -0
  87. package/dist/components/radio-button/RadioButtonGroup.d.ts +7 -0
  88. package/dist/components/radio-card/RadioCard.d.ts +7 -0
  89. package/dist/components/section-message/SectionMessage.d.ts +49 -0
  90. package/dist/components/select/Select.d.ts +7 -0
  91. package/dist/components/select/Select.js +1 -1
  92. package/dist/components/select/Select.js.map +1 -1
  93. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +7 -0
  94. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +7 -0
  95. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +7 -0
  96. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +7 -0
  97. package/dist/components/sidedrawer/SidedrawerContent.d.ts +7 -0
  98. package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
  99. package/dist/components/sidedrawer/SidedrawerContent.js.map +1 -1
  100. package/dist/components/sidedrawer/SidedrawerFooter.d.ts +7 -0
  101. package/dist/components/sidedrawer/SidedrawerHeader.d.ts +7 -0
  102. package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +7 -0
  103. package/dist/components/sidedrawer/SidedrawerOverlay.js +1 -1
  104. package/dist/components/sidedrawer/SidedrawerOverlay.js.map +1 -1
  105. package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +7 -0
  106. package/dist/components/slider/Slider.d.ts +7 -0
  107. package/dist/components/slider/Slider.js +1 -1
  108. package/dist/components/slider/Slider.js.map +1 -1
  109. package/dist/components/sortable/Handle.d.ts +14 -0
  110. package/dist/components/stack/Stack.d.ts +7 -0
  111. package/dist/components/stack/Stack.js +1 -1
  112. package/dist/components/stack/Stack.js.map +1 -1
  113. package/dist/components/stack-content/StackContent.d.ts +7 -0
  114. package/dist/components/stepper/StepperStepBullet.d.ts +14 -0
  115. package/dist/components/stepper/StepperStepContainer.d.ts +14 -0
  116. package/dist/components/stepper/StepperStepLabel.d.ts +14 -0
  117. package/dist/components/switch/Switch.d.ts +7 -0
  118. package/dist/components/table/Table.d.ts +7 -0
  119. package/dist/components/table/TableBody.d.ts +7 -0
  120. package/dist/components/table/TableCell.d.ts +7 -0
  121. package/dist/components/table/TableFooter.d.ts +7 -0
  122. package/dist/components/table/TableFooterCell.d.ts +7 -0
  123. package/dist/components/table/TableHeader.d.ts +7 -0
  124. package/dist/components/table/TableHeaderCell.d.ts +7 -0
  125. package/dist/components/table/TableRow.d.ts +14 -0
  126. package/dist/components/tabs/Tabs.d.ts +7 -0
  127. package/dist/components/tabs/TabsContent.d.ts +7 -0
  128. package/dist/components/tabs/TabsTrigger.d.ts +7 -0
  129. package/dist/components/tabs/TabsTrigger.js +1 -1
  130. package/dist/components/tabs/TabsTrigger.js.map +1 -1
  131. package/dist/components/tabs/TabsTriggerList.d.ts +7 -0
  132. package/dist/components/text/Text.d.ts +8 -1
  133. package/dist/components/text/Text.js +1 -1
  134. package/dist/components/text/Text.js.map +1 -1
  135. package/dist/components/textarea/Textarea.d.ts +7 -0
  136. package/dist/components/tile/Tile.d.ts +7 -0
  137. package/dist/components/tile/TileGroup.d.ts +7 -0
  138. package/dist/components/tile/index.d.ts +1 -6
  139. package/dist/components/tile-interactive/TileInteractive.d.ts +15 -427
  140. package/dist/components/tile-interactive/TileInteractive.js +1 -1
  141. package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
  142. package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +21 -0
  143. package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +14 -0
  144. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +1 -1
  145. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -1
  146. package/dist/components/toast/Toast.d.ts +7 -0
  147. package/dist/components/toggle-group/ToggleGroupButton.d.ts +14 -0
  148. package/dist/components/toggle-group/ToggleGroupItem.d.ts +14 -0
  149. package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
  150. package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
  151. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +7 -0
  152. package/dist/components/toggle-group/index.d.ts +35 -0
  153. package/dist/components/tooltip/TooltipContent.d.ts +7 -0
  154. package/dist/components/tooltip/TooltipContent.js +1 -1
  155. package/dist/components/tooltip/TooltipContent.js.map +1 -1
  156. package/dist/components/top-bar/TopBar.d.ts +7 -0
  157. package/dist/components/top-bar/TopBarBrand.d.ts +21 -0
  158. package/dist/components/video/Video.d.ts +14 -0
  159. package/dist/docgen.json +1 -1
  160. package/dist/experiments/color-scheme/ColorScheme.d.ts +7 -0
  161. package/dist/index.cjs.js +1 -1
  162. package/dist/index.cjs.js.map +1 -1
  163. package/dist/index.d.ts +1 -1
  164. package/dist/index.js +1 -1
  165. package/dist/stitches.d.ts +77 -0
  166. package/dist/stitches.js +1 -1
  167. package/dist/stitches.js.map +1 -1
  168. package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +7 -0
  169. package/dist/utilities/index.d.ts +1 -0
  170. package/dist/{components/tile/TileNoOverflowContainer.d.ts → utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts} +20 -1
  171. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js +2 -0
  172. package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js.map +1 -0
  173. package/dist/utilities/no-overflow-wrapper/index.d.ts +1 -0
  174. package/package.json +4 -4
  175. package/dist/components/tile/TileNoOverflowContainer.js +0 -2
  176. package/dist/components/tile/TileNoOverflowContainer.js.map +0 -1
  177. package/dist/components/tile/index.js +0 -2
  178. package/dist/components/tile/index.js.map +0 -1
  179. package/dist/utilities/no-overflow-container/NoOverflowContainer.d.ts +0 -425
  180. package/dist/utilities/no-overflow-container/NoOverflowContainer.js +0 -2
  181. package/dist/utilities/no-overflow-container/NoOverflowContainer.js.map +0 -1
  182. package/dist/utilities/no-overflow-container/index.d.ts +0 -1
@@ -160,6 +160,13 @@ declare const GridContainer: import("@stitches/react/types/styled-component").St
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import*as p from"react";import{styled as o}from"../../stitches.js";import{createThemeVariants as s}from"../../utilities/create-theme-variants/createThemeVariants.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const n=o("div",{display:"grid",variants:{gap:s("space",{gap:"$key"})}}),e=({css:a,gap:i=2,minItemSize:t,maxItemSize:m="1fr",...r})=>p.createElement(n,{css:{...t&&{gridTemplateColumns:`repeat(auto-fit, minmax(${t}, ${m}))`},...a},gap:i,...r});e.displayName="Grid";export{e as Grid};
1
+ import*as p from"react";import{styled as o}from"../../stitches.js";import{createThemeVariants as s}from"../../utilities/create-theme-variants/createThemeVariants.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const n=o("div",{display:"grid",variants:{gap:s("space",{gap:"$key"})}}),e=({css:i,gap:m=2,minItemSize:t,maxItemSize:a="1fr",...r})=>p.createElement(n,{css:{...t&&{gridTemplateColumns:`repeat(auto-fit, minmax(${t}, ${a}))`},...i},gap:m,...r});e.displayName="Grid";export{e as Grid};
2
2
  //# sourceMappingURL=Grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.js","sources":["../../../src/components/grid/Grid.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { createThemeVariants } from '~/utilities'\n\nconst GridContainer = styled('div', {\n display: 'grid',\n variants: {\n gap: createThemeVariants('space', { gap: '$key' })\n }\n})\n\ntype GridProps = React.ComponentProps<typeof GridContainer> & {\n minItemSize?: string\n maxItemSize?: string\n} & {\n css?: CSS\n as?: any\n} // (!) `css` and `as` are both props that come from `stitches`. It would be better to figure out and export the appropriate type for them in stitches!\n\nexport const Grid: React.FC<GridProps> = ({\n css,\n gap = 2,\n minItemSize,\n maxItemSize = '1fr',\n ...remainingProps\n}) => (\n <GridContainer\n css={{\n ...(minItemSize && {\n gridTemplateColumns: `repeat(auto-fit, minmax(${minItemSize}, ${maxItemSize}))`\n }),\n ...(css as any)\n }}\n gap={gap}\n {...remainingProps}\n />\n)\n\nGrid.displayName = 'Grid'\n"],"names":["GridContainer","styled","createThemeVariants","Grid","css","gap","minItemSize","maxItemSize","remainingProps","React"],"mappings":"6RAKA,MAAMA,EAAgBC,EAAO,MAAO,CAClC,QAAS,OACT,SAAU,CACR,IAAKC,EAAoB,QAAS,CAAE,IAAK,MAAO,CAAC,CACnD,CACF,CAAC,EAUYC,EAA4B,CAAC,CACxC,IAAAC,EACA,IAAAC,EAAM,EACN,YAAAC,EACA,YAAAC,EAAc,SACXC,CACL,IACEC,EAAA,cAACT,EAAA,CACC,IAAK,CACH,GAAIM,GAAe,CACjB,oBAAqB,2BAA2BA,MAAgBC,KAClE,EACA,GAAIH,CACN,EACA,IAAKC,EACJ,GAAGG,CACN,CAAA,EAGFL,EAAK,YAAc"}
1
+ {"version":3,"file":"Grid.js","sources":["../../../src/components/grid/Grid.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { createThemeVariants } from '~/utilities'\n\nconst GridContainer = styled('div', {\n display: 'grid',\n variants: {\n gap: createThemeVariants('space', { gap: '$key' })\n }\n})\n\ntype GridProps = React.ComponentProps<typeof GridContainer> & {\n minItemSize?: string\n maxItemSize?: string\n} & {\n css?: CSS\n as?: any\n} // (!) `css` and `as` are both props that come from `stitches`. It would be better to figure out and export the appropriate type for them in stitches!\n\nexport const Grid: React.FC<GridProps> = ({\n css,\n gap = 2,\n minItemSize,\n maxItemSize = '1fr',\n ...remainingProps\n}) => (\n <GridContainer\n css={{\n ...(minItemSize && {\n gridTemplateColumns: `repeat(auto-fit, minmax(${minItemSize}, ${maxItemSize}))`\n }),\n ...(css as any)\n }}\n gap={gap}\n {...remainingProps}\n />\n)\n\nGrid.displayName = 'Grid'\n"],"names":["GridContainer","styled","createThemeVariants","Grid","css","gap","minItemSize","maxItemSize","remainingProps","React"],"mappings":"8VAKA,MAAMA,EAAgBC,EAAO,MAAO,CAClC,QAAS,OACT,SAAU,CACR,IAAKC,EAAoB,QAAS,CAAE,IAAK,MAAO,CAAC,CACnD,CACF,CAAC,EAUYC,EAA4B,CAAC,CACxC,IAAAC,EACA,IAAAC,EAAM,EACN,YAAAC,EACA,YAAAC,EAAc,SACXC,CACL,IACEC,EAAA,cAACT,EAAA,CACC,IAAK,CACH,GAAIM,GAAe,CACjB,oBAAqB,2BAA2BA,MAAgBC,KAClE,EACA,GAAIH,CACN,EACA,IAAKC,EACJ,GAAGG,CACN,CAAA,EAGFL,EAAK,YAAc"}
@@ -161,6 +161,13 @@ export declare const StyledHeading: import("@stitches/react/types/styled-compone
161
161
  "2": any;
162
162
  "3": any;
163
163
  };
164
+ ratios: {
165
+ "16-9": any;
166
+ "3-2": any;
167
+ "4-3": any;
168
+ "1-1": any;
169
+ "3-4": any;
170
+ };
164
171
  }, import("@stitches/react/types/config").DefaultThemeMap, {
165
172
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
166
173
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import*as i from"react";import{styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import{capsize as e}from"../../utilities/style/capsize.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const t=r("h2",{fontFamily:"$display",fontWeight:700,m:0,variants:{size:{xs:{fontFamily:"$body",fontWeight:600,fontSize:"$md",lineHeight:1.5,...e(.3864)},sm:{fontSize:"$lg",lineHeight:1.14,...e(.2174,.2254)},md:{fontSize:"$xl",lineHeight:1.14,...e(.2174,.2254)},lg:{fontSize:"$2xl",lineHeight:1.08,...e(.1865,.1945)},xl:{fontSize:"$3xl",lineHeight:1.12,...e(.206,.214)},xxl:{fontSize:"$4xl",lineHeight:1.06,...e(.1793,.1873)}},noCapsize:{true:{"&::before, &::after":{display:"none !important"}}}}}),o=i.forwardRef(({size:n="md",...l},m)=>i.createElement(t,{ref:m,size:n,...l}));o.displayName="Heading";export{o as Heading,t as StyledHeading};
1
+ import*as i from"react";import{styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{capsize as e}from"../../utilities/style/capsize.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const t=r("h2",{fontFamily:"$display",fontWeight:700,m:0,variants:{size:{xs:{fontFamily:"$body",fontWeight:600,fontSize:"$md",lineHeight:1.5,...e(.3864)},sm:{fontSize:"$lg",lineHeight:1.14,...e(.2174,.2254)},md:{fontSize:"$xl",lineHeight:1.14,...e(.2174,.2254)},lg:{fontSize:"$2xl",lineHeight:1.08,...e(.1865,.1945)},xl:{fontSize:"$3xl",lineHeight:1.12,...e(.206,.214)},xxl:{fontSize:"$4xl",lineHeight:1.06,...e(.1793,.1873)}},noCapsize:{true:{"&::before, &::after":{display:"none !important"}}}}}),o=i.forwardRef(({size:n="md",...l},m)=>i.createElement(t,{ref:m,size:n,...l}));o.displayName="Heading";export{o as Heading,t as StyledHeading};
2
2
  //# sourceMappingURL=Heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sources":["../../../src/components/heading/Heading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const StyledHeading = styled('h2', {\n fontFamily: '$display',\n fontWeight: 700,\n m: 0,\n variants: {\n size: {\n xs: {\n fontFamily: '$body',\n fontWeight: 600,\n fontSize: '$md',\n lineHeight: 1.5,\n ...capsize(0.3864)\n },\n sm: {\n fontSize: '$lg',\n lineHeight: 1.14,\n ...capsize(0.2174, 0.2254)\n },\n md: {\n fontSize: '$xl',\n lineHeight: 1.14,\n ...capsize(0.2174, 0.2254)\n },\n lg: {\n fontSize: '$2xl',\n lineHeight: 1.08,\n ...capsize(0.1865, 0.1945)\n },\n xl: {\n fontSize: '$3xl',\n lineHeight: 1.12,\n ...capsize(0.206, 0.214)\n },\n xxl: {\n fontSize: '$4xl',\n lineHeight: 1.06,\n ...capsize(0.1793, 0.1873)\n }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }\n }\n})\n\nexport type HeadingProps = Override<\n React.ComponentPropsWithoutRef<typeof StyledHeading>,\n {\n as?:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | React.ComponentType\n | React.ElementType\n }\n>\n\nexport const Heading: React.ForwardRefExoticComponent<HeadingProps> =\n React.forwardRef(({ size = 'md', ...remainingProps }, ref) => (\n <StyledHeading ref={ref} size={size} {...remainingProps} />\n ))\n\nHeading.displayName = 'Heading'\n"],"names":["StyledHeading","styled","capsize","Heading","React","size","remainingProps","ref"],"mappings":"qPAMa,MAAAA,EAAgBC,EAAO,KAAM,CACxC,WAAY,WACZ,WAAY,IACZ,EAAG,EACH,SAAU,CACR,KAAM,CACJ,GAAI,CACF,WAAY,QACZ,WAAY,IACZ,SAAU,MACV,WAAY,IACZ,GAAGC,EAAQ,KAAM,CACnB,EACA,GAAI,CACF,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,KAAO,IAAK,CACzB,EACA,IAAK,CACH,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,CACF,EACA,UAAW,CACT,KAAM,CACJ,sBAAuB,CAAE,QAAS,iBAAkB,CACtD,CACF,CACF,CACF,CAAC,EAiBYC,EACXC,EAAM,WAAW,CAAC,CAAE,KAAAC,EAAO,QAASC,CAAe,EAAGC,IACpDH,EAAA,cAACJ,GAAc,IAAKO,EAAK,KAAMF,EAAO,GAAGC,CAAAA,CAAgB,CAC1D,EAEHH,EAAQ,YAAc"}
1
+ {"version":3,"file":"Heading.js","sources":["../../../src/components/heading/Heading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const StyledHeading = styled('h2', {\n fontFamily: '$display',\n fontWeight: 700,\n m: 0,\n variants: {\n size: {\n xs: {\n fontFamily: '$body',\n fontWeight: 600,\n fontSize: '$md',\n lineHeight: 1.5,\n ...capsize(0.3864)\n },\n sm: {\n fontSize: '$lg',\n lineHeight: 1.14,\n ...capsize(0.2174, 0.2254)\n },\n md: {\n fontSize: '$xl',\n lineHeight: 1.14,\n ...capsize(0.2174, 0.2254)\n },\n lg: {\n fontSize: '$2xl',\n lineHeight: 1.08,\n ...capsize(0.1865, 0.1945)\n },\n xl: {\n fontSize: '$3xl',\n lineHeight: 1.12,\n ...capsize(0.206, 0.214)\n },\n xxl: {\n fontSize: '$4xl',\n lineHeight: 1.06,\n ...capsize(0.1793, 0.1873)\n }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }\n }\n})\n\nexport type HeadingProps = Override<\n React.ComponentPropsWithoutRef<typeof StyledHeading>,\n {\n as?:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | React.ComponentType\n | React.ElementType\n }\n>\n\nexport const Heading: React.ForwardRefExoticComponent<HeadingProps> =\n React.forwardRef(({ size = 'md', ...remainingProps }, ref) => (\n <StyledHeading ref={ref} size={size} {...remainingProps} />\n ))\n\nHeading.displayName = 'Heading'\n"],"names":["StyledHeading","styled","capsize","Heading","React","size","remainingProps","ref"],"mappings":"sTAMa,MAAAA,EAAgBC,EAAO,KAAM,CACxC,WAAY,WACZ,WAAY,IACZ,EAAG,EACH,SAAU,CACR,KAAM,CACJ,GAAI,CACF,WAAY,QACZ,WAAY,IACZ,SAAU,MACV,WAAY,IACZ,GAAGC,EAAQ,KAAM,CACnB,EACA,GAAI,CACF,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,MACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,EACA,GAAI,CACF,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,KAAO,IAAK,CACzB,EACA,IAAK,CACH,SAAU,OACV,WAAY,KACZ,GAAGA,EAAQ,MAAQ,KAAM,CAC3B,CACF,EACA,UAAW,CACT,KAAM,CACJ,sBAAuB,CAAE,QAAS,iBAAkB,CACtD,CACF,CACF,CACF,CAAC,EAiBYC,EACXC,EAAM,WAAW,CAAC,CAAE,KAAAC,EAAO,QAASC,CAAe,EAAGC,IACpDH,EAAA,cAACJ,GAAc,IAAKO,EAAK,KAAMF,EAAO,GAAGC,CAAAA,CAAgB,CAC1D,EAEHH,EAAQ,YAAc"}
@@ -160,6 +160,13 @@ export declare const StyledIcon: import("@stitches/react/types/styled-component"
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -160,6 +160,13 @@ export declare const StyledImage: import("@stitches/react/types/styled-component
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -158,6 +158,13 @@ declare const InlineMessageContainer: import("@stitches/react/types/styled-compo
158
158
  "2": any;
159
159
  "3": any;
160
160
  };
161
+ ratios: {
162
+ "16-9": any;
163
+ "3-2": any;
164
+ "4-3": any;
165
+ "1-1": any;
166
+ "3-4": any;
167
+ };
161
168
  }, import("@stitches/react/types/config").DefaultThemeMap, {
162
169
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
163
170
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -372,6 +379,13 @@ declare const InlineMessageContainer: import("@stitches/react/types/styled-compo
372
379
  "2": any;
373
380
  "3": any;
374
381
  };
382
+ ratios: {
383
+ "16-9": any;
384
+ "3-2": any;
385
+ "4-3": any;
386
+ "1-1": any;
387
+ "3-4": any;
388
+ };
375
389
  }, import("@stitches/react/types/config").DefaultThemeMap, {
376
390
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
377
391
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -161,6 +161,13 @@ declare const StyledInput: import("@stitches/react/types/styled-component").Styl
161
161
  "2": any;
162
162
  "3": any;
163
163
  };
164
+ ratios: {
165
+ "16-9": any;
166
+ "3-2": any;
167
+ "4-3": any;
168
+ "1-1": any;
169
+ "3-4": any;
170
+ };
164
171
  }, import("@stitches/react/types/config").DefaultThemeMap, {
165
172
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
166
173
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -163,6 +163,13 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
163
163
  "2": any;
164
164
  "3": any;
165
165
  };
166
+ ratios: {
167
+ "16-9": any;
168
+ "3-2": any;
169
+ "4-3": any;
170
+ "1-1": any;
171
+ "3-4": any;
172
+ };
166
173
  }, import("@stitches/react/types/config").DefaultThemeMap, {
167
174
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
168
175
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -162,6 +162,13 @@ export declare const StyledLink: import("@stitches/react/types/styled-component"
162
162
  "2": any;
163
163
  "3": any;
164
164
  };
165
+ ratios: {
166
+ "16-9": any;
167
+ "3-2": any;
168
+ "4-3": any;
169
+ "1-1": any;
170
+ "3-4": any;
171
+ };
165
172
  }, import("@stitches/react/types/config").DefaultThemeMap, {
166
173
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
167
174
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -157,6 +157,13 @@ export declare const StyledLi: import("@stitches/react/types/styled-component").
157
157
  "2": any;
158
158
  "3": any;
159
159
  };
160
+ ratios: {
161
+ "16-9": any;
162
+ "3-2": any;
163
+ "4-3": any;
164
+ "1-1": any;
165
+ "3-4": any;
166
+ };
160
167
  }, import("@stitches/react/types/config").DefaultThemeMap, {
161
168
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
162
169
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -375,6 +382,13 @@ export declare const StyledList: import("@stitches/react/types/styled-component"
375
382
  "2": any;
376
383
  "3": any;
377
384
  };
385
+ ratios: {
386
+ "16-9": any;
387
+ "3-2": any;
388
+ "4-3": any;
389
+ "1-1": any;
390
+ "3-4": any;
391
+ };
378
392
  }, import("@stitches/react/types/config").DefaultThemeMap, {
379
393
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
380
394
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -162,6 +162,13 @@ export declare const StyledMarkdownEmphasis: import("@stitches/react/types/style
162
162
  "2": any;
163
163
  "3": any;
164
164
  };
165
+ ratios: {
166
+ "16-9": any;
167
+ "3-2": any;
168
+ "4-3": any;
169
+ "1-1": any;
170
+ "3-4": any;
171
+ };
165
172
  }, import("@stitches/react/types/config").DefaultThemeMap, {
166
173
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
167
174
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -178,6 +178,13 @@ export declare const NavigationMenuDropdownItemTitle: import("@stitches/react/ty
178
178
  "2": any;
179
179
  "3": any;
180
180
  };
181
+ ratios: {
182
+ "16-9": any;
183
+ "3-2": any;
184
+ "4-3": any;
185
+ "1-1": any;
186
+ "3-4": any;
187
+ };
181
188
  }, import("@stitches/react/types/config").DefaultThemeMap, {
182
189
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
183
190
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -393,6 +400,13 @@ export declare const NavigationMenuDropdownItemTitle: import("@stitches/react/ty
393
400
  "2": any;
394
401
  "3": any;
395
402
  };
403
+ ratios: {
404
+ "16-9": any;
405
+ "3-2": any;
406
+ "4-3": any;
407
+ "1-1": any;
408
+ "3-4": any;
409
+ };
396
410
  }, import("@stitches/react/types/config").DefaultThemeMap, {
397
411
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
398
412
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -157,6 +157,13 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
157
157
  "2": any;
158
158
  "3": any;
159
159
  };
160
+ ratios: {
161
+ "16-9": any;
162
+ "3-2": any;
163
+ "4-3": any;
164
+ "1-1": any;
165
+ "3-4": any;
166
+ };
160
167
  }, import("@stitches/react/types/config").DefaultThemeMap, {
161
168
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
162
169
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -369,6 +376,13 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
369
376
  "2": any;
370
377
  "3": any;
371
378
  };
379
+ ratios: {
380
+ "16-9": any;
381
+ "3-2": any;
382
+ "4-3": any;
383
+ "1-1": any;
384
+ "3-4": any;
385
+ };
372
386
  }, import("@stitches/react/types/config").DefaultThemeMap, {
373
387
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
374
388
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -159,6 +159,13 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
159
159
  "2": any;
160
160
  "3": any;
161
161
  };
162
+ ratios: {
163
+ "16-9": any;
164
+ "3-2": any;
165
+ "4-3": any;
166
+ "1-1": any;
167
+ "3-4": any;
168
+ };
162
169
  }, import("@stitches/react/types/config").DefaultThemeMap, {
163
170
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
164
171
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -160,6 +160,13 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as e from"react";import{POPOVER_Z_INDEX as c}from"../../constants/zIndices.js";import{styled as t}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{slideDownAndFade as f,slideLeftAndFade as x,slideUpAndFade as $,slideRightAndFade as g}from"../../utilities/style/keyframe-animations.js";import{ActionIcon as w}from"../action-icon/ActionIcon.js";import{Icon as z}from"../icon/Icon.js";const b=t(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative",zIndex:c,"@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:f},'&[data-side="right"]':{animationName:x},'&[data-side="bottom"]':{animationName:$},'&[data-side="left"]':{animationName:g}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),C=t(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=({children:i,side:o="top",sideOffset:a=8,closePopoverText:s="Close popover",showCloseButton:n=!0,size:m="md",...d})=>e.createElement(b,{size:m,side:o,sideOffset:a,...d},n&&e.createElement(w,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:s,size:"md",hasTooltip:!1,theme:"neutral"},e.createElement(z,{is:r})),i,e.createElement(C,{width:16,height:8}));export{u as PopoverContent};
1
+ import{Close as d}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as t from"react";import{POPOVER_Z_INDEX as c}from"../../constants/zIndices.js";import{styled as e}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{slideDownAndFade as f,slideLeftAndFade as x,slideUpAndFade as $,slideRightAndFade as g}from"../../utilities/style/keyframe-animations.js";import{ActionIcon as w}from"../action-icon/ActionIcon.js";import{Icon as z}from"../icon/Icon.js";const b=e(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative",zIndex:c,"@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:f},'&[data-side="right"]':{animationName:x},'&[data-side="bottom"]':{animationName:$},'&[data-side="left"]':{animationName:g}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),C=e(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=({children:i,side:o="top",sideOffset:a=8,closePopoverText:s="Close popover",showCloseButton:n=!0,size:m="md",...r})=>t.createElement(b,{size:m,side:o,sideOffset:a,...r},n&&t.createElement(w,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:s,size:"md",hasTooltip:!1,theme:"neutral"},t.createElement(z,{is:d})),i,t.createElement(C,{width:16,height:8}));export{u as PopoverContent};
2
2
  //# sourceMappingURL=PopoverContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverContent.js","sources":["../../../src/components/popover/PopoverContent.tsx"],"sourcesContent":["import { Close as CloseIcon } from '@atom-learning/icons'\nimport { Arrow, Close, Content } from '@radix-ui/react-popover'\nimport * as React from 'react'\n\nimport { POPOVER_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport {\n slideDownAndFade,\n slideLeftAndFade,\n slideRightAndFade,\n slideUpAndFade\n} from '~/utilities'\n\nimport { ActionIcon } from '../action-icon/ActionIcon'\nimport { Icon } from '../icon/Icon'\n\nconst StyledContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$2',\n maxWidth: '90vw',\n p: '$sizes$2',\n pr: '$6',\n position: 'relative',\n zIndex: POPOVER_Z_INDEX,\n '@allowMotion': {\n animationDuration: '75ms',\n animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n willChange: 'transform, opacity',\n '&[data-state=\"open\"]': {\n '&[data-side=\"top\"]': { animationName: slideDownAndFade },\n '&[data-side=\"right\"]': { animationName: slideLeftAndFade },\n '&[data-side=\"bottom\"]': { animationName: slideUpAndFade },\n '&[data-side=\"left\"]': { animationName: slideRightAndFade }\n }\n },\n variants: {\n size: {\n sm: { maxWidth: '200px' },\n md: { maxWidth: '400px' },\n lg: { maxWidth: '600px' }\n }\n }\n})\n\nconst StyledArrow = styled(Arrow, {\n fill: 'white',\n zIndex: 1,\n '[data-align=\"end\"] &': { mr: '$sizes$2' },\n '[data-align=\"start\"] &': { ml: '$sizes$2' }\n})\n\ntype PopoverContentProps = React.ComponentProps<typeof StyledContent> &\n React.ComponentProps<typeof Content> & {\n closePopoverText?: string\n showCloseButton?: boolean\n }\n\nexport const PopoverContent: React.FC<PopoverContentProps> = ({\n children,\n side = 'top',\n sideOffset = 8,\n closePopoverText = 'Close popover',\n showCloseButton = true,\n size = 'md',\n ...remainingProps\n}) => (\n <StyledContent\n size={size}\n side={side}\n sideOffset={sideOffset}\n {...remainingProps}\n >\n {showCloseButton && (\n <ActionIcon\n as={Close}\n css={{ position: 'absolute', right: '$0', top: '$0' }}\n label={closePopoverText}\n size=\"md\"\n hasTooltip={false}\n theme=\"neutral\"\n >\n <Icon is={CloseIcon} />\n </ActionIcon>\n )}\n {children}\n <StyledArrow width={16} height={8} />\n </StyledContent>\n)\n"],"names":["StyledContent","styled","Content","POPOVER_Z_INDEX","slideDownAndFade","slideLeftAndFade","slideUpAndFade","slideRightAndFade","StyledArrow","Arrow","PopoverContent","children","side","sideOffset","closePopoverText","showCloseButton","size","remainingProps","React","ActionIcon","Close","Icon","CloseIcon"],"mappings":"0iBAgBA,MAAMA,EAAgBC,EAAOC,EAAS,CACpC,GAAI,QACJ,aAAc,KACd,UAAW,KACX,SAAU,OACV,EAAG,WACH,GAAI,KACJ,SAAU,WACV,OAAQC,EACR,eAAgB,CACd,kBAAmB,OACnB,wBAAyB,gCACzB,WAAY,qBACZ,uBAAwB,CACtB,qBAAsB,CAAE,cAAeC,CAAiB,EACxD,uBAAwB,CAAE,cAAeC,CAAiB,EAC1D,wBAAyB,CAAE,cAAeC,CAAe,EACzD,sBAAuB,CAAE,cAAeC,CAAkB,CAC5D,CACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,SAAU,OAAQ,EACxB,GAAI,CAAE,SAAU,OAAQ,EACxB,GAAI,CAAE,SAAU,OAAQ,CAC1B,CACF,CACF,CAAC,EAEKC,EAAcP,EAAOQ,EAAO,CAChC,KAAM,QACN,OAAQ,EACR,uBAAwB,CAAE,GAAI,UAAW,EACzC,yBAA0B,CAAE,GAAI,UAAW,CAC7C,CAAC,EAQYC,EAAgD,CAAC,CAC5D,SAAAC,EACA,KAAAC,EAAO,MACP,WAAAC,EAAa,EACb,iBAAAC,EAAmB,gBACnB,gBAAAC,EAAkB,GAClB,KAAAC,EAAO,QACJC,CACL,IACEC,EAAA,cAAClB,EAAA,CACC,KAAMgB,EACN,KAAMJ,EACN,WAAYC,EACX,GAAGI,CAAAA,EAEHF,GACCG,EAAA,cAACC,EAAA,CACC,GAAIC,EACJ,IAAK,CAAE,SAAU,WAAY,MAAO,KAAM,IAAK,IAAK,EACpD,MAAON,EACP,KAAK,KACL,WAAY,GACZ,MAAM,SAENI,EAAAA,EAAA,cAACG,EAAA,CAAK,GAAIC,EAAW,CACvB,EAEDX,EACDO,EAAA,cAACV,EAAA,CAAY,MAAO,GAAI,OAAQ,CAAA,CAAG,CACrC"}
1
+ {"version":3,"file":"PopoverContent.js","sources":["../../../src/components/popover/PopoverContent.tsx"],"sourcesContent":["import { Close as CloseIcon } from '@atom-learning/icons'\nimport { Arrow, Close, Content } from '@radix-ui/react-popover'\nimport * as React from 'react'\n\nimport { POPOVER_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport {\n slideDownAndFade,\n slideLeftAndFade,\n slideRightAndFade,\n slideUpAndFade\n} from '~/utilities'\n\nimport { ActionIcon } from '../action-icon/ActionIcon'\nimport { Icon } from '../icon/Icon'\n\nconst StyledContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$2',\n maxWidth: '90vw',\n p: '$sizes$2',\n pr: '$6',\n position: 'relative',\n zIndex: POPOVER_Z_INDEX,\n '@allowMotion': {\n animationDuration: '75ms',\n animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',\n willChange: 'transform, opacity',\n '&[data-state=\"open\"]': {\n '&[data-side=\"top\"]': { animationName: slideDownAndFade },\n '&[data-side=\"right\"]': { animationName: slideLeftAndFade },\n '&[data-side=\"bottom\"]': { animationName: slideUpAndFade },\n '&[data-side=\"left\"]': { animationName: slideRightAndFade }\n }\n },\n variants: {\n size: {\n sm: { maxWidth: '200px' },\n md: { maxWidth: '400px' },\n lg: { maxWidth: '600px' }\n }\n }\n})\n\nconst StyledArrow = styled(Arrow, {\n fill: 'white',\n zIndex: 1,\n '[data-align=\"end\"] &': { mr: '$sizes$2' },\n '[data-align=\"start\"] &': { ml: '$sizes$2' }\n})\n\ntype PopoverContentProps = React.ComponentProps<typeof StyledContent> &\n React.ComponentProps<typeof Content> & {\n closePopoverText?: string\n showCloseButton?: boolean\n }\n\nexport const PopoverContent: React.FC<PopoverContentProps> = ({\n children,\n side = 'top',\n sideOffset = 8,\n closePopoverText = 'Close popover',\n showCloseButton = true,\n size = 'md',\n ...remainingProps\n}) => (\n <StyledContent\n size={size}\n side={side}\n sideOffset={sideOffset}\n {...remainingProps}\n >\n {showCloseButton && (\n <ActionIcon\n as={Close}\n css={{ position: 'absolute', right: '$0', top: '$0' }}\n label={closePopoverText}\n size=\"md\"\n hasTooltip={false}\n theme=\"neutral\"\n >\n <Icon is={CloseIcon} />\n </ActionIcon>\n )}\n {children}\n <StyledArrow width={16} height={8} />\n </StyledContent>\n)\n"],"names":["StyledContent","styled","Content","POPOVER_Z_INDEX","slideDownAndFade","slideLeftAndFade","slideUpAndFade","slideRightAndFade","StyledArrow","Arrow","PopoverContent","children","side","sideOffset","closePopoverText","showCloseButton","size","remainingProps","React","ActionIcon","Close","Icon","CloseIcon"],"mappings":"2mBAgBA,MAAMA,EAAgBC,EAAOC,EAAS,CACpC,GAAI,QACJ,aAAc,KACd,UAAW,KACX,SAAU,OACV,EAAG,WACH,GAAI,KACJ,SAAU,WACV,OAAQC,EACR,eAAgB,CACd,kBAAmB,OACnB,wBAAyB,gCACzB,WAAY,qBACZ,uBAAwB,CACtB,qBAAsB,CAAE,cAAeC,CAAiB,EACxD,uBAAwB,CAAE,cAAeC,CAAiB,EAC1D,wBAAyB,CAAE,cAAeC,CAAe,EACzD,sBAAuB,CAAE,cAAeC,CAAkB,CAC5D,CACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,SAAU,OAAQ,EACxB,GAAI,CAAE,SAAU,OAAQ,EACxB,GAAI,CAAE,SAAU,OAAQ,CAC1B,CACF,CACF,CAAC,EAEKC,EAAcP,EAAOQ,EAAO,CAChC,KAAM,QACN,OAAQ,EACR,uBAAwB,CAAE,GAAI,UAAW,EACzC,yBAA0B,CAAE,GAAI,UAAW,CAC7C,CAAC,EAQYC,EAAgD,CAAC,CAC5D,SAAAC,EACA,KAAAC,EAAO,MACP,WAAAC,EAAa,EACb,iBAAAC,EAAmB,gBACnB,gBAAAC,EAAkB,GAClB,KAAAC,EAAO,QACJC,CACL,IACEC,EAAA,cAAClB,EAAA,CACC,KAAMgB,EACN,KAAMJ,EACN,WAAYC,EACX,GAAGI,CAAAA,EAEHF,GACCG,EAAA,cAACC,EAAA,CACC,GAAIC,EACJ,IAAK,CAAE,SAAU,WAAY,MAAO,KAAM,IAAK,IAAK,EACpD,MAAON,EACP,KAAK,KACL,WAAY,GACZ,MAAM,SAENI,EAAAA,EAAA,cAACG,EAAA,CAAK,GAAIC,EAAW,CACvB,EAEDX,EACDO,EAAA,cAACV,EAAA,CAAY,MAAO,GAAI,OAAQ,CAAA,CAAG,CACrC"}
@@ -160,6 +160,13 @@ declare const StyledProgressBar: import("@stitches/react/types/styled-component"
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -159,6 +159,13 @@ declare const StyledRadioButton: import("@stitches/react/types/styled-component"
159
159
  "2": any;
160
160
  "3": any;
161
161
  };
162
+ ratios: {
163
+ "16-9": any;
164
+ "3-2": any;
165
+ "4-3": any;
166
+ "1-1": any;
167
+ "3-4": any;
168
+ };
162
169
  }, import("@stitches/react/types/config").DefaultThemeMap, {
163
170
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
164
171
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -160,6 +160,13 @@ export declare const RadioButtonGroup: import("@stitches/react/types/styled-comp
160
160
  "2": any;
161
161
  "3": any;
162
162
  };
163
+ ratios: {
164
+ "16-9": any;
165
+ "3-2": any;
166
+ "4-3": any;
167
+ "1-1": any;
168
+ "3-4": any;
169
+ };
163
170
  }, import("@stitches/react/types/config").DefaultThemeMap, {
164
171
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
165
172
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -162,6 +162,13 @@ export declare const StyledRadioCard: import("@stitches/react/types/styled-compo
162
162
  "2": any;
163
163
  "3": any;
164
164
  };
165
+ ratios: {
166
+ "16-9": any;
167
+ "3-2": any;
168
+ "4-3": any;
169
+ "1-1": any;
170
+ "3-4": any;
171
+ };
165
172
  }, import("@stitches/react/types/config").DefaultThemeMap, {
166
173
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
167
174
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -163,6 +163,13 @@ declare const StyledSectionMessage: import("@stitches/react/types/styled-compone
163
163
  "2": any;
164
164
  "3": any;
165
165
  };
166
+ ratios: {
167
+ "16-9": any;
168
+ "3-2": any;
169
+ "4-3": any;
170
+ "1-1": any;
171
+ "3-4": any;
172
+ };
166
173
  }, import("@stitches/react/types/config").DefaultThemeMap, {
167
174
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
168
175
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -389,6 +396,13 @@ export declare const SectionMessage: {
389
396
  "2": any;
390
397
  "3": any;
391
398
  };
399
+ ratios: {
400
+ "16-9": any;
401
+ "3-2": any;
402
+ "4-3": any;
403
+ "1-1": any;
404
+ "3-4": any;
405
+ };
392
406
  }, import("@stitches/react/types/config").DefaultThemeMap, {
393
407
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
394
408
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -611,6 +625,13 @@ export declare const SectionMessage: {
611
625
  "2": any;
612
626
  "3": any;
613
627
  };
628
+ ratios: {
629
+ "16-9": any;
630
+ "3-2": any;
631
+ "4-3": any;
632
+ "1-1": any;
633
+ "3-4": any;
634
+ };
614
635
  }, import("@stitches/react/types/config").DefaultThemeMap, {
615
636
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
616
637
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -832,6 +853,13 @@ export declare const SectionMessage: {
832
853
  "2": any;
833
854
  "3": any;
834
855
  };
856
+ ratios: {
857
+ "16-9": any;
858
+ "3-2": any;
859
+ "4-3": any;
860
+ "1-1": any;
861
+ "3-4": any;
862
+ };
835
863
  }, import("@stitches/react/types/config").DefaultThemeMap, {
836
864
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
837
865
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1059,6 +1087,13 @@ export declare const SectionMessage: {
1059
1087
  "2": any;
1060
1088
  "3": any;
1061
1089
  };
1090
+ ratios: {
1091
+ "16-9": any;
1092
+ "3-2": any;
1093
+ "4-3": any;
1094
+ "1-1": any;
1095
+ "3-4": any;
1096
+ };
1062
1097
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1063
1098
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1064
1099
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1295,6 +1330,13 @@ export declare const SectionMessage: {
1295
1330
  "2": any;
1296
1331
  "3": any;
1297
1332
  };
1333
+ ratios: {
1334
+ "16-9": any;
1335
+ "3-2": any;
1336
+ "4-3": any;
1337
+ "1-1": any;
1338
+ "3-4": any;
1339
+ };
1298
1340
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1299
1341
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1300
1342
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1518,6 +1560,13 @@ export declare const SectionMessage: {
1518
1560
  "2": any;
1519
1561
  "3": any;
1520
1562
  };
1563
+ ratios: {
1564
+ "16-9": any;
1565
+ "3-2": any;
1566
+ "4-3": any;
1567
+ "1-1": any;
1568
+ "3-4": any;
1569
+ };
1521
1570
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1522
1571
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1523
1572
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -161,6 +161,13 @@ declare const StyledSelect: import("@stitches/react/types/styled-component").Sty
161
161
  "2": any;
162
162
  "3": any;
163
163
  };
164
+ ratios: {
165
+ "16-9": any;
166
+ "3-2": any;
167
+ "4-3": any;
168
+ "1-1": any;
169
+ "3-4": any;
170
+ };
164
171
  }, import("@stitches/react/types/config").DefaultThemeMap, {
165
172
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
166
173
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{styled as s,theme as c}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import{encodeBackgroundIcon as p}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";const u=s("select",{appearance:"none",backgroundColor:"white",backgroundImage:p(c.colors.tonal300.value,"chevron"),backgroundRepeat:"no-repeat, repeat",border:"1px solid $tonal300",borderRadius:"$0",color:"$tonal600",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,transition:"all 75ms ease-out",width:"100%","&:hover":{cursor:"pointer"},"&:focus":{borderColor:"$primary",outline:"none"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":{backgroundColor:"$tonal100",color:"$tonal400",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"}},state:{error:{border:"1px solid $danger"}}}}),a=e.forwardRef(({placeholder:r,children:n,size:i="md",...o},l)=>{const t={size:i,ref:l,...o};return[o.value,o.defaultValue].every(d=>d===void 0)&&(t.defaultValue=""),e.createElement(u,{...t},r&&e.createElement("option",{disabled:!0,hidden:!0,value:""},r),n)});a.displayName="Select";export{a as Select};
1
+ import*as e 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 p}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";const u=s("select",{appearance:"none",backgroundColor:"white",backgroundImage:p(c.colors.tonal300.value,"chevron"),backgroundRepeat:"no-repeat, repeat",border:"1px solid $tonal300",borderRadius:"$0",color:"$tonal600",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,transition:"all 75ms ease-out",width:"100%","&:hover":{cursor:"pointer"},"&:focus":{borderColor:"$primary",outline:"none"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":{backgroundColor:"$tonal100",color:"$tonal400",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"}},state:{error:{border:"1px solid $danger"}}}}),a=e.forwardRef(({placeholder:r,children:n,size:i="md",...o},l)=>{const t={size:i,ref:l,...o};return[o.value,o.defaultValue].every(d=>d===void 0)&&(t.defaultValue=""),e.createElement(u,{...t},r&&e.createElement("option",{disabled:!0,hidden:!0,value:""},r),n)});a.displayName="Select";export{a 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 { encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'white',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n color: '$tonal600',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n transition: 'all 75ms ease-out',\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&:focus': {\n borderColor: '$primary',\n outline: 'none'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': {\n backgroundColor: '$tonal100',\n color: '$tonal400',\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 },\n state: {\n error: {\n border: '1px solid $danger'\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.FC<SelectProps> = React.forwardRef(\n ({ placeholder, children, size = 'md', ...remainingProps }, ref) => {\n const props = { size, 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","remainingProps","ref","props","value"],"mappings":"4QAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiB,QACjB,gBAAiBC,EAAqBC,EAAM,OAAO,SAAS,MAAO,SAAS,EAC5E,iBAAkB,oBAClB,OAAQ,sBACR,aAAc,KACd,MAAO,YACP,QAAS,QACT,WAAY,QACZ,WAAY,IACZ,WAAY,IACZ,WAAY,oBACZ,MAAO,OACP,UAAW,CACT,OAAQ,SACV,EACA,UAAW,CACT,YAAa,WACb,QAAS,MACX,EACA,gBAAiB,CACf,QAAS,MACX,EACA,kCAAmC,CACjC,gBAAiB,YACjB,MAAO,YACP,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,CACF,EACA,MAAO,CACL,MAAO,CACL,OAAQ,mBACV,CACF,CACF,CACF,CAAC,EAgBYC,EAAgCC,EAAM,WACjD,CAAC,CAAE,YAAAC,EAAa,SAAAC,EAAU,KAAAC,EAAO,QAASC,CAAe,EAAGC,IAAQ,CAClE,MAAMC,EAAQ,CAAE,KAAAH,EAAM,IAAAE,EAAK,GAAGD,CAAe,EAE7C,MACE,CAACA,EAAe,MAAOA,EAAe,YAAY,EAAE,MACjDG,GAAUA,IAAU,MACvB,IAEAD,EAAM,aAAe,IAIrBN,EAAA,cAACL,EAAA,CAAc,GAAGW,CACfL,EAAAA,GACCD,EAAA,cAAC,SAAA,CAAO,SAAQ,GAAC,OAAM,GAAC,MAAM,EAAA,EAC3BC,CACH,EAEDC,CACH,CAEJ,CACF,EAEAH,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 backgroundColor: 'white',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n color: '$tonal600',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n transition: 'all 75ms ease-out',\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&:focus': {\n borderColor: '$primary',\n outline: 'none'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': {\n backgroundColor: '$tonal100',\n color: '$tonal400',\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 },\n state: {\n error: {\n border: '1px solid $danger'\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.FC<SelectProps> = React.forwardRef(\n ({ placeholder, children, size = 'md', ...remainingProps }, ref) => {\n const props = { size, 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","remainingProps","ref","props","value"],"mappings":"6UAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiB,QACjB,gBAAiBC,EAAqBC,EAAM,OAAO,SAAS,MAAO,SAAS,EAC5E,iBAAkB,oBAClB,OAAQ,sBACR,aAAc,KACd,MAAO,YACP,QAAS,QACT,WAAY,QACZ,WAAY,IACZ,WAAY,IACZ,WAAY,oBACZ,MAAO,OACP,UAAW,CACT,OAAQ,SACV,EACA,UAAW,CACT,YAAa,WACb,QAAS,MACX,EACA,gBAAiB,CACf,QAAS,MACX,EACA,kCAAmC,CACjC,gBAAiB,YACjB,MAAO,YACP,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,CACF,EACA,MAAO,CACL,MAAO,CACL,OAAQ,mBACV,CACF,CACF,CACF,CAAC,EAgBYC,EAAgCC,EAAM,WACjD,CAAC,CAAE,YAAAC,EAAa,SAAAC,EAAU,KAAAC,EAAO,QAASC,CAAe,EAAGC,IAAQ,CAClE,MAAMC,EAAQ,CAAE,KAAAH,EAAM,IAAAE,EAAK,GAAGD,CAAe,EAE7C,MACE,CAACA,EAAe,MAAOA,EAAe,YAAY,EAAE,MACjDG,GAAUA,IAAU,MACvB,IAEAD,EAAM,aAAe,IAIrBN,EAAA,cAACL,EAAA,CAAc,GAAGW,CACfL,EAAAA,GACCD,EAAA,cAAC,SAAA,CAAO,SAAQ,GAAC,OAAM,GAAC,MAAM,EAAA,EAC3BC,CACH,EAEDC,CACH,CAEJ,CACF,EAEAH,EAAO,YAAc"}
@@ -157,6 +157,13 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
157
157
  "2": any;
158
158
  "3": any;
159
159
  };
160
+ ratios: {
161
+ "16-9": any;
162
+ "3-2": any;
163
+ "4-3": any;
164
+ "1-1": any;
165
+ "3-4": any;
166
+ };
160
167
  }, import("@stitches/react/types/config").DefaultThemeMap, {
161
168
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
162
169
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -157,6 +157,13 @@ export declare const SidedrawerAccordionItem: import("@stitches/react/types/styl
157
157
  "2": any;
158
158
  "3": any;
159
159
  };
160
+ ratios: {
161
+ "16-9": any;
162
+ "3-2": any;
163
+ "4-3": any;
164
+ "1-1": any;
165
+ "3-4": any;
166
+ };
160
167
  }, import("@stitches/react/types/config").DefaultThemeMap, {
161
168
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
162
169
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -157,6 +157,13 @@ export declare const SidedrawerAccordionRoot: import("@stitches/react/types/styl
157
157
  "2": any;
158
158
  "3": any;
159
159
  };
160
+ ratios: {
161
+ "16-9": any;
162
+ "3-2": any;
163
+ "4-3": any;
164
+ "1-1": any;
165
+ "3-4": any;
166
+ };
160
167
  }, import("@stitches/react/types/config").DefaultThemeMap, {
161
168
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
162
169
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -159,6 +159,13 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
159
159
  "2": any;
160
160
  "3": any;
161
161
  };
162
+ ratios: {
163
+ "16-9": any;
164
+ "3-2": any;
165
+ "4-3": any;
166
+ "1-1": any;
167
+ "3-4": any;
168
+ };
162
169
  }, import("@stitches/react/types/config").DefaultThemeMap, {
163
170
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
164
171
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;