@saleor/macaw-ui 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/dist/ActionBar/ActionBar.d.ts +8 -0
  2. package/dist/ActionBar/ActionBar.stories.d.ts +4 -0
  3. package/dist/ActionBar/context.d.ts +9 -0
  4. package/dist/ActionBar/index.d.ts +2 -0
  5. package/dist/ActionBar/styles.d.ts +2 -0
  6. package/dist/Alert/Alert.d.ts +8 -0
  7. package/dist/Alert/Alert.stories.d.ts +12 -0
  8. package/dist/Alert/AlertBase.d.ts +8 -0
  9. package/dist/Alert/index.d.ts +2 -0
  10. package/dist/Alert/styles.d.ts +2 -0
  11. package/dist/Backlink/Backlink.d.ts +8 -0
  12. package/dist/Backlink/Backlink.stories.d.ts +5 -0
  13. package/dist/Backlink/context.d.ts +5 -0
  14. package/dist/Backlink/index.d.ts +2 -0
  15. package/dist/Backlink/styles.d.ts +2 -0
  16. package/dist/BaseList/BaseList.d.ts +26 -0
  17. package/dist/BaseList/context.d.ts +7 -0
  18. package/dist/BaseList/index.d.ts +1 -0
  19. package/dist/BaseList/styles.d.ts +5 -0
  20. package/dist/Button/Button.d.ts +16 -0
  21. package/dist/Button/index.d.ts +1 -0
  22. package/dist/Button/styles.d.ts +2 -0
  23. package/dist/ConfirmButton/ConfirmButton.d.ts +11 -0
  24. package/dist/ConfirmButton/ConfirmButton.stories.d.ts +8 -0
  25. package/dist/ConfirmButton/index.d.ts +1 -0
  26. package/dist/ConfirmButton/styles.d.ts +2 -0
  27. package/dist/DialogHeader/DialogHeader.d.ts +6 -0
  28. package/dist/DialogHeader/index.d.ts +1 -0
  29. package/dist/DialogHeader/styles.d.ts +1 -0
  30. package/dist/DialogTable/DialogTable.d.ts +6 -0
  31. package/dist/DialogTable/index.d.ts +1 -0
  32. package/dist/DialogTable/styles.d.ts +1 -0
  33. package/dist/Filter/Filter.d.ts +10 -0
  34. package/dist/Filter/Filter.stories.d.ts +5 -0
  35. package/dist/Filter/FilterBar.d.ts +11 -0
  36. package/dist/Filter/FilterContent.d.ts +7 -0
  37. package/dist/Filter/FilterField/MultipleSelectFilterField.d.ts +6 -0
  38. package/dist/Filter/FilterField/RangeFilterField.d.ts +7 -0
  39. package/dist/Filter/FilterField/SelectFilterField.d.ts +6 -0
  40. package/dist/Filter/FilterField/TextFilterField.d.ts +6 -0
  41. package/dist/Filter/FilterMenu.d.ts +9 -0
  42. package/dist/Filter/context.d.ts +4 -0
  43. package/dist/Filter/index.d.ts +4 -0
  44. package/dist/Filter/styles.d.ts +2 -0
  45. package/dist/Filter/types.d.ts +49 -0
  46. package/dist/Filter/utils.d.ts +8 -0
  47. package/dist/IconButton/IconButton.d.ts +8 -0
  48. package/dist/IconButton/index.d.ts +1 -0
  49. package/dist/IconButton/partials.d.ts +14 -0
  50. package/dist/IconButton/styles.d.ts +2 -0
  51. package/dist/LayoutButton/LayoutButton.d.ts +7 -0
  52. package/dist/LayoutButton/index.d.ts +1 -0
  53. package/dist/LayoutButton/styles.d.ts +2 -0
  54. package/dist/List/List.d.ts +13 -0
  55. package/dist/List/List.stories.d.ts +5 -0
  56. package/dist/List/context.d.ts +8 -0
  57. package/dist/List/index.d.ts +1 -0
  58. package/dist/List/styles.d.ts +1 -0
  59. package/dist/Notification/Notification.d.ts +3 -0
  60. package/dist/Notification/Notification.stories.d.ts +10 -0
  61. package/dist/Notification/index.d.ts +2 -0
  62. package/dist/Notification/styles.d.ts +2 -0
  63. package/dist/Notification/types.d.ts +16 -0
  64. package/dist/OffsettedList/OffsettedList.d.ts +12 -0
  65. package/dist/OffsettedList/OffsettedList.stories.d.ts +5 -0
  66. package/dist/OffsettedList/index.d.ts +1 -0
  67. package/dist/OffsettedList/styles.d.ts +2 -0
  68. package/dist/PageTabs/PageTab.d.ts +3 -0
  69. package/dist/PageTabs/PageTab.stories.d.ts +4 -0
  70. package/dist/PageTabs/PageTabPanel.d.ts +4 -0
  71. package/dist/PageTabs/PageTabs.d.ts +5 -0
  72. package/dist/PageTabs/index.d.ts +3 -0
  73. package/dist/PageTabs/styles.d.ts +2 -0
  74. package/dist/Pagination/Pagination.d.ts +10 -0
  75. package/dist/Pagination/PaginationActions.d.ts +11 -0
  76. package/dist/Pagination/PaginationRowNumberSelect.d.ts +11 -0
  77. package/dist/Pagination/TablePagination.d.ts +6 -0
  78. package/dist/Pagination/index.d.ts +4 -0
  79. package/dist/Pagination/styles.d.ts +2 -0
  80. package/dist/PillLink/PillLink.d.ts +15 -0
  81. package/dist/PillLink/index.d.ts +1 -0
  82. package/dist/PillLink/styles.d.ts +2 -0
  83. package/dist/ResponsiveTable/ResponsiveTable.d.ts +8 -0
  84. package/dist/ResponsiveTable/index.d.ts +1 -0
  85. package/dist/ResponsiveTable/styles.d.ts +2 -0
  86. package/dist/Savebar/ButtonTooltipDecorator.d.ts +6 -0
  87. package/dist/Savebar/Savebar.d.ts +14 -0
  88. package/dist/Savebar/Savebar.stories.d.ts +6 -0
  89. package/dist/Savebar/index.d.ts +1 -0
  90. package/dist/Savebar/styles.d.ts +2 -0
  91. package/dist/ScrollShadow/ScrollShadow.d.ts +6 -0
  92. package/dist/ScrollShadow/index.d.ts +1 -0
  93. package/dist/ScrollShadow/styles.d.ts +1 -0
  94. package/dist/Sidebar/ExpandButton.d.ts +6 -0
  95. package/dist/Sidebar/MenuItem.d.ts +11 -0
  96. package/dist/Sidebar/Sidebar.d.ts +6 -0
  97. package/dist/Sidebar/Sidebar.stories.d.ts +6 -0
  98. package/dist/Sidebar/fixtures.d.ts +2 -0
  99. package/dist/Sidebar/index.d.ts +4 -0
  100. package/dist/Sidebar/types.d.ts +16 -0
  101. package/dist/SidebarDrawer/MenuItemBtn.d.ts +7 -0
  102. package/dist/SidebarDrawer/SidebarDrawer.d.ts +4 -0
  103. package/dist/SidebarDrawer/SidebarDrawer.stories.d.ts +4 -0
  104. package/dist/SidebarDrawer/index.d.ts +2 -0
  105. package/dist/SidebarDrawer/styles.d.ts +2 -0
  106. package/dist/SquareButton/SquareButton.d.ts +3 -0
  107. package/dist/SquareButton/SquareButton.stories.d.ts +5 -0
  108. package/dist/SquareButton/index.d.ts +1 -0
  109. package/dist/StatusChip/StatusChip.d.ts +3 -0
  110. package/dist/StatusChip/StatusChip.stories.d.ts +8 -0
  111. package/dist/StatusChip/index.d.ts +2 -0
  112. package/dist/StatusChip/styles.d.ts +3 -0
  113. package/dist/StatusChip/types.d.ts +8 -0
  114. package/dist/Tooltip/Tooltip.d.ts +6 -0
  115. package/dist/Tooltip/Tooltip.stories.d.ts +7 -0
  116. package/dist/Tooltip/index.d.ts +1 -0
  117. package/dist/Tooltip/styles.d.ts +3 -0
  118. package/dist/UserChipMenu/UserChipMenu.d.ts +9 -0
  119. package/dist/UserChipMenu/UserChipMenu.stories.d.ts +6 -0
  120. package/dist/UserChipMenu/UserChipMenuItem.d.ts +6 -0
  121. package/dist/UserChipMenu/context.d.ts +4 -0
  122. package/dist/UserChipMenu/index.d.ts +2 -0
  123. package/dist/UserChipMenu/styles.d.ts +2 -0
  124. package/dist/cjs/index.js +2 -2
  125. package/dist/cjs/index.js.map +3 -3
  126. package/dist/esm/index.js +2 -2
  127. package/dist/esm/index.js.map +3 -3
  128. package/dist/extensions/index.d.ts +3 -0
  129. package/dist/extensions/sendMessage.d.ts +3 -0
  130. package/dist/extensions/types.d.ts +22 -0
  131. package/dist/extensions/useExtensionMessage.d.ts +2 -0
  132. package/dist/icons/ArrowDropdownIcon.d.ts +2 -0
  133. package/dist/icons/ArrowRightIcon.d.ts +1 -0
  134. package/dist/icons/CheckboxCheckedIcon.d.ts +1 -0
  135. package/dist/icons/CheckboxIcon.d.ts +1 -0
  136. package/dist/icons/CheckboxIndeterminateIcon.d.ts +1 -0
  137. package/dist/icons/CloseIcon.d.ts +1 -0
  138. package/dist/icons/CompleteIcon.d.ts +2 -0
  139. package/dist/icons/DeleteIcon.d.ts +1 -0
  140. package/dist/icons/EditIcon.d.ts +1 -0
  141. package/dist/icons/FilteringIcon.d.ts +1 -0
  142. package/dist/icons/ImageIcon.d.ts +1 -0
  143. package/dist/icons/InfoIcon.d.ts +2 -0
  144. package/dist/icons/Logo.d.ts +2 -0
  145. package/dist/icons/LogoLight.d.ts +2 -0
  146. package/dist/icons/MoreIcon.d.ts +1 -0
  147. package/dist/icons/NavigatorIcon.d.ts +1 -0
  148. package/dist/icons/NotAllowedIcon.d.ts +2 -0
  149. package/dist/icons/NotAllowedInvertedIcon.d.ts +2 -0
  150. package/dist/icons/PlusIcon.d.ts +1 -0
  151. package/dist/icons/RadioCheckedIcon.d.ts +1 -0
  152. package/dist/icons/RadioIcon.d.ts +1 -0
  153. package/dist/icons/SearchIcon.d.ts +1 -0
  154. package/dist/icons/WarningIcon.d.ts +2 -0
  155. package/dist/icons/index.d.ts +18 -0
  156. package/dist/index.d.ts +29 -0
  157. package/dist/index.js +2 -0
  158. package/dist/index.js.map +7 -0
  159. package/dist/localStorageKeys.d.ts +4 -0
  160. package/dist/mjs/index.js +5 -0
  161. package/dist/mjs/index.js.map +7 -0
  162. package/dist/theme/Baseline.d.ts +2 -0
  163. package/dist/theme/ThemeProvider.d.ts +17 -0
  164. package/dist/theme/context.d.ts +3 -0
  165. package/dist/theme/createSaleorTheme/createSaleorTheme.d.ts +3 -0
  166. package/dist/theme/createSaleorTheme/index.d.ts +2 -0
  167. package/dist/theme/createSaleorTheme/overrides/buttons.d.ts +3 -0
  168. package/dist/theme/createSaleorTheme/overrides/controls.d.ts +3 -0
  169. package/dist/theme/createSaleorTheme/overrides/index.d.ts +3 -0
  170. package/dist/theme/createSaleorTheme/overrides/inputs.d.ts +3 -0
  171. package/dist/theme/createSaleorTheme/overrides/tables.d.ts +3 -0
  172. package/dist/theme/createSaleorTheme/palette.d.ts +2 -0
  173. package/dist/theme/createSaleorTheme/shadows.d.ts +2 -0
  174. package/dist/theme/createSaleorTheme/types.d.ts +51 -0
  175. package/dist/theme/index.d.ts +4 -0
  176. package/dist/theme/styles.d.ts +5 -0
  177. package/dist/theme/themes.d.ts +3 -0
  178. package/dist/theme/types.d.ts +6 -0
  179. package/dist/theme/utils.d.ts +1 -0
  180. package/dist/theme/utils.test.d.ts +1 -0
  181. package/dist/tools/index.d.ts +2 -0
  182. package/dist/tools/useElementScroll.d.ts +12 -0
  183. package/dist/tools/useLocalStorage.d.ts +5 -0
  184. package/dist/tools/useWindowScroll.d.ts +4 -0
  185. package/dist/types/Autocomplete/Autocomplete.d.ts +23 -0
  186. package/dist/types/Autocomplete/Autocomplete.stories.d.ts +5 -0
  187. package/dist/types/Autocomplete/fixtures.d.ts +4 -0
  188. package/dist/types/Autocomplete/index.d.ts +1 -0
  189. package/dist/types/Autocomplete/styles.d.ts +2 -0
  190. package/dist/types/Filter/FilterField/AutocompleteFilterField.d.ts +6 -0
  191. package/dist/types/Filter/FilterField/MultipleValueAutocompleteFilterField.d.ts +6 -0
  192. package/dist/types/Filter/stories/Filter.stories.d.ts +5 -0
  193. package/dist/types/Filter/stories/FilterInteractive.stories.d.ts +4 -0
  194. package/dist/types/Filter/stories/labels.d.ts +8 -0
  195. package/dist/types/Filter/styles.d.ts +1 -1
  196. package/dist/types/Filter/types.d.ts +8 -2
  197. package/dist/types/Filter/utils.d.ts +4 -1
  198. package/dist/types/MultipleValueAutocomplete/MultipleValueAutocomplete.d.ts +26 -0
  199. package/dist/types/MultipleValueAutocomplete/MultipleValueAutocomplete.stories.d.ts +6 -0
  200. package/dist/types/MultipleValueAutocomplete/fixtures.d.ts +4 -0
  201. package/dist/types/MultipleValueAutocomplete/index.d.ts +1 -0
  202. package/dist/types/MultipleValueAutocomplete/styles.d.ts +2 -0
  203. package/dist/types/MultipleValueAutocomplete/useMultipleValueAutocomplete.d.ts +32 -0
  204. package/dist/types/StatusChip/styles.d.ts +3 -0
  205. package/dist/types/SwitchSelector/SwitchSelector.d.ts +2 -0
  206. package/dist/types/SwitchSelector/SwitchSelector.stories.d.ts +4 -0
  207. package/dist/types/SwitchSelector/SwitchSelectorButton.d.ts +8 -0
  208. package/dist/types/SwitchSelector/index.d.ts +2 -0
  209. package/dist/types/index.d.ts +3 -0
  210. package/dist/types/tools/useTextWidth.d.ts +2 -0
  211. package/dist/types/utils/mergeRefs.d.ts +2 -0
  212. package/dist/types/utils/useMockAutocomplete.d.ts +10 -0
  213. package/dist/utils/Decorator.d.ts +4 -0
  214. package/dist/utils/useListStory.d.ts +21 -0
  215. package/package.json +10 -6
  216. package/src/Autocomplete/Autocomplete.stories.tsx +43 -0
  217. package/src/Autocomplete/Autocomplete.tsx +187 -0
  218. package/src/Autocomplete/fixtures.ts +122 -0
  219. package/src/Autocomplete/index.ts +1 -0
  220. package/src/Autocomplete/styles.ts +19 -0
  221. package/src/Chip/styles.ts +2 -1
  222. package/src/Filter/Filter.tsx +88 -44
  223. package/src/Filter/FilterBar.tsx +15 -9
  224. package/src/Filter/FilterContent.tsx +8 -1
  225. package/src/Filter/FilterField/AutocompleteFilterField.tsx +61 -0
  226. package/src/Filter/FilterField/MultipleSelectFilterField.tsx +6 -2
  227. package/src/Filter/FilterField/MultipleValueAutocompleteFilterField.tsx +60 -0
  228. package/src/Filter/context.tsx +1 -1
  229. package/src/Filter/{Filter.stories.tsx → stories/Filter.stories.tsx} +47 -13
  230. package/src/Filter/stories/FilterInteractive.stories.tsx +97 -0
  231. package/src/Filter/stories/labels.ts +8 -0
  232. package/src/Filter/styles.ts +37 -6
  233. package/src/Filter/types.ts +8 -1
  234. package/src/Filter/utils.ts +71 -5
  235. package/src/MultipleValueAutocomplete/MultipleValueAutocomplete.stories.tsx +76 -0
  236. package/src/MultipleValueAutocomplete/MultipleValueAutocomplete.tsx +185 -0
  237. package/src/MultipleValueAutocomplete/fixtures.ts +122 -0
  238. package/src/MultipleValueAutocomplete/index.ts +1 -0
  239. package/src/MultipleValueAutocomplete/styles.ts +39 -0
  240. package/src/MultipleValueAutocomplete/useMultipleValueAutocomplete.ts +172 -0
  241. package/src/SwitchSelector/SwitchSelector.stories.tsx +63 -0
  242. package/src/SwitchSelector/SwitchSelector.tsx +19 -0
  243. package/src/SwitchSelector/SwitchSelectorButton.tsx +59 -0
  244. package/src/SwitchSelector/index.ts +2 -0
  245. package/src/index.tsx +3 -0
  246. package/src/theme/createSaleorTheme/createSaleorTheme.tsx +1 -1
  247. package/src/tools/useTextWidth.ts +20 -0
  248. package/src/utils/mergeRefs.ts +14 -0
  249. package/src/utils/useMockAutocomplete.ts +37 -0
  250. package/dist/types/Chip/ColorSwatch.d.ts +0 -6
  251. package/dist/types/Chip/common/ChipMovable.d.ts +0 -5
  252. package/dist/types/Chip/common/ChipRemovable.d.ts +0 -6
  253. package/dist/types/Chip/common/ChipSwatch.d.ts +0 -7
  254. package/dist/types/Chip/common/index.d.ts +0 -3
  255. package/src/Chip/.DS_Store +0 -0
@@ -0,0 +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>;
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +1,2 @@
1
+ export * from "./ActionBar";
2
+ export * from "./context";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"paper" | "root" | "content">;
2
+ export default useStyles;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { AlertBaseProps, AlertVariant } from "./AlertBase";
3
+ export interface AlertProps extends AlertBaseProps {
4
+ close?: boolean;
5
+ variant: AlertVariant;
6
+ title?: string;
7
+ }
8
+ export declare const Alert: React.FC<AlertProps>;
@@ -0,0 +1,12 @@
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
+ export declare const Custom: Story;
10
+ export declare const WithoutTitle: Story;
11
+ declare const _default: Meta<import("@storybook/react").Args>;
12
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { CardProps } from "@material-ui/core/Card";
2
+ import React from "react";
3
+ export declare type AlertVariant = "error" | "warning" | "success" | "info";
4
+ export interface AlertBaseProps extends Omit<CardProps, "variant"> {
5
+ className?: string;
6
+ variant: AlertVariant;
7
+ }
8
+ export declare const AlertBase: React.FC<AlertBaseProps>;
@@ -0,0 +1,2 @@
1
+ export * from "./Alert";
2
+ export * from "./AlertBase";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"error" | "close" | "success" | "warning" | "root" | "content" | "container" | "closeNoContent" | "titleBar">;
2
+ export default useStyles;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { LayoutButtonProps } from "../LayoutButton";
3
+ export interface AppHeaderProps extends LayoutButtonProps {
4
+ children: React.ReactNode;
5
+ disabled?: boolean;
6
+ onClick: () => void;
7
+ }
8
+ export declare const Backlink: React.FC<AppHeaderProps>;
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +1,2 @@
1
+ export * from "./Backlink";
2
+ export * from "./context";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"title" | "root" | "backArrow" | "menuButton" | "skeleton">;
2
+ export default useStyles;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { ListGridTemplate } from "./styles";
3
+ export interface BaseListProps extends React.HTMLAttributes<HTMLElement> {
4
+ gridTemplate: ListGridTemplate;
5
+ }
6
+ export declare const BaseList: React.FC<BaseListProps>;
7
+ export declare type BaseListItemClassKey = "row" | "rowBody" | "rowHead" | "rowFoot" | "rowHover" | "rowBodySelected";
8
+ export interface BaseListItemProps extends React.HTMLAttributes<HTMLDivElement | HTMLLIElement> {
9
+ classes: Record<BaseListItemClassKey, string>;
10
+ hover?: boolean;
11
+ selected?: boolean;
12
+ }
13
+ export declare const BaseListItem: React.FC<BaseListItemProps>;
14
+ export declare type BaseListItemCellClassKey = "cell" | "cellBody" | "cellHeader" | "cellAction" | "cellCheckbox";
15
+ export interface BaseListItemCellProps extends React.HTMLAttributes<HTMLDivElement> {
16
+ classes: Record<BaseListItemCellClassKey, string>;
17
+ colSpan?: number;
18
+ padding?: "action" | "checkbox" | "none";
19
+ }
20
+ export declare const BaseListItemCell: React.FC<BaseListItemCellProps>;
21
+ export declare type BaseListHeaderProps = React.HTMLProps<HTMLElement>;
22
+ export declare const BaseListHeader: React.FC<BaseListHeaderProps>;
23
+ export declare type BaseListBodyProps = React.HTMLProps<HTMLUListElement>;
24
+ export declare const BaseListBody: React.FC<BaseListBodyProps>;
25
+ export declare type BaseListFooterProps = React.HTMLProps<HTMLElement>;
26
+ export declare const BaseListFooter: React.FC<BaseListFooterProps>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ListGridTemplate } from "./styles";
3
+ export declare const ListContext: import("react").Context<"body" | "head" | "foot">;
4
+ export declare const ListGridContext: import("react").Context<ListGridTemplate>;
5
+ export declare const useListContext: () => "body" | "head" | "foot";
6
+ export declare const useListGridContext: () => ListGridTemplate;
7
+ export declare function useGridStyles(): import("@material-ui/styles").ClassNameMap<"root">;
@@ -0,0 +1 @@
1
+ export * from "./BaseList";
@@ -0,0 +1,5 @@
1
+ export declare type ListGridTemplate = string[] | Record<string, string[]>;
2
+ export declare const useGridTemplateStyles: (props: {
3
+ width: ListGridTemplate;
4
+ }) => import("@material-ui/styles").ClassNameMap<"root">;
5
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"body" | "cell" | "row">;
@@ -0,0 +1,16 @@
1
+ import { ButtonProps as MuiButtonProps, ButtonTypeMap as MuiButtonTypeMap } from "@material-ui/core/Button";
2
+ import { OverridableComponent } from "@material-ui/core/OverridableComponent";
3
+ import React from "react";
4
+ export declare type ButtonVariant = "primary" | "secondary" | "tertiary";
5
+ interface ButtonInnerProps {
6
+ error?: boolean;
7
+ variant?: ButtonVariant;
8
+ }
9
+ export interface ButtonTypeMap<P = {}, D extends React.ElementType = "button"> {
10
+ props: Omit<MuiButtonTypeMap<P, D>["props"], "variant"> & ButtonInnerProps;
11
+ defaultComponent: D;
12
+ classKey: never;
13
+ }
14
+ export declare type ButtonProps<T extends React.ElementType = "button"> = Omit<MuiButtonProps<T>, "variant"> & ButtonInnerProps;
15
+ export declare const Button: OverridableComponent<ButtonTypeMap<{}, "button">>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Button";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"primary" | "secondary" | "primaryDisabled" | "secondaryDisabled" | "tertiary" | "tertiaryDisabled">;
2
+ export default useStyles;
@@ -0,0 +1,11 @@
1
+ import { ButtonProps } from "../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>;
@@ -0,0 +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;
@@ -0,0 +1 @@
1
+ export * from "./ConfirmButton";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"label" | "progress" | "error" | "success" | "icon" | "invisible">;
2
+ export default useStyles;
@@ -0,0 +1,6 @@
1
+ import { TypographyProps } from "@material-ui/core/Typography";
2
+ import React from "react";
3
+ export interface DialogHeaderProps extends TypographyProps<"h5"> {
4
+ onClose: () => void;
5
+ }
6
+ export declare const DialogHeader: React.FC<DialogHeaderProps>;
@@ -0,0 +1 @@
1
+ export * from "./DialogHeader";
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"button" | "wrapper">;
@@ -0,0 +1,6 @@
1
+ import { TableProps } from "@material-ui/core/Table";
2
+ import React from "react";
3
+ export interface DialogTableProps extends TableProps {
4
+ innerRef?: React.Ref<HTMLTableElement>;
5
+ }
6
+ export declare const DialogTable: React.ForwardRefExoticComponent<Pick<DialogTableProps, "children" | "slot" | "style" | "summary" | "title" | "dir" | "color" | "translate" | "width" | "padding" | "hidden" | "size" | "stickyHeader" | "className" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "cellPadding" | "cellSpacing"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from "./DialogTable";
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"wrapper">;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { FilterDetailedOptions, FilterLabels, FilterOptions } from "./types";
3
+ export declare type FilterProps = FilterOptions & FilterDetailedOptions;
4
+ export declare const Filter: React.FC<FilterProps>;
5
+ export interface FilterRowProps {
6
+ first: boolean;
7
+ name: string;
8
+ labels: FilterLabels;
9
+ }
10
+ export declare const FilterRow: React.FC<FilterRowProps>;
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ export declare const Default: Story;
3
+ export declare const WithInitialState: Story;
4
+ declare const _default: Meta<import("@storybook/react").Args>;
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { FilterMenuLabels } from "./FilterMenu";
3
+ import { FilterData, FilterInput, FilterLabels } from "./types";
4
+ export interface FilterBarProps {
5
+ initial?: FilterInput[];
6
+ labels: Record<"header" | "addButton", string> & FilterMenuLabels & FilterLabels;
7
+ onChange: (filterData: FilterData[]) => void;
8
+ onClose: () => void;
9
+ }
10
+ export declare const FilterBar: React.FC<FilterBarProps>;
11
+ export default FilterBar;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { FilterData, FilterLabels } from "./types";
3
+ export interface FilterContentProps {
4
+ filter: FilterData;
5
+ labels: FilterLabels;
6
+ }
7
+ export declare const FilterContent: React.FC<FilterContentProps>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { FilterData } from "../types";
3
+ export interface FilterContentProps {
4
+ filter: FilterData;
5
+ }
6
+ export declare const MultipleSelectFilterField: React.FC<FilterContentProps>;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { FilterData, FilterLabels } from "../types";
3
+ export interface FilterContentProps {
4
+ filter: FilterData;
5
+ labels: FilterLabels;
6
+ }
7
+ export declare const RangeFilterField: React.FC<FilterContentProps>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { FilterData } from "../types";
3
+ export interface FilterContentProps {
4
+ filter: FilterData;
5
+ }
6
+ export declare const SelectFilterField: React.FC<FilterContentProps>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { FilterData } from "../types";
3
+ export interface FilterContentProps {
4
+ filter: FilterData;
5
+ }
6
+ export declare const TextFilterField: React.FC<FilterContentProps>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export declare type FilterMenuLabels = Record<"header", string>;
3
+ export interface FilterMenuProps {
4
+ anchorEl: HTMLElement | null;
5
+ labels: FilterMenuLabels;
6
+ open: boolean;
7
+ onClose: () => void;
8
+ }
9
+ export declare const FilterMenu: React.FC<FilterMenuProps>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FilterContextType } from "./types";
3
+ export declare const FilterContext: import("react").Context<FilterContextType | null>;
4
+ export declare const useFilters: () => FilterContextType;
@@ -0,0 +1,4 @@
1
+ export * from "./Filter";
2
+ export * from "./FilterBar";
3
+ export * from "./types";
4
+ export * from "./utils";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"filter" | "bar" | "menuContent" | "menuHeader" | "menuPaper" | "filterChip" | "filterChipContainer" | "filterDelete" | "filterName" | "filterValue" | "filterRange" | "filterInputInner" | "filterConjunction" | "filterValueCheckbox" | "filterValueSelected" | "filterRangeLabel" | "filterRangeValueContainer" | "selectPaper">;
2
+ export default useStyles;
@@ -0,0 +1,49 @@
1
+ import { TextFieldProps } from "@material-ui/core/TextField";
2
+ export declare enum FilterType {
3
+ Text = 0,
4
+ Choice = 1,
5
+ Range = 2
6
+ }
7
+ export interface FilterDetailedOptions {
8
+ type: FilterType;
9
+ choices?: Array<Record<"label" | "value", string>>;
10
+ default?: string;
11
+ multiple?: boolean;
12
+ InputProps?: Partial<TextFieldProps>;
13
+ }
14
+ export interface FilterOptions {
15
+ name: string;
16
+ label: string;
17
+ }
18
+ export interface FilterValues {
19
+ value: string | null;
20
+ values: string[] | null;
21
+ }
22
+ export interface FilterState extends FilterValues {
23
+ active: boolean;
24
+ range: boolean;
25
+ sortIndex: number;
26
+ }
27
+ export interface FilterData extends FilterOptions, FilterState {
28
+ options: FilterDetailedOptions;
29
+ }
30
+ export interface FilterInput extends FilterValues {
31
+ name: string;
32
+ }
33
+ export interface OnFilterChangeOpts {
34
+ rangePart?: "min" | "max";
35
+ }
36
+ export interface FilterContextType {
37
+ filters: FilterData[];
38
+ set: (name: string, filter: Partial<FilterData>) => void;
39
+ register: (name: string, label: string, options: FilterDetailedOptions) => void;
40
+ toggle: (name: string) => void;
41
+ toggleRange: (name: string) => void;
42
+ unregister: (name: string) => void;
43
+ onChange: (name: string, value: string | string[], opts?: OnFilterChangeOpts) => void;
44
+ }
45
+ export declare type FilterLabels = Record<"where" | "and" | "is" | "range", string>;
46
+ export interface EventTarget<T = unknown> {
47
+ name?: string;
48
+ value: T;
49
+ }
@@ -0,0 +1,8 @@
1
+ import { FilterData, FilterDetailedOptions, FilterInput, OnFilterChangeOpts } from "./types";
2
+ export declare function getAvailableFilters(filterData: FilterData[]): FilterData[];
3
+ export declare function getActiveFilters(filterData: FilterData[]): FilterData[];
4
+ export declare function validate(filterData: FilterData[]): void;
5
+ export declare function register(filterData: FilterData[], name: string, label: string, initial: FilterInput[], options: FilterDetailedOptions): FilterData[];
6
+ export declare function change(filterData: FilterData[], name: string, value: string | string[], opts?: OnFilterChangeOpts): FilterData[];
7
+ export declare function toggle(filterData: FilterData[], name: string): FilterData[];
8
+ export declare function toggleRange(filterData: FilterData[], name: string): FilterData[];
@@ -0,0 +1,8 @@
1
+ import { IconButtonProps as MuiIconButtonProps } from "@material-ui/core/IconButton";
2
+ import React from "react";
3
+ export declare type IconButtonProps<T extends React.ElementType = "button"> = Omit<MuiIconButtonProps<T>, "variant"> & {
4
+ error?: boolean;
5
+ hoverOutline?: boolean;
6
+ variant?: "primary" | "secondary";
7
+ };
8
+ export declare const IconButton: React.FC<IconButtonProps>;
@@ -0,0 +1 @@
1
+ export * from "./IconButton";
@@ -0,0 +1,14 @@
1
+ import type { SaleorThemeColors } from "..";
2
+ export declare function getSecondaryButtonStyles(colors: SaleorThemeColors): {
3
+ "&:hover, &.Mui-focusVisible": {
4
+ color: string;
5
+ };
6
+ "&:disabled": {
7
+ color: string;
8
+ };
9
+ background: string;
10
+ borderRadius: number;
11
+ color: string;
12
+ padding: number;
13
+ transition: string;
14
+ };
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"error" | "secondary" | "disabledError" | "hoverOutline">;
2
+ export default useStyles;
@@ -0,0 +1,7 @@
1
+ import type { ButtonBaseProps } from "@material-ui/core/ButtonBase";
2
+ import React from "react";
3
+ import { UserInteraction } from "../../types/utils";
4
+ export declare type LayoutButtonProps<T extends React.ElementType = "button"> = ButtonBaseProps<T> & {
5
+ state?: UserInteraction;
6
+ };
7
+ export declare const LayoutButton: React.FC<LayoutButtonProps>;
@@ -0,0 +1 @@
1
+ export * from "./LayoutButton";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "active" | "hover">;
2
+ export default useStyles;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { BaseListBodyProps, BaseListFooterProps, BaseListHeaderProps, BaseListItemCellProps, BaseListItemProps, BaseListProps } from "../BaseList";
3
+ export declare const List: React.FC<BaseListProps>;
4
+ export declare const ListHeader: React.FC<BaseListHeaderProps>;
5
+ export declare const ListFooter: React.FC<BaseListFooterProps>;
6
+ export declare const ListBody: React.FC<BaseListBodyProps>;
7
+ export declare const ListItem: React.FC<Omit<BaseListItemProps, "classes">>;
8
+ export declare const ListItemCell: React.FC<Omit<BaseListItemCellProps, "classes">>;
9
+ export declare const ListItemCellAction: React.FC<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
10
+ export declare const useListWidths: () => {
11
+ actions: (n?: number) => string;
12
+ checkbox: string;
13
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ export declare const Default: Story;
3
+ export declare const WithActions: Story;
4
+ declare const _default: Meta<import("@storybook/react").Args>;
5
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare type ListActionContextType = (hover: boolean) => void;
3
+ export declare const ListActionContext: import("react").Context<ListActionContextType | undefined>;
4
+ export declare const useListAction: () => ListActionContextType;
5
+ export interface UseTableActionHover {
6
+ hover: boolean;
7
+ props: Record<"onMouseLeave" | "onMouseEnter", () => void>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./List";
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"cell" | "row" | "rowBody" | "rowHead" | "rowFoot" | "rowHover" | "rowBodySelected" | "cellBody" | "cellHeader" | "cellAction" | "cellCheckbox" | "rowNoPadding">;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { NotificationProps } from "./types";
3
+ export declare const Notification: React.FC<NotificationProps>;
@@ -0,0 +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;
@@ -0,0 +1,2 @@
1
+ export * from "./Notification";
2
+ export * from "./types";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"title" | "text" | "error" | "success" | "warning" | "info" | "container" | "actionBtn" | "closeBtn" | "closeBtnInfo" | "hiddenText" | "snackbar" | "snackbarContainer" | "snackbarAction" | "messageContainer">;
2
+ export default useStyles;
@@ -0,0 +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
+ }
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { BaseListBodyProps, BaseListFooterProps, BaseListHeaderProps, BaseListItemCellProps, BaseListItemProps, BaseListProps } from "../BaseList";
3
+ export declare const OffsettedList: React.FC<BaseListProps>;
4
+ export declare const OffsettedListHeader: React.FC<BaseListHeaderProps>;
5
+ export declare const OffsettedListFooter: React.FC<BaseListFooterProps>;
6
+ export declare const OffsettedListBody: React.FC<BaseListBodyProps>;
7
+ export declare const OffsettedListItem: React.FC<Omit<BaseListItemProps, "classes">>;
8
+ export declare const OffsettedListItemCell: React.FC<Omit<BaseListItemCellProps, "classes">>;
9
+ export declare const useOffsettedListWidths: () => {
10
+ actions: (n?: number) => string;
11
+ checkbox: string;
12
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ export declare const Default: Story;
3
+ export declare const WithActions: Story;
4
+ declare const _default: Meta<import("@storybook/react").Args>;
5
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from "./OffsettedList";
@@ -0,0 +1,2 @@
1
+ import { BaseListItemCellClassKey, BaseListItemClassKey } from "../BaseList";
2
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"body" | BaseListItemClassKey | BaseListItemCellClassKey>;
@@ -0,0 +1,3 @@
1
+ import { TabProps } from "@material-ui/core/Tab";
2
+ import React from "react";
3
+ export declare const PageTab: React.FC<TabProps>;
@@ -0,0 +1,4 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ export declare const Default: Story;
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare const PageTabPanel: React.FC<{
3
+ show: boolean;
4
+ }>;
@@ -0,0 +1,5 @@
1
+ import { TabsProps } from "@material-ui/core/Tabs";
2
+ import React from "react";
3
+ export declare const PageTabs: React.FC<Omit<TabsProps, "onChange"> & {
4
+ onChange: (value: string) => void;
5
+ }>;
@@ -0,0 +1,3 @@
1
+ export * from "./PageTab";
2
+ export * from "./PageTabs";
3
+ export * from "./PageTabPanel";
@@ -0,0 +1,2 @@
1
+ declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"tabRoot" | "containerRoot" | "containerFlex">;
2
+ export default useStyles;