@atom-learning/components 3.10.1 → 3.11.1
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 +2 -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
|
@@ -17,9 +17,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
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 CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
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 CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
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 CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
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;
|
|
@@ -604,9 +616,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
604
616
|
hover: string;
|
|
605
617
|
}, {
|
|
606
618
|
colors: {
|
|
607
|
-
|
|
619
|
+
textBold: any;
|
|
620
|
+
textRegular: any;
|
|
608
621
|
textSubtle: any;
|
|
609
|
-
|
|
622
|
+
textMinimal: any;
|
|
610
623
|
background: any;
|
|
611
624
|
backgroundAccent: any;
|
|
612
625
|
grey100: any;
|
|
@@ -753,11 +766,6 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
753
766
|
alpha200: any;
|
|
754
767
|
alpha250: any;
|
|
755
768
|
alpha600: any;
|
|
756
|
-
primaryLight: any;
|
|
757
|
-
primary: any;
|
|
758
|
-
primaryMid: any;
|
|
759
|
-
primaryDark: any;
|
|
760
|
-
secondary: any;
|
|
761
769
|
brandRed: any;
|
|
762
770
|
brandRedAccent: any;
|
|
763
771
|
brandGreen: any;
|
|
@@ -766,6 +774,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
766
774
|
brandPurpleAccent: any;
|
|
767
775
|
brandYellow: any;
|
|
768
776
|
brandYellowAccent: any;
|
|
777
|
+
infoLight: any;
|
|
778
|
+
info: any;
|
|
779
|
+
infoMid: any;
|
|
780
|
+
infoDark: any;
|
|
769
781
|
successLight: any;
|
|
770
782
|
success: any;
|
|
771
783
|
successMid: any;
|
|
@@ -789,6 +801,18 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
789
801
|
glBlueLight: any;
|
|
790
802
|
glBluePrimary: any;
|
|
791
803
|
glBlueDark: any;
|
|
804
|
+
primary100: any;
|
|
805
|
+
primary200: any;
|
|
806
|
+
primary300: any;
|
|
807
|
+
primary400: any;
|
|
808
|
+
primary500: any;
|
|
809
|
+
primary600: any;
|
|
810
|
+
primary700: any;
|
|
811
|
+
primary800: any;
|
|
812
|
+
primary900: any;
|
|
813
|
+
primary1000: any;
|
|
814
|
+
primary1100: any;
|
|
815
|
+
primary1200: any;
|
|
792
816
|
};
|
|
793
817
|
space: {
|
|
794
818
|
"0": any;
|
|
@@ -1248,9 +1272,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
1248
1272
|
hover: string;
|
|
1249
1273
|
}, {
|
|
1250
1274
|
colors: {
|
|
1251
|
-
|
|
1275
|
+
textBold: any;
|
|
1276
|
+
textRegular: any;
|
|
1252
1277
|
textSubtle: any;
|
|
1253
|
-
|
|
1278
|
+
textMinimal: any;
|
|
1254
1279
|
background: any;
|
|
1255
1280
|
backgroundAccent: any;
|
|
1256
1281
|
grey100: any;
|
|
@@ -1397,11 +1422,6 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
1397
1422
|
alpha200: any;
|
|
1398
1423
|
alpha250: any;
|
|
1399
1424
|
alpha600: any;
|
|
1400
|
-
primaryLight: any;
|
|
1401
|
-
primary: any;
|
|
1402
|
-
primaryMid: any;
|
|
1403
|
-
primaryDark: any;
|
|
1404
|
-
secondary: any;
|
|
1405
1425
|
brandRed: any;
|
|
1406
1426
|
brandRedAccent: any;
|
|
1407
1427
|
brandGreen: any;
|
|
@@ -1410,6 +1430,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
1410
1430
|
brandPurpleAccent: any;
|
|
1411
1431
|
brandYellow: any;
|
|
1412
1432
|
brandYellowAccent: any;
|
|
1433
|
+
infoLight: any;
|
|
1434
|
+
info: any;
|
|
1435
|
+
infoMid: any;
|
|
1436
|
+
infoDark: any;
|
|
1413
1437
|
successLight: any;
|
|
1414
1438
|
success: any;
|
|
1415
1439
|
successMid: any;
|
|
@@ -1433,6 +1457,18 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
1433
1457
|
glBlueLight: any;
|
|
1434
1458
|
glBluePrimary: any;
|
|
1435
1459
|
glBlueDark: any;
|
|
1460
|
+
primary100: any;
|
|
1461
|
+
primary200: any;
|
|
1462
|
+
primary300: any;
|
|
1463
|
+
primary400: any;
|
|
1464
|
+
primary500: any;
|
|
1465
|
+
primary600: any;
|
|
1466
|
+
primary700: any;
|
|
1467
|
+
primary800: any;
|
|
1468
|
+
primary900: any;
|
|
1469
|
+
primary1000: any;
|
|
1470
|
+
primary1100: any;
|
|
1471
|
+
primary1200: any;
|
|
1436
1472
|
};
|
|
1437
1473
|
space: {
|
|
1438
1474
|
"0": any;
|
|
@@ -1916,9 +1952,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
1916
1952
|
hover: string;
|
|
1917
1953
|
}, {
|
|
1918
1954
|
colors: {
|
|
1919
|
-
|
|
1955
|
+
textBold: any;
|
|
1956
|
+
textRegular: any;
|
|
1920
1957
|
textSubtle: any;
|
|
1921
|
-
|
|
1958
|
+
textMinimal: any;
|
|
1922
1959
|
background: any;
|
|
1923
1960
|
backgroundAccent: any;
|
|
1924
1961
|
grey100: any;
|
|
@@ -2065,11 +2102,6 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
2065
2102
|
alpha200: any;
|
|
2066
2103
|
alpha250: any;
|
|
2067
2104
|
alpha600: any;
|
|
2068
|
-
primaryLight: any;
|
|
2069
|
-
primary: any;
|
|
2070
|
-
primaryMid: any;
|
|
2071
|
-
primaryDark: any;
|
|
2072
|
-
secondary: any;
|
|
2073
2105
|
brandRed: any;
|
|
2074
2106
|
brandRedAccent: any;
|
|
2075
2107
|
brandGreen: any;
|
|
@@ -2078,6 +2110,10 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
2078
2110
|
brandPurpleAccent: any;
|
|
2079
2111
|
brandYellow: any;
|
|
2080
2112
|
brandYellowAccent: any;
|
|
2113
|
+
infoLight: any;
|
|
2114
|
+
info: any;
|
|
2115
|
+
infoMid: any;
|
|
2116
|
+
infoDark: any;
|
|
2081
2117
|
successLight: any;
|
|
2082
2118
|
success: any;
|
|
2083
2119
|
successMid: any;
|
|
@@ -2101,6 +2137,18 @@ export declare const CheckboxTree: (({ checked, defaultChecked, onCheckedChange,
|
|
|
2101
2137
|
glBlueLight: any;
|
|
2102
2138
|
glBluePrimary: any;
|
|
2103
2139
|
glBlueDark: any;
|
|
2140
|
+
primary100: any;
|
|
2141
|
+
primary200: any;
|
|
2142
|
+
primary300: any;
|
|
2143
|
+
primary400: any;
|
|
2144
|
+
primary500: any;
|
|
2145
|
+
primary600: any;
|
|
2146
|
+
primary700: any;
|
|
2147
|
+
primary800: any;
|
|
2148
|
+
primary900: any;
|
|
2149
|
+
primary1000: any;
|
|
2150
|
+
primary1100: any;
|
|
2151
|
+
primary1200: any;
|
|
2104
2152
|
};
|
|
2105
2153
|
space: {
|
|
2106
2154
|
"0": any;
|
|
@@ -18,9 +18,10 @@ export declare const StyledChipContent: import("@stitches/react/types/styled-com
|
|
|
18
18
|
hover: string;
|
|
19
19
|
}, {
|
|
20
20
|
colors: {
|
|
21
|
-
|
|
21
|
+
textBold: any;
|
|
22
|
+
textRegular: any;
|
|
22
23
|
textSubtle: any;
|
|
23
|
-
|
|
24
|
+
textMinimal: any;
|
|
24
25
|
background: any;
|
|
25
26
|
backgroundAccent: any;
|
|
26
27
|
grey100: any;
|
|
@@ -167,11 +168,6 @@ export declare const StyledChipContent: import("@stitches/react/types/styled-com
|
|
|
167
168
|
alpha200: any;
|
|
168
169
|
alpha250: any;
|
|
169
170
|
alpha600: any;
|
|
170
|
-
primaryLight: any;
|
|
171
|
-
primary: any;
|
|
172
|
-
primaryMid: any;
|
|
173
|
-
primaryDark: any;
|
|
174
|
-
secondary: any;
|
|
175
171
|
brandRed: any;
|
|
176
172
|
brandRedAccent: any;
|
|
177
173
|
brandGreen: any;
|
|
@@ -180,6 +176,10 @@ export declare const StyledChipContent: import("@stitches/react/types/styled-com
|
|
|
180
176
|
brandPurpleAccent: any;
|
|
181
177
|
brandYellow: any;
|
|
182
178
|
brandYellowAccent: any;
|
|
179
|
+
infoLight: any;
|
|
180
|
+
info: any;
|
|
181
|
+
infoMid: any;
|
|
182
|
+
infoDark: any;
|
|
183
183
|
successLight: any;
|
|
184
184
|
success: any;
|
|
185
185
|
successMid: any;
|
|
@@ -203,6 +203,18 @@ export declare const StyledChipContent: import("@stitches/react/types/styled-com
|
|
|
203
203
|
glBlueLight: any;
|
|
204
204
|
glBluePrimary: any;
|
|
205
205
|
glBlueDark: any;
|
|
206
|
+
primary100: any;
|
|
207
|
+
primary200: any;
|
|
208
|
+
primary300: any;
|
|
209
|
+
primary400: any;
|
|
210
|
+
primary500: any;
|
|
211
|
+
primary600: any;
|
|
212
|
+
primary700: any;
|
|
213
|
+
primary800: any;
|
|
214
|
+
primary900: any;
|
|
215
|
+
primary1000: any;
|
|
216
|
+
primary1100: any;
|
|
217
|
+
primary1200: any;
|
|
206
218
|
};
|
|
207
219
|
space: {
|
|
208
220
|
"0": any;
|
|
@@ -348,9 +360,10 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
348
360
|
hover: string;
|
|
349
361
|
}, {
|
|
350
362
|
colors: {
|
|
351
|
-
|
|
363
|
+
textBold: any;
|
|
364
|
+
textRegular: any;
|
|
352
365
|
textSubtle: any;
|
|
353
|
-
|
|
366
|
+
textMinimal: any;
|
|
354
367
|
background: any;
|
|
355
368
|
backgroundAccent: any;
|
|
356
369
|
grey100: any;
|
|
@@ -497,11 +510,6 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
497
510
|
alpha200: any;
|
|
498
511
|
alpha250: any;
|
|
499
512
|
alpha600: any;
|
|
500
|
-
primaryLight: any;
|
|
501
|
-
primary: any;
|
|
502
|
-
primaryMid: any;
|
|
503
|
-
primaryDark: any;
|
|
504
|
-
secondary: any;
|
|
505
513
|
brandRed: any;
|
|
506
514
|
brandRedAccent: any;
|
|
507
515
|
brandGreen: any;
|
|
@@ -510,6 +518,10 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
510
518
|
brandPurpleAccent: any;
|
|
511
519
|
brandYellow: any;
|
|
512
520
|
brandYellowAccent: any;
|
|
521
|
+
infoLight: any;
|
|
522
|
+
info: any;
|
|
523
|
+
infoMid: any;
|
|
524
|
+
infoDark: any;
|
|
513
525
|
successLight: any;
|
|
514
526
|
success: any;
|
|
515
527
|
successMid: any;
|
|
@@ -533,6 +545,18 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
533
545
|
glBlueLight: any;
|
|
534
546
|
glBluePrimary: any;
|
|
535
547
|
glBlueDark: any;
|
|
548
|
+
primary100: any;
|
|
549
|
+
primary200: any;
|
|
550
|
+
primary300: any;
|
|
551
|
+
primary400: any;
|
|
552
|
+
primary500: any;
|
|
553
|
+
primary600: any;
|
|
554
|
+
primary700: any;
|
|
555
|
+
primary800: any;
|
|
556
|
+
primary900: any;
|
|
557
|
+
primary1000: any;
|
|
558
|
+
primary1100: any;
|
|
559
|
+
primary1200: any;
|
|
536
560
|
};
|
|
537
561
|
space: {
|
|
538
562
|
"0": any;
|
|
@@ -668,9 +692,10 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
668
692
|
hover: string;
|
|
669
693
|
}, {
|
|
670
694
|
colors: {
|
|
671
|
-
|
|
695
|
+
textBold: any;
|
|
696
|
+
textRegular: any;
|
|
672
697
|
textSubtle: any;
|
|
673
|
-
|
|
698
|
+
textMinimal: any;
|
|
674
699
|
background: any;
|
|
675
700
|
backgroundAccent: any;
|
|
676
701
|
grey100: any;
|
|
@@ -817,11 +842,6 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
817
842
|
alpha200: any;
|
|
818
843
|
alpha250: any;
|
|
819
844
|
alpha600: any;
|
|
820
|
-
primaryLight: any;
|
|
821
|
-
primary: any;
|
|
822
|
-
primaryMid: any;
|
|
823
|
-
primaryDark: any;
|
|
824
|
-
secondary: any;
|
|
825
845
|
brandRed: any;
|
|
826
846
|
brandRedAccent: any;
|
|
827
847
|
brandGreen: any;
|
|
@@ -830,6 +850,10 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
830
850
|
brandPurpleAccent: any;
|
|
831
851
|
brandYellow: any;
|
|
832
852
|
brandYellowAccent: any;
|
|
853
|
+
infoLight: any;
|
|
854
|
+
info: any;
|
|
855
|
+
infoMid: any;
|
|
856
|
+
infoDark: any;
|
|
833
857
|
successLight: any;
|
|
834
858
|
success: any;
|
|
835
859
|
successMid: any;
|
|
@@ -853,6 +877,18 @@ export declare const StyledRoot: import("@stitches/react/types/styled-component"
|
|
|
853
877
|
glBlueLight: any;
|
|
854
878
|
glBluePrimary: any;
|
|
855
879
|
glBlueDark: any;
|
|
880
|
+
primary100: any;
|
|
881
|
+
primary200: any;
|
|
882
|
+
primary300: any;
|
|
883
|
+
primary400: any;
|
|
884
|
+
primary500: any;
|
|
885
|
+
primary600: any;
|
|
886
|
+
primary700: any;
|
|
887
|
+
primary800: any;
|
|
888
|
+
primary900: any;
|
|
889
|
+
primary1000: any;
|
|
890
|
+
primary1100: any;
|
|
891
|
+
primary1200: any;
|
|
856
892
|
};
|
|
857
893
|
space: {
|
|
858
894
|
"0": any;
|
|
@@ -998,9 +1034,10 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
998
1034
|
hover: string;
|
|
999
1035
|
}, {
|
|
1000
1036
|
colors: {
|
|
1001
|
-
|
|
1037
|
+
textBold: any;
|
|
1038
|
+
textRegular: any;
|
|
1002
1039
|
textSubtle: any;
|
|
1003
|
-
|
|
1040
|
+
textMinimal: any;
|
|
1004
1041
|
background: any;
|
|
1005
1042
|
backgroundAccent: any;
|
|
1006
1043
|
grey100: any;
|
|
@@ -1147,11 +1184,6 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1147
1184
|
alpha200: any;
|
|
1148
1185
|
alpha250: any;
|
|
1149
1186
|
alpha600: any;
|
|
1150
|
-
primaryLight: any;
|
|
1151
|
-
primary: any;
|
|
1152
|
-
primaryMid: any;
|
|
1153
|
-
primaryDark: any;
|
|
1154
|
-
secondary: any;
|
|
1155
1187
|
brandRed: any;
|
|
1156
1188
|
brandRedAccent: any;
|
|
1157
1189
|
brandGreen: any;
|
|
@@ -1160,6 +1192,10 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1160
1192
|
brandPurpleAccent: any;
|
|
1161
1193
|
brandYellow: any;
|
|
1162
1194
|
brandYellowAccent: any;
|
|
1195
|
+
infoLight: any;
|
|
1196
|
+
info: any;
|
|
1197
|
+
infoMid: any;
|
|
1198
|
+
infoDark: any;
|
|
1163
1199
|
successLight: any;
|
|
1164
1200
|
success: any;
|
|
1165
1201
|
successMid: any;
|
|
@@ -1183,6 +1219,18 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1183
1219
|
glBlueLight: any;
|
|
1184
1220
|
glBluePrimary: any;
|
|
1185
1221
|
glBlueDark: any;
|
|
1222
|
+
primary100: any;
|
|
1223
|
+
primary200: any;
|
|
1224
|
+
primary300: any;
|
|
1225
|
+
primary400: any;
|
|
1226
|
+
primary500: any;
|
|
1227
|
+
primary600: any;
|
|
1228
|
+
primary700: any;
|
|
1229
|
+
primary800: any;
|
|
1230
|
+
primary900: any;
|
|
1231
|
+
primary1000: any;
|
|
1232
|
+
primary1100: any;
|
|
1233
|
+
primary1200: any;
|
|
1186
1234
|
};
|
|
1187
1235
|
space: {
|
|
1188
1236
|
"0": any;
|
|
@@ -1320,9 +1368,10 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1320
1368
|
hover: string;
|
|
1321
1369
|
}, {
|
|
1322
1370
|
colors: {
|
|
1323
|
-
|
|
1371
|
+
textBold: any;
|
|
1372
|
+
textRegular: any;
|
|
1324
1373
|
textSubtle: any;
|
|
1325
|
-
|
|
1374
|
+
textMinimal: any;
|
|
1326
1375
|
background: any;
|
|
1327
1376
|
backgroundAccent: any;
|
|
1328
1377
|
grey100: any;
|
|
@@ -1469,11 +1518,6 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1469
1518
|
alpha200: any;
|
|
1470
1519
|
alpha250: any;
|
|
1471
1520
|
alpha600: any;
|
|
1472
|
-
primaryLight: any;
|
|
1473
|
-
primary: any;
|
|
1474
|
-
primaryMid: any;
|
|
1475
|
-
primaryDark: any;
|
|
1476
|
-
secondary: any;
|
|
1477
1521
|
brandRed: any;
|
|
1478
1522
|
brandRedAccent: any;
|
|
1479
1523
|
brandGreen: any;
|
|
@@ -1482,6 +1526,10 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1482
1526
|
brandPurpleAccent: any;
|
|
1483
1527
|
brandYellow: any;
|
|
1484
1528
|
brandYellowAccent: any;
|
|
1529
|
+
infoLight: any;
|
|
1530
|
+
info: any;
|
|
1531
|
+
infoMid: any;
|
|
1532
|
+
infoDark: any;
|
|
1485
1533
|
successLight: any;
|
|
1486
1534
|
success: any;
|
|
1487
1535
|
successMid: any;
|
|
@@ -1505,6 +1553,18 @@ export declare const ChipRootContext: React.Context<Omit<Omit<Pick<React.Detaile
|
|
|
1505
1553
|
glBlueLight: any;
|
|
1506
1554
|
glBluePrimary: any;
|
|
1507
1555
|
glBlueDark: any;
|
|
1556
|
+
primary100: any;
|
|
1557
|
+
primary200: any;
|
|
1558
|
+
primary300: any;
|
|
1559
|
+
primary400: any;
|
|
1560
|
+
primary500: any;
|
|
1561
|
+
primary600: any;
|
|
1562
|
+
primary700: any;
|
|
1563
|
+
primary800: any;
|
|
1564
|
+
primary900: any;
|
|
1565
|
+
primary1000: any;
|
|
1566
|
+
primary1100: any;
|
|
1567
|
+
primary1200: any;
|
|
1508
1568
|
};
|
|
1509
1569
|
space: {
|
|
1510
1570
|
"0": any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import{Box as $}from"../box/Box.js";import{Flex as C}from"../flex/Flex.js";import{Icon as c}from"../icon/Icon.js";import{getTextVariant as m}from"../text/Text.js";import{styled as p}from"../../stitches.js";import{overrideStitchesVariantValue as g}from"../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";const d={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},h=p("span",{display:"inline-flex",alignItems:"center",px:"$1",flexGrow:1,...d,"& > *:not(:last-child)":{mr:"$1"}}),z={sm:"sm",md:"sm",lg:"md"},a=({...t})=>{const
|
|
1
|
+
import*as e from"react";import{Box as $}from"../box/Box.js";import{Flex as C}from"../flex/Flex.js";import{Icon as c}from"../icon/Icon.js";import{getTextVariant as m}from"../text/Text.js";import{styled as p}from"../../stitches.js";import{overrideStitchesVariantValue as g}from"../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";const d={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},h=p("span",{display:"inline-flex",alignItems:"center",px:"$1",flexGrow:1,...d,"& > *:not(:last-child)":{mr:"$1"}}),z={sm:"sm",md:"sm",lg:"md"},a=({...t})=>{const i=e.useContext(l),{size:o}=i,s=e.useMemo(()=>g(o,r=>z[r]),[o]);return e.createElement(c,{...t,size:s})},u=({children:t,...i})=>{const o=e.Children.toArray(t),s=o.length<=1;return e.createElement(h,{...i},o.map((r,x)=>!s&&typeof r=="string"?e.createElement($,{as:"span",css:d,key:r},r):e.isValidElement(r)&&r.type===c?e.createElement(a,{key:`icon-${x}`,...r.props}):r))},y=p(C,{px:"$2",border:"1px solid",borderRadius:"$0",alignItems:"center",fontFamily:"$body",maxWidth:"100%",borderColor:"$primary800",color:"$primary900",bg:"$primary100","&[data-disabled]":{opacity:"0.3",pointerEvents:"none"},variants:{size:{sm:{height:"$2",...m({size:"sm"})},md:{height:"$3",...m({size:"sm"})},lg:{height:"$4",...m({size:"md"})}}}}),l=e.createContext({}),f=({size:t,children:i})=>{const o=e.useMemo(()=>({size:t}),[t]);return e.createElement(l.Provider,{value:o},i)},E=e.forwardRef(({size:t="md",...i},o)=>e.createElement(f,{size:t},e.createElement(y,{ref:o,size:t,...i}))),n=E;n.Content=u,n.Icon=a,n.displayName="Chip";export{n as Chip,a as ChipIcon,l as ChipRootContext,f as ChipRootProvider,h as StyledChipContent,y as StyledRoot};
|
|
2
2
|
//# sourceMappingURL=Chip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { Icon } from '~/components/icon'\nimport { getTextVariant } from '~/components/text'\nimport { styled } from '~/stitches'\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nconst overflowElipsis = {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n}\nexport const StyledChipContent = styled('span', {\n display: 'inline-flex',\n alignItems: 'center',\n px: '$1',\n flexGrow: 1,\n ...overflowElipsis,\n '& > *:not(:last-child)': {\n mr: '$1'\n }\n})\n\nconst toIconSize = { sm: 'sm', md: 'sm', lg: 'md' }\n\nexport const ChipIcon: typeof Icon = ({ ...props }) => {\n const rootContext = React.useContext(ChipRootContext)\n const { size } = rootContext\n const iconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toIconSize[s]),\n [size]\n )\n return <Icon {...props} size={iconSize} />\n}\n\nconst ChipContent = ({ children, ...rest }) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n return (\n <StyledChipContent {...rest}>\n {\n childrenArray.map((child, index) => {\n if (!isSingleChild && typeof child === 'string')\n return (\n <Box as=\"span\" css={overflowElipsis} key={child}>\n {child}\n </Box>\n )\n if (React.isValidElement(child) && child.type === Icon) {\n return <ChipIcon key={`icon-${index}`} {...child.props} />\n }\n return child\n }) as React.ReactElement[]\n }\n </StyledChipContent>\n )\n}\n\nexport const StyledRoot = styled(Flex, {\n px: '$2',\n border: '1px solid',\n borderRadius: '$0',\n alignItems: 'center',\n fontFamily: '$body',\n maxWidth: '100%',\n borderColor: '$
|
|
1
|
+
{"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '~/components/box'\nimport { Flex } from '~/components/flex'\nimport { Icon } from '~/components/icon'\nimport { getTextVariant } from '~/components/text'\nimport { styled } from '~/stitches'\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nconst overflowElipsis = {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n}\nexport const StyledChipContent = styled('span', {\n display: 'inline-flex',\n alignItems: 'center',\n px: '$1',\n flexGrow: 1,\n ...overflowElipsis,\n '& > *:not(:last-child)': {\n mr: '$1'\n }\n})\n\nconst toIconSize = { sm: 'sm', md: 'sm', lg: 'md' }\n\nexport const ChipIcon: typeof Icon = ({ ...props }) => {\n const rootContext = React.useContext(ChipRootContext)\n const { size } = rootContext\n const iconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toIconSize[s]),\n [size]\n )\n return <Icon {...props} size={iconSize} />\n}\n\nconst ChipContent = ({ children, ...rest }) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n return (\n <StyledChipContent {...rest}>\n {\n childrenArray.map((child, index) => {\n if (!isSingleChild && typeof child === 'string')\n return (\n <Box as=\"span\" css={overflowElipsis} key={child}>\n {child}\n </Box>\n )\n if (React.isValidElement(child) && child.type === Icon) {\n return <ChipIcon key={`icon-${index}`} {...child.props} />\n }\n return child\n }) as React.ReactElement[]\n }\n </StyledChipContent>\n )\n}\n\nexport const StyledRoot = styled(Flex, {\n px: '$2',\n border: '1px solid',\n borderRadius: '$0',\n alignItems: 'center',\n fontFamily: '$body',\n maxWidth: '100%',\n borderColor: '$primary800',\n color: '$primary900',\n bg: '$primary100',\n '&[data-disabled]': {\n opacity: '0.3',\n pointerEvents: 'none'\n },\n variants: {\n size: {\n sm: {\n height: '$2',\n ...getTextVariant({ size: 'sm' })\n },\n md: {\n height: '$3',\n ...getTextVariant({ size: 'sm' })\n },\n lg: {\n height: '$4',\n ...getTextVariant({ size: 'md' })\n }\n }\n }\n})\n\nexport type TChipRootContext = React.ComponentProps<typeof StyledRoot>\nexport type TChipRootProviderProps = TChipRootContext\n\nexport const ChipRootContext = React.createContext<TChipRootContext>({})\n\nexport const ChipRootProvider: React.FC<TChipRootProviderProps> = ({\n size,\n children\n}) => {\n const value = React.useMemo<TChipRootContext>(() => ({ size }), [size])\n return (\n <ChipRootContext.Provider value={value}>\n {children}\n </ChipRootContext.Provider>\n )\n}\n\nexport type TChipRootProps = TChipRootProviderProps\n\nconst ChipRoot: React.ForwardRefExoticComponent<TChipRootProps> =\n React.forwardRef(({ size = 'md', ...rest }, ref) => {\n return (\n <ChipRootProvider size={size}>\n <StyledRoot ref={ref} size={size} {...rest} />\n </ChipRootProvider>\n )\n })\n\ntype TChipType = typeof ChipRoot & {\n Content: typeof ChipContent\n Icon: typeof ChipIcon\n}\n\nexport const Chip = ChipRoot as TChipType\nChip.Content = ChipContent\nChip.Icon = ChipIcon\nChip.displayName = 'Chip'\n"],"names":["overflowElipsis","StyledChipContent","styled","toIconSize","ChipIcon","props","rootContext","React","ChipRootContext","size","iconSize","overrideStitchesVariantValue","s","Icon","ChipContent","children","rest","childrenArray","isSingleChild","child","index","Box","StyledRoot","Flex","getTextVariant","ChipRootProvider","value","ChipRoot","ref","Chip"],"mappings":"qWASA,MAAMA,EAAkB,CACtB,SAAU,SACV,aAAc,WACd,WAAY,QACd,EACaC,EAAoBC,EAAO,OAAQ,CAC9C,QAAS,cACT,WAAY,SACZ,GAAI,KACJ,SAAU,EACV,GAAGF,EACH,yBAA0B,CACxB,GAAI,IACN,CACF,CAAC,EAEKG,EAAa,CAAE,GAAI,KAAM,GAAI,KAAM,GAAI,IAAK,EAErCC,EAAwB,CAAC,IAAKC,CAAM,IAAM,CACrD,MAAMC,EAAcC,EAAM,WAAWC,CAAe,EAC9C,CAAE,KAAAC,CAAK,EAAIH,EACXI,EAAWH,EAAM,QACrB,IAAMI,EAA6BF,EAAOG,GAAMT,EAAWS,EAAE,EAC7D,CAACH,CAAI,CACP,EACA,OAAOF,EAAA,cAACM,EAAA,CAAM,GAAGR,EAAO,KAAMK,CAAU,CAAA,CAC1C,EAEMI,EAAc,CAAC,CAAE,SAAAC,KAAaC,CAAK,IAAM,CAC7C,MAAMC,EAAgBV,EAAM,SAAS,QAAQQ,CAAQ,EAC/CG,EAAgBD,EAAc,QAAU,EAC9C,OACEV,EAAA,cAACN,EAAmB,CAAA,GAAGe,GAEnBC,EAAc,IAAI,CAACE,EAAOC,IACpB,CAACF,GAAiB,OAAOC,GAAU,SAEnCZ,EAAA,cAACc,EAAA,CAAI,GAAG,OAAO,IAAKrB,EAAiB,IAAKmB,CAAAA,EACvCA,CACH,EAEAZ,EAAM,eAAeY,CAAK,GAAKA,EAAM,OAASN,EACzCN,EAAA,cAACH,GAAS,IAAK,QAAQgB,IAAU,GAAGD,EAAM,KAAO,CAAA,EAEnDA,CACR,CAEL,CAEJ,EAEaG,EAAapB,EAAOqB,EAAM,CACrC,GAAI,KACJ,OAAQ,YACR,aAAc,KACd,WAAY,SACZ,WAAY,QACZ,SAAU,OACV,YAAa,cACb,MAAO,cACP,GAAI,cACJ,mBAAoB,CAClB,QAAS,MACT,cAAe,MACjB,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,OAAQ,KACR,GAAGC,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,EACA,GAAI,CACF,OAAQ,KACR,GAAGA,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,EACA,GAAI,CACF,OAAQ,KACR,GAAGA,EAAe,CAAE,KAAM,IAAK,CAAC,CAClC,CACF,CACF,CACF,CAAC,EAKYhB,EAAkBD,EAAM,cAAgC,CAAE,CAAA,EAE1DkB,EAAqD,CAAC,CACjE,KAAAhB,EACA,SAAAM,CACF,IAAM,CACJ,MAAMW,EAAQnB,EAAM,QAA0B,KAAO,CAAE,KAAAE,CAAK,GAAI,CAACA,CAAI,CAAC,EACtE,OACEF,EAAA,cAACC,EAAgB,SAAhB,CAAyB,MAAOkB,GAC9BX,CACH,CAEJ,EAIMY,EACJpB,EAAM,WAAW,CAAC,CAAE,KAAAE,EAAO,QAASO,CAAK,EAAGY,IAExCrB,EAAA,cAACkB,GAAiB,KAAMhB,CAAAA,EACtBF,EAAA,cAACe,EAAA,CAAW,IAAKM,EAAK,KAAMnB,EAAO,GAAGO,CAAM,CAAA,CAC9C,CAEH,EAOUa,EAAOF,EACpBE,EAAK,QAAUf,EACfe,EAAK,KAAOzB,EACZyB,EAAK,YAAc"}
|