@povio/ui 3.2.3-rc.1 → 3.2.3

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.
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, Ref } from 'react';
2
2
  import { DropZoneProps, FileTriggerProps } from 'react-aria-components';
3
3
  import { FieldValues } from 'react-hook-form';
4
- import { ButtonVariantProps } from '../../buttons/Button/button.cva';
4
+ import { ButtonProps } from '../../buttons/Button/Button';
5
5
  import { FormFieldProps } from '../FormField/FormField';
6
6
  import { ControlProps } from '../shared/form.types';
7
7
  import { ApplicationException, GeneralErrorCodes } from '../../../types/error-handling';
@@ -75,9 +75,7 @@ export interface FileUploadContainerChildrenProps {
75
75
  onRemove: (id: string) => void;
76
76
  onCancel: (index: number) => void;
77
77
  }
78
- export interface FileUploadButtonProps extends ButtonVariantProps {
79
- className?: string;
80
- }
78
+ export type FileUploadButtonProps = Omit<ButtonProps, "children" | "isDisabled" | "isSelected" | "onPress" | "toggle">;
81
79
  export type FileUploadBaseProps = {
82
80
  as?: "button" | "link";
83
81
  ref?: Ref<HTMLElement>;
@@ -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(54);
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
- ({className: browseButtonClassName, size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
24
+ ({size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
26
25
  $[2] = t2;
27
- $[3] = browseButtonClassName;
28
- $[4] = browseButtonRestProps;
29
- $[5] = t3;
30
- $[6] = t4;
31
- $[7] = t5;
26
+ $[3] = browseButtonRestProps;
27
+ $[4] = t3;
28
+ $[5] = t4;
29
+ $[6] = t5;
32
30
  } else {
33
- browseButtonClassName = $[3];
34
- browseButtonRestProps = $[4];
35
- t3 = $[5];
36
- t4 = $[6];
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 ($[8] !== className || $[9] !== t6 || $[10] !== t7) {
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
- $[8] = className;
51
- $[9] = t6;
52
- $[10] = t7;
53
- $[11] = t8;
54
- } else t8 = $[11];
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 ($[12] !== isDisabled || $[13] !== t10 || $[14] !== t9) {
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
- $[12] = isDisabled;
65
- $[13] = t10;
66
- $[14] = t9;
67
- $[15] = t11;
68
- } else t11 = $[15];
61
+ $[11] = isDisabled;
62
+ $[12] = t10;
63
+ $[13] = t9;
64
+ $[14] = t11;
65
+ } else t11 = $[14];
69
66
  let t12;
70
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[16] = t12;
73
- } else t12 = $[16];
69
+ $[15] = t12;
70
+ } else t12 = $[15];
74
71
  const t13 = variant === "vertical";
75
72
  let t14;
76
- if ($[17] !== t13) {
73
+ if ($[16] !== t13) {
77
74
  t14 = clsx("self-stretch text-text-default-1", { "text-center": t13 });
78
- $[17] = t13;
79
- $[18] = t14;
80
- } else t14 = $[18];
75
+ $[16] = t13;
76
+ $[17] = t14;
77
+ } else t14 = $[17];
81
78
  let t15;
82
- if ($[19] !== t14 || $[20] !== title) {
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
- $[19] = t14;
91
- $[20] = title;
92
- $[21] = t15;
93
- } else t15 = $[21];
87
+ $[18] = t14;
88
+ $[19] = title;
89
+ $[20] = t15;
90
+ } else t15 = $[20];
94
91
  let t16;
95
- if ($[22] !== t11 || $[23] !== t15) {
92
+ if ($[21] !== t11 || $[22] !== t15) {
96
93
  t16 = /* @__PURE__ */ jsxs("div", {
97
94
  className: t11,
98
95
  children: [t12, t15]
99
96
  });
100
- $[22] = t11;
101
- $[23] = t15;
102
- $[24] = t16;
103
- } else t16 = $[24];
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 ($[25] !== t17 || $[26] !== t18 || $[27] !== t19) {
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
- $[25] = t17;
115
- $[26] = t18;
116
- $[27] = t19;
117
- $[28] = t20;
118
- } else t20 = $[28];
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 ($[29] !== isDisabled || $[30] !== t22) {
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
- $[29] = isDisabled;
128
- $[30] = t22;
129
- $[31] = t23;
130
- } else t23 = $[31];
124
+ $[28] = isDisabled;
125
+ $[29] = t22;
126
+ $[30] = t23;
127
+ } else t23 = $[30];
131
128
  let t24;
132
- if ($[32] !== t21 || $[33] !== t23 || $[34] !== uploadText) {
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
- $[32] = t21;
141
- $[33] = t23;
142
- $[34] = uploadText;
143
- $[35] = t24;
144
- } else t24 = $[35];
137
+ $[31] = t21;
138
+ $[32] = t23;
139
+ $[33] = uploadText;
140
+ $[34] = t24;
141
+ } else t24 = $[34];
145
142
  let t25;
146
- if ($[36] !== as || $[37] !== browseButtonClassName || $[38] !== browseButtonRestProps || $[39] !== browseButtonSize || $[40] !== browseButtonVariant || $[41] !== browseButtonWidth || $[42] !== browseText || $[43] !== hideButton || $[44] !== isDisabled) {
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
- $[36] = as;
160
- $[37] = browseButtonClassName;
161
- $[38] = browseButtonRestProps;
162
- $[39] = browseButtonSize;
163
- $[40] = browseButtonVariant;
164
- $[41] = browseButtonWidth;
165
- $[42] = browseText;
166
- $[43] = hideButton;
167
- $[44] = isDisabled;
168
- $[45] = t25;
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 ($[46] !== t20 || $[47] !== t24 || $[48] !== t25) {
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
- $[46] = t20;
177
- $[47] = t24;
178
- $[48] = t25;
179
- $[49] = t26;
180
- } else t26 = $[49];
171
+ $[44] = t20;
172
+ $[45] = t24;
173
+ $[46] = t25;
174
+ $[47] = t26;
175
+ } else t26 = $[47];
181
176
  let t27;
182
- if ($[50] !== t16 || $[51] !== t26 || $[52] !== t8) {
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
- $[50] = t16;
188
- $[51] = t26;
189
- $[52] = t8;
190
- $[53] = t27;
191
- } else t27 = $[53];
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(65);
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
- ({className: browseButtonClassName, size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
30
+ ({size: t3, variant: t4, width: t5, ...browseButtonRestProps} = t2);
32
31
  $[2] = t2;
33
- $[3] = browseButtonClassName;
34
- $[4] = browseButtonRestProps;
35
- $[5] = t3;
36
- $[6] = t4;
37
- $[7] = t5;
32
+ $[3] = browseButtonRestProps;
33
+ $[4] = t3;
34
+ $[5] = t4;
35
+ $[6] = t5;
38
36
  } else {
39
- browseButtonClassName = $[3];
40
- browseButtonRestProps = $[4];
41
- t3 = $[5];
42
- t4 = $[6];
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 ($[8] === Symbol.for("react.memo_cache_sentinel")) {
46
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50
47
  t6 = clsx("flex w-full flex-fill flex-col items-start");
51
- $[8] = t6;
52
- } else t6 = $[8];
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 ($[9] !== t10 || $[10] !== t7 || $[11] !== t8 || $[12] !== t9) {
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
- $[9] = t10;
66
- $[10] = t7;
67
- $[11] = t8;
68
- $[12] = t9;
69
- $[13] = t11;
70
- } else t11 = $[13];
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 ($[14] !== isDisabled || $[15] !== t12 || $[16] !== t13) {
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
- $[14] = isDisabled;
81
- $[15] = t12;
82
- $[16] = t13;
83
- $[17] = t14;
84
- } else t14 = $[17];
77
+ $[13] = isDisabled;
78
+ $[14] = t12;
79
+ $[15] = t13;
80
+ $[16] = t14;
81
+ } else t14 = $[16];
85
82
  let t15;
86
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[18] = t15;
89
- } else t15 = $[18];
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 ($[19] !== t16 || $[20] !== t17) {
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
- $[19] = t16;
99
- $[20] = t17;
100
- $[21] = t18;
101
- } else t18 = $[21];
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 ($[22] !== t19) {
101
+ if ($[21] !== t19) {
105
102
  t20 = clsx("self-stretch truncate text-text-default-1", { "text-center": t19 });
106
- $[22] = t19;
107
- $[23] = t20;
108
- } else t20 = $[23];
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 ($[24] !== t20 || $[25] !== t21) {
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
- $[24] = t20;
120
- $[25] = t21;
121
- $[26] = t22;
122
- } else t22 = $[26];
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 ($[27] !== t24) {
123
+ if ($[26] !== t24) {
127
124
  t25 = clsx("text-text-default-2", { "text-center": t24 });
128
- $[27] = t24;
129
- $[28] = t25;
130
- } else t25 = $[28];
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 ($[29] !== t23 || $[30] !== t25 || $[31] !== t26) {
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
- $[29] = t23;
142
- $[30] = t25;
143
- $[31] = t26;
144
- $[32] = t27;
145
- } else t27 = $[32];
138
+ $[28] = t23;
139
+ $[29] = t25;
140
+ $[30] = t26;
141
+ $[31] = t27;
142
+ } else t27 = $[31];
146
143
  let t28;
147
- if ($[33] !== t18 || $[34] !== t22 || $[35] !== t27) {
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
- $[33] = t18;
153
- $[34] = t22;
154
- $[35] = t27;
155
- $[36] = t28;
156
- } else t28 = $[36];
149
+ $[32] = t18;
150
+ $[33] = t22;
151
+ $[34] = t27;
152
+ $[35] = t28;
153
+ } else t28 = $[35];
157
154
  let t29;
158
- if ($[37] !== t14 || $[38] !== t28) {
155
+ if ($[36] !== t14 || $[37] !== t28) {
159
156
  t29 = /* @__PURE__ */ jsxs("div", {
160
157
  className: t14,
161
158
  children: [t15, t28]
162
159
  });
163
- $[37] = t14;
164
- $[38] = t28;
165
- $[39] = t29;
166
- } else t29 = $[39];
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 ($[40] !== t30 || $[41] !== t31 || $[42] !== t32) {
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
- $[40] = t30;
178
- $[41] = t31;
179
- $[42] = t32;
180
- $[43] = t33;
181
- } else t33 = $[43];
174
+ $[39] = t30;
175
+ $[40] = t31;
176
+ $[41] = t32;
177
+ $[42] = t33;
178
+ } else t33 = $[42];
182
179
  let t34;
183
- if ($[44] !== as || $[45] !== browseButtonClassName || $[46] !== browseButtonRestProps || $[47] !== browseButtonSize || $[48] !== browseButtonVariant || $[49] !== browseButtonWidth || $[50] !== browseText || $[51] !== fileTriggerProps || $[52] !== isDisabled || $[53] !== onRemove || $[54] !== removeWithIcon || $[55] !== state.id || $[56] !== t) {
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
- $[44] = as;
238
- $[45] = browseButtonClassName;
239
- $[46] = browseButtonRestProps;
240
- $[47] = browseButtonSize;
241
- $[48] = browseButtonVariant;
242
- $[49] = browseButtonWidth;
243
- $[50] = browseText;
244
- $[51] = fileTriggerProps;
245
- $[52] = isDisabled;
246
- $[53] = onRemove;
247
- $[54] = removeWithIcon;
248
- $[55] = state.id;
249
- $[56] = t;
250
- $[57] = t34;
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 ($[58] !== t33 || $[59] !== t34) {
248
+ if ($[56] !== t33 || $[57] !== t34) {
254
249
  t35 = /* @__PURE__ */ jsx("div", {
255
250
  className: t33,
256
251
  children: t34
257
252
  });
258
- $[58] = t33;
259
- $[59] = t34;
260
- $[60] = t35;
261
- } else t35 = $[60];
253
+ $[56] = t33;
254
+ $[57] = t34;
255
+ $[58] = t35;
256
+ } else t35 = $[58];
262
257
  let t36;
263
- if ($[61] !== t11 || $[62] !== t29 || $[63] !== t35) {
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
- $[61] = t11;
272
- $[62] = t29;
273
- $[63] = t35;
274
- $[64] = t36;
275
- } else t36 = $[64];
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($) {