@povio/ui 3.3.0 → 3.3.1
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/README.md +1 -1
- package/dist/browser-tests/checkbox/CheckboxGroupHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/CheckboxHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/checkbox-group.spec.d.ts +1 -0
- package/dist/browser-tests/checkbox/checkbox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/DateTimeHarnesses.d.ts +43 -0
- package/dist/browser-tests/datetime-picker/assertions.d.ts +9 -0
- package/dist/browser-tests/datetime-picker/date-input-focus.firefox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-range-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload/FileUploadHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload/file-upload.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload-container/FileUploadContainerHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload-container/file-upload-container.spec.d.ts +1 -0
- package/dist/browser-tests/input-upload/InputUploadHarness.d.ts +9 -0
- package/dist/browser-tests/input-upload/input-upload.spec.d.ts +1 -0
- package/dist/browser-tests/modal/ModalHarness.d.ts +5 -0
- package/dist/browser-tests/modal/modal.spec.d.ts +1 -0
- package/dist/browser-tests/number-input/NumberInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-input/number-input.spec.d.ts +1 -0
- package/dist/browser-tests/number-range-input/NumberRangeInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-range-input/number-range-input.spec.d.ts +1 -0
- package/dist/browser-tests/password-input/PasswordInputHarness.d.ts +6 -0
- package/dist/browser-tests/password-input/password-input.spec.d.ts +1 -0
- package/dist/browser-tests/radio-group/RadioGroupHarness.d.ts +15 -0
- package/dist/browser-tests/radio-group/radio-group.spec.d.ts +1 -0
- package/dist/browser-tests/selection/SelectionHarnesses.d.ts +61 -0
- package/dist/browser-tests/selection/autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/interactions.d.ts +2 -0
- package/dist/browser-tests/selection/query-autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/query-select.spec.d.ts +1 -0
- package/dist/browser-tests/selection/select.spec.d.ts +1 -0
- package/dist/browser-tests/slider/SliderHarness.d.ts +11 -0
- package/dist/browser-tests/slider/slider.spec.d.ts +1 -0
- package/dist/browser-tests/text-area/TextAreaHarness.d.ts +10 -0
- package/dist/browser-tests/text-area/text-area.spec.d.ts +1 -0
- package/dist/browser-tests/text-input/TextInputHarness.d.ts +10 -0
- package/dist/browser-tests/text-input/text-input.spec.d.ts +1 -0
- package/dist/browser-tests/toggle/ToggleHarness.d.ts +10 -0
- package/dist/browser-tests/toggle/toggle.spec.d.ts +1 -0
- package/dist/browser-tests/utils/blur.d.ts +22 -0
- package/dist/browser-tests/utils/events.d.ts +4 -0
- package/dist/browser-tests/utils/input.d.ts +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +206 -55
- package/dist/components/buttons/Button/button.cva.d.ts +1 -1
- package/dist/components/buttons/Button/button.cva.js +4 -4
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/pillButton.cva.js +4 -4
- package/dist/components/buttons/shared/ButtonContent.js +80 -22
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +222 -74
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +182 -56
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +128 -41
- package/dist/components/inputs/DateTime/shared/Calendar.js +339 -139
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +308 -114
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -35
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +229 -95
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +296 -115
- package/dist/components/inputs/DateTime/shared/DateField.js +306 -135
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +338 -140
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/File/FileUpload.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +261 -65
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +180 -48
- package/dist/components/inputs/File/shared/FileUploadContentError.js +265 -95
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +261 -99
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +234 -56
- package/dist/components/inputs/File/shared/ProgressBar.js +102 -15
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +313 -75
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +83 -23
- package/dist/components/inputs/Selection/Select/QuerySelect.js +96 -30
- package/dist/components/inputs/Selection/shared/SelectListBox.js +163 -51
- package/dist/components/inputs/Selection/shared/useSelectItems.js +108 -48
- package/dist/components/inputs/Skeleton/InputFrame.js +550 -177
- package/dist/components/inputs/TextEditor/TextEditor.js +389 -87
- package/dist/components/navigation/Accordion/Accordion.js +69 -22
- package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
- package/dist/components/navigation/Stepper/Stepper.js +67 -22
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/Modal/Modal.d.ts +3 -2
- package/dist/components/overlays/Modal/Modal.js +3 -1
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +110 -29
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
- package/dist/components/status/Alert/Alert.js +97 -30
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/text/Typography/Typography.js +23 -8
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.js +39 -8
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFormAutosave.js +120 -33
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/vitest.setup.browser.d.ts +6 -0
- package/package.json +1 -1
|
@@ -6,64 +6,216 @@ import "../../../../config/i18n.js";
|
|
|
6
6
|
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
7
7
|
import { FileIcon } from "../../../../assets/icons/File.js";
|
|
8
8
|
import { ProgressBar } from "./ProgressBar.js";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { clsx } from "clsx";
|
|
11
12
|
import { useTranslation } from "react-i18next";
|
|
12
13
|
//#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
|
|
13
|
-
var FileUploadContentLoading = (
|
|
14
|
+
var FileUploadContentLoading = (t0) => {
|
|
15
|
+
const $ = c(70);
|
|
16
|
+
const { index, variant, as, state, isDisabled, singleFile, onCancel, cancelButtonProps } = t0;
|
|
14
17
|
const { t } = useTranslation("ui");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[0] !== cancelButtonProps) {
|
|
20
|
+
t1 = cancelButtonProps ?? {};
|
|
21
|
+
$[0] = cancelButtonProps;
|
|
22
|
+
$[1] = t1;
|
|
23
|
+
} else t1 = $[1];
|
|
24
|
+
let cancelButtonRestProps;
|
|
25
|
+
let t2;
|
|
26
|
+
let t3;
|
|
27
|
+
let t4;
|
|
28
|
+
let t5;
|
|
29
|
+
if ($[2] !== t1) {
|
|
30
|
+
({color: t2, size: t3, variant: t4, width: t5, ...cancelButtonRestProps} = t1);
|
|
31
|
+
$[2] = t1;
|
|
32
|
+
$[3] = cancelButtonRestProps;
|
|
33
|
+
$[4] = t2;
|
|
34
|
+
$[5] = t3;
|
|
35
|
+
$[6] = t4;
|
|
36
|
+
$[7] = t5;
|
|
37
|
+
} else {
|
|
38
|
+
cancelButtonRestProps = $[3];
|
|
39
|
+
t2 = $[4];
|
|
40
|
+
t3 = $[5];
|
|
41
|
+
t4 = $[6];
|
|
42
|
+
t5 = $[7];
|
|
43
|
+
}
|
|
44
|
+
const cancelButtonColor = t2 === void 0 ? "secondary" : t2;
|
|
45
|
+
const cancelButtonSize = t3 === void 0 ? "xs" : t3;
|
|
46
|
+
const cancelButtonVariant = t4 === void 0 ? "outlined" : t4;
|
|
47
|
+
const cancelButtonWidth = t5 === void 0 ? "hug" : t5;
|
|
48
|
+
const t6 = variant === "vertical";
|
|
49
|
+
const t7 = variant === "horizontal";
|
|
50
|
+
const t8 = as === "button";
|
|
51
|
+
let t9;
|
|
52
|
+
if ($[8] !== t6 || $[9] !== t7 || $[10] !== t8) {
|
|
53
|
+
t9 = clsx("flex w-full flex-col items-center", {
|
|
54
|
+
"flex-col": t6,
|
|
55
|
+
"flex-row": t7,
|
|
56
|
+
"gap-file-upload-content-gap-content-to-button": t8
|
|
57
|
+
});
|
|
58
|
+
$[8] = t6;
|
|
59
|
+
$[9] = t7;
|
|
60
|
+
$[10] = t8;
|
|
61
|
+
$[11] = t9;
|
|
62
|
+
} else t9 = $[11];
|
|
63
|
+
const t10 = variant === "vertical";
|
|
64
|
+
const t11 = variant === "horizontal";
|
|
65
|
+
let t12;
|
|
66
|
+
if ($[12] !== isDisabled || $[13] !== t10 || $[14] !== t11) {
|
|
67
|
+
t12 = clsx("flex w-full items-center justify-between", {
|
|
68
|
+
"flex-col gap-file-upload-content-gap-text-to-progress": t10,
|
|
69
|
+
"flex-row gap-file-upload-content-gap-left-to-right-content": t11,
|
|
70
|
+
"opacity-50": isDisabled
|
|
71
|
+
});
|
|
72
|
+
$[12] = isDisabled;
|
|
73
|
+
$[13] = t10;
|
|
74
|
+
$[14] = t11;
|
|
75
|
+
$[15] = t12;
|
|
76
|
+
} else t12 = $[15];
|
|
77
|
+
const t13 = variant === "vertical";
|
|
78
|
+
const t14 = variant === "horizontal";
|
|
79
|
+
let t15;
|
|
80
|
+
if ($[16] !== t13 || $[17] !== t14) {
|
|
81
|
+
t15 = clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
|
|
82
|
+
"w-full flex-col": t13,
|
|
83
|
+
"w-1/2": t14
|
|
84
|
+
});
|
|
85
|
+
$[16] = t13;
|
|
86
|
+
$[17] = t14;
|
|
87
|
+
$[18] = t15;
|
|
88
|
+
} else t15 = $[18];
|
|
89
|
+
let t16;
|
|
90
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
+
t16 = /* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" });
|
|
92
|
+
$[19] = t16;
|
|
93
|
+
} else t16 = $[19];
|
|
94
|
+
const t17 = variant === "vertical";
|
|
95
|
+
const t18 = variant === "horizontal";
|
|
96
|
+
let t19;
|
|
97
|
+
if ($[20] !== t17 || $[21] !== t18) {
|
|
98
|
+
t19 = clsx("flex flex-col", {
|
|
99
|
+
"max-w-full gap-file-upload-content-gap-icon-to-content text-center": t17,
|
|
100
|
+
"max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": t18
|
|
101
|
+
});
|
|
102
|
+
$[20] = t17;
|
|
103
|
+
$[21] = t18;
|
|
104
|
+
$[22] = t19;
|
|
105
|
+
} else t19 = $[22];
|
|
106
|
+
const t20 = state.file?.name ?? state.displayName ?? "";
|
|
107
|
+
let t21;
|
|
108
|
+
if ($[23] !== t20) {
|
|
109
|
+
t21 = /* @__PURE__ */ jsx(Typography, {
|
|
110
|
+
variant: "prominent-1",
|
|
111
|
+
size: "label-1",
|
|
112
|
+
as: "span",
|
|
113
|
+
className: "self-stretch truncate text-center text-text-default-1",
|
|
114
|
+
children: t20
|
|
115
|
+
});
|
|
116
|
+
$[23] = t20;
|
|
117
|
+
$[24] = t21;
|
|
118
|
+
} else t21 = $[24];
|
|
119
|
+
const t22 = singleFile ? "label-2" : "label-3";
|
|
120
|
+
let t23;
|
|
121
|
+
if ($[25] !== state) {
|
|
122
|
+
t23 = FileUtils.getFileDisplaySize(state);
|
|
123
|
+
$[25] = state;
|
|
124
|
+
$[26] = t23;
|
|
125
|
+
} else t23 = $[26];
|
|
126
|
+
let t24;
|
|
127
|
+
if ($[27] !== t22 || $[28] !== t23) {
|
|
128
|
+
t24 = /* @__PURE__ */ jsx(Typography, {
|
|
129
|
+
variant: "default",
|
|
130
|
+
size: t22,
|
|
131
|
+
as: "span",
|
|
132
|
+
className: "text-text-default-2",
|
|
133
|
+
children: t23
|
|
134
|
+
});
|
|
135
|
+
$[27] = t22;
|
|
136
|
+
$[28] = t23;
|
|
137
|
+
$[29] = t24;
|
|
138
|
+
} else t24 = $[29];
|
|
139
|
+
let t25;
|
|
140
|
+
if ($[30] !== t19 || $[31] !== t21 || $[32] !== t24) {
|
|
141
|
+
t25 = /* @__PURE__ */ jsxs("div", {
|
|
142
|
+
className: t19,
|
|
143
|
+
children: [t21, t24]
|
|
144
|
+
});
|
|
145
|
+
$[30] = t19;
|
|
146
|
+
$[31] = t21;
|
|
147
|
+
$[32] = t24;
|
|
148
|
+
$[33] = t25;
|
|
149
|
+
} else t25 = $[33];
|
|
150
|
+
let t26;
|
|
151
|
+
if ($[34] !== t15 || $[35] !== t25) {
|
|
152
|
+
t26 = /* @__PURE__ */ jsxs("div", {
|
|
153
|
+
className: t15,
|
|
154
|
+
children: [t16, t25]
|
|
155
|
+
});
|
|
156
|
+
$[34] = t15;
|
|
157
|
+
$[35] = t25;
|
|
158
|
+
$[36] = t26;
|
|
159
|
+
} else t26 = $[36];
|
|
160
|
+
const t27 = variant === "horizontal";
|
|
161
|
+
const t28 = variant === "vertical";
|
|
162
|
+
let t29;
|
|
163
|
+
if ($[37] !== t27 || $[38] !== t28) {
|
|
164
|
+
t29 = clsx("flex items-center gap-1", {
|
|
165
|
+
"w-1/2": t27,
|
|
166
|
+
"w-full": t28
|
|
167
|
+
});
|
|
168
|
+
$[37] = t27;
|
|
169
|
+
$[38] = t28;
|
|
170
|
+
$[39] = t29;
|
|
171
|
+
} else t29 = $[39];
|
|
172
|
+
let t30;
|
|
173
|
+
if ($[40] !== state.progress) {
|
|
174
|
+
t30 = /* @__PURE__ */ jsx(ProgressBar, { progress: state.progress });
|
|
175
|
+
$[40] = state.progress;
|
|
176
|
+
$[41] = t30;
|
|
177
|
+
} else t30 = $[41];
|
|
178
|
+
let t31;
|
|
179
|
+
if ($[42] !== as || $[43] !== index || $[44] !== onCancel || $[45] !== variant) {
|
|
180
|
+
t31 = (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
|
|
181
|
+
label: "Cancel",
|
|
182
|
+
color: "secondary",
|
|
183
|
+
onPress: () => {
|
|
184
|
+
onCancel(index);
|
|
185
|
+
},
|
|
186
|
+
icon: CloseIcon
|
|
187
|
+
});
|
|
188
|
+
$[42] = as;
|
|
189
|
+
$[43] = index;
|
|
190
|
+
$[44] = onCancel;
|
|
191
|
+
$[45] = variant;
|
|
192
|
+
$[46] = t31;
|
|
193
|
+
} else t31 = $[46];
|
|
194
|
+
let t32;
|
|
195
|
+
if ($[47] !== t29 || $[48] !== t30 || $[49] !== t31) {
|
|
196
|
+
t32 = /* @__PURE__ */ jsxs("div", {
|
|
197
|
+
className: t29,
|
|
198
|
+
children: [t30, t31]
|
|
199
|
+
});
|
|
200
|
+
$[47] = t29;
|
|
201
|
+
$[48] = t30;
|
|
202
|
+
$[49] = t31;
|
|
203
|
+
$[50] = t32;
|
|
204
|
+
} else t32 = $[50];
|
|
205
|
+
let t33;
|
|
206
|
+
if ($[51] !== t12 || $[52] !== t26 || $[53] !== t32) {
|
|
207
|
+
t33 = /* @__PURE__ */ jsxs("div", {
|
|
208
|
+
className: t12,
|
|
209
|
+
children: [t26, t32]
|
|
210
|
+
});
|
|
211
|
+
$[51] = t12;
|
|
212
|
+
$[52] = t26;
|
|
213
|
+
$[53] = t32;
|
|
214
|
+
$[54] = t33;
|
|
215
|
+
} else t33 = $[54];
|
|
216
|
+
let t34;
|
|
217
|
+
if ($[55] !== as || $[56] !== cancelButtonColor || $[57] !== cancelButtonRestProps || $[58] !== cancelButtonSize || $[59] !== cancelButtonVariant || $[60] !== cancelButtonWidth || $[61] !== index || $[62] !== onCancel || $[63] !== t || $[64] !== variant) {
|
|
218
|
+
t34 = as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
|
|
67
219
|
variant: cancelButtonVariant,
|
|
68
220
|
size: cancelButtonSize,
|
|
69
221
|
color: cancelButtonColor,
|
|
@@ -72,9 +224,35 @@ var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleF
|
|
|
72
224
|
onPress: () => {
|
|
73
225
|
onCancel(index);
|
|
74
226
|
},
|
|
75
|
-
children: t(
|
|
76
|
-
})
|
|
77
|
-
|
|
227
|
+
children: t(_temp)
|
|
228
|
+
});
|
|
229
|
+
$[55] = as;
|
|
230
|
+
$[56] = cancelButtonColor;
|
|
231
|
+
$[57] = cancelButtonRestProps;
|
|
232
|
+
$[58] = cancelButtonSize;
|
|
233
|
+
$[59] = cancelButtonVariant;
|
|
234
|
+
$[60] = cancelButtonWidth;
|
|
235
|
+
$[61] = index;
|
|
236
|
+
$[62] = onCancel;
|
|
237
|
+
$[63] = t;
|
|
238
|
+
$[64] = variant;
|
|
239
|
+
$[65] = t34;
|
|
240
|
+
} else t34 = $[65];
|
|
241
|
+
let t35;
|
|
242
|
+
if ($[66] !== t33 || $[67] !== t34 || $[68] !== t9) {
|
|
243
|
+
t35 = /* @__PURE__ */ jsxs("div", {
|
|
244
|
+
className: t9,
|
|
245
|
+
children: [t33, t34]
|
|
246
|
+
});
|
|
247
|
+
$[66] = t33;
|
|
248
|
+
$[67] = t34;
|
|
249
|
+
$[68] = t9;
|
|
250
|
+
$[69] = t35;
|
|
251
|
+
} else t35 = $[69];
|
|
252
|
+
return t35;
|
|
78
253
|
};
|
|
254
|
+
function _temp($) {
|
|
255
|
+
return $.ui.fileUpload.cancel;
|
|
256
|
+
}
|
|
79
257
|
//#endregion
|
|
80
258
|
export { FileUploadContentLoading };
|
|
@@ -1,33 +1,120 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
3
|
import { progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition } from "./progressBar.cva.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
//#region src/components/inputs/File/shared/ProgressBar.tsx
|
|
6
|
-
var ProgressBar = (
|
|
7
|
+
var ProgressBar = (t0) => {
|
|
8
|
+
const $ = c(33);
|
|
9
|
+
const { progress: t1, valueLabel: t2 } = t0;
|
|
10
|
+
const progress = t1 === void 0 ? 0 : t1;
|
|
11
|
+
const valueLabel = t2 === void 0 ? "trailing" : t2;
|
|
7
12
|
const progressBarCva = UIOverrides.useCva("progressBar.cva", progressBarDefinition);
|
|
8
13
|
const progressBarTrackWrapperCva = UIOverrides.useCva("progressBar.trackWrapperCva", progressBarTrackWrapperDefinition);
|
|
9
14
|
const progressBarTrackCva = UIOverrides.useCva("progressBar.trackCva", progressBarTrackDefinition);
|
|
10
15
|
const progressBarFillCva = UIOverrides.useCva("progressBar.fillCva", progressBarFillDefinition);
|
|
11
16
|
const progressBarValueCva = UIOverrides.useCva("progressBar.valueCva", progressBarValueDefinition);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
let t3;
|
|
18
|
+
if ($[0] !== progressBarCva || $[1] !== valueLabel) {
|
|
19
|
+
t3 = progressBarCva({ valueLabel });
|
|
20
|
+
$[0] = progressBarCva;
|
|
21
|
+
$[1] = valueLabel;
|
|
22
|
+
$[2] = t3;
|
|
23
|
+
} else t3 = $[2];
|
|
24
|
+
let t4;
|
|
25
|
+
if ($[3] !== progressBarTrackWrapperCva) {
|
|
26
|
+
t4 = progressBarTrackWrapperCva();
|
|
27
|
+
$[3] = progressBarTrackWrapperCva;
|
|
28
|
+
$[4] = t4;
|
|
29
|
+
} else t4 = $[4];
|
|
30
|
+
let t5;
|
|
31
|
+
if ($[5] !== progressBarTrackCva) {
|
|
32
|
+
t5 = progressBarTrackCva({ part: "container" });
|
|
33
|
+
$[5] = progressBarTrackCva;
|
|
34
|
+
$[6] = t5;
|
|
35
|
+
} else t5 = $[6];
|
|
36
|
+
let t6;
|
|
37
|
+
if ($[7] !== progressBarTrackCva) {
|
|
38
|
+
t6 = progressBarTrackCva({ part: "background" });
|
|
39
|
+
$[7] = progressBarTrackCva;
|
|
40
|
+
$[8] = t6;
|
|
41
|
+
} else t6 = $[8];
|
|
42
|
+
let t7;
|
|
43
|
+
if ($[9] !== t6) {
|
|
44
|
+
t7 = /* @__PURE__ */ jsx("div", { className: t6 });
|
|
45
|
+
$[9] = t6;
|
|
46
|
+
$[10] = t7;
|
|
47
|
+
} else t7 = $[10];
|
|
48
|
+
let t8;
|
|
49
|
+
if ($[11] !== progressBarFillCva) {
|
|
50
|
+
t8 = progressBarFillCva();
|
|
51
|
+
$[11] = progressBarFillCva;
|
|
52
|
+
$[12] = t8;
|
|
53
|
+
} else t8 = $[12];
|
|
54
|
+
const t9 = `${progress}%`;
|
|
55
|
+
let t10;
|
|
56
|
+
if ($[13] !== t9) {
|
|
57
|
+
t10 = { width: t9 };
|
|
58
|
+
$[13] = t9;
|
|
59
|
+
$[14] = t10;
|
|
60
|
+
} else t10 = $[14];
|
|
61
|
+
let t11;
|
|
62
|
+
if ($[15] !== t10 || $[16] !== t8) {
|
|
63
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
64
|
+
className: t8,
|
|
65
|
+
style: t10
|
|
66
|
+
});
|
|
67
|
+
$[15] = t10;
|
|
68
|
+
$[16] = t8;
|
|
69
|
+
$[17] = t11;
|
|
70
|
+
} else t11 = $[17];
|
|
71
|
+
let t12;
|
|
72
|
+
if ($[18] !== t11 || $[19] !== t5 || $[20] !== t7) {
|
|
73
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
74
|
+
className: t5,
|
|
75
|
+
children: [t7, t11]
|
|
76
|
+
});
|
|
77
|
+
$[18] = t11;
|
|
78
|
+
$[19] = t5;
|
|
79
|
+
$[20] = t7;
|
|
80
|
+
$[21] = t12;
|
|
81
|
+
} else t12 = $[21];
|
|
82
|
+
let t13;
|
|
83
|
+
if ($[22] !== t12 || $[23] !== t4) {
|
|
84
|
+
t13 = /* @__PURE__ */ jsx("div", {
|
|
85
|
+
className: t4,
|
|
86
|
+
children: t12
|
|
87
|
+
});
|
|
88
|
+
$[22] = t12;
|
|
89
|
+
$[23] = t4;
|
|
90
|
+
$[24] = t13;
|
|
91
|
+
} else t13 = $[24];
|
|
92
|
+
let t14;
|
|
93
|
+
if ($[25] !== progress || $[26] !== progressBarValueCva || $[27] !== valueLabel) {
|
|
94
|
+
t14 = valueLabel !== "none" && /* @__PURE__ */ jsxs(Typography, {
|
|
24
95
|
variant: "default",
|
|
25
96
|
size: "label-2",
|
|
26
97
|
as: "span",
|
|
27
98
|
className: progressBarValueCva(),
|
|
28
99
|
children: [progress, "%"]
|
|
29
|
-
})
|
|
30
|
-
|
|
100
|
+
});
|
|
101
|
+
$[25] = progress;
|
|
102
|
+
$[26] = progressBarValueCva;
|
|
103
|
+
$[27] = valueLabel;
|
|
104
|
+
$[28] = t14;
|
|
105
|
+
} else t14 = $[28];
|
|
106
|
+
let t15;
|
|
107
|
+
if ($[29] !== t13 || $[30] !== t14 || $[31] !== t3) {
|
|
108
|
+
t15 = /* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: t3,
|
|
110
|
+
children: [t13, t14]
|
|
111
|
+
});
|
|
112
|
+
$[29] = t13;
|
|
113
|
+
$[30] = t14;
|
|
114
|
+
$[31] = t3;
|
|
115
|
+
$[32] = t15;
|
|
116
|
+
} else t15 = $[32];
|
|
117
|
+
return t15;
|
|
31
118
|
};
|
|
32
119
|
//#endregion
|
|
33
120
|
export { ProgressBar };
|