@drivenets/design-system 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/index.cjs +1065 -594
- package/dist/index.d.cts +1797 -635
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +1800 -638
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1072 -603
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +11 -13
- package/src/components/ds-breadcrumb/ds-breadcrumb.types.ts +40 -6
- package/src/components/ds-button/ds-button.types.ts +13 -2
- package/src/components/ds-button-v3/ds-button-v3.module.scss +105 -106
- package/src/components/ds-button-v3/ds-button-v3.types.ts +7 -0
- package/src/components/ds-card/ds-card.types.ts +3 -1
- package/src/components/ds-checkbox/ds-checkbox.module.scss +106 -123
- package/src/components/ds-checkbox/ds-checkbox.tsx +24 -35
- package/src/components/ds-checkbox/ds-checkbox.types.ts +12 -11
- package/src/components/ds-checkbox-group/ds-checkbox-group.module.scss +13 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.tsx +20 -0
- package/src/components/ds-checkbox-group/ds-checkbox-group.types.ts +8 -0
- package/src/components/ds-checkbox-group/hooks/index.ts +6 -0
- package/src/components/ds-checkbox-group/hooks/use-checkbox-select-all.ts +65 -0
- package/src/components/ds-checkbox-group/index.ts +3 -0
- package/src/components/ds-comment-bubble/components/ds-comment-thread/ds-comment-thread.types.ts +26 -0
- package/src/components/ds-comment-bubble/components/ds-thread-item/ds-thread-item.types.ts +38 -0
- package/src/components/ds-comment-bubble/ds-comment-bubble.types.ts +78 -0
- package/src/components/ds-comment-card/ds-comment-card.types.ts +114 -0
- package/src/components/ds-comment-indicator/ds-comment-indicator.types.ts +26 -0
- package/src/components/ds-comments-drawer/comments-filters.types.ts +33 -0
- package/src/components/ds-comments-drawer/components/comments-filter-modal/comments-filter-modal.types.ts +37 -1
- package/src/components/ds-comments-drawer/ds-comments-drawer.types.ts +64 -0
- package/src/components/ds-date-input/ds-date-input.types.ts +23 -0
- package/src/components/ds-date-picker/ds-date-picker.tsx +3 -0
- package/src/components/ds-date-picker/ds-date-picker.types.ts +20 -0
- package/src/components/ds-date-range-picker/ds-date-range-picker.types.ts +28 -0
- package/src/components/ds-dialog/ds-dialog.types.ts +10 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.types.ts +24 -0
- package/src/components/ds-file-upload/components/file-upload/file-upload.types.ts +1 -0
- package/src/components/ds-file-upload/ds-file-upload-api.types.ts +55 -0
- package/src/components/ds-form-control/ds-form-control.types.ts +3 -0
- package/src/components/ds-grid/ds-grid.tsx +29 -12
- package/src/components/ds-grid/ds-grid.types.ts +16 -13
- package/src/components/ds-grid/index.ts +10 -2
- package/src/components/ds-icon/custom-icons/index.ts +2 -0
- package/src/components/ds-icon/custom-icons/special-leading-icon.tsx +11 -0
- package/src/components/ds-icon/ds-icon.tsx +10 -4
- package/src/components/ds-icon/ds-icon.types.ts +30 -0
- package/src/components/ds-key-value-pair/ds-key-value-pair.types.ts +12 -2
- package/src/components/ds-modal/ds-modal.types.ts +16 -0
- package/src/components/ds-panel/ds-panel.types.ts +39 -0
- package/src/components/ds-radio-group/ds-radio-group.module.scss +58 -56
- package/src/components/ds-radio-group/ds-radio-group.tsx +35 -28
- package/src/components/ds-radio-group/ds-radio-group.types.ts +38 -7
- package/src/components/ds-segment-group/ds-segment-group.types.ts +17 -0
- package/src/components/ds-select/ds-select.types.ts +32 -0
- package/src/components/ds-split-button/ds-split-button.module.scss +7 -7
- package/src/components/ds-split-button/ds-split-button.types.ts +28 -0
- package/src/components/ds-stack/ds-stack.types.ts +23 -0
- package/src/components/ds-stepper/ds-stepper.types.ts +34 -1
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.types.ts +27 -0
- package/src/components/ds-table/components/ds-table-row-expandable-cell/ds-table-row-expandable-cell.types.ts +10 -0
- package/src/components/ds-table/components/ds-table-row-selectable-cell/ds-table-row-selectable-cell.types.ts +11 -0
- package/src/components/ds-table/components/ds-table-row-virtualized/ds-table-row-virtualized.types.ts +27 -0
- package/src/components/ds-table/filters/types/filter-adapter.types.ts +6 -0
- package/src/components/ds-tag/ds-tag.types.ts +6 -0
- package/src/components/ds-tag-filter/ds-tag-filter.types.ts +16 -0
- package/src/components/ds-text-input/ds-text-input.types.ts +3 -0
- package/src/components/ds-time-picker/components/time-item/time-item.types.ts +19 -0
- package/src/components/ds-time-picker/components/time-scroller/time-scroller.types.ts +29 -0
- package/src/components/ds-time-picker/ds-time-picker.module.scss +7 -0
- package/src/components/ds-time-picker/ds-time-picker.tsx +8 -1
- package/src/components/ds-time-picker/ds-time-picker.types.ts +80 -0
- package/src/components/ds-tooltip/ds-tooltip.types.ts +6 -0
- package/src/components/ds-tree/ds-tree.types.ts +84 -2
- package/src/components/ds-typography/ds-typography.config.ts +46 -27
- package/src/components/ds-typography/ds-typography.tsx +22 -7
- package/src/components/ds-typography/ds-typography.types.ts +15 -4
- package/src/components/ds-workspace/ds-workspace.module.scss +55 -0
- package/src/components/ds-workspace/ds-workspace.tsx +37 -0
- package/src/components/ds-workspace/ds-workspace.types.ts +17 -0
- package/src/components/ds-workspace/index.ts +8 -0
- package/src/index.ts +2 -0
- package/src/styles/_grid.scss +2 -2
- package/src/styles/_root_new.scss +449 -0
- package/src/styles/shared/_input.scss +0 -2
- package/src/styles/styles.scss +1 -0
- package/src/styles/_root_updated.scss +0 -593
package/dist/index.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,
|
|
@@ -5178,7 +5356,7 @@ var ds_card_module_default = {
|
|
|
5178
5356
|
* Card root component - container with optional selectable behavior.
|
|
5179
5357
|
* Use composition with DsCard.Header, DsCard.Body, DsCard.Footer for full flexibility.
|
|
5180
5358
|
*/
|
|
5181
|
-
const Root$
|
|
5359
|
+
const Root$3 = (t0) => {
|
|
5182
5360
|
const $ = c(33);
|
|
5183
5361
|
let children;
|
|
5184
5362
|
let className;
|
|
@@ -5291,7 +5469,7 @@ const Root$4 = (t0) => {
|
|
|
5291
5469
|
* Use with DsCard.Title and DsCard.Extra for standard layout,
|
|
5292
5470
|
* or provide custom children for full flexibility.
|
|
5293
5471
|
*/
|
|
5294
|
-
const Header$
|
|
5472
|
+
const Header$3 = (t0) => {
|
|
5295
5473
|
const $ = c(12);
|
|
5296
5474
|
let children;
|
|
5297
5475
|
let className;
|
|
@@ -5379,7 +5557,7 @@ const Body$2 = (t0) => {
|
|
|
5379
5557
|
/**
|
|
5380
5558
|
* Card footer - bottom section for actions or additional info.
|
|
5381
5559
|
*/
|
|
5382
|
-
const Footer$
|
|
5560
|
+
const Footer$3 = (t0) => {
|
|
5383
5561
|
const $ = c(12);
|
|
5384
5562
|
let children;
|
|
5385
5563
|
let className;
|
|
@@ -5421,10 +5599,10 @@ const Footer$2 = (t0) => {
|
|
|
5421
5599
|
return t2;
|
|
5422
5600
|
};
|
|
5423
5601
|
const DsCard = {
|
|
5424
|
-
Root: Root$
|
|
5425
|
-
Header: Header$
|
|
5602
|
+
Root: Root$3,
|
|
5603
|
+
Header: Header$3,
|
|
5426
5604
|
Body: Body$2,
|
|
5427
|
-
Footer: Footer$
|
|
5605
|
+
Footer: Footer$3
|
|
5428
5606
|
};
|
|
5429
5607
|
//#endregion
|
|
5430
5608
|
//#region src/components/ds-card/ds-card.types.ts
|
|
@@ -5436,13 +5614,13 @@ const cardSizes = [
|
|
|
5436
5614
|
//#endregion
|
|
5437
5615
|
//#region src/components/ds-checkbox/ds-checkbox.module.scss
|
|
5438
5616
|
var ds_checkbox_module_default = {
|
|
5439
|
-
"
|
|
5440
|
-
"
|
|
5441
|
-
"
|
|
5442
|
-
"container": "-9VV7a_container",
|
|
5443
|
-
"default": "-9VV7a_default",
|
|
5617
|
+
"control": "-9VV7a_control",
|
|
5618
|
+
"hiddenInput": "-9VV7a_hiddenInput",
|
|
5619
|
+
"indicator": "-9VV7a_indicator",
|
|
5444
5620
|
"label": "-9VV7a_label",
|
|
5621
|
+
"labelColumn": "-9VV7a_labelColumn",
|
|
5445
5622
|
"labelInfo": "-9VV7a_labelInfo",
|
|
5623
|
+
"root": "-9VV7a_root",
|
|
5446
5624
|
"warning": "-9VV7a_warning"
|
|
5447
5625
|
};
|
|
5448
5626
|
//#endregion
|
|
@@ -5451,118 +5629,202 @@ var ds_checkbox_module_default = {
|
|
|
5451
5629
|
* Design system Checkbox component
|
|
5452
5630
|
*/
|
|
5453
5631
|
const DsCheckbox = (t0) => {
|
|
5454
|
-
const $ = c(
|
|
5455
|
-
let checked;
|
|
5632
|
+
const $ = c(25);
|
|
5456
5633
|
let className;
|
|
5457
|
-
let defaultChecked;
|
|
5458
|
-
let id;
|
|
5459
5634
|
let label;
|
|
5460
5635
|
let labelInfo;
|
|
5461
5636
|
let onCheckedChange;
|
|
5462
5637
|
let props;
|
|
5463
5638
|
let t1;
|
|
5639
|
+
let value;
|
|
5464
5640
|
if ($[0] !== t0) {
|
|
5465
|
-
({
|
|
5641
|
+
({variant: t1, label, labelInfo, className, onCheckedChange, value, ...props} = t0);
|
|
5466
5642
|
$[0] = t0;
|
|
5467
|
-
$[1] =
|
|
5468
|
-
$[2] =
|
|
5469
|
-
$[3] =
|
|
5470
|
-
$[4] =
|
|
5471
|
-
$[5] =
|
|
5472
|
-
$[6] =
|
|
5473
|
-
$[7] =
|
|
5474
|
-
$[8] = props;
|
|
5475
|
-
$[9] = t1;
|
|
5643
|
+
$[1] = className;
|
|
5644
|
+
$[2] = label;
|
|
5645
|
+
$[3] = labelInfo;
|
|
5646
|
+
$[4] = onCheckedChange;
|
|
5647
|
+
$[5] = props;
|
|
5648
|
+
$[6] = t1;
|
|
5649
|
+
$[7] = value;
|
|
5476
5650
|
} else {
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
props = $[8];
|
|
5485
|
-
t1 = $[9];
|
|
5651
|
+
className = $[1];
|
|
5652
|
+
label = $[2];
|
|
5653
|
+
labelInfo = $[3];
|
|
5654
|
+
onCheckedChange = $[4];
|
|
5655
|
+
props = $[5];
|
|
5656
|
+
t1 = $[6];
|
|
5657
|
+
value = $[7];
|
|
5486
5658
|
}
|
|
5487
|
-
const
|
|
5488
|
-
const generatedId = useId();
|
|
5489
|
-
const checkboxId = id || generatedId;
|
|
5490
|
-
const t2 = ds_checkbox_module_default[variant];
|
|
5659
|
+
const t2 = (t1 === void 0 ? "default" : t1) === "warning" && ds_checkbox_module_default.warning;
|
|
5491
5660
|
let t3;
|
|
5492
|
-
if ($[
|
|
5493
|
-
t3 = classNames(ds_checkbox_module_default.
|
|
5494
|
-
$[
|
|
5495
|
-
$[
|
|
5496
|
-
$[
|
|
5497
|
-
} else t3 = $[
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
children: /* @__PURE__ */ jsx(DsIcon, {
|
|
5506
|
-
icon: t4,
|
|
5507
|
-
size: "small",
|
|
5508
|
-
variant: "outlined"
|
|
5509
|
-
})
|
|
5510
|
-
})
|
|
5511
|
-
});
|
|
5512
|
-
$[13] = t4;
|
|
5513
|
-
$[14] = t5;
|
|
5514
|
-
} 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);
|
|
5515
5674
|
let t6;
|
|
5516
|
-
if ($[
|
|
5517
|
-
t6 = /* @__PURE__ */ jsx(
|
|
5518
|
-
className: ds_checkbox_module_default.
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
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
|
+
})
|
|
5525
5683
|
});
|
|
5526
|
-
$[
|
|
5527
|
-
|
|
5528
|
-
$[17] = defaultChecked;
|
|
5529
|
-
$[18] = onCheckedChange;
|
|
5530
|
-
$[19] = props;
|
|
5531
|
-
$[20] = t5;
|
|
5532
|
-
$[21] = t6;
|
|
5533
|
-
} else t6 = $[21];
|
|
5684
|
+
$[13] = t6;
|
|
5685
|
+
} else t6 = $[13];
|
|
5534
5686
|
let t7;
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
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", {
|
|
5540
5716
|
className: ds_checkbox_module_default.labelInfo,
|
|
5541
5717
|
children: labelInfo
|
|
5542
5718
|
})]
|
|
5543
5719
|
});
|
|
5544
|
-
$[
|
|
5545
|
-
$[
|
|
5546
|
-
$[
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
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, {
|
|
5552
5727
|
className: t3,
|
|
5553
|
-
|
|
5728
|
+
onCheckedChange: t4,
|
|
5729
|
+
...props,
|
|
5730
|
+
value: t5,
|
|
5731
|
+
children: [
|
|
5732
|
+
t7,
|
|
5733
|
+
t8,
|
|
5734
|
+
t9
|
|
5735
|
+
]
|
|
5554
5736
|
});
|
|
5555
|
-
$[
|
|
5556
|
-
$[
|
|
5557
|
-
$[
|
|
5558
|
-
$[
|
|
5559
|
-
|
|
5560
|
-
|
|
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;
|
|
5561
5745
|
};
|
|
5562
5746
|
//#endregion
|
|
5563
5747
|
//#region src/components/ds-checkbox/ds-checkbox.types.ts
|
|
5564
5748
|
const checkboxVariants = ["default", "warning"];
|
|
5565
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
|
|
5566
5828
|
//#region src/components/ds-chip/ds-chip.module.scss
|
|
5567
5829
|
var ds_chip_module_default = {
|
|
5568
5830
|
"chip": "w6Idwa_chip",
|
|
@@ -5812,7 +6074,7 @@ const DsChipGroup = ({ items, label = "Filtered by:", onClearAll, onItemDelete,
|
|
|
5812
6074
|
/* @__PURE__ */ jsxs(RadixDialog.Root, {
|
|
5813
6075
|
open: dialogOpen,
|
|
5814
6076
|
onOpenChange: setDialogOpen,
|
|
5815
|
-
children: [/* @__PURE__ */ jsx(Root
|
|
6077
|
+
children: [/* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Title, {}) }), /* @__PURE__ */ jsx(RadixDialog.Portal, { children: /* @__PURE__ */ jsx(RadixDialog.Content, {
|
|
5816
6078
|
style: dialogStyle,
|
|
5817
6079
|
className: ds_chip_group_module_default.dialog,
|
|
5818
6080
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -7663,7 +7925,7 @@ const DsDrawer = (t0) => {
|
|
|
7663
7925
|
} else t15 = $[24];
|
|
7664
7926
|
return t15;
|
|
7665
7927
|
};
|
|
7666
|
-
const Header$
|
|
7928
|
+
const Header$2 = (t0) => {
|
|
7667
7929
|
const $ = c(6);
|
|
7668
7930
|
const { style, className, children } = t0;
|
|
7669
7931
|
let t1;
|
|
@@ -7795,7 +8057,7 @@ const Body$1 = (t0) => {
|
|
|
7795
8057
|
} else t2 = $[5];
|
|
7796
8058
|
return t2;
|
|
7797
8059
|
};
|
|
7798
|
-
const Footer$
|
|
8060
|
+
const Footer$2 = (t0) => {
|
|
7799
8061
|
const $ = c(6);
|
|
7800
8062
|
const { style, className, children } = t0;
|
|
7801
8063
|
let t1;
|
|
@@ -7841,12 +8103,12 @@ const Actions$1 = (t0) => {
|
|
|
7841
8103
|
} else t2 = $[5];
|
|
7842
8104
|
return t2;
|
|
7843
8105
|
};
|
|
7844
|
-
DsDrawer.Header = Header$
|
|
8106
|
+
DsDrawer.Header = Header$2;
|
|
7845
8107
|
DsDrawer.Title = Title$1;
|
|
7846
8108
|
DsDrawer.CloseTrigger = CloseTrigger$1;
|
|
7847
8109
|
DsDrawer.Toolbar = Toolbar;
|
|
7848
8110
|
DsDrawer.Body = Body$1;
|
|
7849
|
-
DsDrawer.Footer = Footer$
|
|
8111
|
+
DsDrawer.Footer = Footer$2;
|
|
7850
8112
|
DsDrawer.Actions = Actions$1;
|
|
7851
8113
|
//#endregion
|
|
7852
8114
|
//#region src/components/ds-tag-filter/ds-tag-filter.module.scss
|
|
@@ -8459,7 +8721,7 @@ const DsModal = (t0) => {
|
|
|
8459
8721
|
} else t12 = $[19];
|
|
8460
8722
|
return t12;
|
|
8461
8723
|
};
|
|
8462
|
-
const Header = (t0) => {
|
|
8724
|
+
const Header$1 = (t0) => {
|
|
8463
8725
|
const $ = c(6);
|
|
8464
8726
|
const { style, className, children } = t0;
|
|
8465
8727
|
let t1;
|
|
@@ -8562,7 +8824,7 @@ const Body = (t0) => {
|
|
|
8562
8824
|
} else t2 = $[5];
|
|
8563
8825
|
return t2;
|
|
8564
8826
|
};
|
|
8565
|
-
const Footer = (t0) => {
|
|
8827
|
+
const Footer$1 = (t0) => {
|
|
8566
8828
|
const $ = c(6);
|
|
8567
8829
|
const { style, className, children } = t0;
|
|
8568
8830
|
let t1;
|
|
@@ -8608,11 +8870,11 @@ const Actions = (t0) => {
|
|
|
8608
8870
|
} else t2 = $[5];
|
|
8609
8871
|
return t2;
|
|
8610
8872
|
};
|
|
8611
|
-
DsModal.Header = Header;
|
|
8873
|
+
DsModal.Header = Header$1;
|
|
8612
8874
|
DsModal.Title = Title;
|
|
8613
8875
|
DsModal.CloseTrigger = CloseTrigger;
|
|
8614
8876
|
DsModal.Body = Body;
|
|
8615
|
-
DsModal.Footer = Footer;
|
|
8877
|
+
DsModal.Footer = Footer$1;
|
|
8616
8878
|
DsModal.Actions = Actions;
|
|
8617
8879
|
//#endregion
|
|
8618
8880
|
//#region src/components/ds-tabs/components/ds-tabs-list/ds-tabs-list.module.scss
|
|
@@ -10778,13 +11040,16 @@ const useControlled = (value, setValue, defaultValue) => {
|
|
|
10778
11040
|
//#region src/components/ds-time-picker/ds-time-picker.module.scss
|
|
10779
11041
|
var ds_time_picker_module_default = {
|
|
10780
11042
|
"clearTrigger": "qkvYYW_clearTrigger",
|
|
11043
|
+
"collapse": "qkvYYW_collapse",
|
|
11044
|
+
"content": "qkvYYW_content",
|
|
11045
|
+
"expand": "qkvYYW_expand",
|
|
10781
11046
|
"root": "qkvYYW_root"
|
|
10782
11047
|
};
|
|
10783
11048
|
//#endregion
|
|
10784
11049
|
//#region src/components/ds-time-picker/ds-time-picker.tsx
|
|
10785
11050
|
const DsTimePicker = (props) => {
|
|
10786
|
-
const $ = c(
|
|
10787
|
-
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;
|
|
10788
11053
|
const hideClearButton = t0 === void 0 ? false : t0;
|
|
10789
11054
|
const disablePortal = t1 === void 0 ? false : t1;
|
|
10790
11055
|
const [value, setValue] = useControlled(props.value, props.onChange, props.defaultValue ?? null);
|
|
@@ -10857,12 +11122,13 @@ const DsTimePicker = (props) => {
|
|
|
10857
11122
|
} else t7 = $[12];
|
|
10858
11123
|
const resetInput = t7;
|
|
10859
11124
|
let t8;
|
|
10860
|
-
if ($[13] !==
|
|
11125
|
+
if ($[13] !== onBlur || $[14] !== resetInput || $[15] !== setValue || $[16] !== value) {
|
|
10861
11126
|
t8 = () => {
|
|
10862
11127
|
setIsFocused(false);
|
|
10863
11128
|
const inputVal_0 = inputRef.current?.value ?? "";
|
|
10864
11129
|
if (!inputVal_0) {
|
|
10865
11130
|
setValue(null);
|
|
11131
|
+
onBlur?.();
|
|
10866
11132
|
return;
|
|
10867
11133
|
}
|
|
10868
11134
|
const parsed_0 = parseTime(inputVal_0);
|
|
@@ -10871,45 +11137,47 @@ const DsTimePicker = (props) => {
|
|
|
10871
11137
|
newDate_0.setHours(parsed_0.hours, parsed_0.minutes, 0, 0);
|
|
10872
11138
|
setValue(newDate_0);
|
|
10873
11139
|
} else resetInput();
|
|
11140
|
+
onBlur?.();
|
|
10874
11141
|
};
|
|
10875
|
-
$[13] =
|
|
10876
|
-
$[14] =
|
|
10877
|
-
$[15] =
|
|
10878
|
-
$[16] =
|
|
10879
|
-
|
|
11142
|
+
$[13] = onBlur;
|
|
11143
|
+
$[14] = resetInput;
|
|
11144
|
+
$[15] = setValue;
|
|
11145
|
+
$[16] = value;
|
|
11146
|
+
$[17] = t8;
|
|
11147
|
+
} else t8 = $[17];
|
|
10880
11148
|
const handleBlur = t8;
|
|
10881
11149
|
let t9;
|
|
10882
|
-
if ($[
|
|
11150
|
+
if ($[18] !== disabled || $[19] !== readOnly || $[20] !== setIsOpen) {
|
|
10883
11151
|
t9 = (details) => {
|
|
10884
11152
|
if (disabled || readOnly) return;
|
|
10885
11153
|
setIsOpen(details.open);
|
|
10886
11154
|
};
|
|
10887
|
-
$[
|
|
10888
|
-
$[
|
|
10889
|
-
$[
|
|
10890
|
-
$[
|
|
10891
|
-
} else t9 = $[
|
|
11155
|
+
$[18] = disabled;
|
|
11156
|
+
$[19] = readOnly;
|
|
11157
|
+
$[20] = setIsOpen;
|
|
11158
|
+
$[21] = t9;
|
|
11159
|
+
} else t9 = $[21];
|
|
10892
11160
|
const handleOpenChange = t9;
|
|
10893
11161
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
10894
11162
|
const Wrapper = disablePortal ? Fragment$1 : Portal;
|
|
10895
11163
|
let t10;
|
|
10896
|
-
if ($[
|
|
11164
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
10897
11165
|
t10 = {
|
|
10898
11166
|
placement: "bottom-start",
|
|
10899
11167
|
gutter: 4
|
|
10900
11168
|
};
|
|
10901
|
-
$[
|
|
10902
|
-
} else t10 = $[
|
|
11169
|
+
$[22] = t10;
|
|
11170
|
+
} else t10 = $[22];
|
|
10903
11171
|
let t11;
|
|
10904
|
-
if ($[
|
|
11172
|
+
if ($[23] !== className) {
|
|
10905
11173
|
t11 = classNames(ds_time_picker_module_default.root, className);
|
|
10906
|
-
$[
|
|
10907
|
-
$[
|
|
10908
|
-
} else t11 = $[
|
|
11174
|
+
$[23] = className;
|
|
11175
|
+
$[24] = t11;
|
|
11176
|
+
} else t11 = $[24];
|
|
10909
11177
|
const t12 = placeholder ?? "hh:mm AM/PM";
|
|
10910
11178
|
const t13 = slotProps?.input;
|
|
10911
11179
|
let t14;
|
|
10912
|
-
if ($[
|
|
11180
|
+
if ($[25] !== disabled || $[26] !== locale?.clearLabel || $[27] !== locale?.openLabel || $[28] !== readOnly || $[29] !== setValue || $[30] !== showClearButton || $[31] !== slotProps?.input?.slots?.endAdornment) {
|
|
10913
11181
|
t14 = slotProps?.input?.slots?.endAdornment ?? /* @__PURE__ */ jsxs(Fragment, { children: [showClearButton && /* @__PURE__ */ jsx(DsButton, {
|
|
10914
11182
|
className: ds_time_picker_module_default.clearTrigger,
|
|
10915
11183
|
design: "v1.2",
|
|
@@ -10937,28 +11205,28 @@ const DsTimePicker = (props) => {
|
|
|
10937
11205
|
})
|
|
10938
11206
|
})
|
|
10939
11207
|
})] });
|
|
10940
|
-
$[
|
|
10941
|
-
$[
|
|
10942
|
-
$[
|
|
10943
|
-
$[
|
|
10944
|
-
$[
|
|
10945
|
-
$[
|
|
10946
|
-
$[
|
|
10947
|
-
$[
|
|
10948
|
-
} 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];
|
|
10949
11217
|
const t15 = slotProps?.input?.slots;
|
|
10950
11218
|
let t16;
|
|
10951
|
-
if ($[
|
|
11219
|
+
if ($[33] !== t14 || $[34] !== t15) {
|
|
10952
11220
|
t16 = {
|
|
10953
11221
|
endAdornment: t14,
|
|
10954
11222
|
...t15
|
|
10955
11223
|
};
|
|
10956
|
-
$[
|
|
10957
|
-
$[
|
|
10958
|
-
$[
|
|
10959
|
-
} else t16 = $[
|
|
11224
|
+
$[33] = t14;
|
|
11225
|
+
$[34] = t15;
|
|
11226
|
+
$[35] = t16;
|
|
11227
|
+
} else t16 = $[35];
|
|
10960
11228
|
let t17;
|
|
10961
|
-
if ($[
|
|
11229
|
+
if ($[36] !== disabled || $[37] !== formattedValue || $[38] !== handleBlur || $[39] !== handleInputChange || $[40] !== id || $[41] !== readOnly || $[42] !== t12 || $[43] !== t13 || $[44] !== t16) {
|
|
10962
11230
|
t17 = /* @__PURE__ */ jsx(DsTextInput, {
|
|
10963
11231
|
ref: inputRef,
|
|
10964
11232
|
id,
|
|
@@ -10972,19 +11240,19 @@ const DsTimePicker = (props) => {
|
|
|
10972
11240
|
...t13,
|
|
10973
11241
|
slots: t16
|
|
10974
11242
|
});
|
|
10975
|
-
$[
|
|
10976
|
-
$[
|
|
10977
|
-
$[
|
|
10978
|
-
$[
|
|
10979
|
-
$[
|
|
10980
|
-
$[
|
|
10981
|
-
$[
|
|
10982
|
-
$[
|
|
10983
|
-
$[
|
|
10984
|
-
$[
|
|
10985
|
-
} 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];
|
|
10986
11254
|
let t18;
|
|
10987
|
-
if ($[
|
|
11255
|
+
if ($[46] !== ref || $[47] !== t11 || $[48] !== t17) {
|
|
10988
11256
|
t18 = /* @__PURE__ */ jsx(Popover.Anchor, {
|
|
10989
11257
|
asChild: true,
|
|
10990
11258
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10993,63 +11261,72 @@ const DsTimePicker = (props) => {
|
|
|
10993
11261
|
children: t17
|
|
10994
11262
|
})
|
|
10995
11263
|
});
|
|
10996
|
-
$[
|
|
10997
|
-
$[
|
|
10998
|
-
$[
|
|
10999
|
-
$[
|
|
11000
|
-
} else t18 = $[
|
|
11264
|
+
$[46] = ref;
|
|
11265
|
+
$[47] = t11;
|
|
11266
|
+
$[48] = t17;
|
|
11267
|
+
$[49] = t18;
|
|
11268
|
+
} else t18 = $[49];
|
|
11001
11269
|
const t19 = slotProps?.popover;
|
|
11002
|
-
|
|
11003
|
-
if ($[49] !== max || $[50] !== min || $[51] !== setValue || $[52] !== value) {
|
|
11004
|
-
t20 = timeScrollerAdapter(value, setValue, min, max);
|
|
11005
|
-
$[49] = max;
|
|
11006
|
-
$[50] = min;
|
|
11007
|
-
$[51] = setValue;
|
|
11008
|
-
$[52] = value;
|
|
11009
|
-
$[53] = t20;
|
|
11010
|
-
} else t20 = $[53];
|
|
11270
|
+
const t20 = slotProps?.popover?.className;
|
|
11011
11271
|
let t21;
|
|
11012
|
-
if ($[
|
|
11013
|
-
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, {
|
|
11014
11289
|
open: isOpen,
|
|
11015
|
-
...
|
|
11290
|
+
...t22
|
|
11016
11291
|
});
|
|
11017
|
-
$[
|
|
11018
|
-
$[
|
|
11019
|
-
$[
|
|
11020
|
-
} else
|
|
11021
|
-
let
|
|
11022
|
-
if ($[
|
|
11023
|
-
|
|
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, {
|
|
11024
11299
|
...t19,
|
|
11025
|
-
|
|
11300
|
+
className: t21,
|
|
11301
|
+
children: t23
|
|
11026
11302
|
}) });
|
|
11027
|
-
$[
|
|
11028
|
-
$[
|
|
11029
|
-
$[59] = t22;
|
|
11030
|
-
} else t22 = $[59];
|
|
11031
|
-
let t23;
|
|
11032
|
-
if ($[60] !== Wrapper || $[61] !== t22) {
|
|
11033
|
-
t23 = /* @__PURE__ */ jsx(Wrapper, { children: t22 });
|
|
11034
|
-
$[60] = Wrapper;
|
|
11035
|
-
$[61] = t22;
|
|
11303
|
+
$[60] = t19;
|
|
11304
|
+
$[61] = t21;
|
|
11036
11305
|
$[62] = t23;
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
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, {
|
|
11041
11318
|
open: isOpen,
|
|
11042
11319
|
onOpenChange: handleOpenChange,
|
|
11043
11320
|
positioning: t10,
|
|
11044
|
-
children: [t18,
|
|
11045
|
-
});
|
|
11046
|
-
$[
|
|
11047
|
-
$[
|
|
11048
|
-
$[
|
|
11049
|
-
$[
|
|
11050
|
-
$[
|
|
11051
|
-
} else
|
|
11052
|
-
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;
|
|
11053
11330
|
};
|
|
11054
11331
|
//#endregion
|
|
11055
11332
|
//#region src/components/ds-date-picker/ds-date-picker.module.scss
|
|
@@ -11285,7 +11562,7 @@ function _temp3$1(datePicker) {
|
|
|
11285
11562
|
//#endregion
|
|
11286
11563
|
//#region src/components/ds-date-picker/ds-date-picker.tsx
|
|
11287
11564
|
const DsDatePicker = (t0) => {
|
|
11288
|
-
const $ = c(
|
|
11565
|
+
const $ = c(123);
|
|
11289
11566
|
let _defaultValue;
|
|
11290
11567
|
let _max;
|
|
11291
11568
|
let _min;
|
|
@@ -11294,6 +11571,7 @@ const DsDatePicker = (t0) => {
|
|
|
11294
11571
|
let disabled;
|
|
11295
11572
|
let id;
|
|
11296
11573
|
let locale;
|
|
11574
|
+
let onBlur;
|
|
11297
11575
|
let onChange;
|
|
11298
11576
|
let onOpenChange;
|
|
11299
11577
|
let placeholder;
|
|
@@ -11305,7 +11583,7 @@ const DsDatePicker = (t0) => {
|
|
|
11305
11583
|
let t3;
|
|
11306
11584
|
let t4;
|
|
11307
11585
|
if ($[0] !== t0) {
|
|
11308
|
-
({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);
|
|
11309
11587
|
$[0] = t0;
|
|
11310
11588
|
$[1] = _defaultValue;
|
|
11311
11589
|
$[2] = _max;
|
|
@@ -11315,16 +11593,17 @@ const DsDatePicker = (t0) => {
|
|
|
11315
11593
|
$[6] = disabled;
|
|
11316
11594
|
$[7] = id;
|
|
11317
11595
|
$[8] = locale;
|
|
11318
|
-
$[9] =
|
|
11319
|
-
$[10] =
|
|
11320
|
-
$[11] =
|
|
11321
|
-
$[12] =
|
|
11322
|
-
$[13] =
|
|
11323
|
-
$[14] =
|
|
11324
|
-
$[15] =
|
|
11325
|
-
$[16] =
|
|
11326
|
-
$[17] =
|
|
11327
|
-
$[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;
|
|
11328
11607
|
} else {
|
|
11329
11608
|
_defaultValue = $[1];
|
|
11330
11609
|
_max = $[2];
|
|
@@ -11334,84 +11613,85 @@ const DsDatePicker = (t0) => {
|
|
|
11334
11613
|
disabled = $[6];
|
|
11335
11614
|
id = $[7];
|
|
11336
11615
|
locale = $[8];
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
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];
|
|
11347
11627
|
}
|
|
11348
11628
|
const withTime = t1 === void 0 ? false : t1;
|
|
11349
11629
|
const closeOnSelect = t2 === void 0 ? true : t2;
|
|
11350
11630
|
const disablePortal = t3 === void 0 ? false : t3;
|
|
11351
11631
|
const hideClearButton = t4 === void 0 ? false : t4;
|
|
11352
11632
|
let t5;
|
|
11353
|
-
if ($[
|
|
11633
|
+
if ($[20] !== _defaultValue) {
|
|
11354
11634
|
t5 = toIntlDate(_defaultValue);
|
|
11355
|
-
$[
|
|
11356
|
-
$[
|
|
11357
|
-
} else t5 = $[
|
|
11635
|
+
$[20] = _defaultValue;
|
|
11636
|
+
$[21] = t5;
|
|
11637
|
+
} else t5 = $[21];
|
|
11358
11638
|
const defaultValue = t5;
|
|
11359
11639
|
let t6;
|
|
11360
|
-
if ($[
|
|
11640
|
+
if ($[22] !== _value) {
|
|
11361
11641
|
t6 = toIntlDate(_value);
|
|
11362
|
-
$[
|
|
11363
|
-
$[
|
|
11364
|
-
} else t6 = $[
|
|
11642
|
+
$[22] = _value;
|
|
11643
|
+
$[23] = t6;
|
|
11644
|
+
} else t6 = $[23];
|
|
11365
11645
|
let t7;
|
|
11366
|
-
if ($[
|
|
11646
|
+
if ($[24] !== onChange) {
|
|
11367
11647
|
t7 = onChange ? (v) => onChange(fromIntlDate(v)) : void 0;
|
|
11368
|
-
$[
|
|
11369
|
-
$[
|
|
11370
|
-
} else t7 = $[
|
|
11648
|
+
$[24] = onChange;
|
|
11649
|
+
$[25] = t7;
|
|
11650
|
+
} else t7 = $[25];
|
|
11371
11651
|
const [value, setValue] = useControlled(t6, t7, defaultValue ?? null);
|
|
11372
11652
|
let t8;
|
|
11373
|
-
if ($[
|
|
11653
|
+
if ($[26] !== _min) {
|
|
11374
11654
|
t8 = toIntlDate(_min);
|
|
11375
|
-
$[
|
|
11376
|
-
$[
|
|
11377
|
-
} else t8 = $[
|
|
11655
|
+
$[26] = _min;
|
|
11656
|
+
$[27] = t8;
|
|
11657
|
+
} else t8 = $[27];
|
|
11378
11658
|
const min = t8;
|
|
11379
11659
|
let t9;
|
|
11380
|
-
if ($[
|
|
11660
|
+
if ($[28] !== _max) {
|
|
11381
11661
|
t9 = toIntlDate(_max);
|
|
11382
|
-
$[
|
|
11383
|
-
$[
|
|
11384
|
-
} else t9 = $[
|
|
11662
|
+
$[28] = _max;
|
|
11663
|
+
$[29] = t9;
|
|
11664
|
+
} else t9 = $[29];
|
|
11385
11665
|
const max = t9;
|
|
11386
11666
|
const [isFocused, setIsFocused] = useState(false);
|
|
11387
11667
|
const [isOpen, setIsOpen] = useState(false);
|
|
11388
11668
|
const inputRef = useRef(null);
|
|
11389
11669
|
let t10;
|
|
11390
|
-
if ($[
|
|
11670
|
+
if ($[30] !== value || $[31] !== withTime) {
|
|
11391
11671
|
t10 = formatDate(value, withTime);
|
|
11392
|
-
$[
|
|
11393
|
-
$[
|
|
11394
|
-
$[
|
|
11395
|
-
} else t10 = $[
|
|
11672
|
+
$[30] = value;
|
|
11673
|
+
$[31] = withTime;
|
|
11674
|
+
$[32] = t10;
|
|
11675
|
+
} else t10 = $[32];
|
|
11396
11676
|
const formattedValue = t10;
|
|
11397
11677
|
let t11;
|
|
11398
11678
|
let t12;
|
|
11399
|
-
if ($[
|
|
11679
|
+
if ($[33] !== formattedValue || $[34] !== isFocused) {
|
|
11400
11680
|
t11 = () => {
|
|
11401
11681
|
if (!isFocused && inputRef.current) inputRef.current.value = formattedValue;
|
|
11402
11682
|
};
|
|
11403
11683
|
t12 = [isFocused, formattedValue];
|
|
11404
|
-
$[
|
|
11405
|
-
$[
|
|
11406
|
-
$[
|
|
11407
|
-
$[
|
|
11684
|
+
$[33] = formattedValue;
|
|
11685
|
+
$[34] = isFocused;
|
|
11686
|
+
$[35] = t11;
|
|
11687
|
+
$[36] = t12;
|
|
11408
11688
|
} else {
|
|
11409
|
-
t11 = $[
|
|
11410
|
-
t12 = $[
|
|
11689
|
+
t11 = $[35];
|
|
11690
|
+
t12 = $[36];
|
|
11411
11691
|
}
|
|
11412
11692
|
useEffect(t11, t12);
|
|
11413
11693
|
let t13;
|
|
11414
|
-
if ($[
|
|
11694
|
+
if ($[37] !== max || $[38] !== min || $[39] !== setValue || $[40] !== withTime) {
|
|
11415
11695
|
t13 = (e) => {
|
|
11416
11696
|
const text = e.target.value;
|
|
11417
11697
|
if (validateDateString({
|
|
@@ -11421,33 +11701,33 @@ const DsDatePicker = (t0) => {
|
|
|
11421
11701
|
withTime
|
|
11422
11702
|
})) setValue(parseDate$1(text));
|
|
11423
11703
|
};
|
|
11424
|
-
$[
|
|
11425
|
-
$[
|
|
11426
|
-
$[
|
|
11427
|
-
$[
|
|
11428
|
-
$[
|
|
11429
|
-
} else t13 = $[
|
|
11704
|
+
$[37] = max;
|
|
11705
|
+
$[38] = min;
|
|
11706
|
+
$[39] = setValue;
|
|
11707
|
+
$[40] = withTime;
|
|
11708
|
+
$[41] = t13;
|
|
11709
|
+
} else t13 = $[41];
|
|
11430
11710
|
const handleInputChange = t13;
|
|
11431
11711
|
let t14;
|
|
11432
|
-
if ($[
|
|
11712
|
+
if ($[42] !== formattedValue || $[43] !== value) {
|
|
11433
11713
|
t14 = () => {
|
|
11434
11714
|
if (inputRef.current) inputRef.current.value = value ? formattedValue : "";
|
|
11435
11715
|
};
|
|
11436
|
-
$[
|
|
11437
|
-
$[
|
|
11438
|
-
$[
|
|
11439
|
-
} else t14 = $[
|
|
11716
|
+
$[42] = formattedValue;
|
|
11717
|
+
$[43] = value;
|
|
11718
|
+
$[44] = t14;
|
|
11719
|
+
} else t14 = $[44];
|
|
11440
11720
|
const resetInput = t14;
|
|
11441
11721
|
let t15;
|
|
11442
|
-
if ($[
|
|
11722
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11443
11723
|
t15 = () => {
|
|
11444
11724
|
setIsFocused(true);
|
|
11445
11725
|
};
|
|
11446
|
-
$[
|
|
11447
|
-
} else t15 = $[
|
|
11726
|
+
$[45] = t15;
|
|
11727
|
+
} else t15 = $[45];
|
|
11448
11728
|
const handleFocus = t15;
|
|
11449
11729
|
let t16;
|
|
11450
|
-
if ($[
|
|
11730
|
+
if ($[46] !== max || $[47] !== min || $[48] !== onBlur || $[49] !== resetInput || $[50] !== setValue || $[51] !== withTime) {
|
|
11451
11731
|
t16 = () => {
|
|
11452
11732
|
setIsFocused(false);
|
|
11453
11733
|
const text_0 = inputRef.current?.value || "";
|
|
@@ -11458,63 +11738,65 @@ const DsDatePicker = (t0) => {
|
|
|
11458
11738
|
withTime
|
|
11459
11739
|
})) setValue(parseDate$1(text_0));
|
|
11460
11740
|
else resetInput();
|
|
11741
|
+
onBlur?.();
|
|
11461
11742
|
};
|
|
11462
|
-
$[
|
|
11463
|
-
$[
|
|
11464
|
-
$[
|
|
11465
|
-
$[
|
|
11466
|
-
$[
|
|
11467
|
-
$[
|
|
11468
|
-
|
|
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];
|
|
11469
11751
|
const handleBlur = t16;
|
|
11470
11752
|
const showClearButton = !hideClearButton && !disabled && !readOnly && !!value;
|
|
11471
11753
|
const Wrapper = disablePortal ? Fragment$1 : Portal;
|
|
11472
11754
|
let t17;
|
|
11473
|
-
if ($[
|
|
11755
|
+
if ($[53] !== value) {
|
|
11474
11756
|
t17 = value ? [value] : void 0;
|
|
11475
|
-
$[
|
|
11476
|
-
$[
|
|
11477
|
-
} else t17 = $[
|
|
11757
|
+
$[53] = value;
|
|
11758
|
+
$[54] = t17;
|
|
11759
|
+
} else t17 = $[54];
|
|
11478
11760
|
let t18;
|
|
11479
|
-
if ($[
|
|
11761
|
+
if ($[55] !== defaultValue) {
|
|
11480
11762
|
t18 = defaultValue ? [defaultValue] : void 0;
|
|
11481
|
-
$[
|
|
11482
|
-
$[
|
|
11483
|
-
} else t18 = $[
|
|
11763
|
+
$[55] = defaultValue;
|
|
11764
|
+
$[56] = t18;
|
|
11765
|
+
} else t18 = $[56];
|
|
11484
11766
|
let t19;
|
|
11485
|
-
if ($[
|
|
11767
|
+
if ($[57] !== setValue) {
|
|
11486
11768
|
t19 = (details) => {
|
|
11487
11769
|
setValue(details.value[0] ?? null);
|
|
11488
|
-
};
|
|
11489
|
-
$[
|
|
11490
|
-
$[
|
|
11491
|
-
} else t19 = $[
|
|
11770
|
+
};
|
|
11771
|
+
$[57] = setValue;
|
|
11772
|
+
$[58] = t19;
|
|
11773
|
+
} else t19 = $[58];
|
|
11492
11774
|
let t20;
|
|
11493
|
-
if ($[
|
|
11775
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11494
11776
|
t20 = {
|
|
11495
11777
|
placement: "bottom-start",
|
|
11496
11778
|
gutter: 4
|
|
11497
11779
|
};
|
|
11498
|
-
$[
|
|
11499
|
-
} else t20 = $[
|
|
11780
|
+
$[59] = t20;
|
|
11781
|
+
} else t20 = $[59];
|
|
11500
11782
|
const t21 = withTime ? false : closeOnSelect;
|
|
11501
11783
|
let t22;
|
|
11502
|
-
if ($[
|
|
11784
|
+
if ($[60] !== isFocused || $[61] !== onOpenChange) {
|
|
11503
11785
|
t22 = (details_0) => {
|
|
11504
11786
|
if (!isFocused) {
|
|
11505
11787
|
setIsOpen(details_0.open);
|
|
11506
11788
|
onOpenChange?.(details_0.open);
|
|
11507
11789
|
}
|
|
11508
11790
|
};
|
|
11509
|
-
$[
|
|
11510
|
-
$[
|
|
11511
|
-
$[
|
|
11512
|
-
} else t22 = $[
|
|
11791
|
+
$[60] = isFocused;
|
|
11792
|
+
$[61] = onOpenChange;
|
|
11793
|
+
$[62] = t22;
|
|
11794
|
+
} else t22 = $[62];
|
|
11513
11795
|
const t23 = placeholder ?? (withTime ? "mm/dd/yyyy, hh:mm AM/PM" : "mm/dd/yyyy");
|
|
11514
11796
|
const t24 = slotProps?.input;
|
|
11515
11797
|
const t25 = slotProps?.input?.slots;
|
|
11516
11798
|
let t26;
|
|
11517
|
-
if ($[
|
|
11799
|
+
if ($[63] !== disabled || $[64] !== locale?.clearLabel || $[65] !== setValue || $[66] !== showClearButton) {
|
|
11518
11800
|
t26 = showClearButton && /* @__PURE__ */ jsx(DatePicker.ClearTrigger, {
|
|
11519
11801
|
asChild: true,
|
|
11520
11802
|
onClick: () => setValue(null),
|
|
@@ -11531,23 +11813,23 @@ const DsDatePicker = (t0) => {
|
|
|
11531
11813
|
})
|
|
11532
11814
|
})
|
|
11533
11815
|
});
|
|
11534
|
-
$[
|
|
11535
|
-
$[
|
|
11536
|
-
$[
|
|
11537
|
-
$[
|
|
11538
|
-
$[
|
|
11539
|
-
} else t26 = $[
|
|
11816
|
+
$[63] = disabled;
|
|
11817
|
+
$[64] = locale?.clearLabel;
|
|
11818
|
+
$[65] = setValue;
|
|
11819
|
+
$[66] = showClearButton;
|
|
11820
|
+
$[67] = t26;
|
|
11821
|
+
} else t26 = $[67];
|
|
11540
11822
|
const t27 = locale?.openCalendarLabel ?? "Open calendar";
|
|
11541
11823
|
let t28;
|
|
11542
|
-
if ($[
|
|
11824
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11543
11825
|
t28 = /* @__PURE__ */ jsx(DsIcon, {
|
|
11544
11826
|
icon: "calendar_today",
|
|
11545
11827
|
size: "tiny"
|
|
11546
11828
|
});
|
|
11547
|
-
$[
|
|
11548
|
-
} else t28 = $[
|
|
11829
|
+
$[68] = t28;
|
|
11830
|
+
} else t28 = $[68];
|
|
11549
11831
|
let t29;
|
|
11550
|
-
if ($[
|
|
11832
|
+
if ($[69] !== disabled || $[70] !== t27) {
|
|
11551
11833
|
t29 = /* @__PURE__ */ jsx(DatePicker.Trigger, {
|
|
11552
11834
|
asChild: true,
|
|
11553
11835
|
children: /* @__PURE__ */ jsx(DsButton, {
|
|
@@ -11559,29 +11841,29 @@ const DsDatePicker = (t0) => {
|
|
|
11559
11841
|
children: t28
|
|
11560
11842
|
})
|
|
11561
11843
|
});
|
|
11562
|
-
$[
|
|
11563
|
-
$[
|
|
11564
|
-
$[
|
|
11565
|
-
} else t29 = $[
|
|
11844
|
+
$[69] = disabled;
|
|
11845
|
+
$[70] = t27;
|
|
11846
|
+
$[71] = t29;
|
|
11847
|
+
} else t29 = $[71];
|
|
11566
11848
|
let t30;
|
|
11567
|
-
if ($[
|
|
11849
|
+
if ($[72] !== t26 || $[73] !== t29) {
|
|
11568
11850
|
t30 = /* @__PURE__ */ jsxs(Fragment, { children: [t26, t29] });
|
|
11569
|
-
$[
|
|
11570
|
-
$[
|
|
11571
|
-
$[
|
|
11572
|
-
} else t30 = $[
|
|
11851
|
+
$[72] = t26;
|
|
11852
|
+
$[73] = t29;
|
|
11853
|
+
$[74] = t30;
|
|
11854
|
+
} else t30 = $[74];
|
|
11573
11855
|
let t31;
|
|
11574
|
-
if ($[
|
|
11856
|
+
if ($[75] !== t25 || $[76] !== t30) {
|
|
11575
11857
|
t31 = {
|
|
11576
11858
|
...t25,
|
|
11577
11859
|
endAdornment: t30
|
|
11578
11860
|
};
|
|
11579
|
-
$[
|
|
11580
|
-
$[
|
|
11581
|
-
$[
|
|
11582
|
-
} else t31 = $[
|
|
11861
|
+
$[75] = t25;
|
|
11862
|
+
$[76] = t30;
|
|
11863
|
+
$[77] = t31;
|
|
11864
|
+
} else t31 = $[77];
|
|
11583
11865
|
let t32;
|
|
11584
|
-
if ($[
|
|
11866
|
+
if ($[78] !== disabled || $[79] !== formattedValue || $[80] !== handleBlur || $[81] !== handleInputChange || $[82] !== id || $[83] !== readOnly || $[84] !== t23 || $[85] !== t24 || $[86] !== t31) {
|
|
11585
11867
|
t32 = /* @__PURE__ */ jsx(DatePicker.Control, {
|
|
11586
11868
|
className: ds_date_picker_module_default.control,
|
|
11587
11869
|
children: /* @__PURE__ */ jsx(DsTextInput, {
|
|
@@ -11598,19 +11880,19 @@ const DsDatePicker = (t0) => {
|
|
|
11598
11880
|
slots: t31
|
|
11599
11881
|
})
|
|
11600
11882
|
});
|
|
11601
|
-
$[
|
|
11602
|
-
$[
|
|
11603
|
-
$[
|
|
11604
|
-
$[
|
|
11605
|
-
$[
|
|
11606
|
-
$[
|
|
11607
|
-
$[
|
|
11608
|
-
$[
|
|
11609
|
-
$[
|
|
11610
|
-
$[
|
|
11611
|
-
} 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];
|
|
11612
11894
|
let t33;
|
|
11613
|
-
if ($[
|
|
11895
|
+
if ($[88] !== _max || $[89] !== _min || $[90] !== disabled || $[91] !== max || $[92] !== min || $[93] !== readOnly || $[94] !== setValue || $[95] !== slotProps?.timePicker || $[96] !== value || $[97] !== withTime) {
|
|
11614
11896
|
t33 = withTime && /* @__PURE__ */ jsx(DsTimePicker, {
|
|
11615
11897
|
value: fromIntlDate(value),
|
|
11616
11898
|
onChange: (v_0) => {
|
|
@@ -11630,37 +11912,37 @@ const DsDatePicker = (t0) => {
|
|
|
11630
11912
|
...slotProps?.timePicker?.slotProps
|
|
11631
11913
|
}
|
|
11632
11914
|
});
|
|
11633
|
-
$[
|
|
11634
|
-
$[
|
|
11635
|
-
$[
|
|
11636
|
-
$[
|
|
11637
|
-
$[
|
|
11638
|
-
$[
|
|
11639
|
-
$[
|
|
11640
|
-
$[
|
|
11641
|
-
$[
|
|
11642
|
-
$[
|
|
11643
|
-
$[
|
|
11644
|
-
} 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];
|
|
11645
11927
|
let t34;
|
|
11646
|
-
if ($[
|
|
11928
|
+
if ($[99] !== t33) {
|
|
11647
11929
|
t34 = /* @__PURE__ */ jsx(DayView, { children: t33 });
|
|
11648
|
-
$[
|
|
11649
|
-
$[
|
|
11650
|
-
} else t34 = $[
|
|
11930
|
+
$[99] = t33;
|
|
11931
|
+
$[100] = t34;
|
|
11932
|
+
} else t34 = $[100];
|
|
11651
11933
|
let t35;
|
|
11652
11934
|
let t36;
|
|
11653
|
-
if ($[
|
|
11935
|
+
if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11654
11936
|
t35 = /* @__PURE__ */ jsx(MonthView, {});
|
|
11655
11937
|
t36 = /* @__PURE__ */ jsx(YearView, {});
|
|
11656
|
-
$[
|
|
11657
|
-
$[
|
|
11938
|
+
$[101] = t35;
|
|
11939
|
+
$[102] = t36;
|
|
11658
11940
|
} else {
|
|
11659
|
-
t35 = $[
|
|
11660
|
-
t36 = $[
|
|
11941
|
+
t35 = $[101];
|
|
11942
|
+
t36 = $[102];
|
|
11661
11943
|
}
|
|
11662
11944
|
let t37;
|
|
11663
|
-
if ($[
|
|
11945
|
+
if ($[103] !== t34) {
|
|
11664
11946
|
t37 = /* @__PURE__ */ jsx(DatePicker.Positioner, {
|
|
11665
11947
|
className: ds_date_picker_module_default.positioner,
|
|
11666
11948
|
children: /* @__PURE__ */ jsxs(DatePicker.Content, {
|
|
@@ -11672,18 +11954,18 @@ const DsDatePicker = (t0) => {
|
|
|
11672
11954
|
]
|
|
11673
11955
|
})
|
|
11674
11956
|
});
|
|
11675
|
-
$[
|
|
11676
|
-
$[
|
|
11677
|
-
} else t37 = $[
|
|
11957
|
+
$[103] = t34;
|
|
11958
|
+
$[104] = t37;
|
|
11959
|
+
} else t37 = $[104];
|
|
11678
11960
|
let t38;
|
|
11679
|
-
if ($[
|
|
11961
|
+
if ($[105] !== Wrapper || $[106] !== t37) {
|
|
11680
11962
|
t38 = /* @__PURE__ */ jsx(Wrapper, { children: t37 });
|
|
11681
|
-
$[
|
|
11682
|
-
$[
|
|
11683
|
-
$[
|
|
11684
|
-
} else t38 = $[
|
|
11963
|
+
$[105] = Wrapper;
|
|
11964
|
+
$[106] = t37;
|
|
11965
|
+
$[107] = t38;
|
|
11966
|
+
} else t38 = $[107];
|
|
11685
11967
|
let t39;
|
|
11686
|
-
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) {
|
|
11687
11969
|
t39 = /* @__PURE__ */ jsxs(DatePicker.Root, {
|
|
11688
11970
|
className,
|
|
11689
11971
|
value: t17,
|
|
@@ -11701,22 +11983,22 @@ const DsDatePicker = (t0) => {
|
|
|
11701
11983
|
...restProps,
|
|
11702
11984
|
children: [t32, t38]
|
|
11703
11985
|
});
|
|
11704
|
-
$[
|
|
11705
|
-
$[
|
|
11706
|
-
$[
|
|
11707
|
-
$[
|
|
11708
|
-
$[
|
|
11709
|
-
$[
|
|
11710
|
-
$[
|
|
11711
|
-
$[
|
|
11712
|
-
$[
|
|
11713
|
-
$[
|
|
11714
|
-
$[
|
|
11715
|
-
$[
|
|
11716
|
-
$[
|
|
11717
|
-
$[
|
|
11718
|
-
$[
|
|
11719
|
-
} 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];
|
|
11720
12002
|
return t39;
|
|
11721
12003
|
};
|
|
11722
12004
|
//#endregion
|
|
@@ -12814,7 +13096,7 @@ const DsDialog = ({ open, onOpenChange, title, hideTitle, description, hideDescr
|
|
|
12814
13096
|
children: [
|
|
12815
13097
|
/* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
12816
13098
|
asChild: true,
|
|
12817
|
-
children: hideTitle ? /* @__PURE__ */ jsx(Root
|
|
13099
|
+
children: hideTitle ? /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
12818
13100
|
className: ds_dialog_module_default.title,
|
|
12819
13101
|
children: title
|
|
12820
13102
|
}) }) : /* @__PURE__ */ jsx(RadixDialog.Title, {
|
|
@@ -12824,7 +13106,7 @@ const DsDialog = ({ open, onOpenChange, title, hideTitle, description, hideDescr
|
|
|
12824
13106
|
}),
|
|
12825
13107
|
description && /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
12826
13108
|
asChild: true,
|
|
12827
|
-
children: hideDescription ? /* @__PURE__ */ jsx(Root
|
|
13109
|
+
children: hideDescription ? /* @__PURE__ */ jsx(Root, { children: /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
12828
13110
|
className: ds_dialog_module_default.description,
|
|
12829
13111
|
children: description
|
|
12830
13112
|
}) }) : /* @__PURE__ */ jsx(RadixDialog.Description, {
|
|
@@ -14185,22 +14467,24 @@ const filterStatuses = [
|
|
|
14185
14467
|
];
|
|
14186
14468
|
//#endregion
|
|
14187
14469
|
//#region src/components/ds-grid/ds-grid.tsx
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
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;
|
|
14192
14478
|
return /* @__PURE__ */ jsx("div", {
|
|
14193
|
-
className:
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14479
|
+
className: gridClass,
|
|
14480
|
+
style: {
|
|
14481
|
+
...style,
|
|
14482
|
+
...cssVars
|
|
14483
|
+
},
|
|
14197
14484
|
children
|
|
14198
14485
|
});
|
|
14199
14486
|
};
|
|
14200
|
-
|
|
14201
|
-
* Design system GridItem component
|
|
14202
|
-
*/
|
|
14203
|
-
const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14487
|
+
const DsGridItemBase = ({ children, colSpan, colStart, rowSpan, rowStart, className }) => {
|
|
14204
14488
|
return /* @__PURE__ */ jsx("div", {
|
|
14205
14489
|
className: classNames({
|
|
14206
14490
|
[`ds-grid-col-span-${String(colSpan)}`]: colSpan,
|
|
@@ -14212,6 +14496,10 @@ const DsGridItem = ({ children, colSpan, colStart, rowSpan, rowStart, className
|
|
|
14212
14496
|
});
|
|
14213
14497
|
};
|
|
14214
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
|
|
14215
14503
|
//#region src/components/ds-key-value-pair/ds-key-value-pair.module.scss
|
|
14216
14504
|
var ds_key_value_pair_module_default = {
|
|
14217
14505
|
"editorSlot": "_6K_oIW_editorSlot",
|
|
@@ -15408,7 +15696,7 @@ var ds_radio_group_module_default = {
|
|
|
15408
15696
|
/**
|
|
15409
15697
|
* Root component - provides radio group context
|
|
15410
15698
|
*/
|
|
15411
|
-
const Root$
|
|
15699
|
+
const Root$2 = (t0) => {
|
|
15412
15700
|
const $ = c(14);
|
|
15413
15701
|
let children;
|
|
15414
15702
|
let className;
|
|
@@ -15459,7 +15747,7 @@ const Root$3 = (t0) => {
|
|
|
15459
15747
|
* Item component - renders a single radio button with optional label
|
|
15460
15748
|
*/
|
|
15461
15749
|
const Item$1 = (t0) => {
|
|
15462
|
-
const $ = c(
|
|
15750
|
+
const $ = c(24);
|
|
15463
15751
|
let children;
|
|
15464
15752
|
let className;
|
|
15465
15753
|
let label;
|
|
@@ -15513,22 +15801,28 @@ const Item$1 = (t0) => {
|
|
|
15513
15801
|
t3 = $[11];
|
|
15514
15802
|
}
|
|
15515
15803
|
let t4;
|
|
15516
|
-
if ($[12] !== children || $[13] !== label
|
|
15517
|
-
t4 = label ? /* @__PURE__ */
|
|
15804
|
+
if ($[12] !== children || $[13] !== label) {
|
|
15805
|
+
t4 = label ? /* @__PURE__ */ jsx(RadioGroup.ItemText, {
|
|
15518
15806
|
className: ds_radio_group_module_default.radioLabel,
|
|
15519
|
-
children:
|
|
15520
|
-
className: ds_radio_group_module_default.labelInfo,
|
|
15521
|
-
children: labelInfo
|
|
15522
|
-
})]
|
|
15807
|
+
children: label
|
|
15523
15808
|
}) : children;
|
|
15524
15809
|
$[12] = children;
|
|
15525
15810
|
$[13] = label;
|
|
15526
|
-
$[14] =
|
|
15527
|
-
|
|
15528
|
-
} else t4 = $[15];
|
|
15811
|
+
$[14] = t4;
|
|
15812
|
+
} else t4 = $[14];
|
|
15529
15813
|
let t5;
|
|
15530
|
-
if ($[
|
|
15531
|
-
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, {
|
|
15532
15826
|
value,
|
|
15533
15827
|
className: t1,
|
|
15534
15828
|
style,
|
|
@@ -15536,17 +15830,19 @@ const Item$1 = (t0) => {
|
|
|
15536
15830
|
children: [
|
|
15537
15831
|
t2,
|
|
15538
15832
|
t3,
|
|
15539
|
-
t4
|
|
15833
|
+
t4,
|
|
15834
|
+
t5
|
|
15540
15835
|
]
|
|
15541
15836
|
});
|
|
15542
|
-
$[
|
|
15543
|
-
$[
|
|
15544
|
-
$[
|
|
15545
|
-
$[
|
|
15546
|
-
$[20] = value;
|
|
15837
|
+
$[17] = props;
|
|
15838
|
+
$[18] = style;
|
|
15839
|
+
$[19] = t1;
|
|
15840
|
+
$[20] = t4;
|
|
15547
15841
|
$[21] = t5;
|
|
15548
|
-
|
|
15549
|
-
|
|
15842
|
+
$[22] = value;
|
|
15843
|
+
$[23] = t6;
|
|
15844
|
+
} else t6 = $[23];
|
|
15845
|
+
return t6;
|
|
15550
15846
|
};
|
|
15551
15847
|
/**
|
|
15552
15848
|
* DEPRECATED: Legacy DsRadioGroup component with options array
|
|
@@ -15555,61 +15851,50 @@ const Item$1 = (t0) => {
|
|
|
15555
15851
|
*/
|
|
15556
15852
|
/* c8 ignore start */
|
|
15557
15853
|
const DsRadioGroupLegacy = (t0) => {
|
|
15558
|
-
const $ = c(
|
|
15559
|
-
|
|
15560
|
-
let defaultValue;
|
|
15561
|
-
let onValueChange;
|
|
15562
|
-
let options;
|
|
15563
|
-
let props;
|
|
15564
|
-
let value;
|
|
15565
|
-
if ($[0] !== t0) {
|
|
15566
|
-
({options, value, defaultValue, onValueChange, className, ...props} = t0);
|
|
15567
|
-
$[0] = t0;
|
|
15568
|
-
$[1] = className;
|
|
15569
|
-
$[2] = defaultValue;
|
|
15570
|
-
$[3] = onValueChange;
|
|
15571
|
-
$[4] = options;
|
|
15572
|
-
$[5] = props;
|
|
15573
|
-
$[6] = value;
|
|
15574
|
-
} else {
|
|
15575
|
-
className = $[1];
|
|
15576
|
-
defaultValue = $[2];
|
|
15577
|
-
onValueChange = $[3];
|
|
15578
|
-
options = $[4];
|
|
15579
|
-
props = $[5];
|
|
15580
|
-
value = $[6];
|
|
15581
|
-
}
|
|
15854
|
+
const $ = c(14);
|
|
15855
|
+
const { options, value, defaultValue, onValueChange, disabled, className, style } = t0;
|
|
15582
15856
|
let t1;
|
|
15583
|
-
if ($[
|
|
15857
|
+
if ($[0] !== className) {
|
|
15584
15858
|
t1 = classNames(ds_radio_group_module_default.radioGroupRoot, className);
|
|
15585
|
-
$[
|
|
15586
|
-
$[
|
|
15587
|
-
} else t1 = $[
|
|
15588
|
-
|
|
15589
|
-
if ($[9] !== options) {
|
|
15590
|
-
t2 = options.map(_temp$1);
|
|
15591
|
-
$[9] = options;
|
|
15592
|
-
$[10] = t2;
|
|
15593
|
-
} else t2 = $[10];
|
|
15859
|
+
$[0] = className;
|
|
15860
|
+
$[1] = t1;
|
|
15861
|
+
} else t1 = $[1];
|
|
15862
|
+
const t2 = value ?? void 0;
|
|
15594
15863
|
let t3;
|
|
15595
|
-
if ($[
|
|
15596
|
-
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, {
|
|
15597
15880
|
className: t1,
|
|
15598
|
-
|
|
15881
|
+
style,
|
|
15882
|
+
value: t2,
|
|
15599
15883
|
defaultValue,
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
children:
|
|
15884
|
+
disabled,
|
|
15885
|
+
onValueChange: t3,
|
|
15886
|
+
children: t4
|
|
15603
15887
|
});
|
|
15604
|
-
$[
|
|
15605
|
-
$[
|
|
15606
|
-
$[
|
|
15607
|
-
$[
|
|
15608
|
-
$[
|
|
15609
|
-
$[
|
|
15610
|
-
$[
|
|
15611
|
-
|
|
15612
|
-
|
|
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;
|
|
15613
15898
|
};
|
|
15614
15899
|
/* c8 ignore stop */
|
|
15615
15900
|
/**
|
|
@@ -15622,29 +15907,36 @@ const DsRadioGroupLegacy = (t0) => {
|
|
|
15622
15907
|
* </DsRadioGroup.Root>
|
|
15623
15908
|
*/
|
|
15624
15909
|
const DsRadioGroup = {
|
|
15625
|
-
Root: Root$
|
|
15910
|
+
Root: Root$2,
|
|
15626
15911
|
Item: Item$1
|
|
15627
15912
|
};
|
|
15628
15913
|
function _temp$1(option) {
|
|
15629
|
-
return /* @__PURE__ */ jsxs(
|
|
15914
|
+
return /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
15915
|
+
value: option.value,
|
|
15916
|
+
disabled: option.disabled,
|
|
15630
15917
|
className: ds_radio_group_module_default.radioItemContainer,
|
|
15631
|
-
children: [
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
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",
|
|
15644
15936
|
className: ds_radio_group_module_default.labelInfo,
|
|
15645
15937
|
children: option.labelInfo
|
|
15646
|
-
})
|
|
15647
|
-
|
|
15938
|
+
})
|
|
15939
|
+
]
|
|
15648
15940
|
}, option.value);
|
|
15649
15941
|
}
|
|
15650
15942
|
//#endregion
|
|
@@ -15661,7 +15953,7 @@ var ds_segment_group_module_default = {
|
|
|
15661
15953
|
/**
|
|
15662
15954
|
* Root component - provides segment group context
|
|
15663
15955
|
*/
|
|
15664
|
-
const Root$
|
|
15956
|
+
const Root$1 = (t0) => {
|
|
15665
15957
|
const $ = c(17);
|
|
15666
15958
|
let children;
|
|
15667
15959
|
let className;
|
|
@@ -15855,7 +16147,7 @@ const ItemText = (t0) => {
|
|
|
15855
16147
|
* </DsSegmentGroup.Root>
|
|
15856
16148
|
*/
|
|
15857
16149
|
const DsSegmentGroup = {
|
|
15858
|
-
Root: Root$
|
|
16150
|
+
Root: Root$1,
|
|
15859
16151
|
Item,
|
|
15860
16152
|
ItemText
|
|
15861
16153
|
};
|
|
@@ -19482,6 +19774,183 @@ DsVerticalTabs.List = DsVerticalTabsList;
|
|
|
19482
19774
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
19483
19775
|
DsVerticalTabs.Content = DsVerticalTabsContent;
|
|
19484
19776
|
//#endregion
|
|
19485
|
-
|
|
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 };
|
|
19486
19955
|
|
|
19487
19956
|
//# sourceMappingURL=index.js.map
|