@ssa-ui-kit/core 2.1.0-canary-afe713f-20250306 → 2.1.1-canary-2f77c98-20250310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Drawer/DrawerCloseButton.d.ts +5 -0
- package/dist/components/Drawer/DrawerContent.d.ts +3 -0
- package/dist/components/Drawer/DrawerHeader.d.ts +4 -0
- package/dist/components/Drawer/DrawerOverlay.d.ts +4 -0
- package/dist/components/Drawer/DrawerPortal.d.ts +2 -0
- package/dist/components/Drawer/DrawerProvider.d.ts +8 -0
- package/dist/components/Drawer/DrawerRoot.d.ts +6 -0
- package/dist/components/Drawer/DrawerTitle.d.ts +4 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.parts.d.ts +7 -0
- package/dist/components/Drawer/useDrawer.d.ts +48 -0
- package/dist/components/Field/index.d.ts +3 -3
- package/dist/components/Field/index.parts.d.ts +2 -2
- package/dist/components/FiltersMultiSelect/index.d.ts +4 -4
- package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -1
- package/dist/components/NestedTable/components/NestedTableCellSubHeader.d.ts +2 -1
- package/dist/components/NestedTable/components/NestedTableRow.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +442 -167
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -85,24 +85,18 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
85
85
|
CollapsibleNavBarProvider: () => (/* reexport */ CollapsibleNavBarProvider),
|
|
86
86
|
ColorPicker: () => (/* reexport */ ColorPicker_ColorPicker),
|
|
87
87
|
DatePicker: () => (/* reexport */ DatePicker),
|
|
88
|
+
Drawer: () => (/* reexport */ index_parts_namespaceObject),
|
|
88
89
|
Dropdown: () => (/* reexport */ Dropdown_Dropdown),
|
|
89
90
|
DropdownArrow: () => (/* reexport */ DropdownArrow_DropdownArrow),
|
|
90
91
|
DropdownBase: () => (/* reexport */ components_DropdownBase_DropdownBase),
|
|
91
92
|
DropdownOption: () => (/* reexport */ DropdownOption_DropdownOption),
|
|
92
93
|
DropdownOptions: () => (/* reexport */ DropdownOptions_DropdownOptions),
|
|
93
94
|
DropdownToggle: () => (/* reexport */ DropdownToggle_DropdownToggle),
|
|
94
|
-
FieldControlProps: () => (/* reexport */ FieldControl_namespaceObject.FieldControlProps),
|
|
95
|
-
FieldLabelProps: () => (/* reexport */ FieldLabel_namespaceObject.FieldLabelProps),
|
|
96
|
-
FieldProps: () => (/* reexport */ FieldRoot_namespaceObject.FieldRootProps),
|
|
97
|
-
Filter: () => (/* reexport */ useFiltersMultiSelect_namespaceObject.Filter),
|
|
98
95
|
Filters: () => (/* reexport */ Filters),
|
|
99
96
|
FiltersMultiSelect: () => (/* reexport */ FiltersMultiSelect),
|
|
100
97
|
FiltersMultiSelectEmpty: () => (/* reexport */ FiltersMultiSelectEmpty),
|
|
101
|
-
FiltersMultiSelectEmptyProps: () => (/* reexport */ FiltersMultiSelectEmpty_namespaceObject.FiltersMultiSelectEmptyProps),
|
|
102
98
|
FiltersMultiSelectOption: () => (/* reexport */ FiltersMultiSelectOption),
|
|
103
|
-
FiltersMultiSelectOptionProps: () => (/* reexport */ FiltersMultiSelectOption_namespaceObject.FiltersMultiSelectOptionProps),
|
|
104
99
|
FiltersMultiSelectOptions: () => (/* reexport */ FiltersMultiSelectOptions),
|
|
105
|
-
FiltersMultiSelectProps: () => (/* reexport */ FiltersMultiSelect_namespaceObject.FiltersMultiSelectProps),
|
|
106
100
|
Form: () => (/* reexport */ Form_Form),
|
|
107
101
|
FormAction: () => (/* reexport */ FormAction_FormAction),
|
|
108
102
|
FormCheckbox: () => (/* reexport */ FormCheckbox_FormCheckbox),
|
|
@@ -167,7 +161,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
167
161
|
SearchBoxWrapper: () => (/* reexport */ SearchBoxWrapper),
|
|
168
162
|
SegmentedPieChart: () => (/* reexport */ SegmentedPieChart),
|
|
169
163
|
SegmentedPieChartComponent: () => (/* reexport */ SegmentedPieChartComponent),
|
|
170
|
-
SelectedFilter: () => (/* reexport */ useFiltersMultiSelect_namespaceObject.SelectedFilter),
|
|
171
164
|
SimpleChartTooltip: () => (/* reexport */ SimpleChartTooltip),
|
|
172
165
|
Step: () => (/* reexport */ Step_Step),
|
|
173
166
|
StepConnector: () => (/* reexport */ StepConnector_StepConnector),
|
|
@@ -210,6 +203,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
210
203
|
TypeaheadOption: () => (/* reexport */ TypeaheadOption_TypeaheadOption),
|
|
211
204
|
TypeaheadOptions: () => (/* reexport */ TypeaheadOptions),
|
|
212
205
|
Typography: () => (/* reexport */ Typography_Typography),
|
|
206
|
+
UseDrawerOptions: () => (/* reexport */ useDrawer_namespaceObject.UseDrawerOptions),
|
|
213
207
|
UserProfile: () => (/* reexport */ UserProfile),
|
|
214
208
|
WidgetCard: () => (/* reexport */ WidgetCard),
|
|
215
209
|
WidgetCardBase: () => (/* reexport */ WidgetCardBase),
|
|
@@ -237,6 +231,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
237
231
|
styles: () => (/* reexport */ Tooltip_styles_namespaceObject),
|
|
238
232
|
useAccordionGroupContext: () => (/* reexport */ useAccordionGroupContext),
|
|
239
233
|
useCollapsibleNavBarContext: () => (/* reexport */ useCollapsibleNavBarContext),
|
|
234
|
+
useDrawer: () => (/* reexport */ useDrawer),
|
|
240
235
|
useFieldContext: () => (/* reexport */ useFieldContext),
|
|
241
236
|
useFilterMultiSelect: () => (/* reexport */ useFilterMultiSelect),
|
|
242
237
|
useFullscreenMode: () => (/* reexport */ useFullscreenMode),
|
|
@@ -888,53 +883,24 @@ __webpack_require__.d(Tooltip_styles_namespaceObject, {
|
|
|
888
883
|
small: () => (Tooltip_styles_small)
|
|
889
884
|
});
|
|
890
885
|
|
|
891
|
-
// NAMESPACE OBJECT: ./src/components/
|
|
892
|
-
var
|
|
893
|
-
__webpack_require__.r(
|
|
894
|
-
__webpack_require__.d(
|
|
895
|
-
|
|
886
|
+
// NAMESPACE OBJECT: ./src/components/Drawer/useDrawer.tsx
|
|
887
|
+
var useDrawer_namespaceObject = {};
|
|
888
|
+
__webpack_require__.r(useDrawer_namespaceObject);
|
|
889
|
+
__webpack_require__.d(useDrawer_namespaceObject, {
|
|
890
|
+
b: () => (useDrawer)
|
|
896
891
|
});
|
|
897
892
|
|
|
898
|
-
// NAMESPACE OBJECT: ./src/components/
|
|
899
|
-
var
|
|
900
|
-
__webpack_require__.r(
|
|
901
|
-
__webpack_require__.d(
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
s: () => (FieldControl)
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
// NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/useFiltersMultiSelect.tsx
|
|
913
|
-
var useFiltersMultiSelect_namespaceObject = {};
|
|
914
|
-
__webpack_require__.r(useFiltersMultiSelect_namespaceObject);
|
|
915
|
-
__webpack_require__.d(useFiltersMultiSelect_namespaceObject, {
|
|
916
|
-
j: () => (useFilterMultiSelect)
|
|
917
|
-
});
|
|
918
|
-
|
|
919
|
-
// NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/components/FiltersMultiSelectEmpty.tsx
|
|
920
|
-
var FiltersMultiSelectEmpty_namespaceObject = {};
|
|
921
|
-
__webpack_require__.r(FiltersMultiSelectEmpty_namespaceObject);
|
|
922
|
-
__webpack_require__.d(FiltersMultiSelectEmpty_namespaceObject, {
|
|
923
|
-
S: () => (FiltersMultiSelectEmpty)
|
|
924
|
-
});
|
|
925
|
-
|
|
926
|
-
// NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/FiltersMultiSelect.tsx
|
|
927
|
-
var FiltersMultiSelect_namespaceObject = {};
|
|
928
|
-
__webpack_require__.r(FiltersMultiSelect_namespaceObject);
|
|
929
|
-
__webpack_require__.d(FiltersMultiSelect_namespaceObject, {
|
|
930
|
-
p: () => (FiltersMultiSelect)
|
|
931
|
-
});
|
|
932
|
-
|
|
933
|
-
// NAMESPACE OBJECT: ./src/components/FiltersMultiSelect/components/FiltersMultiSelectOption.tsx
|
|
934
|
-
var FiltersMultiSelectOption_namespaceObject = {};
|
|
935
|
-
__webpack_require__.r(FiltersMultiSelectOption_namespaceObject);
|
|
936
|
-
__webpack_require__.d(FiltersMultiSelectOption_namespaceObject, {
|
|
937
|
-
u: () => (FiltersMultiSelectOption)
|
|
893
|
+
// NAMESPACE OBJECT: ./src/components/Drawer/index.parts.ts
|
|
894
|
+
var index_parts_namespaceObject = {};
|
|
895
|
+
__webpack_require__.r(index_parts_namespaceObject);
|
|
896
|
+
__webpack_require__.d(index_parts_namespaceObject, {
|
|
897
|
+
CloseButton: () => (DrawerCloseButton),
|
|
898
|
+
Content: () => (DrawerContent),
|
|
899
|
+
Header: () => (DrawerHeader),
|
|
900
|
+
Overlay: () => (DrawerOverlay),
|
|
901
|
+
Portal: () => (DrawerPortal),
|
|
902
|
+
Root: () => (Drawer),
|
|
903
|
+
Title: () => (DrawerTitle)
|
|
938
904
|
});
|
|
939
905
|
|
|
940
906
|
// NAMESPACE OBJECT: ./src/components/Charts/PieChart/colorPalettes.ts
|
|
@@ -9910,132 +9876,332 @@ const DatePickerInner = ({
|
|
|
9910
9876
|
const DatePicker = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(DatePickerInner);
|
|
9911
9877
|
;// ./src/components/DatePicker/index.ts
|
|
9912
9878
|
|
|
9913
|
-
;// ./src/components/
|
|
9879
|
+
;// ./src/components/Drawer/DrawerProvider.tsx
|
|
9914
9880
|
|
|
9915
|
-
const [
|
|
9916
|
-
;// ./src/components/
|
|
9881
|
+
const [DrawerProvider, useDrawerContext] = (0,hooks_namespaceObject.createSafeContext)('useDrawer must be used within a DrawerProvider');
|
|
9882
|
+
;// ./src/components/Drawer/useDrawer.tsx
|
|
9917
9883
|
|
|
9918
9884
|
|
|
9919
|
-
|
|
9885
|
+
|
|
9886
|
+
const useDrawer = ({
|
|
9887
|
+
opened,
|
|
9888
|
+
duration = 200,
|
|
9889
|
+
defaultOpened,
|
|
9890
|
+
dismissable = false,
|
|
9891
|
+
position = 'left',
|
|
9892
|
+
title,
|
|
9893
|
+
withCloseButton = false,
|
|
9894
|
+
onOpenChange
|
|
9895
|
+
} = {}) => {
|
|
9896
|
+
const [_opened, setOpened] = (0,hooks_namespaceObject.useUncontrolled)({
|
|
9897
|
+
value: opened,
|
|
9898
|
+
defaultValue: defaultOpened,
|
|
9899
|
+
finalValue: false,
|
|
9900
|
+
onChange: onOpenChange
|
|
9901
|
+
});
|
|
9902
|
+
const [portalNode, setPortalNode] = (0,external_react_namespaceObject.useState)(null);
|
|
9903
|
+
const toggle = open => {
|
|
9904
|
+
const _open = open ?? !_opened;
|
|
9905
|
+
setOpened(_open);
|
|
9906
|
+
};
|
|
9907
|
+
const {
|
|
9908
|
+
context,
|
|
9909
|
+
refs
|
|
9910
|
+
} = (0,external_floating_ui_react_namespaceObject.useFloating)({
|
|
9911
|
+
open: _opened,
|
|
9912
|
+
onOpenChange: setOpened
|
|
9913
|
+
});
|
|
9914
|
+
const transition = (0,external_floating_ui_react_namespaceObject.useTransitionStatus)(context, {
|
|
9915
|
+
duration
|
|
9916
|
+
});
|
|
9917
|
+
const dismiss = (0,external_floating_ui_react_namespaceObject.useDismiss)(context, {
|
|
9918
|
+
enabled: dismissable
|
|
9919
|
+
});
|
|
9920
|
+
const click = (0,external_floating_ui_react_namespaceObject.useClick)(context);
|
|
9921
|
+
const interactions = (0,external_floating_ui_react_namespaceObject.useInteractions)([dismiss, click]);
|
|
9922
|
+
return {
|
|
9923
|
+
opened: _opened,
|
|
9924
|
+
dismissable,
|
|
9925
|
+
position,
|
|
9926
|
+
duration,
|
|
9927
|
+
floatingContext: context,
|
|
9928
|
+
interactions,
|
|
9929
|
+
transition,
|
|
9930
|
+
title,
|
|
9931
|
+
withCloseButton,
|
|
9932
|
+
portalNode,
|
|
9933
|
+
setFloating: refs.setFloating,
|
|
9934
|
+
setPortalNode,
|
|
9935
|
+
toggle
|
|
9936
|
+
};
|
|
9937
|
+
};
|
|
9938
|
+
;// ./src/components/Drawer/DrawerRoot.tsx
|
|
9939
|
+
|
|
9940
|
+
|
|
9941
|
+
|
|
9942
|
+
const Drawer = ({
|
|
9943
|
+
children,
|
|
9944
|
+
store: controlledStore
|
|
9945
|
+
}) => {
|
|
9946
|
+
const uncontrolledStore = useDrawer({});
|
|
9947
|
+
const store = controlledStore || uncontrolledStore;
|
|
9948
|
+
if (!store.transition.isMounted) {
|
|
9949
|
+
return null;
|
|
9950
|
+
}
|
|
9951
|
+
return (0,jsx_runtime_namespaceObject.jsx)(DrawerProvider, {
|
|
9952
|
+
value: {
|
|
9953
|
+
store
|
|
9954
|
+
},
|
|
9955
|
+
children: children
|
|
9956
|
+
});
|
|
9957
|
+
};
|
|
9958
|
+
;// ./src/components/Drawer/DrawerOverlay.tsx
|
|
9959
|
+
|
|
9960
|
+
|
|
9961
|
+
|
|
9962
|
+
|
|
9963
|
+
const StyledFloatingOverlay = /*#__PURE__*/base_default()(external_floating_ui_react_namespaceObject.FloatingOverlay, true ? {
|
|
9964
|
+
shouldForwardProp: propName => !propName.startsWith('$'),
|
|
9965
|
+
target: "ebw2uwr0"
|
|
9966
|
+
} : 0)("transition-property:opacity;transition-duration:", ({
|
|
9967
|
+
$duration
|
|
9968
|
+
}) => $duration, "ms;transition-timing-function:ease;opacity:", ({
|
|
9969
|
+
$transitionStatus
|
|
9970
|
+
}) => $transitionStatus === 'close' ? 0 : 1, ";", ({
|
|
9971
|
+
$inPortal
|
|
9972
|
+
}) => !$inPortal && `
|
|
9973
|
+
overflow: hidden !important;
|
|
9974
|
+
position: absolute !important;
|
|
9975
|
+
`, " pointer-events:", ({
|
|
9976
|
+
$dismissable
|
|
9977
|
+
}) => $dismissable ? 'auto' : 'none', ";" + ( true ? "" : 0));
|
|
9978
|
+
const DrawerOverlay = ({
|
|
9920
9979
|
children,
|
|
9921
9980
|
...props
|
|
9922
9981
|
}) => {
|
|
9982
|
+
const ctx = useDrawerContext();
|
|
9923
9983
|
const {
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
} =
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
children: children
|
|
9938
|
-
})
|
|
9984
|
+
duration,
|
|
9985
|
+
dismissable,
|
|
9986
|
+
transition,
|
|
9987
|
+
portalNode
|
|
9988
|
+
} = ctx.store;
|
|
9989
|
+
const inPortal = portalNode !== null;
|
|
9990
|
+
return (0,jsx_runtime_namespaceObject.jsx)(StyledFloatingOverlay, {
|
|
9991
|
+
$inPortal: inPortal,
|
|
9992
|
+
$duration: duration,
|
|
9993
|
+
$dismissable: dismissable,
|
|
9994
|
+
$transitionStatus: transition.status,
|
|
9995
|
+
...props,
|
|
9996
|
+
children: children
|
|
9939
9997
|
});
|
|
9940
9998
|
};
|
|
9941
|
-
;// ./src/components/
|
|
9999
|
+
;// ./src/components/Drawer/DrawerPortal.tsx
|
|
9942
10000
|
|
|
9943
10001
|
|
|
9944
10002
|
|
|
9945
|
-
|
|
10003
|
+
|
|
10004
|
+
const DrawerPortal = ({
|
|
9946
10005
|
children,
|
|
9947
10006
|
...props
|
|
9948
10007
|
}) => {
|
|
9949
|
-
const ctx =
|
|
9950
|
-
|
|
9951
|
-
|
|
10008
|
+
const ctx = useDrawerContext();
|
|
10009
|
+
const portalNode = (0,external_floating_ui_react_namespaceObject.useFloatingPortalNode)();
|
|
10010
|
+
(0,external_react_namespaceObject.useEffect)(() => {
|
|
10011
|
+
ctx.store.setPortalNode(portalNode);
|
|
10012
|
+
return () => ctx.store.setPortalNode(null);
|
|
10013
|
+
}, [portalNode]);
|
|
10014
|
+
return (0,jsx_runtime_namespaceObject.jsx)(external_floating_ui_react_namespaceObject.FloatingPortal, {
|
|
10015
|
+
root: portalNode,
|
|
9952
10016
|
...props,
|
|
9953
10017
|
children: children
|
|
9954
10018
|
});
|
|
9955
10019
|
};
|
|
9956
|
-
;// ./src/components/
|
|
10020
|
+
;// ./src/components/Drawer/DrawerHeader.tsx
|
|
10021
|
+
|
|
10022
|
+
function DrawerHeader_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10023
|
+
|
|
9957
10024
|
|
|
10025
|
+
const StyledDrawerHeader = /*#__PURE__*/base_default()("header", true ? {
|
|
10026
|
+
target: "e1boxa1c0"
|
|
10027
|
+
} : 0)( true ? {
|
|
10028
|
+
name: "loooz6",
|
|
10029
|
+
styles: "position:sticky;top:0;display:flex;align-items:center;justify-content:space-between"
|
|
10030
|
+
} : 0);
|
|
10031
|
+
const DrawerHeader = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerHeader({
|
|
10032
|
+
children,
|
|
10033
|
+
...props
|
|
10034
|
+
}, ref) {
|
|
10035
|
+
return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerHeader, {
|
|
10036
|
+
ref: ref,
|
|
10037
|
+
...props,
|
|
10038
|
+
children: children
|
|
10039
|
+
});
|
|
10040
|
+
});
|
|
10041
|
+
;// ./src/components/Drawer/DrawerTitle.tsx
|
|
9958
10042
|
|
|
10043
|
+
function DrawerTitle_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
9959
10044
|
|
|
9960
10045
|
|
|
9961
|
-
const
|
|
9962
|
-
target: "
|
|
9963
|
-
} : 0)(
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
}
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
},
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
})
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
10046
|
+
const StyledDrawerTitle = /*#__PURE__*/base_default()("h2", true ? {
|
|
10047
|
+
target: "e1cuo4pw0"
|
|
10048
|
+
} : 0)( true ? {
|
|
10049
|
+
name: "10bzkug",
|
|
10050
|
+
styles: "font-weight:600;font-size:20px;text-align:center"
|
|
10051
|
+
} : 0);
|
|
10052
|
+
const DrawerTitle = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerTitle({
|
|
10053
|
+
children,
|
|
10054
|
+
...props
|
|
10055
|
+
}, ref) {
|
|
10056
|
+
return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerTitle, {
|
|
10057
|
+
ref: ref,
|
|
10058
|
+
...props,
|
|
10059
|
+
children: children
|
|
10060
|
+
});
|
|
10061
|
+
});
|
|
10062
|
+
;// ./src/components/Drawer/DrawerCloseButton.tsx
|
|
10063
|
+
|
|
10064
|
+
|
|
10065
|
+
|
|
10066
|
+
|
|
10067
|
+
|
|
10068
|
+
|
|
10069
|
+
|
|
10070
|
+
const StyledDrawerCloseButton = /*#__PURE__*/base_default()(Button_Button, true ? {
|
|
10071
|
+
target: "evbyx180"
|
|
10072
|
+
} : 0)("margin-inline-start:auto;padding:0;display:inline-flex;align-items:center;justify-content:center;height:32px;width:32px;background:", ({
|
|
9981
10073
|
theme
|
|
9982
|
-
}) =>
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
10074
|
+
}) => theme.colors.greyFocused, ";" + ( true ? "" : 0));
|
|
10075
|
+
const notReachable = _ => _;
|
|
10076
|
+
const getIconName = position => {
|
|
10077
|
+
switch (position) {
|
|
10078
|
+
case 'top':
|
|
10079
|
+
return 'carrot-up';
|
|
10080
|
+
case 'bottom':
|
|
10081
|
+
return 'carrot-down';
|
|
10082
|
+
case 'left':
|
|
10083
|
+
return 'carrot-left';
|
|
10084
|
+
case 'right':
|
|
10085
|
+
return 'carrot-right';
|
|
10086
|
+
default:
|
|
10087
|
+
return notReachable(position);
|
|
9991
10088
|
}
|
|
9992
|
-
return false;
|
|
9993
10089
|
};
|
|
9994
|
-
const
|
|
10090
|
+
const DrawerCloseButton = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerCloseButton({
|
|
9995
10091
|
children,
|
|
9996
|
-
controlRef,
|
|
9997
10092
|
...props
|
|
9998
10093
|
}, ref) {
|
|
9999
|
-
const
|
|
10000
|
-
const
|
|
10094
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
10095
|
+
const ctx = useDrawerContext();
|
|
10096
|
+
const iconName = getIconName(ctx.store.position);
|
|
10097
|
+
return (0,jsx_runtime_namespaceObject.jsx)(StyledDrawerCloseButton, {
|
|
10098
|
+
"data-testid": "drawer-close-button",
|
|
10099
|
+
startIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
10100
|
+
name: iconName,
|
|
10101
|
+
size: 18,
|
|
10102
|
+
color: theme.colors.greyDarker
|
|
10103
|
+
}),
|
|
10104
|
+
ref: ref,
|
|
10105
|
+
onClick: () => ctx.store.toggle(false),
|
|
10001
10106
|
...props,
|
|
10002
|
-
|
|
10107
|
+
children: children
|
|
10108
|
+
});
|
|
10109
|
+
});
|
|
10110
|
+
;// ./src/components/Drawer/DrawerContent.tsx
|
|
10111
|
+
|
|
10112
|
+
|
|
10113
|
+
|
|
10114
|
+
|
|
10115
|
+
|
|
10116
|
+
|
|
10117
|
+
|
|
10118
|
+
|
|
10119
|
+
const ContentWrapper = /*#__PURE__*/base_default()("div", true ? {
|
|
10120
|
+
target: "eoa7lk01"
|
|
10121
|
+
} : 0)("display:flex;justify-content:", ({
|
|
10122
|
+
position
|
|
10123
|
+
}) => position === 'left' ? 'flex-start' : 'flex-end', ";align-items:", ({
|
|
10124
|
+
position
|
|
10125
|
+
}) => position === 'top' ? 'flex-start' : 'flex-end', ";height:100%;" + ( true ? "" : 0));
|
|
10126
|
+
const getBorderStyle = (position, color) => {
|
|
10127
|
+
const borders = {
|
|
10128
|
+
left: `border-right: 1px solid ${color};`,
|
|
10129
|
+
right: `border-left: 1px solid ${color};`,
|
|
10130
|
+
top: `border-bottom: 1px solid ${color};`,
|
|
10131
|
+
bottom: `border-top: 1px solid ${color};`
|
|
10003
10132
|
};
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10133
|
+
return borders[position];
|
|
10134
|
+
};
|
|
10135
|
+
const getTransform = (position, open) => {
|
|
10136
|
+
const closedTransforms = {
|
|
10137
|
+
left: 'translateX(-100%)',
|
|
10138
|
+
right: 'translateX(100%)',
|
|
10139
|
+
top: 'translateY(-100%)',
|
|
10140
|
+
bottom: 'translateY(100%)'
|
|
10141
|
+
};
|
|
10142
|
+
return open ? 'translate(0)' : closedTransforms[position];
|
|
10143
|
+
};
|
|
10144
|
+
const StyledDrawerContent = /*#__PURE__*/base_default()("div", true ? {
|
|
10145
|
+
target: "eoa7lk00"
|
|
10146
|
+
} : 0)("flex:1;background-color:#f4f5f9;height:100%;pointer-events:auto;transition:transform ", ({
|
|
10147
|
+
duration
|
|
10148
|
+
}) => duration, "ms ease-in-out;", ({
|
|
10149
|
+
position,
|
|
10150
|
+
theme
|
|
10151
|
+
}) => getBorderStyle(position, theme.colors.greyFocused), " transform:", ({
|
|
10152
|
+
position
|
|
10153
|
+
}) => getTransform(position, false), ";&[data-transition='open']{transform:", ({
|
|
10154
|
+
position
|
|
10155
|
+
}) => getTransform(position, true), ";}" + ( true ? "" : 0));
|
|
10156
|
+
const DrawerContent = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(function DrawerContent({
|
|
10157
|
+
children,
|
|
10158
|
+
...props
|
|
10159
|
+
}, ref) {
|
|
10160
|
+
const ctx = useDrawerContext();
|
|
10161
|
+
const {
|
|
10162
|
+
title,
|
|
10163
|
+
withCloseButton,
|
|
10164
|
+
position,
|
|
10165
|
+
duration,
|
|
10166
|
+
transition,
|
|
10167
|
+
interactions,
|
|
10168
|
+
setFloating
|
|
10169
|
+
} = ctx.store;
|
|
10170
|
+
const mergedRef = (0,external_floating_ui_react_namespaceObject.useMergeRefs)([setFloating, ref]);
|
|
10171
|
+
const hasHeader = !!title || withCloseButton;
|
|
10172
|
+
return (0,jsx_runtime_namespaceObject.jsx)(ContentWrapper, {
|
|
10173
|
+
position: position,
|
|
10174
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)(StyledDrawerContent, {
|
|
10175
|
+
ref: mergedRef,
|
|
10176
|
+
"data-transition": transition.status,
|
|
10177
|
+
"data-position": position,
|
|
10178
|
+
position: position,
|
|
10179
|
+
duration: duration,
|
|
10180
|
+
...interactions.getFloatingProps(props),
|
|
10181
|
+
children: [hasHeader && (0,jsx_runtime_namespaceObject.jsxs)(DrawerHeader, {
|
|
10182
|
+
children: [title && (0,jsx_runtime_namespaceObject.jsx)(DrawerTitle, {
|
|
10183
|
+
children: title
|
|
10184
|
+
}), withCloseButton && (0,jsx_runtime_namespaceObject.jsx)(DrawerCloseButton, {})]
|
|
10185
|
+
}), children]
|
|
10186
|
+
})
|
|
10033
10187
|
});
|
|
10034
10188
|
});
|
|
10035
|
-
;// ./src/components/
|
|
10189
|
+
;// ./src/components/Drawer/index.parts.ts
|
|
10190
|
+
|
|
10191
|
+
|
|
10192
|
+
|
|
10193
|
+
|
|
10036
10194
|
|
|
10037
10195
|
|
|
10038
10196
|
|
|
10197
|
+
;// ./src/components/Drawer/index.ts
|
|
10198
|
+
|
|
10199
|
+
|
|
10200
|
+
|
|
10201
|
+
;// ./src/components/Field/FieldProvider.ts
|
|
10202
|
+
|
|
10203
|
+
const [FieldProvider, useFieldContext] = (0,hooks_namespaceObject.createSafeContext)('useFieldContext must be used within a FieldProvider');
|
|
10204
|
+
;// ./src/components/Field/index.ts
|
|
10039
10205
|
|
|
10040
10206
|
|
|
10041
10207
|
|
|
@@ -10941,6 +11107,125 @@ const Filters = ({
|
|
|
10941
11107
|
};
|
|
10942
11108
|
;// ./src/components/Filters/index.ts
|
|
10943
11109
|
|
|
11110
|
+
;// ./src/components/Field/FieldRoot.tsx
|
|
11111
|
+
|
|
11112
|
+
|
|
11113
|
+
const FieldRoot = ({
|
|
11114
|
+
children,
|
|
11115
|
+
...props
|
|
11116
|
+
}) => {
|
|
11117
|
+
const {
|
|
11118
|
+
disabled = false,
|
|
11119
|
+
status = 'basic',
|
|
11120
|
+
forwardFocus = true,
|
|
11121
|
+
...divProps
|
|
11122
|
+
} = props;
|
|
11123
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
11124
|
+
...divProps,
|
|
11125
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(FieldProvider, {
|
|
11126
|
+
value: {
|
|
11127
|
+
disabled,
|
|
11128
|
+
status,
|
|
11129
|
+
forwardFocus
|
|
11130
|
+
},
|
|
11131
|
+
children: children
|
|
11132
|
+
})
|
|
11133
|
+
});
|
|
11134
|
+
};
|
|
11135
|
+
;// ./src/components/Field/FieldLabel.tsx
|
|
11136
|
+
|
|
11137
|
+
|
|
11138
|
+
|
|
11139
|
+
const FieldLabel = ({
|
|
11140
|
+
children,
|
|
11141
|
+
...props
|
|
11142
|
+
}) => {
|
|
11143
|
+
const ctx = useFieldContext();
|
|
11144
|
+
return (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
|
|
11145
|
+
isDisabled: ctx.disabled,
|
|
11146
|
+
...props,
|
|
11147
|
+
children: children
|
|
11148
|
+
});
|
|
11149
|
+
};
|
|
11150
|
+
;// ./src/components/Field/FieldControl.tsx
|
|
11151
|
+
|
|
11152
|
+
|
|
11153
|
+
|
|
11154
|
+
|
|
11155
|
+
const FieldControlBase = /*#__PURE__*/base_default()("div", true ? {
|
|
11156
|
+
target: "e1lr2tz0"
|
|
11157
|
+
} : 0)("display:flex;align-items:center;min-height:44px;height:auto;border-radius:8px;overflow:hidden;border:1px solid ", ({
|
|
11158
|
+
status,
|
|
11159
|
+
theme
|
|
11160
|
+
}) => {
|
|
11161
|
+
if (status === 'error') return theme.colors.red;
|
|
11162
|
+
if (status === 'success') return theme.colors.greenLighter;
|
|
11163
|
+
return theme.colors.grey;
|
|
11164
|
+
}, ";background:", ({
|
|
11165
|
+
disabled,
|
|
11166
|
+
theme
|
|
11167
|
+
}) => disabled ? theme.colors.greyLighter : theme.colors.white, ";&>*{background:transparent;}&:active,&:hover{background:", ({
|
|
11168
|
+
disabled,
|
|
11169
|
+
theme
|
|
11170
|
+
}) => disabled ? theme.colors.greyLighter : theme.colors.white, ";box-shadow:none;}&:hover{cursor:", ({
|
|
11171
|
+
disabled
|
|
11172
|
+
}) => disabled ? 'default' : 'pointer', ";}&:focus-within,&:active{border-color:", ({
|
|
11173
|
+
status,
|
|
11174
|
+
disabled,
|
|
11175
|
+
theme
|
|
11176
|
+
}) => {
|
|
11177
|
+
if (disabled) return theme.colors.grey;
|
|
11178
|
+
if (status === 'error') return theme.colors.red;
|
|
11179
|
+
if (status === 'success') return theme.colors.greenLighter;
|
|
11180
|
+
return theme.colors.blueRoyal;
|
|
11181
|
+
}, ";}" + ( true ? "" : 0));
|
|
11182
|
+
const isForwardRefComponent = component => {
|
|
11183
|
+
if (typeof component.type === 'object' && component.type.$$typeof?.toString() === 'Symbol(react.forward_ref)') {
|
|
11184
|
+
return true;
|
|
11185
|
+
}
|
|
11186
|
+
return false;
|
|
11187
|
+
};
|
|
11188
|
+
const FieldControl = /*#__PURE__*/external_react_default().forwardRef(function FieldControl({
|
|
11189
|
+
children,
|
|
11190
|
+
controlRef,
|
|
11191
|
+
...props
|
|
11192
|
+
}, ref) {
|
|
11193
|
+
const ctx = useFieldContext();
|
|
11194
|
+
const baseProps = {
|
|
11195
|
+
...props,
|
|
11196
|
+
...ctx
|
|
11197
|
+
};
|
|
11198
|
+
const internalRef = (0,external_react_namespaceObject.useRef)(null);
|
|
11199
|
+
let _children = typeof children === 'function' ? children(ctx) : children;
|
|
11200
|
+
if (ctx.forwardFocus && /*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(_children) && isForwardRefComponent(_children)) {
|
|
11201
|
+
const setRef = defaultRef => element => {
|
|
11202
|
+
internalRef.current = element;
|
|
11203
|
+
if (defaultRef) {
|
|
11204
|
+
if (typeof defaultRef === 'function') {
|
|
11205
|
+
defaultRef(element);
|
|
11206
|
+
} else {
|
|
11207
|
+
defaultRef.current = element;
|
|
11208
|
+
}
|
|
11209
|
+
}
|
|
11210
|
+
};
|
|
11211
|
+
_children = /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(_children, {
|
|
11212
|
+
ref: setRef(children.ref)
|
|
11213
|
+
});
|
|
11214
|
+
}
|
|
11215
|
+
return (0,jsx_runtime_namespaceObject.jsx)(FieldControlBase, {
|
|
11216
|
+
...baseProps,
|
|
11217
|
+
ref: ref,
|
|
11218
|
+
onClick: event => {
|
|
11219
|
+
baseProps.onClick?.(event);
|
|
11220
|
+
if (controlRef) {
|
|
11221
|
+
controlRef.current?.focus?.();
|
|
11222
|
+
} else if (internalRef.current) {
|
|
11223
|
+
internalRef.current?.focus?.();
|
|
11224
|
+
}
|
|
11225
|
+
},
|
|
11226
|
+
children: _children
|
|
11227
|
+
});
|
|
11228
|
+
});
|
|
10944
11229
|
;// ./src/components/Field/FieldDescription.tsx
|
|
10945
11230
|
|
|
10946
11231
|
|
|
@@ -11711,8 +11996,6 @@ const NestedTableRow = ({
|
|
|
11711
11996
|
|
|
11712
11997
|
|
|
11713
11998
|
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
11999
|
const WithNestedTableRow = ({
|
|
11717
12000
|
children
|
|
11718
12001
|
}) => {
|
|
@@ -11723,33 +12006,24 @@ const WithNestedTableRow = ({
|
|
|
11723
12006
|
return external_react_namespaceObject.Children.map(children, (child, index) => {
|
|
11724
12007
|
if (/*#__PURE__*/(0,external_react_namespaceObject.isValidElement)(child)) {
|
|
11725
12008
|
const isSubHeader = index === 0;
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
classNames.push('collapsed');
|
|
11733
|
-
}
|
|
11734
|
-
return (0,jsx_runtime_namespaceObject.jsx)(NestedTableRowProvider, {
|
|
11735
|
-
isCollapsed: isCollapsed,
|
|
11736
|
-
isSubHeader: isSubHeader,
|
|
11737
|
-
childRowsCount: childRowsCount,
|
|
11738
|
-
children: /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
11739
|
-
className: classNames.length > 0 ? classNames.join(' ') : undefined,
|
|
11740
|
-
onClick: childRowsCount > 1 ? () => {
|
|
11741
|
-
setIsCollapsed(currentState => !currentState);
|
|
11742
|
-
} : undefined
|
|
11743
|
-
})
|
|
11744
|
-
});
|
|
12009
|
+
const classNames = [];
|
|
12010
|
+
if (isSubHeader) {
|
|
12011
|
+
classNames.push('first-row');
|
|
12012
|
+
}
|
|
12013
|
+
if (isCollapsed) {
|
|
12014
|
+
classNames.push('collapsed');
|
|
11745
12015
|
}
|
|
11746
12016
|
return (0,jsx_runtime_namespaceObject.jsx)(NestedTableRowProvider, {
|
|
11747
12017
|
isCollapsed: isCollapsed,
|
|
11748
12018
|
isSubHeader: isSubHeader,
|
|
11749
12019
|
childRowsCount: childRowsCount,
|
|
11750
12020
|
children: /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, {
|
|
12021
|
+
className: classNames.length > 0 ? classNames.join(' ') : undefined,
|
|
11751
12022
|
isCollapsed,
|
|
11752
|
-
childRowsCount
|
|
12023
|
+
childRowsCount,
|
|
12024
|
+
onClick: childRowsCount > 1 ? () => {
|
|
12025
|
+
setIsCollapsed(currentState => !currentState);
|
|
12026
|
+
} : undefined
|
|
11753
12027
|
})
|
|
11754
12028
|
});
|
|
11755
12029
|
}
|
|
@@ -14580,7 +14854,7 @@ const styles_ResetBtnStyles = true ? {
|
|
|
14580
14854
|
name: "2hrei",
|
|
14581
14855
|
styles: "padding:0;height:auto;background:none;&:focus,&:hover{border:none;background:none;box-shadow:none;&::before{border:none;}}"
|
|
14582
14856
|
} : 0;
|
|
14583
|
-
const
|
|
14857
|
+
const styles_ContentWrapper = theme => /*#__PURE__*/(0,react_namespaceObject.css)("width:224px;background:", theme.colors.greyPopoverLight, ";border-radius:20px;box-shadow:0px 4px 15px 0px ", theme.colors.black25, ";" + ( true ? "" : 0), true ? "" : 0);
|
|
14584
14858
|
const UserInfo = true ? {
|
|
14585
14859
|
name: "fwy071",
|
|
14586
14860
|
styles: "gap:2px;width:100%;padding:10px"
|
|
@@ -14618,7 +14892,7 @@ const UserProfile = ({
|
|
|
14618
14892
|
css: styles_ResetBtnStyles,
|
|
14619
14893
|
children: trigger
|
|
14620
14894
|
}), (0,jsx_runtime_namespaceObject.jsxs)(PopoverContent, {
|
|
14621
|
-
css:
|
|
14895
|
+
css: styles_ContentWrapper,
|
|
14622
14896
|
className: className,
|
|
14623
14897
|
children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
14624
14898
|
css: UserInfo,
|
|
@@ -14852,6 +15126,7 @@ const WithVisibleUpToLG = (Component, styles) => {
|
|
|
14852
15126
|
|
|
14853
15127
|
|
|
14854
15128
|
|
|
15129
|
+
|
|
14855
15130
|
|
|
14856
15131
|
|
|
14857
15132
|
;// ./src/contexts/Translation/config.ts
|