@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
package/CHANGELOG.md CHANGED
@@ -1,13 +1,14 @@
1
- # [2.51.0](https://github.com/Atom-Learning/components/compare/v2.50.2...v2.51.0) (2023-04-28)
1
+ # [2.53.0](https://github.com/Atom-Learning/components/compare/v2.52.0...v2.53.0) (2023-05-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * snapshot Sidedrawer ([cb74fbc](https://github.com/Atom-Learning/components/commit/cb74fbcfa02fc86e37de56a6af60bbd76216beec))
2
7
 
3
8
 
4
9
  ### Features
5
10
 
6
- * created SectionMessage component ([0f958e8](https://github.com/Atom-Learning/components/commit/0f958e84ec42a892cfe516293141d41b82de853b))
7
- * PR comments ([c027ef0](https://github.com/Atom-Learning/components/commit/c027ef075e69d705f30120c79440381dd908df93))
8
- * simplify SectionMessage API by utilising pos absolute ([f69a461](https://github.com/Atom-Learning/components/commit/f69a4612ee7d2b4ebec8db0be9dfd76a7c37d62d))
9
- * small UI tweaks ([1d86a27](https://github.com/Atom-Learning/components/commit/1d86a27108d0a746cc4867ec0aa78e41434d7232))
10
- * use context to add paddings left/right depending on whether icon and dismiss present ([85fd65c](https://github.com/Atom-Learning/components/commit/85fd65c6c81f6eecadca1133ce52cea253506a40))
11
+ * use themeMap in stitches to enable aspect ratio tokens ([b0a4c00](https://github.com/Atom-Learning/components/commit/b0a4c003bb6f46e110f5a5a8e13c8cbd794337f1))
11
12
 
12
13
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
13
14
 
@@ -160,6 +160,13 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
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">;
@@ -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">;
@@ -1,2 +1,2 @@
1
- import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as n}from"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const m=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),s=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),c=n(i,{border:0,width:"100%",bg:"$base1",overflow:"hidden",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${m} 300ms ease-out`},'&[data-state="closed"]':{animation:`${s} 300ms ease-out`}}}),h=({children:e,css:r,...a})=>t.createElement(c,{...a},t.createElement(d,{css:r},e));export{h as AccordionContent};
1
+ import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as n}from"../../stitches.js";import{CSSWrapper as m}from"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const d=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),s=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),c=n(i,{border:0,width:"100%",bg:"$base1",overflow:"hidden",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${d} 300ms ease-out`},'&[data-state="closed"]':{animation:`${s} 300ms ease-out`}}}),h=({children:e,css:r,...a})=>t.createElement(c,{...a},t.createElement(m,{css:r},e));export{h as AccordionContent};
2
2
  //# sourceMappingURL=AccordionContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionContent.js","sources":["../../../src/components/accordion/AccordionContent.tsx"],"sourcesContent":["import { Content } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { keyframes, styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nconst open = keyframes({\n from: { height: 0 },\n to: { height: 'var(--radix-accordion-content-height)' }\n})\n\nconst close = keyframes({\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: 0 }\n})\n\nconst StyledContent = styled(Content, {\n border: 0,\n width: '100%',\n bg: '$base1',\n overflow: 'hidden',\n '&[data-state=\"open\"]': { borderRadius: '0 0 $0 $0' },\n\n '@allowMotion': {\n '&[data-state=\"open\"]': { animation: `${open} 300ms ease-out` },\n '&[data-state=\"closed\"]': { animation: `${close} 300ms ease-out` }\n }\n})\n\ntype AccordionContentProps = React.ComponentProps<typeof StyledContent>\n\nexport const AccordionContent: React.FC<AccordionContentProps> = ({\n children,\n css,\n ...remainingProps\n}) => (\n <StyledContent {...remainingProps}>\n <CSSWrapper css={css}>{children}</CSSWrapper>\n </StyledContent>\n)\n"],"names":["open","keyframes","close","StyledContent","styled","Content","AccordionContent","children","css","remainingProps","React","CSSWrapper"],"mappings":"+QAMA,MAAMA,EAAOC,EAAU,CACrB,KAAM,CAAE,OAAQ,CAAE,EAClB,GAAI,CAAE,OAAQ,uCAAwC,CACxD,CAAC,EAEKC,EAAQD,EAAU,CACtB,KAAM,CAAE,OAAQ,uCAAwC,EACxD,GAAI,CAAE,OAAQ,CAAE,CAClB,CAAC,EAEKE,EAAgBC,EAAOC,EAAS,CACpC,OAAQ,EACR,MAAO,OACP,GAAI,SACJ,SAAU,SACV,uBAAwB,CAAE,aAAc,WAAY,EAEpD,eAAgB,CACd,uBAAwB,CAAE,UAAW,GAAGL,kBAAsB,EAC9D,yBAA0B,CAAE,UAAW,GAAGE,kBAAuB,CACnE,CACF,CAAC,EAIYI,EAAoD,CAAC,CAChE,SAAAC,EACA,IAAAC,KACGC,CACL,IACEC,EAAA,cAACP,EAAA,CAAe,GAAGM,CAAAA,EACjBC,EAAA,cAACC,EAAA,CAAW,IAAKH,CAAMD,EAAAA,CAAS,CAClC"}
1
+ {"version":3,"file":"AccordionContent.js","sources":["../../../src/components/accordion/AccordionContent.tsx"],"sourcesContent":["import { Content } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { keyframes, styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nconst open = keyframes({\n from: { height: 0 },\n to: { height: 'var(--radix-accordion-content-height)' }\n})\n\nconst close = keyframes({\n from: { height: 'var(--radix-accordion-content-height)' },\n to: { height: 0 }\n})\n\nconst StyledContent = styled(Content, {\n border: 0,\n width: '100%',\n bg: '$base1',\n overflow: 'hidden',\n '&[data-state=\"open\"]': { borderRadius: '0 0 $0 $0' },\n\n '@allowMotion': {\n '&[data-state=\"open\"]': { animation: `${open} 300ms ease-out` },\n '&[data-state=\"closed\"]': { animation: `${close} 300ms ease-out` }\n }\n})\n\ntype AccordionContentProps = React.ComponentProps<typeof StyledContent>\n\nexport const AccordionContent: React.FC<AccordionContentProps> = ({\n children,\n css,\n ...remainingProps\n}) => (\n <StyledContent {...remainingProps}>\n <CSSWrapper css={css}>{children}</CSSWrapper>\n </StyledContent>\n)\n"],"names":["open","keyframes","close","StyledContent","styled","Content","AccordionContent","children","css","remainingProps","React","CSSWrapper"],"mappings":"gVAMA,MAAMA,EAAOC,EAAU,CACrB,KAAM,CAAE,OAAQ,CAAE,EAClB,GAAI,CAAE,OAAQ,uCAAwC,CACxD,CAAC,EAEKC,EAAQD,EAAU,CACtB,KAAM,CAAE,OAAQ,uCAAwC,EACxD,GAAI,CAAE,OAAQ,CAAE,CAClB,CAAC,EAEKE,EAAgBC,EAAOC,EAAS,CACpC,OAAQ,EACR,MAAO,OACP,GAAI,SACJ,SAAU,SACV,uBAAwB,CAAE,aAAc,WAAY,EAEpD,eAAgB,CACd,uBAAwB,CAAE,UAAW,GAAGL,kBAAsB,EAC9D,yBAA0B,CAAE,UAAW,GAAGE,kBAAuB,CACnE,CACF,CAAC,EAIYI,EAAoD,CAAC,CAChE,SAAAC,EACA,IAAAC,KACGC,CACL,IACEC,EAAA,cAACP,EAAA,CAAe,GAAGM,CAAAA,EACjBC,EAAA,cAACC,EAAA,CAAW,IAAKH,CAAMD,EAAAA,CAAS,CAClC"}
@@ -157,6 +157,13 @@ declare const StyledItem: import("@stitches/react/types/styled-component").Style
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">;
@@ -158,6 +158,13 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
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">;
@@ -1,2 +1,2 @@
1
- import{ChevronDown as i}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import t from"react";import{ColorScheme as n}from"../../experiments/color-scheme/ColorScheme.js";import{styled as e}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Icon as d}from"../icon/Icon.js";const m=e(d,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),l=e(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...c()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),p=({children:o,colorScheme:r={},...a})=>t.createElement(n,{asChild:!0,accent:"grey1",interactive:"loContrast",...r},t.createElement(l,{...a},o,t.createElement(m,{is:i})));export{p as AccordionTrigger};
1
+ import{ChevronDown as a}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import t from"react";import{ColorScheme as n}from"../../experiments/color-scheme/ColorScheme.js";import{styled as e}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Icon as m}from"../icon/Icon.js";const d=e(m,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),l=e(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...c()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),p=({children:o,colorScheme:r={},...i})=>t.createElement(n,{asChild:!0,accent:"grey1",interactive:"loContrast",...r},t.createElement(l,{...i},o,t.createElement(d,{is:a})));export{p as AccordionTrigger};
2
2
  //# sourceMappingURL=AccordionTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:active, &:hover, &:focus-visible': {\n bg: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n },\n '&[data-state=\"open\"]': {\n borderRadius: '$0 $0 0 0'\n },\n '&[data-state=\"closed\"]': {\n borderRadius: '$0'\n }\n})\n\ntype AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger> & {\n colorScheme?: TcolorScheme\n}\n\nexport const AccordionTrigger: React.FC<AccordionTriggerProps> = ({\n children,\n colorScheme = {},\n ...remainingProps\n}) => (\n <ColorScheme asChild accent=\"grey1\" interactive=\"loContrast\" {...colorScheme}>\n <StyledTrigger {...remainingProps}>\n {children}\n <RotatingIcon is={ChevronDown} />\n </StyledTrigger>\n </ColorScheme>\n)\n"],"names":["RotatingIcon","styled","Icon","StyledTrigger","Trigger","focusVisibleStyleBlock","AccordionTrigger","children","colorScheme","remainingProps","React","ColorScheme","ChevronDown"],"mappings":"6eAUA,MAAMA,EAAeC,EAAOC,EAAM,CAChC,WAAY,kBACZ,0BAA2B,CACzB,UAAW,gBACb,EACA,4BAA6B,CAC3B,UAAW,cACb,CACF,CAAC,EAEKC,EAAgBF,EAAOG,EAAS,CACpC,OAAQ,EACR,GAAI,KACJ,GAAI,KACJ,MAAO,OACP,QAAS,OACT,eAAgB,gBAChB,WAAY,SACZ,OAAQ,UACR,GAAI,gBACJ,MAAO,yBACP,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,qCAAsC,CACpC,GAAI,eACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,EACA,uBAAwB,CACtB,aAAc,WAChB,EACA,yBAA0B,CACxB,aAAc,IAChB,CACF,CAAC,EAMYC,EAAoD,CAAC,CAChE,SAAAC,EACA,YAAAC,EAAc,MACXC,CACL,IACEC,EAAA,cAACC,EAAA,CAAY,QAAO,GAAC,OAAO,QAAQ,YAAY,aAAc,GAAGH,CAAAA,EAC/DE,EAAA,cAACP,EAAA,CAAe,GAAGM,CAChBF,EAAAA,EACDG,EAAA,cAACV,EAAA,CAAa,GAAIY,CAAAA,CAAa,CACjC,CACF"}
1
+ {"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:active, &:hover, &:focus-visible': {\n bg: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n },\n '&[data-state=\"open\"]': {\n borderRadius: '$0 $0 0 0'\n },\n '&[data-state=\"closed\"]': {\n borderRadius: '$0'\n }\n})\n\ntype AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger> & {\n colorScheme?: TcolorScheme\n}\n\nexport const AccordionTrigger: React.FC<AccordionTriggerProps> = ({\n children,\n colorScheme = {},\n ...remainingProps\n}) => (\n <ColorScheme asChild accent=\"grey1\" interactive=\"loContrast\" {...colorScheme}>\n <StyledTrigger {...remainingProps}>\n {children}\n <RotatingIcon is={ChevronDown} />\n </StyledTrigger>\n </ColorScheme>\n)\n"],"names":["RotatingIcon","styled","Icon","StyledTrigger","Trigger","focusVisibleStyleBlock","AccordionTrigger","children","colorScheme","remainingProps","React","ColorScheme","ChevronDown"],"mappings":"8iBAUA,MAAMA,EAAeC,EAAOC,EAAM,CAChC,WAAY,kBACZ,0BAA2B,CACzB,UAAW,gBACb,EACA,4BAA6B,CAC3B,UAAW,cACb,CACF,CAAC,EAEKC,EAAgBF,EAAOG,EAAS,CACpC,OAAQ,EACR,GAAI,KACJ,GAAI,KACJ,MAAO,OACP,QAAS,OACT,eAAgB,gBAChB,WAAY,SACZ,OAAQ,UACR,GAAI,gBACJ,MAAO,yBACP,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,qCAAsC,CACpC,GAAI,eACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,EACA,uBAAwB,CACtB,aAAc,WAChB,EACA,yBAA0B,CACxB,aAAc,IAChB,CACF,CAAC,EAMYC,EAAoD,CAAC,CAChE,SAAAC,EACA,YAAAC,EAAc,MACXC,CACL,IACEC,EAAA,cAACC,EAAA,CAAY,QAAO,GAAC,OAAO,QAAQ,YAAY,aAAc,GAAGH,CAAAA,EAC/DE,EAAA,cAACP,EAAA,CAAe,GAAGM,CAChBF,EAAAA,EACDG,EAAA,cAACV,EAAA,CAAa,GAAIY,CAAAA,CAAa,CACjC,CACF"}
@@ -165,6 +165,13 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
165
165
  "2": any;
166
166
  "3": any;
167
167
  };
168
+ ratios: {
169
+ "16-9": any;
170
+ "3-2": any;
171
+ "4-3": any;
172
+ "1-1": any;
173
+ "3-4": any;
174
+ };
168
175
  }, import("@stitches/react/types/config").DefaultThemeMap, {
169
176
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
170
177
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -159,6 +159,13 @@ declare const StyledAlertDialog: 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">;
@@ -159,6 +159,13 @@ declare const StyledAlertDialogContent: import("@stitches/react/types/styled-com
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">;
@@ -1,2 +1,2 @@
1
- import{Overlay as m,Content as l,Portal as d}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{fadeIn as p,fadeOut as f}from"../../utilities/style/keyframe-animations.js";const o="translate3d(-50%, -50%, 0)",i="translate3d(-50%, 50vh, 0)",c=a({"0%":{transform:i},"100%":{transform:o}}),b=a({"0%":{transform:o},"100%":{transform:i}}),x=r(m,{backgroundColor:"$alpha600",top:0,right:0,bottom:0,left:0,position:"fixed",zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${p} 250ms ease-out`},'&[data-state="closed"]':{animation:`${f} 550ms ease-out`}}}),u=r(l,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:o,"&:focus":{outline:"none"},zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${c} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${b} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}}),h=({size:n="sm",...s})=>t.createElement(d,null,t.createElement(x,null),t.createElement(u,{size:n,...s}));export{h as AlertDialogContent};
1
+ import{Overlay as s,Content as l,Portal as d}from"@radix-ui/react-alert-dialog";import*as t from"react";import{DIALOG_Z_INDEX as e}from"../../constants/zIndices.js";import{keyframes as a,styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{fadeIn as p,fadeOut as f}from"../../utilities/style/keyframe-animations.js";const o="translate3d(-50%, -50%, 0)",i="translate3d(-50%, 50vh, 0)",c=a({"0%":{transform:i},"100%":{transform:o}}),b=a({"0%":{transform:o},"100%":{transform:i}}),x=r(s,{backgroundColor:"$alpha600",top:0,right:0,bottom:0,left:0,position:"fixed",zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${p} 250ms ease-out`},'&[data-state="closed"]':{animation:`${f} 550ms ease-out`}}}),u=r(l,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",p:"$5",position:"fixed",top:"50%",transform:o,"&:focus":{outline:"none"},zIndex:e,"@allowMotion":{'&[data-state="open"]':{animation:`${c} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${b} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{sm:{width:"380px"},md:{width:"480px"},lg:{width:"600px"}}}}),h=({size:n="sm",...m})=>t.createElement(d,null,t.createElement(x,null),t.createElement(u,{size:n,...m}));export{h as AlertDialogContent};
2
2
  //# sourceMappingURL=AlertDialogContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDialogContent.js","sources":["../../../src/components/alert-dialog/AlertDialogContent.tsx"],"sourcesContent":["import { Content, Overlay, Portal } from '@radix-ui/react-alert-dialog'\nimport * as React from 'react'\n\nimport { DIALOG_Z_INDEX } from '~/constants/zIndices'\nimport { keyframes, styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nconst contentOnScreen = 'translate3d(-50%, -50%, 0)'\nconst contentOffScreen = 'translate3d(-50%, 50vh, 0)'\n\nconst slideIn = keyframes({\n '0%': { transform: contentOffScreen },\n '100%': { transform: contentOnScreen }\n})\nconst slideOut = keyframes({\n '0%': { transform: contentOnScreen },\n '100%': { transform: contentOffScreen }\n})\n\nconst StyledAlertDialogOverlay = styled(Overlay, {\n backgroundColor: '$alpha600',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n position: 'fixed',\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 550ms ease-out`\n }\n }\n})\n\nconst StyledAlertDialogContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$3',\n boxSizing: 'border-box',\n left: '50%',\n maxWidth: '90vw',\n p: '$5',\n position: 'fixed',\n top: '50%',\n transform: contentOnScreen,\n '&:focus': {\n outline: 'none'\n },\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n }\n },\n variants: {\n size: {\n sm: { width: '380px' },\n md: { width: '480px' },\n lg: { width: '600px' }\n }\n }\n})\n\ntype AlertDialogContentProps = React.ComponentProps<\n typeof StyledAlertDialogContent\n>\n\nexport const AlertDialogContent: React.FC<AlertDialogContentProps> = ({\n size = 'sm',\n ...remainingProps\n}) => (\n <Portal>\n <StyledAlertDialogOverlay />\n <StyledAlertDialogContent size={size} {...remainingProps} />\n </Portal>\n)\n"],"names":["contentOnScreen","contentOffScreen","slideIn","keyframes","slideOut","StyledAlertDialogOverlay","styled","Overlay","DIALOG_Z_INDEX","fadeIn","fadeOut","StyledAlertDialogContent","Content","AlertDialogContent","size","remainingProps","React","Portal"],"mappings":"oXAOA,MAAMA,EAAkB,6BAClBC,EAAmB,6BAEnBC,EAAUC,EAAU,CACxB,KAAM,CAAE,UAAWF,CAAiB,EACpC,OAAQ,CAAE,UAAWD,CAAgB,CACvC,CAAC,EACKI,EAAWD,EAAU,CACzB,KAAM,CAAE,UAAWH,CAAgB,EACnC,OAAQ,CAAE,UAAWC,CAAiB,CACxC,CAAC,EAEKI,EAA2BC,EAAOC,EAAS,CAC/C,gBAAiB,YACjB,IAAK,EACL,MAAO,EACP,OAAQ,EACR,KAAM,EACN,SAAU,QACV,OAAQC,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGC,kBAChB,EACA,yBAA0B,CACxB,UAAW,GAAGC,kBAChB,CACF,CACF,CAAC,EAEKC,EAA2BL,EAAOM,EAAS,CAC/C,GAAI,QACJ,aAAc,KACd,UAAW,KACX,UAAW,aACX,KAAM,MACN,SAAU,OACV,EAAG,KACH,SAAU,QACV,IAAK,MACL,UAAWZ,EACX,UAAW,CACT,QAAS,MACX,EACA,OAAQQ,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGN,wCAChB,EACA,yBAA0B,CACxB,UAAW,GAAGE,wCAChB,CACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,CACvB,CACF,CACF,CAAC,EAMYS,EAAwD,CAAC,CACpE,KAAAC,EAAO,QACJC,CACL,IACEC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACX,EAAA,IAAyB,EAC1BW,EAAA,cAACL,EAAA,CAAyB,KAAMG,EAAO,GAAGC,CAAAA,CAAgB,CAC5D"}
1
+ {"version":3,"file":"AlertDialogContent.js","sources":["../../../src/components/alert-dialog/AlertDialogContent.tsx"],"sourcesContent":["import { Content, Overlay, Portal } from '@radix-ui/react-alert-dialog'\nimport * as React from 'react'\n\nimport { DIALOG_Z_INDEX } from '~/constants/zIndices'\nimport { keyframes, styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nconst contentOnScreen = 'translate3d(-50%, -50%, 0)'\nconst contentOffScreen = 'translate3d(-50%, 50vh, 0)'\n\nconst slideIn = keyframes({\n '0%': { transform: contentOffScreen },\n '100%': { transform: contentOnScreen }\n})\nconst slideOut = keyframes({\n '0%': { transform: contentOnScreen },\n '100%': { transform: contentOffScreen }\n})\n\nconst StyledAlertDialogOverlay = styled(Overlay, {\n backgroundColor: '$alpha600',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n position: 'fixed',\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${fadeIn} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} 550ms ease-out`\n }\n }\n})\n\nconst StyledAlertDialogContent = styled(Content, {\n bg: 'white',\n borderRadius: '$1',\n boxShadow: '$3',\n boxSizing: 'border-box',\n left: '50%',\n maxWidth: '90vw',\n p: '$5',\n position: 'fixed',\n top: '50%',\n transform: contentOnScreen,\n '&:focus': {\n outline: 'none'\n },\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideIn} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOut} 550ms cubic-bezier(0.22, 1, 0.36, 1)`\n }\n },\n variants: {\n size: {\n sm: { width: '380px' },\n md: { width: '480px' },\n lg: { width: '600px' }\n }\n }\n})\n\ntype AlertDialogContentProps = React.ComponentProps<\n typeof StyledAlertDialogContent\n>\n\nexport const AlertDialogContent: React.FC<AlertDialogContentProps> = ({\n size = 'sm',\n ...remainingProps\n}) => (\n <Portal>\n <StyledAlertDialogOverlay />\n <StyledAlertDialogContent size={size} {...remainingProps} />\n </Portal>\n)\n"],"names":["contentOnScreen","contentOffScreen","slideIn","keyframes","slideOut","StyledAlertDialogOverlay","styled","Overlay","DIALOG_Z_INDEX","fadeIn","fadeOut","StyledAlertDialogContent","Content","AlertDialogContent","size","remainingProps","React","Portal"],"mappings":"qbAOA,MAAMA,EAAkB,6BAClBC,EAAmB,6BAEnBC,EAAUC,EAAU,CACxB,KAAM,CAAE,UAAWF,CAAiB,EACpC,OAAQ,CAAE,UAAWD,CAAgB,CACvC,CAAC,EACKI,EAAWD,EAAU,CACzB,KAAM,CAAE,UAAWH,CAAgB,EACnC,OAAQ,CAAE,UAAWC,CAAiB,CACxC,CAAC,EAEKI,EAA2BC,EAAOC,EAAS,CAC/C,gBAAiB,YACjB,IAAK,EACL,MAAO,EACP,OAAQ,EACR,KAAM,EACN,SAAU,QACV,OAAQC,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGC,kBAChB,EACA,yBAA0B,CACxB,UAAW,GAAGC,kBAChB,CACF,CACF,CAAC,EAEKC,EAA2BL,EAAOM,EAAS,CAC/C,GAAI,QACJ,aAAc,KACd,UAAW,KACX,UAAW,aACX,KAAM,MACN,SAAU,OACV,EAAG,KACH,SAAU,QACV,IAAK,MACL,UAAWZ,EACX,UAAW,CACT,QAAS,MACX,EACA,OAAQQ,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGN,wCAChB,EACA,yBAA0B,CACxB,UAAW,GAAGE,wCAChB,CACF,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,EACrB,GAAI,CAAE,MAAO,OAAQ,CACvB,CACF,CACF,CAAC,EAMYS,EAAwD,CAAC,CACpE,KAAAC,EAAO,QACJC,CACL,IACEC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACX,EAAA,IAAyB,EAC1BW,EAAA,cAACL,EAAA,CAAyB,KAAMG,EAAO,GAAGC,CAAAA,CAAgB,CAC5D"}
@@ -163,6 +163,13 @@ declare const StyledDiv: import("@stitches/react/types/styled-component").Styled
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">;
@@ -378,6 +385,13 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
378
385
  "2": any;
379
386
  "3": any;
380
387
  };
388
+ ratios: {
389
+ "16-9": any;
390
+ "3-2": any;
391
+ "4-3": any;
392
+ "1-1": any;
393
+ "3-4": any;
394
+ };
381
395
  }, import("@stitches/react/types/config").DefaultThemeMap, {
382
396
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
383
397
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import*as o from"react";import{styled as n}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{focusVisibleStyleBlock as v}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{AvatarIcon as p}from"./AvatarIcon.js";import{AvatarImage as u}from"./AvatarImage.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarPlaceholder as z}from"./AvatarPlaceholder.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}},$=n("div",s),f=n("button",{all:"unset",...s,"&:not([disabled])":{"&:hover":{borderColor:"$tonal400",backgroundColor:"$tonal50"},"&:active":{borderColor:"$primary",backgroundColor:"$tonal100"},"&:focus-visible":v()},"&[disabled]":{opacity:"30%",cursor:"not-allowed"}}),m=o.createContext({name:void 0,size:"lg"}),d=({children:a,name:e,size:i})=>{const t=o.useMemo(()=>({name:e,size:i}),[e,i]);return o.createElement(m.Provider,{value:t},a)},c=({children:a,size:e="lg",name:i,disabled:t=!1,onClick:l})=>o.createElement(d,{name:i,size:e},l?o.createElement(f,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement($,{size:e},a)),r=c;r.Image=u,r.Initial=b,r.Placeholder=z,r.Icon=p,r.displayName="Avatar";export{r as Avatar,c as AvatarRoot,m as AvatarRootContext,d as AvatarRootProvider};
1
+ import*as o from"react";import{styled as n}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as v}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{AvatarIcon as p}from"./AvatarIcon.js";import{AvatarImage as u}from"./AvatarImage.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarPlaceholder as z}from"./AvatarPlaceholder.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}},$=n("div",s),f=n("button",{all:"unset",...s,"&:not([disabled])":{"&:hover":{borderColor:"$tonal400",backgroundColor:"$tonal50"},"&:active":{borderColor:"$primary",backgroundColor:"$tonal100"},"&:focus-visible":v()},"&[disabled]":{opacity:"30%",cursor:"not-allowed"}}),m=o.createContext({name:void 0,size:"lg"}),d=({children:a,name:e,size:i})=>{const t=o.useMemo(()=>({name:e,size:i}),[e,i]);return o.createElement(m.Provider,{value:t},a)},c=({children:a,size:e="lg",name:i,disabled:t=!1,onClick:l})=>o.createElement(d,{name:i,size:e},l?o.createElement(f,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement($,{size:e},a)),r=c;r.Image=u,r.Initial=b,r.Placeholder=z,r.Icon=p,r.displayName="Avatar";export{r as Avatar,c as AvatarRoot,m as AvatarRootContext,d as AvatarRootProvider};
2
2
  //# sourceMappingURL=Avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","sources":["../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { AvatarIcon } from './AvatarIcon'\nimport { AvatarImage } from './AvatarImage'\nimport { AvatarInitial } from './AvatarInitial'\nimport { AvatarPlaceholder } from './AvatarPlaceholder'\n\nconst avatarRootStyles = {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: '$tonal400',\n borderRadius: '$round',\n border: '2px solid $tonal100',\n backgroundColor: '$white',\n overflow: 'hidden',\n variants: {\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' },\n xl: { size: '$6' },\n xxl: { size: '$7' }\n }\n }\n}\n\nconst StyledDiv = styled('div', avatarRootStyles)\nconst StyledButton = styled('button', {\n all: 'unset',\n ...avatarRootStyles,\n '&:not([disabled])': {\n '&:hover': {\n borderColor: '$tonal400',\n backgroundColor: '$tonal50'\n },\n '&:active': {\n borderColor: '$primary',\n backgroundColor: '$tonal100'\n },\n '&:focus-visible': focusVisibleStyleBlock()\n },\n '&[disabled]': {\n opacity: '30%',\n cursor: 'not-allowed'\n }\n})\n\ntype TAvatarProps = React.ComponentProps<\n typeof StyledDiv | typeof StyledButton\n> & { name?: string } & (\n | {\n onClick: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n }\n | { onClick?: never; disabled?: never }\n )\n\nexport type TAvatarRootContext = {\n name?: TAvatarProps['name']\n size: TAvatarProps['size']\n}\n\nexport const AvatarRootContext = React.createContext<TAvatarRootContext>({\n name: undefined,\n size: 'lg'\n})\n\nexport const AvatarRootProvider: React.FC<TAvatarProps> = ({\n children,\n name,\n size\n}) => {\n const value = React.useMemo<TAvatarRootContext>(\n () => ({ name, size }),\n [name, size]\n )\n\n return (\n <AvatarRootContext.Provider value={value}>\n {children}\n </AvatarRootContext.Provider>\n )\n}\n\nexport const AvatarRoot: React.FC<TAvatarProps> = ({\n children,\n size = 'lg',\n name,\n disabled = false,\n onClick\n}) => (\n <AvatarRootProvider name={name} size={size}>\n {onClick ? (\n <StyledButton\n size={size}\n disabled={disabled}\n onClick={disabled ? undefined : onClick}\n css={{ cursor: disabled ? 'auto' : 'pointer' }}\n >\n {children}\n </StyledButton>\n ) : (\n <StyledDiv size={size}>{children}</StyledDiv>\n )}\n </AvatarRootProvider>\n)\n\ntype TAvatar = typeof AvatarRoot & {\n Image: typeof AvatarImage\n Initial: typeof AvatarInitial\n Placeholder: typeof AvatarPlaceholder\n Icon: typeof AvatarIcon\n}\n\nexport const Avatar = AvatarRoot as TAvatar\nAvatar.Image = AvatarImage\nAvatar.Initial = AvatarInitial\nAvatar.Placeholder = AvatarPlaceholder\nAvatar.Icon = AvatarIcon\nAvatar.displayName = 'Avatar'\n"],"names":["avatarRootStyles","StyledDiv","styled","StyledButton","focusVisibleStyleBlock","AvatarRootContext","React","AvatarRootProvider","children","name","size","value","AvatarRoot","disabled","onClick","Avatar","AvatarImage","AvatarInitial","AvatarPlaceholder","AvatarIcon"],"mappings":"geAUA,MAAMA,EAAmB,CACvB,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,MAAO,YACP,aAAc,SACd,OAAQ,sBACR,gBAAiB,SACjB,SAAU,SACV,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,IAAK,CAAE,KAAM,IAAK,CACpB,CACF,CACF,EAEMC,EAAYC,EAAO,MAAOF,CAAgB,EAC1CG,EAAeD,EAAO,SAAU,CACpC,IAAK,QACL,GAAGF,EACH,oBAAqB,CACnB,UAAW,CACT,YAAa,YACb,gBAAiB,UACnB,EACA,WAAY,CACV,YAAa,WACb,gBAAiB,WACnB,EACA,kBAAmBI,EACrB,CAAA,EACA,cAAe,CACb,QAAS,MACT,OAAQ,aACV,CACF,CAAC,EAiBYC,EAAoBC,EAAM,cAAkC,CACvE,KAAM,OACN,KAAM,IACR,CAAC,EAEYC,EAA6C,CAAC,CACzD,SAAAC,EACA,KAAAC,EACA,KAAAC,CACF,IAAM,CACJ,MAAMC,EAAQL,EAAM,QAClB,KAAO,CAAE,KAAAG,EAAM,KAAAC,CAAK,GACpB,CAACD,EAAMC,CAAI,CACb,EAEA,OACEJ,EAAA,cAACD,EAAkB,SAAlB,CAA2B,MAAOM,CAAAA,EAChCH,CACH,CAEJ,EAEaI,EAAqC,CAAC,CACjD,SAAAJ,EACA,KAAAE,EAAO,KACP,KAAAD,EACA,SAAAI,EAAW,GACX,QAAAC,CACF,IACER,EAAA,cAACC,EAAmB,CAAA,KAAME,EAAM,KAAMC,CACnCI,EAAAA,EACCR,EAAA,cAACH,EAAA,CACC,KAAMO,EACN,SAAUG,EACV,QAASA,EAAW,OAAYC,EAChC,IAAK,CAAE,OAAQD,EAAW,OAAS,SAAU,CAAA,EAE5CL,CACH,EAEAF,EAAA,cAACL,EAAA,CAAU,KAAMS,CAAAA,EAAOF,CAAS,CAErC,EAUWO,EAASH,EACtBG,EAAO,MAAQC,EACfD,EAAO,QAAUE,EACjBF,EAAO,YAAcG,EACrBH,EAAO,KAAOI,EACdJ,EAAO,YAAc"}
1
+ {"version":3,"file":"Avatar.js","sources":["../../../src/components/avatar/Avatar.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { AvatarIcon } from './AvatarIcon'\nimport { AvatarImage } from './AvatarImage'\nimport { AvatarInitial } from './AvatarInitial'\nimport { AvatarPlaceholder } from './AvatarPlaceholder'\n\nconst avatarRootStyles = {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: '$tonal400',\n borderRadius: '$round',\n border: '2px solid $tonal100',\n backgroundColor: '$white',\n overflow: 'hidden',\n variants: {\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' },\n xl: { size: '$6' },\n xxl: { size: '$7' }\n }\n }\n}\n\nconst StyledDiv = styled('div', avatarRootStyles)\nconst StyledButton = styled('button', {\n all: 'unset',\n ...avatarRootStyles,\n '&:not([disabled])': {\n '&:hover': {\n borderColor: '$tonal400',\n backgroundColor: '$tonal50'\n },\n '&:active': {\n borderColor: '$primary',\n backgroundColor: '$tonal100'\n },\n '&:focus-visible': focusVisibleStyleBlock()\n },\n '&[disabled]': {\n opacity: '30%',\n cursor: 'not-allowed'\n }\n})\n\ntype TAvatarProps = React.ComponentProps<\n typeof StyledDiv | typeof StyledButton\n> & { name?: string } & (\n | {\n onClick: React.MouseEventHandler<HTMLButtonElement>\n disabled?: boolean\n }\n | { onClick?: never; disabled?: never }\n )\n\nexport type TAvatarRootContext = {\n name?: TAvatarProps['name']\n size: TAvatarProps['size']\n}\n\nexport const AvatarRootContext = React.createContext<TAvatarRootContext>({\n name: undefined,\n size: 'lg'\n})\n\nexport const AvatarRootProvider: React.FC<TAvatarProps> = ({\n children,\n name,\n size\n}) => {\n const value = React.useMemo<TAvatarRootContext>(\n () => ({ name, size }),\n [name, size]\n )\n\n return (\n <AvatarRootContext.Provider value={value}>\n {children}\n </AvatarRootContext.Provider>\n )\n}\n\nexport const AvatarRoot: React.FC<TAvatarProps> = ({\n children,\n size = 'lg',\n name,\n disabled = false,\n onClick\n}) => (\n <AvatarRootProvider name={name} size={size}>\n {onClick ? (\n <StyledButton\n size={size}\n disabled={disabled}\n onClick={disabled ? undefined : onClick}\n css={{ cursor: disabled ? 'auto' : 'pointer' }}\n >\n {children}\n </StyledButton>\n ) : (\n <StyledDiv size={size}>{children}</StyledDiv>\n )}\n </AvatarRootProvider>\n)\n\ntype TAvatar = typeof AvatarRoot & {\n Image: typeof AvatarImage\n Initial: typeof AvatarInitial\n Placeholder: typeof AvatarPlaceholder\n Icon: typeof AvatarIcon\n}\n\nexport const Avatar = AvatarRoot as TAvatar\nAvatar.Image = AvatarImage\nAvatar.Initial = AvatarInitial\nAvatar.Placeholder = AvatarPlaceholder\nAvatar.Icon = AvatarIcon\nAvatar.displayName = 'Avatar'\n"],"names":["avatarRootStyles","StyledDiv","styled","StyledButton","focusVisibleStyleBlock","AvatarRootContext","React","AvatarRootProvider","children","name","size","value","AvatarRoot","disabled","onClick","Avatar","AvatarImage","AvatarInitial","AvatarPlaceholder","AvatarIcon"],"mappings":"iiBAUA,MAAMA,EAAmB,CACvB,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,MAAO,YACP,aAAc,SACd,OAAQ,sBACR,gBAAiB,SACjB,SAAU,SACV,SAAU,CACR,KAAM,CACJ,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,GAAI,CAAE,KAAM,IAAK,EACjB,IAAK,CAAE,KAAM,IAAK,CACpB,CACF,CACF,EAEMC,EAAYC,EAAO,MAAOF,CAAgB,EAC1CG,EAAeD,EAAO,SAAU,CACpC,IAAK,QACL,GAAGF,EACH,oBAAqB,CACnB,UAAW,CACT,YAAa,YACb,gBAAiB,UACnB,EACA,WAAY,CACV,YAAa,WACb,gBAAiB,WACnB,EACA,kBAAmBI,EACrB,CAAA,EACA,cAAe,CACb,QAAS,MACT,OAAQ,aACV,CACF,CAAC,EAiBYC,EAAoBC,EAAM,cAAkC,CACvE,KAAM,OACN,KAAM,IACR,CAAC,EAEYC,EAA6C,CAAC,CACzD,SAAAC,EACA,KAAAC,EACA,KAAAC,CACF,IAAM,CACJ,MAAMC,EAAQL,EAAM,QAClB,KAAO,CAAE,KAAAG,EAAM,KAAAC,CAAK,GACpB,CAACD,EAAMC,CAAI,CACb,EAEA,OACEJ,EAAA,cAACD,EAAkB,SAAlB,CAA2B,MAAOM,CAAAA,EAChCH,CACH,CAEJ,EAEaI,EAAqC,CAAC,CACjD,SAAAJ,EACA,KAAAE,EAAO,KACP,KAAAD,EACA,SAAAI,EAAW,GACX,QAAAC,CACF,IACER,EAAA,cAACC,EAAmB,CAAA,KAAME,EAAM,KAAMC,CACnCI,EAAAA,EACCR,EAAA,cAACH,EAAA,CACC,KAAMO,EACN,SAAUG,EACV,QAASA,EAAW,OAAYC,EAChC,IAAK,CAAE,OAAQD,EAAW,OAAS,SAAU,CAAA,EAE5CL,CACH,EAEAF,EAAA,cAACL,EAAA,CAAU,KAAMS,CAAAA,EAAOF,CAAS,CAErC,EAUWO,EAASH,EACtBG,EAAO,MAAQC,EACfD,EAAO,QAAUE,EACjBF,EAAO,YAAcG,EACrBH,EAAO,KAAOI,EACdJ,EAAO,YAAc"}
@@ -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">;
@@ -372,6 +379,13 @@ declare const StyledBadge: import("@stitches/react/types/styled-component").Styl
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">;
@@ -157,6 +157,13 @@ export declare const BannerContainer: import("@stitches/react/types/styled-compo
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">;
@@ -372,6 +379,13 @@ export declare const BannerContainer: 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">;
@@ -157,6 +157,13 @@ declare const Container: import("@stitches/react/types/styled-component").Styled
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">;
@@ -371,6 +378,13 @@ declare const Container: import("@stitches/react/types/styled-component").Styled
371
378
  "2": any;
372
379
  "3": any;
373
380
  };
381
+ ratios: {
382
+ "16-9": any;
383
+ "3-2": any;
384
+ "4-3": any;
385
+ "1-1": any;
386
+ "3-4": any;
387
+ };
374
388
  }, import("@stitches/react/types/config").DefaultThemeMap, {
375
389
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
376
390
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -156,6 +156,13 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
156
156
  "2": any;
157
157
  "3": any;
158
158
  };
159
+ ratios: {
160
+ "16-9": any;
161
+ "3-2": any;
162
+ "4-3": any;
163
+ "1-1": any;
164
+ "3-4": any;
165
+ };
159
166
  }, import("@stitches/react/types/config").DefaultThemeMap, {
160
167
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
161
168
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -166,6 +166,13 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
166
166
  "2": any;
167
167
  "3": any;
168
168
  };
169
+ ratios: {
170
+ "16-9": any;
171
+ "3-2": any;
172
+ "4-3": any;
173
+ "1-1": any;
174
+ "3-4": any;
175
+ };
169
176
  }, import("@stitches/react/types/config").DefaultThemeMap, {
170
177
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
171
178
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -160,6 +160,13 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
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{CarouselProvider as m,CarouselContext as u}from"pure-react-carousel";import*as e from"react";import"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{CarouselArrowNext as p,CarouselArrowPrevious as n}from"./CarouselArrows.js";import{CarouselPagination as C}from"./CarouselPagination.js";import{CarouselSlide as S}from"./CarouselSlide.js";import{CarouselSlider as f}from"./CarouselSlider.js";const r=({children:o,css:i,slideHeight:t,slideWidth:l,numSlides:a,...s})=>e.createElement(d,{css:i},e.createElement(m,{naturalSlideWidth:l,naturalSlideHeight:t,totalSlides:a,...s},o)),c=()=>e.useContext(u);r.ArrowNext=p,r.ArrowPrevious=n,r.Pagination=C,r.Slide=S,r.Slider=f,r.displayName="Carousel";export{r as Carousel,c as useCarousel};
1
+ import{CarouselProvider as m,CarouselContext as u}from"pure-react-carousel";import*as e from"react";import"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{CarouselArrowNext as p,CarouselArrowPrevious as n}from"./CarouselArrows.js";import{CarouselPagination as C}from"./CarouselPagination.js";import{CarouselSlide as S}from"./CarouselSlide.js";import{CarouselSlider as f}from"./CarouselSlider.js";const r=({children:o,css:i,slideHeight:t,slideWidth:l,numSlides:a,...s})=>e.createElement(d,{css:i},e.createElement(m,{naturalSlideWidth:l,naturalSlideHeight:t,totalSlides:a,...s},o)),c=()=>e.useContext(u);r.ArrowNext=p,r.ArrowPrevious=n,r.Pagination=C,r.Slide=S,r.Slider=f,r.displayName="Carousel";export{r as Carousel,c as useCarousel};
2
2
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sources":["../../../src/components/carousel/Carousel.tsx"],"sourcesContent":["import { CarouselContext, CarouselProvider } from 'pure-react-carousel'\nimport * as React from 'react'\n\nimport { CSSWrapper } from '~/utilities'\n\nimport { CarouselArrowNext, CarouselArrowPrevious } from './CarouselArrows'\nimport { CarouselPagination } from './CarouselPagination'\nimport { CarouselSlide } from './CarouselSlide'\nimport { CarouselSlider } from './CarouselSlider'\n\ntype CarouselProps = {\n slideHeight: number\n slideWidth: number\n numSlides: number\n}\n\ntype CarouselSubComponents = {\n ArrowNext: typeof CarouselArrowNext\n ArrowPrevious: typeof CarouselArrowPrevious\n Pagination: typeof CarouselPagination\n Slide: typeof CarouselSlide\n Slider: typeof CarouselSlider\n}\n\nexport const Carousel: React.FC<\n CarouselProps &\n Omit<\n React.ComponentProps<typeof CarouselProvider>,\n 'naturalSlideWidth' | 'naturalSlideHeight' | 'totalSlides'\n > &\n React.ComponentProps<typeof CSSWrapper>\n> &\n CarouselSubComponents = ({\n children,\n css,\n slideHeight,\n slideWidth,\n numSlides,\n ...props\n}) => {\n return (\n <CSSWrapper css={css}>\n <CarouselProvider\n naturalSlideWidth={slideWidth}\n naturalSlideHeight={slideHeight}\n totalSlides={numSlides}\n {...props}\n >\n {children}\n </CarouselProvider>\n </CSSWrapper>\n )\n}\n\n/**\n * Documentation about the hook usage\n * https://github.com/express-labs/pure-react-carousel#hooks-and-usecontext\n */\nexport const useCarousel = () => React.useContext(CarouselContext)\n\nCarousel.ArrowNext = CarouselArrowNext\nCarousel.ArrowPrevious = CarouselArrowPrevious\nCarousel.Pagination = CarouselPagination\nCarousel.Slide = CarouselSlide\nCarousel.Slider = CarouselSlider\n\nCarousel.displayName = 'Carousel'\n"],"names":["Carousel","children","css","slideHeight","slideWidth","numSlides","props","React","CSSWrapper","CarouselProvider","useCarousel","CarouselContext","CarouselArrowNext","CarouselArrowPrevious","CarouselPagination","CarouselSlide","CarouselSlider"],"mappings":"kgBAwBa,MAAAA,EAQa,CAAC,CACzB,SAAAC,EACA,IAAAC,EACA,YAAAC,EACA,WAAAC,EACA,UAAAC,KACGC,CACL,IAEIC,EAAA,cAACC,EAAA,CAAW,IAAKN,CAAAA,EACfK,EAAA,cAACE,EAAA,CACC,kBAAmBL,EACnB,mBAAoBD,EACpB,YAAaE,EACZ,GAAGC,CAAAA,EAEHL,CACH,CACF,EAQSS,EAAc,IAAMH,EAAM,WAAWI,CAAe,EAEjEX,EAAS,UAAYY,EACrBZ,EAAS,cAAgBa,EACzBb,EAAS,WAAac,EACtBd,EAAS,MAAQe,EACjBf,EAAS,OAASgB,EAElBhB,EAAS,YAAc"}
1
+ {"version":3,"file":"Carousel.js","sources":["../../../src/components/carousel/Carousel.tsx"],"sourcesContent":["import { CarouselContext, CarouselProvider } from 'pure-react-carousel'\nimport * as React from 'react'\n\nimport { CSSWrapper } from '~/utilities'\n\nimport { CarouselArrowNext, CarouselArrowPrevious } from './CarouselArrows'\nimport { CarouselPagination } from './CarouselPagination'\nimport { CarouselSlide } from './CarouselSlide'\nimport { CarouselSlider } from './CarouselSlider'\n\ntype CarouselProps = {\n slideHeight: number\n slideWidth: number\n numSlides: number\n}\n\ntype CarouselSubComponents = {\n ArrowNext: typeof CarouselArrowNext\n ArrowPrevious: typeof CarouselArrowPrevious\n Pagination: typeof CarouselPagination\n Slide: typeof CarouselSlide\n Slider: typeof CarouselSlider\n}\n\nexport const Carousel: React.FC<\n CarouselProps &\n Omit<\n React.ComponentProps<typeof CarouselProvider>,\n 'naturalSlideWidth' | 'naturalSlideHeight' | 'totalSlides'\n > &\n React.ComponentProps<typeof CSSWrapper>\n> &\n CarouselSubComponents = ({\n children,\n css,\n slideHeight,\n slideWidth,\n numSlides,\n ...props\n}) => {\n return (\n <CSSWrapper css={css}>\n <CarouselProvider\n naturalSlideWidth={slideWidth}\n naturalSlideHeight={slideHeight}\n totalSlides={numSlides}\n {...props}\n >\n {children}\n </CarouselProvider>\n </CSSWrapper>\n )\n}\n\n/**\n * Documentation about the hook usage\n * https://github.com/express-labs/pure-react-carousel#hooks-and-usecontext\n */\nexport const useCarousel = () => React.useContext(CarouselContext)\n\nCarousel.ArrowNext = CarouselArrowNext\nCarousel.ArrowPrevious = CarouselArrowPrevious\nCarousel.Pagination = CarouselPagination\nCarousel.Slide = CarouselSlide\nCarousel.Slider = CarouselSlider\n\nCarousel.displayName = 'Carousel'\n"],"names":["Carousel","children","css","slideHeight","slideWidth","numSlides","props","React","CSSWrapper","CarouselProvider","useCarousel","CarouselContext","CarouselArrowNext","CarouselArrowPrevious","CarouselPagination","CarouselSlide","CarouselSlider"],"mappings":"mkBAwBa,MAAAA,EAQa,CAAC,CACzB,SAAAC,EACA,IAAAC,EACA,YAAAC,EACA,WAAAC,EACA,UAAAC,KACGC,CACL,IAEIC,EAAA,cAACC,EAAA,CAAW,IAAKN,CAAAA,EACfK,EAAA,cAACE,EAAA,CACC,kBAAmBL,EACnB,mBAAoBD,EACpB,YAAaE,EACZ,GAAGC,CAAAA,EAEHL,CACH,CACF,EAQSS,EAAc,IAAMH,EAAM,WAAWI,CAAe,EAEjEX,EAAS,UAAYY,EACrBZ,EAAS,cAAgBa,EACzBb,EAAS,WAAac,EACtBd,EAAS,MAAQe,EACjBf,EAAS,OAASgB,EAElBhB,EAAS,YAAc"}
@@ -157,6 +157,13 @@ export declare const CarouselPagination: import("@stitches/react/types/styled-co
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 @@ declare const StyledSlide: 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">;
@@ -159,6 +159,13 @@ export declare const CarouselSlider: import("@stitches/react/types/styled-compon
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 StyledCheckbox: import("@stitches/react/types/styled-component").S
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 @@ export declare const StyledChipContent: import("@stitches/react/types/styled-com
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">;
@@ -376,6 +383,13 @@ export declare const StyledChipIcon: import("@stitches/react/types/styled-compon
376
383
  "2": any;
377
384
  "3": any;
378
385
  };
386
+ ratios: {
387
+ "16-9": any;
388
+ "3-2": any;
389
+ "4-3": any;
390
+ "1-1": any;
391
+ "3-4": any;
392
+ };
379
393
  }, import("@stitches/react/types/config").DefaultThemeMap, {
380
394
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
381
395
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -592,6 +606,13 @@ export declare const StyledChipIcon: import("@stitches/react/types/styled-compon
592
606
  "2": any;
593
607
  "3": any;
594
608
  };
609
+ ratios: {
610
+ "16-9": any;
611
+ "3-2": any;
612
+ "4-3": any;
613
+ "1-1": any;
614
+ "3-4": any;
615
+ };
595
616
  }, import("@stitches/react/types/config").DefaultThemeMap, {
596
617
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
597
618
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -810,6 +831,13 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
810
831
  "2": any;
811
832
  "3": any;
812
833
  };
834
+ ratios: {
835
+ "16-9": any;
836
+ "3-2": any;
837
+ "4-3": any;
838
+ "1-1": any;
839
+ "3-4": any;
840
+ };
813
841
  }, import("@stitches/react/types/config").DefaultThemeMap, {
814
842
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
815
843
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1024,6 +1052,13 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
1024
1052
  "2": any;
1025
1053
  "3": any;
1026
1054
  };
1055
+ ratios: {
1056
+ "16-9": any;
1057
+ "3-2": any;
1058
+ "4-3": any;
1059
+ "1-1": any;
1060
+ "3-4": any;
1061
+ };
1027
1062
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1028
1063
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1029
1064
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1242,6 +1277,13 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
1242
1277
  "2": any;
1243
1278
  "3": any;
1244
1279
  };
1280
+ ratios: {
1281
+ "16-9": any;
1282
+ "3-2": any;
1283
+ "4-3": any;
1284
+ "1-1": any;
1285
+ "3-4": any;
1286
+ };
1245
1287
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1246
1288
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1247
1289
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1458,6 +1500,13 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
1458
1500
  "2": any;
1459
1501
  "3": any;
1460
1502
  };
1503
+ ratios: {
1504
+ "16-9": any;
1505
+ "3-2": any;
1506
+ "4-3": any;
1507
+ "1-1": any;
1508
+ "3-4": any;
1509
+ };
1461
1510
  }, import("@stitches/react/types/config").DefaultThemeMap, {
1462
1511
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
1463
1512
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;