jynko-kit 1.0.1 → 1.1.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/dist/components/atoms/AIcon/AIcon.d.ts +5 -2
- package/dist/components/atoms/AIcon/AIcon.d.ts.map +1 -1
- package/dist/components/atoms/AIconButton/AIconButton.d.ts +4 -2
- package/dist/components/atoms/AIconButton/AIconButton.d.ts.map +1 -1
- package/dist/components/atoms/AIconLink/AIconLink.d.ts +4 -2
- package/dist/components/atoms/AIconLink/AIconLink.d.ts.map +1 -1
- package/dist/components/atoms/AInput/AInput.d.ts.map +1 -1
- package/dist/components/atoms/AInput/AInput.styles.d.ts.map +1 -1
- package/dist/components/atoms/ASearchInput/ASearchInput.d.ts.map +1 -1
- package/dist/components/atoms/ASearchInput/ASearchInput.styles.d.ts.map +1 -1
- package/dist/components/atoms/ASelect/ASelect.d.ts.map +1 -1
- package/dist/components/atoms/ASelect/ASelect.styles.d.ts +7 -0
- package/dist/components/atoms/ASelect/ASelect.styles.d.ts.map +1 -1
- package/dist/components/atoms/ATypography/ATypography.styles.d.ts.map +1 -1
- package/dist/components/molecules/MModal/MModal.d.ts.map +1 -1
- package/dist/components/organisms/OSidebar/OSidebar.d.ts.map +1 -1
- package/dist/components/organisms/OUserCamera/OUserCamera.d.ts.map +1 -1
- package/dist/index.cjs +400 -393
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +788 -907
- package/dist/index.js.map +1 -1
- package/dist/shared/styles/componentMetrics.d.ts.map +1 -1
- package/dist/shared/styles/theme.d.ts +1 -2
- package/dist/shared/styles/theme.d.ts.map +1 -1
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { useEffect as e, useId as t, useRef as n, useState as r } from "react";
|
|
2
2
|
import { ThemeProvider as i, createGlobalStyle as a, css as o, styled as s } from "styled-components";
|
|
3
3
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ChevronDown as u, ChevronLeft as d, ChevronRight as f, Eye as p, EyeOff as m, Mic as h, MicOff as g, Search as _, Video as v, VideoOff as y, X as b } from "lucide-react";
|
|
5
|
+
import { createPortal as x } from "react-dom";
|
|
6
|
+
import { Link as S, NavLink as C } from "react-router-dom";
|
|
6
7
|
// src/shared/utils/color.ts
|
|
7
|
-
function
|
|
8
|
+
function w(e, t) {
|
|
8
9
|
return `color-mix(in srgb, ${e} 88%, ${t})`;
|
|
9
10
|
}
|
|
10
11
|
// src/shared/styles/theme.ts
|
|
11
|
-
var
|
|
12
|
+
var T = {
|
|
12
13
|
bg: "#0f172a",
|
|
13
14
|
surface: "#1e293b",
|
|
14
15
|
background: "#edf7f6",
|
|
@@ -23,16 +24,16 @@ var m = {
|
|
|
23
24
|
error: "#dc2626",
|
|
24
25
|
success: "#16a34a",
|
|
25
26
|
warning: "#d97706"
|
|
26
|
-
},
|
|
27
|
+
}, E = "30px", D = {
|
|
27
28
|
width: "3px",
|
|
28
29
|
offset: "2px",
|
|
29
30
|
colorMix: "45%"
|
|
30
|
-
},
|
|
31
|
+
}, O = {
|
|
31
32
|
regular: 400,
|
|
32
33
|
semibold: 600,
|
|
33
34
|
bold: 700
|
|
34
|
-
},
|
|
35
|
-
colors:
|
|
35
|
+
}, k = {
|
|
36
|
+
colors: T,
|
|
36
37
|
opacity: {
|
|
37
38
|
disabled: .6,
|
|
38
39
|
disabledButton: .55
|
|
@@ -79,7 +80,7 @@ var m = {
|
|
|
79
80
|
},
|
|
80
81
|
font: {
|
|
81
82
|
sans: "'Segoe UI', system-ui, -apple-system, sans-serif",
|
|
82
|
-
weight:
|
|
83
|
+
weight: O
|
|
83
84
|
},
|
|
84
85
|
typography: {
|
|
85
86
|
fallback: "1rem",
|
|
@@ -94,9 +95,9 @@ var m = {
|
|
|
94
95
|
sup: "0.75rem"
|
|
95
96
|
},
|
|
96
97
|
avatar: {
|
|
97
|
-
border: `2px solid ${
|
|
98
|
+
border: `2px solid ${T.ink}`,
|
|
98
99
|
borderRadius: "50%",
|
|
99
|
-
fontWeight:
|
|
100
|
+
fontWeight: O.semibold,
|
|
100
101
|
sizes: {
|
|
101
102
|
sm: {
|
|
102
103
|
diameter: "32px",
|
|
@@ -120,7 +121,7 @@ var m = {
|
|
|
120
121
|
logo: {
|
|
121
122
|
size: "36px",
|
|
122
123
|
fontSize: "1rem",
|
|
123
|
-
fontWeight:
|
|
124
|
+
fontWeight: O.bold,
|
|
124
125
|
whiteSpace: "nowrap"
|
|
125
126
|
},
|
|
126
127
|
sidebar: {
|
|
@@ -132,65 +133,65 @@ var m = {
|
|
|
132
133
|
fallback: "100vh",
|
|
133
134
|
dynamic: "100dvh"
|
|
134
135
|
},
|
|
135
|
-
border: `2px solid ${
|
|
136
|
+
border: `2px solid ${T.ink}`,
|
|
136
137
|
borderRadius: "16px"
|
|
137
138
|
},
|
|
138
139
|
camera: {
|
|
139
|
-
border: `2px solid ${
|
|
140
|
+
border: `2px solid ${T.ink}`,
|
|
140
141
|
borderRadius: "12px",
|
|
141
142
|
nameBorderRadius: "4px",
|
|
142
143
|
nameMaxWidthOffset: "64px",
|
|
143
144
|
fallbackFontSize: "clamp(2rem, 8vw, 5rem)",
|
|
144
|
-
fallbackFontWeight:
|
|
145
|
+
fallbackFontWeight: O.bold
|
|
145
146
|
},
|
|
146
147
|
shadow: {
|
|
147
148
|
offsetX: "2px",
|
|
148
149
|
offsetY: "3px",
|
|
149
|
-
button: `2px 3px 0 0 ${
|
|
150
|
-
link: `2px 3px 0 0 ${
|
|
151
|
-
navLinks: `2px 3px 0 0 ${
|
|
152
|
-
section: `3px 5px 0 0 ${
|
|
153
|
-
modal: `3px 5px 0 0 ${
|
|
154
|
-
sidebar: `3px 5px 0 0 ${
|
|
150
|
+
button: `2px 3px 0 0 ${T.ink}`,
|
|
151
|
+
link: `2px 3px 0 0 ${T.ink}`,
|
|
152
|
+
navLinks: `2px 3px 0 0 ${T.ink}`,
|
|
153
|
+
section: `3px 5px 0 0 ${T.ink}`,
|
|
154
|
+
modal: `3px 5px 0 0 ${T.ink}`,
|
|
155
|
+
sidebar: `3px 5px 0 0 ${T.ink}`
|
|
155
156
|
},
|
|
156
157
|
button: {
|
|
157
|
-
border: `2px solid ${
|
|
158
|
+
border: `2px solid ${T.ink}`,
|
|
158
159
|
borderRadius: "8px",
|
|
159
|
-
focus:
|
|
160
|
+
focus: D,
|
|
160
161
|
padding: "16px",
|
|
161
162
|
fontSize: "14px",
|
|
162
163
|
textDecoration: "none",
|
|
163
164
|
textTransform: "uppercase"
|
|
164
165
|
},
|
|
165
166
|
iconButton: {
|
|
166
|
-
border: `2px solid ${
|
|
167
|
+
border: `2px solid ${T.ink}`,
|
|
167
168
|
borderRadius: "8px",
|
|
168
|
-
focus:
|
|
169
|
+
focus: D
|
|
169
170
|
},
|
|
170
171
|
iconLink: {
|
|
171
|
-
border: `2px solid ${
|
|
172
|
+
border: `2px solid ${T.ink}`,
|
|
172
173
|
borderRadius: "8px",
|
|
173
|
-
focus:
|
|
174
|
+
focus: D
|
|
174
175
|
},
|
|
175
176
|
badge: {
|
|
176
|
-
border: `2px solid ${
|
|
177
|
+
border: `2px solid ${T.ink}`,
|
|
177
178
|
borderRadius: "8px",
|
|
178
179
|
fontSize: "14px",
|
|
179
180
|
textTransform: "uppercase"
|
|
180
181
|
},
|
|
181
182
|
link: {
|
|
182
|
-
border: `2px solid ${
|
|
183
|
+
border: `2px solid ${T.ink}`,
|
|
183
184
|
borderRadius: "8px",
|
|
184
|
-
focus:
|
|
185
|
+
focus: D,
|
|
185
186
|
padding: "16px",
|
|
186
187
|
fontSize: "14px",
|
|
187
188
|
textDecoration: "none",
|
|
188
189
|
textTransform: "uppercase"
|
|
189
190
|
},
|
|
190
191
|
navLinks: {
|
|
191
|
-
border: `2px solid ${
|
|
192
|
+
border: `2px solid ${T.ink}`,
|
|
192
193
|
borderRadius: "8px",
|
|
193
|
-
focus:
|
|
194
|
+
focus: D,
|
|
194
195
|
padding: "0",
|
|
195
196
|
fontSize: "14px",
|
|
196
197
|
textDecoration: "none",
|
|
@@ -198,60 +199,59 @@ var m = {
|
|
|
198
199
|
itemPadding: "16px"
|
|
199
200
|
},
|
|
200
201
|
formControl: {
|
|
201
|
-
border: `2px solid ${
|
|
202
|
+
border: `2px solid ${T.ink}`,
|
|
202
203
|
borderRadius: "8px",
|
|
203
|
-
padding: "
|
|
204
|
-
height: "3.5rem",
|
|
204
|
+
padding: "8px",
|
|
205
205
|
textareaHeight: "3rem",
|
|
206
|
-
dropdownBorder: `2px solid ${
|
|
206
|
+
dropdownBorder: `2px solid ${T.ink}`,
|
|
207
207
|
optionListMaxHeight: "16rem",
|
|
208
|
-
focus:
|
|
208
|
+
focus: D,
|
|
209
209
|
trailingActionPadding: "3.25rem",
|
|
210
210
|
fontSize: "14px",
|
|
211
211
|
optionTextTransform: "none"
|
|
212
212
|
},
|
|
213
213
|
userBadge: {
|
|
214
|
-
focus:
|
|
214
|
+
focus: D,
|
|
215
215
|
textDecoration: "none"
|
|
216
216
|
},
|
|
217
217
|
section: {
|
|
218
|
-
border: `2px solid ${
|
|
218
|
+
border: `2px solid ${T.ink}`,
|
|
219
219
|
borderRadius: "16px",
|
|
220
|
-
padding:
|
|
220
|
+
padding: E
|
|
221
221
|
},
|
|
222
222
|
modal: {
|
|
223
|
-
padding:
|
|
223
|
+
padding: E,
|
|
224
224
|
maxWidth: "720px",
|
|
225
225
|
maxHeight: "80vh",
|
|
226
|
-
border: `2px solid ${
|
|
226
|
+
border: `2px solid ${T.ink}`,
|
|
227
227
|
borderRadius: "16px",
|
|
228
228
|
title: {
|
|
229
229
|
fontSize: "1.25rem",
|
|
230
|
-
fontWeight:
|
|
230
|
+
fontWeight: O.semibold
|
|
231
231
|
},
|
|
232
232
|
body: { fontSize: "1rem" }
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
// src/shared/utils/tokens.ts
|
|
236
|
-
function
|
|
237
|
-
return e?.colors ? e :
|
|
236
|
+
function A(e) {
|
|
237
|
+
return e?.colors ? e : k;
|
|
238
238
|
}
|
|
239
239
|
// src/components/atoms/AAvatar/AAvatar.styles.ts
|
|
240
|
-
var
|
|
240
|
+
var j = s.span`
|
|
241
241
|
display: inline-flex;
|
|
242
242
|
flex: 0 0 auto;
|
|
243
243
|
align-items: center;
|
|
244
244
|
justify-content: center;
|
|
245
245
|
overflow: hidden;
|
|
246
|
-
border: ${({ theme: e }) =>
|
|
247
|
-
border-radius: ${({ theme: e }) =>
|
|
248
|
-
background: ${({ theme: e }) =>
|
|
249
|
-
color: ${({ theme: e }) =>
|
|
250
|
-
font-family: ${({ theme: e }) =>
|
|
251
|
-
font-weight: ${({ theme: e }) =>
|
|
252
|
-
width: ${({ $size: e, theme: t }) =>
|
|
253
|
-
height: ${({ $size: e, theme: t }) =>
|
|
254
|
-
font-size: ${({ $size: e, theme: t }) =>
|
|
246
|
+
border: ${({ theme: e }) => A(e).avatar.border};
|
|
247
|
+
border-radius: ${({ theme: e }) => A(e).avatar.borderRadius};
|
|
248
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
249
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
250
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
251
|
+
font-weight: ${({ theme: e }) => A(e).avatar.fontWeight};
|
|
252
|
+
width: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].diameter};
|
|
253
|
+
height: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].diameter};
|
|
254
|
+
font-size: ${({ $size: e, theme: t }) => A(t).avatar.sizes[e].fontSize};
|
|
255
255
|
|
|
256
256
|
& > img {
|
|
257
257
|
width: 100%;
|
|
@@ -260,9 +260,9 @@ var b = s.span`
|
|
|
260
260
|
}
|
|
261
261
|
`;
|
|
262
262
|
// src/components/atoms/AAvatar/AAvatar.tsx
|
|
263
|
-
function
|
|
263
|
+
function M({ firstName: e, lastName: t, src: n, alt: i, size: a = "md", ...o }) {
|
|
264
264
|
let [s, l] = r(), u = `${e} ${t}`.trim(), d = i ?? u, f = `${e.charAt(0)}${t.charAt(0)}`.toUpperCase(), p = !!(n && s !== n);
|
|
265
|
-
return /* @__PURE__ */ c(
|
|
265
|
+
return /* @__PURE__ */ c(j, {
|
|
266
266
|
$size: a,
|
|
267
267
|
role: p ? void 0 : "img",
|
|
268
268
|
"aria-label": p ? void 0 : d,
|
|
@@ -277,66 +277,66 @@ function x({ firstName: e, lastName: t, src: n, alt: i, size: a = "md", ...o })
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
// src/shared/styles/componentMetrics.ts
|
|
280
|
-
var
|
|
280
|
+
var N = o`
|
|
281
281
|
display: grid;
|
|
282
|
-
gap: ${({ theme: e }) =>
|
|
282
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
283
283
|
width: 100%;
|
|
284
|
-
`,
|
|
284
|
+
`, P = (e) => ({
|
|
285
285
|
sm: o`
|
|
286
|
-
padding: ${({ theme: t }) =>
|
|
286
|
+
padding: ${({ theme: t }) => A(t).space.components[e].sm};
|
|
287
287
|
`,
|
|
288
288
|
md: o`
|
|
289
|
-
padding: ${({ theme: t }) =>
|
|
289
|
+
padding: ${({ theme: t }) => A(t).space.components[e].md};
|
|
290
290
|
`,
|
|
291
291
|
lg: o`
|
|
292
|
-
padding: ${({ theme: t }) =>
|
|
292
|
+
padding: ${({ theme: t }) => A(t).space.components[e].lg};
|
|
293
293
|
`
|
|
294
|
-
}),
|
|
295
|
-
padding: ${({ theme: e }) =>
|
|
296
|
-
`,
|
|
294
|
+
}), F = o`
|
|
295
|
+
padding: ${({ theme: e }) => A(e).formControl.padding};
|
|
296
|
+
`, I = (e) => o`
|
|
297
297
|
&:focus-visible {
|
|
298
|
-
outline: ${({ theme: t }) => `${
|
|
299
|
-
outline-offset: ${({ theme: t }) =>
|
|
298
|
+
outline: ${({ theme: t }) => `${A(t)[e].focus.width} solid color-mix(in srgb, ${A(t).colors.primary} ${A(t)[e].focus.colorMix}, transparent)`};
|
|
299
|
+
outline-offset: ${({ theme: t }) => A(t)[e].focus.offset};
|
|
300
300
|
}
|
|
301
|
-
`,
|
|
301
|
+
`, L = P("badge"), R = {
|
|
302
302
|
default: o`
|
|
303
|
-
background: ${({ theme: e }) =>
|
|
304
|
-
color: ${({ theme: e }) =>
|
|
303
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
304
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
305
305
|
`,
|
|
306
306
|
info: o`
|
|
307
|
-
background: ${({ theme: e }) =>
|
|
308
|
-
color: ${({ theme: e }) =>
|
|
307
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
308
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
309
309
|
`,
|
|
310
310
|
success: o`
|
|
311
|
-
background: ${({ theme: e }) =>
|
|
312
|
-
color: ${({ theme: e }) =>
|
|
311
|
+
background: ${({ theme: e }) => A(e).colors.success};
|
|
312
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
313
313
|
`,
|
|
314
314
|
warning: o`
|
|
315
|
-
background: ${({ theme: e }) =>
|
|
316
|
-
color: ${({ theme: e }) =>
|
|
315
|
+
background: ${({ theme: e }) => A(e).colors.warning};
|
|
316
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
317
317
|
`,
|
|
318
318
|
error: o`
|
|
319
|
-
background: ${({ theme: e }) =>
|
|
320
|
-
color: ${({ theme: e }) =>
|
|
319
|
+
background: ${({ theme: e }) => A(e).colors.error};
|
|
320
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
321
321
|
`
|
|
322
|
-
},
|
|
322
|
+
}, z = s.span`
|
|
323
323
|
display: inline-flex;
|
|
324
324
|
align-items: center;
|
|
325
325
|
justify-content: center;
|
|
326
|
-
gap: ${({ theme: e }) =>
|
|
327
|
-
border: ${({ theme: e }) =>
|
|
328
|
-
border-radius: ${({ theme: e }) =>
|
|
329
|
-
font-family: ${({ theme: e }) =>
|
|
330
|
-
font-size: ${({ theme: e }) =>
|
|
331
|
-
font-weight: ${({ theme: e }) =>
|
|
332
|
-
text-transform: ${({ theme: e }) =>
|
|
333
|
-
|
|
334
|
-
${({ $size: e }) =>
|
|
335
|
-
${({ $variant: e }) =>
|
|
326
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
327
|
+
border: ${({ theme: e }) => A(e).badge.border};
|
|
328
|
+
border-radius: ${({ theme: e }) => A(e).badge.borderRadius};
|
|
329
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
330
|
+
font-size: ${({ theme: e }) => A(e).badge.fontSize};
|
|
331
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
332
|
+
text-transform: ${({ theme: e }) => A(e).badge.textTransform};
|
|
333
|
+
|
|
334
|
+
${({ $size: e }) => L[e]}
|
|
335
|
+
${({ $variant: e }) => R[e]}
|
|
336
336
|
`;
|
|
337
337
|
// src/components/atoms/ABadge/ABadge.tsx
|
|
338
|
-
function
|
|
339
|
-
return /* @__PURE__ */ c(
|
|
338
|
+
function B({ children: e, size: t = "md", variant: n = "default", ...r }) {
|
|
339
|
+
return /* @__PURE__ */ c(z, {
|
|
340
340
|
$size: t,
|
|
341
341
|
$variant: n,
|
|
342
342
|
...r,
|
|
@@ -344,8 +344,8 @@ function k({ children: e, size: t = "md", variant: n = "default", ...r }) {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
// src/shared/hooks/usePressState.ts
|
|
347
|
-
var
|
|
348
|
-
function
|
|
347
|
+
var V = 150;
|
|
348
|
+
function H({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o, onLostPointerCapture: s }) {
|
|
349
349
|
let [c, l] = r(!1), u = n(0), d = n(null);
|
|
350
350
|
e(() => () => {
|
|
351
351
|
d.current && clearTimeout(d.current);
|
|
@@ -354,7 +354,7 @@ function j({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o,
|
|
|
354
354
|
d.current && clearTimeout(d.current);
|
|
355
355
|
}, p = () => {
|
|
356
356
|
if (!u.current) return;
|
|
357
|
-
let e = performance.now() - u.current, t = Math.max(0,
|
|
357
|
+
let e = performance.now() - u.current, t = Math.max(0, V - e);
|
|
358
358
|
f(), d.current = setTimeout(() => {
|
|
359
359
|
l(!1), u.current = 0, d.current = null;
|
|
360
360
|
}, t);
|
|
@@ -378,32 +378,32 @@ function j({ disabled: t, onPointerDown: i, onPointerUp: a, onPointerCancel: o,
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
// src/components/atoms/AButton/AButton.styles.ts
|
|
381
|
-
var
|
|
381
|
+
var U = P("button"), W = {
|
|
382
382
|
primary: o`
|
|
383
|
-
background: ${({ theme: e }) =>
|
|
384
|
-
color: ${({ theme: e }) =>
|
|
383
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
384
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
385
385
|
|
|
386
386
|
&:hover:not(:disabled) {
|
|
387
|
-
background: ${({ theme: e }) =>
|
|
387
|
+
background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
|
|
388
388
|
}
|
|
389
389
|
`,
|
|
390
390
|
secondary: o`
|
|
391
|
-
background: ${({ theme: e }) =>
|
|
392
|
-
color: ${({ theme: e }) =>
|
|
391
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
392
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
393
393
|
|
|
394
394
|
&:hover:not(:disabled) {
|
|
395
|
-
background: ${({ theme: e }) =>
|
|
395
|
+
background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
|
|
396
396
|
}
|
|
397
397
|
`
|
|
398
|
-
},
|
|
398
|
+
}, ee = o`
|
|
399
399
|
display: inline-flex;
|
|
400
400
|
align-items: center;
|
|
401
401
|
justify-content: center;
|
|
402
|
-
gap: ${({ theme: e }) =>
|
|
403
|
-
font-family: ${({ theme: e }) =>
|
|
404
|
-
font-size: ${({ theme: e }) =>
|
|
405
|
-
font-weight: ${({ theme: e }) =>
|
|
406
|
-
text-transform: ${({ theme: e }) =>
|
|
402
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
403
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
404
|
+
font-size: ${({ theme: e }) => A(e).button.fontSize};
|
|
405
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
406
|
+
text-transform: ${({ theme: e }) => A(e).button.textTransform};
|
|
407
407
|
cursor: pointer;
|
|
408
408
|
transition:
|
|
409
409
|
background-color 0.15s ease,
|
|
@@ -411,44 +411,44 @@ var M = C("button"), N = {
|
|
|
411
411
|
box-shadow 0.15s ease;
|
|
412
412
|
white-space: nowrap;
|
|
413
413
|
|
|
414
|
-
${
|
|
414
|
+
${I("button")}
|
|
415
415
|
|
|
416
416
|
&:disabled {
|
|
417
|
-
opacity: ${({ theme: e }) =>
|
|
417
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
|
|
418
418
|
cursor: not-allowed;
|
|
419
419
|
}
|
|
420
|
-
`,
|
|
421
|
-
border: ${({ theme: e }) =>
|
|
422
|
-
box-shadow: ${({ theme: e }) =>
|
|
420
|
+
`, te = o`
|
|
421
|
+
border: ${({ theme: e }) => A(e).button.border};
|
|
422
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.button};
|
|
423
423
|
|
|
424
424
|
&:active:not(:disabled),
|
|
425
425
|
&[data-pressed='true']:not(:disabled),
|
|
426
426
|
&:disabled {
|
|
427
|
-
transform: ${({ theme: e }) => `translate(${
|
|
427
|
+
transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
|
|
428
428
|
box-shadow: none;
|
|
429
429
|
}
|
|
430
|
-
`,
|
|
431
|
-
border-radius: ${({ theme: e }) =>
|
|
432
|
-
`,
|
|
433
|
-
padding: ${({ theme: e }) =>
|
|
434
|
-
`,
|
|
435
|
-
${
|
|
436
|
-
${
|
|
437
|
-
${
|
|
438
|
-
${
|
|
439
|
-
${({ $variant: e }) =>
|
|
440
|
-
${({ $size: e }) =>
|
|
430
|
+
`, ne = o`
|
|
431
|
+
border-radius: ${({ theme: e }) => A(e).button.borderRadius};
|
|
432
|
+
`, re = o`
|
|
433
|
+
padding: ${({ theme: e }) => A(e).button.padding};
|
|
434
|
+
`, ie = s.button`
|
|
435
|
+
${ee}
|
|
436
|
+
${te}
|
|
437
|
+
${ne}
|
|
438
|
+
${re}
|
|
439
|
+
${({ $variant: e }) => W[e]}
|
|
440
|
+
${({ $size: e }) => U[e]}
|
|
441
441
|
`;
|
|
442
442
|
// src/components/atoms/AButton/AButton.tsx
|
|
443
|
-
function
|
|
444
|
-
let { pressed: d, pressHandlers: f } =
|
|
443
|
+
function ae({ children: e, variant: t = "primary", size: n = "md", type: r = "button", disabled: i, onPointerDown: a, onPointerUp: o, onPointerCancel: s, onLostPointerCapture: l, ...u }) {
|
|
444
|
+
let { pressed: d, pressHandlers: f } = H({
|
|
445
445
|
disabled: i,
|
|
446
446
|
onPointerDown: a,
|
|
447
447
|
onPointerUp: o,
|
|
448
448
|
onPointerCancel: s,
|
|
449
449
|
onLostPointerCapture: l
|
|
450
450
|
});
|
|
451
|
-
return /* @__PURE__ */ c(
|
|
451
|
+
return /* @__PURE__ */ c(ie, {
|
|
452
452
|
$size: n,
|
|
453
453
|
$variant: t,
|
|
454
454
|
type: r,
|
|
@@ -460,19 +460,19 @@ function z({ children: e, variant: t = "primary", size: n = "md", type: r = "but
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
// src/components/atoms/AIcon/AIcon.styles.ts
|
|
463
|
-
var
|
|
464
|
-
default: (e) =>
|
|
465
|
-
error: (e) =>
|
|
466
|
-
success: (e) =>
|
|
467
|
-
warning: (e) =>
|
|
468
|
-
},
|
|
463
|
+
var oe = {
|
|
464
|
+
default: (e) => A(e).colors.text,
|
|
465
|
+
error: (e) => A(e).colors.error,
|
|
466
|
+
success: (e) => A(e).colors.success,
|
|
467
|
+
warning: (e) => A(e).colors.warning
|
|
468
|
+
}, se = s.span`
|
|
469
469
|
display: inline-flex;
|
|
470
|
-
width: ${({ $size: e, theme: t }) =>
|
|
471
|
-
height: ${({ $size: e, theme: t }) =>
|
|
470
|
+
width: ${({ $size: e, theme: t }) => A(t).icon.sizes[e]};
|
|
471
|
+
height: ${({ $size: e, theme: t }) => A(t).icon.sizes[e]};
|
|
472
472
|
flex: 0 0 auto;
|
|
473
473
|
align-items: center;
|
|
474
474
|
justify-content: center;
|
|
475
|
-
color: ${({ $type: e, theme: t }) =>
|
|
475
|
+
color: ${({ $type: e, theme: t }) => oe[e](t)};
|
|
476
476
|
|
|
477
477
|
& > svg {
|
|
478
478
|
display: block;
|
|
@@ -481,76 +481,79 @@ var B = {
|
|
|
481
481
|
}
|
|
482
482
|
`;
|
|
483
483
|
// src/components/atoms/AIcon/AIcon.tsx
|
|
484
|
-
function
|
|
485
|
-
let
|
|
486
|
-
return /* @__PURE__ */ c(
|
|
487
|
-
$size:
|
|
488
|
-
$type:
|
|
489
|
-
"aria-hidden": !
|
|
490
|
-
"aria-label":
|
|
491
|
-
role:
|
|
492
|
-
title:
|
|
493
|
-
...
|
|
494
|
-
children: e
|
|
484
|
+
function G({ icon: e, children: t, size: n = "md", type: r = "default", title: i, "aria-label": a, ...o }) {
|
|
485
|
+
let s = i ?? a;
|
|
486
|
+
return /* @__PURE__ */ c(se, {
|
|
487
|
+
$size: n,
|
|
488
|
+
$type: r,
|
|
489
|
+
"aria-hidden": !s || void 0,
|
|
490
|
+
"aria-label": s,
|
|
491
|
+
role: s ? "img" : void 0,
|
|
492
|
+
title: i,
|
|
493
|
+
...o,
|
|
494
|
+
children: e ? /* @__PURE__ */ c(e, {
|
|
495
|
+
"aria-hidden": !0,
|
|
496
|
+
focusable: !1
|
|
497
|
+
}) : t
|
|
495
498
|
});
|
|
496
499
|
}
|
|
497
500
|
// src/components/atoms/AIconButton/AIconButton.styles.ts
|
|
498
|
-
var
|
|
501
|
+
var ce = P("iconButton"), le = {
|
|
499
502
|
primary: o`
|
|
500
|
-
background: ${({ theme: e }) =>
|
|
501
|
-
color: ${({ theme: e }) =>
|
|
503
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
504
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
502
505
|
|
|
503
506
|
&:hover:not(:disabled) {
|
|
504
|
-
background: ${({ theme: e }) =>
|
|
507
|
+
background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
|
|
505
508
|
}
|
|
506
509
|
`,
|
|
507
510
|
secondary: o`
|
|
508
|
-
background: ${({ theme: e }) =>
|
|
509
|
-
color: ${({ theme: e }) =>
|
|
511
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
512
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
510
513
|
|
|
511
514
|
&:hover:not(:disabled) {
|
|
512
|
-
background: ${({ theme: e }) =>
|
|
515
|
+
background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
|
|
513
516
|
}
|
|
514
517
|
`
|
|
515
|
-
},
|
|
518
|
+
}, ue = o`
|
|
516
519
|
display: inline-flex;
|
|
517
520
|
align-items: center;
|
|
518
521
|
justify-content: center;
|
|
519
|
-
gap: ${({ theme: e }) =>
|
|
520
|
-
font-family: ${({ theme: e }) =>
|
|
521
|
-
font-size: ${({ theme: e }) =>
|
|
522
|
-
font-weight: ${({ theme: e }) =>
|
|
523
|
-
text-transform: ${({ theme: e }) =>
|
|
522
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
523
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
524
|
+
font-size: ${({ theme: e }) => A(e).button.fontSize};
|
|
525
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
526
|
+
text-transform: ${({ theme: e }) => A(e).button.textTransform};
|
|
524
527
|
cursor: pointer;
|
|
525
528
|
transition:
|
|
526
529
|
background-color 0.15s ease,
|
|
527
530
|
transform 0.15s ease,
|
|
528
531
|
box-shadow 0.15s ease;
|
|
529
532
|
|
|
530
|
-
${
|
|
533
|
+
${I("iconButton")}
|
|
531
534
|
|
|
532
535
|
&:disabled {
|
|
533
|
-
opacity: ${({ theme: e }) =>
|
|
536
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
|
|
534
537
|
cursor: not-allowed;
|
|
535
538
|
}
|
|
536
|
-
`,
|
|
537
|
-
border: ${({ theme: e }) =>
|
|
538
|
-
box-shadow: ${({ theme: e }) =>
|
|
539
|
+
`, de = o`
|
|
540
|
+
border: ${({ theme: e }) => A(e).iconButton.border};
|
|
541
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.button};
|
|
539
542
|
|
|
540
543
|
&:active:not(:disabled),
|
|
541
544
|
&[data-pressed='true']:not(:disabled),
|
|
542
545
|
&:disabled {
|
|
543
|
-
transform: ${({ theme: e }) => `translate(${
|
|
546
|
+
transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
|
|
544
547
|
box-shadow: none;
|
|
545
548
|
}
|
|
546
|
-
`,
|
|
549
|
+
`, fe = {
|
|
547
550
|
square: o`
|
|
548
|
-
border-radius: ${({ theme: e }) =>
|
|
551
|
+
border-radius: ${({ theme: e }) => A(e).iconButton.borderRadius};
|
|
549
552
|
`,
|
|
550
553
|
rounded: o`
|
|
551
|
-
border-radius: ${({ theme: e }) =>
|
|
554
|
+
border-radius: ${({ theme: e }) => A(e).radius.full};
|
|
552
555
|
`
|
|
553
|
-
},
|
|
556
|
+
}, pe = o`
|
|
554
557
|
background: transparent;
|
|
555
558
|
border: none;
|
|
556
559
|
box-shadow: none;
|
|
@@ -562,102 +565,103 @@ var U = C("iconButton"), ee = {
|
|
|
562
565
|
box-shadow: none;
|
|
563
566
|
}
|
|
564
567
|
`;
|
|
565
|
-
function
|
|
568
|
+
function K(e, t) {
|
|
566
569
|
return `color-mix(in srgb, ${e} ${t}, transparent)`;
|
|
567
570
|
}
|
|
568
|
-
var
|
|
571
|
+
var me = {
|
|
569
572
|
primary: o`
|
|
570
|
-
color: ${({ theme: e }) =>
|
|
573
|
+
color: ${({ theme: e }) => A(e).colors.primary};
|
|
571
574
|
|
|
572
575
|
&:hover:not(:disabled) {
|
|
573
|
-
background: ${({ theme: e }) =>
|
|
576
|
+
background: ${({ theme: e }) => K(A(e).colors.primary, "18%")};
|
|
574
577
|
}
|
|
575
578
|
|
|
576
579
|
&:active:not(:disabled),
|
|
577
580
|
&[data-pressed='true']:not(:disabled) {
|
|
578
|
-
background: ${({ theme: e }) =>
|
|
581
|
+
background: ${({ theme: e }) => w(K(A(e).colors.primary, "18%"), A(e).colors.ink)};
|
|
579
582
|
}
|
|
580
583
|
`,
|
|
581
584
|
secondary: o`
|
|
582
|
-
color: ${({ theme: e }) =>
|
|
585
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
583
586
|
|
|
584
587
|
&:hover:not(:disabled) {
|
|
585
|
-
background: ${({ theme: e }) =>
|
|
588
|
+
background: ${({ theme: e }) => K(A(e).colors.text, "12%")};
|
|
586
589
|
}
|
|
587
590
|
|
|
588
591
|
&:active:not(:disabled),
|
|
589
592
|
&[data-pressed='true']:not(:disabled) {
|
|
590
|
-
background: ${({ theme: e }) =>
|
|
593
|
+
background: ${({ theme: e }) => w(K(A(e).colors.text, "12%"), A(e).colors.ink)};
|
|
591
594
|
}
|
|
592
595
|
`
|
|
593
|
-
},
|
|
594
|
-
${
|
|
596
|
+
}, he = s.button`
|
|
597
|
+
${ue}
|
|
595
598
|
padding: 0;
|
|
596
599
|
flex-shrink: 0;
|
|
597
600
|
|
|
598
|
-
${({ $size: e }) =>
|
|
599
|
-
${({ $shape: e }) =>
|
|
601
|
+
${({ $size: e }) => ce[e]}
|
|
602
|
+
${({ $shape: e }) => fe[e]}
|
|
600
603
|
${({ $ghost: e, $variant: t }) => e ? o`
|
|
601
|
-
${
|
|
602
|
-
${
|
|
604
|
+
${pe}
|
|
605
|
+
${me[t]}
|
|
603
606
|
` : o`
|
|
604
|
-
${
|
|
605
|
-
${
|
|
607
|
+
${de}
|
|
608
|
+
${le[t]}
|
|
606
609
|
`}
|
|
607
610
|
`;
|
|
608
611
|
// src/components/atoms/AIconButton/AIconButton.tsx
|
|
609
|
-
function
|
|
610
|
-
let { pressed:
|
|
611
|
-
disabled:
|
|
612
|
-
onPointerDown:
|
|
613
|
-
onPointerUp:
|
|
614
|
-
onPointerCancel:
|
|
615
|
-
onLostPointerCapture:
|
|
612
|
+
function q({ children: e, icon: t, variant: n = "primary", size: r = "md", shape: i = "square", ghost: a = !1, type: o = "button", disabled: s, ref: l, onPointerDown: u, onPointerUp: d, onPointerCancel: f, onLostPointerCapture: p, ...m }) {
|
|
613
|
+
let { pressed: h, pressHandlers: g } = H({
|
|
614
|
+
disabled: s,
|
|
615
|
+
onPointerDown: u,
|
|
616
|
+
onPointerUp: d,
|
|
617
|
+
onPointerCancel: f,
|
|
618
|
+
onLostPointerCapture: p
|
|
616
619
|
});
|
|
617
|
-
return /* @__PURE__ */ c(
|
|
618
|
-
$ghost:
|
|
619
|
-
$shape:
|
|
620
|
-
$size:
|
|
621
|
-
$variant:
|
|
622
|
-
type:
|
|
623
|
-
disabled:
|
|
624
|
-
"data-pressed":
|
|
625
|
-
ref:
|
|
626
|
-
...
|
|
627
|
-
...
|
|
628
|
-
children: /* @__PURE__ */ c(
|
|
629
|
-
|
|
620
|
+
return /* @__PURE__ */ c(he, {
|
|
621
|
+
$ghost: a,
|
|
622
|
+
$shape: i,
|
|
623
|
+
$size: r,
|
|
624
|
+
$variant: n,
|
|
625
|
+
type: o,
|
|
626
|
+
disabled: s,
|
|
627
|
+
"data-pressed": h ? "true" : void 0,
|
|
628
|
+
ref: l,
|
|
629
|
+
...m,
|
|
630
|
+
...g,
|
|
631
|
+
children: /* @__PURE__ */ c(G, {
|
|
632
|
+
icon: t,
|
|
633
|
+
size: r,
|
|
630
634
|
style: { color: "inherit" },
|
|
631
635
|
children: e
|
|
632
636
|
})
|
|
633
637
|
});
|
|
634
638
|
}
|
|
635
639
|
// src/components/atoms/AIconLink/AIconLink.styles.ts
|
|
636
|
-
var
|
|
640
|
+
var ge = P("iconLink"), _e = {
|
|
637
641
|
primary: o`
|
|
638
|
-
background: ${({ theme: e }) =>
|
|
639
|
-
color: ${({ theme: e }) =>
|
|
642
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
643
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
640
644
|
|
|
641
645
|
&:hover {
|
|
642
|
-
background: ${({ theme: e }) =>
|
|
646
|
+
background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
|
|
643
647
|
}
|
|
644
648
|
`,
|
|
645
649
|
secondary: o`
|
|
646
|
-
background: ${({ theme: e }) =>
|
|
647
|
-
color: ${({ theme: e }) =>
|
|
650
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
651
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
648
652
|
|
|
649
653
|
&:hover {
|
|
650
|
-
background: ${({ theme: e }) =>
|
|
654
|
+
background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
|
|
651
655
|
}
|
|
652
656
|
`
|
|
653
|
-
},
|
|
657
|
+
}, ve = {
|
|
654
658
|
square: o`
|
|
655
|
-
border-radius: ${({ theme: e }) =>
|
|
659
|
+
border-radius: ${({ theme: e }) => A(e).iconLink.borderRadius};
|
|
656
660
|
`,
|
|
657
661
|
rounded: o`
|
|
658
|
-
border-radius: ${({ theme: e }) =>
|
|
662
|
+
border-radius: ${({ theme: e }) => A(e).radius.full};
|
|
659
663
|
`
|
|
660
|
-
},
|
|
664
|
+
}, ye = o`
|
|
661
665
|
background: transparent;
|
|
662
666
|
border: none;
|
|
663
667
|
box-shadow: none;
|
|
@@ -669,293 +673,264 @@ var se = C("iconLink"), ce = {
|
|
|
669
673
|
box-shadow: none;
|
|
670
674
|
}
|
|
671
675
|
`;
|
|
672
|
-
function
|
|
676
|
+
function J(e, t) {
|
|
673
677
|
return `color-mix(in srgb, ${e} ${t}, transparent)`;
|
|
674
678
|
}
|
|
675
|
-
var
|
|
679
|
+
var be = {
|
|
676
680
|
primary: o`
|
|
677
|
-
color: ${({ theme: e }) =>
|
|
681
|
+
color: ${({ theme: e }) => A(e).colors.primary};
|
|
678
682
|
|
|
679
683
|
&:hover {
|
|
680
|
-
background: ${({ theme: e }) =>
|
|
684
|
+
background: ${({ theme: e }) => J(A(e).colors.primary, "18%")};
|
|
681
685
|
}
|
|
682
686
|
|
|
683
687
|
&:active,
|
|
684
688
|
&[data-pressed='true'] {
|
|
685
|
-
background: ${({ theme: e }) =>
|
|
689
|
+
background: ${({ theme: e }) => w(J(A(e).colors.primary, "18%"), A(e).colors.ink)};
|
|
686
690
|
}
|
|
687
691
|
`,
|
|
688
692
|
secondary: o`
|
|
689
|
-
color: ${({ theme: e }) =>
|
|
693
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
690
694
|
|
|
691
695
|
&:hover {
|
|
692
|
-
background: ${({ theme: e }) =>
|
|
696
|
+
background: ${({ theme: e }) => J(A(e).colors.text, "12%")};
|
|
693
697
|
}
|
|
694
698
|
|
|
695
699
|
&:active,
|
|
696
700
|
&[data-pressed='true'] {
|
|
697
|
-
background: ${({ theme: e }) =>
|
|
701
|
+
background: ${({ theme: e }) => w(J(A(e).colors.text, "12%"), A(e).colors.ink)};
|
|
698
702
|
}
|
|
699
703
|
`
|
|
700
|
-
},
|
|
704
|
+
}, xe = s.a`
|
|
701
705
|
display: inline-flex;
|
|
702
706
|
align-items: center;
|
|
703
707
|
justify-content: center;
|
|
704
|
-
gap: ${({ theme: e }) =>
|
|
705
|
-
font-family: ${({ theme: e }) =>
|
|
706
|
-
font-size: ${({ theme: e }) =>
|
|
707
|
-
font-weight: ${({ theme: e }) =>
|
|
708
|
-
text-transform: ${({ theme: e }) =>
|
|
709
|
-
text-decoration: ${({ theme: e }) =>
|
|
708
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
709
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
710
|
+
font-size: ${({ theme: e }) => A(e).button.fontSize};
|
|
711
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
712
|
+
text-transform: ${({ theme: e }) => A(e).button.textTransform};
|
|
713
|
+
text-decoration: ${({ theme: e }) => A(e).button.textDecoration};
|
|
710
714
|
cursor: pointer;
|
|
711
715
|
transition:
|
|
712
716
|
background-color 0.15s ease,
|
|
713
717
|
transform 0.15s ease,
|
|
714
718
|
box-shadow 0.15s ease;
|
|
715
719
|
|
|
716
|
-
${
|
|
720
|
+
${I("iconLink")}
|
|
717
721
|
|
|
718
|
-
border: ${({ theme: e }) =>
|
|
719
|
-
box-shadow: ${({ theme: e }) =>
|
|
722
|
+
border: ${({ theme: e }) => A(e).iconLink.border};
|
|
723
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.button};
|
|
720
724
|
|
|
721
725
|
&:active,
|
|
722
726
|
&[data-pressed='true'] {
|
|
723
|
-
transform: ${({ theme: e }) => `translate(${
|
|
727
|
+
transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
|
|
724
728
|
box-shadow: none;
|
|
725
729
|
}
|
|
726
730
|
|
|
727
|
-
${({ $size: e }) =>
|
|
728
|
-
${({ $shape: e }) =>
|
|
731
|
+
${({ $size: e }) => ge[e]}
|
|
732
|
+
${({ $shape: e }) => ve[e]}
|
|
729
733
|
${({ $ghost: e, $variant: t }) => e ? o`
|
|
730
|
-
${
|
|
731
|
-
${
|
|
732
|
-
` :
|
|
734
|
+
${ye}
|
|
735
|
+
${be[t]}
|
|
736
|
+
` : _e[t]}
|
|
733
737
|
`;
|
|
734
738
|
// src/components/atoms/AIconLink/AIconLink.tsx
|
|
735
|
-
function
|
|
736
|
-
let { pressed:
|
|
737
|
-
onPointerDown:
|
|
738
|
-
onPointerUp:
|
|
739
|
-
onPointerCancel:
|
|
740
|
-
onLostPointerCapture:
|
|
739
|
+
function Y({ children: e, icon: t, variant: n = "primary", size: r = "md", shape: i = "square", ghost: a = !1, onPointerDown: o, onPointerUp: s, onPointerCancel: l, onLostPointerCapture: u, ...d }) {
|
|
740
|
+
let { pressed: f, pressHandlers: p } = H({
|
|
741
|
+
onPointerDown: o,
|
|
742
|
+
onPointerUp: s,
|
|
743
|
+
onPointerCancel: l,
|
|
744
|
+
onLostPointerCapture: u
|
|
741
745
|
});
|
|
742
|
-
return /* @__PURE__ */ c(
|
|
743
|
-
$ghost:
|
|
744
|
-
$shape:
|
|
745
|
-
$size:
|
|
746
|
-
$variant:
|
|
747
|
-
"data-pressed":
|
|
748
|
-
...
|
|
749
|
-
...
|
|
750
|
-
children: /* @__PURE__ */ c(
|
|
751
|
-
|
|
746
|
+
return /* @__PURE__ */ c(xe, {
|
|
747
|
+
$ghost: a,
|
|
748
|
+
$shape: i,
|
|
749
|
+
$size: r,
|
|
750
|
+
$variant: n,
|
|
751
|
+
"data-pressed": f ? "true" : void 0,
|
|
752
|
+
...d,
|
|
753
|
+
...p,
|
|
754
|
+
children: /* @__PURE__ */ c(G, {
|
|
755
|
+
icon: t,
|
|
756
|
+
size: r,
|
|
752
757
|
style: { color: "inherit" },
|
|
753
758
|
children: e
|
|
754
759
|
})
|
|
755
760
|
});
|
|
756
761
|
}
|
|
757
762
|
// src/components/atoms/AInput/AInput.styles.ts
|
|
758
|
-
var
|
|
759
|
-
color: ${({ theme: e }) =>
|
|
760
|
-
font-size: ${({ theme: e }) =>
|
|
761
|
-
font-weight: ${({ theme: e }) =>
|
|
762
|
-
`,
|
|
763
|
+
var Se = o`
|
|
764
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
765
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
766
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
767
|
+
`, Ce = o`
|
|
763
768
|
box-sizing: border-box;
|
|
764
769
|
width: 100%;
|
|
765
|
-
|
|
766
|
-
border: ${({ theme: e }) =>
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
color: ${({ theme: e }) => y(e).colors.text};
|
|
770
|
+
border: ${({ theme: e }) => A(e).formControl.border};
|
|
771
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
772
|
+
padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${A(e).formControl.padding} ${A(e).formControl.trailingActionPadding} ${A(e).formControl.padding} ${A(e).formControl.padding}` : A(e).formControl.padding};
|
|
773
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
774
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
771
775
|
font: inherit;
|
|
772
|
-
font-size: ${({ theme: e }) =>
|
|
776
|
+
font-size: ${({ theme: e }) => A(e).formControl.fontSize};
|
|
773
777
|
|
|
774
|
-
${
|
|
778
|
+
${I("formControl")}
|
|
775
779
|
|
|
776
780
|
&:disabled {
|
|
777
781
|
cursor: not-allowed;
|
|
778
|
-
opacity: ${({ theme: e }) =>
|
|
782
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabled};
|
|
779
783
|
}
|
|
780
784
|
|
|
781
785
|
${({ $invalid: e, theme: t }) => e && o`
|
|
782
|
-
border-color: ${
|
|
786
|
+
border-color: ${A(t).colors.error};
|
|
783
787
|
`}
|
|
784
788
|
|
|
785
789
|
${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
|
|
786
|
-
border-color: ${
|
|
790
|
+
border-color: ${A(n).colors.warning};
|
|
787
791
|
`}
|
|
788
|
-
`,
|
|
789
|
-
color: ${({ theme: e, $type: t }) =>
|
|
790
|
-
font-size: ${({ theme: e }) =>
|
|
791
|
-
`,
|
|
792
|
-
${
|
|
793
|
-
`,
|
|
794
|
-
${
|
|
795
|
-
`,
|
|
792
|
+
`, we = o`
|
|
793
|
+
color: ${({ theme: e, $type: t }) => A(e).colors[t]};
|
|
794
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
795
|
+
`, Te = s.div`
|
|
796
|
+
${N}
|
|
797
|
+
`, Ee = s.label`
|
|
798
|
+
${Se}
|
|
799
|
+
`, De = s.div`
|
|
796
800
|
position: relative;
|
|
797
|
-
`,
|
|
798
|
-
${
|
|
801
|
+
`, Oe = s.input`
|
|
802
|
+
${Ce}
|
|
799
803
|
|
|
800
804
|
&:focus,
|
|
801
805
|
&:focus-visible {
|
|
802
806
|
${({ $invalid: e, $warning: t, theme: n }) => e ? o`
|
|
803
|
-
border-color: ${
|
|
807
|
+
border-color: ${A(n).colors.error};
|
|
804
808
|
` : t ? o`
|
|
805
|
-
border-color: ${
|
|
809
|
+
border-color: ${A(n).colors.warning};
|
|
806
810
|
` : ""}
|
|
807
811
|
/* TODO: This prevents the outline from appearing when navigating with the Tab key */
|
|
808
812
|
outline: none;
|
|
809
813
|
}
|
|
810
|
-
`,
|
|
814
|
+
`, ke = s(q)`
|
|
811
815
|
position: absolute;
|
|
812
816
|
top: 50%;
|
|
813
|
-
right: ${({ theme: e }) =>
|
|
817
|
+
right: ${({ theme: e }) => A(e).space.md};
|
|
814
818
|
translate: 0 -50%;
|
|
815
|
-
`,
|
|
816
|
-
${
|
|
819
|
+
`, X = s.div`
|
|
820
|
+
${we}
|
|
817
821
|
`;
|
|
818
822
|
// src/components/atoms/AInput/AInput.tsx
|
|
819
|
-
function
|
|
820
|
-
|
|
821
|
-
fill: "none",
|
|
822
|
-
viewBox: "0 0 24 24",
|
|
823
|
-
children: [/* @__PURE__ */ c("path", {
|
|
824
|
-
d: "M2.5 12s3.25-6 9.5-6 9.5 6 9.5 6-3.25 6-9.5 6-9.5-6-9.5-6Z",
|
|
825
|
-
stroke: "currentColor",
|
|
826
|
-
strokeLinecap: "round",
|
|
827
|
-
strokeLinejoin: "round",
|
|
828
|
-
strokeWidth: "1.8"
|
|
829
|
-
}), e ? /* @__PURE__ */ c("path", {
|
|
830
|
-
d: "m3 3 18 18M10.6 10.6a2 2 0 0 0 2.8 2.8",
|
|
831
|
-
stroke: "currentColor",
|
|
832
|
-
strokeLinecap: "round",
|
|
833
|
-
strokeWidth: "1.8"
|
|
834
|
-
}) : /* @__PURE__ */ c("circle", {
|
|
835
|
-
cx: "12",
|
|
836
|
-
cy: "12",
|
|
837
|
-
r: "2.5",
|
|
838
|
-
stroke: "currentColor",
|
|
839
|
-
strokeWidth: "1.8"
|
|
840
|
-
})]
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
function Se({ type: e = "text", id: n, label: i, error: a, warning: o, disabled: s, ref: u, "aria-describedby": d, "aria-invalid": f, ...p }) {
|
|
844
|
-
let m = t(), h = n ?? m, g = `${h}-error`, _ = `${h}-warning`, [v, y] = r(!1), b = !!a || f === !0 || f === "true", x = [
|
|
823
|
+
function Ae({ type: e = "text", id: n, label: i, error: a, warning: o, disabled: s, ref: u, "aria-describedby": d, "aria-invalid": f, ...h }) {
|
|
824
|
+
let g = t(), _ = n ?? g, v = `${_}-error`, y = `${_}-warning`, [b, x] = r(!1), S = !!a || f === !0 || f === "true", C = [
|
|
845
825
|
d,
|
|
846
|
-
a ?
|
|
847
|
-
o ?
|
|
826
|
+
a ? v : void 0,
|
|
827
|
+
o ? y : void 0
|
|
848
828
|
].filter(Boolean).join(" ") || void 0;
|
|
849
|
-
return /* @__PURE__ */ l(
|
|
850
|
-
i ? /* @__PURE__ */ c(
|
|
851
|
-
htmlFor:
|
|
829
|
+
return /* @__PURE__ */ l(Te, { children: [
|
|
830
|
+
i ? /* @__PURE__ */ c(Ee, {
|
|
831
|
+
htmlFor: _,
|
|
852
832
|
children: i
|
|
853
833
|
}) : null,
|
|
854
|
-
/* @__PURE__ */ l(
|
|
855
|
-
...
|
|
834
|
+
/* @__PURE__ */ l(De, { children: [/* @__PURE__ */ c(Oe, {
|
|
835
|
+
...h,
|
|
856
836
|
$hasTrailingAction: e === "password",
|
|
857
|
-
$invalid:
|
|
837
|
+
$invalid: S,
|
|
858
838
|
$warning: !!o,
|
|
859
|
-
"aria-describedby":
|
|
860
|
-
"aria-invalid":
|
|
839
|
+
"aria-describedby": C,
|
|
840
|
+
"aria-invalid": S || void 0,
|
|
861
841
|
disabled: s,
|
|
862
|
-
id:
|
|
842
|
+
id: _,
|
|
863
843
|
ref: u,
|
|
864
|
-
type: e === "password" &&
|
|
865
|
-
}), e === "password" ? /* @__PURE__ */ c(
|
|
866
|
-
"aria-label":
|
|
867
|
-
"aria-pressed":
|
|
844
|
+
type: e === "password" && b ? "text" : e
|
|
845
|
+
}), e === "password" ? /* @__PURE__ */ c(ke, {
|
|
846
|
+
"aria-label": b ? "Hide password" : "Show password",
|
|
847
|
+
"aria-pressed": b,
|
|
868
848
|
disabled: s,
|
|
869
849
|
ghost: !0,
|
|
870
850
|
onClick: () => {
|
|
871
|
-
|
|
851
|
+
x((e) => !e);
|
|
872
852
|
},
|
|
873
853
|
shape: "rounded",
|
|
874
|
-
size: "
|
|
854
|
+
size: "sm",
|
|
875
855
|
type: "button",
|
|
876
856
|
variant: "primary",
|
|
877
|
-
|
|
878
|
-
size: "md",
|
|
879
|
-
style: { color: "inherit" },
|
|
880
|
-
title: v ? "Hide password" : "Show password",
|
|
881
|
-
children: /* @__PURE__ */ c(xe, { visible: v })
|
|
882
|
-
})
|
|
857
|
+
icon: b ? m : p
|
|
883
858
|
}) : null] }),
|
|
884
|
-
a ? /* @__PURE__ */ c(
|
|
859
|
+
a ? /* @__PURE__ */ c(X, {
|
|
885
860
|
$type: "error",
|
|
886
|
-
id:
|
|
861
|
+
id: v,
|
|
887
862
|
role: "alert",
|
|
888
863
|
children: a
|
|
889
864
|
}) : null,
|
|
890
|
-
o ? /* @__PURE__ */ c(
|
|
865
|
+
o ? /* @__PURE__ */ c(X, {
|
|
891
866
|
$type: "warning",
|
|
892
|
-
id:
|
|
867
|
+
id: y,
|
|
893
868
|
role: "status",
|
|
894
869
|
children: o
|
|
895
870
|
}) : null
|
|
896
871
|
] });
|
|
897
872
|
}
|
|
898
873
|
// src/components/atoms/ALink/ALink.styles.ts
|
|
899
|
-
var
|
|
874
|
+
var je = P("link"), Me = {
|
|
900
875
|
primary: o`
|
|
901
|
-
background: ${({ theme: e }) =>
|
|
902
|
-
color: ${({ theme: e }) =>
|
|
876
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
877
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
903
878
|
|
|
904
879
|
&:hover:not(:disabled) {
|
|
905
|
-
background: ${({ theme: e }) =>
|
|
880
|
+
background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
|
|
906
881
|
}
|
|
907
882
|
`,
|
|
908
883
|
secondary: o`
|
|
909
|
-
background: ${({ theme: e }) =>
|
|
910
|
-
color: ${({ theme: e }) =>
|
|
884
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
885
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
911
886
|
|
|
912
887
|
&:hover:not(:disabled) {
|
|
913
|
-
background: ${({ theme: e }) =>
|
|
888
|
+
background: ${({ theme: e }) => w(A(e).colors.secondary, A(e).colors.ink)};
|
|
914
889
|
}
|
|
915
890
|
`
|
|
916
|
-
},
|
|
891
|
+
}, Ne = s.a`
|
|
917
892
|
display: inline-flex;
|
|
918
893
|
align-items: center;
|
|
919
894
|
justify-content: center;
|
|
920
|
-
gap: ${({ theme: e }) =>
|
|
921
|
-
font-family: ${({ theme: e }) =>
|
|
922
|
-
font-size: ${({ theme: e }) =>
|
|
923
|
-
font-weight: ${({ theme: e }) =>
|
|
924
|
-
text-transform: ${({ theme: e }) =>
|
|
925
|
-
text-decoration: ${({ theme: e }) =>
|
|
895
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
896
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
897
|
+
font-size: ${({ theme: e }) => A(e).link.fontSize};
|
|
898
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
899
|
+
text-transform: ${({ theme: e }) => A(e).link.textTransform};
|
|
900
|
+
text-decoration: ${({ theme: e }) => A(e).link.textDecoration};
|
|
926
901
|
cursor: pointer;
|
|
927
902
|
transition:
|
|
928
903
|
background-color 0.15s ease,
|
|
929
904
|
transform 0.15s ease,
|
|
930
905
|
box-shadow 0.15s ease;
|
|
931
906
|
|
|
932
|
-
${
|
|
907
|
+
${I("link")}
|
|
933
908
|
|
|
934
|
-
border: ${({ theme: e }) =>
|
|
935
|
-
box-shadow: ${({ theme: e }) =>
|
|
936
|
-
border-radius: ${({ theme: e }) =>
|
|
937
|
-
padding: ${({ theme: e }) =>
|
|
909
|
+
border: ${({ theme: e }) => A(e).link.border};
|
|
910
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.link};
|
|
911
|
+
border-radius: ${({ theme: e }) => A(e).link.borderRadius};
|
|
912
|
+
padding: ${({ theme: e }) => A(e).link.padding};
|
|
938
913
|
|
|
939
914
|
white-space: nowrap;
|
|
940
915
|
|
|
941
916
|
&:active,
|
|
942
917
|
&[data-pressed='true'] {
|
|
943
|
-
transform: ${({ theme: e }) => `translate(${
|
|
918
|
+
transform: ${({ theme: e }) => `translate(${A(e).shadow.offsetX}, ${A(e).shadow.offsetY})`};
|
|
944
919
|
box-shadow: none;
|
|
945
920
|
}
|
|
946
921
|
|
|
947
|
-
${({ $variant: e }) =>
|
|
948
|
-
${({ $size: e }) =>
|
|
922
|
+
${({ $variant: e }) => Me[e]}
|
|
923
|
+
${({ $size: e }) => je[e]}
|
|
949
924
|
`;
|
|
950
925
|
// src/components/atoms/ALink/ALink.tsx
|
|
951
|
-
function
|
|
952
|
-
let { pressed: l, pressHandlers: u } =
|
|
926
|
+
function Z({ children: e, variant: t = "primary", size: n = "md", onPointerDown: r, onPointerUp: i, onPointerCancel: a, onLostPointerCapture: o, ...s }) {
|
|
927
|
+
let { pressed: l, pressHandlers: u } = H({
|
|
953
928
|
onPointerDown: r,
|
|
954
929
|
onPointerUp: i,
|
|
955
930
|
onPointerCancel: a,
|
|
956
931
|
onLostPointerCapture: o
|
|
957
932
|
});
|
|
958
|
-
return /* @__PURE__ */ c(
|
|
933
|
+
return /* @__PURE__ */ c(Ne, {
|
|
959
934
|
$size: n,
|
|
960
935
|
$variant: t,
|
|
961
936
|
"data-pressed": l ? "true" : void 0,
|
|
@@ -965,19 +940,19 @@ function Y({ children: e, variant: t = "primary", size: n = "md", onPointerDown:
|
|
|
965
940
|
});
|
|
966
941
|
}
|
|
967
942
|
// src/components/atoms/ALogo/ALogo.styles.ts
|
|
968
|
-
var
|
|
969
|
-
--logo-size: ${({ theme: e }) =>
|
|
943
|
+
var Pe = s.div`
|
|
944
|
+
--logo-size: ${({ theme: e }) => A(e).logo.size};
|
|
970
945
|
|
|
971
946
|
display: inline-flex;
|
|
972
947
|
align-items: center;
|
|
973
948
|
justify-content: center;
|
|
974
|
-
gap: ${({ theme: e }) =>
|
|
949
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
975
950
|
min-width: 0;
|
|
976
|
-
color: ${({ theme: e }) =>
|
|
977
|
-
font-family: ${({ theme: e }) =>
|
|
978
|
-
font-size: ${({ theme: e }) =>
|
|
979
|
-
font-weight: ${({ theme: e }) =>
|
|
980
|
-
white-space: ${({ theme: e }) =>
|
|
951
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
952
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
953
|
+
font-size: ${({ theme: e }) => A(e).logo.fontSize};
|
|
954
|
+
font-weight: ${({ theme: e }) => A(e).logo.fontWeight};
|
|
955
|
+
white-space: ${({ theme: e }) => A(e).logo.whiteSpace};
|
|
981
956
|
|
|
982
957
|
& > span:first-child > svg,
|
|
983
958
|
& > span:first-child img {
|
|
@@ -989,16 +964,16 @@ var Ee = s.div`
|
|
|
989
964
|
}
|
|
990
965
|
|
|
991
966
|
${({ $variant: e, theme: t }) => e === "icon" && o`
|
|
992
|
-
width: ${
|
|
993
|
-
height: ${
|
|
967
|
+
width: ${A(t).logo.size};
|
|
968
|
+
height: ${A(t).logo.size};
|
|
994
969
|
`}
|
|
995
|
-
`,
|
|
970
|
+
`, Fe = s.span`
|
|
996
971
|
overflow: hidden;
|
|
997
972
|
text-overflow: ellipsis;
|
|
998
973
|
`;
|
|
999
974
|
// src/components/atoms/ALogo/ALogo.tsx
|
|
1000
|
-
function
|
|
1001
|
-
return /* @__PURE__ */ l(
|
|
975
|
+
function Ie({ logo: e, name: t, variant: n = "full", ...r }) {
|
|
976
|
+
return /* @__PURE__ */ l(Pe, {
|
|
1002
977
|
...r,
|
|
1003
978
|
$variant: n,
|
|
1004
979
|
role: n === "icon" ? "img" : void 0,
|
|
@@ -1006,162 +981,138 @@ function Oe({ logo: e, name: t, variant: n = "full", ...r }) {
|
|
|
1006
981
|
children: [/* @__PURE__ */ c("span", {
|
|
1007
982
|
"aria-hidden": "true",
|
|
1008
983
|
children: e
|
|
1009
|
-
}), n === "full" ? /* @__PURE__ */ c(
|
|
984
|
+
}), n === "full" ? /* @__PURE__ */ c(Fe, { children: t }) : null]
|
|
1010
985
|
});
|
|
1011
986
|
}
|
|
1012
987
|
// src/components/atoms/ASearchInput/ASearchInput.styles.ts
|
|
1013
|
-
var
|
|
988
|
+
var Le = o`
|
|
1014
989
|
box-sizing: border-box;
|
|
1015
990
|
width: 100%;
|
|
1016
|
-
|
|
1017
|
-
border: ${({ theme: e }) =>
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
color: ${({ theme: e }) => y(e).colors.text};
|
|
991
|
+
border: ${({ theme: e }) => A(e).formControl.border};
|
|
992
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
993
|
+
padding: ${({ theme: e }) => A(e).formControl.padding};
|
|
994
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
995
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1022
996
|
font: inherit;
|
|
1023
|
-
font-size: ${({ theme: e }) =>
|
|
1024
|
-
`,
|
|
1025
|
-
${
|
|
1026
|
-
`,
|
|
997
|
+
font-size: ${({ theme: e }) => A(e).formControl.fontSize};
|
|
998
|
+
`, Re = s.div`
|
|
999
|
+
${N}
|
|
1000
|
+
`, ze = s.div`
|
|
1027
1001
|
position: relative;
|
|
1028
|
-
`,
|
|
1029
|
-
${
|
|
1030
|
-
padding-right: ${({ theme: e }) =>
|
|
1002
|
+
`, Be = s.input`
|
|
1003
|
+
${Le}
|
|
1004
|
+
padding-right: ${({ theme: e }) => A(e).formControl.trailingActionPadding};
|
|
1031
1005
|
|
|
1032
1006
|
/* TODO: Outline styles should be implemented for each form ui elements */
|
|
1033
1007
|
|
|
1034
1008
|
&:disabled {
|
|
1035
1009
|
cursor: not-allowed;
|
|
1036
|
-
opacity: ${({ theme: e }) =>
|
|
1010
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabled};
|
|
1037
1011
|
}
|
|
1038
|
-
`,
|
|
1012
|
+
`, Ve = s(q)`
|
|
1039
1013
|
position: absolute;
|
|
1040
1014
|
top: 50%;
|
|
1041
|
-
right: ${({ theme: e }) =>
|
|
1015
|
+
right: ${({ theme: e }) => A(e).space.md};
|
|
1042
1016
|
translate: 0 -50%;
|
|
1043
|
-
`,
|
|
1017
|
+
`, He = s.ul`
|
|
1044
1018
|
position: absolute;
|
|
1045
1019
|
z-index: 10;
|
|
1046
1020
|
top: 100%;
|
|
1047
1021
|
right: 0;
|
|
1048
1022
|
left: 0;
|
|
1049
|
-
max-height: ${({ theme: e }) =>
|
|
1023
|
+
max-height: ${({ theme: e }) => A(e).formControl.optionListMaxHeight};
|
|
1050
1024
|
margin: 0;
|
|
1051
1025
|
padding: 0;
|
|
1052
1026
|
overflow: auto;
|
|
1053
|
-
border: ${({ theme: e }) =>
|
|
1054
|
-
border-radius: ${({ theme: e }) =>
|
|
1055
|
-
background: ${({ theme: e }) =>
|
|
1027
|
+
border: ${({ theme: e }) => A(e).formControl.dropdownBorder};
|
|
1028
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
1029
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
1056
1030
|
list-style: none;
|
|
1057
|
-
`,
|
|
1058
|
-
${
|
|
1059
|
-
background: ${({ theme: e, $active: t }) => t ?
|
|
1060
|
-
color: ${({ theme: e }) =>
|
|
1031
|
+
`, Ue = s.li`
|
|
1032
|
+
${F}
|
|
1033
|
+
background: ${({ theme: e, $active: t }) => t ? A(e).colors.secondaryHover : "transparent"};
|
|
1034
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1061
1035
|
cursor: pointer;
|
|
1062
1036
|
`;
|
|
1063
1037
|
// src/components/atoms/ASearchInput/ASearchInput.tsx
|
|
1064
|
-
function
|
|
1065
|
-
|
|
1066
|
-
fill: "none",
|
|
1067
|
-
viewBox: "0 0 24 24",
|
|
1068
|
-
children: [/* @__PURE__ */ c("circle", {
|
|
1069
|
-
cx: "10.8",
|
|
1070
|
-
cy: "10.8",
|
|
1071
|
-
r: "6.3",
|
|
1072
|
-
stroke: "currentColor",
|
|
1073
|
-
strokeWidth: "1.8"
|
|
1074
|
-
}), /* @__PURE__ */ c("path", {
|
|
1075
|
-
d: "m15.5 15.5 4 4",
|
|
1076
|
-
stroke: "currentColor",
|
|
1077
|
-
strokeLinecap: "round",
|
|
1078
|
-
strokeWidth: "1.8"
|
|
1079
|
-
})]
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
function Le({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, onSearch: u, onSelect: d, onChange: f, onFocus: p, onBlur: m, id: h, disabled: g, ref: _, ...v }) {
|
|
1083
|
-
let y = t(), b = h ?? y, x = `${b}-options`, S = n(null), C = n(!1), w = n(null), [T, E] = r(o), [D, O] = r(!1), [k, A] = r(-1), j = a ?? T, M = a !== void 0, N = j.trim().toLocaleLowerCase(), P = N ? i.filter((e) => e.label.toLocaleLowerCase().includes(N) || String(e.value).toLocaleLowerCase().includes(N)) : [], F = D && P.length > 0;
|
|
1038
|
+
function We({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, onSearch: u, onSelect: d, onChange: f, onFocus: p, onBlur: m, id: h, disabled: g, ref: v, ...y }) {
|
|
1039
|
+
let b = t(), x = h ?? b, S = `${x}-options`, C = n(null), w = n(!1), T = n(null), [E, D] = r(o), [O, k] = r(!1), [A, j] = r(-1), M = a ?? E, N = a !== void 0, P = M.trim().toLocaleLowerCase(), F = P ? i.filter((e) => e.label.toLocaleLowerCase().includes(P) || String(e.value).toLocaleLowerCase().includes(P)) : [], I = O && F.length > 0;
|
|
1084
1040
|
e(() => {
|
|
1085
|
-
if (!
|
|
1086
|
-
|
|
1041
|
+
if (!w.current) {
|
|
1042
|
+
w.current = !0;
|
|
1087
1043
|
return;
|
|
1088
1044
|
}
|
|
1089
1045
|
if (!u) return;
|
|
1090
1046
|
let e = setTimeout(() => {
|
|
1091
|
-
|
|
1047
|
+
T.current = null, u(M);
|
|
1092
1048
|
}, s);
|
|
1093
|
-
return
|
|
1094
|
-
clearTimeout(e),
|
|
1049
|
+
return T.current = e, () => {
|
|
1050
|
+
clearTimeout(e), T.current === e && (T.current = null);
|
|
1095
1051
|
};
|
|
1096
1052
|
}, [
|
|
1097
1053
|
s,
|
|
1098
1054
|
u,
|
|
1099
|
-
|
|
1055
|
+
M
|
|
1100
1056
|
]);
|
|
1101
|
-
let
|
|
1102
|
-
|
|
1103
|
-
}, L = (e) => {
|
|
1104
|
-
e.relatedTarget instanceof Node && S.current?.querySelector("[role=\"listbox\"]")?.contains(e.relatedTarget) || (O(!1), A(-1), m?.(e));
|
|
1057
|
+
let L = (e) => {
|
|
1058
|
+
N || D(e.currentTarget.value), j(-1), f?.(e);
|
|
1105
1059
|
}, R = (e) => {
|
|
1106
|
-
|
|
1060
|
+
e.relatedTarget instanceof Node && C.current?.querySelector("[role=\"listbox\"]")?.contains(e.relatedTarget) || (k(!1), j(-1), m?.(e));
|
|
1107
1061
|
}, z = (e) => {
|
|
1108
|
-
|
|
1062
|
+
N || D(e.label), d?.(e), k(!1);
|
|
1063
|
+
}, B = (e) => {
|
|
1064
|
+
e.key === "ArrowDown" && F.length > 0 ? (e.preventDefault(), k(!0), j((e) => (e + 1) % F.length)) : e.key === "ArrowUp" && F.length > 0 ? (e.preventDefault(), k(!0), j((e) => e <= 0 ? F.length - 1 : e - 1)) : e.key === "Enter" && I && F[A] ? (e.preventDefault(), z(F[A])) : e.key === "Escape" && (k(!1), j(-1)), y.onKeyDown?.(e);
|
|
1109
1065
|
};
|
|
1110
|
-
return /* @__PURE__ */ c(
|
|
1111
|
-
ref:
|
|
1112
|
-
children: /* @__PURE__ */ l(
|
|
1113
|
-
/* @__PURE__ */ c(
|
|
1114
|
-
...
|
|
1115
|
-
"aria-activedescendant":
|
|
1066
|
+
return /* @__PURE__ */ c(Re, {
|
|
1067
|
+
ref: C,
|
|
1068
|
+
children: /* @__PURE__ */ l(ze, { children: [
|
|
1069
|
+
/* @__PURE__ */ c(Be, {
|
|
1070
|
+
...y,
|
|
1071
|
+
"aria-activedescendant": I && A >= 0 ? `${S}-option-${String(A)}` : void 0,
|
|
1116
1072
|
"aria-autocomplete": "list",
|
|
1117
|
-
"aria-controls":
|
|
1118
|
-
"aria-expanded":
|
|
1073
|
+
"aria-controls": I ? S : void 0,
|
|
1074
|
+
"aria-expanded": I,
|
|
1119
1075
|
"aria-haspopup": "listbox",
|
|
1120
1076
|
autoComplete: "off",
|
|
1121
1077
|
disabled: g,
|
|
1122
|
-
id:
|
|
1123
|
-
onBlur:
|
|
1124
|
-
onChange:
|
|
1078
|
+
id: x,
|
|
1079
|
+
onBlur: R,
|
|
1080
|
+
onChange: L,
|
|
1125
1081
|
onFocus: (e) => {
|
|
1126
|
-
|
|
1082
|
+
k(!0), p && p(e);
|
|
1127
1083
|
},
|
|
1128
|
-
onKeyDown:
|
|
1129
|
-
ref:
|
|
1084
|
+
onKeyDown: B,
|
|
1085
|
+
ref: v,
|
|
1130
1086
|
role: "combobox",
|
|
1131
|
-
value:
|
|
1087
|
+
value: M
|
|
1132
1088
|
}),
|
|
1133
|
-
/* @__PURE__ */ c(
|
|
1089
|
+
/* @__PURE__ */ c(Ve, {
|
|
1134
1090
|
"aria-label": "Search",
|
|
1135
1091
|
disabled: g,
|
|
1136
1092
|
ghost: !0,
|
|
1137
1093
|
onClick: () => {
|
|
1138
|
-
|
|
1094
|
+
T.current &&= (clearTimeout(T.current), null), u?.(M);
|
|
1139
1095
|
},
|
|
1140
1096
|
shape: "rounded",
|
|
1141
|
-
size: "
|
|
1097
|
+
size: "sm",
|
|
1142
1098
|
type: "button",
|
|
1143
1099
|
variant: "primary",
|
|
1144
|
-
|
|
1145
|
-
size: "md",
|
|
1146
|
-
style: { color: "inherit" },
|
|
1147
|
-
title: "Search",
|
|
1148
|
-
children: /* @__PURE__ */ c(Ie, {})
|
|
1149
|
-
})
|
|
1100
|
+
icon: _
|
|
1150
1101
|
}),
|
|
1151
|
-
|
|
1152
|
-
id:
|
|
1102
|
+
I ? /* @__PURE__ */ c(He, {
|
|
1103
|
+
id: S,
|
|
1153
1104
|
role: "listbox",
|
|
1154
|
-
children:
|
|
1155
|
-
"aria-selected": t ===
|
|
1156
|
-
id: `${
|
|
1105
|
+
children: F.map((e, t) => /* @__PURE__ */ c(Ue, {
|
|
1106
|
+
"aria-selected": t === A,
|
|
1107
|
+
id: `${S}-option-${String(t)}`,
|
|
1157
1108
|
onClick: () => {
|
|
1158
|
-
|
|
1109
|
+
z(e);
|
|
1159
1110
|
},
|
|
1160
1111
|
onMouseDown: (e) => {
|
|
1161
1112
|
e.preventDefault();
|
|
1162
1113
|
},
|
|
1163
1114
|
role: "option",
|
|
1164
|
-
$active: t ===
|
|
1115
|
+
$active: t === A,
|
|
1165
1116
|
children: e.label
|
|
1166
1117
|
}, `${String(e.value)}-${e.label}`))
|
|
1167
1118
|
}) : null
|
|
@@ -1169,103 +1120,111 @@ function Le({ options: i, value: a, defaultValue: o = "", debounceMs: s = 300, o
|
|
|
1169
1120
|
});
|
|
1170
1121
|
}
|
|
1171
1122
|
// src/components/atoms/ASection/ASection.styles.ts
|
|
1172
|
-
var
|
|
1173
|
-
border: ${({ theme: e }) =>
|
|
1174
|
-
border-radius: ${({ theme: e }) =>
|
|
1175
|
-
padding: ${({ theme: e }) =>
|
|
1176
|
-
background-color: ${({ theme: e }) =>
|
|
1177
|
-
box-shadow: ${({ $shadow: e, theme: t }) => e ?
|
|
1123
|
+
var Ge = s.section`
|
|
1124
|
+
border: ${({ theme: e }) => A(e).section.border};
|
|
1125
|
+
border-radius: ${({ theme: e }) => A(e).section.borderRadius};
|
|
1126
|
+
padding: ${({ theme: e }) => A(e).section.padding};
|
|
1127
|
+
background-color: ${({ theme: e }) => A(e).colors.surface};
|
|
1128
|
+
box-shadow: ${({ $shadow: e, theme: t }) => e ? A(t).shadow.section : "none"};
|
|
1178
1129
|
`;
|
|
1179
1130
|
// src/components/atoms/ASection/ASection.tsx
|
|
1180
|
-
function
|
|
1181
|
-
return /* @__PURE__ */ c(
|
|
1131
|
+
function Ke({ children: e, shadow: t = !1, ...n }) {
|
|
1132
|
+
return /* @__PURE__ */ c(Ge, {
|
|
1182
1133
|
$shadow: t,
|
|
1183
1134
|
...n,
|
|
1184
1135
|
children: e
|
|
1185
1136
|
});
|
|
1186
1137
|
}
|
|
1187
1138
|
// src/components/atoms/ASelect/ASelect.styles.ts
|
|
1188
|
-
var
|
|
1189
|
-
color: ${({ theme: e }) =>
|
|
1190
|
-
font-size: ${({ theme: e }) =>
|
|
1191
|
-
font-weight: ${({ theme: e }) =>
|
|
1192
|
-
`,
|
|
1139
|
+
var qe = o`
|
|
1140
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1141
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
1142
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
1143
|
+
`, Je = o`
|
|
1193
1144
|
box-sizing: border-box;
|
|
1194
1145
|
width: 100%;
|
|
1195
|
-
|
|
1196
|
-
border: ${({ theme: e }) =>
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
color: ${({ theme: e }) => y(e).colors.text};
|
|
1146
|
+
border: ${({ theme: e }) => A(e).formControl.border};
|
|
1147
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
1148
|
+
padding: ${({ theme: e, $hasTrailingAction: t }) => t ? `${A(e).formControl.padding} ${A(e).formControl.trailingActionPadding} ${A(e).formControl.padding} ${A(e).formControl.padding}` : A(e).formControl.padding};
|
|
1149
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
1150
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1201
1151
|
font: inherit;
|
|
1202
|
-
font-size: ${({ theme: e }) =>
|
|
1152
|
+
font-size: ${({ theme: e }) => A(e).formControl.fontSize};
|
|
1203
1153
|
|
|
1204
|
-
${
|
|
1154
|
+
${I("formControl")}
|
|
1205
1155
|
|
|
1206
1156
|
&:disabled {
|
|
1207
1157
|
cursor: not-allowed;
|
|
1208
|
-
opacity: ${({ theme: e }) =>
|
|
1158
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabled};
|
|
1209
1159
|
}
|
|
1210
1160
|
|
|
1211
1161
|
${({ $invalid: e, theme: t }) => e && o`
|
|
1212
|
-
border-color: ${
|
|
1162
|
+
border-color: ${A(t).colors.error};
|
|
1213
1163
|
`}
|
|
1214
1164
|
|
|
1215
1165
|
${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
|
|
1216
|
-
border-color: ${
|
|
1166
|
+
border-color: ${A(n).colors.warning};
|
|
1217
1167
|
`}
|
|
1218
|
-
`,
|
|
1219
|
-
color: ${({ theme: e, $type: t }) =>
|
|
1220
|
-
font-size: ${({ theme: e }) =>
|
|
1221
|
-
`,
|
|
1222
|
-
${
|
|
1223
|
-
`,
|
|
1168
|
+
`, Ye = o`
|
|
1169
|
+
color: ${({ theme: e, $type: t }) => A(e).colors[t]};
|
|
1170
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
1171
|
+
`, Xe = s.div`
|
|
1172
|
+
${N}
|
|
1173
|
+
`, Ze = s.div`
|
|
1174
|
+
position: relative;
|
|
1175
|
+
`, Qe = s.label`
|
|
1176
|
+
${qe}
|
|
1177
|
+
`, $e = s.div`
|
|
1178
|
+
${Je}
|
|
1224
1179
|
position: relative;
|
|
1225
|
-
`, Ge = s.label`
|
|
1226
|
-
${Be}
|
|
1227
|
-
`, Ke = s.div`
|
|
1228
|
-
${Ve}
|
|
1229
1180
|
display: flex;
|
|
1230
1181
|
align-items: center;
|
|
1231
|
-
justify-content: space-between;
|
|
1232
|
-
gap: ${({ theme: e }) => y(e).space.lg};
|
|
1233
1182
|
text-align: left;
|
|
1234
1183
|
cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
|
|
1235
1184
|
|
|
1236
1185
|
${({ $disabled: e }) => e && o`
|
|
1237
|
-
opacity: ${({ theme: e }) =>
|
|
1186
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabled};
|
|
1238
1187
|
`}
|
|
1239
|
-
`,
|
|
1188
|
+
`, et = s.div`
|
|
1240
1189
|
position: absolute;
|
|
1241
1190
|
z-index: 10;
|
|
1242
1191
|
top: 100%;
|
|
1243
1192
|
right: 0;
|
|
1244
1193
|
left: 0;
|
|
1245
|
-
max-height: ${({ theme: e }) =>
|
|
1194
|
+
max-height: ${({ theme: e }) => A(e).formControl.optionListMaxHeight};
|
|
1246
1195
|
overflow: auto;
|
|
1247
|
-
border: ${({ theme: e }) =>
|
|
1248
|
-
border-radius: ${({ theme: e }) =>
|
|
1249
|
-
background: ${({ theme: e }) =>
|
|
1250
|
-
`,
|
|
1196
|
+
border: ${({ theme: e }) => A(e).formControl.dropdownBorder};
|
|
1197
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
1198
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
1199
|
+
`, tt = s.button`
|
|
1251
1200
|
display: block;
|
|
1252
1201
|
width: 100%;
|
|
1253
|
-
${
|
|
1202
|
+
${F}
|
|
1254
1203
|
border: 0;
|
|
1255
1204
|
border-radius: 0;
|
|
1256
|
-
background: ${({ theme: e, $selected: t }) => t ?
|
|
1257
|
-
color: ${({ theme: e }) =>
|
|
1205
|
+
background: ${({ theme: e, $selected: t }) => t ? A(e).colors.secondary : "transparent"};
|
|
1206
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1258
1207
|
font: inherit;
|
|
1259
1208
|
text-align: left;
|
|
1260
|
-
text-transform: ${({ theme: e }) =>
|
|
1209
|
+
text-transform: ${({ theme: e }) => A(e).formControl.optionTextTransform};
|
|
1261
1210
|
cursor: pointer;
|
|
1262
1211
|
|
|
1263
1212
|
&:hover,
|
|
1264
1213
|
&:focus-visible {
|
|
1265
|
-
background: ${({ theme: e }) =>
|
|
1214
|
+
background: ${({ theme: e }) => A(e).colors.secondaryHover};
|
|
1266
1215
|
outline: none;
|
|
1267
1216
|
}
|
|
1268
|
-
`,
|
|
1217
|
+
`, nt = s(q)`
|
|
1218
|
+
position: absolute;
|
|
1219
|
+
top: 50%;
|
|
1220
|
+
right: ${({ theme: e }) => A(e).space.md};
|
|
1221
|
+
translate: 0 -50%;
|
|
1222
|
+
|
|
1223
|
+
svg {
|
|
1224
|
+
transform: ${({ $open: e }) => e ? "rotate(180deg)" : "none"};
|
|
1225
|
+
transition: transform 120ms ease;
|
|
1226
|
+
}
|
|
1227
|
+
`, rt = s.select`
|
|
1269
1228
|
position: absolute;
|
|
1270
1229
|
width: 1px;
|
|
1271
1230
|
height: 1px;
|
|
@@ -1274,138 +1233,126 @@ var Be = o`
|
|
|
1274
1233
|
clip: rect(0, 0, 0, 0);
|
|
1275
1234
|
white-space: nowrap;
|
|
1276
1235
|
border: 0;
|
|
1277
|
-
`,
|
|
1236
|
+
`, it = s.span`
|
|
1278
1237
|
overflow: hidden;
|
|
1279
|
-
color: ${({ theme: e, $placeholder: t }) => t ?
|
|
1238
|
+
color: ${({ theme: e, $placeholder: t }) => t ? A(e).colors.muted : "inherit"};
|
|
1280
1239
|
text-overflow: ellipsis;
|
|
1281
1240
|
white-space: nowrap;
|
|
1282
|
-
`,
|
|
1283
|
-
${
|
|
1241
|
+
`, Q = s.div`
|
|
1242
|
+
${Ye}
|
|
1284
1243
|
`;
|
|
1285
1244
|
// src/components/atoms/ASelect/ASelect.tsx
|
|
1286
|
-
function
|
|
1287
|
-
let
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1245
|
+
function at({ options: i, value: a, defaultValue: o, onChange: s, onValueChange: d, onBlur: f, id: p, name: m, label: h, placeholder: g = "Select an option", error: _, warning: v, disabled: y, required: b, ref: x, "aria-describedby": S, "aria-invalid": C, ...w }) {
|
|
1246
|
+
let T = t(), E = p ?? T, D = `${E}-options`, O = `${E}-error`, k = `${E}-warning`, A = n(null), j = n(null), M = n(null), [N, P] = r(o), [F, I] = r(!1), L = a ?? N, R = i.find((e) => String(e.value) === String(L)), z = !!_ || C === !0 || C === "true", B = [
|
|
1247
|
+
S,
|
|
1248
|
+
_ ? O : void 0,
|
|
1249
|
+
v ? k : void 0
|
|
1250
|
+
].filter(Boolean).join(" ") || void 0, V = (e) => {
|
|
1292
1251
|
s?.(e);
|
|
1293
1252
|
};
|
|
1294
1253
|
e(() => {
|
|
1295
|
-
if (!
|
|
1254
|
+
if (!F) return;
|
|
1296
1255
|
let e = (e) => {
|
|
1297
|
-
e.target instanceof Node &&
|
|
1256
|
+
e.target instanceof Node && A.current?.contains(e.target) || I(!1);
|
|
1298
1257
|
};
|
|
1299
1258
|
return document.addEventListener("pointerdown", e), () => {
|
|
1300
1259
|
document.removeEventListener("pointerdown", e);
|
|
1301
1260
|
};
|
|
1302
|
-
}, [
|
|
1303
|
-
|
|
1304
|
-
}, [
|
|
1305
|
-
let
|
|
1306
|
-
a === void 0 &&
|
|
1307
|
-
let t =
|
|
1261
|
+
}, [F]), e(() => {
|
|
1262
|
+
F && (A.current?.querySelector("[role=\"option\"][aria-selected=\"true\"]") ?? A.current?.querySelector("[role=\"option\"]"))?.focus();
|
|
1263
|
+
}, [F]);
|
|
1264
|
+
let H = (e) => {
|
|
1265
|
+
a === void 0 && P(e), d?.(e);
|
|
1266
|
+
let t = j.current;
|
|
1308
1267
|
t && (t.value = String(e), t.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
1309
|
-
},
|
|
1310
|
-
|
|
1311
|
-
},
|
|
1268
|
+
}, U = (e) => {
|
|
1269
|
+
A.current?.contains(e.relatedTarget) || (I(!1), j.current?.dispatchEvent(new FocusEvent("focusout", { bubbles: !0 })));
|
|
1270
|
+
}, W = (e, t) => {
|
|
1312
1271
|
let n;
|
|
1313
|
-
e.key === "ArrowDown" && (n = (t + 1) % i.length), e.key === "ArrowUp" && (n = (t - 1 + i.length) % i.length), e.key === "Home" && (n = 0), e.key === "End" && (n = i.length - 1), e.key === "Escape" ? (e.preventDefault(),
|
|
1272
|
+
e.key === "ArrowDown" && (n = (t + 1) % i.length), e.key === "ArrowUp" && (n = (t - 1 + i.length) % i.length), e.key === "Home" && (n = 0), e.key === "End" && (n = i.length - 1), e.key === "Escape" ? (e.preventDefault(), I(!1), M.current?.focus()) : n !== void 0 && (e.preventDefault(), A.current?.querySelectorAll("[role=\"option\"]")[n]?.focus());
|
|
1314
1273
|
};
|
|
1315
|
-
return /* @__PURE__ */ l(
|
|
1316
|
-
ref:
|
|
1274
|
+
return /* @__PURE__ */ l(Xe, {
|
|
1275
|
+
ref: A,
|
|
1317
1276
|
children: [
|
|
1318
|
-
|
|
1319
|
-
htmlFor:
|
|
1320
|
-
children:
|
|
1277
|
+
h ? /* @__PURE__ */ c(Qe, {
|
|
1278
|
+
htmlFor: E,
|
|
1279
|
+
children: h
|
|
1321
1280
|
}) : null,
|
|
1322
|
-
/* @__PURE__ */ l(
|
|
1323
|
-
/* @__PURE__ */ l(
|
|
1324
|
-
...
|
|
1281
|
+
/* @__PURE__ */ l(Ze, { children: [
|
|
1282
|
+
/* @__PURE__ */ l(rt, {
|
|
1283
|
+
...w,
|
|
1325
1284
|
"aria-hidden": "true",
|
|
1326
|
-
"aria-invalid":
|
|
1327
|
-
disabled:
|
|
1328
|
-
id: `${
|
|
1329
|
-
name:
|
|
1330
|
-
onBlur:
|
|
1331
|
-
onChange:
|
|
1285
|
+
"aria-invalid": z || void 0,
|
|
1286
|
+
disabled: y,
|
|
1287
|
+
id: `${E}-native`,
|
|
1288
|
+
name: m,
|
|
1289
|
+
onBlur: f,
|
|
1290
|
+
onChange: V,
|
|
1332
1291
|
ref: (e) => {
|
|
1333
|
-
|
|
1292
|
+
j.current = e, typeof x == "function" ? x(e) : x && (x.current = e);
|
|
1334
1293
|
},
|
|
1335
|
-
required:
|
|
1294
|
+
required: b,
|
|
1336
1295
|
tabIndex: -1,
|
|
1337
|
-
value:
|
|
1296
|
+
value: L === void 0 ? "" : String(L),
|
|
1338
1297
|
children: [/* @__PURE__ */ c("option", {
|
|
1339
1298
|
value: "",
|
|
1340
|
-
children:
|
|
1299
|
+
children: g
|
|
1341
1300
|
}), i.map((e) => /* @__PURE__ */ c("option", {
|
|
1342
1301
|
value: String(e.value),
|
|
1343
1302
|
children: e.label
|
|
1344
1303
|
}, String(e.value)))]
|
|
1345
1304
|
}),
|
|
1346
|
-
/* @__PURE__ */ l(
|
|
1305
|
+
/* @__PURE__ */ l($e, {
|
|
1347
1306
|
onClick: () => {
|
|
1348
|
-
|
|
1307
|
+
y || I((e) => !e);
|
|
1349
1308
|
},
|
|
1350
|
-
$disabled: !!
|
|
1351
|
-
$
|
|
1352
|
-
$
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
"aria-
|
|
1359
|
-
"aria-
|
|
1309
|
+
$disabled: !!y,
|
|
1310
|
+
$hasTrailingAction: !0,
|
|
1311
|
+
$invalid: z,
|
|
1312
|
+
$warning: !!v,
|
|
1313
|
+
children: [/* @__PURE__ */ c(it, {
|
|
1314
|
+
$placeholder: !R,
|
|
1315
|
+
children: R?.label ?? g
|
|
1316
|
+
}), /* @__PURE__ */ c(nt, {
|
|
1317
|
+
"aria-controls": D,
|
|
1318
|
+
"aria-describedby": B,
|
|
1319
|
+
"aria-expanded": F,
|
|
1360
1320
|
"aria-haspopup": "listbox",
|
|
1361
|
-
"aria-invalid":
|
|
1362
|
-
"aria-label":
|
|
1363
|
-
disabled:
|
|
1321
|
+
"aria-invalid": z || void 0,
|
|
1322
|
+
"aria-label": h ?? g,
|
|
1323
|
+
disabled: y,
|
|
1364
1324
|
ghost: !0,
|
|
1365
|
-
id:
|
|
1366
|
-
onBlur:
|
|
1325
|
+
id: E,
|
|
1326
|
+
onBlur: U,
|
|
1367
1327
|
onClick: (e) => {
|
|
1368
|
-
e.stopPropagation(),
|
|
1328
|
+
e.stopPropagation(), I((e) => !e);
|
|
1369
1329
|
},
|
|
1370
1330
|
onKeyDown: (e) => {
|
|
1371
|
-
e.key === "Escape" ?
|
|
1331
|
+
e.key === "Escape" ? I(!1) : F || e.key !== "ArrowDown" && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), I(!0));
|
|
1372
1332
|
},
|
|
1373
|
-
ref:
|
|
1333
|
+
ref: M,
|
|
1374
1334
|
shape: "rounded",
|
|
1375
|
-
size: "
|
|
1335
|
+
size: "sm",
|
|
1376
1336
|
type: "button",
|
|
1377
1337
|
variant: "primary",
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
style: {
|
|
1381
|
-
transform: P ? "rotate(180deg)" : "rotate(0)",
|
|
1382
|
-
transition: "transform 120ms ease"
|
|
1383
|
-
},
|
|
1384
|
-
viewBox: "0 0 24 24",
|
|
1385
|
-
children: /* @__PURE__ */ c("path", {
|
|
1386
|
-
d: "m6 9 6 6 6-6",
|
|
1387
|
-
stroke: "currentColor",
|
|
1388
|
-
strokeLinecap: "round",
|
|
1389
|
-
strokeLinejoin: "round",
|
|
1390
|
-
strokeWidth: "2"
|
|
1391
|
-
})
|
|
1392
|
-
})
|
|
1338
|
+
$open: F,
|
|
1339
|
+
icon: u
|
|
1393
1340
|
})]
|
|
1394
1341
|
}),
|
|
1395
|
-
|
|
1396
|
-
id:
|
|
1342
|
+
F ? /* @__PURE__ */ c(et, {
|
|
1343
|
+
id: D,
|
|
1397
1344
|
role: "listbox",
|
|
1398
|
-
"aria-label":
|
|
1345
|
+
"aria-label": h,
|
|
1399
1346
|
children: i.map((e, t) => {
|
|
1400
|
-
let n = String(e.value) === String(
|
|
1401
|
-
return /* @__PURE__ */ c(
|
|
1347
|
+
let n = String(e.value) === String(L ?? "");
|
|
1348
|
+
return /* @__PURE__ */ c(tt, {
|
|
1402
1349
|
"aria-selected": n,
|
|
1403
1350
|
onClick: () => {
|
|
1404
|
-
|
|
1351
|
+
H(e.value), I(!1), M.current?.focus();
|
|
1405
1352
|
},
|
|
1406
|
-
onBlur:
|
|
1353
|
+
onBlur: U,
|
|
1407
1354
|
onKeyDown: (e) => {
|
|
1408
|
-
|
|
1355
|
+
W(e, t);
|
|
1409
1356
|
},
|
|
1410
1357
|
role: "option",
|
|
1411
1358
|
tabIndex: -1,
|
|
@@ -1416,83 +1363,83 @@ function Ze({ options: i, value: a, defaultValue: o, onChange: s, onValueChange:
|
|
|
1416
1363
|
})
|
|
1417
1364
|
}) : null
|
|
1418
1365
|
] }),
|
|
1419
|
-
|
|
1366
|
+
_ ? /* @__PURE__ */ c(Q, {
|
|
1420
1367
|
$type: "error",
|
|
1421
|
-
id:
|
|
1368
|
+
id: O,
|
|
1422
1369
|
role: "alert",
|
|
1423
|
-
children:
|
|
1370
|
+
children: _
|
|
1424
1371
|
}) : null,
|
|
1425
|
-
|
|
1372
|
+
v ? /* @__PURE__ */ c(Q, {
|
|
1426
1373
|
$type: "warning",
|
|
1427
|
-
id:
|
|
1374
|
+
id: k,
|
|
1428
1375
|
role: "status",
|
|
1429
|
-
children:
|
|
1376
|
+
children: v
|
|
1430
1377
|
}) : null
|
|
1431
1378
|
]
|
|
1432
1379
|
});
|
|
1433
1380
|
}
|
|
1434
1381
|
// src/components/atoms/ATextarea/ATextarea.styles.ts
|
|
1435
|
-
var
|
|
1436
|
-
${
|
|
1437
|
-
`,
|
|
1438
|
-
color: ${({ theme: e }) =>
|
|
1439
|
-
font-size: ${({ theme: e }) =>
|
|
1440
|
-
font-weight: ${({ theme: e }) =>
|
|
1441
|
-
`,
|
|
1382
|
+
var ot = s.div`
|
|
1383
|
+
${N}
|
|
1384
|
+
`, st = s.label`
|
|
1385
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1386
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
1387
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
1388
|
+
`, ct = s.textarea`
|
|
1442
1389
|
box-sizing: border-box;
|
|
1443
1390
|
width: 100%;
|
|
1444
|
-
height: ${({ $height: e, theme: t }) => e == null ?
|
|
1445
|
-
min-height: ${({ theme: e }) =>
|
|
1446
|
-
border: ${({ theme: e }) =>
|
|
1447
|
-
border-radius: ${({ theme: e }) =>
|
|
1448
|
-
padding: ${({ theme: e }) =>
|
|
1449
|
-
background: ${({ theme: e }) =>
|
|
1450
|
-
color: ${({ theme: e }) =>
|
|
1391
|
+
height: ${({ $height: e, theme: t }) => e == null ? A(t).formControl.textareaHeight : typeof e == "number" ? `${e.toString()}px` : e};
|
|
1392
|
+
min-height: ${({ theme: e }) => A(e).formControl.textareaHeight};
|
|
1393
|
+
border: ${({ theme: e }) => A(e).formControl.border};
|
|
1394
|
+
border-radius: ${({ theme: e }) => A(e).formControl.borderRadius};
|
|
1395
|
+
padding: ${({ theme: e }) => A(e).formControl.padding};
|
|
1396
|
+
background: ${({ theme: e }) => A(e).colors.background};
|
|
1397
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1451
1398
|
font: inherit;
|
|
1452
|
-
font-size: ${({ theme: e }) =>
|
|
1399
|
+
font-size: ${({ theme: e }) => A(e).formControl.fontSize};
|
|
1453
1400
|
resize: ${({ $resizable: e }) => e ? "vertical" : "none"};
|
|
1454
1401
|
|
|
1455
|
-
${
|
|
1402
|
+
${I("formControl")}
|
|
1456
1403
|
|
|
1457
1404
|
&:disabled {
|
|
1458
1405
|
cursor: not-allowed;
|
|
1459
|
-
opacity: ${({ theme: e }) =>
|
|
1406
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabled};
|
|
1460
1407
|
}
|
|
1461
1408
|
|
|
1462
1409
|
${({ $invalid: e, theme: t }) => e && o`
|
|
1463
|
-
border-color: ${
|
|
1410
|
+
border-color: ${A(t).colors.error};
|
|
1464
1411
|
`}
|
|
1465
1412
|
|
|
1466
1413
|
${({ $invalid: e, $warning: t, theme: n }) => !e && t && o`
|
|
1467
|
-
border-color: ${
|
|
1414
|
+
border-color: ${A(n).colors.warning};
|
|
1468
1415
|
`}
|
|
1469
1416
|
|
|
1470
1417
|
&:focus,
|
|
1471
1418
|
&:focus-visible {
|
|
1472
1419
|
${({ $invalid: e, $warning: t, theme: n }) => e ? o`
|
|
1473
|
-
border-color: ${
|
|
1420
|
+
border-color: ${A(n).colors.error};
|
|
1474
1421
|
` : t ? o`
|
|
1475
|
-
border-color: ${
|
|
1422
|
+
border-color: ${A(n).colors.warning};
|
|
1476
1423
|
` : ""}
|
|
1477
1424
|
outline: none;
|
|
1478
1425
|
}
|
|
1479
|
-
`,
|
|
1480
|
-
color: ${({ theme: e, $type: t }) =>
|
|
1481
|
-
font-size: ${({ theme: e }) =>
|
|
1426
|
+
`, $ = s.div`
|
|
1427
|
+
color: ${({ theme: e, $type: t }) => A(e).colors[t]};
|
|
1428
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
1482
1429
|
`;
|
|
1483
1430
|
// src/components/atoms/ATextarea/ATextarea.tsx
|
|
1484
|
-
function
|
|
1431
|
+
function lt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !1, ref: s, "aria-describedby": u, "aria-invalid": d, ...f }) {
|
|
1485
1432
|
let p = t(), m = e ?? p, h = `${m}-error`, g = `${m}-warning`, _ = !!r || d === !0 || d === "true", v = [
|
|
1486
1433
|
u,
|
|
1487
1434
|
r ? h : void 0,
|
|
1488
1435
|
i ? g : void 0
|
|
1489
1436
|
].filter(Boolean).join(" ") || void 0;
|
|
1490
|
-
return /* @__PURE__ */ l(
|
|
1491
|
-
n ? /* @__PURE__ */ c(
|
|
1437
|
+
return /* @__PURE__ */ l(ot, { children: [
|
|
1438
|
+
n ? /* @__PURE__ */ c(st, {
|
|
1492
1439
|
htmlFor: m,
|
|
1493
1440
|
children: n
|
|
1494
1441
|
}) : null,
|
|
1495
|
-
/* @__PURE__ */ c(
|
|
1442
|
+
/* @__PURE__ */ c(ct, {
|
|
1496
1443
|
...f,
|
|
1497
1444
|
$height: a,
|
|
1498
1445
|
$invalid: _,
|
|
@@ -1503,13 +1450,13 @@ function tt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !
|
|
|
1503
1450
|
id: m,
|
|
1504
1451
|
ref: s
|
|
1505
1452
|
}),
|
|
1506
|
-
r ? /* @__PURE__ */ c(
|
|
1453
|
+
r ? /* @__PURE__ */ c($, {
|
|
1507
1454
|
$type: "error",
|
|
1508
1455
|
id: h,
|
|
1509
1456
|
role: "alert",
|
|
1510
1457
|
children: r
|
|
1511
1458
|
}) : null,
|
|
1512
|
-
i ? /* @__PURE__ */ c(
|
|
1459
|
+
i ? /* @__PURE__ */ c($, {
|
|
1513
1460
|
$type: "warning",
|
|
1514
1461
|
id: g,
|
|
1515
1462
|
role: "status",
|
|
@@ -1518,19 +1465,20 @@ function tt({ id: e, label: n, error: r, warning: i, height: a, resizable: o = !
|
|
|
1518
1465
|
] });
|
|
1519
1466
|
}
|
|
1520
1467
|
// src/components/atoms/ATypography/ATypography.styles.ts
|
|
1521
|
-
var
|
|
1522
|
-
color: ${({ theme: e }) =>
|
|
1523
|
-
font-family: ${({ theme: e }) =>
|
|
1468
|
+
var ut = s.p`
|
|
1469
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1470
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1471
|
+
margin: 0;
|
|
1524
1472
|
font-size: ${({ theme: e, $fontSize: t, $tag: n }) => {
|
|
1525
1473
|
if (t !== void 0) return t;
|
|
1526
|
-
let r =
|
|
1474
|
+
let r = A(e).typography;
|
|
1527
1475
|
return n && Object.hasOwn(r, n) ? r[n] : r.fallback;
|
|
1528
1476
|
}};
|
|
1529
1477
|
`;
|
|
1530
1478
|
// src/components/atoms/ATypography/ATypography.tsx
|
|
1531
|
-
function
|
|
1479
|
+
function dt({ tag: e, as: t, fontSize: n, ...r }) {
|
|
1532
1480
|
let i = e ?? t ?? "p";
|
|
1533
|
-
return /* @__PURE__ */ c(
|
|
1481
|
+
return /* @__PURE__ */ c(ut, {
|
|
1534
1482
|
$tag: typeof i == "string" ? i : void 0,
|
|
1535
1483
|
$fontSize: n,
|
|
1536
1484
|
as: i,
|
|
@@ -1538,15 +1486,15 @@ function rt({ tag: e, as: t, fontSize: n, ...r }) {
|
|
|
1538
1486
|
});
|
|
1539
1487
|
}
|
|
1540
1488
|
// src/components/molecules/MModal/MModal.styles.ts
|
|
1541
|
-
var
|
|
1489
|
+
var ft = o`
|
|
1542
1490
|
position: fixed;
|
|
1543
1491
|
inset: 0;
|
|
1544
1492
|
z-index: 1000;
|
|
1545
1493
|
display: flex;
|
|
1546
1494
|
align-items: center;
|
|
1547
1495
|
justify-content: center;
|
|
1548
|
-
padding: ${({ theme: e }) =>
|
|
1549
|
-
`,
|
|
1496
|
+
padding: ${({ theme: e }) => A(e).space.lg};
|
|
1497
|
+
`, pt = o`
|
|
1550
1498
|
position: absolute;
|
|
1551
1499
|
inset: 0;
|
|
1552
1500
|
border: none;
|
|
@@ -1554,75 +1502,66 @@ var it = o`
|
|
|
1554
1502
|
cursor: pointer;
|
|
1555
1503
|
background: color-mix(
|
|
1556
1504
|
in srgb,
|
|
1557
|
-
${({ theme: e }) =>
|
|
1505
|
+
${({ theme: e }) => A(e).colors.bg} 25%,
|
|
1558
1506
|
transparent
|
|
1559
1507
|
);
|
|
1560
|
-
`,
|
|
1508
|
+
`, mt = o`
|
|
1561
1509
|
position: relative;
|
|
1562
1510
|
z-index: 1;
|
|
1563
1511
|
box-sizing: border-box;
|
|
1564
1512
|
display: flex;
|
|
1565
1513
|
flex-direction: column;
|
|
1566
1514
|
width: 100%;
|
|
1567
|
-
max-width: ${({ theme: e }) =>
|
|
1568
|
-
max-height: ${({ theme: e }) =>
|
|
1569
|
-
padding: ${({ theme: e }) =>
|
|
1515
|
+
max-width: ${({ theme: e }) => A(e).modal.maxWidth};
|
|
1516
|
+
max-height: ${({ theme: e }) => A(e).modal.maxHeight};
|
|
1517
|
+
padding: ${({ theme: e }) => A(e).modal.padding};
|
|
1570
1518
|
overflow: hidden;
|
|
1571
|
-
background-color: ${({ theme: e }) =>
|
|
1572
|
-
border: ${({ theme: e }) =>
|
|
1573
|
-
border-radius: ${({ theme: e }) =>
|
|
1574
|
-
box-shadow: ${({ theme: e }) =>
|
|
1575
|
-
`,
|
|
1519
|
+
background-color: ${({ theme: e }) => A(e).colors.surface};
|
|
1520
|
+
border: ${({ theme: e }) => A(e).modal.border};
|
|
1521
|
+
border-radius: ${({ theme: e }) => A(e).modal.borderRadius};
|
|
1522
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.modal};
|
|
1523
|
+
`, ht = o`
|
|
1576
1524
|
display: flex;
|
|
1577
1525
|
align-items: center;
|
|
1578
1526
|
justify-content: space-between;
|
|
1579
|
-
gap: ${({ theme: e }) =>
|
|
1527
|
+
gap: ${({ theme: e }) => A(e).space.md};
|
|
1580
1528
|
flex-shrink: 0;
|
|
1581
|
-
`,
|
|
1529
|
+
`, gt = o`
|
|
1582
1530
|
margin: 0;
|
|
1583
1531
|
min-width: 0;
|
|
1584
1532
|
flex: 1;
|
|
1585
|
-
font-family: ${({ theme: e }) =>
|
|
1586
|
-
font-size: ${({ theme: e }) =>
|
|
1587
|
-
font-weight: ${({ theme: e }) =>
|
|
1588
|
-
color: ${({ theme: e }) =>
|
|
1589
|
-
`,
|
|
1533
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1534
|
+
font-size: ${({ theme: e }) => A(e).modal.title.fontSize};
|
|
1535
|
+
font-weight: ${({ theme: e }) => A(e).modal.title.fontWeight};
|
|
1536
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1537
|
+
`, _t = o`
|
|
1590
1538
|
flex: 1;
|
|
1591
1539
|
min-height: 0;
|
|
1592
|
-
margin-top: ${({ theme: e }) =>
|
|
1540
|
+
margin-top: ${({ theme: e }) => A(e).space.lg};
|
|
1593
1541
|
overflow-x: hidden;
|
|
1594
1542
|
overflow-y: auto;
|
|
1595
|
-
font-family: ${({ theme: e }) =>
|
|
1596
|
-
font-size: ${({ theme: e }) =>
|
|
1597
|
-
color: ${({ theme: e }) =>
|
|
1598
|
-
`,
|
|
1599
|
-
${
|
|
1600
|
-
`,
|
|
1601
|
-
${
|
|
1602
|
-
`,
|
|
1603
|
-
${
|
|
1604
|
-
`,
|
|
1605
|
-
${
|
|
1606
|
-
`,
|
|
1607
|
-
${
|
|
1608
|
-
`,
|
|
1609
|
-
${
|
|
1543
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1544
|
+
font-size: ${({ theme: e }) => A(e).modal.body.fontSize};
|
|
1545
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1546
|
+
`, vt = s.div`
|
|
1547
|
+
${ft}
|
|
1548
|
+
`, yt = s.button`
|
|
1549
|
+
${pt}
|
|
1550
|
+
`, bt = s.div`
|
|
1551
|
+
${mt}
|
|
1552
|
+
`, xt = s.div`
|
|
1553
|
+
${ht}
|
|
1554
|
+
`, St = s.h2`
|
|
1555
|
+
${gt}
|
|
1556
|
+
`, Ct = s.div`
|
|
1557
|
+
${_t}
|
|
1610
1558
|
`;
|
|
1611
1559
|
// src/components/molecules/MModal/MModal.tsx
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1614
|
-
viewBox: "0 0 24 24",
|
|
1615
|
-
children: /* @__PURE__ */ c("path", {
|
|
1616
|
-
fill: "currentColor",
|
|
1617
|
-
d: "M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z"
|
|
1618
|
-
})
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
function _t({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close" }) {
|
|
1622
|
-
let d = t(), f = n(null);
|
|
1560
|
+
function wt({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close" }) {
|
|
1561
|
+
let u = t(), d = n(null);
|
|
1623
1562
|
return e(() => {
|
|
1624
1563
|
if (!r) return;
|
|
1625
|
-
|
|
1564
|
+
d.current?.focus();
|
|
1626
1565
|
let e = document.body.style.overflow;
|
|
1627
1566
|
document.body.style.overflow = "hidden";
|
|
1628
1567
|
let t = (e) => {
|
|
@@ -1631,45 +1570,45 @@ function _t({ open: r, onClose: i, title: a, children: o, closeLabel: s = "Close
|
|
|
1631
1570
|
return document.addEventListener("keydown", t), () => {
|
|
1632
1571
|
document.body.style.overflow = e, document.removeEventListener("keydown", t);
|
|
1633
1572
|
};
|
|
1634
|
-
}, [r, i]), !r || typeof document > "u" ? null :
|
|
1573
|
+
}, [r, i]), !r || typeof document > "u" ? null : x(/* @__PURE__ */ l(vt, { children: [/* @__PURE__ */ c(yt, {
|
|
1635
1574
|
type: "button",
|
|
1636
1575
|
"aria-label": "Close overlay",
|
|
1637
1576
|
onClick: i
|
|
1638
|
-
}), /* @__PURE__ */ l(
|
|
1639
|
-
ref:
|
|
1577
|
+
}), /* @__PURE__ */ l(bt, {
|
|
1578
|
+
ref: d,
|
|
1640
1579
|
role: "dialog",
|
|
1641
1580
|
"aria-modal": "true",
|
|
1642
|
-
"aria-labelledby":
|
|
1581
|
+
"aria-labelledby": u,
|
|
1643
1582
|
tabIndex: -1,
|
|
1644
|
-
children: [/* @__PURE__ */ l(
|
|
1645
|
-
id:
|
|
1583
|
+
children: [/* @__PURE__ */ l(xt, { children: [/* @__PURE__ */ c(St, {
|
|
1584
|
+
id: u,
|
|
1646
1585
|
children: a
|
|
1647
|
-
}), /* @__PURE__ */ c(
|
|
1586
|
+
}), /* @__PURE__ */ c(q, {
|
|
1648
1587
|
"aria-label": s,
|
|
1649
1588
|
ghost: !0,
|
|
1650
1589
|
onClick: i,
|
|
1651
1590
|
shape: "rounded",
|
|
1652
1591
|
size: "md",
|
|
1653
1592
|
variant: "primary",
|
|
1654
|
-
|
|
1655
|
-
})] }), o == null ? null : /* @__PURE__ */ c(
|
|
1593
|
+
icon: b
|
|
1594
|
+
})] }), o == null ? null : /* @__PURE__ */ c(Ct, { children: o })]
|
|
1656
1595
|
})] }), document.body);
|
|
1657
1596
|
}
|
|
1658
1597
|
// src/components/molecules/MNavLinks/MNavLinks.styles.ts
|
|
1659
|
-
var
|
|
1598
|
+
var Tt = o`
|
|
1660
1599
|
display: inline-flex;
|
|
1661
1600
|
align-items: center;
|
|
1662
1601
|
justify-content: center;
|
|
1663
1602
|
border: 0;
|
|
1664
|
-
padding: ${({ theme: e }) =>
|
|
1665
|
-
box-shadow: ${({ theme: e }) =>
|
|
1666
|
-
background: ${({ theme: e }) =>
|
|
1667
|
-
color: ${({ theme: e }) =>
|
|
1668
|
-
font-family: ${({ theme: e }) =>
|
|
1669
|
-
font-size: ${({ theme: e }) =>
|
|
1670
|
-
font-weight: ${({ theme: e }) =>
|
|
1671
|
-
text-decoration: ${({ theme: e }) =>
|
|
1672
|
-
text-transform: ${({ theme: e }) =>
|
|
1603
|
+
padding: ${({ theme: e }) => A(e).navLinks.itemPadding};
|
|
1604
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.link};
|
|
1605
|
+
background: ${({ theme: e }) => A(e).colors.primary};
|
|
1606
|
+
color: ${({ theme: e }) => A(e).colors.primaryText};
|
|
1607
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1608
|
+
font-size: ${({ theme: e }) => A(e).navLinks.fontSize};
|
|
1609
|
+
font-weight: ${({ theme: e }) => A(e).font.weight.semibold};
|
|
1610
|
+
text-decoration: ${({ theme: e }) => A(e).navLinks.textDecoration};
|
|
1611
|
+
text-transform: ${({ theme: e }) => A(e).navLinks.textTransform};
|
|
1673
1612
|
cursor: pointer;
|
|
1674
1613
|
position: relative;
|
|
1675
1614
|
z-index: 1;
|
|
@@ -1680,65 +1619,65 @@ var Q = o`
|
|
|
1680
1619
|
transform 0.15s ease;
|
|
1681
1620
|
|
|
1682
1621
|
&:hover:not(:disabled) {
|
|
1683
|
-
background: ${({ theme: e }) =>
|
|
1622
|
+
background: ${({ theme: e }) => w(A(e).colors.primary, A(e).colors.ink)};
|
|
1684
1623
|
}
|
|
1685
1624
|
|
|
1686
1625
|
&:first-child {
|
|
1687
|
-
border-top-left-radius: ${({ theme: e }) =>
|
|
1688
|
-
border-bottom-left-radius: ${({ theme: e }) =>
|
|
1626
|
+
border-top-left-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
|
|
1627
|
+
border-bottom-left-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
|
|
1689
1628
|
}
|
|
1690
1629
|
|
|
1691
1630
|
&:last-child {
|
|
1692
|
-
border-top-right-radius: ${({ theme: e }) =>
|
|
1693
|
-
border-bottom-right-radius: ${({ theme: e }) =>
|
|
1631
|
+
border-top-right-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
|
|
1632
|
+
border-bottom-right-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
|
|
1694
1633
|
}
|
|
1695
1634
|
|
|
1696
|
-
${
|
|
1635
|
+
${I("navLinks")}
|
|
1697
1636
|
|
|
1698
1637
|
&:disabled {
|
|
1699
|
-
opacity: ${({ theme: e }) =>
|
|
1638
|
+
opacity: ${({ theme: e }) => A(e).opacity.disabledButton};
|
|
1700
1639
|
cursor: not-allowed;
|
|
1701
1640
|
}
|
|
1702
|
-
`,
|
|
1641
|
+
`, Et = s.nav`
|
|
1703
1642
|
display: inline-flex;
|
|
1704
1643
|
align-items: center;
|
|
1705
|
-
border-radius: ${({ theme: e }) =>
|
|
1644
|
+
border-radius: ${({ theme: e }) => A(e).navLinks.borderRadius};
|
|
1706
1645
|
padding: 0;
|
|
1707
|
-
box-shadow: ${({ theme: e }) =>
|
|
1708
|
-
font-family: ${({ theme: e }) =>
|
|
1709
|
-
font-size: ${({ theme: e }) =>
|
|
1710
|
-
text-transform: ${({ theme: e }) =>
|
|
1646
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.navLinks};
|
|
1647
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1648
|
+
font-size: ${({ theme: e }) => A(e).navLinks.fontSize};
|
|
1649
|
+
text-transform: ${({ theme: e }) => A(e).navLinks.textTransform};
|
|
1711
1650
|
|
|
1712
1651
|
& > a {
|
|
1713
|
-
${
|
|
1652
|
+
${Tt}
|
|
1714
1653
|
|
|
1715
|
-
border: ${({ theme: e }) =>
|
|
1654
|
+
border: ${({ theme: e }) => A(e).navLinks.border};
|
|
1716
1655
|
|
|
1717
1656
|
&:active,
|
|
1718
1657
|
&[aria-current='page'] {
|
|
1719
1658
|
z-index: 0;
|
|
1720
1659
|
box-shadow: none;
|
|
1721
1660
|
transform: translate(
|
|
1722
|
-
calc(0px + ${({ theme: e }) =>
|
|
1723
|
-
${({ theme: e }) =>
|
|
1661
|
+
calc(0px + ${({ theme: e }) => A(e).shadow.offsetX}),
|
|
1662
|
+
${({ theme: e }) => A(e).shadow.offsetY}
|
|
1724
1663
|
);
|
|
1725
1664
|
}
|
|
1726
1665
|
}
|
|
1727
|
-
`,
|
|
1728
|
-
${
|
|
1666
|
+
`, Dt = s.button`
|
|
1667
|
+
${Tt}
|
|
1729
1668
|
`;
|
|
1730
1669
|
// src/components/molecules/MNavLinks/MNavLinks.tsx
|
|
1731
|
-
function
|
|
1732
|
-
return /* @__PURE__ */ c(
|
|
1670
|
+
function Ot({ links: e, ...t }) {
|
|
1671
|
+
return /* @__PURE__ */ c(Et, {
|
|
1733
1672
|
...t,
|
|
1734
|
-
children: e.map((e) => "href" in e && e.href !== void 0 ? /* @__PURE__ */ c(
|
|
1673
|
+
children: e.map((e) => "href" in e && e.href !== void 0 ? /* @__PURE__ */ c(C, {
|
|
1735
1674
|
to: e.href,
|
|
1736
1675
|
className: e.className,
|
|
1737
1676
|
style: e.style,
|
|
1738
1677
|
end: e.end,
|
|
1739
1678
|
caseSensitive: e.caseSensitive,
|
|
1740
1679
|
children: e.label
|
|
1741
|
-
}, e.id) : /* @__PURE__ */ c(
|
|
1680
|
+
}, e.id) : /* @__PURE__ */ c(Dt, {
|
|
1742
1681
|
type: "button",
|
|
1743
1682
|
disabled: e.disabled,
|
|
1744
1683
|
onClick: e.onClick,
|
|
@@ -1747,24 +1686,24 @@ function bt({ links: e, ...t }) {
|
|
|
1747
1686
|
});
|
|
1748
1687
|
}
|
|
1749
1688
|
// src/components/molecules/MUserBadge/MUserBadge.styles.ts
|
|
1750
|
-
var
|
|
1689
|
+
var kt = s.a`
|
|
1751
1690
|
display: inline-flex;
|
|
1752
1691
|
align-items: center;
|
|
1753
|
-
gap: ${({ theme: e }) =>
|
|
1692
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
1754
1693
|
color: inherit;
|
|
1755
|
-
font-family: ${({ theme: e }) =>
|
|
1756
|
-
text-decoration: ${({ theme: e }) =>
|
|
1694
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1695
|
+
text-decoration: ${({ theme: e }) => A(e).userBadge.textDecoration};
|
|
1757
1696
|
|
|
1758
|
-
${
|
|
1697
|
+
${I("userBadge")}
|
|
1759
1698
|
`;
|
|
1760
1699
|
// src/components/molecules/MUserBadge/MUserBadge.tsx
|
|
1761
|
-
function
|
|
1700
|
+
function At({ to: e, firstName: t, lastName: n, avatarSrc: r, size: i = "md", showName: a = !0, ...o }) {
|
|
1762
1701
|
let s = `${t} ${n}`.trim();
|
|
1763
|
-
return /* @__PURE__ */ l(
|
|
1764
|
-
as:
|
|
1702
|
+
return /* @__PURE__ */ l(kt, {
|
|
1703
|
+
as: S,
|
|
1765
1704
|
to: e,
|
|
1766
1705
|
...o,
|
|
1767
|
-
children: [/* @__PURE__ */ c(
|
|
1706
|
+
children: [/* @__PURE__ */ c(M, {
|
|
1768
1707
|
firstName: t,
|
|
1769
1708
|
lastName: n,
|
|
1770
1709
|
src: r,
|
|
@@ -1775,44 +1714,44 @@ function St({ to: e, firstName: t, lastName: n, avatarSrc: r, size: i = "md", sh
|
|
|
1775
1714
|
});
|
|
1776
1715
|
}
|
|
1777
1716
|
// src/components/organisms/OSidebar/OSidebar.styles.ts
|
|
1778
|
-
var
|
|
1717
|
+
var jt = s.aside`
|
|
1779
1718
|
box-sizing: border-box;
|
|
1780
1719
|
display: flex;
|
|
1781
1720
|
flex: 0 0
|
|
1782
|
-
${({ $extended: e, theme: t }) => e ?
|
|
1721
|
+
${({ $extended: e, theme: t }) => e ? A(t).sidebar.width.extended : A(t).sidebar.width.compact};
|
|
1783
1722
|
flex-direction: column;
|
|
1784
|
-
gap: ${({ theme: e }) =>
|
|
1785
|
-
width: ${({ $extended: e, theme: t }) => e ?
|
|
1786
|
-
height: ${({ theme: e }) =>
|
|
1787
|
-
height: ${({ theme: e }) =>
|
|
1723
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
1724
|
+
width: ${({ $extended: e, theme: t }) => e ? A(t).sidebar.width.extended : A(t).sidebar.width.compact};
|
|
1725
|
+
height: ${({ theme: e }) => A(e).sidebar.height.fallback};
|
|
1726
|
+
height: ${({ theme: e }) => A(e).sidebar.height.dynamic};
|
|
1788
1727
|
min-height: 0;
|
|
1789
1728
|
overflow: hidden;
|
|
1790
|
-
padding: ${({ theme: e }) =>
|
|
1791
|
-
border: ${({ theme: e }) =>
|
|
1792
|
-
border-radius: ${({ theme: e }) =>
|
|
1793
|
-
background: ${({ theme: e }) =>
|
|
1794
|
-
box-shadow: ${({ theme: e }) =>
|
|
1729
|
+
padding: ${({ theme: e }) => A(e).space.inset};
|
|
1730
|
+
border: ${({ theme: e }) => A(e).sidebar.border};
|
|
1731
|
+
border-radius: ${({ theme: e }) => A(e).sidebar.borderRadius};
|
|
1732
|
+
background: ${({ theme: e }) => A(e).colors.surface};
|
|
1733
|
+
box-shadow: ${({ theme: e }) => A(e).shadow.sidebar};
|
|
1795
1734
|
transition:
|
|
1796
1735
|
width 0.2s ease,
|
|
1797
1736
|
flex-basis 0.2s ease;
|
|
1798
|
-
`,
|
|
1737
|
+
`, Mt = s.div`
|
|
1799
1738
|
display: flex;
|
|
1800
1739
|
flex-direction: column;
|
|
1801
1740
|
align-items: center;
|
|
1802
|
-
gap: ${({ theme: e }) =>
|
|
1741
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
1803
1742
|
align-items: ${({ $extended: e }) => e ? "flex-end" : "center"};
|
|
1804
|
-
`,
|
|
1743
|
+
`, Nt = s.nav`
|
|
1805
1744
|
display: flex;
|
|
1806
1745
|
min-height: 0;
|
|
1807
1746
|
flex: 1;
|
|
1808
1747
|
flex-direction: column;
|
|
1809
1748
|
align-items: stretch;
|
|
1810
|
-
gap: ${({ theme: e }) =>
|
|
1811
|
-
margin-inline: ${({ theme: e }) => `-${
|
|
1812
|
-
padding-inline: ${({ theme: e }) =>
|
|
1749
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
1750
|
+
margin-inline: ${({ theme: e }) => `-${A(e).space.xs}`};
|
|
1751
|
+
padding-inline: ${({ theme: e }) => A(e).space.xs};
|
|
1813
1752
|
overflow-y: auto;
|
|
1814
1753
|
overflow-x: hidden;
|
|
1815
|
-
`,
|
|
1754
|
+
`, Pt = s.div`
|
|
1816
1755
|
display: flex;
|
|
1817
1756
|
width: 100%;
|
|
1818
1757
|
min-width: 0;
|
|
@@ -1823,52 +1762,32 @@ var Ct = s.aside`
|
|
|
1823
1762
|
min-width: 0;
|
|
1824
1763
|
justify-content: ${({ $extended: e }) => e ? "flex-start" : "center"};
|
|
1825
1764
|
}
|
|
1826
|
-
`,
|
|
1765
|
+
`, Ft = s.div`
|
|
1827
1766
|
display: flex;
|
|
1828
1767
|
flex-direction: column;
|
|
1829
|
-
gap: ${({ theme: e }) =>
|
|
1768
|
+
gap: ${({ theme: e }) => A(e).space.sm};
|
|
1830
1769
|
`;
|
|
1831
1770
|
// src/components/organisms/OSidebar/OSidebar.tsx
|
|
1832
|
-
function
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
children: e ? /* @__PURE__ */ c("path", {
|
|
1838
|
-
d: "m15 18-6-6 6-6",
|
|
1839
|
-
stroke: "currentColor",
|
|
1840
|
-
strokeWidth: "2",
|
|
1841
|
-
strokeLinecap: "round",
|
|
1842
|
-
strokeLinejoin: "round"
|
|
1843
|
-
}) : /* @__PURE__ */ c("path", {
|
|
1844
|
-
d: "m9 18 6-6-6-6",
|
|
1845
|
-
stroke: "currentColor",
|
|
1846
|
-
strokeWidth: "2",
|
|
1847
|
-
strokeLinecap: "round",
|
|
1848
|
-
strokeLinejoin: "round"
|
|
1849
|
-
})
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
function kt({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExtendedChange: a, navigationLabel: o = "Primary navigation", "aria-label": s = "Application sidebar", ...u }) {
|
|
1853
|
-
let [d, f] = r(i), p = n ?? d, [m, h] = r(p);
|
|
1854
|
-
function g() {
|
|
1855
|
-
let e = !p;
|
|
1856
|
-
e || h(!0), n === void 0 && f(e), a?.(e);
|
|
1771
|
+
function It({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExtendedChange: a, navigationLabel: o = "Primary navigation", "aria-label": s = "Application sidebar", ...u }) {
|
|
1772
|
+
let [p, m] = r(i), h = n ?? p, [g, _] = r(h);
|
|
1773
|
+
function v() {
|
|
1774
|
+
let e = !h;
|
|
1775
|
+
e || _(!0), n === void 0 && m(e), a?.(e);
|
|
1857
1776
|
}
|
|
1858
|
-
function
|
|
1859
|
-
e.target === e.currentTarget && e.propertyName === "width" && h
|
|
1777
|
+
function y(e) {
|
|
1778
|
+
e.target === e.currentTarget && e.propertyName === "width" && _(h);
|
|
1860
1779
|
}
|
|
1861
|
-
function
|
|
1862
|
-
return /* @__PURE__ */ c(
|
|
1863
|
-
$extended:
|
|
1864
|
-
children:
|
|
1780
|
+
function b(e) {
|
|
1781
|
+
return /* @__PURE__ */ c(Pt, {
|
|
1782
|
+
$extended: g,
|
|
1783
|
+
children: g ? /* @__PURE__ */ l(Z, {
|
|
1865
1784
|
href: e.href,
|
|
1866
|
-
children: [/* @__PURE__ */ c(
|
|
1785
|
+
children: [/* @__PURE__ */ c(G, {
|
|
1867
1786
|
size: "md",
|
|
1868
1787
|
style: { color: "inherit" },
|
|
1869
1788
|
children: e.icon
|
|
1870
1789
|
}), e.label]
|
|
1871
|
-
}) : /* @__PURE__ */ c(
|
|
1790
|
+
}) : /* @__PURE__ */ c(Y, {
|
|
1872
1791
|
href: e.href,
|
|
1873
1792
|
"aria-label": e.label,
|
|
1874
1793
|
title: e.label,
|
|
@@ -1876,34 +1795,34 @@ function kt({ links: e, logout: t, extended: n, defaultExtended: i = !1, onExten
|
|
|
1876
1795
|
})
|
|
1877
1796
|
}, e.id);
|
|
1878
1797
|
}
|
|
1879
|
-
return /* @__PURE__ */ l(
|
|
1798
|
+
return /* @__PURE__ */ l(jt, {
|
|
1880
1799
|
...u,
|
|
1881
|
-
$extended:
|
|
1800
|
+
$extended: h,
|
|
1882
1801
|
"aria-label": s,
|
|
1883
|
-
"data-extended":
|
|
1884
|
-
onTransitionEnd:
|
|
1802
|
+
"data-extended": h,
|
|
1803
|
+
onTransitionEnd: y,
|
|
1885
1804
|
children: [
|
|
1886
|
-
/* @__PURE__ */ c(
|
|
1887
|
-
$extended:
|
|
1888
|
-
children: /* @__PURE__ */ c(
|
|
1889
|
-
"aria-label":
|
|
1890
|
-
"aria-expanded":
|
|
1891
|
-
onClick:
|
|
1805
|
+
/* @__PURE__ */ c(Mt, {
|
|
1806
|
+
$extended: h,
|
|
1807
|
+
children: /* @__PURE__ */ c(q, {
|
|
1808
|
+
"aria-label": h ? "Collapse sidebar" : "Expand sidebar",
|
|
1809
|
+
"aria-expanded": h,
|
|
1810
|
+
onClick: v,
|
|
1892
1811
|
size: "sm",
|
|
1893
1812
|
ghost: !0,
|
|
1894
|
-
|
|
1813
|
+
icon: h ? d : f
|
|
1895
1814
|
})
|
|
1896
1815
|
}),
|
|
1897
|
-
/* @__PURE__ */ c(
|
|
1816
|
+
/* @__PURE__ */ c(Nt, {
|
|
1898
1817
|
"aria-label": o,
|
|
1899
|
-
children: e.map((e) =>
|
|
1818
|
+
children: e.map((e) => b(e))
|
|
1900
1819
|
}),
|
|
1901
|
-
/* @__PURE__ */ c(
|
|
1820
|
+
/* @__PURE__ */ c(Ft, { children: b(t) })
|
|
1902
1821
|
]
|
|
1903
1822
|
});
|
|
1904
1823
|
}
|
|
1905
1824
|
// src/components/organisms/OUserCamera/OUserCamera.styles.ts
|
|
1906
|
-
var
|
|
1825
|
+
var Lt = s.div`
|
|
1907
1826
|
position: relative;
|
|
1908
1827
|
display: block;
|
|
1909
1828
|
width: 100%;
|
|
@@ -1911,118 +1830,80 @@ var At = s.div`
|
|
|
1911
1830
|
aspect-ratio: ${({ $aspectRatio: e }) => e};
|
|
1912
1831
|
box-sizing: border-box;
|
|
1913
1832
|
overflow: hidden;
|
|
1914
|
-
padding: ${({ theme: e }) =>
|
|
1915
|
-
border: ${({ theme: e }) =>
|
|
1916
|
-
border-radius: ${({ theme: e }) =>
|
|
1917
|
-
background: ${({ theme: e }) =>
|
|
1918
|
-
color: ${({ theme: e }) =>
|
|
1919
|
-
`,
|
|
1833
|
+
padding: ${({ theme: e }) => A(e).space.inset};
|
|
1834
|
+
border: ${({ theme: e }) => A(e).camera.border};
|
|
1835
|
+
border-radius: ${({ theme: e }) => A(e).camera.borderRadius};
|
|
1836
|
+
background: ${({ theme: e }) => A(e).colors.surface};
|
|
1837
|
+
color: ${({ theme: e }) => A(e).colors.text};
|
|
1838
|
+
`, Rt = s.video`
|
|
1920
1839
|
position: absolute;
|
|
1921
1840
|
inset: 0;
|
|
1922
1841
|
width: 100%;
|
|
1923
1842
|
height: 100%;
|
|
1924
1843
|
object-fit: cover;
|
|
1925
|
-
`,
|
|
1844
|
+
`, zt = s.div`
|
|
1926
1845
|
position: absolute;
|
|
1927
1846
|
inset: 0;
|
|
1928
1847
|
display: flex;
|
|
1929
1848
|
align-items: center;
|
|
1930
1849
|
justify-content: center;
|
|
1931
|
-
background: ${({ theme: e }) =>
|
|
1932
|
-
color: ${({ theme: e }) =>
|
|
1933
|
-
font-family: ${({ theme: e }) =>
|
|
1934
|
-
font-size: ${({ theme: e }) =>
|
|
1935
|
-
font-weight: ${({ theme: e }) =>
|
|
1936
|
-
`,
|
|
1850
|
+
background: ${({ theme: e }) => A(e).colors.secondary};
|
|
1851
|
+
color: ${({ theme: e }) => A(e).colors.primary};
|
|
1852
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1853
|
+
font-size: ${({ theme: e }) => A(e).camera.fallbackFontSize};
|
|
1854
|
+
font-weight: ${({ theme: e }) => A(e).camera.fallbackFontWeight};
|
|
1855
|
+
`, Bt = s.div`
|
|
1937
1856
|
position: absolute;
|
|
1938
1857
|
z-index: 1;
|
|
1939
1858
|
${({ $placement: e }) => e === "top-right" ? o`
|
|
1940
|
-
top: ${({ theme: e }) =>
|
|
1941
|
-
right: ${({ theme: e }) =>
|
|
1859
|
+
top: ${({ theme: e }) => A(e).space.inset};
|
|
1860
|
+
right: ${({ theme: e }) => A(e).space.inset};
|
|
1942
1861
|
` : o`
|
|
1943
|
-
right: ${({ theme: e }) =>
|
|
1944
|
-
bottom: ${({ theme: e }) =>
|
|
1862
|
+
right: ${({ theme: e }) => A(e).space.inset};
|
|
1863
|
+
bottom: ${({ theme: e }) => A(e).space.inset};
|
|
1945
1864
|
`}
|
|
1946
|
-
`,
|
|
1865
|
+
`, Vt = s.span`
|
|
1947
1866
|
position: absolute;
|
|
1948
1867
|
z-index: 1;
|
|
1949
|
-
bottom: ${({ theme: e }) =>
|
|
1950
|
-
left: ${({ theme: e }) =>
|
|
1951
|
-
max-width: ${({ theme: e }) => `calc(100% - ${
|
|
1868
|
+
bottom: ${({ theme: e }) => A(e).space.inset};
|
|
1869
|
+
left: ${({ theme: e }) => A(e).space.inset};
|
|
1870
|
+
max-width: ${({ theme: e }) => `calc(100% - ${A(e).camera.nameMaxWidthOffset})`};
|
|
1952
1871
|
overflow: hidden;
|
|
1953
|
-
padding: ${({ theme: e }) => `${
|
|
1954
|
-
border-radius: ${({ theme: e }) =>
|
|
1955
|
-
background: ${({ theme: e }) => `color-mix(in srgb, ${
|
|
1956
|
-
color: ${({ theme: e }) =>
|
|
1957
|
-
font-family: ${({ theme: e }) =>
|
|
1958
|
-
font-size: ${({ theme: e }) =>
|
|
1872
|
+
padding: ${({ theme: e }) => `${A(e).space.xs} ${A(e).space.sm}`};
|
|
1873
|
+
border-radius: ${({ theme: e }) => A(e).camera.nameBorderRadius};
|
|
1874
|
+
background: ${({ theme: e }) => `color-mix(in srgb, ${A(e).colors.ink} 65%, transparent)`};
|
|
1875
|
+
color: ${({ theme: e }) => A(e).colors.muted};
|
|
1876
|
+
font-family: ${({ theme: e }) => A(e).font.sans};
|
|
1877
|
+
font-size: ${({ theme: e }) => A(e).typography.small};
|
|
1959
1878
|
text-overflow: ellipsis;
|
|
1960
1879
|
white-space: nowrap;
|
|
1961
1880
|
`;
|
|
1962
1881
|
// src/components/organisms/OUserCamera/OUserCamera.tsx
|
|
1963
|
-
function
|
|
1964
|
-
|
|
1965
|
-
viewBox: "0 0 24 24",
|
|
1966
|
-
fill: "none",
|
|
1967
|
-
"aria-hidden": "true",
|
|
1968
|
-
children: [/* @__PURE__ */ c("path", {
|
|
1969
|
-
d: "M4 7.5h11.5A1.5 1.5 0 0 1 17 9v1.5l4-2.5v8l-4-2.5V15a1.5 1.5 0 0 1-1.5 1.5H5.5A1.5 1.5 0 0 1 4 15V7.5Z",
|
|
1970
|
-
stroke: "currentColor",
|
|
1971
|
-
strokeWidth: "2",
|
|
1972
|
-
strokeLinecap: "round",
|
|
1973
|
-
strokeLinejoin: "round"
|
|
1974
|
-
}), e ? /* @__PURE__ */ c("path", {
|
|
1975
|
-
d: "m3 3 18 18",
|
|
1976
|
-
stroke: "currentColor",
|
|
1977
|
-
strokeWidth: "2",
|
|
1978
|
-
strokeLinecap: "round"
|
|
1979
|
-
}) : null]
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
function Ft({ disabled: e }) {
|
|
1983
|
-
return /* @__PURE__ */ l("svg", {
|
|
1984
|
-
viewBox: "0 0 24 24",
|
|
1985
|
-
fill: "none",
|
|
1986
|
-
"aria-hidden": "true",
|
|
1987
|
-
children: [/* @__PURE__ */ c("path", {
|
|
1988
|
-
d: "M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm0 0v5m-4 0h8m-11-8a7 7 0 0 0 14 0",
|
|
1989
|
-
stroke: "currentColor",
|
|
1990
|
-
strokeWidth: "2",
|
|
1991
|
-
strokeLinecap: "round",
|
|
1992
|
-
strokeLinejoin: "round"
|
|
1993
|
-
}), e ? /* @__PURE__ */ c("path", {
|
|
1994
|
-
d: "m3 3 18 18",
|
|
1995
|
-
stroke: "currentColor",
|
|
1996
|
-
strokeWidth: "2",
|
|
1997
|
-
strokeLinecap: "round"
|
|
1998
|
-
}) : null]
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabled: o, onCameraToggle: s, onAudioToggle: u, aspectRatio: d = 16 / 9, ...f }) {
|
|
2002
|
-
let p = n(null), m = `${t} ${r}`.trim(), h = `${t.charAt(0)}${r.charAt(0)}`.toUpperCase(), g = a && !!i;
|
|
1882
|
+
function Ht({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabled: o, onCameraToggle: s, onAudioToggle: u, aspectRatio: d = 16 / 9, ...f }) {
|
|
1883
|
+
let p = n(null), m = `${t} ${r}`.trim(), _ = `${t.charAt(0)}${r.charAt(0)}`.toUpperCase(), b = a && !!i;
|
|
2003
1884
|
return e(() => {
|
|
2004
1885
|
let e = p.current;
|
|
2005
|
-
if (e) return e.srcObject =
|
|
1886
|
+
if (e) return e.srcObject = b ? i ?? null : null, () => {
|
|
2006
1887
|
e.srcObject = null;
|
|
2007
1888
|
};
|
|
2008
|
-
}, [
|
|
1889
|
+
}, [b, i]), /* @__PURE__ */ l(Lt, {
|
|
2009
1890
|
...f,
|
|
2010
1891
|
$aspectRatio: Number.isFinite(d) && d > 0 ? d : 16 / 9,
|
|
2011
1892
|
role: "group",
|
|
2012
1893
|
"aria-label": `${m} camera`,
|
|
2013
1894
|
children: [
|
|
2014
|
-
|
|
1895
|
+
b ? /* @__PURE__ */ c(Rt, {
|
|
2015
1896
|
ref: p,
|
|
2016
1897
|
autoPlay: !0,
|
|
2017
1898
|
muted: !0,
|
|
2018
1899
|
playsInline: !0
|
|
2019
|
-
}) : /* @__PURE__ */ c(
|
|
1900
|
+
}) : /* @__PURE__ */ c(zt, {
|
|
2020
1901
|
"aria-hidden": "true",
|
|
2021
|
-
children:
|
|
1902
|
+
children: _
|
|
2022
1903
|
}),
|
|
2023
|
-
/* @__PURE__ */ c(
|
|
1904
|
+
/* @__PURE__ */ c(Bt, {
|
|
2024
1905
|
$placement: "top-right",
|
|
2025
|
-
children: /* @__PURE__ */ c(
|
|
1906
|
+
children: /* @__PURE__ */ c(q, {
|
|
2026
1907
|
"aria-label": `Turn camera ${a ? "off" : "on"}`,
|
|
2027
1908
|
"aria-pressed": a,
|
|
2028
1909
|
variant: "primary",
|
|
@@ -2030,12 +1911,12 @@ function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabl
|
|
|
2030
1911
|
shape: "rounded",
|
|
2031
1912
|
ghost: !0,
|
|
2032
1913
|
onClick: s,
|
|
2033
|
-
|
|
1914
|
+
icon: a ? v : y
|
|
2034
1915
|
})
|
|
2035
1916
|
}),
|
|
2036
|
-
/* @__PURE__ */ c(
|
|
1917
|
+
/* @__PURE__ */ c(Bt, {
|
|
2037
1918
|
$placement: "bottom-right",
|
|
2038
|
-
children: /* @__PURE__ */ c(
|
|
1919
|
+
children: /* @__PURE__ */ c(q, {
|
|
2039
1920
|
"aria-label": `Turn audio ${o ? "off" : "on"}`,
|
|
2040
1921
|
"aria-pressed": o,
|
|
2041
1922
|
variant: "primary",
|
|
@@ -2043,39 +1924,39 @@ function It({ firstName: t, lastName: r, stream: i, cameraEnabled: a, audioEnabl
|
|
|
2043
1924
|
shape: "rounded",
|
|
2044
1925
|
ghost: !0,
|
|
2045
1926
|
onClick: u,
|
|
2046
|
-
|
|
1927
|
+
icon: o ? h : g
|
|
2047
1928
|
})
|
|
2048
1929
|
}),
|
|
2049
|
-
/* @__PURE__ */ c(
|
|
1930
|
+
/* @__PURE__ */ c(Vt, { children: m })
|
|
2050
1931
|
]
|
|
2051
1932
|
});
|
|
2052
1933
|
}
|
|
2053
1934
|
// src/shared/styles/GlobalStyles.ts
|
|
2054
|
-
var
|
|
1935
|
+
var Ut = a`
|
|
2055
1936
|
:root {
|
|
2056
|
-
--jynko-shadow-solid: ${({ theme: e }) =>
|
|
2057
|
-
--jynko-modal-padding: ${({ theme: e }) =>
|
|
2058
|
-
--jynko-modal-max-width: ${({ theme: e }) =>
|
|
2059
|
-
--jynko-modal-max-height: ${({ theme: e }) =>
|
|
2060
|
-
--jynko-modal-border-radius: ${({ theme: e }) =>
|
|
2061
|
-
--jynko-modal-box-shadow: ${({ theme: e }) =>
|
|
1937
|
+
--jynko-shadow-solid: ${({ theme: e }) => A(e).shadow.button};
|
|
1938
|
+
--jynko-modal-padding: ${({ theme: e }) => A(e).modal.padding};
|
|
1939
|
+
--jynko-modal-max-width: ${({ theme: e }) => A(e).modal.maxWidth};
|
|
1940
|
+
--jynko-modal-max-height: ${({ theme: e }) => A(e).modal.maxHeight};
|
|
1941
|
+
--jynko-modal-border-radius: ${({ theme: e }) => A(e).modal.borderRadius};
|
|
1942
|
+
--jynko-modal-box-shadow: ${({ theme: e }) => A(e).shadow.modal};
|
|
2062
1943
|
}
|
|
2063
1944
|
|
|
2064
1945
|
button {
|
|
2065
|
-
border: ${({ theme: e }) =>
|
|
2066
|
-
border-radius: ${({ theme: e }) =>
|
|
2067
|
-
padding: ${({ theme: e }) =>
|
|
2068
|
-
font-size: ${({ theme: e }) =>
|
|
2069
|
-
text-transform: ${({ theme: e }) =>
|
|
1946
|
+
border: ${({ theme: e }) => A(e).button.border};
|
|
1947
|
+
border-radius: ${({ theme: e }) => A(e).button.borderRadius};
|
|
1948
|
+
padding: ${({ theme: e }) => A(e).button.padding};
|
|
1949
|
+
font-size: ${({ theme: e }) => A(e).button.fontSize};
|
|
1950
|
+
text-transform: ${({ theme: e }) => A(e).button.textTransform};
|
|
2070
1951
|
}
|
|
2071
1952
|
`;
|
|
2072
1953
|
// src/providers/JynkoProvider/JynkoProvider.tsx
|
|
2073
|
-
function
|
|
1954
|
+
function Wt({ children: e, theme: t = k }) {
|
|
2074
1955
|
return /* @__PURE__ */ l(i, {
|
|
2075
1956
|
theme: t,
|
|
2076
|
-
children: [/* @__PURE__ */ c(
|
|
1957
|
+
children: [/* @__PURE__ */ c(Ut, {}), e]
|
|
2077
1958
|
});
|
|
2078
1959
|
}
|
|
2079
|
-
export {
|
|
1960
|
+
export { M as AAvatar, B as ABadge, ae as AButton, G as AIcon, q as AIconButton, Y as AIconLink, Ae as AInput, Z as ALink, Ie as ALogo, We as ASearchInput, Ke as ASection, at as ASelect, lt as ATextarea, dt as ATypography, Wt as JynkoProvider, wt as MModal, Ot as MNavLinks, At as MUserBadge, It as OSidebar, Ht as OUserCamera, k as theme };
|
|
2080
1961
|
|
|
2081
1962
|
//# sourceMappingURL=index.js.map
|