@atom-learning/components 8.0.0 → 8.0.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/dist/components/accordion/AccordionContent.d.ts +1 -3
- package/dist/components/accordion/AccordionItem.d.ts +1 -3
- package/dist/components/accordion/AccordionTrigger.d.ts +1 -3
- package/dist/components/action-icon/ActionIcon.d.ts +1 -3
- package/dist/components/alert-dialog/AlertDialog.d.ts +1 -3
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -3
- package/dist/components/avatar/Avatar.d.ts +2 -6
- package/dist/components/badge/Badge.d.ts +3 -9
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/badge/BadgeText.d.ts +2 -6
- package/dist/components/banner/BannerContainer.d.ts +1 -3
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +73 -61
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +1 -3
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +2 -6
- package/dist/components/banner/banner-regular/BannerRegularText.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +74 -64
- package/dist/components/banner/banner-slim/BannerSlimActions.d.ts +1 -3
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +1 -3
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +1 -3
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +2 -6
- package/dist/components/banner/banner-slim/BannerSlimImage.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimText.js.map +1 -1
- package/dist/components/box/Box.d.ts +1 -3
- package/dist/components/button/Button.d.ts +1 -3
- package/dist/components/calendar/Calendar.d.ts +2 -2
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/Day.d.ts +1 -3
- package/dist/components/carousel/Carousel.d.ts +2 -6
- package/dist/components/carousel/CarouselArrows.d.ts +1 -3
- package/dist/components/checkbox/Checkbox.d.ts +1 -3
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +73 -61
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTree.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeItemContent.d.ts +1 -3
- package/dist/components/checkbox-tree/CheckboxTreeItemContent.js.map +1 -1
- package/dist/components/chip/Chip.d.ts +4 -12
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/ChipGroup.d.ts +1 -3
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +2 -6
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +2 -6
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +2 -6
- package/dist/components/combobox/Combobox.d.ts +4 -12
- package/dist/components/combobox/ComboboxInput.d.ts +2 -6
- package/dist/components/combobox/ComboboxList.d.ts +1 -3
- package/dist/components/combobox/ComboboxOption.d.ts +1 -3
- package/dist/components/combobox/ComboboxPopover.d.ts +1 -3
- package/dist/components/data-table/DataTable.d.ts +20 -40
- package/dist/components/data-table/DataTableBulkActions.d.ts +4 -4
- package/dist/components/data-table/DataTableBulkActions.js.map +1 -1
- package/dist/components/data-table/DataTableBulkActionsFloating.d.ts +1 -3
- package/dist/components/data-table/DataTableError.d.ts +2 -2
- package/dist/components/data-table/DataTableError.js.map +1 -1
- package/dist/components/data-table/DataTableHead.d.ts +1 -1
- package/dist/components/data-table/DataTableHead.js.map +1 -1
- package/dist/components/data-table/DataTableLoading.d.ts +1 -3
- package/dist/components/data-table/DataTableRowSelectionCheckbox.d.ts +1 -1
- package/dist/components/data-table/DataTableRowSelectionCheckbox.js.map +1 -1
- package/dist/components/data-table/pagination/Pagination.d.ts +1 -3
- package/dist/components/dialog/Dialog.d.ts +6 -18
- package/dist/components/dialog/DialogActionBar.d.ts +1 -3
- package/dist/components/dialog/DialogBackground.d.ts +1 -3
- package/dist/components/dialog/DialogContent.d.ts +1 -3
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogFooter.d.ts +1 -3
- package/dist/components/dialog/DialogNavigationBar.d.ts +1 -3
- package/dist/components/dialog/DialogScrollableContent.d.ts +1 -3
- package/dist/components/divider/Divider.d.ts +2 -6
- package/dist/components/drawer/Drawer.d.ts +3 -9
- package/dist/components/drawer/DrawerContent.d.ts +1 -3
- package/dist/components/drawer/DrawerFooter.d.ts +1 -3
- package/dist/components/drawer/DrawerHeader.d.ts +1 -3
- package/dist/components/drawer/DrawerMain.d.ts +1 -3
- package/dist/components/drawer/DrawerOverlay.d.ts +1 -3
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +4 -12
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -3
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -3
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -3
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -3
- package/dist/components/empty-state/EmptyState.d.ts +6 -18
- package/dist/components/empty-state/EmptyStateBody.d.ts +2 -6
- package/dist/components/empty-state/EmptyStateImage.d.ts +2 -6
- package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -3
- package/dist/components/flex/Flex.d.ts +1 -3
- package/dist/components/grid/Grid.d.ts +1 -3
- package/dist/components/heading/Heading.d.ts +1 -3
- package/dist/components/icon/Icon.d.ts +1 -3
- package/dist/components/image/Image.d.ts +1 -3
- package/dist/components/inline-message/InlineMessage.d.ts +1 -3
- package/dist/components/input/Input.d.ts +3 -9
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +2 -6
- package/dist/components/keyboard-shortcut/index.d.ts +2 -6
- package/dist/components/label/Label.d.ts +1 -3
- package/dist/components/link/Link.d.ts +1 -3
- package/dist/components/list/List.d.ts +2 -6
- package/dist/components/markdown-content/MarkdownContent.d.ts +1 -3
- package/dist/components/markdown-content/MarkdownContent.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +2 -4
- package/dist/components/markdown-content/components/MarkdownEmphasis.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownList.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownList.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js.map +1 -1
- package/dist/components/navigation/NavigationMenu.d.ts +9 -27
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +1 -3
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +4 -12
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +1 -3
- package/dist/components/navigation/NavigationMenuLink.d.ts +2 -6
- package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +125 -113
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +1 -3
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +3 -7
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +1 -3
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +1 -3
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +2 -6
- 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 +1 -3
- package/dist/components/popover/PopoverContent.d.ts +1 -3
- package/dist/components/progress-bar/ProgressBar.d.ts +1 -3
- package/dist/components/radio-button/RadioButton.d.ts +1 -3
- package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -3
- package/dist/components/radio-button-field/RadioButtonField.d.ts +2 -4
- package/dist/components/radio-card/RadioCard.d.ts +1 -3
- package/dist/components/section-message/SectionMessage.d.ts +3 -7
- package/dist/components/section-message/SectionMessageLayout.d.ts +1 -3
- package/dist/components/segmented-control/SegmentedControl.d.ts +7 -21
- package/dist/components/segmented-control/SegmentedControlContent.d.ts +1 -3
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +2 -6
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +2 -6
- package/dist/components/segmented-control/SegmentedControlItem.d.ts +1 -3
- package/dist/components/segmented-control/SegmentedControlRoot.d.ts +1 -3
- package/dist/components/select/Select.d.ts +1 -3
- package/dist/components/select-menu/SelectMenu.d.ts +4 -12
- package/dist/components/select-menu/SelectMenuContent.d.ts +1 -3
- package/dist/components/select-menu/SelectMenuItem.d.ts +1 -3
- package/dist/components/select-menu/SelectMenuSeparator.d.ts +1 -3
- package/dist/components/side-bar/SideBar.d.ts +8 -24
- package/dist/components/side-bar/SideBarComponents.d.ts +6 -18
- package/dist/components/skeleton-loader/Skeleton.d.ts +1 -3
- package/dist/components/slider/Slider.d.ts +2 -6
- package/dist/components/sortable/Handle.d.ts +2 -6
- package/dist/components/spacer/Spacer.d.ts +1 -3
- package/dist/components/stepper/StepperStepBullet.d.ts +2 -4
- package/dist/components/stepper/StepperStepContainer.d.ts +3 -5
- package/dist/components/stepper/StepperStepLabel.d.ts +3 -7
- package/dist/components/switch/Switch.d.ts +1 -3
- package/dist/components/table/Table.d.ts +8 -24
- package/dist/components/table/TableBody.d.ts +1 -3
- package/dist/components/table/TableCell.d.ts +1 -3
- package/dist/components/table/TableFooter.d.ts +1 -3
- package/dist/components/table/TableFooterCell.d.ts +1 -3
- package/dist/components/table/TableHeader.d.ts +1 -3
- package/dist/components/table/TableHeaderCell.d.ts +1 -3
- package/dist/components/table/TableRow.d.ts +1 -3
- package/dist/components/table/useStickyColumnsCss.d.ts +1 -1
- package/dist/components/table/useStickyColumnsCss.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +4 -12
- package/dist/components/tabs/TabsContent.d.ts +1 -3
- package/dist/components/tabs/TabsTrigger.d.ts +1 -3
- package/dist/components/tabs/TabsTriggerList.d.ts +1 -3
- package/dist/components/text/Text.d.ts +1 -3
- package/dist/components/textarea/Textarea.d.ts +2 -6
- package/dist/components/tile/Tile.d.ts +1 -3
- package/dist/components/tile-interactive/TileInteractive.d.ts +2 -6
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +3 -9
- package/dist/components/toast/Toast.d.ts +2 -4
- package/dist/components/toast/ToastIcon.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -6
- package/dist/components/toggle-group/ToggleGroupButton.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +1 -3
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +6 -14
- package/dist/components/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/components/toggle-group/index.d.ts +5 -13
- package/dist/components/tooltip/Tooltip.d.ts +1 -3
- package/dist/components/tooltip/TooltipContent.d.ts +1 -3
- package/dist/components/top-bar/TopBar.d.ts +6 -18
- package/dist/components/top-bar/TopBarBrand.d.ts +3 -9
- package/dist/components/tree/Tree.d.ts +7 -21
- package/dist/components/tree/TreeCollapsible.d.ts +1 -3
- package/dist/components/tree/TreeItem.js.map +1 -1
- package/dist/components/tree/TreeItemContent.d.ts +1 -3
- package/dist/components/tree/TreeItemContent.js.map +1 -1
- package/dist/components/tree/TreeList.d.ts +1 -3
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/styled.js.map +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.js.map +1 -1
- package/dist/utilities/hooks/useIsMountedRef.d.ts +1 -1
- package/package.json +4 -3
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const StyledTable: React.ForwardRefExoticComponent<Omit<
|
|
3
|
-
ref?: ((instance: HTMLTableElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableElement> | null | undefined;
|
|
4
|
-
}, "size" | "corners"> & {
|
|
2
|
+
declare const StyledTable: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "size" | "corners"> & {
|
|
5
3
|
size?: "md" | "lg" | "xl" | undefined;
|
|
6
4
|
corners?: "round" | "square" | undefined;
|
|
7
5
|
} & {
|
|
@@ -15,34 +13,24 @@ type TableProps = React.ComponentProps<typeof StyledTable> & {
|
|
|
15
13
|
};
|
|
16
14
|
export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React.RefAttributes<HTMLTableElement>> & {
|
|
17
15
|
Body: {
|
|
18
|
-
({ striped, ...rest }: Omit<
|
|
19
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
20
|
-
}, "striped"> & {
|
|
16
|
+
({ striped, ...rest }: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "striped"> & {
|
|
21
17
|
striped?: boolean | undefined;
|
|
22
18
|
} & {
|
|
23
19
|
as?: React.ElementType;
|
|
24
20
|
}): React.JSX.Element;
|
|
25
21
|
displayName: string;
|
|
26
22
|
};
|
|
27
|
-
Cell: React.ForwardRefExoticComponent<Omit<
|
|
28
|
-
ref?: ((instance: HTMLTableDataCellElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
29
|
-
}, never> & {
|
|
23
|
+
Cell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never> & {
|
|
30
24
|
as?: React.ElementType;
|
|
31
25
|
}>;
|
|
32
|
-
Footer: React.ForwardRefExoticComponent<Omit<
|
|
33
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
34
|
-
}, never> & {
|
|
26
|
+
Footer: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never> & {
|
|
35
27
|
as?: React.ElementType;
|
|
36
28
|
}>;
|
|
37
|
-
FooterCell: React.ForwardRefExoticComponent<Omit<
|
|
38
|
-
ref?: ((instance: HTMLTableDataCellElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
39
|
-
}, never> & {
|
|
29
|
+
FooterCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never> & {
|
|
40
30
|
as?: React.ElementType;
|
|
41
31
|
}>;
|
|
42
32
|
Header: {
|
|
43
|
-
({ theme, isSticky, ...rest }: Omit<
|
|
44
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
45
|
-
}, "theme" | "isSticky"> & {
|
|
33
|
+
({ theme, isSticky, ...rest }: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "theme" | "isSticky"> & {
|
|
46
34
|
theme?: "primary" | "white" | "primaryDark" | "light" | "primaryLight" | undefined;
|
|
47
35
|
isSticky?: boolean | undefined;
|
|
48
36
|
} & {
|
|
@@ -50,14 +38,10 @@ export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "re
|
|
|
50
38
|
}): React.JSX.Element;
|
|
51
39
|
displayName: string;
|
|
52
40
|
};
|
|
53
|
-
HeaderCell: React.ForwardRefExoticComponent<Omit<
|
|
54
|
-
ref?: ((instance: HTMLTableHeaderCellElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
|
55
|
-
}, never> & {
|
|
41
|
+
HeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, never> & {
|
|
56
42
|
as?: React.ElementType;
|
|
57
43
|
}>;
|
|
58
|
-
Row: React.ForwardRefExoticComponent<Omit<Omit<
|
|
59
|
-
ref?: ((instance: HTMLTableRowElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableRowElement> | null | undefined;
|
|
60
|
-
}, never> & {
|
|
44
|
+
Row: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never> & {
|
|
61
45
|
as?: React.ElementType;
|
|
62
46
|
}, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
63
47
|
StickyColumnsContainer: ({ children, numberOfStickyColumns, className, ...restProps }: React.PropsWithChildren<{
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const StyledTableBody: React.ForwardRefExoticComponent<Omit<
|
|
3
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
4
|
-
}, "striped"> & {
|
|
2
|
+
declare const StyledTableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "striped"> & {
|
|
5
3
|
striped?: boolean | undefined;
|
|
6
4
|
} & {
|
|
7
5
|
as?: React.ElementType;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const TableCell: import("react").ForwardRefExoticComponent<Omit<
|
|
2
|
-
ref?: ((instance: HTMLTableDataCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
3
|
-
}, never> & {
|
|
1
|
+
export declare const TableCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never> & {
|
|
4
2
|
as?: import("react").ElementType;
|
|
5
3
|
}>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const TableFooter: import("react").ForwardRefExoticComponent<Omit<
|
|
2
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
3
|
-
}, never> & {
|
|
1
|
+
export declare const TableFooter: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never> & {
|
|
4
2
|
as?: import("react").ElementType;
|
|
5
3
|
}>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const TableFooterCell: import("react").ForwardRefExoticComponent<Omit<
|
|
2
|
-
ref?: ((instance: HTMLTableDataCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
3
|
-
}, never> & {
|
|
1
|
+
export declare const TableFooterCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never> & {
|
|
4
2
|
as?: import("react").ElementType;
|
|
5
3
|
}>;
|
|
@@ -6,9 +6,7 @@ export declare const TABLE_HEADER_THEMES: {
|
|
|
6
6
|
readonly LIGHT: "light";
|
|
7
7
|
readonly WHITE: "white";
|
|
8
8
|
};
|
|
9
|
-
declare const StyledTableHeader: React.ForwardRefExoticComponent<Omit<
|
|
10
|
-
ref?: ((instance: HTMLTableSectionElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableSectionElement> | null | undefined;
|
|
11
|
-
}, "theme" | "isSticky"> & {
|
|
9
|
+
declare const StyledTableHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "theme" | "isSticky"> & {
|
|
12
10
|
theme?: "primary" | "white" | "primaryDark" | "light" | "primaryLight" | undefined;
|
|
13
11
|
isSticky?: boolean | undefined;
|
|
14
12
|
} & {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<Omit<
|
|
2
|
-
ref?: ((instance: HTMLTableHeaderCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
|
3
|
-
}, never> & {
|
|
1
|
+
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, never> & {
|
|
4
2
|
as?: import("react").ElementType;
|
|
5
3
|
}>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const TableRow: React.ForwardRefExoticComponent<Omit<Omit<
|
|
3
|
-
ref?: ((instance: HTMLTableRowElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTableRowElement> | null | undefined;
|
|
4
|
-
}, never> & {
|
|
2
|
+
export declare const TableRow: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never> & {
|
|
5
3
|
as?: React.ElementType;
|
|
6
4
|
}, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
@@ -5,6 +5,6 @@ interface IUseStickyColumnsCss {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const useStickyColumnsStyle: ({ numberOfStickyColumns, wrapperRef }: {
|
|
7
7
|
numberOfStickyColumns: number;
|
|
8
|
-
wrapperRef: React.RefObject<HTMLDivElement>;
|
|
8
|
+
wrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
9
9
|
}) => IUseStickyColumnsCss;
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStickyColumnsCss.js","names":[],"sources":["../../../src/components/table/useStickyColumnsCss.ts"],"sourcesContent":["import * as React from 'react'\n\ntype ColumnStyle = Record<\n `--sticky-column-width-${number}` | `--sticky-offset-left-${number}`,\n string\n>\n\ninterface IUseStickyColumnsCss {\n columnsStyle?: ColumnStyle\n}\n\nexport const useStickyColumnsStyle = ({\n numberOfStickyColumns,\n wrapperRef\n}: {\n numberOfStickyColumns: number\n wrapperRef: React.RefObject<HTMLDivElement>\n}): IUseStickyColumnsCss => {\n const [columnsStyle, setColumnsStyle] = React.useState<ColumnStyle>({})\n\n const generateColumnsStyle = React.useCallback(() => {\n let accWidth = 0\n\n // Getting the table header cells elements to use their width to set the left position in the sticky columns.\n const tableHeaderCells = wrapperRef.current?.querySelectorAll('th')\n const tableHeaderElements = Array.from(tableHeaderCells || [])\n\n // Getting only the number of sticky columns from the elements array that is what we are interested in.\n const stickyColumns = tableHeaderElements.slice(0, numberOfStickyColumns)\n\n const newColumnsStyle = stickyColumns.reduce((acc, column, index) => {\n const elementNumber = index + 1\n const styleObject = {\n ...acc,\n [`--sticky-column-width-${elementNumber}`]: `${column.offsetWidth}px`,\n [`--sticky-offset-left-${elementNumber}`]: `${accWidth}px`\n }\n\n accWidth += tableHeaderCells?.item(index).clientWidth || 0\n\n return styleObject\n }, {})\n\n return newColumnsStyle\n }, [numberOfStickyColumns, wrapperRef])\n\n React.useLayoutEffect(() => {\n if (!numberOfStickyColumns) return\n const newColumnsStyle = generateColumnsStyle()\n\n setColumnsStyle(newColumnsStyle)\n }, [numberOfStickyColumns, wrapperRef, generateColumnsStyle])\n\n return {\n columnsStyle\n }\n}\n"],"mappings":";;AAWA,IAAa,yBAAyB,EACpC,uBACA,iBAI0B;CAC1B,MAAM,CAAC,cAAc,mBAAmB,QAAM,SAAsB,EAAE,CAAC;CAEvE,MAAM,uBAAuB,QAAM,kBAAkB;EACnD,IAAI,WAAW;EAGf,MAAM,mBAAmB,WAAW,SAAS,iBAAiB,KAAK;AAmBnE,SAlB4B,MAAM,KAAK,oBAAoB,EAAE,CAAC,CAGpB,MAAM,GAAG,sBAAsB,CAEnC,QAAQ,KAAK,QAAQ,UAAU;GACnE,MAAM,gBAAgB,QAAQ;GAC9B,MAAM,cAAc;IAClB,GAAG;KACF,yBAAyB,kBAAkB,GAAG,OAAO,YAAY;KACjE,wBAAwB,kBAAkB,GAAG,SAAS;IACxD;AAED,eAAY,kBAAkB,KAAK,MAAM,CAAC,eAAe;AAEzD,UAAO;KACN,EAAE,CAAC;IAGL,CAAC,uBAAuB,WAAW,CAAC;AAEvC,SAAM,sBAAsB;AAC1B,MAAI,CAAC,sBAAuB;AAG5B,kBAFwB,sBAAsB,CAEd;IAC/B;EAAC;EAAuB;EAAY;EAAqB,CAAC;AAE7D,QAAO,EACL,cACD"}
|
|
1
|
+
{"version":3,"file":"useStickyColumnsCss.js","names":[],"sources":["../../../src/components/table/useStickyColumnsCss.ts"],"sourcesContent":["import * as React from 'react'\n\ntype ColumnStyle = Record<\n `--sticky-column-width-${number}` | `--sticky-offset-left-${number}`,\n string\n>\n\ninterface IUseStickyColumnsCss {\n columnsStyle?: ColumnStyle\n}\n\nexport const useStickyColumnsStyle = ({\n numberOfStickyColumns,\n wrapperRef\n}: {\n numberOfStickyColumns: number\n wrapperRef: React.RefObject<HTMLDivElement | null>\n}): IUseStickyColumnsCss => {\n const [columnsStyle, setColumnsStyle] = React.useState<ColumnStyle>({})\n\n const generateColumnsStyle = React.useCallback(() => {\n let accWidth = 0\n\n // Getting the table header cells elements to use their width to set the left position in the sticky columns.\n const tableHeaderCells = wrapperRef.current?.querySelectorAll('th')\n const tableHeaderElements = Array.from(tableHeaderCells || [])\n\n // Getting only the number of sticky columns from the elements array that is what we are interested in.\n const stickyColumns = tableHeaderElements.slice(0, numberOfStickyColumns)\n\n const newColumnsStyle = stickyColumns.reduce((acc, column, index) => {\n const elementNumber = index + 1\n const styleObject = {\n ...acc,\n [`--sticky-column-width-${elementNumber}`]: `${column.offsetWidth}px`,\n [`--sticky-offset-left-${elementNumber}`]: `${accWidth}px`\n }\n\n accWidth += tableHeaderCells?.item(index).clientWidth || 0\n\n return styleObject\n }, {})\n\n return newColumnsStyle\n }, [numberOfStickyColumns, wrapperRef])\n\n React.useLayoutEffect(() => {\n if (!numberOfStickyColumns) return\n const newColumnsStyle = generateColumnsStyle()\n\n setColumnsStyle(newColumnsStyle)\n }, [numberOfStickyColumns, wrapperRef, generateColumnsStyle])\n\n return {\n columnsStyle\n }\n}\n"],"mappings":";;AAWA,IAAa,yBAAyB,EACpC,uBACA,iBAI0B;CAC1B,MAAM,CAAC,cAAc,mBAAmB,QAAM,SAAsB,EAAE,CAAC;CAEvE,MAAM,uBAAuB,QAAM,kBAAkB;EACnD,IAAI,WAAW;EAGf,MAAM,mBAAmB,WAAW,SAAS,iBAAiB,KAAK;AAmBnE,SAlB4B,MAAM,KAAK,oBAAoB,EAAE,CAAC,CAGpB,MAAM,GAAG,sBAAsB,CAEnC,QAAQ,KAAK,QAAQ,UAAU;GACnE,MAAM,gBAAgB,QAAQ;GAC9B,MAAM,cAAc;IAClB,GAAG;KACF,yBAAyB,kBAAkB,GAAG,OAAO,YAAY;KACjE,wBAAwB,kBAAkB,GAAG,SAAS;IACxD;AAED,eAAY,kBAAkB,KAAK,MAAM,CAAC,eAAe;AAEzD,UAAO;KACN,EAAE,CAAC;IAGL,CAAC,uBAAuB,WAAW,CAAC;AAEvC,SAAM,sBAAsB;AAC1B,MAAI,CAAC,sBAAuB;AAG5B,kBAFwB,sBAAsB,CAEd;IAC/B;EAAC;EAAuB;EAAY;EAAqB,CAAC;AAE7D,QAAO,EACL,cACD"}
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const Tabs: React.ForwardRefExoticComponent<Omit<
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, never> & {
|
|
2
|
+
export declare const Tabs: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
5
3
|
as?: React.ElementType;
|
|
6
4
|
}> & {
|
|
7
5
|
TriggerList: {
|
|
8
|
-
({ children, colorScheme, ...rest }: React.ComponentProps<React.ForwardRefExoticComponent<Omit<
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, never> & {
|
|
6
|
+
({ children, colorScheme, ...rest }: React.ComponentProps<React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
11
7
|
as?: React.ElementType;
|
|
12
8
|
}>> & {
|
|
13
9
|
colorScheme?: import("../..").TcolorScheme;
|
|
14
10
|
}): React.JSX.Element;
|
|
15
11
|
displayName: string;
|
|
16
12
|
};
|
|
17
|
-
Trigger: React.ForwardRefExoticComponent<Omit<Omit<
|
|
18
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
19
|
-
}, never> & {
|
|
13
|
+
Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, never> & {
|
|
20
14
|
as?: React.ElementType;
|
|
21
15
|
} & {
|
|
22
16
|
value: string;
|
|
23
17
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
Content: React.ForwardRefExoticComponent<Omit<
|
|
25
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
-
}, never> & {
|
|
18
|
+
Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
27
19
|
as?: React.ElementType;
|
|
28
20
|
}>;
|
|
29
21
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const TabsContent: import("react").ForwardRefExoticComponent<Omit<
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, never> & {
|
|
1
|
+
export declare const TabsContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>, never> & {
|
|
4
2
|
as?: import("react").ElementType;
|
|
5
3
|
}>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, never> & {
|
|
2
|
+
export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, never> & {
|
|
5
3
|
as?: React.ElementType;
|
|
6
4
|
} & {
|
|
7
5
|
value: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TcolorScheme } from '../../experiments/color-scheme/ColorScheme';
|
|
3
|
-
declare const StyledTriggerList: React.ForwardRefExoticComponent<Omit<
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, never> & {
|
|
3
|
+
declare const StyledTriggerList: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
6
4
|
as?: React.ElementType;
|
|
7
5
|
}>;
|
|
8
6
|
export declare const TabsTriggerList: {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Override } from '../../utilities/types';
|
|
3
|
-
export declare const StyledText: React.ForwardRefExoticComponent<Omit<
|
|
4
|
-
ref?: ((instance: HTMLParagraphElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLParagraphElement> | null | undefined;
|
|
5
|
-
}, "size" | "noCapsize" | "weight" | "family"> & {
|
|
3
|
+
export declare const StyledText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "size" | "noCapsize" | "weight" | "family"> & {
|
|
6
4
|
size?: ("sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl">>) | undefined;
|
|
7
5
|
noCapsize?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
8
6
|
weight?: ("bold" | "normal" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "bold" | "normal">>) | undefined;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const StyledTextarea: React.ForwardRefExoticComponent<Omit<
|
|
3
|
-
ref?: ((instance: HTMLTextAreaElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTextAreaElement> | null | undefined;
|
|
4
|
-
}, "appearance" | "theme" | "state"> & {
|
|
2
|
+
declare const StyledTextarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "appearance" | "theme" | "state"> & {
|
|
5
3
|
appearance?: "standard" | "modern" | undefined;
|
|
6
4
|
state?: "error" | undefined;
|
|
7
5
|
theme?: "grey" | "white" | undefined;
|
|
@@ -9,9 +7,7 @@ declare const StyledTextarea: React.ForwardRefExoticComponent<Omit<Omit<React.De
|
|
|
9
7
|
as?: React.ElementType;
|
|
10
8
|
}>;
|
|
11
9
|
export type TextareaProps = React.ComponentProps<typeof StyledTextarea>;
|
|
12
|
-
export declare const Textarea: React.ForwardRefExoticComponent<Omit<Omit<
|
|
13
|
-
ref?: ((instance: HTMLTextAreaElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLTextAreaElement> | null | undefined;
|
|
14
|
-
}, "appearance" | "theme" | "state"> & {
|
|
10
|
+
export declare const Textarea: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "appearance" | "theme" | "state"> & {
|
|
15
11
|
appearance?: "standard" | "modern" | undefined;
|
|
16
12
|
state?: "error" | undefined;
|
|
17
13
|
theme?: "grey" | "white" | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TcolorScheme } from '../../experiments/color-scheme/ColorScheme';
|
|
3
|
-
export declare const StyledTile: React.ForwardRefExoticComponent<Omit<
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "border" | "borderRadius" | "diffused"> & {
|
|
3
|
+
export declare const StyledTile: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "border" | "borderRadius" | "diffused"> & {
|
|
6
4
|
borderRadius?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
7
5
|
border?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
8
6
|
diffused?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NavigatorActions } from '../../types/navigatorActions.types';
|
|
3
|
-
declare const StyledTileInteractive: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "border" | "borderRadius" | "diffused"> & {
|
|
3
|
+
declare const StyledTileInteractive: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "border" | "borderRadius" | "diffused"> & {
|
|
6
4
|
borderRadius?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
7
5
|
border?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
8
6
|
diffused?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
@@ -10,9 +8,7 @@ declare const StyledTileInteractive: React.ForwardRefExoticComponent<Omit<Omit<O
|
|
|
10
8
|
as?: React.ElementType;
|
|
11
9
|
} & {
|
|
12
10
|
colorScheme?: import("../..").TcolorScheme;
|
|
13
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>,
|
|
14
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, never> & {
|
|
11
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>, never> & {
|
|
16
12
|
as?: React.ElementType;
|
|
17
13
|
}>;
|
|
18
14
|
type TTileInteractiveProps = React.ComponentProps<typeof StyledTileInteractive> & React.ButtonHTMLAttributes<HTMLButtonElement> & NavigatorActions;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const StyledTileToggleGroupItem: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "border" | "borderRadius" | "diffused"> & {
|
|
3
|
+
declare const StyledTileToggleGroupItem: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "border" | "borderRadius" | "diffused"> & {
|
|
6
4
|
borderRadius?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
7
5
|
border?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
8
6
|
diffused?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
@@ -10,13 +8,9 @@ declare const StyledTileToggleGroupItem: React.ForwardRefExoticComponent<Omit<Om
|
|
|
10
8
|
as?: React.ElementType;
|
|
11
9
|
} & {
|
|
12
10
|
colorScheme?: import("../..").TcolorScheme;
|
|
13
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>,
|
|
14
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
-
}, never> & {
|
|
11
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>, never> & {
|
|
16
12
|
as?: React.ElementType;
|
|
17
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & import("../..").NavigatorActions, "ref"> & React.RefAttributes<HTMLDivElement>,
|
|
18
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
-
}, never> & {
|
|
13
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & import("../..").NavigatorActions, "ref"> & React.RefAttributes<HTMLDivElement>, never> & {
|
|
20
14
|
as?: React.ElementType;
|
|
21
15
|
}>;
|
|
22
16
|
type TTileToggleGroupItem = React.ComponentProps<typeof ToggleGroup.Item> & React.ComponentProps<typeof StyledTileToggleGroupItem>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const StyledToast: React.ForwardRefExoticComponent<Omit<
|
|
3
|
-
|
|
4
|
-
}, "type"> & {
|
|
5
|
-
type?: "loading" | "success" | "error" | "blank" | undefined;
|
|
2
|
+
export declare const StyledToast: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "type"> & {
|
|
3
|
+
type?: "success" | "loading" | "error" | "blank" | undefined;
|
|
6
4
|
} & {
|
|
7
5
|
as?: React.ElementType;
|
|
8
6
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastIcon.js","names":[],"sources":["../../../src/components/toast/ToastIcon.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Icon } from '../icon/Icon'\n\nexport const ToastIcon = (\n props: React.ComponentProps<typeof Icon>\n): React.JSX.Element => <Icon size=\"sm\" {...props} className=\"mr-3 flex-[0_0_auto]\" />\n"],"mappings":";;;;AAIA,IAAa,aACX,
|
|
1
|
+
{"version":3,"file":"ToastIcon.js","names":[],"sources":["../../../src/components/toast/ToastIcon.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Icon } from '../icon/Icon'\n\nexport const ToastIcon = (\n props: React.ComponentProps<typeof Icon>\n): React.JSX.Element => (\n <Icon size=\"sm\" {...props} className=\"mr-3 flex-[0_0_auto]\" />\n)\n"],"mappings":";;;;AAIA,IAAa,aACX,UAEA,oBAAC,MAAD;CAAM,MAAK;CAAK,GAAI;CAAO,WAAU;CAAyB,CAAA"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const StyledButton: React.ForwardRefExoticComponent<Omit<
|
|
4
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
-
}, "size" | "theme" | "isIconOnly"> & {
|
|
3
|
+
export declare const StyledButton: React.ForwardRefExoticComponent<Omit<ToggleGroup.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "size" | "theme" | "isIconOnly"> & {
|
|
6
4
|
size?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
7
5
|
isIconOnly?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
8
6
|
theme?: ("standard" | "modern" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "standard" | "modern">>) | undefined;
|
|
9
7
|
} & {
|
|
10
8
|
as?: React.ElementType;
|
|
11
9
|
}>;
|
|
12
|
-
export declare const ToggleGroupButton: React.ForwardRefExoticComponent<Omit<Omit<
|
|
13
|
-
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
14
|
-
}, "size" | "theme" | "isIconOnly"> & {
|
|
10
|
+
export declare const ToggleGroupButton: React.ForwardRefExoticComponent<Omit<Omit<ToggleGroup.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "size" | "theme" | "isIconOnly"> & {
|
|
15
11
|
size?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
16
12
|
isIconOnly?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
17
13
|
theme?: ("standard" | "modern" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "standard" | "modern">>) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroupButton.js","names":[],"sources":["../../../src/components/toggle-group/ToggleGroupButton.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { styled } from '~/styled'\n\nimport { Icon } from '../icon/Icon'\nimport { modernVariant, standardVariant } from './ToggleGroupItem'\n\nexport const StyledButton = styled(\n ToggleGroup.Item,\n {\n base: [\n 'cursor-pointer',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-30',\n 'grow',\n 'flex',\n 'items-center',\n 'justify-center',\n 'font-semibold',\n 'leading-none',\n 'py-1'\n ],\n variants: {\n size: {\n sm: ['*:not-last:mr-2', 'min-h-8', 'px-4', 'text-sm'],\n md: ['*:not-last:mr-3', 'min-h-10', 'px-8', 'text-md'],\n lg: ['*:not-last:mr-3', 'min-h-12', 'px-8', 'text-lg']\n },\n isIconOnly: {\n true: []\n },\n theme: {\n standard: standardVariant,\n modern: modernVariant\n }\n },\n compoundVariants: [\n {\n isIconOnly: true,\n size: 'sm',\n class: ['min-w-8', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'md',\n class: ['min-w-10', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'lg',\n class: ['min-w-12', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'sm',\n theme: 'modern',\n class: ['min-w-10', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'md',\n theme: 'modern',\n class: ['min-w-12', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'lg',\n theme: 'modern',\n class: ['min-w-15', 'p-0']\n }\n ]\n },\n { enabledResponsiveVariants: true }\n)\n\nexport const ToggleGroupButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<typeof StyledButton>\n>(({ size = 'md', theme = 'standard', children, ...rest }, ref) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n const isIconOnly =\n isSingleChild &&\n React.isValidElement(childrenArray[0]) &&\n childrenArray[0]?.type === Icon\n\n return (\n <StyledButton\n ref={ref}\n size={size}\n isIconOnly={isIconOnly}\n theme={theme}\n {...rest}\n >\n {\n childrenArray.map((child) => {\n if (\n !isSingleChild &&\n (typeof child === 'string' || typeof child === 'number')\n )\n return <span key={child}>{child}</span>\n if (\n React.isValidElement<React.ComponentPropsWithoutRef<typeof Icon>>(child)\n ) {\n if (child?.type === Icon)\n return React.cloneElement(child, { ...child.props, size })\n }\n return child\n }) as React.ReactElement[]\n }\n </StyledButton>\n )\n})\n"],"mappings":";;;;;;;AAQA,IAAa,eAAe,OAC1B,YAAY,MACZ;CACE,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,UAAU;EACR,MAAM;GACJ,IAAI;IAAC;IAAmB;IAAW;IAAQ;IAAU;GACrD,IAAI;IAAC;IAAmB;IAAY;IAAQ;IAAU;GACtD,IAAI;IAAC;IAAmB;IAAY;IAAQ;IAAU;GACvD;EACD,YAAY,EACV,MAAM,EAAE,EACT;EACD,OAAO;GACL,UAAU;GACV,QAAQ;GACT;EACF;CACD,kBAAkB;EAChB;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,WAAW,MAAM;GAC1B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACF;CACF,EACD,EAAE,2BAA2B,MAAM,CACpC;AAED,IAAa,oBAAoB,QAAM,YAGpC,EAAE,OAAO,MAAM,QAAQ,YAAY,UAAU,GAAG,QAAQ,QAAQ;CACjE,MAAM,gBAAgB,QAAM,SAAS,QAAQ,SAAS;CACtD,MAAM,gBAAgB,cAAc,UAAU;AAM9C,QACE,oBAAC,cAAD;EACO;EACC;EACM,YARd,iBACA,QAAM,eAAe,cAAc,GAAG,IACtC,cAAc,IAAI,SAAS;EAOlB;EACP,GAAI;YAGF,cAAc,KAAK,UAAU;AAC3B,OACE,CAAC,kBACA,OAAO,UAAU,YAAY,OAAO,UAAU,UAE/C,QAAO,oBAAC,QAAD,EAAA,UAAmB,OAAa,EAArB,MAAqB;AACzC,OACE,QAAM,
|
|
1
|
+
{"version":3,"file":"ToggleGroupButton.js","names":[],"sources":["../../../src/components/toggle-group/ToggleGroupButton.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { styled } from '~/styled'\n\nimport { Icon } from '../icon/Icon'\nimport { modernVariant, standardVariant } from './ToggleGroupItem'\n\nexport const StyledButton = styled(\n ToggleGroup.Item,\n {\n base: [\n 'cursor-pointer',\n 'disabled:cursor-not-allowed',\n 'disabled:opacity-30',\n 'grow',\n 'flex',\n 'items-center',\n 'justify-center',\n 'font-semibold',\n 'leading-none',\n 'py-1'\n ],\n variants: {\n size: {\n sm: ['*:not-last:mr-2', 'min-h-8', 'px-4', 'text-sm'],\n md: ['*:not-last:mr-3', 'min-h-10', 'px-8', 'text-md'],\n lg: ['*:not-last:mr-3', 'min-h-12', 'px-8', 'text-lg']\n },\n isIconOnly: {\n true: []\n },\n theme: {\n standard: standardVariant,\n modern: modernVariant\n }\n },\n compoundVariants: [\n {\n isIconOnly: true,\n size: 'sm',\n class: ['min-w-8', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'md',\n class: ['min-w-10', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'lg',\n class: ['min-w-12', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'sm',\n theme: 'modern',\n class: ['min-w-10', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'md',\n theme: 'modern',\n class: ['min-w-12', 'p-0']\n },\n {\n isIconOnly: true,\n size: 'lg',\n theme: 'modern',\n class: ['min-w-15', 'p-0']\n }\n ]\n },\n { enabledResponsiveVariants: true }\n)\n\nexport const ToggleGroupButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<typeof StyledButton>\n>(({ size = 'md', theme = 'standard', children, ...rest }, ref) => {\n const childrenArray = React.Children.toArray(children)\n const isSingleChild = childrenArray.length <= 1\n const isIconOnly =\n isSingleChild &&\n React.isValidElement(childrenArray[0]) &&\n childrenArray[0]?.type === Icon\n\n return (\n <StyledButton\n ref={ref}\n size={size}\n isIconOnly={isIconOnly}\n theme={theme}\n {...rest}\n >\n {\n childrenArray.map((child) => {\n if (\n !isSingleChild &&\n (typeof child === 'string' || typeof child === 'number')\n )\n return <span key={child}>{child}</span>\n if (\n React.isValidElement<React.ComponentPropsWithoutRef<typeof Icon>>(\n child\n )\n ) {\n if (child?.type === Icon)\n return React.cloneElement(child, { ...child.props, size })\n }\n return child\n }) as React.ReactElement<unknown>[]\n }\n </StyledButton>\n )\n})\n"],"mappings":";;;;;;;AAQA,IAAa,eAAe,OAC1B,YAAY,MACZ;CACE,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,UAAU;EACR,MAAM;GACJ,IAAI;IAAC;IAAmB;IAAW;IAAQ;IAAU;GACrD,IAAI;IAAC;IAAmB;IAAY;IAAQ;IAAU;GACtD,IAAI;IAAC;IAAmB;IAAY;IAAQ;IAAU;GACvD;EACD,YAAY,EACV,MAAM,EAAE,EACT;EACD,OAAO;GACL,UAAU;GACV,QAAQ;GACT;EACF;CACD,kBAAkB;EAChB;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,WAAW,MAAM;GAC1B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACD;GACE,YAAY;GACZ,MAAM;GACN,OAAO;GACP,OAAO,CAAC,YAAY,MAAM;GAC3B;EACF;CACF,EACD,EAAE,2BAA2B,MAAM,CACpC;AAED,IAAa,oBAAoB,QAAM,YAGpC,EAAE,OAAO,MAAM,QAAQ,YAAY,UAAU,GAAG,QAAQ,QAAQ;CACjE,MAAM,gBAAgB,QAAM,SAAS,QAAQ,SAAS;CACtD,MAAM,gBAAgB,cAAc,UAAU;AAM9C,QACE,oBAAC,cAAD;EACO;EACC;EACM,YARd,iBACA,QAAM,eAAe,cAAc,GAAG,IACtC,cAAc,IAAI,SAAS;EAOlB;EACP,GAAI;YAGF,cAAc,KAAK,UAAU;AAC3B,OACE,CAAC,kBACA,OAAO,UAAU,YAAY,OAAO,UAAU,UAE/C,QAAO,oBAAC,QAAD,EAAA,UAAmB,OAAa,EAArB,MAAqB;AACzC,OACE,QAAM,eACJ,MACD;QAEG,OAAO,SAAS,KAClB,QAAO,QAAM,aAAa,OAAO;KAAE,GAAG,MAAM;KAAO;KAAM,CAAC;;AAE9D,UAAO;IACP;EAES,CAAA;EAEjB"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
2
2
|
export declare const standardVariant: string[];
|
|
3
3
|
export declare const modernVariant: string[];
|
|
4
|
-
export declare const ToggleGroupItem: import("react").ForwardRefExoticComponent<Omit<
|
|
5
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
-
}, "theme"> & {
|
|
4
|
+
export declare const ToggleGroupItem: import("react").ForwardRefExoticComponent<Omit<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "theme"> & {
|
|
7
5
|
theme?: "standard" | "modern" | undefined;
|
|
8
6
|
} & {
|
|
9
7
|
as?: import("react").ElementType;
|
|
@@ -5,15 +5,11 @@ type RootType = {
|
|
|
5
5
|
gap?: 0 | 1 | 2 | 3;
|
|
6
6
|
wrap?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const StyledRoot: React.ForwardRefExoticComponent<Omit<(Omit<
|
|
8
|
+
export declare const StyledRoot: React.ForwardRefExoticComponent<Omit<(Omit<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement> & {
|
|
9
9
|
disableDeselect?: boolean;
|
|
10
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement
|
|
11
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
-
}) | (Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
|
|
10
|
+
}, "ref"> | Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
|
|
13
11
|
disableDeselect?: boolean;
|
|
14
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>, "
|
|
15
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
-
}), "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
12
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>, "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
17
13
|
isFullWidth?: boolean | undefined;
|
|
18
14
|
hasGap?: boolean | undefined;
|
|
19
15
|
direction?: "row" | "column" | undefined;
|
|
@@ -21,15 +17,11 @@ export declare const StyledRoot: React.ForwardRefExoticComponent<Omit<(Omit<Omit
|
|
|
21
17
|
} & {
|
|
22
18
|
as?: React.ElementType;
|
|
23
19
|
}>;
|
|
24
|
-
export declare const ToggleGroupRoot: React.ForwardRefExoticComponent<Omit<Omit<(Omit<
|
|
20
|
+
export declare const ToggleGroupRoot: React.ForwardRefExoticComponent<Omit<Omit<(Omit<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement> & {
|
|
25
21
|
disableDeselect?: boolean;
|
|
26
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement
|
|
27
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
28
|
-
}) | (Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
|
|
22
|
+
}, "ref"> | Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement> & {
|
|
29
23
|
disableDeselect?: boolean;
|
|
30
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>, "
|
|
31
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
-
}), "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
24
|
+
}, "ref">) & React.RefAttributes<HTMLDivElement>, "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
33
25
|
isFullWidth?: boolean | undefined;
|
|
34
26
|
hasGap?: boolean | undefined;
|
|
35
27
|
direction?: "row" | "column" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroupRoot.js","names":[],"sources":["../../../src/components/toggle-group/ToggleGroupRoot.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { cn } from '~/styled'\nimport { ToggleGroup } from '~/utilities/radix-overrides/toggle-group'\n\ntype RootType = {\n orientation?: 'horizontal' | 'vertical'\n isFullWidth?: boolean\n gap?: 0 | 1 | 2 | 3\n wrap?: boolean\n}\n\nexport const StyledRoot = styled(ToggleGroup.Root, {\n base: ['w-fit'],\n variants: {\n isFullWidth: {\n true: [\n '**:data-radix-collection-item:basis-0',\n '**:data-radix-collection-item:grow',\n 'w-full'\n ],\n false: ['w-auto']\n },\n hasGap: {\n true: ['**:data-radix-collection-item:rounded-md'],\n false: [\n '**:data-radix-collection-item:not-last:before:absolute',\n \"**:data-radix-collection-item:not-last:before:content-['']\",\n '**:data-radix-collection-item:relative',\n 'rounded-md'\n ]\n },\n direction: {\n column: [],\n row: []\n },\n theme: {\n standard: [],\n modern: ['bg-grey-200']\n }\n },\n compoundVariants: [\n {\n hasGap: false,\n direction: 'row',\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:first:rounded-l-md',\n '**:data-radix-collection-item:last:rounded-r-md',\n '**:data-radix-collection-item:not-first:border-l-transparent',\n '**:data-radix-collection-item:not-last:before:h-[calc(100%+2px)]',\n '**:data-radix-collection-item:not-last:before:right-0',\n '**:data-radix-collection-item:not-last:before:-top-px',\n '**:data-radix-collection-item:not-last:before:translate-x-3/2',\n '**:data-radix-collection-item:not-last:before:w-px',\n '**:data-radix-collection-item:not-last:border-r-transparent',\n '**:data-radix-collection-item:rounded-none'\n ]\n },\n {\n hasGap: false,\n direction: 'column',\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:first:rounded-t-sm',\n '**:data-radix-collection-item:last:rounded-b-sm',\n '**:data-radix-collection-item:not-first:border-t-transparent',\n '**:data-radix-collection-item:not-last:before:bottom-0',\n '**:data-radix-collection-item:not-last:before:h-px',\n '**:data-radix-collection-item:not-last:before:-left-px',\n '**:data-radix-collection-item:not-last:before:translate-y-3/2',\n '**:data-radix-collection-item:not-last:before:w-[calc(100%+2px)]',\n '**:data-radix-collection-item:not-last:border-b-transparent'\n ]\n },\n {\n hasGap: false,\n theme: 'modern',\n class: []\n },\n {\n hasGap: false,\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:bg-transparent',\n '**:data-radix-collection-item:rounded-none',\n 'bg-white'\n ]\n }\n ]\n})\n\nconst gapClassMap = {\n 0: 'gap-0.5',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3'\n}\n\nconst orientationToDirection = (orientation) =>\n orientation === 'horizontal' ? 'row' : 'column'\n\nexport const ToggleGroupRoot = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<typeof StyledRoot> & RootType\n>(\n (\n {\n orientation = 'horizontal',\n gap,\n isFullWidth,\n children,\n theme = 'standard',\n wrap,\n ...rest\n },\n ref\n ) => {\n const hasGap = typeof gap === 'number'\n const direction = orientationToDirection(orientation)\n\n return (\n <StyledRoot\n ref={ref}\n direction={direction}\n hasGap={hasGap}\n isFullWidth={isFullWidth}\n orientation={orientation}\n theme={theme}\n {...rest}\n >\n <div\n className={cn(\n 'flex',\n hasGap && gapClassMap[gap],\n orientation === 'horizontal' ? 'flex-row' : 'flex-col',\n wrap ? 'flex-wrap' : 'flex-nowrap'\n )}\n >\n {\n React.Children.toArray(children).map((child) => {\n if (React.isValidElement<{ theme?: typeof theme }>(child)) {\n return React.cloneElement(child, { ...child.props, theme })\n }\n return child\n }) as React.ReactElement[]\n }\n </div>\n </StyledRoot>\n )\n }\n)\n"],"mappings":";;;;;AAaA,IAAa,aAAa,OAAO,YAAY,MAAM;CACjD,MAAM,CAAC,QAAQ;CACf,UAAU;EACR,aAAa;GACX,MAAM;IACJ;IACA;IACA;IACD;GACD,OAAO,CAAC,SAAS;GAClB;EACD,QAAQ;GACN,MAAM,CAAC,2CAA2C;GAClD,OAAO;IACL;IACA;IACA;IACA;IACD;GACF;EACD,WAAW;GACT,QAAQ,EAAE;GACV,KAAK,EAAE;GACR;EACD,OAAO;GACL,UAAU,EAAE;GACZ,QAAQ,CAAC,cAAc;GACxB;EACF;CACD,kBAAkB;EAChB;GACE,QAAQ;GACR,WAAW;GACX,OAAO;GACP,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD;GACF;EACD;GACE,QAAQ;GACR,WAAW;GACX,OAAO;GACP,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD;GACF;EACD;GACE,QAAQ;GACR,OAAO;GACP,OAAO,EAAE;GACV;EACD;GACE,QAAQ;GACR,OAAO;GACP,OAAO;IACL;IACA;IACA;IACD;GACF;EACF;CACF,CAAC;AAEF,IAAM,cAAc;CAClB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AAED,IAAM,0BAA0B,gBAC9B,gBAAgB,eAAe,QAAQ;AAEzC,IAAa,kBAAkB,QAAM,YAKjC,EACE,cAAc,cACd,KACA,aACA,UACA,QAAQ,YACR,MACA,GAAG,QAEL,QACG;CACH,MAAM,SAAS,OAAO,QAAQ;AAG9B,QACE,oBAAC,YAAD;EACO;EACM,WALG,uBAAuB,YAAY;EAMzC;EACK;EACA;EACN;EACP,GAAI;YAEJ,oBAAC,OAAD;GACE,WAAW,GACT,QACA,UAAU,YAAY,MACtB,gBAAgB,eAAe,aAAa,YAC5C,OAAO,cAAc,cACtB;aAGC,QAAM,SAAS,QAAQ,SAAS,CAAC,KAAK,UAAU;AAC9C,QAAI,QAAM,eAAyC,MAAM,CACvD,QAAO,QAAM,aAAa,OAAO;KAAE,GAAG,MAAM;KAAO;KAAO,CAAC;AAE7D,WAAO;KACP;GAEA,CAAA;EACK,CAAA;EAGlB"}
|
|
1
|
+
{"version":3,"file":"ToggleGroupRoot.js","names":[],"sources":["../../../src/components/toggle-group/ToggleGroupRoot.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/styled'\nimport { cn } from '~/styled'\nimport { ToggleGroup } from '~/utilities/radix-overrides/toggle-group'\n\ntype RootType = {\n orientation?: 'horizontal' | 'vertical'\n isFullWidth?: boolean\n gap?: 0 | 1 | 2 | 3\n wrap?: boolean\n}\n\nexport const StyledRoot = styled(ToggleGroup.Root, {\n base: ['w-fit'],\n variants: {\n isFullWidth: {\n true: [\n '**:data-radix-collection-item:basis-0',\n '**:data-radix-collection-item:grow',\n 'w-full'\n ],\n false: ['w-auto']\n },\n hasGap: {\n true: ['**:data-radix-collection-item:rounded-md'],\n false: [\n '**:data-radix-collection-item:not-last:before:absolute',\n \"**:data-radix-collection-item:not-last:before:content-['']\",\n '**:data-radix-collection-item:relative',\n 'rounded-md'\n ]\n },\n direction: {\n column: [],\n row: []\n },\n theme: {\n standard: [],\n modern: ['bg-grey-200']\n }\n },\n compoundVariants: [\n {\n hasGap: false,\n direction: 'row',\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:first:rounded-l-md',\n '**:data-radix-collection-item:last:rounded-r-md',\n '**:data-radix-collection-item:not-first:border-l-transparent',\n '**:data-radix-collection-item:not-last:before:h-[calc(100%+2px)]',\n '**:data-radix-collection-item:not-last:before:right-0',\n '**:data-radix-collection-item:not-last:before:-top-px',\n '**:data-radix-collection-item:not-last:before:translate-x-3/2',\n '**:data-radix-collection-item:not-last:before:w-px',\n '**:data-radix-collection-item:not-last:border-r-transparent',\n '**:data-radix-collection-item:rounded-none'\n ]\n },\n {\n hasGap: false,\n direction: 'column',\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:first:rounded-t-sm',\n '**:data-radix-collection-item:last:rounded-b-sm',\n '**:data-radix-collection-item:not-first:border-t-transparent',\n '**:data-radix-collection-item:not-last:before:bottom-0',\n '**:data-radix-collection-item:not-last:before:h-px',\n '**:data-radix-collection-item:not-last:before:-left-px',\n '**:data-radix-collection-item:not-last:before:translate-y-3/2',\n '**:data-radix-collection-item:not-last:before:w-[calc(100%+2px)]',\n '**:data-radix-collection-item:not-last:border-b-transparent'\n ]\n },\n {\n hasGap: false,\n theme: 'modern',\n class: []\n },\n {\n hasGap: false,\n theme: 'standard',\n class: [\n '**:data-radix-collection-item:bg-transparent',\n '**:data-radix-collection-item:rounded-none',\n 'bg-white'\n ]\n }\n ]\n})\n\nconst gapClassMap = {\n 0: 'gap-0.5',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3'\n}\n\nconst orientationToDirection = (orientation) =>\n orientation === 'horizontal' ? 'row' : 'column'\n\nexport const ToggleGroupRoot = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<typeof StyledRoot> & RootType\n>(\n (\n {\n orientation = 'horizontal',\n gap,\n isFullWidth,\n children,\n theme = 'standard',\n wrap,\n ...rest\n },\n ref\n ) => {\n const hasGap = typeof gap === 'number'\n const direction = orientationToDirection(orientation)\n\n return (\n <StyledRoot\n ref={ref}\n direction={direction}\n hasGap={hasGap}\n isFullWidth={isFullWidth}\n orientation={orientation}\n theme={theme}\n {...rest}\n >\n <div\n className={cn(\n 'flex',\n hasGap && gapClassMap[gap],\n orientation === 'horizontal' ? 'flex-row' : 'flex-col',\n wrap ? 'flex-wrap' : 'flex-nowrap'\n )}\n >\n {\n React.Children.toArray(children).map((child) => {\n if (React.isValidElement<{ theme?: typeof theme }>(child)) {\n return React.cloneElement(child, { ...child.props, theme })\n }\n return child\n }) as React.ReactElement<unknown>[]\n }\n </div>\n </StyledRoot>\n )\n }\n)\n"],"mappings":";;;;;AAaA,IAAa,aAAa,OAAO,YAAY,MAAM;CACjD,MAAM,CAAC,QAAQ;CACf,UAAU;EACR,aAAa;GACX,MAAM;IACJ;IACA;IACA;IACD;GACD,OAAO,CAAC,SAAS;GAClB;EACD,QAAQ;GACN,MAAM,CAAC,2CAA2C;GAClD,OAAO;IACL;IACA;IACA;IACA;IACD;GACF;EACD,WAAW;GACT,QAAQ,EAAE;GACV,KAAK,EAAE;GACR;EACD,OAAO;GACL,UAAU,EAAE;GACZ,QAAQ,CAAC,cAAc;GACxB;EACF;CACD,kBAAkB;EAChB;GACE,QAAQ;GACR,WAAW;GACX,OAAO;GACP,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD;GACF;EACD;GACE,QAAQ;GACR,WAAW;GACX,OAAO;GACP,OAAO;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACD;GACF;EACD;GACE,QAAQ;GACR,OAAO;GACP,OAAO,EAAE;GACV;EACD;GACE,QAAQ;GACR,OAAO;GACP,OAAO;IACL;IACA;IACA;IACD;GACF;EACF;CACF,CAAC;AAEF,IAAM,cAAc;CAClB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AAED,IAAM,0BAA0B,gBAC9B,gBAAgB,eAAe,QAAQ;AAEzC,IAAa,kBAAkB,QAAM,YAKjC,EACE,cAAc,cACd,KACA,aACA,UACA,QAAQ,YACR,MACA,GAAG,QAEL,QACG;CACH,MAAM,SAAS,OAAO,QAAQ;AAG9B,QACE,oBAAC,YAAD;EACO;EACM,WALG,uBAAuB,YAAY;EAMzC;EACK;EACA;EACN;EACP,GAAI;YAEJ,oBAAC,OAAD;GACE,WAAW,GACT,QACA,UAAU,YAAY,MACtB,gBAAgB,eAAe,aAAa,YAC5C,OAAO,cAAc,cACtB;aAGC,QAAM,SAAS,QAAQ,SAAS,CAAC,KAAK,UAAU;AAC9C,QAAI,QAAM,eAAyC,MAAM,CACvD,QAAO,QAAM,aAAa,OAAO;KAAE,GAAG,MAAM;KAAO;KAAO,CAAC;AAE7D,WAAO;KACP;GAEA,CAAA;EACK,CAAA;EAGlB"}
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
export declare const ToggleGroup: {
|
|
2
|
-
Item: import("react").ForwardRefExoticComponent<Omit<
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "theme"> & {
|
|
2
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "theme"> & {
|
|
5
3
|
theme?: "standard" | "modern" | undefined;
|
|
6
4
|
} & {
|
|
7
5
|
as?: import("react").ElementType;
|
|
8
6
|
}>;
|
|
9
|
-
Button: import("react").ForwardRefExoticComponent<Omit<Omit<
|
|
10
|
-
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
11
|
-
}, "size" | "theme" | "isIconOnly"> & {
|
|
7
|
+
Button: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "size" | "theme" | "isIconOnly"> & {
|
|
12
8
|
size?: ("sm" | "md" | "lg" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg">>) | undefined;
|
|
13
9
|
isIconOnly?: (boolean | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", boolean>>) | undefined;
|
|
14
10
|
theme?: ("standard" | "modern" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "standard" | "modern">>) | undefined;
|
|
15
11
|
} & {
|
|
16
12
|
as?: import("react").ElementType;
|
|
17
13
|
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
Root: import("react").ForwardRefExoticComponent<Omit<Omit<(Omit<
|
|
14
|
+
Root: import("react").ForwardRefExoticComponent<Omit<Omit<(Omit<import("@radix-ui/react-toggle-group").ToggleGroupSingleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
19
15
|
disableDeselect?: boolean;
|
|
20
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement
|
|
21
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
-
}) | (Omit<Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
16
|
+
}, "ref"> | Omit<import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
23
17
|
disableDeselect?: boolean;
|
|
24
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>, "
|
|
25
|
-
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
-
}), "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
18
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>, "theme" | "direction" | "isFullWidth" | "hasGap"> & {
|
|
27
19
|
isFullWidth?: boolean | undefined;
|
|
28
20
|
hasGap?: boolean | undefined;
|
|
29
21
|
direction?: "row" | "column" | undefined;
|
|
@@ -5,9 +5,7 @@ export declare const Tooltip: {
|
|
|
5
5
|
({ children, delayDuration, ...remainingProps }: TooltipProps): React.JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
} & {
|
|
8
|
-
Content: ({ children, side, sideOffset, size, ...remainingProps }: Omit<
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "size"> & {
|
|
8
|
+
Content: ({ children, side, sideOffset, size, ...remainingProps }: Omit<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>, "size"> & {
|
|
11
9
|
size?: "sm" | "md" | "lg" | undefined;
|
|
12
10
|
} & {
|
|
13
11
|
as?: React.ElementType;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Content } from '@radix-ui/react-tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const StyledContent: React.ForwardRefExoticComponent<Omit<
|
|
4
|
-
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "size"> & {
|
|
3
|
+
declare const StyledContent: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tooltip").TooltipContentProps & React.RefAttributes<HTMLDivElement>, "size"> & {
|
|
6
4
|
size?: "sm" | "md" | "lg" | undefined;
|
|
7
5
|
} & {
|
|
8
6
|
as?: React.ElementType;
|