@traefik-labs/faency 12.3.3 → 12.3.4
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/dist/colors/deepBlue.cjs.map +1 -1
- package/dist/colors/deepBlue.js.map +1 -1
- package/dist/colors/elevation.cjs.map +1 -1
- package/dist/colors/elevation.js.map +1 -1
- package/dist/colors/grayBlue.cjs.map +1 -1
- package/dist/colors/grayBlue.js.map +1 -1
- package/dist/colors/index.cjs.map +1 -1
- package/dist/colors/index.js.map +1 -1
- package/dist/colors/neon.cjs.map +1 -1
- package/dist/colors/neon.js.map +1 -1
- package/dist/colors/orange.cjs.map +1 -1
- package/dist/colors/orange.js.map +1 -1
- package/dist/colors/red.cjs.map +1 -1
- package/dist/colors/red.js.map +1 -1
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.themes.js.map +1 -1
- package/dist/components/Alert/Alert.cjs.map +1 -1
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.theme.cjs.map +1 -1
- package/dist/components/Badge/Badge.theme.js.map +1 -1
- package/dist/components/Badge/Badge.themes.cjs.map +1 -1
- package/dist/components/Badge/Badge.themes.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.js.map +1 -1
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.js.map +1 -1
- package/dist/components/Bubble/Bubble.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.themes.cjs.map +1 -1
- package/dist/components/Button/Button.themes.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/Card.theme.cjs.map +1 -1
- package/dist/components/Card/Card.theme.js.map +1 -1
- package/dist/components/Card/Card.themes.cjs.map +1 -1
- package/dist/components/Card/Card.themes.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs +0 -1
- package/dist/components/Card/Card.vanilla.css.js +0 -1
- package/dist/components/Card/Card.vanilla.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
- package/dist/components/CodeBlock/prism-extend.js.map +1 -1
- package/dist/components/Container/Container.cjs.map +1 -1
- package/dist/components/Container/Container.js.map +1 -1
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
- package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.themes.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/DropdownMenu/styles.cjs.map +1 -1
- package/dist/components/DropdownMenu/styles.js.map +1 -1
- package/dist/components/Elevation/Elevation.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/FaencyProvider.cjs.map +1 -1
- package/dist/components/FaencyProvider.js.map +1 -1
- package/dist/components/Flex/Flex.cjs.map +1 -1
- package/dist/components/Flex/Flex.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.cjs.map +1 -1
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/Heading/Heading.cjs.map +1 -1
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Heading/Heading.themes.cjs.map +1 -1
- package/dist/components/Heading/Heading.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.themes.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.cjs.map +1 -1
- package/dist/components/Image/Image.js.map +1 -1
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.js.map +1 -1
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/Input.theme.cjs.map +1 -1
- package/dist/components/Input/Input.theme.js.map +1 -1
- package/dist/components/Input/Input.themes.cjs.map +1 -1
- package/dist/components/Input/Input.themes.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs +1 -0
- package/dist/components/Input/Input.vanilla.css.js +1 -0
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.cjs.map +1 -1
- package/dist/components/Label/Label.js.map +1 -1
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs +0 -1
- package/dist/components/Label/Label.vanilla.css.js +0 -1
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Link/Link.themes.cjs.map +1 -1
- package/dist/components/Link/Link.themes.js.map +1 -1
- package/dist/components/List/List.cjs.map +1 -1
- package/dist/components/List/List.js.map +1 -1
- package/dist/components/List/List.themes.cjs.map +1 -1
- package/dist/components/List/List.themes.js.map +1 -1
- package/dist/components/Navigation/Navigation.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
- package/dist/components/Navigation/Navigation.themes.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
- package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
- package/dist/components/Overlay.cjs.map +1 -1
- package/dist/components/Overlay.js.map +1 -1
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/Panel.theme.cjs.map +1 -1
- package/dist/components/Panel/Panel.theme.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/Popover/Popover.cjs.map +1 -1
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/Radio.themes.cjs.map +1 -1
- package/dist/components/Radio/Radio.themes.js.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
- package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/Select.themes.cjs.map +1 -1
- package/dist/components/Select/Select.themes.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.js.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
- package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/Switch.themes.cjs.map +1 -1
- package/dist/components/Switch/Switch.themes.js.map +1 -1
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/Table.themes.cjs.map +1 -1
- package/dist/components/Table/Table.themes.js.map +1 -1
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.themes.cjs.map +1 -1
- package/dist/components/Text/Text.themes.js.map +1 -1
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.js.map +1 -1
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.theme.js.map +1 -1
- package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.themes.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
- package/dist/components/colorSchemeContext.cjs.map +1 -1
- package/dist/components/colorSchemeContext.js.map +1 -1
- package/dist/stitches.config.cjs.map +1 -1
- package/dist/stitches.config.js.map +1 -1
- package/dist/styles/cssProps.cjs.map +1 -1
- package/dist/styles/cssProps.js.map +1 -1
- package/dist/styles/themeContext.cjs.map +1 -1
- package/dist/styles/themeContext.js.map +1 -1
- package/dist/utils/deepMerge.cjs.map +1 -1
- package/dist/utils/deepMerge.js.map +1 -1
- package/dist/utils/getPrimaryColorInfo.cjs.map +1 -1
- package/dist/utils/getPrimaryColorInfo.js.map +1 -1
- package/package.json +22 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.cjs","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;AAMA,IAAM,kBAAkB,wBAAA,OAAO,aAAA,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,
|
|
1
|
+
{"version":3,"file":"Navigation.cjs","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;AAMA,IAAM,kBAAkB,wBAAA,OAAO,aAAA,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiB,wBAAA,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,OAAO;CACP,QAAQ;CACR,WAAW;CACX,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,cAAc;CACd,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,UAAU;CACV,IAAI;CAEJ,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;EAEC,aAAa,gBAAgB,cAAc,oBAAoB,EAC9D,SAAS,EACX;CAEA,WAAW;EACT,OAAO;EACP,WAAW;EAEX,aAAa,EACX,iBAAiB,oBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,OAAO;EAEP,aAAa,EACX,iBAAiB,oBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,iBAAiB,EACf,IAAI,EACN;CAEA,UAAU,EACR,QAAQ,EACN,MAAM;EACJ,OAAO;EAEP,aAAa,EACX,iBAAiB,qBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;EAEA,UAAU,EACR,WAAW,EACT,OAAO,uBACT,EACF;EAEA,WAAW,EACT,OAAO,uBACT;CACF,EACF,EACF;CACA,iBAAiB,EACf,QAAQ,MACV;AACF,CAAC;AAED,IAAa,sBAAsB,wBAAA,OAAO,OAAO;CAC/C,SAAS;CACT,WAAW;CACX,eAAe;AACjB,CAAC;AAKD,IAAa,mBAAmB,wBAAA,OAAO,OAAO;CAC5C,SAAS;CACT,WAAW;CACX,SAAS;CACT,UAAU;CACV,eAAe;CACf,UAAU;EACR,WAAW,kBAAA;EACX,WAAW,EACT,MAAM;GACJ,IAAI;GACJ,mBAAmB;IACjB,cAAc;IAEd,aAAa,EACX,cAAc,EAChB;IAEA,YAAY,EACV,cAAc,EAChB;IAEA,WAAW;KACT,QAAQ;KACR,WAAW;IACb;GACF;EACF,EACF;CACF;CACA,iBAAiB;EACf,WAAW;EACX,WAAW;CACb;AACF,CAAC;AAKD,IAAM,aAAa,wBAAA,OAAO,KAAK,gBAAgB,EAC7C,gBAAgB,OAClB,CAAC;AAID,IAAM,eAAe,wBAAA,OAAO,UAAU,cAAc;AAwBpD,IAAM,yBAAyB,UAC7B,MAAM,OAAO,MAAM,iBAAA,GAAA,kBAAA,KAAC,YAAD,EAAY,GAAI,MAAQ,CAAA,IAAI,iBAAA,GAAA,kBAAA,KAAC,cAAD;CAAc,MAAK;CAAS,GAAI;AAAQ,CAAA;AAEzF,IAAa,kBAAkB,EAC7B,gBACA,cACA,UACA,GAAG,gBACmC;CACtC,MAAM,qBAAA,GAAA,MAAA,eAAkC,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACjF,MAAM,mBAAA,GAAA,MAAA,eAAgC,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAE3E,OACE,iBAAA,GAAA,kBAAA,MAAC,uBAAD;EAAuB,GAAI;YAA3B;GACG,qBACC,iBAAA,GAAA,kBAAA,KAAC,iBAAD;IAAiB,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAG,QAAQ,UAAU;cAC9D;GACc,CAAA;GAEnB,iBAAA,GAAA,kBAAA,KAAC,iBAAD;IAAiB,KAAK,EAAE,UAAU,EAAE;IAAG,QAAQ,UAAU;IACtD;GACc,CAAA;GAChB,mBAAmB,iBAAA,GAAA,kBAAA,KAAC,aAAA,MAAD;IAAM,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;cAAI;GAAmB,CAAA;EACvD;;AAE3B;AAIA,IAAa,kBAAkB,UAC7B,iBAAA,GAAA,kBAAA,KAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;AAMA,IAAM,kBAAkB,OAAO,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,
|
|
1
|
+
{"version":3,"file":"Navigation.js","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;AAMA,IAAM,kBAAkB,OAAO,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiB,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,OAAO;CACP,QAAQ;CACR,WAAW;CACX,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,cAAc;CACd,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,UAAU;CACV,IAAI;CAEJ,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;EAEC,aAAa,gBAAgB,cAAc,oBAAoB,EAC9D,SAAS,EACX;CAEA,WAAW;EACT,OAAO;EACP,WAAW;EAEX,aAAa,EACX,iBAAiB,oBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,OAAO;EAEP,aAAa,EACX,iBAAiB,oBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,iBAAiB,EACf,IAAI,EACN;CAEA,UAAU,EACR,QAAQ,EACN,MAAM;EACJ,OAAO;EAEP,aAAa,EACX,iBAAiB,qBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;EAEA,UAAU,EACR,WAAW,EACT,OAAO,uBACT,EACF;EAEA,WAAW,EACT,OAAO,uBACT;CACF,EACF,EACF;CACA,iBAAiB,EACf,QAAQ,MACV;AACF,CAAC;AAED,IAAa,sBAAsB,OAAO,OAAO;CAC/C,SAAS;CACT,WAAW;CACX,eAAe;AACjB,CAAC;AAKD,IAAa,mBAAmB,OAAO,OAAO;CAC5C,SAAS;CACT,WAAW;CACX,SAAS;CACT,UAAU;CACV,eAAe;CACf,UAAU;EACR,WAAW;EACX,WAAW,EACT,MAAM;GACJ,IAAI;GACJ,mBAAmB;IACjB,cAAc;IAEd,aAAa,EACX,cAAc,EAChB;IAEA,YAAY,EACV,cAAc,EAChB;IAEA,WAAW;KACT,QAAQ;KACR,WAAW;IACb;GACF;EACF,EACF;CACF;CACA,iBAAiB;EACf,WAAW;EACX,WAAW;CACb;AACF,CAAC;AAKD,IAAM,aAAa,OAAO,KAAK,gBAAgB,EAC7C,gBAAgB,OAClB,CAAC;AAID,IAAM,eAAe,OAAO,UAAU,cAAc;AAwBpD,IAAM,yBAAyB,UAC7B,MAAM,OAAO,MAAM,oBAAC,YAAD,EAAY,GAAI,MAAQ,CAAA,IAAI,oBAAC,cAAD;CAAc,MAAK;CAAS,GAAI;AAAQ,CAAA;AAEzF,IAAa,kBAAkB,EAC7B,gBACA,cACA,UACA,GAAG,gBACmC;CACtC,MAAM,oBAAoB,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACjF,MAAM,kBAAkB,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAE3E,OACE,qBAAC,uBAAD;EAAuB,GAAI;YAA3B;GACG,qBACC,oBAAC,iBAAD;IAAiB,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAG,QAAQ,UAAU;cAC9D;GACc,CAAA;GAEnB,oBAAC,iBAAD;IAAiB,KAAK,EAAE,UAAU,EAAE;IAAG,QAAQ,UAAU;IACtD;GACc,CAAA;GAChB,mBAAmB,oBAAC,MAAD;IAAM,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;cAAI;GAAmB,CAAA;EACvD;;AAE3B;AAIA,IAAa,kBAAkB,UAC7B,oBAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.themes.cjs","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;
|
|
1
|
+
{"version":3,"file":"Navigation.themes.cjs","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,oBAAA,GAAA,WAAA,SAA6B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EACjE,oBAAoB;EACpB,gBAAA,GAAA,WAAA,SAAyB,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAA,WAAA,SAA4B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,oBAAA,GAAA,WAAA,SAA6B,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;wBACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.themes.js","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;AAIO,IAAA;;
|
|
1
|
+
{"version":3,"file":"Navigation.themes.js","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,kBAAkB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,mBAAmB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EACjE,oBAAoB;EACpB,eAAe,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,kBAAkB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,mBAAmB,UAAU,OAAO,EAAE,SAAS,GAAI,EAAE,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;wBACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenu.cjs","names":[],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;;;;AASA,IAAM,aAAa,wBAAA,OAAO,gCAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;
|
|
1
|
+
{"version":3,"file":"NavigationMenu.cjs","names":[],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;;;;AASA,IAAM,aAAa,wBAAA,OAAO,gCAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;CACX;AACF,EACF,CAAC;AASD,IAAa,iBAAiB,MAAA,QAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,gBACzB,iBAAA,GAAA,kBAAA,KAAC,YAAD;CAAY,GAAI;CAAO,KAAK;CACzB;AACS,CAAA,CACb;AAMD,IAAM,gBAAgB,wBAAA,OAAO,gCAAwB,SAAS,cAAA,aAAa;CACzE,UAAU;CACV,MAAM;CACN,QAAQ;CACR,GAAG;CACH,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAW,kBAAA,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAYD,IAAa,wBAAwB,MAAA,QAAM,YAGxC,EAAE,UAAU,WAAW,GAAG,SAAS,gBACpC,iBAAA,GAAA,kBAAA,KAAC,eAAD;CAA0B;CAAW,GAAI;CAAO,KAAK;CAClD;AACY,CAAA,CAChB;AAMD,IAAM,gBAAgB,wBAAA,OAAO,gCAAwB,SAAS;CAC5D,iBAAiB;CACjB,QAAQ;AACV,CAAC;AASD,IAAa,yBAAyB,EAAE,UAAU,GAAG,YACnD,iBAAA,GAAA,kBAAA,KAAC,eAAD;CAAe,GAAI;CAAQ;AAAwB,CAAA;AAKrD,IAAa,0BAA0B,gCAAwB;AAC/D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,yBAAyB,gCAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenu.js","names":[],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;AASA,IAAM,aAAa,OAAO,wBAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;
|
|
1
|
+
{"version":3,"file":"NavigationMenu.js","names":[],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;AASA,IAAM,aAAa,OAAO,wBAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;CACX;AACF,EACF,CAAC;AASD,IAAa,iBAAiB,MAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,gBACzB,oBAAC,YAAD;CAAY,GAAI;CAAO,KAAK;CACzB;AACS,CAAA,CACb;AAMD,IAAM,gBAAgB,OAAO,wBAAwB,SAAS,aAAa;CACzE,UAAU;CACV,MAAM;CACN,QAAQ;CACR,GAAG;CACH,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAW,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAYD,IAAa,wBAAwB,MAAM,YAGxC,EAAE,UAAU,WAAW,GAAG,SAAS,gBACpC,oBAAC,eAAD;CAA0B;CAAW,GAAI;CAAO,KAAK;CAClD;AACY,CAAA,CAChB;AAMD,IAAM,gBAAgB,OAAO,wBAAwB,SAAS;CAC5D,iBAAiB;CACjB,QAAQ;AACV,CAAC;AASD,IAAa,yBAAyB,EAAE,UAAU,GAAG,YACnD,oBAAC,eAAD;CAAe,GAAI;CAAQ;AAAwB,CAAA;AAKrD,IAAa,0BAA0B,wBAAwB;AAC/D,IAAa,qBAAqB,wBAAwB;AAC1D,IAAa,qBAAqB,wBAAwB;AAC1D,IAAa,qBAAqB,wBAAwB;AAC1D,IAAa,yBAAyB,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeContainer.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,iBAAA,GAAA,kBAAA,KAAC,sBAAA,iBAAD,
|
|
1
|
+
{"version":3,"file":"NavigationTreeContainer.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,iBAAA,GAAA,kBAAA,KAAC,sBAAA,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,iBAAA,GAAA,kBAAA,KAAC,sBAAA,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,iBAAiB,MAAA,QAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAA,QAAM,aAAa,OAA6B;GACrD;GACA;GACA;EACF,CAAC;CACH,CAAC;CAED,OAAO,iBAAA,GAAA,kBAAA,KAAC,mBAAA,qBAAD;EAAqB,GAAI;YAAQ;CAAoC,CAAA;AAC9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeContainer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,oBAAC,iBAAD,
|
|
1
|
+
{"version":3,"file":"NavigationTreeContainer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,oBAAC,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,oBAAC,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,iBAAiB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAM,aAAa,OAA6B;GACrD;GACA;GACA;EACF,CAAC;CACH,CAAC;CAED,OAAO,oBAAC,qBAAD;EAAqB,GAAI;YAAQ;CAAoC,CAAA;AAC9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeDrawer.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeDrawer.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationDrawer, NavigationDrawerProps } from '../Navigation';\n\nexport interface NavigationTreeDrawerProps {\n children: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeDrawer = ({\n children,\n fullWidth = false,\n ...props\n}: NavigationTreeDrawerProps & NavigationDrawerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n fullWidth,\n });\n });\n\n return (\n <NavigationDrawer fullWidth={fullWidth} {...props}>\n {renderChildren}\n </NavigationDrawer>\n );\n};\n"],"mappings":";;;;;;AAWA,IAAa,wBAAwB,EACnC,UACA,YAAY,OACZ,GAAG,YACoD;CACvD,MAAM,iBAAiB,MAAA,QAAM,SAAS,IAAI,WAAW,UAAU;
|
|
1
|
+
{"version":3,"file":"NavigationTreeDrawer.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeDrawer.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationDrawer, NavigationDrawerProps } from '../Navigation';\n\nexport interface NavigationTreeDrawerProps {\n children: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeDrawer = ({\n children,\n fullWidth = false,\n ...props\n}: NavigationTreeDrawerProps & NavigationDrawerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n fullWidth,\n });\n });\n\n return (\n <NavigationDrawer fullWidth={fullWidth} {...props}>\n {renderChildren}\n </NavigationDrawer>\n );\n};\n"],"mappings":";;;;;;AAWA,IAAa,wBAAwB,EACnC,UACA,YAAY,OACZ,GAAG,YACoD;CACvD,MAAM,iBAAiB,MAAA,QAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAA,QAAM,aAAa,OAA6B,EACrD,UACF,CAAC;CACH,CAAC;CAED,OACE,iBAAA,GAAA,kBAAA,KAAC,mBAAA,kBAAD;EAA6B;EAAW,GAAI;YACzC;CACe,CAAA;AAEtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeDrawer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeDrawer.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationDrawer, NavigationDrawerProps } from '../Navigation';\n\nexport interface NavigationTreeDrawerProps {\n children: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeDrawer = ({\n children,\n fullWidth = false,\n ...props\n}: NavigationTreeDrawerProps & NavigationDrawerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n fullWidth,\n });\n });\n\n return (\n <NavigationDrawer fullWidth={fullWidth} {...props}>\n {renderChildren}\n </NavigationDrawer>\n );\n};\n"],"mappings":";;;;AAWA,IAAa,wBAAwB,EACnC,UACA,YAAY,OACZ,GAAG,YACoD;CACvD,MAAM,iBAAiB,MAAM,SAAS,IAAI,WAAW,UAAU;
|
|
1
|
+
{"version":3,"file":"NavigationTreeDrawer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeDrawer.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationDrawer, NavigationDrawerProps } from '../Navigation';\n\nexport interface NavigationTreeDrawerProps {\n children: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeDrawer = ({\n children,\n fullWidth = false,\n ...props\n}: NavigationTreeDrawerProps & NavigationDrawerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n fullWidth,\n });\n });\n\n return (\n <NavigationDrawer fullWidth={fullWidth} {...props}>\n {renderChildren}\n </NavigationDrawer>\n );\n};\n"],"mappings":";;;;AAWA,IAAa,wBAAwB,EACnC,UACA,YAAY,OACZ,GAAG,YACoD;CACvD,MAAM,iBAAiB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAM,aAAa,OAA6B,EACrD,UACF,CAAC;CACH,CAAC;CAED,OACE,oBAAC,kBAAD;EAA6B;EAAW,GAAI;YACzC;CACe,CAAA;AAEtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeItem.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeItem.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, useState } from 'react';\n\nimport { CSS } from '../..';\nimport { Box } from '../Box';\nimport { Flex } from '../Flex';\nimport { NavigationItem, NavigationItemProps } from '../Navigation';\nimport { Text } from '../Text';\nimport { NavigationTreeContainer } from './NavigationTreeContainer';\n\nexport interface NavigationTreeItemProps {\n label: string | ReactNode;\n subtitle?: string;\n children?: React.ReactNode;\n defaultExpanded?: boolean;\n onClick?: () => void;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n customExpandIcon?: React.ReactNode;\n customCollapseIcon?: React.ReactNode;\n nestedChildrenLevel?: number;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeItem = ({\n label,\n subtitle,\n children,\n onClick,\n defaultExpanded = false,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n nestedChildrenLevel = 1,\n fullWidth = false,\n ...props\n}: NavigationTreeItemProps & NavigationItemProps) => {\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const isExpandable = useMemo(() => React.Children.count(children) > 0, [children]);\n const hasStartAdornment = useMemo(() => !!props.startAdornment, [props.startAdornment]);\n const usedStartAdornment = useMemo(\n () =>\n hasStartAdornment\n ? props.startAdornment\n : isExpandable\n ? isExpanded\n ? customCollapseIcon || defaultCollapseIcon\n : customExpandIcon || defaultExpandIcon\n : null,\n [\n hasStartAdornment,\n isExpandable,\n isExpanded,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n props.startAdornment,\n ],\n );\n\n const childCss = useMemo(() => {\n if (!isExpandable) return null;\n\n return {\n pl: '$4',\n '> div > *': {\n '&::before, &::after': {\n left: fullWidth ? `calc(${nestedChildrenLevel} * -20px)` : 0,\n },\n },\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isExpandable, nestedChildrenLevel]);\n\n const focusStyle = useMemo(() => {\n if (!isExpandable) return {};\n\n return {\n '&:focus': {\n boxShadow: 'none',\n\n '&::before': {\n background: 'none',\n },\n '&::after': {\n background: 'none',\n },\n },\n };\n }, [isExpandable]);\n\n return (\n <Box>\n <NavigationItem\n css={{ width: '100%', ...focusStyle }}\n {...props}\n startAdornment={usedStartAdornment}\n onClick={isExpandable ? () => setIsExpanded(!isExpanded) : onClick}\n >\n <Flex\n direction=\"column\"\n align=\"start\"\n gap={1}\n css={{\n ml: isExpandable || hasStartAdornment ? 0 : '$4',\n color: 'inherit',\n width: '100%',\n }}\n >\n {typeof label === 'string' ? <Text css={{ color: 'inherit' }}>{label}</Text> : label}\n {subtitle && (\n <Text variant=\"subtle\" css={{ fontSize: '$3', opacity: 0.8 }}>\n {subtitle}\n </Text>\n )}\n </Flex>\n </NavigationItem>\n {isExpanded && (\n <NavigationTreeContainer\n defaultCollapseIcon={defaultCollapseIcon}\n defaultExpandIcon={defaultExpandIcon}\n fullWidth={fullWidth}\n css={childCss as CSS}\n >\n {children}\n </NavigationTreeContainer>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;AAuBA,IAAa,sBAAsB,EACjC,OACA,UACA,UACA,SACA,kBAAkB,OAClB,qBACA,mBACA,oBACA,kBACA,sBAAsB,GACtB,YAAY,OACZ,GAAG,YACgD;CACnD,MAAM,CAAC,YAAY,kBAAA,GAAA,MAAA,UAA0B,
|
|
1
|
+
{"version":3,"file":"NavigationTreeItem.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeItem.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, useState } from 'react';\n\nimport { CSS } from '../..';\nimport { Box } from '../Box';\nimport { Flex } from '../Flex';\nimport { NavigationItem, NavigationItemProps } from '../Navigation';\nimport { Text } from '../Text';\nimport { NavigationTreeContainer } from './NavigationTreeContainer';\n\nexport interface NavigationTreeItemProps {\n label: string | ReactNode;\n subtitle?: string;\n children?: React.ReactNode;\n defaultExpanded?: boolean;\n onClick?: () => void;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n customExpandIcon?: React.ReactNode;\n customCollapseIcon?: React.ReactNode;\n nestedChildrenLevel?: number;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeItem = ({\n label,\n subtitle,\n children,\n onClick,\n defaultExpanded = false,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n nestedChildrenLevel = 1,\n fullWidth = false,\n ...props\n}: NavigationTreeItemProps & NavigationItemProps) => {\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const isExpandable = useMemo(() => React.Children.count(children) > 0, [children]);\n const hasStartAdornment = useMemo(() => !!props.startAdornment, [props.startAdornment]);\n const usedStartAdornment = useMemo(\n () =>\n hasStartAdornment\n ? props.startAdornment\n : isExpandable\n ? isExpanded\n ? customCollapseIcon || defaultCollapseIcon\n : customExpandIcon || defaultExpandIcon\n : null,\n [\n hasStartAdornment,\n isExpandable,\n isExpanded,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n props.startAdornment,\n ],\n );\n\n const childCss = useMemo(() => {\n if (!isExpandable) return null;\n\n return {\n pl: '$4',\n '> div > *': {\n '&::before, &::after': {\n left: fullWidth ? `calc(${nestedChildrenLevel} * -20px)` : 0,\n },\n },\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isExpandable, nestedChildrenLevel]);\n\n const focusStyle = useMemo(() => {\n if (!isExpandable) return {};\n\n return {\n '&:focus': {\n boxShadow: 'none',\n\n '&::before': {\n background: 'none',\n },\n '&::after': {\n background: 'none',\n },\n },\n };\n }, [isExpandable]);\n\n return (\n <Box>\n <NavigationItem\n css={{ width: '100%', ...focusStyle }}\n {...props}\n startAdornment={usedStartAdornment}\n onClick={isExpandable ? () => setIsExpanded(!isExpanded) : onClick}\n >\n <Flex\n direction=\"column\"\n align=\"start\"\n gap={1}\n css={{\n ml: isExpandable || hasStartAdornment ? 0 : '$4',\n color: 'inherit',\n width: '100%',\n }}\n >\n {typeof label === 'string' ? <Text css={{ color: 'inherit' }}>{label}</Text> : label}\n {subtitle && (\n <Text variant=\"subtle\" css={{ fontSize: '$3', opacity: 0.8 }}>\n {subtitle}\n </Text>\n )}\n </Flex>\n </NavigationItem>\n {isExpanded && (\n <NavigationTreeContainer\n defaultCollapseIcon={defaultCollapseIcon}\n defaultExpandIcon={defaultExpandIcon}\n fullWidth={fullWidth}\n css={childCss as CSS}\n >\n {children}\n </NavigationTreeContainer>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;AAuBA,IAAa,sBAAsB,EACjC,OACA,UACA,UACA,SACA,kBAAkB,OAClB,qBACA,mBACA,oBACA,kBACA,sBAAsB,GACtB,YAAY,OACZ,GAAG,YACgD;CACnD,MAAM,CAAC,YAAY,kBAAA,GAAA,MAAA,UAA0B,eAAe;CAC5D,MAAM,gBAAA,GAAA,MAAA,eAA6B,MAAA,QAAM,SAAS,MAAM,QAAQ,IAAI,GAAG,CAAC,QAAQ,CAAC;CACjF,MAAM,qBAAA,GAAA,MAAA,eAAkC,CAAC,CAAC,MAAM,gBAAgB,CAAC,MAAM,cAAc,CAAC;CACtF,MAAM,sBAAA,GAAA,MAAA,eAEF,oBACI,MAAM,iBACN,eACE,aACE,sBAAsB,sBACtB,oBAAoB,oBACtB,MACR;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;CACR,CACF;CAEA,MAAM,YAAA,GAAA,MAAA,eAAyB;EAC7B,IAAI,CAAC,cAAc,OAAO;EAE1B,OAAO;GACL,IAAI;GACJ,aAAa,EACX,uBAAuB,EACrB,MAAM,YAAY,QAAQ,oBAAoB,aAAa,EAC7D,EACF;EACF;CAEF,GAAG,CAAC,cAAc,mBAAmB,CAAC;CAmBtC,OACE,iBAAA,GAAA,kBAAA,MAAC,YAAA,KAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAC,mBAAA,gBAAD;EACE,KAAK;GAAE,OAAO;GAAQ,IAAA,GAAA,MAAA,eApBK;IAC/B,IAAI,CAAC,cAAc,OAAO,CAAC;IAE3B,OAAO,EACL,WAAW;KACT,WAAW;KAEX,aAAa,EACX,YAAY,OACd;KACA,YAAY,EACV,YAAY,OACd;IACF,EACF;GACF,GAAG,CAAC,YAAY,CAKe;EAAW;EACpC,GAAI;EACJ,gBAAgB;EAChB,SAAS,qBAAqB,cAAc,CAAC,UAAU,IAAI;YAE3D,iBAAA,GAAA,kBAAA,MAAC,aAAA,MAAD;GACE,WAAU;GACV,OAAM;GACN,KAAK;GACL,KAAK;IACH,IAAI,gBAAgB,oBAAoB,IAAI;IAC5C,OAAO;IACP,OAAO;GACT;aARF,CAUG,OAAO,UAAU,WAAW,iBAAA,GAAA,kBAAA,KAAC,aAAA,MAAD;IAAM,KAAK,EAAE,OAAO,UAAU;cAAI;GAAY,CAAA,IAAI,OAC9E,YACC,iBAAA,GAAA,kBAAA,KAAC,aAAA,MAAD;IAAM,SAAQ;IAAS,KAAK;KAAE,UAAU;KAAM,SAAS;IAAI;cACxD;GACG,CAAA,CAEJ;;CACQ,CAAA,GACf,cACC,iBAAA,GAAA,kBAAA,KAAC,gCAAA,yBAAD;EACuB;EACF;EACR;EACX,KAAK;EAEJ;CACsB,CAAA,CAExB,EAAA,CAAA;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationTreeItem.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeItem.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, useState } from 'react';\n\nimport { CSS } from '../..';\nimport { Box } from '../Box';\nimport { Flex } from '../Flex';\nimport { NavigationItem, NavigationItemProps } from '../Navigation';\nimport { Text } from '../Text';\nimport { NavigationTreeContainer } from './NavigationTreeContainer';\n\nexport interface NavigationTreeItemProps {\n label: string | ReactNode;\n subtitle?: string;\n children?: React.ReactNode;\n defaultExpanded?: boolean;\n onClick?: () => void;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n customExpandIcon?: React.ReactNode;\n customCollapseIcon?: React.ReactNode;\n nestedChildrenLevel?: number;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeItem = ({\n label,\n subtitle,\n children,\n onClick,\n defaultExpanded = false,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n nestedChildrenLevel = 1,\n fullWidth = false,\n ...props\n}: NavigationTreeItemProps & NavigationItemProps) => {\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const isExpandable = useMemo(() => React.Children.count(children) > 0, [children]);\n const hasStartAdornment = useMemo(() => !!props.startAdornment, [props.startAdornment]);\n const usedStartAdornment = useMemo(\n () =>\n hasStartAdornment\n ? props.startAdornment\n : isExpandable\n ? isExpanded\n ? customCollapseIcon || defaultCollapseIcon\n : customExpandIcon || defaultExpandIcon\n : null,\n [\n hasStartAdornment,\n isExpandable,\n isExpanded,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n props.startAdornment,\n ],\n );\n\n const childCss = useMemo(() => {\n if (!isExpandable) return null;\n\n return {\n pl: '$4',\n '> div > *': {\n '&::before, &::after': {\n left: fullWidth ? `calc(${nestedChildrenLevel} * -20px)` : 0,\n },\n },\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isExpandable, nestedChildrenLevel]);\n\n const focusStyle = useMemo(() => {\n if (!isExpandable) return {};\n\n return {\n '&:focus': {\n boxShadow: 'none',\n\n '&::before': {\n background: 'none',\n },\n '&::after': {\n background: 'none',\n },\n },\n };\n }, [isExpandable]);\n\n return (\n <Box>\n <NavigationItem\n css={{ width: '100%', ...focusStyle }}\n {...props}\n startAdornment={usedStartAdornment}\n onClick={isExpandable ? () => setIsExpanded(!isExpanded) : onClick}\n >\n <Flex\n direction=\"column\"\n align=\"start\"\n gap={1}\n css={{\n ml: isExpandable || hasStartAdornment ? 0 : '$4',\n color: 'inherit',\n width: '100%',\n }}\n >\n {typeof label === 'string' ? <Text css={{ color: 'inherit' }}>{label}</Text> : label}\n {subtitle && (\n <Text variant=\"subtle\" css={{ fontSize: '$3', opacity: 0.8 }}>\n {subtitle}\n </Text>\n )}\n </Flex>\n </NavigationItem>\n {isExpanded && (\n <NavigationTreeContainer\n defaultCollapseIcon={defaultCollapseIcon}\n defaultExpandIcon={defaultExpandIcon}\n fullWidth={fullWidth}\n css={childCss as CSS}\n >\n {children}\n </NavigationTreeContainer>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,IAAa,sBAAsB,EACjC,OACA,UACA,UACA,SACA,kBAAkB,OAClB,qBACA,mBACA,oBACA,kBACA,sBAAsB,GACtB,YAAY,OACZ,GAAG,YACgD;CACnD,MAAM,CAAC,YAAY,iBAAiB,SAAS,
|
|
1
|
+
{"version":3,"file":"NavigationTreeItem.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeItem.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, useState } from 'react';\n\nimport { CSS } from '../..';\nimport { Box } from '../Box';\nimport { Flex } from '../Flex';\nimport { NavigationItem, NavigationItemProps } from '../Navigation';\nimport { Text } from '../Text';\nimport { NavigationTreeContainer } from './NavigationTreeContainer';\n\nexport interface NavigationTreeItemProps {\n label: string | ReactNode;\n subtitle?: string;\n children?: React.ReactNode;\n defaultExpanded?: boolean;\n onClick?: () => void;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n customExpandIcon?: React.ReactNode;\n customCollapseIcon?: React.ReactNode;\n nestedChildrenLevel?: number;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeItem = ({\n label,\n subtitle,\n children,\n onClick,\n defaultExpanded = false,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n nestedChildrenLevel = 1,\n fullWidth = false,\n ...props\n}: NavigationTreeItemProps & NavigationItemProps) => {\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const isExpandable = useMemo(() => React.Children.count(children) > 0, [children]);\n const hasStartAdornment = useMemo(() => !!props.startAdornment, [props.startAdornment]);\n const usedStartAdornment = useMemo(\n () =>\n hasStartAdornment\n ? props.startAdornment\n : isExpandable\n ? isExpanded\n ? customCollapseIcon || defaultCollapseIcon\n : customExpandIcon || defaultExpandIcon\n : null,\n [\n hasStartAdornment,\n isExpandable,\n isExpanded,\n defaultCollapseIcon,\n defaultExpandIcon,\n customCollapseIcon,\n customExpandIcon,\n props.startAdornment,\n ],\n );\n\n const childCss = useMemo(() => {\n if (!isExpandable) return null;\n\n return {\n pl: '$4',\n '> div > *': {\n '&::before, &::after': {\n left: fullWidth ? `calc(${nestedChildrenLevel} * -20px)` : 0,\n },\n },\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isExpandable, nestedChildrenLevel]);\n\n const focusStyle = useMemo(() => {\n if (!isExpandable) return {};\n\n return {\n '&:focus': {\n boxShadow: 'none',\n\n '&::before': {\n background: 'none',\n },\n '&::after': {\n background: 'none',\n },\n },\n };\n }, [isExpandable]);\n\n return (\n <Box>\n <NavigationItem\n css={{ width: '100%', ...focusStyle }}\n {...props}\n startAdornment={usedStartAdornment}\n onClick={isExpandable ? () => setIsExpanded(!isExpanded) : onClick}\n >\n <Flex\n direction=\"column\"\n align=\"start\"\n gap={1}\n css={{\n ml: isExpandable || hasStartAdornment ? 0 : '$4',\n color: 'inherit',\n width: '100%',\n }}\n >\n {typeof label === 'string' ? <Text css={{ color: 'inherit' }}>{label}</Text> : label}\n {subtitle && (\n <Text variant=\"subtle\" css={{ fontSize: '$3', opacity: 0.8 }}>\n {subtitle}\n </Text>\n )}\n </Flex>\n </NavigationItem>\n {isExpanded && (\n <NavigationTreeContainer\n defaultCollapseIcon={defaultCollapseIcon}\n defaultExpandIcon={defaultExpandIcon}\n fullWidth={fullWidth}\n css={childCss as CSS}\n >\n {children}\n </NavigationTreeContainer>\n )}\n </Box>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,IAAa,sBAAsB,EACjC,OACA,UACA,UACA,SACA,kBAAkB,OAClB,qBACA,mBACA,oBACA,kBACA,sBAAsB,GACtB,YAAY,OACZ,GAAG,YACgD;CACnD,MAAM,CAAC,YAAY,iBAAiB,SAAS,eAAe;CAC5D,MAAM,eAAe,cAAc,MAAM,SAAS,MAAM,QAAQ,IAAI,GAAG,CAAC,QAAQ,CAAC;CACjF,MAAM,oBAAoB,cAAc,CAAC,CAAC,MAAM,gBAAgB,CAAC,MAAM,cAAc,CAAC;CACtF,MAAM,qBAAqB,cAEvB,oBACI,MAAM,iBACN,eACE,aACE,sBAAsB,sBACtB,oBAAoB,oBACtB,MACR;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;CACR,CACF;CAEA,MAAM,WAAW,cAAc;EAC7B,IAAI,CAAC,cAAc,OAAO;EAE1B,OAAO;GACL,IAAI;GACJ,aAAa,EACX,uBAAuB,EACrB,MAAM,YAAY,QAAQ,oBAAoB,aAAa,EAC7D,EACF;EACF;CAEF,GAAG,CAAC,cAAc,mBAAmB,CAAC;CAmBtC,OACE,qBAAC,KAAD,EAAA,UAAA,CACE,oBAAC,gBAAD;EACE,KAAK;GAAE,OAAO;GAAQ,GApBT,cAAc;IAC/B,IAAI,CAAC,cAAc,OAAO,CAAC;IAE3B,OAAO,EACL,WAAW;KACT,WAAW;KAEX,aAAa,EACX,YAAY,OACd;KACA,YAAY,EACV,YAAY,OACd;IACF,EACF;GACF,GAAG,CAAC,YAAY,CAKe;EAAW;EACpC,GAAI;EACJ,gBAAgB;EAChB,SAAS,qBAAqB,cAAc,CAAC,UAAU,IAAI;YAE3D,qBAAC,MAAD;GACE,WAAU;GACV,OAAM;GACN,KAAK;GACL,KAAK;IACH,IAAI,gBAAgB,oBAAoB,IAAI;IAC5C,OAAO;IACP,OAAO;GACT;aARF,CAUG,OAAO,UAAU,WAAW,oBAAC,MAAD;IAAM,KAAK,EAAE,OAAO,UAAU;cAAI;GAAY,CAAA,IAAI,OAC9E,YACC,oBAAC,MAAD;IAAM,SAAQ;IAAS,KAAK;KAAE,UAAU;KAAM,SAAS;IAAI;cACxD;GACG,CAAA,CAEJ;;CACQ,CAAA,GACf,cACC,oBAAC,yBAAD;EACuB;EACF;EACR;EACX,KAAK;EAEJ;CACsB,CAAA,CAExB,EAAA,CAAA;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.cjs","names":[],"sources":["../../components/Overlay.tsx"],"sourcesContent":["import { CSS, styled } from '../stitches.config';\n\nexport const overlayStyles: CSS = {\n backgroundColor: 'hsla(0, 0%, 0%, 0.7)',\n};\n\nexport const Overlay = styled('div', overlayStyles);\n"],"mappings":";;AAEA,IAAa,gBAAqB,EAChC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Overlay.cjs","names":[],"sources":["../../components/Overlay.tsx"],"sourcesContent":["import { CSS, styled } from '../stitches.config';\n\nexport const overlayStyles: CSS = {\n backgroundColor: 'hsla(0, 0%, 0%, 0.7)',\n};\n\nexport const Overlay = styled('div', overlayStyles);\n"],"mappings":";;AAEA,IAAa,gBAAqB,EAChC,iBAAiB,uBACnB;AAEA,IAAa,UAAU,wBAAA,OAAO,OAAO,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.js","names":[],"sources":["../../components/Overlay.tsx"],"sourcesContent":["import { CSS, styled } from '../stitches.config';\n\nexport const overlayStyles: CSS = {\n backgroundColor: 'hsla(0, 0%, 0%, 0.7)',\n};\n\nexport const Overlay = styled('div', overlayStyles);\n"],"mappings":";;AAEA,IAAa,gBAAqB,EAChC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Overlay.js","names":[],"sources":["../../components/Overlay.tsx"],"sourcesContent":["import { CSS, styled } from '../stitches.config';\n\nexport const overlayStyles: CSS = {\n backgroundColor: 'hsla(0, 0%, 0%, 0.7)',\n};\n\nexport const Overlay = styled('div', overlayStyles);\n"],"mappings":";;AAEA,IAAa,gBAAqB,EAChC,iBAAiB,uBACnB;AAEA,IAAa,UAAU,OAAO,OAAO,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.cjs","names":[],"sources":["../../../components/Panel/Panel.tsx"],"sourcesContent":["import { CSS, styled } from '../../stitches.config';\n\nexport const panelStyles: CSS = {\n backgroundColor: '$deepBlue3',\n borderRadius: '$3',\n boxShadow: '$colors$shadowLight 0px 10px 38px -10px, $colors$deepBlue3 0px 10px 20px -15px',\n};\n\nexport const Panel = styled('div', panelStyles);\n"],"mappings":";;AAEA,IAAa,cAAmB;CAC9B,iBAAiB;CACjB,cAAc;CACd,WAAW;
|
|
1
|
+
{"version":3,"file":"Panel.cjs","names":[],"sources":["../../../components/Panel/Panel.tsx"],"sourcesContent":["import { CSS, styled } from '../../stitches.config';\n\nexport const panelStyles: CSS = {\n backgroundColor: '$deepBlue3',\n borderRadius: '$3',\n boxShadow: '$colors$shadowLight 0px 10px 38px -10px, $colors$deepBlue3 0px 10px 20px -15px',\n};\n\nexport const Panel = styled('div', panelStyles);\n"],"mappings":";;AAEA,IAAa,cAAmB;CAC9B,iBAAiB;CACjB,cAAc;CACd,WAAW;AACb;AAEA,IAAa,QAAQ,wBAAA,OAAO,OAAO,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","names":[],"sources":["../../../components/Panel/Panel.tsx"],"sourcesContent":["import { CSS, styled } from '../../stitches.config';\n\nexport const panelStyles: CSS = {\n backgroundColor: '$deepBlue3',\n borderRadius: '$3',\n boxShadow: '$colors$shadowLight 0px 10px 38px -10px, $colors$deepBlue3 0px 10px 20px -15px',\n};\n\nexport const Panel = styled('div', panelStyles);\n"],"mappings":";;AAEA,IAAa,cAAmB;CAC9B,iBAAiB;CACjB,cAAc;CACd,WAAW;
|
|
1
|
+
{"version":3,"file":"Panel.js","names":[],"sources":["../../../components/Panel/Panel.tsx"],"sourcesContent":["import { CSS, styled } from '../../stitches.config';\n\nexport const panelStyles: CSS = {\n backgroundColor: '$deepBlue3',\n borderRadius: '$3',\n boxShadow: '$colors$shadowLight 0px 10px 38px -10px, $colors$deepBlue3 0px 10px 20px -15px',\n};\n\nexport const Panel = styled('div', panelStyles);\n"],"mappings":";;AAEA,IAAa,cAAmB;CAC9B,iBAAiB;CACjB,cAAc;CACd,WAAW;AACb;AAEA,IAAa,QAAQ,OAAO,OAAO,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.theme.cjs","names":[],"sources":["../../../components/Panel/Panel.theme.ts"],"sourcesContent":["// Plain TypeScript color tokens (no vanilla-extract)\n// Can be safely imported by colors/index.ts for Stitches\nexport const panelLightTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.1)',\n};\n\nexport const panelDarkTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.3)',\n};\n"],"mappings":";AAEA,IAAa,kBAAkB,EAC7B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Panel.theme.cjs","names":[],"sources":["../../../components/Panel/Panel.theme.ts"],"sourcesContent":["// Plain TypeScript color tokens (no vanilla-extract)\n// Can be safely imported by colors/index.ts for Stitches\nexport const panelLightTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.1)',\n};\n\nexport const panelDarkTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.3)',\n};\n"],"mappings":";AAEA,IAAa,kBAAkB,EAC7B,kBAAkB,qBACpB;AAEA,IAAa,iBAAiB,EAC5B,kBAAkB,qBACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.theme.js","names":[],"sources":["../../../components/Panel/Panel.theme.ts"],"sourcesContent":["// Plain TypeScript color tokens (no vanilla-extract)\n// Can be safely imported by colors/index.ts for Stitches\nexport const panelLightTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.1)',\n};\n\nexport const panelDarkTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.3)',\n};\n"],"mappings":";AAEA,IAAa,kBAAkB,EAC7B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Panel.theme.js","names":[],"sources":["../../../components/Panel/Panel.theme.ts"],"sourcesContent":["// Plain TypeScript color tokens (no vanilla-extract)\n// Can be safely imported by colors/index.ts for Stitches\nexport const panelLightTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.1)',\n};\n\nexport const panelDarkTheme = {\n panelShadowLight: 'rgba(0, 0, 0, 0.3)',\n};\n"],"mappings":";AAEA,IAAa,kBAAkB,EAC7B,kBAAkB,qBACpB;AAEA,IAAa,iBAAiB,EAC5B,kBAAkB,qBACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.vanilla.cjs","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component\n ref={ref}\n className={`${panelStyle} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;;AAmBA,IAAM,6BAAA,GAAA,MAAA,aAEF,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,qBAAA,
|
|
1
|
+
{"version":3,"file":"Panel.vanilla.cjs","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component\n ref={ref}\n className={`${panelStyle} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;;AAmBA,IAAM,6BAAA,GAAA,MAAA,aAEF,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,qBAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,IAAA,GAAA,yBAAA,kBAAoB,IAAI;CAAE;CAEzE,OACE,iBAAA,GAAA,kBAAA,KAAC,WAAD;EACO;EACL,WAAW,GAAG,0BAAA,WAAW,GAAG,aAAa,KAAK,KAAK;EACnD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.vanilla.js","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component\n ref={ref}\n className={`${panelStyle} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;AAmBA,IAAM,4BAA4B,YAE9B,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Panel.vanilla.js","names":[],"sources":["../../../components/Panel/Panel.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { panelStyle } from './Panel.vanilla.css';\n\nexport type PanelVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype PanelVanillaComponent = PolymorphicComponent<'div', PanelVanillaProps<ElementType>>;\n\nconst PanelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, ...props }: PanelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\n\n return (\n <Component\n ref={ref}\n className={`${panelStyle} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nPanelVanillaComponentImpl.displayName = 'PanelVanilla';\n\nexport const PanelVanilla = PanelVanillaComponentImpl as PanelVanillaComponent;\n"],"mappings":";;;;;;;AAmBA,IAAM,4BAA4B,YAE9B,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,GAAG,iBAAiB,IAAI;CAAE;CAEzE,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,WAAW,GAAG,aAAa,KAAK,KAAK;EACnD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.cjs","names":[],"sources":["../../../components/Paragraph/Paragraph.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Text } from '../Text';\n\nconst DEFAULT_TAG = 'p';\n\ntype TextSizeVariants = Pick<VariantProps<typeof Text>, 'size'>;\n\ntype ParagraphSizeVariants = '1' | '2';\ntype ParagraphVariants = { size?: ParagraphSizeVariants } & Omit<VariantProps<typeof Text>, 'size'>;\ntype ParagraphProps = React.ComponentProps<typeof DEFAULT_TAG> &\n ParagraphVariants & { css?: CSS; as?: any };\n\nexport const Paragraph = React.forwardRef<React.ElementRef<typeof DEFAULT_TAG>, ParagraphProps>(\n (props, forwardedRef) => {\n // '2' here is the default Paragraph size variant\n const { size = '1', ...textProps } = props;\n\n // This is the mapping of Paragraph Variants to Text variants\n const textSize: Record<ParagraphSizeVariants, TextSizeVariants['size']> = {\n 1: { '@initial': '3', '@bp2': '4' },\n 2: { '@initial': '5', '@bp2': '6' },\n };\n\n // This is the mapping of Paragraph Variants to Text css\n const textCss: Record<ParagraphSizeVariants, CSS> = {\n 1: { lineHeight: '25px', '@bp2': { lineHeight: '27px' } },\n 2: { color: '$slate11', lineHeight: '27px', '@bp2': { lineHeight: '30px' } },\n };\n return (\n <Text\n as={DEFAULT_TAG}\n {...textProps}\n ref={forwardedRef}\n size={textSize[size]}\n css={{\n ...deepMerge(textCss[size], props.css),\n }}\n />\n );\n },\n);\n"],"mappings":";;;;;;;AAMA,IAAM,cAAc;AASpB,IAAa,YAAY,MAAA,QAAM,YAC5B,OAAO,iBAAiB;CAEvB,MAAM,EAAE,OAAO,KAAK,GAAG,cAAc;CAGrC,MAAM,WAAoE;EACxE,GAAG;GAAE,YAAY;GAAK,QAAQ;
|
|
1
|
+
{"version":3,"file":"Paragraph.cjs","names":[],"sources":["../../../components/Paragraph/Paragraph.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Text } from '../Text';\n\nconst DEFAULT_TAG = 'p';\n\ntype TextSizeVariants = Pick<VariantProps<typeof Text>, 'size'>;\n\ntype ParagraphSizeVariants = '1' | '2';\ntype ParagraphVariants = { size?: ParagraphSizeVariants } & Omit<VariantProps<typeof Text>, 'size'>;\ntype ParagraphProps = React.ComponentProps<typeof DEFAULT_TAG> &\n ParagraphVariants & { css?: CSS; as?: any };\n\nexport const Paragraph = React.forwardRef<React.ElementRef<typeof DEFAULT_TAG>, ParagraphProps>(\n (props, forwardedRef) => {\n // '2' here is the default Paragraph size variant\n const { size = '1', ...textProps } = props;\n\n // This is the mapping of Paragraph Variants to Text variants\n const textSize: Record<ParagraphSizeVariants, TextSizeVariants['size']> = {\n 1: { '@initial': '3', '@bp2': '4' },\n 2: { '@initial': '5', '@bp2': '6' },\n };\n\n // This is the mapping of Paragraph Variants to Text css\n const textCss: Record<ParagraphSizeVariants, CSS> = {\n 1: { lineHeight: '25px', '@bp2': { lineHeight: '27px' } },\n 2: { color: '$slate11', lineHeight: '27px', '@bp2': { lineHeight: '30px' } },\n };\n return (\n <Text\n as={DEFAULT_TAG}\n {...textProps}\n ref={forwardedRef}\n size={textSize[size]}\n css={{\n ...deepMerge(textCss[size], props.css),\n }}\n />\n );\n },\n);\n"],"mappings":";;;;;;;AAMA,IAAM,cAAc;AASpB,IAAa,YAAY,MAAA,QAAM,YAC5B,OAAO,iBAAiB;CAEvB,MAAM,EAAE,OAAO,KAAK,GAAG,cAAc;CAGrC,MAAM,WAAoE;EACxE,GAAG;GAAE,YAAY;GAAK,QAAQ;EAAI;EAClC,GAAG;GAAE,YAAY;GAAK,QAAQ;EAAI;CACpC;CAGA,MAAM,UAA8C;EAClD,GAAG;GAAE,YAAY;GAAQ,QAAQ,EAAE,YAAY,OAAO;EAAE;EACxD,GAAG;GAAE,OAAO;GAAY,YAAY;GAAQ,QAAQ,EAAE,YAAY,OAAO;EAAE;CAC7E;CACA,OACE,iBAAA,GAAA,kBAAA,KAAC,aAAA,MAAD;EACE,IAAI;EACJ,GAAI;EACJ,KAAK;EACL,MAAM,SAAS;EACf,KAAK,EACH,GAAG,kBAAA,UAAU,QAAQ,OAAO,MAAM,GAAG,EACvC;CACD,CAAA;AAEL,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.js","names":[],"sources":["../../../components/Paragraph/Paragraph.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Text } from '../Text';\n\nconst DEFAULT_TAG = 'p';\n\ntype TextSizeVariants = Pick<VariantProps<typeof Text>, 'size'>;\n\ntype ParagraphSizeVariants = '1' | '2';\ntype ParagraphVariants = { size?: ParagraphSizeVariants } & Omit<VariantProps<typeof Text>, 'size'>;\ntype ParagraphProps = React.ComponentProps<typeof DEFAULT_TAG> &\n ParagraphVariants & { css?: CSS; as?: any };\n\nexport const Paragraph = React.forwardRef<React.ElementRef<typeof DEFAULT_TAG>, ParagraphProps>(\n (props, forwardedRef) => {\n // '2' here is the default Paragraph size variant\n const { size = '1', ...textProps } = props;\n\n // This is the mapping of Paragraph Variants to Text variants\n const textSize: Record<ParagraphSizeVariants, TextSizeVariants['size']> = {\n 1: { '@initial': '3', '@bp2': '4' },\n 2: { '@initial': '5', '@bp2': '6' },\n };\n\n // This is the mapping of Paragraph Variants to Text css\n const textCss: Record<ParagraphSizeVariants, CSS> = {\n 1: { lineHeight: '25px', '@bp2': { lineHeight: '27px' } },\n 2: { color: '$slate11', lineHeight: '27px', '@bp2': { lineHeight: '30px' } },\n };\n return (\n <Text\n as={DEFAULT_TAG}\n {...textProps}\n ref={forwardedRef}\n size={textSize[size]}\n css={{\n ...deepMerge(textCss[size], props.css),\n }}\n />\n );\n },\n);\n"],"mappings":";;;;;AAMA,IAAM,cAAc;AASpB,IAAa,YAAY,MAAM,YAC5B,OAAO,iBAAiB;CAEvB,MAAM,EAAE,OAAO,KAAK,GAAG,cAAc;CAGrC,MAAM,WAAoE;EACxE,GAAG;GAAE,YAAY;GAAK,QAAQ;
|
|
1
|
+
{"version":3,"file":"Paragraph.js","names":[],"sources":["../../../components/Paragraph/Paragraph.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, VariantProps } from '../../stitches.config';\nimport { deepMerge } from '../../utils/deepMerge';\nimport { Text } from '../Text';\n\nconst DEFAULT_TAG = 'p';\n\ntype TextSizeVariants = Pick<VariantProps<typeof Text>, 'size'>;\n\ntype ParagraphSizeVariants = '1' | '2';\ntype ParagraphVariants = { size?: ParagraphSizeVariants } & Omit<VariantProps<typeof Text>, 'size'>;\ntype ParagraphProps = React.ComponentProps<typeof DEFAULT_TAG> &\n ParagraphVariants & { css?: CSS; as?: any };\n\nexport const Paragraph = React.forwardRef<React.ElementRef<typeof DEFAULT_TAG>, ParagraphProps>(\n (props, forwardedRef) => {\n // '2' here is the default Paragraph size variant\n const { size = '1', ...textProps } = props;\n\n // This is the mapping of Paragraph Variants to Text variants\n const textSize: Record<ParagraphSizeVariants, TextSizeVariants['size']> = {\n 1: { '@initial': '3', '@bp2': '4' },\n 2: { '@initial': '5', '@bp2': '6' },\n };\n\n // This is the mapping of Paragraph Variants to Text css\n const textCss: Record<ParagraphSizeVariants, CSS> = {\n 1: { lineHeight: '25px', '@bp2': { lineHeight: '27px' } },\n 2: { color: '$slate11', lineHeight: '27px', '@bp2': { lineHeight: '30px' } },\n };\n return (\n <Text\n as={DEFAULT_TAG}\n {...textProps}\n ref={forwardedRef}\n size={textSize[size]}\n css={{\n ...deepMerge(textCss[size], props.css),\n }}\n />\n );\n },\n);\n"],"mappings":";;;;;AAMA,IAAM,cAAc;AASpB,IAAa,YAAY,MAAM,YAC5B,OAAO,iBAAiB;CAEvB,MAAM,EAAE,OAAO,KAAK,GAAG,cAAc;CAGrC,MAAM,WAAoE;EACxE,GAAG;GAAE,YAAY;GAAK,QAAQ;EAAI;EAClC,GAAG;GAAE,YAAY;GAAK,QAAQ;EAAI;CACpC;CAGA,MAAM,UAA8C;EAClD,GAAG;GAAE,YAAY;GAAQ,QAAQ,EAAE,YAAY,OAAO;EAAE;EACxD,GAAG;GAAE,OAAO;GAAY,YAAY;GAAQ,QAAQ,EAAE,YAAY,OAAO;EAAE;CAC7E;CACA,OACE,oBAAC,MAAD;EACE,IAAI;EACJ,GAAI;EACJ,KAAK;EACL,MAAM,SAAS;EACf,KAAK,EACH,GAAG,UAAU,QAAQ,OAAO,MAAM,GAAG,EACvC;CACD,CAAA;AAEL,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.vanilla.cjs","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;;AAwBA,IAAM,iCAAA,GAAA,MAAA,aAEF,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,qBAAA,
|
|
1
|
+
{"version":3,"file":"Paragraph.vanilla.cjs","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;;AAwBA,IAAM,iCAAA,GAAA,MAAA,aAEF,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,qBAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAA,yBAAA,kBAAoB,IAAI;CAC1B;CAIA,OACE,iBAAA,GAAA,kBAAA,KAAC,WAAD;EACO;EACL,WAAW,GALK,8BAAA,gBAAgB,EAAE,KAAK,CAKzB,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,8BAA8B,cAAc;AAE5C,IAAa,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Paragraph.vanilla.js","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,gCAAgC,YAElC,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Paragraph.vanilla.js","names":[],"sources":["../../../components/Paragraph/Paragraph.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { paragraphRecipe } from './Paragraph.vanilla.css';\n\ntype ParagraphRecipeVariants = RecipeVariants<typeof paragraphRecipe>;\n\ninterface ParagraphOwnProps extends Omit<ParagraphRecipeVariants, never>, CSSProps {}\n\nexport type ParagraphVanillaProps<C extends ElementType = 'p'> = PolymorphicComponentProps<\n C,\n ParagraphOwnProps\n>;\n\ntype ParagraphVanillaComponent = PolymorphicComponent<'p', ParagraphVanillaProps<ElementType>>;\n\nconst ParagraphVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'p'>(\n { as, size, className, css, style, ...props }: ParagraphVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'p';\n\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = paragraphRecipe({ size });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nParagraphVanillaComponentImpl.displayName = 'ParagraphVanilla';\n\nexport const ParagraphVanilla = ParagraphVanillaComponentImpl as ParagraphVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,gCAAgC,YAElC,EAAE,IAAI,MAAM,WAAW,KAAK,OAAO,GAAG,SACtC,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAIA,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GALK,gBAAgB,EAAE,KAAK,CAKzB,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,8BAA8B,cAAc;AAE5C,IAAa,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.cjs","names":[],"sources":["../../../components/Popover/Popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\nexport type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root> & {\n children: React.ReactNode;\n};\nexport type PopoverVariants = VariantProps<typeof Popover>;\n\nexport function Popover({ children, ...props }: PopoverProps) {\n return <PopoverPrimitive.Root {...props}>{children}</PopoverPrimitive.Root>;\n}\n\nconst StyledContent = styled(PopoverPrimitive.Content, panelStyles, {\n minWidth: 200,\n minHeight: '$6',\n maxWidth: 265,\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\nconst fillColorVariants: Record<number, CSS> = {\n 0: {\n fill: '$00dp',\n },\n 1: {\n fill: '$01dp',\n },\n 2: {\n fill: '$02dp',\n },\n 3: {\n fill: '$03dp',\n },\n 4: {\n fill: '$04dp',\n },\n 5: {\n fill: '$05dp',\n },\n};\n\nconst StyledArrow = styled(PopoverPrimitive.Arrow, {\n fill: 'currentColor',\n variants: {\n elevation: fillColorVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype PopoverContentPrimitiveProps = Omit<\n React.ComponentProps<typeof PopoverPrimitive.Content>,\n 'as'\n>;\nexport type PopoverContentProps = PopoverContentPrimitiveProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n hideArrow?: boolean;\n arrowCss?: CSS;\n };\n\nexport const PopoverContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n PopoverContentProps\n>(({ children, hideArrow, arrowCss, elevation, ...props }, fowardedRef) => (\n <StyledContent sideOffset={0} elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n {!hideArrow && (\n <StyledArrow elevation={elevation} width={11} height={5} offset={5} css={arrowCss} />\n )}\n </StyledContent>\n));\n\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverClose = PopoverPrimitive.Close;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverPortal = PopoverPrimitive.Portal;\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,QAAQ,EAAE,UAAU,GAAG,SAAuB;
|
|
1
|
+
{"version":3,"file":"Popover.cjs","names":[],"sources":["../../../components/Popover/Popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\nexport type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root> & {\n children: React.ReactNode;\n};\nexport type PopoverVariants = VariantProps<typeof Popover>;\n\nexport function Popover({ children, ...props }: PopoverProps) {\n return <PopoverPrimitive.Root {...props}>{children}</PopoverPrimitive.Root>;\n}\n\nconst StyledContent = styled(PopoverPrimitive.Content, panelStyles, {\n minWidth: 200,\n minHeight: '$6',\n maxWidth: 265,\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\nconst fillColorVariants: Record<number, CSS> = {\n 0: {\n fill: '$00dp',\n },\n 1: {\n fill: '$01dp',\n },\n 2: {\n fill: '$02dp',\n },\n 3: {\n fill: '$03dp',\n },\n 4: {\n fill: '$04dp',\n },\n 5: {\n fill: '$05dp',\n },\n};\n\nconst StyledArrow = styled(PopoverPrimitive.Arrow, {\n fill: 'currentColor',\n variants: {\n elevation: fillColorVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype PopoverContentPrimitiveProps = Omit<\n React.ComponentProps<typeof PopoverPrimitive.Content>,\n 'as'\n>;\nexport type PopoverContentProps = PopoverContentPrimitiveProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n hideArrow?: boolean;\n arrowCss?: CSS;\n };\n\nexport const PopoverContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n PopoverContentProps\n>(({ children, hideArrow, arrowCss, elevation, ...props }, fowardedRef) => (\n <StyledContent sideOffset={0} elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n {!hideArrow && (\n <StyledArrow elevation={elevation} width={11} height={5} offset={5} css={arrowCss} />\n )}\n </StyledContent>\n));\n\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverClose = PopoverPrimitive.Close;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverPortal = PopoverPrimitive.Portal;\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,QAAQ,EAAE,UAAU,GAAG,SAAuB;CAC5D,OAAO,iBAAA,GAAA,kBAAA,KAAC,wBAAiB,MAAlB;EAAuB,GAAI;EAAQ;CAAgC,CAAA;AAC5E;AAEA,IAAM,gBAAgB,wBAAA,OAAO,wBAAiB,SAAS,cAAA,aAAa;CAClE,UAAU;CACV,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAW,kBAAA,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAuBD,IAAM,cAAc,wBAAA,OAAO,wBAAiB,OAAO;CACjD,MAAM;CACN,UAAU,EACR,WAAW;EAvBb,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;CAMa,EACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAaD,IAAa,iBAAiB,MAAA,QAAM,YAGjC,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,SAAS,gBACzD,iBAAA,GAAA,kBAAA,MAAC,eAAD;CAAe,YAAY;CAAc;CAAW,GAAI;CAAO,KAAK;WAApE,CACG,UACA,CAAC,aACA,iBAAA,GAAA,kBAAA,KAAC,aAAD;EAAwB;EAAW,OAAO;EAAI,QAAQ;EAAG,QAAQ;EAAG,KAAK;CAAW,CAAA,CAEzE;EAChB;AAED,IAAa,iBAAiB,wBAAiB;AAC/C,IAAa,eAAe,wBAAiB;AAC7C,IAAa,gBAAgB,wBAAiB;AAC9C,IAAa,gBAAgB,wBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","names":[],"sources":["../../../components/Popover/Popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\nexport type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root> & {\n children: React.ReactNode;\n};\nexport type PopoverVariants = VariantProps<typeof Popover>;\n\nexport function Popover({ children, ...props }: PopoverProps) {\n return <PopoverPrimitive.Root {...props}>{children}</PopoverPrimitive.Root>;\n}\n\nconst StyledContent = styled(PopoverPrimitive.Content, panelStyles, {\n minWidth: 200,\n minHeight: '$6',\n maxWidth: 265,\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\nconst fillColorVariants: Record<number, CSS> = {\n 0: {\n fill: '$00dp',\n },\n 1: {\n fill: '$01dp',\n },\n 2: {\n fill: '$02dp',\n },\n 3: {\n fill: '$03dp',\n },\n 4: {\n fill: '$04dp',\n },\n 5: {\n fill: '$05dp',\n },\n};\n\nconst StyledArrow = styled(PopoverPrimitive.Arrow, {\n fill: 'currentColor',\n variants: {\n elevation: fillColorVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype PopoverContentPrimitiveProps = Omit<\n React.ComponentProps<typeof PopoverPrimitive.Content>,\n 'as'\n>;\nexport type PopoverContentProps = PopoverContentPrimitiveProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n hideArrow?: boolean;\n arrowCss?: CSS;\n };\n\nexport const PopoverContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n PopoverContentProps\n>(({ children, hideArrow, arrowCss, elevation, ...props }, fowardedRef) => (\n <StyledContent sideOffset={0} elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n {!hideArrow && (\n <StyledArrow elevation={elevation} width={11} height={5} offset={5} css={arrowCss} />\n )}\n </StyledContent>\n));\n\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverClose = PopoverPrimitive.Close;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverPortal = PopoverPrimitive.Portal;\n"],"mappings":";;;;;;;AAYA,SAAgB,QAAQ,EAAE,UAAU,GAAG,SAAuB;
|
|
1
|
+
{"version":3,"file":"Popover.js","names":[],"sources":["../../../components/Popover/Popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\nexport type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root> & {\n children: React.ReactNode;\n};\nexport type PopoverVariants = VariantProps<typeof Popover>;\n\nexport function Popover({ children, ...props }: PopoverProps) {\n return <PopoverPrimitive.Root {...props}>{children}</PopoverPrimitive.Root>;\n}\n\nconst StyledContent = styled(PopoverPrimitive.Content, panelStyles, {\n minWidth: 200,\n minHeight: '$6',\n maxWidth: 265,\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\nconst fillColorVariants: Record<number, CSS> = {\n 0: {\n fill: '$00dp',\n },\n 1: {\n fill: '$01dp',\n },\n 2: {\n fill: '$02dp',\n },\n 3: {\n fill: '$03dp',\n },\n 4: {\n fill: '$04dp',\n },\n 5: {\n fill: '$05dp',\n },\n};\n\nconst StyledArrow = styled(PopoverPrimitive.Arrow, {\n fill: 'currentColor',\n variants: {\n elevation: fillColorVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype PopoverContentPrimitiveProps = Omit<\n React.ComponentProps<typeof PopoverPrimitive.Content>,\n 'as'\n>;\nexport type PopoverContentProps = PopoverContentPrimitiveProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n hideArrow?: boolean;\n arrowCss?: CSS;\n };\n\nexport const PopoverContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n PopoverContentProps\n>(({ children, hideArrow, arrowCss, elevation, ...props }, fowardedRef) => (\n <StyledContent sideOffset={0} elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n {!hideArrow && (\n <StyledArrow elevation={elevation} width={11} height={5} offset={5} css={arrowCss} />\n )}\n </StyledContent>\n));\n\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverClose = PopoverPrimitive.Close;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverPortal = PopoverPrimitive.Portal;\n"],"mappings":";;;;;;;AAYA,SAAgB,QAAQ,EAAE,UAAU,GAAG,SAAuB;CAC5D,OAAO,oBAAC,iBAAiB,MAAlB;EAAuB,GAAI;EAAQ;CAAgC,CAAA;AAC5E;AAEA,IAAM,gBAAgB,OAAO,iBAAiB,SAAS,aAAa;CAClE,UAAU;CACV,WAAW;CACX,UAAU;CACV,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAW,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAuBD,IAAM,cAAc,OAAO,iBAAiB,OAAO;CACjD,MAAM;CACN,UAAU,EACR,WAAW;EAvBb,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;EACA,GAAG,EACD,MAAM,QACR;CAMa,EACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAaD,IAAa,iBAAiB,MAAM,YAGjC,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,SAAS,gBACzD,qBAAC,eAAD;CAAe,YAAY;CAAc;CAAW,GAAI;CAAO,KAAK;WAApE,CACG,UACA,CAAC,aACA,oBAAC,aAAD;EAAwB;EAAW,OAAO;EAAI,QAAQ;EAAG,QAAQ;EAAG,KAAK;CAAW,CAAA,CAEzE;EAChB;AAED,IAAa,iBAAiB,iBAAiB;AAC/C,IAAa,eAAe,iBAAiB;AAC7C,IAAa,gBAAgB,iBAAiB;AAC9C,IAAa,gBAAgB,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.cjs","names":[],"sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"mappings":";;;;;;;;AAKA,IAAa,aAAa,wBAAA,OAAO,4BAAoB,MAAM,EACzD,SAAS,
|
|
1
|
+
{"version":3,"file":"Radio.cjs","names":[],"sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"mappings":";;;;;;;;AAKA,IAAa,aAAa,wBAAA,OAAO,4BAAoB,MAAM,EACzD,SAAS,OACX,CAAC;AAED,IAAa,wBAAwB;CACnC,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,gBAAgB;CAChB,OAAO;CACP,UAAU;CACV,YAAY;EACV,SAAS;EACT,SAAS;EACT,OAAO;EACP,QAAQ;EACR,cAAc;EACd,iBAAiB;CACnB;AACF;AAEA,IAAM,kBAAkB,wBAAA,OAAO,4BAAoB,WAAW,qBAAqB;AAEnF,IAAa,oBAAoB;CAC/B,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,aACb;CACA,YAAY,EACV,WAAW,aACb;CACA,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,yBAAyB;CAEzB,cAAc;CACd,OAAO;CACP,WAAW;CACX,UAAU;CACV,yBAAyB,EACvB,iBAAiB,kBACnB;AACF;AACA,IAAM,cAAc,wBAAA,OAAO,4BAAoB,MAAM,mBAAmB;CACtE,UAAU,EACR,WAAW;EACT,QAAQ;EACR,WAAW;CACb,EACF;CACA,mBAAmB;EACjB,SAAS;EACT,WAAW;CACb;CAEA,cAAc;EACZ,eAAe;EACf,kBAAkB,EAChB,OAAO,qBACT;EACA,yBAAyB,EACvB,iBAAiB,4BACnB;GAEC,KAAK,oBAAoB,EACxB,YAAY,EACV,iBAAiB,mBACnB,EACF;CACF;CAEA,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;EACV;EACA,KAAK;GACH,OAAO;GACP,QAAQ;IAEP,KAAK,oBAAoB,EACxB,YAAY;IACV,OAAO;IACP,QAAQ;GACV,EACF;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,IACR;AACF,CAAC;AASD,IAAa,QAAQ,MAAA,QAAM,YACxB,OAAO,iBACN,iBAAA,GAAA,kBAAA,KAAC,aAAD;CAAa,GAAI;CAAO,KAAK;WAC3B,iBAAA,GAAA,kBAAA,KAAC,iBAAD,CAAkB,CAAA;AACP,CAAA,CAEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","names":[],"sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"mappings":";;;;;AAKA,IAAa,aAAa,OAAO,oBAAoB,MAAM,EACzD,SAAS,
|
|
1
|
+
{"version":3,"file":"Radio.js","names":[],"sources":["../../../components/Radio/Radio.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\n\nexport const RadioGroup = styled(RadioGroupPrimitive.Root, {\n display: 'flex',\n});\n\nexport const INDICATOR_BASE_STYLES = {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n position: 'relative',\n '&::after': {\n content: '\"\"',\n display: 'block',\n width: '7px',\n height: '7px',\n borderRadius: '$round',\n backgroundColor: '$contentBg',\n },\n};\n\nconst StyledIndicator = styled(RadioGroupPrimitive.Indicator, INDICATOR_BASE_STYLES);\n\nexport const RADIO_BASE_STYLES = {\n all: 'unset',\n boxSizing: 'border-box',\n userSelect: 'none',\n '&::before': {\n boxSizing: 'border-box',\n },\n '&::after': {\n boxSizing: 'border-box',\n },\n alignItems: 'center',\n appearance: 'none',\n display: 'inline-flex',\n justifyContent: 'center',\n lineHeight: '1',\n margin: '0',\n outline: 'none',\n padding: '0',\n textDecoration: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n borderRadius: '50%',\n color: '$hiContrast',\n boxShadow: 'inset 0 0 0 1px $colors$radioBorder',\n overflow: 'hidden',\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicator',\n },\n};\nconst StyledRadio = styled(RadioGroupPrimitive.Item, RADIO_BASE_STYLES, {\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n boxShadow: 'inset 0 0 0 1px $colors$radioHoverBorder',\n },\n },\n '&:focus-visible': {\n outline: 'none',\n boxShadow: 'inset 0 0 0 1px $colors$radioFocusBorder, 0 0 0 1px $colors$radioFocusBorder',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n '&::placeholder': {\n color: '$radioDisabledText',\n },\n '&[data-state=checked]': {\n backgroundColor: '$radioIndicatorDisabledBg',\n },\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n backgroundColor: '$radioDisabledBg',\n },\n },\n },\n\n variants: {\n size: {\n '1': {\n width: '$3',\n height: '$3',\n },\n '2': {\n width: '$5',\n height: '$5',\n\n [`& ${StyledIndicator}`]: {\n '&::after': {\n width: '$3',\n height: '$3',\n },\n },\n },\n },\n },\n defaultVariants: {\n size: '1',\n },\n});\n\nexport type RadioVariants = VariantProps<typeof StyledRadio>;\ntype RadioGroupItemPrimitiveProps = Omit<\n React.ComponentProps<typeof RadioGroupPrimitive.Item>,\n 'as'\n>;\nexport type RadioProps = RadioGroupItemPrimitiveProps & RadioVariants & { css?: CSS };\n\nexport const Radio = React.forwardRef<React.ElementRef<typeof StyledRadio>, RadioProps>(\n (props, forwardedRef) => (\n <StyledRadio {...props} ref={forwardedRef}>\n <StyledIndicator />\n </StyledRadio>\n )\n);\n"],"mappings":";;;;;AAKA,IAAa,aAAa,OAAO,oBAAoB,MAAM,EACzD,SAAS,OACX,CAAC;AAED,IAAa,wBAAwB;CACnC,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,gBAAgB;CAChB,OAAO;CACP,UAAU;CACV,YAAY;EACV,SAAS;EACT,SAAS;EACT,OAAO;EACP,QAAQ;EACR,cAAc;EACd,iBAAiB;CACnB;AACF;AAEA,IAAM,kBAAkB,OAAO,oBAAoB,WAAW,qBAAqB;AAEnF,IAAa,oBAAoB;CAC/B,KAAK;CACL,WAAW;CACX,YAAY;CACZ,aAAa,EACX,WAAW,aACb;CACA,YAAY,EACV,WAAW,aACb;CACA,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,yBAAyB;CAEzB,cAAc;CACd,OAAO;CACP,WAAW;CACX,UAAU;CACV,yBAAyB,EACvB,iBAAiB,kBACnB;AACF;AACA,IAAM,cAAc,OAAO,oBAAoB,MAAM,mBAAmB;CACtE,UAAU,EACR,WAAW;EACT,QAAQ;EACR,WAAW;CACb,EACF;CACA,mBAAmB;EACjB,SAAS;EACT,WAAW;CACb;CAEA,cAAc;EACZ,eAAe;EACf,kBAAkB,EAChB,OAAO,qBACT;EACA,yBAAyB,EACvB,iBAAiB,4BACnB;GAEC,KAAK,oBAAoB,EACxB,YAAY,EACV,iBAAiB,mBACnB,EACF;CACF;CAEA,UAAU,EACR,MAAM;EACJ,KAAK;GACH,OAAO;GACP,QAAQ;EACV;EACA,KAAK;GACH,OAAO;GACP,QAAQ;IAEP,KAAK,oBAAoB,EACxB,YAAY;IACV,OAAO;IACP,QAAQ;GACV,EACF;EACF;CACF,EACF;CACA,iBAAiB,EACf,MAAM,IACR;AACF,CAAC;AASD,IAAa,QAAQ,MAAM,YACxB,OAAO,iBACN,oBAAC,aAAD;CAAa,GAAI;CAAO,KAAK;WAC3B,oBAAC,iBAAD,CAAkB,CAAA;AACP,CAAA,CAEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.themes.cjs","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;
|
|
1
|
+
{"version":3,"file":"Radio.themes.cjs","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;CAaQ,OAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,2BAAA,GAAA,WAAA,SAAoC,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,2BAAA,GAAA,WAAA,SAAoC,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;wBACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.themes.js","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;
|
|
1
|
+
{"version":3,"file":"Radio.themes.js","names":[],"sources":["../../../components/Radio/Radio.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n radioBorder: Property.Color;\n radioHoverBg: Property.Color;\n radioHoverBorder: Property.Color;\n radioFocusBorder: Property.Color;\n radioDisabledBg: Property.Color;\n radioDisabledBorder: Property.Color;\n radioIndicatorDisabledBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: 'transparent',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue5',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n radioIndicator: '$primary',\n radioBorder: '$grayBlue9',\n radioHoverBg: '$deepBlue3',\n radioHoverBorder: '$primary',\n radioFocusBorder: '$primary',\n radioDisabledBg: '$deepBlue3',\n radioDisabledBorder: '$deepBlue4',\n radioIndicatorDisabledBg: tinycolor(primaryColor.value).setAlpha(0.6).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAaQ,OAAA,YAAqB,kBAAkB;EAClD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,gBAAgB;EAChB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,kBAAkB;EAClB,iBAAiB;EACjB,qBAAqB;EACrB,0BAA0B,UAAU,aAAa,KAAK,EAAE,SAAS,EAAG,EAAE,YAAY;CACpF;wBACF"}
|