@atom-learning/components 5.13.0-beta.0 → 5.14.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 +207 -0
- package/dist/components/accordion/Accordion.d.ts +0 -2
- package/dist/components/accordion/AccordionContent.d.ts +0 -2
- package/dist/components/accordion/AccordionItem.d.ts +0 -2
- package/dist/components/accordion/AccordionTrigger.d.ts +0 -2
- package/dist/components/action-icon/ActionIcon.d.ts +1 -3
- package/dist/components/alert-dialog/AlertDialog.d.ts +0 -4
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +0 -2
- package/dist/components/avatar/Avatar.d.ts +0 -4
- package/dist/components/badge/Badge.d.ts +1 -13
- package/dist/components/badge/BadgeIcon.d.ts +0 -4
- package/dist/components/badge/BadgeText.d.ts +0 -4
- package/dist/components/banner/Banner.d.ts +2 -2
- package/dist/components/banner/BannerContainer.d.ts +0 -4
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +474 -108
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +0 -4
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +2 -6
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +474 -108
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +0 -2
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +0 -4
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +2 -6
- package/dist/components/box/Box.d.ts +0 -2
- package/dist/components/button/Button.d.ts +0 -2
- package/dist/components/calendar/Day.d.ts +0 -2
- package/dist/components/carousel/Carousel.d.ts +0 -6
- package/dist/components/carousel/CarouselPagination.d.ts +0 -2
- package/dist/components/carousel/CarouselSlide.d.ts +0 -2
- package/dist/components/carousel/CarouselSlider.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +0 -2
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +90 -96
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +344 -352
- package/dist/components/chip/Chip.d.ts +0 -14
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +0 -6
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +0 -6
- package/dist/components/combobox/Combobox.d.ts +0 -10
- package/dist/components/combobox/ComboboxInput.d.ts +0 -2
- package/dist/components/combobox/ComboboxList.d.ts +0 -2
- package/dist/components/combobox/ComboboxOption.d.ts +0 -2
- package/dist/components/combobox/ComboboxPopover.d.ts +0 -2
- package/dist/components/data-table/DataTable.d.ts +26 -47
- package/dist/components/data-table/DataTableHeaderCell.js +1 -1
- package/dist/components/data-table/DataTableHeaderCell.js.map +1 -1
- package/dist/components/data-table/DataTableLoading.d.ts +0 -2
- package/dist/components/data-table/DataTableRow.js +1 -1
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/DataTableTable.d.ts +2 -1
- package/dist/components/data-table/DataTableTable.js +1 -1
- package/dist/components/data-table/DataTableTable.js.map +1 -1
- package/dist/components/data-table/pagination/Pagination.d.ts +0 -2
- package/dist/components/dialog/Dialog.d.ts +2 -12
- package/dist/components/dialog/DialogBackground.d.ts +0 -4
- package/dist/components/dialog/DialogClose.d.ts +0 -2
- package/dist/components/dialog/DialogContent.d.ts +0 -2
- package/dist/components/dismissible/index.d.ts +2 -2
- package/dist/components/dismissible-group/index.d.ts +3 -3
- package/dist/components/divider/Divider.d.ts +0 -2
- package/dist/components/drawer/Drawer.d.ts +0 -8
- package/dist/components/drawer/DrawerContent.d.ts +0 -2
- package/dist/components/drawer/DrawerFooter.d.ts +0 -2
- package/dist/components/drawer/DrawerHeader.d.ts +0 -2
- package/dist/components/drawer/DrawerMain.d.ts +0 -2
- package/dist/components/drawer/DrawerOverlay.d.ts +0 -2
- package/dist/components/drawer/DrawerTrigger.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +0 -10
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +0 -2
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +0 -2
- package/dist/components/empty-state/EmptyState.d.ts +0 -14
- package/dist/components/empty-state/EmptyStateBody.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateImage.d.ts +0 -4
- package/dist/components/empty-state/EmptyStateTitle.d.ts +0 -2
- package/dist/components/flex/Flex.d.ts +0 -2
- package/dist/components/form/Form.d.ts +0 -2
- package/dist/components/grid/Grid.d.ts +0 -2
- package/dist/components/heading/Heading.d.ts +0 -2
- package/dist/components/icon/Icon.d.ts +0 -2
- package/dist/components/image/Image.d.ts +0 -2
- package/dist/components/inline-message/InlineMessage.d.ts +0 -4
- package/dist/components/input/Input.d.ts +0 -6
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +0 -4
- package/dist/components/keyboard-shortcut/index.d.ts +2 -8
- package/dist/components/label/Label.d.ts +0 -2
- package/dist/components/link/Link.d.ts +0 -2
- package/dist/components/list/List.d.ts +0 -4
- package/dist/components/markdown-content/MarkdownContent.d.ts +0 -4
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +0 -2
- package/dist/components/navigation/NavigationMenu.d.ts +0 -18
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +0 -2
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +0 -4
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +0 -2
- package/dist/components/navigation/NavigationMenuLink.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +162 -184
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +0 -4
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +0 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +0 -4
- package/dist/components/notification-badge/NotificationBadge.d.ts +6 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js.map +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +2 -6
- package/dist/components/pagination/PaginationNextButton.d.ts +2 -6
- package/dist/components/pagination/PaginationPreviousButton.d.ts +2 -6
- package/dist/components/popover/Popover.d.ts +0 -4
- package/dist/components/popover/PopoverContent.d.ts +0 -2
- package/dist/components/progress-bar/ProgressBar.d.ts +0 -2
- package/dist/components/radio-button/RadioButton.d.ts +0 -2
- package/dist/components/radio-button/RadioButtonGroup.d.ts +0 -2
- package/dist/components/radio-button-field/RadioButtonField.d.ts +0 -2
- package/dist/components/radio-card/RadioCard.d.ts +0 -2
- package/dist/components/section-message/SectionMessage.d.ts +0 -4
- package/dist/components/segmented-control/SegmentedControl.d.ts +9 -25
- package/dist/components/segmented-control/SegmentedControlContent.d.ts +0 -2
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +0 -4
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +0 -4
- package/dist/components/segmented-control/SegmentedControlItem.d.ts +0 -4
- package/dist/components/segmented-control/SegmentedControlRoot.d.ts +0 -10
- package/dist/components/select/Select.d.ts +0 -2
- package/dist/components/side-bar/SideBar.d.ts +0 -16
- package/dist/components/side-bar/SideBarComponents.d.ts +1 -15
- package/dist/components/slider/Slider.d.ts +0 -4
- package/dist/components/sortable/Handle.d.ts +2 -6
- package/dist/components/sortable/index.d.ts +3 -3
- package/dist/components/spacer/Spacer.d.ts +0 -2
- package/dist/components/stepper/StepperStepBullet.d.ts +0 -4
- package/dist/components/stepper/StepperStepContainer.d.ts +0 -4
- package/dist/components/stepper/StepperStepLabel.d.ts +1 -5
- package/dist/components/switch/Switch.d.ts +0 -2
- package/dist/components/table/Table.d.ts +1 -17
- package/dist/components/table/TableBody.d.ts +0 -2
- package/dist/components/table/TableCell.d.ts +0 -2
- package/dist/components/table/TableFooter.d.ts +0 -2
- package/dist/components/table/TableFooterCell.d.ts +0 -2
- package/dist/components/table/TableHeader.d.ts +1 -3
- package/dist/components/table/TableHeaderCell.d.ts +0 -2
- package/dist/components/table/TableRow.d.ts +0 -2
- package/dist/components/tabs/Tabs.d.ts +0 -8
- package/dist/components/tabs/TabsContent.d.ts +0 -2
- package/dist/components/tabs/TabsTrigger.d.ts +0 -2
- package/dist/components/tabs/TabsTriggerList.d.ts +0 -2
- package/dist/components/text/Text.d.ts +0 -2
- package/dist/components/textarea/Textarea.d.ts +0 -2
- package/dist/components/tile/Tile.d.ts +0 -2
- package/dist/components/tile/TileGroup.d.ts +0 -2
- package/dist/components/tile-interactive/TileInteractive.d.ts +0 -4
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +0 -6
- package/dist/components/toast/Toast.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +0 -4
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +0 -2
- package/dist/components/toggle-group/index.d.ts +2 -14
- package/dist/components/tooltip/Tooltip.d.ts +0 -4
- package/dist/components/tooltip/TooltipContent.d.ts +0 -2
- package/dist/components/top-bar/TopBar.d.ts +2 -12
- package/dist/components/top-bar/TopBarBrand.d.ts +0 -6
- package/dist/components/tree/Tree.d.ts +243 -267
- package/dist/components/tree/TreeCollapsible.d.ts +0 -2
- package/dist/components/tree/TreeCollapsibleContent.d.ts +0 -2
- package/dist/components/tree/TreeIcon.d.ts +0 -4
- package/dist/components/tree/TreeItemContent.d.ts +0 -2
- package/dist/components/tree/TreeListItem.d.ts +0 -2
- package/dist/components/video/Video.d.ts +0 -2
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +0 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/stitches.d.ts +0 -22
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +0 -2
- package/package.json +2 -2
|
@@ -23,8 +23,6 @@ declare const StyledRoot: import("@atom-learning/stitches-react/types/styled-com
|
|
|
23
23
|
textMinimal: string;
|
|
24
24
|
background: string;
|
|
25
25
|
backgroundAccent: string;
|
|
26
|
-
black: string;
|
|
27
|
-
white: string;
|
|
28
26
|
grey100: string;
|
|
29
27
|
grey200: string;
|
|
30
28
|
grey300: string;
|
|
@@ -399,8 +397,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
399
397
|
textMinimal: string;
|
|
400
398
|
background: string;
|
|
401
399
|
backgroundAccent: string;
|
|
402
|
-
black: string;
|
|
403
|
-
white: string;
|
|
404
400
|
grey100: string;
|
|
405
401
|
grey200: string;
|
|
406
402
|
grey300: string;
|
|
@@ -750,9 +746,9 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
750
746
|
as?: React.ComponentType | React.ElementType;
|
|
751
747
|
}) => React.JSX.Element;
|
|
752
748
|
Accordion: ({ defaultOpen, open, onOpenChange, disabled, ...rest }: import("@radix-ui/react-collapsible").CollapsibleProps & React.RefAttributes<HTMLDivElement> & {
|
|
753
|
-
color?: string | undefined
|
|
754
|
-
content?: string | undefined
|
|
755
|
-
translate?: "yes" | "no" | undefined
|
|
749
|
+
color?: string | undefined;
|
|
750
|
+
content?: string | undefined;
|
|
751
|
+
translate?: "yes" | "no" | undefined;
|
|
756
752
|
css?: import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
757
753
|
sm: string;
|
|
758
754
|
md: string;
|
|
@@ -769,8 +765,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
769
765
|
textMinimal: string;
|
|
770
766
|
background: string;
|
|
771
767
|
backgroundAccent: string;
|
|
772
|
-
black: string;
|
|
773
|
-
white: string;
|
|
774
768
|
grey100: string;
|
|
775
769
|
grey200: string;
|
|
776
770
|
grey300: string;
|
|
@@ -1116,106 +1110,106 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
1116
1110
|
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
1117
1111
|
};
|
|
1118
1112
|
}> | undefined;
|
|
1119
|
-
prefix?: string | undefined
|
|
1120
|
-
slot?: string | undefined
|
|
1113
|
+
prefix?: string | undefined;
|
|
1114
|
+
slot?: string | undefined;
|
|
1121
1115
|
style?: React.CSSProperties | undefined;
|
|
1122
|
-
title?: string | undefined
|
|
1116
|
+
title?: string | undefined;
|
|
1123
1117
|
ref?: React.Ref<HTMLLIElement> | undefined;
|
|
1124
1118
|
key?: React.Key | null | undefined;
|
|
1125
|
-
defaultChecked?: boolean | undefined
|
|
1119
|
+
defaultChecked?: boolean | undefined;
|
|
1126
1120
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1127
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
1128
|
-
suppressHydrationWarning?: boolean | undefined
|
|
1129
|
-
accessKey?: string | undefined
|
|
1130
|
-
autoFocus?: boolean | undefined
|
|
1131
|
-
className?: string | undefined
|
|
1132
|
-
contentEditable?:
|
|
1133
|
-
contextMenu?: string | undefined
|
|
1134
|
-
dir?: string | undefined
|
|
1121
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
1122
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
1123
|
+
accessKey?: string | undefined;
|
|
1124
|
+
autoFocus?: boolean | undefined;
|
|
1125
|
+
className?: string | undefined;
|
|
1126
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
1127
|
+
contextMenu?: string | undefined;
|
|
1128
|
+
dir?: string | undefined;
|
|
1135
1129
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1136
|
-
hidden?: boolean | undefined
|
|
1137
|
-
id?: string | undefined
|
|
1138
|
-
lang?: string | undefined
|
|
1139
|
-
nonce?: string | undefined
|
|
1140
|
-
placeholder?: string | undefined
|
|
1130
|
+
hidden?: boolean | undefined;
|
|
1131
|
+
id?: string | undefined;
|
|
1132
|
+
lang?: string | undefined;
|
|
1133
|
+
nonce?: string | undefined;
|
|
1134
|
+
placeholder?: string | undefined;
|
|
1141
1135
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1142
|
-
tabIndex?: number | undefined
|
|
1143
|
-
radioGroup?: string | undefined
|
|
1136
|
+
tabIndex?: number | undefined;
|
|
1137
|
+
radioGroup?: string | undefined;
|
|
1144
1138
|
role?: React.AriaRole | undefined;
|
|
1145
|
-
about?: string | undefined
|
|
1146
|
-
datatype?: string | undefined
|
|
1139
|
+
about?: string | undefined;
|
|
1140
|
+
datatype?: string | undefined;
|
|
1147
1141
|
inlist?: any;
|
|
1148
|
-
property?: string | undefined
|
|
1149
|
-
rel?: string | undefined
|
|
1150
|
-
resource?: string | undefined
|
|
1151
|
-
rev?: string | undefined
|
|
1152
|
-
typeof?: string | undefined
|
|
1153
|
-
vocab?: string | undefined
|
|
1154
|
-
autoCapitalize?: string | undefined
|
|
1155
|
-
autoCorrect?: string | undefined
|
|
1156
|
-
autoSave?: string | undefined
|
|
1157
|
-
itemProp?: string | undefined
|
|
1158
|
-
itemScope?: boolean | undefined
|
|
1159
|
-
itemType?: string | undefined
|
|
1160
|
-
itemID?: string | undefined
|
|
1161
|
-
itemRef?: string | undefined
|
|
1162
|
-
results?: number | undefined
|
|
1163
|
-
security?: string | undefined
|
|
1164
|
-
unselectable?: "on" | "off" | undefined
|
|
1165
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
1166
|
-
is?: string | undefined
|
|
1167
|
-
"aria-activedescendant"?: string | undefined
|
|
1142
|
+
property?: string | undefined;
|
|
1143
|
+
rel?: string | undefined;
|
|
1144
|
+
resource?: string | undefined;
|
|
1145
|
+
rev?: string | undefined;
|
|
1146
|
+
typeof?: string | undefined;
|
|
1147
|
+
vocab?: string | undefined;
|
|
1148
|
+
autoCapitalize?: string | undefined;
|
|
1149
|
+
autoCorrect?: string | undefined;
|
|
1150
|
+
autoSave?: string | undefined;
|
|
1151
|
+
itemProp?: string | undefined;
|
|
1152
|
+
itemScope?: boolean | undefined;
|
|
1153
|
+
itemType?: string | undefined;
|
|
1154
|
+
itemID?: string | undefined;
|
|
1155
|
+
itemRef?: string | undefined;
|
|
1156
|
+
results?: number | undefined;
|
|
1157
|
+
security?: string | undefined;
|
|
1158
|
+
unselectable?: "on" | "off" | undefined;
|
|
1159
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
1160
|
+
is?: string | undefined;
|
|
1161
|
+
"aria-activedescendant"?: string | undefined;
|
|
1168
1162
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1169
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
1163
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
1170
1164
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
1171
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
1172
|
-
"aria-colcount"?: number | undefined
|
|
1173
|
-
"aria-colindex"?: number | undefined
|
|
1174
|
-
"aria-colspan"?: number | undefined
|
|
1175
|
-
"aria-controls"?: string | undefined
|
|
1176
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
1177
|
-
"aria-describedby"?: string | undefined
|
|
1178
|
-
"aria-details"?: string | undefined
|
|
1165
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
1166
|
+
"aria-colcount"?: number | undefined;
|
|
1167
|
+
"aria-colindex"?: number | undefined;
|
|
1168
|
+
"aria-colspan"?: number | undefined;
|
|
1169
|
+
"aria-controls"?: string | undefined;
|
|
1170
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
1171
|
+
"aria-describedby"?: string | undefined;
|
|
1172
|
+
"aria-details"?: string | undefined;
|
|
1179
1173
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
1180
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
1181
|
-
"aria-errormessage"?: string | undefined
|
|
1174
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
1175
|
+
"aria-errormessage"?: string | undefined;
|
|
1182
1176
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
1183
|
-
"aria-flowto"?: string | undefined
|
|
1177
|
+
"aria-flowto"?: string | undefined;
|
|
1184
1178
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
1185
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
1179
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
1186
1180
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
1187
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
1188
|
-
"aria-keyshortcuts"?: string | undefined
|
|
1189
|
-
"aria-label"?: string | undefined
|
|
1190
|
-
"aria-labelledby"?: string | undefined
|
|
1191
|
-
"aria-level"?: number | undefined
|
|
1192
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
1181
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
1182
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
1183
|
+
"aria-label"?: string | undefined;
|
|
1184
|
+
"aria-labelledby"?: string | undefined;
|
|
1185
|
+
"aria-level"?: number | undefined;
|
|
1186
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
1193
1187
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
1194
1188
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
1195
1189
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
1196
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
1197
|
-
"aria-owns"?: string | undefined
|
|
1198
|
-
"aria-placeholder"?: string | undefined
|
|
1199
|
-
"aria-posinset"?: number | undefined
|
|
1200
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
1190
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
1191
|
+
"aria-owns"?: string | undefined;
|
|
1192
|
+
"aria-placeholder"?: string | undefined;
|
|
1193
|
+
"aria-posinset"?: number | undefined;
|
|
1194
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
1201
1195
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
1202
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
1196
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
1203
1197
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
1204
|
-
"aria-roledescription"?: string | undefined
|
|
1205
|
-
"aria-rowcount"?: number | undefined
|
|
1206
|
-
"aria-rowindex"?: number | undefined
|
|
1207
|
-
"aria-rowspan"?: number | undefined
|
|
1198
|
+
"aria-roledescription"?: string | undefined;
|
|
1199
|
+
"aria-rowcount"?: number | undefined;
|
|
1200
|
+
"aria-rowindex"?: number | undefined;
|
|
1201
|
+
"aria-rowspan"?: number | undefined;
|
|
1208
1202
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
1209
|
-
"aria-setsize"?: number | undefined
|
|
1210
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
1211
|
-
"aria-valuemax"?: number | undefined
|
|
1212
|
-
"aria-valuemin"?: number | undefined
|
|
1213
|
-
"aria-valuenow"?: number | undefined
|
|
1214
|
-
"aria-valuetext"?: string | undefined
|
|
1215
|
-
children?: React.ReactNode;
|
|
1203
|
+
"aria-setsize"?: number | undefined;
|
|
1204
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
1205
|
+
"aria-valuemax"?: number | undefined;
|
|
1206
|
+
"aria-valuemin"?: number | undefined;
|
|
1207
|
+
"aria-valuenow"?: number | undefined;
|
|
1208
|
+
"aria-valuetext"?: string | undefined;
|
|
1209
|
+
children?: React.ReactNode | undefined;
|
|
1216
1210
|
dangerouslySetInnerHTML?: {
|
|
1217
1211
|
__html: string | TrustedHTML;
|
|
1218
|
-
} | undefined
|
|
1212
|
+
} | undefined;
|
|
1219
1213
|
onCopy?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
1220
1214
|
onCopyCapture?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
1221
1215
|
onCut?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
@@ -1403,8 +1397,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
1403
1397
|
textMinimal: string;
|
|
1404
1398
|
background: string;
|
|
1405
1399
|
backgroundAccent: string;
|
|
1406
|
-
black: string;
|
|
1407
|
-
white: string;
|
|
1408
1400
|
grey100: string;
|
|
1409
1401
|
grey200: string;
|
|
1410
1402
|
grey300: string;
|
|
@@ -1778,8 +1770,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
1778
1770
|
textMinimal: string;
|
|
1779
1771
|
background: string;
|
|
1780
1772
|
backgroundAccent: string;
|
|
1781
|
-
black: string;
|
|
1782
|
-
white: string;
|
|
1783
1773
|
grey100: string;
|
|
1784
1774
|
grey200: string;
|
|
1785
1775
|
grey300: string;
|
|
@@ -2127,9 +2117,9 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
2127
2117
|
}> | undefined;
|
|
2128
2118
|
}) => React.JSX.Element;
|
|
2129
2119
|
Item: (props: {
|
|
2130
|
-
color?: string | undefined
|
|
2131
|
-
content?: string | undefined
|
|
2132
|
-
translate?: "yes" | "no" | undefined
|
|
2120
|
+
color?: string | undefined;
|
|
2121
|
+
content?: string | undefined;
|
|
2122
|
+
translate?: "yes" | "no" | undefined;
|
|
2133
2123
|
css?: import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
2134
2124
|
sm: string;
|
|
2135
2125
|
md: string;
|
|
@@ -2146,8 +2136,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
2146
2136
|
textMinimal: string;
|
|
2147
2137
|
background: string;
|
|
2148
2138
|
backgroundAccent: string;
|
|
2149
|
-
black: string;
|
|
2150
|
-
white: string;
|
|
2151
2139
|
grey100: string;
|
|
2152
2140
|
grey200: string;
|
|
2153
2141
|
grey300: string;
|
|
@@ -2493,106 +2481,106 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
2493
2481
|
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
2494
2482
|
};
|
|
2495
2483
|
}> | undefined;
|
|
2496
|
-
prefix?: string | undefined
|
|
2497
|
-
slot?: string | undefined
|
|
2484
|
+
prefix?: string | undefined;
|
|
2485
|
+
slot?: string | undefined;
|
|
2498
2486
|
style?: React.CSSProperties | undefined;
|
|
2499
|
-
title?: string | undefined
|
|
2487
|
+
title?: string | undefined;
|
|
2500
2488
|
ref?: React.Ref<HTMLLIElement> | undefined;
|
|
2501
2489
|
key?: React.Key | null | undefined;
|
|
2502
|
-
defaultChecked?: boolean | undefined
|
|
2490
|
+
defaultChecked?: boolean | undefined;
|
|
2503
2491
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
2504
|
-
suppressContentEditableWarning?: boolean | undefined
|
|
2505
|
-
suppressHydrationWarning?: boolean | undefined
|
|
2506
|
-
accessKey?: string | undefined
|
|
2507
|
-
autoFocus?: boolean | undefined
|
|
2508
|
-
className?: string | undefined
|
|
2509
|
-
contentEditable?:
|
|
2510
|
-
contextMenu?: string | undefined
|
|
2511
|
-
dir?: string | undefined
|
|
2492
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
2493
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
2494
|
+
accessKey?: string | undefined;
|
|
2495
|
+
autoFocus?: boolean | undefined;
|
|
2496
|
+
className?: string | undefined;
|
|
2497
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
2498
|
+
contextMenu?: string | undefined;
|
|
2499
|
+
dir?: string | undefined;
|
|
2512
2500
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
2513
|
-
hidden?: boolean | undefined
|
|
2514
|
-
id?: string | undefined
|
|
2515
|
-
lang?: string | undefined
|
|
2516
|
-
nonce?: string | undefined
|
|
2517
|
-
placeholder?: string | undefined
|
|
2501
|
+
hidden?: boolean | undefined;
|
|
2502
|
+
id?: string | undefined;
|
|
2503
|
+
lang?: string | undefined;
|
|
2504
|
+
nonce?: string | undefined;
|
|
2505
|
+
placeholder?: string | undefined;
|
|
2518
2506
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
2519
|
-
tabIndex?: number | undefined
|
|
2520
|
-
radioGroup?: string | undefined
|
|
2507
|
+
tabIndex?: number | undefined;
|
|
2508
|
+
radioGroup?: string | undefined;
|
|
2521
2509
|
role?: React.AriaRole | undefined;
|
|
2522
|
-
about?: string | undefined
|
|
2523
|
-
datatype?: string | undefined
|
|
2510
|
+
about?: string | undefined;
|
|
2511
|
+
datatype?: string | undefined;
|
|
2524
2512
|
inlist?: any;
|
|
2525
|
-
property?: string | undefined
|
|
2526
|
-
rel?: string | undefined
|
|
2527
|
-
resource?: string | undefined
|
|
2528
|
-
rev?: string | undefined
|
|
2529
|
-
typeof?: string | undefined
|
|
2530
|
-
vocab?: string | undefined
|
|
2531
|
-
autoCapitalize?: string | undefined
|
|
2532
|
-
autoCorrect?: string | undefined
|
|
2533
|
-
autoSave?: string | undefined
|
|
2534
|
-
itemProp?: string | undefined
|
|
2535
|
-
itemScope?: boolean | undefined
|
|
2536
|
-
itemType?: string | undefined
|
|
2537
|
-
itemID?: string | undefined
|
|
2538
|
-
itemRef?: string | undefined
|
|
2539
|
-
results?: number | undefined
|
|
2540
|
-
security?: string | undefined
|
|
2541
|
-
unselectable?: "on" | "off" | undefined
|
|
2542
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined
|
|
2543
|
-
is?: string | undefined
|
|
2544
|
-
"aria-activedescendant"?: string | undefined
|
|
2513
|
+
property?: string | undefined;
|
|
2514
|
+
rel?: string | undefined;
|
|
2515
|
+
resource?: string | undefined;
|
|
2516
|
+
rev?: string | undefined;
|
|
2517
|
+
typeof?: string | undefined;
|
|
2518
|
+
vocab?: string | undefined;
|
|
2519
|
+
autoCapitalize?: string | undefined;
|
|
2520
|
+
autoCorrect?: string | undefined;
|
|
2521
|
+
autoSave?: string | undefined;
|
|
2522
|
+
itemProp?: string | undefined;
|
|
2523
|
+
itemScope?: boolean | undefined;
|
|
2524
|
+
itemType?: string | undefined;
|
|
2525
|
+
itemID?: string | undefined;
|
|
2526
|
+
itemRef?: string | undefined;
|
|
2527
|
+
results?: number | undefined;
|
|
2528
|
+
security?: string | undefined;
|
|
2529
|
+
unselectable?: "on" | "off" | undefined;
|
|
2530
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
2531
|
+
is?: string | undefined;
|
|
2532
|
+
"aria-activedescendant"?: string | undefined;
|
|
2545
2533
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
2546
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined
|
|
2534
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
2547
2535
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
2548
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined
|
|
2549
|
-
"aria-colcount"?: number | undefined
|
|
2550
|
-
"aria-colindex"?: number | undefined
|
|
2551
|
-
"aria-colspan"?: number | undefined
|
|
2552
|
-
"aria-controls"?: string | undefined
|
|
2553
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined
|
|
2554
|
-
"aria-describedby"?: string | undefined
|
|
2555
|
-
"aria-details"?: string | undefined
|
|
2536
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
2537
|
+
"aria-colcount"?: number | undefined;
|
|
2538
|
+
"aria-colindex"?: number | undefined;
|
|
2539
|
+
"aria-colspan"?: number | undefined;
|
|
2540
|
+
"aria-controls"?: string | undefined;
|
|
2541
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
2542
|
+
"aria-describedby"?: string | undefined;
|
|
2543
|
+
"aria-details"?: string | undefined;
|
|
2556
2544
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
2557
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined
|
|
2558
|
-
"aria-errormessage"?: string | undefined
|
|
2545
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
2546
|
+
"aria-errormessage"?: string | undefined;
|
|
2559
2547
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
2560
|
-
"aria-flowto"?: string | undefined
|
|
2548
|
+
"aria-flowto"?: string | undefined;
|
|
2561
2549
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
2562
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined
|
|
2550
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
2563
2551
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
2564
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined
|
|
2565
|
-
"aria-keyshortcuts"?: string | undefined
|
|
2566
|
-
"aria-label"?: string | undefined
|
|
2567
|
-
"aria-labelledby"?: string | undefined
|
|
2568
|
-
"aria-level"?: number | undefined
|
|
2569
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined
|
|
2552
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
2553
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
2554
|
+
"aria-label"?: string | undefined;
|
|
2555
|
+
"aria-labelledby"?: string | undefined;
|
|
2556
|
+
"aria-level"?: number | undefined;
|
|
2557
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
2570
2558
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
2571
2559
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
2572
2560
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
2573
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined
|
|
2574
|
-
"aria-owns"?: string | undefined
|
|
2575
|
-
"aria-placeholder"?: string | undefined
|
|
2576
|
-
"aria-posinset"?: number | undefined
|
|
2577
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined
|
|
2561
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
2562
|
+
"aria-owns"?: string | undefined;
|
|
2563
|
+
"aria-placeholder"?: string | undefined;
|
|
2564
|
+
"aria-posinset"?: number | undefined;
|
|
2565
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
2578
2566
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
2579
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined
|
|
2567
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
2580
2568
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
2581
|
-
"aria-roledescription"?: string | undefined
|
|
2582
|
-
"aria-rowcount"?: number | undefined
|
|
2583
|
-
"aria-rowindex"?: number | undefined
|
|
2584
|
-
"aria-rowspan"?: number | undefined
|
|
2569
|
+
"aria-roledescription"?: string | undefined;
|
|
2570
|
+
"aria-rowcount"?: number | undefined;
|
|
2571
|
+
"aria-rowindex"?: number | undefined;
|
|
2572
|
+
"aria-rowspan"?: number | undefined;
|
|
2585
2573
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
2586
|
-
"aria-setsize"?: number | undefined
|
|
2587
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined
|
|
2588
|
-
"aria-valuemax"?: number | undefined
|
|
2589
|
-
"aria-valuemin"?: number | undefined
|
|
2590
|
-
"aria-valuenow"?: number | undefined
|
|
2591
|
-
"aria-valuetext"?: string | undefined
|
|
2592
|
-
children?: React.ReactNode;
|
|
2574
|
+
"aria-setsize"?: number | undefined;
|
|
2575
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
2576
|
+
"aria-valuemax"?: number | undefined;
|
|
2577
|
+
"aria-valuemin"?: number | undefined;
|
|
2578
|
+
"aria-valuenow"?: number | undefined;
|
|
2579
|
+
"aria-valuetext"?: string | undefined;
|
|
2580
|
+
children?: React.ReactNode | undefined;
|
|
2593
2581
|
dangerouslySetInnerHTML?: {
|
|
2594
2582
|
__html: string | TrustedHTML;
|
|
2595
|
-
} | undefined
|
|
2583
|
+
} | undefined;
|
|
2596
2584
|
onCopy?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
2597
2585
|
onCopyCapture?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
2598
2586
|
onCut?: React.ClipboardEventHandler<HTMLLIElement> | undefined;
|
|
@@ -2788,8 +2776,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
2788
2776
|
textMinimal: string;
|
|
2789
2777
|
background: string;
|
|
2790
2778
|
backgroundAccent: string;
|
|
2791
|
-
black: string;
|
|
2792
|
-
white: string;
|
|
2793
2779
|
grey100: string;
|
|
2794
2780
|
grey200: string;
|
|
2795
2781
|
grey300: string;
|
|
@@ -3165,8 +3151,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
3165
3151
|
textMinimal: string;
|
|
3166
3152
|
background: string;
|
|
3167
3153
|
backgroundAccent: string;
|
|
3168
|
-
black: string;
|
|
3169
|
-
white: string;
|
|
3170
3154
|
grey100: string;
|
|
3171
3155
|
grey200: string;
|
|
3172
3156
|
grey300: string;
|
|
@@ -3539,8 +3523,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
3539
3523
|
textMinimal: string;
|
|
3540
3524
|
background: string;
|
|
3541
3525
|
backgroundAccent: string;
|
|
3542
|
-
black: string;
|
|
3543
|
-
white: string;
|
|
3544
3526
|
grey100: string;
|
|
3545
3527
|
grey200: string;
|
|
3546
3528
|
grey300: string;
|
|
@@ -3918,8 +3900,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
3918
3900
|
textMinimal: string;
|
|
3919
3901
|
background: string;
|
|
3920
3902
|
backgroundAccent: string;
|
|
3921
|
-
black: string;
|
|
3922
|
-
white: string;
|
|
3923
3903
|
grey100: string;
|
|
3924
3904
|
grey200: string;
|
|
3925
3905
|
grey300: string;
|
|
@@ -4294,8 +4274,6 @@ export declare const NavigationMenuVertical: (({ children, ...rest }: TNavigatio
|
|
|
4294
4274
|
textMinimal: string;
|
|
4295
4275
|
background: string;
|
|
4296
4276
|
backgroundAccent: string;
|
|
4297
|
-
black: string;
|
|
4298
|
-
white: string;
|
|
4299
4277
|
grey100: string;
|
|
4300
4278
|
grey200: string;
|
|
4301
4279
|
grey300: string;
|
|
@@ -28,8 +28,6 @@ declare const StyledNavigationMenuVerticalIcon: import("@atom-learning/stitches-
|
|
|
28
28
|
textMinimal: string;
|
|
29
29
|
background: string;
|
|
30
30
|
backgroundAccent: string;
|
|
31
|
-
black: string;
|
|
32
|
-
white: string;
|
|
33
31
|
grey100: string;
|
|
34
32
|
grey200: string;
|
|
35
33
|
grey300: string;
|
|
@@ -402,8 +400,6 @@ declare const StyledNavigationMenuVerticalIcon: import("@atom-learning/stitches-
|
|
|
402
400
|
textMinimal: string;
|
|
403
401
|
background: string;
|
|
404
402
|
backgroundAccent: string;
|
|
405
|
-
black: string;
|
|
406
|
-
white: string;
|
|
407
403
|
grey100: string;
|
|
408
404
|
grey200: string;
|
|
409
405
|
grey300: string;
|
|
@@ -31,8 +31,6 @@ declare const StyledNavigationMenuVerticalText: import("@atom-learning/stitches-
|
|
|
31
31
|
textMinimal: string;
|
|
32
32
|
background: string;
|
|
33
33
|
backgroundAccent: string;
|
|
34
|
-
black: string;
|
|
35
|
-
white: string;
|
|
36
34
|
grey100: string;
|
|
37
35
|
grey200: string;
|
|
38
36
|
grey300: string;
|
|
@@ -406,8 +404,6 @@ declare const StyledNavigationMenuVerticalText: import("@atom-learning/stitches-
|
|
|
406
404
|
textMinimal: string;
|
|
407
405
|
background: string;
|
|
408
406
|
backgroundAccent: string;
|
|
409
|
-
black: string;
|
|
410
|
-
white: string;
|
|
411
407
|
grey100: string;
|
|
412
408
|
grey200: string;
|
|
413
409
|
grey300: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Badge } from '../badge';
|
|
3
|
+
type BadgeProps = React.ComponentProps<typeof Badge>;
|
|
2
4
|
type NotificationBadgeProps = {
|
|
3
5
|
value: number | string;
|
|
6
|
+
emphasis?: BadgeProps['emphasis'];
|
|
7
|
+
theme?: BadgeProps['theme'];
|
|
8
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4
9
|
};
|
|
5
|
-
export declare const NotificationBadge: ({ value, children }: React.PropsWithChildren<NotificationBadgeProps>) => React.JSX.Element;
|
|
10
|
+
export declare const NotificationBadge: ({ value, emphasis, theme, icon, children }: React.PropsWithChildren<NotificationBadgeProps>) => React.JSX.Element;
|
|
6
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{styled as
|
|
1
|
+
import e from"react";import{styled as a}from"../../stitches.js";import{Badge as m}from"../badge/Badge.js";import{Box as s}from"../box/Box.js";import{Icon as l}from"../icon/Icon.js";const c=a(s,{position:"relative"}),d={fontFamily:"$body",fontSize:"$sm",flexDirection:"row",justifyContent:"center",position:"absolute",top:"0",right:"0",transform:"translate(calc($sizes$2 / 2), -50%)",borderRadius:"$round",height:"$2",minWidth:"$2",textAlign:"center"},f=({value:t,emphasis:i="bold",theme:r="primary",icon:o,children:n})=>e.createElement(c,null,!!t&&e.createElement(m,{role:"status",emphasis:i,theme:r,css:d},o&&e.createElement(l,{is:o,role:"img","aria-hidden":"false"}),t),n);export{f as NotificationBadge};
|
|
2
2
|
//# sourceMappingURL=NotificationBadge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationBadge.js","sources":["../../../src/components/notification-badge/NotificationBadge.tsx"],"sourcesContent":["import React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../box'\nimport { Flex } from '../flex'\n\nconst StyledWrapper = styled(Box, {\n position: 'relative'\n})\n\nconst
|
|
1
|
+
{"version":3,"file":"NotificationBadge.js","sources":["../../../src/components/notification-badge/NotificationBadge.tsx"],"sourcesContent":["import React from 'react'\n\nimport { CSS, styled } from '~/stitches'\n\nimport { Badge } from '../badge'\nimport { Box } from '../box'\nimport { Flex } from '../flex'\nimport { Icon } from '../icon'\n\nconst StyledWrapper = styled(Box, {\n position: 'relative'\n})\n\nconst badgeCss: CSS = {\n fontFamily: '$body',\n fontSize: '$sm',\n flexDirection: 'row',\n justifyContent: 'center',\n position: 'absolute',\n top: '0',\n right: '0',\n transform: 'translate(calc($sizes$2 / 2), -50%)',\n borderRadius: '$round',\n height: '$2',\n minWidth: '$2',\n textAlign: 'center'\n}\n\ntype BadgeProps = React.ComponentProps<typeof Badge>\n\ntype NotificationBadgeProps = {\n value: number | string\n emphasis?: BadgeProps['emphasis']\n theme?: BadgeProps['theme']\n icon?: React.FC<React.SVGProps<SVGSVGElement>>\n}\n\nexport const NotificationBadge = ({\n value,\n emphasis = 'bold',\n theme = 'primary',\n icon,\n children\n}: React.PropsWithChildren<NotificationBadgeProps>) => (\n <StyledWrapper>\n {!!value && (\n <Badge role=\"status\" emphasis={emphasis} theme={theme} css={badgeCss}>\n {icon && <Icon is={icon} role=\"img\" aria-hidden=\"false\" />}\n {value}\n </Badge>\n )}\n {children}\n </StyledWrapper>\n)\n"],"names":["StyledWrapper","styled","Box","badgeCss","NotificationBadge","value","emphasis","theme","icon","children","React","Badge","Icon"],"mappings":"qLASA,MAAMA,EAAgBC,EAAOC,EAAK,CAChC,SAAU,UACZ,CAAC,EAEKC,EAAgB,CACpB,WAAY,QACZ,SAAU,MACV,cAAe,MACf,eAAgB,SAChB,SAAU,WACV,IAAK,IACL,MAAO,IACP,UAAW,sCACX,aAAc,SACd,OAAQ,KACR,SAAU,KACV,UAAW,QACb,EAWaC,EAAoB,CAAC,CAChC,MAAAC,EACA,SAAAC,EAAW,OACX,MAAAC,EAAQ,UACR,KAAAC,EACA,SAAAC,CACF,IACEC,EAAA,cAACV,EAAA,KACE,CAAC,CAACK,GACDK,EAAA,cAACC,EAAA,CAAM,KAAK,SAAS,SAAUL,EAAU,MAAOC,EAAO,IAAKJ,CAAAA,EACzDK,GAAQE,EAAA,cAACE,EAAA,CAAK,GAAIJ,EAAM,KAAK,MAAM,cAAY,OAAQ,CAAA,EACvDH,CACH,EAEDI,CACH"}
|