@atom-learning/components 3.10.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -2
- package/dist/components/accordion/Accordion.d.ts +19 -7
- package/dist/components/accordion/AccordionContent.d.ts +19 -7
- package/dist/components/accordion/AccordionItem.d.ts +19 -7
- package/dist/components/accordion/AccordionTrigger.d.ts +19 -7
- package/dist/components/action-icon/ActionIcon.d.ts +20 -8
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +19 -7
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +19 -7
- package/dist/components/alert-dialog/alert-context/AlertDialogIcon.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialogIcon.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +38 -14
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/badge/Badge.d.ts +38 -14
- package/dist/components/badge/BadgeIcon.d.ts +38 -14
- package/dist/components/badge/BadgeText.d.ts +38 -14
- package/dist/components/badge/stitches.badge.colorscheme.config.js +1 -1
- package/dist/components/badge/stitches.badge.colorscheme.config.js.map +1 -1
- package/dist/components/banner/BannerContainer.d.ts +38 -14
- package/dist/components/banner/banner-regular/BannerRegularActions.js +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +38 -14
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +40 -16
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +19 -7
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +38 -14
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +40 -16
- package/dist/components/box/Box.d.ts +19 -7
- package/dist/components/button/Button.d.ts +20 -8
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Day.d.ts +19 -7
- package/dist/components/calendar/Day.js +1 -1
- package/dist/components/calendar/Day.js.map +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselArrows.js.map +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +19 -7
- package/dist/components/carousel/CarouselPagination.js +1 -1
- package/dist/components/carousel/CarouselPagination.js.map +1 -1
- package/dist/components/carousel/CarouselSlide.d.ts +19 -7
- package/dist/components/carousel/CarouselSlider.d.ts +19 -7
- package/dist/components/checkbox/Checkbox.d.ts +19 -7
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +57 -21
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +76 -28
- package/dist/components/chip/Chip.d.ts +95 -35
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +76 -28
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +76 -28
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +38 -14
- package/dist/components/combobox/Combobox.d.ts +19 -7
- package/dist/components/combobox/ComboboxInput.d.ts +19 -7
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +19 -7
- package/dist/components/combobox/ComboboxOption.d.ts +19 -7
- package/dist/components/combobox/ComboboxOption.js +1 -1
- package/dist/components/combobox/ComboboxOption.js.map +1 -1
- package/dist/components/combobox/ComboboxPopover.d.ts +19 -7
- package/dist/components/create-password-field/CreatePasswordField.js +1 -1
- package/dist/components/data-table/DataTableBulkActions.js +1 -1
- package/dist/components/data-table/DataTableBulkActions.js.map +1 -1
- package/dist/components/data-table/DataTableLoading.d.ts +19 -7
- package/dist/components/data-table/DataTableRow.js +1 -1
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/pagination/Pagination.d.ts +19 -7
- package/dist/components/dialog/Dialog.d.ts +19 -7
- package/dist/components/dialog/DialogBackground.d.ts +38 -14
- package/dist/components/dialog/DialogClose.d.ts +19 -7
- package/dist/components/dialog/DialogContent.d.ts +19 -7
- package/dist/components/divider/Divider.d.ts +19 -7
- package/dist/components/drawer/Drawer.d.ts +116 -44
- package/dist/components/drawer/DrawerContent.d.ts +19 -7
- package/dist/components/drawer/DrawerContent.js +1 -1
- package/dist/components/drawer/DrawerContent.js.map +1 -1
- package/dist/components/drawer/DrawerFooter.d.ts +19 -7
- package/dist/components/drawer/DrawerHeader.d.ts +19 -7
- package/dist/components/drawer/DrawerMain.d.ts +19 -7
- package/dist/components/drawer/DrawerOverlay.d.ts +19 -7
- package/dist/components/drawer/DrawerTrigger.d.ts +19 -7
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +19 -7
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +19 -7
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +19 -7
- package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +19 -7
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +19 -7
- package/dist/components/empty-state/EmptyState.d.ts +38 -14
- package/dist/components/empty-state/EmptyStateBody.d.ts +38 -14
- package/dist/components/empty-state/EmptyStateImage.d.ts +38 -14
- package/dist/components/empty-state/EmptyStateTitle.d.ts +19 -7
- package/dist/components/flex/Flex.d.ts +19 -7
- package/dist/components/form/Form.d.ts +19 -7
- package/dist/components/form/Form.js +1 -1
- package/dist/components/grid/Grid.d.ts +19 -7
- package/dist/components/heading/Heading.d.ts +19 -7
- package/dist/components/icon/Icon.d.ts +19 -7
- package/dist/components/image/Image.d.ts +19 -7
- package/dist/components/inline-message/InlineMessage.config.js +1 -1
- package/dist/components/inline-message/InlineMessage.config.js.map +1 -1
- package/dist/components/inline-message/InlineMessage.d.ts +38 -14
- package/dist/components/input/Input.d.ts +19 -7
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/label/Label.d.ts +19 -7
- package/dist/components/link/Link.d.ts +19 -7
- package/dist/components/link/Link.js +1 -1
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/list/List.d.ts +38 -14
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +19 -7
- package/dist/components/navigation/NavigationMenu.d.ts +19 -7
- package/dist/components/navigation/NavigationMenu.styles.js +1 -1
- package/dist/components/navigation/NavigationMenu.styles.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +19 -7
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +38 -14
- package/dist/components/navigation/NavigationMenuLink.js +1 -1
- package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
- package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.js +1 -1
- package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +38 -14
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +19 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +38 -14
- package/dist/components/notification-badge/NotificationBadge.d.ts +38 -14
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js.map +1 -1
- package/dist/components/pagination/Pagination.js +1 -1
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/PaginationNextButton.d.ts +40 -16
- package/dist/components/pagination/PaginationPreviousButton.d.ts +40 -16
- package/dist/components/popover/Popover.d.ts +19 -7
- package/dist/components/popover/PopoverContent.d.ts +19 -7
- package/dist/components/progress-bar/ProgressBar.d.ts +20 -8
- package/dist/components/progress-bar/ProgressBar.js +1 -1
- package/dist/components/progress-bar/ProgressBar.js.map +1 -1
- package/dist/components/radio-button/RadioButton.d.ts +19 -7
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button/RadioButton.js.map +1 -1
- package/dist/components/radio-button/RadioButtonGroup.d.ts +19 -7
- package/dist/components/radio-card/RadioCard.d.ts +19 -7
- package/dist/components/radio-card/RadioCard.js +1 -1
- package/dist/components/radio-card/RadioCard.js.map +1 -1
- package/dist/components/section-message/SectionMessage.d.ts +136 -52
- package/dist/components/section-message/SectionMessage.js +1 -1
- package/dist/components/section-message/SectionMessage.js.map +1 -1
- package/dist/components/select/Select.d.ts +19 -7
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/side-bar/SideBar.d.ts +152 -56
- package/dist/components/side-bar/SideBarComponents.d.ts +133 -49
- package/dist/components/slider/Slider.d.ts +19 -7
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/sortable/Handle.d.ts +40 -16
- package/dist/components/stack/Stack.d.ts +19 -7
- package/dist/components/stack-content/StackContent.d.ts +19 -7
- package/dist/components/stepper/StepperStepBullet.d.ts +38 -14
- package/dist/components/stepper/StepperStepBullet.js +1 -1
- package/dist/components/stepper/StepperStepBullet.js.map +1 -1
- package/dist/components/stepper/StepperStepContainer.d.ts +38 -14
- package/dist/components/stepper/StepperStepContainer.js +1 -1
- package/dist/components/stepper/StepperStepContainer.js.map +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +38 -14
- package/dist/components/stepper/StepperStepLabel.js +1 -1
- package/dist/components/stepper/StepperStepLabel.js.map +1 -1
- package/dist/components/switch/Switch.d.ts +19 -7
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/table/Table.d.ts +19 -7
- package/dist/components/table/TableBody.d.ts +19 -7
- package/dist/components/table/TableCell.d.ts +19 -7
- package/dist/components/table/TableFooter.d.ts +19 -7
- package/dist/components/table/TableFooterCell.d.ts +19 -7
- package/dist/components/table/TableHeader.d.ts +19 -7
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeader.js.map +1 -1
- package/dist/components/table/TableHeaderCell.d.ts +19 -7
- package/dist/components/table/TableRow.d.ts +38 -14
- package/dist/components/tabs/Tabs.d.ts +19 -7
- package/dist/components/tabs/TabsContent.d.ts +19 -7
- package/dist/components/tabs/TabsTrigger.d.ts +19 -7
- package/dist/components/tabs/TabsTriggerList.d.ts +19 -7
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/TabsTriggerList.js.map +1 -1
- package/dist/components/text/Text.d.ts +20 -8
- package/dist/components/textarea/Textarea.d.ts +19 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/tile/Tile.d.ts +19 -7
- package/dist/components/tile/Tile.js +1 -1
- package/dist/components/tile/Tile.js.map +1 -1
- package/dist/components/tile/TileGroup.d.ts +19 -7
- package/dist/components/tile-interactive/TileInteractive.d.ts +38 -14
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +57 -21
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +38 -14
- package/dist/components/toast/Toast.d.ts +64 -28
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +38 -14
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +38 -14
- package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +19 -7
- package/dist/components/toggle-group/index.d.ts +95 -35
- package/dist/components/tooltip/TooltipContent.d.ts +19 -7
- package/dist/components/top-bar/TopBar.d.ts +19 -7
- package/dist/components/top-bar/TopBarBrand.d.ts +57 -21
- package/dist/components/tree/Tree.d.ts +228 -84
- package/dist/components/tree/TreeCollapsible.d.ts +19 -7
- package/dist/components/tree/TreeCollapsibleContent.d.ts +38 -14
- package/dist/components/tree/TreeIcon.d.ts +38 -14
- package/dist/components/tree/TreeItemContent.d.ts +19 -7
- package/dist/components/tree/TreeListItem.d.ts +19 -7
- package/dist/components/video/Video.d.ts +38 -14
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +19 -7
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +14 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -1
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/stitches.d.ts +209 -77
- package/dist/stitches.js +1 -1
- package/dist/stitches.js.map +1 -1
- package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +20 -8
- package/dist/utilities/create-theme-variants/createThemeVariants.js.map +1 -1
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +38 -14
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCard.js","sources":["../../../src/components/radio-card/RadioCard.tsx"],"sourcesContent":["import * as RadioGroup from '@radix-ui/react-radio-group'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../box/Box'\n\nexport const StyledRadioCard = styled(RadioGroup.Item, {\n alignItems: 'center',\n bg: 'white',\n border: '1px solid $tonal200',\n borderRadius: '$0',\n cursor: 'pointer',\n display: 'flex',\n textAlign: 'left',\n '&[data-state=\"checked\"]': {\n outline: '2px solid $
|
|
1
|
+
{"version":3,"file":"RadioCard.js","sources":["../../../src/components/radio-card/RadioCard.tsx"],"sourcesContent":["import * as RadioGroup from '@radix-ui/react-radio-group'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../box/Box'\n\nexport const StyledRadioCard = styled(RadioGroup.Item, {\n alignItems: 'center',\n bg: 'white',\n border: '1px solid $tonal200',\n borderRadius: '$0',\n cursor: 'pointer',\n display: 'flex',\n textAlign: 'left',\n '&[data-state=\"checked\"]': {\n outline: '2px solid $primary800',\n outlineOffset: '-2px'\n },\n variants: {\n align: {\n left: { flexDirection: 'row' },\n right: { flexDirection: 'row-reverse' }\n },\n size: {\n md: { px: '$4', py: '$3' },\n lg: { px: '$5', py: '$4' }\n },\n isFullWidth: {\n true: { width: '100%' },\n false: { width: 'max-content' }\n }\n }\n})\n\nconst RadioButton = styled('div', {\n alignItems: 'center',\n appearance: 'none',\n backgroundColor: 'transparent',\n border: '1px solid $tonal500',\n borderRadius: '$round',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n p: 0,\n size: '$1',\n transition: 'all 50ms ease-out',\n '[data-state=\"checked\"] &': {\n backgroundColor: '$primary800',\n borderColor: '$primary800'\n },\n variants: {\n containerIsFullWidth: {\n true: {},\n false: {}\n },\n align: {\n left: { mr: '$4' },\n right: {}\n }\n },\n\n compoundVariants: [\n {\n containerIsFullWidth: true,\n align: 'right',\n css: { ml: 'auto' }\n },\n {\n containerIsFullWidth: false,\n align: 'right',\n css: { ml: '$4' }\n }\n ]\n})\n\nconst Indicator = styled(RadioGroup.Indicator, {\n backgroundColor: 'white',\n borderRadius: '$round',\n position: 'absolute',\n size: '6px'\n})\n\ntype RadioCardProps = React.ComponentProps<typeof StyledRadioCard>\n\nexport const RadioCard: React.FC<RadioCardProps> = ({\n children,\n isFullWidth = false,\n size = 'md',\n align = 'left',\n ...rest\n}) => (\n <StyledRadioCard\n {...rest}\n align={align}\n isFullWidth={isFullWidth}\n size={size}\n >\n <RadioButton align={align} containerIsFullWidth={isFullWidth}>\n <Indicator />\n </RadioButton>\n <Box>{children}</Box>\n </StyledRadioCard>\n)\n"],"names":["StyledRadioCard","styled","RadioGroup","RadioButton","Indicator","RadioCard","children","isFullWidth","size","align","rest","React","Box"],"mappings":"qJAOa,MAAAA,EAAkBC,EAAOC,EAAW,KAAM,CACrD,WAAY,SACZ,GAAI,QACJ,OAAQ,sBACR,aAAc,KACd,OAAQ,UACR,QAAS,OACT,UAAW,OACX,0BAA2B,CACzB,QAAS,wBACT,cAAe,MACjB,EACA,SAAU,CACR,MAAO,CACL,KAAM,CAAE,cAAe,KAAM,EAC7B,MAAO,CAAE,cAAe,aAAc,CACxC,EACA,KAAM,CACJ,GAAI,CAAE,GAAI,KAAM,GAAI,IAAK,EACzB,GAAI,CAAE,GAAI,KAAM,GAAI,IAAK,CAC3B,EACA,YAAa,CACX,KAAM,CAAE,MAAO,MAAO,EACtB,MAAO,CAAE,MAAO,aAAc,CAChC,CACF,CACF,CAAC,EAEKC,EAAcF,EAAO,MAAO,CAChC,WAAY,SACZ,WAAY,OACZ,gBAAiB,cACjB,OAAQ,sBACR,aAAc,SACd,QAAS,OACT,WAAY,EACZ,eAAgB,SAChB,EAAG,EACH,KAAM,KACN,WAAY,oBACZ,2BAA4B,CAC1B,gBAAiB,cACjB,YAAa,aACf,EACA,SAAU,CACR,qBAAsB,CACpB,KAAM,CAAA,EACN,MAAO,EACT,EACA,MAAO,CACL,KAAM,CAAE,GAAI,IAAK,EACjB,MAAO,CACT,CAAA,CACF,EAEA,iBAAkB,CAChB,CACE,qBAAsB,GACtB,MAAO,QACP,IAAK,CAAE,GAAI,MAAO,CACpB,EACA,CACE,qBAAsB,GACtB,MAAO,QACP,IAAK,CAAE,GAAI,IAAK,CAClB,CACF,CACF,CAAC,EAEKG,EAAYH,EAAOC,EAAW,UAAW,CAC7C,gBAAiB,QACjB,aAAc,SACd,SAAU,WACV,KAAM,KACR,CAAC,EAIYG,EAAsC,CAAC,CAClD,SAAAC,EACA,YAAAC,EAAc,GACd,KAAAC,EAAO,KACP,MAAAC,EAAQ,UACLC,CACL,IACEC,EAAA,cAACX,GACE,GAAGU,EACJ,MAAOD,EACP,YAAaF,EACb,KAAMC,CAAAA,EAENG,EAAA,cAACR,EAAA,CAAY,MAAOM,EAAO,qBAAsBF,CAC/CI,EAAAA,EAAA,cAACP,EAAA,IAAU,CACb,EACAO,EAAA,cAACC,EAAA,KAAKN,CAAS,CACjB"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const StyledSectionMessage: import("@stitches/react/types/styled-component").StyledComponent<React.FC<import("../dismissible/DismissibleRoot").IDismissibleRootInternalProps & import("../dismissible/DismissibleRoot").IDismissibleRootProps> & {
|
|
3
3
|
Trigger: React.FC<import("../dismissible/DismissibleTrigger").IDismissibleTriggerProps>;
|
|
4
4
|
}, {
|
|
5
|
-
theme?: "
|
|
5
|
+
theme?: "info" | "success" | "warning" | "neutral" | "error" | undefined;
|
|
6
6
|
hasIcon?: boolean | "true" | undefined;
|
|
7
7
|
hasDismiss?: boolean | "true" | undefined;
|
|
8
8
|
}, {
|
|
@@ -23,9 +23,10 @@ declare const StyledSectionMessage: import("@stitches/react/types/styled-compone
|
|
|
23
23
|
hover: string;
|
|
24
24
|
}, {
|
|
25
25
|
colors: {
|
|
26
|
-
|
|
26
|
+
textBold: any;
|
|
27
|
+
textRegular: any;
|
|
27
28
|
textSubtle: any;
|
|
28
|
-
|
|
29
|
+
textMinimal: any;
|
|
29
30
|
background: any;
|
|
30
31
|
backgroundAccent: any;
|
|
31
32
|
grey100: any;
|
|
@@ -172,11 +173,6 @@ declare const StyledSectionMessage: import("@stitches/react/types/styled-compone
|
|
|
172
173
|
alpha200: any;
|
|
173
174
|
alpha250: any;
|
|
174
175
|
alpha600: any;
|
|
175
|
-
primaryLight: any;
|
|
176
|
-
primary: any;
|
|
177
|
-
primaryMid: any;
|
|
178
|
-
primaryDark: any;
|
|
179
|
-
secondary: any;
|
|
180
176
|
brandRed: any;
|
|
181
177
|
brandRedAccent: any;
|
|
182
178
|
brandGreen: any;
|
|
@@ -185,6 +181,10 @@ declare const StyledSectionMessage: import("@stitches/react/types/styled-compone
|
|
|
185
181
|
brandPurpleAccent: any;
|
|
186
182
|
brandYellow: any;
|
|
187
183
|
brandYellowAccent: any;
|
|
184
|
+
infoLight: any;
|
|
185
|
+
info: any;
|
|
186
|
+
infoMid: any;
|
|
187
|
+
infoDark: any;
|
|
188
188
|
successLight: any;
|
|
189
189
|
success: any;
|
|
190
190
|
successMid: any;
|
|
@@ -208,6 +208,18 @@ declare const StyledSectionMessage: import("@stitches/react/types/styled-compone
|
|
|
208
208
|
glBlueLight: any;
|
|
209
209
|
glBluePrimary: any;
|
|
210
210
|
glBlueDark: any;
|
|
211
|
+
primary100: any;
|
|
212
|
+
primary200: any;
|
|
213
|
+
primary300: any;
|
|
214
|
+
primary400: any;
|
|
215
|
+
primary500: any;
|
|
216
|
+
primary600: any;
|
|
217
|
+
primary700: any;
|
|
218
|
+
primary800: any;
|
|
219
|
+
primary900: any;
|
|
220
|
+
primary1000: any;
|
|
221
|
+
primary1100: any;
|
|
222
|
+
primary1200: any;
|
|
211
223
|
};
|
|
212
224
|
space: {
|
|
213
225
|
"0": any;
|
|
@@ -355,9 +367,10 @@ export declare const SectionMessage: {
|
|
|
355
367
|
hover: string;
|
|
356
368
|
}, {
|
|
357
369
|
colors: {
|
|
358
|
-
|
|
370
|
+
textBold: any;
|
|
371
|
+
textRegular: any;
|
|
359
372
|
textSubtle: any;
|
|
360
|
-
|
|
373
|
+
textMinimal: any;
|
|
361
374
|
background: any;
|
|
362
375
|
backgroundAccent: any;
|
|
363
376
|
grey100: any;
|
|
@@ -504,11 +517,6 @@ export declare const SectionMessage: {
|
|
|
504
517
|
alpha200: any;
|
|
505
518
|
alpha250: any;
|
|
506
519
|
alpha600: any;
|
|
507
|
-
primaryLight: any;
|
|
508
|
-
primary: any;
|
|
509
|
-
primaryMid: any;
|
|
510
|
-
primaryDark: any;
|
|
511
|
-
secondary: any;
|
|
512
520
|
brandRed: any;
|
|
513
521
|
brandRedAccent: any;
|
|
514
522
|
brandGreen: any;
|
|
@@ -517,6 +525,10 @@ export declare const SectionMessage: {
|
|
|
517
525
|
brandPurpleAccent: any;
|
|
518
526
|
brandYellow: any;
|
|
519
527
|
brandYellowAccent: any;
|
|
528
|
+
infoLight: any;
|
|
529
|
+
info: any;
|
|
530
|
+
infoMid: any;
|
|
531
|
+
infoDark: any;
|
|
520
532
|
successLight: any;
|
|
521
533
|
success: any;
|
|
522
534
|
successMid: any;
|
|
@@ -540,6 +552,18 @@ export declare const SectionMessage: {
|
|
|
540
552
|
glBlueLight: any;
|
|
541
553
|
glBluePrimary: any;
|
|
542
554
|
glBlueDark: any;
|
|
555
|
+
primary100: any;
|
|
556
|
+
primary200: any;
|
|
557
|
+
primary300: any;
|
|
558
|
+
primary400: any;
|
|
559
|
+
primary500: any;
|
|
560
|
+
primary600: any;
|
|
561
|
+
primary700: any;
|
|
562
|
+
primary800: any;
|
|
563
|
+
primary900: any;
|
|
564
|
+
primary1000: any;
|
|
565
|
+
primary1100: any;
|
|
566
|
+
primary1200: any;
|
|
543
567
|
};
|
|
544
568
|
space: {
|
|
545
569
|
"0": any;
|
|
@@ -683,9 +707,10 @@ export declare const SectionMessage: {
|
|
|
683
707
|
hover: string;
|
|
684
708
|
}, {
|
|
685
709
|
colors: {
|
|
686
|
-
|
|
710
|
+
textBold: any;
|
|
711
|
+
textRegular: any;
|
|
687
712
|
textSubtle: any;
|
|
688
|
-
|
|
713
|
+
textMinimal: any;
|
|
689
714
|
background: any;
|
|
690
715
|
backgroundAccent: any;
|
|
691
716
|
grey100: any;
|
|
@@ -832,11 +857,6 @@ export declare const SectionMessage: {
|
|
|
832
857
|
alpha200: any;
|
|
833
858
|
alpha250: any;
|
|
834
859
|
alpha600: any;
|
|
835
|
-
primaryLight: any;
|
|
836
|
-
primary: any;
|
|
837
|
-
primaryMid: any;
|
|
838
|
-
primaryDark: any;
|
|
839
|
-
secondary: any;
|
|
840
860
|
brandRed: any;
|
|
841
861
|
brandRedAccent: any;
|
|
842
862
|
brandGreen: any;
|
|
@@ -845,6 +865,10 @@ export declare const SectionMessage: {
|
|
|
845
865
|
brandPurpleAccent: any;
|
|
846
866
|
brandYellow: any;
|
|
847
867
|
brandYellowAccent: any;
|
|
868
|
+
infoLight: any;
|
|
869
|
+
info: any;
|
|
870
|
+
infoMid: any;
|
|
871
|
+
infoDark: any;
|
|
848
872
|
successLight: any;
|
|
849
873
|
success: any;
|
|
850
874
|
successMid: any;
|
|
@@ -868,6 +892,18 @@ export declare const SectionMessage: {
|
|
|
868
892
|
glBlueLight: any;
|
|
869
893
|
glBluePrimary: any;
|
|
870
894
|
glBlueDark: any;
|
|
895
|
+
primary100: any;
|
|
896
|
+
primary200: any;
|
|
897
|
+
primary300: any;
|
|
898
|
+
primary400: any;
|
|
899
|
+
primary500: any;
|
|
900
|
+
primary600: any;
|
|
901
|
+
primary700: any;
|
|
902
|
+
primary800: any;
|
|
903
|
+
primary900: any;
|
|
904
|
+
primary1000: any;
|
|
905
|
+
primary1100: any;
|
|
906
|
+
primary1200: any;
|
|
871
907
|
};
|
|
872
908
|
space: {
|
|
873
909
|
"0": any;
|
|
@@ -1010,9 +1046,10 @@ export declare const SectionMessage: {
|
|
|
1010
1046
|
hover: string;
|
|
1011
1047
|
}, {
|
|
1012
1048
|
colors: {
|
|
1013
|
-
|
|
1049
|
+
textBold: any;
|
|
1050
|
+
textRegular: any;
|
|
1014
1051
|
textSubtle: any;
|
|
1015
|
-
|
|
1052
|
+
textMinimal: any;
|
|
1016
1053
|
background: any;
|
|
1017
1054
|
backgroundAccent: any;
|
|
1018
1055
|
grey100: any;
|
|
@@ -1159,11 +1196,6 @@ export declare const SectionMessage: {
|
|
|
1159
1196
|
alpha200: any;
|
|
1160
1197
|
alpha250: any;
|
|
1161
1198
|
alpha600: any;
|
|
1162
|
-
primaryLight: any;
|
|
1163
|
-
primary: any;
|
|
1164
|
-
primaryMid: any;
|
|
1165
|
-
primaryDark: any;
|
|
1166
|
-
secondary: any;
|
|
1167
1199
|
brandRed: any;
|
|
1168
1200
|
brandRedAccent: any;
|
|
1169
1201
|
brandGreen: any;
|
|
@@ -1172,6 +1204,10 @@ export declare const SectionMessage: {
|
|
|
1172
1204
|
brandPurpleAccent: any;
|
|
1173
1205
|
brandYellow: any;
|
|
1174
1206
|
brandYellowAccent: any;
|
|
1207
|
+
infoLight: any;
|
|
1208
|
+
info: any;
|
|
1209
|
+
infoMid: any;
|
|
1210
|
+
infoDark: any;
|
|
1175
1211
|
successLight: any;
|
|
1176
1212
|
success: any;
|
|
1177
1213
|
successMid: any;
|
|
@@ -1195,6 +1231,18 @@ export declare const SectionMessage: {
|
|
|
1195
1231
|
glBlueLight: any;
|
|
1196
1232
|
glBluePrimary: any;
|
|
1197
1233
|
glBlueDark: any;
|
|
1234
|
+
primary100: any;
|
|
1235
|
+
primary200: any;
|
|
1236
|
+
primary300: any;
|
|
1237
|
+
primary400: any;
|
|
1238
|
+
primary500: any;
|
|
1239
|
+
primary600: any;
|
|
1240
|
+
primary700: any;
|
|
1241
|
+
primary800: any;
|
|
1242
|
+
primary900: any;
|
|
1243
|
+
primary1000: any;
|
|
1244
|
+
primary1100: any;
|
|
1245
|
+
primary1200: any;
|
|
1198
1246
|
};
|
|
1199
1247
|
space: {
|
|
1200
1248
|
"0": any;
|
|
@@ -1320,7 +1368,7 @@ export declare const SectionMessage: {
|
|
|
1320
1368
|
Dismiss: ({ label, css, ...rest }: Pick<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
1321
1369
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
1322
1370
|
}, "appearance" | "size" | "css" | "theme" | "isRounded"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
1323
|
-
theme?: "
|
|
1371
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
1324
1372
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
1325
1373
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
1326
1374
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -1343,9 +1391,10 @@ export declare const SectionMessage: {
|
|
|
1343
1391
|
hover: string;
|
|
1344
1392
|
}, {
|
|
1345
1393
|
colors: {
|
|
1346
|
-
|
|
1394
|
+
textBold: any;
|
|
1395
|
+
textRegular: any;
|
|
1347
1396
|
textSubtle: any;
|
|
1348
|
-
|
|
1397
|
+
textMinimal: any;
|
|
1349
1398
|
background: any;
|
|
1350
1399
|
backgroundAccent: any;
|
|
1351
1400
|
grey100: any;
|
|
@@ -1492,11 +1541,6 @@ export declare const SectionMessage: {
|
|
|
1492
1541
|
alpha200: any;
|
|
1493
1542
|
alpha250: any;
|
|
1494
1543
|
alpha600: any;
|
|
1495
|
-
primaryLight: any;
|
|
1496
|
-
primary: any;
|
|
1497
|
-
primaryMid: any;
|
|
1498
|
-
primaryDark: any;
|
|
1499
|
-
secondary: any;
|
|
1500
1544
|
brandRed: any;
|
|
1501
1545
|
brandRedAccent: any;
|
|
1502
1546
|
brandGreen: any;
|
|
@@ -1505,6 +1549,10 @@ export declare const SectionMessage: {
|
|
|
1505
1549
|
brandPurpleAccent: any;
|
|
1506
1550
|
brandYellow: any;
|
|
1507
1551
|
brandYellowAccent: any;
|
|
1552
|
+
infoLight: any;
|
|
1553
|
+
info: any;
|
|
1554
|
+
infoMid: any;
|
|
1555
|
+
infoDark: any;
|
|
1508
1556
|
successLight: any;
|
|
1509
1557
|
success: any;
|
|
1510
1558
|
successMid: any;
|
|
@@ -1528,6 +1576,18 @@ export declare const SectionMessage: {
|
|
|
1528
1576
|
glBlueLight: any;
|
|
1529
1577
|
glBluePrimary: any;
|
|
1530
1578
|
glBlueDark: any;
|
|
1579
|
+
primary100: any;
|
|
1580
|
+
primary200: any;
|
|
1581
|
+
primary300: any;
|
|
1582
|
+
primary400: any;
|
|
1583
|
+
primary500: any;
|
|
1584
|
+
primary600: any;
|
|
1585
|
+
primary700: any;
|
|
1586
|
+
primary800: any;
|
|
1587
|
+
primary900: any;
|
|
1588
|
+
primary1000: any;
|
|
1589
|
+
primary1100: any;
|
|
1590
|
+
primary1200: any;
|
|
1531
1591
|
};
|
|
1532
1592
|
space: {
|
|
1533
1593
|
"0": any;
|
|
@@ -1645,7 +1705,7 @@ export declare const SectionMessage: {
|
|
|
1645
1705
|
};
|
|
1646
1706
|
}> | undefined;
|
|
1647
1707
|
}, "appearance" | "size" | "theme" | "label" | "children" | "as" | "hasTooltip" | "tooltipSide" | "isRounded" | keyof import("../../types").NavigatorActions> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
1648
|
-
theme?: "
|
|
1708
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
1649
1709
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
1650
1710
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
1651
1711
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -1683,9 +1743,10 @@ export declare const SectionMessage: {
|
|
|
1683
1743
|
hover: string;
|
|
1684
1744
|
}, {
|
|
1685
1745
|
colors: {
|
|
1686
|
-
|
|
1746
|
+
textBold: any;
|
|
1747
|
+
textRegular: any;
|
|
1687
1748
|
textSubtle: any;
|
|
1688
|
-
|
|
1749
|
+
textMinimal: any;
|
|
1689
1750
|
background: any;
|
|
1690
1751
|
backgroundAccent: any;
|
|
1691
1752
|
grey100: any;
|
|
@@ -1832,11 +1893,6 @@ export declare const SectionMessage: {
|
|
|
1832
1893
|
alpha200: any;
|
|
1833
1894
|
alpha250: any;
|
|
1834
1895
|
alpha600: any;
|
|
1835
|
-
primaryLight: any;
|
|
1836
|
-
primary: any;
|
|
1837
|
-
primaryMid: any;
|
|
1838
|
-
primaryDark: any;
|
|
1839
|
-
secondary: any;
|
|
1840
1896
|
brandRed: any;
|
|
1841
1897
|
brandRedAccent: any;
|
|
1842
1898
|
brandGreen: any;
|
|
@@ -1845,6 +1901,10 @@ export declare const SectionMessage: {
|
|
|
1845
1901
|
brandPurpleAccent: any;
|
|
1846
1902
|
brandYellow: any;
|
|
1847
1903
|
brandYellowAccent: any;
|
|
1904
|
+
infoLight: any;
|
|
1905
|
+
info: any;
|
|
1906
|
+
infoMid: any;
|
|
1907
|
+
infoDark: any;
|
|
1848
1908
|
successLight: any;
|
|
1849
1909
|
success: any;
|
|
1850
1910
|
successMid: any;
|
|
@@ -1868,6 +1928,18 @@ export declare const SectionMessage: {
|
|
|
1868
1928
|
glBlueLight: any;
|
|
1869
1929
|
glBluePrimary: any;
|
|
1870
1930
|
glBlueDark: any;
|
|
1931
|
+
primary100: any;
|
|
1932
|
+
primary200: any;
|
|
1933
|
+
primary300: any;
|
|
1934
|
+
primary400: any;
|
|
1935
|
+
primary500: any;
|
|
1936
|
+
primary600: any;
|
|
1937
|
+
primary700: any;
|
|
1938
|
+
primary800: any;
|
|
1939
|
+
primary900: any;
|
|
1940
|
+
primary1000: any;
|
|
1941
|
+
primary1100: any;
|
|
1942
|
+
primary1200: any;
|
|
1871
1943
|
};
|
|
1872
1944
|
space: {
|
|
1873
1945
|
"0": any;
|
|
@@ -2012,9 +2084,10 @@ export declare const SectionMessage: {
|
|
|
2012
2084
|
hover: string;
|
|
2013
2085
|
}, {
|
|
2014
2086
|
colors: {
|
|
2015
|
-
|
|
2087
|
+
textBold: any;
|
|
2088
|
+
textRegular: any;
|
|
2016
2089
|
textSubtle: any;
|
|
2017
|
-
|
|
2090
|
+
textMinimal: any;
|
|
2018
2091
|
background: any;
|
|
2019
2092
|
backgroundAccent: any;
|
|
2020
2093
|
grey100: any;
|
|
@@ -2161,11 +2234,6 @@ export declare const SectionMessage: {
|
|
|
2161
2234
|
alpha200: any;
|
|
2162
2235
|
alpha250: any;
|
|
2163
2236
|
alpha600: any;
|
|
2164
|
-
primaryLight: any;
|
|
2165
|
-
primary: any;
|
|
2166
|
-
primaryMid: any;
|
|
2167
|
-
primaryDark: any;
|
|
2168
|
-
secondary: any;
|
|
2169
2237
|
brandRed: any;
|
|
2170
2238
|
brandRedAccent: any;
|
|
2171
2239
|
brandGreen: any;
|
|
@@ -2174,6 +2242,10 @@ export declare const SectionMessage: {
|
|
|
2174
2242
|
brandPurpleAccent: any;
|
|
2175
2243
|
brandYellow: any;
|
|
2176
2244
|
brandYellowAccent: any;
|
|
2245
|
+
infoLight: any;
|
|
2246
|
+
info: any;
|
|
2247
|
+
infoMid: any;
|
|
2248
|
+
infoDark: any;
|
|
2177
2249
|
successLight: any;
|
|
2178
2250
|
success: any;
|
|
2179
2251
|
successMid: any;
|
|
@@ -2197,6 +2269,18 @@ export declare const SectionMessage: {
|
|
|
2197
2269
|
glBlueLight: any;
|
|
2198
2270
|
glBluePrimary: any;
|
|
2199
2271
|
glBlueDark: any;
|
|
2272
|
+
primary100: any;
|
|
2273
|
+
primary200: any;
|
|
2274
|
+
primary300: any;
|
|
2275
|
+
primary400: any;
|
|
2276
|
+
primary500: any;
|
|
2277
|
+
primary600: any;
|
|
2278
|
+
primary700: any;
|
|
2279
|
+
primary800: any;
|
|
2280
|
+
primary900: any;
|
|
2281
|
+
primary1000: any;
|
|
2282
|
+
primary1100: any;
|
|
2283
|
+
primary1200: any;
|
|
2200
2284
|
};
|
|
2201
2285
|
space: {
|
|
2202
2286
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{TooltipProvider as m}from"@radix-ui/react-tooltip";import t from"react";import{styled as
|
|
1
|
+
import{TooltipProvider as m}from"@radix-ui/react-tooltip";import t from"react";import{styled as r}from"../../stitches.js";import{Dismissible as a}from"../dismissible/index.js";import{Stack as g}from"../stack/Stack.js";import{SectionMessageProvider as l,useSectionMessageContext as p}from"./SectionMessageContext.js";import{SectionMessageDescription as f}from"./SectionMessageDescription.js";import{SectionMessageDismiss as h}from"./SectionMessageDismiss.js";import{SectionMessageIcon as $}from"./SectionMessageIcon.js";import{SectionMessageContent as u,SectionMessageActions as d}from"./SectionMessageLayout.js";import{SectionMessageTitle as D}from"./SectionMessageTitle.js";const S=r(a,{position:"relative",borderRadius:"$0",display:"flex",minHeight:"$5",p:"$4",border:"1px solid white",variants:{theme:{success:{bg:"$successLight",color:"$successDark"},warning:{bg:"$warningLight",color:"$warningText"},error:{bg:"$dangerLight",color:"$dangerDark"},neutral:{bg:"$grey100",color:"$grey1000"},info:{bg:"$infoLight",color:"$infoDark"}},hasIcon:{true:{pl:"$6"}},hasDismiss:{true:{pr:"$7"}}}}),b=r(g,{flexGrow:1,justifyContent:"space-between !important"}),M=({children:o,...i})=>{const{theme:s,hasIcon:n,hasDismiss:c}=p();return t.createElement(S,{...i,theme:s,hasIcon:n,hasDismiss:c},t.createElement(b,{gap:3},o))},e=({theme:o="info",...i})=>t.createElement(m,null,t.createElement(l,{theme:o},t.createElement(M,{...i})));e.Title=D,e.Description=f,e.Icon=$,e.Dismiss=h,e.Content=u,e.Actions=d;export{e as SectionMessage};
|
|
2
2
|
//# sourceMappingURL=SectionMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionMessage.js","sources":["../../../src/components/section-message/SectionMessage.tsx"],"sourcesContent":["import { TooltipProvider } from '@radix-ui/react-tooltip'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Dismissible } from '../dismissible'\nimport { Stack } from '../stack'\nimport {\n SectionMessageProvider,\n useSectionMessageContext\n} from './SectionMessageContext'\nimport { SectionMessageDescription } from './SectionMessageDescription'\nimport { SectionMessageDismiss } from './SectionMessageDismiss'\nimport { SectionMessageIcon } from './SectionMessageIcon'\nimport {\n SectionMessageActions,\n SectionMessageContent\n} from './SectionMessageLayout'\nimport { SectionMessageTitle } from './SectionMessageTitle'\n\nconst StyledSectionMessage = styled(Dismissible, {\n position: 'relative',\n borderRadius: '$0',\n display: 'flex',\n minHeight: '$5',\n p: '$4',\n border: '1px solid white',\n variants: {\n theme: {\n success: {\n bg: '$successLight',\n color: '$successDark'\n },\n warning: {\n bg: '$warningLight',\n color: '$warningText'\n },\n error: {\n bg: '$dangerLight',\n color: '$dangerDark'\n },\n neutral: {\n bg: '$grey100',\n color: '$grey1000'\n },\n info: {\n bg: '$
|
|
1
|
+
{"version":3,"file":"SectionMessage.js","sources":["../../../src/components/section-message/SectionMessage.tsx"],"sourcesContent":["import { TooltipProvider } from '@radix-ui/react-tooltip'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Dismissible } from '../dismissible'\nimport { Stack } from '../stack'\nimport {\n SectionMessageProvider,\n useSectionMessageContext\n} from './SectionMessageContext'\nimport { SectionMessageDescription } from './SectionMessageDescription'\nimport { SectionMessageDismiss } from './SectionMessageDismiss'\nimport { SectionMessageIcon } from './SectionMessageIcon'\nimport {\n SectionMessageActions,\n SectionMessageContent\n} from './SectionMessageLayout'\nimport { SectionMessageTitle } from './SectionMessageTitle'\n\nconst StyledSectionMessage = styled(Dismissible, {\n position: 'relative',\n borderRadius: '$0',\n display: 'flex',\n minHeight: '$5',\n p: '$4',\n border: '1px solid white',\n variants: {\n theme: {\n success: {\n bg: '$successLight',\n color: '$successDark'\n },\n warning: {\n bg: '$warningLight',\n color: '$warningText'\n },\n error: {\n bg: '$dangerLight',\n color: '$dangerDark'\n },\n neutral: {\n bg: '$grey100',\n color: '$grey1000'\n },\n info: {\n bg: '$infoLight',\n color: '$infoDark'\n }\n },\n hasIcon: {\n true: {\n pl: '$6'\n }\n },\n hasDismiss: {\n true: {\n pr: '$7'\n }\n }\n }\n})\n\nconst StyledStack = styled(Stack, {\n flexGrow: 1,\n justifyContent: 'space-between !important'\n})\n\nconst SectionMessageRoot = ({\n children,\n ...rest\n}: React.ComponentProps<typeof StyledSectionMessage>): JSX.Element => {\n const { theme, hasIcon, hasDismiss } = useSectionMessageContext()\n\n return (\n <StyledSectionMessage\n {...rest}\n theme={theme}\n hasIcon={hasIcon}\n hasDismiss={hasDismiss}\n >\n <StyledStack gap={3}>{children}</StyledStack>\n </StyledSectionMessage>\n )\n}\n\nexport type SectionMessageTheme =\n | 'success'\n | 'warning'\n | 'error'\n | 'neutral'\n | 'info'\n\nexport interface SectionMessageProps\n extends React.ComponentProps<typeof SectionMessageRoot> {\n theme?: SectionMessageTheme\n}\n\nexport const SectionMessage = ({\n theme = 'info',\n ...rest\n}: SectionMessageProps): JSX.Element => {\n return (\n <TooltipProvider>\n <SectionMessageProvider theme={theme}>\n <SectionMessageRoot {...rest} />\n </SectionMessageProvider>\n </TooltipProvider>\n )\n}\n\nSectionMessage.Title = SectionMessageTitle\nSectionMessage.Description = SectionMessageDescription\nSectionMessage.Icon = SectionMessageIcon\nSectionMessage.Dismiss = SectionMessageDismiss\nSectionMessage.Content = SectionMessageContent\nSectionMessage.Actions = SectionMessageActions\n"],"names":["StyledSectionMessage","styled","Dismissible","StyledStack","Stack","SectionMessageRoot","children","rest","theme","hasIcon","hasDismiss","useSectionMessageContext","React","SectionMessage","TooltipProvider","SectionMessageProvider","SectionMessageTitle","SectionMessageDescription","SectionMessageIcon","SectionMessageDismiss","SectionMessageContent","SectionMessageActions"],"mappings":"mqBAoBA,MAAMA,EAAuBC,EAAOC,EAAa,CAC/C,SAAU,WACV,aAAc,KACd,QAAS,OACT,UAAW,KACX,EAAG,KACH,OAAQ,kBACR,SAAU,CACR,MAAO,CACL,QAAS,CACP,GAAI,gBACJ,MAAO,cACT,EACA,QAAS,CACP,GAAI,gBACJ,MAAO,cACT,EACA,MAAO,CACL,GAAI,eACJ,MAAO,aACT,EACA,QAAS,CACP,GAAI,WACJ,MAAO,WACT,EACA,KAAM,CACJ,GAAI,aACJ,MAAO,WACT,CACF,EACA,QAAS,CACP,KAAM,CACJ,GAAI,IACN,CACF,EACA,WAAY,CACV,KAAM,CACJ,GAAI,IACN,CACF,CACF,CACF,CAAC,EAEKC,EAAcF,EAAOG,EAAO,CAChC,SAAU,EACV,eAAgB,0BAClB,CAAC,EAEKC,EAAqB,CAAC,CAC1B,SAAAC,KACGC,CACL,IAAsE,CACpE,KAAM,CAAE,MAAAC,EAAO,QAAAC,EAAS,WAAAC,CAAW,EAAIC,EAAAA,EAEvC,OACEC,EAAA,cAACZ,EAAA,CACE,GAAGO,EACJ,MAAOC,EACP,QAASC,EACT,WAAYC,CAAAA,EAEZE,EAAA,cAACT,EAAA,CAAY,IAAK,CAAIG,EAAAA,CAAS,CACjC,CAEJ,EAcaO,EAAiB,CAAC,CAC7B,MAAAL,EAAQ,UACLD,CACL,IAEIK,EAAA,cAACE,EAAA,KACCF,EAAA,cAACG,EAAA,CAAuB,MAAOP,GAC7BI,EAAA,cAACP,EAAA,CAAoB,GAAGE,CAAAA,CAAM,CAChC,CACF,EAIJM,EAAe,MAAQG,EACvBH,EAAe,YAAcI,EAC7BJ,EAAe,KAAOK,EACtBL,EAAe,QAAUM,EACzBN,EAAe,QAAUO,EACzBP,EAAe,QAAUQ"}
|
|
@@ -21,9 +21,10 @@ declare const StyledSelect: import("@stitches/react/types/styled-component").Sty
|
|
|
21
21
|
hover: string;
|
|
22
22
|
}, {
|
|
23
23
|
colors: {
|
|
24
|
-
|
|
24
|
+
textBold: any;
|
|
25
|
+
textRegular: any;
|
|
25
26
|
textSubtle: any;
|
|
26
|
-
|
|
27
|
+
textMinimal: any;
|
|
27
28
|
background: any;
|
|
28
29
|
backgroundAccent: any;
|
|
29
30
|
grey100: any;
|
|
@@ -170,11 +171,6 @@ declare const StyledSelect: import("@stitches/react/types/styled-component").Sty
|
|
|
170
171
|
alpha200: any;
|
|
171
172
|
alpha250: any;
|
|
172
173
|
alpha600: any;
|
|
173
|
-
primaryLight: any;
|
|
174
|
-
primary: any;
|
|
175
|
-
primaryMid: any;
|
|
176
|
-
primaryDark: any;
|
|
177
|
-
secondary: any;
|
|
178
174
|
brandRed: any;
|
|
179
175
|
brandRedAccent: any;
|
|
180
176
|
brandGreen: any;
|
|
@@ -183,6 +179,10 @@ declare const StyledSelect: import("@stitches/react/types/styled-component").Sty
|
|
|
183
179
|
brandPurpleAccent: any;
|
|
184
180
|
brandYellow: any;
|
|
185
181
|
brandYellowAccent: any;
|
|
182
|
+
infoLight: any;
|
|
183
|
+
info: any;
|
|
184
|
+
infoMid: any;
|
|
185
|
+
infoDark: any;
|
|
186
186
|
successLight: any;
|
|
187
187
|
success: any;
|
|
188
188
|
successMid: any;
|
|
@@ -206,6 +206,18 @@ declare const StyledSelect: import("@stitches/react/types/styled-component").Sty
|
|
|
206
206
|
glBlueLight: any;
|
|
207
207
|
glBluePrimary: any;
|
|
208
208
|
glBlueDark: any;
|
|
209
|
+
primary100: any;
|
|
210
|
+
primary200: any;
|
|
211
|
+
primary300: any;
|
|
212
|
+
primary400: any;
|
|
213
|
+
primary500: any;
|
|
214
|
+
primary600: any;
|
|
215
|
+
primary700: any;
|
|
216
|
+
primary800: any;
|
|
217
|
+
primary900: any;
|
|
218
|
+
primary1000: any;
|
|
219
|
+
primary1100: any;
|
|
220
|
+
primary1200: any;
|
|
209
221
|
};
|
|
210
222
|
space: {
|
|
211
223
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as o from"react";import{styled as p,theme as s}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{encodeBackgroundIcon as c}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as u}from"../../utilities/style/disabledStyle.js";const m=p("select",{appearance:"none",backgroundColor:"white",backgroundImage:c(s.colors.tonal300.value,"chevron"),backgroundRepeat:"no-repeat, repeat",border:"1px solid $tonal300",borderRadius:"$0",color:"$tonal600",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,transition:"all 75ms ease-out",width:"100%","&:hover":{cursor:"pointer"},"&:focus":{borderColor:"$
|
|
1
|
+
import*as o from"react";import{styled as p,theme as s}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{encodeBackgroundIcon as c}from"../../utilities/style/encode-background-icon.js";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as u}from"../../utilities/style/disabledStyle.js";const m=p("select",{appearance:"none",backgroundColor:"white",backgroundImage:c(s.colors.tonal300.value,"chevron"),backgroundRepeat:"no-repeat, repeat",border:"1px solid $tonal300",borderRadius:"$0",color:"$tonal600",display:"block",fontFamily:"$body",fontWeight:400,lineHeight:1.4,transition:"all 75ms ease-out",width:"100%","&:hover":{cursor:"pointer"},"&:focus":{borderColor:"$primary800",outline:"none"},"&::-ms-expand":{display:"none"},"&[disabled], > option[disabled]":u,variants:{size:{sm:{backgroundPosition:"right $space$2 top 50%, 0 0",backgroundSize:"18px auto, 100%",fontSize:"$sm",height:"$3",pl:"$2",pr:"$5"},md:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$4",pl:"$3",pr:"$6"},lg:{backgroundPosition:"right $space$3 top 50%, 0 0",backgroundSize:"20px auto, 100%",fontSize:"$md",height:"$5",pl:"$3",pr:"$6"}},state:{error:{border:"1px solid $danger"}}}}),a=o.forwardRef(({placeholder:r,children:i,size:n="md",...e},d)=>{const t={size:n,ref:d,...e};return[e.value,e.defaultValue].every(l=>l===void 0)&&(t.defaultValue=""),o.createElement(m,{...t},r&&o.createElement("option",{disabled:!0,hidden:!0,value:""},r),i)});a.displayName="Select";export{a as Select};
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { disabledStyle, encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'white',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n color: '$tonal600',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n transition: 'all 75ms ease-out',\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&:focus': {\n borderColor: '$
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { disabledStyle, encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nconst StyledSelect = styled('select', {\n appearance: 'none',\n backgroundColor: 'white',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundRepeat: 'no-repeat, repeat',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n color: '$tonal600',\n display: 'block',\n fontFamily: '$body',\n fontWeight: 400,\n lineHeight: 1.4,\n transition: 'all 75ms ease-out',\n width: '100%',\n '&:hover': {\n cursor: 'pointer'\n },\n '&:focus': {\n borderColor: '$primary800',\n outline: 'none'\n },\n '&::-ms-expand': {\n display: 'none'\n },\n '&[disabled], > option[disabled]': disabledStyle,\n variants: {\n size: {\n sm: {\n backgroundPosition: 'right $space$2 top 50%, 0 0',\n backgroundSize: '18px auto, 100%',\n fontSize: '$sm',\n height: '$3',\n pl: '$2',\n pr: '$5'\n },\n md: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$4',\n pl: '$3',\n pr: '$6'\n },\n lg: {\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundSize: '20px auto, 100%',\n fontSize: '$md',\n height: '$5',\n pl: '$3',\n pr: '$6'\n }\n },\n state: {\n error: {\n border: '1px solid $danger'\n }\n }\n }\n})\n\nexport type SelectProps = Override<\n React.ComponentProps<typeof StyledSelect>,\n {\n as?: never\n placeholder?: string\n }\n // TODO: figure out why uncommenting this causes TS errors in\n // component declaration\n // & (\n // | { id: string; 'aria-label'?: string }\n // | { 'aria-label': string; id?: string }\n // )\n>\n\nexport const Select: React.FC<SelectProps> = React.forwardRef(\n ({ placeholder, children, size = 'md', ...remainingProps }, ref) => {\n const props = { size, ref, ...remainingProps }\n\n if (\n [remainingProps.value, remainingProps.defaultValue].every(\n (value) => value === undefined\n )\n ) {\n props.defaultValue = ''\n }\n\n return (\n <StyledSelect {...props}>\n {placeholder && (\n <option disabled hidden value=\"\">\n {placeholder}\n </option>\n )}\n {children}\n </StyledSelect>\n )\n }\n)\n\nSelect.displayName = 'Select'\n"],"names":["StyledSelect","styled","encodeBackgroundIcon","theme","disabledStyle","Select","React","placeholder","children","size","remainingProps","ref","props","value"],"mappings":"oZAMA,MAAMA,EAAeC,EAAO,SAAU,CACpC,WAAY,OACZ,gBAAiB,QACjB,gBAAiBC,EAAqBC,EAAM,OAAO,SAAS,MAAO,SAAS,EAC5E,iBAAkB,oBAClB,OAAQ,sBACR,aAAc,KACd,MAAO,YACP,QAAS,QACT,WAAY,QACZ,WAAY,IACZ,WAAY,IACZ,WAAY,oBACZ,MAAO,OACP,UAAW,CACT,OAAQ,SACV,EACA,UAAW,CACT,YAAa,cACb,QAAS,MACX,EACA,gBAAiB,CACf,QAAS,MACX,EACA,kCAAmCC,EACnC,SAAU,CACR,KAAM,CACJ,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,EACA,GAAI,CACF,mBAAoB,8BACpB,eAAgB,kBAChB,SAAU,MACV,OAAQ,KACR,GAAI,KACJ,GAAI,IACN,CACF,EACA,MAAO,CACL,MAAO,CACL,OAAQ,mBACV,CACF,CACF,CACF,CAAC,EAgBYC,EAAgCC,EAAM,WACjD,CAAC,CAAE,YAAAC,EAAa,SAAAC,EAAU,KAAAC,EAAO,QAASC,CAAe,EAAGC,IAAQ,CAClE,MAAMC,EAAQ,CAAE,KAAAH,EAAM,IAAAE,EAAK,GAAGD,CAAe,EAE7C,MACE,CAACA,EAAe,MAAOA,EAAe,YAAY,EAAE,MACjDG,GAAUA,IAAU,MACvB,IAEAD,EAAM,aAAe,IAIrBN,EAAA,cAACN,EAAA,CAAc,GAAGY,CAAAA,EACfL,GACCD,EAAA,cAAC,UAAO,SAAQ,GAAC,OAAM,GAAC,MAAM,IAC3BC,CACH,EAEDC,CACH,CAEJ,CACF,EAEAH,EAAO,YAAc"}
|