@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.
- package/CHANGELOG.md +7 -6
- package/dist/components/accordion/Accordion.d.ts +7 -0
- package/dist/components/accordion/AccordionContent.d.ts +7 -0
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionContent.js.map +1 -1
- package/dist/components/accordion/AccordionItem.d.ts +7 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +7 -0
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +7 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +7 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +7 -0
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +14 -0
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/badge/Badge.d.ts +14 -0
- package/dist/components/banner/BannerContainer.d.ts +14 -0
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +14 -0
- package/dist/components/box/Box.d.ts +7 -0
- package/dist/components/button/Button.d.ts +7 -0
- package/dist/components/calendar/Day.d.ts +7 -0
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +7 -0
- package/dist/components/carousel/CarouselSlide.d.ts +7 -0
- package/dist/components/carousel/CarouselSlider.d.ts +7 -0
- package/dist/components/checkbox/Checkbox.d.ts +7 -0
- package/dist/components/chip/Chip.d.ts +49 -0
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +14 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +14 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +14 -0
- package/dist/components/combobox/Combobox.d.ts +7 -0
- package/dist/components/combobox/ComboboxInput.d.ts +7 -0
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +7 -0
- package/dist/components/combobox/ComboboxOption.d.ts +7 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +7 -0
- package/dist/components/data-table/DataTableLoading.d.ts +7 -0
- package/dist/components/data-table/pagination/Pagination.d.ts +7 -0
- package/dist/components/dialog/Dialog.d.ts +7 -0
- package/dist/components/dialog/DialogBackground.d.ts +14 -0
- package/dist/components/dialog/DialogClose.d.ts +7 -0
- package/dist/components/dialog/DialogContent.d.ts +7 -0
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/divider/Divider.d.ts +7 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +7 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +7 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +7 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +7 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +7 -0
- package/dist/components/empty-state/EmptyState.d.ts +14 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +14 -0
- package/dist/components/empty-state/EmptyStateImage.d.ts +14 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +7 -0
- package/dist/components/flex/Flex.d.ts +7 -0
- package/dist/components/form/Form.d.ts +7 -0
- package/dist/components/grid/Grid.d.ts +7 -0
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/heading/Heading.d.ts +7 -0
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.d.ts +7 -0
- package/dist/components/image/Image.d.ts +7 -0
- package/dist/components/inline-message/InlineMessage.d.ts +14 -0
- package/dist/components/input/Input.d.ts +7 -0
- package/dist/components/label/Label.d.ts +7 -0
- package/dist/components/link/Link.d.ts +7 -0
- package/dist/components/list/List.d.ts +14 -0
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +7 -0
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +14 -0
- package/dist/components/notification-badge/NotificationBadge.d.ts +14 -0
- package/dist/components/popover/Popover.d.ts +7 -0
- package/dist/components/popover/PopoverContent.d.ts +7 -0
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/popover/PopoverContent.js.map +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +7 -0
- package/dist/components/radio-button/RadioButton.d.ts +7 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +7 -0
- package/dist/components/radio-card/RadioCard.d.ts +7 -0
- package/dist/components/section-message/SectionMessage.d.ts +49 -0
- package/dist/components/select/Select.d.ts +7 -0
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerContent.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js.map +1 -1
- package/dist/components/sidedrawer/SidedrawerFooter.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerHeader.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +7 -0
- package/dist/components/sidedrawer/SidedrawerOverlay.js +1 -1
- package/dist/components/sidedrawer/SidedrawerOverlay.js.map +1 -1
- package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +7 -0
- package/dist/components/slider/Slider.d.ts +7 -0
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/sortable/Handle.d.ts +14 -0
- package/dist/components/stack/Stack.d.ts +7 -0
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack/Stack.js.map +1 -1
- package/dist/components/stack-content/StackContent.d.ts +7 -0
- package/dist/components/stepper/StepperStepBullet.d.ts +14 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +14 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +14 -0
- package/dist/components/switch/Switch.d.ts +7 -0
- package/dist/components/table/Table.d.ts +7 -0
- package/dist/components/table/TableBody.d.ts +7 -0
- package/dist/components/table/TableCell.d.ts +7 -0
- package/dist/components/table/TableFooter.d.ts +7 -0
- package/dist/components/table/TableFooterCell.d.ts +7 -0
- package/dist/components/table/TableHeader.d.ts +7 -0
- package/dist/components/table/TableHeaderCell.d.ts +7 -0
- package/dist/components/table/TableRow.d.ts +14 -0
- package/dist/components/tabs/Tabs.d.ts +7 -0
- package/dist/components/tabs/TabsContent.d.ts +7 -0
- package/dist/components/tabs/TabsTrigger.d.ts +7 -0
- package/dist/components/tabs/TabsTrigger.js +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +7 -0
- package/dist/components/text/Text.d.ts +8 -1
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +7 -0
- package/dist/components/tile/Tile.d.ts +7 -0
- package/dist/components/tile/TileGroup.d.ts +7 -0
- package/dist/components/tile/index.d.ts +1 -6
- package/dist/components/tile-interactive/TileInteractive.d.ts +15 -427
- package/dist/components/tile-interactive/TileInteractive.js +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +21 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +14 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -1
- package/dist/components/toast/Toast.d.ts +7 -0
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +14 -0
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +14 -0
- package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +7 -0
- package/dist/components/toggle-group/index.d.ts +35 -0
- package/dist/components/tooltip/TooltipContent.d.ts +7 -0
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/tooltip/TooltipContent.js.map +1 -1
- package/dist/components/top-bar/TopBar.d.ts +7 -0
- package/dist/components/top-bar/TopBarBrand.d.ts +21 -0
- package/dist/components/video/Video.d.ts +14 -0
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +7 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +77 -0
- package/dist/stitches.js +1 -1
- package/dist/stitches.js.map +1 -1
- package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +7 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/{components/tile/TileNoOverflowContainer.d.ts → utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts} +20 -1
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js +2 -0
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.js.map +1 -0
- package/dist/utilities/no-overflow-wrapper/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/components/tile/TileNoOverflowContainer.js +0 -2
- package/dist/components/tile/TileNoOverflowContainer.js.map +0 -1
- package/dist/components/tile/index.js +0 -2
- package/dist/components/tile/index.js.map +0 -1
- package/dist/utilities/no-overflow-container/NoOverflowContainer.d.ts +0 -425
- package/dist/utilities/no-overflow-container/NoOverflowContainer.js +0 -2
- package/dist/utilities/no-overflow-container/NoOverflowContainer.js.map +0 -1
- package/dist/utilities/no-overflow-container/index.d.ts +0 -1
|
@@ -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,Portal as a}from"@radix-ui/react-dialog";import t from"react";import{MAX_Z_INDEX as r}from"../../constants/zIndices.js";import{styled as
|
|
1
|
+
import{Content as i,Portal as a}from"@radix-ui/react-dialog";import t from"react";import{MAX_Z_INDEX as r}from"../../constants/zIndices.js";import{styled as m}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{slideInLeft as n,slideOutLeft as d}from"../../utilities/style/keyframe-animations.js";import{SidedrawerOverlay as l}from"./SidedrawerOverlay.js";const s=m(i,{bg:"white",boxShadow:"$2",display:"flex",flexDirection:"column",position:"fixed",top:0,left:0,height:"100%",maxWidth:"304px",width:"100%",zIndex:r,"@allowMotion":{'&[data-state="open"]':{animation:`${n} 250ms ease-out`},'&[data-state="closed"]':{animation:`${d} 250ms ease-out`}}}),p=({children:e,...o})=>t.createElement(a,null,t.createElement(l,{"data-testid":"sidedrawer_overlay"}),t.createElement(s,{role:"navigation",...o},e));export{p as SidedrawerContent};
|
|
2
2
|
//# sourceMappingURL=SidedrawerContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidedrawerContent.js","sources":["../../../src/components/sidedrawer/SidedrawerContent.tsx"],"sourcesContent":["import { Content, Portal } from '@radix-ui/react-dialog'\nimport React from 'react'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport { slideInLeft, slideOutLeft } from '~/utilities'\n\nimport { SidedrawerOverlay } from './SidedrawerOverlay'\n\nconst StyledContent = styled(Content, {\n bg: 'white',\n boxShadow: '$2',\n display: 'flex',\n flexDirection: 'column',\n position: 'fixed',\n top: 0,\n left: 0,\n height: '100%',\n maxWidth: '304px',\n width: '100%',\n zIndex: MAX_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideInLeft} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOutLeft} 250ms ease-out`\n }\n }\n})\n\nexport const SidedrawerContent: React.FC<\n React.ComponentProps<typeof StyledContent>\n> = ({ children, ...remainingProps }) => (\n <Portal>\n <SidedrawerOverlay data-testid=\"sidedrawer_overlay\" />\n <StyledContent role=\"navigation\" {...remainingProps}>\n {children}\n </StyledContent>\n </Portal>\n)\n"],"names":["StyledContent","styled","Content","MAX_Z_INDEX","slideInLeft","slideOutLeft","SidedrawerContent","children","remainingProps","React","Portal","SidedrawerOverlay"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidedrawerContent.js","sources":["../../../src/components/sidedrawer/SidedrawerContent.tsx"],"sourcesContent":["import { Content, Portal } from '@radix-ui/react-dialog'\nimport React from 'react'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport { slideInLeft, slideOutLeft } from '~/utilities'\n\nimport { SidedrawerOverlay } from './SidedrawerOverlay'\n\nconst StyledContent = styled(Content, {\n bg: 'white',\n boxShadow: '$2',\n display: 'flex',\n flexDirection: 'column',\n position: 'fixed',\n top: 0,\n left: 0,\n height: '100%',\n maxWidth: '304px',\n width: '100%',\n zIndex: MAX_Z_INDEX,\n '@allowMotion': {\n '&[data-state=\"open\"]': {\n animation: `${slideInLeft} 250ms ease-out`\n },\n '&[data-state=\"closed\"]': {\n animation: `${slideOutLeft} 250ms ease-out`\n }\n }\n})\n\nexport const SidedrawerContent: React.FC<\n React.ComponentProps<typeof StyledContent>\n> = ({ children, ...remainingProps }) => (\n <Portal>\n <SidedrawerOverlay data-testid=\"sidedrawer_overlay\" />\n <StyledContent role=\"navigation\" {...remainingProps}>\n {children}\n </StyledContent>\n </Portal>\n)\n"],"names":["StyledContent","styled","Content","MAX_Z_INDEX","slideInLeft","slideOutLeft","SidedrawerContent","children","remainingProps","React","Portal","SidedrawerOverlay"],"mappings":"kdASA,MAAMA,EAAgBC,EAAOC,EAAS,CACpC,GAAI,QACJ,UAAW,KACX,QAAS,OACT,cAAe,SACf,SAAU,QACV,IAAK,EACL,KAAM,EACN,OAAQ,OACR,SAAU,QACV,MAAO,OACP,OAAQC,EACR,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGC,kBAChB,EACA,yBAA0B,CACxB,UAAW,GAAGC,kBAChB,CACF,CACF,CAAC,EAEYC,EAET,CAAC,CAAE,SAAAC,KAAaC,CAAe,IACjCC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACE,EAAA,CAAkB,cAAY,qBAAqB,EACpDF,EAAA,cAACT,EAAA,CAAc,KAAK,aAAc,GAAGQ,CAClCD,EAAAA,CACH,CACF"}
|
|
@@ -156,6 +156,13 @@ export declare const SidedrawerFooter: import("@stitches/react/types/styled-comp
|
|
|
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">;
|
|
@@ -157,6 +157,13 @@ declare const StyledHeader: import("@stitches/react/types/styled-component").Sty
|
|
|
157
157
|
"2": any;
|
|
158
158
|
"3": any;
|
|
159
159
|
};
|
|
160
|
+
ratios: {
|
|
161
|
+
"16-9": any;
|
|
162
|
+
"3-2": any;
|
|
163
|
+
"4-3": any;
|
|
164
|
+
"1-1": any;
|
|
165
|
+
"3-4": any;
|
|
166
|
+
};
|
|
160
167
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
161
168
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
162
169
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -157,6 +157,13 @@ export declare const SidedrawerOverlay: import("@stitches/react/types/styled-com
|
|
|
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{Overlay as o}from"@radix-ui/react-dialog";import{MAX_Z_INDEX as t}from"../../constants/zIndices.js";import{styled as a}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{fadeIn as e,fadeOut as i}from"../../utilities/style/keyframe-animations.js";const r=a(o,{animationFillMode:"forwards",bg:"$alpha600",cursor:"pointer",height:"100vh",left:"0",position:"fixed",top:"0",width:"100vw",zIndex:t-1,"@allowMotion":{'&[data-state="open"]':{animation:`${e} 250ms ease-out`},'&[data-state="closed"]':{animation:`${i} 550ms ease-out`}}});export{r as SidedrawerOverlay};
|
|
1
|
+
import{Overlay as o}from"@radix-ui/react-dialog";import{MAX_Z_INDEX as t}from"../../constants/zIndices.js";import{styled as a}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{fadeIn as e,fadeOut as i}from"../../utilities/style/keyframe-animations.js";const r=a(o,{animationFillMode:"forwards",bg:"$alpha600",cursor:"pointer",height:"100vh",left:"0",position:"fixed",top:"0",width:"100vw",zIndex:t-1,"@allowMotion":{'&[data-state="open"]':{animation:`${e} 250ms ease-out`},'&[data-state="closed"]':{animation:`${i} 550ms ease-out`}}});export{r as SidedrawerOverlay};
|
|
2
2
|
//# sourceMappingURL=SidedrawerOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidedrawerOverlay.js","sources":["../../../src/components/sidedrawer/SidedrawerOverlay.tsx"],"sourcesContent":["import { Overlay } from '@radix-ui/react-dialog'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nexport const SidedrawerOverlay = styled(Overlay, {\n animationFillMode: 'forwards',\n bg: '$alpha600',\n cursor: 'pointer',\n height: '100vh',\n left: '0',\n position: 'fixed',\n top: '0',\n width: '100vw',\n zIndex: MAX_Z_INDEX - 1,\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"],"names":["SidedrawerOverlay","styled","Overlay","MAX_Z_INDEX","fadeIn","fadeOut"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidedrawerOverlay.js","sources":["../../../src/components/sidedrawer/SidedrawerOverlay.tsx"],"sourcesContent":["import { Overlay } from '@radix-ui/react-dialog'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { styled } from '~/stitches'\nimport { fadeIn, fadeOut } from '~/utilities'\n\nexport const SidedrawerOverlay = styled(Overlay, {\n animationFillMode: 'forwards',\n bg: '$alpha600',\n cursor: 'pointer',\n height: '100vh',\n left: '0',\n position: 'fixed',\n top: '0',\n width: '100vw',\n zIndex: MAX_Z_INDEX - 1,\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"],"names":["SidedrawerOverlay","styled","Overlay","MAX_Z_INDEX","fadeIn","fadeOut"],"mappings":"4WAMO,MAAMA,EAAoBC,EAAOC,EAAS,CAC/C,kBAAmB,WACnB,GAAI,YACJ,OAAQ,UACR,OAAQ,QACR,KAAM,IACN,SAAU,QACV,IAAK,IACL,MAAO,QACP,OAAQC,EAAc,EACtB,eAAgB,CACd,uBAAwB,CACtB,UAAW,GAAGC,kBAChB,EACA,yBAA0B,CACxB,UAAW,GAAGC,kBAChB,CACF,CACF,CAAC"}
|
|
@@ -157,6 +157,13 @@ export declare const SidedrawerTrigger: import("@stitches/react/types/styled-com
|
|
|
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">;
|
|
@@ -161,6 +161,13 @@ declare const StyledSlider: import("@stitches/react/types/styled-component").Sty
|
|
|
161
161
|
"2": any;
|
|
162
162
|
"3": any;
|
|
163
163
|
};
|
|
164
|
+
ratios: {
|
|
165
|
+
"16-9": any;
|
|
166
|
+
"3-2": any;
|
|
167
|
+
"4-3": any;
|
|
168
|
+
"1-1": any;
|
|
169
|
+
"3-4": any;
|
|
170
|
+
};
|
|
164
171
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
165
172
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
166
173
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Track as f,Root as h,Range as b,Thumb as g}from"@radix-ui/react-slider";import*as e from"react";import{styled as t}from"../../stitches.js";import{CSSWrapper as v}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{SliderSteps as x}from"./SliderSteps.js";import{SliderValue as y}from"./SliderValue.js";const a=t(f,{borderRadius:"$round",flexGrow:1,position:"relative",'&[data-orientation="horizontal"]':{height:"$space$1"},'&[data-orientation="vertical"]':{width:"$space$1"}}),S=t(h,{alignItems:"center",display:"flex",position:"relative",touchAction:"none",userSelect:"none",cursor:"pointer",'&[data-orientation="horizontal"]':{height:"$1"},'&[data-orientation="vertical"]':{flexDirection:"column",width:"$1"},"&[data-disabled]":{cursor:"not-allowed",bg:"$tonal100"},variants:{theme:{light:{[`${a}`]:{bg:"#fff"}},tonal:{[`${a}`]:{bg:"$tonal200"}}}}}),w=t(b,{bg:"$primary",borderRadius:"$round",height:"100%",position:"absolute","&[data-disabled]":{bg:"$tonal200",cursor:"not-allowed"}}),R=t(g,{bg:"$primaryMid",borderRadius:"$round",display:"block",size:"$1","&:hover":{bg:"$primaryDark"},"&:focus":{outline:"2px solid $primaryMid",outlineOffset:"2px"},"&[data-disabled]":{bg:"$tonal200",cursor:"not-allowed"}}),o=e.forwardRef(({value:i,defaultValue:l,min:n=0,max:d=100,theme:
|
|
1
|
+
import{Track as f,Root as h,Range as b,Thumb as g}from"@radix-ui/react-slider";import*as e from"react";import{styled as t}from"../../stitches.js";import{CSSWrapper as v}from"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{SliderSteps as x}from"./SliderSteps.js";import{SliderValue as y}from"./SliderValue.js";const a=t(f,{borderRadius:"$round",flexGrow:1,position:"relative",'&[data-orientation="horizontal"]':{height:"$space$1"},'&[data-orientation="vertical"]':{width:"$space$1"}}),S=t(h,{alignItems:"center",display:"flex",position:"relative",touchAction:"none",userSelect:"none",cursor:"pointer",'&[data-orientation="horizontal"]':{height:"$1"},'&[data-orientation="vertical"]':{flexDirection:"column",width:"$1"},"&[data-disabled]":{cursor:"not-allowed",bg:"$tonal100"},variants:{theme:{light:{[`${a}`]:{bg:"#fff"}},tonal:{[`${a}`]:{bg:"$tonal200"}}}}}),w=t(b,{bg:"$primary",borderRadius:"$round",height:"100%",position:"absolute","&[data-disabled]":{bg:"$tonal200",cursor:"not-allowed"}}),R=t(g,{bg:"$primaryMid",borderRadius:"$round",display:"block",size:"$1","&:hover":{bg:"$primaryDark"},"&:focus":{outline:"2px solid $primaryMid",outlineOffset:"2px"},"&[data-disabled]":{bg:"$tonal200",cursor:"not-allowed"}}),o=e.forwardRef(({value:i,defaultValue:l,min:n=0,max:d=100,theme:m="tonal",css:s,children:u,...p},c)=>{const r=i||l;return e.createElement(v,{css:s},e.createElement(S,{theme:m,defaultValue:l,value:i,min:n,max:d,ref:c,...p},e.createElement(a,null,e.createElement(w,null)),(r==null?void 0:r.length)&&r.map((k,$)=>e.createElement(R,{key:`thumb${$}`}))),u)});o.Value=y,o.Steps=x,o.displayName="Slider";export{o as Slider};
|
|
2
2
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["import { Range, Root, Thumb, Track } from '@radix-ui/react-slider'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nimport { SliderSteps } from './SliderSteps'\nimport { SliderValue } from './SliderValue'\n\nconst StyledTrack = styled(Track, {\n borderRadius: '$round',\n flexGrow: 1,\n position: 'relative',\n '&[data-orientation=\"horizontal\"]': { height: '$space$1' },\n '&[data-orientation=\"vertical\"]': { width: '$space$1' }\n})\n\nconst StyledSlider = styled(Root, {\n alignItems: 'center',\n display: 'flex',\n position: 'relative',\n touchAction: 'none',\n userSelect: 'none',\n cursor: 'pointer',\n '&[data-orientation=\"horizontal\"]': {\n height: '$1'\n },\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$1'\n },\n '&[data-disabled]': { cursor: 'not-allowed', bg: '$tonal100' },\n variants: {\n theme: {\n light: {\n [`${StyledTrack}`]: { bg: '#fff' }\n },\n tonal: {\n [`${StyledTrack}`]: { bg: '$tonal200' }\n }\n }\n }\n})\n\nconst StyledRange = styled(Range, {\n bg: '$primary',\n borderRadius: '$round',\n height: '100%',\n position: 'absolute',\n '&[data-disabled]': { bg: '$tonal200', cursor: 'not-allowed' }\n})\n\nconst StyledThumb = styled(Thumb, {\n bg: '$primaryMid',\n borderRadius: '$round',\n display: 'block',\n size: '$1',\n '&:hover': {\n bg: '$primaryDark'\n },\n '&:focus': {\n outline: '2px solid $primaryMid',\n outlineOffset: '2px'\n },\n '&[data-disabled]': { bg: '$tonal200', cursor: 'not-allowed' }\n})\n\nexport type SliderProps = React.ComponentProps<typeof StyledSlider>\n\ntype SliderType = React.ForwardRefExoticComponent<SliderProps> & {\n Value: typeof SliderValue\n Steps: typeof SliderSteps\n}\n\nexport const Slider: SliderType = React.forwardRef(\n (\n {\n value,\n defaultValue,\n min = 0,\n max = 100,\n theme = 'tonal',\n css,\n children,\n ...remainingProps\n },\n ref\n ) => {\n const values = value || defaultValue\n return (\n <CSSWrapper css={css}>\n <StyledSlider\n theme={theme}\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n ref={ref}\n {...remainingProps}\n >\n <StyledTrack>\n <StyledRange />\n </StyledTrack>\n {values?.length &&\n values.map((_, i) => <StyledThumb key={`thumb${i}`} />)}\n </StyledSlider>\n {children}\n </CSSWrapper>\n )\n }\n) as SliderType\n\nSlider.Value = SliderValue\nSlider.Steps = SliderSteps\n\nSlider.displayName = 'Slider'\n"],"names":["StyledTrack","styled","Track","StyledSlider","Root","StyledRange","Range","StyledThumb","Thumb","Slider","React","value","defaultValue","min","max","theme","css","children","remainingProps","ref","values","CSSWrapper","_","i","SliderValue","SliderSteps"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["import { Range, Root, Thumb, Track } from '@radix-ui/react-slider'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { CSSWrapper } from '~/utilities'\n\nimport { SliderSteps } from './SliderSteps'\nimport { SliderValue } from './SliderValue'\n\nconst StyledTrack = styled(Track, {\n borderRadius: '$round',\n flexGrow: 1,\n position: 'relative',\n '&[data-orientation=\"horizontal\"]': { height: '$space$1' },\n '&[data-orientation=\"vertical\"]': { width: '$space$1' }\n})\n\nconst StyledSlider = styled(Root, {\n alignItems: 'center',\n display: 'flex',\n position: 'relative',\n touchAction: 'none',\n userSelect: 'none',\n cursor: 'pointer',\n '&[data-orientation=\"horizontal\"]': {\n height: '$1'\n },\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$1'\n },\n '&[data-disabled]': { cursor: 'not-allowed', bg: '$tonal100' },\n variants: {\n theme: {\n light: {\n [`${StyledTrack}`]: { bg: '#fff' }\n },\n tonal: {\n [`${StyledTrack}`]: { bg: '$tonal200' }\n }\n }\n }\n})\n\nconst StyledRange = styled(Range, {\n bg: '$primary',\n borderRadius: '$round',\n height: '100%',\n position: 'absolute',\n '&[data-disabled]': { bg: '$tonal200', cursor: 'not-allowed' }\n})\n\nconst StyledThumb = styled(Thumb, {\n bg: '$primaryMid',\n borderRadius: '$round',\n display: 'block',\n size: '$1',\n '&:hover': {\n bg: '$primaryDark'\n },\n '&:focus': {\n outline: '2px solid $primaryMid',\n outlineOffset: '2px'\n },\n '&[data-disabled]': { bg: '$tonal200', cursor: 'not-allowed' }\n})\n\nexport type SliderProps = React.ComponentProps<typeof StyledSlider>\n\ntype SliderType = React.ForwardRefExoticComponent<SliderProps> & {\n Value: typeof SliderValue\n Steps: typeof SliderSteps\n}\n\nexport const Slider: SliderType = React.forwardRef(\n (\n {\n value,\n defaultValue,\n min = 0,\n max = 100,\n theme = 'tonal',\n css,\n children,\n ...remainingProps\n },\n ref\n ) => {\n const values = value || defaultValue\n return (\n <CSSWrapper css={css}>\n <StyledSlider\n theme={theme}\n defaultValue={defaultValue}\n value={value}\n min={min}\n max={max}\n ref={ref}\n {...remainingProps}\n >\n <StyledTrack>\n <StyledRange />\n </StyledTrack>\n {values?.length &&\n values.map((_, i) => <StyledThumb key={`thumb${i}`} />)}\n </StyledSlider>\n {children}\n </CSSWrapper>\n )\n }\n) as SliderType\n\nSlider.Value = SliderValue\nSlider.Steps = SliderSteps\n\nSlider.displayName = 'Slider'\n"],"names":["StyledTrack","styled","Track","StyledSlider","Root","StyledRange","Range","StyledThumb","Thumb","Slider","React","value","defaultValue","min","max","theme","css","children","remainingProps","ref","values","CSSWrapper","_","i","SliderValue","SliderSteps"],"mappings":"6bASA,MAAMA,EAAcC,EAAOC,EAAO,CAChC,aAAc,SACd,SAAU,EACV,SAAU,WACV,mCAAoC,CAAE,OAAQ,UAAW,EACzD,iCAAkC,CAAE,MAAO,UAAW,CACxD,CAAC,EAEKC,EAAeF,EAAOG,EAAM,CAChC,WAAY,SACZ,QAAS,OACT,SAAU,WACV,YAAa,OACb,WAAY,OACZ,OAAQ,UACR,mCAAoC,CAClC,OAAQ,IACV,EACA,iCAAkC,CAChC,cAAe,SACf,MAAO,IACT,EACA,mBAAoB,CAAE,OAAQ,cAAe,GAAI,WAAY,EAC7D,SAAU,CACR,MAAO,CACL,MAAO,CACL,CAAC,GAAGJ,KAAgB,CAAE,GAAI,MAAO,CACnC,EACA,MAAO,CACL,CAAC,GAAGA,KAAgB,CAAE,GAAI,WAAY,CACxC,CACF,CACF,CACF,CAAC,EAEKK,EAAcJ,EAAOK,EAAO,CAChC,GAAI,WACJ,aAAc,SACd,OAAQ,OACR,SAAU,WACV,mBAAoB,CAAE,GAAI,YAAa,OAAQ,aAAc,CAC/D,CAAC,EAEKC,EAAcN,EAAOO,EAAO,CAChC,GAAI,cACJ,aAAc,SACd,QAAS,QACT,KAAM,KACN,UAAW,CACT,GAAI,cACN,EACA,UAAW,CACT,QAAS,wBACT,cAAe,KACjB,EACA,mBAAoB,CAAE,GAAI,YAAa,OAAQ,aAAc,CAC/D,CAAC,EASYC,EAAqBC,EAAM,WACtC,CACE,CACE,MAAAC,EACA,aAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,MAAAC,EAAQ,QACR,IAAAC,EACA,SAAAC,KACGC,CACL,EACAC,IACG,CACH,MAAMC,EAAST,GAASC,EACxB,OACEF,EAAA,cAACW,EAAA,CAAW,IAAKL,CACfN,EAAAA,EAAA,cAACP,EAAA,CACC,MAAOY,EACP,aAAcH,EACd,MAAOD,EACP,IAAKE,EACL,IAAKC,EACL,IAAKK,EACJ,GAAGD,CAEJR,EAAAA,EAAA,cAACV,EAAA,KACCU,EAAA,cAACL,EAAA,IAAY,CACf,GACCe,GAAA,KAAA,OAAAA,EAAQ,SACPA,EAAO,IAAI,CAACE,EAAGC,IAAMb,EAAA,cAACH,EAAA,CAAY,IAAK,QAAQgB,GAAK,CAAA,CAAE,CAC1D,EACCN,CACH,CAEJ,CACF,EAEAR,EAAO,MAAQe,EACff,EAAO,MAAQgB,EAEfhB,EAAO,YAAc"}
|
|
@@ -166,6 +166,13 @@ export declare const StyledHandle: 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">;
|
|
@@ -400,6 +407,13 @@ export declare const StyledHandle: import("@stitches/react/types/styled-componen
|
|
|
400
407
|
"2": any;
|
|
401
408
|
"3": any;
|
|
402
409
|
};
|
|
410
|
+
ratios: {
|
|
411
|
+
"16-9": any;
|
|
412
|
+
"3-2": any;
|
|
413
|
+
"4-3": any;
|
|
414
|
+
"1-1": any;
|
|
415
|
+
"3-4": any;
|
|
416
|
+
};
|
|
403
417
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
404
418
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
405
419
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -164,6 +164,13 @@ declare const StyledStack: import("@stitches/react/types/styled-component").Styl
|
|
|
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">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import{styled as f}from"../../stitches.js";import{createThemeVariants as m}from"../../utilities/create-theme-variants/createThemeVariants.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const w=f("div",{display:"flex","& > *":{m:0},variants:{direction:{row:{flexDirection:"row"},"row-reverse":{flexDirection:"row-reverse"},column:{flexDirection:"column"}},wrap:{wrap:{flexWrap:"wrap"},"no-wrap":{flexWrap:"no-wrap"},"wrap-reverse":{flexWrap:"wrap-reverse"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},false:{}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},false:{}},gap:{...m("space",{mt:"-$key",ml:"-$key","& > *":{mt:"$key",ml:"$key"}}),false:{}}}}),a=e.forwardRef(({css:n,gap:i=2,direction:r="row",wrap:o="wrap",justify:s="start",align:t,...l},p)=>e.createElement(c,{css:n},e.createElement(w,{ref:p,direction:r,gap:i,wrap:o,justify:s,align:typeof t>"u"&&r!=="column"?"center":t,...l})));a.displayName="Stack";export{a as Stack};
|
|
1
|
+
import*as e from"react";import{styled as f}from"../../stitches.js";import{createThemeVariants as m}from"../../utilities/create-theme-variants/createThemeVariants.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";const w=f("div",{display:"flex","& > *":{m:0},variants:{direction:{row:{flexDirection:"row"},"row-reverse":{flexDirection:"row-reverse"},column:{flexDirection:"column"}},wrap:{wrap:{flexWrap:"wrap"},"no-wrap":{flexWrap:"no-wrap"},"wrap-reverse":{flexWrap:"wrap-reverse"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},false:{}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},false:{}},gap:{...m("space",{mt:"-$key",ml:"-$key","& > *":{mt:"$key",ml:"$key"}}),false:{}}}}),a=e.forwardRef(({css:n,gap:i=2,direction:r="row",wrap:o="wrap",justify:s="start",align:t,...l},p)=>e.createElement(c,{css:n},e.createElement(w,{ref:p,direction:r,gap:i,wrap:o,justify:s,align:typeof t>"u"&&r!=="column"?"center":t,...l})));a.displayName="Stack";export{a as Stack};
|
|
2
2
|
//# sourceMappingURL=Stack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sources":["../../../src/components/stack/Stack.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { createThemeVariants } from '~/utilities'\nimport { CSSWrapper } from '~/utilities/css-wrapper'\n\nconst StyledStack = styled('div', {\n display: 'flex',\n '& > *': {\n m: 0\n },\n variants: {\n direction: {\n row: {\n flexDirection: 'row'\n },\n 'row-reverse': {\n flexDirection: 'row-reverse'\n },\n column: {\n flexDirection: 'column'\n }\n },\n wrap: {\n wrap: {\n flexWrap: 'wrap'\n },\n 'no-wrap': {\n flexWrap: 'no-wrap'\n },\n 'wrap-reverse': {\n flexWrap: 'wrap-reverse'\n }\n },\n justify: {\n start: { justifyContent: 'flex-start' },\n center: { justifyContent: 'center' },\n end: { justifyContent: 'flex-end' },\n false: {}\n },\n align: {\n start: { alignItems: 'flex-start' },\n center: { alignItems: 'center' },\n end: { alignItems: 'flex-end' },\n false: {}\n },\n gap: {\n ...createThemeVariants('space', {\n mt: '-$key',\n ml: '-$key',\n '& > *': {\n mt: '$key',\n ml: '$key'\n }\n }),\n false: {}\n }\n }\n})\n\ntype StackPropsType = React.ComponentProps<typeof StyledStack> & {\n css?: CSS\n as?: any\n} // (!) `css` and `as` are both props that come from `stitches`. It would be better to figure out and export the appropriate type for them in stitches!\n\nexport const Stack: React.ForwardRefExoticComponent<StackPropsType> =\n React.forwardRef(\n (\n {\n css,\n gap = 2,\n direction = 'row',\n wrap = 'wrap',\n justify = 'start',\n align,\n ...remainingProps\n },\n ref\n ) => {\n return (\n <CSSWrapper css={css}>\n <StyledStack\n ref={ref}\n direction={direction}\n gap={gap}\n wrap={wrap}\n justify={justify}\n align={\n typeof align === 'undefined' && direction !== 'column'\n ? 'center'\n : align\n }\n {...remainingProps}\n />\n </CSSWrapper>\n )\n }\n )\n\nStack.displayName = 'Stack'\n"],"names":["StyledStack","styled","createThemeVariants","Stack","React","css","gap","direction","wrap","justify","align","remainingProps","ref","CSSWrapper"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stack.js","sources":["../../../src/components/stack/Stack.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { createThemeVariants } from '~/utilities'\nimport { CSSWrapper } from '~/utilities/css-wrapper'\n\nconst StyledStack = styled('div', {\n display: 'flex',\n '& > *': {\n m: 0\n },\n variants: {\n direction: {\n row: {\n flexDirection: 'row'\n },\n 'row-reverse': {\n flexDirection: 'row-reverse'\n },\n column: {\n flexDirection: 'column'\n }\n },\n wrap: {\n wrap: {\n flexWrap: 'wrap'\n },\n 'no-wrap': {\n flexWrap: 'no-wrap'\n },\n 'wrap-reverse': {\n flexWrap: 'wrap-reverse'\n }\n },\n justify: {\n start: { justifyContent: 'flex-start' },\n center: { justifyContent: 'center' },\n end: { justifyContent: 'flex-end' },\n false: {}\n },\n align: {\n start: { alignItems: 'flex-start' },\n center: { alignItems: 'center' },\n end: { alignItems: 'flex-end' },\n false: {}\n },\n gap: {\n ...createThemeVariants('space', {\n mt: '-$key',\n ml: '-$key',\n '& > *': {\n mt: '$key',\n ml: '$key'\n }\n }),\n false: {}\n }\n }\n})\n\ntype StackPropsType = React.ComponentProps<typeof StyledStack> & {\n css?: CSS\n as?: any\n} // (!) `css` and `as` are both props that come from `stitches`. It would be better to figure out and export the appropriate type for them in stitches!\n\nexport const Stack: React.ForwardRefExoticComponent<StackPropsType> =\n React.forwardRef(\n (\n {\n css,\n gap = 2,\n direction = 'row',\n wrap = 'wrap',\n justify = 'start',\n align,\n ...remainingProps\n },\n ref\n ) => {\n return (\n <CSSWrapper css={css}>\n <StyledStack\n ref={ref}\n direction={direction}\n gap={gap}\n wrap={wrap}\n justify={justify}\n align={\n typeof align === 'undefined' && direction !== 'column'\n ? 'center'\n : align\n }\n {...remainingProps}\n />\n </CSSWrapper>\n )\n }\n )\n\nStack.displayName = 'Stack'\n"],"names":["StyledStack","styled","createThemeVariants","Stack","React","css","gap","direction","wrap","justify","align","remainingProps","ref","CSSWrapper"],"mappings":"mXAMA,MAAMA,EAAcC,EAAO,MAAO,CAChC,QAAS,OACT,QAAS,CACP,EAAG,CACL,EACA,SAAU,CACR,UAAW,CACT,IAAK,CACH,cAAe,KACjB,EACA,cAAe,CACb,cAAe,aACjB,EACA,OAAQ,CACN,cAAe,QACjB,CACF,EACA,KAAM,CACJ,KAAM,CACJ,SAAU,MACZ,EACA,UAAW,CACT,SAAU,SACZ,EACA,eAAgB,CACd,SAAU,cACZ,CACF,EACA,QAAS,CACP,MAAO,CAAE,eAAgB,YAAa,EACtC,OAAQ,CAAE,eAAgB,QAAS,EACnC,IAAK,CAAE,eAAgB,UAAW,EAClC,MAAO,CACT,CAAA,EACA,MAAO,CACL,MAAO,CAAE,WAAY,YAAa,EAClC,OAAQ,CAAE,WAAY,QAAS,EAC/B,IAAK,CAAE,WAAY,UAAW,EAC9B,MAAO,CACT,CAAA,EACA,IAAK,CACH,GAAGC,EAAoB,QAAS,CAC9B,GAAI,QACJ,GAAI,QACJ,QAAS,CACP,GAAI,OACJ,GAAI,MACN,CACF,CAAC,EACD,MAAO,EACT,CACF,CACF,CAAC,EAOYC,EACXC,EAAM,WACJ,CACE,CACE,IAAAC,EACA,IAAAC,EAAM,EACN,UAAAC,EAAY,MACZ,KAAAC,EAAO,OACP,QAAAC,EAAU,QACV,MAAAC,KACGC,CACL,EACAC,IAGER,EAAA,cAACS,EAAA,CAAW,IAAKR,GACfD,EAAA,cAACJ,EAAA,CACC,IAAKY,EACL,UAAWL,EACX,IAAKD,EACL,KAAME,EACN,QAASC,EACT,MACE,OAAOC,EAAU,KAAeH,IAAc,SAC1C,SACAG,EAEL,GAAGC,EACN,CACF,CAGN,EAEFR,EAAM,YAAc"}
|
|
@@ -158,6 +158,13 @@ declare const StyledStackContent: import("@stitches/react/types/styled-component
|
|
|
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">;
|
|
@@ -156,6 +156,13 @@ export declare const StepperStepBullet: import("@stitches/react/types/styled-com
|
|
|
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">;
|
|
@@ -370,6 +377,13 @@ export declare const StepperStepBullet: import("@stitches/react/types/styled-com
|
|
|
370
377
|
"2": any;
|
|
371
378
|
"3": any;
|
|
372
379
|
};
|
|
380
|
+
ratios: {
|
|
381
|
+
"16-9": any;
|
|
382
|
+
"3-2": any;
|
|
383
|
+
"4-3": any;
|
|
384
|
+
"1-1": any;
|
|
385
|
+
"3-4": any;
|
|
386
|
+
};
|
|
373
387
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
374
388
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
375
389
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -156,6 +156,13 @@ export declare const StepperStepContainer: import("@stitches/react/types/styled-
|
|
|
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">;
|
|
@@ -373,6 +380,13 @@ export declare const StepperStepContainer: import("@stitches/react/types/styled-
|
|
|
373
380
|
"2": any;
|
|
374
381
|
"3": any;
|
|
375
382
|
};
|
|
383
|
+
ratios: {
|
|
384
|
+
"16-9": any;
|
|
385
|
+
"3-2": any;
|
|
386
|
+
"4-3": any;
|
|
387
|
+
"1-1": any;
|
|
388
|
+
"3-4": any;
|
|
389
|
+
};
|
|
376
390
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
377
391
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
378
392
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -163,6 +163,13 @@ export declare const StepperStepLabel: import("@stitches/react/types/styled-comp
|
|
|
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">;
|
|
@@ -381,6 +388,13 @@ export declare const StepperStepLabel: import("@stitches/react/types/styled-comp
|
|
|
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">;
|
|
@@ -158,6 +158,13 @@ declare const StyledSwitch: import("@stitches/react/types/styled-component").Sty
|
|
|
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">;
|
|
@@ -178,6 +178,13 @@ declare const StyledTable: import("@stitches/react/types/styled-component").Styl
|
|
|
178
178
|
"2": any;
|
|
179
179
|
"3": any;
|
|
180
180
|
};
|
|
181
|
+
ratios: {
|
|
182
|
+
"16-9": any;
|
|
183
|
+
"3-2": any;
|
|
184
|
+
"4-3": any;
|
|
185
|
+
"1-1": any;
|
|
186
|
+
"3-4": any;
|
|
187
|
+
};
|
|
181
188
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
182
189
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
183
190
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -159,6 +159,13 @@ declare const StyledTableBody: 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">;
|
|
@@ -156,6 +156,13 @@ export declare const TableCell: import("@stitches/react/types/styled-component")
|
|
|
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">;
|
|
@@ -156,6 +156,13 @@ export declare const TableFooter: import("@stitches/react/types/styled-component
|
|
|
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">;
|
|
@@ -156,6 +156,13 @@ export declare const TableFooterCell: import("@stitches/react/types/styled-compo
|
|
|
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">;
|
|
@@ -164,6 +164,13 @@ declare const StyledTableHeader: import("@stitches/react/types/styled-component"
|
|
|
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">;
|
|
@@ -156,6 +156,13 @@ export declare const TableHeaderCell: import("@stitches/react/types/styled-compo
|
|
|
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">;
|
|
@@ -157,6 +157,13 @@ export declare const StyledRow: import("@stitches/react/types/styled-component")
|
|
|
157
157
|
"2": any;
|
|
158
158
|
"3": any;
|
|
159
159
|
};
|
|
160
|
+
ratios: {
|
|
161
|
+
"16-9": any;
|
|
162
|
+
"3-2": any;
|
|
163
|
+
"4-3": any;
|
|
164
|
+
"1-1": any;
|
|
165
|
+
"3-4": any;
|
|
166
|
+
};
|
|
160
167
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
161
168
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
162
169
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -373,6 +380,13 @@ export declare const TableRow: React.ForwardRefExoticComponent<Pick<Omit<Pick<Re
|
|
|
373
380
|
"2": any;
|
|
374
381
|
"3": any;
|
|
375
382
|
};
|
|
383
|
+
ratios: {
|
|
384
|
+
"16-9": any;
|
|
385
|
+
"3-2": any;
|
|
386
|
+
"4-3": any;
|
|
387
|
+
"1-1": any;
|
|
388
|
+
"3-4": any;
|
|
389
|
+
};
|
|
376
390
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
377
391
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
378
392
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -161,6 +161,13 @@ declare const StyledRoot: import("@stitches/react/types/styled-component").Style
|
|
|
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">;
|
|
@@ -157,6 +157,13 @@ export declare const TabsContent: import("@stitches/react/types/styled-component
|
|
|
157
157
|
"2": any;
|
|
158
158
|
"3": any;
|
|
159
159
|
};
|
|
160
|
+
ratios: {
|
|
161
|
+
"16-9": any;
|
|
162
|
+
"3-2": any;
|
|
163
|
+
"4-3": any;
|
|
164
|
+
"1-1": any;
|
|
165
|
+
"3-4": any;
|
|
166
|
+
};
|
|
160
167
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
161
168
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
162
169
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -157,6 +157,13 @@ declare const StyledTabsTrigger: import("@stitches/react/types/styled-component"
|
|
|
157
157
|
"2": any;
|
|
158
158
|
"3": any;
|
|
159
159
|
};
|
|
160
|
+
ratios: {
|
|
161
|
+
"16-9": any;
|
|
162
|
+
"3-2": any;
|
|
163
|
+
"4-3": any;
|
|
164
|
+
"1-1": any;
|
|
165
|
+
"3-4": any;
|
|
166
|
+
};
|
|
160
167
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
161
168
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
162
169
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Trigger as c}from"@radix-ui/react-tabs";import*as e from"react";import{styled as t}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"color2k";import{focusVisibleStyleBlock as n}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Text as l}from"../text/Text.js";const o=t("div",{position:"absolute",inset:0,height:"calc(100% + 2px)",opacity:0,bg:"$interactive1"}),s=t(c,{background:"none",border:"none",cursor:"pointer",flexShrink:0,p:"$4",userSelect:"none",borderBottom:"2px solid transparent",position:"relative",'&[data-state="active"]':{color:"$interactive1",fontWeight:600,letterSpacing:"-0.005em",borderColor:"currentColor"},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover, &:focus-visible":{color:"$interactive2",[`& ${o}`]:{opacity:.07}},"&:active":{color:"$interactive3"},"&:focus-visible":{...n()}}}),r=({children:i,...a})=>e.createElement(s,{...a},e.createElement(l,{size:"sm",as:"span"},i),e.createElement(o,null));r.displayName="TabsTrigger";export{r as TabsTrigger};
|
|
1
|
+
import{Trigger as c}from"@radix-ui/react-tabs";import*as e from"react";import{styled as t}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as n}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Text as l}from"../text/Text.js";const o=t("div",{position:"absolute",inset:0,height:"calc(100% + 2px)",opacity:0,bg:"$interactive1"}),s=t(c,{background:"none",border:"none",cursor:"pointer",flexShrink:0,p:"$4",userSelect:"none",borderBottom:"2px solid transparent",position:"relative",'&[data-state="active"]':{color:"$interactive1",fontWeight:600,letterSpacing:"-0.005em",borderColor:"currentColor"},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover, &:focus-visible":{color:"$interactive2",[`& ${o}`]:{opacity:.07}},"&:active":{color:"$interactive3"},"&:focus-visible":{...n()}}}),r=({children:i,...a})=>e.createElement(s,{...a},e.createElement(l,{size:"sm",as:"span"},i),e.createElement(o,null));r.displayName="TabsTrigger";export{r as TabsTrigger};
|
|
2
2
|
//# sourceMappingURL=TabsTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsTrigger.js","sources":["../../../src/components/tabs/TabsTrigger.tsx"],"sourcesContent":["import { Trigger } from '@radix-ui/react-tabs'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Text } from '../text'\n\nconst StyledTabsTriggerHoverBackground = styled('div', {\n position: 'absolute',\n inset: 0,\n height: 'calc(100% + 2px)',\n opacity: 0,\n bg: '$interactive1'\n})\n\nconst StyledTabsTrigger = styled(Trigger, {\n background: 'none',\n border: 'none',\n cursor: 'pointer',\n flexShrink: 0,\n p: '$4',\n userSelect: 'none',\n borderBottom: '2px solid transparent',\n position: 'relative',\n '&[data-state=\"active\"]': {\n color: '$interactive1',\n fontWeight: 600,\n letterSpacing: '-0.005em',\n borderColor: 'currentColor'\n },\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:hover, &:focus-visible': {\n color: '$interactive2',\n [`& ${StyledTabsTriggerHoverBackground}`]: {\n opacity: 0.07\n }\n },\n '&:active': {\n color: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ninterface TabsTriggerProps\n extends React.ComponentProps<typeof StyledTabsTrigger> {\n value: string\n}\n\nexport const TabsTrigger: React.FC<TabsTriggerProps> = ({\n children,\n ...rest\n}) => (\n <StyledTabsTrigger {...rest}>\n <Text size=\"sm\" as=\"span\">\n {children}\n </Text>\n <StyledTabsTriggerHoverBackground />\n </StyledTabsTrigger>\n)\n\nTabsTrigger.displayName = 'TabsTrigger'\n"],"names":["StyledTabsTriggerHoverBackground","styled","StyledTabsTrigger","Trigger","focusVisibleStyleBlock","TabsTrigger","children","rest","React","Text"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabsTrigger.js","sources":["../../../src/components/tabs/TabsTrigger.tsx"],"sourcesContent":["import { Trigger } from '@radix-ui/react-tabs'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Text } from '../text'\n\nconst StyledTabsTriggerHoverBackground = styled('div', {\n position: 'absolute',\n inset: 0,\n height: 'calc(100% + 2px)',\n opacity: 0,\n bg: '$interactive1'\n})\n\nconst StyledTabsTrigger = styled(Trigger, {\n background: 'none',\n border: 'none',\n cursor: 'pointer',\n flexShrink: 0,\n p: '$4',\n userSelect: 'none',\n borderBottom: '2px solid transparent',\n position: 'relative',\n '&[data-state=\"active\"]': {\n color: '$interactive1',\n fontWeight: 600,\n letterSpacing: '-0.005em',\n borderColor: 'currentColor'\n },\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n '&:hover, &:focus-visible': {\n color: '$interactive2',\n [`& ${StyledTabsTriggerHoverBackground}`]: {\n opacity: 0.07\n }\n },\n '&:active': {\n color: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ninterface TabsTriggerProps\n extends React.ComponentProps<typeof StyledTabsTrigger> {\n value: string\n}\n\nexport const TabsTrigger: React.FC<TabsTriggerProps> = ({\n children,\n ...rest\n}) => (\n <StyledTabsTrigger {...rest}>\n <Text size=\"sm\" as=\"span\">\n {children}\n </Text>\n <StyledTabsTriggerHoverBackground />\n </StyledTabsTrigger>\n)\n\nTabsTrigger.displayName = 'TabsTrigger'\n"],"names":["StyledTabsTriggerHoverBackground","styled","StyledTabsTrigger","Trigger","focusVisibleStyleBlock","TabsTrigger","children","rest","React","Text"],"mappings":"6aAQA,MAAMA,EAAmCC,EAAO,MAAO,CACrD,SAAU,WACV,MAAO,EACP,OAAQ,mBACR,QAAS,EACT,GAAI,eACN,CAAC,EAEKC,EAAoBD,EAAOE,EAAS,CACxC,WAAY,OACZ,OAAQ,OACR,OAAQ,UACR,WAAY,EACZ,EAAG,KACH,WAAY,OACZ,aAAc,wBACd,SAAU,WACV,yBAA0B,CACxB,MAAO,gBACP,WAAY,IACZ,cAAe,WACf,YAAa,cACf,EACA,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,2BAA4B,CAC1B,MAAO,gBACP,CAAC,KAAKH,KAAqC,CACzC,QAAS,GACX,CACF,EACA,WAAY,CACV,MAAO,eACT,EACA,kBAAmB,CACjB,GAAGI,GACL,CACF,CACF,CAAC,EAOYC,EAA0C,CAAC,CACtD,SAAAC,KACGC,CACL,IACEC,EAAA,cAACN,EAAA,CAAmB,GAAGK,GACrBC,EAAA,cAACC,EAAA,CAAK,KAAK,KAAK,GAAG,MAAA,EAChBH,CACH,EACAE,EAAA,cAACR,EAAA,IAAiC,CACpC,EAGFK,EAAY,YAAc"}
|
|
@@ -158,6 +158,13 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
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">;
|
|
@@ -197,6 +197,13 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
|
|
|
197
197
|
"2": any;
|
|
198
198
|
"3": any;
|
|
199
199
|
};
|
|
200
|
+
ratios: {
|
|
201
|
+
"16-9": any;
|
|
202
|
+
"3-2": any;
|
|
203
|
+
"4-3": any;
|
|
204
|
+
"1-1": any;
|
|
205
|
+
"3-4": any;
|
|
206
|
+
};
|
|
200
207
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
201
208
|
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
202
209
|
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
@@ -218,7 +225,7 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
|
|
|
218
225
|
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
219
226
|
};
|
|
220
227
|
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
221
|
-
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
228
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">; /** Allow nesting `<Text />` inside `<Text />` without forcing a new line and spacing. */
|
|
222
229
|
};
|
|
223
230
|
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
224
231
|
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|