bmi-next-brokers 1.2.0 → 1.2.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/FileUpload/CompactFileUpload.d.ts +2 -1
- package/dist/components/FileUpload/CompactFileUpload.js +157 -145
- package/dist/components/Input/RadioButton/RadioButton.js +17 -7
- package/dist/icons/components/AddAlert.js +36 -7
- package/dist/icons/components/Assignment.js +37 -8
- package/dist/icons/components/Notifications.js +37 -8
- package/package.json +1 -1
|
@@ -17,7 +17,8 @@ export interface CompactFileUploadProps {
|
|
|
17
17
|
allowedTypes?: string[];
|
|
18
18
|
inspectFileFunction?: () => void;
|
|
19
19
|
maxFileSize?: number;
|
|
20
|
-
onFileSelect?: (files: FileList | null) => void
|
|
20
|
+
onFileSelect?: (files: FileList | null) => void | Promise<void>;
|
|
21
|
+
onDelete?: (files: FileList | null) => void | Promise<void>;
|
|
21
22
|
statusIconBorderRadius?: string;
|
|
22
23
|
fullWidth?: boolean;
|
|
23
24
|
}
|
|
@@ -1,161 +1,162 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Spinner as
|
|
5
|
-
import { Button as
|
|
6
|
-
import '../../assets/CompactFileUpload.css';const
|
|
7
|
-
inputContainer:
|
|
8
|
-
compactFileUploadContainer:
|
|
9
|
-
fullWidth:
|
|
10
|
-
dragOver:
|
|
11
|
-
variant_document:
|
|
12
|
-
icon:
|
|
13
|
-
variant_add:
|
|
14
|
-
disabled:
|
|
15
|
-
error:
|
|
16
|
-
warning:
|
|
1
|
+
import { jsx as n, jsxs as u, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useRef as q, useEffect as H } from "react";
|
|
3
|
+
import { Icon as x } from "../../icons/Icon.js";
|
|
4
|
+
import { Spinner as G } from "../Spinner/Spinner.js";
|
|
5
|
+
import { Button as $ } from "../Button/Button.js";
|
|
6
|
+
import '../../assets/CompactFileUpload.css';const J = "_inputContainer_1dauy_1", K = "_compactFileUploadContainer_1dauy_9", P = "_fullWidth_1dauy_26", Q = "_dragOver_1dauy_35", X = "_variant_document_1dauy_41", Y = "_icon_1dauy_41", Z = "_variant_add_1dauy_45", tt = "_disabled_1dauy_50", at = "_error_1dauy_61", nt = "_warning_1dauy_69", et = "_inverted_1dauy_78", ct = "_uploadContent_1dauy_103", ot = "_textContent_1dauy_113", it = "_dragText_1dauy_123", lt = "_hiddenInput_1dauy_153", st = "_compactFileContent_1dauy_166", rt = "_compactFileIcon_1dauy_174", dt = "_compactIconBackground_1dauy_182", mt = "_compactFileText_1dauy_190", pt = "_compactLabel_1dauy_202", ut = "_compactFileName_1dauy_209", _t = "_compactStatusText_1dauy_210", ht = "_success_1dauy_221", ft = "_loading_1dauy_229", vt = "_addIconWrapper_1dauy_233", yt = "_browseText_1dauy_239", Ct = "_compactVisibilityIcon_1dauy_246", gt = "_compactActions_1dauy_255", xt = "_deleteText_1dauy_262", t = {
|
|
7
|
+
inputContainer: J,
|
|
8
|
+
compactFileUploadContainer: K,
|
|
9
|
+
fullWidth: P,
|
|
10
|
+
dragOver: Q,
|
|
11
|
+
variant_document: X,
|
|
12
|
+
icon: Y,
|
|
13
|
+
variant_add: Z,
|
|
14
|
+
disabled: tt,
|
|
15
|
+
error: at,
|
|
16
|
+
warning: nt,
|
|
17
17
|
inverted: et,
|
|
18
|
-
uploadContent:
|
|
19
|
-
textContent:
|
|
20
|
-
dragText:
|
|
21
|
-
hiddenInput:
|
|
22
|
-
compactFileContent:
|
|
23
|
-
compactFileIcon:
|
|
24
|
-
compactIconBackground:
|
|
25
|
-
compactFileText:
|
|
26
|
-
compactLabel:
|
|
27
|
-
compactFileName:
|
|
28
|
-
compactStatusText:
|
|
29
|
-
success:
|
|
30
|
-
loading:
|
|
31
|
-
addIconWrapper:
|
|
32
|
-
browseText:
|
|
33
|
-
compactVisibilityIcon:
|
|
34
|
-
compactActions:
|
|
35
|
-
deleteText:
|
|
36
|
-
},
|
|
37
|
-
variant:
|
|
38
|
-
label:
|
|
39
|
-
error:
|
|
18
|
+
uploadContent: ct,
|
|
19
|
+
textContent: ot,
|
|
20
|
+
dragText: it,
|
|
21
|
+
hiddenInput: lt,
|
|
22
|
+
compactFileContent: st,
|
|
23
|
+
compactFileIcon: rt,
|
|
24
|
+
compactIconBackground: dt,
|
|
25
|
+
compactFileText: mt,
|
|
26
|
+
compactLabel: pt,
|
|
27
|
+
compactFileName: ut,
|
|
28
|
+
compactStatusText: _t,
|
|
29
|
+
success: ht,
|
|
30
|
+
loading: ft,
|
|
31
|
+
addIconWrapper: vt,
|
|
32
|
+
browseText: yt,
|
|
33
|
+
compactVisibilityIcon: Ct,
|
|
34
|
+
compactActions: gt,
|
|
35
|
+
deleteText: xt
|
|
36
|
+
}, $t = ({
|
|
37
|
+
variant: k = "document",
|
|
38
|
+
label: f,
|
|
39
|
+
error: e,
|
|
40
40
|
success: c,
|
|
41
|
-
warning:
|
|
41
|
+
warning: _,
|
|
42
42
|
loading: o = !1,
|
|
43
|
-
defaultFile:
|
|
43
|
+
defaultFile: I = null,
|
|
44
44
|
disabled: d = !1,
|
|
45
|
-
inverted:
|
|
46
|
-
browseText:
|
|
45
|
+
inverted: A = !1,
|
|
46
|
+
browseText: D = "Seleccionar archivo",
|
|
47
47
|
allowedTypes: m,
|
|
48
|
-
inspectFileFunction:
|
|
48
|
+
inspectFileFunction: W = () => {
|
|
49
49
|
console.warn(
|
|
50
50
|
"No hay función asignada para ver el archivo. Hay que pasarla al componente como prop inspectFileFunction."
|
|
51
51
|
);
|
|
52
52
|
},
|
|
53
|
-
maxFileSize:
|
|
54
|
-
onFileSelect:
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
maxFileSize: F,
|
|
54
|
+
onFileSelect: v,
|
|
55
|
+
onDelete: y,
|
|
56
|
+
statusIconBorderRadius: S = "50%",
|
|
57
|
+
fullWidth: B = !1
|
|
57
58
|
}) => {
|
|
58
|
-
const [
|
|
59
|
-
|
|
60
|
-
), h =
|
|
61
|
-
|
|
62
|
-
if (!
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
`⚠️ CompactFileUpload: Múltiples estados detectados (${
|
|
59
|
+
const [E, C] = w(!1), [i, N] = w(
|
|
60
|
+
I || null
|
|
61
|
+
), h = q(null);
|
|
62
|
+
H(() => {
|
|
63
|
+
if (!i) return;
|
|
64
|
+
const a = [];
|
|
65
|
+
e && a.push("error"), c && a.push("success"), o && a.push("loading"), a.length > 1 && console.warn(
|
|
66
|
+
`⚠️ CompactFileUpload: Múltiples estados detectados (${a.join(", ")}). Solo un estado debe estar activo a la vez.`
|
|
66
67
|
);
|
|
67
|
-
}, [
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
if (
|
|
76
|
-
const r =
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
const r =
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
if (!
|
|
68
|
+
}, [e, c, o, i]);
|
|
69
|
+
const L = (a) => {
|
|
70
|
+
a.preventDefault(), d || C(!0);
|
|
71
|
+
}, O = (a) => {
|
|
72
|
+
a.preventDefault(), C(!1);
|
|
73
|
+
}, j = (a) => {
|
|
74
|
+
a.preventDefault();
|
|
75
|
+
}, R = (a) => {
|
|
76
|
+
if (a.preventDefault(), C(!1), d) return;
|
|
77
|
+
const r = a.dataTransfer.files;
|
|
78
|
+
b(r);
|
|
79
|
+
}, U = async (a) => {
|
|
80
|
+
const r = a.target.files;
|
|
81
|
+
b(r);
|
|
82
|
+
}, b = async (a) => {
|
|
83
|
+
if (!a) return;
|
|
83
84
|
if (m && m.length > 0)
|
|
84
|
-
for (let
|
|
85
|
-
const
|
|
85
|
+
for (let l = 0; l < a.length; l++) {
|
|
86
|
+
const p = a[l];
|
|
86
87
|
if (!m.some(
|
|
87
|
-
(
|
|
88
|
+
(g) => g.startsWith(".") ? p.name.toLowerCase().endsWith(g.toLowerCase()) : p.type === g
|
|
88
89
|
)) {
|
|
89
|
-
console.warn(`File ${
|
|
90
|
+
console.warn(`File ${p.name} is not an allowed type`);
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
if (
|
|
94
|
-
for (let
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
97
|
-
console.warn(`File ${
|
|
94
|
+
if (F)
|
|
95
|
+
for (let l = 0; l < a.length; l++) {
|
|
96
|
+
const p = a[l];
|
|
97
|
+
if (p.size > F) {
|
|
98
|
+
console.warn(`File ${p.name} exceeds maximum size`);
|
|
98
99
|
return;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
const r =
|
|
102
|
-
|
|
102
|
+
const r = a ? a[0] : null;
|
|
103
|
+
N(r), await (v == null ? void 0 : v(
|
|
103
104
|
r ? (() => {
|
|
104
|
-
const
|
|
105
|
-
return
|
|
105
|
+
const l = new DataTransfer();
|
|
106
|
+
return l.items.add(r), l.files;
|
|
106
107
|
})() : null
|
|
107
|
-
);
|
|
108
|
-
}, U = () => {
|
|
109
|
-
!d && h.current && h.current.click();
|
|
108
|
+
));
|
|
110
109
|
}, V = () => {
|
|
111
|
-
|
|
112
|
-
},
|
|
110
|
+
!d && h.current && h.current.click();
|
|
111
|
+
}, M = async () => {
|
|
112
|
+
await (y == null ? void 0 : y(null)), N(null), h.current && (h.current.value = "");
|
|
113
|
+
}, s = _ && !o && !c && !e, z = [
|
|
113
114
|
t.compactFileUploadContainer,
|
|
114
|
-
|
|
115
|
-
t[`variant_${
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
B && t.fullWidth,
|
|
116
|
+
t[`variant_${k}`],
|
|
117
|
+
s ? t.warning : "",
|
|
118
|
+
i && e ? t.error : "",
|
|
119
|
+
i && !e && o ? t.loading : "",
|
|
120
|
+
i && !e && !o && c ? t.success : "",
|
|
120
121
|
d ? t.disabled : "",
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
A ? t.inverted : "",
|
|
123
|
+
E ? t.dragOver : ""
|
|
123
124
|
].filter(Boolean).join(" ");
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ n("div", { className: t.inputContainer, children: /* @__PURE__ */ u(
|
|
125
126
|
"div",
|
|
126
127
|
{
|
|
127
|
-
className:
|
|
128
|
-
onDragEnter:
|
|
129
|
-
onDragLeave:
|
|
130
|
-
onDragOver:
|
|
131
|
-
onDrop:
|
|
132
|
-
onClick:
|
|
133
|
-
} :
|
|
128
|
+
className: z,
|
|
129
|
+
onDragEnter: L,
|
|
130
|
+
onDragLeave: O,
|
|
131
|
+
onDragOver: j,
|
|
132
|
+
onDrop: R,
|
|
133
|
+
onClick: i ? () => {
|
|
134
|
+
} : V,
|
|
134
135
|
style: { cursor: d ? "not-allowed" : "pointer" },
|
|
135
136
|
children: [
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ n(
|
|
137
138
|
"input",
|
|
138
139
|
{
|
|
139
140
|
ref: h,
|
|
140
141
|
type: "file",
|
|
141
142
|
className: t.hiddenInput,
|
|
142
|
-
onChange:
|
|
143
|
+
onChange: U,
|
|
143
144
|
disabled: d,
|
|
144
145
|
accept: m == null ? void 0 : m.join(",")
|
|
145
146
|
}
|
|
146
147
|
),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ n("div", { className: t.uploadContent, children: i || s ? (
|
|
148
149
|
// Compact layout - simple text with left icon
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ u("div", { className: t.compactFileContent, children: [
|
|
151
|
+
/* @__PURE__ */ n("div", { className: t.compactFileIcon, children: /* @__PURE__ */ n(
|
|
151
152
|
"div",
|
|
152
153
|
{
|
|
153
154
|
className: t.compactIconBackground,
|
|
154
155
|
style: {
|
|
155
|
-
background:
|
|
156
|
-
borderRadius:
|
|
156
|
+
background: e ? "#DC2626" : o ? "#2054A5" : c ? "#65A30D" : _ ? "#EA580C" : "#2054A5",
|
|
157
|
+
borderRadius: S
|
|
157
158
|
},
|
|
158
|
-
children: o ? /* @__PURE__ */
|
|
159
|
+
children: o ? /* @__PURE__ */ n(
|
|
159
160
|
"div",
|
|
160
161
|
{
|
|
161
162
|
style: {
|
|
@@ -164,8 +165,8 @@ import '../../assets/CompactFileUpload.css';const H = "_inputContainer_1dauy_1",
|
|
|
164
165
|
alignItems: "center",
|
|
165
166
|
margin: "4px"
|
|
166
167
|
},
|
|
167
|
-
children: /* @__PURE__ */
|
|
168
|
-
|
|
168
|
+
children: /* @__PURE__ */ n(
|
|
169
|
+
G,
|
|
169
170
|
{
|
|
170
171
|
size: 10,
|
|
171
172
|
color: "primary",
|
|
@@ -175,7 +176,7 @@ import '../../assets/CompactFileUpload.css';const H = "_inputContainer_1dauy_1",
|
|
|
175
176
|
}
|
|
176
177
|
)
|
|
177
178
|
}
|
|
178
|
-
) : /* @__PURE__ */
|
|
179
|
+
) : /* @__PURE__ */ n(
|
|
179
180
|
"div",
|
|
180
181
|
{
|
|
181
182
|
style: {
|
|
@@ -183,10 +184,10 @@ import '../../assets/CompactFileUpload.css';const H = "_inputContainer_1dauy_1",
|
|
|
183
184
|
justifyContent: "center",
|
|
184
185
|
alignItems: "center"
|
|
185
186
|
},
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
|
|
187
|
+
children: /* @__PURE__ */ n(
|
|
188
|
+
x,
|
|
188
189
|
{
|
|
189
|
-
name:
|
|
190
|
+
name: e ? "CancelIcon" : c ? "CheckIcon" : _ ? "AlertIcon" : "Documentos",
|
|
190
191
|
fill: "white",
|
|
191
192
|
height: 20,
|
|
192
193
|
width: 20
|
|
@@ -196,37 +197,37 @@ import '../../assets/CompactFileUpload.css';const H = "_inputContainer_1dauy_1",
|
|
|
196
197
|
)
|
|
197
198
|
}
|
|
198
199
|
) }),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
!
|
|
201
|
-
|
|
202
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ u("div", { className: t.compactFileText, children: [
|
|
201
|
+
!e && !o && !c && !s && /* @__PURE__ */ u(T, { children: [
|
|
202
|
+
f && /* @__PURE__ */ n("span", { className: `small1Medium ${t.compactLabel}`, children: f }),
|
|
203
|
+
/* @__PURE__ */ n("span", { className: `small3Regular ${t.compactFileName}`, children: i == null ? void 0 : i.name })
|
|
203
204
|
] }),
|
|
204
|
-
(
|
|
205
|
+
(e || _ || o || c) && /* @__PURE__ */ n(
|
|
205
206
|
"span",
|
|
206
207
|
{
|
|
207
208
|
className: `
|
|
208
209
|
small1Medium
|
|
209
210
|
${t.compactFileName}
|
|
210
|
-
${
|
|
211
|
+
${e && t.error}
|
|
211
212
|
${c && t.success}
|
|
212
|
-
${
|
|
213
|
+
${s && t.warning}
|
|
213
214
|
${o && t.loading}
|
|
214
215
|
`,
|
|
215
|
-
children:
|
|
216
|
+
children: s ? f : i == null ? void 0 : i.name
|
|
216
217
|
}
|
|
217
218
|
),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
c && !o && /* @__PURE__ */
|
|
219
|
+
e && /* @__PURE__ */ n("span", { className: `small3Regular ${t.compactStatusText}`, children: e }),
|
|
220
|
+
s && /* @__PURE__ */ n("span", { className: `small3Regular ${t.compactStatusText}`, children: _ }),
|
|
221
|
+
c && !o && /* @__PURE__ */ n("span", { className: `small3Regular ${t.compactStatusText}`, children: c })
|
|
221
222
|
] }),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
!
|
|
223
|
+
/* @__PURE__ */ u("div", { className: t.compactActions, children: [
|
|
224
|
+
!e && !o && !c && !s && /* @__PURE__ */ n(
|
|
224
225
|
"div",
|
|
225
226
|
{
|
|
226
227
|
className: t.compactVisibilityIcon,
|
|
227
|
-
onClick:
|
|
228
|
-
children: /* @__PURE__ */
|
|
229
|
-
|
|
228
|
+
onClick: W,
|
|
229
|
+
children: /* @__PURE__ */ n(
|
|
230
|
+
x,
|
|
230
231
|
{
|
|
231
232
|
name: "Visibility",
|
|
232
233
|
fill: "#2054A5",
|
|
@@ -236,37 +237,48 @@ import '../../assets/CompactFileUpload.css';const H = "_inputContainer_1dauy_1",
|
|
|
236
237
|
)
|
|
237
238
|
}
|
|
238
239
|
),
|
|
239
|
-
(
|
|
240
|
-
|
|
240
|
+
(e || c || o) && /* @__PURE__ */ n(
|
|
241
|
+
$,
|
|
241
242
|
{
|
|
242
243
|
variant: c ? "ghost" : "outline",
|
|
243
244
|
icon: {
|
|
244
|
-
name:
|
|
245
|
+
name: "CancelIcon",
|
|
246
|
+
position: "before"
|
|
247
|
+
},
|
|
248
|
+
onClick: M,
|
|
249
|
+
children: e ? "Eliminar" : o ? "Cancelar" : ""
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
s && /* @__PURE__ */ n(
|
|
253
|
+
$,
|
|
254
|
+
{
|
|
255
|
+
variant: "outline",
|
|
256
|
+
icon: {
|
|
257
|
+
name: "Upload",
|
|
245
258
|
position: "before"
|
|
246
259
|
},
|
|
247
|
-
|
|
248
|
-
children: n ? "Eliminar" : i ? "Subir Doc." : o ? "Cancelar" : ""
|
|
260
|
+
children: "Subir doc"
|
|
249
261
|
}
|
|
250
262
|
)
|
|
251
263
|
] })
|
|
252
264
|
] })
|
|
253
|
-
) : /* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
265
|
+
) : /* @__PURE__ */ n(T, { children: /* @__PURE__ */ u("div", { className: t.textContent, children: [
|
|
266
|
+
/* @__PURE__ */ n(
|
|
255
267
|
"div",
|
|
256
268
|
{
|
|
257
269
|
className: t.addIconWrapper,
|
|
258
270
|
style: {
|
|
259
271
|
background: "#2054A5"
|
|
260
272
|
},
|
|
261
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ n("div", { style: { marginTop: "3px" }, children: /* @__PURE__ */ n(x, { name: "Add", fill: "white", height: 27, width: 27 }) })
|
|
262
274
|
}
|
|
263
275
|
),
|
|
264
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ n("span", { className: `small1Medium ${t.browseText}`, children: D })
|
|
265
277
|
] }) }) })
|
|
266
278
|
]
|
|
267
279
|
}
|
|
268
280
|
) });
|
|
269
281
|
};
|
|
270
282
|
export {
|
|
271
|
-
|
|
283
|
+
$t as CompactFileUpload
|
|
272
284
|
};
|
|
@@ -16,7 +16,7 @@ const k = ({
|
|
|
16
16
|
}) => {
|
|
17
17
|
const c = C(null), u = (d) => {
|
|
18
18
|
!a && c.current && c.current.click(), h && h(d);
|
|
19
|
-
},
|
|
19
|
+
}, x = [
|
|
20
20
|
l.inputWrapper,
|
|
21
21
|
a ? l.inputCheckbox_disabled : l.inputCheckbox,
|
|
22
22
|
s === "small" ? l.smallCheckbox : s === "large" ? l.largeCheckbox : l.mediumCheckbox,
|
|
@@ -26,7 +26,7 @@ const k = ({
|
|
|
26
26
|
o && !r && !a && e ? l.inputCheckbox_inverted_checked : "",
|
|
27
27
|
o && r ? l.error_checked : "",
|
|
28
28
|
o && a ? l.inputCheckbox_disabled_checked : ""
|
|
29
|
-
].filter(Boolean).join(" "),
|
|
29
|
+
].filter(Boolean).join(" "), g = [
|
|
30
30
|
a && !e ? l.passwordToggle_disabled : "",
|
|
31
31
|
e && !a ? l.passwordToggle_inverted : "",
|
|
32
32
|
e && a ? l.passwordToggle_inverted_disabled : ""
|
|
@@ -44,15 +44,25 @@ const k = ({
|
|
|
44
44
|
className: `${l.label} ${s === "large" ? l.label_large : ""} ${a && !e ? l.label_disabled : ""} ${e && !a ? l.label_inverted : ""} ${e && a ? l.label_inverted_disabled : ""}`,
|
|
45
45
|
children: [
|
|
46
46
|
p,
|
|
47
|
-
m && /* @__PURE__ */ _(
|
|
47
|
+
m && /* @__PURE__ */ _(
|
|
48
|
+
"span",
|
|
49
|
+
{
|
|
50
|
+
className: `${l.required} ${a && !e ? l.required_disabled : ""} ${e && !a ? l.required_inverted : ""} ${e && a ? l.required_inverted_disabled : ""}`,
|
|
51
|
+
children: "*"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
48
54
|
]
|
|
49
55
|
}
|
|
50
56
|
),
|
|
51
57
|
/* @__PURE__ */ n(
|
|
52
58
|
"div",
|
|
53
59
|
{
|
|
54
|
-
className:
|
|
55
|
-
style: {
|
|
60
|
+
className: x,
|
|
61
|
+
style: {
|
|
62
|
+
display: "flex",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
cursor: a ? "not-allowed" : "pointer"
|
|
65
|
+
},
|
|
56
66
|
onClick: u,
|
|
57
67
|
children: [
|
|
58
68
|
/* @__PURE__ */ _(
|
|
@@ -60,11 +70,11 @@ const k = ({
|
|
|
60
70
|
{
|
|
61
71
|
ref: c,
|
|
62
72
|
type: "radio",
|
|
63
|
-
className:
|
|
73
|
+
className: g,
|
|
64
74
|
disabled: a,
|
|
65
75
|
checked: o,
|
|
66
76
|
...$,
|
|
67
|
-
style: { marginTop: "-1px" }
|
|
77
|
+
style: { marginTop: "-1px", flexShrink: 0 }
|
|
68
78
|
}
|
|
69
79
|
),
|
|
70
80
|
i && /* @__PURE__ */ _(
|
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
import { jsxs as t, jsx as h } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
const r = (e) => /* @__PURE__ */ t(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 18 18",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
...e,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ h(
|
|
13
|
+
"mask",
|
|
14
|
+
{
|
|
15
|
+
id: "add_alert_svg__a",
|
|
16
|
+
width: 18,
|
|
17
|
+
height: 18,
|
|
18
|
+
x: 0,
|
|
19
|
+
y: 0,
|
|
20
|
+
maskUnits: "userSpaceOnUse",
|
|
21
|
+
style: {
|
|
22
|
+
maskType: "alpha"
|
|
23
|
+
},
|
|
24
|
+
children: /* @__PURE__ */ h("path", { fill: "currentColor", d: "M0 0h18v18H0z" })
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ h("g", { mask: "url(#add_alert_svg__a)", children: /* @__PURE__ */ h(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "M8.25 11.25h1.5v-1.5h1.5v-1.5h-1.5v-1.5h-1.5v1.5h-1.5v1.5h1.5zm-5.25 3v-1.5h1.5V7.5q0-1.556.938-2.766A4.33 4.33 0 0 1 7.874 3.15v-.525q0-.468.328-.797Q8.532 1.5 9 1.5t.797.328q.328.328.328.797v.525q1.5.375 2.438 1.584.937 1.21.937 2.766v5.25H15v1.5zm6 2.25q-.619 0-1.06-.44A1.45 1.45 0 0 1 7.5 15h3q0 .619-.44 1.06-.442.44-1.06.44m-3-3.75h6V7.5q0-1.237-.881-2.119A2.9 2.9 0 0 0 9 4.5q-1.237 0-2.119.881A2.9 2.9 0 0 0 6 7.5z"
|
|
32
|
+
}
|
|
33
|
+
) })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
8
37
|
export {
|
|
9
|
-
|
|
38
|
+
r as default
|
|
10
39
|
};
|
|
@@ -1,10 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
const a = (e) => /* @__PURE__ */ h(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 18 18",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
...e,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ s(
|
|
13
|
+
"mask",
|
|
14
|
+
{
|
|
15
|
+
id: "assignment_svg__a",
|
|
16
|
+
width: 18,
|
|
17
|
+
height: 18,
|
|
18
|
+
x: 0,
|
|
19
|
+
y: 0,
|
|
20
|
+
maskUnits: "userSpaceOnUse",
|
|
21
|
+
style: {
|
|
22
|
+
maskType: "alpha"
|
|
23
|
+
},
|
|
24
|
+
children: /* @__PURE__ */ s("path", { fill: "currentColor", d: "M0 0h18v18H0z" })
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ s("g", { mask: "url(#assignment_svg__a)", children: /* @__PURE__ */ s(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "M3.75 15.75q-.62 0-1.06-.44a1.45 1.45 0 0 1-.44-1.06V3.75q0-.62.44-1.06.442-.44 1.06-.44H6.9q.243-.675.816-1.087Q8.286.75 9 .75q.713 0 1.284.413.572.411.816 1.087h3.15q.619 0 1.06.44.44.442.44 1.06v10.5q0 .619-.44 1.06-.442.44-1.06.44zm0-1.5h10.5V3.75H3.75zm1.5-1.5h5.25v-1.5H5.25zm0-3h7.5v-1.5h-7.5zm0-3h7.5v-1.5h-7.5zM9 3.188a.546.546 0 0 0 .563-.563A.546.546 0 0 0 9 2.063a.546.546 0 0 0-.562.562.546.546 0 0 0 .562.563"
|
|
32
|
+
}
|
|
33
|
+
) })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
8
37
|
export {
|
|
9
|
-
|
|
38
|
+
a as default
|
|
10
39
|
};
|
|
@@ -1,10 +1,39 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
const e = (i) => /* @__PURE__ */ a(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 20 20",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
...i,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t(
|
|
13
|
+
"mask",
|
|
14
|
+
{
|
|
15
|
+
id: "notifications_svg__a",
|
|
16
|
+
width: 20,
|
|
17
|
+
height: 20,
|
|
18
|
+
x: 0,
|
|
19
|
+
y: 0,
|
|
20
|
+
maskUnits: "userSpaceOnUse",
|
|
21
|
+
style: {
|
|
22
|
+
maskType: "alpha"
|
|
23
|
+
},
|
|
24
|
+
children: /* @__PURE__ */ t("path", { fill: "currentColor", d: "M0 0h20v20H0z" })
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t("g", { mask: "url(#notifications_svg__a)", children: /* @__PURE__ */ t(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
fill: "currentColor",
|
|
31
|
+
d: "M4.703 15.67a.85.85 0 0 1-.617-.248.82.82 0 0 1-.254-.611q0-.363.25-.616a.83.83 0 0 1 .615-.253h.075V9.11q0-1.877 1.142-3.315t2.973-1.785V2.947q0-.465.325-.79t.79-.325q.463 0 .789.325.325.325.325.79V4.01q1.835.348 2.975 1.783 1.14 1.434 1.14 3.317v4.83h.075q.364 0 .614.25a.83.83 0 0 1 .25.61.84.84 0 0 1-.25.616.83.83 0 0 1-.613.254zm5.299 2.556q-.645 0-1.1-.457a1.5 1.5 0 0 1-.455-1.098h3.114q0 .65-.458 1.102a1.5 1.5 0 0 1-1.101.453m-3.5-4.284h7V9.11q0-1.458-1.021-2.48-1.021-1.02-2.48-1.02-1.458 0-2.479 1.02-1.02 1.022-1.02 2.48z"
|
|
32
|
+
}
|
|
33
|
+
) })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
8
37
|
export {
|
|
9
|
-
|
|
38
|
+
e as default
|
|
10
39
|
};
|
package/package.json
CHANGED