@drivenets/design-system 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/index.cjs +1076 -600
- package/dist/index.d.cts +1988 -528
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1991 -531
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1083 -609
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +16 -17
- package/src/components/ds-breadcrumb/ds-breadcrumb.types.ts +40 -6
- package/src/components/ds-button/ds-button.types.ts +13 -2
- package/src/components/ds-button-v3/ds-button-v3.module.scss +108 -109
- package/src/components/ds-button-v3/ds-button-v3.tsx +2 -2
- package/src/components/ds-button-v3/ds-button-v3.types.ts +19 -3
- package/src/components/ds-button-v3/index.ts +5 -1
- package/src/components/ds-card/ds-card.types.ts +3 -1
- package/src/components/ds-checkbox/ds-checkbox.module.scss +106 -123
- package/src/components/ds-checkbox/ds-checkbox.tsx +24 -35
- package/src/components/ds-checkbox/ds-checkbox.types.ts +12 -11
- package/src/components/ds-checkbox-group/ds-checkbox-group.module.scss +13 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.tsx +20 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.types.ts +8 -0
- package/src/components/ds-checkbox-group/hooks/index.ts +6 -0
- package/src/components/ds-checkbox-group/hooks/use-checkbox-select-all.ts +65 -0
- package/src/components/ds-checkbox-group/index.ts +3 -0
- package/src/components/ds-comment-bubble/components/ds-comment-thread/ds-comment-thread.types.ts +26 -0
- package/src/components/ds-comment-bubble/components/ds-thread-item/ds-thread-item.types.ts +38 -0
- package/src/components/ds-comment-bubble/ds-comment-bubble.types.ts +78 -0
- package/src/components/ds-comment-card/ds-comment-card.module.scss +2 -2
- package/src/components/ds-comment-card/ds-comment-card.types.ts +114 -0
- package/src/components/ds-comment-indicator/ds-comment-indicator.types.ts +26 -0
- package/src/components/ds-comments-drawer/comments-filters.types.ts +33 -0
- package/src/components/ds-comments-drawer/components/comments-filter-modal/comments-filter-modal.types.ts +37 -1
- package/src/components/ds-comments-drawer/ds-comments-drawer.types.ts +64 -0
- package/src/components/ds-date-input/ds-date-input.types.ts +23 -0
- package/src/components/ds-date-picker/ds-date-picker.tsx +3 -0
- package/src/components/ds-date-picker/ds-date-picker.types.ts +20 -0
- package/src/components/ds-date-range-picker/ds-date-range-picker.types.ts +28 -0
- package/src/components/ds-dialog/ds-dialog.types.ts +10 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.types.ts +24 -0
- package/src/components/ds-file-upload/components/file-upload/file-upload.types.ts +1 -0
- package/src/components/ds-file-upload/ds-file-upload-api.types.ts +55 -0
- package/src/components/ds-form-control/ds-form-control.types.ts +3 -0
- package/src/components/ds-grid/ds-grid.tsx +29 -12
- package/src/components/ds-grid/ds-grid.types.ts +16 -13
- package/src/components/ds-grid/index.ts +10 -2
- package/src/components/ds-icon/custom-icons/index.ts +2 -0
- package/src/components/ds-icon/custom-icons/special-leading-icon.tsx +11 -0
- package/src/components/ds-icon/ds-icon.tsx +10 -4
- package/src/components/ds-icon/ds-icon.types.ts +30 -0
- package/src/components/ds-key-value-pair/ds-key-value-pair.types.ts +12 -2
- package/src/components/ds-modal/ds-modal.types.ts +16 -0
- package/src/components/ds-panel/ds-panel.types.ts +39 -0
- package/src/components/ds-radio-group/ds-radio-group.module.scss +58 -56
- package/src/components/ds-radio-group/ds-radio-group.tsx +35 -28
- package/src/components/ds-radio-group/ds-radio-group.types.ts +38 -7
- package/src/components/ds-segment-group/ds-segment-group.types.ts +17 -0
- package/src/components/ds-select/ds-select.types.ts +32 -0
- package/src/components/ds-split-button/ds-split-button.module.scss +7 -7
- package/src/components/ds-split-button/ds-split-button.types.ts +28 -0
- package/src/components/ds-stack/ds-stack.types.ts +23 -0
- package/src/components/ds-stepper/ds-stepper.types.ts +34 -1
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.types.ts +27 -0
- package/src/components/ds-table/components/ds-table-cell/ds-table-cell.tsx +7 -4
- package/src/components/ds-table/components/ds-table-cell/ds-table-cell.types.ts +6 -0
- package/src/components/ds-table/components/ds-table-row-expandable-cell/ds-table-row-expandable-cell.types.ts +10 -0
- package/src/components/ds-table/components/ds-table-row-selectable-cell/ds-table-row-selectable-cell.types.ts +11 -0
- package/src/components/ds-table/components/ds-table-row-virtualized/ds-table-row-virtualized.types.ts +27 -0
- package/src/components/ds-table/filters/types/filter-adapter.types.ts +6 -0
- package/src/components/ds-tag/ds-tag.types.ts +6 -0
- package/src/components/ds-tag-filter/ds-tag-filter.types.ts +16 -0
- package/src/components/ds-text-input/ds-text-input.types.ts +3 -0
- package/src/components/ds-time-picker/components/time-item/time-item.types.ts +19 -0
- package/src/components/ds-time-picker/components/time-scroller/time-scroller.types.ts +29 -0
- package/src/components/ds-time-picker/ds-time-picker.module.scss +7 -0
- package/src/components/ds-time-picker/ds-time-picker.tsx +8 -1
- package/src/components/ds-time-picker/ds-time-picker.types.ts +80 -0
- package/src/components/ds-tooltip/ds-tooltip.types.ts +6 -0
- package/src/components/ds-tree/ds-tree.types.ts +86 -4
- package/src/components/ds-typography/ds-typography.config.ts +46 -27
- package/src/components/ds-typography/ds-typography.tsx +22 -7
- package/src/components/ds-typography/ds-typography.types.ts +15 -4
- package/src/components/ds-workspace/ds-workspace.module.scss +55 -0
- package/src/components/ds-workspace/ds-workspace.tsx +37 -0
- package/src/components/ds-workspace/ds-workspace.types.ts +17 -0
- package/src/components/ds-workspace/index.ts +8 -0
- package/src/index.ts +2 -0
- package/src/styles/_grid.scss +7 -3
- package/src/styles/_mixin.scss +2 -2
- package/src/styles/_root_new.scss +449 -0
- package/src/styles/_scrollbars.scss +6 -1
- package/src/styles/shared/_input.scss +0 -2
- package/src/styles/styles.scss +1 -0
- package/src/styles/_root_updated.scss +0 -593
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import classNames from "classnames";
|
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import React, { Children, Fragment as Fragment$1, createContext, createElement, isValidElement, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { FileUpload as FileUpload$1, NumberInput, PasswordInput, Progress, Toast, Toaster, ark, createToaster } from "@ark-ui/react";
|
|
7
7
|
import { Combobox, createListCollection } from "@ark-ui/react/combobox";
|
|
8
8
|
import { useFilter } from "@ark-ui/react/locale";
|
|
9
9
|
import { Highlight } from "@ark-ui/react/highlight";
|
|
@@ -13,9 +13,9 @@ import * as Tooltip from "@radix-ui/react-tooltip";
|
|
|
13
13
|
import { Link, useLocation } from "@tanstack/react-router";
|
|
14
14
|
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
15
15
|
import { Menu } from "@ark-ui/react/menu";
|
|
16
|
-
import
|
|
16
|
+
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
17
17
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
18
|
-
import { Root
|
|
18
|
+
import { Root } from "@radix-ui/react-visually-hidden";
|
|
19
19
|
import { Dialog } from "@ark-ui/react/dialog";
|
|
20
20
|
import { createPortal } from "react-dom";
|
|
21
21
|
import { Tabs } from "@ark-ui/react/tabs";
|
|
@@ -23,10 +23,8 @@ import { DatePicker } from "@ark-ui/react/date-picker";
|
|
|
23
23
|
import { CalendarDate, fromDate, getLocalTimeZone, parseDate } from "@internationalized/date";
|
|
24
24
|
import { Popover } from "@ark-ui/react/popover";
|
|
25
25
|
import { Select, createListCollection as createListCollection$1, useSelect, useSelectContext } from "@ark-ui/react/select";
|
|
26
|
-
import { FileUpload as FileUpload$1, NumberInput, PasswordInput, Progress, Toast, Toaster, createToaster } from "@ark-ui/react";
|
|
27
26
|
import * as Collapsible from "@radix-ui/react-collapsible";
|
|
28
27
|
import * as Popover$1 from "@radix-ui/react-popover";
|
|
29
|
-
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
30
28
|
import { RadioGroup } from "@ark-ui/react/radio-group";
|
|
31
29
|
import { SegmentGroup } from "@ark-ui/react/segment-group";
|
|
32
30
|
import * as steps from "@zag-js/steps";
|
|
@@ -69,6 +67,37 @@ var ds_icon_module_default = {
|
|
|
69
67
|
"tiny": "BWBvDq_tiny"
|
|
70
68
|
};
|
|
71
69
|
//#endregion
|
|
70
|
+
//#region src/components/ds-icon/ds-icon.types.ts
|
|
71
|
+
const iconSizes = [
|
|
72
|
+
"tiny",
|
|
73
|
+
"small",
|
|
74
|
+
"medium",
|
|
75
|
+
"large",
|
|
76
|
+
"extra-large"
|
|
77
|
+
];
|
|
78
|
+
const iconVariants = ["outlined", "rounded"];
|
|
79
|
+
const iconColors = [
|
|
80
|
+
"action",
|
|
81
|
+
"action-hover",
|
|
82
|
+
"action-secondary",
|
|
83
|
+
"disabled",
|
|
84
|
+
"error",
|
|
85
|
+
"execution",
|
|
86
|
+
"information-main",
|
|
87
|
+
"information-secondary",
|
|
88
|
+
"inverse",
|
|
89
|
+
"main",
|
|
90
|
+
"on-button",
|
|
91
|
+
"on-dark-disabled",
|
|
92
|
+
"pause",
|
|
93
|
+
"pending",
|
|
94
|
+
"secondary",
|
|
95
|
+
"success",
|
|
96
|
+
"success-light",
|
|
97
|
+
"warning",
|
|
98
|
+
"warning-light"
|
|
99
|
+
];
|
|
100
|
+
//#endregion
|
|
72
101
|
//#region src/components/ds-icon/custom-icons/special-market.tsx
|
|
73
102
|
/**
|
|
74
103
|
* Special Market icon - represents a market/city location
|
|
@@ -1979,6 +2008,33 @@ const SpecialHome = (props) => {
|
|
|
1979
2008
|
return t1;
|
|
1980
2009
|
};
|
|
1981
2010
|
//#endregion
|
|
2011
|
+
//#region src/components/ds-icon/custom-icons/special-leading-icon.tsx
|
|
2012
|
+
/** Leading / input-adjacent building icon from design (AR-58177). */
|
|
2013
|
+
const SpecialLeadingIcon = (props) => {
|
|
2014
|
+
const $ = c(3);
|
|
2015
|
+
let t0;
|
|
2016
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2017
|
+
t0 = /* @__PURE__ */ jsx("path", {
|
|
2018
|
+
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",
|
|
2019
|
+
fill: "currentColor"
|
|
2020
|
+
});
|
|
2021
|
+
$[0] = t0;
|
|
2022
|
+
} else t0 = $[0];
|
|
2023
|
+
let t1;
|
|
2024
|
+
if ($[1] !== props) {
|
|
2025
|
+
t1 = /* @__PURE__ */ jsx("svg", {
|
|
2026
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2027
|
+
viewBox: "0 0 12 13",
|
|
2028
|
+
fill: "none",
|
|
2029
|
+
...props,
|
|
2030
|
+
children: t0
|
|
2031
|
+
});
|
|
2032
|
+
$[1] = props;
|
|
2033
|
+
$[2] = t1;
|
|
2034
|
+
} else t1 = $[2];
|
|
2035
|
+
return t1;
|
|
2036
|
+
};
|
|
2037
|
+
//#endregion
|
|
1982
2038
|
//#region src/components/ds-icon/custom-icons/special-lego.tsx
|
|
1983
2039
|
/**
|
|
1984
2040
|
* Special Lego icon
|
|
@@ -2666,6 +2722,7 @@ const customIcons = {
|
|
|
2666
2722
|
"special-webhook": SpecialWebhook,
|
|
2667
2723
|
"special-map-view": SpecialMapView,
|
|
2668
2724
|
"special-home": SpecialHome,
|
|
2725
|
+
"special-leading-icon": SpecialLeadingIcon,
|
|
2669
2726
|
"special-lego": SpecialLego,
|
|
2670
2727
|
"special-scheme": SpecialScheme,
|
|
2671
2728
|
"special-book": SpecialBook,
|
|
@@ -2686,11 +2743,14 @@ const isCustomIcon = (icon) => {
|
|
|
2686
2743
|
};
|
|
2687
2744
|
//#endregion
|
|
2688
2745
|
//#region src/components/ds-icon/ds-icon.tsx
|
|
2746
|
+
const iconColorSet = new Set(iconColors);
|
|
2747
|
+
const resolveColor$1 = (color) => iconColorSet.has(color) ? `var(--icon-${color})` : color;
|
|
2689
2748
|
/**
|
|
2690
2749
|
* Design system Icon component that renders Google Material Icons, custom SVG icons, or inline SVGs
|
|
2691
2750
|
*/
|
|
2692
2751
|
const DsIcon = (t0) => {
|
|
2693
|
-
const $ = c(
|
|
2752
|
+
const $ = c(30);
|
|
2753
|
+
let color;
|
|
2694
2754
|
let filled;
|
|
2695
2755
|
let icon;
|
|
2696
2756
|
let rest;
|
|
@@ -2699,44 +2759,58 @@ const DsIcon = (t0) => {
|
|
|
2699
2759
|
let t3;
|
|
2700
2760
|
let t4;
|
|
2701
2761
|
if ($[0] !== t0) {
|
|
2702
|
-
({icon, size: t1, variant: t2, filled, className: t3, style: t4, ...rest} = t0);
|
|
2762
|
+
({icon, size: t1, variant: t2, filled, color, className: t3, style: t4, ...rest} = t0);
|
|
2703
2763
|
$[0] = t0;
|
|
2704
|
-
$[1] =
|
|
2705
|
-
$[2] =
|
|
2706
|
-
$[3] =
|
|
2707
|
-
$[4] =
|
|
2708
|
-
$[5] =
|
|
2709
|
-
$[6] =
|
|
2710
|
-
$[7] =
|
|
2764
|
+
$[1] = color;
|
|
2765
|
+
$[2] = filled;
|
|
2766
|
+
$[3] = icon;
|
|
2767
|
+
$[4] = rest;
|
|
2768
|
+
$[5] = t1;
|
|
2769
|
+
$[6] = t2;
|
|
2770
|
+
$[7] = t3;
|
|
2771
|
+
$[8] = t4;
|
|
2711
2772
|
} else {
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2773
|
+
color = $[1];
|
|
2774
|
+
filled = $[2];
|
|
2775
|
+
icon = $[3];
|
|
2776
|
+
rest = $[4];
|
|
2777
|
+
t1 = $[5];
|
|
2778
|
+
t2 = $[6];
|
|
2779
|
+
t3 = $[7];
|
|
2780
|
+
t4 = $[8];
|
|
2719
2781
|
}
|
|
2720
2782
|
const size = t1 === void 0 ? "medium" : t1;
|
|
2721
2783
|
const variant = t2 === void 0 ? "outlined" : t2;
|
|
2722
2784
|
const className = t3 === void 0 ? "" : t3;
|
|
2723
2785
|
let t5;
|
|
2724
|
-
if ($[
|
|
2786
|
+
if ($[9] !== t4) {
|
|
2725
2787
|
t5 = t4 === void 0 ? {} : t4;
|
|
2726
|
-
$[
|
|
2727
|
-
$[
|
|
2728
|
-
} else t5 = $[
|
|
2788
|
+
$[9] = t4;
|
|
2789
|
+
$[10] = t5;
|
|
2790
|
+
} else t5 = $[10];
|
|
2729
2791
|
const style = t5;
|
|
2792
|
+
let mergedStyle;
|
|
2730
2793
|
let t6;
|
|
2731
2794
|
let t7;
|
|
2732
|
-
if ($[
|
|
2795
|
+
if ($[11] !== className || $[12] !== color || $[13] !== filled || $[14] !== icon || $[15] !== rest || $[16] !== size || $[17] !== style || $[18] !== variant) {
|
|
2733
2796
|
t7 = Symbol.for("react.early_return_sentinel");
|
|
2734
2797
|
bb0: {
|
|
2735
2798
|
const iconClass = classNames(ds_icon_module_default.icon, ds_icon_module_default[size], { [ds_icon_module_default.filled]: filled }, className);
|
|
2799
|
+
let t8;
|
|
2800
|
+
if ($[22] !== color || $[23] !== style) {
|
|
2801
|
+
t8 = color ? {
|
|
2802
|
+
color: resolveColor$1(color),
|
|
2803
|
+
...style
|
|
2804
|
+
} : style;
|
|
2805
|
+
$[22] = color;
|
|
2806
|
+
$[23] = style;
|
|
2807
|
+
$[24] = t8;
|
|
2808
|
+
} else t8 = $[24];
|
|
2809
|
+
mergedStyle = t8;
|
|
2736
2810
|
if (typeof icon === "function") {
|
|
2737
2811
|
t7 = /* @__PURE__ */ jsx(icon, {
|
|
2738
2812
|
className: iconClass,
|
|
2739
|
-
style,
|
|
2813
|
+
style: mergedStyle,
|
|
2740
2814
|
...rest
|
|
2741
2815
|
});
|
|
2742
2816
|
break bb0;
|
|
@@ -2745,80 +2819,161 @@ const DsIcon = (t0) => {
|
|
|
2745
2819
|
const SvgComponent_0 = customIcons[icon];
|
|
2746
2820
|
t7 = /* @__PURE__ */ jsx(SvgComponent_0, {
|
|
2747
2821
|
className: iconClass,
|
|
2748
|
-
style,
|
|
2822
|
+
style: mergedStyle,
|
|
2749
2823
|
...rest
|
|
2750
2824
|
});
|
|
2751
2825
|
break bb0;
|
|
2752
2826
|
}
|
|
2753
2827
|
t6 = classNames(iconClass, `material-symbols-${variant}`);
|
|
2754
2828
|
}
|
|
2755
|
-
$[
|
|
2756
|
-
$[
|
|
2757
|
-
$[
|
|
2758
|
-
$[
|
|
2759
|
-
$[
|
|
2760
|
-
$[
|
|
2761
|
-
$[
|
|
2762
|
-
$[
|
|
2763
|
-
$[
|
|
2829
|
+
$[11] = className;
|
|
2830
|
+
$[12] = color;
|
|
2831
|
+
$[13] = filled;
|
|
2832
|
+
$[14] = icon;
|
|
2833
|
+
$[15] = rest;
|
|
2834
|
+
$[16] = size;
|
|
2835
|
+
$[17] = style;
|
|
2836
|
+
$[18] = variant;
|
|
2837
|
+
$[19] = mergedStyle;
|
|
2838
|
+
$[20] = t6;
|
|
2839
|
+
$[21] = t7;
|
|
2764
2840
|
} else {
|
|
2765
|
-
|
|
2766
|
-
|
|
2841
|
+
mergedStyle = $[19];
|
|
2842
|
+
t6 = $[20];
|
|
2843
|
+
t7 = $[21];
|
|
2767
2844
|
}
|
|
2768
2845
|
if (t7 !== Symbol.for("react.early_return_sentinel")) return t7;
|
|
2769
2846
|
let t8;
|
|
2770
|
-
if ($[
|
|
2847
|
+
if ($[25] !== icon || $[26] !== mergedStyle || $[27] !== rest || $[28] !== t6) {
|
|
2771
2848
|
t8 = /* @__PURE__ */ jsx("span", {
|
|
2772
2849
|
className: t6,
|
|
2773
|
-
style,
|
|
2850
|
+
style: mergedStyle,
|
|
2774
2851
|
...rest,
|
|
2775
2852
|
children: icon
|
|
2776
2853
|
});
|
|
2777
|
-
$[
|
|
2778
|
-
$[
|
|
2779
|
-
$[
|
|
2780
|
-
$[
|
|
2781
|
-
$[
|
|
2782
|
-
} else t8 = $[
|
|
2854
|
+
$[25] = icon;
|
|
2855
|
+
$[26] = mergedStyle;
|
|
2856
|
+
$[27] = rest;
|
|
2857
|
+
$[28] = t6;
|
|
2858
|
+
$[29] = t8;
|
|
2859
|
+
} else t8 = $[29];
|
|
2783
2860
|
return t8;
|
|
2784
2861
|
};
|
|
2785
2862
|
//#endregion
|
|
2786
|
-
//#region src/components/ds-icon/ds-icon.types.ts
|
|
2787
|
-
const iconSizes = [
|
|
2788
|
-
"tiny",
|
|
2789
|
-
"small",
|
|
2790
|
-
"medium",
|
|
2791
|
-
"large",
|
|
2792
|
-
"extra-large"
|
|
2793
|
-
];
|
|
2794
|
-
const iconVariants = ["outlined", "rounded"];
|
|
2795
|
-
//#endregion
|
|
2796
2863
|
//#region src/components/ds-typography/ds-typography.config.ts
|
|
2797
|
-
const
|
|
2798
|
-
"body-md-reg":
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
"body-md-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
"body-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
"body-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
"
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2864
|
+
const typographyVariantConfig = {
|
|
2865
|
+
"body-md-reg": {
|
|
2866
|
+
element: "p",
|
|
2867
|
+
component: ark.p
|
|
2868
|
+
},
|
|
2869
|
+
"body-md-md": {
|
|
2870
|
+
element: "p",
|
|
2871
|
+
component: ark.p
|
|
2872
|
+
},
|
|
2873
|
+
"body-md-semi-bold": {
|
|
2874
|
+
element: "p",
|
|
2875
|
+
component: ark.p
|
|
2876
|
+
},
|
|
2877
|
+
"body-md-bold": {
|
|
2878
|
+
element: "p",
|
|
2879
|
+
component: ark.p
|
|
2880
|
+
},
|
|
2881
|
+
"body-md-link": {
|
|
2882
|
+
element: "a",
|
|
2883
|
+
component: ark.a
|
|
2884
|
+
},
|
|
2885
|
+
"body-sm-reg": {
|
|
2886
|
+
element: "span",
|
|
2887
|
+
component: ark.span
|
|
2888
|
+
},
|
|
2889
|
+
"body-sm-md": {
|
|
2890
|
+
element: "span",
|
|
2891
|
+
component: ark.span
|
|
2892
|
+
},
|
|
2893
|
+
"body-sm-semi-bold": {
|
|
2894
|
+
element: "span",
|
|
2895
|
+
component: ark.span
|
|
2896
|
+
},
|
|
2897
|
+
"body-sm-bold": {
|
|
2898
|
+
element: "span",
|
|
2899
|
+
component: ark.span
|
|
2900
|
+
},
|
|
2901
|
+
"body-sm-link": {
|
|
2902
|
+
element: "a",
|
|
2903
|
+
component: ark.a
|
|
2904
|
+
},
|
|
2905
|
+
"body-xs-reg": {
|
|
2906
|
+
element: "span",
|
|
2907
|
+
component: ark.span
|
|
2908
|
+
},
|
|
2909
|
+
"body-xs-md": {
|
|
2910
|
+
element: "span",
|
|
2911
|
+
component: ark.span
|
|
2912
|
+
},
|
|
2913
|
+
"body-xs-semi-bold": {
|
|
2914
|
+
element: "span",
|
|
2915
|
+
component: ark.span
|
|
2916
|
+
},
|
|
2917
|
+
"body-xs-bold": {
|
|
2918
|
+
element: "span",
|
|
2919
|
+
component: ark.span
|
|
2920
|
+
},
|
|
2921
|
+
"body-xs-link": {
|
|
2922
|
+
element: "a",
|
|
2923
|
+
component: ark.a
|
|
2924
|
+
},
|
|
2925
|
+
"code-sm-reg": {
|
|
2926
|
+
element: "code",
|
|
2927
|
+
component: ark.code
|
|
2928
|
+
},
|
|
2929
|
+
"code-sm-semi-bold": {
|
|
2930
|
+
element: "code",
|
|
2931
|
+
component: ark.code
|
|
2932
|
+
},
|
|
2933
|
+
"code-xs-reg": {
|
|
2934
|
+
element: "code",
|
|
2935
|
+
component: ark.code
|
|
2936
|
+
},
|
|
2937
|
+
"code-xs-semi-bold": {
|
|
2938
|
+
element: "code",
|
|
2939
|
+
component: ark.code
|
|
2940
|
+
},
|
|
2941
|
+
heading1: {
|
|
2942
|
+
element: "h1",
|
|
2943
|
+
component: ark.h1
|
|
2944
|
+
},
|
|
2945
|
+
heading2: {
|
|
2946
|
+
element: "h2",
|
|
2947
|
+
component: ark.h2
|
|
2948
|
+
},
|
|
2949
|
+
heading3: {
|
|
2950
|
+
element: "h3",
|
|
2951
|
+
component: ark.h3
|
|
2952
|
+
},
|
|
2953
|
+
heading4: {
|
|
2954
|
+
element: "h4",
|
|
2955
|
+
component: ark.h4
|
|
2956
|
+
}
|
|
2821
2957
|
};
|
|
2958
|
+
/** Semantic text colors backed by `--font-*` tokens in `_root_new.scss`. */
|
|
2959
|
+
const typographyColors = [
|
|
2960
|
+
"main",
|
|
2961
|
+
"secondary",
|
|
2962
|
+
"action",
|
|
2963
|
+
"action-hover",
|
|
2964
|
+
"action-secondary",
|
|
2965
|
+
"action-secondary-hover",
|
|
2966
|
+
"disabled",
|
|
2967
|
+
"light-disabled",
|
|
2968
|
+
"on-action",
|
|
2969
|
+
"on-disabled",
|
|
2970
|
+
"placeholder",
|
|
2971
|
+
"highlight",
|
|
2972
|
+
"success",
|
|
2973
|
+
"warning",
|
|
2974
|
+
"error",
|
|
2975
|
+
"code"
|
|
2976
|
+
];
|
|
2822
2977
|
//#endregion
|
|
2823
2978
|
//#region src/components/ds-typography/ds-typography.module.scss
|
|
2824
2979
|
var ds_typography_module_default = {
|
|
@@ -2848,56 +3003,79 @@ var ds_typography_module_default = {
|
|
|
2848
3003
|
};
|
|
2849
3004
|
//#endregion
|
|
2850
3005
|
//#region src/components/ds-typography/ds-typography.tsx
|
|
3006
|
+
const semanticColorSet = new Set(typographyColors);
|
|
3007
|
+
const resolveColor = (color) => semanticColorSet.has(color) ? `var(--font-${color})` : color;
|
|
2851
3008
|
const DsTypography = (t0) => {
|
|
2852
|
-
const $ = c(
|
|
3009
|
+
const $ = c(23);
|
|
2853
3010
|
let children;
|
|
2854
3011
|
let className;
|
|
3012
|
+
let color;
|
|
2855
3013
|
let props;
|
|
2856
3014
|
let ref;
|
|
3015
|
+
let style;
|
|
2857
3016
|
let t1;
|
|
2858
3017
|
let variant;
|
|
2859
3018
|
if ($[0] !== t0) {
|
|
2860
|
-
({ref, variant, asChild: t1, className, children, ...props} = t0);
|
|
3019
|
+
({ref, variant, asChild: t1, className, style, color, children, ...props} = t0);
|
|
2861
3020
|
$[0] = t0;
|
|
2862
3021
|
$[1] = children;
|
|
2863
3022
|
$[2] = className;
|
|
2864
|
-
$[3] =
|
|
2865
|
-
$[4] =
|
|
2866
|
-
$[5] =
|
|
2867
|
-
$[6] =
|
|
3023
|
+
$[3] = color;
|
|
3024
|
+
$[4] = props;
|
|
3025
|
+
$[5] = ref;
|
|
3026
|
+
$[6] = style;
|
|
3027
|
+
$[7] = t1;
|
|
3028
|
+
$[8] = variant;
|
|
2868
3029
|
} else {
|
|
2869
3030
|
children = $[1];
|
|
2870
3031
|
className = $[2];
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
3032
|
+
color = $[3];
|
|
3033
|
+
props = $[4];
|
|
3034
|
+
ref = $[5];
|
|
3035
|
+
style = $[6];
|
|
3036
|
+
t1 = $[7];
|
|
3037
|
+
variant = $[8];
|
|
2875
3038
|
}
|
|
2876
|
-
const
|
|
3039
|
+
const asChild = t1 === void 0 ? false : t1;
|
|
3040
|
+
const Component = typographyVariantConfig[variant].component;
|
|
2877
3041
|
const t2 = ds_typography_module_default[variant];
|
|
2878
3042
|
let t3;
|
|
2879
|
-
if ($[
|
|
3043
|
+
if ($[9] !== className || $[10] !== t2) {
|
|
2880
3044
|
t3 = classNames(t2, className);
|
|
2881
|
-
$[
|
|
2882
|
-
$[
|
|
2883
|
-
$[
|
|
2884
|
-
} else t3 = $[
|
|
3045
|
+
$[9] = className;
|
|
3046
|
+
$[10] = t2;
|
|
3047
|
+
$[11] = t3;
|
|
3048
|
+
} else t3 = $[11];
|
|
2885
3049
|
let t4;
|
|
2886
|
-
if ($[
|
|
2887
|
-
t4 =
|
|
3050
|
+
if ($[12] !== color || $[13] !== style) {
|
|
3051
|
+
t4 = color ? {
|
|
3052
|
+
color: resolveColor(color),
|
|
3053
|
+
...style
|
|
3054
|
+
} : style;
|
|
3055
|
+
$[12] = color;
|
|
3056
|
+
$[13] = style;
|
|
3057
|
+
$[14] = t4;
|
|
3058
|
+
} else t4 = $[14];
|
|
3059
|
+
let t5;
|
|
3060
|
+
if ($[15] !== Component || $[16] !== asChild || $[17] !== children || $[18] !== props || $[19] !== ref || $[20] !== t3 || $[21] !== t4) {
|
|
3061
|
+
t5 = /* @__PURE__ */ jsx(Component, {
|
|
2888
3062
|
ref,
|
|
3063
|
+
asChild,
|
|
2889
3064
|
className: t3,
|
|
3065
|
+
style: t4,
|
|
2890
3066
|
...props,
|
|
2891
3067
|
children
|
|
2892
3068
|
});
|
|
2893
|
-
$[
|
|
2894
|
-
$[
|
|
2895
|
-
$[
|
|
2896
|
-
$[
|
|
2897
|
-
$[
|
|
2898
|
-
$[
|
|
2899
|
-
|
|
2900
|
-
|
|
3069
|
+
$[15] = Component;
|
|
3070
|
+
$[16] = asChild;
|
|
3071
|
+
$[17] = children;
|
|
3072
|
+
$[18] = props;
|
|
3073
|
+
$[19] = ref;
|
|
3074
|
+
$[20] = t3;
|
|
3075
|
+
$[21] = t4;
|
|
3076
|
+
$[22] = t5;
|
|
3077
|
+
} else t5 = $[22];
|
|
3078
|
+
return t5;
|
|
2901
3079
|
};
|
|
2902
3080
|
//#endregion
|
|
2903
3081
|
//#region src/components/ds-alert-banner/ds-alert-banner.tsx
|
|
@@ -3811,7 +3989,7 @@ const DEFAULT_POSITIONING = {
|
|
|
3811
3989
|
/**
|
|
3812
3990
|
* Root component - manages dropdown state
|
|
3813
3991
|
*/
|
|
3814
|
-
const Root$
|
|
3992
|
+
const Root$4 = (t0) => {
|
|
3815
3993
|
const $ = c(16);
|
|
3816
3994
|
const { open, onOpenChange, onSelect, onHighlightChange, positioning: customPositioning, preventCloseOnSelect: t1, children } = t0;
|
|
3817
3995
|
const preventCloseOnSelect = t1 === void 0 ? false : t1;
|
|
@@ -3873,7 +4051,7 @@ const Trigger = Menu.Trigger;
|
|
|
3873
4051
|
/**
|
|
3874
4052
|
* Content component - wraps the dropdown content
|
|
3875
4053
|
*/
|
|
3876
|
-
const Content = (t0) => {
|
|
4054
|
+
const Content$1 = (t0) => {
|
|
3877
4055
|
const $ = c(9);
|
|
3878
4056
|
const { disablePortal: t1, children, className, style } = t0;
|
|
3879
4057
|
const Wrapper = (t1 === void 0 ? false : t1) ? Fragment$1 : Portal;
|
|
@@ -3976,7 +4154,7 @@ const ItemIndicator = (t0) => {
|
|
|
3976
4154
|
/**
|
|
3977
4155
|
* Header component - sticky header container for search, filters, or other controls
|
|
3978
4156
|
*/
|
|
3979
|
-
const Header$
|
|
4157
|
+
const Header$4 = (t0) => {
|
|
3980
4158
|
const $ = c(6);
|
|
3981
4159
|
const { children, className, style } = t0;
|
|
3982
4160
|
let t1;
|
|
@@ -4450,13 +4628,13 @@ const DsDropdownMenuLegacy = (t0) => {
|
|
|
4450
4628
|
* </DsDropdownMenu.Root>
|
|
4451
4629
|
*/
|
|
4452
4630
|
const DsDropdownMenu = {
|
|
4453
|
-
Root: Root$
|
|
4631
|
+
Root: Root$4,
|
|
4454
4632
|
Trigger,
|
|
4455
|
-
Content,
|
|
4633
|
+
Content: Content$1,
|
|
4456
4634
|
Item: Item$2,
|
|
4457
4635
|
ItemIndicator,
|
|
4458
4636
|
TriggerItem,
|
|
4459
|
-
Header: Header$
|
|
4637
|
+
Header: Header$4,
|
|
4460
4638
|
Actions: Actions$2,
|
|
4461
4639
|
ItemGroup,
|
|
4462
4640
|
ItemGroupLabel,
|
|
@@ -5028,7 +5206,7 @@ const iconSizeMap = Object.freeze({
|
|
|
5028
5206
|
small: "tiny",
|
|
5029
5207
|
tiny: "tiny"
|
|
5030
5208
|
});
|
|
5031
|
-
const DsButtonV3 = (t0) => {
|
|
5209
|
+
const DsButtonV3$1 = (t0) => {
|
|
5032
5210
|
const $ = c(37);
|
|
5033
5211
|
let children;
|
|
5034
5212
|
let className;
|
|
@@ -5152,7 +5330,7 @@ const buttonV3Variants = [
|
|
|
5152
5330
|
];
|
|
5153
5331
|
const buttonV3Colors = [
|
|
5154
5332
|
"default",
|
|
5155
|
-
"
|
|
5333
|
+
"error",
|
|
5156
5334
|
"light"
|
|
5157
5335
|
];
|
|
5158
5336
|
const buttonV3Sizes = [
|
|
@@ -5162,6 +5340,9 @@ const buttonV3Sizes = [
|
|
|
5162
5340
|
"tiny"
|
|
5163
5341
|
];
|
|
5164
5342
|
//#endregion
|
|
5343
|
+
//#region src/components/ds-button-v3/index.ts
|
|
5344
|
+
const DsButtonV3 = withResponsiveProps(DsButtonV3$1, ["size"]);
|
|
5345
|
+
//#endregion
|
|
5165
5346
|
//#region src/components/ds-card/ds-card.module.scss
|
|
5166
5347
|
var ds_card_module_default = {
|
|
5167
5348
|
"body": "xTnSNq_body",
|
|
@@ -5175,7 +5356,7 @@ var ds_card_module_default = {
|
|
|
5175
5356
|
* Card root component - container with optional selectable behavior.
|
|
5176
5357
|
* Use composition with DsCard.Header, DsCard.Body, DsCard.Footer for full flexibility.
|
|
5177
5358
|
*/
|
|
5178
|
-
const Root$
|
|
5359
|
+
const Root$3 = (t0) => {
|
|
5179
5360
|
const $ = c(33);
|
|
5180
5361
|
let children;
|
|
5181
5362
|
let className;
|
|
@@ -5288,7 +5469,7 @@ const Root$4 = (t0) => {
|
|
|
5288
5469
|
* Use with DsCard.Title and DsCard.Extra for standard layout,
|
|
5289
5470
|
* or provide custom children for full flexibility.
|
|
5290
5471
|
*/
|
|
5291
|
-
const Header$
|
|
5472
|
+
const Header$3 = (t0) => {
|
|
5292
5473
|
const $ = c(12);
|
|
5293
5474
|
let children;
|
|
5294
5475
|
let className;
|
|
@@ -5376,7 +5557,7 @@ const Body$2 = (t0) => {
|
|
|
5376
5557
|
/**
|
|
5377
5558
|
* Card footer - bottom section for actions or additional info.
|
|
5378
5559
|
*/
|
|
5379
|
-
const Footer$
|
|
5560
|
+
const Footer$3 = (t0) => {
|
|
5380
5561
|
const $ = c(12);
|
|
5381
5562
|
let children;
|
|
5382
5563
|
let className;
|
|
@@ -5418,10 +5599,10 @@ const Footer$2 = (t0) => {
|
|
|
5418
5599
|
return t2;
|
|
5419
5600
|
};
|
|
5420
5601
|
const DsCard = {
|
|
5421
|
-
Root: Root$
|
|
5422
|
-
Header: Header$
|
|
5602
|
+
Root: Root$3,
|
|
5603
|
+
Header: Header$3,
|
|
5423
5604
|
Body: Body$2,
|
|
5424
|
-
Footer: Footer$
|
|
5605
|
+
Footer: Footer$3
|
|
5425
5606
|
};
|
|
5426
5607
|
//#endregion
|
|
5427
5608
|
//#region src/components/ds-card/ds-card.types.ts
|
|
@@ -5433,13 +5614,13 @@ const cardSizes = [
|
|
|
5433
5614
|
//#endregion
|
|
5434
5615
|
//#region src/components/ds-checkbox/ds-checkbox.module.scss
|
|
5435
5616
|
var ds_checkbox_module_default = {
|
|
5436
|
-
"
|
|
5437
|
-
"
|
|
5438
|
-
"
|
|
5439
|
-
"container": "-9VV7a_container",
|
|
5440
|
-
"default": "-9VV7a_default",
|
|
5617
|
+
"control": "-9VV7a_control",
|
|
5618
|
+
"hiddenInput": "-9VV7a_hiddenInput",
|
|
5619
|
+
"indicator": "-9VV7a_indicator",
|
|
5441
5620
|
"label": "-9VV7a_label",
|
|
5621
|
+
"labelColumn": "-9VV7a_labelColumn",
|
|
5442
5622
|
"labelInfo": "-9VV7a_labelInfo",
|
|
5623
|
+
"root": "-9VV7a_root",
|
|
5443
5624
|
"warning": "-9VV7a_warning"
|
|
5444
5625
|
};
|
|
5445
5626
|
//#endregion
|
|
@@ -5448,118 +5629,202 @@ var ds_checkbox_module_default = {
|
|
|
5448
5629
|
* Design system Checkbox component
|
|
5449
5630
|
*/
|
|
5450
5631
|
const DsCheckbox = (t0) => {
|
|
5451
|
-
const $ = c(
|
|
5452
|
-
let checked;
|
|
5632
|
+
const $ = c(25);
|
|
5453
5633
|
let className;
|
|
5454
|
-
let defaultChecked;
|
|
5455
|
-
let id;
|
|
5456
5634
|
let label;
|
|
5457
5635
|
let labelInfo;
|
|
5458
5636
|
let onCheckedChange;
|
|
5459
5637
|
let props;
|
|
5460
5638
|
let t1;
|
|
5639
|
+
let value;
|
|
5461
5640
|
if ($[0] !== t0) {
|
|
5462
|
-
({
|
|
5641
|
+
({variant: t1, label, labelInfo, className, onCheckedChange, value, ...props} = t0);
|
|
5463
5642
|
$[0] = t0;
|
|
5464
|
-
$[1] =
|
|
5465
|
-
$[2] =
|
|
5466
|
-
$[3] =
|
|
5467
|
-
$[4] =
|
|
5468
|
-
$[5] =
|
|
5469
|
-
$[6] =
|
|
5470
|
-
$[7] =
|
|
5471
|
-
$[8] = props;
|
|
5472
|
-
$[9] = t1;
|
|
5643
|
+
$[1] = className;
|
|
5644
|
+
$[2] = label;
|
|
5645
|
+
$[3] = labelInfo;
|
|
5646
|
+
$[4] = onCheckedChange;
|
|
5647
|
+
$[5] = props;
|
|
5648
|
+
$[6] = t1;
|
|
5649
|
+
$[7] = value;
|
|
5473
5650
|
} else {
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
props = $[8];
|
|
5482
|
-
t1 = $[9];
|
|
5651
|
+
className = $[1];
|
|
5652
|
+
label = $[2];
|
|
5653
|
+
labelInfo = $[3];
|
|
5654
|
+
onCheckedChange = $[4];
|
|
5655
|
+
props = $[5];
|
|
5656
|
+
t1 = $[6];
|
|
5657
|
+
value = $[7];
|
|
5483
5658
|
}
|
|
5484
|
-
const
|
|
5485
|
-
const generatedId = useId();
|
|
5486
|
-
const checkboxId = id || generatedId;
|
|
5487
|
-
const t2 = ds_checkbox_module_default[variant];
|
|
5659
|
+
const t2 = (t1 === void 0 ? "default" : t1) === "warning" && ds_checkbox_module_default.warning;
|
|
5488
5660
|
let t3;
|
|
5489
|
-
if ($[
|
|
5490
|
-
t3 = classNames(ds_checkbox_module_default.
|
|
5491
|
-
$[
|
|
5492
|
-
$[
|
|
5493
|
-
$[
|
|
5494
|
-
} else t3 = $[
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
children: /* @__PURE__ */ jsx(DsIcon, {
|
|
5503
|
-
icon: t4,
|
|
5504
|
-
size: "small",
|
|
5505
|
-
variant: "outlined"
|
|
5506
|
-
})
|
|
5507
|
-
})
|
|
5508
|
-
});
|
|
5509
|
-
$[13] = t4;
|
|
5510
|
-
$[14] = t5;
|
|
5511
|
-
} else t5 = $[14];
|
|
5661
|
+
if ($[8] !== className || $[9] !== t2) {
|
|
5662
|
+
t3 = classNames(ds_checkbox_module_default.root, t2, className);
|
|
5663
|
+
$[8] = className;
|
|
5664
|
+
$[9] = t2;
|
|
5665
|
+
$[10] = t3;
|
|
5666
|
+
} else t3 = $[10];
|
|
5667
|
+
let t4;
|
|
5668
|
+
if ($[11] !== onCheckedChange) {
|
|
5669
|
+
t4 = (details) => onCheckedChange?.(details.checked);
|
|
5670
|
+
$[11] = onCheckedChange;
|
|
5671
|
+
$[12] = t4;
|
|
5672
|
+
} else t4 = $[12];
|
|
5673
|
+
const t5 = value === void 0 ? void 0 : String(value);
|
|
5512
5674
|
let t6;
|
|
5513
|
-
if ($[
|
|
5514
|
-
t6 = /* @__PURE__ */ jsx(
|
|
5515
|
-
className: ds_checkbox_module_default.
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
children: t5
|
|
5675
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5676
|
+
t6 = /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
5677
|
+
className: ds_checkbox_module_default.indicator,
|
|
5678
|
+
children: /* @__PURE__ */ jsx(DsIcon, {
|
|
5679
|
+
icon: "check_small",
|
|
5680
|
+
size: "tiny",
|
|
5681
|
+
variant: "rounded"
|
|
5682
|
+
})
|
|
5522
5683
|
});
|
|
5523
|
-
$[
|
|
5524
|
-
|
|
5525
|
-
$[17] = defaultChecked;
|
|
5526
|
-
$[18] = onCheckedChange;
|
|
5527
|
-
$[19] = props;
|
|
5528
|
-
$[20] = t5;
|
|
5529
|
-
$[21] = t6;
|
|
5530
|
-
} else t6 = $[21];
|
|
5684
|
+
$[13] = t6;
|
|
5685
|
+
} else t6 = $[13];
|
|
5531
5686
|
let t7;
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
children: [
|
|
5687
|
+
let t8;
|
|
5688
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
5689
|
+
t7 = /* @__PURE__ */ jsxs(Checkbox.Control, {
|
|
5690
|
+
className: ds_checkbox_module_default.control,
|
|
5691
|
+
children: [t6, /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
5692
|
+
className: ds_checkbox_module_default.indicator,
|
|
5693
|
+
indeterminate: true,
|
|
5694
|
+
children: /* @__PURE__ */ jsx(DsIcon, {
|
|
5695
|
+
icon: "check_indeterminate_small",
|
|
5696
|
+
size: "tiny",
|
|
5697
|
+
variant: "rounded"
|
|
5698
|
+
})
|
|
5699
|
+
})]
|
|
5700
|
+
});
|
|
5701
|
+
t8 = /* @__PURE__ */ jsx(Checkbox.HiddenInput, { className: ds_checkbox_module_default.hiddenInput });
|
|
5702
|
+
$[14] = t7;
|
|
5703
|
+
$[15] = t8;
|
|
5704
|
+
} else {
|
|
5705
|
+
t7 = $[14];
|
|
5706
|
+
t8 = $[15];
|
|
5707
|
+
}
|
|
5708
|
+
let t9;
|
|
5709
|
+
if ($[16] !== label || $[17] !== labelInfo) {
|
|
5710
|
+
t9 = (label || labelInfo) && /* @__PURE__ */ jsxs("div", {
|
|
5711
|
+
className: ds_checkbox_module_default.labelColumn,
|
|
5712
|
+
children: [label && /* @__PURE__ */ jsx(Checkbox.Label, {
|
|
5713
|
+
className: ds_checkbox_module_default.label,
|
|
5714
|
+
children: label
|
|
5715
|
+
}), labelInfo && /* @__PURE__ */ jsx("div", {
|
|
5537
5716
|
className: ds_checkbox_module_default.labelInfo,
|
|
5538
5717
|
children: labelInfo
|
|
5539
5718
|
})]
|
|
5540
5719
|
});
|
|
5541
|
-
$[
|
|
5542
|
-
$[
|
|
5543
|
-
$[
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
t8 = /* @__PURE__ */ jsxs("div", {
|
|
5720
|
+
$[16] = label;
|
|
5721
|
+
$[17] = labelInfo;
|
|
5722
|
+
$[18] = t9;
|
|
5723
|
+
} else t9 = $[18];
|
|
5724
|
+
let t10;
|
|
5725
|
+
if ($[19] !== props || $[20] !== t3 || $[21] !== t4 || $[22] !== t5 || $[23] !== t9) {
|
|
5726
|
+
t10 = /* @__PURE__ */ jsxs(Checkbox.Root, {
|
|
5549
5727
|
className: t3,
|
|
5550
|
-
|
|
5728
|
+
onCheckedChange: t4,
|
|
5729
|
+
...props,
|
|
5730
|
+
value: t5,
|
|
5731
|
+
children: [
|
|
5732
|
+
t7,
|
|
5733
|
+
t8,
|
|
5734
|
+
t9
|
|
5735
|
+
]
|
|
5551
5736
|
});
|
|
5552
|
-
$[
|
|
5553
|
-
$[
|
|
5554
|
-
$[
|
|
5555
|
-
$[
|
|
5556
|
-
|
|
5557
|
-
|
|
5737
|
+
$[19] = props;
|
|
5738
|
+
$[20] = t3;
|
|
5739
|
+
$[21] = t4;
|
|
5740
|
+
$[22] = t5;
|
|
5741
|
+
$[23] = t9;
|
|
5742
|
+
$[24] = t10;
|
|
5743
|
+
} else t10 = $[24];
|
|
5744
|
+
return t10;
|
|
5558
5745
|
};
|
|
5559
5746
|
//#endregion
|
|
5560
5747
|
//#region src/components/ds-checkbox/ds-checkbox.types.ts
|
|
5561
5748
|
const checkboxVariants = ["default", "warning"];
|
|
5562
5749
|
//#endregion
|
|
5750
|
+
//#region src/components/ds-checkbox-group/ds-checkbox-group.module.scss
|
|
5751
|
+
var ds_checkbox_group_module_default = {
|
|
5752
|
+
"horizontal": "f9-vsG_horizontal",
|
|
5753
|
+
"root": "f9-vsG_root",
|
|
5754
|
+
"vertical": "f9-vsG_vertical"
|
|
5755
|
+
};
|
|
5756
|
+
//#endregion
|
|
5757
|
+
//#region src/components/ds-checkbox-group/ds-checkbox-group.tsx
|
|
5758
|
+
const DsCheckboxGroup = (t0) => {
|
|
5759
|
+
const $ = c(12);
|
|
5760
|
+
let children;
|
|
5761
|
+
let className;
|
|
5762
|
+
let props;
|
|
5763
|
+
let t1;
|
|
5764
|
+
if ($[0] !== t0) {
|
|
5765
|
+
({orientation: t1, className, children, ...props} = t0);
|
|
5766
|
+
$[0] = t0;
|
|
5767
|
+
$[1] = children;
|
|
5768
|
+
$[2] = className;
|
|
5769
|
+
$[3] = props;
|
|
5770
|
+
$[4] = t1;
|
|
5771
|
+
} else {
|
|
5772
|
+
children = $[1];
|
|
5773
|
+
className = $[2];
|
|
5774
|
+
props = $[3];
|
|
5775
|
+
t1 = $[4];
|
|
5776
|
+
}
|
|
5777
|
+
const t2 = ds_checkbox_group_module_default[t1 === void 0 ? "vertical" : t1];
|
|
5778
|
+
let t3;
|
|
5779
|
+
if ($[5] !== className || $[6] !== t2) {
|
|
5780
|
+
t3 = classNames(ds_checkbox_group_module_default.root, t2, className);
|
|
5781
|
+
$[5] = className;
|
|
5782
|
+
$[6] = t2;
|
|
5783
|
+
$[7] = t3;
|
|
5784
|
+
} else t3 = $[7];
|
|
5785
|
+
let t4;
|
|
5786
|
+
if ($[8] !== children || $[9] !== props || $[10] !== t3) {
|
|
5787
|
+
t4 = /* @__PURE__ */ jsx(Checkbox.Group, {
|
|
5788
|
+
className: t3,
|
|
5789
|
+
...props,
|
|
5790
|
+
children
|
|
5791
|
+
});
|
|
5792
|
+
$[8] = children;
|
|
5793
|
+
$[9] = props;
|
|
5794
|
+
$[10] = t3;
|
|
5795
|
+
$[11] = t4;
|
|
5796
|
+
} else t4 = $[11];
|
|
5797
|
+
return t4;
|
|
5798
|
+
};
|
|
5799
|
+
//#endregion
|
|
5800
|
+
//#region src/components/ds-checkbox-group/hooks/use-checkbox-select-all.ts
|
|
5801
|
+
/**
|
|
5802
|
+
* Headless helper for a "select all" checkbox bound to a checkbox group.
|
|
5803
|
+
*
|
|
5804
|
+
* - Derives tri-state (`true` / `false` / `'indeterminate'`) from current selection.
|
|
5805
|
+
* - Toggling selects or clears only selectable values; preserves any already-selected
|
|
5806
|
+
* non-selectable values so bulk actions don't silently mutate protected items.
|
|
5807
|
+
*/
|
|
5808
|
+
function useCheckboxSelectAll({ value, allValues, onValueChange, isSelectable }) {
|
|
5809
|
+
const selectableValues = isSelectable ? allValues.filter(isSelectable) : [...allValues];
|
|
5810
|
+
const selectableSet = new Set(selectableValues);
|
|
5811
|
+
const selectedCount = value.reduce((count, v) => selectableSet.has(v) ? count + 1 : count, 0);
|
|
5812
|
+
const selectableCount = selectableValues.length;
|
|
5813
|
+
let selectAllState = "indeterminate";
|
|
5814
|
+
if (selectableCount === 0 || selectedCount === 0) selectAllState = false;
|
|
5815
|
+
else if (selectedCount === selectableCount) selectAllState = true;
|
|
5816
|
+
const onSelectAllChange = (checked) => {
|
|
5817
|
+
const preserved = value.filter((v) => !selectableSet.has(v));
|
|
5818
|
+
onValueChange(checked === true ? [...preserved, ...selectableValues] : preserved);
|
|
5819
|
+
};
|
|
5820
|
+
return {
|
|
5821
|
+
selectAllState,
|
|
5822
|
+
selectedCount,
|
|
5823
|
+
selectableCount,
|
|
5824
|
+
onSelectAllChange
|
|
5825
|
+
};
|
|
5826
|
+
}
|
|
5827
|
+
//#endregion
|
|
5563
5828
|
//#region src/components/ds-chip/ds-chip.module.scss
|
|
5564
5829
|
var ds_chip_module_default = {
|
|
5565
5830
|
"chip": "w6Idwa_chip",
|
|
@@ -5809,7 +6074,7 @@ const DsChipGroup = ({ items, label = "Filtered by:", onClearAll, onItemDelete,
|
|
|
5809
6074
|
/* @__PURE__ */ jsxs(RadixDialog.Root, {
|
|
5810
6075
|
open: dialogOpen,
|
|
5811
6076
|
onOpenChange: setDialogOpen,
|
|
5812
|
-
children: [/* @__PURE__ */ jsx(Root
|
|
6077
|
+
children: [/* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Title, {}) }), /* @__PURE__ */ jsx(RadixDialog.Portal, { children: /* @__PURE__ */ jsx(RadixDialog.Content, {
|
|
5813
6078
|
style: dialogStyle,
|
|
5814
6079
|
className: ds_chip_group_module_default.dialog,
|
|
5815
6080
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -7660,7 +7925,7 @@ const DsDrawer = (t0) => {
|
|
|
7660
7925
|
} else t15 = $[24];
|
|
7661
7926
|
return t15;
|
|
7662
7927
|
};
|
|
7663
|
-
const Header$
|
|
7928
|
+
const Header$2 = (t0) => {
|
|
7664
7929
|
const $ = c(6);
|
|
7665
7930
|
const { style, className, children } = t0;
|
|
7666
7931
|
let t1;
|
|
@@ -7792,7 +8057,7 @@ const Body$1 = (t0) => {
|
|
|
7792
8057
|
} else t2 = $[5];
|
|
7793
8058
|
return t2;
|
|
7794
8059
|
};
|
|
7795
|
-
const Footer$
|
|
8060
|
+
const Footer$2 = (t0) => {
|
|
7796
8061
|
const $ = c(6);
|
|
7797
8062
|
const { style, className, children } = t0;
|
|
7798
8063
|
let t1;
|
|
@@ -7838,12 +8103,12 @@ const Actions$1 = (t0) => {
|
|
|
7838
8103
|
} else t2 = $[5];
|
|
7839
8104
|
return t2;
|
|
7840
8105
|
};
|
|
7841
|
-
DsDrawer.Header = Header$
|
|
8106
|
+
DsDrawer.Header = Header$2;
|
|
7842
8107
|
DsDrawer.Title = Title$1;
|
|
7843
8108
|
DsDrawer.CloseTrigger = CloseTrigger$1;
|
|
7844
8109
|
DsDrawer.Toolbar = Toolbar;
|
|
7845
8110
|
DsDrawer.Body = Body$1;
|
|
7846
|
-
DsDrawer.Footer = Footer$
|
|
8111
|
+
DsDrawer.Footer = Footer$2;
|
|
7847
8112
|
DsDrawer.Actions = Actions$1;
|
|
7848
8113
|
//#endregion
|
|
7849
8114
|
//#region src/components/ds-tag-filter/ds-tag-filter.module.scss
|
|
@@ -8456,7 +8721,7 @@ const DsModal = (t0) => {
|
|
|
8456
8721
|
} else t12 = $[19];
|
|
8457
8722
|
return t12;
|
|
8458
8723
|
};
|
|
8459
|
-
const Header = (t0) => {
|
|
8724
|
+
const Header$1 = (t0) => {
|
|
8460
8725
|
const $ = c(6);
|
|
8461
8726
|
const { style, className, children } = t0;
|
|
8462
8727
|
let t1;
|
|
@@ -8559,7 +8824,7 @@ const Body = (t0) => {
|
|
|
8559
8824
|
} else t2 = $[5];
|
|
8560
8825
|
return t2;
|
|
8561
8826
|
};
|
|
8562
|
-
const Footer = (t0) => {
|
|
8827
|
+
const Footer$1 = (t0) => {
|
|
8563
8828
|
const $ = c(6);
|
|
8564
8829
|
const { style, className, children } = t0;
|
|
8565
8830
|
let t1;
|
|
@@ -8605,11 +8870,11 @@ const Actions = (t0) => {
|
|
|
8605
8870
|
} else t2 = $[5];
|
|
8606
8871
|
return t2;
|
|
8607
8872
|
};
|
|
8608
|
-
DsModal.Header = Header;
|
|
8873
|
+
DsModal.Header = Header$1;
|
|
8609
8874
|
DsModal.Title = Title;
|
|
8610
8875
|
DsModal.CloseTrigger = CloseTrigger;
|
|
8611
8876
|
DsModal.Body = Body;
|
|
8612
|
-
DsModal.Footer = Footer;
|
|
8877
|
+
DsModal.Footer = Footer$1;
|
|
8613
8878
|
DsModal.Actions = Actions;
|
|
8614
8879
|
//#endregion
|
|
8615
8880
|
//#region src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.scss
|
|
@@ -10775,13 +11040,16 @@ const useControlled = (value, setValue, defaultValue) => {
|
|
|
10775
11040
|
//#region src/components/ds-time-picker/ds-time-picker.module.scss
|
|
10776
11041
|
var ds_time_picker_module_default = {
|
|
10777
11042
|
"clearTrigger": "qkvYYW_clearTrigger",
|
|
11043
|
+
"collapse": "qkvYYW_collapse",
|
|
11044
|
+
"content": "qkvYYW_content",
|
|
11045
|
+
"expand": "qkvYYW_expand",
|
|
10778
11046
|
"root": "qkvYYW_root"
|
|
10779
11047
|
};
|
|
10780
11048
|
//#endregion
|
|
10781
11049
|
//#region src/components/ds-time-picker/ds-time-picker.tsx
|
|
10782
11050
|
const DsTimePicker = (props) => {
|
|
10783
|
-
const $ = c(
|
|
10784
|
-
const { id, ref, className, placeholder, min, max, disabled, readOnly, hideClearButton: t0, disablePortal: t1, locale, slotProps } = props;
|
|
11051
|
+
const $ = c(72);
|
|
11052
|
+
const { id, ref, className, placeholder, min, max, disabled, readOnly, hideClearButton: t0, disablePortal: t1, locale, slotProps, onBlur } = props;
|
|
10785
11053
|
const hideClearButton = t0 === void 0 ? false : t0;
|
|
10786
11054
|
const disablePortal = t1 === void 0 ? false : t1;
|
|
10787
11055
|
const [value, setValue] = useControlled(props.value, props.onChange, props.defaultValue ?? null);
|
|
@@ -10854,12 +11122,13 @@ const DsTimePicker = (props) => {
|
|
|
10854
11122
|
} else t7 = $[12];
|
|
10855
11123
|
const resetInput = t7;
|
|
10856
11124
|
let t8;
|
|
10857
|
-
if ($[13] !==
|
|
11125
|
+
if ($[13] !== onBlur || $[14] !== resetInput || $[15] !== setValue || $[16] !== value) {
|
|
10858
11126
|
t8 = () => {
|
|
10859
11127
|
setIsFocused(false);
|
|
10860
11128
|
const inputVal_0 = inputRef.current?.value ?? "";
|
|
10861
11129
|
if (!inputVal_0) {
|
|
10862
11130
|
setValue(null);
|
|
11131
|
+
onBlur?.();
|
|
10863
11132
|
return;
|
|
10864
11133
|
}
|
|
10865
11134
|
const parsed_0 = parseTime(inputVal_0);
|
|
@@ -10868,45 +11137,47 @@ const DsTimePicker = (props) => {
|
|
|
10868
11137
|
newDate_0.setHours(parsed_0.hours, parsed_0.minutes, 0, 0);
|
|
10869
11138
|
setValue(newDate_0);
|
|
10870
11139
|
} else resetInput();
|
|
11140
|
+
onBlur?.();
|
|
10871
11141
|
};
|
|
10872
|
-
$[13] =
|
|
10873
|
-
$[14] =
|
|
10874
|
-
$[15] =
|
|
10875
|
-
$[16] =
|
|
10876
|
-
|
|
11142
|
+
$[13] = onBlur;
|
|
11143
|
+
$[14] = resetInput;
|
|
11144
|
+
$[15] = setValue;
|
|
11145
|
+
$[16] = value;
|
|
11146
|
+
$[17] = t8;
|
|
11147
|
+
} else t8 = $[17];
|
|
10877
11148
|
const handleBlur = t8;
|
|
10878
11149
|
let t9;
|
|
10879
|
-
if ($[
|
|
11150
|
+
if ($[18] !== disabled || $[19] !== readOnly || $[20] !== setIsOpen) {
|
|
10880
11151
|
t9 = (details) => {
|
|
10881
11152
|
if (disabled || readOnly) return;
|
|
10882
11153
|
setIsOpen(details.open);
|
|
10883
11154
|
};
|
|
10884
|
-
$[
|
|
10885
|
-
$[
|
|
10886
|
-
$[
|
|
10887
|
-
$[
|
|
10888
|
-
} else t9 = $[
|
|
11155
|
+
$[18] = disabled;
|
|
11156
|
+
$[19] = readOnly;
|
|
11157
|
+
$[20] = setIsOpen;
|
|
11158
|
+
$[21] = t9;
|
|
11159
|
+
} else t9 = $[21];
|
|
10889
11160
|
const handleOpenChange = t9;
|
|
10890
11161
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
10891
11162
|
const Wrapper = disablePortal ? Fragment$1 : Portal;
|
|
10892
11163
|
let t10;
|
|
10893
|
-
if ($[
|
|
11164
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10894
11165
|
t10 = {
|
|
10895
11166
|
placement: "bottom-start",
|
|
10896
11167
|
gutter: 4
|
|
10897
11168
|
};
|
|
10898
|
-
$[
|
|
10899
|
-
} else t10 = $[
|
|
11169
|
+
$[22] = t10;
|
|
11170
|
+
} else t10 = $[22];
|
|
10900
11171
|
let t11;
|
|
10901
|
-
if ($[
|
|
11172
|
+
if ($[23] !== className) {
|
|
10902
11173
|
t11 = classNames(ds_time_picker_module_default.root, className);
|
|
10903
|
-
$[
|
|
10904
|
-
$[
|
|
10905
|
-
} else t11 = $[
|
|
11174
|
+
$[23] = className;
|
|
11175
|
+
$[24] = t11;
|
|
11176
|
+
} else t11 = $[24];
|
|
10906
11177
|
const t12 = placeholder ?? "hh:mm AM/PM";
|
|
10907
11178
|
const t13 = slotProps?.input;
|
|
10908
11179
|
let t14;
|
|
10909
|
-
if ($[
|
|
11180
|
+
if ($[25] !== disabled || $[26] !== locale?.clearLabel || $[27] !== locale?.openLabel || $[28] !== readOnly || $[29] !== setValue || $[30] !== showClearButton || $[31] !== slotProps?.input?.slots?.endAdornment) {
|
|
10910
11181
|
t14 = slotProps?.input?.slots?.endAdornment ?? /* @__PURE__ */ jsxs(Fragment, { children: [showClearButton && /* @__PURE__ */ jsx(DsButton, {
|
|
10911
11182
|
className: ds_time_picker_module_default.clearTrigger,
|
|
10912
11183
|
design: "v1.2",
|
|
@@ -10934,28 +11205,28 @@ const DsTimePicker = (props) => {
|
|
|
10934
11205
|
})
|
|
10935
11206
|
})
|
|
10936
11207
|
})] });
|
|
10937
|
-
$[
|
|
10938
|
-
$[
|
|
10939
|
-
$[
|
|
10940
|
-
$[
|
|
10941
|
-
$[
|
|
10942
|
-
$[
|
|
10943
|
-
$[
|
|
10944
|
-
$[
|
|
10945
|
-
} else t14 = $[
|
|
11208
|
+
$[25] = disabled;
|
|
11209
|
+
$[26] = locale?.clearLabel;
|
|
11210
|
+
$[27] = locale?.openLabel;
|
|
11211
|
+
$[28] = readOnly;
|
|
11212
|
+
$[29] = setValue;
|
|
11213
|
+
$[30] = showClearButton;
|
|
11214
|
+
$[31] = slotProps?.input?.slots?.endAdornment;
|
|
11215
|
+
$[32] = t14;
|
|
11216
|
+
} else t14 = $[32];
|
|
10946
11217
|
const t15 = slotProps?.input?.slots;
|
|
10947
11218
|
let t16;
|
|
10948
|
-
if ($[
|
|
11219
|
+
if ($[33] !== t14 || $[34] !== t15) {
|
|
10949
11220
|
t16 = {
|
|
10950
11221
|
endAdornment: t14,
|
|
10951
11222
|
...t15
|
|
10952
11223
|
};
|
|
10953
|
-
$[
|
|
10954
|
-
$[
|
|
10955
|
-
$[
|
|
10956
|
-
} else t16 = $[
|
|
11224
|
+
$[33] = t14;
|
|
11225
|
+
$[34] = t15;
|
|
11226
|
+
$[35] = t16;
|
|
11227
|
+
} else t16 = $[35];
|
|
10957
11228
|
let t17;
|
|
10958
|
-
if ($[
|
|
11229
|
+
if ($[36] !== disabled || $[37] !== formattedValue || $[38] !== handleBlur || $[39] !== handleInputChange || $[40] !== id || $[41] !== readOnly || $[42] !== t12 || $[43] !== t13 || $[44] !== t16) {
|
|
10959
11230
|
t17 = /* @__PURE__ */ jsx(DsTextInput, {
|
|
10960
11231
|
ref: inputRef,
|
|
10961
11232
|
id,
|
|
@@ -10969,19 +11240,19 @@ const DsTimePicker = (props) => {
|
|
|
10969
11240
|
...t13,
|
|
10970
11241
|
slots: t16
|
|
10971
11242
|
});
|
|
10972
|
-
$[
|
|
10973
|
-
$[
|
|
10974
|
-
$[
|
|
10975
|
-
$[
|
|
10976
|
-
$[
|
|
10977
|
-
$[
|
|
10978
|
-
$[
|
|
10979
|
-
$[
|
|
10980
|
-
$[
|
|
10981
|
-
$[
|
|
10982
|
-
} else t17 = $[
|
|
11243
|
+
$[36] = disabled;
|
|
11244
|
+
$[37] = formattedValue;
|
|
11245
|
+
$[38] = handleBlur;
|
|
11246
|
+
$[39] = handleInputChange;
|
|
11247
|
+
$[40] = id;
|
|
11248
|
+
$[41] = readOnly;
|
|
11249
|
+
$[42] = t12;
|
|
11250
|
+
$[43] = t13;
|
|
11251
|
+
$[44] = t16;
|
|
11252
|
+
$[45] = t17;
|
|
11253
|
+
} else t17 = $[45];
|
|
10983
11254
|
let t18;
|
|
10984
|
-
if ($[
|
|
11255
|
+
if ($[46] !== ref || $[47] !== t11 || $[48] !== t17) {
|
|
10985
11256
|
t18 = /* @__PURE__ */ jsx(Popover.Anchor, {
|
|
10986
11257
|
asChild: true,
|
|
10987
11258
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10990,63 +11261,72 @@ const DsTimePicker = (props) => {
|
|
|
10990
11261
|
children: t17
|
|
10991
11262
|
})
|
|
10992
11263
|
});
|
|
10993
|
-
$[
|
|
10994
|
-
$[
|
|
10995
|
-
$[
|
|
10996
|
-
$[
|
|
10997
|
-
} else t18 = $[
|
|
11264
|
+
$[46] = ref;
|
|
11265
|
+
$[47] = t11;
|
|
11266
|
+
$[48] = t17;
|
|
11267
|
+
$[49] = t18;
|
|
11268
|
+
} else t18 = $[49];
|
|
10998
11269
|
const t19 = slotProps?.popover;
|
|
10999
|
-
|
|
11000
|
-
if ($[49] !== max || $[50] !== min || $[51] !== setValue || $[52] !== value) {
|
|
11001
|
-
t20 = timeScrollerAdapter(value, setValue, min, max);
|
|
11002
|
-
$[49] = max;
|
|
11003
|
-
$[50] = min;
|
|
11004
|
-
$[51] = setValue;
|
|
11005
|
-
$[52] = value;
|
|
11006
|
-
$[53] = t20;
|
|
11007
|
-
} else t20 = $[53];
|
|
11270
|
+
const t20 = slotProps?.popover?.className;
|
|
11008
11271
|
let t21;
|
|
11009
|
-
if ($[
|
|
11010
|
-
t21 =
|
|
11272
|
+
if ($[50] !== t20) {
|
|
11273
|
+
t21 = classNames(ds_time_picker_module_default.content, t20);
|
|
11274
|
+
$[50] = t20;
|
|
11275
|
+
$[51] = t21;
|
|
11276
|
+
} else t21 = $[51];
|
|
11277
|
+
let t22;
|
|
11278
|
+
if ($[52] !== max || $[53] !== min || $[54] !== setValue || $[55] !== value) {
|
|
11279
|
+
t22 = timeScrollerAdapter(value, setValue, min, max);
|
|
11280
|
+
$[52] = max;
|
|
11281
|
+
$[53] = min;
|
|
11282
|
+
$[54] = setValue;
|
|
11283
|
+
$[55] = value;
|
|
11284
|
+
$[56] = t22;
|
|
11285
|
+
} else t22 = $[56];
|
|
11286
|
+
let t23;
|
|
11287
|
+
if ($[57] !== isOpen || $[58] !== t22) {
|
|
11288
|
+
t23 = /* @__PURE__ */ jsx(TimeScroller, {
|
|
11011
11289
|
open: isOpen,
|
|
11012
|
-
...
|
|
11290
|
+
...t22
|
|
11013
11291
|
});
|
|
11014
|
-
$[
|
|
11015
|
-
$[
|
|
11016
|
-
$[
|
|
11017
|
-
} else
|
|
11018
|
-
let
|
|
11019
|
-
if ($[
|
|
11020
|
-
|
|
11292
|
+
$[57] = isOpen;
|
|
11293
|
+
$[58] = t22;
|
|
11294
|
+
$[59] = t23;
|
|
11295
|
+
} else t23 = $[59];
|
|
11296
|
+
let t24;
|
|
11297
|
+
if ($[60] !== t19 || $[61] !== t21 || $[62] !== t23) {
|
|
11298
|
+
t24 = /* @__PURE__ */ jsx(Popover.Positioner, { children: /* @__PURE__ */ jsx(Popover.Content, {
|
|
11021
11299
|
...t19,
|
|
11022
|
-
|
|
11300
|
+
className: t21,
|
|
11301
|
+
children: t23
|
|
11023
11302
|
}) });
|
|
11024
|
-
$[
|
|
11025
|
-
$[
|
|
11026
|
-
$[59] = t22;
|
|
11027
|
-
} else t22 = $[59];
|
|
11028
|
-
let t23;
|
|
11029
|
-
if ($[60] !== Wrapper || $[61] !== t22) {
|
|
11030
|
-
t23 = /* @__PURE__ */ jsx(Wrapper, { children: t22 });
|
|
11031
|
-
$[60] = Wrapper;
|
|
11032
|
-
$[61] = t22;
|
|
11303
|
+
$[60] = t19;
|
|
11304
|
+
$[61] = t21;
|
|
11033
11305
|
$[62] = t23;
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11306
|
+
$[63] = t24;
|
|
11307
|
+
} else t24 = $[63];
|
|
11308
|
+
let t25;
|
|
11309
|
+
if ($[64] !== Wrapper || $[65] !== t24) {
|
|
11310
|
+
t25 = /* @__PURE__ */ jsx(Wrapper, { children: t24 });
|
|
11311
|
+
$[64] = Wrapper;
|
|
11312
|
+
$[65] = t24;
|
|
11313
|
+
$[66] = t25;
|
|
11314
|
+
} else t25 = $[66];
|
|
11315
|
+
let t26;
|
|
11316
|
+
if ($[67] !== handleOpenChange || $[68] !== isOpen || $[69] !== t18 || $[70] !== t25) {
|
|
11317
|
+
t26 = /* @__PURE__ */ jsxs(Popover.Root, {
|
|
11038
11318
|
open: isOpen,
|
|
11039
11319
|
onOpenChange: handleOpenChange,
|
|
11040
11320
|
positioning: t10,
|
|
11041
|
-
children: [t18,
|
|
11042
|
-
});
|
|
11043
|
-
$[
|
|
11044
|
-
$[
|
|
11045
|
-
$[
|
|
11046
|
-
$[
|
|
11047
|
-
$[
|
|
11048
|
-
} else
|
|
11049
|
-
return
|
|
11321
|
+
children: [t18, t25]
|
|
11322
|
+
});
|
|
11323
|
+
$[67] = handleOpenChange;
|
|
11324
|
+
$[68] = isOpen;
|
|
11325
|
+
$[69] = t18;
|
|
11326
|
+
$[70] = t25;
|
|
11327
|
+
$[71] = t26;
|
|
11328
|
+
} else t26 = $[71];
|
|
11329
|
+
return t26;
|
|
11050
11330
|
};
|
|
11051
11331
|
//#endregion
|
|
11052
11332
|
//#region src/components/ds-date-picker/ds-date-picker.module.scss
|
|
@@ -11282,7 +11562,7 @@ function _temp3$1(datePicker) {
|
|
|
11282
11562
|
//#endregion
|
|
11283
11563
|
//#region src/components/ds-date-picker/ds-date-picker.tsx
|
|
11284
11564
|
const DsDatePicker = (t0) => {
|
|
11285
|
-
const $ = c(
|
|
11565
|
+
const $ = c(123);
|
|
11286
11566
|
let _defaultValue;
|
|
11287
11567
|
let _max;
|
|
11288
11568
|
let _min;
|
|
@@ -11291,6 +11571,7 @@ const DsDatePicker = (t0) => {
|
|
|
11291
11571
|
let disabled;
|
|
11292
11572
|
let id;
|
|
11293
11573
|
let locale;
|
|
11574
|
+
let onBlur;
|
|
11294
11575
|
let onChange;
|
|
11295
11576
|
let onOpenChange;
|
|
11296
11577
|
let placeholder;
|
|
@@ -11302,7 +11583,7 @@ const DsDatePicker = (t0) => {
|
|
|
11302
11583
|
let t3;
|
|
11303
11584
|
let t4;
|
|
11304
11585
|
if ($[0] !== t0) {
|
|
11305
|
-
({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);
|
|
11586
|
+
({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);
|
|
11306
11587
|
$[0] = t0;
|
|
11307
11588
|
$[1] = _defaultValue;
|
|
11308
11589
|
$[2] = _max;
|
|
@@ -11312,16 +11593,17 @@ const DsDatePicker = (t0) => {
|
|
|
11312
11593
|
$[6] = disabled;
|
|
11313
11594
|
$[7] = id;
|
|
11314
11595
|
$[8] = locale;
|
|
11315
|
-
$[9] =
|
|
11316
|
-
$[10] =
|
|
11317
|
-
$[11] =
|
|
11318
|
-
$[12] =
|
|
11319
|
-
$[13] =
|
|
11320
|
-
$[14] =
|
|
11321
|
-
$[15] =
|
|
11322
|
-
$[16] =
|
|
11323
|
-
$[17] =
|
|
11324
|
-
$[18] =
|
|
11596
|
+
$[9] = onBlur;
|
|
11597
|
+
$[10] = onChange;
|
|
11598
|
+
$[11] = onOpenChange;
|
|
11599
|
+
$[12] = placeholder;
|
|
11600
|
+
$[13] = readOnly;
|
|
11601
|
+
$[14] = restProps;
|
|
11602
|
+
$[15] = slotProps;
|
|
11603
|
+
$[16] = t1;
|
|
11604
|
+
$[17] = t2;
|
|
11605
|
+
$[18] = t3;
|
|
11606
|
+
$[19] = t4;
|
|
11325
11607
|
} else {
|
|
11326
11608
|
_defaultValue = $[1];
|
|
11327
11609
|
_max = $[2];
|
|
@@ -11331,84 +11613,85 @@ const DsDatePicker = (t0) => {
|
|
|
11331
11613
|
disabled = $[6];
|
|
11332
11614
|
id = $[7];
|
|
11333
11615
|
locale = $[8];
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11616
|
+
onBlur = $[9];
|
|
11617
|
+
onChange = $[10];
|
|
11618
|
+
onOpenChange = $[11];
|
|
11619
|
+
placeholder = $[12];
|
|
11620
|
+
readOnly = $[13];
|
|
11621
|
+
restProps = $[14];
|
|
11622
|
+
slotProps = $[15];
|
|
11623
|
+
t1 = $[16];
|
|
11624
|
+
t2 = $[17];
|
|
11625
|
+
t3 = $[18];
|
|
11626
|
+
t4 = $[19];
|
|
11344
11627
|
}
|
|
11345
11628
|
const withTime = t1 === void 0 ? false : t1;
|
|
11346
11629
|
const closeOnSelect = t2 === void 0 ? true : t2;
|
|
11347
11630
|
const disablePortal = t3 === void 0 ? false : t3;
|
|
11348
11631
|
const hideClearButton = t4 === void 0 ? false : t4;
|
|
11349
11632
|
let t5;
|
|
11350
|
-
if ($[
|
|
11633
|
+
if ($[20] !== _defaultValue) {
|
|
11351
11634
|
t5 = toIntlDate(_defaultValue);
|
|
11352
|
-
$[
|
|
11353
|
-
$[
|
|
11354
|
-
} else t5 = $[
|
|
11635
|
+
$[20] = _defaultValue;
|
|
11636
|
+
$[21] = t5;
|
|
11637
|
+
} else t5 = $[21];
|
|
11355
11638
|
const defaultValue = t5;
|
|
11356
11639
|
let t6;
|
|
11357
|
-
if ($[
|
|
11640
|
+
if ($[22] !== _value) {
|
|
11358
11641
|
t6 = toIntlDate(_value);
|
|
11359
|
-
$[
|
|
11360
|
-
$[
|
|
11361
|
-
} else t6 = $[
|
|
11642
|
+
$[22] = _value;
|
|
11643
|
+
$[23] = t6;
|
|
11644
|
+
} else t6 = $[23];
|
|
11362
11645
|
let t7;
|
|
11363
|
-
if ($[
|
|
11646
|
+
if ($[24] !== onChange) {
|
|
11364
11647
|
t7 = onChange ? (v) => onChange(fromIntlDate(v)) : void 0;
|
|
11365
|
-
$[
|
|
11366
|
-
$[
|
|
11367
|
-
} else t7 = $[
|
|
11648
|
+
$[24] = onChange;
|
|
11649
|
+
$[25] = t7;
|
|
11650
|
+
} else t7 = $[25];
|
|
11368
11651
|
const [value, setValue] = useControlled(t6, t7, defaultValue ?? null);
|
|
11369
11652
|
let t8;
|
|
11370
|
-
if ($[
|
|
11653
|
+
if ($[26] !== _min) {
|
|
11371
11654
|
t8 = toIntlDate(_min);
|
|
11372
|
-
$[
|
|
11373
|
-
$[
|
|
11374
|
-
} else t8 = $[
|
|
11655
|
+
$[26] = _min;
|
|
11656
|
+
$[27] = t8;
|
|
11657
|
+
} else t8 = $[27];
|
|
11375
11658
|
const min = t8;
|
|
11376
11659
|
let t9;
|
|
11377
|
-
if ($[
|
|
11660
|
+
if ($[28] !== _max) {
|
|
11378
11661
|
t9 = toIntlDate(_max);
|
|
11379
|
-
$[
|
|
11380
|
-
$[
|
|
11381
|
-
} else t9 = $[
|
|
11662
|
+
$[28] = _max;
|
|
11663
|
+
$[29] = t9;
|
|
11664
|
+
} else t9 = $[29];
|
|
11382
11665
|
const max = t9;
|
|
11383
11666
|
const [isFocused, setIsFocused] = useState(false);
|
|
11384
11667
|
const [isOpen, setIsOpen] = useState(false);
|
|
11385
11668
|
const inputRef = useRef(null);
|
|
11386
11669
|
let t10;
|
|
11387
|
-
if ($[
|
|
11670
|
+
if ($[30] !== value || $[31] !== withTime) {
|
|
11388
11671
|
t10 = formatDate(value, withTime);
|
|
11389
|
-
$[
|
|
11390
|
-
$[
|
|
11391
|
-
$[
|
|
11392
|
-
} else t10 = $[
|
|
11672
|
+
$[30] = value;
|
|
11673
|
+
$[31] = withTime;
|
|
11674
|
+
$[32] = t10;
|
|
11675
|
+
} else t10 = $[32];
|
|
11393
11676
|
const formattedValue = t10;
|
|
11394
11677
|
let t11;
|
|
11395
11678
|
let t12;
|
|
11396
|
-
if ($[
|
|
11679
|
+
if ($[33] !== formattedValue || $[34] !== isFocused) {
|
|
11397
11680
|
t11 = () => {
|
|
11398
11681
|
if (!isFocused && inputRef.current) inputRef.current.value = formattedValue;
|
|
11399
11682
|
};
|
|
11400
11683
|
t12 = [isFocused, formattedValue];
|
|
11401
|
-
$[
|
|
11402
|
-
$[
|
|
11403
|
-
$[
|
|
11404
|
-
$[
|
|
11684
|
+
$[33] = formattedValue;
|
|
11685
|
+
$[34] = isFocused;
|
|
11686
|
+
$[35] = t11;
|
|
11687
|
+
$[36] = t12;
|
|
11405
11688
|
} else {
|
|
11406
|
-
t11 = $[
|
|
11407
|
-
t12 = $[
|
|
11689
|
+
t11 = $[35];
|
|
11690
|
+
t12 = $[36];
|
|
11408
11691
|
}
|
|
11409
11692
|
useEffect(t11, t12);
|
|
11410
11693
|
let t13;
|
|
11411
|
-
if ($[
|
|
11694
|
+
if ($[37] !== max || $[38] !== min || $[39] !== setValue || $[40] !== withTime) {
|
|
11412
11695
|
t13 = (e) => {
|
|
11413
11696
|
const text = e.target.value;
|
|
11414
11697
|
if (validateDateString({
|
|
@@ -11418,33 +11701,33 @@ const DsDatePicker = (t0) => {
|
|
|
11418
11701
|
withTime
|
|
11419
11702
|
})) setValue(parseDate$1(text));
|
|
11420
11703
|
};
|
|
11421
|
-
$[
|
|
11422
|
-
$[
|
|
11423
|
-
$[
|
|
11424
|
-
$[
|
|
11425
|
-
$[
|
|
11426
|
-
} else t13 = $[
|
|
11704
|
+
$[37] = max;
|
|
11705
|
+
$[38] = min;
|
|
11706
|
+
$[39] = setValue;
|
|
11707
|
+
$[40] = withTime;
|
|
11708
|
+
$[41] = t13;
|
|
11709
|
+
} else t13 = $[41];
|
|
11427
11710
|
const handleInputChange = t13;
|
|
11428
11711
|
let t14;
|
|
11429
|
-
if ($[
|
|
11712
|
+
if ($[42] !== formattedValue || $[43] !== value) {
|
|
11430
11713
|
t14 = () => {
|
|
11431
11714
|
if (inputRef.current) inputRef.current.value = value ? formattedValue : "";
|
|
11432
11715
|
};
|
|
11433
|
-
$[
|
|
11434
|
-
$[
|
|
11435
|
-
$[
|
|
11436
|
-
} else t14 = $[
|
|
11716
|
+
$[42] = formattedValue;
|
|
11717
|
+
$[43] = value;
|
|
11718
|
+
$[44] = t14;
|
|
11719
|
+
} else t14 = $[44];
|
|
11437
11720
|
const resetInput = t14;
|
|
11438
11721
|
let t15;
|
|
11439
|
-
if ($[
|
|
11722
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11440
11723
|
t15 = () => {
|
|
11441
11724
|
setIsFocused(true);
|
|
11442
11725
|
};
|
|
11443
|
-
$[
|
|
11444
|
-
} else t15 = $[
|
|
11726
|
+
$[45] = t15;
|
|
11727
|
+
} else t15 = $[45];
|
|
11445
11728
|
const handleFocus = t15;
|
|
11446
11729
|
let t16;
|
|
11447
|
-
if ($[
|
|
11730
|
+
if ($[46] !== max || $[47] !== min || $[48] !== onBlur || $[49] !== resetInput || $[50] !== setValue || $[51] !== withTime) {
|
|
11448
11731
|
t16 = () => {
|
|
11449
11732
|
setIsFocused(false);
|
|
11450
11733
|
const text_0 = inputRef.current?.value || "";
|
|
@@ -11455,63 +11738,65 @@ const DsDatePicker = (t0) => {
|
|
|
11455
11738
|
withTime
|
|
11456
11739
|
})) setValue(parseDate$1(text_0));
|
|
11457
11740
|
else resetInput();
|
|
11741
|
+
onBlur?.();
|
|
11458
11742
|
};
|
|
11459
|
-
$[
|
|
11460
|
-
$[
|
|
11461
|
-
$[
|
|
11462
|
-
$[
|
|
11463
|
-
$[
|
|
11464
|
-
$[
|
|
11465
|
-
|
|
11743
|
+
$[46] = max;
|
|
11744
|
+
$[47] = min;
|
|
11745
|
+
$[48] = onBlur;
|
|
11746
|
+
$[49] = resetInput;
|
|
11747
|
+
$[50] = setValue;
|
|
11748
|
+
$[51] = withTime;
|
|
11749
|
+
$[52] = t16;
|
|
11750
|
+
} else t16 = $[52];
|
|
11466
11751
|
const handleBlur = t16;
|
|
11467
11752
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
11468
11753
|
const Wrapper = disablePortal ? Fragment$1 : Portal;
|
|
11469
11754
|
let t17;
|
|
11470
|
-
if ($[
|
|
11755
|
+
if ($[53] !== value) {
|
|
11471
11756
|
t17 = value ? [value] : void 0;
|
|
11472
|
-
$[
|
|
11473
|
-
$[
|
|
11474
|
-
} else t17 = $[
|
|
11757
|
+
$[53] = value;
|
|
11758
|
+
$[54] = t17;
|
|
11759
|
+
} else t17 = $[54];
|
|
11475
11760
|
let t18;
|
|
11476
|
-
if ($[
|
|
11761
|
+
if ($[55] !== defaultValue) {
|
|
11477
11762
|
t18 = defaultValue ? [defaultValue] : void 0;
|
|
11478
|
-
$[
|
|
11479
|
-
$[
|
|
11480
|
-
} else t18 = $[
|
|
11763
|
+
$[55] = defaultValue;
|
|
11764
|
+
$[56] = t18;
|
|
11765
|
+
} else t18 = $[56];
|
|
11481
11766
|
let t19;
|
|
11482
|
-
if ($[
|
|
11767
|
+
if ($[57] !== setValue) {
|
|
11483
11768
|
t19 = (details) => {
|
|
11484
11769
|
setValue(details.value[0] ?? null);
|
|
11485
|
-
};
|
|
11486
|
-
$[
|
|
11487
|
-
$[
|
|
11488
|
-
} else t19 = $[
|
|
11770
|
+
};
|
|
11771
|
+
$[57] = setValue;
|
|
11772
|
+
$[58] = t19;
|
|
11773
|
+
} else t19 = $[58];
|
|
11489
11774
|
let t20;
|
|
11490
|
-
if ($[
|
|
11775
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11491
11776
|
t20 = {
|
|
11492
11777
|
placement: "bottom-start",
|
|
11493
11778
|
gutter: 4
|
|
11494
11779
|
};
|
|
11495
|
-
$[
|
|
11496
|
-
} else t20 = $[
|
|
11780
|
+
$[59] = t20;
|
|
11781
|
+
} else t20 = $[59];
|
|
11497
11782
|
const t21 = withTime ? false : closeOnSelect;
|
|
11498
11783
|
let t22;
|
|
11499
|
-
if ($[
|
|
11784
|
+
if ($[60] !== isFocused || $[61] !== onOpenChange) {
|
|
11500
11785
|
t22 = (details_0) => {
|
|
11501
11786
|
if (!isFocused) {
|
|
11502
11787
|
setIsOpen(details_0.open);
|
|
11503
11788
|
onOpenChange?.(details_0.open);
|
|
11504
11789
|
}
|
|
11505
11790
|
};
|
|
11506
|
-
$[
|
|
11507
|
-
$[
|
|
11508
|
-
$[
|
|
11509
|
-
} else t22 = $[
|
|
11791
|
+
$[60] = isFocused;
|
|
11792
|
+
$[61] = onOpenChange;
|
|
11793
|
+
$[62] = t22;
|
|
11794
|
+
} else t22 = $[62];
|
|
11510
11795
|
const t23 = placeholder ?? (withTime ? "mm/dd/yyyy, hh:mm AM/PM" : "mm/dd/yyyy");
|
|
11511
11796
|
const t24 = slotProps?.input;
|
|
11512
11797
|
const t25 = slotProps?.input?.slots;
|
|
11513
11798
|
let t26;
|
|
11514
|
-
if ($[
|
|
11799
|
+
if ($[63] !== disabled || $[64] !== locale?.clearLabel || $[65] !== setValue || $[66] !== showClearButton) {
|
|
11515
11800
|
t26 = showClearButton && /* @__PURE__ */ jsx(DatePicker.ClearTrigger, {
|
|
11516
11801
|
asChild: true,
|
|
11517
11802
|
onClick: () => setValue(null),
|
|
@@ -11528,23 +11813,23 @@ const DsDatePicker = (t0) => {
|
|
|
11528
11813
|
})
|
|
11529
11814
|
})
|
|
11530
11815
|
});
|
|
11531
|
-
$[
|
|
11532
|
-
$[
|
|
11533
|
-
$[
|
|
11534
|
-
$[
|
|
11535
|
-
$[
|
|
11536
|
-
} else t26 = $[
|
|
11816
|
+
$[63] = disabled;
|
|
11817
|
+
$[64] = locale?.clearLabel;
|
|
11818
|
+
$[65] = setValue;
|
|
11819
|
+
$[66] = showClearButton;
|
|
11820
|
+
$[67] = t26;
|
|
11821
|
+
} else t26 = $[67];
|
|
11537
11822
|
const t27 = locale?.openCalendarLabel ?? "Open calendar";
|
|
11538
11823
|
let t28;
|
|
11539
|
-
if ($[
|
|
11824
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11540
11825
|
t28 = /* @__PURE__ */ jsx(DsIcon, {
|
|
11541
11826
|
icon: "calendar_today",
|
|
11542
11827
|
size: "tiny"
|
|
11543
11828
|
});
|
|
11544
|
-
$[
|
|
11545
|
-
} else t28 = $[
|
|
11829
|
+
$[68] = t28;
|
|
11830
|
+
} else t28 = $[68];
|
|
11546
11831
|
let t29;
|
|
11547
|
-
if ($[
|
|
11832
|
+
if ($[69] !== disabled || $[70] !== t27) {
|
|
11548
11833
|
t29 = /* @__PURE__ */ jsx(DatePicker.Trigger, {
|
|
11549
11834
|
asChild: true,
|
|
11550
11835
|
children: /* @__PURE__ */ jsx(DsButton, {
|
|
@@ -11556,29 +11841,29 @@ const DsDatePicker = (t0) => {
|
|
|
11556
11841
|
children: t28
|
|
11557
11842
|
})
|
|
11558
11843
|
});
|
|
11559
|
-
$[
|
|
11560
|
-
$[
|
|
11561
|
-
$[
|
|
11562
|
-
} else t29 = $[
|
|
11844
|
+
$[69] = disabled;
|
|
11845
|
+
$[70] = t27;
|
|
11846
|
+
$[71] = t29;
|
|
11847
|
+
} else t29 = $[71];
|
|
11563
11848
|
let t30;
|
|
11564
|
-
if ($[
|
|
11849
|
+
if ($[72] !== t26 || $[73] !== t29) {
|
|
11565
11850
|
t30 = /* @__PURE__ */ jsxs(Fragment, { children: [t26, t29] });
|
|
11566
|
-
$[
|
|
11567
|
-
$[
|
|
11568
|
-
$[
|
|
11569
|
-
} else t30 = $[
|
|
11851
|
+
$[72] = t26;
|
|
11852
|
+
$[73] = t29;
|
|
11853
|
+
$[74] = t30;
|
|
11854
|
+
} else t30 = $[74];
|
|
11570
11855
|
let t31;
|
|
11571
|
-
if ($[
|
|
11856
|
+
if ($[75] !== t25 || $[76] !== t30) {
|
|
11572
11857
|
t31 = {
|
|
11573
11858
|
...t25,
|
|
11574
11859
|
endAdornment: t30
|
|
11575
11860
|
};
|
|
11576
|
-
$[
|
|
11577
|
-
$[
|
|
11578
|
-
$[
|
|
11579
|
-
} else t31 = $[
|
|
11861
|
+
$[75] = t25;
|
|
11862
|
+
$[76] = t30;
|
|
11863
|
+
$[77] = t31;
|
|
11864
|
+
} else t31 = $[77];
|
|
11580
11865
|
let t32;
|
|
11581
|
-
if ($[
|
|
11866
|
+
if ($[78] !== disabled || $[79] !== formattedValue || $[80] !== handleBlur || $[81] !== handleInputChange || $[82] !== id || $[83] !== readOnly || $[84] !== t23 || $[85] !== t24 || $[86] !== t31) {
|
|
11582
11867
|
t32 = /* @__PURE__ */ jsx(DatePicker.Control, {
|
|
11583
11868
|
className: ds_date_picker_module_default.control,
|
|
11584
11869
|
children: /* @__PURE__ */ jsx(DsTextInput, {
|
|
@@ -11595,19 +11880,19 @@ const DsDatePicker = (t0) => {
|
|
|
11595
11880
|
slots: t31
|
|
11596
11881
|
})
|
|
11597
11882
|
});
|
|
11598
|
-
$[
|
|
11599
|
-
$[
|
|
11600
|
-
$[
|
|
11601
|
-
$[
|
|
11602
|
-
$[
|
|
11603
|
-
$[
|
|
11604
|
-
$[
|
|
11605
|
-
$[
|
|
11606
|
-
$[
|
|
11607
|
-
$[
|
|
11608
|
-
} else t32 = $[
|
|
11883
|
+
$[78] = disabled;
|
|
11884
|
+
$[79] = formattedValue;
|
|
11885
|
+
$[80] = handleBlur;
|
|
11886
|
+
$[81] = handleInputChange;
|
|
11887
|
+
$[82] = id;
|
|
11888
|
+
$[83] = readOnly;
|
|
11889
|
+
$[84] = t23;
|
|
11890
|
+
$[85] = t24;
|
|
11891
|
+
$[86] = t31;
|
|
11892
|
+
$[87] = t32;
|
|
11893
|
+
} else t32 = $[87];
|
|
11609
11894
|
let t33;
|
|
11610
|
-
if ($[
|
|
11895
|
+
if ($[88] !== _max || $[89] !== _min || $[90] !== disabled || $[91] !== max || $[92] !== min || $[93] !== readOnly || $[94] !== setValue || $[95] !== slotProps?.timePicker || $[96] !== value || $[97] !== withTime) {
|
|
11611
11896
|
t33 = withTime && /* @__PURE__ */ jsx(DsTimePicker, {
|
|
11612
11897
|
value: fromIntlDate(value),
|
|
11613
11898
|
onChange: (v_0) => {
|
|
@@ -11627,37 +11912,37 @@ const DsDatePicker = (t0) => {
|
|
|
11627
11912
|
...slotProps?.timePicker?.slotProps
|
|
11628
11913
|
}
|
|
11629
11914
|
});
|
|
11630
|
-
$[
|
|
11631
|
-
$[
|
|
11632
|
-
$[
|
|
11633
|
-
$[
|
|
11634
|
-
$[
|
|
11635
|
-
$[
|
|
11636
|
-
$[
|
|
11637
|
-
$[
|
|
11638
|
-
$[
|
|
11639
|
-
$[
|
|
11640
|
-
$[
|
|
11641
|
-
} else t33 = $[
|
|
11915
|
+
$[88] = _max;
|
|
11916
|
+
$[89] = _min;
|
|
11917
|
+
$[90] = disabled;
|
|
11918
|
+
$[91] = max;
|
|
11919
|
+
$[92] = min;
|
|
11920
|
+
$[93] = readOnly;
|
|
11921
|
+
$[94] = setValue;
|
|
11922
|
+
$[95] = slotProps?.timePicker;
|
|
11923
|
+
$[96] = value;
|
|
11924
|
+
$[97] = withTime;
|
|
11925
|
+
$[98] = t33;
|
|
11926
|
+
} else t33 = $[98];
|
|
11642
11927
|
let t34;
|
|
11643
|
-
if ($[
|
|
11928
|
+
if ($[99] !== t33) {
|
|
11644
11929
|
t34 = /* @__PURE__ */ jsx(DayView, { children: t33 });
|
|
11645
|
-
$[
|
|
11646
|
-
$[
|
|
11647
|
-
} else t34 = $[
|
|
11930
|
+
$[99] = t33;
|
|
11931
|
+
$[100] = t34;
|
|
11932
|
+
} else t34 = $[100];
|
|
11648
11933
|
let t35;
|
|
11649
11934
|
let t36;
|
|
11650
|
-
if ($[
|
|
11935
|
+
if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11651
11936
|
t35 = /* @__PURE__ */ jsx(MonthView, {});
|
|
11652
11937
|
t36 = /* @__PURE__ */ jsx(YearView, {});
|
|
11653
|
-
$[
|
|
11654
|
-
$[
|
|
11938
|
+
$[101] = t35;
|
|
11939
|
+
$[102] = t36;
|
|
11655
11940
|
} else {
|
|
11656
|
-
t35 = $[
|
|
11657
|
-
t36 = $[
|
|
11941
|
+
t35 = $[101];
|
|
11942
|
+
t36 = $[102];
|
|
11658
11943
|
}
|
|
11659
11944
|
let t37;
|
|
11660
|
-
if ($[
|
|
11945
|
+
if ($[103] !== t34) {
|
|
11661
11946
|
t37 = /* @__PURE__ */ jsx(DatePicker.Positioner, {
|
|
11662
11947
|
className: ds_date_picker_module_default.positioner,
|
|
11663
11948
|
children: /* @__PURE__ */ jsxs(DatePicker.Content, {
|
|
@@ -11669,18 +11954,18 @@ const DsDatePicker = (t0) => {
|
|
|
11669
11954
|
]
|
|
11670
11955
|
})
|
|
11671
11956
|
});
|
|
11672
|
-
$[
|
|
11673
|
-
$[
|
|
11674
|
-
} else t37 = $[
|
|
11957
|
+
$[103] = t34;
|
|
11958
|
+
$[104] = t37;
|
|
11959
|
+
} else t37 = $[104];
|
|
11675
11960
|
let t38;
|
|
11676
|
-
if ($[
|
|
11961
|
+
if ($[105] !== Wrapper || $[106] !== t37) {
|
|
11677
11962
|
t38 = /* @__PURE__ */ jsx(Wrapper, { children: t37 });
|
|
11678
|
-
$[
|
|
11679
|
-
$[
|
|
11680
|
-
$[
|
|
11681
|
-
} else t38 = $[
|
|
11963
|
+
$[105] = Wrapper;
|
|
11964
|
+
$[106] = t37;
|
|
11965
|
+
$[107] = t38;
|
|
11966
|
+
} else t38 = $[107];
|
|
11682
11967
|
let t39;
|
|
11683
|
-
if ($[
|
|
11968
|
+
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) {
|
|
11684
11969
|
t39 = /* @__PURE__ */ jsxs(DatePicker.Root, {
|
|
11685
11970
|
className,
|
|
11686
11971
|
value: t17,
|
|
@@ -11698,22 +11983,22 @@ const DsDatePicker = (t0) => {
|
|
|
11698
11983
|
...restProps,
|
|
11699
11984
|
children: [t32, t38]
|
|
11700
11985
|
});
|
|
11701
|
-
$[
|
|
11702
|
-
$[
|
|
11703
|
-
$[
|
|
11704
|
-
$[
|
|
11705
|
-
$[
|
|
11706
|
-
$[
|
|
11707
|
-
$[
|
|
11708
|
-
$[
|
|
11709
|
-
$[
|
|
11710
|
-
$[
|
|
11711
|
-
$[
|
|
11712
|
-
$[
|
|
11713
|
-
$[
|
|
11714
|
-
$[
|
|
11715
|
-
$[
|
|
11716
|
-
} else t39 = $[
|
|
11986
|
+
$[108] = className;
|
|
11987
|
+
$[109] = disabled;
|
|
11988
|
+
$[110] = isOpen;
|
|
11989
|
+
$[111] = max;
|
|
11990
|
+
$[112] = min;
|
|
11991
|
+
$[113] = readOnly;
|
|
11992
|
+
$[114] = restProps;
|
|
11993
|
+
$[115] = t17;
|
|
11994
|
+
$[116] = t18;
|
|
11995
|
+
$[117] = t19;
|
|
11996
|
+
$[118] = t21;
|
|
11997
|
+
$[119] = t22;
|
|
11998
|
+
$[120] = t32;
|
|
11999
|
+
$[121] = t38;
|
|
12000
|
+
$[122] = t39;
|
|
12001
|
+
} else t39 = $[122];
|
|
11717
12002
|
return t39;
|
|
11718
12003
|
};
|
|
11719
12004
|
//#endregion
|
|
@@ -12811,7 +13096,7 @@ const DsDialog = ({ open, onOpenChange, title, hideTitle, description, hideDescr
|
|
|
12811
13096
|
children: [
|
|
12812
13097
|
/* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
12813
13098
|
asChild: true,
|
|
12814
|
-
children: hideTitle ? /* @__PURE__ */ jsx(Root
|
|
13099
|
+
children: hideTitle ? /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
12815
13100
|
className: ds_dialog_module_default.title,
|
|
12816
13101
|
children: title
|
|
12817
13102
|
}) }) : /* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
@@ -12821,7 +13106,7 @@ const DsDialog = ({ open, onOpenChange, title, hideTitle, description, hideDescr
|
|
|
12821
13106
|
}),
|
|
12822
13107
|
description && /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
12823
13108
|
asChild: true,
|
|
12824
|
-
children: hideDescription ? /* @__PURE__ */ jsx(Root
|
|
13109
|
+
children: hideDescription ? /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
12825
13110
|
className: ds_dialog_module_default.description,
|
|
12826
13111
|
children: description
|
|
12827
13112
|
}) }) : /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
@@ -14182,22 +14467,24 @@ const filterStatuses = [
|
|
|
14182
14467
|
];
|
|
14183
14468
|
//#endregion
|
|
14184
14469
|
//#region src/components/ds-grid/ds-grid.tsx
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14470
|
+
const DsGridBase = ({ children, columns, rows, gutter, margin, className, style }) => {
|
|
14471
|
+
const gridClass = classNames("ds-grid", {
|
|
14472
|
+
[`ds-grid-cols-${String(columns)}`]: columns,
|
|
14473
|
+
[`ds-grid-rows-${String(rows)}`]: rows
|
|
14474
|
+
}, className);
|
|
14475
|
+
const cssVars = {};
|
|
14476
|
+
if (gutter !== void 0) cssVars["--ds-grid-gutter"] = typeof gutter === "number" ? `${String(gutter)}px` : gutter;
|
|
14477
|
+
if (margin !== void 0) cssVars["--ds-grid-margin"] = typeof margin === "number" ? `${String(margin)}px` : margin;
|
|
14189
14478
|
return /* @__PURE__ */ jsx("div", {
|
|
14190
|
-
className:
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14479
|
+
className: gridClass,
|
|
14480
|
+
style: {
|
|
14481
|
+
...style,
|
|
14482
|
+
...cssVars
|
|
14483
|
+
},
|
|
14194
14484
|
children
|
|
14195
14485
|
});
|
|
14196
14486
|
};
|
|
14197
|
-
|
|
14198
|
-
* Design system GridItem component
|
|
14199
|
-
*/
|
|
14200
|
-
const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14487
|
+
const DsGridItemBase = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14201
14488
|
return /* @__PURE__ */ jsx("div", {
|
|
14202
14489
|
className: classNames({
|
|
14203
14490
|
[`ds-grid-col-span-${String(colSpan)}`]: colSpan,
|
|
@@ -14209,6 +14496,10 @@ const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className
|
|
|
14209
14496
|
});
|
|
14210
14497
|
};
|
|
14211
14498
|
//#endregion
|
|
14499
|
+
//#region src/components/ds-grid/index.ts
|
|
14500
|
+
const DsGrid = withResponsiveProps(DsGridBase, ["gutter", "margin"]);
|
|
14501
|
+
const DsGridItem = withResponsiveProps(DsGridItemBase, ["colSpan", "rowSpan"]);
|
|
14502
|
+
//#endregion
|
|
14212
14503
|
//#region src/components/ds-key-value-pair/ds-key-value-pair.module.scss
|
|
14213
14504
|
var ds_key_value_pair_module_default = {
|
|
14214
14505
|
"editorSlot": "_6K_oIW_editorSlot",
|
|
@@ -15405,7 +15696,7 @@ var ds_radio_group_module_default = {
|
|
|
15405
15696
|
/**
|
|
15406
15697
|
* Root component - provides radio group context
|
|
15407
15698
|
*/
|
|
15408
|
-
const Root$
|
|
15699
|
+
const Root$2 = (t0) => {
|
|
15409
15700
|
const $ = c(14);
|
|
15410
15701
|
let children;
|
|
15411
15702
|
let className;
|
|
@@ -15456,7 +15747,7 @@ const Root$3 = (t0) => {
|
|
|
15456
15747
|
* Item component - renders a single radio button with optional label
|
|
15457
15748
|
*/
|
|
15458
15749
|
const Item$1 = (t0) => {
|
|
15459
|
-
const $ = c(
|
|
15750
|
+
const $ = c(24);
|
|
15460
15751
|
let children;
|
|
15461
15752
|
let className;
|
|
15462
15753
|
let label;
|
|
@@ -15510,22 +15801,28 @@ const Item$1 = (t0) => {
|
|
|
15510
15801
|
t3 = $[11];
|
|
15511
15802
|
}
|
|
15512
15803
|
let t4;
|
|
15513
|
-
if ($[12] !== children || $[13] !== label
|
|
15514
|
-
t4 = label ? /* @__PURE__ */
|
|
15804
|
+
if ($[12] !== children || $[13] !== label) {
|
|
15805
|
+
t4 = label ? /* @__PURE__ */ jsx(RadioGroup.ItemText, {
|
|
15515
15806
|
className: ds_radio_group_module_default.radioLabel,
|
|
15516
|
-
children:
|
|
15517
|
-
className: ds_radio_group_module_default.labelInfo,
|
|
15518
|
-
children: labelInfo
|
|
15519
|
-
})]
|
|
15807
|
+
children: label
|
|
15520
15808
|
}) : children;
|
|
15521
15809
|
$[12] = children;
|
|
15522
15810
|
$[13] = label;
|
|
15523
|
-
$[14] =
|
|
15524
|
-
|
|
15525
|
-
} else t4 = $[15];
|
|
15811
|
+
$[14] = t4;
|
|
15812
|
+
} else t4 = $[14];
|
|
15526
15813
|
let t5;
|
|
15527
|
-
if ($[
|
|
15528
|
-
t5 = /* @__PURE__ */
|
|
15814
|
+
if ($[15] !== labelInfo) {
|
|
15815
|
+
t5 = !!labelInfo && /* @__PURE__ */ jsx(DsTypography, {
|
|
15816
|
+
variant: "body-xs-reg",
|
|
15817
|
+
className: ds_radio_group_module_default.labelInfo,
|
|
15818
|
+
children: labelInfo
|
|
15819
|
+
});
|
|
15820
|
+
$[15] = labelInfo;
|
|
15821
|
+
$[16] = t5;
|
|
15822
|
+
} else t5 = $[16];
|
|
15823
|
+
let t6;
|
|
15824
|
+
if ($[17] !== props || $[18] !== style || $[19] !== t1 || $[20] !== t4 || $[21] !== t5 || $[22] !== value) {
|
|
15825
|
+
t6 = /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
15529
15826
|
value,
|
|
15530
15827
|
className: t1,
|
|
15531
15828
|
style,
|
|
@@ -15533,17 +15830,19 @@ const Item$1 = (t0) => {
|
|
|
15533
15830
|
children: [
|
|
15534
15831
|
t2,
|
|
15535
15832
|
t3,
|
|
15536
|
-
t4
|
|
15833
|
+
t4,
|
|
15834
|
+
t5
|
|
15537
15835
|
]
|
|
15538
15836
|
});
|
|
15539
|
-
$[
|
|
15540
|
-
$[
|
|
15541
|
-
$[
|
|
15542
|
-
$[
|
|
15543
|
-
$[20] = value;
|
|
15837
|
+
$[17] = props;
|
|
15838
|
+
$[18] = style;
|
|
15839
|
+
$[19] = t1;
|
|
15840
|
+
$[20] = t4;
|
|
15544
15841
|
$[21] = t5;
|
|
15545
|
-
|
|
15546
|
-
|
|
15842
|
+
$[22] = value;
|
|
15843
|
+
$[23] = t6;
|
|
15844
|
+
} else t6 = $[23];
|
|
15845
|
+
return t6;
|
|
15547
15846
|
};
|
|
15548
15847
|
/**
|
|
15549
15848
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
@@ -15552,61 +15851,50 @@ const Item$1 = (t0) => {
|
|
|
15552
15851
|
*/
|
|
15553
15852
|
/* c8 ignore start */
|
|
15554
15853
|
const DsRadioGroupLegacy = (t0) => {
|
|
15555
|
-
const $ = c(
|
|
15556
|
-
|
|
15557
|
-
let defaultValue;
|
|
15558
|
-
let onValueChange;
|
|
15559
|
-
let options;
|
|
15560
|
-
let props;
|
|
15561
|
-
let value;
|
|
15562
|
-
if ($[0] !== t0) {
|
|
15563
|
-
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
15564
|
-
$[0] = t0;
|
|
15565
|
-
$[1] = className;
|
|
15566
|
-
$[2] = defaultValue;
|
|
15567
|
-
$[3] = onValueChange;
|
|
15568
|
-
$[4] = options;
|
|
15569
|
-
$[5] = props;
|
|
15570
|
-
$[6] = value;
|
|
15571
|
-
} else {
|
|
15572
|
-
className = $[1];
|
|
15573
|
-
defaultValue = $[2];
|
|
15574
|
-
onValueChange = $[3];
|
|
15575
|
-
options = $[4];
|
|
15576
|
-
props = $[5];
|
|
15577
|
-
value = $[6];
|
|
15578
|
-
}
|
|
15854
|
+
const $ = c(14);
|
|
15855
|
+
const { options, value, defaultValue, onValueChange, disabled, className, style } = t0;
|
|
15579
15856
|
let t1;
|
|
15580
|
-
if ($[
|
|
15857
|
+
if ($[0] !== className) {
|
|
15581
15858
|
t1 = classNames(ds_radio_group_module_default.radioGroupRoot, className);
|
|
15582
|
-
$[
|
|
15583
|
-
$[
|
|
15584
|
-
} else t1 = $[
|
|
15585
|
-
|
|
15586
|
-
if ($[9] !== options) {
|
|
15587
|
-
t2 = options.map(_temp$1);
|
|
15588
|
-
$[9] = options;
|
|
15589
|
-
$[10] = t2;
|
|
15590
|
-
} else t2 = $[10];
|
|
15859
|
+
$[0] = className;
|
|
15860
|
+
$[1] = t1;
|
|
15861
|
+
} else t1 = $[1];
|
|
15862
|
+
const t2 = value ?? void 0;
|
|
15591
15863
|
let t3;
|
|
15592
|
-
if ($[
|
|
15593
|
-
t3 =
|
|
15864
|
+
if ($[2] !== onValueChange) {
|
|
15865
|
+
t3 = (details) => {
|
|
15866
|
+
if (details.value !== null) onValueChange?.(details.value);
|
|
15867
|
+
};
|
|
15868
|
+
$[2] = onValueChange;
|
|
15869
|
+
$[3] = t3;
|
|
15870
|
+
} else t3 = $[3];
|
|
15871
|
+
let t4;
|
|
15872
|
+
if ($[4] !== options) {
|
|
15873
|
+
t4 = options.map(_temp$1);
|
|
15874
|
+
$[4] = options;
|
|
15875
|
+
$[5] = t4;
|
|
15876
|
+
} else t4 = $[5];
|
|
15877
|
+
let t5;
|
|
15878
|
+
if ($[6] !== defaultValue || $[7] !== disabled || $[8] !== style || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
|
|
15879
|
+
t5 = /* @__PURE__ */ jsx(RadioGroup.Root, {
|
|
15594
15880
|
className: t1,
|
|
15595
|
-
|
|
15881
|
+
style,
|
|
15882
|
+
value: t2,
|
|
15596
15883
|
defaultValue,
|
|
15597
|
-
|
|
15598
|
-
|
|
15599
|
-
children:
|
|
15884
|
+
disabled,
|
|
15885
|
+
onValueChange: t3,
|
|
15886
|
+
children: t4
|
|
15600
15887
|
});
|
|
15601
|
-
$[
|
|
15602
|
-
$[
|
|
15603
|
-
$[
|
|
15604
|
-
$[
|
|
15605
|
-
$[
|
|
15606
|
-
$[
|
|
15607
|
-
$[
|
|
15608
|
-
|
|
15609
|
-
|
|
15888
|
+
$[6] = defaultValue;
|
|
15889
|
+
$[7] = disabled;
|
|
15890
|
+
$[8] = style;
|
|
15891
|
+
$[9] = t1;
|
|
15892
|
+
$[10] = t2;
|
|
15893
|
+
$[11] = t3;
|
|
15894
|
+
$[12] = t4;
|
|
15895
|
+
$[13] = t5;
|
|
15896
|
+
} else t5 = $[13];
|
|
15897
|
+
return t5;
|
|
15610
15898
|
};
|
|
15611
15899
|
/* c8 ignore stop */
|
|
15612
15900
|
/**
|
|
@@ -15619,29 +15907,36 @@ const DsRadioGroupLegacy = (t0) => {
|
|
|
15619
15907
|
* </DsRadioGroup.Root>
|
|
15620
15908
|
*/
|
|
15621
15909
|
const DsRadioGroup = {
|
|
15622
|
-
Root: Root$
|
|
15910
|
+
Root: Root$2,
|
|
15623
15911
|
Item: Item$1
|
|
15624
15912
|
};
|
|
15625
15913
|
function _temp$1(option) {
|
|
15626
|
-
return /* @__PURE__ */ jsxs(
|
|
15914
|
+
return /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
15915
|
+
value: option.value,
|
|
15916
|
+
disabled: option.disabled,
|
|
15627
15917
|
className: ds_radio_group_module_default.radioItemContainer,
|
|
15628
|
-
children: [
|
|
15629
|
-
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15918
|
+
children: [
|
|
15919
|
+
/* @__PURE__ */ jsx(RadioGroup.ItemControl, {
|
|
15920
|
+
className: ds_radio_group_module_default.radioItem,
|
|
15921
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
15922
|
+
className: ds_radio_group_module_default.radioItemWrapper,
|
|
15923
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
15924
|
+
className: ds_radio_group_module_default.radioIndicator,
|
|
15925
|
+
"data-part": "indicator"
|
|
15926
|
+
})
|
|
15927
|
+
})
|
|
15928
|
+
}),
|
|
15929
|
+
/* @__PURE__ */ jsx(RadioGroup.ItemHiddenInput, {}),
|
|
15930
|
+
/* @__PURE__ */ jsx(RadioGroup.ItemText, {
|
|
15931
|
+
className: ds_radio_group_module_default.radioLabel,
|
|
15932
|
+
children: option.label
|
|
15933
|
+
}),
|
|
15934
|
+
!!option.labelInfo && /* @__PURE__ */ jsx(DsTypography, {
|
|
15935
|
+
variant: "body-xs-reg",
|
|
15641
15936
|
className: ds_radio_group_module_default.labelInfo,
|
|
15642
15937
|
children: option.labelInfo
|
|
15643
|
-
})
|
|
15644
|
-
|
|
15938
|
+
})
|
|
15939
|
+
]
|
|
15645
15940
|
}, option.value);
|
|
15646
15941
|
}
|
|
15647
15942
|
//#endregion
|
|
@@ -15658,7 +15953,7 @@ var ds_segment_group_module_default = {
|
|
|
15658
15953
|
/**
|
|
15659
15954
|
* Root component - provides segment group context
|
|
15660
15955
|
*/
|
|
15661
|
-
const Root$
|
|
15956
|
+
const Root$1 = (t0) => {
|
|
15662
15957
|
const $ = c(17);
|
|
15663
15958
|
let children;
|
|
15664
15959
|
let className;
|
|
@@ -15852,7 +16147,7 @@ const ItemText = (t0) => {
|
|
|
15852
16147
|
* </DsSegmentGroup.Root>
|
|
15853
16148
|
*/
|
|
15854
16149
|
const DsSegmentGroup = {
|
|
15855
|
-
Root: Root$
|
|
16150
|
+
Root: Root$1,
|
|
15856
16151
|
Item,
|
|
15857
16152
|
ItemText
|
|
15858
16153
|
};
|
|
@@ -17936,13 +18231,15 @@ const DsDefaultTableCell = ({ cell }) => {
|
|
|
17936
18231
|
});
|
|
17937
18232
|
};
|
|
17938
18233
|
const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions = [] }) => {
|
|
17939
|
-
|
|
17940
|
-
|
|
18234
|
+
const visiblePrimary = primaryRowActions.filter((action) => !action.hidden?.(row.original));
|
|
18235
|
+
const visibleSecondary = secondaryRowActions.filter((action) => !action.hidden?.(row.original));
|
|
18236
|
+
if (visiblePrimary.length || visibleSecondary.length) {
|
|
18237
|
+
const hasSecondaryRowActions = visibleSecondary.length > 0;
|
|
17941
18238
|
return /* @__PURE__ */ jsxs("div", {
|
|
17942
18239
|
className: ds_table_cell_module_default.lastCell,
|
|
17943
18240
|
children: [/* @__PURE__ */ jsx(DsDefaultTableCell, { cell }), /* @__PURE__ */ jsxs("div", {
|
|
17944
18241
|
className: ds_table_cell_module_default.cellActions,
|
|
17945
|
-
children: [
|
|
18242
|
+
children: [visiblePrimary.map((action, i) => {
|
|
17946
18243
|
const isDisabled = action.disabled?.(row.original);
|
|
17947
18244
|
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
17948
18245
|
return /* @__PURE__ */ jsx("button", {
|
|
@@ -17976,7 +18273,7 @@ const DsTableCell = ({ row, cell, primaryRowActions = [], secondaryRowActions =
|
|
|
17976
18273
|
size: "tiny"
|
|
17977
18274
|
})
|
|
17978
18275
|
})
|
|
17979
|
-
}), /* @__PURE__ */ jsx(DsDropdownMenu.Content, { children:
|
|
18276
|
+
}), /* @__PURE__ */ jsx(DsDropdownMenu.Content, { children: visibleSecondary.map((action, i) => {
|
|
17980
18277
|
const label = typeof action.label === "function" ? action.label(row.original) : action.label;
|
|
17981
18278
|
const isDisabled = action.disabled?.(row.original);
|
|
17982
18279
|
return /* @__PURE__ */ jsxs(DsDropdownMenu.Item, {
|
|
@@ -19477,6 +19774,183 @@ DsVerticalTabs.List = DsVerticalTabsList;
|
|
|
19477
19774
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
19478
19775
|
DsVerticalTabs.Content = DsVerticalTabsContent;
|
|
19479
19776
|
//#endregion
|
|
19480
|
-
|
|
19777
|
+
//#region src/components/ds-workspace/ds-workspace.module.scss
|
|
19778
|
+
var ds_workspace_module_default = {
|
|
19779
|
+
"content": "XEdo8q_content",
|
|
19780
|
+
"fillParent": "XEdo8q_fillParent",
|
|
19781
|
+
"footer": "XEdo8q_footer",
|
|
19782
|
+
"header": "XEdo8q_header",
|
|
19783
|
+
"root": "XEdo8q_root",
|
|
19784
|
+
"subHeader": "XEdo8q_subHeader"
|
|
19785
|
+
};
|
|
19786
|
+
//#endregion
|
|
19787
|
+
//#region src/components/ds-workspace/ds-workspace.tsx
|
|
19788
|
+
const DsWorkspace = (t0) => {
|
|
19789
|
+
const $ = c(10);
|
|
19790
|
+
let className;
|
|
19791
|
+
let rest;
|
|
19792
|
+
let t1;
|
|
19793
|
+
if ($[0] !== t0) {
|
|
19794
|
+
({className, fillParent: t1, ...rest} = t0);
|
|
19795
|
+
$[0] = t0;
|
|
19796
|
+
$[1] = className;
|
|
19797
|
+
$[2] = rest;
|
|
19798
|
+
$[3] = t1;
|
|
19799
|
+
} else {
|
|
19800
|
+
className = $[1];
|
|
19801
|
+
rest = $[2];
|
|
19802
|
+
t1 = $[3];
|
|
19803
|
+
}
|
|
19804
|
+
const fillParent = t1 === void 0 ? false : t1;
|
|
19805
|
+
let t2;
|
|
19806
|
+
if ($[4] !== className || $[5] !== fillParent) {
|
|
19807
|
+
t2 = classNames(ds_workspace_module_default.root, { [ds_workspace_module_default.fillParent]: fillParent }, className);
|
|
19808
|
+
$[4] = className;
|
|
19809
|
+
$[5] = fillParent;
|
|
19810
|
+
$[6] = t2;
|
|
19811
|
+
} else t2 = $[6];
|
|
19812
|
+
let t3;
|
|
19813
|
+
if ($[7] !== rest || $[8] !== t2) {
|
|
19814
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
19815
|
+
...rest,
|
|
19816
|
+
className: t2
|
|
19817
|
+
});
|
|
19818
|
+
$[7] = rest;
|
|
19819
|
+
$[8] = t2;
|
|
19820
|
+
$[9] = t3;
|
|
19821
|
+
} else t3 = $[9];
|
|
19822
|
+
return t3;
|
|
19823
|
+
};
|
|
19824
|
+
const Header = (t0) => {
|
|
19825
|
+
const $ = c(8);
|
|
19826
|
+
let className;
|
|
19827
|
+
let rest;
|
|
19828
|
+
if ($[0] !== t0) {
|
|
19829
|
+
({className, ...rest} = t0);
|
|
19830
|
+
$[0] = t0;
|
|
19831
|
+
$[1] = className;
|
|
19832
|
+
$[2] = rest;
|
|
19833
|
+
} else {
|
|
19834
|
+
className = $[1];
|
|
19835
|
+
rest = $[2];
|
|
19836
|
+
}
|
|
19837
|
+
let t1;
|
|
19838
|
+
if ($[3] !== className) {
|
|
19839
|
+
t1 = classNames(ds_workspace_module_default.header, className);
|
|
19840
|
+
$[3] = className;
|
|
19841
|
+
$[4] = t1;
|
|
19842
|
+
} else t1 = $[4];
|
|
19843
|
+
let t2;
|
|
19844
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19845
|
+
t2 = /* @__PURE__ */ jsx("header", {
|
|
19846
|
+
...rest,
|
|
19847
|
+
className: t1
|
|
19848
|
+
});
|
|
19849
|
+
$[5] = rest;
|
|
19850
|
+
$[6] = t1;
|
|
19851
|
+
$[7] = t2;
|
|
19852
|
+
} else t2 = $[7];
|
|
19853
|
+
return t2;
|
|
19854
|
+
};
|
|
19855
|
+
const SubHeader = (t0) => {
|
|
19856
|
+
const $ = c(8);
|
|
19857
|
+
let className;
|
|
19858
|
+
let rest;
|
|
19859
|
+
if ($[0] !== t0) {
|
|
19860
|
+
({className, ...rest} = t0);
|
|
19861
|
+
$[0] = t0;
|
|
19862
|
+
$[1] = className;
|
|
19863
|
+
$[2] = rest;
|
|
19864
|
+
} else {
|
|
19865
|
+
className = $[1];
|
|
19866
|
+
rest = $[2];
|
|
19867
|
+
}
|
|
19868
|
+
let t1;
|
|
19869
|
+
if ($[3] !== className) {
|
|
19870
|
+
t1 = classNames(ds_workspace_module_default.subHeader, className);
|
|
19871
|
+
$[3] = className;
|
|
19872
|
+
$[4] = t1;
|
|
19873
|
+
} else t1 = $[4];
|
|
19874
|
+
let t2;
|
|
19875
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19876
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
19877
|
+
...rest,
|
|
19878
|
+
className: t1
|
|
19879
|
+
});
|
|
19880
|
+
$[5] = rest;
|
|
19881
|
+
$[6] = t1;
|
|
19882
|
+
$[7] = t2;
|
|
19883
|
+
} else t2 = $[7];
|
|
19884
|
+
return t2;
|
|
19885
|
+
};
|
|
19886
|
+
/** Stacking context for non-portal drawer containment. */
|
|
19887
|
+
const Content = (t0) => {
|
|
19888
|
+
const $ = c(8);
|
|
19889
|
+
let className;
|
|
19890
|
+
let rest;
|
|
19891
|
+
if ($[0] !== t0) {
|
|
19892
|
+
({className, ...rest} = t0);
|
|
19893
|
+
$[0] = t0;
|
|
19894
|
+
$[1] = className;
|
|
19895
|
+
$[2] = rest;
|
|
19896
|
+
} else {
|
|
19897
|
+
className = $[1];
|
|
19898
|
+
rest = $[2];
|
|
19899
|
+
}
|
|
19900
|
+
let t1;
|
|
19901
|
+
if ($[3] !== className) {
|
|
19902
|
+
t1 = classNames(ds_workspace_module_default.content, className);
|
|
19903
|
+
$[3] = className;
|
|
19904
|
+
$[4] = t1;
|
|
19905
|
+
} else t1 = $[4];
|
|
19906
|
+
let t2;
|
|
19907
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19908
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
19909
|
+
...rest,
|
|
19910
|
+
className: t1
|
|
19911
|
+
});
|
|
19912
|
+
$[5] = rest;
|
|
19913
|
+
$[6] = t1;
|
|
19914
|
+
$[7] = t2;
|
|
19915
|
+
} else t2 = $[7];
|
|
19916
|
+
return t2;
|
|
19917
|
+
};
|
|
19918
|
+
const Footer = (t0) => {
|
|
19919
|
+
const $ = c(8);
|
|
19920
|
+
let className;
|
|
19921
|
+
let rest;
|
|
19922
|
+
if ($[0] !== t0) {
|
|
19923
|
+
({className, ...rest} = t0);
|
|
19924
|
+
$[0] = t0;
|
|
19925
|
+
$[1] = className;
|
|
19926
|
+
$[2] = rest;
|
|
19927
|
+
} else {
|
|
19928
|
+
className = $[1];
|
|
19929
|
+
rest = $[2];
|
|
19930
|
+
}
|
|
19931
|
+
let t1;
|
|
19932
|
+
if ($[3] !== className) {
|
|
19933
|
+
t1 = classNames(ds_workspace_module_default.footer, className);
|
|
19934
|
+
$[3] = className;
|
|
19935
|
+
$[4] = t1;
|
|
19936
|
+
} else t1 = $[4];
|
|
19937
|
+
let t2;
|
|
19938
|
+
if ($[5] !== rest || $[6] !== t1) {
|
|
19939
|
+
t2 = /* @__PURE__ */ jsx("footer", {
|
|
19940
|
+
...rest,
|
|
19941
|
+
className: t1
|
|
19942
|
+
});
|
|
19943
|
+
$[5] = rest;
|
|
19944
|
+
$[6] = t1;
|
|
19945
|
+
$[7] = t2;
|
|
19946
|
+
} else t2 = $[7];
|
|
19947
|
+
return t2;
|
|
19948
|
+
};
|
|
19949
|
+
DsWorkspace.Header = Header;
|
|
19950
|
+
DsWorkspace.SubHeader = SubHeader;
|
|
19951
|
+
DsWorkspace.Content = Content;
|
|
19952
|
+
DsWorkspace.Footer = Footer;
|
|
19953
|
+
//#endregion
|
|
19954
|
+
export { BREAKPOINT_LG, DsAlertBanner, DsAutocomplete, DsAvatar, DsAvatarGroup, DsBreadcrumb, DsButton, DsButtonV3, DsCard, DsCheckbox, DsCheckboxGroup, DsChip, DsChipGroup, DsCommentBubble, DsCommentCard, DsCommentIndicator, DsCommentThread, DsCommentsDrawer, DsConfirmation, DsDateInput, DsDatePicker, DsDateRangePicker, DsDialog, DsDivider, DsDrawer, DsDropdownMenu, DsDropdownMenuLegacy, DsExpandableTextInput, DsFileUpload, DsFilterStatusIcon, DsFormControl, DsGrid, DsGridItem, DsIcon, DsKeyValuePair, DsLoader, DsModal, DsNextStepButton, DsNumberInput, DsPanel, DsPasswordInput, DsPopover, DsProgressArc, DsProgressDonut, DsProgressLinear, DsRadioGroup, DsRadioGroupLegacy, DsSegmentGroup, DsSelect, ds_skeleton_default as DsSkeleton, DsSkeletonCircle, DsSkeletonRect, DsSkeletonText, DsSmartTabs, DsSpinner, DsSplitButton, DsStack, DsStatusBadge, DsStep, DsStepContent, DsStepper, DsSystemStatus, DsTable, DsTabs, DsTag, DsTagFilter, DsTextInput, DsTextarea, DsThreadItem, DsTimePicker, DsToastProvider, DsToggle, DsTooltip, DsTree, DsTypography, DsVerticalTabs, DsWorkspace, FatalFileUploadError, FileUpload, FileUploadError, RetryableFileUploadError, alertBannerVariants, breakpoints, buttonV3Colors, buttonV3Sizes, buttonV3Variants, cardSizes, checkboxVariants, colors, controlStatuses, createCheckboxFilterAdapter, createDsTreeCollection, createDualRangeFilterAdapter, createFilterAdapter, customIcons, dsKeyValuePairOrientations, filterStatuses, formatTime, iconColors, iconSizes, iconVariants, isCustomIcon, isResponsiveValue, loaderVariants, progressArcSizes, progressArcVariants, progressDonutSizes, progressDonutVariants, progressLinearSizes, progressLinearVariants, resolveResponsiveValue, skeletonColorVariants, skeletonRadiusVariants, spinnerSizes, splitButtonSizes, systemStatuses, tagSizes, tagVariants, textInputSizes, useBreakpoint, useCheckboxSelectAll, useFileUpload, useResponsiveValue, useTableFilters, useToaster, withResponsiveProps };
|
|
19481
19955
|
|
|
19482
19956
|
//# sourceMappingURL=index.js.map
|