@atom-learning/components 3.10.0 → 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 +9 -3
- 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/dismissible/DismissibleRoot.d.ts +3 -4
- package/dist/components/dismissible/DismissibleRoot.js +1 -1
- package/dist/components/dismissible/DismissibleRoot.js.map +1 -1
- 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 +137 -53
- 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
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
declare const StyledDismiss: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
4
4
|
}, "appearance" | "size" | "css" | "theme" | "isRounded"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
5
|
-
theme?: "
|
|
5
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
6
6
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
8
8
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -25,9 +25,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
25
25
|
hover: string;
|
|
26
26
|
}, {
|
|
27
27
|
colors: {
|
|
28
|
-
|
|
28
|
+
textBold: any;
|
|
29
|
+
textRegular: any;
|
|
29
30
|
textSubtle: any;
|
|
30
|
-
|
|
31
|
+
textMinimal: any;
|
|
31
32
|
background: any;
|
|
32
33
|
backgroundAccent: any;
|
|
33
34
|
grey100: any;
|
|
@@ -174,11 +175,6 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
174
175
|
alpha200: any;
|
|
175
176
|
alpha250: any;
|
|
176
177
|
alpha600: any;
|
|
177
|
-
primaryLight: any;
|
|
178
|
-
primary: any;
|
|
179
|
-
primaryMid: any;
|
|
180
|
-
primaryDark: any;
|
|
181
|
-
secondary: any;
|
|
182
178
|
brandRed: any;
|
|
183
179
|
brandRedAccent: any;
|
|
184
180
|
brandGreen: any;
|
|
@@ -187,6 +183,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
187
183
|
brandPurpleAccent: any;
|
|
188
184
|
brandYellow: any;
|
|
189
185
|
brandYellowAccent: any;
|
|
186
|
+
infoLight: any;
|
|
187
|
+
info: any;
|
|
188
|
+
infoMid: any;
|
|
189
|
+
infoDark: any;
|
|
190
190
|
successLight: any;
|
|
191
191
|
success: any;
|
|
192
192
|
successMid: any;
|
|
@@ -210,6 +210,18 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
210
210
|
glBlueLight: any;
|
|
211
211
|
glBluePrimary: any;
|
|
212
212
|
glBlueDark: any;
|
|
213
|
+
primary100: any;
|
|
214
|
+
primary200: any;
|
|
215
|
+
primary300: any;
|
|
216
|
+
primary400: any;
|
|
217
|
+
primary500: any;
|
|
218
|
+
primary600: any;
|
|
219
|
+
primary700: any;
|
|
220
|
+
primary800: any;
|
|
221
|
+
primary900: any;
|
|
222
|
+
primary1000: any;
|
|
223
|
+
primary1100: any;
|
|
224
|
+
primary1200: any;
|
|
213
225
|
};
|
|
214
226
|
space: {
|
|
215
227
|
"0": any;
|
|
@@ -327,7 +339,7 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
327
339
|
};
|
|
328
340
|
}> | undefined;
|
|
329
341
|
}, "appearance" | "size" | "theme" | "label" | "children" | "as" | "hasTooltip" | "tooltipSide" | "isRounded" | keyof import("../../../types").NavigatorActions> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
330
|
-
theme?: "
|
|
342
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
331
343
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
332
344
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
333
345
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -361,9 +373,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
361
373
|
hover: string;
|
|
362
374
|
}, {
|
|
363
375
|
colors: {
|
|
364
|
-
|
|
376
|
+
textBold: any;
|
|
377
|
+
textRegular: any;
|
|
365
378
|
textSubtle: any;
|
|
366
|
-
|
|
379
|
+
textMinimal: any;
|
|
367
380
|
background: any;
|
|
368
381
|
backgroundAccent: any;
|
|
369
382
|
grey100: any;
|
|
@@ -510,11 +523,6 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
510
523
|
alpha200: any;
|
|
511
524
|
alpha250: any;
|
|
512
525
|
alpha600: any;
|
|
513
|
-
primaryLight: any;
|
|
514
|
-
primary: any;
|
|
515
|
-
primaryMid: any;
|
|
516
|
-
primaryDark: any;
|
|
517
|
-
secondary: any;
|
|
518
526
|
brandRed: any;
|
|
519
527
|
brandRedAccent: any;
|
|
520
528
|
brandGreen: any;
|
|
@@ -523,6 +531,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
523
531
|
brandPurpleAccent: any;
|
|
524
532
|
brandYellow: any;
|
|
525
533
|
brandYellowAccent: any;
|
|
534
|
+
infoLight: any;
|
|
535
|
+
info: any;
|
|
536
|
+
infoMid: any;
|
|
537
|
+
infoDark: any;
|
|
526
538
|
successLight: any;
|
|
527
539
|
success: any;
|
|
528
540
|
successMid: any;
|
|
@@ -546,6 +558,18 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
546
558
|
glBlueLight: any;
|
|
547
559
|
glBluePrimary: any;
|
|
548
560
|
glBlueDark: any;
|
|
561
|
+
primary100: any;
|
|
562
|
+
primary200: any;
|
|
563
|
+
primary300: any;
|
|
564
|
+
primary400: any;
|
|
565
|
+
primary500: any;
|
|
566
|
+
primary600: any;
|
|
567
|
+
primary700: any;
|
|
568
|
+
primary800: any;
|
|
569
|
+
primary900: any;
|
|
570
|
+
primary1000: any;
|
|
571
|
+
primary1100: any;
|
|
572
|
+
primary1200: any;
|
|
549
573
|
};
|
|
550
574
|
space: {
|
|
551
575
|
"0": any;
|
|
@@ -19,9 +19,10 @@ declare const StyledBannerSlimContainer: import("@stitches/react/types/styled-co
|
|
|
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 StyledBannerSlimContainer: import("@stitches/react/types/styled-co
|
|
|
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 StyledBannerSlimContainer: import("@stitches/react/types/styled-co
|
|
|
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 StyledBannerSlimContainer: import("@stitches/react/types/styled-co
|
|
|
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;
|
|
@@ -23,9 +23,10 @@ declare const StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
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 StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
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 StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
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 StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
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;
|
|
@@ -341,9 +353,10 @@ declare const StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
341
353
|
hover: string;
|
|
342
354
|
}, {
|
|
343
355
|
colors: {
|
|
344
|
-
|
|
356
|
+
textBold: any;
|
|
357
|
+
textRegular: any;
|
|
345
358
|
textSubtle: any;
|
|
346
|
-
|
|
359
|
+
textMinimal: any;
|
|
347
360
|
background: any;
|
|
348
361
|
backgroundAccent: any;
|
|
349
362
|
grey100: any;
|
|
@@ -490,11 +503,6 @@ declare const StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
490
503
|
alpha200: any;
|
|
491
504
|
alpha250: any;
|
|
492
505
|
alpha600: any;
|
|
493
|
-
primaryLight: any;
|
|
494
|
-
primary: any;
|
|
495
|
-
primaryMid: any;
|
|
496
|
-
primaryDark: any;
|
|
497
|
-
secondary: any;
|
|
498
506
|
brandRed: any;
|
|
499
507
|
brandRedAccent: any;
|
|
500
508
|
brandGreen: any;
|
|
@@ -503,6 +511,10 @@ declare const StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
503
511
|
brandPurpleAccent: any;
|
|
504
512
|
brandYellow: any;
|
|
505
513
|
brandYellowAccent: any;
|
|
514
|
+
infoLight: any;
|
|
515
|
+
info: any;
|
|
516
|
+
infoMid: any;
|
|
517
|
+
infoDark: any;
|
|
506
518
|
successLight: any;
|
|
507
519
|
success: any;
|
|
508
520
|
successMid: any;
|
|
@@ -526,6 +538,18 @@ declare const StyledBannerSlimContent: import("@stitches/react/types/styled-comp
|
|
|
526
538
|
glBlueLight: any;
|
|
527
539
|
glBluePrimary: any;
|
|
528
540
|
glBlueDark: any;
|
|
541
|
+
primary100: any;
|
|
542
|
+
primary200: any;
|
|
543
|
+
primary300: any;
|
|
544
|
+
primary400: any;
|
|
545
|
+
primary500: any;
|
|
546
|
+
primary600: any;
|
|
547
|
+
primary700: any;
|
|
548
|
+
primary800: any;
|
|
549
|
+
primary900: any;
|
|
550
|
+
primary1000: any;
|
|
551
|
+
primary1100: any;
|
|
552
|
+
primary1200: any;
|
|
529
553
|
};
|
|
530
554
|
space: {
|
|
531
555
|
"0": any;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
declare const StyledDismiss: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
4
4
|
}, "appearance" | "size" | "css" | "theme" | "isRounded"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
5
|
-
theme?: "
|
|
5
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
6
6
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
8
8
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -25,9 +25,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
25
25
|
hover: string;
|
|
26
26
|
}, {
|
|
27
27
|
colors: {
|
|
28
|
-
|
|
28
|
+
textBold: any;
|
|
29
|
+
textRegular: any;
|
|
29
30
|
textSubtle: any;
|
|
30
|
-
|
|
31
|
+
textMinimal: any;
|
|
31
32
|
background: any;
|
|
32
33
|
backgroundAccent: any;
|
|
33
34
|
grey100: any;
|
|
@@ -174,11 +175,6 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
174
175
|
alpha200: any;
|
|
175
176
|
alpha250: any;
|
|
176
177
|
alpha600: any;
|
|
177
|
-
primaryLight: any;
|
|
178
|
-
primary: any;
|
|
179
|
-
primaryMid: any;
|
|
180
|
-
primaryDark: any;
|
|
181
|
-
secondary: any;
|
|
182
178
|
brandRed: any;
|
|
183
179
|
brandRedAccent: any;
|
|
184
180
|
brandGreen: any;
|
|
@@ -187,6 +183,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
187
183
|
brandPurpleAccent: any;
|
|
188
184
|
brandYellow: any;
|
|
189
185
|
brandYellowAccent: any;
|
|
186
|
+
infoLight: any;
|
|
187
|
+
info: any;
|
|
188
|
+
infoMid: any;
|
|
189
|
+
infoDark: any;
|
|
190
190
|
successLight: any;
|
|
191
191
|
success: any;
|
|
192
192
|
successMid: any;
|
|
@@ -210,6 +210,18 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
210
210
|
glBlueLight: any;
|
|
211
211
|
glBluePrimary: any;
|
|
212
212
|
glBlueDark: any;
|
|
213
|
+
primary100: any;
|
|
214
|
+
primary200: any;
|
|
215
|
+
primary300: any;
|
|
216
|
+
primary400: any;
|
|
217
|
+
primary500: any;
|
|
218
|
+
primary600: any;
|
|
219
|
+
primary700: any;
|
|
220
|
+
primary800: any;
|
|
221
|
+
primary900: any;
|
|
222
|
+
primary1000: any;
|
|
223
|
+
primary1100: any;
|
|
224
|
+
primary1200: any;
|
|
213
225
|
};
|
|
214
226
|
space: {
|
|
215
227
|
"0": any;
|
|
@@ -327,7 +339,7 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
327
339
|
};
|
|
328
340
|
}> | undefined;
|
|
329
341
|
}, "appearance" | "size" | "theme" | "label" | "children" | "as" | "hasTooltip" | "tooltipSide" | "isRounded" | keyof import("../../../types").NavigatorActions> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
330
|
-
theme?: "
|
|
342
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
331
343
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
332
344
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
333
345
|
isRounded?: boolean | "true" | undefined;
|
|
@@ -364,9 +376,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
364
376
|
hover: string;
|
|
365
377
|
}, {
|
|
366
378
|
colors: {
|
|
367
|
-
|
|
379
|
+
textBold: any;
|
|
380
|
+
textRegular: any;
|
|
368
381
|
textSubtle: any;
|
|
369
|
-
|
|
382
|
+
textMinimal: any;
|
|
370
383
|
background: any;
|
|
371
384
|
backgroundAccent: any;
|
|
372
385
|
grey100: any;
|
|
@@ -513,11 +526,6 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
513
526
|
alpha200: any;
|
|
514
527
|
alpha250: any;
|
|
515
528
|
alpha600: any;
|
|
516
|
-
primaryLight: any;
|
|
517
|
-
primary: any;
|
|
518
|
-
primaryMid: any;
|
|
519
|
-
primaryDark: any;
|
|
520
|
-
secondary: any;
|
|
521
529
|
brandRed: any;
|
|
522
530
|
brandRedAccent: any;
|
|
523
531
|
brandGreen: any;
|
|
@@ -526,6 +534,10 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
526
534
|
brandPurpleAccent: any;
|
|
527
535
|
brandYellow: any;
|
|
528
536
|
brandYellowAccent: any;
|
|
537
|
+
infoLight: any;
|
|
538
|
+
info: any;
|
|
539
|
+
infoMid: any;
|
|
540
|
+
infoDark: any;
|
|
529
541
|
successLight: any;
|
|
530
542
|
success: any;
|
|
531
543
|
successMid: any;
|
|
@@ -549,6 +561,18 @@ declare const StyledDismiss: import("@stitches/react/types/styled-component").St
|
|
|
549
561
|
glBlueLight: any;
|
|
550
562
|
glBluePrimary: any;
|
|
551
563
|
glBlueDark: any;
|
|
564
|
+
primary100: any;
|
|
565
|
+
primary200: any;
|
|
566
|
+
primary300: any;
|
|
567
|
+
primary400: any;
|
|
568
|
+
primary500: any;
|
|
569
|
+
primary600: any;
|
|
570
|
+
primary700: any;
|
|
571
|
+
primary800: any;
|
|
572
|
+
primary900: any;
|
|
573
|
+
primary1000: any;
|
|
574
|
+
primary1100: any;
|
|
575
|
+
primary1200: any;
|
|
552
576
|
};
|
|
553
577
|
space: {
|
|
554
578
|
"0": any;
|
|
@@ -16,9 +16,10 @@ export declare const Box: import("@stitches/react/types/styled-component").Style
|
|
|
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 Box: import("@stitches/react/types/styled-component").Style
|
|
|
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 Box: import("@stitches/react/types/styled-component").Style
|
|
|
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 Box: import("@stitches/react/types/styled-component").Style
|
|
|
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;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
5
5
|
export declare const StyledButton: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
6
|
-
theme?: "
|
|
6
|
+
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | "secondary" | undefined;
|
|
7
7
|
appearance?: "outline" | "solid" | undefined;
|
|
8
8
|
size?: "sm" | "md" | "lg" | undefined;
|
|
9
9
|
isLoading?: boolean | "true" | undefined;
|
|
@@ -26,9 +26,10 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
26
26
|
hover: string;
|
|
27
27
|
}, {
|
|
28
28
|
colors: {
|
|
29
|
-
|
|
29
|
+
textBold: any;
|
|
30
|
+
textRegular: any;
|
|
30
31
|
textSubtle: any;
|
|
31
|
-
|
|
32
|
+
textMinimal: any;
|
|
32
33
|
background: any;
|
|
33
34
|
backgroundAccent: any;
|
|
34
35
|
grey100: any;
|
|
@@ -175,11 +176,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
175
176
|
alpha200: any;
|
|
176
177
|
alpha250: any;
|
|
177
178
|
alpha600: any;
|
|
178
|
-
primaryLight: any;
|
|
179
|
-
primary: any;
|
|
180
|
-
primaryMid: any;
|
|
181
|
-
primaryDark: any;
|
|
182
|
-
secondary: any;
|
|
183
179
|
brandRed: any;
|
|
184
180
|
brandRedAccent: any;
|
|
185
181
|
brandGreen: any;
|
|
@@ -188,6 +184,10 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
188
184
|
brandPurpleAccent: any;
|
|
189
185
|
brandYellow: any;
|
|
190
186
|
brandYellowAccent: any;
|
|
187
|
+
infoLight: any;
|
|
188
|
+
info: any;
|
|
189
|
+
infoMid: any;
|
|
190
|
+
infoDark: any;
|
|
191
191
|
successLight: any;
|
|
192
192
|
success: any;
|
|
193
193
|
successMid: any;
|
|
@@ -211,6 +211,18 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
211
211
|
glBlueLight: any;
|
|
212
212
|
glBluePrimary: any;
|
|
213
213
|
glBlueDark: any;
|
|
214
|
+
primary100: any;
|
|
215
|
+
primary200: any;
|
|
216
|
+
primary300: any;
|
|
217
|
+
primary400: any;
|
|
218
|
+
primary500: any;
|
|
219
|
+
primary600: any;
|
|
220
|
+
primary700: any;
|
|
221
|
+
primary800: any;
|
|
222
|
+
primary900: any;
|
|
223
|
+
primary1000: any;
|
|
224
|
+
primary1100: any;
|
|
225
|
+
primary1200: any;
|
|
214
226
|
};
|
|
215
227
|
space: {
|
|
216
228
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{opacify as s}from"color2k";import*as a from"react";import{StyledIcon as d}from"../icon/Icon.js";import{Loader as h}from"../loader/Loader.js";import{styled as c}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as l}from"../../utilities/style/disabledStyle.js";import{getExternalAnchorProps as u}from"../../utilities/uri/index.js";const p=(e,i,r,t)=>({theme:e,appearance:"solid",css:{border:"1px solid",borderColor:"currentColor",color:i,"&[disabled]":l,"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:t}}}),n=(e,i,r,t,o="white")=>({theme:e,appearance:"solid",css:{bg:i,color:o,"&[disabled]":l,"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:o},"&:not([disabled]):active":{bg:t}}}),$=c("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content","&[disabled]":l,variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4",gap:"$2",[`& ${d}`]:{size:16}},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$5",gap:"$3",[`& ${d}`]:{size:20}},lg:{fontSize:"$lg",lineHeight:1.5,height:"$5",px:"$5",gap:"$3",[`& ${d}`]:{size:22}}},isLoading:{true:{cursor:"not-allowed",opacity:.6,pointerEvents:"none"}},fullWidth:{true:{width:"100%"},false:{width:"max-content"}}},compoundVariants:[n("primary","$primary800","$primary900","$primary1000"),n("secondary","$primary1000","$primary1100","$primary1200"),n("success","$success","$successMid","$successDark"),n("warning","$warning","$warningMid","$warningDark","$tonal500"),n("danger","$danger","$dangerMid","$dangerDark"),n("neutral","white",s("white",-.1),s("white",-.25),"$primary800"),p("primary","$primary800","$primary900","$primary1000"),p("secondary","$primary1000","$primary1100","$primary1200"),p("neutral","white",s("white",-.2),s("white",-.35))],defaultVariants:{appearance:"solid",size:"md",theme:"primary"}}),f=c("span",{alignItems:"center",display:"flex",justifyContent:"center",visibility:"hidden",variants:{size:{sm:{gap:"$2"},md:{gap:"$3"},lg:{gap:"$3"}}},defaultVariants:{size:"md"}}),b=({size:e,children:i})=>a.createElement(a.Fragment,null,a.createElement(h,{css:{position:"absolute"}}),a.createElement(f,{size:e},i)),g=a.forwardRef(({children:e,as:i,href:r,isLoading:t=!1,onClick:o,...m},y)=>a.createElement($,{as:i||(r?"a":void 0),href:r,isLoading:t,onClick:t?void 0:o,type:r?void 0:"button",...m,...u(r),ref:y},t?a.createElement(b,{size:m.size},e):e));g.displayName="Button";export{g as Button,$ as StyledButton};
|
|
2
2
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import type { VariantProps } from '@stitches/react'\nimport {
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import type { VariantProps } from '@stitches/react'\nimport { opacify } from 'color2k'\nimport * as React from 'react'\n\nimport { StyledIcon } from '~/components/icon'\nimport { Loader } from '~/components/loader'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { disabledStyle, Override } from '~/utilities'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nconst getButtonOutlineVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'solid',\n css: {\n border: '1px solid',\n borderColor: 'currentColor',\n color: base,\n '&[disabled]': disabledStyle,\n '&:not([disabled]):hover, &:not([disabled]):focus': {\n textDecoration: 'none',\n color: interact\n },\n '&:not([disabled]):active': { color: active }\n }\n})\n\nconst getButtonSolidVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string,\n text = 'white'\n) => ({\n theme,\n appearance: 'solid',\n css: {\n bg: base,\n color: text,\n '&[disabled]': disabledStyle,\n '&:not([disabled]):hover, &:not([disabled]):focus': {\n bg: interact,\n color: text\n },\n '&:not([disabled]):active': { bg: active }\n }\n})\n\nexport const StyledButton = styled('button', {\n alignItems: 'center',\n bg: 'unset',\n border: 'unset',\n borderRadius: '$0',\n cursor: 'pointer',\n display: 'flex',\n fontFamily: '$body',\n fontWeight: 600,\n justifyContent: 'center',\n p: 'unset',\n textDecoration: 'none',\n transition: 'all 100ms ease-out',\n whiteSpace: 'nowrap',\n width: 'max-content',\n '&[disabled]': disabledStyle,\n variants: {\n theme: {\n primary: {},\n secondary: {},\n success: {},\n warning: {},\n danger: {},\n neutral: {}\n },\n appearance: {\n solid: {},\n outline: {}\n },\n size: {\n sm: {\n fontSize: '$sm',\n lineHeight: 1.53,\n height: '$3',\n px: '$4',\n gap: '$2',\n [`& ${StyledIcon}`]: { size: 16 }\n },\n md: {\n fontSize: '$md',\n lineHeight: 1.5,\n height: '$4',\n px: '$5',\n gap: '$3',\n [`& ${StyledIcon}`]: { size: 20 }\n },\n lg: {\n fontSize: '$lg',\n lineHeight: 1.5,\n height: '$5',\n px: '$5',\n gap: '$3',\n [`& ${StyledIcon}`]: { size: 22 }\n }\n },\n isLoading: {\n true: {\n cursor: 'not-allowed',\n opacity: 0.6,\n pointerEvents: 'none'\n }\n },\n fullWidth: {\n true: { width: '100%' },\n false: { width: 'max-content' }\n }\n },\n\n // prettier-ignore\n compoundVariants: [\n getButtonSolidVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getButtonSolidVariant('secondary', '$primary1000', '$primary1100', '$primary1200'),\n getButtonSolidVariant('success', '$success', '$successMid', '$successDark'),\n getButtonSolidVariant('warning', '$warning', '$warningMid', '$warningDark', '$tonal500'),\n getButtonSolidVariant('danger', '$danger', '$dangerMid', '$dangerDark'),\n getButtonSolidVariant('neutral', 'white', opacify('white', -0.1), opacify('white', -0.25), '$primary800'),\n \n getButtonOutlineVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getButtonOutlineVariant('secondary', '$primary1000', '$primary1100', '$primary1200'),\n getButtonOutlineVariant('neutral', 'white', opacify('white', -0.2), opacify('white', -0.35))\n ],\n\n defaultVariants: {\n appearance: 'solid',\n size: 'md',\n theme: 'primary'\n }\n})\n\nconst LoaderContentsWrapper = styled('span', {\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n visibility: 'hidden',\n variants: {\n size: {\n sm: { gap: '$2' },\n md: { gap: '$3' },\n lg: { gap: '$3' }\n }\n },\n defaultVariants: {\n size: 'md'\n }\n})\n\nconst WithLoader = ({\n size,\n children\n}: React.ComponentProps<typeof LoaderContentsWrapper>) => (\n <>\n <Loader css={{ position: 'absolute' }} />\n <LoaderContentsWrapper size={size}>{children}</LoaderContentsWrapper>\n </>\n)\n\ntype ButtonProps = Override<\n React.ComponentProps<typeof StyledButton>,\n VariantProps<typeof StyledButton> & {\n as?: React.ComponentType | React.ElementType\n children: React.ReactNode\n href?: string\n isLoading?: boolean\n } & NavigatorActions\n>\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ children, as, href, isLoading = false, onClick, ...rest }, ref) => (\n <StyledButton\n as={as || (href ? 'a' : undefined)}\n href={href}\n isLoading={isLoading}\n onClick={!isLoading ? onClick : undefined}\n type={!href ? 'button' : undefined}\n {...rest}\n {...getExternalAnchorProps(href)}\n ref={ref}\n >\n {isLoading ? (\n <WithLoader size={rest.size}>{children}</WithLoader>\n ) : (\n children\n )}\n </StyledButton>\n )\n) as React.FC<ButtonProps>\n\nButton.displayName = 'Button'\n"],"names":["getButtonOutlineVariant","theme","base","interact","active","disabledStyle","getButtonSolidVariant","text","StyledButton","styled","StyledIcon","opacify","LoaderContentsWrapper","WithLoader","size","children","React","Loader","Button","as","href","isLoading","onClick","rest","ref","getExternalAnchorProps"],"mappings":"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"}
|
|
@@ -20,9 +20,10 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
20
20
|
hover: string;
|
|
21
21
|
}, {
|
|
22
22
|
colors: {
|
|
23
|
-
|
|
23
|
+
textBold: any;
|
|
24
|
+
textRegular: any;
|
|
24
25
|
textSubtle: any;
|
|
25
|
-
|
|
26
|
+
textMinimal: any;
|
|
26
27
|
background: any;
|
|
27
28
|
backgroundAccent: any;
|
|
28
29
|
grey100: any;
|
|
@@ -169,11 +170,6 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
169
170
|
alpha200: any;
|
|
170
171
|
alpha250: any;
|
|
171
172
|
alpha600: any;
|
|
172
|
-
primaryLight: any;
|
|
173
|
-
primary: any;
|
|
174
|
-
primaryMid: any;
|
|
175
|
-
primaryDark: any;
|
|
176
|
-
secondary: any;
|
|
177
173
|
brandRed: any;
|
|
178
174
|
brandRedAccent: any;
|
|
179
175
|
brandGreen: any;
|
|
@@ -182,6 +178,10 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
182
178
|
brandPurpleAccent: any;
|
|
183
179
|
brandYellow: any;
|
|
184
180
|
brandYellowAccent: any;
|
|
181
|
+
infoLight: any;
|
|
182
|
+
info: any;
|
|
183
|
+
infoMid: any;
|
|
184
|
+
infoDark: any;
|
|
185
185
|
successLight: any;
|
|
186
186
|
success: any;
|
|
187
187
|
successMid: any;
|
|
@@ -205,6 +205,18 @@ export declare const Day: import("@stitches/react/types/styled-component").Style
|
|
|
205
205
|
glBlueLight: any;
|
|
206
206
|
glBluePrimary: any;
|
|
207
207
|
glBlueDark: any;
|
|
208
|
+
primary100: any;
|
|
209
|
+
primary200: any;
|
|
210
|
+
primary300: any;
|
|
211
|
+
primary400: any;
|
|
212
|
+
primary500: any;
|
|
213
|
+
primary600: any;
|
|
214
|
+
primary700: any;
|
|
215
|
+
primary800: any;
|
|
216
|
+
primary900: any;
|
|
217
|
+
primary1000: any;
|
|
218
|
+
primary1100: any;
|
|
219
|
+
primary1200: any;
|
|
208
220
|
};
|
|
209
221
|
space: {
|
|
210
222
|
"0": any;
|