@opengeoweb/shared 9.35.1-spike-oltanstack.0 → 9.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -600,7 +600,7 @@ function _setPrototypeOf(t, e) {
600
600
  }, _setPrototypeOf(t, e);
601
601
  }
602
602
 
603
- var _excluded$d = ["content", "color", "icon"];
603
+ var _excluded$e = ["content", "color", "icon"];
604
604
  var bgColors = {
605
605
  green: 'geowebColors.functional.successOutline.fill',
606
606
  grey: 'geowebColors.functional.disabledOutline.fill',
@@ -638,7 +638,7 @@ var StatusTag = function StatusTag(_ref) {
638
638
  var content = _ref.content,
639
639
  color = _ref.color,
640
640
  icon = _ref.icon,
641
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
641
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
642
642
  return jsxs(Box, {
643
643
  display: "flex",
644
644
  alignItems: "center",
@@ -693,7 +693,7 @@ var CustomTooltip = function CustomTooltip(props) {
693
693
  }));
694
694
  };
695
695
 
696
- var _excluded$c = ["tooltipTitle", "variant", "isSelected", "shouldShowAsDisabled", "size", "children", "className", "tooltipProps"];
696
+ var _excluded$d = ["tooltipTitle", "variant", "isSelected", "shouldShowAsDisabled", "size", "children", "className", "tooltipProps"];
697
697
  var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
698
698
  var _ref$tooltipTitle = _ref.tooltipTitle,
699
699
  defaultTooltipTitle = _ref$tooltipTitle === void 0 ? '' : _ref$tooltipTitle,
@@ -708,7 +708,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
708
708
  children = _ref.children,
709
709
  className = _ref.className,
710
710
  defaultTooltipProps = _ref.tooltipProps,
711
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
711
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
712
712
  var classNames = [].concat(className ? [className] : [], isSelected ? ['Mui-selected'] : [], [variant]).join(' ');
713
713
  var tooltipTitle = (defaultTooltipProps == null ? void 0 : defaultTooltipProps.title) || defaultTooltipTitle;
714
714
  var tooltipProps = React.useMemo(function () {
@@ -745,7 +745,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
745
745
  });
746
746
  var CustomIconButton = /*#__PURE__*/React.memo(CustomIconButtonNoMemo);
747
747
 
748
- var _excluded$b = ["title", "onClose", "description", "actions", "children", "sx"];
748
+ var _excluded$c = ["title", "onClose", "description", "actions", "children", "sx"];
749
749
  var CustomDialog = function CustomDialog(_ref) {
750
750
  var title = _ref.title,
751
751
  _onClose = _ref.onClose,
@@ -755,7 +755,7 @@ var CustomDialog = function CustomDialog(_ref) {
755
755
  actions = _ref$actions === void 0 ? null : _ref$actions,
756
756
  children = _ref.children,
757
757
  sx = _ref.sx,
758
- other = _objectWithoutPropertiesLoose(_ref, _excluded$b);
758
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$c);
759
759
  return jsxs(Dialog, Object.assign({
760
760
  "data-testid": "customDialog",
761
761
  PaperProps: {
@@ -846,7 +846,7 @@ var useSharedTranslation = function useSharedTranslation() {
846
846
  return useTranslation([SHARED_NAMESPACE]);
847
847
  };
848
848
 
849
- var _excluded$a = ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content", "disableAutoFocus", "isLoading"],
849
+ var _excluded$b = ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content", "disableAutoFocus", "isLoading"],
850
850
  _excluded2$1 = ["catchOnCancel"];
851
851
  var confirmStyle = {
852
852
  width: {
@@ -880,7 +880,7 @@ var ConfirmationDialog = function ConfirmationDialog(_ref) {
880
880
  disableAutoFocus = _ref$disableAutoFocus === void 0 ? false : _ref$disableAutoFocus,
881
881
  _ref$isLoading = _ref.isLoading,
882
882
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
883
- other = _objectWithoutPropertiesLoose(_ref, _excluded$a);
883
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$b);
884
884
  other.catchOnCancel;
885
885
  var rest = _objectWithoutPropertiesLoose(other, _excluded2$1); // remove unwanted props
886
886
  var _useSharedTranslation = useSharedTranslation(),
@@ -1615,12 +1615,12 @@ var AppHeader = function AppHeader(_ref) {
1615
1615
  });
1616
1616
  };
1617
1617
 
1618
- var _excluded$9 = ["bounds", "children"];
1618
+ var _excluded$a = ["bounds", "children"];
1619
1619
  var DraggableComponent$1 = function DraggableComponent(_ref) {
1620
1620
  var _ref$bounds = _ref.bounds,
1621
1621
  bounds = _ref$bounds === void 0 ? 'body' : _ref$bounds,
1622
1622
  children = _ref.children,
1623
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1623
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1624
1624
  var onDragStart = function onDragStart(e) {
1625
1625
  // This makes sure that nothing is selected during drag
1626
1626
  e.preventDefault();
@@ -1634,7 +1634,7 @@ var DraggableComponent$1 = function DraggableComponent(_ref) {
1634
1634
  }));
1635
1635
  };
1636
1636
 
1637
- var _excluded$8 = ["children", "onResizeStart", "onResizeStop", "size", "setSize", "minHeight", "minWidth", "enable", "nodeRef"];
1637
+ var _excluded$9 = ["children", "onResizeStart", "onResizeStop", "size", "setSize", "minHeight", "minWidth", "enable", "nodeRef"];
1638
1638
  var isDraggingClassName = 'is-dragging';
1639
1639
  var useBoundsProps = function useBoundsProps(nodeRef) {
1640
1640
  var _React$useState = React__default.useState({}),
@@ -1677,7 +1677,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
1677
1677
  topLeft: true
1678
1678
  } : _ref$enable,
1679
1679
  nodeRef = _ref.nodeRef,
1680
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
1680
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1681
1681
  var theme = useTheme();
1682
1682
  var onStartResize = React__default.useCallback(function (event, _direction, node) {
1683
1683
  event.stopPropagation();
@@ -2183,7 +2183,7 @@ var ToolHeader = function ToolHeader(_ref) {
2183
2183
  });
2184
2184
  };
2185
2185
 
2186
- var _excluded$7 = ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon"];
2186
+ var _excluded$8 = ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon"];
2187
2187
  var styles$3 = {
2188
2188
  container: {
2189
2189
  overflow: 'hidden',
@@ -2222,7 +2222,7 @@ var ToolContainer = function ToolContainer(_ref) {
2222
2222
  rightHeaderComponent = _ref$rightHeaderCompo === void 0 ? null : _ref$rightHeaderCompo,
2223
2223
  dragHandleIcon = _ref.dragHandleIcon,
2224
2224
  closeIcon = _ref.closeIcon,
2225
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2225
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2226
2226
  return jsxs(Paper, Object.assign({
2227
2227
  elevation: elevation,
2228
2228
  sx: styles$3.container
@@ -2390,7 +2390,7 @@ var useHandleSizeFromOutsideComponent = function useHandleSizeFromOutsideCompone
2390
2390
  }, [isOpen, getBoundsNode]);
2391
2391
  };
2392
2392
 
2393
- var _excluded$6 = ["title", "bounds", "cancel", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "onResizeStop", "onDragEnd", "order", "source", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon", "className", "sx"];
2393
+ var _excluded$7 = ["title", "bounds", "cancel", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "onResizeStop", "onDragEnd", "order", "source", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon", "className", "sx"];
2394
2394
  // calculate dialog size and position to 85% of screensize
2395
2395
  var calculateDialogSizeAndPosition = function calculateDialogSizeAndPosition() {
2396
2396
  var width = window.innerWidth * 0.85;
@@ -2485,7 +2485,7 @@ var DraggableComponent = function DraggableComponent(_ref) {
2485
2485
  className = _ref.className,
2486
2486
  _ref$sx = _ref.sx,
2487
2487
  sx = _ref$sx === void 0 ? {} : _ref$sx,
2488
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2488
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2489
2489
  var zIndex = (source === 'app' ? BASE_Z_INDEX : 1000) + order;
2490
2490
  var elevation = BASE_ELEVATION + order;
2491
2491
  var nodeRef = React__default.useRef(null);
@@ -3385,7 +3385,7 @@ var getInitials = function getInitials(name) {
3385
3385
  }
3386
3386
  };
3387
3387
 
3388
- var _excluded$5 = ["value", "orientation", "shouldAutoFocus"];
3388
+ var _excluded$6 = ["value", "orientation", "shouldAutoFocus"];
3389
3389
  var sliderHeaderStyle = {
3390
3390
  fontFamily: 'Roboto-Black, Roboto',
3391
3391
  fontSize: 12,
@@ -3442,7 +3442,7 @@ var CustomSlider = function CustomSlider(_ref) {
3442
3442
  orientation = _ref$orientation === void 0 ? 'vertical' : _ref$orientation,
3443
3443
  _ref$shouldAutoFocus = _ref.shouldAutoFocus,
3444
3444
  shouldAutoFocus = _ref$shouldAutoFocus === void 0 ? false : _ref$shouldAutoFocus,
3445
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3445
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3446
3446
  // Add custom class (for bold text) to label adjacent to thumb component.
3447
3447
  // Material UI doesn't support highlighing only adjacent label
3448
3448
  // when track is highlighted everywhere below selected value.
@@ -3488,7 +3488,7 @@ var CustomSlider = function CustomSlider(_ref) {
3488
3488
  }, props));
3489
3489
  };
3490
3490
 
3491
- var _excluded$4 = ["variant", "className", "value"];
3491
+ var _excluded$5 = ["variant", "className", "value"];
3492
3492
  // This button is same as MUI ToggleButton but adds the variant prop
3493
3493
  var CustomToggleButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3494
3494
  var _ref$variant = _ref.variant,
@@ -3496,7 +3496,7 @@ var CustomToggleButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3496
3496
  className = _ref.className,
3497
3497
  _ref$value = _ref.value,
3498
3498
  value = _ref$value === void 0 ? 0 : _ref$value,
3499
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3499
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3500
3500
  return jsx(ToggleButton, Object.assign({
3501
3501
  ref: ref,
3502
3502
  className: variant + " " + className,
@@ -3667,7 +3667,7 @@ var ToggleMenu = function ToggleMenu(_ref) {
3667
3667
  });
3668
3668
  };
3669
3669
 
3670
- var _excluded$3 = ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "hasBackgroundColor", "variant", "additionalStyling", "skipLocalStyling"],
3670
+ var _excluded$4 = ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "hasBackgroundColor", "variant", "additionalStyling", "skipLocalStyling"],
3671
3671
  _excluded2 = ["className", "additionalStyling"];
3672
3672
  var TooltipSelect = function TooltipSelect(_ref) {
3673
3673
  var _ref$tooltip = _ref.tooltip,
@@ -3688,7 +3688,7 @@ var TooltipSelect = function TooltipSelect(_ref) {
3688
3688
  additionalStyling = _ref$additionalStylin === void 0 ? {} : _ref$additionalStylin,
3689
3689
  _ref$skipLocalStyling = _ref.skipLocalStyling,
3690
3690
  skipLocalStyling = _ref$skipLocalStyling === void 0 ? false : _ref$skipLocalStyling,
3691
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3691
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3692
3692
  var _React$useState = React.useState(false),
3693
3693
  selectOpen = _React$useState[0],
3694
3694
  setSelectOpen = _React$useState[1];
@@ -3903,7 +3903,7 @@ function withEggs(eggs) {
3903
3903
  };
3904
3904
  }
3905
3905
 
3906
- var _excluded$2 = ["title", "title2", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children", "amountOfItems"];
3906
+ var _excluded$3 = ["title", "title2", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children", "amountOfItems"];
3907
3907
  var CustomAccordion = function CustomAccordion(_ref) {
3908
3908
  var title = _ref.title,
3909
3909
  title2 = _ref.title2,
@@ -3921,7 +3921,7 @@ var CustomAccordion = function CustomAccordion(_ref) {
3921
3921
  CustomExpandIcon = _ref.CustomExpandIcon,
3922
3922
  children = _ref.children,
3923
3923
  amountOfItems = _ref.amountOfItems,
3924
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
3924
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3925
3925
  var _React$useState = React.useState(defaultExpanded),
3926
3926
  expanded = _React$useState[0],
3927
3927
  setExpanded = _React$useState[1];
@@ -4027,7 +4027,7 @@ var SearchHighlight = function SearchHighlight(_ref) {
4027
4027
  });
4028
4028
  };
4029
4029
 
4030
- var _excluded$1 = ["activeLabel", "inActiveLabel", "tooltip"];
4030
+ var _excluded$2 = ["activeLabel", "inActiveLabel", "tooltip"];
4031
4031
  var styles = {
4032
4032
  label: {
4033
4033
  color: 'geowebColors.buttons.tertiary.default.color',
@@ -4043,7 +4043,7 @@ var SwitchButton = function SwitchButton(_ref) {
4043
4043
  inActiveLabel = _ref$inActiveLabel === void 0 ? 'Viewer' : _ref$inActiveLabel,
4044
4044
  _ref$tooltip = _ref.tooltip,
4045
4045
  tooltip = _ref$tooltip === void 0 ? 'Switch mode' : _ref$tooltip,
4046
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
4046
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4047
4047
  return jsx(CustomTooltip, {
4048
4048
  title: tooltip,
4049
4049
  children: jsxs("span", {
@@ -4722,7 +4722,7 @@ var SearchField = function SearchField(_ref3) {
4722
4722
  });
4723
4723
  };
4724
4724
 
4725
- var _excluded = ["filters", "onClickFilterChip", "onSearch", "isAllSelected", "searchQuery"];
4725
+ var _excluded$1 = ["filters", "onClickFilterChip", "onSearch", "isAllSelected", "searchQuery"];
4726
4726
  var DEFAULT_FILTER_HEIGHT = 85;
4727
4727
  var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4728
4728
  var filters = _ref.filters,
@@ -4732,7 +4732,7 @@ var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4732
4732
  onSearch = _ref$onSearch === void 0 ? function () {} : _ref$onSearch,
4733
4733
  isAllSelected = _ref.isAllSelected,
4734
4734
  searchQuery = _ref.searchQuery,
4735
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
4735
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
4736
4736
  return jsx(Box, {
4737
4737
  sx: Object.assign({
4738
4738
  marginBottom: '8px'
@@ -4976,6 +4976,20 @@ var FilterOption = function FilterOption(_ref) {
4976
4976
  });
4977
4977
  };
4978
4978
 
4979
+ var _excluded = ["isDark", "children"];
4980
+ var StorybookDocsWrapper = function StorybookDocsWrapper(_ref) {
4981
+ var _ref$isDark = _ref.isDark,
4982
+ isDark = _ref$isDark === void 0 ? false : _ref$isDark,
4983
+ children = _ref.children,
4984
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
4985
+ return jsx(Box, {
4986
+ sx: Object.assign({}, isDark && {
4987
+ backgroundColor: 'geowebColors.background.surfaceBrowser'
4988
+ }, props.sx),
4989
+ children: children
4990
+ });
4991
+ };
4992
+
4979
4993
  /* *
4980
4994
  * Licensed under the Apache License, Version 2.0 (the "License");
4981
4995
  * you may not use this file except in compliance with the License.
@@ -5798,6 +5812,15 @@ var createToolkitMockStoreWithEggs = function createToolkitMockStoreWithEggs(sto
5798
5812
  store.addEggs = typeof jest !== 'undefined' ? jest.fn() : function () {}; // mocking the dynamic module loader
5799
5813
  return store;
5800
5814
  };
5815
+ var createToolkitMockStore = function createToolkitMockStore(storeConfig) {
5816
+ var reducer = storeConfig.reducer,
5817
+ preloadedState = storeConfig.preloadedState;
5818
+ var store = configureStore(Object.assign({}, storeConfig, {
5819
+ reducer: reducer,
5820
+ preloadedState: preloadedState
5821
+ }));
5822
+ return store;
5823
+ };
5801
5824
 
5802
5825
  /* *
5803
5826
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -5943,4 +5966,4 @@ var RenderCounter = /*#__PURE__*/function () {
5943
5966
  }();
5944
5967
  var renderCounter = new RenderCounter();
5945
5968
 
5946
- export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, FilterOption, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, useWheelStopPropagation, withEggs };
5969
+ export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, FilterOption, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, StorybookDocsWrapper, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createToolkitMockStore, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, useWheelStopPropagation, withEggs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "9.35.1-spike-oltanstack.0",
3
+ "version": "9.36.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,25 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const AppHeaderLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- parameters: {
10
- zeplinLink: {
11
- name: string;
12
- link: string;
13
- }[];
14
- };
15
- };
16
- export declare const AppHeaderDark: {
17
- (): React.ReactElement;
18
- tags: string[];
19
- parameters: {
20
- zeplinLink: {
21
- name: string;
22
- link: string;
23
- }[];
24
- };
25
- };
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { AppHeader } from '.';
3
+ declare const meta: Meta<typeof AppHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppHeader>;
6
+ export declare const Component: Story;
7
+ export declare const AppHeaderLight: Story;
8
+ export declare const AppHeaderDark: Story;
@@ -1,10 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ThemeLight: () => React.ReactElement;
7
- export declare const ThemeDark: {
8
- (): React.ReactElement;
9
- tags: string[];
10
- };
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import AppLayout from './AppLayout';
3
+ declare const meta: Meta<typeof AppLayout>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppLayout>;
6
+ export declare const Component: Story;
7
+ export declare const ThemeLight: Story;
8
+ export declare const ThemeDark: Story;
@@ -1,7 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const DynamicCanvas: React.FC;
7
- export declare const StaticCanvas: React.FC;
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { CanvasComponent } from './CanvasComponent';
3
+ declare const meta: Meta<typeof CanvasComponent>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CanvasComponent>;
6
+ export declare const Component: Story;
7
+ export declare const DynamicCanvas: Story;
8
+ export declare const StaticCanvas: Story;
@@ -1,13 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const CustomAccordionLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const CustomAccordionDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { CustomAccordion } from './CustomAccordion';
3
+ declare const meta: Meta<typeof CustomAccordion>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CustomAccordion>;
6
+ export declare const Component: Story;
7
+ export declare const CustomAccordionLight: Story;
8
+ export declare const CustomAccordionDark: Story;
@@ -1,25 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const CustomIconButtonLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- parameters: {
10
- zeplinLink: {
11
- name: string;
12
- link: string;
13
- }[];
14
- };
15
- };
16
- export declare const CustomIconButtonDark: {
17
- (): React.ReactElement;
18
- tags: string[];
19
- parameters: {
20
- zeplinLink: {
21
- name: string;
22
- link: string;
23
- }[];
24
- };
25
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { CustomIconButton } from './CustomIconButton';
3
+ declare const meta: Meta<typeof CustomIconButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CustomIconButton>;
6
+ export declare const Component: Story;
7
+ export declare const CustomIconButtonLight: Story;
8
+ export declare const CustomIconButtonDark: Story;
@@ -1,13 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const CustomSliderLightTheme: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const CustomSliderDarkTheme: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { CustomSlider } from './CustomSlider';
3
+ declare const meta: Meta<typeof CustomSlider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CustomSlider>;
6
+ export declare const Component: Story;
7
+ export declare const CustomSliderLightTheme: Story;
8
+ export declare const CustomSliderDarkTheme: Story;
@@ -1,13 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const CustomToggleButtonLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const CustomToggleButtonDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { CustomToggleButton } from './CustomToggleButton';
3
+ declare const meta: Meta<typeof CustomToggleButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CustomToggleButton>;
6
+ export declare const Component: Story;
7
+ export declare const CustomToggleButtonLight: Story;
8
+ export declare const CustomToggleButtonDark: Story;
@@ -1,10 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ErrorBoundaryDemo: {
7
- (): React.ReactElement;
8
- storyName: string;
9
- };
10
- export declare const ErrorBoundaryInsideBox: () => React.ReactElement;
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ErrorBoundary } from './ErrorBoundary';
3
+ declare const meta: Meta<typeof ErrorBoundary>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ErrorBoundary>;
6
+ export declare const Component: Story;
7
+ export declare const ErrorBoundaryDemo: Story;
8
+ export declare const ErrorBoundaryInsideBox: Story;
@@ -1,25 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const FilterLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- tags: string[];
15
- };
16
- export declare const FilterDark: {
17
- (): React.ReactElement;
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- tags: string[];
25
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Filter from './Filter';
3
+ declare const meta: Meta<typeof Filter>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Filter>;
6
+ export declare const Component: Story;
7
+ export declare const FilterLight: Story;
8
+ export declare const FilterDark: Story;
@@ -1,13 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const LastUpdateTimeLightTheme: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const LastUpdateTimeDarkTheme: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import LastUpdateTime from './LastUpdateTime';
3
+ declare const meta: Meta<typeof LastUpdateTime>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LastUpdateTime>;
6
+ export declare const Component: Story;
7
+ export declare const LastUpdateTimeLightTheme: Story;
8
+ export declare const LastUpdateTimeDarkTheme: Story;
@@ -1,13 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ToggleMenuLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const ToggleMenuDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ToggleMenu } from './ToggleMenu';
3
+ declare const meta: Meta<typeof ToggleMenu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ToggleMenu>;
6
+ export declare const Component: Story;
7
+ export declare const ToggleMenuLight: Story;
8
+ export declare const ToggleMenuDark: Story;
@@ -1,29 +1,16 @@
1
1
  import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- includeStories: string[];
5
- };
6
- export default _default;
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import { ToolContainer } from '.';
4
+ declare const meta: Meta<typeof ToolContainer>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof ToolContainer>;
7
+ export declare const Component: Story;
7
8
  interface ToolContainerDemoProps {
8
9
  isSnapShot?: boolean;
9
10
  }
10
- export declare const ToolContainerDemo: React.FC<ToolContainerDemoProps>;
11
- export declare const ThemeLight: {
12
- (): React.ReactElement;
13
- parameters: {
14
- zeplinLink: {
15
- name: string;
16
- link: string;
17
- }[];
18
- };
19
- };
20
- export declare const ThemeDark: {
21
- (): React.ReactElement;
11
+ export declare const ToolContainerDemo: {
12
+ ({ isSnapShot, }: ToolContainerDemoProps): React.ReactElement;
22
13
  tags: string[];
23
- parameters: {
24
- zeplinLink: {
25
- name: string;
26
- link: string;
27
- }[];
28
- };
29
14
  };
15
+ export declare const ThemeLight: Story;
16
+ export declare const ThemeDark: Story;
@@ -1,24 +1,8 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ThemeLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const ThemeDark: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ToolHeader } from '.';
3
+ declare const meta: Meta<typeof ToolHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ToolHeader>;
6
+ export declare const Component: Story;
7
+ export declare const ThemeLight: Story;
8
+ export declare const ThemeDark: Story;
@@ -1,32 +1,10 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ThemeLight: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const ThemeDark: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- zeplinLink: {
20
- name: string;
21
- link: string;
22
- }[];
23
- };
24
- };
25
- export declare const CheatSheetLight: {
26
- (): React.ReactElement;
27
- tags: string[];
28
- };
29
- export declare const CheatSheetDark: {
30
- (): React.ReactElement;
31
- tags: string[];
32
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import CheatSheet from './CheatSheet';
3
+ declare const meta: Meta<typeof CheatSheet>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CheatSheet>;
6
+ export declare const Component: Story;
7
+ export declare const ThemeLight: Story;
8
+ export declare const ThemeDark: Story;
9
+ export declare const CheatSheetLight: Story;
10
+ export declare const CheatSheetDark: Story;
@@ -1,18 +1,10 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ThemeLight: () => React.ReactElement;
7
- export declare const ThemeDark: {
8
- (): React.ReactElement;
9
- tags: string[];
10
- };
11
- export declare const UserMenuLight: {
12
- (): React.ReactElement;
13
- tags: string[];
14
- };
15
- export declare const UserMenuDark: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { UserMenu } from '.';
3
+ declare const meta: Meta<typeof UserMenu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof UserMenu>;
6
+ export declare const Component: Story;
7
+ export declare const ThemeLight: Story;
8
+ export declare const ThemeDark: Story;
9
+ export declare const UserMenuLight: Story;
10
+ export declare const UserMenuDark: Story;
@@ -24,3 +24,4 @@ export * from './SearchField';
24
24
  export * from './LastUpdateTime';
25
25
  export * from './CanvasComponent';
26
26
  export * from './Filter';
27
+ export * from './Storybook';
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const usePollerDemo: () => React.ReactElement;
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { usePoller } from './usePoller';
3
+ declare const meta: Meta<typeof usePoller>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof usePoller>;
6
+ export declare const Component: Story;
@@ -3,4 +3,5 @@ interface ToolkitStoreWithEggs extends ToolkitStore {
3
3
  addEggs?: () => void;
4
4
  }
5
5
  export declare const createToolkitMockStoreWithEggs: (storeConfig: ConfigureStoreOptions) => ToolkitStoreWithEggs;
6
+ export declare const createToolkitMockStore: (storeConfig: ConfigureStoreOptions) => ToolkitStore;
6
7
  export {};