@povio/ui 3.2.3-rc.1 → 3.2.4-rc.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/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +142 -127
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +2 -17
- package/dist/components/inputs/DateTime/shared/DateField.js +92 -87
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -0
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +144 -134
- package/dist/components/inputs/DateTime/shared/usePreserveExternalFocusOnUnmount.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/usePreserveExternalFocusOnUnmount.js +32 -0
- package/dist/components/inputs/File/fileUpload.types.d.ts +2 -4
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +80 -85
- package/dist/components/inputs/File/shared/FileUploadContentError.js +97 -102
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +93 -98
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +109 -114
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +91 -111
- package/dist/config/uiConfig.context.d.ts +1 -0
- package/dist/config/uiConfig.context.js +2 -1
- package/dist/helpers/dynamicInputs.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/utils/date-time.utils.d.ts +0 -1
- package/dist/utils/date-time.utils.js +0 -34
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
//#region src/components/inputs/File/shared/FileUploadContentEmpty.tsx
|
|
9
9
|
var FileUploadContentEmpty = (t0) => {
|
|
10
|
-
const $ = c(
|
|
10
|
+
const $ = c(52);
|
|
11
11
|
const { variant, as, isDisabled, title, browseText, uploadText, singleFile, hideButton: t1, className, browseButtonProps } = t0;
|
|
12
12
|
const hideButton = t1 === void 0 ? false : t1;
|
|
13
13
|
let t2;
|
|
@@ -16,25 +16,22 @@ var FileUploadContentEmpty = (t0) => {
|
|
|
16
16
|
$[0] = browseButtonProps;
|
|
17
17
|
$[1] = t2;
|
|
18
18
|
} else t2 = $[1];
|
|
19
|
-
let browseButtonClassName;
|
|
20
19
|
let browseButtonRestProps;
|
|
21
20
|
let t3;
|
|
22
21
|
let t4;
|
|
23
22
|
let t5;
|
|
24
23
|
if ($[2] !== t2) {
|
|
25
|
-
({
|
|
24
|
+
({size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
|
|
26
25
|
$[2] = t2;
|
|
27
|
-
$[3] =
|
|
28
|
-
$[4] =
|
|
29
|
-
$[5] =
|
|
30
|
-
$[6] =
|
|
31
|
-
$[7] = t5;
|
|
26
|
+
$[3] = browseButtonRestProps;
|
|
27
|
+
$[4] = t3;
|
|
28
|
+
$[5] = t4;
|
|
29
|
+
$[6] = t5;
|
|
32
30
|
} else {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
t5 = $[7];
|
|
31
|
+
browseButtonRestProps = $[3];
|
|
32
|
+
t3 = $[4];
|
|
33
|
+
t4 = $[5];
|
|
34
|
+
t5 = $[6];
|
|
38
35
|
}
|
|
39
36
|
const browseButtonSize = t3 === void 0 ? "xs" : t3;
|
|
40
37
|
const browseButtonVariant = t4 === void 0 ? "outlined" : t4;
|
|
@@ -42,44 +39,44 @@ var FileUploadContentEmpty = (t0) => {
|
|
|
42
39
|
const t6 = variant === "vertical";
|
|
43
40
|
const t7 = variant === "horizontal";
|
|
44
41
|
let t8;
|
|
45
|
-
if ($[
|
|
42
|
+
if ($[7] !== className || $[8] !== t6 || $[9] !== t7) {
|
|
46
43
|
t8 = clsx("flex w-full items-center gap-file-upload-content-gap-text-to-text", className, {
|
|
47
44
|
"flex-col": t6,
|
|
48
45
|
"min-h-11 flex-row justify-between": t7
|
|
49
46
|
});
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
} else t8 = $[
|
|
47
|
+
$[7] = className;
|
|
48
|
+
$[8] = t6;
|
|
49
|
+
$[9] = t7;
|
|
50
|
+
$[10] = t8;
|
|
51
|
+
} else t8 = $[10];
|
|
55
52
|
const t9 = variant === "vertical";
|
|
56
53
|
const t10 = variant === "horizontal";
|
|
57
54
|
let t11;
|
|
58
|
-
if ($[
|
|
55
|
+
if ($[11] !== isDisabled || $[12] !== t10 || $[13] !== t9) {
|
|
59
56
|
t11 = clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
|
|
60
57
|
"flex-col": t9,
|
|
61
58
|
"flex-row": t10,
|
|
62
59
|
"opacity-50": isDisabled
|
|
63
60
|
});
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
} else t11 = $[
|
|
61
|
+
$[11] = isDisabled;
|
|
62
|
+
$[12] = t10;
|
|
63
|
+
$[13] = t9;
|
|
64
|
+
$[14] = t11;
|
|
65
|
+
} else t11 = $[14];
|
|
69
66
|
let t12;
|
|
70
|
-
if ($[
|
|
67
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71
68
|
t12 = /* @__PURE__ */ jsx(UploadIcon, { className: "h-6 w-6 text-text-default-1" });
|
|
72
|
-
$[
|
|
73
|
-
} else t12 = $[
|
|
69
|
+
$[15] = t12;
|
|
70
|
+
} else t12 = $[15];
|
|
74
71
|
const t13 = variant === "vertical";
|
|
75
72
|
let t14;
|
|
76
|
-
if ($[
|
|
73
|
+
if ($[16] !== t13) {
|
|
77
74
|
t14 = clsx("self-stretch text-text-default-1", { "text-center": t13 });
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
} else t14 = $[
|
|
75
|
+
$[16] = t13;
|
|
76
|
+
$[17] = t14;
|
|
77
|
+
} else t14 = $[17];
|
|
81
78
|
let t15;
|
|
82
|
-
if ($[
|
|
79
|
+
if ($[18] !== t14 || $[19] !== title) {
|
|
83
80
|
t15 = /* @__PURE__ */ jsx(Typography, {
|
|
84
81
|
variant: "prominent-1",
|
|
85
82
|
size: "label-1",
|
|
@@ -87,49 +84,49 @@ var FileUploadContentEmpty = (t0) => {
|
|
|
87
84
|
className: t14,
|
|
88
85
|
children: title
|
|
89
86
|
});
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
} else t15 = $[
|
|
87
|
+
$[18] = t14;
|
|
88
|
+
$[19] = title;
|
|
89
|
+
$[20] = t15;
|
|
90
|
+
} else t15 = $[20];
|
|
94
91
|
let t16;
|
|
95
|
-
if ($[
|
|
92
|
+
if ($[21] !== t11 || $[22] !== t15) {
|
|
96
93
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
97
94
|
className: t11,
|
|
98
95
|
children: [t12, t15]
|
|
99
96
|
});
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
} else t16 = $[
|
|
97
|
+
$[21] = t11;
|
|
98
|
+
$[22] = t15;
|
|
99
|
+
$[23] = t16;
|
|
100
|
+
} else t16 = $[23];
|
|
104
101
|
const t17 = variant === "vertical" && as === "button";
|
|
105
102
|
const t18 = as === "link";
|
|
106
103
|
const t19 = as === "button";
|
|
107
104
|
let t20;
|
|
108
|
-
if ($[
|
|
105
|
+
if ($[24] !== t17 || $[25] !== t18 || $[26] !== t19) {
|
|
109
106
|
t20 = clsx("flex items-center justify-center", {
|
|
110
107
|
"flex-col": t17,
|
|
111
108
|
"gap-file-upload-content-gap-text-to-text": t18,
|
|
112
109
|
"gap-file-upload-content-gap-content-to-button": t19
|
|
113
110
|
});
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
} else t20 = $[
|
|
111
|
+
$[24] = t17;
|
|
112
|
+
$[25] = t18;
|
|
113
|
+
$[26] = t19;
|
|
114
|
+
$[27] = t20;
|
|
115
|
+
} else t20 = $[27];
|
|
119
116
|
const t21 = singleFile ? "label-2" : "label-3";
|
|
120
117
|
const t22 = variant === "vertical";
|
|
121
118
|
let t23;
|
|
122
|
-
if ($[
|
|
119
|
+
if ($[28] !== isDisabled || $[29] !== t22) {
|
|
123
120
|
t23 = clsx("text-text-default-2", {
|
|
124
121
|
"text-center": t22,
|
|
125
122
|
"opacity-50": isDisabled
|
|
126
123
|
});
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else t23 = $[
|
|
124
|
+
$[28] = isDisabled;
|
|
125
|
+
$[29] = t22;
|
|
126
|
+
$[30] = t23;
|
|
127
|
+
} else t23 = $[30];
|
|
131
128
|
let t24;
|
|
132
|
-
if ($[
|
|
129
|
+
if ($[31] !== t21 || $[32] !== t23 || $[33] !== uploadText) {
|
|
133
130
|
t24 = /* @__PURE__ */ jsx(Typography, {
|
|
134
131
|
variant: "default",
|
|
135
132
|
size: t21,
|
|
@@ -137,58 +134,56 @@ var FileUploadContentEmpty = (t0) => {
|
|
|
137
134
|
className: t23,
|
|
138
135
|
children: uploadText
|
|
139
136
|
});
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
} else t24 = $[
|
|
137
|
+
$[31] = t21;
|
|
138
|
+
$[32] = t23;
|
|
139
|
+
$[33] = uploadText;
|
|
140
|
+
$[34] = t24;
|
|
141
|
+
} else t24 = $[34];
|
|
145
142
|
let t25;
|
|
146
|
-
if ($[
|
|
143
|
+
if ($[35] !== as || $[36] !== browseButtonRestProps || $[37] !== browseButtonSize || $[38] !== browseButtonVariant || $[39] !== browseButtonWidth || $[40] !== browseText || $[41] !== hideButton || $[42] !== isDisabled) {
|
|
147
144
|
t25 = !hideButton && browseText && (as === "link" ? /* @__PURE__ */ jsx(TextButton, {
|
|
148
145
|
className: "text-interactive-text-primary-idle lowercase",
|
|
149
146
|
children: browseText
|
|
150
147
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
151
|
-
...browseButtonRestProps,
|
|
152
148
|
variant: browseButtonVariant,
|
|
153
149
|
size: browseButtonSize,
|
|
154
150
|
width: browseButtonWidth,
|
|
151
|
+
...browseButtonRestProps,
|
|
155
152
|
isDisabled,
|
|
156
|
-
className: browseButtonClassName,
|
|
157
153
|
children: browseText
|
|
158
154
|
}));
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
|
|
169
|
-
} else t25 = $[45];
|
|
155
|
+
$[35] = as;
|
|
156
|
+
$[36] = browseButtonRestProps;
|
|
157
|
+
$[37] = browseButtonSize;
|
|
158
|
+
$[38] = browseButtonVariant;
|
|
159
|
+
$[39] = browseButtonWidth;
|
|
160
|
+
$[40] = browseText;
|
|
161
|
+
$[41] = hideButton;
|
|
162
|
+
$[42] = isDisabled;
|
|
163
|
+
$[43] = t25;
|
|
164
|
+
} else t25 = $[43];
|
|
170
165
|
let t26;
|
|
171
|
-
if ($[
|
|
166
|
+
if ($[44] !== t20 || $[45] !== t24 || $[46] !== t25) {
|
|
172
167
|
t26 = /* @__PURE__ */ jsxs("div", {
|
|
173
168
|
className: t20,
|
|
174
169
|
children: [t24, t25]
|
|
175
170
|
});
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
} else t26 = $[
|
|
171
|
+
$[44] = t20;
|
|
172
|
+
$[45] = t24;
|
|
173
|
+
$[46] = t25;
|
|
174
|
+
$[47] = t26;
|
|
175
|
+
} else t26 = $[47];
|
|
181
176
|
let t27;
|
|
182
|
-
if ($[
|
|
177
|
+
if ($[48] !== t16 || $[49] !== t26 || $[50] !== t8) {
|
|
183
178
|
t27 = /* @__PURE__ */ jsxs("div", {
|
|
184
179
|
className: t8,
|
|
185
180
|
children: [t16, t26]
|
|
186
181
|
});
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
} else t27 = $[
|
|
182
|
+
$[48] = t16;
|
|
183
|
+
$[49] = t26;
|
|
184
|
+
$[50] = t8;
|
|
185
|
+
$[51] = t27;
|
|
186
|
+
} else t27 = $[51];
|
|
192
187
|
return t27;
|
|
193
188
|
};
|
|
194
189
|
//#endregion
|
|
@@ -12,7 +12,7 @@ import { FileTrigger } from "react-aria-components";
|
|
|
12
12
|
import { useTranslation } from "react-i18next";
|
|
13
13
|
//#region src/components/inputs/File/shared/FileUploadContentError.tsx
|
|
14
14
|
var FileUploadContentError = (t0) => {
|
|
15
|
-
const $ = c(
|
|
15
|
+
const $ = c(63);
|
|
16
16
|
const { variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon: t1, singleFile, onRemove, browseButtonProps } = t0;
|
|
17
17
|
const removeWithIcon = t1 === void 0 ? false : t1;
|
|
18
18
|
const { t } = useTranslation("ui");
|
|
@@ -22,93 +22,90 @@ var FileUploadContentError = (t0) => {
|
|
|
22
22
|
$[0] = browseButtonProps;
|
|
23
23
|
$[1] = t2;
|
|
24
24
|
} else t2 = $[1];
|
|
25
|
-
let browseButtonClassName;
|
|
26
25
|
let browseButtonRestProps;
|
|
27
26
|
let t3;
|
|
28
27
|
let t4;
|
|
29
28
|
let t5;
|
|
30
29
|
if ($[2] !== t2) {
|
|
31
|
-
({
|
|
30
|
+
({size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
|
|
32
31
|
$[2] = t2;
|
|
33
|
-
$[3] =
|
|
34
|
-
$[4] =
|
|
35
|
-
$[5] =
|
|
36
|
-
$[6] =
|
|
37
|
-
$[7] = t5;
|
|
32
|
+
$[3] = browseButtonRestProps;
|
|
33
|
+
$[4] = t3;
|
|
34
|
+
$[5] = t4;
|
|
35
|
+
$[6] = t5;
|
|
38
36
|
} else {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
t5 = $[7];
|
|
37
|
+
browseButtonRestProps = $[3];
|
|
38
|
+
t3 = $[4];
|
|
39
|
+
t4 = $[5];
|
|
40
|
+
t5 = $[6];
|
|
44
41
|
}
|
|
45
42
|
const browseButtonSize = t3 === void 0 ? "xs" : t3;
|
|
46
43
|
const browseButtonVariant = t4 === void 0 ? "outlined" : t4;
|
|
47
44
|
const browseButtonWidth = t5 === void 0 ? "hug" : t5;
|
|
48
45
|
let t6;
|
|
49
|
-
if ($[
|
|
46
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50
47
|
t6 = clsx("flex w-full flex-fill flex-col items-start");
|
|
51
|
-
$[
|
|
52
|
-
} else t6 = $[
|
|
48
|
+
$[7] = t6;
|
|
49
|
+
} else t6 = $[7];
|
|
53
50
|
const t7 = variant === "horizontal";
|
|
54
51
|
const t8 = variant === "vertical";
|
|
55
52
|
const t9 = variant === "vertical" && as === "button";
|
|
56
53
|
const t10 = variant === "vertical" && as === "link";
|
|
57
54
|
let t11;
|
|
58
|
-
if ($[
|
|
55
|
+
if ($[8] !== t10 || $[9] !== t7 || $[10] !== t8 || $[11] !== t9) {
|
|
59
56
|
t11 = clsx("flex w-full items-center", {
|
|
60
57
|
"flex-row gap-file-upload-content-gap-left-to-right-content": t7,
|
|
61
58
|
"flex-col": t8,
|
|
62
59
|
"gap-file-upload-content-gap-content-to-button": t9,
|
|
63
60
|
"gap-file-upload-content-gap-text-to-text": t10
|
|
64
61
|
});
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
} else t11 = $[
|
|
62
|
+
$[8] = t10;
|
|
63
|
+
$[9] = t7;
|
|
64
|
+
$[10] = t8;
|
|
65
|
+
$[11] = t9;
|
|
66
|
+
$[12] = t11;
|
|
67
|
+
} else t11 = $[12];
|
|
71
68
|
const t12 = variant === "vertical";
|
|
72
69
|
const t13 = variant === "horizontal";
|
|
73
70
|
let t14;
|
|
74
|
-
if ($[
|
|
71
|
+
if ($[13] !== isDisabled || $[14] !== t12 || $[15] !== t13) {
|
|
75
72
|
t14 = clsx("flex min-w-0 max-w-full flex-grow items-center gap-file-upload-content-gap-icon-to-content", {
|
|
76
73
|
"flex-col": t12,
|
|
77
74
|
"flex-row": t13,
|
|
78
75
|
"opacity-50": isDisabled
|
|
79
76
|
});
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
} else t14 = $[
|
|
77
|
+
$[13] = isDisabled;
|
|
78
|
+
$[14] = t12;
|
|
79
|
+
$[15] = t13;
|
|
80
|
+
$[16] = t14;
|
|
81
|
+
} else t14 = $[16];
|
|
85
82
|
let t15;
|
|
86
|
-
if ($[
|
|
83
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
87
84
|
t15 = /* @__PURE__ */ jsx(WarningFilledIcon, { className: "h-6 w-6 text-elevation-fill-warning-1" });
|
|
88
|
-
$[
|
|
89
|
-
} else t15 = $[
|
|
85
|
+
$[17] = t15;
|
|
86
|
+
} else t15 = $[17];
|
|
90
87
|
const t16 = variant === "vertical";
|
|
91
88
|
const t17 = variant === "horizontal";
|
|
92
89
|
let t18;
|
|
93
|
-
if ($[
|
|
90
|
+
if ($[18] !== t16 || $[19] !== t17) {
|
|
94
91
|
t18 = clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
95
92
|
"max-w-full items-center": t16,
|
|
96
93
|
"max-w-[calc(100%_-_32px)]": t17
|
|
97
94
|
});
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
} else t18 = $[
|
|
95
|
+
$[18] = t16;
|
|
96
|
+
$[19] = t17;
|
|
97
|
+
$[20] = t18;
|
|
98
|
+
} else t18 = $[20];
|
|
102
99
|
const t19 = variant === "vertical";
|
|
103
100
|
let t20;
|
|
104
|
-
if ($[
|
|
101
|
+
if ($[21] !== t19) {
|
|
105
102
|
t20 = clsx("self-stretch truncate text-text-default-1", { "text-center": t19 });
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
} else t20 = $[
|
|
103
|
+
$[21] = t19;
|
|
104
|
+
$[22] = t20;
|
|
105
|
+
} else t20 = $[22];
|
|
109
106
|
const t21 = state.file?.name ?? state.displayName ?? "";
|
|
110
107
|
let t22;
|
|
111
|
-
if ($[
|
|
108
|
+
if ($[23] !== t20 || $[24] !== t21) {
|
|
112
109
|
t22 = /* @__PURE__ */ jsx(Typography, {
|
|
113
110
|
variant: "prominent-1",
|
|
114
111
|
size: "label-1",
|
|
@@ -116,21 +113,21 @@ var FileUploadContentError = (t0) => {
|
|
|
116
113
|
className: t20,
|
|
117
114
|
children: t21
|
|
118
115
|
});
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
} else t22 = $[
|
|
116
|
+
$[23] = t20;
|
|
117
|
+
$[24] = t21;
|
|
118
|
+
$[25] = t22;
|
|
119
|
+
} else t22 = $[25];
|
|
123
120
|
const t23 = singleFile ? "label-2" : "label-3";
|
|
124
121
|
const t24 = variant === "vertical";
|
|
125
122
|
let t25;
|
|
126
|
-
if ($[
|
|
123
|
+
if ($[26] !== t24) {
|
|
127
124
|
t25 = clsx("text-text-default-2", { "text-center": t24 });
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else t25 = $[
|
|
125
|
+
$[26] = t24;
|
|
126
|
+
$[27] = t25;
|
|
127
|
+
} else t25 = $[27];
|
|
131
128
|
const t26 = state.error?.serverMessage ?? state.error?.message;
|
|
132
129
|
let t27;
|
|
133
|
-
if ($[
|
|
130
|
+
if ($[28] !== t23 || $[29] !== t25 || $[30] !== t26) {
|
|
134
131
|
t27 = /* @__PURE__ */ jsx(Typography, {
|
|
135
132
|
variant: "default",
|
|
136
133
|
size: t23,
|
|
@@ -138,49 +135,49 @@ var FileUploadContentError = (t0) => {
|
|
|
138
135
|
className: t25,
|
|
139
136
|
children: t26
|
|
140
137
|
});
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
} else t27 = $[
|
|
138
|
+
$[28] = t23;
|
|
139
|
+
$[29] = t25;
|
|
140
|
+
$[30] = t26;
|
|
141
|
+
$[31] = t27;
|
|
142
|
+
} else t27 = $[31];
|
|
146
143
|
let t28;
|
|
147
|
-
if ($[
|
|
144
|
+
if ($[32] !== t18 || $[33] !== t22 || $[34] !== t27) {
|
|
148
145
|
t28 = /* @__PURE__ */ jsxs("div", {
|
|
149
146
|
className: t18,
|
|
150
147
|
children: [t22, t27]
|
|
151
148
|
});
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
} else t28 = $[
|
|
149
|
+
$[32] = t18;
|
|
150
|
+
$[33] = t22;
|
|
151
|
+
$[34] = t27;
|
|
152
|
+
$[35] = t28;
|
|
153
|
+
} else t28 = $[35];
|
|
157
154
|
let t29;
|
|
158
|
-
if ($[
|
|
155
|
+
if ($[36] !== t14 || $[37] !== t28) {
|
|
159
156
|
t29 = /* @__PURE__ */ jsxs("div", {
|
|
160
157
|
className: t14,
|
|
161
158
|
children: [t15, t28]
|
|
162
159
|
});
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
} else t29 = $[
|
|
160
|
+
$[36] = t14;
|
|
161
|
+
$[37] = t28;
|
|
162
|
+
$[38] = t29;
|
|
163
|
+
} else t29 = $[38];
|
|
167
164
|
const t30 = variant === "vertical" && as === "button";
|
|
168
165
|
const t31 = as === "link";
|
|
169
166
|
const t32 = as === "button";
|
|
170
167
|
let t33;
|
|
171
|
-
if ($[
|
|
168
|
+
if ($[39] !== t30 || $[40] !== t31 || $[41] !== t32) {
|
|
172
169
|
t33 = clsx("flex flex-none items-center justify-end", {
|
|
173
170
|
"flex-col": t30,
|
|
174
171
|
"gap-file-upload-content-gap-text-to-text": t31,
|
|
175
172
|
"gap-file-upload-content-gap-content-to-button": t32
|
|
176
173
|
});
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
} else t33 = $[
|
|
174
|
+
$[39] = t30;
|
|
175
|
+
$[40] = t31;
|
|
176
|
+
$[41] = t32;
|
|
177
|
+
$[42] = t33;
|
|
178
|
+
} else t33 = $[42];
|
|
182
179
|
let t34;
|
|
183
|
-
if ($[
|
|
180
|
+
if ($[43] !== as || $[44] !== browseButtonRestProps || $[45] !== browseButtonSize || $[46] !== browseButtonVariant || $[47] !== browseButtonWidth || $[48] !== browseText || $[49] !== fileTriggerProps || $[50] !== isDisabled || $[51] !== onRemove || $[52] !== removeWithIcon || $[53] !== state.id || $[54] !== t) {
|
|
184
181
|
t34 = as === "link" ? /* @__PURE__ */ jsxs(Fragment, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FileTrigger, {
|
|
185
182
|
...fileTriggerProps,
|
|
186
183
|
children: /* @__PURE__ */ jsx(TextButton, {
|
|
@@ -211,12 +208,11 @@ var FileUploadContentError = (t0) => {
|
|
|
211
208
|
children: [fileTriggerProps && /* @__PURE__ */ jsx(FileTrigger, {
|
|
212
209
|
...fileTriggerProps,
|
|
213
210
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
214
|
-
...browseButtonRestProps,
|
|
215
211
|
variant: browseButtonVariant,
|
|
216
212
|
size: browseButtonSize,
|
|
217
213
|
width: browseButtonWidth,
|
|
214
|
+
...browseButtonRestProps,
|
|
218
215
|
isDisabled,
|
|
219
|
-
className: browseButtonClassName,
|
|
220
216
|
children: browseText ?? ""
|
|
221
217
|
})
|
|
222
218
|
}), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
|
|
@@ -234,33 +230,32 @@ var FileUploadContentError = (t0) => {
|
|
|
234
230
|
children: t(_temp3)
|
|
235
231
|
})]
|
|
236
232
|
});
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
|
|
251
|
-
} else t34 = $[57];
|
|
233
|
+
$[43] = as;
|
|
234
|
+
$[44] = browseButtonRestProps;
|
|
235
|
+
$[45] = browseButtonSize;
|
|
236
|
+
$[46] = browseButtonVariant;
|
|
237
|
+
$[47] = browseButtonWidth;
|
|
238
|
+
$[48] = browseText;
|
|
239
|
+
$[49] = fileTriggerProps;
|
|
240
|
+
$[50] = isDisabled;
|
|
241
|
+
$[51] = onRemove;
|
|
242
|
+
$[52] = removeWithIcon;
|
|
243
|
+
$[53] = state.id;
|
|
244
|
+
$[54] = t;
|
|
245
|
+
$[55] = t34;
|
|
246
|
+
} else t34 = $[55];
|
|
252
247
|
let t35;
|
|
253
|
-
if ($[
|
|
248
|
+
if ($[56] !== t33 || $[57] !== t34) {
|
|
254
249
|
t35 = /* @__PURE__ */ jsx("div", {
|
|
255
250
|
className: t33,
|
|
256
251
|
children: t34
|
|
257
252
|
});
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
} else t35 = $[
|
|
253
|
+
$[56] = t33;
|
|
254
|
+
$[57] = t34;
|
|
255
|
+
$[58] = t35;
|
|
256
|
+
} else t35 = $[58];
|
|
262
257
|
let t36;
|
|
263
|
-
if ($[
|
|
258
|
+
if ($[59] !== t11 || $[60] !== t29 || $[61] !== t35) {
|
|
264
259
|
t36 = /* @__PURE__ */ jsx("div", {
|
|
265
260
|
className: t6,
|
|
266
261
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -268,11 +263,11 @@ var FileUploadContentError = (t0) => {
|
|
|
268
263
|
children: [t29, t35]
|
|
269
264
|
})
|
|
270
265
|
});
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
} else t36 = $[
|
|
266
|
+
$[59] = t11;
|
|
267
|
+
$[60] = t29;
|
|
268
|
+
$[61] = t35;
|
|
269
|
+
$[62] = t36;
|
|
270
|
+
} else t36 = $[62];
|
|
276
271
|
return t36;
|
|
277
272
|
};
|
|
278
273
|
function _temp($) {
|