@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":"ComboboxInput.js","sources":["../../../src/components/combobox/ComboboxInput.tsx"],"sourcesContent":["import { ComboboxInput as BaseComboboxInput } from '@reach/combobox'\nimport * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nexport const StyledComboboxInput = styled(BaseComboboxInput, {\n boxShadow: 'none', // prevent default iOS default styling\n appearance: 'none',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundRepeat: 'no-repeat, repeat',\n backgroundSize: '20px auto, 100%',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n boxSizing: 'border-box',\n color: '$tonal600',\n cursor: 'text',\n display: 'block',\n fontFamily: '$body',\n height: '$4',\n pl: '$3',\n pr: '$6',\n transition: 'all 100ms ease-out',\n width: '100%',\n '&::placeholder': {\n color: '$tonal300',\n opacity: 1\n },\n '&:focus-within': {\n borderColor: '$
|
|
1
|
+
{"version":3,"file":"ComboboxInput.js","sources":["../../../src/components/combobox/ComboboxInput.tsx"],"sourcesContent":["import { ComboboxInput as BaseComboboxInput } from '@reach/combobox'\nimport * as React from 'react'\n\nimport { styled, theme } from '~/stitches'\nimport { encodeBackgroundIcon } from '~/utilities'\nimport { Override } from '~/utilities/types'\n\nexport const StyledComboboxInput = styled(BaseComboboxInput, {\n boxShadow: 'none', // prevent default iOS default styling\n appearance: 'none',\n backgroundImage: encodeBackgroundIcon(theme.colors.tonal300.value, 'chevron'),\n backgroundPosition: 'right $space$3 top 50%, 0 0',\n backgroundRepeat: 'no-repeat, repeat',\n backgroundSize: '20px auto, 100%',\n border: '1px solid $tonal300',\n borderRadius: '$0',\n boxSizing: 'border-box',\n color: '$tonal600',\n cursor: 'text',\n display: 'block',\n fontFamily: '$body',\n height: '$4',\n pl: '$3',\n pr: '$6',\n transition: 'all 100ms ease-out',\n width: '100%',\n '&::placeholder': {\n color: '$tonal300',\n opacity: 1\n },\n '&:focus-within': {\n borderColor: '$primary800',\n outline: 'none'\n },\n '&[disabled]': {\n backgroundColor: '$tonal100',\n color: '$tonal400',\n cursor: 'not-allowed'\n },\n variants: {\n size: {\n sm: {\n height: '$3',\n fontSize: '$sm',\n lineHeight: 1.7\n },\n md: {\n height: '$4',\n fontSize: '$md',\n lineHeight: 2\n },\n lg: {\n height: '$5',\n fontSize: '$md',\n lineHeight: 2\n }\n },\n state: {\n error: {\n border: '1px solid $danger'\n }\n }\n }\n})\n\nexport type ComboboxInputProps = React.ComponentProps<\n typeof StyledComboboxInput\n>\n\nexport const ComboboxInput: React.FC<ComboboxInputProps> = React.forwardRef(\n ({ size = 'md', ...rest }, ref) => {\n return <StyledComboboxInput size={size} {...rest} ref={ref} />\n }\n)\n"],"names":["StyledComboboxInput","styled","BaseComboboxInput","encodeBackgroundIcon","theme","ComboboxInput","React","size","rest","ref"],"mappings":"6XAOO,MAAMA,EAAsBC,EAAOC,EAAmB,CAC3D,UAAW,OACX,WAAY,OACZ,gBAAiBC,EAAqBC,EAAM,OAAO,SAAS,MAAO,SAAS,EAC5E,mBAAoB,8BACpB,iBAAkB,oBAClB,eAAgB,kBAChB,OAAQ,sBACR,aAAc,KACd,UAAW,aACX,MAAO,YACP,OAAQ,OACR,QAAS,QACT,WAAY,QACZ,OAAQ,KACR,GAAI,KACJ,GAAI,KACJ,WAAY,qBACZ,MAAO,OACP,iBAAkB,CAChB,MAAO,YACP,QAAS,CACX,EACA,iBAAkB,CAChB,YAAa,cACb,QAAS,MACX,EACA,cAAe,CACb,gBAAiB,YACjB,MAAO,YACP,OAAQ,aACV,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,OAAQ,KACR,SAAU,MACV,WAAY,GACd,EACA,GAAI,CACF,OAAQ,KACR,SAAU,MACV,WAAY,CACd,EACA,GAAI,CACF,OAAQ,KACR,SAAU,MACV,WAAY,CACd,CACF,EACA,MAAO,CACL,MAAO,CACL,OAAQ,mBACV,CACF,CACF,CACF,CAAC,EAMYC,EAA8CC,EAAM,WAC/D,CAAC,CAAE,KAAAC,EAAO,QAASC,CAAK,EAAGC,IAClBH,EAAA,cAACN,EAAA,CAAoB,KAAMO,EAAO,GAAGC,EAAM,IAAKC,EAAK,CAEhE"}
|
|
@@ -16,9 +16,10 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
16
16
|
hover: string;
|
|
17
17
|
}, {
|
|
18
18
|
colors: {
|
|
19
|
-
|
|
19
|
+
textBold: any;
|
|
20
|
+
textRegular: any;
|
|
20
21
|
textSubtle: any;
|
|
21
|
-
|
|
22
|
+
textMinimal: any;
|
|
22
23
|
background: any;
|
|
23
24
|
backgroundAccent: any;
|
|
24
25
|
grey100: any;
|
|
@@ -165,11 +166,6 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
165
166
|
alpha200: any;
|
|
166
167
|
alpha250: any;
|
|
167
168
|
alpha600: any;
|
|
168
|
-
primaryLight: any;
|
|
169
|
-
primary: any;
|
|
170
|
-
primaryMid: any;
|
|
171
|
-
primaryDark: any;
|
|
172
|
-
secondary: any;
|
|
173
169
|
brandRed: any;
|
|
174
170
|
brandRedAccent: any;
|
|
175
171
|
brandGreen: any;
|
|
@@ -178,6 +174,10 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
178
174
|
brandPurpleAccent: any;
|
|
179
175
|
brandYellow: any;
|
|
180
176
|
brandYellowAccent: any;
|
|
177
|
+
infoLight: any;
|
|
178
|
+
info: any;
|
|
179
|
+
infoMid: any;
|
|
180
|
+
infoDark: any;
|
|
181
181
|
successLight: any;
|
|
182
182
|
success: any;
|
|
183
183
|
successMid: any;
|
|
@@ -201,6 +201,18 @@ export declare const ComboboxList: import("@stitches/react/types/styled-componen
|
|
|
201
201
|
glBlueLight: any;
|
|
202
202
|
glBluePrimary: any;
|
|
203
203
|
glBlueDark: any;
|
|
204
|
+
primary100: any;
|
|
205
|
+
primary200: any;
|
|
206
|
+
primary300: any;
|
|
207
|
+
primary400: any;
|
|
208
|
+
primary500: any;
|
|
209
|
+
primary600: any;
|
|
210
|
+
primary700: any;
|
|
211
|
+
primary800: any;
|
|
212
|
+
primary900: any;
|
|
213
|
+
primary1000: any;
|
|
214
|
+
primary1100: any;
|
|
215
|
+
primary1200: any;
|
|
204
216
|
};
|
|
205
217
|
space: {
|
|
206
218
|
"0": any;
|
|
@@ -16,9 +16,10 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
16
16
|
hover: string;
|
|
17
17
|
}, {
|
|
18
18
|
colors: {
|
|
19
|
-
|
|
19
|
+
textBold: any;
|
|
20
|
+
textRegular: any;
|
|
20
21
|
textSubtle: any;
|
|
21
|
-
|
|
22
|
+
textMinimal: any;
|
|
22
23
|
background: any;
|
|
23
24
|
backgroundAccent: any;
|
|
24
25
|
grey100: any;
|
|
@@ -165,11 +166,6 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
165
166
|
alpha200: any;
|
|
166
167
|
alpha250: any;
|
|
167
168
|
alpha600: any;
|
|
168
|
-
primaryLight: any;
|
|
169
|
-
primary: any;
|
|
170
|
-
primaryMid: any;
|
|
171
|
-
primaryDark: any;
|
|
172
|
-
secondary: any;
|
|
173
169
|
brandRed: any;
|
|
174
170
|
brandRedAccent: any;
|
|
175
171
|
brandGreen: any;
|
|
@@ -178,6 +174,10 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
178
174
|
brandPurpleAccent: any;
|
|
179
175
|
brandYellow: any;
|
|
180
176
|
brandYellowAccent: any;
|
|
177
|
+
infoLight: any;
|
|
178
|
+
info: any;
|
|
179
|
+
infoMid: any;
|
|
180
|
+
infoDark: any;
|
|
181
181
|
successLight: any;
|
|
182
182
|
success: any;
|
|
183
183
|
successMid: any;
|
|
@@ -201,6 +201,18 @@ export declare const ComboboxOption: import("@stitches/react/types/styled-compon
|
|
|
201
201
|
glBlueLight: any;
|
|
202
202
|
glBluePrimary: any;
|
|
203
203
|
glBlueDark: any;
|
|
204
|
+
primary100: any;
|
|
205
|
+
primary200: any;
|
|
206
|
+
primary300: any;
|
|
207
|
+
primary400: any;
|
|
208
|
+
primary500: any;
|
|
209
|
+
primary600: any;
|
|
210
|
+
primary700: any;
|
|
211
|
+
primary800: any;
|
|
212
|
+
primary900: any;
|
|
213
|
+
primary1000: any;
|
|
214
|
+
primary1100: any;
|
|
215
|
+
primary1200: any;
|
|
204
216
|
};
|
|
205
217
|
space: {
|
|
206
218
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ComboboxOption as o}from"@reach/combobox";import{styled as r}from"../../stitches.js";const t=r(o,{color:"$tonal500",cursor:"pointer",m:0,p:"$2",'&:hover, &[aria-selected="true"]':{bg:"$tonal50",borderRadius:"$0"},"[data-user-value]":{color:"$
|
|
1
|
+
import{ComboboxOption as o}from"@reach/combobox";import{styled as r}from"../../stitches.js";const t=r(o,{color:"$tonal500",cursor:"pointer",m:0,p:"$2",'&:hover, &[aria-selected="true"]':{bg:"$tonal50",borderRadius:"$0"},"[data-user-value]":{color:"$primary800"}});export{t as ComboboxOption};
|
|
2
2
|
//# sourceMappingURL=ComboboxOption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxOption.js","sources":["../../../src/components/combobox/ComboboxOption.tsx"],"sourcesContent":["import { ComboboxOption as BaseComboboxOption } from '@reach/combobox'\n\nimport { styled } from '~/stitches'\n\nexport const ComboboxOption = styled(BaseComboboxOption, {\n color: '$tonal500',\n cursor: 'pointer',\n m: 0,\n p: '$2',\n '&:hover, &[aria-selected=\"true\"]': {\n bg: '$tonal50',\n borderRadius: '$0'\n },\n '[data-user-value]': {\n color: '$
|
|
1
|
+
{"version":3,"file":"ComboboxOption.js","sources":["../../../src/components/combobox/ComboboxOption.tsx"],"sourcesContent":["import { ComboboxOption as BaseComboboxOption } from '@reach/combobox'\n\nimport { styled } from '~/stitches'\n\nexport const ComboboxOption = styled(BaseComboboxOption, {\n color: '$tonal500',\n cursor: 'pointer',\n m: 0,\n p: '$2',\n '&:hover, &[aria-selected=\"true\"]': {\n bg: '$tonal50',\n borderRadius: '$0'\n },\n '[data-user-value]': {\n color: '$primary800'\n }\n})\n"],"names":["ComboboxOption","styled","BaseComboboxOption"],"mappings":"4FAIa,MAAAA,EAAiBC,EAAOC,EAAoB,CACvD,MAAO,YACP,OAAQ,UACR,EAAG,EACH,EAAG,KACH,mCAAoC,CAClC,GAAI,WACJ,aAAc,IAChB,EACA,oBAAqB,CACnB,MAAO,aACT,CACF,CAAC"}
|
|
@@ -16,9 +16,10 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
16
16
|
hover: string;
|
|
17
17
|
}, {
|
|
18
18
|
colors: {
|
|
19
|
-
|
|
19
|
+
textBold: any;
|
|
20
|
+
textRegular: any;
|
|
20
21
|
textSubtle: any;
|
|
21
|
-
|
|
22
|
+
textMinimal: any;
|
|
22
23
|
background: any;
|
|
23
24
|
backgroundAccent: any;
|
|
24
25
|
grey100: any;
|
|
@@ -165,11 +166,6 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
165
166
|
alpha200: any;
|
|
166
167
|
alpha250: any;
|
|
167
168
|
alpha600: any;
|
|
168
|
-
primaryLight: any;
|
|
169
|
-
primary: any;
|
|
170
|
-
primaryMid: any;
|
|
171
|
-
primaryDark: any;
|
|
172
|
-
secondary: any;
|
|
173
169
|
brandRed: any;
|
|
174
170
|
brandRedAccent: any;
|
|
175
171
|
brandGreen: any;
|
|
@@ -178,6 +174,10 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
178
174
|
brandPurpleAccent: any;
|
|
179
175
|
brandYellow: any;
|
|
180
176
|
brandYellowAccent: any;
|
|
177
|
+
infoLight: any;
|
|
178
|
+
info: any;
|
|
179
|
+
infoMid: any;
|
|
180
|
+
infoDark: any;
|
|
181
181
|
successLight: any;
|
|
182
182
|
success: any;
|
|
183
183
|
successMid: any;
|
|
@@ -201,6 +201,18 @@ export declare const ComboboxPopover: import("@stitches/react/types/styled-compo
|
|
|
201
201
|
glBlueLight: any;
|
|
202
202
|
glBluePrimary: any;
|
|
203
203
|
glBlueDark: any;
|
|
204
|
+
primary100: any;
|
|
205
|
+
primary200: any;
|
|
206
|
+
primary300: any;
|
|
207
|
+
primary400: any;
|
|
208
|
+
primary500: any;
|
|
209
|
+
primary600: any;
|
|
210
|
+
primary700: any;
|
|
211
|
+
primary800: any;
|
|
212
|
+
primary900: any;
|
|
213
|
+
primary1000: any;
|
|
214
|
+
primary1100: any;
|
|
215
|
+
primary1200: any;
|
|
204
216
|
};
|
|
205
217
|
space: {
|
|
206
218
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import j from"invariant";import*as a from"react";import{useFormContext as E}from"react-hook-form";import{throttle as k}from"throttle-debounce";import{Box as P}from"../box/Box.js";import{Flex as S}from"../flex/Flex.js";import{InlineMessage as B}from"../inline-message/InlineMessage.js";import{PasswordField as D}from"../password-field/PasswordField.js";const c=({validate:d,defaultValidation:u,messageDirection:p="row",label:f="Create a password",name:r="password",css:v,validation:b,...w})=>{var s;const{formState:l}=E(),[i,n]=a.useState(!1),[C,m]=a.useState(u),
|
|
1
|
+
import j from"invariant";import*as a from"react";import{useFormContext as E}from"react-hook-form";import{throttle as k}from"throttle-debounce";import{Box as P}from"../box/Box.js";import{Flex as S}from"../flex/Flex.js";import{InlineMessage as B}from"../inline-message/InlineMessage.js";import{PasswordField as D}from"../password-field/PasswordField.js";const c=({validate:d,defaultValidation:u,messageDirection:p="row",label:f="Create a password",name:r="password",css:v,validation:b,...w})=>{var s;const{formState:l}=E(),[i,n]=a.useState(!1),[C,m]=a.useState(u),g=l.touched[r],F=((s=l.errors[r])==null?void 0:s.type)==="validate",o=a.useCallback(async e=>{const t=await d(e);return t?(j(typeof t=="object","The validate function must return an object"),m(t),Object.values(t).every(h=>h)):!1},[m]),x=a.useCallback(k(500,o),[o]),y=(e,t)=>e?"success":t?"neutral":"error";return a.createElement(P,{css:v},a.createElement(D,{label:f,name:r,onChange:e=>x(e.target.value),onBlur:()=>n(!1),onFocus:()=>n(!0),validation:{...b,validate:o},...w}),(g||i||F)&&a.createElement(S,{css:{mt:"$2",gap:"$2",flexWrap:"wrap",flexDirection:p}},Object.entries(C).map(([e,t])=>a.createElement(B,{key:e,theme:y(t,i)},e))))};c.displayName="CreatePasswordField";export{c as CreatePasswordField};
|
|
2
2
|
//# sourceMappingURL=CreatePasswordField.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import{Button as s}from"../button/Button.js";import{Divider as m}from"../divider/Divider.js";import{styled as u}from"../../stitches.js";import{Flex as i}from"../flex/Flex.js";import{useDataTable as o}from"./DataTableContext.js";import{DataTable as d}from"./DataTable.js";const
|
|
1
|
+
import*as e from"react";import{Button as s}from"../button/Button.js";import{Divider as m}from"../divider/Divider.js";import{styled as u}from"../../stitches.js";import{Flex as i}from"../flex/Flex.js";import{useDataTable as o}from"./DataTableContext.js";import{DataTable as d}from"./DataTable.js";const p=u(i,{p:"$2",width:"100%",mb:"$2",justifyContent:"space-between",alignItems:"center",minHeight:"$6",borderTopLeftRadius:"$0",borderTopRightRadius:"$0",variants:{isRowSelected:{true:{bg:"$primary100"}}}}),b=({children:n})=>{const{rowSelection:t}=o();return Object.keys(t||{}).length>0?null:n},f=({cancelLabel:n="Cancel",children:t})=>{const{toggleAllPageRowsSelected:r,rowSelection:l}=o(),a=()=>r(!1);return Object.keys(l||{}).length===0?null:e.createElement(e.Fragment,null,t,e.Children.count(t)>0&&e.createElement(m,{orientation:"vertical",css:{mx:"$4"}}),e.createElement(s,{theme:"neutral",onClick:a},n))},c=({children:n,...t})=>{const{rowSelection:r}=o(),l=Object.keys(r||{}).length>0;return e.createElement(p,{isRowSelected:l,...t},e.createElement(d.MetaData,null),e.createElement(i,{css:{justifyContent:"flex-end",alignItems:"center"}},n))};c.DefaultActions=b,c.SelectedRowActions=f;export{c as DataTableBulkActions};
|
|
2
2
|
//# sourceMappingURL=DataTableBulkActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableBulkActions.js","sources":["../../../src/components/data-table/DataTableBulkActions.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Button } from '~/components/button'\nimport { Divider } from '~/components/divider'\nimport { CSS, styled } from '~/stitches'\n\nimport { Flex } from '../flex'\nimport { DataTable } from '.'\nimport { useDataTable } from './DataTableContext'\n\ninterface DataTableBulkActionsProps {\n css?: CSS\n children:\n | React.ReactElement<React.ComponentProps<typeof BulkActionsDefaultActions>>\n | React.ReactElement<\n React.ComponentProps<typeof BulkActionsSelectedRowActions>\n >\n | [\n React.ReactElement<\n React.ComponentProps<typeof BulkActionsDefaultActions>\n >,\n React.ReactElement<\n React.ComponentProps<typeof BulkActionsSelectedRowActions>\n >\n ]\n}\n\ninterface BulkActionsSelectedRowActionsProps {\n cancelLabel?: string\n children: React.ReactNode\n}\n\nconst StyledContainer = styled(Flex, {\n p: '$2',\n width: '100%',\n mb: '$2',\n justifyContent: 'space-between',\n alignItems: 'center',\n minHeight: '$6',\n borderTopLeftRadius: '$0',\n borderTopRightRadius: '$0',\n variants: {\n isRowSelected: {\n true: {\n bg: '$
|
|
1
|
+
{"version":3,"file":"DataTableBulkActions.js","sources":["../../../src/components/data-table/DataTableBulkActions.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Button } from '~/components/button'\nimport { Divider } from '~/components/divider'\nimport { CSS, styled } from '~/stitches'\n\nimport { Flex } from '../flex'\nimport { DataTable } from '.'\nimport { useDataTable } from './DataTableContext'\n\ninterface DataTableBulkActionsProps {\n css?: CSS\n children:\n | React.ReactElement<React.ComponentProps<typeof BulkActionsDefaultActions>>\n | React.ReactElement<\n React.ComponentProps<typeof BulkActionsSelectedRowActions>\n >\n | [\n React.ReactElement<\n React.ComponentProps<typeof BulkActionsDefaultActions>\n >,\n React.ReactElement<\n React.ComponentProps<typeof BulkActionsSelectedRowActions>\n >\n ]\n}\n\ninterface BulkActionsSelectedRowActionsProps {\n cancelLabel?: string\n children: React.ReactNode\n}\n\nconst StyledContainer = styled(Flex, {\n p: '$2',\n width: '100%',\n mb: '$2',\n justifyContent: 'space-between',\n alignItems: 'center',\n minHeight: '$6',\n borderTopLeftRadius: '$0',\n borderTopRightRadius: '$0',\n variants: {\n isRowSelected: {\n true: {\n bg: '$primary100'\n }\n }\n }\n})\n\nconst BulkActionsDefaultActions = ({\n children\n}: {\n children: React.ReactElement\n}): React.ReactElement | null => {\n const { rowSelection } = useDataTable()\n\n if (Object.keys(rowSelection || {}).length > 0) return null\n\n return children\n}\n\nconst BulkActionsSelectedRowActions: React.FC<\n BulkActionsSelectedRowActionsProps\n> = ({ cancelLabel = 'Cancel', children }) => {\n const { toggleAllPageRowsSelected, rowSelection } = useDataTable()\n\n const handleDeselectAllPageRows = () => toggleAllPageRowsSelected(false)\n\n if (Object.keys(rowSelection || {}).length === 0) return null\n\n return (\n <>\n {children}\n {React.Children.count(children) > 0 && (\n <Divider orientation=\"vertical\" css={{ mx: '$4' }} />\n )}\n <Button theme=\"neutral\" onClick={handleDeselectAllPageRows}>\n {cancelLabel}\n </Button>\n </>\n )\n}\n\nexport const DataTableBulkActions: React.FC<DataTableBulkActionsProps> & {\n DefaultActions: typeof BulkActionsDefaultActions\n SelectedRowActions: typeof BulkActionsSelectedRowActions\n} = ({ children, ...rest }) => {\n const { rowSelection } = useDataTable()\n\n const isRowSelected = Object.keys(rowSelection || {}).length > 0\n\n return (\n <StyledContainer isRowSelected={isRowSelected} {...rest}>\n <DataTable.MetaData />\n\n <Flex css={{ justifyContent: 'flex-end', alignItems: 'center' }}>\n {children}\n </Flex>\n </StyledContainer>\n )\n}\n\nDataTableBulkActions.DefaultActions = BulkActionsDefaultActions\nDataTableBulkActions.SelectedRowActions = BulkActionsSelectedRowActions\n"],"names":["StyledContainer","styled","Flex","BulkActionsDefaultActions","children","rowSelection","useDataTable","BulkActionsSelectedRowActions","cancelLabel","toggleAllPageRowsSelected","handleDeselectAllPageRows","React","Divider","Button","DataTableBulkActions","rest","isRowSelected","DataTable"],"mappings":"uSAgCA,MAAMA,EAAkBC,EAAOC,EAAM,CACnC,EAAG,KACH,MAAO,OACP,GAAI,KACJ,eAAgB,gBAChB,WAAY,SACZ,UAAW,KACX,oBAAqB,KACrB,qBAAsB,KACtB,SAAU,CACR,cAAe,CACb,KAAM,CACJ,GAAI,aACN,CACF,CACF,CACF,CAAC,EAEKC,EAA4B,CAAC,CACjC,SAAAC,CACF,IAEiC,CAC/B,KAAM,CAAE,aAAAC,CAAa,EAAIC,IAEzB,OAAI,OAAO,KAAKD,GAAgB,CAAA,CAAE,EAAE,OAAS,EAAU,KAEhDD,CACT,EAEMG,EAEF,CAAC,CAAE,YAAAC,EAAc,SAAU,SAAAJ,CAAS,IAAM,CAC5C,KAAM,CAAE,0BAAAK,EAA2B,aAAAJ,CAAa,EAAIC,EAAa,EAE3DI,EAA4B,IAAMD,EAA0B,EAAK,EAEvE,OAAI,OAAO,KAAKJ,GAAgB,CAAA,CAAE,EAAE,SAAW,EAAU,KAGvDM,EAAA,cAAAA,EAAA,SACGP,KAAAA,EACAO,EAAM,SAAS,MAAMP,CAAQ,EAAI,GAChCO,EAAA,cAACC,EAAA,CAAQ,YAAY,WAAW,IAAK,CAAE,GAAI,IAAK,CAAG,CAAA,EAErDD,EAAA,cAACE,EAAA,CAAO,MAAM,UAAU,QAASH,CAC9BF,EAAAA,CACH,CACF,CAEJ,EAEaM,EAGT,CAAC,CAAE,SAAAV,KAAaW,CAAK,IAAM,CAC7B,KAAM,CAAE,aAAAV,CAAa,EAAIC,EAEnBU,EAAAA,EAAgB,OAAO,KAAKX,GAAgB,CAAE,CAAA,EAAE,OAAS,EAE/D,OACEM,EAAA,cAACX,EAAA,CAAgB,cAAegB,EAAgB,GAAGD,GACjDJ,EAAA,cAACM,EAAU,SAAV,IAAmB,EAEpBN,EAAA,cAACT,EAAA,CAAK,IAAK,CAAE,eAAgB,WAAY,WAAY,QAAS,CAC3DE,EAAAA,CACH,CACF,CAEJ,EAEAU,EAAqB,eAAiBX,EACtCW,EAAqB,mBAAqBP"}
|
|
@@ -21,9 +21,10 @@ declare const PendingState: 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 PendingState: 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 PendingState: 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 PendingState: 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{ChevronDown as
|
|
1
|
+
import{ChevronDown as m,ChevronRight as d}from"@atom-learning/icons";import*as t from"react";import{styled as s}from"../../stitches.js";import{Icon as p}from"../icon/Icon.js";import{Table as o}from"../table/Table.js";import{useDataTable as g}from"./DataTableContext.js";import{DataTableDataCell as C}from"./DataTableDataCell.js";import{DataTableRowSelectionCheckbox as E}from"./DataTableRowSelectionCheckbox.js";const S=s(o.Row,{bg:"initial",variants:{isSelected:{true:{bg:"$primary100 !important"}}}}),b=({row:e})=>{const{enableRowSelection:r,getCanSomeRowsExpand:l}=g(),n=e.getToggleExpandedHandler(),i=e.getToggleSelectedHandler(),c=()=>e.getIsSomeSelected()?"indeterminate":e.getIsSelected();return t.createElement(S,{isSelected:e.getIsSelected()},l()&&t.createElement(o.Cell,{"data-testid":`expand-icon-${e.id}`,css:{width:"$4",cursor:e.getCanExpand()?"pointer":"auto"},onClick:n},e.getCanExpand()&&t.createElement(p,{is:e.getIsExpanded()?m:d})),r&&t.createElement(o.Cell,{css:{width:"$4"}},t.createElement(E,{row:e,checked:c(),onCheckedChange:i})),e.getVisibleCells().map((a,w)=>t.createElement(C,{key:a.id,cell:a})))};export{b as DataTableRow};
|
|
2
2
|
//# sourceMappingURL=DataTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableRow.js","sources":["../../../src/components/data-table/DataTableRow.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@atom-learning/icons'\nimport type { Row } from '@tanstack/react-table'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Icon } from '../icon'\nimport { Table } from '../table'\nimport { useDataTable } from './DataTableContext'\nimport { DataTableDataCell } from './DataTableDataCell'\nimport { DataTableRowSelectionCheckbox } from './DataTableRowSelectionCheckbox'\n\nexport type DataTableRowProps = React.ComponentProps<typeof Table.Row> & {\n row: Row<Record<string, unknown>>\n}\n\nconst StyledRow = styled(Table.Row, {\n bg: 'initial',\n variants: {\n isSelected: {\n true: {\n // the !important rule is needed because the bg property is set elsewhere and it's more specific than this one would be without the !important modifier.\n bg: '$
|
|
1
|
+
{"version":3,"file":"DataTableRow.js","sources":["../../../src/components/data-table/DataTableRow.tsx"],"sourcesContent":["import { ChevronDown, ChevronRight } from '@atom-learning/icons'\nimport type { Row } from '@tanstack/react-table'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Icon } from '../icon'\nimport { Table } from '../table'\nimport { useDataTable } from './DataTableContext'\nimport { DataTableDataCell } from './DataTableDataCell'\nimport { DataTableRowSelectionCheckbox } from './DataTableRowSelectionCheckbox'\n\nexport type DataTableRowProps = React.ComponentProps<typeof Table.Row> & {\n row: Row<Record<string, unknown>>\n}\n\nconst StyledRow = styled(Table.Row, {\n bg: 'initial',\n variants: {\n isSelected: {\n true: {\n // the !important rule is needed because the bg property is set elsewhere and it's more specific than this one would be without the !important modifier.\n bg: '$primary100 !important'\n }\n }\n }\n})\n\nexport const DataTableRow: React.FC<DataTableRowProps> = ({ row }) => {\n const { enableRowSelection, getCanSomeRowsExpand } = useDataTable()\n\n const toggleExpandHandler = row.getToggleExpandedHandler()\n const toggleSelectHandler = row.getToggleSelectedHandler()\n\n const getCheckedState = (): boolean | 'indeterminate' => {\n if (row.getIsSomeSelected()) return 'indeterminate'\n return row.getIsSelected()\n }\n\n return (\n <StyledRow isSelected={row.getIsSelected()}>\n {getCanSomeRowsExpand() && (\n <Table.Cell\n data-testid={`expand-icon-${row.id}`}\n css={{ width: '$4', cursor: row.getCanExpand() ? 'pointer' : 'auto' }}\n onClick={toggleExpandHandler}\n >\n {row.getCanExpand() && (\n <Icon is={row.getIsExpanded() ? ChevronDown : ChevronRight} />\n )}\n </Table.Cell>\n )}\n\n {enableRowSelection && (\n <Table.Cell css={{ width: '$4' }}>\n <DataTableRowSelectionCheckbox\n row={row}\n checked={getCheckedState()}\n onCheckedChange={toggleSelectHandler}\n />\n </Table.Cell>\n )}\n {row.getVisibleCells().map((cell, i) => {\n return <DataTableDataCell key={cell.id} cell={cell} />\n })}\n </StyledRow>\n )\n}\n"],"names":["StyledRow","styled","Table","DataTableRow","row","enableRowSelection","getCanSomeRowsExpand","useDataTable","toggleExpandHandler","toggleSelectHandler","getCheckedState","React","Icon","ChevronDown","ChevronRight","DataTableRowSelectionCheckbox","cell","i","DataTableDataCell"],"mappings":"4ZAgBA,MAAMA,EAAYC,EAAOC,EAAM,IAAK,CAClC,GAAI,UACJ,SAAU,CACR,WAAY,CACV,KAAM,CAEJ,GAAI,wBACN,CACF,CACF,CACF,CAAC,EAEYC,EAA4C,CAAC,CAAE,IAAAC,CAAI,IAAM,CACpE,KAAM,CAAE,mBAAAC,EAAoB,qBAAAC,CAAqB,EAAIC,EAAa,EAE5DC,EAAsBJ,EAAI,2BAC1BK,EAAsBL,EAAI,yBAE1BM,EAAAA,EAAkB,IAClBN,EAAI,oBAA4B,gBAC7BA,EAAI,gBAGb,OACEO,EAAA,cAACX,EAAA,CAAU,WAAYI,EAAI,cAAc,CAAA,EACtCE,EACCK,GAAAA,EAAA,cAACT,EAAM,KAAN,CACC,cAAa,eAAeE,EAAI,KAChC,IAAK,CAAE,MAAO,KAAM,OAAQA,EAAI,aAAa,EAAI,UAAY,MAAO,EACpE,QAASI,CAERJ,EAAAA,EAAI,aACHO,GAAAA,EAAA,cAACC,EAAA,CAAK,GAAIR,EAAI,gBAAkBS,EAAcC,CAAAA,CAAc,CAEhE,EAGDT,GACCM,EAAA,cAACT,EAAM,KAAN,CAAW,IAAK,CAAE,MAAO,IAAK,CAC7BS,EAAAA,EAAA,cAACI,EAAA,CACC,IAAKX,EACL,QAASM,EACT,EAAA,gBAAiBD,CACnB,CAAA,CACF,EAEDL,EAAI,kBAAkB,IAAI,CAACY,EAAMC,IACzBN,EAAA,cAACO,EAAA,CAAkB,IAAKF,EAAK,GAAI,KAAMA,CAAM,CAAA,CACrD,CACH,CAEJ"}
|
|
@@ -17,9 +17,10 @@ declare const StyledNav: import("@stitches/react/types/styled-component").Styled
|
|
|
17
17
|
hover: string;
|
|
18
18
|
}, {
|
|
19
19
|
colors: {
|
|
20
|
-
|
|
20
|
+
textBold: any;
|
|
21
|
+
textRegular: any;
|
|
21
22
|
textSubtle: any;
|
|
22
|
-
|
|
23
|
+
textMinimal: any;
|
|
23
24
|
background: any;
|
|
24
25
|
backgroundAccent: any;
|
|
25
26
|
grey100: any;
|
|
@@ -166,11 +167,6 @@ declare const StyledNav: import("@stitches/react/types/styled-component").Styled
|
|
|
166
167
|
alpha200: any;
|
|
167
168
|
alpha250: any;
|
|
168
169
|
alpha600: any;
|
|
169
|
-
primaryLight: any;
|
|
170
|
-
primary: any;
|
|
171
|
-
primaryMid: any;
|
|
172
|
-
primaryDark: any;
|
|
173
|
-
secondary: any;
|
|
174
170
|
brandRed: any;
|
|
175
171
|
brandRedAccent: any;
|
|
176
172
|
brandGreen: any;
|
|
@@ -179,6 +175,10 @@ declare const StyledNav: import("@stitches/react/types/styled-component").Styled
|
|
|
179
175
|
brandPurpleAccent: any;
|
|
180
176
|
brandYellow: any;
|
|
181
177
|
brandYellowAccent: any;
|
|
178
|
+
infoLight: any;
|
|
179
|
+
info: any;
|
|
180
|
+
infoMid: any;
|
|
181
|
+
infoDark: any;
|
|
182
182
|
successLight: any;
|
|
183
183
|
success: any;
|
|
184
184
|
successMid: any;
|
|
@@ -202,6 +202,18 @@ declare const StyledNav: import("@stitches/react/types/styled-component").Styled
|
|
|
202
202
|
glBlueLight: any;
|
|
203
203
|
glBluePrimary: any;
|
|
204
204
|
glBlueDark: any;
|
|
205
|
+
primary100: any;
|
|
206
|
+
primary200: any;
|
|
207
|
+
primary300: any;
|
|
208
|
+
primary400: any;
|
|
209
|
+
primary500: any;
|
|
210
|
+
primary600: any;
|
|
211
|
+
primary700: any;
|
|
212
|
+
primary800: any;
|
|
213
|
+
primary900: any;
|
|
214
|
+
primary1000: any;
|
|
215
|
+
primary1100: any;
|
|
216
|
+
primary1200: any;
|
|
205
217
|
};
|
|
206
218
|
space: {
|
|
207
219
|
"0": any;
|
|
@@ -23,9 +23,10 @@ declare const StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
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 StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
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 StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
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 StyledDialog: import("@stitches/react/types/styled-component").Sty
|
|
|
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;
|
|
@@ -16,9 +16,10 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
16
16
|
hover: string;
|
|
17
17
|
}, {
|
|
18
18
|
colors: {
|
|
19
|
-
|
|
19
|
+
textBold: any;
|
|
20
|
+
textRegular: any;
|
|
20
21
|
textSubtle: any;
|
|
21
|
-
|
|
22
|
+
textMinimal: any;
|
|
22
23
|
background: any;
|
|
23
24
|
backgroundAccent: any;
|
|
24
25
|
grey100: any;
|
|
@@ -165,11 +166,6 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
165
166
|
alpha200: any;
|
|
166
167
|
alpha250: any;
|
|
167
168
|
alpha600: any;
|
|
168
|
-
primaryLight: any;
|
|
169
|
-
primary: any;
|
|
170
|
-
primaryMid: any;
|
|
171
|
-
primaryDark: any;
|
|
172
|
-
secondary: any;
|
|
173
169
|
brandRed: any;
|
|
174
170
|
brandRedAccent: any;
|
|
175
171
|
brandGreen: any;
|
|
@@ -178,6 +174,10 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
178
174
|
brandPurpleAccent: any;
|
|
179
175
|
brandYellow: any;
|
|
180
176
|
brandYellowAccent: any;
|
|
177
|
+
infoLight: any;
|
|
178
|
+
info: any;
|
|
179
|
+
infoMid: any;
|
|
180
|
+
infoDark: any;
|
|
181
181
|
successLight: any;
|
|
182
182
|
success: any;
|
|
183
183
|
successMid: any;
|
|
@@ -201,6 +201,18 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
201
201
|
glBlueLight: any;
|
|
202
202
|
glBluePrimary: any;
|
|
203
203
|
glBlueDark: any;
|
|
204
|
+
primary100: any;
|
|
205
|
+
primary200: any;
|
|
206
|
+
primary300: any;
|
|
207
|
+
primary400: any;
|
|
208
|
+
primary500: any;
|
|
209
|
+
primary600: any;
|
|
210
|
+
primary700: any;
|
|
211
|
+
primary800: any;
|
|
212
|
+
primary900: any;
|
|
213
|
+
primary1000: any;
|
|
214
|
+
primary1100: any;
|
|
215
|
+
primary1200: any;
|
|
204
216
|
};
|
|
205
217
|
space: {
|
|
206
218
|
"0": any;
|
|
@@ -334,9 +346,10 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
334
346
|
hover: string;
|
|
335
347
|
}, {
|
|
336
348
|
colors: {
|
|
337
|
-
|
|
349
|
+
textBold: any;
|
|
350
|
+
textRegular: any;
|
|
338
351
|
textSubtle: any;
|
|
339
|
-
|
|
352
|
+
textMinimal: any;
|
|
340
353
|
background: any;
|
|
341
354
|
backgroundAccent: any;
|
|
342
355
|
grey100: any;
|
|
@@ -483,11 +496,6 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
483
496
|
alpha200: any;
|
|
484
497
|
alpha250: any;
|
|
485
498
|
alpha600: any;
|
|
486
|
-
primaryLight: any;
|
|
487
|
-
primary: any;
|
|
488
|
-
primaryMid: any;
|
|
489
|
-
primaryDark: any;
|
|
490
|
-
secondary: any;
|
|
491
499
|
brandRed: any;
|
|
492
500
|
brandRedAccent: any;
|
|
493
501
|
brandGreen: any;
|
|
@@ -496,6 +504,10 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
496
504
|
brandPurpleAccent: any;
|
|
497
505
|
brandYellow: any;
|
|
498
506
|
brandYellowAccent: any;
|
|
507
|
+
infoLight: any;
|
|
508
|
+
info: any;
|
|
509
|
+
infoMid: any;
|
|
510
|
+
infoDark: any;
|
|
499
511
|
successLight: any;
|
|
500
512
|
success: any;
|
|
501
513
|
successMid: any;
|
|
@@ -519,6 +531,18 @@ export declare const DialogBackground: import("@stitches/react/types/styled-comp
|
|
|
519
531
|
glBlueLight: any;
|
|
520
532
|
glBluePrimary: any;
|
|
521
533
|
glBlueDark: any;
|
|
534
|
+
primary100: any;
|
|
535
|
+
primary200: any;
|
|
536
|
+
primary300: any;
|
|
537
|
+
primary400: any;
|
|
538
|
+
primary500: any;
|
|
539
|
+
primary600: any;
|
|
540
|
+
primary700: any;
|
|
541
|
+
primary800: any;
|
|
542
|
+
primary900: any;
|
|
543
|
+
primary1000: any;
|
|
544
|
+
primary1100: any;
|
|
545
|
+
primary1200: any;
|
|
522
546
|
};
|
|
523
547
|
space: {
|
|
524
548
|
"0": any;
|
|
@@ -17,9 +17,10 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
17
17
|
hover: string;
|
|
18
18
|
}, {
|
|
19
19
|
colors: {
|
|
20
|
-
|
|
20
|
+
textBold: any;
|
|
21
|
+
textRegular: any;
|
|
21
22
|
textSubtle: any;
|
|
22
|
-
|
|
23
|
+
textMinimal: any;
|
|
23
24
|
background: any;
|
|
24
25
|
backgroundAccent: any;
|
|
25
26
|
grey100: any;
|
|
@@ -166,11 +167,6 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
166
167
|
alpha200: any;
|
|
167
168
|
alpha250: any;
|
|
168
169
|
alpha600: any;
|
|
169
|
-
primaryLight: any;
|
|
170
|
-
primary: any;
|
|
171
|
-
primaryMid: any;
|
|
172
|
-
primaryDark: any;
|
|
173
|
-
secondary: any;
|
|
174
170
|
brandRed: any;
|
|
175
171
|
brandRedAccent: any;
|
|
176
172
|
brandGreen: any;
|
|
@@ -179,6 +175,10 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
179
175
|
brandPurpleAccent: any;
|
|
180
176
|
brandYellow: any;
|
|
181
177
|
brandYellowAccent: any;
|
|
178
|
+
infoLight: any;
|
|
179
|
+
info: any;
|
|
180
|
+
infoMid: any;
|
|
181
|
+
infoDark: any;
|
|
182
182
|
successLight: any;
|
|
183
183
|
success: any;
|
|
184
184
|
successMid: any;
|
|
@@ -202,6 +202,18 @@ export declare const DialogClose: import("@stitches/react/types/styled-component
|
|
|
202
202
|
glBlueLight: any;
|
|
203
203
|
glBluePrimary: any;
|
|
204
204
|
glBlueDark: any;
|
|
205
|
+
primary100: any;
|
|
206
|
+
primary200: any;
|
|
207
|
+
primary300: any;
|
|
208
|
+
primary400: any;
|
|
209
|
+
primary500: any;
|
|
210
|
+
primary600: any;
|
|
211
|
+
primary700: any;
|
|
212
|
+
primary800: any;
|
|
213
|
+
primary900: any;
|
|
214
|
+
primary1000: any;
|
|
215
|
+
primary1100: any;
|
|
216
|
+
primary1200: any;
|
|
205
217
|
};
|
|
206
218
|
space: {
|
|
207
219
|
"0": any;
|
|
@@ -19,9 +19,10 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
19
19
|
hover: string;
|
|
20
20
|
}, {
|
|
21
21
|
colors: {
|
|
22
|
-
|
|
22
|
+
textBold: any;
|
|
23
|
+
textRegular: any;
|
|
23
24
|
textSubtle: any;
|
|
24
|
-
|
|
25
|
+
textMinimal: any;
|
|
25
26
|
background: any;
|
|
26
27
|
backgroundAccent: any;
|
|
27
28
|
grey100: any;
|
|
@@ -168,11 +169,6 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
168
169
|
alpha200: any;
|
|
169
170
|
alpha250: any;
|
|
170
171
|
alpha600: any;
|
|
171
|
-
primaryLight: any;
|
|
172
|
-
primary: any;
|
|
173
|
-
primaryMid: any;
|
|
174
|
-
primaryDark: any;
|
|
175
|
-
secondary: any;
|
|
176
172
|
brandRed: any;
|
|
177
173
|
brandRedAccent: any;
|
|
178
174
|
brandGreen: any;
|
|
@@ -181,6 +177,10 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
181
177
|
brandPurpleAccent: any;
|
|
182
178
|
brandYellow: any;
|
|
183
179
|
brandYellowAccent: any;
|
|
180
|
+
infoLight: any;
|
|
181
|
+
info: any;
|
|
182
|
+
infoMid: any;
|
|
183
|
+
infoDark: any;
|
|
184
184
|
successLight: any;
|
|
185
185
|
success: any;
|
|
186
186
|
successMid: any;
|
|
@@ -204,6 +204,18 @@ declare const StyledDialogContent: import("@stitches/react/types/styled-componen
|
|
|
204
204
|
glBlueLight: any;
|
|
205
205
|
glBluePrimary: any;
|
|
206
206
|
glBlueDark: any;
|
|
207
|
+
primary100: any;
|
|
208
|
+
primary200: any;
|
|
209
|
+
primary300: any;
|
|
210
|
+
primary400: any;
|
|
211
|
+
primary500: any;
|
|
212
|
+
primary600: any;
|
|
213
|
+
primary700: any;
|
|
214
|
+
primary800: any;
|
|
215
|
+
primary900: any;
|
|
216
|
+
primary1000: any;
|
|
217
|
+
primary1100: any;
|
|
218
|
+
primary1200: any;
|
|
207
219
|
};
|
|
208
220
|
space: {
|
|
209
221
|
"0": any;
|