@saleor/macaw-ui 0.6.4 → 0.6.6
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/ActionBar/ActionBar.d.ts +8 -8
- package/dist/ActionBar/ActionBar.stories.d.ts +4 -4
- package/dist/ActionBar/context.d.ts +9 -9
- package/dist/ActionBar/index.d.ts +2 -2
- package/dist/ActionBar/styles.d.ts +2 -2
- package/dist/Alert/Alert.d.ts +9 -8
- package/dist/Alert/Alert.stories.d.ts +10 -12
- package/dist/Alert/index.d.ts +1 -2
- package/dist/Alert/styles.d.ts +2 -2
- package/dist/Backlink/Backlink.d.ts +6 -8
- package/dist/Backlink/Backlink.stories.d.ts +5 -5
- package/dist/Backlink/context.d.ts +5 -5
- package/dist/Backlink/index.d.ts +2 -2
- package/dist/Backlink/styles.d.ts +2 -2
- package/dist/BaseList/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ConfirmButton/ConfirmButton.d.ts +11 -11
- package/dist/ConfirmButton/ConfirmButton.stories.d.ts +8 -8
- package/dist/ConfirmButton/index.d.ts +1 -1
- package/dist/ConfirmButton/styles.d.ts +2 -2
- package/dist/DialogHeader/index.d.ts +1 -1
- package/dist/DialogTable/index.d.ts +1 -1
- package/dist/Filter/index.d.ts +4 -4
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/LayoutButton/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Notification/Notification.d.ts +3 -3
- package/dist/Notification/Notification.stories.d.ts +10 -10
- package/dist/Notification/index.d.ts +2 -2
- package/dist/Notification/styles.d.ts +2 -2
- package/dist/Notification/types.d.ts +16 -16
- package/dist/OffsettedList/index.d.ts +1 -1
- package/dist/PageTabs/index.d.ts +3 -3
- package/dist/Pagination/index.d.ts +4 -4
- package/dist/PillLink/index.d.ts +1 -1
- package/dist/ResponsiveTable/ResponsiveTable.d.ts +8 -8
- package/dist/ResponsiveTable/index.d.ts +1 -1
- package/dist/ResponsiveTable/styles.d.ts +2 -2
- package/dist/Savebar/ButtonTooltipDecorator.d.ts +6 -6
- package/dist/Savebar/Savebar.d.ts +14 -14
- package/dist/Savebar/Savebar.stories.d.ts +6 -6
- package/dist/Savebar/index.d.ts +1 -1
- package/dist/Savebar/styles.d.ts +2 -2
- package/dist/ScrollShadow/index.d.ts +1 -1
- package/dist/Sidebar/ExpandButton.d.ts +6 -6
- package/dist/Sidebar/MenuItem.d.ts +11 -11
- package/dist/Sidebar/Sidebar.d.ts +6 -6
- package/dist/Sidebar/Sidebar.stories.d.ts +5 -6
- package/dist/Sidebar/fixtures.d.ts +2 -2
- package/dist/Sidebar/index.d.ts +4 -4
- package/dist/Sidebar/types.d.ts +16 -16
- package/dist/SidebarDrawer/MenuItemBtn.d.ts +7 -7
- package/dist/SidebarDrawer/SidebarDrawer.d.ts +4 -4
- package/dist/SidebarDrawer/SidebarDrawer.stories.d.ts +4 -4
- package/dist/SidebarDrawer/index.d.ts +2 -2
- package/dist/SidebarDrawer/styles.d.ts +2 -2
- package/dist/SquareButton/SquareButton.d.ts +3 -3
- package/dist/SquareButton/SquareButton.stories.d.ts +4 -5
- package/dist/SquareButton/index.d.ts +1 -1
- package/dist/StatusChip/index.d.ts +2 -2
- package/dist/Tooltip/Tooltip.d.ts +6 -6
- package/dist/Tooltip/Tooltip.stories.d.ts +7 -7
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/styles.d.ts +3 -3
- package/dist/UserChipMenu/UserChipMenu.d.ts +8 -9
- package/dist/UserChipMenu/UserChipMenu.stories.d.ts +6 -6
- package/dist/UserChipMenu/UserChipMenuItem.d.ts +6 -6
- package/dist/UserChipMenu/context.d.ts +4 -4
- package/dist/UserChipMenu/index.d.ts +2 -2
- package/dist/UserChipMenu/styles.d.ts +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +3 -3
- package/dist/extensions/index.d.ts +3 -3
- package/dist/extensions/sendMessage.d.ts +3 -3
- package/dist/extensions/types.d.ts +22 -22
- package/dist/extensions/useExtensionMessage.d.ts +2 -2
- package/dist/icons/ArrowDropdownIcon.d.ts +2 -2
- package/dist/icons/CheckboxCheckedIcon.d.ts +1 -1
- package/dist/icons/CheckboxIcon.d.ts +1 -1
- package/dist/icons/CheckboxIndeterminateIcon.d.ts +1 -1
- package/dist/icons/CompleteIcon.d.ts +2 -2
- package/dist/icons/EditIcon.d.ts +1 -1
- package/dist/icons/InfoIcon.d.ts +2 -2
- package/dist/icons/Logo.d.ts +2 -2
- package/dist/icons/LogoLight.d.ts +2 -2
- package/dist/icons/NotAllowedIcon.d.ts +2 -2
- package/dist/icons/NotAllowedInvertedIcon.d.ts +2 -2
- package/dist/icons/SearchIcon.d.ts +1 -1
- package/dist/icons/WarningIcon.d.ts +2 -2
- package/dist/icons/index.d.ts +11 -18
- package/dist/index.d.ts +15 -29
- package/dist/index.js +8 -2
- package/dist/localStorageKeys.d.ts +4 -4
- package/dist/macaw-ui.cjs.development.js +2626 -0
- package/dist/macaw-ui.cjs.development.js.map +1 -0
- package/dist/macaw-ui.cjs.production.min.js +2 -0
- package/dist/macaw-ui.cjs.production.min.js.map +1 -0
- package/dist/macaw-ui.esm.js +2578 -0
- package/dist/macaw-ui.esm.js.map +1 -0
- package/dist/theme/Baseline.d.ts +2 -2
- package/dist/theme/ThemeProvider.d.ts +17 -17
- package/dist/theme/context.d.ts +3 -3
- package/dist/theme/createSaleorTheme/createSaleorTheme.d.ts +3 -3
- package/dist/theme/createSaleorTheme/index.d.ts +2 -2
- package/dist/theme/createSaleorTheme/overrides/buttons.d.ts +3 -3
- package/dist/theme/createSaleorTheme/overrides/index.d.ts +3 -3
- package/dist/theme/createSaleorTheme/overrides/inputs.d.ts +3 -3
- package/dist/theme/createSaleorTheme/overrides/tables.d.ts +3 -3
- package/dist/theme/createSaleorTheme/palette.d.ts +2 -2
- package/dist/theme/createSaleorTheme/shadows.d.ts +2 -2
- package/dist/theme/createSaleorTheme/types.d.ts +49 -51
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/styles.d.ts +5 -5
- package/dist/theme/themes.d.ts +3 -3
- package/dist/theme/types.d.ts +6 -6
- package/dist/theme/utils.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/useLocalStorage.d.ts +5 -5
- package/dist/tools/useWindowScroll.d.ts +5 -4
- package/dist/types/Avatar/Avatar.d.ts +8 -0
- package/dist/types/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/types/Avatar/index.d.ts +1 -0
- package/dist/types/Avatar/styles.d.ts +1 -0
- package/dist/types/IconButton/IconButton.d.ts +1 -1
- package/dist/types/IconButton/IconButton.stories.d.ts +138 -0
- package/dist/types/Pill/Pill.d.ts +3 -3
- package/dist/types/Pill/styles.d.ts +1 -1
- package/dist/types/ResponsiveTable/ResponsiveTable.d.ts +5 -2
- package/dist/types/ResponsiveTable/styles.d.ts +2 -1
- package/dist/types/UserChipMenu/styles.d.ts +1 -1
- package/dist/types/icons/20x20/BackSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/BookmarksSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/CheckboxSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/ChevronSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/CloseSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/DragSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/FilterSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/MinusSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/MoreSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/NextSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/PlusSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/SearchSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/SortBigSmallIcon.d.ts +1 -1
- package/dist/types/icons/20x20/SortSmallSmallIcon.d.ts +1 -1
- package/dist/types/icons/24x24/AddEnvironmentIcon.d.ts +1 -1
- package/dist/types/icons/24x24/AppsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ArrowRightIcon.d.ts +1 -1
- package/dist/types/icons/24x24/BackspaceIcon.d.ts +1 -1
- package/dist/types/icons/24x24/BagIcon.d.ts +1 -1
- package/dist/types/icons/24x24/BillingIcon.d.ts +1 -1
- package/dist/types/icons/24x24/BookmarkIcon.d.ts +1 -1
- package/dist/types/icons/24x24/CalendarIcon.d.ts +1 -1
- package/dist/types/icons/24x24/CheckIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ChevronIcon.d.ts +1 -1
- package/dist/types/icons/24x24/Close2Icon.d.ts +1 -1
- package/dist/types/icons/24x24/CloseIcon.d.ts +1 -1
- package/dist/types/icons/24x24/CodeIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ColumnsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/CopyIcon.d.ts +1 -1
- package/dist/types/icons/24x24/CustomersIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DashboardIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DeleteIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DeveloperIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DiscountsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DownloadIcon.d.ts +1 -1
- package/dist/types/icons/24x24/DragIcon.d.ts +1 -1
- package/dist/types/icons/24x24/EditIcon.d.ts +1 -1
- package/dist/types/icons/24x24/EnvironmentIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ExpandIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ExpendableIcon.d.ts +1 -1
- package/dist/types/icons/24x24/EyeClosedIcon.d.ts +1 -1
- package/dist/types/icons/24x24/EyeIcon.d.ts +1 -1
- package/dist/types/icons/24x24/FilteringIcon.d.ts +1 -1
- package/dist/types/icons/24x24/GenerateIcon.d.ts +1 -1
- package/dist/types/icons/24x24/GithubIcon.d.ts +1 -1
- package/dist/types/icons/24x24/GridIcon.d.ts +1 -1
- package/dist/types/icons/24x24/HelpIcon.d.ts +1 -1
- package/dist/types/icons/24x24/HowToIcon.d.ts +1 -1
- package/dist/types/icons/24x24/LinkIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ListIcon.d.ts +1 -1
- package/dist/types/icons/24x24/MailIcon.d.ts +1 -1
- package/dist/types/icons/24x24/MigrateIcon.d.ts +1 -1
- package/dist/types/icons/24x24/MinusIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ModelsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/MoreHorizontalIcon.d.ts +1 -1
- package/dist/types/icons/24x24/NavigationIcon.d.ts +1 -1
- package/dist/types/icons/24x24/NavigatorIcon.d.ts +1 -1
- package/dist/types/icons/24x24/NextIcon.d.ts +1 -1
- package/dist/types/icons/24x24/NoConnectionIcon.d.ts +1 -1
- package/dist/types/icons/24x24/NotificationsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/OrdersIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PagesIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PermissionsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PhotoIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PlayIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PlusIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PresetIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PreviousIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PrinterIcon.d.ts +1 -1
- package/dist/types/icons/24x24/PrivacyIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ProcessIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ProductIcon.d.ts +1 -1
- package/dist/types/icons/24x24/RefreshIcon.d.ts +1 -1
- package/dist/types/icons/24x24/RemoveMemberIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ReplyIcon.d.ts +1 -1
- package/dist/types/icons/24x24/SearchIcon.d.ts +1 -1
- package/dist/types/icons/24x24/SettingsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/SnapshotsIcon.d.ts +1 -1
- package/dist/types/icons/24x24/SortDownIcon.d.ts +1 -1
- package/dist/types/icons/24x24/SortUpIcon.d.ts +1 -1
- package/dist/types/icons/24x24/TasksIcon.d.ts +1 -1
- package/dist/types/icons/24x24/TimeIcon.d.ts +1 -1
- package/dist/types/icons/24x24/ToIcon.d.ts +1 -1
- package/dist/types/icons/24x24/TransferIcon.d.ts +1 -1
- package/dist/types/icons/24x24/TranslateIcon.d.ts +1 -1
- package/dist/types/icons/24x24/TranslationIcon.d.ts +1 -1
- package/dist/types/icons/24x24/WebsiteIcon.d.ts +1 -1
- package/dist/types/icons/24x24/WifiIcon.d.ts +1 -1
- package/dist/types/icons/32x32/AttributesLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/CustomerLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/DigitalLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/DiscountLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/FilteringLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/GiftCardLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/NavigationLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/NotesLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/OmnichannelLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/PermissionLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/ProductLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/SearchLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/ShippingLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/SiteSettingsLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/StaffMembersLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/TaxesLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/TokenLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/WarehouseLargeIcon.d.ts +1 -1
- package/dist/types/icons/32x32/WifiLargeIcon.d.ts +1 -1
- package/dist/types/icons/InfoCircleIndicatorIcon.d.ts +1 -0
- package/dist/types/icons/WarningCircleIndicatorIcon.d.ts +1 -0
- package/dist/types/icons/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/theme/createSaleorTheme/types.d.ts +5 -1
- package/dist/utils/Decorator.d.ts +4 -4
- package/package.json +1 -1
- package/src/Avatar/Avatar.stories.tsx +22 -0
- package/src/Avatar/Avatar.tsx +26 -0
- package/src/Avatar/index.ts +1 -0
- package/src/Avatar/styles.ts +26 -0
- package/src/IconButton/IconButton.stories.tsx +37 -0
- package/src/IconButton/IconButton.tsx +1 -1
- package/src/PageTabs/PageTab.stories.tsx +13 -0
- package/src/PageTabs/styles.ts +5 -4
- package/src/Pill/Pill.stories.tsx +13 -1
- package/src/Pill/Pill.tsx +3 -2
- package/src/Pill/styles.ts +23 -0
- package/src/ResponsiveTable/ResponsiveTable.tsx +18 -8
- package/src/ResponsiveTable/styles.ts +5 -4
- package/src/Sidebar/MenuItem.tsx +1 -1
- package/src/UserChipMenu/UserChipMenu.tsx +2 -8
- package/src/icons/types.ts +2 -1
- package/src/index.tsx +1 -0
- package/src/theme/Baseline.tsx +1 -1
- package/src/theme/createSaleorTheme/createSaleorTheme.tsx +2 -2
- package/src/theme/createSaleorTheme/overrides/tables.ts +1 -1
- package/src/theme/createSaleorTheme/types.ts +5 -1
- package/src/theme/themes.ts +21 -2
- package/dist/Alert/AlertBase.d.ts +0 -8
- package/dist/BaseList/BaseList.d.ts +0 -26
- package/dist/BaseList/context.d.ts +0 -7
- package/dist/BaseList/styles.d.ts +0 -5
- package/dist/Button/Button.d.ts +0 -16
- package/dist/Button/styles.d.ts +0 -2
- package/dist/DialogHeader/DialogHeader.d.ts +0 -6
- package/dist/DialogHeader/styles.d.ts +0 -1
- package/dist/DialogTable/DialogTable.d.ts +0 -6
- package/dist/DialogTable/styles.d.ts +0 -1
- package/dist/Filter/Filter.d.ts +0 -10
- package/dist/Filter/Filter.stories.d.ts +0 -5
- package/dist/Filter/FilterBar.d.ts +0 -11
- package/dist/Filter/FilterContent.d.ts +0 -7
- package/dist/Filter/FilterField/MultipleSelectFilterField.d.ts +0 -6
- package/dist/Filter/FilterField/RangeFilterField.d.ts +0 -7
- package/dist/Filter/FilterField/SelectFilterField.d.ts +0 -6
- package/dist/Filter/FilterField/TextFilterField.d.ts +0 -6
- package/dist/Filter/FilterMenu.d.ts +0 -9
- package/dist/Filter/context.d.ts +0 -4
- package/dist/Filter/styles.d.ts +0 -2
- package/dist/Filter/types.d.ts +0 -49
- package/dist/Filter/utils.d.ts +0 -8
- package/dist/IconButton/IconButton.d.ts +0 -8
- package/dist/IconButton/partials.d.ts +0 -14
- package/dist/IconButton/styles.d.ts +0 -2
- package/dist/LayoutButton/LayoutButton.d.ts +0 -7
- package/dist/LayoutButton/styles.d.ts +0 -2
- package/dist/List/List.d.ts +0 -13
- package/dist/List/List.stories.d.ts +0 -5
- package/dist/List/context.d.ts +0 -8
- package/dist/List/styles.d.ts +0 -1
- package/dist/OffsettedList/OffsettedList.d.ts +0 -12
- package/dist/OffsettedList/OffsettedList.stories.d.ts +0 -5
- package/dist/OffsettedList/styles.d.ts +0 -2
- package/dist/PageTabs/PageTab.d.ts +0 -3
- package/dist/PageTabs/PageTab.stories.d.ts +0 -4
- package/dist/PageTabs/PageTabPanel.d.ts +0 -4
- package/dist/PageTabs/PageTabs.d.ts +0 -5
- package/dist/PageTabs/styles.d.ts +0 -2
- package/dist/Pagination/Pagination.d.ts +0 -10
- package/dist/Pagination/PaginationActions.d.ts +0 -11
- package/dist/Pagination/PaginationRowNumberSelect.d.ts +0 -11
- package/dist/Pagination/TablePagination.d.ts +0 -6
- package/dist/Pagination/styles.d.ts +0 -2
- package/dist/PillLink/PillLink.d.ts +0 -15
- package/dist/PillLink/styles.d.ts +0 -2
- package/dist/ScrollShadow/ScrollShadow.d.ts +0 -6
- package/dist/ScrollShadow/styles.d.ts +0 -1
- package/dist/StatusChip/StatusChip.d.ts +0 -3
- package/dist/StatusChip/StatusChip.stories.d.ts +0 -8
- package/dist/StatusChip/styles.d.ts +0 -3
- package/dist/StatusChip/types.d.ts +0 -8
- package/dist/icons/ArrowRightIcon.d.ts +0 -1
- package/dist/icons/CloseIcon.d.ts +0 -1
- package/dist/icons/DeleteIcon.d.ts +0 -1
- package/dist/icons/FilteringIcon.d.ts +0 -1
- package/dist/icons/ImageIcon.d.ts +0 -1
- package/dist/icons/MoreIcon.d.ts +0 -1
- package/dist/icons/NavigatorIcon.d.ts +0 -1
- package/dist/icons/PlusIcon.d.ts +0 -1
- package/dist/icons/RadioCheckedIcon.d.ts +0 -1
- package/dist/icons/RadioIcon.d.ts +0 -1
- package/dist/index.js.map +0 -7
- package/dist/mjs/index.js +0 -5
- package/dist/mjs/index.js.map +0 -7
- package/dist/theme/createSaleorTheme/overrides/controls.d.ts +0 -3
- package/dist/theme/utils.test.d.ts +0 -1
- package/dist/tools/useElementScroll.d.ts +0 -12
- package/dist/types/StatusChip/styles.d.ts +0 -3
- package/dist/utils/useListStory.d.ts +0 -21
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ConfirmButtonTransitionState } from "../ConfirmButton";
|
|
3
|
-
export interface ActionBarProps {
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
state: ConfirmButtonTransitionState;
|
|
6
|
-
children: React.ReactNode[] | React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const ActionBar: React.FC<ActionBarProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ConfirmButtonTransitionState } from "../ConfirmButton";
|
|
3
|
+
export interface ActionBarProps {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
state: ConfirmButtonTransitionState;
|
|
6
|
+
children: React.ReactNode[] | React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ActionBar: React.FC<ActionBarProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const WithContent: Story;
|
|
3
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const WithContent: Story;
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface ActionBarContextType {
|
|
3
|
-
anchor: React.RefObject<HTMLDivElement>;
|
|
4
|
-
docked: boolean;
|
|
5
|
-
setDocked: (docked: boolean) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const ActionBarContext: React.Context<ActionBarContextType | undefined>;
|
|
8
|
-
export declare const useActionBar: () => ActionBarContextType;
|
|
9
|
-
export declare const ActionBarProvider: React.FC;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ActionBarContextType {
|
|
3
|
+
anchor: React.RefObject<HTMLDivElement>;
|
|
4
|
+
docked: boolean;
|
|
5
|
+
setDocked: (docked: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ActionBarContext: React.Context<ActionBarContextType | undefined>;
|
|
8
|
+
export declare const useActionBar: () => ActionBarContextType;
|
|
9
|
+
export declare const ActionBarProvider: React.FC;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./ActionBar";
|
|
2
|
-
export * from "./context";
|
|
1
|
+
export * from "./ActionBar";
|
|
2
|
+
export * from "./context";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"content" | "paper" | "root", string>;
|
|
2
|
+
export default useStyles;
|
package/dist/Alert/Alert.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
export interface AlertProps
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type AlertVariant = "error" | "warning" | "success" | "info";
|
|
3
|
+
export interface AlertProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
close?: boolean;
|
|
6
|
+
variant: AlertVariant;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Alert: React.FC<AlertProps>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Info: Story;
|
|
3
|
-
export declare const Warn: Story;
|
|
4
|
-
export declare const Success: Story;
|
|
5
|
-
export declare const Error: Story;
|
|
6
|
-
export declare const WithClose: Story;
|
|
7
|
-
export declare const WithContent: Story;
|
|
8
|
-
export declare const WithContentAndClose: Story;
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
12
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Info: Story;
|
|
3
|
+
export declare const Warn: Story;
|
|
4
|
+
export declare const Success: Story;
|
|
5
|
+
export declare const Error: Story;
|
|
6
|
+
export declare const WithClose: Story;
|
|
7
|
+
export declare const WithContent: Story;
|
|
8
|
+
export declare const WithContentAndClose: Story;
|
|
9
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
10
|
+
export default _default;
|
package/dist/Alert/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Alert";
|
|
2
|
-
export * from "./AlertBase";
|
|
1
|
+
export * from "./Alert";
|
package/dist/Alert/styles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"close" | "content" | "closeNoContent" | "container" | "root" | "titleBar" | "error" | "success" | "warning", string>;
|
|
2
|
+
export default useStyles;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const Backlink: React.FC<AppHeaderProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AppHeaderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const Backlink: React.FC<AppHeaderProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Default: Story;
|
|
3
|
-
export declare const Loading: Story;
|
|
4
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Default: Story;
|
|
3
|
+
export declare const Loading: Story;
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type BacklinkContextType = React.RefObject<HTMLDivElement>;
|
|
3
|
-
export declare const BacklinkContext: React.Context<BacklinkContextType | undefined>;
|
|
4
|
-
export declare const useBacklink: () => BacklinkContextType;
|
|
5
|
-
export declare const BacklinkProvider: React.FC;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type BacklinkContextType = React.RefObject<HTMLDivElement>;
|
|
3
|
+
export declare const BacklinkContext: React.Context<BacklinkContextType | undefined>;
|
|
4
|
+
export declare const useBacklink: () => BacklinkContextType;
|
|
5
|
+
export declare const BacklinkProvider: React.FC;
|
package/dist/Backlink/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Backlink";
|
|
2
|
-
export * from "./context";
|
|
1
|
+
export * from "./Backlink";
|
|
2
|
+
export * from "./context";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"backArrow" | "menuButton" | "root" | "skeleton" | "title", string>;
|
|
2
|
+
export default useStyles;
|
package/dist/BaseList/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./BaseList";
|
|
1
|
+
export * from "./BaseList";
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Button";
|
|
1
|
+
export * from "./Button";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ButtonProps } from "
|
|
2
|
-
import React from "react";
|
|
3
|
-
export declare type ConfirmButtonTransitionState = "loading" | "success" | "error" | "default";
|
|
4
|
-
export declare type ConfirmButtonLabels = Record<"confirm" | "error", string>;
|
|
5
|
-
export interface ConfirmButtonProps extends Omit<ButtonProps, "classes"> {
|
|
6
|
-
labels: ConfirmButtonLabels;
|
|
7
|
-
noTransition?: boolean;
|
|
8
|
-
transitionState: ConfirmButtonTransitionState;
|
|
9
|
-
onTransitionToDefault?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const ConfirmButton: React.FC<ConfirmButtonProps>;
|
|
1
|
+
import { ButtonProps } from "@material-ui/core/Button";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare type ConfirmButtonTransitionState = "loading" | "success" | "error" | "default";
|
|
4
|
+
export declare type ConfirmButtonLabels = Record<"confirm" | "error", string>;
|
|
5
|
+
export interface ConfirmButtonProps extends Omit<ButtonProps, "classes"> {
|
|
6
|
+
labels: ConfirmButtonLabels;
|
|
7
|
+
noTransition?: boolean;
|
|
8
|
+
transitionState: ConfirmButtonTransitionState;
|
|
9
|
+
onTransitionToDefault?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ConfirmButton: React.FC<ConfirmButtonProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Interactive: Story;
|
|
3
|
-
export declare const Default: Story;
|
|
4
|
-
export declare const Loading: Story;
|
|
5
|
-
export declare const Error: Story;
|
|
6
|
-
export declare const Success: Story;
|
|
7
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
8
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Interactive: Story;
|
|
3
|
+
export declare const Default: Story;
|
|
4
|
+
export declare const Loading: Story;
|
|
5
|
+
export declare const Error: Story;
|
|
6
|
+
export declare const Success: Story;
|
|
7
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
8
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ConfirmButton";
|
|
1
|
+
export * from "./ConfirmButton";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"error" | "progress" | "icon" | "invisible" | "label" | "success", string>;
|
|
2
|
+
export default useStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./DialogHeader";
|
|
1
|
+
export * from "./DialogHeader";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./DialogTable";
|
|
1
|
+
export * from "./DialogTable";
|
package/dist/Filter/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Filter";
|
|
2
|
-
export * from "./FilterBar";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export * from "./utils";
|
|
1
|
+
export * from "./Filter";
|
|
2
|
+
export * from "./FilterBar";
|
|
3
|
+
export * from "./types";
|
|
4
|
+
export * from "./utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./IconButton";
|
|
1
|
+
export * from "./IconButton";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./LayoutButton";
|
|
1
|
+
export * from "./LayoutButton";
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./List";
|
|
1
|
+
export * from "./List";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { NotificationProps } from "./types";
|
|
3
|
-
export declare const Notification: React.FC<NotificationProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { NotificationProps } from "./types";
|
|
3
|
+
export declare const Notification: React.FC<NotificationProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Info: Story;
|
|
3
|
-
export declare const Warn: Story;
|
|
4
|
-
export declare const Success: Story;
|
|
5
|
-
export declare const Error: Story;
|
|
6
|
-
export declare const WithAction: Story;
|
|
7
|
-
export declare const WithContent: Story;
|
|
8
|
-
export declare const WithActionAndContent: Story;
|
|
9
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
10
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Info: Story;
|
|
3
|
+
export declare const Warn: Story;
|
|
4
|
+
export declare const Success: Story;
|
|
5
|
+
export declare const Error: Story;
|
|
6
|
+
export declare const WithAction: Story;
|
|
7
|
+
export declare const WithContent: Story;
|
|
8
|
+
export declare const WithActionAndContent: Story;
|
|
9
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
10
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Notification";
|
|
2
|
-
export * from "./types";
|
|
1
|
+
export * from "./Notification";
|
|
2
|
+
export * from "./types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"actionBtn" | "text" | "closeBtn" | "closeBtnInfo" | "error" | "success" | "warning" | "info" | "hiddenText" | "snackbar" | "snackbarContainer" | "snackbarAction" | "messageContainer" | "container" | "title", string>;
|
|
2
|
+
export default useStyles;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export declare type NotificationType = "info" | "success" | "error" | "warning";
|
|
3
|
-
export interface NotificationAction {
|
|
4
|
-
label: string;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface NotificationData {
|
|
8
|
-
content?: ReactNode;
|
|
9
|
-
title: string;
|
|
10
|
-
action?: NotificationAction;
|
|
11
|
-
type: NotificationType;
|
|
12
|
-
}
|
|
13
|
-
export interface NotificationProps extends NotificationData {
|
|
14
|
-
className?: string;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
}
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare type NotificationType = "info" | "success" | "error" | "warning";
|
|
3
|
+
export interface NotificationAction {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface NotificationData {
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
title: string;
|
|
10
|
+
action?: NotificationAction;
|
|
11
|
+
type: NotificationType;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationProps extends NotificationData {
|
|
14
|
+
className?: string;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./OffsettedList";
|
|
1
|
+
export * from "./OffsettedList";
|
package/dist/PageTabs/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./PageTab";
|
|
2
|
-
export * from "./PageTabs";
|
|
3
|
-
export * from "./PageTabPanel";
|
|
1
|
+
export * from "./PageTab";
|
|
2
|
+
export * from "./PageTabs";
|
|
3
|
+
export * from "./PageTabPanel";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Pagination";
|
|
2
|
-
export * from "./PaginationActions";
|
|
3
|
-
export * from "./PaginationRowNumberSelect";
|
|
4
|
-
export * from "./TablePagination";
|
|
1
|
+
export * from "./Pagination";
|
|
2
|
+
export * from "./PaginationActions";
|
|
3
|
+
export * from "./PaginationRowNumberSelect";
|
|
4
|
+
export * from "./TablePagination";
|
package/dist/PillLink/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./PillLink";
|
|
1
|
+
export * from "./PillLink";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ResponsiveTableProps {
|
|
3
|
-
children: React.ReactNode | React.ReactNodeArray;
|
|
4
|
-
className?: string;
|
|
5
|
-
key?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ResponsiveTable: React.FC<ResponsiveTableProps>;
|
|
8
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResponsiveTableProps {
|
|
3
|
+
children: React.ReactNode | React.ReactNodeArray;
|
|
4
|
+
className?: string;
|
|
5
|
+
key?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ResponsiveTable: React.FC<ResponsiveTableProps>;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ResponsiveTable";
|
|
1
|
+
export * from "./ResponsiveTable";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"root", string>;
|
|
2
|
+
export default useStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ButtonTooltipDecoratorProps {
|
|
3
|
-
tooltip?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const ButtonTooltipDecorator: React.FC<ButtonTooltipDecoratorProps>;
|
|
6
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ButtonTooltipDecoratorProps {
|
|
3
|
+
tooltip?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ButtonTooltipDecorator: React.FC<ButtonTooltipDecoratorProps>;
|
|
6
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ConfirmButtonLabels, ConfirmButtonTransitionState } from "../ConfirmButton";
|
|
3
|
-
export declare type SavebarLabels = ConfirmButtonLabels & Record<"delete" | "cancel", string>;
|
|
4
|
-
export declare type SavebarTooltips = Partial<Record<"confirm" | "delete" | "cancel", string>>;
|
|
5
|
-
export interface SavebarProps {
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
state: ConfirmButtonTransitionState;
|
|
8
|
-
labels: SavebarLabels;
|
|
9
|
-
tooltips?: SavebarTooltips;
|
|
10
|
-
onCancel: () => void;
|
|
11
|
-
onDelete?: () => void;
|
|
12
|
-
onSubmit: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const Savebar: React.FC<SavebarProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ConfirmButtonLabels, ConfirmButtonTransitionState } from "../ConfirmButton";
|
|
3
|
+
export declare type SavebarLabels = ConfirmButtonLabels & Record<"delete" | "cancel", string>;
|
|
4
|
+
export declare type SavebarTooltips = Partial<Record<"confirm" | "delete" | "cancel", string>>;
|
|
5
|
+
export interface SavebarProps {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
state: ConfirmButtonTransitionState;
|
|
8
|
+
labels: SavebarLabels;
|
|
9
|
+
tooltips?: SavebarTooltips;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
onSubmit: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Savebar: React.FC<SavebarProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Default: Story;
|
|
3
|
-
export declare const WithDelete: Story;
|
|
4
|
-
export declare const WithTooltips: Story;
|
|
5
|
-
declare const _default: Meta<import("@storybook/react").Args>;
|
|
6
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Default: Story;
|
|
3
|
+
export declare const WithDelete: Story;
|
|
4
|
+
export declare const WithTooltips: Story;
|
|
5
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
6
|
+
export default _default;
|
package/dist/Savebar/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Savebar";
|
|
1
|
+
export * from "./Savebar";
|
package/dist/Savebar/styles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) =>
|
|
2
|
-
export default useStyles;
|
|
1
|
+
declare const useStyles: (props?: any) => Record<"button" | "cancelButton" | "deleteButton" | "spacer", string>;
|
|
2
|
+
export default useStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ScrollShadow";
|
|
1
|
+
export * from "./ScrollShadow";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonProps } from "@material-ui/core/Button";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export interface ExpandButtonProps extends ButtonProps {
|
|
4
|
-
isShrunk: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const ExpandButton: React.FC<ExpandButtonProps>;
|
|
1
|
+
import { ButtonProps } from "@material-ui/core/Button";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface ExpandButtonProps extends ButtonProps {
|
|
4
|
+
isShrunk: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const ExpandButton: React.FC<ExpandButtonProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SidebarMenuItem } from "./types";
|
|
3
|
-
export interface MenuItemProps {
|
|
4
|
-
|
|
5
|
-
isMenuShrunk: boolean;
|
|
6
|
-
menuItem: SidebarMenuItem;
|
|
7
|
-
onClick: (url: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const menuWidth = 210;
|
|
10
|
-
export declare const shrunkMenuWidth = 72;
|
|
11
|
-
export declare const MenuItem: React.FC<MenuItemProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SidebarMenuItem } from "./types";
|
|
3
|
+
export interface MenuItemProps {
|
|
4
|
+
active: boolean;
|
|
5
|
+
isMenuShrunk: boolean;
|
|
6
|
+
menuItem: SidebarMenuItem;
|
|
7
|
+
onClick: (url: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const menuWidth = 210;
|
|
10
|
+
export declare const shrunkMenuWidth = 72;
|
|
11
|
+
export declare const MenuItem: React.FC<MenuItemProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseSidebarProps } from "./types";
|
|
3
|
-
export interface SidebarProps extends BaseSidebarProps {
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare const Sidebar: React.FC<SidebarProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseSidebarProps } from "./types";
|
|
3
|
+
export interface SidebarProps extends BaseSidebarProps {
|
|
4
|
+
active: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Meta, Story } from "@storybook/react";
|
|
2
|
-
export declare const Default: Story;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default _default;
|
|
1
|
+
import { Meta, Story } from "@storybook/react";
|
|
2
|
+
export declare const Default: Story;
|
|
3
|
+
export declare const WithToolbar: Story;
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SidebarMenuItem } from "./types";
|
|
2
|
-
export declare const menu: SidebarMenuItem[];
|
|
1
|
+
import { SidebarMenuItem } from "./types";
|
|
2
|
+
export declare const menu: SidebarMenuItem[];
|
package/dist/Sidebar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./Sidebar";
|
|
2
|
-
export * from "./MenuItem";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export * from "./ExpandButton";
|
|
1
|
+
export * from "./Sidebar";
|
|
2
|
+
export * from "./MenuItem";
|
|
3
|
+
export * from "./types";
|
|
4
|
+
export * from "./ExpandButton";
|
package/dist/Sidebar/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface SidebarMenuItem {
|
|
3
|
-
ariaLabel: string;
|
|
4
|
-
children?: SidebarMenuItem[];
|
|
5
|
-
iconSrc?: string;
|
|
6
|
-
label: string;
|
|
7
|
-
id: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
external?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface BaseSidebarProps {
|
|
12
|
-
className?: string;
|
|
13
|
-
menuItems: SidebarMenuItem[];
|
|
14
|
-
toolbar?: React.ReactNode;
|
|
15
|
-
onMenuItemClick: (url: string) => void;
|
|
16
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface SidebarMenuItem {
|
|
3
|
+
ariaLabel: string;
|
|
4
|
+
children?: SidebarMenuItem[];
|
|
5
|
+
iconSrc?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
id: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
external?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface BaseSidebarProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
menuItems: SidebarMenuItem[];
|
|
14
|
+
toolbar?: React.ReactNode;
|
|
15
|
+
onMenuItemClick: (url: string) => void;
|
|
16
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SidebarMenuItem } from "../Sidebar/types";
|
|
3
|
-
export interface MenuItemBtnProps {
|
|
4
|
-
menuItem: SidebarMenuItem;
|
|
5
|
-
onClick: (url: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const MenuItemBtn: React.FC<MenuItemBtnProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SidebarMenuItem } from "../Sidebar/types";
|
|
3
|
+
export interface MenuItemBtnProps {
|
|
4
|
+
menuItem: SidebarMenuItem;
|
|
5
|
+
onClick: (url: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const MenuItemBtn: React.FC<MenuItemBtnProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BaseSidebarProps } from "../Sidebar/types";
|
|
3
|
-
export declare type SideBarDrawerProps = BaseSidebarProps;
|
|
4
|
-
export declare const SidebarDrawer: React.FC<SideBarDrawerProps>;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseSidebarProps } from "../Sidebar/types";
|
|
3
|
+
export declare type SideBarDrawerProps = BaseSidebarProps;
|
|
4
|
+
export declare const SidebarDrawer: React.FC<SideBarDrawerProps>;
|