@drivenets/design-system 0.9.0 → 0.10.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/CHANGELOG.md +30 -0
- package/dist/index.cjs +1076 -600
- package/dist/index.d.cts +1988 -528
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1991 -531
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1083 -609
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +16 -17
- package/src/components/ds-breadcrumb/ds-breadcrumb.types.ts +40 -6
- package/src/components/ds-button/ds-button.types.ts +13 -2
- package/src/components/ds-button-v3/ds-button-v3.module.scss +108 -109
- package/src/components/ds-button-v3/ds-button-v3.tsx +2 -2
- package/src/components/ds-button-v3/ds-button-v3.types.ts +19 -3
- package/src/components/ds-button-v3/index.ts +5 -1
- package/src/components/ds-card/ds-card.types.ts +3 -1
- package/src/components/ds-checkbox/ds-checkbox.module.scss +106 -123
- package/src/components/ds-checkbox/ds-checkbox.tsx +24 -35
- package/src/components/ds-checkbox/ds-checkbox.types.ts +12 -11
- package/src/components/ds-checkbox-group/ds-checkbox-group.module.scss +13 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.tsx +20 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.types.ts +8 -0
- package/src/components/ds-checkbox-group/hooks/index.ts +6 -0
- package/src/components/ds-checkbox-group/hooks/use-checkbox-select-all.ts +65 -0
- package/src/components/ds-checkbox-group/index.ts +3 -0
- package/src/components/ds-comment-bubble/components/ds-comment-thread/ds-comment-thread.types.ts +26 -0
- package/src/components/ds-comment-bubble/components/ds-thread-item/ds-thread-item.types.ts +38 -0
- package/src/components/ds-comment-bubble/ds-comment-bubble.types.ts +78 -0
- package/src/components/ds-comment-card/ds-comment-card.module.scss +2 -2
- package/src/components/ds-comment-card/ds-comment-card.types.ts +114 -0
- package/src/components/ds-comment-indicator/ds-comment-indicator.types.ts +26 -0
- package/src/components/ds-comments-drawer/comments-filters.types.ts +33 -0
- package/src/components/ds-comments-drawer/components/comments-filter-modal/comments-filter-modal.types.ts +37 -1
- package/src/components/ds-comments-drawer/ds-comments-drawer.types.ts +64 -0
- package/src/components/ds-date-input/ds-date-input.types.ts +23 -0
- package/src/components/ds-date-picker/ds-date-picker.tsx +3 -0
- package/src/components/ds-date-picker/ds-date-picker.types.ts +20 -0
- package/src/components/ds-date-range-picker/ds-date-range-picker.types.ts +28 -0
- package/src/components/ds-dialog/ds-dialog.types.ts +10 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.types.ts +24 -0
- package/src/components/ds-file-upload/components/file-upload/file-upload.types.ts +1 -0
- package/src/components/ds-file-upload/ds-file-upload-api.types.ts +55 -0
- package/src/components/ds-form-control/ds-form-control.types.ts +3 -0
- package/src/components/ds-grid/ds-grid.tsx +29 -12
- package/src/components/ds-grid/ds-grid.types.ts +16 -13
- package/src/components/ds-grid/index.ts +10 -2
- package/src/components/ds-icon/custom-icons/index.ts +2 -0
- package/src/components/ds-icon/custom-icons/special-leading-icon.tsx +11 -0
- package/src/components/ds-icon/ds-icon.tsx +10 -4
- package/src/components/ds-icon/ds-icon.types.ts +30 -0
- package/src/components/ds-key-value-pair/ds-key-value-pair.types.ts +12 -2
- package/src/components/ds-modal/ds-modal.types.ts +16 -0
- package/src/components/ds-panel/ds-panel.types.ts +39 -0
- package/src/components/ds-radio-group/ds-radio-group.module.scss +58 -56
- package/src/components/ds-radio-group/ds-radio-group.tsx +35 -28
- package/src/components/ds-radio-group/ds-radio-group.types.ts +38 -7
- package/src/components/ds-segment-group/ds-segment-group.types.ts +17 -0
- package/src/components/ds-select/ds-select.types.ts +32 -0
- package/src/components/ds-split-button/ds-split-button.module.scss +7 -7
- package/src/components/ds-split-button/ds-split-button.types.ts +28 -0
- package/src/components/ds-stack/ds-stack.types.ts +23 -0
- package/src/components/ds-stepper/ds-stepper.types.ts +34 -1
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.types.ts +27 -0
- package/src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx +7 -4
- package/src/components/ds-table/components/ds-table-cell/ds-table-cell.types.ts +6 -0
- package/src/components/ds-table/components/ds-table-row-expandable-cell/ds-table-row-expandable-cell.types.ts +10 -0
- package/src/components/ds-table/components/ds-table-row-selectable-cell/ds-table-row-selectable-cell.types.ts +11 -0
- package/src/components/ds-table/components/ds-table-row-virtualized/ds-table-row-virtualized.types.ts +27 -0
- package/src/components/ds-table/filters/types/filter-adapter.types.ts +6 -0
- package/src/components/ds-tag/ds-tag.types.ts +6 -0
- package/src/components/ds-tag-filter/ds-tag-filter.types.ts +16 -0
- package/src/components/ds-text-input/ds-text-input.types.ts +3 -0
- package/src/components/ds-time-picker/components/time-item/time-item.types.ts +19 -0
- package/src/components/ds-time-picker/components/time-scroller/time-scroller.types.ts +29 -0
- package/src/components/ds-time-picker/ds-time-picker.module.scss +7 -0
- package/src/components/ds-time-picker/ds-time-picker.tsx +8 -1
- package/src/components/ds-time-picker/ds-time-picker.types.ts +80 -0
- package/src/components/ds-tooltip/ds-tooltip.types.ts +6 -0
- package/src/components/ds-tree/ds-tree.types.ts +86 -4
- package/src/components/ds-typography/ds-typography.config.ts +46 -27
- package/src/components/ds-typography/ds-typography.tsx +22 -7
- package/src/components/ds-typography/ds-typography.types.ts +15 -4
- package/src/components/ds-workspace/ds-workspace.module.scss +55 -0
- package/src/components/ds-workspace/ds-workspace.tsx +37 -0
- package/src/components/ds-workspace/ds-workspace.types.ts +17 -0
- package/src/components/ds-workspace/index.ts +8 -0
- package/src/index.ts +2 -0
- package/src/styles/_grid.scss +7 -3
- package/src/styles/_mixin.scss +2 -2
- package/src/styles/_root_new.scss +449 -0
- package/src/styles/_scrollbars.scss +6 -1
- package/src/styles/shared/_input.scss +0 -2
- package/src/styles/styles.scss +1 -0
- package/src/styles/_root_updated.scss +0 -593
package/dist/index.cjs
CHANGED
|
@@ -26,8 +26,8 @@ let classnames = require("classnames");
|
|
|
26
26
|
classnames = __toESM(classnames);
|
|
27
27
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
28
28
|
let react = require("react");
|
|
29
|
-
react = __toESM(react);
|
|
30
|
-
let
|
|
29
|
+
react = __toESM(react, 1);
|
|
30
|
+
let _ark_ui_react = require("@ark-ui/react");
|
|
31
31
|
let _ark_ui_react_combobox = require("@ark-ui/react/combobox");
|
|
32
32
|
let _ark_ui_react_locale = require("@ark-ui/react/locale");
|
|
33
33
|
let _ark_ui_react_highlight = require("@ark-ui/react/highlight");
|
|
@@ -39,8 +39,7 @@ let _tanstack_react_router = require("@tanstack/react-router");
|
|
|
39
39
|
let _radix_ui_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
40
40
|
_radix_ui_react_dropdown_menu = __toESM(_radix_ui_react_dropdown_menu);
|
|
41
41
|
let _ark_ui_react_menu = require("@ark-ui/react/menu");
|
|
42
|
-
let
|
|
43
|
-
_radix_ui_react_checkbox = __toESM(_radix_ui_react_checkbox);
|
|
42
|
+
let _ark_ui_react_checkbox = require("@ark-ui/react/checkbox");
|
|
44
43
|
let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
45
44
|
_radix_ui_react_dialog = __toESM(_radix_ui_react_dialog);
|
|
46
45
|
let _radix_ui_react_visually_hidden = require("@radix-ui/react-visually-hidden");
|
|
@@ -51,17 +50,14 @@ let _ark_ui_react_date_picker = require("@ark-ui/react/date-picker");
|
|
|
51
50
|
let _internationalized_date = require("@internationalized/date");
|
|
52
51
|
let _ark_ui_react_popover = require("@ark-ui/react/popover");
|
|
53
52
|
let _ark_ui_react_select = require("@ark-ui/react/select");
|
|
54
|
-
let _ark_ui_react = require("@ark-ui/react");
|
|
55
53
|
let _radix_ui_react_collapsible = require("@radix-ui/react-collapsible");
|
|
56
54
|
_radix_ui_react_collapsible = __toESM(_radix_ui_react_collapsible);
|
|
57
55
|
let _radix_ui_react_popover = require("@radix-ui/react-popover");
|
|
58
56
|
_radix_ui_react_popover = __toESM(_radix_ui_react_popover);
|
|
59
|
-
let _radix_ui_react_radio_group = require("@radix-ui/react-radio-group");
|
|
60
|
-
_radix_ui_react_radio_group = __toESM(_radix_ui_react_radio_group);
|
|
61
57
|
let _ark_ui_react_radio_group = require("@ark-ui/react/radio-group");
|
|
62
58
|
let _ark_ui_react_segment_group = require("@ark-ui/react/segment-group");
|
|
63
59
|
let _zag_js_steps = require("@zag-js/steps");
|
|
64
|
-
_zag_js_steps = __toESM(_zag_js_steps);
|
|
60
|
+
_zag_js_steps = __toESM(_zag_js_steps, 1);
|
|
65
61
|
let _zag_js_react = require("@zag-js/react");
|
|
66
62
|
let _tanstack_react_table = require("@tanstack/react-table");
|
|
67
63
|
let _dnd_kit_sortable = require("@dnd-kit/sortable");
|
|
@@ -101,6 +97,37 @@ var ds_icon_module_default = {
|
|
|
101
97
|
"tiny": "BWBvDq_tiny"
|
|
102
98
|
};
|
|
103
99
|
//#endregion
|
|
100
|
+
//#region src/components/ds-icon/ds-icon.types.ts
|
|
101
|
+
const iconSizes = [
|
|
102
|
+
"tiny",
|
|
103
|
+
"small",
|
|
104
|
+
"medium",
|
|
105
|
+
"large",
|
|
106
|
+
"extra-large"
|
|
107
|
+
];
|
|
108
|
+
const iconVariants = ["outlined", "rounded"];
|
|
109
|
+
const iconColors = [
|
|
110
|
+
"action",
|
|
111
|
+
"action-hover",
|
|
112
|
+
"action-secondary",
|
|
113
|
+
"disabled",
|
|
114
|
+
"error",
|
|
115
|
+
"execution",
|
|
116
|
+
"information-main",
|
|
117
|
+
"information-secondary",
|
|
118
|
+
"inverse",
|
|
119
|
+
"main",
|
|
120
|
+
"on-button",
|
|
121
|
+
"on-dark-disabled",
|
|
122
|
+
"pause",
|
|
123
|
+
"pending",
|
|
124
|
+
"secondary",
|
|
125
|
+
"success",
|
|
126
|
+
"success-light",
|
|
127
|
+
"warning",
|
|
128
|
+
"warning-light"
|
|
129
|
+
];
|
|
130
|
+
//#endregion
|
|
104
131
|
//#region src/components/ds-icon/custom-icons/special-market.tsx
|
|
105
132
|
/**
|
|
106
133
|
* Special Market icon - represents a market/city location
|
|
@@ -2011,6 +2038,33 @@ const SpecialHome = (props) => {
|
|
|
2011
2038
|
return t1;
|
|
2012
2039
|
};
|
|
2013
2040
|
//#endregion
|
|
2041
|
+
//#region src/components/ds-icon/custom-icons/special-leading-icon.tsx
|
|
2042
|
+
/** Leading / input-adjacent building icon from design (AR-58177). */
|
|
2043
|
+
const SpecialLeadingIcon = (props) => {
|
|
2044
|
+
const $ = (0, react_compiler_runtime.c)(3);
|
|
2045
|
+
let t0;
|
|
2046
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2047
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2048
|
+
d: "M7.2 4.81737H7.8C7.95913 4.81737 8.11174 4.75164 8.22426 4.63464C8.33679 4.51765 8.4 4.35896 8.4 4.1935C8.4 4.02804 8.33679 3.86936 8.22426 3.75237C8.11174 3.63537 7.95913 3.56964 7.8 3.56964H7.2C7.04087 3.56964 6.88826 3.63537 6.77574 3.75237C6.66321 3.86936 6.6 4.02804 6.6 4.1935C6.6 4.35896 6.66321 4.51765 6.77574 4.63464C6.88826 4.75164 7.04087 4.81737 7.2 4.81737ZM7.2 7.31283H7.8C7.95913 7.31283 8.11174 7.24711 8.22426 7.13011C8.33679 7.01311 8.4 6.85443 8.4 6.68897C8.4 6.52351 8.33679 6.36483 8.22426 6.24783C8.11174 6.13083 7.95913 6.0651 7.8 6.0651H7.2C7.04087 6.0651 6.88826 6.13083 6.77574 6.24783C6.66321 6.36483 6.6 6.52351 6.6 6.68897C6.6 6.85443 6.66321 7.01311 6.77574 7.13011C6.88826 7.24711 7.04087 7.31283 7.2 7.31283ZM4.2 4.81737H4.8C4.95913 4.81737 5.11174 4.75164 5.22426 4.63464C5.33679 4.51765 5.4 4.35896 5.4 4.1935C5.4 4.02804 5.33679 3.86936 5.22426 3.75237C5.11174 3.63537 4.95913 3.56964 4.8 3.56964H4.2C4.04087 3.56964 3.88826 3.63537 3.77574 3.75237C3.66321 3.86936 3.6 4.02804 3.6 4.1935C3.6 4.35896 3.66321 4.51765 3.77574 4.63464C3.88826 4.75164 4.04087 4.81737 4.2 4.81737ZM4.2 7.31283H4.8C4.95913 7.31283 5.11174 7.24711 5.22426 7.13011C5.33679 7.01311 5.4 6.85443 5.4 6.68897C5.4 6.52351 5.33679 6.36483 5.22426 6.24783C5.11174 6.13083 4.95913 6.0651 4.8 6.0651H4.2C4.04087 6.0651 3.88826 6.13083 3.77574 6.24783C3.66321 6.36483 3.6 6.52351 3.6 6.68897C3.6 6.85443 3.66321 7.01311 3.77574 7.13011C3.88826 7.24711 4.04087 7.31283 4.2 7.31283ZM11.4 11.264H10.8V1.13558C10.8 0.97012 10.7368 0.811436 10.6243 0.694439C10.5117 0.577441 10.3591 0.511713 10.2 0.511713H1.8C1.64087 0.511713 1.48826 0.577441 1.37574 0.694439C1.26321 0.811436 1.2 0.97012 1.2 1.13558V11.264H0.6C0.44087 11.264 0.288258 11.3297 0.175736 11.4467C0.0632141 11.5637 0 11.7224 0 11.8879C0 12.0533 0.0632141 12.212 0.175736 12.329C0.288258 12.446 0.44087 12.5117 0.6 12.5117H11.4C11.5591 12.5117 11.7117 12.446 11.8243 12.329C11.9368 12.212 12 12.0533 12 11.8879C12 11.7224 11.9368 11.5637 11.8243 11.4467C11.7117 11.3297 11.5591 11.264 11.4 11.264ZM6.6 12.5117H5.4V9.91228H6.6V12.5117ZM9.6 11.264H7.8V9.28841C7.8 9.12295 7.73679 8.96426 7.62426 8.84727C7.51174 8.73027 7.35913 8.66454 7.2 8.66454H4.8C4.64087 8.66454 4.48826 8.73027 4.37574 8.84727C4.26321 8.96426 4.2 9.12295 4.2 9.28841V11.264H2.4V1.75945H9.6V11.264Z",
|
|
2049
|
+
fill: "currentColor"
|
|
2050
|
+
});
|
|
2051
|
+
$[0] = t0;
|
|
2052
|
+
} else t0 = $[0];
|
|
2053
|
+
let t1;
|
|
2054
|
+
if ($[1] !== props) {
|
|
2055
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
2056
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2057
|
+
viewBox: "0 0 12 13",
|
|
2058
|
+
fill: "none",
|
|
2059
|
+
...props,
|
|
2060
|
+
children: t0
|
|
2061
|
+
});
|
|
2062
|
+
$[1] = props;
|
|
2063
|
+
$[2] = t1;
|
|
2064
|
+
} else t1 = $[2];
|
|
2065
|
+
return t1;
|
|
2066
|
+
};
|
|
2067
|
+
//#endregion
|
|
2014
2068
|
//#region src/components/ds-icon/custom-icons/special-lego.tsx
|
|
2015
2069
|
/**
|
|
2016
2070
|
* Special Lego icon
|
|
@@ -2698,6 +2752,7 @@ const customIcons = {
|
|
|
2698
2752
|
"special-webhook": SpecialWebhook,
|
|
2699
2753
|
"special-map-view": SpecialMapView,
|
|
2700
2754
|
"special-home": SpecialHome,
|
|
2755
|
+
"special-leading-icon": SpecialLeadingIcon,
|
|
2701
2756
|
"special-lego": SpecialLego,
|
|
2702
2757
|
"special-scheme": SpecialScheme,
|
|
2703
2758
|
"special-book": SpecialBook,
|
|
@@ -2718,11 +2773,14 @@ const isCustomIcon = (icon) => {
|
|
|
2718
2773
|
};
|
|
2719
2774
|
//#endregion
|
|
2720
2775
|
//#region src/components/ds-icon/ds-icon.tsx
|
|
2776
|
+
const iconColorSet = new Set(iconColors);
|
|
2777
|
+
const resolveColor$1 = (color) => iconColorSet.has(color) ? `var(--icon-${color})` : color;
|
|
2721
2778
|
/**
|
|
2722
2779
|
* Design system Icon component that renders Google Material Icons, custom SVG icons, or inline SVGs
|
|
2723
2780
|
*/
|
|
2724
2781
|
const DsIcon = (t0) => {
|
|
2725
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
2782
|
+
const $ = (0, react_compiler_runtime.c)(30);
|
|
2783
|
+
let color;
|
|
2726
2784
|
let filled;
|
|
2727
2785
|
let icon;
|
|
2728
2786
|
let rest;
|
|
@@ -2731,44 +2789,58 @@ const DsIcon = (t0) => {
|
|
|
2731
2789
|
let t3;
|
|
2732
2790
|
let t4;
|
|
2733
2791
|
if ($[0] !== t0) {
|
|
2734
|
-
({icon, size: t1, variant: t2, filled, className: t3, style: t4, ...rest} = t0);
|
|
2792
|
+
({icon, size: t1, variant: t2, filled, color, className: t3, style: t4, ...rest} = t0);
|
|
2735
2793
|
$[0] = t0;
|
|
2736
|
-
$[1] =
|
|
2737
|
-
$[2] =
|
|
2738
|
-
$[3] =
|
|
2739
|
-
$[4] =
|
|
2740
|
-
$[5] =
|
|
2741
|
-
$[6] =
|
|
2742
|
-
$[7] =
|
|
2794
|
+
$[1] = color;
|
|
2795
|
+
$[2] = filled;
|
|
2796
|
+
$[3] = icon;
|
|
2797
|
+
$[4] = rest;
|
|
2798
|
+
$[5] = t1;
|
|
2799
|
+
$[6] = t2;
|
|
2800
|
+
$[7] = t3;
|
|
2801
|
+
$[8] = t4;
|
|
2743
2802
|
} else {
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2803
|
+
color = $[1];
|
|
2804
|
+
filled = $[2];
|
|
2805
|
+
icon = $[3];
|
|
2806
|
+
rest = $[4];
|
|
2807
|
+
t1 = $[5];
|
|
2808
|
+
t2 = $[6];
|
|
2809
|
+
t3 = $[7];
|
|
2810
|
+
t4 = $[8];
|
|
2751
2811
|
}
|
|
2752
2812
|
const size = t1 === void 0 ? "medium" : t1;
|
|
2753
2813
|
const variant = t2 === void 0 ? "outlined" : t2;
|
|
2754
2814
|
const className = t3 === void 0 ? "" : t3;
|
|
2755
2815
|
let t5;
|
|
2756
|
-
if ($[
|
|
2816
|
+
if ($[9] !== t4) {
|
|
2757
2817
|
t5 = t4 === void 0 ? {} : t4;
|
|
2758
|
-
$[
|
|
2759
|
-
$[
|
|
2760
|
-
} else t5 = $[
|
|
2818
|
+
$[9] = t4;
|
|
2819
|
+
$[10] = t5;
|
|
2820
|
+
} else t5 = $[10];
|
|
2761
2821
|
const style = t5;
|
|
2822
|
+
let mergedStyle;
|
|
2762
2823
|
let t6;
|
|
2763
2824
|
let t7;
|
|
2764
|
-
if ($[
|
|
2825
|
+
if ($[11] !== className || $[12] !== color || $[13] !== filled || $[14] !== icon || $[15] !== rest || $[16] !== size || $[17] !== style || $[18] !== variant) {
|
|
2765
2826
|
t7 = Symbol.for("react.early_return_sentinel");
|
|
2766
2827
|
bb0: {
|
|
2767
2828
|
const iconClass = (0, classnames.default)(ds_icon_module_default.icon, ds_icon_module_default[size], { [ds_icon_module_default.filled]: filled }, className);
|
|
2829
|
+
let t8;
|
|
2830
|
+
if ($[22] !== color || $[23] !== style) {
|
|
2831
|
+
t8 = color ? {
|
|
2832
|
+
color: resolveColor$1(color),
|
|
2833
|
+
...style
|
|
2834
|
+
} : style;
|
|
2835
|
+
$[22] = color;
|
|
2836
|
+
$[23] = style;
|
|
2837
|
+
$[24] = t8;
|
|
2838
|
+
} else t8 = $[24];
|
|
2839
|
+
mergedStyle = t8;
|
|
2768
2840
|
if (typeof icon === "function") {
|
|
2769
2841
|
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(icon, {
|
|
2770
2842
|
className: iconClass,
|
|
2771
|
-
style,
|
|
2843
|
+
style: mergedStyle,
|
|
2772
2844
|
...rest
|
|
2773
2845
|
});
|
|
2774
2846
|
break bb0;
|
|
@@ -2777,80 +2849,161 @@ const DsIcon = (t0) => {
|
|
|
2777
2849
|
const SvgComponent_0 = customIcons[icon];
|
|
2778
2850
|
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SvgComponent_0, {
|
|
2779
2851
|
className: iconClass,
|
|
2780
|
-
style,
|
|
2852
|
+
style: mergedStyle,
|
|
2781
2853
|
...rest
|
|
2782
2854
|
});
|
|
2783
2855
|
break bb0;
|
|
2784
2856
|
}
|
|
2785
2857
|
t6 = (0, classnames.default)(iconClass, `material-symbols-${variant}`);
|
|
2786
2858
|
}
|
|
2787
|
-
$[
|
|
2788
|
-
$[
|
|
2789
|
-
$[
|
|
2790
|
-
$[
|
|
2791
|
-
$[
|
|
2792
|
-
$[
|
|
2793
|
-
$[
|
|
2794
|
-
$[
|
|
2795
|
-
$[
|
|
2859
|
+
$[11] = className;
|
|
2860
|
+
$[12] = color;
|
|
2861
|
+
$[13] = filled;
|
|
2862
|
+
$[14] = icon;
|
|
2863
|
+
$[15] = rest;
|
|
2864
|
+
$[16] = size;
|
|
2865
|
+
$[17] = style;
|
|
2866
|
+
$[18] = variant;
|
|
2867
|
+
$[19] = mergedStyle;
|
|
2868
|
+
$[20] = t6;
|
|
2869
|
+
$[21] = t7;
|
|
2796
2870
|
} else {
|
|
2797
|
-
|
|
2798
|
-
|
|
2871
|
+
mergedStyle = $[19];
|
|
2872
|
+
t6 = $[20];
|
|
2873
|
+
t7 = $[21];
|
|
2799
2874
|
}
|
|
2800
2875
|
if (t7 !== Symbol.for("react.early_return_sentinel")) return t7;
|
|
2801
2876
|
let t8;
|
|
2802
|
-
if ($[
|
|
2877
|
+
if ($[25] !== icon || $[26] !== mergedStyle || $[27] !== rest || $[28] !== t6) {
|
|
2803
2878
|
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2804
2879
|
className: t6,
|
|
2805
|
-
style,
|
|
2880
|
+
style: mergedStyle,
|
|
2806
2881
|
...rest,
|
|
2807
2882
|
children: icon
|
|
2808
2883
|
});
|
|
2809
|
-
$[
|
|
2810
|
-
$[
|
|
2811
|
-
$[
|
|
2812
|
-
$[
|
|
2813
|
-
$[
|
|
2814
|
-
} else t8 = $[
|
|
2884
|
+
$[25] = icon;
|
|
2885
|
+
$[26] = mergedStyle;
|
|
2886
|
+
$[27] = rest;
|
|
2887
|
+
$[28] = t6;
|
|
2888
|
+
$[29] = t8;
|
|
2889
|
+
} else t8 = $[29];
|
|
2815
2890
|
return t8;
|
|
2816
2891
|
};
|
|
2817
2892
|
//#endregion
|
|
2818
|
-
//#region src/components/ds-icon/ds-icon.types.ts
|
|
2819
|
-
const iconSizes = [
|
|
2820
|
-
"tiny",
|
|
2821
|
-
"small",
|
|
2822
|
-
"medium",
|
|
2823
|
-
"large",
|
|
2824
|
-
"extra-large"
|
|
2825
|
-
];
|
|
2826
|
-
const iconVariants = ["outlined", "rounded"];
|
|
2827
|
-
//#endregion
|
|
2828
2893
|
//#region src/components/ds-typography/ds-typography.config.ts
|
|
2829
|
-
const
|
|
2830
|
-
"body-md-reg":
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
"body-md-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
"body-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
"body-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
"
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2894
|
+
const typographyVariantConfig = {
|
|
2895
|
+
"body-md-reg": {
|
|
2896
|
+
element: "p",
|
|
2897
|
+
component: _ark_ui_react.ark.p
|
|
2898
|
+
},
|
|
2899
|
+
"body-md-md": {
|
|
2900
|
+
element: "p",
|
|
2901
|
+
component: _ark_ui_react.ark.p
|
|
2902
|
+
},
|
|
2903
|
+
"body-md-semi-bold": {
|
|
2904
|
+
element: "p",
|
|
2905
|
+
component: _ark_ui_react.ark.p
|
|
2906
|
+
},
|
|
2907
|
+
"body-md-bold": {
|
|
2908
|
+
element: "p",
|
|
2909
|
+
component: _ark_ui_react.ark.p
|
|
2910
|
+
},
|
|
2911
|
+
"body-md-link": {
|
|
2912
|
+
element: "a",
|
|
2913
|
+
component: _ark_ui_react.ark.a
|
|
2914
|
+
},
|
|
2915
|
+
"body-sm-reg": {
|
|
2916
|
+
element: "span",
|
|
2917
|
+
component: _ark_ui_react.ark.span
|
|
2918
|
+
},
|
|
2919
|
+
"body-sm-md": {
|
|
2920
|
+
element: "span",
|
|
2921
|
+
component: _ark_ui_react.ark.span
|
|
2922
|
+
},
|
|
2923
|
+
"body-sm-semi-bold": {
|
|
2924
|
+
element: "span",
|
|
2925
|
+
component: _ark_ui_react.ark.span
|
|
2926
|
+
},
|
|
2927
|
+
"body-sm-bold": {
|
|
2928
|
+
element: "span",
|
|
2929
|
+
component: _ark_ui_react.ark.span
|
|
2930
|
+
},
|
|
2931
|
+
"body-sm-link": {
|
|
2932
|
+
element: "a",
|
|
2933
|
+
component: _ark_ui_react.ark.a
|
|
2934
|
+
},
|
|
2935
|
+
"body-xs-reg": {
|
|
2936
|
+
element: "span",
|
|
2937
|
+
component: _ark_ui_react.ark.span
|
|
2938
|
+
},
|
|
2939
|
+
"body-xs-md": {
|
|
2940
|
+
element: "span",
|
|
2941
|
+
component: _ark_ui_react.ark.span
|
|
2942
|
+
},
|
|
2943
|
+
"body-xs-semi-bold": {
|
|
2944
|
+
element: "span",
|
|
2945
|
+
component: _ark_ui_react.ark.span
|
|
2946
|
+
},
|
|
2947
|
+
"body-xs-bold": {
|
|
2948
|
+
element: "span",
|
|
2949
|
+
component: _ark_ui_react.ark.span
|
|
2950
|
+
},
|
|
2951
|
+
"body-xs-link": {
|
|
2952
|
+
element: "a",
|
|
2953
|
+
component: _ark_ui_react.ark.a
|
|
2954
|
+
},
|
|
2955
|
+
"code-sm-reg": {
|
|
2956
|
+
element: "code",
|
|
2957
|
+
component: _ark_ui_react.ark.code
|
|
2958
|
+
},
|
|
2959
|
+
"code-sm-semi-bold": {
|
|
2960
|
+
element: "code",
|
|
2961
|
+
component: _ark_ui_react.ark.code
|
|
2962
|
+
},
|
|
2963
|
+
"code-xs-reg": {
|
|
2964
|
+
element: "code",
|
|
2965
|
+
component: _ark_ui_react.ark.code
|
|
2966
|
+
},
|
|
2967
|
+
"code-xs-semi-bold": {
|
|
2968
|
+
element: "code",
|
|
2969
|
+
component: _ark_ui_react.ark.code
|
|
2970
|
+
},
|
|
2971
|
+
heading1: {
|
|
2972
|
+
element: "h1",
|
|
2973
|
+
component: _ark_ui_react.ark.h1
|
|
2974
|
+
},
|
|
2975
|
+
heading2: {
|
|
2976
|
+
element: "h2",
|
|
2977
|
+
component: _ark_ui_react.ark.h2
|
|
2978
|
+
},
|
|
2979
|
+
heading3: {
|
|
2980
|
+
element: "h3",
|
|
2981
|
+
component: _ark_ui_react.ark.h3
|
|
2982
|
+
},
|
|
2983
|
+
heading4: {
|
|
2984
|
+
element: "h4",
|
|
2985
|
+
component: _ark_ui_react.ark.h4
|
|
2986
|
+
}
|
|
2853
2987
|
};
|
|
2988
|
+
/** Semantic text colors backed by `--font-*` tokens in `_root_new.scss`. */
|
|
2989
|
+
const typographyColors = [
|
|
2990
|
+
"main",
|
|
2991
|
+
"secondary",
|
|
2992
|
+
"action",
|
|
2993
|
+
"action-hover",
|
|
2994
|
+
"action-secondary",
|
|
2995
|
+
"action-secondary-hover",
|
|
2996
|
+
"disabled",
|
|
2997
|
+
"light-disabled",
|
|
2998
|
+
"on-action",
|
|
2999
|
+
"on-disabled",
|
|
3000
|
+
"placeholder",
|
|
3001
|
+
"highlight",
|
|
3002
|
+
"success",
|
|
3003
|
+
"warning",
|
|
3004
|
+
"error",
|
|
3005
|
+
"code"
|
|
3006
|
+
];
|
|
2854
3007
|
//#endregion
|
|
2855
3008
|
//#region src/components/ds-typography/ds-typography.module.scss
|
|
2856
3009
|
var ds_typography_module_default = {
|
|
@@ -2880,56 +3033,79 @@ var ds_typography_module_default = {
|
|
|
2880
3033
|
};
|
|
2881
3034
|
//#endregion
|
|
2882
3035
|
//#region src/components/ds-typography/ds-typography.tsx
|
|
3036
|
+
const semanticColorSet = new Set(typographyColors);
|
|
3037
|
+
const resolveColor = (color) => semanticColorSet.has(color) ? `var(--font-${color})` : color;
|
|
2883
3038
|
const DsTypography = (t0) => {
|
|
2884
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
3039
|
+
const $ = (0, react_compiler_runtime.c)(23);
|
|
2885
3040
|
let children;
|
|
2886
3041
|
let className;
|
|
3042
|
+
let color;
|
|
2887
3043
|
let props;
|
|
2888
3044
|
let ref;
|
|
3045
|
+
let style;
|
|
2889
3046
|
let t1;
|
|
2890
3047
|
let variant;
|
|
2891
3048
|
if ($[0] !== t0) {
|
|
2892
|
-
({ref, variant, asChild: t1, className, children, ...props} = t0);
|
|
3049
|
+
({ref, variant, asChild: t1, className, style, color, children, ...props} = t0);
|
|
2893
3050
|
$[0] = t0;
|
|
2894
3051
|
$[1] = children;
|
|
2895
3052
|
$[2] = className;
|
|
2896
|
-
$[3] =
|
|
2897
|
-
$[4] =
|
|
2898
|
-
$[5] =
|
|
2899
|
-
$[6] =
|
|
3053
|
+
$[3] = color;
|
|
3054
|
+
$[4] = props;
|
|
3055
|
+
$[5] = ref;
|
|
3056
|
+
$[6] = style;
|
|
3057
|
+
$[7] = t1;
|
|
3058
|
+
$[8] = variant;
|
|
2900
3059
|
} else {
|
|
2901
3060
|
children = $[1];
|
|
2902
3061
|
className = $[2];
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
3062
|
+
color = $[3];
|
|
3063
|
+
props = $[4];
|
|
3064
|
+
ref = $[5];
|
|
3065
|
+
style = $[6];
|
|
3066
|
+
t1 = $[7];
|
|
3067
|
+
variant = $[8];
|
|
2907
3068
|
}
|
|
2908
|
-
const
|
|
3069
|
+
const asChild = t1 === void 0 ? false : t1;
|
|
3070
|
+
const Component = typographyVariantConfig[variant].component;
|
|
2909
3071
|
const t2 = ds_typography_module_default[variant];
|
|
2910
3072
|
let t3;
|
|
2911
|
-
if ($[
|
|
3073
|
+
if ($[9] !== className || $[10] !== t2) {
|
|
2912
3074
|
t3 = (0, classnames.default)(t2, className);
|
|
2913
|
-
$[
|
|
2914
|
-
$[
|
|
2915
|
-
$[
|
|
2916
|
-
} else t3 = $[
|
|
3075
|
+
$[9] = className;
|
|
3076
|
+
$[10] = t2;
|
|
3077
|
+
$[11] = t3;
|
|
3078
|
+
} else t3 = $[11];
|
|
2917
3079
|
let t4;
|
|
2918
|
-
if ($[
|
|
2919
|
-
t4 =
|
|
3080
|
+
if ($[12] !== color || $[13] !== style) {
|
|
3081
|
+
t4 = color ? {
|
|
3082
|
+
color: resolveColor(color),
|
|
3083
|
+
...style
|
|
3084
|
+
} : style;
|
|
3085
|
+
$[12] = color;
|
|
3086
|
+
$[13] = style;
|
|
3087
|
+
$[14] = t4;
|
|
3088
|
+
} else t4 = $[14];
|
|
3089
|
+
let t5;
|
|
3090
|
+
if ($[15] !== Component || $[16] !== asChild || $[17] !== children || $[18] !== props || $[19] !== ref || $[20] !== t3 || $[21] !== t4) {
|
|
3091
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
2920
3092
|
ref,
|
|
3093
|
+
asChild,
|
|
2921
3094
|
className: t3,
|
|
3095
|
+
style: t4,
|
|
2922
3096
|
...props,
|
|
2923
3097
|
children
|
|
2924
3098
|
});
|
|
2925
|
-
$[
|
|
2926
|
-
$[
|
|
2927
|
-
$[
|
|
2928
|
-
$[
|
|
2929
|
-
$[
|
|
2930
|
-
$[
|
|
2931
|
-
|
|
2932
|
-
|
|
3099
|
+
$[15] = Component;
|
|
3100
|
+
$[16] = asChild;
|
|
3101
|
+
$[17] = children;
|
|
3102
|
+
$[18] = props;
|
|
3103
|
+
$[19] = ref;
|
|
3104
|
+
$[20] = t3;
|
|
3105
|
+
$[21] = t4;
|
|
3106
|
+
$[22] = t5;
|
|
3107
|
+
} else t5 = $[22];
|
|
3108
|
+
return t5;
|
|
2933
3109
|
};
|
|
2934
3110
|
//#endregion
|
|
2935
3111
|
//#region src/components/ds-alert-banner/ds-alert-banner.tsx
|
|
@@ -3905,7 +4081,7 @@ const Trigger = _ark_ui_react_menu.Menu.Trigger;
|
|
|
3905
4081
|
/**
|
|
3906
4082
|
* Content component - wraps the dropdown content
|
|
3907
4083
|
*/
|
|
3908
|
-
const Content = (t0) => {
|
|
4084
|
+
const Content$1 = (t0) => {
|
|
3909
4085
|
const $ = (0, react_compiler_runtime.c)(9);
|
|
3910
4086
|
const { disablePortal: t1, children, className, style } = t0;
|
|
3911
4087
|
const Wrapper = (t1 === void 0 ? false : t1) ? react.Fragment : _ark_ui_react_portal.Portal;
|
|
@@ -4008,7 +4184,7 @@ const ItemIndicator = (t0) => {
|
|
|
4008
4184
|
/**
|
|
4009
4185
|
* Header component - sticky header container for search, filters, or other controls
|
|
4010
4186
|
*/
|
|
4011
|
-
const Header$
|
|
4187
|
+
const Header$4 = (t0) => {
|
|
4012
4188
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
4013
4189
|
const { children, className, style } = t0;
|
|
4014
4190
|
let t1;
|
|
@@ -4484,11 +4660,11 @@ const DsDropdownMenuLegacy = (t0) => {
|
|
|
4484
4660
|
const DsDropdownMenu = {
|
|
4485
4661
|
Root: Root$3,
|
|
4486
4662
|
Trigger,
|
|
4487
|
-
Content,
|
|
4663
|
+
Content: Content$1,
|
|
4488
4664
|
Item: Item$2,
|
|
4489
4665
|
ItemIndicator,
|
|
4490
4666
|
TriggerItem,
|
|
4491
|
-
Header: Header$
|
|
4667
|
+
Header: Header$4,
|
|
4492
4668
|
Actions: Actions$2,
|
|
4493
4669
|
ItemGroup,
|
|
4494
4670
|
ItemGroupLabel,
|
|
@@ -5060,7 +5236,7 @@ const iconSizeMap = Object.freeze({
|
|
|
5060
5236
|
small: "tiny",
|
|
5061
5237
|
tiny: "tiny"
|
|
5062
5238
|
});
|
|
5063
|
-
const DsButtonV3 = (t0) => {
|
|
5239
|
+
const DsButtonV3$1 = (t0) => {
|
|
5064
5240
|
const $ = (0, react_compiler_runtime.c)(37);
|
|
5065
5241
|
let children;
|
|
5066
5242
|
let className;
|
|
@@ -5184,7 +5360,7 @@ const buttonV3Variants = [
|
|
|
5184
5360
|
];
|
|
5185
5361
|
const buttonV3Colors = [
|
|
5186
5362
|
"default",
|
|
5187
|
-
"
|
|
5363
|
+
"error",
|
|
5188
5364
|
"light"
|
|
5189
5365
|
];
|
|
5190
5366
|
const buttonV3Sizes = [
|
|
@@ -5194,6 +5370,9 @@ const buttonV3Sizes = [
|
|
|
5194
5370
|
"tiny"
|
|
5195
5371
|
];
|
|
5196
5372
|
//#endregion
|
|
5373
|
+
//#region src/components/ds-button-v3/index.ts
|
|
5374
|
+
const DsButtonV3 = withResponsiveProps(DsButtonV3$1, ["size"]);
|
|
5375
|
+
//#endregion
|
|
5197
5376
|
//#region src/components/ds-card/ds-card.module.scss
|
|
5198
5377
|
var ds_card_module_default = {
|
|
5199
5378
|
"body": "xTnSNq_body",
|
|
@@ -5320,7 +5499,7 @@ const Root$2 = (t0) => {
|
|
|
5320
5499
|
* Use with DsCard.Title and DsCard.Extra for standard layout,
|
|
5321
5500
|
* or provide custom children for full flexibility.
|
|
5322
5501
|
*/
|
|
5323
|
-
const Header$
|
|
5502
|
+
const Header$3 = (t0) => {
|
|
5324
5503
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
5325
5504
|
let children;
|
|
5326
5505
|
let className;
|
|
@@ -5408,7 +5587,7 @@ const Body$2 = (t0) => {
|
|
|
5408
5587
|
/**
|
|
5409
5588
|
* Card footer - bottom section for actions or additional info.
|
|
5410
5589
|
*/
|
|
5411
|
-
const Footer$
|
|
5590
|
+
const Footer$3 = (t0) => {
|
|
5412
5591
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
5413
5592
|
let children;
|
|
5414
5593
|
let className;
|
|
@@ -5451,9 +5630,9 @@ const Footer$2 = (t0) => {
|
|
|
5451
5630
|
};
|
|
5452
5631
|
const DsCard = {
|
|
5453
5632
|
Root: Root$2,
|
|
5454
|
-
Header: Header$
|
|
5633
|
+
Header: Header$3,
|
|
5455
5634
|
Body: Body$2,
|
|
5456
|
-
Footer: Footer$
|
|
5635
|
+
Footer: Footer$3
|
|
5457
5636
|
};
|
|
5458
5637
|
//#endregion
|
|
5459
5638
|
//#region src/components/ds-card/ds-card.types.ts
|
|
@@ -5465,13 +5644,13 @@ const cardSizes = [
|
|
|
5465
5644
|
//#endregion
|
|
5466
5645
|
//#region src/components/ds-checkbox/ds-checkbox.module.scss
|
|
5467
5646
|
var ds_checkbox_module_default = {
|
|
5468
|
-
"
|
|
5469
|
-
"
|
|
5470
|
-
"
|
|
5471
|
-
"container": "-9VV7a_container",
|
|
5472
|
-
"default": "-9VV7a_default",
|
|
5647
|
+
"control": "-9VV7a_control",
|
|
5648
|
+
"hiddenInput": "-9VV7a_hiddenInput",
|
|
5649
|
+
"indicator": "-9VV7a_indicator",
|
|
5473
5650
|
"label": "-9VV7a_label",
|
|
5651
|
+
"labelColumn": "-9VV7a_labelColumn",
|
|
5474
5652
|
"labelInfo": "-9VV7a_labelInfo",
|
|
5653
|
+
"root": "-9VV7a_root",
|
|
5475
5654
|
"warning": "-9VV7a_warning"
|
|
5476
5655
|
};
|
|
5477
5656
|
//#endregion
|
|
@@ -5480,118 +5659,202 @@ var ds_checkbox_module_default = {
|
|
|
5480
5659
|
* Design system Checkbox component
|
|
5481
5660
|
*/
|
|
5482
5661
|
const DsCheckbox = (t0) => {
|
|
5483
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
5484
|
-
let checked;
|
|
5662
|
+
const $ = (0, react_compiler_runtime.c)(25);
|
|
5485
5663
|
let className;
|
|
5486
|
-
let defaultChecked;
|
|
5487
|
-
let id;
|
|
5488
5664
|
let label;
|
|
5489
5665
|
let labelInfo;
|
|
5490
5666
|
let onCheckedChange;
|
|
5491
5667
|
let props;
|
|
5492
5668
|
let t1;
|
|
5669
|
+
let value;
|
|
5493
5670
|
if ($[0] !== t0) {
|
|
5494
|
-
({
|
|
5671
|
+
({variant: t1, label, labelInfo, className, onCheckedChange, value, ...props} = t0);
|
|
5495
5672
|
$[0] = t0;
|
|
5496
|
-
$[1] =
|
|
5497
|
-
$[2] =
|
|
5498
|
-
$[3] =
|
|
5499
|
-
$[4] =
|
|
5500
|
-
$[5] =
|
|
5501
|
-
$[6] =
|
|
5502
|
-
$[7] =
|
|
5503
|
-
$[8] = props;
|
|
5504
|
-
$[9] = t1;
|
|
5673
|
+
$[1] = className;
|
|
5674
|
+
$[2] = label;
|
|
5675
|
+
$[3] = labelInfo;
|
|
5676
|
+
$[4] = onCheckedChange;
|
|
5677
|
+
$[5] = props;
|
|
5678
|
+
$[6] = t1;
|
|
5679
|
+
$[7] = value;
|
|
5505
5680
|
} else {
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
props = $[8];
|
|
5514
|
-
t1 = $[9];
|
|
5681
|
+
className = $[1];
|
|
5682
|
+
label = $[2];
|
|
5683
|
+
labelInfo = $[3];
|
|
5684
|
+
onCheckedChange = $[4];
|
|
5685
|
+
props = $[5];
|
|
5686
|
+
t1 = $[6];
|
|
5687
|
+
value = $[7];
|
|
5515
5688
|
}
|
|
5516
|
-
const
|
|
5517
|
-
const generatedId = (0, react.useId)();
|
|
5518
|
-
const checkboxId = id || generatedId;
|
|
5519
|
-
const t2 = ds_checkbox_module_default[variant];
|
|
5689
|
+
const t2 = (t1 === void 0 ? "default" : t1) === "warning" && ds_checkbox_module_default.warning;
|
|
5520
5690
|
let t3;
|
|
5521
|
-
if ($[
|
|
5522
|
-
t3 = (0, classnames.default)(ds_checkbox_module_default.
|
|
5523
|
-
$[
|
|
5524
|
-
$[
|
|
5525
|
-
$[
|
|
5526
|
-
} else t3 = $[
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
5535
|
-
icon: t4,
|
|
5536
|
-
size: "small",
|
|
5537
|
-
variant: "outlined"
|
|
5538
|
-
})
|
|
5539
|
-
})
|
|
5540
|
-
});
|
|
5541
|
-
$[13] = t4;
|
|
5542
|
-
$[14] = t5;
|
|
5543
|
-
} else t5 = $[14];
|
|
5691
|
+
if ($[8] !== className || $[9] !== t2) {
|
|
5692
|
+
t3 = (0, classnames.default)(ds_checkbox_module_default.root, t2, className);
|
|
5693
|
+
$[8] = className;
|
|
5694
|
+
$[9] = t2;
|
|
5695
|
+
$[10] = t3;
|
|
5696
|
+
} else t3 = $[10];
|
|
5697
|
+
let t4;
|
|
5698
|
+
if ($[11] !== onCheckedChange) {
|
|
5699
|
+
t4 = (details) => onCheckedChange?.(details.checked);
|
|
5700
|
+
$[11] = onCheckedChange;
|
|
5701
|
+
$[12] = t4;
|
|
5702
|
+
} else t4 = $[12];
|
|
5703
|
+
const t5 = value === void 0 ? void 0 : String(value);
|
|
5544
5704
|
let t6;
|
|
5545
|
-
if ($[
|
|
5546
|
-
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
5547
|
-
className: ds_checkbox_module_default.
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
children: t5
|
|
5705
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5706
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_checkbox.Checkbox.Indicator, {
|
|
5707
|
+
className: ds_checkbox_module_default.indicator,
|
|
5708
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
5709
|
+
icon: "check_small",
|
|
5710
|
+
size: "tiny",
|
|
5711
|
+
variant: "rounded"
|
|
5712
|
+
})
|
|
5554
5713
|
});
|
|
5555
|
-
$[
|
|
5556
|
-
|
|
5557
|
-
$[17] = defaultChecked;
|
|
5558
|
-
$[18] = onCheckedChange;
|
|
5559
|
-
$[19] = props;
|
|
5560
|
-
$[20] = t5;
|
|
5561
|
-
$[21] = t6;
|
|
5562
|
-
} else t6 = $[21];
|
|
5714
|
+
$[13] = t6;
|
|
5715
|
+
} else t6 = $[13];
|
|
5563
5716
|
let t7;
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
children: [
|
|
5717
|
+
let t8;
|
|
5718
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5719
|
+
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_checkbox.Checkbox.Control, {
|
|
5720
|
+
className: ds_checkbox_module_default.control,
|
|
5721
|
+
children: [t6, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_checkbox.Checkbox.Indicator, {
|
|
5722
|
+
className: ds_checkbox_module_default.indicator,
|
|
5723
|
+
indeterminate: true,
|
|
5724
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
5725
|
+
icon: "check_indeterminate_small",
|
|
5726
|
+
size: "tiny",
|
|
5727
|
+
variant: "rounded"
|
|
5728
|
+
})
|
|
5729
|
+
})]
|
|
5730
|
+
});
|
|
5731
|
+
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_checkbox.Checkbox.HiddenInput, { className: ds_checkbox_module_default.hiddenInput });
|
|
5732
|
+
$[14] = t7;
|
|
5733
|
+
$[15] = t8;
|
|
5734
|
+
} else {
|
|
5735
|
+
t7 = $[14];
|
|
5736
|
+
t8 = $[15];
|
|
5737
|
+
}
|
|
5738
|
+
let t9;
|
|
5739
|
+
if ($[16] !== label || $[17] !== labelInfo) {
|
|
5740
|
+
t9 = (label || labelInfo) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5741
|
+
className: ds_checkbox_module_default.labelColumn,
|
|
5742
|
+
children: [label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_checkbox.Checkbox.Label, {
|
|
5743
|
+
className: ds_checkbox_module_default.label,
|
|
5744
|
+
children: label
|
|
5745
|
+
}), labelInfo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5569
5746
|
className: ds_checkbox_module_default.labelInfo,
|
|
5570
5747
|
children: labelInfo
|
|
5571
5748
|
})]
|
|
5572
5749
|
});
|
|
5573
|
-
$[
|
|
5574
|
-
$[
|
|
5575
|
-
$[
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
5750
|
+
$[16] = label;
|
|
5751
|
+
$[17] = labelInfo;
|
|
5752
|
+
$[18] = t9;
|
|
5753
|
+
} else t9 = $[18];
|
|
5754
|
+
let t10;
|
|
5755
|
+
if ($[19] !== props || $[20] !== t3 || $[21] !== t4 || $[22] !== t5 || $[23] !== t9) {
|
|
5756
|
+
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_checkbox.Checkbox.Root, {
|
|
5581
5757
|
className: t3,
|
|
5582
|
-
|
|
5758
|
+
onCheckedChange: t4,
|
|
5759
|
+
...props,
|
|
5760
|
+
value: t5,
|
|
5761
|
+
children: [
|
|
5762
|
+
t7,
|
|
5763
|
+
t8,
|
|
5764
|
+
t9
|
|
5765
|
+
]
|
|
5583
5766
|
});
|
|
5584
|
-
$[
|
|
5585
|
-
$[
|
|
5586
|
-
$[
|
|
5587
|
-
$[
|
|
5588
|
-
|
|
5589
|
-
|
|
5767
|
+
$[19] = props;
|
|
5768
|
+
$[20] = t3;
|
|
5769
|
+
$[21] = t4;
|
|
5770
|
+
$[22] = t5;
|
|
5771
|
+
$[23] = t9;
|
|
5772
|
+
$[24] = t10;
|
|
5773
|
+
} else t10 = $[24];
|
|
5774
|
+
return t10;
|
|
5590
5775
|
};
|
|
5591
5776
|
//#endregion
|
|
5592
5777
|
//#region src/components/ds-checkbox/ds-checkbox.types.ts
|
|
5593
5778
|
const checkboxVariants = ["default", "warning"];
|
|
5594
5779
|
//#endregion
|
|
5780
|
+
//#region src/components/ds-checkbox-group/ds-checkbox-group.module.scss
|
|
5781
|
+
var ds_checkbox_group_module_default = {
|
|
5782
|
+
"horizontal": "f9-vsG_horizontal",
|
|
5783
|
+
"root": "f9-vsG_root",
|
|
5784
|
+
"vertical": "f9-vsG_vertical"
|
|
5785
|
+
};
|
|
5786
|
+
//#endregion
|
|
5787
|
+
//#region src/components/ds-checkbox-group/ds-checkbox-group.tsx
|
|
5788
|
+
const DsCheckboxGroup = (t0) => {
|
|
5789
|
+
const $ = (0, react_compiler_runtime.c)(12);
|
|
5790
|
+
let children;
|
|
5791
|
+
let className;
|
|
5792
|
+
let props;
|
|
5793
|
+
let t1;
|
|
5794
|
+
if ($[0] !== t0) {
|
|
5795
|
+
({orientation: t1, className, children, ...props} = t0);
|
|
5796
|
+
$[0] = t0;
|
|
5797
|
+
$[1] = children;
|
|
5798
|
+
$[2] = className;
|
|
5799
|
+
$[3] = props;
|
|
5800
|
+
$[4] = t1;
|
|
5801
|
+
} else {
|
|
5802
|
+
children = $[1];
|
|
5803
|
+
className = $[2];
|
|
5804
|
+
props = $[3];
|
|
5805
|
+
t1 = $[4];
|
|
5806
|
+
}
|
|
5807
|
+
const t2 = ds_checkbox_group_module_default[t1 === void 0 ? "vertical" : t1];
|
|
5808
|
+
let t3;
|
|
5809
|
+
if ($[5] !== className || $[6] !== t2) {
|
|
5810
|
+
t3 = (0, classnames.default)(ds_checkbox_group_module_default.root, t2, className);
|
|
5811
|
+
$[5] = className;
|
|
5812
|
+
$[6] = t2;
|
|
5813
|
+
$[7] = t3;
|
|
5814
|
+
} else t3 = $[7];
|
|
5815
|
+
let t4;
|
|
5816
|
+
if ($[8] !== children || $[9] !== props || $[10] !== t3) {
|
|
5817
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_checkbox.Checkbox.Group, {
|
|
5818
|
+
className: t3,
|
|
5819
|
+
...props,
|
|
5820
|
+
children
|
|
5821
|
+
});
|
|
5822
|
+
$[8] = children;
|
|
5823
|
+
$[9] = props;
|
|
5824
|
+
$[10] = t3;
|
|
5825
|
+
$[11] = t4;
|
|
5826
|
+
} else t4 = $[11];
|
|
5827
|
+
return t4;
|
|
5828
|
+
};
|
|
5829
|
+
//#endregion
|
|
5830
|
+
//#region src/components/ds-checkbox-group/hooks/use-checkbox-select-all.ts
|
|
5831
|
+
/**
|
|
5832
|
+
* Headless helper for a "select all" checkbox bound to a checkbox group.
|
|
5833
|
+
*
|
|
5834
|
+
* - Derives tri-state (`true` / `false` / `'indeterminate'`) from current selection.
|
|
5835
|
+
* - Toggling selects or clears only selectable values; preserves any already-selected
|
|
5836
|
+
* non-selectable values so bulk actions don't silently mutate protected items.
|
|
5837
|
+
*/
|
|
5838
|
+
function useCheckboxSelectAll({ value, allValues, onValueChange, isSelectable }) {
|
|
5839
|
+
const selectableValues = isSelectable ? allValues.filter(isSelectable) : [...allValues];
|
|
5840
|
+
const selectableSet = new Set(selectableValues);
|
|
5841
|
+
const selectedCount = value.reduce((count, v) => selectableSet.has(v) ? count + 1 : count, 0);
|
|
5842
|
+
const selectableCount = selectableValues.length;
|
|
5843
|
+
let selectAllState = "indeterminate";
|
|
5844
|
+
if (selectableCount === 0 || selectedCount === 0) selectAllState = false;
|
|
5845
|
+
else if (selectedCount === selectableCount) selectAllState = true;
|
|
5846
|
+
const onSelectAllChange = (checked) => {
|
|
5847
|
+
const preserved = value.filter((v) => !selectableSet.has(v));
|
|
5848
|
+
onValueChange(checked === true ? [...preserved, ...selectableValues] : preserved);
|
|
5849
|
+
};
|
|
5850
|
+
return {
|
|
5851
|
+
selectAllState,
|
|
5852
|
+
selectedCount,
|
|
5853
|
+
selectableCount,
|
|
5854
|
+
onSelectAllChange
|
|
5855
|
+
};
|
|
5856
|
+
}
|
|
5857
|
+
//#endregion
|
|
5595
5858
|
//#region src/components/ds-chip/ds-chip.module.scss
|
|
5596
5859
|
var ds_chip_module_default = {
|
|
5597
5860
|
"chip": "w6Idwa_chip",
|
|
@@ -7692,7 +7955,7 @@ const DsDrawer = (t0) => {
|
|
|
7692
7955
|
} else t15 = $[24];
|
|
7693
7956
|
return t15;
|
|
7694
7957
|
};
|
|
7695
|
-
const Header$
|
|
7958
|
+
const Header$2 = (t0) => {
|
|
7696
7959
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
7697
7960
|
const { style, className, children } = t0;
|
|
7698
7961
|
let t1;
|
|
@@ -7824,7 +8087,7 @@ const Body$1 = (t0) => {
|
|
|
7824
8087
|
} else t2 = $[5];
|
|
7825
8088
|
return t2;
|
|
7826
8089
|
};
|
|
7827
|
-
const Footer$
|
|
8090
|
+
const Footer$2 = (t0) => {
|
|
7828
8091
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
7829
8092
|
const { style, className, children } = t0;
|
|
7830
8093
|
let t1;
|
|
@@ -7870,12 +8133,12 @@ const Actions$1 = (t0) => {
|
|
|
7870
8133
|
} else t2 = $[5];
|
|
7871
8134
|
return t2;
|
|
7872
8135
|
};
|
|
7873
|
-
DsDrawer.Header = Header$
|
|
8136
|
+
DsDrawer.Header = Header$2;
|
|
7874
8137
|
DsDrawer.Title = Title$1;
|
|
7875
8138
|
DsDrawer.CloseTrigger = CloseTrigger$1;
|
|
7876
8139
|
DsDrawer.Toolbar = Toolbar;
|
|
7877
8140
|
DsDrawer.Body = Body$1;
|
|
7878
|
-
DsDrawer.Footer = Footer$
|
|
8141
|
+
DsDrawer.Footer = Footer$2;
|
|
7879
8142
|
DsDrawer.Actions = Actions$1;
|
|
7880
8143
|
//#endregion
|
|
7881
8144
|
//#region src/components/ds-tag-filter/ds-tag-filter.module.scss
|
|
@@ -8488,7 +8751,7 @@ const DsModal = (t0) => {
|
|
|
8488
8751
|
} else t12 = $[19];
|
|
8489
8752
|
return t12;
|
|
8490
8753
|
};
|
|
8491
|
-
const Header = (t0) => {
|
|
8754
|
+
const Header$1 = (t0) => {
|
|
8492
8755
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
8493
8756
|
const { style, className, children } = t0;
|
|
8494
8757
|
let t1;
|
|
@@ -8591,7 +8854,7 @@ const Body = (t0) => {
|
|
|
8591
8854
|
} else t2 = $[5];
|
|
8592
8855
|
return t2;
|
|
8593
8856
|
};
|
|
8594
|
-
const Footer = (t0) => {
|
|
8857
|
+
const Footer$1 = (t0) => {
|
|
8595
8858
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
8596
8859
|
const { style, className, children } = t0;
|
|
8597
8860
|
let t1;
|
|
@@ -8637,11 +8900,11 @@ const Actions = (t0) => {
|
|
|
8637
8900
|
} else t2 = $[5];
|
|
8638
8901
|
return t2;
|
|
8639
8902
|
};
|
|
8640
|
-
DsModal.Header = Header;
|
|
8903
|
+
DsModal.Header = Header$1;
|
|
8641
8904
|
DsModal.Title = Title;
|
|
8642
8905
|
DsModal.CloseTrigger = CloseTrigger;
|
|
8643
8906
|
DsModal.Body = Body;
|
|
8644
|
-
DsModal.Footer = Footer;
|
|
8907
|
+
DsModal.Footer = Footer$1;
|
|
8645
8908
|
DsModal.Actions = Actions;
|
|
8646
8909
|
//#endregion
|
|
8647
8910
|
//#region src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.scss
|
|
@@ -10807,13 +11070,16 @@ const useControlled = (value, setValue, defaultValue) => {
|
|
|
10807
11070
|
//#region src/components/ds-time-picker/ds-time-picker.module.scss
|
|
10808
11071
|
var ds_time_picker_module_default = {
|
|
10809
11072
|
"clearTrigger": "qkvYYW_clearTrigger",
|
|
11073
|
+
"collapse": "qkvYYW_collapse",
|
|
11074
|
+
"content": "qkvYYW_content",
|
|
11075
|
+
"expand": "qkvYYW_expand",
|
|
10810
11076
|
"root": "qkvYYW_root"
|
|
10811
11077
|
};
|
|
10812
11078
|
//#endregion
|
|
10813
11079
|
//#region src/components/ds-time-picker/ds-time-picker.tsx
|
|
10814
11080
|
const DsTimePicker = (props) => {
|
|
10815
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
10816
|
-
const { id, ref, className, placeholder, min, max, disabled, readOnly, hideClearButton: t0, disablePortal: t1, locale, slotProps } = props;
|
|
11081
|
+
const $ = (0, react_compiler_runtime.c)(72);
|
|
11082
|
+
const { id, ref, className, placeholder, min, max, disabled, readOnly, hideClearButton: t0, disablePortal: t1, locale, slotProps, onBlur } = props;
|
|
10817
11083
|
const hideClearButton = t0 === void 0 ? false : t0;
|
|
10818
11084
|
const disablePortal = t1 === void 0 ? false : t1;
|
|
10819
11085
|
const [value, setValue] = useControlled(props.value, props.onChange, props.defaultValue ?? null);
|
|
@@ -10886,12 +11152,13 @@ const DsTimePicker = (props) => {
|
|
|
10886
11152
|
} else t7 = $[12];
|
|
10887
11153
|
const resetInput = t7;
|
|
10888
11154
|
let t8;
|
|
10889
|
-
if ($[13] !==
|
|
11155
|
+
if ($[13] !== onBlur || $[14] !== resetInput || $[15] !== setValue || $[16] !== value) {
|
|
10890
11156
|
t8 = () => {
|
|
10891
11157
|
setIsFocused(false);
|
|
10892
11158
|
const inputVal_0 = inputRef.current?.value ?? "";
|
|
10893
11159
|
if (!inputVal_0) {
|
|
10894
11160
|
setValue(null);
|
|
11161
|
+
onBlur?.();
|
|
10895
11162
|
return;
|
|
10896
11163
|
}
|
|
10897
11164
|
const parsed_0 = parseTime(inputVal_0);
|
|
@@ -10900,45 +11167,47 @@ const DsTimePicker = (props) => {
|
|
|
10900
11167
|
newDate_0.setHours(parsed_0.hours, parsed_0.minutes, 0, 0);
|
|
10901
11168
|
setValue(newDate_0);
|
|
10902
11169
|
} else resetInput();
|
|
11170
|
+
onBlur?.();
|
|
10903
11171
|
};
|
|
10904
|
-
$[13] =
|
|
10905
|
-
$[14] =
|
|
10906
|
-
$[15] =
|
|
10907
|
-
$[16] =
|
|
10908
|
-
|
|
11172
|
+
$[13] = onBlur;
|
|
11173
|
+
$[14] = resetInput;
|
|
11174
|
+
$[15] = setValue;
|
|
11175
|
+
$[16] = value;
|
|
11176
|
+
$[17] = t8;
|
|
11177
|
+
} else t8 = $[17];
|
|
10909
11178
|
const handleBlur = t8;
|
|
10910
11179
|
let t9;
|
|
10911
|
-
if ($[
|
|
11180
|
+
if ($[18] !== disabled || $[19] !== readOnly || $[20] !== setIsOpen) {
|
|
10912
11181
|
t9 = (details) => {
|
|
10913
11182
|
if (disabled || readOnly) return;
|
|
10914
11183
|
setIsOpen(details.open);
|
|
10915
11184
|
};
|
|
10916
|
-
$[
|
|
10917
|
-
$[
|
|
10918
|
-
$[
|
|
10919
|
-
$[
|
|
10920
|
-
} else t9 = $[
|
|
11185
|
+
$[18] = disabled;
|
|
11186
|
+
$[19] = readOnly;
|
|
11187
|
+
$[20] = setIsOpen;
|
|
11188
|
+
$[21] = t9;
|
|
11189
|
+
} else t9 = $[21];
|
|
10921
11190
|
const handleOpenChange = t9;
|
|
10922
11191
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
10923
11192
|
const Wrapper = disablePortal ? react.Fragment : _ark_ui_react_portal.Portal;
|
|
10924
11193
|
let t10;
|
|
10925
|
-
if ($[
|
|
11194
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10926
11195
|
t10 = {
|
|
10927
11196
|
placement: "bottom-start",
|
|
10928
11197
|
gutter: 4
|
|
10929
11198
|
};
|
|
10930
|
-
$[
|
|
10931
|
-
} else t10 = $[
|
|
11199
|
+
$[22] = t10;
|
|
11200
|
+
} else t10 = $[22];
|
|
10932
11201
|
let t11;
|
|
10933
|
-
if ($[
|
|
11202
|
+
if ($[23] !== className) {
|
|
10934
11203
|
t11 = (0, classnames.default)(ds_time_picker_module_default.root, className);
|
|
10935
|
-
$[
|
|
10936
|
-
$[
|
|
10937
|
-
} else t11 = $[
|
|
11204
|
+
$[23] = className;
|
|
11205
|
+
$[24] = t11;
|
|
11206
|
+
} else t11 = $[24];
|
|
10938
11207
|
const t12 = placeholder ?? "hh:mm AM/PM";
|
|
10939
11208
|
const t13 = slotProps?.input;
|
|
10940
11209
|
let t14;
|
|
10941
|
-
if ($[
|
|
11210
|
+
if ($[25] !== disabled || $[26] !== locale?.clearLabel || $[27] !== locale?.openLabel || $[28] !== readOnly || $[29] !== setValue || $[30] !== showClearButton || $[31] !== slotProps?.input?.slots?.endAdornment) {
|
|
10942
11211
|
t14 = slotProps?.input?.slots?.endAdornment ?? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [showClearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsButton, {
|
|
10943
11212
|
className: ds_time_picker_module_default.clearTrigger,
|
|
10944
11213
|
design: "v1.2",
|
|
@@ -10966,28 +11235,28 @@ const DsTimePicker = (props) => {
|
|
|
10966
11235
|
})
|
|
10967
11236
|
})
|
|
10968
11237
|
})] });
|
|
10969
|
-
$[
|
|
10970
|
-
$[
|
|
10971
|
-
$[
|
|
10972
|
-
$[
|
|
10973
|
-
$[
|
|
10974
|
-
$[
|
|
10975
|
-
$[
|
|
10976
|
-
$[
|
|
10977
|
-
} else t14 = $[
|
|
11238
|
+
$[25] = disabled;
|
|
11239
|
+
$[26] = locale?.clearLabel;
|
|
11240
|
+
$[27] = locale?.openLabel;
|
|
11241
|
+
$[28] = readOnly;
|
|
11242
|
+
$[29] = setValue;
|
|
11243
|
+
$[30] = showClearButton;
|
|
11244
|
+
$[31] = slotProps?.input?.slots?.endAdornment;
|
|
11245
|
+
$[32] = t14;
|
|
11246
|
+
} else t14 = $[32];
|
|
10978
11247
|
const t15 = slotProps?.input?.slots;
|
|
10979
11248
|
let t16;
|
|
10980
|
-
if ($[
|
|
11249
|
+
if ($[33] !== t14 || $[34] !== t15) {
|
|
10981
11250
|
t16 = {
|
|
10982
11251
|
endAdornment: t14,
|
|
10983
11252
|
...t15
|
|
10984
11253
|
};
|
|
10985
|
-
$[
|
|
10986
|
-
$[
|
|
10987
|
-
$[
|
|
10988
|
-
} else t16 = $[
|
|
11254
|
+
$[33] = t14;
|
|
11255
|
+
$[34] = t15;
|
|
11256
|
+
$[35] = t16;
|
|
11257
|
+
} else t16 = $[35];
|
|
10989
11258
|
let t17;
|
|
10990
|
-
if ($[
|
|
11259
|
+
if ($[36] !== disabled || $[37] !== formattedValue || $[38] !== handleBlur || $[39] !== handleInputChange || $[40] !== id || $[41] !== readOnly || $[42] !== t12 || $[43] !== t13 || $[44] !== t16) {
|
|
10991
11260
|
t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTextInput, {
|
|
10992
11261
|
ref: inputRef,
|
|
10993
11262
|
id,
|
|
@@ -11001,19 +11270,19 @@ const DsTimePicker = (props) => {
|
|
|
11001
11270
|
...t13,
|
|
11002
11271
|
slots: t16
|
|
11003
11272
|
});
|
|
11004
|
-
$[
|
|
11005
|
-
$[
|
|
11006
|
-
$[
|
|
11007
|
-
$[
|
|
11008
|
-
$[
|
|
11009
|
-
$[
|
|
11010
|
-
$[
|
|
11011
|
-
$[
|
|
11012
|
-
$[
|
|
11013
|
-
$[
|
|
11014
|
-
} else t17 = $[
|
|
11273
|
+
$[36] = disabled;
|
|
11274
|
+
$[37] = formattedValue;
|
|
11275
|
+
$[38] = handleBlur;
|
|
11276
|
+
$[39] = handleInputChange;
|
|
11277
|
+
$[40] = id;
|
|
11278
|
+
$[41] = readOnly;
|
|
11279
|
+
$[42] = t12;
|
|
11280
|
+
$[43] = t13;
|
|
11281
|
+
$[44] = t16;
|
|
11282
|
+
$[45] = t17;
|
|
11283
|
+
} else t17 = $[45];
|
|
11015
11284
|
let t18;
|
|
11016
|
-
if ($[
|
|
11285
|
+
if ($[46] !== ref || $[47] !== t11 || $[48] !== t17) {
|
|
11017
11286
|
t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_popover.Popover.Anchor, {
|
|
11018
11287
|
asChild: true,
|
|
11019
11288
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -11022,63 +11291,72 @@ const DsTimePicker = (props) => {
|
|
|
11022
11291
|
children: t17
|
|
11023
11292
|
})
|
|
11024
11293
|
});
|
|
11025
|
-
$[
|
|
11026
|
-
$[
|
|
11027
|
-
$[
|
|
11028
|
-
$[
|
|
11029
|
-
} else t18 = $[
|
|
11294
|
+
$[46] = ref;
|
|
11295
|
+
$[47] = t11;
|
|
11296
|
+
$[48] = t17;
|
|
11297
|
+
$[49] = t18;
|
|
11298
|
+
} else t18 = $[49];
|
|
11030
11299
|
const t19 = slotProps?.popover;
|
|
11031
|
-
|
|
11032
|
-
if ($[49] !== max || $[50] !== min || $[51] !== setValue || $[52] !== value) {
|
|
11033
|
-
t20 = timeScrollerAdapter(value, setValue, min, max);
|
|
11034
|
-
$[49] = max;
|
|
11035
|
-
$[50] = min;
|
|
11036
|
-
$[51] = setValue;
|
|
11037
|
-
$[52] = value;
|
|
11038
|
-
$[53] = t20;
|
|
11039
|
-
} else t20 = $[53];
|
|
11300
|
+
const t20 = slotProps?.popover?.className;
|
|
11040
11301
|
let t21;
|
|
11041
|
-
if ($[
|
|
11042
|
-
t21 =
|
|
11302
|
+
if ($[50] !== t20) {
|
|
11303
|
+
t21 = (0, classnames.default)(ds_time_picker_module_default.content, t20);
|
|
11304
|
+
$[50] = t20;
|
|
11305
|
+
$[51] = t21;
|
|
11306
|
+
} else t21 = $[51];
|
|
11307
|
+
let t22;
|
|
11308
|
+
if ($[52] !== max || $[53] !== min || $[54] !== setValue || $[55] !== value) {
|
|
11309
|
+
t22 = timeScrollerAdapter(value, setValue, min, max);
|
|
11310
|
+
$[52] = max;
|
|
11311
|
+
$[53] = min;
|
|
11312
|
+
$[54] = setValue;
|
|
11313
|
+
$[55] = value;
|
|
11314
|
+
$[56] = t22;
|
|
11315
|
+
} else t22 = $[56];
|
|
11316
|
+
let t23;
|
|
11317
|
+
if ($[57] !== isOpen || $[58] !== t22) {
|
|
11318
|
+
t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TimeScroller, {
|
|
11043
11319
|
open: isOpen,
|
|
11044
|
-
...
|
|
11320
|
+
...t22
|
|
11045
11321
|
});
|
|
11046
|
-
$[
|
|
11047
|
-
$[
|
|
11048
|
-
$[
|
|
11049
|
-
} else
|
|
11050
|
-
let
|
|
11051
|
-
if ($[
|
|
11052
|
-
|
|
11322
|
+
$[57] = isOpen;
|
|
11323
|
+
$[58] = t22;
|
|
11324
|
+
$[59] = t23;
|
|
11325
|
+
} else t23 = $[59];
|
|
11326
|
+
let t24;
|
|
11327
|
+
if ($[60] !== t19 || $[61] !== t21 || $[62] !== t23) {
|
|
11328
|
+
t24 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_popover.Popover.Positioner, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_popover.Popover.Content, {
|
|
11053
11329
|
...t19,
|
|
11054
|
-
|
|
11330
|
+
className: t21,
|
|
11331
|
+
children: t23
|
|
11055
11332
|
}) });
|
|
11056
|
-
$[
|
|
11057
|
-
$[
|
|
11058
|
-
$[59] = t22;
|
|
11059
|
-
} else t22 = $[59];
|
|
11060
|
-
let t23;
|
|
11061
|
-
if ($[60] !== Wrapper || $[61] !== t22) {
|
|
11062
|
-
t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: t22 });
|
|
11063
|
-
$[60] = Wrapper;
|
|
11064
|
-
$[61] = t22;
|
|
11333
|
+
$[60] = t19;
|
|
11334
|
+
$[61] = t21;
|
|
11065
11335
|
$[62] = t23;
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11336
|
+
$[63] = t24;
|
|
11337
|
+
} else t24 = $[63];
|
|
11338
|
+
let t25;
|
|
11339
|
+
if ($[64] !== Wrapper || $[65] !== t24) {
|
|
11340
|
+
t25 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: t24 });
|
|
11341
|
+
$[64] = Wrapper;
|
|
11342
|
+
$[65] = t24;
|
|
11343
|
+
$[66] = t25;
|
|
11344
|
+
} else t25 = $[66];
|
|
11345
|
+
let t26;
|
|
11346
|
+
if ($[67] !== handleOpenChange || $[68] !== isOpen || $[69] !== t18 || $[70] !== t25) {
|
|
11347
|
+
t26 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_popover.Popover.Root, {
|
|
11070
11348
|
open: isOpen,
|
|
11071
11349
|
onOpenChange: handleOpenChange,
|
|
11072
11350
|
positioning: t10,
|
|
11073
|
-
children: [t18,
|
|
11074
|
-
});
|
|
11075
|
-
$[
|
|
11076
|
-
$[
|
|
11077
|
-
$[
|
|
11078
|
-
$[
|
|
11079
|
-
$[
|
|
11080
|
-
} else
|
|
11081
|
-
return
|
|
11351
|
+
children: [t18, t25]
|
|
11352
|
+
});
|
|
11353
|
+
$[67] = handleOpenChange;
|
|
11354
|
+
$[68] = isOpen;
|
|
11355
|
+
$[69] = t18;
|
|
11356
|
+
$[70] = t25;
|
|
11357
|
+
$[71] = t26;
|
|
11358
|
+
} else t26 = $[71];
|
|
11359
|
+
return t26;
|
|
11082
11360
|
};
|
|
11083
11361
|
//#endregion
|
|
11084
11362
|
//#region src/components/ds-date-picker/ds-date-picker.module.scss
|
|
@@ -11314,7 +11592,7 @@ function _temp3$1(datePicker) {
|
|
|
11314
11592
|
//#endregion
|
|
11315
11593
|
//#region src/components/ds-date-picker/ds-date-picker.tsx
|
|
11316
11594
|
const DsDatePicker = (t0) => {
|
|
11317
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
11595
|
+
const $ = (0, react_compiler_runtime.c)(123);
|
|
11318
11596
|
let _defaultValue;
|
|
11319
11597
|
let _max;
|
|
11320
11598
|
let _min;
|
|
@@ -11323,6 +11601,7 @@ const DsDatePicker = (t0) => {
|
|
|
11323
11601
|
let disabled;
|
|
11324
11602
|
let id;
|
|
11325
11603
|
let locale;
|
|
11604
|
+
let onBlur;
|
|
11326
11605
|
let onChange;
|
|
11327
11606
|
let onOpenChange;
|
|
11328
11607
|
let placeholder;
|
|
@@ -11334,7 +11613,7 @@ const DsDatePicker = (t0) => {
|
|
|
11334
11613
|
let t3;
|
|
11335
11614
|
let t4;
|
|
11336
11615
|
if ($[0] !== t0) {
|
|
11337
|
-
({placeholder, className, withTime: t1, closeOnSelect: t2, disablePortal: t3, hideClearButton: t4, locale, slotProps, onChange, onOpenChange, value: _value, defaultValue: _defaultValue, min: _min, max: _max, disabled, readOnly, id, ...restProps} = t0);
|
|
11616
|
+
({placeholder, className, withTime: t1, closeOnSelect: t2, disablePortal: t3, hideClearButton: t4, locale, slotProps, onChange, onOpenChange, onBlur, value: _value, defaultValue: _defaultValue, min: _min, max: _max, disabled, readOnly, id, ...restProps} = t0);
|
|
11338
11617
|
$[0] = t0;
|
|
11339
11618
|
$[1] = _defaultValue;
|
|
11340
11619
|
$[2] = _max;
|
|
@@ -11344,16 +11623,17 @@ const DsDatePicker = (t0) => {
|
|
|
11344
11623
|
$[6] = disabled;
|
|
11345
11624
|
$[7] = id;
|
|
11346
11625
|
$[8] = locale;
|
|
11347
|
-
$[9] =
|
|
11348
|
-
$[10] =
|
|
11349
|
-
$[11] =
|
|
11350
|
-
$[12] =
|
|
11351
|
-
$[13] =
|
|
11352
|
-
$[14] =
|
|
11353
|
-
$[15] =
|
|
11354
|
-
$[16] =
|
|
11355
|
-
$[17] =
|
|
11356
|
-
$[18] =
|
|
11626
|
+
$[9] = onBlur;
|
|
11627
|
+
$[10] = onChange;
|
|
11628
|
+
$[11] = onOpenChange;
|
|
11629
|
+
$[12] = placeholder;
|
|
11630
|
+
$[13] = readOnly;
|
|
11631
|
+
$[14] = restProps;
|
|
11632
|
+
$[15] = slotProps;
|
|
11633
|
+
$[16] = t1;
|
|
11634
|
+
$[17] = t2;
|
|
11635
|
+
$[18] = t3;
|
|
11636
|
+
$[19] = t4;
|
|
11357
11637
|
} else {
|
|
11358
11638
|
_defaultValue = $[1];
|
|
11359
11639
|
_max = $[2];
|
|
@@ -11363,84 +11643,85 @@ const DsDatePicker = (t0) => {
|
|
|
11363
11643
|
disabled = $[6];
|
|
11364
11644
|
id = $[7];
|
|
11365
11645
|
locale = $[8];
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11646
|
+
onBlur = $[9];
|
|
11647
|
+
onChange = $[10];
|
|
11648
|
+
onOpenChange = $[11];
|
|
11649
|
+
placeholder = $[12];
|
|
11650
|
+
readOnly = $[13];
|
|
11651
|
+
restProps = $[14];
|
|
11652
|
+
slotProps = $[15];
|
|
11653
|
+
t1 = $[16];
|
|
11654
|
+
t2 = $[17];
|
|
11655
|
+
t3 = $[18];
|
|
11656
|
+
t4 = $[19];
|
|
11376
11657
|
}
|
|
11377
11658
|
const withTime = t1 === void 0 ? false : t1;
|
|
11378
11659
|
const closeOnSelect = t2 === void 0 ? true : t2;
|
|
11379
11660
|
const disablePortal = t3 === void 0 ? false : t3;
|
|
11380
11661
|
const hideClearButton = t4 === void 0 ? false : t4;
|
|
11381
11662
|
let t5;
|
|
11382
|
-
if ($[
|
|
11663
|
+
if ($[20] !== _defaultValue) {
|
|
11383
11664
|
t5 = toIntlDate(_defaultValue);
|
|
11384
|
-
$[
|
|
11385
|
-
$[
|
|
11386
|
-
} else t5 = $[
|
|
11665
|
+
$[20] = _defaultValue;
|
|
11666
|
+
$[21] = t5;
|
|
11667
|
+
} else t5 = $[21];
|
|
11387
11668
|
const defaultValue = t5;
|
|
11388
11669
|
let t6;
|
|
11389
|
-
if ($[
|
|
11670
|
+
if ($[22] !== _value) {
|
|
11390
11671
|
t6 = toIntlDate(_value);
|
|
11391
|
-
$[
|
|
11392
|
-
$[
|
|
11393
|
-
} else t6 = $[
|
|
11672
|
+
$[22] = _value;
|
|
11673
|
+
$[23] = t6;
|
|
11674
|
+
} else t6 = $[23];
|
|
11394
11675
|
let t7;
|
|
11395
|
-
if ($[
|
|
11676
|
+
if ($[24] !== onChange) {
|
|
11396
11677
|
t7 = onChange ? (v) => onChange(fromIntlDate(v)) : void 0;
|
|
11397
|
-
$[
|
|
11398
|
-
$[
|
|
11399
|
-
} else t7 = $[
|
|
11678
|
+
$[24] = onChange;
|
|
11679
|
+
$[25] = t7;
|
|
11680
|
+
} else t7 = $[25];
|
|
11400
11681
|
const [value, setValue] = useControlled(t6, t7, defaultValue ?? null);
|
|
11401
11682
|
let t8;
|
|
11402
|
-
if ($[
|
|
11683
|
+
if ($[26] !== _min) {
|
|
11403
11684
|
t8 = toIntlDate(_min);
|
|
11404
|
-
$[
|
|
11405
|
-
$[
|
|
11406
|
-
} else t8 = $[
|
|
11685
|
+
$[26] = _min;
|
|
11686
|
+
$[27] = t8;
|
|
11687
|
+
} else t8 = $[27];
|
|
11407
11688
|
const min = t8;
|
|
11408
11689
|
let t9;
|
|
11409
|
-
if ($[
|
|
11690
|
+
if ($[28] !== _max) {
|
|
11410
11691
|
t9 = toIntlDate(_max);
|
|
11411
|
-
$[
|
|
11412
|
-
$[
|
|
11413
|
-
} else t9 = $[
|
|
11692
|
+
$[28] = _max;
|
|
11693
|
+
$[29] = t9;
|
|
11694
|
+
} else t9 = $[29];
|
|
11414
11695
|
const max = t9;
|
|
11415
11696
|
const [isFocused, setIsFocused] = (0, react.useState)(false);
|
|
11416
11697
|
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
11417
11698
|
const inputRef = (0, react.useRef)(null);
|
|
11418
11699
|
let t10;
|
|
11419
|
-
if ($[
|
|
11700
|
+
if ($[30] !== value || $[31] !== withTime) {
|
|
11420
11701
|
t10 = formatDate(value, withTime);
|
|
11421
|
-
$[
|
|
11422
|
-
$[
|
|
11423
|
-
$[
|
|
11424
|
-
} else t10 = $[
|
|
11702
|
+
$[30] = value;
|
|
11703
|
+
$[31] = withTime;
|
|
11704
|
+
$[32] = t10;
|
|
11705
|
+
} else t10 = $[32];
|
|
11425
11706
|
const formattedValue = t10;
|
|
11426
11707
|
let t11;
|
|
11427
11708
|
let t12;
|
|
11428
|
-
if ($[
|
|
11709
|
+
if ($[33] !== formattedValue || $[34] !== isFocused) {
|
|
11429
11710
|
t11 = () => {
|
|
11430
11711
|
if (!isFocused && inputRef.current) inputRef.current.value = formattedValue;
|
|
11431
11712
|
};
|
|
11432
11713
|
t12 = [isFocused, formattedValue];
|
|
11433
|
-
$[
|
|
11434
|
-
$[
|
|
11435
|
-
$[
|
|
11436
|
-
$[
|
|
11714
|
+
$[33] = formattedValue;
|
|
11715
|
+
$[34] = isFocused;
|
|
11716
|
+
$[35] = t11;
|
|
11717
|
+
$[36] = t12;
|
|
11437
11718
|
} else {
|
|
11438
|
-
t11 = $[
|
|
11439
|
-
t12 = $[
|
|
11719
|
+
t11 = $[35];
|
|
11720
|
+
t12 = $[36];
|
|
11440
11721
|
}
|
|
11441
11722
|
(0, react.useEffect)(t11, t12);
|
|
11442
11723
|
let t13;
|
|
11443
|
-
if ($[
|
|
11724
|
+
if ($[37] !== max || $[38] !== min || $[39] !== setValue || $[40] !== withTime) {
|
|
11444
11725
|
t13 = (e) => {
|
|
11445
11726
|
const text = e.target.value;
|
|
11446
11727
|
if (validateDateString({
|
|
@@ -11450,33 +11731,33 @@ const DsDatePicker = (t0) => {
|
|
|
11450
11731
|
withTime
|
|
11451
11732
|
})) setValue(parseDate(text));
|
|
11452
11733
|
};
|
|
11453
|
-
$[
|
|
11454
|
-
$[
|
|
11455
|
-
$[
|
|
11456
|
-
$[
|
|
11457
|
-
$[
|
|
11458
|
-
} else t13 = $[
|
|
11734
|
+
$[37] = max;
|
|
11735
|
+
$[38] = min;
|
|
11736
|
+
$[39] = setValue;
|
|
11737
|
+
$[40] = withTime;
|
|
11738
|
+
$[41] = t13;
|
|
11739
|
+
} else t13 = $[41];
|
|
11459
11740
|
const handleInputChange = t13;
|
|
11460
11741
|
let t14;
|
|
11461
|
-
if ($[
|
|
11742
|
+
if ($[42] !== formattedValue || $[43] !== value) {
|
|
11462
11743
|
t14 = () => {
|
|
11463
11744
|
if (inputRef.current) inputRef.current.value = value ? formattedValue : "";
|
|
11464
11745
|
};
|
|
11465
|
-
$[
|
|
11466
|
-
$[
|
|
11467
|
-
$[
|
|
11468
|
-
} else t14 = $[
|
|
11746
|
+
$[42] = formattedValue;
|
|
11747
|
+
$[43] = value;
|
|
11748
|
+
$[44] = t14;
|
|
11749
|
+
} else t14 = $[44];
|
|
11469
11750
|
const resetInput = t14;
|
|
11470
11751
|
let t15;
|
|
11471
|
-
if ($[
|
|
11752
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11472
11753
|
t15 = () => {
|
|
11473
11754
|
setIsFocused(true);
|
|
11474
11755
|
};
|
|
11475
|
-
$[
|
|
11476
|
-
} else t15 = $[
|
|
11756
|
+
$[45] = t15;
|
|
11757
|
+
} else t15 = $[45];
|
|
11477
11758
|
const handleFocus = t15;
|
|
11478
11759
|
let t16;
|
|
11479
|
-
if ($[
|
|
11760
|
+
if ($[46] !== max || $[47] !== min || $[48] !== onBlur || $[49] !== resetInput || $[50] !== setValue || $[51] !== withTime) {
|
|
11480
11761
|
t16 = () => {
|
|
11481
11762
|
setIsFocused(false);
|
|
11482
11763
|
const text_0 = inputRef.current?.value || "";
|
|
@@ -11487,63 +11768,65 @@ const DsDatePicker = (t0) => {
|
|
|
11487
11768
|
withTime
|
|
11488
11769
|
})) setValue(parseDate(text_0));
|
|
11489
11770
|
else resetInput();
|
|
11771
|
+
onBlur?.();
|
|
11490
11772
|
};
|
|
11491
|
-
$[
|
|
11492
|
-
$[
|
|
11493
|
-
$[
|
|
11494
|
-
$[
|
|
11495
|
-
$[
|
|
11496
|
-
$[
|
|
11497
|
-
|
|
11773
|
+
$[46] = max;
|
|
11774
|
+
$[47] = min;
|
|
11775
|
+
$[48] = onBlur;
|
|
11776
|
+
$[49] = resetInput;
|
|
11777
|
+
$[50] = setValue;
|
|
11778
|
+
$[51] = withTime;
|
|
11779
|
+
$[52] = t16;
|
|
11780
|
+
} else t16 = $[52];
|
|
11498
11781
|
const handleBlur = t16;
|
|
11499
11782
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
11500
11783
|
const Wrapper = disablePortal ? react.Fragment : _ark_ui_react_portal.Portal;
|
|
11501
11784
|
let t17;
|
|
11502
|
-
if ($[
|
|
11503
|
-
t17 = value ? [value] : void 0;
|
|
11504
|
-
$[
|
|
11505
|
-
$[
|
|
11506
|
-
} else t17 = $[
|
|
11785
|
+
if ($[53] !== value) {
|
|
11786
|
+
t17 = value ? [value] : void 0;
|
|
11787
|
+
$[53] = value;
|
|
11788
|
+
$[54] = t17;
|
|
11789
|
+
} else t17 = $[54];
|
|
11507
11790
|
let t18;
|
|
11508
|
-
if ($[
|
|
11791
|
+
if ($[55] !== defaultValue) {
|
|
11509
11792
|
t18 = defaultValue ? [defaultValue] : void 0;
|
|
11510
|
-
$[
|
|
11511
|
-
$[
|
|
11512
|
-
} else t18 = $[
|
|
11793
|
+
$[55] = defaultValue;
|
|
11794
|
+
$[56] = t18;
|
|
11795
|
+
} else t18 = $[56];
|
|
11513
11796
|
let t19;
|
|
11514
|
-
if ($[
|
|
11797
|
+
if ($[57] !== setValue) {
|
|
11515
11798
|
t19 = (details) => {
|
|
11516
11799
|
setValue(details.value[0] ?? null);
|
|
11517
11800
|
};
|
|
11518
|
-
$[
|
|
11519
|
-
$[
|
|
11520
|
-
} else t19 = $[
|
|
11801
|
+
$[57] = setValue;
|
|
11802
|
+
$[58] = t19;
|
|
11803
|
+
} else t19 = $[58];
|
|
11521
11804
|
let t20;
|
|
11522
|
-
if ($[
|
|
11805
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11523
11806
|
t20 = {
|
|
11524
11807
|
placement: "bottom-start",
|
|
11525
11808
|
gutter: 4
|
|
11526
11809
|
};
|
|
11527
|
-
$[
|
|
11528
|
-
} else t20 = $[
|
|
11810
|
+
$[59] = t20;
|
|
11811
|
+
} else t20 = $[59];
|
|
11529
11812
|
const t21 = withTime ? false : closeOnSelect;
|
|
11530
11813
|
let t22;
|
|
11531
|
-
if ($[
|
|
11814
|
+
if ($[60] !== isFocused || $[61] !== onOpenChange) {
|
|
11532
11815
|
t22 = (details_0) => {
|
|
11533
11816
|
if (!isFocused) {
|
|
11534
11817
|
setIsOpen(details_0.open);
|
|
11535
11818
|
onOpenChange?.(details_0.open);
|
|
11536
11819
|
}
|
|
11537
11820
|
};
|
|
11538
|
-
$[
|
|
11539
|
-
$[
|
|
11540
|
-
$[
|
|
11541
|
-
} else t22 = $[
|
|
11821
|
+
$[60] = isFocused;
|
|
11822
|
+
$[61] = onOpenChange;
|
|
11823
|
+
$[62] = t22;
|
|
11824
|
+
} else t22 = $[62];
|
|
11542
11825
|
const t23 = placeholder ?? (withTime ? "mm/dd/yyyy, hh:mm AM/PM" : "mm/dd/yyyy");
|
|
11543
11826
|
const t24 = slotProps?.input;
|
|
11544
11827
|
const t25 = slotProps?.input?.slots;
|
|
11545
11828
|
let t26;
|
|
11546
|
-
if ($[
|
|
11829
|
+
if ($[63] !== disabled || $[64] !== locale?.clearLabel || $[65] !== setValue || $[66] !== showClearButton) {
|
|
11547
11830
|
t26 = showClearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.ClearTrigger, {
|
|
11548
11831
|
asChild: true,
|
|
11549
11832
|
onClick: () => setValue(null),
|
|
@@ -11560,23 +11843,23 @@ const DsDatePicker = (t0) => {
|
|
|
11560
11843
|
})
|
|
11561
11844
|
})
|
|
11562
11845
|
});
|
|
11563
|
-
$[
|
|
11564
|
-
$[
|
|
11565
|
-
$[
|
|
11566
|
-
$[
|
|
11567
|
-
$[
|
|
11568
|
-
} else t26 = $[
|
|
11846
|
+
$[63] = disabled;
|
|
11847
|
+
$[64] = locale?.clearLabel;
|
|
11848
|
+
$[65] = setValue;
|
|
11849
|
+
$[66] = showClearButton;
|
|
11850
|
+
$[67] = t26;
|
|
11851
|
+
} else t26 = $[67];
|
|
11569
11852
|
const t27 = locale?.openCalendarLabel ?? "Open calendar";
|
|
11570
11853
|
let t28;
|
|
11571
|
-
if ($[
|
|
11854
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11572
11855
|
t28 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
11573
11856
|
icon: "calendar_today",
|
|
11574
11857
|
size: "tiny"
|
|
11575
11858
|
});
|
|
11576
|
-
$[
|
|
11577
|
-
} else t28 = $[
|
|
11859
|
+
$[68] = t28;
|
|
11860
|
+
} else t28 = $[68];
|
|
11578
11861
|
let t29;
|
|
11579
|
-
if ($[
|
|
11862
|
+
if ($[69] !== disabled || $[70] !== t27) {
|
|
11580
11863
|
t29 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Trigger, {
|
|
11581
11864
|
asChild: true,
|
|
11582
11865
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsButton, {
|
|
@@ -11588,29 +11871,29 @@ const DsDatePicker = (t0) => {
|
|
|
11588
11871
|
children: t28
|
|
11589
11872
|
})
|
|
11590
11873
|
});
|
|
11591
|
-
$[
|
|
11592
|
-
$[
|
|
11593
|
-
$[
|
|
11594
|
-
} else t29 = $[
|
|
11874
|
+
$[69] = disabled;
|
|
11875
|
+
$[70] = t27;
|
|
11876
|
+
$[71] = t29;
|
|
11877
|
+
} else t29 = $[71];
|
|
11595
11878
|
let t30;
|
|
11596
|
-
if ($[
|
|
11879
|
+
if ($[72] !== t26 || $[73] !== t29) {
|
|
11597
11880
|
t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t26, t29] });
|
|
11598
|
-
$[
|
|
11599
|
-
$[
|
|
11600
|
-
$[
|
|
11601
|
-
} else t30 = $[
|
|
11881
|
+
$[72] = t26;
|
|
11882
|
+
$[73] = t29;
|
|
11883
|
+
$[74] = t30;
|
|
11884
|
+
} else t30 = $[74];
|
|
11602
11885
|
let t31;
|
|
11603
|
-
if ($[
|
|
11886
|
+
if ($[75] !== t25 || $[76] !== t30) {
|
|
11604
11887
|
t31 = {
|
|
11605
11888
|
...t25,
|
|
11606
11889
|
endAdornment: t30
|
|
11607
11890
|
};
|
|
11608
|
-
$[
|
|
11609
|
-
$[
|
|
11610
|
-
$[
|
|
11611
|
-
} else t31 = $[
|
|
11891
|
+
$[75] = t25;
|
|
11892
|
+
$[76] = t30;
|
|
11893
|
+
$[77] = t31;
|
|
11894
|
+
} else t31 = $[77];
|
|
11612
11895
|
let t32;
|
|
11613
|
-
if ($[
|
|
11896
|
+
if ($[78] !== disabled || $[79] !== formattedValue || $[80] !== handleBlur || $[81] !== handleInputChange || $[82] !== id || $[83] !== readOnly || $[84] !== t23 || $[85] !== t24 || $[86] !== t31) {
|
|
11614
11897
|
t32 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Control, {
|
|
11615
11898
|
className: ds_date_picker_module_default.control,
|
|
11616
11899
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTextInput, {
|
|
@@ -11627,19 +11910,19 @@ const DsDatePicker = (t0) => {
|
|
|
11627
11910
|
slots: t31
|
|
11628
11911
|
})
|
|
11629
11912
|
});
|
|
11630
|
-
$[
|
|
11631
|
-
$[
|
|
11632
|
-
$[
|
|
11633
|
-
$[
|
|
11634
|
-
$[
|
|
11635
|
-
$[
|
|
11636
|
-
$[
|
|
11637
|
-
$[
|
|
11638
|
-
$[
|
|
11639
|
-
$[
|
|
11640
|
-
} else t32 = $[
|
|
11913
|
+
$[78] = disabled;
|
|
11914
|
+
$[79] = formattedValue;
|
|
11915
|
+
$[80] = handleBlur;
|
|
11916
|
+
$[81] = handleInputChange;
|
|
11917
|
+
$[82] = id;
|
|
11918
|
+
$[83] = readOnly;
|
|
11919
|
+
$[84] = t23;
|
|
11920
|
+
$[85] = t24;
|
|
11921
|
+
$[86] = t31;
|
|
11922
|
+
$[87] = t32;
|
|
11923
|
+
} else t32 = $[87];
|
|
11641
11924
|
let t33;
|
|
11642
|
-
if ($[
|
|
11925
|
+
if ($[88] !== _max || $[89] !== _min || $[90] !== disabled || $[91] !== max || $[92] !== min || $[93] !== readOnly || $[94] !== setValue || $[95] !== slotProps?.timePicker || $[96] !== value || $[97] !== withTime) {
|
|
11643
11926
|
t33 = withTime && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTimePicker, {
|
|
11644
11927
|
value: fromIntlDate(value),
|
|
11645
11928
|
onChange: (v_0) => {
|
|
@@ -11659,37 +11942,37 @@ const DsDatePicker = (t0) => {
|
|
|
11659
11942
|
...slotProps?.timePicker?.slotProps
|
|
11660
11943
|
}
|
|
11661
11944
|
});
|
|
11662
|
-
$[
|
|
11663
|
-
$[
|
|
11664
|
-
$[
|
|
11665
|
-
$[
|
|
11666
|
-
$[
|
|
11667
|
-
$[
|
|
11668
|
-
$[
|
|
11669
|
-
$[
|
|
11670
|
-
$[
|
|
11671
|
-
$[
|
|
11672
|
-
$[
|
|
11673
|
-
} else t33 = $[
|
|
11945
|
+
$[88] = _max;
|
|
11946
|
+
$[89] = _min;
|
|
11947
|
+
$[90] = disabled;
|
|
11948
|
+
$[91] = max;
|
|
11949
|
+
$[92] = min;
|
|
11950
|
+
$[93] = readOnly;
|
|
11951
|
+
$[94] = setValue;
|
|
11952
|
+
$[95] = slotProps?.timePicker;
|
|
11953
|
+
$[96] = value;
|
|
11954
|
+
$[97] = withTime;
|
|
11955
|
+
$[98] = t33;
|
|
11956
|
+
} else t33 = $[98];
|
|
11674
11957
|
let t34;
|
|
11675
|
-
if ($[
|
|
11958
|
+
if ($[99] !== t33) {
|
|
11676
11959
|
t34 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DayView, { children: t33 });
|
|
11677
|
-
$[
|
|
11678
|
-
$[
|
|
11679
|
-
} else t34 = $[
|
|
11960
|
+
$[99] = t33;
|
|
11961
|
+
$[100] = t34;
|
|
11962
|
+
} else t34 = $[100];
|
|
11680
11963
|
let t35;
|
|
11681
11964
|
let t36;
|
|
11682
|
-
if ($[
|
|
11965
|
+
if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11683
11966
|
t35 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthView, {});
|
|
11684
11967
|
t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(YearView, {});
|
|
11685
|
-
$[
|
|
11686
|
-
$[
|
|
11968
|
+
$[101] = t35;
|
|
11969
|
+
$[102] = t36;
|
|
11687
11970
|
} else {
|
|
11688
|
-
t35 = $[
|
|
11689
|
-
t36 = $[
|
|
11971
|
+
t35 = $[101];
|
|
11972
|
+
t36 = $[102];
|
|
11690
11973
|
}
|
|
11691
11974
|
let t37;
|
|
11692
|
-
if ($[
|
|
11975
|
+
if ($[103] !== t34) {
|
|
11693
11976
|
t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Positioner, {
|
|
11694
11977
|
className: ds_date_picker_module_default.positioner,
|
|
11695
11978
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_date_picker.DatePicker.Content, {
|
|
@@ -11701,18 +11984,18 @@ const DsDatePicker = (t0) => {
|
|
|
11701
11984
|
]
|
|
11702
11985
|
})
|
|
11703
11986
|
});
|
|
11704
|
-
$[
|
|
11705
|
-
$[
|
|
11706
|
-
} else t37 = $[
|
|
11987
|
+
$[103] = t34;
|
|
11988
|
+
$[104] = t37;
|
|
11989
|
+
} else t37 = $[104];
|
|
11707
11990
|
let t38;
|
|
11708
|
-
if ($[
|
|
11991
|
+
if ($[105] !== Wrapper || $[106] !== t37) {
|
|
11709
11992
|
t38 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: t37 });
|
|
11710
|
-
$[
|
|
11711
|
-
$[
|
|
11712
|
-
$[
|
|
11713
|
-
} else t38 = $[
|
|
11993
|
+
$[105] = Wrapper;
|
|
11994
|
+
$[106] = t37;
|
|
11995
|
+
$[107] = t38;
|
|
11996
|
+
} else t38 = $[107];
|
|
11714
11997
|
let t39;
|
|
11715
|
-
if ($[
|
|
11998
|
+
if ($[108] !== className || $[109] !== disabled || $[110] !== isOpen || $[111] !== max || $[112] !== min || $[113] !== readOnly || $[114] !== restProps || $[115] !== t17 || $[116] !== t18 || $[117] !== t19 || $[118] !== t21 || $[119] !== t22 || $[120] !== t32 || $[121] !== t38) {
|
|
11716
11999
|
t39 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_date_picker.DatePicker.Root, {
|
|
11717
12000
|
className,
|
|
11718
12001
|
value: t17,
|
|
@@ -11730,22 +12013,22 @@ const DsDatePicker = (t0) => {
|
|
|
11730
12013
|
...restProps,
|
|
11731
12014
|
children: [t32, t38]
|
|
11732
12015
|
});
|
|
11733
|
-
$[
|
|
11734
|
-
$[
|
|
11735
|
-
$[
|
|
11736
|
-
$[
|
|
11737
|
-
$[
|
|
11738
|
-
$[
|
|
11739
|
-
$[
|
|
11740
|
-
$[
|
|
11741
|
-
$[
|
|
11742
|
-
$[
|
|
11743
|
-
$[
|
|
11744
|
-
$[
|
|
11745
|
-
$[
|
|
11746
|
-
$[
|
|
11747
|
-
$[
|
|
11748
|
-
} else t39 = $[
|
|
12016
|
+
$[108] = className;
|
|
12017
|
+
$[109] = disabled;
|
|
12018
|
+
$[110] = isOpen;
|
|
12019
|
+
$[111] = max;
|
|
12020
|
+
$[112] = min;
|
|
12021
|
+
$[113] = readOnly;
|
|
12022
|
+
$[114] = restProps;
|
|
12023
|
+
$[115] = t17;
|
|
12024
|
+
$[116] = t18;
|
|
12025
|
+
$[117] = t19;
|
|
12026
|
+
$[118] = t21;
|
|
12027
|
+
$[119] = t22;
|
|
12028
|
+
$[120] = t32;
|
|
12029
|
+
$[121] = t38;
|
|
12030
|
+
$[122] = t39;
|
|
12031
|
+
} else t39 = $[122];
|
|
11749
12032
|
return t39;
|
|
11750
12033
|
};
|
|
11751
12034
|
//#endregion
|
|
@@ -14214,22 +14497,24 @@ const filterStatuses = [
|
|
|
14214
14497
|
];
|
|
14215
14498
|
//#endregion
|
|
14216
14499
|
//#region src/components/ds-grid/ds-grid.tsx
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14500
|
+
const DsGridBase = ({ children, columns, rows, gutter, margin, className, style }) => {
|
|
14501
|
+
const gridClass = (0, classnames.default)("ds-grid", {
|
|
14502
|
+
[`ds-grid-cols-${String(columns)}`]: columns,
|
|
14503
|
+
[`ds-grid-rows-${String(rows)}`]: rows
|
|
14504
|
+
}, className);
|
|
14505
|
+
const cssVars = {};
|
|
14506
|
+
if (gutter !== void 0) cssVars["--ds-grid-gutter"] = typeof gutter === "number" ? `${String(gutter)}px` : gutter;
|
|
14507
|
+
if (margin !== void 0) cssVars["--ds-grid-margin"] = typeof margin === "number" ? `${String(margin)}px` : margin;
|
|
14221
14508
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14222
|
-
className:
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14509
|
+
className: gridClass,
|
|
14510
|
+
style: {
|
|
14511
|
+
...style,
|
|
14512
|
+
...cssVars
|
|
14513
|
+
},
|
|
14226
14514
|
children
|
|
14227
14515
|
});
|
|
14228
14516
|
};
|
|
14229
|
-
|
|
14230
|
-
* Design system GridItem component
|
|
14231
|
-
*/
|
|
14232
|
-
const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14517
|
+
const DsGridItemBase = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14233
14518
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14234
14519
|
className: (0, classnames.default)({
|
|
14235
14520
|
[`ds-grid-col-span-${String(colSpan)}`]: colSpan,
|
|
@@ -14241,6 +14526,10 @@ const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className
|
|
|
14241
14526
|
});
|
|
14242
14527
|
};
|
|
14243
14528
|
//#endregion
|
|
14529
|
+
//#region src/components/ds-grid/index.ts
|
|
14530
|
+
const DsGrid = withResponsiveProps(DsGridBase, ["gutter", "margin"]);
|
|
14531
|
+
const DsGridItem = withResponsiveProps(DsGridItemBase, ["colSpan", "rowSpan"]);
|
|
14532
|
+
//#endregion
|
|
14244
14533
|
//#region src/components/ds-key-value-pair/ds-key-value-pair.module.scss
|
|
14245
14534
|
var ds_key_value_pair_module_default = {
|
|
14246
14535
|
"editorSlot": "_6K_oIW_editorSlot",
|
|
@@ -15488,7 +15777,7 @@ const Root$1 = (t0) => {
|
|
|
15488
15777
|
* Item component - renders a single radio button with optional label
|
|
15489
15778
|
*/
|
|
15490
15779
|
const Item$1 = (t0) => {
|
|
15491
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
15780
|
+
const $ = (0, react_compiler_runtime.c)(24);
|
|
15492
15781
|
let children;
|
|
15493
15782
|
let className;
|
|
15494
15783
|
let label;
|
|
@@ -15542,22 +15831,28 @@ const Item$1 = (t0) => {
|
|
|
15542
15831
|
t3 = $[11];
|
|
15543
15832
|
}
|
|
15544
15833
|
let t4;
|
|
15545
|
-
if ($[12] !== children || $[13] !== label
|
|
15546
|
-
t4 = label ? /* @__PURE__ */ (0, react_jsx_runtime.
|
|
15834
|
+
if ($[12] !== children || $[13] !== label) {
|
|
15835
|
+
t4 = label ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_radio_group.RadioGroup.ItemText, {
|
|
15547
15836
|
className: ds_radio_group_module_default.radioLabel,
|
|
15548
|
-
children:
|
|
15549
|
-
className: ds_radio_group_module_default.labelInfo,
|
|
15550
|
-
children: labelInfo
|
|
15551
|
-
})]
|
|
15837
|
+
children: label
|
|
15552
15838
|
}) : children;
|
|
15553
15839
|
$[12] = children;
|
|
15554
15840
|
$[13] = label;
|
|
15555
|
-
$[14] =
|
|
15556
|
-
|
|
15557
|
-
} else t4 = $[15];
|
|
15841
|
+
$[14] = t4;
|
|
15842
|
+
} else t4 = $[14];
|
|
15558
15843
|
let t5;
|
|
15559
|
-
if ($[
|
|
15560
|
-
t5 = /* @__PURE__ */ (0, react_jsx_runtime.
|
|
15844
|
+
if ($[15] !== labelInfo) {
|
|
15845
|
+
t5 = !!labelInfo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTypography, {
|
|
15846
|
+
variant: "body-xs-reg",
|
|
15847
|
+
className: ds_radio_group_module_default.labelInfo,
|
|
15848
|
+
children: labelInfo
|
|
15849
|
+
});
|
|
15850
|
+
$[15] = labelInfo;
|
|
15851
|
+
$[16] = t5;
|
|
15852
|
+
} else t5 = $[16];
|
|
15853
|
+
let t6;
|
|
15854
|
+
if ($[17] !== props || $[18] !== style || $[19] !== t1 || $[20] !== t4 || $[21] !== t5 || $[22] !== value) {
|
|
15855
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_radio_group.RadioGroup.Item, {
|
|
15561
15856
|
value,
|
|
15562
15857
|
className: t1,
|
|
15563
15858
|
style,
|
|
@@ -15565,17 +15860,19 @@ const Item$1 = (t0) => {
|
|
|
15565
15860
|
children: [
|
|
15566
15861
|
t2,
|
|
15567
15862
|
t3,
|
|
15568
|
-
t4
|
|
15863
|
+
t4,
|
|
15864
|
+
t5
|
|
15569
15865
|
]
|
|
15570
15866
|
});
|
|
15571
|
-
$[
|
|
15572
|
-
$[
|
|
15573
|
-
$[
|
|
15574
|
-
$[
|
|
15575
|
-
$[20] = value;
|
|
15867
|
+
$[17] = props;
|
|
15868
|
+
$[18] = style;
|
|
15869
|
+
$[19] = t1;
|
|
15870
|
+
$[20] = t4;
|
|
15576
15871
|
$[21] = t5;
|
|
15577
|
-
|
|
15578
|
-
|
|
15872
|
+
$[22] = value;
|
|
15873
|
+
$[23] = t6;
|
|
15874
|
+
} else t6 = $[23];
|
|
15875
|
+
return t6;
|
|
15579
15876
|
};
|
|
15580
15877
|
/**
|
|
15581
15878
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
@@ -15584,61 +15881,50 @@ const Item$1 = (t0) => {
|
|
|
15584
15881
|
*/
|
|
15585
15882
|
/* c8 ignore start */
|
|
15586
15883
|
const DsRadioGroupLegacy = (t0) => {
|
|
15587
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
15588
|
-
|
|
15589
|
-
let defaultValue;
|
|
15590
|
-
let onValueChange;
|
|
15591
|
-
let options;
|
|
15592
|
-
let props;
|
|
15593
|
-
let value;
|
|
15594
|
-
if ($[0] !== t0) {
|
|
15595
|
-
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
15596
|
-
$[0] = t0;
|
|
15597
|
-
$[1] = className;
|
|
15598
|
-
$[2] = defaultValue;
|
|
15599
|
-
$[3] = onValueChange;
|
|
15600
|
-
$[4] = options;
|
|
15601
|
-
$[5] = props;
|
|
15602
|
-
$[6] = value;
|
|
15603
|
-
} else {
|
|
15604
|
-
className = $[1];
|
|
15605
|
-
defaultValue = $[2];
|
|
15606
|
-
onValueChange = $[3];
|
|
15607
|
-
options = $[4];
|
|
15608
|
-
props = $[5];
|
|
15609
|
-
value = $[6];
|
|
15610
|
-
}
|
|
15884
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
15885
|
+
const { options, value, defaultValue, onValueChange, disabled, className, style } = t0;
|
|
15611
15886
|
let t1;
|
|
15612
|
-
if ($[
|
|
15887
|
+
if ($[0] !== className) {
|
|
15613
15888
|
t1 = (0, classnames.default)(ds_radio_group_module_default.radioGroupRoot, className);
|
|
15614
|
-
$[
|
|
15615
|
-
$[
|
|
15616
|
-
} else t1 = $[
|
|
15617
|
-
|
|
15618
|
-
if ($[9] !== options) {
|
|
15619
|
-
t2 = options.map(_temp$1);
|
|
15620
|
-
$[9] = options;
|
|
15621
|
-
$[10] = t2;
|
|
15622
|
-
} else t2 = $[10];
|
|
15889
|
+
$[0] = className;
|
|
15890
|
+
$[1] = t1;
|
|
15891
|
+
} else t1 = $[1];
|
|
15892
|
+
const t2 = value ?? void 0;
|
|
15623
15893
|
let t3;
|
|
15624
|
-
if ($[
|
|
15625
|
-
t3 =
|
|
15894
|
+
if ($[2] !== onValueChange) {
|
|
15895
|
+
t3 = (details) => {
|
|
15896
|
+
if (details.value !== null) onValueChange?.(details.value);
|
|
15897
|
+
};
|
|
15898
|
+
$[2] = onValueChange;
|
|
15899
|
+
$[3] = t3;
|
|
15900
|
+
} else t3 = $[3];
|
|
15901
|
+
let t4;
|
|
15902
|
+
if ($[4] !== options) {
|
|
15903
|
+
t4 = options.map(_temp$1);
|
|
15904
|
+
$[4] = options;
|
|
15905
|
+
$[5] = t4;
|
|
15906
|
+
} else t4 = $[5];
|
|
15907
|
+
let t5;
|
|
15908
|
+
if ($[6] !== defaultValue || $[7] !== disabled || $[8] !== style || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
|
|
15909
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_radio_group.RadioGroup.Root, {
|
|
15626
15910
|
className: t1,
|
|
15627
|
-
|
|
15911
|
+
style,
|
|
15912
|
+
value: t2,
|
|
15628
15913
|
defaultValue,
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
children:
|
|
15914
|
+
disabled,
|
|
15915
|
+
onValueChange: t3,
|
|
15916
|
+
children: t4
|
|
15632
15917
|
});
|
|
15633
|
-
$[
|
|
15634
|
-
$[
|
|
15635
|
-
$[
|
|
15636
|
-
$[
|
|
15637
|
-
$[
|
|
15638
|
-
$[
|
|
15639
|
-
$[
|
|
15640
|
-
|
|
15641
|
-
|
|
15918
|
+
$[6] = defaultValue;
|
|
15919
|
+
$[7] = disabled;
|
|
15920
|
+
$[8] = style;
|
|
15921
|
+
$[9] = t1;
|
|
15922
|
+
$[10] = t2;
|
|
15923
|
+
$[11] = t3;
|
|
15924
|
+
$[12] = t4;
|
|
15925
|
+
$[13] = t5;
|
|
15926
|
+
} else t5 = $[13];
|
|
15927
|
+
return t5;
|
|
15642
15928
|
};
|
|
15643
15929
|
/* c8 ignore stop */
|
|
15644
15930
|
/**
|
|
@@ -15655,25 +15941,32 @@ const DsRadioGroup = {
|
|
|
15655
15941
|
Item: Item$1
|
|
15656
15942
|
};
|
|
15657
15943
|
function _temp$1(option) {
|
|
15658
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
15944
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_radio_group.RadioGroup.Item, {
|
|
15945
|
+
value: option.value,
|
|
15946
|
+
disabled: option.disabled,
|
|
15659
15947
|
className: ds_radio_group_module_default.radioItemContainer,
|
|
15660
|
-
children: [
|
|
15661
|
-
|
|
15662
|
-
|
|
15663
|
-
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15672
|
-
|
|
15948
|
+
children: [
|
|
15949
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_radio_group.RadioGroup.ItemControl, {
|
|
15950
|
+
className: ds_radio_group_module_default.radioItem,
|
|
15951
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15952
|
+
className: ds_radio_group_module_default.radioItemWrapper,
|
|
15953
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15954
|
+
className: ds_radio_group_module_default.radioIndicator,
|
|
15955
|
+
"data-part": "indicator"
|
|
15956
|
+
})
|
|
15957
|
+
})
|
|
15958
|
+
}),
|
|
15959
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_radio_group.RadioGroup.ItemHiddenInput, {}),
|
|
15960
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_radio_group.RadioGroup.ItemText, {
|
|
15961
|
+
className: ds_radio_group_module_default.radioLabel,
|
|
15962
|
+
children: option.label
|
|
15963
|
+
}),
|
|
15964
|
+
!!option.labelInfo && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTypography, {
|
|
15965
|
+
variant: "body-xs-reg",
|
|
15673
15966
|
className: ds_radio_group_module_default.labelInfo,
|
|
15674
15967
|
children: option.labelInfo
|
|
15675
|
-
})
|
|
15676
|
-
|
|
15968
|
+
})
|
|
15969
|
+
]
|
|
15677
15970
|
}, option.value);
|
|
15678
15971
|
}
|
|
15679
15972
|
//#endregion
|
|
@@ -17968,13 +18261,15 @@ const DsDefaultTableCell = ({ cell }) => {
|
|
|
17968
18261
|
});
|
|
17969
18262
|
};
|
|
17970
18263
|
const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions = [] }) => {
|
|
17971
|
-
|
|
17972
|
-
|
|
18264
|
+
const visiblePrimary = primaryRowActions.filter((action) => !action.hidden?.(row.original));
|
|
18265
|
+
const visibleSecondary = secondaryRowActions.filter((action) => !action.hidden?.(row.original));
|
|
18266
|
+
if (visiblePrimary.length || visibleSecondary.length) {
|
|
18267
|
+
const hasSecondaryRowActions = visibleSecondary.length > 0;
|
|
17973
18268
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17974
18269
|
className: ds_table_cell_module_default.lastCell,
|
|
17975
18270
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsDefaultTableCell, { cell }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17976
18271
|
className: ds_table_cell_module_default.cellActions,
|
|
17977
|
-
children: [
|
|
18272
|
+
children: [visiblePrimary.map((action, i) => {
|
|
17978
18273
|
const isDisabled = action.disabled?.(row.original);
|
|
17979
18274
|
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
17980
18275
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
@@ -18008,7 +18303,7 @@ const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions =
|
|
|
18008
18303
|
size: "tiny"
|
|
18009
18304
|
})
|
|
18010
18305
|
})
|
|
18011
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsDropdownMenu.Content, { children:
|
|
18306
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsDropdownMenu.Content, { children: visibleSecondary.map((action, i) => {
|
|
18012
18307
|
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
18013
18308
|
const isDisabled = action.disabled?.(row.original);
|
|
18014
18309
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DsDropdownMenu.Item, {
|
|
@@ -19509,6 +19804,183 @@ DsVerticalTabs.List = DsVerticalTabsList;
|
|
|
19509
19804
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
19510
19805
|
DsVerticalTabs.Content = DsVerticalTabsContent;
|
|
19511
19806
|
//#endregion
|
|
19807
|
+
//#region src/components/ds-workspace/ds-workspace.module.scss
|
|
19808
|
+
var ds_workspace_module_default = {
|
|
19809
|
+
"content": "XEdo8q_content",
|
|
19810
|
+
"fillParent": "XEdo8q_fillParent",
|
|
19811
|
+
"footer": "XEdo8q_footer",
|
|
19812
|
+
"header": "XEdo8q_header",
|
|
19813
|
+
"root": "XEdo8q_root",
|
|
19814
|
+
"subHeader": "XEdo8q_subHeader"
|
|
19815
|
+
};
|
|
19816
|
+
//#endregion
|
|
19817
|
+
//#region src/components/ds-workspace/ds-workspace.tsx
|
|
19818
|
+
const DsWorkspace = (t0) => {
|
|
19819
|
+
const $ = (0, react_compiler_runtime.c)(10);
|
|
19820
|
+
let className;
|
|
19821
|
+
let rest;
|
|
19822
|
+
let t1;
|
|
19823
|
+
if ($[0] !== t0) {
|
|
19824
|
+
({className, fillParent: t1, ...rest} = t0);
|
|
19825
|
+
$[0] = t0;
|
|
19826
|
+
$[1] = className;
|
|
19827
|
+
$[2] = rest;
|
|
19828
|
+
$[3] = t1;
|
|
19829
|
+
} else {
|
|
19830
|
+
className = $[1];
|
|
19831
|
+
rest = $[2];
|
|
19832
|
+
t1 = $[3];
|
|
19833
|
+
}
|
|
19834
|
+
const fillParent = t1 === void 0 ? false : t1;
|
|
19835
|
+
let t2;
|
|
19836
|
+
if ($[4] !== className || $[5] !== fillParent) {
|
|
19837
|
+
t2 = (0, classnames.default)(ds_workspace_module_default.root, { [ds_workspace_module_default.fillParent]: fillParent }, className);
|
|
19838
|
+
$[4] = className;
|
|
19839
|
+
$[5] = fillParent;
|
|
19840
|
+
$[6] = t2;
|
|
19841
|
+
} else t2 = $[6];
|
|
19842
|
+
let t3;
|
|
19843
|
+
if ($[7] !== rest || $[8] !== t2) {
|
|
19844
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19845
|
+
...rest,
|
|
19846
|
+
className: t2
|
|
19847
|
+
});
|
|
19848
|
+
$[7] = rest;
|
|
19849
|
+
$[8] = t2;
|
|
19850
|
+
$[9] = t3;
|
|
19851
|
+
} else t3 = $[9];
|
|
19852
|
+
return t3;
|
|
19853
|
+
};
|
|
19854
|
+
const Header = (t0) => {
|
|
19855
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
19856
|
+
let className;
|
|
19857
|
+
let rest;
|
|
19858
|
+
if ($[0] !== t0) {
|
|
19859
|
+
({className, ...rest} = t0);
|
|
19860
|
+
$[0] = t0;
|
|
19861
|
+
$[1] = className;
|
|
19862
|
+
$[2] = rest;
|
|
19863
|
+
} else {
|
|
19864
|
+
className = $[1];
|
|
19865
|
+
rest = $[2];
|
|
19866
|
+
}
|
|
19867
|
+
let t1;
|
|
19868
|
+
if ($[3] !== className) {
|
|
19869
|
+
t1 = (0, classnames.default)(ds_workspace_module_default.header, className);
|
|
19870
|
+
$[3] = className;
|
|
19871
|
+
$[4] = t1;
|
|
19872
|
+
} else t1 = $[4];
|
|
19873
|
+
let t2;
|
|
19874
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19875
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("header", {
|
|
19876
|
+
...rest,
|
|
19877
|
+
className: t1
|
|
19878
|
+
});
|
|
19879
|
+
$[5] = rest;
|
|
19880
|
+
$[6] = t1;
|
|
19881
|
+
$[7] = t2;
|
|
19882
|
+
} else t2 = $[7];
|
|
19883
|
+
return t2;
|
|
19884
|
+
};
|
|
19885
|
+
const SubHeader = (t0) => {
|
|
19886
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
19887
|
+
let className;
|
|
19888
|
+
let rest;
|
|
19889
|
+
if ($[0] !== t0) {
|
|
19890
|
+
({className, ...rest} = t0);
|
|
19891
|
+
$[0] = t0;
|
|
19892
|
+
$[1] = className;
|
|
19893
|
+
$[2] = rest;
|
|
19894
|
+
} else {
|
|
19895
|
+
className = $[1];
|
|
19896
|
+
rest = $[2];
|
|
19897
|
+
}
|
|
19898
|
+
let t1;
|
|
19899
|
+
if ($[3] !== className) {
|
|
19900
|
+
t1 = (0, classnames.default)(ds_workspace_module_default.subHeader, className);
|
|
19901
|
+
$[3] = className;
|
|
19902
|
+
$[4] = t1;
|
|
19903
|
+
} else t1 = $[4];
|
|
19904
|
+
let t2;
|
|
19905
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19906
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19907
|
+
...rest,
|
|
19908
|
+
className: t1
|
|
19909
|
+
});
|
|
19910
|
+
$[5] = rest;
|
|
19911
|
+
$[6] = t1;
|
|
19912
|
+
$[7] = t2;
|
|
19913
|
+
} else t2 = $[7];
|
|
19914
|
+
return t2;
|
|
19915
|
+
};
|
|
19916
|
+
/** Stacking context for non-portal drawer containment. */
|
|
19917
|
+
const Content = (t0) => {
|
|
19918
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
19919
|
+
let className;
|
|
19920
|
+
let rest;
|
|
19921
|
+
if ($[0] !== t0) {
|
|
19922
|
+
({className, ...rest} = t0);
|
|
19923
|
+
$[0] = t0;
|
|
19924
|
+
$[1] = className;
|
|
19925
|
+
$[2] = rest;
|
|
19926
|
+
} else {
|
|
19927
|
+
className = $[1];
|
|
19928
|
+
rest = $[2];
|
|
19929
|
+
}
|
|
19930
|
+
let t1;
|
|
19931
|
+
if ($[3] !== className) {
|
|
19932
|
+
t1 = (0, classnames.default)(ds_workspace_module_default.content, className);
|
|
19933
|
+
$[3] = className;
|
|
19934
|
+
$[4] = t1;
|
|
19935
|
+
} else t1 = $[4];
|
|
19936
|
+
let t2;
|
|
19937
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19938
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19939
|
+
...rest,
|
|
19940
|
+
className: t1
|
|
19941
|
+
});
|
|
19942
|
+
$[5] = rest;
|
|
19943
|
+
$[6] = t1;
|
|
19944
|
+
$[7] = t2;
|
|
19945
|
+
} else t2 = $[7];
|
|
19946
|
+
return t2;
|
|
19947
|
+
};
|
|
19948
|
+
const Footer = (t0) => {
|
|
19949
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
19950
|
+
let className;
|
|
19951
|
+
let rest;
|
|
19952
|
+
if ($[0] !== t0) {
|
|
19953
|
+
({className, ...rest} = t0);
|
|
19954
|
+
$[0] = t0;
|
|
19955
|
+
$[1] = className;
|
|
19956
|
+
$[2] = rest;
|
|
19957
|
+
} else {
|
|
19958
|
+
className = $[1];
|
|
19959
|
+
rest = $[2];
|
|
19960
|
+
}
|
|
19961
|
+
let t1;
|
|
19962
|
+
if ($[3] !== className) {
|
|
19963
|
+
t1 = (0, classnames.default)(ds_workspace_module_default.footer, className);
|
|
19964
|
+
$[3] = className;
|
|
19965
|
+
$[4] = t1;
|
|
19966
|
+
} else t1 = $[4];
|
|
19967
|
+
let t2;
|
|
19968
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19969
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("footer", {
|
|
19970
|
+
...rest,
|
|
19971
|
+
className: t1
|
|
19972
|
+
});
|
|
19973
|
+
$[5] = rest;
|
|
19974
|
+
$[6] = t1;
|
|
19975
|
+
$[7] = t2;
|
|
19976
|
+
} else t2 = $[7];
|
|
19977
|
+
return t2;
|
|
19978
|
+
};
|
|
19979
|
+
DsWorkspace.Header = Header;
|
|
19980
|
+
DsWorkspace.SubHeader = SubHeader;
|
|
19981
|
+
DsWorkspace.Content = Content;
|
|
19982
|
+
DsWorkspace.Footer = Footer;
|
|
19983
|
+
//#endregion
|
|
19512
19984
|
exports.BREAKPOINT_LG = BREAKPOINT_LG;
|
|
19513
19985
|
exports.DsAlertBanner = DsAlertBanner;
|
|
19514
19986
|
exports.DsAutocomplete = DsAutocomplete;
|
|
@@ -19519,6 +19991,7 @@ exports.DsButton = DsButton;
|
|
|
19519
19991
|
exports.DsButtonV3 = DsButtonV3;
|
|
19520
19992
|
exports.DsCard = DsCard;
|
|
19521
19993
|
exports.DsCheckbox = DsCheckbox;
|
|
19994
|
+
exports.DsCheckboxGroup = DsCheckboxGroup;
|
|
19522
19995
|
exports.DsChip = DsChip;
|
|
19523
19996
|
exports.DsChipGroup = DsChipGroup;
|
|
19524
19997
|
exports.DsCommentBubble = DsCommentBubble;
|
|
@@ -19584,6 +20057,7 @@ exports.DsTooltip = DsTooltip;
|
|
|
19584
20057
|
exports.DsTree = DsTree;
|
|
19585
20058
|
exports.DsTypography = DsTypography;
|
|
19586
20059
|
exports.DsVerticalTabs = DsVerticalTabs;
|
|
20060
|
+
exports.DsWorkspace = DsWorkspace;
|
|
19587
20061
|
exports.FatalFileUploadError = FatalFileUploadError;
|
|
19588
20062
|
exports.FileUpload = FileUpload;
|
|
19589
20063
|
exports.FileUploadError = FileUploadError;
|
|
@@ -19605,6 +20079,7 @@ exports.customIcons = customIcons;
|
|
|
19605
20079
|
exports.dsKeyValuePairOrientations = dsKeyValuePairOrientations;
|
|
19606
20080
|
exports.filterStatuses = filterStatuses;
|
|
19607
20081
|
exports.formatTime = formatTime;
|
|
20082
|
+
exports.iconColors = iconColors;
|
|
19608
20083
|
exports.iconSizes = iconSizes;
|
|
19609
20084
|
exports.iconVariants = iconVariants;
|
|
19610
20085
|
exports.isCustomIcon = isCustomIcon;
|
|
@@ -19626,6 +20101,7 @@ exports.tagSizes = tagSizes;
|
|
|
19626
20101
|
exports.tagVariants = tagVariants;
|
|
19627
20102
|
exports.textInputSizes = textInputSizes;
|
|
19628
20103
|
exports.useBreakpoint = useBreakpoint;
|
|
20104
|
+
exports.useCheckboxSelectAll = useCheckboxSelectAll;
|
|
19629
20105
|
exports.useFileUpload = useFileUpload;
|
|
19630
20106
|
exports.useResponsiveValue = useResponsiveValue;
|
|
19631
20107
|
exports.useTableFilters = useTableFilters;
|