@opengeoweb/shared 9.35.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 +66 -29
- package/package.json +1 -1
- package/src/lib/components/AlertBanner/AlertBanner.stories.d.ts +8 -13
- package/src/lib/components/AppHeader/AppHeader.stories.d.ts +8 -25
- package/src/lib/components/AppLayout/AppLayout.stories.d.ts +8 -7
- package/src/lib/components/Avatar/Avatar.d.ts +1 -1
- package/src/lib/components/Avatar/Avatar.stories.d.ts +8 -25
- package/src/lib/components/CanvasComponent/CanvasComponent.stories.d.ts +8 -7
- package/src/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +8 -2
- package/src/lib/components/CustomAccordion/CustomAccordion.stories.d.ts +8 -13
- package/src/lib/components/CustomIconButton/CustomIconButton.stories.d.ts +8 -25
- package/src/lib/components/CustomSlider/CustomSlider.stories.d.ts +8 -13
- package/src/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +8 -13
- package/src/lib/components/ErrorBoundary/ErrorBoundary.stories.d.ts +8 -10
- package/src/lib/components/Filter/Filter.stories.d.ts +8 -25
- package/src/lib/components/Filter/FilterListItem.stories.d.ts +8 -2
- package/src/lib/components/LastUpdateTime/LastUpdateTime.stories.d.ts +8 -13
- package/src/lib/components/SearchHighlight/SearchHighlight.d.ts +1 -1
- package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +8 -13
- package/src/lib/components/StatusTag/StatusTag.d.ts +8 -0
- package/src/lib/components/StatusTag/StatusTag.stories.d.ts +8 -25
- package/src/lib/components/Storybook/StorybookDocsWrapper.d.ts +7 -0
- package/src/lib/components/Storybook/index.d.ts +1 -0
- package/src/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +8 -13
- package/src/lib/components/ToolContainer/ToolContainer.stories.d.ts +11 -23
- package/src/lib/components/ToolContainer/ToolContainerDraggable.stories.d.ts +8 -2
- package/src/lib/components/ToolContainer/ToolHeader.stories.d.ts +8 -23
- package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +10 -13
- package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +10 -31
- package/src/lib/components/UserMenu/UserMenu.stories.d.ts +10 -15
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/hooks/usePoller/usePoller.stories.d.ts +6 -6
- package/src/lib/utils/reduxTestUtils/createMockStoreWithEggs.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -53,6 +53,7 @@ var en = {
|
|
|
53
53
|
"shared-shortcut-home": "Home",
|
|
54
54
|
"shared-shortcut-mouse-scroll": "+ Mouse scroll",
|
|
55
55
|
"shared-shortcut-or": "or",
|
|
56
|
+
"shared-shortcut-toggle-workspace-time-scroll": "Toggle workspace time scroll ON and OFF",
|
|
56
57
|
"shared-sentry-recording": "Sentry Recording",
|
|
57
58
|
"shared-sentry-information": "For monitoring performance and errors, GeoWeb is logging usage information. In this process, no sensitive user information will leave the browser.",
|
|
58
59
|
"shared-sentry-enable-message": "By enabling recording I understand that the recording related data will be send to Sentry´s servers for processing.",
|
|
@@ -111,6 +112,7 @@ var fi = {
|
|
|
111
112
|
"shared-shortcut-home": "Koti",
|
|
112
113
|
"shared-shortcut-mouse-scroll": "+ hiiren rulla",
|
|
113
114
|
"shared-shortcut-or": "tai",
|
|
115
|
+
"shared-shortcut-toggle-workspace-time-scroll": "Aseta työtilan ajan scrollaus päälle tai pois päältä",
|
|
114
116
|
"shared-sentry-recording": "Sentry Tallennus",
|
|
115
117
|
"shared-sentry-information": "Geoweb tallentaa tietoja sovelluksen käytöstä monitoroidakseen suorituskykyä, sekä virhetilanteita. Arkaluonteista dataa ei kerätä tai lähetetä.",
|
|
116
118
|
"shared-sentry-enable-message": "Ymmärrän, että laittamalla tallennuksen päälle tallennukseen liittyvää dataa lähetetään Sentryn palvelimille.",
|
|
@@ -169,6 +171,7 @@ var no = {
|
|
|
169
171
|
"shared-shortcut-home": "Hjem",
|
|
170
172
|
"shared-shortcut-mouse-scroll": "+ skroll",
|
|
171
173
|
"shared-shortcut-or": "eller",
|
|
174
|
+
"shared-shortcut-toggle-workspace-time-scroll": "ikke oversatt",
|
|
172
175
|
"shared-sentry-recording": "Skjermopptak av Sentry",
|
|
173
176
|
"shared-sentry-information": "GeoWeb tar opp brukerinformasjon for å monitorere ytelse og feilmeldinger. Underveis vil ingen sensitiv brukerinformasjon forlate nettleser.",
|
|
174
177
|
"shared-sentry-enable-message": "Ved å bruke skjermopptak forstår jeg at opptaksdata vil bli sendt til Sentry for analysering",
|
|
@@ -227,6 +230,7 @@ var nl = {
|
|
|
227
230
|
"shared-shortcut-home": "Home",
|
|
228
231
|
"shared-shortcut-mouse-scroll": "+ Scroll",
|
|
229
232
|
"shared-shortcut-or": "of",
|
|
233
|
+
"shared-shortcut-toggle-workspace-time-scroll": "niet vertaald",
|
|
230
234
|
"shared-sentry-recording": "Sentry Opname",
|
|
231
235
|
"shared-sentry-information": "Om performance en fouten te monitoren, registreert GeoWeb gebruiksinformatie. Tijdens dit proces verlaat geen enkele gevoelige gebruikersinformatie de browser.",
|
|
232
236
|
"shared-sentry-enable-message": "Door opname te starten, ga ik akkoord dat de opnamegerelateerde gegevens ter verwerking naar de servers van Sentry worden verzonden.",
|
|
@@ -596,7 +600,7 @@ function _setPrototypeOf(t, e) {
|
|
|
596
600
|
}, _setPrototypeOf(t, e);
|
|
597
601
|
}
|
|
598
602
|
|
|
599
|
-
var _excluded$
|
|
603
|
+
var _excluded$e = ["content", "color", "icon"];
|
|
600
604
|
var bgColors = {
|
|
601
605
|
green: 'geowebColors.functional.successOutline.fill',
|
|
602
606
|
grey: 'geowebColors.functional.disabledOutline.fill',
|
|
@@ -634,7 +638,7 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
634
638
|
var content = _ref.content,
|
|
635
639
|
color = _ref.color,
|
|
636
640
|
icon = _ref.icon,
|
|
637
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
641
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
638
642
|
return jsxs(Box, {
|
|
639
643
|
display: "flex",
|
|
640
644
|
alignItems: "center",
|
|
@@ -689,7 +693,7 @@ var CustomTooltip = function CustomTooltip(props) {
|
|
|
689
693
|
}));
|
|
690
694
|
};
|
|
691
695
|
|
|
692
|
-
var _excluded$
|
|
696
|
+
var _excluded$d = ["tooltipTitle", "variant", "isSelected", "shouldShowAsDisabled", "size", "children", "className", "tooltipProps"];
|
|
693
697
|
var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
694
698
|
var _ref$tooltipTitle = _ref.tooltipTitle,
|
|
695
699
|
defaultTooltipTitle = _ref$tooltipTitle === void 0 ? '' : _ref$tooltipTitle,
|
|
@@ -704,7 +708,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
|
704
708
|
children = _ref.children,
|
|
705
709
|
className = _ref.className,
|
|
706
710
|
defaultTooltipProps = _ref.tooltipProps,
|
|
707
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
711
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
708
712
|
var classNames = [].concat(className ? [className] : [], isSelected ? ['Mui-selected'] : [], [variant]).join(' ');
|
|
709
713
|
var tooltipTitle = (defaultTooltipProps == null ? void 0 : defaultTooltipProps.title) || defaultTooltipTitle;
|
|
710
714
|
var tooltipProps = React.useMemo(function () {
|
|
@@ -741,7 +745,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
|
741
745
|
});
|
|
742
746
|
var CustomIconButton = /*#__PURE__*/React.memo(CustomIconButtonNoMemo);
|
|
743
747
|
|
|
744
|
-
var _excluded$
|
|
748
|
+
var _excluded$c = ["title", "onClose", "description", "actions", "children", "sx"];
|
|
745
749
|
var CustomDialog = function CustomDialog(_ref) {
|
|
746
750
|
var title = _ref.title,
|
|
747
751
|
_onClose = _ref.onClose,
|
|
@@ -751,7 +755,7 @@ var CustomDialog = function CustomDialog(_ref) {
|
|
|
751
755
|
actions = _ref$actions === void 0 ? null : _ref$actions,
|
|
752
756
|
children = _ref.children,
|
|
753
757
|
sx = _ref.sx,
|
|
754
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
758
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
755
759
|
return jsxs(Dialog, Object.assign({
|
|
756
760
|
"data-testid": "customDialog",
|
|
757
761
|
PaperProps: {
|
|
@@ -842,7 +846,7 @@ var useSharedTranslation = function useSharedTranslation() {
|
|
|
842
846
|
return useTranslation([SHARED_NAMESPACE]);
|
|
843
847
|
};
|
|
844
848
|
|
|
845
|
-
var _excluded$
|
|
849
|
+
var _excluded$b = ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content", "disableAutoFocus", "isLoading"],
|
|
846
850
|
_excluded2$1 = ["catchOnCancel"];
|
|
847
851
|
var confirmStyle = {
|
|
848
852
|
width: {
|
|
@@ -876,7 +880,7 @@ var ConfirmationDialog = function ConfirmationDialog(_ref) {
|
|
|
876
880
|
disableAutoFocus = _ref$disableAutoFocus === void 0 ? false : _ref$disableAutoFocus,
|
|
877
881
|
_ref$isLoading = _ref.isLoading,
|
|
878
882
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
879
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
883
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
880
884
|
other.catchOnCancel;
|
|
881
885
|
var rest = _objectWithoutPropertiesLoose(other, _excluded2$1); // remove unwanted props
|
|
882
886
|
var _useSharedTranslation = useSharedTranslation(),
|
|
@@ -1611,12 +1615,12 @@ var AppHeader = function AppHeader(_ref) {
|
|
|
1611
1615
|
});
|
|
1612
1616
|
};
|
|
1613
1617
|
|
|
1614
|
-
var _excluded$
|
|
1618
|
+
var _excluded$a = ["bounds", "children"];
|
|
1615
1619
|
var DraggableComponent$1 = function DraggableComponent(_ref) {
|
|
1616
1620
|
var _ref$bounds = _ref.bounds,
|
|
1617
1621
|
bounds = _ref$bounds === void 0 ? 'body' : _ref$bounds,
|
|
1618
1622
|
children = _ref.children,
|
|
1619
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1623
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
1620
1624
|
var onDragStart = function onDragStart(e) {
|
|
1621
1625
|
// This makes sure that nothing is selected during drag
|
|
1622
1626
|
e.preventDefault();
|
|
@@ -1630,7 +1634,7 @@ var DraggableComponent$1 = function DraggableComponent(_ref) {
|
|
|
1630
1634
|
}));
|
|
1631
1635
|
};
|
|
1632
1636
|
|
|
1633
|
-
var _excluded$
|
|
1637
|
+
var _excluded$9 = ["children", "onResizeStart", "onResizeStop", "size", "setSize", "minHeight", "minWidth", "enable", "nodeRef"];
|
|
1634
1638
|
var isDraggingClassName = 'is-dragging';
|
|
1635
1639
|
var useBoundsProps = function useBoundsProps(nodeRef) {
|
|
1636
1640
|
var _React$useState = React__default.useState({}),
|
|
@@ -1673,7 +1677,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
|
|
|
1673
1677
|
topLeft: true
|
|
1674
1678
|
} : _ref$enable,
|
|
1675
1679
|
nodeRef = _ref.nodeRef,
|
|
1676
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1680
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
1677
1681
|
var theme = useTheme();
|
|
1678
1682
|
var onStartResize = React__default.useCallback(function (event, _direction, node) {
|
|
1679
1683
|
event.stopPropagation();
|
|
@@ -2179,7 +2183,7 @@ var ToolHeader = function ToolHeader(_ref) {
|
|
|
2179
2183
|
});
|
|
2180
2184
|
};
|
|
2181
2185
|
|
|
2182
|
-
var _excluded$
|
|
2186
|
+
var _excluded$8 = ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName", "leftHeaderComponent", "rightHeaderComponent", "dragHandleIcon", "closeIcon"];
|
|
2183
2187
|
var styles$3 = {
|
|
2184
2188
|
container: {
|
|
2185
2189
|
overflow: 'hidden',
|
|
@@ -2218,7 +2222,7 @@ var ToolContainer = function ToolContainer(_ref) {
|
|
|
2218
2222
|
rightHeaderComponent = _ref$rightHeaderCompo === void 0 ? null : _ref$rightHeaderCompo,
|
|
2219
2223
|
dragHandleIcon = _ref.dragHandleIcon,
|
|
2220
2224
|
closeIcon = _ref.closeIcon,
|
|
2221
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2225
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2222
2226
|
return jsxs(Paper, Object.assign({
|
|
2223
2227
|
elevation: elevation,
|
|
2224
2228
|
sx: styles$3.container
|
|
@@ -2386,7 +2390,7 @@ var useHandleSizeFromOutsideComponent = function useHandleSizeFromOutsideCompone
|
|
|
2386
2390
|
}, [isOpen, getBoundsNode]);
|
|
2387
2391
|
};
|
|
2388
2392
|
|
|
2389
|
-
var _excluded$
|
|
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"];
|
|
2390
2394
|
// calculate dialog size and position to 85% of screensize
|
|
2391
2395
|
var calculateDialogSizeAndPosition = function calculateDialogSizeAndPosition() {
|
|
2392
2396
|
var width = window.innerWidth * 0.85;
|
|
@@ -2481,7 +2485,7 @@ var DraggableComponent = function DraggableComponent(_ref) {
|
|
|
2481
2485
|
className = _ref.className,
|
|
2482
2486
|
_ref$sx = _ref.sx,
|
|
2483
2487
|
sx = _ref$sx === void 0 ? {} : _ref$sx,
|
|
2484
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2488
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
2485
2489
|
var zIndex = (source === 'app' ? BASE_Z_INDEX : 1000) + order;
|
|
2486
2490
|
var elevation = BASE_ELEVATION + order;
|
|
2487
2491
|
var nodeRef = React__default.useRef(null);
|
|
@@ -2950,6 +2954,16 @@ var ShortcutList = function ShortcutList(_ref) {
|
|
|
2950
2954
|
children: "l"
|
|
2951
2955
|
})]
|
|
2952
2956
|
})
|
|
2957
|
+
}, {
|
|
2958
|
+
titleKey: 'shared-shortcut-toggle-workspace-time-scroll',
|
|
2959
|
+
description: jsx(ShortCutSegment, {
|
|
2960
|
+
type: "icon",
|
|
2961
|
+
children: "S"
|
|
2962
|
+
}),
|
|
2963
|
+
descriptionMac: jsx(ShortCutSegment, {
|
|
2964
|
+
type: "icon",
|
|
2965
|
+
children: "S"
|
|
2966
|
+
})
|
|
2953
2967
|
}];
|
|
2954
2968
|
return jsx(List, {
|
|
2955
2969
|
"data-testid": "list-" + platform,
|
|
@@ -3371,7 +3385,7 @@ var getInitials = function getInitials(name) {
|
|
|
3371
3385
|
}
|
|
3372
3386
|
};
|
|
3373
3387
|
|
|
3374
|
-
var _excluded$
|
|
3388
|
+
var _excluded$6 = ["value", "orientation", "shouldAutoFocus"];
|
|
3375
3389
|
var sliderHeaderStyle = {
|
|
3376
3390
|
fontFamily: 'Roboto-Black, Roboto',
|
|
3377
3391
|
fontSize: 12,
|
|
@@ -3428,7 +3442,7 @@ var CustomSlider = function CustomSlider(_ref) {
|
|
|
3428
3442
|
orientation = _ref$orientation === void 0 ? 'vertical' : _ref$orientation,
|
|
3429
3443
|
_ref$shouldAutoFocus = _ref.shouldAutoFocus,
|
|
3430
3444
|
shouldAutoFocus = _ref$shouldAutoFocus === void 0 ? false : _ref$shouldAutoFocus,
|
|
3431
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3445
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3432
3446
|
// Add custom class (for bold text) to label adjacent to thumb component.
|
|
3433
3447
|
// Material UI doesn't support highlighing only adjacent label
|
|
3434
3448
|
// when track is highlighted everywhere below selected value.
|
|
@@ -3474,7 +3488,7 @@ var CustomSlider = function CustomSlider(_ref) {
|
|
|
3474
3488
|
}, props));
|
|
3475
3489
|
};
|
|
3476
3490
|
|
|
3477
|
-
var _excluded$
|
|
3491
|
+
var _excluded$5 = ["variant", "className", "value"];
|
|
3478
3492
|
// This button is same as MUI ToggleButton but adds the variant prop
|
|
3479
3493
|
var CustomToggleButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3480
3494
|
var _ref$variant = _ref.variant,
|
|
@@ -3482,7 +3496,7 @@ var CustomToggleButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3482
3496
|
className = _ref.className,
|
|
3483
3497
|
_ref$value = _ref.value,
|
|
3484
3498
|
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
3485
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3499
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
3486
3500
|
return jsx(ToggleButton, Object.assign({
|
|
3487
3501
|
ref: ref,
|
|
3488
3502
|
className: variant + " " + className,
|
|
@@ -3653,7 +3667,7 @@ var ToggleMenu = function ToggleMenu(_ref) {
|
|
|
3653
3667
|
});
|
|
3654
3668
|
};
|
|
3655
3669
|
|
|
3656
|
-
var _excluded$
|
|
3670
|
+
var _excluded$4 = ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "hasBackgroundColor", "variant", "additionalStyling", "skipLocalStyling"],
|
|
3657
3671
|
_excluded2 = ["className", "additionalStyling"];
|
|
3658
3672
|
var TooltipSelect = function TooltipSelect(_ref) {
|
|
3659
3673
|
var _ref$tooltip = _ref.tooltip,
|
|
@@ -3674,7 +3688,7 @@ var TooltipSelect = function TooltipSelect(_ref) {
|
|
|
3674
3688
|
additionalStyling = _ref$additionalStylin === void 0 ? {} : _ref$additionalStylin,
|
|
3675
3689
|
_ref$skipLocalStyling = _ref.skipLocalStyling,
|
|
3676
3690
|
skipLocalStyling = _ref$skipLocalStyling === void 0 ? false : _ref$skipLocalStyling,
|
|
3677
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3691
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3678
3692
|
var _React$useState = React.useState(false),
|
|
3679
3693
|
selectOpen = _React$useState[0],
|
|
3680
3694
|
setSelectOpen = _React$useState[1];
|
|
@@ -3889,7 +3903,7 @@ function withEggs(eggs) {
|
|
|
3889
3903
|
};
|
|
3890
3904
|
}
|
|
3891
3905
|
|
|
3892
|
-
var _excluded$
|
|
3906
|
+
var _excluded$3 = ["title", "title2", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children", "amountOfItems"];
|
|
3893
3907
|
var CustomAccordion = function CustomAccordion(_ref) {
|
|
3894
3908
|
var title = _ref.title,
|
|
3895
3909
|
title2 = _ref.title2,
|
|
@@ -3907,7 +3921,7 @@ var CustomAccordion = function CustomAccordion(_ref) {
|
|
|
3907
3921
|
CustomExpandIcon = _ref.CustomExpandIcon,
|
|
3908
3922
|
children = _ref.children,
|
|
3909
3923
|
amountOfItems = _ref.amountOfItems,
|
|
3910
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3924
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3911
3925
|
var _React$useState = React.useState(defaultExpanded),
|
|
3912
3926
|
expanded = _React$useState[0],
|
|
3913
3927
|
setExpanded = _React$useState[1];
|
|
@@ -4013,7 +4027,7 @@ var SearchHighlight = function SearchHighlight(_ref) {
|
|
|
4013
4027
|
});
|
|
4014
4028
|
};
|
|
4015
4029
|
|
|
4016
|
-
var _excluded$
|
|
4030
|
+
var _excluded$2 = ["activeLabel", "inActiveLabel", "tooltip"];
|
|
4017
4031
|
var styles = {
|
|
4018
4032
|
label: {
|
|
4019
4033
|
color: 'geowebColors.buttons.tertiary.default.color',
|
|
@@ -4029,7 +4043,7 @@ var SwitchButton = function SwitchButton(_ref) {
|
|
|
4029
4043
|
inActiveLabel = _ref$inActiveLabel === void 0 ? 'Viewer' : _ref$inActiveLabel,
|
|
4030
4044
|
_ref$tooltip = _ref.tooltip,
|
|
4031
4045
|
tooltip = _ref$tooltip === void 0 ? 'Switch mode' : _ref$tooltip,
|
|
4032
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4046
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4033
4047
|
return jsx(CustomTooltip, {
|
|
4034
4048
|
title: tooltip,
|
|
4035
4049
|
children: jsxs("span", {
|
|
@@ -4708,7 +4722,7 @@ var SearchField = function SearchField(_ref3) {
|
|
|
4708
4722
|
});
|
|
4709
4723
|
};
|
|
4710
4724
|
|
|
4711
|
-
var _excluded = ["filters", "onClickFilterChip", "onSearch", "isAllSelected", "searchQuery"];
|
|
4725
|
+
var _excluded$1 = ["filters", "onClickFilterChip", "onSearch", "isAllSelected", "searchQuery"];
|
|
4712
4726
|
var DEFAULT_FILTER_HEIGHT = 85;
|
|
4713
4727
|
var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4714
4728
|
var filters = _ref.filters,
|
|
@@ -4718,7 +4732,7 @@ var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4718
4732
|
onSearch = _ref$onSearch === void 0 ? function () {} : _ref$onSearch,
|
|
4719
4733
|
isAllSelected = _ref.isAllSelected,
|
|
4720
4734
|
searchQuery = _ref.searchQuery,
|
|
4721
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
4735
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
4722
4736
|
return jsx(Box, {
|
|
4723
4737
|
sx: Object.assign({
|
|
4724
4738
|
marginBottom: '8px'
|
|
@@ -4962,6 +4976,20 @@ var FilterOption = function FilterOption(_ref) {
|
|
|
4962
4976
|
});
|
|
4963
4977
|
};
|
|
4964
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
|
+
|
|
4965
4993
|
/* *
|
|
4966
4994
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4967
4995
|
* you may not use this file except in compliance with the License.
|
|
@@ -5784,6 +5812,15 @@ var createToolkitMockStoreWithEggs = function createToolkitMockStoreWithEggs(sto
|
|
|
5784
5812
|
store.addEggs = typeof jest !== 'undefined' ? jest.fn() : function () {}; // mocking the dynamic module loader
|
|
5785
5813
|
return store;
|
|
5786
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
|
+
};
|
|
5787
5824
|
|
|
5788
5825
|
/* *
|
|
5789
5826
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -5929,4 +5966,4 @@ var RenderCounter = /*#__PURE__*/function () {
|
|
|
5929
5966
|
}();
|
|
5930
5967
|
var renderCounter = new RenderCounter();
|
|
5931
5968
|
|
|
5932
|
-
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,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const AlertBannersDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import AlertBanner from './AlertBanner';
|
|
3
|
+
declare const meta: Meta<typeof AlertBanner>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AlertBanner>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const AlertBannersLight: Story;
|
|
8
|
+
export declare const AlertBannersDark: Story;
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const AppHeaderLight: {
|
|
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,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
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,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const AvatarDark: {
|
|
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 Avatar from './Avatar';
|
|
3
|
+
declare const meta: Meta<typeof Avatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Avatar>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const AvatarLight: Story;
|
|
8
|
+
export declare const AvatarDark: Story;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
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;
|
|
@@ -3,8 +3,14 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const ConfirmationDialogCustom:
|
|
7
|
-
|
|
6
|
+
export declare const ConfirmationDialogCustom: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const ConfirmationDialogLoading: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
8
14
|
export declare const ConfirmationDialogLight: {
|
|
9
15
|
(): React.ReactElement;
|
|
10
16
|
tags: string[];
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
@@ -3,5 +3,11 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const FilterListItemLight:
|
|
7
|
-
|
|
6
|
+
export declare const FilterListItemLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const FilterListItemDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const SearchHighlightDarkTheme: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SearchHighlight from './SearchHighlight';
|
|
3
|
+
declare const meta: Meta<typeof SearchHighlight>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SearchHighlight>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const SearchHighlightLightTheme: Story;
|
|
8
|
+
export declare const SearchHighlightDarkTheme: Story;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
+
export declare const bgColors: {
|
|
4
|
+
green: string;
|
|
5
|
+
grey: string;
|
|
6
|
+
purple: string;
|
|
7
|
+
red: string;
|
|
8
|
+
yellow: string;
|
|
9
|
+
blue: string;
|
|
10
|
+
};
|
|
3
11
|
interface StatusTagProps extends BoxProps {
|
|
4
12
|
content: string;
|
|
5
13
|
color: string;
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const StatusTagsDark: {
|
|
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 StatusTag from './StatusTag';
|
|
3
|
+
declare const meta: Meta<typeof StatusTag>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof StatusTag>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const StatusTagsLight: Story;
|
|
8
|
+
export declare const StatusTagsDark: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StorybookDocsWrapper';
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
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,28 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
parameters: {
|
|
14
|
-
zeplinLink: {
|
|
15
|
-
name: string;
|
|
16
|
-
link: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export declare const ThemeDark: {
|
|
21
|
-
(): React.ReactElement;
|
|
22
|
-
parameters: {
|
|
23
|
-
zeplinLink: {
|
|
24
|
-
name: string;
|
|
25
|
-
link: string;
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
11
|
+
export declare const ToolContainerDemo: {
|
|
12
|
+
({ isSnapShot, }: ToolContainerDemoProps): React.ReactElement;
|
|
13
|
+
tags: string[];
|
|
28
14
|
};
|
|
15
|
+
export declare const ThemeLight: Story;
|
|
16
|
+
export declare const ThemeDark: Story;
|
|
@@ -3,5 +3,11 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const ThemeLight:
|
|
7
|
-
|
|
6
|
+
export declare const ThemeLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const ThemeDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
zeplinLink: {
|
|
10
|
-
name: string;
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const ThemeDark: {
|
|
16
|
-
(): React.ReactElement;
|
|
17
|
-
parameters: {
|
|
18
|
-
zeplinLink: {
|
|
19
|
-
name: string;
|
|
20
|
-
link: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
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,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const TooltipSelectDark:
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TooltipSelect } from './TooltipSelect';
|
|
3
|
+
declare const meta: Meta<typeof TooltipSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TooltipSelect>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const TooltipSelectLightDemo: Story;
|
|
8
|
+
export declare const TooltipSelectDarkDemo: Story;
|
|
9
|
+
export declare const TooltipSelectLight: Story;
|
|
10
|
+
export declare const TooltipSelectDark: Story;
|
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
link: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const ThemeDark: {
|
|
16
|
-
(): React.ReactElement;
|
|
17
|
-
parameters: {
|
|
18
|
-
zeplinLink: {
|
|
19
|
-
name: string;
|
|
20
|
-
link: string;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const CheatSheetLight: {
|
|
25
|
-
(): React.ReactElement;
|
|
26
|
-
tags: string[];
|
|
27
|
-
};
|
|
28
|
-
export declare const CheatSheetDark: {
|
|
29
|
-
(): React.ReactElement;
|
|
30
|
-
tags: string[];
|
|
31
|
-
};
|
|
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,15 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
export declare const UserMenuDark: {
|
|
13
|
-
(): React.ReactElement;
|
|
14
|
-
tags: string[];
|
|
15
|
-
};
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
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 {};
|