@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
@@ -1,2 +1,2 @@
1
- import*as n from"react";import{styled as m}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={size:{xs:{fontSize:"$xs",lineHeight:1.6,...e(.4364)},sm:{fontSize:"$sm",lineHeight:1.53,...e(.4056)},md:{fontSize:"$md",lineHeight:1.5,...e(.3864)},lg:{fontSize:"$lg",lineHeight:1.52,...e(.3983)},xl:{fontSize:"$xl",lineHeight:1.42,...e(.3506)}},noCapsize:{true:{"&::before, &::after":{display:"none !important"}}}},f=({size:i,noCapsize:o})=>({...t.size[i],...t.noCapsize[`${o}`]}),r=m("p",{fontFamily:"$body",fontWeight:400,margin:0,"& > &":{"&:before, &:after":{display:"none"}},variants:t}),a=n.forwardRef(({size:i="md",...o},s)=>n.createElement(r,{size:i,...o,ref:s}));a.displayName="Text";export{r as StyledText,a as Text,f as getTextVariant,t as textVariants};
1
+ import*as n from"react";import{styled as m}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={size:{xs:{fontSize:"$xs",lineHeight:1.6,...e(.4364)},sm:{fontSize:"$sm",lineHeight:1.53,...e(.4056)},md:{fontSize:"$md",lineHeight:1.5,...e(.3864)},lg:{fontSize:"$lg",lineHeight:1.52,...e(.3983)},xl:{fontSize:"$xl",lineHeight:1.42,...e(.3506)}},noCapsize:{true:{"&::before, &::after":{display:"none !important"}}}},f=({size:i,noCapsize:o})=>({...t.size[i],...t.noCapsize[`${o}`]}),r=m("p",{fontFamily:"$body",fontWeight:400,margin:0,"& > &":{"&:before, &:after":{display:"none"}},variants:t}),a=n.forwardRef(({size:i="md",...o},s)=>n.createElement(r,{size:i,...o,ref:s}));a.displayName="Text";export{r as StyledText,a as Text,f as getTextVariant,t as textVariants};
2
2
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","sources":["../../../src/components/text/Text.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const textVariants = {\n size: {\n xs: { fontSize: '$xs', lineHeight: 1.6, ...capsize(0.4364) },\n sm: { fontSize: '$sm', lineHeight: 1.53, ...capsize(0.4056) },\n md: { fontSize: '$md', lineHeight: 1.5, ...capsize(0.3864) },\n lg: { fontSize: '$lg', lineHeight: 1.52, ...capsize(0.3983) },\n xl: { fontSize: '$xl', lineHeight: 1.42, ...capsize(0.3506) }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }\n}\n\nexport const getTextVariant: (options: {\n size: keyof typeof textVariants.size\n noCapsize?: boolean\n}) => CSS = ({ size, noCapsize }) => ({\n ...textVariants.size[size],\n ...textVariants.noCapsize[`${noCapsize}`]\n})\n\nexport const StyledText = styled('p', {\n fontFamily: '$body',\n fontWeight: 400,\n margin: 0,\n /** Allow nesting `<Text />` inside `<Text />` without forcing a new line and spacing. */\n '& > &': {\n '&:before, &:after': { display: 'none' }\n },\n variants: textVariants\n})\n\ntype TextProps = Override<\n React.ComponentProps<typeof StyledText>,\n {\n as?:\n | 'blockquote'\n | 'caption'\n | 'dd'\n | 'dt'\n | 'figcaption'\n | 'li'\n | 'p'\n | 'span'\n | 'legend'\n | React.ComponentType\n | React.ElementType\n }\n>\n\nexport const Text: React.ForwardRefExoticComponent<TextProps> =\n React.forwardRef(({ size = 'md', ...remainingProps }, ref) => (\n <StyledText size={size} {...remainingProps} ref={ref} />\n ))\n\nText.displayName = 'Text'\n"],"names":["textVariants","capsize","getTextVariant","size","noCapsize","StyledText","styled","Text","React","remainingProps","ref"],"mappings":"qPAMO,MAAMA,EAAe,CAC1B,KAAM,CACJ,GAAI,CAAE,SAAU,MAAO,WAAY,IAAK,GAAGC,EAAQ,KAAM,CAAE,EAC3D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,EAC5D,GAAI,CAAE,SAAU,MAAO,WAAY,IAAK,GAAGA,EAAQ,KAAM,CAAE,EAC3D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,EAC5D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,CAC9D,EACA,UAAW,CACT,KAAM,CACJ,sBAAuB,CAAE,QAAS,iBAAkB,CACtD,CACF,CACF,EAEaC,EAGD,CAAC,CAAE,KAAAC,EAAM,UAAAC,CAAU,KAAO,CACpC,GAAGJ,EAAa,KAAKG,GACrB,GAAGH,EAAa,UAAU,GAAGI,IAC/B,GAEaC,EAAaC,EAAO,IAAK,CACpC,WAAY,QACZ,WAAY,IACZ,OAAQ,EAER,QAAS,CACP,oBAAqB,CAAE,QAAS,MAAO,CACzC,EACA,SAAUN,CACZ,CAAC,EAoBYO,EACXC,EAAM,WAAW,CAAC,CAAE,KAAAL,EAAO,QAASM,CAAe,EAAGC,IACpDF,EAAA,cAACH,EAAW,CAAA,KAAMF,EAAO,GAAGM,EAAgB,IAAKC,CAAAA,CAAK,CACvD,EAEHH,EAAK,YAAc"}
1
+ {"version":3,"file":"Text.js","sources":["../../../src/components/text/Text.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport type { Override } from '~/utilities'\nimport { capsize } from '~/utilities'\n\nexport const textVariants = {\n size: {\n xs: { fontSize: '$xs', lineHeight: 1.6, ...capsize(0.4364) },\n sm: { fontSize: '$sm', lineHeight: 1.53, ...capsize(0.4056) },\n md: { fontSize: '$md', lineHeight: 1.5, ...capsize(0.3864) },\n lg: { fontSize: '$lg', lineHeight: 1.52, ...capsize(0.3983) },\n xl: { fontSize: '$xl', lineHeight: 1.42, ...capsize(0.3506) }\n },\n noCapsize: {\n true: {\n '&::before, &::after': { display: 'none !important' }\n }\n }\n}\n\nexport const getTextVariant: (options: {\n size: keyof typeof textVariants.size\n noCapsize?: boolean\n}) => CSS = ({ size, noCapsize }) => ({\n ...textVariants.size[size],\n ...textVariants.noCapsize[`${noCapsize}`]\n})\n\nexport const StyledText = styled('p', {\n fontFamily: '$body',\n fontWeight: 400,\n margin: 0,\n /** Allow nesting `<Text />` inside `<Text />` without forcing a new line and spacing. */\n '& > &': {\n '&:before, &:after': { display: 'none' }\n },\n variants: textVariants\n})\n\ntype TextProps = Override<\n React.ComponentProps<typeof StyledText>,\n {\n as?:\n | 'blockquote'\n | 'caption'\n | 'dd'\n | 'dt'\n | 'figcaption'\n | 'li'\n | 'p'\n | 'span'\n | 'legend'\n | React.ComponentType\n | React.ElementType\n }\n>\n\nexport const Text: React.ForwardRefExoticComponent<TextProps> =\n React.forwardRef(({ size = 'md', ...remainingProps }, ref) => (\n <StyledText size={size} {...remainingProps} ref={ref} />\n ))\n\nText.displayName = 'Text'\n"],"names":["textVariants","capsize","getTextVariant","size","noCapsize","StyledText","styled","Text","React","remainingProps","ref"],"mappings":"sTAMO,MAAMA,EAAe,CAC1B,KAAM,CACJ,GAAI,CAAE,SAAU,MAAO,WAAY,IAAK,GAAGC,EAAQ,KAAM,CAAE,EAC3D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,EAC5D,GAAI,CAAE,SAAU,MAAO,WAAY,IAAK,GAAGA,EAAQ,KAAM,CAAE,EAC3D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,EAC5D,GAAI,CAAE,SAAU,MAAO,WAAY,KAAM,GAAGA,EAAQ,KAAM,CAAE,CAC9D,EACA,UAAW,CACT,KAAM,CACJ,sBAAuB,CAAE,QAAS,iBAAkB,CACtD,CACF,CACF,EAEaC,EAGD,CAAC,CAAE,KAAAC,EAAM,UAAAC,CAAU,KAAO,CACpC,GAAGJ,EAAa,KAAKG,GACrB,GAAGH,EAAa,UAAU,GAAGI,IAC/B,GAEaC,EAAaC,EAAO,IAAK,CACpC,WAAY,QACZ,WAAY,IACZ,OAAQ,EAER,QAAS,CACP,oBAAqB,CAAE,QAAS,MAAO,CACzC,EACA,SAAUN,CACZ,CAAC,EAoBYO,EACXC,EAAM,WAAW,CAAC,CAAE,KAAAL,EAAO,QAASM,CAAe,EAAGC,IACpDF,EAAA,cAACH,EAAW,CAAA,KAAMF,EAAO,GAAGM,EAAgB,IAAKC,CAAAA,CAAK,CACvD,EAEHH,EAAK,YAAc"}
@@ -159,6 +159,13 @@ declare const StyledTextarea: import("@stitches/react/types/styled-component").S
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">;
@@ -161,6 +161,13 @@ export declare const StyledTile: import("@stitches/react/types/styled-component"
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">;
@@ -166,6 +166,13 @@ export declare const TileGroup: import("react").ForwardRefExoticComponent<Omit<P
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">;
@@ -1,7 +1,2 @@
1
- import { Tile as TileRoot } from './Tile';
2
- import { TileNoOverflowContainer } from './TileNoOverflowContainer';
3
- declare type TTile = typeof TileRoot & {
4
- NoOverflowContainer: typeof TileNoOverflowContainer;
5
- };
6
- export declare const Tile: TTile;
1
+ export { Tile } from './Tile';
7
2
  export { TileGroup } from './TileGroup';
@@ -164,6 +164,13 @@ declare const StyledTileInteractive: import("@stitches/react/types/styled-compon
164
164
  "2": any;
165
165
  "3": any;
166
166
  };
167
+ ratios: {
168
+ "16-9": any;
169
+ "3-2": any;
170
+ "4-3": any;
171
+ "1-1": any;
172
+ "3-4": any;
173
+ };
167
174
  }, import("@stitches/react/types/config").DefaultThemeMap, {
168
175
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
169
176
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -222,433 +229,7 @@ declare const StyledTileInteractive: import("@stitches/react/types/styled-compon
222
229
  } & {
223
230
  asWorkaround?: React.ElementType<any> | undefined;
224
231
  colorScheme?: import("../..").TcolorScheme | undefined;
225
- }, "colorScheme" | "border" | "borderRadius" | "css" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asWorkaround"> & React.RefAttributes<HTMLButtonElement>> & {
226
- NoOverflowContainer: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
227
- sm: string;
228
- md: string;
229
- lg: string;
230
- xl: string;
231
- reducedMotion: string;
232
- allowMotion: string;
233
- hover: string;
234
- }, import("@stitches/react/types/css-util").CSS<{
235
- sm: string;
236
- md: string;
237
- lg: string;
238
- xl: string;
239
- reducedMotion: string;
240
- allowMotion: string;
241
- hover: string;
242
- }, {
243
- colors: {
244
- textForeground: any;
245
- textSubtle: any;
246
- textPlaceholder: any;
247
- background: any;
248
- backgroundAccent: any;
249
- grey100: any;
250
- grey200: any;
251
- grey300: any;
252
- grey400: any;
253
- grey500: any;
254
- grey600: any;
255
- grey700: any;
256
- grey800: any;
257
- grey900: any;
258
- grey1000: any;
259
- grey1100: any;
260
- grey1200: any;
261
- blue100: any;
262
- blue200: any;
263
- blue300: any;
264
- blue400: any;
265
- blue500: any;
266
- blue600: any;
267
- blue700: any;
268
- blue800: any;
269
- blue900: any;
270
- blue1000: any;
271
- blue1100: any;
272
- blue1200: any;
273
- purple100: any;
274
- purple200: any;
275
- purple300: any;
276
- purple400: any;
277
- purple500: any;
278
- purple600: any;
279
- purple700: any;
280
- purple800: any;
281
- purple900: any;
282
- purple1000: any;
283
- purple1100: any;
284
- purple1200: any;
285
- tonal50: any;
286
- tonal100: any;
287
- tonal200: any;
288
- tonal300: any;
289
- tonal400: any;
290
- tonal500: any;
291
- tonal600: any;
292
- alpha100: any;
293
- alpha150: any;
294
- alpha200: any;
295
- alpha250: any;
296
- alpha600: any;
297
- primaryLight: any;
298
- primary: any;
299
- primaryMid: any;
300
- primaryDark: any;
301
- secondary: any;
302
- brandRed: any;
303
- brandRedAccent: any;
304
- brandGreen: any;
305
- brandGreenAccent: any;
306
- brandPurple: any;
307
- brandPurpleAccent: any;
308
- brandYellow: any;
309
- brandYellowAccent: any;
310
- successLight: any;
311
- success: any;
312
- successMid: any;
313
- successDark: any;
314
- dangerLight: any;
315
- danger: any;
316
- dangerMid: any;
317
- dangerDark: any;
318
- warningLight: any;
319
- warning: any;
320
- warningMid: any;
321
- warningDark: any;
322
- warningText: any;
323
- subjectEnglish: any;
324
- subjectMaths: any;
325
- subjectScience: any;
326
- subjectVerbalReasoning: any;
327
- subjectNonVerbalReasoning: any;
328
- subjectCreativeWriting: any;
329
- subjectExamSkills: any;
330
- };
331
- space: {
332
- "0": any;
333
- "1": any;
334
- "2": any;
335
- "3": any;
336
- "4": any;
337
- "5": any;
338
- "6": any;
339
- "7": any;
340
- "8": any;
341
- "9": any;
342
- "24": any;
343
- };
344
- fontSizes: {
345
- xs: any;
346
- sm: any;
347
- md: any;
348
- lg: any;
349
- xl: any;
350
- "2xl": any;
351
- "3xl": any;
352
- "4xl": any;
353
- };
354
- fonts: {
355
- sans: any;
356
- mono: any;
357
- display: any;
358
- body: any;
359
- };
360
- sizes: {
361
- "0": any;
362
- "1": any;
363
- "2": any;
364
- "3": any;
365
- "4": any;
366
- "5": any;
367
- "6": any;
368
- "7": any;
369
- "8": any;
370
- };
371
- radii: {
372
- "0": any;
373
- "1": any;
374
- "2": any;
375
- "3": any;
376
- round: any;
377
- };
378
- shadows: {
379
- "0": any;
380
- "1": any;
381
- "2": any;
382
- "3": any;
383
- };
384
- }, import("@stitches/react/types/config").DefaultThemeMap, {
385
- bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
386
- background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
387
- };
388
- size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
389
- height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
390
- width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
391
- };
392
- p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
393
- padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
394
- };
395
- pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
396
- paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
397
- };
398
- pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
399
- paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
400
- };
401
- pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
402
- paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
403
- };
404
- pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
405
- paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
406
- };
407
- px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
408
- paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
409
- paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
410
- };
411
- py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
412
- paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
413
- paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
414
- };
415
- m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
416
- margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
417
- };
418
- mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
419
- marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
420
- };
421
- mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
422
- marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
423
- };
424
- mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
425
- marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
426
- };
427
- ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
428
- marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
429
- };
430
- mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
431
- marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
432
- marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
433
- };
434
- my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
435
- marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
436
- marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
437
- };
438
- }>>, {}, {
439
- sm: string;
440
- md: string;
441
- lg: string;
442
- xl: string;
443
- reducedMotion: string;
444
- allowMotion: string;
445
- hover: string;
446
- }, import("@stitches/react/types/css-util").CSS<{
447
- sm: string;
448
- md: string;
449
- lg: string;
450
- xl: string;
451
- reducedMotion: string;
452
- allowMotion: string;
453
- hover: string;
454
- }, {
455
- colors: {
456
- textForeground: any;
457
- textSubtle: any;
458
- textPlaceholder: any;
459
- background: any;
460
- backgroundAccent: any;
461
- grey100: any;
462
- grey200: any;
463
- grey300: any;
464
- grey400: any;
465
- grey500: any;
466
- grey600: any;
467
- grey700: any;
468
- grey800: any;
469
- grey900: any;
470
- grey1000: any;
471
- grey1100: any;
472
- grey1200: any;
473
- blue100: any;
474
- blue200: any;
475
- blue300: any;
476
- blue400: any;
477
- blue500: any;
478
- blue600: any;
479
- blue700: any;
480
- blue800: any;
481
- blue900: any;
482
- blue1000: any;
483
- blue1100: any;
484
- blue1200: any;
485
- purple100: any;
486
- purple200: any;
487
- purple300: any;
488
- purple400: any;
489
- purple500: any;
490
- purple600: any;
491
- purple700: any;
492
- purple800: any;
493
- purple900: any;
494
- purple1000: any;
495
- purple1100: any;
496
- purple1200: any;
497
- tonal50: any;
498
- tonal100: any;
499
- tonal200: any;
500
- tonal300: any;
501
- tonal400: any;
502
- tonal500: any;
503
- tonal600: any;
504
- alpha100: any;
505
- alpha150: any;
506
- alpha200: any;
507
- alpha250: any;
508
- alpha600: any;
509
- primaryLight: any;
510
- primary: any;
511
- primaryMid: any;
512
- primaryDark: any;
513
- secondary: any;
514
- brandRed: any;
515
- brandRedAccent: any;
516
- brandGreen: any;
517
- brandGreenAccent: any;
518
- brandPurple: any;
519
- brandPurpleAccent: any;
520
- brandYellow: any;
521
- brandYellowAccent: any;
522
- successLight: any;
523
- success: any;
524
- successMid: any;
525
- successDark: any;
526
- dangerLight: any;
527
- danger: any;
528
- dangerMid: any;
529
- dangerDark: any;
530
- warningLight: any;
531
- warning: any;
532
- warningMid: any;
533
- warningDark: any;
534
- warningText: any;
535
- subjectEnglish: any;
536
- subjectMaths: any;
537
- subjectScience: any;
538
- subjectVerbalReasoning: any;
539
- subjectNonVerbalReasoning: any;
540
- subjectCreativeWriting: any;
541
- subjectExamSkills: any;
542
- };
543
- space: {
544
- "0": any;
545
- "1": any;
546
- "2": any;
547
- "3": any;
548
- "4": any;
549
- "5": any;
550
- "6": any;
551
- "7": any;
552
- "8": any;
553
- "9": any;
554
- "24": any;
555
- };
556
- fontSizes: {
557
- xs: any;
558
- sm: any;
559
- md: any;
560
- lg: any;
561
- xl: any;
562
- "2xl": any;
563
- "3xl": any;
564
- "4xl": any;
565
- };
566
- fonts: {
567
- sans: any;
568
- mono: any;
569
- display: any;
570
- body: any;
571
- };
572
- sizes: {
573
- "0": any;
574
- "1": any;
575
- "2": any;
576
- "3": any;
577
- "4": any;
578
- "5": any;
579
- "6": any;
580
- "7": any;
581
- "8": any;
582
- };
583
- radii: {
584
- "0": any;
585
- "1": any;
586
- "2": any;
587
- "3": any;
588
- round: any;
589
- };
590
- shadows: {
591
- "0": any;
592
- "1": any;
593
- "2": any;
594
- "3": any;
595
- };
596
- }, import("@stitches/react/types/config").DefaultThemeMap, {
597
- bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
598
- background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
599
- };
600
- size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
601
- height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
602
- width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
603
- };
604
- p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
605
- padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
606
- };
607
- pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
608
- paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
609
- };
610
- pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
611
- paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
612
- };
613
- pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
614
- paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
615
- };
616
- pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
617
- paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
618
- };
619
- px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
620
- paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
621
- paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
622
- };
623
- py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
624
- paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
625
- paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
626
- };
627
- m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
628
- margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
629
- };
630
- mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
631
- marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
632
- };
633
- mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
634
- marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
635
- };
636
- mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
637
- marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
638
- };
639
- ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
640
- marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
641
- };
642
- mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
643
- marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
644
- marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
645
- };
646
- my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
647
- marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
648
- marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
649
- };
650
- }>>;
651
- }, {}, {
232
+ }, "colorScheme" | "border" | "borderRadius" | "css" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asWorkaround"> & React.RefAttributes<HTMLButtonElement>>, {}, {
652
233
  sm: string;
653
234
  md: string;
654
235
  lg: string;
@@ -806,6 +387,13 @@ declare const StyledTileInteractive: import("@stitches/react/types/styled-compon
806
387
  "2": any;
807
388
  "3": any;
808
389
  };
390
+ ratios: {
391
+ "16-9": any;
392
+ "3-2": any;
393
+ "4-3": any;
394
+ "1-1": any;
395
+ "3-4": any;
396
+ };
809
397
  }, import("@stitches/react/types/config").DefaultThemeMap, {
810
398
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
811
399
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import o from"react";import{Tile as n}from"../tile/index.js";import{styled as l}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";const m=l(n,{"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{cursor:"pointer",transform:"translateY(0)",transition:"transform 250ms ease","&::after":{content:"",position:"absolute",inset:0,boxShadow:"$2",opacity:0,transition:"opacity 250ms ease-out",borderRadius:"inherit"},"&:hover":{transform:"translateY(-$space$0)","&::after":{opacity:1}},"&:active":{bg:"$base2"},"&:focus-visible":{...c()}}}),e=o.forwardRef(({onClick:r,href:t,type:a="button",...i},s)=>o.createElement(m,{...i,...t?{asWorkaround:"a",href:t,onClick:void 0}:{asWorkaround:"button",type:a,onClick:r},ref:s}));e.displayName="TileInteractive";export{e as TileInteractive};
1
+ import o from"react";import{Tile as n}from"../tile/Tile.js";import"../stack/Stack.js";import{styled as l}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";const m=l(n,{"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{cursor:"pointer",transform:"translateY(0)",transition:"transform 250ms ease","&::after":{content:"",position:"absolute",inset:0,boxShadow:"$2",opacity:0,transition:"opacity 250ms ease-out",borderRadius:"inherit"},"&:hover":{transform:"translateY(-$space$0)","&::after":{opacity:1}},"&:active":{bg:"$base2"},"&:focus-visible":{...c()}}}),r=o.forwardRef(({onClick:e,href:t,type:a="button",...i},s)=>o.createElement(m,{...i,...t?{asWorkaround:"a",href:t,onClick:void 0}:{asWorkaround:"button",type:a,onClick:e},ref:s}));r.displayName="TileInteractive";export{r as TileInteractive};
2
2
  //# sourceMappingURL=TileInteractive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TileInteractive.js","sources":["../../../src/components/tile-interactive/TileInteractive.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Tile } from '~/components/tile'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nconst StyledTileInteractive = styled(Tile, {\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n cursor: 'pointer',\n transform: 'translateY(0)',\n transition: 'transform 250ms ease',\n '&::after': {\n content: '',\n position: 'absolute',\n inset: 0,\n boxShadow: '$2',\n opacity: 0,\n transition: 'opacity 250ms ease-out',\n borderRadius: 'inherit'\n },\n '&:hover': {\n transform: 'translateY(-$space$0)',\n '&::after': {\n opacity: 1\n }\n },\n '&:active': {\n bg: '$base2'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ntype TTileInteractiveProps = React.ComponentProps<\n typeof StyledTileInteractive\n> & { type?: string } & NavigatorActions\n\nexport const TileInteractive = React.forwardRef<\n HTMLButtonElement,\n TTileInteractiveProps\n>(({ onClick, href, type = 'button', ...rest }, ref) => {\n const isLink = !!href\n const elementSpecificProps = isLink\n ? {\n asWorkaround: 'a' as React.ElementType,\n href,\n onClick: undefined\n }\n : { asWorkaround: 'button' as React.ElementType, type, onClick }\n\n return <StyledTileInteractive {...rest} {...elementSpecificProps} ref={ref} />\n})\n\nTileInteractive.displayName = 'TileInteractive'\n"],"names":["StyledTileInteractive","styled","Tile","focusVisibleStyleBlock","TileInteractive","React","onClick","href","type","rest","ref"],"mappings":"2TAOA,MAAMA,EAAwBC,EAAOC,EAAM,CACzC,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,OAAQ,UACR,UAAW,gBACX,WAAY,uBACZ,WAAY,CACV,QAAS,GACT,SAAU,WACV,MAAO,EACP,UAAW,KACX,QAAS,EACT,WAAY,yBACZ,aAAc,SAChB,EACA,UAAW,CACT,UAAW,wBACX,WAAY,CACV,QAAS,CACX,CACF,EACA,WAAY,CACV,GAAI,QACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,CACF,CAAC,EAMYC,EAAkBC,EAAM,WAGnC,CAAC,CAAE,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAO,YAAaC,CAAK,EAAGC,IAUvCL,EAAA,cAACL,EAAA,CAAuB,GAAGS,EAAO,GATxBF,EAEb,CACE,aAAc,IACd,KAAAA,EACA,QAAS,MACX,EACA,CAAE,aAAc,SAA+B,KAAAC,EAAM,QAAAF,CAAQ,EAEC,IAAKI,CAAK,CAAA,CAC7E,EAEDN,EAAgB,YAAc"}
1
+ {"version":3,"file":"TileInteractive.js","sources":["../../../src/components/tile-interactive/TileInteractive.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Tile } from '~/components/tile'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nconst StyledTileInteractive = styled(Tile, {\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n cursor: 'pointer',\n transform: 'translateY(0)',\n transition: 'transform 250ms ease',\n '&::after': {\n content: '',\n position: 'absolute',\n inset: 0,\n boxShadow: '$2',\n opacity: 0,\n transition: 'opacity 250ms ease-out',\n borderRadius: 'inherit'\n },\n '&:hover': {\n transform: 'translateY(-$space$0)',\n '&::after': {\n opacity: 1\n }\n },\n '&:active': {\n bg: '$base2'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ntype TTileInteractiveProps = React.ComponentProps<\n typeof StyledTileInteractive\n> & { type?: string } & NavigatorActions\n\nexport const TileInteractive = React.forwardRef<\n HTMLButtonElement,\n TTileInteractiveProps\n>(({ onClick, href, type = 'button', ...rest }, ref) => {\n const isLink = !!href\n const elementSpecificProps = isLink\n ? {\n asWorkaround: 'a' as React.ElementType,\n href,\n onClick: undefined\n }\n : { asWorkaround: 'button' as React.ElementType, type, onClick }\n\n return <StyledTileInteractive {...rest} {...elementSpecificProps} ref={ref} />\n})\n\nTileInteractive.displayName = 'TileInteractive'\n"],"names":["StyledTileInteractive","styled","Tile","focusVisibleStyleBlock","TileInteractive","React","onClick","href","type","rest","ref"],"mappings":"qZAOA,MAAMA,EAAwBC,EAAOC,EAAM,CACzC,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,OAAQ,UACR,UAAW,gBACX,WAAY,uBACZ,WAAY,CACV,QAAS,GACT,SAAU,WACV,MAAO,EACP,UAAW,KACX,QAAS,EACT,WAAY,yBACZ,aAAc,SAChB,EACA,UAAW,CACT,UAAW,wBACX,WAAY,CACV,QAAS,CACX,CACF,EACA,WAAY,CACV,GAAI,QACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,CACF,CAAC,EAMYC,EAAkBC,EAAM,WAGnC,CAAC,CAAE,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAO,YAAaC,CAAK,EAAGC,IAUvCL,EAAA,cAACL,EAAA,CAAuB,GAAGS,EAAO,GATxBF,EAEb,CACE,aAAc,IACd,KAAAA,EACA,QAAS,MACX,EACA,CAAE,aAAc,SAA+B,KAAAC,EAAM,QAAAF,CAAQ,EAEC,IAAKI,CAAK,CAAA,CAC7E,EAEDN,EAAgB,YAAc"}
@@ -164,6 +164,13 @@ declare const StyledTileToggleGroupItem: import("@stitches/react/types/styled-co
164
164
  "2": any;
165
165
  "3": any;
166
166
  };
167
+ ratios: {
168
+ "16-9": any;
169
+ "3-2": any;
170
+ "4-3": any;
171
+ "1-1": any;
172
+ "3-4": any;
173
+ };
167
174
  }, import("@stitches/react/types/config").DefaultThemeMap, {
168
175
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
169
176
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -381,6 +388,13 @@ declare const StyledTileToggleGroupItem: import("@stitches/react/types/styled-co
381
388
  "2": any;
382
389
  "3": any;
383
390
  };
391
+ ratios: {
392
+ "16-9": any;
393
+ "3-2": any;
394
+ "4-3": any;
395
+ "1-1": any;
396
+ "3-4": any;
397
+ };
384
398
  }, import("@stitches/react/types/config").DefaultThemeMap, {
385
399
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
386
400
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -596,6 +610,13 @@ declare const StyledTileToggleGroupItem: import("@stitches/react/types/styled-co
596
610
  "2": any;
597
611
  "3": any;
598
612
  };
613
+ ratios: {
614
+ "16-9": any;
615
+ "3-2": any;
616
+ "4-3": any;
617
+ "1-1": any;
618
+ "3-4": any;
619
+ };
599
620
  }, import("@stitches/react/types/config").DefaultThemeMap, {
600
621
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
601
622
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -167,6 +167,13 @@ export declare const TileToggleGroupRoot: React.ForwardRefExoticComponent<(Pick<
167
167
  "2": any;
168
168
  "3": any;
169
169
  };
170
+ ratios: {
171
+ "16-9": any;
172
+ "3-2": any;
173
+ "4-3": any;
174
+ "1-1": any;
175
+ "3-4": any;
176
+ };
170
177
  }, import("@stitches/react/types/config").DefaultThemeMap, {
171
178
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
172
179
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -392,6 +399,13 @@ export declare const TileToggleGroupRoot: React.ForwardRefExoticComponent<(Pick<
392
399
  "2": any;
393
400
  "3": any;
394
401
  };
402
+ ratios: {
403
+ "16-9": any;
404
+ "3-2": any;
405
+ "4-3": any;
406
+ "1-1": any;
407
+ "3-4": any;
408
+ };
395
409
  }, import("@stitches/react/types/config").DefaultThemeMap, {
396
410
  bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
397
411
  background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
@@ -1,2 +1,2 @@
1
- import*as i from"@radix-ui/react-toggle-group";import*as r from"react";import"../tile/index.js";import{TileGroup as n}from"../tile/TileGroup.js";const a=o=>o==="horizontal"?"row":o==="vertical"?"column":void 0,m=r.forwardRef((o,t)=>{const e=a(o.orientation);return r.createElement(n,{ref:t,as:i.Root,direction:e,align:!1,...o})});export{m as TileToggleGroupRoot};
1
+ import*as i from"@radix-ui/react-toggle-group";import*as r from"react";import"../tile/Tile.js";import{TileGroup as n}from"../tile/TileGroup.js";const a=o=>o==="horizontal"?"row":o==="vertical"?"column":void 0,m=r.forwardRef((o,t)=>{const e=a(o.orientation);return r.createElement(n,{ref:t,as:i.Root,direction:e,align:!1,...o})});export{m as TileToggleGroupRoot};
2
2
  //# sourceMappingURL=TileToggleGroupRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TileToggleGroupRoot.js","sources":["../../../src/components/tile-toggle-group/TileToggleGroupRoot.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { TileGroup } from '~/components/tile'\n\ntype TTileToggleGroupRootProps = React.ComponentProps<typeof TileGroup> &\n React.ComponentProps<typeof ToggleGroup.Root>\n\nconst orientationToDirection = (orientation) =>\n orientation === 'horizontal'\n ? 'row'\n : orientation === 'vertical'\n ? 'column'\n : undefined\n\nexport const TileToggleGroupRoot = React.forwardRef<\n HTMLDivElement,\n TTileToggleGroupRootProps\n>((props, ref) => {\n const direction = orientationToDirection(props.orientation)\n return (\n <TileGroup\n ref={ref}\n as={ToggleGroup.Root}\n direction={direction}\n align={false}\n {...props}\n />\n )\n})\n"],"names":["orientationToDirection","orientation","TileToggleGroupRoot","React","props","ref","direction","TileGroup","ToggleGroup"],"mappings":"iJAQA,MAAMA,EAA0BC,GAC9BA,IAAgB,aACZ,MACAA,IAAgB,WAChB,SACA,OAEOC,EAAsBC,EAAM,WAGvC,CAACC,EAAOC,IAAQ,CAChB,MAAMC,EAAYN,EAAuBI,EAAM,WAAW,EAC1D,OACED,EAAA,cAACI,EAAA,CACC,IAAKF,EACL,GAAIG,EAAY,KAChB,UAAWF,EACX,MAAO,GACN,GAAGF,CACN,CAAA,CAEJ,CAAC"}
1
+ {"version":3,"file":"TileToggleGroupRoot.js","sources":["../../../src/components/tile-toggle-group/TileToggleGroupRoot.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { TileGroup } from '~/components/tile'\n\ntype TTileToggleGroupRootProps = React.ComponentProps<typeof TileGroup> &\n React.ComponentProps<typeof ToggleGroup.Root>\n\nconst orientationToDirection = (orientation) =>\n orientation === 'horizontal'\n ? 'row'\n : orientation === 'vertical'\n ? 'column'\n : undefined\n\nexport const TileToggleGroupRoot = React.forwardRef<\n HTMLDivElement,\n TTileToggleGroupRootProps\n>((props, ref) => {\n const direction = orientationToDirection(props.orientation)\n return (\n <TileGroup\n ref={ref}\n as={ToggleGroup.Root}\n direction={direction}\n align={false}\n {...props}\n />\n )\n})\n"],"names":["orientationToDirection","orientation","TileToggleGroupRoot","React","props","ref","direction","TileGroup","ToggleGroup"],"mappings":"gJAQA,MAAMA,EAA0BC,GAC9BA,IAAgB,aACZ,MACAA,IAAgB,WAChB,SACA,OAEOC,EAAsBC,EAAM,WAGvC,CAACC,EAAOC,IAAQ,CAChB,MAAMC,EAAYN,EAAuBI,EAAM,WAAW,EAC1D,OACED,EAAA,cAACI,EAAA,CACC,IAAKF,EACL,GAAIG,EAAY,KAChB,UAAWF,EACX,MAAO,GACN,GAAGF,CACN,CAAA,CAEJ,CAAC"}