@drivenets/design-system 0.9.1 → 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 +22 -0
- package/dist/index.cjs +1065 -594
- package/dist/index.d.cts +1797 -635
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1800 -638
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1072 -603
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +11 -13
- 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 +105 -106
- package/src/components/ds-button-v3/ds-button-v3.types.ts +7 -0
- 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.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-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 +84 -2
- 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 +2 -2
- package/src/styles/_root_new.scss +449 -0
- 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,
|
|
@@ -5323,7 +5499,7 @@ const Root$2 = (t0) => {
|
|
|
5323
5499
|
* Use with DsCard.Title and DsCard.Extra for standard layout,
|
|
5324
5500
|
* or provide custom children for full flexibility.
|
|
5325
5501
|
*/
|
|
5326
|
-
const Header$
|
|
5502
|
+
const Header$3 = (t0) => {
|
|
5327
5503
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
5328
5504
|
let children;
|
|
5329
5505
|
let className;
|
|
@@ -5411,7 +5587,7 @@ const Body$2 = (t0) => {
|
|
|
5411
5587
|
/**
|
|
5412
5588
|
* Card footer - bottom section for actions or additional info.
|
|
5413
5589
|
*/
|
|
5414
|
-
const Footer$
|
|
5590
|
+
const Footer$3 = (t0) => {
|
|
5415
5591
|
const $ = (0, react_compiler_runtime.c)(12);
|
|
5416
5592
|
let children;
|
|
5417
5593
|
let className;
|
|
@@ -5454,9 +5630,9 @@ const Footer$2 = (t0) => {
|
|
|
5454
5630
|
};
|
|
5455
5631
|
const DsCard = {
|
|
5456
5632
|
Root: Root$2,
|
|
5457
|
-
Header: Header$
|
|
5633
|
+
Header: Header$3,
|
|
5458
5634
|
Body: Body$2,
|
|
5459
|
-
Footer: Footer$
|
|
5635
|
+
Footer: Footer$3
|
|
5460
5636
|
};
|
|
5461
5637
|
//#endregion
|
|
5462
5638
|
//#region src/components/ds-card/ds-card.types.ts
|
|
@@ -5468,13 +5644,13 @@ const cardSizes = [
|
|
|
5468
5644
|
//#endregion
|
|
5469
5645
|
//#region src/components/ds-checkbox/ds-checkbox.module.scss
|
|
5470
5646
|
var ds_checkbox_module_default = {
|
|
5471
|
-
"
|
|
5472
|
-
"
|
|
5473
|
-
"
|
|
5474
|
-
"container": "-9VV7a_container",
|
|
5475
|
-
"default": "-9VV7a_default",
|
|
5647
|
+
"control": "-9VV7a_control",
|
|
5648
|
+
"hiddenInput": "-9VV7a_hiddenInput",
|
|
5649
|
+
"indicator": "-9VV7a_indicator",
|
|
5476
5650
|
"label": "-9VV7a_label",
|
|
5651
|
+
"labelColumn": "-9VV7a_labelColumn",
|
|
5477
5652
|
"labelInfo": "-9VV7a_labelInfo",
|
|
5653
|
+
"root": "-9VV7a_root",
|
|
5478
5654
|
"warning": "-9VV7a_warning"
|
|
5479
5655
|
};
|
|
5480
5656
|
//#endregion
|
|
@@ -5483,118 +5659,202 @@ var ds_checkbox_module_default = {
|
|
|
5483
5659
|
* Design system Checkbox component
|
|
5484
5660
|
*/
|
|
5485
5661
|
const DsCheckbox = (t0) => {
|
|
5486
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
5487
|
-
let checked;
|
|
5662
|
+
const $ = (0, react_compiler_runtime.c)(25);
|
|
5488
5663
|
let className;
|
|
5489
|
-
let defaultChecked;
|
|
5490
|
-
let id;
|
|
5491
5664
|
let label;
|
|
5492
5665
|
let labelInfo;
|
|
5493
5666
|
let onCheckedChange;
|
|
5494
5667
|
let props;
|
|
5495
5668
|
let t1;
|
|
5669
|
+
let value;
|
|
5496
5670
|
if ($[0] !== t0) {
|
|
5497
|
-
({
|
|
5671
|
+
({variant: t1, label, labelInfo, className, onCheckedChange, value, ...props} = t0);
|
|
5498
5672
|
$[0] = t0;
|
|
5499
|
-
$[1] =
|
|
5500
|
-
$[2] =
|
|
5501
|
-
$[3] =
|
|
5502
|
-
$[4] =
|
|
5503
|
-
$[5] =
|
|
5504
|
-
$[6] =
|
|
5505
|
-
$[7] =
|
|
5506
|
-
$[8] = props;
|
|
5507
|
-
$[9] = t1;
|
|
5673
|
+
$[1] = className;
|
|
5674
|
+
$[2] = label;
|
|
5675
|
+
$[3] = labelInfo;
|
|
5676
|
+
$[4] = onCheckedChange;
|
|
5677
|
+
$[5] = props;
|
|
5678
|
+
$[6] = t1;
|
|
5679
|
+
$[7] = value;
|
|
5508
5680
|
} else {
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
props = $[8];
|
|
5517
|
-
t1 = $[9];
|
|
5681
|
+
className = $[1];
|
|
5682
|
+
label = $[2];
|
|
5683
|
+
labelInfo = $[3];
|
|
5684
|
+
onCheckedChange = $[4];
|
|
5685
|
+
props = $[5];
|
|
5686
|
+
t1 = $[6];
|
|
5687
|
+
value = $[7];
|
|
5518
5688
|
}
|
|
5519
|
-
const
|
|
5520
|
-
const generatedId = (0, react.useId)();
|
|
5521
|
-
const checkboxId = id || generatedId;
|
|
5522
|
-
const t2 = ds_checkbox_module_default[variant];
|
|
5689
|
+
const t2 = (t1 === void 0 ? "default" : t1) === "warning" && ds_checkbox_module_default.warning;
|
|
5523
5690
|
let t3;
|
|
5524
|
-
if ($[
|
|
5525
|
-
t3 = (0, classnames.default)(ds_checkbox_module_default.
|
|
5526
|
-
$[
|
|
5527
|
-
$[
|
|
5528
|
-
$[
|
|
5529
|
-
} else t3 = $[
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
5538
|
-
icon: t4,
|
|
5539
|
-
size: "small",
|
|
5540
|
-
variant: "outlined"
|
|
5541
|
-
})
|
|
5542
|
-
})
|
|
5543
|
-
});
|
|
5544
|
-
$[13] = t4;
|
|
5545
|
-
$[14] = t5;
|
|
5546
|
-
} 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);
|
|
5547
5704
|
let t6;
|
|
5548
|
-
if ($[
|
|
5549
|
-
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
5550
|
-
className: ds_checkbox_module_default.
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
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
|
+
})
|
|
5557
5713
|
});
|
|
5558
|
-
$[
|
|
5559
|
-
|
|
5560
|
-
$[17] = defaultChecked;
|
|
5561
|
-
$[18] = onCheckedChange;
|
|
5562
|
-
$[19] = props;
|
|
5563
|
-
$[20] = t5;
|
|
5564
|
-
$[21] = t6;
|
|
5565
|
-
} else t6 = $[21];
|
|
5714
|
+
$[13] = t6;
|
|
5715
|
+
} else t6 = $[13];
|
|
5566
5716
|
let t7;
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
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", {
|
|
5572
5746
|
className: ds_checkbox_module_default.labelInfo,
|
|
5573
5747
|
children: labelInfo
|
|
5574
5748
|
})]
|
|
5575
5749
|
});
|
|
5576
|
-
$[
|
|
5577
|
-
$[
|
|
5578
|
-
$[
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
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, {
|
|
5584
5757
|
className: t3,
|
|
5585
|
-
|
|
5758
|
+
onCheckedChange: t4,
|
|
5759
|
+
...props,
|
|
5760
|
+
value: t5,
|
|
5761
|
+
children: [
|
|
5762
|
+
t7,
|
|
5763
|
+
t8,
|
|
5764
|
+
t9
|
|
5765
|
+
]
|
|
5586
5766
|
});
|
|
5587
|
-
$[
|
|
5588
|
-
$[
|
|
5589
|
-
$[
|
|
5590
|
-
$[
|
|
5591
|
-
|
|
5592
|
-
|
|
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;
|
|
5593
5775
|
};
|
|
5594
5776
|
//#endregion
|
|
5595
5777
|
//#region src/components/ds-checkbox/ds-checkbox.types.ts
|
|
5596
5778
|
const checkboxVariants = ["default", "warning"];
|
|
5597
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
|
|
5598
5858
|
//#region src/components/ds-chip/ds-chip.module.scss
|
|
5599
5859
|
var ds_chip_module_default = {
|
|
5600
5860
|
"chip": "w6Idwa_chip",
|
|
@@ -7695,7 +7955,7 @@ const DsDrawer = (t0) => {
|
|
|
7695
7955
|
} else t15 = $[24];
|
|
7696
7956
|
return t15;
|
|
7697
7957
|
};
|
|
7698
|
-
const Header$
|
|
7958
|
+
const Header$2 = (t0) => {
|
|
7699
7959
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
7700
7960
|
const { style, className, children } = t0;
|
|
7701
7961
|
let t1;
|
|
@@ -7827,7 +8087,7 @@ const Body$1 = (t0) => {
|
|
|
7827
8087
|
} else t2 = $[5];
|
|
7828
8088
|
return t2;
|
|
7829
8089
|
};
|
|
7830
|
-
const Footer$
|
|
8090
|
+
const Footer$2 = (t0) => {
|
|
7831
8091
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
7832
8092
|
const { style, className, children } = t0;
|
|
7833
8093
|
let t1;
|
|
@@ -7873,12 +8133,12 @@ const Actions$1 = (t0) => {
|
|
|
7873
8133
|
} else t2 = $[5];
|
|
7874
8134
|
return t2;
|
|
7875
8135
|
};
|
|
7876
|
-
DsDrawer.Header = Header$
|
|
8136
|
+
DsDrawer.Header = Header$2;
|
|
7877
8137
|
DsDrawer.Title = Title$1;
|
|
7878
8138
|
DsDrawer.CloseTrigger = CloseTrigger$1;
|
|
7879
8139
|
DsDrawer.Toolbar = Toolbar;
|
|
7880
8140
|
DsDrawer.Body = Body$1;
|
|
7881
|
-
DsDrawer.Footer = Footer$
|
|
8141
|
+
DsDrawer.Footer = Footer$2;
|
|
7882
8142
|
DsDrawer.Actions = Actions$1;
|
|
7883
8143
|
//#endregion
|
|
7884
8144
|
//#region src/components/ds-tag-filter/ds-tag-filter.module.scss
|
|
@@ -8491,7 +8751,7 @@ const DsModal = (t0) => {
|
|
|
8491
8751
|
} else t12 = $[19];
|
|
8492
8752
|
return t12;
|
|
8493
8753
|
};
|
|
8494
|
-
const Header = (t0) => {
|
|
8754
|
+
const Header$1 = (t0) => {
|
|
8495
8755
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
8496
8756
|
const { style, className, children } = t0;
|
|
8497
8757
|
let t1;
|
|
@@ -8594,7 +8854,7 @@ const Body = (t0) => {
|
|
|
8594
8854
|
} else t2 = $[5];
|
|
8595
8855
|
return t2;
|
|
8596
8856
|
};
|
|
8597
|
-
const Footer = (t0) => {
|
|
8857
|
+
const Footer$1 = (t0) => {
|
|
8598
8858
|
const $ = (0, react_compiler_runtime.c)(6);
|
|
8599
8859
|
const { style, className, children } = t0;
|
|
8600
8860
|
let t1;
|
|
@@ -8640,11 +8900,11 @@ const Actions = (t0) => {
|
|
|
8640
8900
|
} else t2 = $[5];
|
|
8641
8901
|
return t2;
|
|
8642
8902
|
};
|
|
8643
|
-
DsModal.Header = Header;
|
|
8903
|
+
DsModal.Header = Header$1;
|
|
8644
8904
|
DsModal.Title = Title;
|
|
8645
8905
|
DsModal.CloseTrigger = CloseTrigger;
|
|
8646
8906
|
DsModal.Body = Body;
|
|
8647
|
-
DsModal.Footer = Footer;
|
|
8907
|
+
DsModal.Footer = Footer$1;
|
|
8648
8908
|
DsModal.Actions = Actions;
|
|
8649
8909
|
//#endregion
|
|
8650
8910
|
//#region src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.scss
|
|
@@ -10810,13 +11070,16 @@ const useControlled = (value, setValue, defaultValue) => {
|
|
|
10810
11070
|
//#region src/components/ds-time-picker/ds-time-picker.module.scss
|
|
10811
11071
|
var ds_time_picker_module_default = {
|
|
10812
11072
|
"clearTrigger": "qkvYYW_clearTrigger",
|
|
11073
|
+
"collapse": "qkvYYW_collapse",
|
|
11074
|
+
"content": "qkvYYW_content",
|
|
11075
|
+
"expand": "qkvYYW_expand",
|
|
10813
11076
|
"root": "qkvYYW_root"
|
|
10814
11077
|
};
|
|
10815
11078
|
//#endregion
|
|
10816
11079
|
//#region src/components/ds-time-picker/ds-time-picker.tsx
|
|
10817
11080
|
const DsTimePicker = (props) => {
|
|
10818
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
10819
|
-
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;
|
|
10820
11083
|
const hideClearButton = t0 === void 0 ? false : t0;
|
|
10821
11084
|
const disablePortal = t1 === void 0 ? false : t1;
|
|
10822
11085
|
const [value, setValue] = useControlled(props.value, props.onChange, props.defaultValue ?? null);
|
|
@@ -10889,12 +11152,13 @@ const DsTimePicker = (props) => {
|
|
|
10889
11152
|
} else t7 = $[12];
|
|
10890
11153
|
const resetInput = t7;
|
|
10891
11154
|
let t8;
|
|
10892
|
-
if ($[13] !==
|
|
11155
|
+
if ($[13] !== onBlur || $[14] !== resetInput || $[15] !== setValue || $[16] !== value) {
|
|
10893
11156
|
t8 = () => {
|
|
10894
11157
|
setIsFocused(false);
|
|
10895
11158
|
const inputVal_0 = inputRef.current?.value ?? "";
|
|
10896
11159
|
if (!inputVal_0) {
|
|
10897
11160
|
setValue(null);
|
|
11161
|
+
onBlur?.();
|
|
10898
11162
|
return;
|
|
10899
11163
|
}
|
|
10900
11164
|
const parsed_0 = parseTime(inputVal_0);
|
|
@@ -10903,45 +11167,47 @@ const DsTimePicker = (props) => {
|
|
|
10903
11167
|
newDate_0.setHours(parsed_0.hours, parsed_0.minutes, 0, 0);
|
|
10904
11168
|
setValue(newDate_0);
|
|
10905
11169
|
} else resetInput();
|
|
11170
|
+
onBlur?.();
|
|
10906
11171
|
};
|
|
10907
|
-
$[13] =
|
|
10908
|
-
$[14] =
|
|
10909
|
-
$[15] =
|
|
10910
|
-
$[16] =
|
|
10911
|
-
|
|
11172
|
+
$[13] = onBlur;
|
|
11173
|
+
$[14] = resetInput;
|
|
11174
|
+
$[15] = setValue;
|
|
11175
|
+
$[16] = value;
|
|
11176
|
+
$[17] = t8;
|
|
11177
|
+
} else t8 = $[17];
|
|
10912
11178
|
const handleBlur = t8;
|
|
10913
11179
|
let t9;
|
|
10914
|
-
if ($[
|
|
11180
|
+
if ($[18] !== disabled || $[19] !== readOnly || $[20] !== setIsOpen) {
|
|
10915
11181
|
t9 = (details) => {
|
|
10916
11182
|
if (disabled || readOnly) return;
|
|
10917
11183
|
setIsOpen(details.open);
|
|
10918
11184
|
};
|
|
10919
|
-
$[
|
|
10920
|
-
$[
|
|
10921
|
-
$[
|
|
10922
|
-
$[
|
|
10923
|
-
} else t9 = $[
|
|
11185
|
+
$[18] = disabled;
|
|
11186
|
+
$[19] = readOnly;
|
|
11187
|
+
$[20] = setIsOpen;
|
|
11188
|
+
$[21] = t9;
|
|
11189
|
+
} else t9 = $[21];
|
|
10924
11190
|
const handleOpenChange = t9;
|
|
10925
11191
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
10926
11192
|
const Wrapper = disablePortal ? react.Fragment : _ark_ui_react_portal.Portal;
|
|
10927
11193
|
let t10;
|
|
10928
|
-
if ($[
|
|
11194
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10929
11195
|
t10 = {
|
|
10930
11196
|
placement: "bottom-start",
|
|
10931
11197
|
gutter: 4
|
|
10932
11198
|
};
|
|
10933
|
-
$[
|
|
10934
|
-
} else t10 = $[
|
|
11199
|
+
$[22] = t10;
|
|
11200
|
+
} else t10 = $[22];
|
|
10935
11201
|
let t11;
|
|
10936
|
-
if ($[
|
|
11202
|
+
if ($[23] !== className) {
|
|
10937
11203
|
t11 = (0, classnames.default)(ds_time_picker_module_default.root, className);
|
|
10938
|
-
$[
|
|
10939
|
-
$[
|
|
10940
|
-
} else t11 = $[
|
|
11204
|
+
$[23] = className;
|
|
11205
|
+
$[24] = t11;
|
|
11206
|
+
} else t11 = $[24];
|
|
10941
11207
|
const t12 = placeholder ?? "hh:mm AM/PM";
|
|
10942
11208
|
const t13 = slotProps?.input;
|
|
10943
11209
|
let t14;
|
|
10944
|
-
if ($[
|
|
11210
|
+
if ($[25] !== disabled || $[26] !== locale?.clearLabel || $[27] !== locale?.openLabel || $[28] !== readOnly || $[29] !== setValue || $[30] !== showClearButton || $[31] !== slotProps?.input?.slots?.endAdornment) {
|
|
10945
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, {
|
|
10946
11212
|
className: ds_time_picker_module_default.clearTrigger,
|
|
10947
11213
|
design: "v1.2",
|
|
@@ -10969,28 +11235,28 @@ const DsTimePicker = (props) => {
|
|
|
10969
11235
|
})
|
|
10970
11236
|
})
|
|
10971
11237
|
})] });
|
|
10972
|
-
$[
|
|
10973
|
-
$[
|
|
10974
|
-
$[
|
|
10975
|
-
$[
|
|
10976
|
-
$[
|
|
10977
|
-
$[
|
|
10978
|
-
$[
|
|
10979
|
-
$[
|
|
10980
|
-
} 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];
|
|
10981
11247
|
const t15 = slotProps?.input?.slots;
|
|
10982
11248
|
let t16;
|
|
10983
|
-
if ($[
|
|
11249
|
+
if ($[33] !== t14 || $[34] !== t15) {
|
|
10984
11250
|
t16 = {
|
|
10985
11251
|
endAdornment: t14,
|
|
10986
11252
|
...t15
|
|
10987
11253
|
};
|
|
10988
|
-
$[
|
|
10989
|
-
$[
|
|
10990
|
-
$[
|
|
10991
|
-
} else t16 = $[
|
|
11254
|
+
$[33] = t14;
|
|
11255
|
+
$[34] = t15;
|
|
11256
|
+
$[35] = t16;
|
|
11257
|
+
} else t16 = $[35];
|
|
10992
11258
|
let t17;
|
|
10993
|
-
if ($[
|
|
11259
|
+
if ($[36] !== disabled || $[37] !== formattedValue || $[38] !== handleBlur || $[39] !== handleInputChange || $[40] !== id || $[41] !== readOnly || $[42] !== t12 || $[43] !== t13 || $[44] !== t16) {
|
|
10994
11260
|
t17 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTextInput, {
|
|
10995
11261
|
ref: inputRef,
|
|
10996
11262
|
id,
|
|
@@ -11004,19 +11270,19 @@ const DsTimePicker = (props) => {
|
|
|
11004
11270
|
...t13,
|
|
11005
11271
|
slots: t16
|
|
11006
11272
|
});
|
|
11007
|
-
$[
|
|
11008
|
-
$[
|
|
11009
|
-
$[
|
|
11010
|
-
$[
|
|
11011
|
-
$[
|
|
11012
|
-
$[
|
|
11013
|
-
$[
|
|
11014
|
-
$[
|
|
11015
|
-
$[
|
|
11016
|
-
$[
|
|
11017
|
-
} 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];
|
|
11018
11284
|
let t18;
|
|
11019
|
-
if ($[
|
|
11285
|
+
if ($[46] !== ref || $[47] !== t11 || $[48] !== t17) {
|
|
11020
11286
|
t18 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_popover.Popover.Anchor, {
|
|
11021
11287
|
asChild: true,
|
|
11022
11288
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -11025,63 +11291,72 @@ const DsTimePicker = (props) => {
|
|
|
11025
11291
|
children: t17
|
|
11026
11292
|
})
|
|
11027
11293
|
});
|
|
11028
|
-
$[
|
|
11029
|
-
$[
|
|
11030
|
-
$[
|
|
11031
|
-
$[
|
|
11032
|
-
} else t18 = $[
|
|
11294
|
+
$[46] = ref;
|
|
11295
|
+
$[47] = t11;
|
|
11296
|
+
$[48] = t17;
|
|
11297
|
+
$[49] = t18;
|
|
11298
|
+
} else t18 = $[49];
|
|
11033
11299
|
const t19 = slotProps?.popover;
|
|
11034
|
-
|
|
11035
|
-
if ($[49] !== max || $[50] !== min || $[51] !== setValue || $[52] !== value) {
|
|
11036
|
-
t20 = timeScrollerAdapter(value, setValue, min, max);
|
|
11037
|
-
$[49] = max;
|
|
11038
|
-
$[50] = min;
|
|
11039
|
-
$[51] = setValue;
|
|
11040
|
-
$[52] = value;
|
|
11041
|
-
$[53] = t20;
|
|
11042
|
-
} else t20 = $[53];
|
|
11300
|
+
const t20 = slotProps?.popover?.className;
|
|
11043
11301
|
let t21;
|
|
11044
|
-
if ($[
|
|
11045
|
-
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, {
|
|
11046
11319
|
open: isOpen,
|
|
11047
|
-
...
|
|
11320
|
+
...t22
|
|
11048
11321
|
});
|
|
11049
|
-
$[
|
|
11050
|
-
$[
|
|
11051
|
-
$[
|
|
11052
|
-
} else
|
|
11053
|
-
let
|
|
11054
|
-
if ($[
|
|
11055
|
-
|
|
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, {
|
|
11056
11329
|
...t19,
|
|
11057
|
-
|
|
11330
|
+
className: t21,
|
|
11331
|
+
children: t23
|
|
11058
11332
|
}) });
|
|
11059
|
-
$[
|
|
11060
|
-
$[
|
|
11061
|
-
$[59] = t22;
|
|
11062
|
-
} else t22 = $[59];
|
|
11063
|
-
let t23;
|
|
11064
|
-
if ($[60] !== Wrapper || $[61] !== t22) {
|
|
11065
|
-
t23 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: t22 });
|
|
11066
|
-
$[60] = Wrapper;
|
|
11067
|
-
$[61] = t22;
|
|
11333
|
+
$[60] = t19;
|
|
11334
|
+
$[61] = t21;
|
|
11068
11335
|
$[62] = t23;
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
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, {
|
|
11073
11348
|
open: isOpen,
|
|
11074
11349
|
onOpenChange: handleOpenChange,
|
|
11075
11350
|
positioning: t10,
|
|
11076
|
-
children: [t18,
|
|
11077
|
-
});
|
|
11078
|
-
$[
|
|
11079
|
-
$[
|
|
11080
|
-
$[
|
|
11081
|
-
$[
|
|
11082
|
-
$[
|
|
11083
|
-
} else
|
|
11084
|
-
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;
|
|
11085
11360
|
};
|
|
11086
11361
|
//#endregion
|
|
11087
11362
|
//#region src/components/ds-date-picker/ds-date-picker.module.scss
|
|
@@ -11317,7 +11592,7 @@ function _temp3$1(datePicker) {
|
|
|
11317
11592
|
//#endregion
|
|
11318
11593
|
//#region src/components/ds-date-picker/ds-date-picker.tsx
|
|
11319
11594
|
const DsDatePicker = (t0) => {
|
|
11320
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
11595
|
+
const $ = (0, react_compiler_runtime.c)(123);
|
|
11321
11596
|
let _defaultValue;
|
|
11322
11597
|
let _max;
|
|
11323
11598
|
let _min;
|
|
@@ -11326,6 +11601,7 @@ const DsDatePicker = (t0) => {
|
|
|
11326
11601
|
let disabled;
|
|
11327
11602
|
let id;
|
|
11328
11603
|
let locale;
|
|
11604
|
+
let onBlur;
|
|
11329
11605
|
let onChange;
|
|
11330
11606
|
let onOpenChange;
|
|
11331
11607
|
let placeholder;
|
|
@@ -11337,7 +11613,7 @@ const DsDatePicker = (t0) => {
|
|
|
11337
11613
|
let t3;
|
|
11338
11614
|
let t4;
|
|
11339
11615
|
if ($[0] !== t0) {
|
|
11340
|
-
({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);
|
|
11341
11617
|
$[0] = t0;
|
|
11342
11618
|
$[1] = _defaultValue;
|
|
11343
11619
|
$[2] = _max;
|
|
@@ -11347,16 +11623,17 @@ const DsDatePicker = (t0) => {
|
|
|
11347
11623
|
$[6] = disabled;
|
|
11348
11624
|
$[7] = id;
|
|
11349
11625
|
$[8] = locale;
|
|
11350
|
-
$[9] =
|
|
11351
|
-
$[10] =
|
|
11352
|
-
$[11] =
|
|
11353
|
-
$[12] =
|
|
11354
|
-
$[13] =
|
|
11355
|
-
$[14] =
|
|
11356
|
-
$[15] =
|
|
11357
|
-
$[16] =
|
|
11358
|
-
$[17] =
|
|
11359
|
-
$[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;
|
|
11360
11637
|
} else {
|
|
11361
11638
|
_defaultValue = $[1];
|
|
11362
11639
|
_max = $[2];
|
|
@@ -11366,84 +11643,85 @@ const DsDatePicker = (t0) => {
|
|
|
11366
11643
|
disabled = $[6];
|
|
11367
11644
|
id = $[7];
|
|
11368
11645
|
locale = $[8];
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
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];
|
|
11379
11657
|
}
|
|
11380
11658
|
const withTime = t1 === void 0 ? false : t1;
|
|
11381
11659
|
const closeOnSelect = t2 === void 0 ? true : t2;
|
|
11382
11660
|
const disablePortal = t3 === void 0 ? false : t3;
|
|
11383
11661
|
const hideClearButton = t4 === void 0 ? false : t4;
|
|
11384
11662
|
let t5;
|
|
11385
|
-
if ($[
|
|
11663
|
+
if ($[20] !== _defaultValue) {
|
|
11386
11664
|
t5 = toIntlDate(_defaultValue);
|
|
11387
|
-
$[
|
|
11388
|
-
$[
|
|
11389
|
-
} else t5 = $[
|
|
11665
|
+
$[20] = _defaultValue;
|
|
11666
|
+
$[21] = t5;
|
|
11667
|
+
} else t5 = $[21];
|
|
11390
11668
|
const defaultValue = t5;
|
|
11391
11669
|
let t6;
|
|
11392
|
-
if ($[
|
|
11670
|
+
if ($[22] !== _value) {
|
|
11393
11671
|
t6 = toIntlDate(_value);
|
|
11394
|
-
$[
|
|
11395
|
-
$[
|
|
11396
|
-
} else t6 = $[
|
|
11672
|
+
$[22] = _value;
|
|
11673
|
+
$[23] = t6;
|
|
11674
|
+
} else t6 = $[23];
|
|
11397
11675
|
let t7;
|
|
11398
|
-
if ($[
|
|
11676
|
+
if ($[24] !== onChange) {
|
|
11399
11677
|
t7 = onChange ? (v) => onChange(fromIntlDate(v)) : void 0;
|
|
11400
|
-
$[
|
|
11401
|
-
$[
|
|
11402
|
-
} else t7 = $[
|
|
11678
|
+
$[24] = onChange;
|
|
11679
|
+
$[25] = t7;
|
|
11680
|
+
} else t7 = $[25];
|
|
11403
11681
|
const [value, setValue] = useControlled(t6, t7, defaultValue ?? null);
|
|
11404
11682
|
let t8;
|
|
11405
|
-
if ($[
|
|
11683
|
+
if ($[26] !== _min) {
|
|
11406
11684
|
t8 = toIntlDate(_min);
|
|
11407
|
-
$[
|
|
11408
|
-
$[
|
|
11409
|
-
} else t8 = $[
|
|
11685
|
+
$[26] = _min;
|
|
11686
|
+
$[27] = t8;
|
|
11687
|
+
} else t8 = $[27];
|
|
11410
11688
|
const min = t8;
|
|
11411
11689
|
let t9;
|
|
11412
|
-
if ($[
|
|
11690
|
+
if ($[28] !== _max) {
|
|
11413
11691
|
t9 = toIntlDate(_max);
|
|
11414
|
-
$[
|
|
11415
|
-
$[
|
|
11416
|
-
} else t9 = $[
|
|
11692
|
+
$[28] = _max;
|
|
11693
|
+
$[29] = t9;
|
|
11694
|
+
} else t9 = $[29];
|
|
11417
11695
|
const max = t9;
|
|
11418
11696
|
const [isFocused, setIsFocused] = (0, react.useState)(false);
|
|
11419
11697
|
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
11420
11698
|
const inputRef = (0, react.useRef)(null);
|
|
11421
11699
|
let t10;
|
|
11422
|
-
if ($[
|
|
11700
|
+
if ($[30] !== value || $[31] !== withTime) {
|
|
11423
11701
|
t10 = formatDate(value, withTime);
|
|
11424
|
-
$[
|
|
11425
|
-
$[
|
|
11426
|
-
$[
|
|
11427
|
-
} else t10 = $[
|
|
11702
|
+
$[30] = value;
|
|
11703
|
+
$[31] = withTime;
|
|
11704
|
+
$[32] = t10;
|
|
11705
|
+
} else t10 = $[32];
|
|
11428
11706
|
const formattedValue = t10;
|
|
11429
11707
|
let t11;
|
|
11430
11708
|
let t12;
|
|
11431
|
-
if ($[
|
|
11709
|
+
if ($[33] !== formattedValue || $[34] !== isFocused) {
|
|
11432
11710
|
t11 = () => {
|
|
11433
11711
|
if (!isFocused && inputRef.current) inputRef.current.value = formattedValue;
|
|
11434
11712
|
};
|
|
11435
11713
|
t12 = [isFocused, formattedValue];
|
|
11436
|
-
$[
|
|
11437
|
-
$[
|
|
11438
|
-
$[
|
|
11439
|
-
$[
|
|
11714
|
+
$[33] = formattedValue;
|
|
11715
|
+
$[34] = isFocused;
|
|
11716
|
+
$[35] = t11;
|
|
11717
|
+
$[36] = t12;
|
|
11440
11718
|
} else {
|
|
11441
|
-
t11 = $[
|
|
11442
|
-
t12 = $[
|
|
11719
|
+
t11 = $[35];
|
|
11720
|
+
t12 = $[36];
|
|
11443
11721
|
}
|
|
11444
11722
|
(0, react.useEffect)(t11, t12);
|
|
11445
11723
|
let t13;
|
|
11446
|
-
if ($[
|
|
11724
|
+
if ($[37] !== max || $[38] !== min || $[39] !== setValue || $[40] !== withTime) {
|
|
11447
11725
|
t13 = (e) => {
|
|
11448
11726
|
const text = e.target.value;
|
|
11449
11727
|
if (validateDateString({
|
|
@@ -11453,33 +11731,33 @@ const DsDatePicker = (t0) => {
|
|
|
11453
11731
|
withTime
|
|
11454
11732
|
})) setValue(parseDate(text));
|
|
11455
11733
|
};
|
|
11456
|
-
$[
|
|
11457
|
-
$[
|
|
11458
|
-
$[
|
|
11459
|
-
$[
|
|
11460
|
-
$[
|
|
11461
|
-
} else t13 = $[
|
|
11734
|
+
$[37] = max;
|
|
11735
|
+
$[38] = min;
|
|
11736
|
+
$[39] = setValue;
|
|
11737
|
+
$[40] = withTime;
|
|
11738
|
+
$[41] = t13;
|
|
11739
|
+
} else t13 = $[41];
|
|
11462
11740
|
const handleInputChange = t13;
|
|
11463
11741
|
let t14;
|
|
11464
|
-
if ($[
|
|
11742
|
+
if ($[42] !== formattedValue || $[43] !== value) {
|
|
11465
11743
|
t14 = () => {
|
|
11466
11744
|
if (inputRef.current) inputRef.current.value = value ? formattedValue : "";
|
|
11467
11745
|
};
|
|
11468
|
-
$[
|
|
11469
|
-
$[
|
|
11470
|
-
$[
|
|
11471
|
-
} else t14 = $[
|
|
11746
|
+
$[42] = formattedValue;
|
|
11747
|
+
$[43] = value;
|
|
11748
|
+
$[44] = t14;
|
|
11749
|
+
} else t14 = $[44];
|
|
11472
11750
|
const resetInput = t14;
|
|
11473
11751
|
let t15;
|
|
11474
|
-
if ($[
|
|
11752
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11475
11753
|
t15 = () => {
|
|
11476
11754
|
setIsFocused(true);
|
|
11477
11755
|
};
|
|
11478
|
-
$[
|
|
11479
|
-
} else t15 = $[
|
|
11756
|
+
$[45] = t15;
|
|
11757
|
+
} else t15 = $[45];
|
|
11480
11758
|
const handleFocus = t15;
|
|
11481
11759
|
let t16;
|
|
11482
|
-
if ($[
|
|
11760
|
+
if ($[46] !== max || $[47] !== min || $[48] !== onBlur || $[49] !== resetInput || $[50] !== setValue || $[51] !== withTime) {
|
|
11483
11761
|
t16 = () => {
|
|
11484
11762
|
setIsFocused(false);
|
|
11485
11763
|
const text_0 = inputRef.current?.value || "";
|
|
@@ -11490,63 +11768,65 @@ const DsDatePicker = (t0) => {
|
|
|
11490
11768
|
withTime
|
|
11491
11769
|
})) setValue(parseDate(text_0));
|
|
11492
11770
|
else resetInput();
|
|
11771
|
+
onBlur?.();
|
|
11493
11772
|
};
|
|
11494
|
-
$[
|
|
11495
|
-
$[
|
|
11496
|
-
$[
|
|
11497
|
-
$[
|
|
11498
|
-
$[
|
|
11499
|
-
$[
|
|
11500
|
-
|
|
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];
|
|
11501
11781
|
const handleBlur = t16;
|
|
11502
11782
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
11503
11783
|
const Wrapper = disablePortal ? react.Fragment : _ark_ui_react_portal.Portal;
|
|
11504
11784
|
let t17;
|
|
11505
|
-
if ($[
|
|
11506
|
-
t17 = value ? [value] : void 0;
|
|
11507
|
-
$[
|
|
11508
|
-
$[
|
|
11509
|
-
} else t17 = $[
|
|
11785
|
+
if ($[53] !== value) {
|
|
11786
|
+
t17 = value ? [value] : void 0;
|
|
11787
|
+
$[53] = value;
|
|
11788
|
+
$[54] = t17;
|
|
11789
|
+
} else t17 = $[54];
|
|
11510
11790
|
let t18;
|
|
11511
|
-
if ($[
|
|
11791
|
+
if ($[55] !== defaultValue) {
|
|
11512
11792
|
t18 = defaultValue ? [defaultValue] : void 0;
|
|
11513
|
-
$[
|
|
11514
|
-
$[
|
|
11515
|
-
} else t18 = $[
|
|
11793
|
+
$[55] = defaultValue;
|
|
11794
|
+
$[56] = t18;
|
|
11795
|
+
} else t18 = $[56];
|
|
11516
11796
|
let t19;
|
|
11517
|
-
if ($[
|
|
11797
|
+
if ($[57] !== setValue) {
|
|
11518
11798
|
t19 = (details) => {
|
|
11519
11799
|
setValue(details.value[0] ?? null);
|
|
11520
11800
|
};
|
|
11521
|
-
$[
|
|
11522
|
-
$[
|
|
11523
|
-
} else t19 = $[
|
|
11801
|
+
$[57] = setValue;
|
|
11802
|
+
$[58] = t19;
|
|
11803
|
+
} else t19 = $[58];
|
|
11524
11804
|
let t20;
|
|
11525
|
-
if ($[
|
|
11805
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11526
11806
|
t20 = {
|
|
11527
11807
|
placement: "bottom-start",
|
|
11528
11808
|
gutter: 4
|
|
11529
11809
|
};
|
|
11530
|
-
$[
|
|
11531
|
-
} else t20 = $[
|
|
11810
|
+
$[59] = t20;
|
|
11811
|
+
} else t20 = $[59];
|
|
11532
11812
|
const t21 = withTime ? false : closeOnSelect;
|
|
11533
11813
|
let t22;
|
|
11534
|
-
if ($[
|
|
11814
|
+
if ($[60] !== isFocused || $[61] !== onOpenChange) {
|
|
11535
11815
|
t22 = (details_0) => {
|
|
11536
11816
|
if (!isFocused) {
|
|
11537
11817
|
setIsOpen(details_0.open);
|
|
11538
11818
|
onOpenChange?.(details_0.open);
|
|
11539
11819
|
}
|
|
11540
11820
|
};
|
|
11541
|
-
$[
|
|
11542
|
-
$[
|
|
11543
|
-
$[
|
|
11544
|
-
} else t22 = $[
|
|
11821
|
+
$[60] = isFocused;
|
|
11822
|
+
$[61] = onOpenChange;
|
|
11823
|
+
$[62] = t22;
|
|
11824
|
+
} else t22 = $[62];
|
|
11545
11825
|
const t23 = placeholder ?? (withTime ? "mm/dd/yyyy, hh:mm AM/PM" : "mm/dd/yyyy");
|
|
11546
11826
|
const t24 = slotProps?.input;
|
|
11547
11827
|
const t25 = slotProps?.input?.slots;
|
|
11548
11828
|
let t26;
|
|
11549
|
-
if ($[
|
|
11829
|
+
if ($[63] !== disabled || $[64] !== locale?.clearLabel || $[65] !== setValue || $[66] !== showClearButton) {
|
|
11550
11830
|
t26 = showClearButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.ClearTrigger, {
|
|
11551
11831
|
asChild: true,
|
|
11552
11832
|
onClick: () => setValue(null),
|
|
@@ -11563,23 +11843,23 @@ const DsDatePicker = (t0) => {
|
|
|
11563
11843
|
})
|
|
11564
11844
|
})
|
|
11565
11845
|
});
|
|
11566
|
-
$[
|
|
11567
|
-
$[
|
|
11568
|
-
$[
|
|
11569
|
-
$[
|
|
11570
|
-
$[
|
|
11571
|
-
} else t26 = $[
|
|
11846
|
+
$[63] = disabled;
|
|
11847
|
+
$[64] = locale?.clearLabel;
|
|
11848
|
+
$[65] = setValue;
|
|
11849
|
+
$[66] = showClearButton;
|
|
11850
|
+
$[67] = t26;
|
|
11851
|
+
} else t26 = $[67];
|
|
11572
11852
|
const t27 = locale?.openCalendarLabel ?? "Open calendar";
|
|
11573
11853
|
let t28;
|
|
11574
|
-
if ($[
|
|
11854
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11575
11855
|
t28 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsIcon, {
|
|
11576
11856
|
icon: "calendar_today",
|
|
11577
11857
|
size: "tiny"
|
|
11578
11858
|
});
|
|
11579
|
-
$[
|
|
11580
|
-
} else t28 = $[
|
|
11859
|
+
$[68] = t28;
|
|
11860
|
+
} else t28 = $[68];
|
|
11581
11861
|
let t29;
|
|
11582
|
-
if ($[
|
|
11862
|
+
if ($[69] !== disabled || $[70] !== t27) {
|
|
11583
11863
|
t29 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Trigger, {
|
|
11584
11864
|
asChild: true,
|
|
11585
11865
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsButton, {
|
|
@@ -11591,29 +11871,29 @@ const DsDatePicker = (t0) => {
|
|
|
11591
11871
|
children: t28
|
|
11592
11872
|
})
|
|
11593
11873
|
});
|
|
11594
|
-
$[
|
|
11595
|
-
$[
|
|
11596
|
-
$[
|
|
11597
|
-
} else t29 = $[
|
|
11874
|
+
$[69] = disabled;
|
|
11875
|
+
$[70] = t27;
|
|
11876
|
+
$[71] = t29;
|
|
11877
|
+
} else t29 = $[71];
|
|
11598
11878
|
let t30;
|
|
11599
|
-
if ($[
|
|
11879
|
+
if ($[72] !== t26 || $[73] !== t29) {
|
|
11600
11880
|
t30 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t26, t29] });
|
|
11601
|
-
$[
|
|
11602
|
-
$[
|
|
11603
|
-
$[
|
|
11604
|
-
} else t30 = $[
|
|
11881
|
+
$[72] = t26;
|
|
11882
|
+
$[73] = t29;
|
|
11883
|
+
$[74] = t30;
|
|
11884
|
+
} else t30 = $[74];
|
|
11605
11885
|
let t31;
|
|
11606
|
-
if ($[
|
|
11886
|
+
if ($[75] !== t25 || $[76] !== t30) {
|
|
11607
11887
|
t31 = {
|
|
11608
11888
|
...t25,
|
|
11609
11889
|
endAdornment: t30
|
|
11610
11890
|
};
|
|
11611
|
-
$[
|
|
11612
|
-
$[
|
|
11613
|
-
$[
|
|
11614
|
-
} else t31 = $[
|
|
11891
|
+
$[75] = t25;
|
|
11892
|
+
$[76] = t30;
|
|
11893
|
+
$[77] = t31;
|
|
11894
|
+
} else t31 = $[77];
|
|
11615
11895
|
let t32;
|
|
11616
|
-
if ($[
|
|
11896
|
+
if ($[78] !== disabled || $[79] !== formattedValue || $[80] !== handleBlur || $[81] !== handleInputChange || $[82] !== id || $[83] !== readOnly || $[84] !== t23 || $[85] !== t24 || $[86] !== t31) {
|
|
11617
11897
|
t32 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Control, {
|
|
11618
11898
|
className: ds_date_picker_module_default.control,
|
|
11619
11899
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTextInput, {
|
|
@@ -11630,19 +11910,19 @@ const DsDatePicker = (t0) => {
|
|
|
11630
11910
|
slots: t31
|
|
11631
11911
|
})
|
|
11632
11912
|
});
|
|
11633
|
-
$[
|
|
11634
|
-
$[
|
|
11635
|
-
$[
|
|
11636
|
-
$[
|
|
11637
|
-
$[
|
|
11638
|
-
$[
|
|
11639
|
-
$[
|
|
11640
|
-
$[
|
|
11641
|
-
$[
|
|
11642
|
-
$[
|
|
11643
|
-
} 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];
|
|
11644
11924
|
let t33;
|
|
11645
|
-
if ($[
|
|
11925
|
+
if ($[88] !== _max || $[89] !== _min || $[90] !== disabled || $[91] !== max || $[92] !== min || $[93] !== readOnly || $[94] !== setValue || $[95] !== slotProps?.timePicker || $[96] !== value || $[97] !== withTime) {
|
|
11646
11926
|
t33 = withTime && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsTimePicker, {
|
|
11647
11927
|
value: fromIntlDate(value),
|
|
11648
11928
|
onChange: (v_0) => {
|
|
@@ -11662,37 +11942,37 @@ const DsDatePicker = (t0) => {
|
|
|
11662
11942
|
...slotProps?.timePicker?.slotProps
|
|
11663
11943
|
}
|
|
11664
11944
|
});
|
|
11665
|
-
$[
|
|
11666
|
-
$[
|
|
11667
|
-
$[
|
|
11668
|
-
$[
|
|
11669
|
-
$[
|
|
11670
|
-
$[
|
|
11671
|
-
$[
|
|
11672
|
-
$[
|
|
11673
|
-
$[
|
|
11674
|
-
$[
|
|
11675
|
-
$[
|
|
11676
|
-
} 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];
|
|
11677
11957
|
let t34;
|
|
11678
|
-
if ($[
|
|
11958
|
+
if ($[99] !== t33) {
|
|
11679
11959
|
t34 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DayView, { children: t33 });
|
|
11680
|
-
$[
|
|
11681
|
-
$[
|
|
11682
|
-
} else t34 = $[
|
|
11960
|
+
$[99] = t33;
|
|
11961
|
+
$[100] = t34;
|
|
11962
|
+
} else t34 = $[100];
|
|
11683
11963
|
let t35;
|
|
11684
11964
|
let t36;
|
|
11685
|
-
if ($[
|
|
11965
|
+
if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11686
11966
|
t35 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MonthView, {});
|
|
11687
11967
|
t36 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(YearView, {});
|
|
11688
|
-
$[
|
|
11689
|
-
$[
|
|
11968
|
+
$[101] = t35;
|
|
11969
|
+
$[102] = t36;
|
|
11690
11970
|
} else {
|
|
11691
|
-
t35 = $[
|
|
11692
|
-
t36 = $[
|
|
11971
|
+
t35 = $[101];
|
|
11972
|
+
t36 = $[102];
|
|
11693
11973
|
}
|
|
11694
11974
|
let t37;
|
|
11695
|
-
if ($[
|
|
11975
|
+
if ($[103] !== t34) {
|
|
11696
11976
|
t37 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_date_picker.DatePicker.Positioner, {
|
|
11697
11977
|
className: ds_date_picker_module_default.positioner,
|
|
11698
11978
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_date_picker.DatePicker.Content, {
|
|
@@ -11704,18 +11984,18 @@ const DsDatePicker = (t0) => {
|
|
|
11704
11984
|
]
|
|
11705
11985
|
})
|
|
11706
11986
|
});
|
|
11707
|
-
$[
|
|
11708
|
-
$[
|
|
11709
|
-
} else t37 = $[
|
|
11987
|
+
$[103] = t34;
|
|
11988
|
+
$[104] = t37;
|
|
11989
|
+
} else t37 = $[104];
|
|
11710
11990
|
let t38;
|
|
11711
|
-
if ($[
|
|
11991
|
+
if ($[105] !== Wrapper || $[106] !== t37) {
|
|
11712
11992
|
t38 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Wrapper, { children: t37 });
|
|
11713
|
-
$[
|
|
11714
|
-
$[
|
|
11715
|
-
$[
|
|
11716
|
-
} else t38 = $[
|
|
11993
|
+
$[105] = Wrapper;
|
|
11994
|
+
$[106] = t37;
|
|
11995
|
+
$[107] = t38;
|
|
11996
|
+
} else t38 = $[107];
|
|
11717
11997
|
let t39;
|
|
11718
|
-
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) {
|
|
11719
11999
|
t39 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_ark_ui_react_date_picker.DatePicker.Root, {
|
|
11720
12000
|
className,
|
|
11721
12001
|
value: t17,
|
|
@@ -11733,22 +12013,22 @@ const DsDatePicker = (t0) => {
|
|
|
11733
12013
|
...restProps,
|
|
11734
12014
|
children: [t32, t38]
|
|
11735
12015
|
});
|
|
11736
|
-
$[
|
|
11737
|
-
$[
|
|
11738
|
-
$[
|
|
11739
|
-
$[
|
|
11740
|
-
$[
|
|
11741
|
-
$[
|
|
11742
|
-
$[
|
|
11743
|
-
$[
|
|
11744
|
-
$[
|
|
11745
|
-
$[
|
|
11746
|
-
$[
|
|
11747
|
-
$[
|
|
11748
|
-
$[
|
|
11749
|
-
$[
|
|
11750
|
-
$[
|
|
11751
|
-
} 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];
|
|
11752
12032
|
return t39;
|
|
11753
12033
|
};
|
|
11754
12034
|
//#endregion
|
|
@@ -14217,22 +14497,24 @@ const filterStatuses = [
|
|
|
14217
14497
|
];
|
|
14218
14498
|
//#endregion
|
|
14219
14499
|
//#region src/components/ds-grid/ds-grid.tsx
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
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;
|
|
14224
14508
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14225
|
-
className:
|
|
14226
|
-
|
|
14227
|
-
|
|
14228
|
-
|
|
14509
|
+
className: gridClass,
|
|
14510
|
+
style: {
|
|
14511
|
+
...style,
|
|
14512
|
+
...cssVars
|
|
14513
|
+
},
|
|
14229
14514
|
children
|
|
14230
14515
|
});
|
|
14231
14516
|
};
|
|
14232
|
-
|
|
14233
|
-
* Design system GridItem component
|
|
14234
|
-
*/
|
|
14235
|
-
const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14517
|
+
const DsGridItemBase = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14236
14518
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14237
14519
|
className: (0, classnames.default)({
|
|
14238
14520
|
[`ds-grid-col-span-${String(colSpan)}`]: colSpan,
|
|
@@ -14244,6 +14526,10 @@ const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className
|
|
|
14244
14526
|
});
|
|
14245
14527
|
};
|
|
14246
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
|
|
14247
14533
|
//#region src/components/ds-key-value-pair/ds-key-value-pair.module.scss
|
|
14248
14534
|
var ds_key_value_pair_module_default = {
|
|
14249
14535
|
"editorSlot": "_6K_oIW_editorSlot",
|
|
@@ -15491,7 +15777,7 @@ const Root$1 = (t0) => {
|
|
|
15491
15777
|
* Item component - renders a single radio button with optional label
|
|
15492
15778
|
*/
|
|
15493
15779
|
const Item$1 = (t0) => {
|
|
15494
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
15780
|
+
const $ = (0, react_compiler_runtime.c)(24);
|
|
15495
15781
|
let children;
|
|
15496
15782
|
let className;
|
|
15497
15783
|
let label;
|
|
@@ -15545,22 +15831,28 @@ const Item$1 = (t0) => {
|
|
|
15545
15831
|
t3 = $[11];
|
|
15546
15832
|
}
|
|
15547
15833
|
let t4;
|
|
15548
|
-
if ($[12] !== children || $[13] !== label
|
|
15549
|
-
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, {
|
|
15550
15836
|
className: ds_radio_group_module_default.radioLabel,
|
|
15551
|
-
children:
|
|
15552
|
-
className: ds_radio_group_module_default.labelInfo,
|
|
15553
|
-
children: labelInfo
|
|
15554
|
-
})]
|
|
15837
|
+
children: label
|
|
15555
15838
|
}) : children;
|
|
15556
15839
|
$[12] = children;
|
|
15557
15840
|
$[13] = label;
|
|
15558
|
-
$[14] =
|
|
15559
|
-
|
|
15560
|
-
} else t4 = $[15];
|
|
15841
|
+
$[14] = t4;
|
|
15842
|
+
} else t4 = $[14];
|
|
15561
15843
|
let t5;
|
|
15562
|
-
if ($[
|
|
15563
|
-
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, {
|
|
15564
15856
|
value,
|
|
15565
15857
|
className: t1,
|
|
15566
15858
|
style,
|
|
@@ -15568,17 +15860,19 @@ const Item$1 = (t0) => {
|
|
|
15568
15860
|
children: [
|
|
15569
15861
|
t2,
|
|
15570
15862
|
t3,
|
|
15571
|
-
t4
|
|
15863
|
+
t4,
|
|
15864
|
+
t5
|
|
15572
15865
|
]
|
|
15573
15866
|
});
|
|
15574
|
-
$[
|
|
15575
|
-
$[
|
|
15576
|
-
$[
|
|
15577
|
-
$[
|
|
15578
|
-
$[20] = value;
|
|
15867
|
+
$[17] = props;
|
|
15868
|
+
$[18] = style;
|
|
15869
|
+
$[19] = t1;
|
|
15870
|
+
$[20] = t4;
|
|
15579
15871
|
$[21] = t5;
|
|
15580
|
-
|
|
15581
|
-
|
|
15872
|
+
$[22] = value;
|
|
15873
|
+
$[23] = t6;
|
|
15874
|
+
} else t6 = $[23];
|
|
15875
|
+
return t6;
|
|
15582
15876
|
};
|
|
15583
15877
|
/**
|
|
15584
15878
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
@@ -15587,61 +15881,50 @@ const Item$1 = (t0) => {
|
|
|
15587
15881
|
*/
|
|
15588
15882
|
/* c8 ignore start */
|
|
15589
15883
|
const DsRadioGroupLegacy = (t0) => {
|
|
15590
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
15591
|
-
|
|
15592
|
-
let defaultValue;
|
|
15593
|
-
let onValueChange;
|
|
15594
|
-
let options;
|
|
15595
|
-
let props;
|
|
15596
|
-
let value;
|
|
15597
|
-
if ($[0] !== t0) {
|
|
15598
|
-
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
15599
|
-
$[0] = t0;
|
|
15600
|
-
$[1] = className;
|
|
15601
|
-
$[2] = defaultValue;
|
|
15602
|
-
$[3] = onValueChange;
|
|
15603
|
-
$[4] = options;
|
|
15604
|
-
$[5] = props;
|
|
15605
|
-
$[6] = value;
|
|
15606
|
-
} else {
|
|
15607
|
-
className = $[1];
|
|
15608
|
-
defaultValue = $[2];
|
|
15609
|
-
onValueChange = $[3];
|
|
15610
|
-
options = $[4];
|
|
15611
|
-
props = $[5];
|
|
15612
|
-
value = $[6];
|
|
15613
|
-
}
|
|
15884
|
+
const $ = (0, react_compiler_runtime.c)(14);
|
|
15885
|
+
const { options, value, defaultValue, onValueChange, disabled, className, style } = t0;
|
|
15614
15886
|
let t1;
|
|
15615
|
-
if ($[
|
|
15887
|
+
if ($[0] !== className) {
|
|
15616
15888
|
t1 = (0, classnames.default)(ds_radio_group_module_default.radioGroupRoot, className);
|
|
15617
|
-
$[
|
|
15618
|
-
$[
|
|
15619
|
-
} else t1 = $[
|
|
15620
|
-
|
|
15621
|
-
if ($[9] !== options) {
|
|
15622
|
-
t2 = options.map(_temp$1);
|
|
15623
|
-
$[9] = options;
|
|
15624
|
-
$[10] = t2;
|
|
15625
|
-
} else t2 = $[10];
|
|
15889
|
+
$[0] = className;
|
|
15890
|
+
$[1] = t1;
|
|
15891
|
+
} else t1 = $[1];
|
|
15892
|
+
const t2 = value ?? void 0;
|
|
15626
15893
|
let t3;
|
|
15627
|
-
if ($[
|
|
15628
|
-
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, {
|
|
15629
15910
|
className: t1,
|
|
15630
|
-
|
|
15911
|
+
style,
|
|
15912
|
+
value: t2,
|
|
15631
15913
|
defaultValue,
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
children:
|
|
15914
|
+
disabled,
|
|
15915
|
+
onValueChange: t3,
|
|
15916
|
+
children: t4
|
|
15635
15917
|
});
|
|
15636
|
-
$[
|
|
15637
|
-
$[
|
|
15638
|
-
$[
|
|
15639
|
-
$[
|
|
15640
|
-
$[
|
|
15641
|
-
$[
|
|
15642
|
-
$[
|
|
15643
|
-
|
|
15644
|
-
|
|
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;
|
|
15645
15928
|
};
|
|
15646
15929
|
/* c8 ignore stop */
|
|
15647
15930
|
/**
|
|
@@ -15658,25 +15941,32 @@ const DsRadioGroup = {
|
|
|
15658
15941
|
Item: Item$1
|
|
15659
15942
|
};
|
|
15660
15943
|
function _temp$1(option) {
|
|
15661
|
-
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,
|
|
15662
15947
|
className: ds_radio_group_module_default.radioItemContainer,
|
|
15663
|
-
children: [
|
|
15664
|
-
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15672
|
-
|
|
15673
|
-
|
|
15674
|
-
|
|
15675
|
-
|
|
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",
|
|
15676
15966
|
className: ds_radio_group_module_default.labelInfo,
|
|
15677
15967
|
children: option.labelInfo
|
|
15678
|
-
})
|
|
15679
|
-
|
|
15968
|
+
})
|
|
15969
|
+
]
|
|
15680
15970
|
}, option.value);
|
|
15681
15971
|
}
|
|
15682
15972
|
//#endregion
|
|
@@ -19514,6 +19804,183 @@ DsVerticalTabs.List = DsVerticalTabsList;
|
|
|
19514
19804
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
19515
19805
|
DsVerticalTabs.Content = DsVerticalTabsContent;
|
|
19516
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
|
|
19517
19984
|
exports.BREAKPOINT_LG = BREAKPOINT_LG;
|
|
19518
19985
|
exports.DsAlertBanner = DsAlertBanner;
|
|
19519
19986
|
exports.DsAutocomplete = DsAutocomplete;
|
|
@@ -19524,6 +19991,7 @@ exports.DsButton = DsButton;
|
|
|
19524
19991
|
exports.DsButtonV3 = DsButtonV3;
|
|
19525
19992
|
exports.DsCard = DsCard;
|
|
19526
19993
|
exports.DsCheckbox = DsCheckbox;
|
|
19994
|
+
exports.DsCheckboxGroup = DsCheckboxGroup;
|
|
19527
19995
|
exports.DsChip = DsChip;
|
|
19528
19996
|
exports.DsChipGroup = DsChipGroup;
|
|
19529
19997
|
exports.DsCommentBubble = DsCommentBubble;
|
|
@@ -19589,6 +20057,7 @@ exports.DsTooltip = DsTooltip;
|
|
|
19589
20057
|
exports.DsTree = DsTree;
|
|
19590
20058
|
exports.DsTypography = DsTypography;
|
|
19591
20059
|
exports.DsVerticalTabs = DsVerticalTabs;
|
|
20060
|
+
exports.DsWorkspace = DsWorkspace;
|
|
19592
20061
|
exports.FatalFileUploadError = FatalFileUploadError;
|
|
19593
20062
|
exports.FileUpload = FileUpload;
|
|
19594
20063
|
exports.FileUploadError = FileUploadError;
|
|
@@ -19610,6 +20079,7 @@ exports.customIcons = customIcons;
|
|
|
19610
20079
|
exports.dsKeyValuePairOrientations = dsKeyValuePairOrientations;
|
|
19611
20080
|
exports.filterStatuses = filterStatuses;
|
|
19612
20081
|
exports.formatTime = formatTime;
|
|
20082
|
+
exports.iconColors = iconColors;
|
|
19613
20083
|
exports.iconSizes = iconSizes;
|
|
19614
20084
|
exports.iconVariants = iconVariants;
|
|
19615
20085
|
exports.isCustomIcon = isCustomIcon;
|
|
@@ -19631,6 +20101,7 @@ exports.tagSizes = tagSizes;
|
|
|
19631
20101
|
exports.tagVariants = tagVariants;
|
|
19632
20102
|
exports.textInputSizes = textInputSizes;
|
|
19633
20103
|
exports.useBreakpoint = useBreakpoint;
|
|
20104
|
+
exports.useCheckboxSelectAll = useCheckboxSelectAll;
|
|
19634
20105
|
exports.useFileUpload = useFileUpload;
|
|
19635
20106
|
exports.useResponsiveValue = useResponsiveValue;
|
|
19636
20107
|
exports.useTableFilters = useTableFilters;
|