@jcdecor/ui 0.1.0 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/chat/ChatComposer.d.ts +13 -1
- package/dist/chat/ChatMessage.d.ts +5 -1
- package/dist/chat/ChatThread.d.ts +5 -1
- package/dist/chat/ConversationList.d.ts +5 -1
- package/dist/chat/types.d.ts +2 -0
- package/dist/chat.js +225 -190
- package/dist/chat.js.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +23 -7
- package/dist/components/TopNav/TopNav.d.ts +9 -1
- package/dist/index.js +544 -490
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import { a as e, d as t, f as n, l as r, n as i, o as a, p as o, r as s, s as c,
|
|
|
3
3
|
import { t as d } from "./colors-C_5SHERN.js";
|
|
4
4
|
import { a as f, c as p, d as m, f as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./format-Cxmo46_A.js";
|
|
5
5
|
import { a as w, c as T, i as E, l as D, n as ee, o as O, r as k, s as te, t as ne, u as re } from "./brand-CXtAwb1A.js";
|
|
6
|
-
import { Accordion as ie, ActionBar as ae, ActionIcon as oe, Alert as se, AlphaSlider as ce, Anchor as le, AngleSlider as ue, AppShell as de, Avatar as fe, BackgroundImage as pe, Badge as me, Blockquote as he, Box as A, Breadcrumbs as ge, Burger as _e, Button as
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { IconAlertTriangle as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { useClipboard as
|
|
6
|
+
import { Accordion as ie, ActionBar as ae, ActionIcon as oe, Alert as se, AlphaSlider as ce, Anchor as le, AngleSlider as ue, AppShell as de, Avatar as fe, BackgroundImage as pe, Badge as me, Blockquote as he, Box as A, Breadcrumbs as ge, Burger as _e, Button as j, Card as ve, Cascader as ye, Checkbox as be, CheckboxCard as xe, CheckboxIndicator as Se, Chip as Ce, CloseButton as we, Code as Te, Collapse as Ee, ColorPicker as De, Container as Oe, DataList as ke, Dialog as Ae, Divider as je, Drawer as Me, EmptyState as Ne, Fieldset as Pe, FloatingWindow as Fe, Group as M, HoverCard as Ie, HueSlider as Le, Image as Re, Indicator as ze, Input as Be, InputWrapper as Ve, Kbd as He, List as Ue, Loader as We, LoadingOverlay as Ge, MantineProvider as Ke, Mark as qe, Menu as Je, Menubar as Ye, Modal as Xe, NativeSelect as Ze, NavLink as Qe, Notification as $e, NumberFormatter as et, Overlay as tt, Pagination as nt, Paper as rt, Pill as it, PinInput as at, Popover as ot, Progress as st, Radio as ct, RadioCard as lt, RadioIndicator as ut, RangeSlider as dt, Rating as ft, RingProgress as pt, RollingNumber as mt, ScrollArea as ht, SegmentedControl as gt, SemiCircleProgress as _t, SimpleGrid as vt, Skeleton as yt, Slider as bt, Splitter as xt, Spoiler as St, Stepper as Ct, Switch as wt, Table as N, TableOfContents as Tt, Tabs as Et, Text as P, ThemeIcon as Dt, Timeline as Ot, Title as kt, Tooltip as At, Tree as jt, Typography as Mt, createTheme as Nt, createVarsResolver as Pt, defaultVariantColorsResolver as F, factory as I, getRadius as Ft, getThemeColor as It, luminance as Lt, mergeThemeOverrides as Rt, parseThemeColor as zt, rem as Bt, useComputedColorScheme as Vt, useMantineColorScheme as Ht, useProps as L, useStyles as R } from "@mantine/core";
|
|
7
|
+
import { Fragment as Ut, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
8
|
+
import { IconAlertTriangle as Wt, IconArrowDown as Gt, IconArrowDownRight as Kt, IconArrowUp as qt, IconArrowUpRight as Jt, IconArrowsSort as Yt, IconCheck as Xt, IconCopy as Zt, IconDatabaseOff as Qt, IconHeart as $t, IconHeartFilled as en, IconInfoCircle as tn, IconMinus as nn, IconMoon as rn, IconShoppingCart as an, IconSun as on, IconTicket as sn, IconX as cn } from "@tabler/icons-react";
|
|
9
|
+
import { Fragment as ln, useMemo as un, useState as dn } from "react";
|
|
10
|
+
import { useClipboard as fn, useDisclosure as pn } from "@mantine/hooks";
|
|
11
11
|
export * from "@mantine/core";
|
|
12
12
|
//#region src/theme/variantColorResolver.ts
|
|
13
|
-
var
|
|
13
|
+
var mn = {
|
|
14
14
|
horizon: "primary",
|
|
15
15
|
blue: "primary",
|
|
16
16
|
evergreen: "success",
|
|
@@ -23,8 +23,8 @@ var pn = {
|
|
|
23
23
|
obsidian: "neutral",
|
|
24
24
|
gray: "neutral",
|
|
25
25
|
dark: "neutral"
|
|
26
|
-
},
|
|
27
|
-
let { variant: t, theme: n } = e, r = e.color ?? n.primaryColor, i =
|
|
26
|
+
}, hn = (e) => {
|
|
27
|
+
let { variant: t, theme: n } = e, r = e.color ?? n.primaryColor, i = zt({
|
|
28
28
|
color: r,
|
|
29
29
|
theme: n
|
|
30
30
|
}), a = i.isThemeColor ? i.color : void 0;
|
|
@@ -36,12 +36,12 @@ var pn = {
|
|
|
36
36
|
border: "1px solid transparent"
|
|
37
37
|
};
|
|
38
38
|
if (t === "filled" && a && i.shade === void 0) return {
|
|
39
|
-
...
|
|
39
|
+
...F(e),
|
|
40
40
|
color: "var(--jc-on-filled)",
|
|
41
41
|
hoverColor: "var(--jc-on-filled)"
|
|
42
42
|
};
|
|
43
43
|
if (t === "outline") {
|
|
44
|
-
let t =
|
|
44
|
+
let t = F(e), r = F({
|
|
45
45
|
...e,
|
|
46
46
|
variant: "light"
|
|
47
47
|
}), i = !e.color || a === n.primaryColor;
|
|
@@ -59,8 +59,8 @@ var pn = {
|
|
|
59
59
|
hoverColor: "var(--ds-text)",
|
|
60
60
|
border: "1px solid transparent"
|
|
61
61
|
};
|
|
62
|
-
if (t === "light" && a &&
|
|
63
|
-
let e =
|
|
62
|
+
if (t === "light" && a && mn[a]) {
|
|
63
|
+
let e = mn[a];
|
|
64
64
|
return {
|
|
65
65
|
background: `var(--ds-tag-${e}-bg)`,
|
|
66
66
|
hover: `var(--ds-tag-${e}-hover)`,
|
|
@@ -68,8 +68,8 @@ var pn = {
|
|
|
68
68
|
border: "1px solid transparent"
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
return
|
|
72
|
-
},
|
|
71
|
+
return F(e);
|
|
72
|
+
}, gn = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "xl", _n = {
|
|
73
73
|
xs: {
|
|
74
74
|
height: "28px",
|
|
75
75
|
px: "10px",
|
|
@@ -100,20 +100,20 @@ var pn = {
|
|
|
100
100
|
fz: "18px",
|
|
101
101
|
inputFz: "18px"
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, vn = {
|
|
104
104
|
backgroundOpacity: .5,
|
|
105
105
|
blur: 2,
|
|
106
106
|
color: "#08154B"
|
|
107
|
-
},
|
|
107
|
+
}, yn = {
|
|
108
108
|
button: "jc-buttons-button-149h8",
|
|
109
109
|
actionIcon: "jc-buttons-actionIcon-1ori4",
|
|
110
110
|
closeButton: "jc-buttons-closeButton-5uyy8"
|
|
111
|
-
},
|
|
112
|
-
Button:
|
|
113
|
-
classNames: { root:
|
|
111
|
+
}, bn = {
|
|
112
|
+
Button: j.extend({
|
|
113
|
+
classNames: { root: yn.button },
|
|
114
114
|
vars: (e, t) => {
|
|
115
|
-
if (!
|
|
116
|
-
let n =
|
|
115
|
+
if (!gn(t.size ?? "md")) return { root: {} };
|
|
116
|
+
let n = _n[t.size ?? "md"];
|
|
117
117
|
return { root: {
|
|
118
118
|
"--button-height": n.height,
|
|
119
119
|
"--button-padding-x": n.px,
|
|
@@ -123,10 +123,10 @@ var pn = {
|
|
|
123
123
|
}),
|
|
124
124
|
ActionIcon: oe.extend({
|
|
125
125
|
defaultProps: { variant: "subtle" },
|
|
126
|
-
classNames: { root:
|
|
126
|
+
classNames: { root: yn.actionIcon }
|
|
127
127
|
}),
|
|
128
|
-
CloseButton:
|
|
129
|
-
},
|
|
128
|
+
CloseButton: we.extend({ classNames: { root: yn.closeButton } })
|
|
129
|
+
}, V = {
|
|
130
130
|
dropdown: "jc-combobox-dropdown-17a97",
|
|
131
131
|
option: "jc-combobox-option-1si4t",
|
|
132
132
|
groupLabel: "jc-combobox-groupLabel-15fc7",
|
|
@@ -139,7 +139,7 @@ var pn = {
|
|
|
139
139
|
cascaderColumn: "jc-combobox-cascaderColumn-d4mtr",
|
|
140
140
|
cascaderOption: "jc-combobox-cascaderOption-ituy4",
|
|
141
141
|
cascaderOverflow: "jc-combobox-cascaderOverflow-1rawy"
|
|
142
|
-
},
|
|
142
|
+
}, xn = [
|
|
143
143
|
"Select",
|
|
144
144
|
"MultiSelect",
|
|
145
145
|
"Autocomplete",
|
|
@@ -148,57 +148,57 @@ var pn = {
|
|
|
148
148
|
"Cascader",
|
|
149
149
|
"TreeSelect",
|
|
150
150
|
"Combobox"
|
|
151
|
-
],
|
|
152
|
-
dropdown:
|
|
153
|
-
option:
|
|
154
|
-
groupLabel:
|
|
155
|
-
empty:
|
|
156
|
-
},
|
|
151
|
+
], H = {
|
|
152
|
+
dropdown: V.dropdown,
|
|
153
|
+
option: V.option,
|
|
154
|
+
groupLabel: V.groupLabel,
|
|
155
|
+
empty: V.empty
|
|
156
|
+
}, Sn = {
|
|
157
157
|
Combobox: {
|
|
158
|
-
...
|
|
159
|
-
search:
|
|
160
|
-
header:
|
|
161
|
-
footer:
|
|
158
|
+
...H,
|
|
159
|
+
search: V.search,
|
|
160
|
+
header: V.header,
|
|
161
|
+
footer: V.footer
|
|
162
162
|
},
|
|
163
163
|
ComboboxPopover: {
|
|
164
|
-
...
|
|
165
|
-
search:
|
|
164
|
+
...H,
|
|
165
|
+
search: V.search
|
|
166
166
|
},
|
|
167
|
-
Select:
|
|
168
|
-
Autocomplete:
|
|
167
|
+
Select: H,
|
|
168
|
+
Autocomplete: H,
|
|
169
169
|
MultiSelect: {
|
|
170
|
-
...
|
|
171
|
-
pill:
|
|
170
|
+
...H,
|
|
171
|
+
pill: V.pill
|
|
172
172
|
},
|
|
173
173
|
TagsInput: {
|
|
174
|
-
...
|
|
175
|
-
pill:
|
|
174
|
+
...H,
|
|
175
|
+
pill: V.pill
|
|
176
176
|
},
|
|
177
177
|
TreeSelect: {
|
|
178
|
-
...
|
|
179
|
-
pill:
|
|
178
|
+
...H,
|
|
179
|
+
pill: V.pill
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
...Object.fromEntries(
|
|
183
|
-
...Object.fromEntries(Object.entries(
|
|
184
|
-
defaultProps:
|
|
181
|
+
}, Cn = {
|
|
182
|
+
...Object.fromEntries(xn.map((e) => [e, { defaultProps: { size: "md" } }])),
|
|
183
|
+
...Object.fromEntries(Object.entries(Sn).map(([e, t]) => [e, {
|
|
184
|
+
defaultProps: xn.includes(e) ? { size: "md" } : {},
|
|
185
185
|
classNames: t
|
|
186
186
|
}])),
|
|
187
|
-
Cascader:
|
|
187
|
+
Cascader: ye.extend({
|
|
188
188
|
defaultProps: { size: "md" },
|
|
189
189
|
classNames: {
|
|
190
|
-
...
|
|
191
|
-
column:
|
|
192
|
-
columnOption:
|
|
193
|
-
flatOption:
|
|
194
|
-
columnsOverflow:
|
|
190
|
+
...H,
|
|
191
|
+
column: V.cascaderColumn,
|
|
192
|
+
columnOption: V.cascaderOption,
|
|
193
|
+
flatOption: V.option,
|
|
194
|
+
columnsOverflow: V.cascaderOverflow
|
|
195
195
|
}
|
|
196
196
|
}),
|
|
197
|
-
Pill:
|
|
198
|
-
root:
|
|
199
|
-
remove:
|
|
197
|
+
Pill: it.extend({ classNames: {
|
|
198
|
+
root: V.pill,
|
|
199
|
+
remove: V.pillRemove
|
|
200
200
|
} })
|
|
201
|
-
},
|
|
201
|
+
}, U = {
|
|
202
202
|
badge: "jc-dataDisplay-badge-y32oj",
|
|
203
203
|
accordionItem: "jc-dataDisplay-accordionItem-1ojd4",
|
|
204
204
|
accordionControl: "jc-dataDisplay-accordionControl-1pgyb",
|
|
@@ -216,15 +216,15 @@ var pn = {
|
|
|
216
216
|
timelineItem: "jc-dataDisplay-timelineItem-1xxlx",
|
|
217
217
|
timelineBullet: "jc-dataDisplay-timelineBullet-7n3af",
|
|
218
218
|
timelineTitle: "jc-dataDisplay-timelineTitle-116d2"
|
|
219
|
-
},
|
|
219
|
+
}, wn = {
|
|
220
220
|
Accordion: ie.extend({
|
|
221
221
|
defaultProps: { chevronPosition: "right" },
|
|
222
222
|
classNames: {
|
|
223
|
-
item:
|
|
224
|
-
control:
|
|
225
|
-
label:
|
|
226
|
-
chevron:
|
|
227
|
-
content:
|
|
223
|
+
item: U.accordionItem,
|
|
224
|
+
control: U.accordionControl,
|
|
225
|
+
label: U.accordionLabel,
|
|
226
|
+
chevron: U.accordionChevron,
|
|
227
|
+
content: U.accordionContent
|
|
228
228
|
}
|
|
229
229
|
}),
|
|
230
230
|
Avatar: fe.extend({
|
|
@@ -232,7 +232,7 @@ var pn = {
|
|
|
232
232
|
color: "horizon",
|
|
233
233
|
radius: "xl"
|
|
234
234
|
},
|
|
235
|
-
classNames: { root:
|
|
235
|
+
classNames: { root: U.avatar }
|
|
236
236
|
}),
|
|
237
237
|
BackgroundImage: pe.extend({ defaultProps: { radius: "md" } }),
|
|
238
238
|
Badge: me.extend({
|
|
@@ -240,53 +240,53 @@ var pn = {
|
|
|
240
240
|
variant: "light",
|
|
241
241
|
radius: "xl"
|
|
242
242
|
},
|
|
243
|
-
classNames: { root:
|
|
243
|
+
classNames: { root: U.badge },
|
|
244
244
|
vars: (e, t) => (t.size ?? "md") === "md" ? { root: {
|
|
245
245
|
"--badge-height": "24px",
|
|
246
246
|
"--badge-fz": "12px",
|
|
247
247
|
"--badge-padding-x": "8px"
|
|
248
248
|
} } : { root: {} }
|
|
249
249
|
}),
|
|
250
|
-
Card:
|
|
250
|
+
Card: ve.extend({ defaultProps: {
|
|
251
251
|
radius: "md",
|
|
252
252
|
padding: "lg",
|
|
253
253
|
shadow: "sm",
|
|
254
254
|
withBorder: !0
|
|
255
255
|
} }),
|
|
256
|
-
DataList:
|
|
257
|
-
root:
|
|
258
|
-
itemLabel:
|
|
259
|
-
itemValue:
|
|
256
|
+
DataList: ke.extend({ classNames: {
|
|
257
|
+
root: U.dataList,
|
|
258
|
+
itemLabel: U.dataListLabel,
|
|
259
|
+
itemValue: U.dataListValue
|
|
260
260
|
} }),
|
|
261
|
-
Image:
|
|
262
|
-
Indicator:
|
|
261
|
+
Image: Re.extend({ defaultProps: { radius: "md" } }),
|
|
262
|
+
Indicator: ze.extend({
|
|
263
263
|
defaultProps: { color: "danger" },
|
|
264
|
-
classNames: { indicator:
|
|
264
|
+
classNames: { indicator: U.indicator }
|
|
265
265
|
}),
|
|
266
|
-
Kbd:
|
|
267
|
-
NumberFormatter:
|
|
266
|
+
Kbd: He.extend({ classNames: { root: U.kbd } }),
|
|
267
|
+
NumberFormatter: et.extend({ defaultProps: {
|
|
268
268
|
thousandSeparator: ".",
|
|
269
269
|
decimalSeparator: ","
|
|
270
270
|
} }),
|
|
271
|
-
RollingNumber:
|
|
271
|
+
RollingNumber: mt.extend({ defaultProps: {
|
|
272
272
|
thousandSeparator: ".",
|
|
273
273
|
decimalSeparator: ","
|
|
274
274
|
} }),
|
|
275
|
-
Spoiler:
|
|
276
|
-
ThemeIcon:
|
|
277
|
-
Timeline:
|
|
275
|
+
Spoiler: St.extend({ classNames: { control: U.spoilerControl } }),
|
|
276
|
+
ThemeIcon: Dt.extend({ defaultProps: { radius: "md" } }),
|
|
277
|
+
Timeline: Ot.extend({
|
|
278
278
|
defaultProps: {
|
|
279
279
|
bulletSize: 24,
|
|
280
280
|
lineWidth: 2
|
|
281
281
|
},
|
|
282
282
|
classNames: {
|
|
283
|
-
root:
|
|
284
|
-
item:
|
|
285
|
-
itemBullet:
|
|
286
|
-
itemTitle:
|
|
283
|
+
root: U.timeline,
|
|
284
|
+
item: U.timelineItem,
|
|
285
|
+
itemBullet: U.timelineBullet,
|
|
286
|
+
itemTitle: U.timelineTitle
|
|
287
287
|
}
|
|
288
288
|
})
|
|
289
|
-
},
|
|
289
|
+
}, W = {
|
|
290
290
|
alert: "jc-feedback-alert-n3tf0",
|
|
291
291
|
alertTitle: "jc-feedback-alertTitle-1z68r",
|
|
292
292
|
alertMessage: "jc-feedback-alertMessage-jigev",
|
|
@@ -305,46 +305,46 @@ var pn = {
|
|
|
305
305
|
emptyState: "jc-feedback-emptyState-nq4vc",
|
|
306
306
|
emptyTitle: "jc-feedback-emptyTitle-nqi0z",
|
|
307
307
|
emptyDescription: "jc-feedback-emptyDescription-1jfzf"
|
|
308
|
-
},
|
|
309
|
-
Notification:
|
|
308
|
+
}, Tn = {
|
|
309
|
+
Notification: $e.extend({
|
|
310
310
|
defaultProps: { radius: "md" },
|
|
311
311
|
classNames: {
|
|
312
|
-
root:
|
|
313
|
-
title:
|
|
314
|
-
description:
|
|
315
|
-
icon:
|
|
312
|
+
root: W.notification,
|
|
313
|
+
title: W.notificationTitle,
|
|
314
|
+
description: W.notificationDescription,
|
|
315
|
+
icon: W.notificationIcon
|
|
316
316
|
}
|
|
317
317
|
}),
|
|
318
318
|
Alert: se.extend({
|
|
319
319
|
defaultProps: { variant: "light" },
|
|
320
320
|
classNames: {
|
|
321
|
-
root:
|
|
322
|
-
wrapper:
|
|
323
|
-
title:
|
|
324
|
-
message:
|
|
321
|
+
root: W.alert,
|
|
322
|
+
wrapper: W.alertWrapper,
|
|
323
|
+
title: W.alertTitle,
|
|
324
|
+
message: W.alertMessage
|
|
325
325
|
}
|
|
326
326
|
}),
|
|
327
|
-
Loader:
|
|
328
|
-
Progress:
|
|
327
|
+
Loader: We.extend({ defaultProps: { type: "oval" } }),
|
|
328
|
+
Progress: st.extend({
|
|
329
329
|
defaultProps: { radius: "xl" },
|
|
330
330
|
classNames: {
|
|
331
|
-
root:
|
|
332
|
-
label:
|
|
331
|
+
root: W.progress,
|
|
332
|
+
label: W.progressLabel
|
|
333
333
|
}
|
|
334
334
|
}),
|
|
335
|
-
RingProgress:
|
|
336
|
-
SemiCircleProgress:
|
|
337
|
-
root:
|
|
338
|
-
label:
|
|
335
|
+
RingProgress: pt.extend({ classNames: { curve: W.ringCurve } }),
|
|
336
|
+
SemiCircleProgress: _t.extend({ classNames: {
|
|
337
|
+
root: W.semiCircle,
|
|
338
|
+
label: W.semiCircleLabel
|
|
339
339
|
} }),
|
|
340
|
-
Skeleton:
|
|
341
|
-
EmptyState:
|
|
342
|
-
root:
|
|
343
|
-
indicator:
|
|
344
|
-
title:
|
|
345
|
-
description:
|
|
340
|
+
Skeleton: yt.extend({ classNames: { root: W.skeleton } }),
|
|
341
|
+
EmptyState: Ne.extend({ classNames: {
|
|
342
|
+
root: W.emptyState,
|
|
343
|
+
indicator: W.emptyIndicator,
|
|
344
|
+
title: W.emptyTitle,
|
|
345
|
+
description: W.emptyDescription
|
|
346
346
|
} })
|
|
347
|
-
},
|
|
347
|
+
}, G = {
|
|
348
348
|
input: "jc-inputs-input-14fe0",
|
|
349
349
|
label: "jc-inputs-label-14gss",
|
|
350
350
|
description: "jc-inputs-description-h3o5l",
|
|
@@ -374,7 +374,7 @@ var pn = {
|
|
|
374
374
|
colorThumb: "jc-inputs-colorThumb-1u5u0",
|
|
375
375
|
colorSaturation: "jc-inputs-colorSaturation-wvgu3",
|
|
376
376
|
colorSwatch: "jc-inputs-colorSwatch-1pwjt"
|
|
377
|
-
},
|
|
377
|
+
}, En = Object.fromEntries([
|
|
378
378
|
"InputBase",
|
|
379
379
|
"TextInput",
|
|
380
380
|
"PasswordInput",
|
|
@@ -384,64 +384,64 @@ var pn = {
|
|
|
384
384
|
"ColorInput",
|
|
385
385
|
"FileInput",
|
|
386
386
|
"MaskInput"
|
|
387
|
-
].map((e) => [e, { defaultProps: { size: "md" } }])),
|
|
388
|
-
slider:
|
|
389
|
-
sliderOverlay:
|
|
390
|
-
thumb:
|
|
391
|
-
}, Dn = {
|
|
392
|
-
root: W.sliderRoot,
|
|
393
|
-
thumb: W.sliderThumb,
|
|
394
|
-
label: W.sliderLabel,
|
|
395
|
-
markLabel: W.sliderMarkLabel
|
|
387
|
+
].map((e) => [e, { defaultProps: { size: "md" } }])), Dn = {
|
|
388
|
+
slider: G.colorSlider,
|
|
389
|
+
sliderOverlay: G.colorSliderOverlay,
|
|
390
|
+
thumb: G.colorThumb
|
|
396
391
|
}, On = {
|
|
397
|
-
|
|
398
|
-
|
|
392
|
+
root: G.sliderRoot,
|
|
393
|
+
thumb: G.sliderThumb,
|
|
394
|
+
label: G.sliderLabel,
|
|
395
|
+
markLabel: G.sliderMarkLabel
|
|
396
|
+
}, kn = {
|
|
397
|
+
...En,
|
|
398
|
+
Input: Be.extend({
|
|
399
399
|
defaultProps: { size: "md" },
|
|
400
|
-
classNames: { input:
|
|
400
|
+
classNames: { input: G.input },
|
|
401
401
|
vars: (e, t) => {
|
|
402
402
|
let n = t.size ?? "md";
|
|
403
|
-
return
|
|
404
|
-
"--input-height":
|
|
405
|
-
"--input-fz":
|
|
403
|
+
return gn(n) ? { wrapper: {
|
|
404
|
+
"--input-height": _n[n].height,
|
|
405
|
+
"--input-fz": _n[n].inputFz
|
|
406
406
|
} } : { wrapper: {} };
|
|
407
407
|
}
|
|
408
408
|
}),
|
|
409
|
-
InputWrapper:
|
|
410
|
-
label:
|
|
411
|
-
description:
|
|
409
|
+
InputWrapper: Ve.extend({ classNames: {
|
|
410
|
+
label: G.label,
|
|
411
|
+
description: G.description
|
|
412
412
|
} }),
|
|
413
|
-
NativeSelect:
|
|
413
|
+
NativeSelect: Ze.extend({
|
|
414
414
|
defaultProps: { size: "md" },
|
|
415
415
|
classNames: {
|
|
416
|
-
input:
|
|
417
|
-
section:
|
|
416
|
+
input: G.nativeSelect,
|
|
417
|
+
section: G.nativeSelectSection
|
|
418
418
|
}
|
|
419
419
|
}),
|
|
420
|
-
Checkbox:
|
|
420
|
+
Checkbox: be.extend({
|
|
421
421
|
defaultProps: { radius: "xs" },
|
|
422
|
-
classNames: { input:
|
|
422
|
+
classNames: { input: G.checkInput }
|
|
423
423
|
}),
|
|
424
|
-
CheckboxIndicator:
|
|
424
|
+
CheckboxIndicator: Se.extend({
|
|
425
425
|
defaultProps: { radius: "xs" },
|
|
426
|
-
classNames: { indicator:
|
|
426
|
+
classNames: { indicator: G.checkInput }
|
|
427
427
|
}),
|
|
428
|
-
CheckboxCard:
|
|
428
|
+
CheckboxCard: xe.extend({
|
|
429
429
|
defaultProps: { radius: "md" },
|
|
430
|
-
classNames: { card:
|
|
430
|
+
classNames: { card: G.selectCard }
|
|
431
431
|
}),
|
|
432
|
-
Radio:
|
|
433
|
-
RadioIndicator:
|
|
434
|
-
RadioCard:
|
|
432
|
+
Radio: ct.extend({ classNames: { radio: G.checkInput } }),
|
|
433
|
+
RadioIndicator: ut.extend({ classNames: { indicator: G.checkInput } }),
|
|
434
|
+
RadioCard: lt.extend({
|
|
435
435
|
defaultProps: { radius: "md" },
|
|
436
|
-
classNames: { card:
|
|
436
|
+
classNames: { card: G.selectCard }
|
|
437
437
|
}),
|
|
438
|
-
Switch:
|
|
438
|
+
Switch: wt.extend({
|
|
439
439
|
defaultProps: { radius: "xl" },
|
|
440
|
-
classNames: { track:
|
|
440
|
+
classNames: { track: G.switchTrack }
|
|
441
441
|
}),
|
|
442
|
-
Chip:
|
|
442
|
+
Chip: Ce.extend({
|
|
443
443
|
defaultProps: { variant: "outline" },
|
|
444
|
-
classNames: { label:
|
|
444
|
+
classNames: { label: G.chipLabel },
|
|
445
445
|
vars: (e, t) => {
|
|
446
446
|
if (t.variant !== "outline") return { root: {} };
|
|
447
447
|
let n = e.variantColorResolver({
|
|
@@ -455,52 +455,52 @@ var pn = {
|
|
|
455
455
|
} };
|
|
456
456
|
}
|
|
457
457
|
}),
|
|
458
|
-
SegmentedControl:
|
|
458
|
+
SegmentedControl: gt.extend({
|
|
459
459
|
defaultProps: { radius: "sm" },
|
|
460
460
|
classNames: {
|
|
461
|
-
root:
|
|
462
|
-
indicator:
|
|
463
|
-
label:
|
|
461
|
+
root: G.segmentedRoot,
|
|
462
|
+
indicator: G.segmentedIndicator,
|
|
463
|
+
label: G.segmentedLabel
|
|
464
464
|
}
|
|
465
465
|
}),
|
|
466
|
-
Fieldset:
|
|
466
|
+
Fieldset: Pe.extend({
|
|
467
467
|
defaultProps: { radius: "md" },
|
|
468
468
|
classNames: {
|
|
469
|
-
root:
|
|
470
|
-
legend:
|
|
469
|
+
root: G.fieldset,
|
|
470
|
+
legend: G.fieldsetLegend
|
|
471
471
|
}
|
|
472
472
|
}),
|
|
473
|
-
PinInput:
|
|
473
|
+
PinInput: at.extend({
|
|
474
474
|
defaultProps: { size: "md" },
|
|
475
|
-
classNames: { input:
|
|
475
|
+
classNames: { input: G.pinInput },
|
|
476
476
|
vars: (e, t) => {
|
|
477
477
|
let n = t.size ?? "md";
|
|
478
|
-
return { root:
|
|
478
|
+
return { root: gn(n) ? { "--pin-input-size": _n[n].height } : {} };
|
|
479
479
|
}
|
|
480
480
|
}),
|
|
481
|
-
Slider:
|
|
482
|
-
RangeSlider:
|
|
481
|
+
Slider: bt.extend({ classNames: On }),
|
|
482
|
+
RangeSlider: dt.extend({ classNames: On }),
|
|
483
483
|
AngleSlider: ue.extend({ classNames: {
|
|
484
|
-
root:
|
|
485
|
-
thumb:
|
|
486
|
-
label:
|
|
484
|
+
root: G.angleRoot,
|
|
485
|
+
thumb: G.angleThumb,
|
|
486
|
+
label: G.angleLabel
|
|
487
487
|
} }),
|
|
488
|
-
Rating:
|
|
488
|
+
Rating: ft.extend({
|
|
489
489
|
defaultProps: { color: "electric.4" },
|
|
490
490
|
classNames: {
|
|
491
|
-
root:
|
|
492
|
-
starSymbol:
|
|
491
|
+
root: G.rating,
|
|
492
|
+
starSymbol: G.ratingStar
|
|
493
493
|
},
|
|
494
494
|
vars: (e, t) => ({ root: t.color === "electric.4" ? { "--rating-color": "var(--jc-rating-color)" } : {} })
|
|
495
495
|
}),
|
|
496
|
-
ColorPicker:
|
|
497
|
-
...
|
|
498
|
-
saturation:
|
|
499
|
-
swatch:
|
|
496
|
+
ColorPicker: De.extend({ classNames: {
|
|
497
|
+
...Dn,
|
|
498
|
+
saturation: G.colorSaturation,
|
|
499
|
+
swatch: G.colorSwatch
|
|
500
500
|
} }),
|
|
501
|
-
AlphaSlider: ce.extend({ classNames:
|
|
502
|
-
HueSlider:
|
|
503
|
-
},
|
|
501
|
+
AlphaSlider: ce.extend({ classNames: Dn }),
|
|
502
|
+
HueSlider: Le.extend({ classNames: Dn })
|
|
503
|
+
}, K = {
|
|
504
504
|
appShellMain: "jc-layout-appShellMain-wfqf1",
|
|
505
505
|
appShellNavbar: "jc-layout-appShellNavbar-1oy4v",
|
|
506
506
|
appShellAside: "jc-layout-appShellAside-axw4o",
|
|
@@ -510,34 +510,34 @@ var pn = {
|
|
|
510
510
|
splitter: "jc-layout-splitter-hn4up",
|
|
511
511
|
splitterHandle: "jc-layout-splitterHandle-1st37",
|
|
512
512
|
splitterThumb: "jc-layout-splitterThumb-g0wug"
|
|
513
|
-
},
|
|
513
|
+
}, An = {
|
|
514
514
|
AppShell: de.extend({ classNames: {
|
|
515
|
-
main:
|
|
516
|
-
navbar:
|
|
517
|
-
aside:
|
|
518
|
-
header:
|
|
519
|
-
footer:
|
|
515
|
+
main: K.appShellMain,
|
|
516
|
+
navbar: K.appShellNavbar,
|
|
517
|
+
aside: K.appShellAside,
|
|
518
|
+
header: K.appShellHeader,
|
|
519
|
+
footer: K.appShellFooter
|
|
520
520
|
} }),
|
|
521
|
-
Container:
|
|
522
|
-
Splitter:
|
|
523
|
-
root:
|
|
524
|
-
handle:
|
|
525
|
-
thumb:
|
|
521
|
+
Container: Oe.extend({ classNames: { root: K.container } }),
|
|
522
|
+
Splitter: xt.extend({ classNames: {
|
|
523
|
+
root: K.splitter,
|
|
524
|
+
handle: K.splitterHandle,
|
|
525
|
+
thumb: K.splitterThumb
|
|
526
526
|
} })
|
|
527
|
-
},
|
|
527
|
+
}, jn = {
|
|
528
528
|
paper: "jc-misc-paper-9jp7c",
|
|
529
529
|
divider: "jc-misc-divider-1gqkk",
|
|
530
530
|
scrollbar: "jc-misc-scrollbar-1xic9",
|
|
531
531
|
scrollThumb: "jc-misc-scrollThumb-tc27a"
|
|
532
|
-
},
|
|
533
|
-
Paper:
|
|
532
|
+
}, Mn = {
|
|
533
|
+
Paper: rt.extend({
|
|
534
534
|
defaultProps: { radius: "md" },
|
|
535
|
-
classNames: { root:
|
|
535
|
+
classNames: { root: jn.paper }
|
|
536
536
|
}),
|
|
537
|
-
Divider:
|
|
538
|
-
ScrollArea:
|
|
539
|
-
scrollbar:
|
|
540
|
-
thumb:
|
|
537
|
+
Divider: je.extend({ classNames: { root: jn.divider } }),
|
|
538
|
+
ScrollArea: ht.extend({ classNames: {
|
|
539
|
+
scrollbar: jn.scrollbar,
|
|
540
|
+
thumb: jn.scrollThumb
|
|
541
541
|
} })
|
|
542
542
|
}, q = {
|
|
543
543
|
tabs: "jc-navigation-tabs-lccrk",
|
|
@@ -554,30 +554,30 @@ var pn = {
|
|
|
554
554
|
tocControl: "jc-navigation-tocControl-10p5o",
|
|
555
555
|
tree: "jc-navigation-tree-lcd48",
|
|
556
556
|
treeLabel: "jc-navigation-treeLabel-1gd9n"
|
|
557
|
-
},
|
|
558
|
-
Tabs:
|
|
557
|
+
}, Nn = {
|
|
558
|
+
Tabs: Et.extend({ classNames: {
|
|
559
559
|
root: q.tabs,
|
|
560
560
|
tab: q.tab
|
|
561
561
|
} }),
|
|
562
562
|
Anchor: le.extend({ classNames: { root: q.anchor } }),
|
|
563
563
|
Burger: _e.extend({ classNames: { root: q.burger } }),
|
|
564
|
-
NavLink:
|
|
564
|
+
NavLink: Qe.extend({
|
|
565
565
|
defaultProps: { variant: "light" },
|
|
566
566
|
classNames: { root: q.navLink }
|
|
567
567
|
}),
|
|
568
|
-
Pagination:
|
|
568
|
+
Pagination: nt.extend({
|
|
569
569
|
defaultProps: { radius: "sm" },
|
|
570
570
|
classNames: { control: q.paginationControl }
|
|
571
571
|
}),
|
|
572
|
-
Stepper:
|
|
572
|
+
Stepper: Ct.extend({ classNames: {
|
|
573
573
|
root: q.stepper,
|
|
574
574
|
stepIcon: q.stepIcon,
|
|
575
575
|
stepCompletedIcon: q.stepCompletedIcon,
|
|
576
576
|
stepLabel: q.stepLabel,
|
|
577
577
|
stepDescription: q.stepDescription
|
|
578
578
|
} }),
|
|
579
|
-
TableOfContents:
|
|
580
|
-
Tree:
|
|
579
|
+
TableOfContents: Tt.extend({ classNames: { control: q.tocControl } }),
|
|
580
|
+
Tree: jt.extend({ classNames: {
|
|
581
581
|
root: q.tree,
|
|
582
582
|
label: q.treeLabel
|
|
583
583
|
} })
|
|
@@ -594,50 +594,50 @@ var pn = {
|
|
|
594
594
|
modalHeader: "jc-overlays-modalHeader-vfr4o",
|
|
595
595
|
modalTitle: "jc-overlays-modalTitle-11uzk",
|
|
596
596
|
tooltip: "jc-overlays-tooltip-38e5a"
|
|
597
|
-
},
|
|
597
|
+
}, Pn = {
|
|
598
598
|
dropdown: J.dropdown,
|
|
599
599
|
item: J.menuItem,
|
|
600
600
|
label: J.menuLabel,
|
|
601
601
|
divider: J.menuDivider
|
|
602
|
-
},
|
|
603
|
-
Menu:
|
|
602
|
+
}, Fn = {
|
|
603
|
+
Menu: Je.extend({
|
|
604
604
|
defaultProps: {
|
|
605
605
|
shadow: "md",
|
|
606
606
|
radius: "sm"
|
|
607
607
|
},
|
|
608
|
-
classNames:
|
|
608
|
+
classNames: Pn
|
|
609
609
|
}),
|
|
610
|
-
Menubar:
|
|
610
|
+
Menubar: Ye.extend({ classNames: {
|
|
611
611
|
root: J.menubarRoot,
|
|
612
612
|
target: J.menubarTarget
|
|
613
613
|
} }),
|
|
614
|
-
Popover:
|
|
614
|
+
Popover: ot.extend({
|
|
615
615
|
defaultProps: {
|
|
616
616
|
shadow: "md",
|
|
617
617
|
radius: "sm"
|
|
618
618
|
},
|
|
619
619
|
classNames: { dropdown: J.dropdown }
|
|
620
620
|
}),
|
|
621
|
-
HoverCard:
|
|
621
|
+
HoverCard: Ie.extend({
|
|
622
622
|
defaultProps: {
|
|
623
623
|
shadow: "md",
|
|
624
624
|
radius: "md"
|
|
625
625
|
},
|
|
626
626
|
classNames: { dropdown: J.dropdown }
|
|
627
627
|
}),
|
|
628
|
-
Tooltip:
|
|
628
|
+
Tooltip: At.extend({
|
|
629
629
|
defaultProps: {
|
|
630
630
|
radius: "sm",
|
|
631
631
|
withArrow: !0
|
|
632
632
|
},
|
|
633
633
|
classNames: { tooltip: J.tooltip }
|
|
634
634
|
}),
|
|
635
|
-
Modal:
|
|
635
|
+
Modal: Xe.extend({
|
|
636
636
|
defaultProps: {
|
|
637
637
|
radius: "md",
|
|
638
638
|
centered: !0,
|
|
639
639
|
shadow: "lg",
|
|
640
|
-
overlayProps:
|
|
640
|
+
overlayProps: vn
|
|
641
641
|
},
|
|
642
642
|
classNames: {
|
|
643
643
|
content: J.modalContent,
|
|
@@ -645,10 +645,10 @@ var pn = {
|
|
|
645
645
|
title: J.modalTitle
|
|
646
646
|
}
|
|
647
647
|
}),
|
|
648
|
-
Drawer:
|
|
648
|
+
Drawer: Me.extend({
|
|
649
649
|
defaultProps: {
|
|
650
650
|
shadow: "lg",
|
|
651
|
-
overlayProps:
|
|
651
|
+
overlayProps: vn
|
|
652
652
|
},
|
|
653
653
|
classNames: {
|
|
654
654
|
content: J.modalContent,
|
|
@@ -656,7 +656,7 @@ var pn = {
|
|
|
656
656
|
title: J.modalTitle
|
|
657
657
|
}
|
|
658
658
|
}),
|
|
659
|
-
Dialog:
|
|
659
|
+
Dialog: Ae.extend({
|
|
660
660
|
defaultProps: {
|
|
661
661
|
radius: "md",
|
|
662
662
|
shadow: "lg"
|
|
@@ -673,7 +673,7 @@ var pn = {
|
|
|
673
673
|
divider: J.actionBarDivider
|
|
674
674
|
}
|
|
675
675
|
}),
|
|
676
|
-
FloatingWindow:
|
|
676
|
+
FloatingWindow: Fe.extend({
|
|
677
677
|
defaultProps: {
|
|
678
678
|
radius: "md",
|
|
679
679
|
shadow: "lg",
|
|
@@ -681,8 +681,8 @@ var pn = {
|
|
|
681
681
|
},
|
|
682
682
|
classNames: { root: J.floatingSurface }
|
|
683
683
|
}),
|
|
684
|
-
Overlay:
|
|
685
|
-
LoadingOverlay:
|
|
684
|
+
Overlay: tt.extend({ defaultProps: { color: l.obsidian } }),
|
|
685
|
+
LoadingOverlay: Ge.extend({ defaultProps: { overlayProps: {
|
|
686
686
|
backgroundOpacity: .75,
|
|
687
687
|
blur: 1
|
|
688
688
|
} } })
|
|
@@ -701,11 +701,11 @@ var pn = {
|
|
|
701
701
|
listItem: "jc-typography-listItem-yd73r",
|
|
702
702
|
listItemIcon: "jc-typography-listItemIcon-rsh18",
|
|
703
703
|
typography: "jc-typography-typography-1l9yf"
|
|
704
|
-
},
|
|
704
|
+
}, In = [
|
|
705
705
|
void 0,
|
|
706
706
|
"yellow",
|
|
707
707
|
"electric"
|
|
708
|
-
],
|
|
708
|
+
], Ln = {
|
|
709
709
|
Blockquote: he.extend({
|
|
710
710
|
defaultProps: {
|
|
711
711
|
iconSize: 40,
|
|
@@ -722,8 +722,8 @@ var pn = {
|
|
|
722
722
|
"--bq-bg-dark": "var(--ds-primary-soft)"
|
|
723
723
|
} } : { root: {} }
|
|
724
724
|
}),
|
|
725
|
-
Code:
|
|
726
|
-
List:
|
|
725
|
+
Code: Te.extend({ classNames: { root: Y.code } }),
|
|
726
|
+
List: Ue.extend({
|
|
727
727
|
defaultProps: { spacing: "xs" },
|
|
728
728
|
classNames: {
|
|
729
729
|
root: Y.list,
|
|
@@ -731,17 +731,17 @@ var pn = {
|
|
|
731
731
|
itemIcon: Y.listItemIcon
|
|
732
732
|
}
|
|
733
733
|
}),
|
|
734
|
-
Mark:
|
|
734
|
+
Mark: qe.extend({
|
|
735
735
|
classNames: { root: Y.mark },
|
|
736
736
|
vars: (e, t) => {
|
|
737
|
-
let n =
|
|
737
|
+
let n = In.includes(t.color), r = n ? "electric" : t.color;
|
|
738
738
|
return { root: {
|
|
739
|
-
"--mark-bg-light":
|
|
740
|
-
"--mark-bg-dark": `color-mix(in srgb, ${
|
|
739
|
+
"--mark-bg-light": It(`${r}.${n ? 2 : 1}`, e),
|
|
740
|
+
"--mark-bg-dark": `color-mix(in srgb, ${It(`${r}.${n ? 3 : 4}`, e)} 32%, transparent)`
|
|
741
741
|
} };
|
|
742
742
|
}
|
|
743
743
|
}),
|
|
744
|
-
Table:
|
|
744
|
+
Table: N.extend({
|
|
745
745
|
defaultProps: {
|
|
746
746
|
highlightOnHover: !0,
|
|
747
747
|
verticalSpacing: "sm",
|
|
@@ -754,20 +754,20 @@ var pn = {
|
|
|
754
754
|
tr: Y.tr
|
|
755
755
|
}
|
|
756
756
|
}),
|
|
757
|
-
Title:
|
|
758
|
-
Typography:
|
|
759
|
-
},
|
|
757
|
+
Title: kt.extend({ classNames: { root: Y.title } }),
|
|
758
|
+
Typography: Mt.extend({ classNames: { root: Y.typography } })
|
|
759
|
+
}, Rn = {
|
|
760
|
+
...An,
|
|
760
761
|
...kn,
|
|
761
|
-
...On,
|
|
762
|
-
...Sn,
|
|
763
|
-
...yn,
|
|
764
|
-
...jn,
|
|
765
|
-
...wn,
|
|
766
|
-
...Nn,
|
|
767
762
|
...Cn,
|
|
763
|
+
...bn,
|
|
764
|
+
...Nn,
|
|
765
|
+
...Tn,
|
|
768
766
|
...Fn,
|
|
769
|
-
...
|
|
770
|
-
|
|
767
|
+
...wn,
|
|
768
|
+
...Ln,
|
|
769
|
+
...Mn
|
|
770
|
+
}, X = o, zn = Nt({
|
|
771
771
|
colors: d,
|
|
772
772
|
primaryColor: "horizon",
|
|
773
773
|
primaryShade: {
|
|
@@ -778,7 +778,7 @@ var pn = {
|
|
|
778
778
|
luminanceThreshold: .3,
|
|
779
779
|
white: "#FFFFFF",
|
|
780
780
|
black: "#1F2228",
|
|
781
|
-
variantColorResolver:
|
|
781
|
+
variantColorResolver: hn,
|
|
782
782
|
fontFamily: a,
|
|
783
783
|
fontFamilyMonospace: "ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace",
|
|
784
784
|
headings: {
|
|
@@ -874,9 +874,9 @@ var pn = {
|
|
|
874
874
|
typography: o,
|
|
875
875
|
chartPalette: s
|
|
876
876
|
},
|
|
877
|
-
components:
|
|
878
|
-
}),
|
|
879
|
-
function
|
|
877
|
+
components: Rn
|
|
878
|
+
}), Bn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
879
|
+
function Vn(t) {
|
|
880
880
|
return {
|
|
881
881
|
"--ds-bg": t.bg,
|
|
882
882
|
"--ds-surface": t.surface,
|
|
@@ -908,7 +908,7 @@ function zn(t) {
|
|
|
908
908
|
"--mantine-color-success": e.success
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Hn() {
|
|
912
912
|
let e = {
|
|
913
913
|
"--font-body": "'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
914
914
|
"--ds-radius": "12px",
|
|
@@ -925,12 +925,12 @@ function Bn() {
|
|
|
925
925
|
e[`--dc-${t}-${n}`] = r;
|
|
926
926
|
});
|
|
927
927
|
}), Object.entries(o).forEach(([t, n]) => {
|
|
928
|
-
e[`--type-${
|
|
928
|
+
e[`--type-${Bn(t)}`] = n.size;
|
|
929
929
|
}), Object.entries(t).forEach(([t, n]) => {
|
|
930
930
|
e[`--sp-${t}`] = n;
|
|
931
931
|
}), e;
|
|
932
932
|
}
|
|
933
|
-
var
|
|
933
|
+
var Un = {
|
|
934
934
|
light: {
|
|
935
935
|
"--ds-tag-primary-bg": r.horizon[50],
|
|
936
936
|
"--ds-tag-primary-hover": r.horizon[100],
|
|
@@ -965,7 +965,7 @@ var Vn = {
|
|
|
965
965
|
"--ds-tag-neutral-hover": u.dark.border,
|
|
966
966
|
"--ds-tag-neutral-color": u.dark.text2
|
|
967
967
|
}
|
|
968
|
-
},
|
|
968
|
+
}, Wn = Object.fromEntries(Object.entries({
|
|
969
969
|
horizon: "primary",
|
|
970
970
|
blue: "primary",
|
|
971
971
|
evergreen: "success",
|
|
@@ -983,13 +983,13 @@ var Vn = {
|
|
|
983
983
|
[`--mantine-color-${e}-light`, `var(--ds-tag-${t}-bg)`],
|
|
984
984
|
[`--mantine-color-${e}-light-hover`, `var(--ds-tag-${t}-hover)`],
|
|
985
985
|
[`--mantine-color-${e}-light-color`, `var(--ds-tag-${t}-color)`]
|
|
986
|
-
])),
|
|
987
|
-
variables:
|
|
986
|
+
])), Gn = (e) => Object.fromEntries(e.map((e, t) => [`--jc-chart-${t + 1}`, e])), Kn = () => ({
|
|
987
|
+
variables: Hn(),
|
|
988
988
|
light: {
|
|
989
|
-
...
|
|
990
|
-
...
|
|
991
|
-
...
|
|
992
|
-
...
|
|
989
|
+
...Vn(u.light),
|
|
990
|
+
...Un.light,
|
|
991
|
+
...Gn(i.light),
|
|
992
|
+
...Wn,
|
|
993
993
|
"--ds-success": e.success,
|
|
994
994
|
"--ds-warn": e.warn,
|
|
995
995
|
"--ds-error": e.error,
|
|
@@ -1003,10 +1003,10 @@ var Vn = {
|
|
|
1003
1003
|
"--jc-art-paper": "#FFFFFF"
|
|
1004
1004
|
},
|
|
1005
1005
|
dark: {
|
|
1006
|
-
...
|
|
1007
|
-
...
|
|
1008
|
-
...
|
|
1009
|
-
...
|
|
1006
|
+
...Vn(u.dark),
|
|
1007
|
+
...Un.dark,
|
|
1008
|
+
...Gn(i.dark),
|
|
1009
|
+
...Wn,
|
|
1010
1010
|
"--ds-success": r.evergreen[400],
|
|
1011
1011
|
"--ds-warn": r.electric[300],
|
|
1012
1012
|
"--ds-error": r.danger[400],
|
|
@@ -1024,38 +1024,38 @@ var Vn = {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
//#endregion
|
|
1026
1026
|
//#region src/provider/JcProvider.tsx
|
|
1027
|
-
function
|
|
1028
|
-
let a = e ?
|
|
1029
|
-
return /* @__PURE__ */
|
|
1027
|
+
function qn({ theme: e, defaultColorScheme: t = "light", cssVariablesResolver: n, children: r, ...i }) {
|
|
1028
|
+
let a = e ? Rt(zn, e) : zn;
|
|
1029
|
+
return /* @__PURE__ */ z(Ke, {
|
|
1030
1030
|
theme: a,
|
|
1031
1031
|
defaultColorScheme: t,
|
|
1032
|
-
cssVariablesResolver: n ??
|
|
1032
|
+
cssVariablesResolver: n ?? Kn,
|
|
1033
1033
|
...i,
|
|
1034
1034
|
children: r
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
-
|
|
1037
|
+
qn.displayName = "@jcdecor/ui/JcProvider";
|
|
1038
1038
|
//#endregion
|
|
1039
1039
|
//#region src/components/Tag/Tag.tsx
|
|
1040
|
-
var
|
|
1040
|
+
var Jn = {
|
|
1041
1041
|
primary: "horizon",
|
|
1042
1042
|
success: "evergreen",
|
|
1043
1043
|
warn: "electric",
|
|
1044
1044
|
error: "danger",
|
|
1045
1045
|
neutral: "obsidian"
|
|
1046
|
-
},
|
|
1047
|
-
primary:
|
|
1048
|
-
success:
|
|
1049
|
-
warn:
|
|
1050
|
-
error:
|
|
1046
|
+
}, Yn = {
|
|
1047
|
+
primary: tn,
|
|
1048
|
+
success: Xt,
|
|
1049
|
+
warn: Wt,
|
|
1050
|
+
error: cn,
|
|
1051
1051
|
neutral: null
|
|
1052
1052
|
};
|
|
1053
|
-
function
|
|
1054
|
-
let a =
|
|
1055
|
-
return /* @__PURE__ */
|
|
1056
|
-
color:
|
|
1053
|
+
function Xn({ tone: e = "primary", withIcon: t = !1, variant: n = "light", leftSection: r, ...i }) {
|
|
1054
|
+
let a = Yn[e];
|
|
1055
|
+
return /* @__PURE__ */ z(me, {
|
|
1056
|
+
color: Jn[e],
|
|
1057
1057
|
variant: n,
|
|
1058
|
-
leftSection: r ?? (t && a ? /* @__PURE__ */
|
|
1058
|
+
leftSection: r ?? (t && a ? /* @__PURE__ */ z(a, {
|
|
1059
1059
|
size: 12,
|
|
1060
1060
|
stroke: 2.5
|
|
1061
1061
|
}) : void 0),
|
|
@@ -1063,13 +1063,13 @@ function Jn({ tone: e = "primary", withIcon: t = !1, variant: n = "light", leftS
|
|
|
1063
1063
|
...i
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
|
-
|
|
1067
|
-
var
|
|
1066
|
+
Xn.displayName = "@jcdecor/ui/Tag";
|
|
1067
|
+
var Zn = {
|
|
1068
1068
|
root: "jc-PromoBanner-root-343s0",
|
|
1069
1069
|
highlight: "jc-PromoBanner-highlight-19zvz",
|
|
1070
1070
|
content: "jc-PromoBanner-content-1vja6",
|
|
1071
1071
|
close: "jc-PromoBanner-close-p9u8f"
|
|
1072
|
-
},
|
|
1072
|
+
}, Qn = {
|
|
1073
1073
|
horizon: {
|
|
1074
1074
|
bg: "var(--dc-horizon-700)",
|
|
1075
1075
|
color: "#fff",
|
|
@@ -1085,15 +1085,15 @@ var Yn = {
|
|
|
1085
1085
|
color: "#fff",
|
|
1086
1086
|
highlight: "var(--dc-electric)"
|
|
1087
1087
|
}
|
|
1088
|
-
},
|
|
1089
|
-
"--banner-bg":
|
|
1090
|
-
"--banner-color":
|
|
1091
|
-
"--banner-highlight":
|
|
1092
|
-
"--banner-radius": n === void 0 ? void 0 :
|
|
1093
|
-
} })),
|
|
1094
|
-
let t =
|
|
1088
|
+
}, $n = Pt((e, { variant: t = "horizon", radius: n }) => ({ root: {
|
|
1089
|
+
"--banner-bg": Qn[t].bg,
|
|
1090
|
+
"--banner-color": Qn[t].color,
|
|
1091
|
+
"--banner-highlight": Qn[t].highlight,
|
|
1092
|
+
"--banner-radius": n === void 0 ? void 0 : Ft(n)
|
|
1093
|
+
} })), er = I((e) => {
|
|
1094
|
+
let t = L("PromoBanner", { variant: "horizon" }, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, variant: l, highlight: u, icon: d, withCloseButton: f, opened: p, onClose: m, radius: h, children: g, ..._ } = t, [v, y] = dn(!0), b = p ?? v, x = R({
|
|
1095
1095
|
name: "PromoBanner",
|
|
1096
|
-
classes:
|
|
1096
|
+
classes: Zn,
|
|
1097
1097
|
props: t,
|
|
1098
1098
|
className: r,
|
|
1099
1099
|
style: i,
|
|
@@ -1102,9 +1102,9 @@ var Yn = {
|
|
|
1102
1102
|
unstyled: o,
|
|
1103
1103
|
attributes: c,
|
|
1104
1104
|
vars: s,
|
|
1105
|
-
varsResolver:
|
|
1105
|
+
varsResolver: $n
|
|
1106
1106
|
});
|
|
1107
|
-
return b ? /* @__PURE__ */
|
|
1107
|
+
return b ? /* @__PURE__ */ B(A, {
|
|
1108
1108
|
role: "note",
|
|
1109
1109
|
...x("root"),
|
|
1110
1110
|
variant: l,
|
|
@@ -1113,17 +1113,17 @@ var Yn = {
|
|
|
1113
1113
|
closable: f
|
|
1114
1114
|
},
|
|
1115
1115
|
..._,
|
|
1116
|
-
children: [/* @__PURE__ */
|
|
1116
|
+
children: [/* @__PURE__ */ B("span", {
|
|
1117
1117
|
...x("content"),
|
|
1118
1118
|
children: [
|
|
1119
1119
|
d,
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
u && /* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ z("span", { children: g }),
|
|
1121
|
+
u && /* @__PURE__ */ z("strong", {
|
|
1122
1122
|
...x("highlight"),
|
|
1123
1123
|
children: u
|
|
1124
1124
|
})
|
|
1125
1125
|
]
|
|
1126
|
-
}), f && /* @__PURE__ */
|
|
1126
|
+
}), f && /* @__PURE__ */ z(we, {
|
|
1127
1127
|
"aria-label": "Fechar",
|
|
1128
1128
|
size: "sm",
|
|
1129
1129
|
variant: "transparent",
|
|
@@ -1134,18 +1134,18 @@ var Yn = {
|
|
|
1134
1134
|
})]
|
|
1135
1135
|
}) : null;
|
|
1136
1136
|
});
|
|
1137
|
-
|
|
1138
|
-
var
|
|
1137
|
+
er.classes = Zn, er.varsResolver = $n, er.displayName = "@jcdecor/ui/PromoBanner";
|
|
1138
|
+
var tr = {
|
|
1139
1139
|
root: "jc-ContentCard-root-1dhn3",
|
|
1140
1140
|
image: "jc-ContentCard-image-16ej1",
|
|
1141
1141
|
kicker: "jc-ContentCard-kicker-10uay",
|
|
1142
1142
|
title: "jc-ContentCard-title-16kim",
|
|
1143
1143
|
body: "jc-ContentCard-body-1dhcv",
|
|
1144
1144
|
actions: "jc-ContentCard-actions-1xc1y"
|
|
1145
|
-
},
|
|
1146
|
-
let t =
|
|
1145
|
+
}, nr = I((e) => {
|
|
1146
|
+
let t = L("ContentCard", { imageHeight: 180 }, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, kicker: l, title: u, image: d, imageAlt: f, imageHeight: p, actions: h, children: g, ..._ } = t, v = R({
|
|
1147
1147
|
name: "ContentCard",
|
|
1148
|
-
classes:
|
|
1148
|
+
classes: tr,
|
|
1149
1149
|
props: t,
|
|
1150
1150
|
className: r,
|
|
1151
1151
|
style: i,
|
|
@@ -1155,39 +1155,39 @@ var $n = {
|
|
|
1155
1155
|
attributes: c,
|
|
1156
1156
|
vars: s
|
|
1157
1157
|
});
|
|
1158
|
-
return /* @__PURE__ */
|
|
1158
|
+
return /* @__PURE__ */ B(ve, {
|
|
1159
1159
|
...v("root"),
|
|
1160
1160
|
..._,
|
|
1161
1161
|
children: [
|
|
1162
|
-
d && /* @__PURE__ */
|
|
1162
|
+
d && /* @__PURE__ */ z("div", {
|
|
1163
1163
|
...v("image"),
|
|
1164
|
-
children: typeof d == "string" ? /* @__PURE__ */
|
|
1164
|
+
children: typeof d == "string" ? /* @__PURE__ */ z("img", {
|
|
1165
1165
|
src: d,
|
|
1166
1166
|
alt: f ?? "",
|
|
1167
1167
|
style: { height: p }
|
|
1168
1168
|
}) : d
|
|
1169
1169
|
}),
|
|
1170
|
-
l && /* @__PURE__ */
|
|
1170
|
+
l && /* @__PURE__ */ z(m, {
|
|
1171
1171
|
...v("kicker"),
|
|
1172
1172
|
children: l
|
|
1173
1173
|
}),
|
|
1174
|
-
u && /* @__PURE__ */
|
|
1174
|
+
u && /* @__PURE__ */ z("div", {
|
|
1175
1175
|
...v("title"),
|
|
1176
1176
|
children: u
|
|
1177
1177
|
}),
|
|
1178
|
-
g && /* @__PURE__ */
|
|
1178
|
+
g && /* @__PURE__ */ z("div", {
|
|
1179
1179
|
...v("body"),
|
|
1180
1180
|
children: g
|
|
1181
1181
|
}),
|
|
1182
|
-
h && /* @__PURE__ */
|
|
1182
|
+
h && /* @__PURE__ */ z("div", {
|
|
1183
1183
|
...v("actions"),
|
|
1184
1184
|
children: h
|
|
1185
1185
|
})
|
|
1186
1186
|
]
|
|
1187
1187
|
});
|
|
1188
1188
|
});
|
|
1189
|
-
|
|
1190
|
-
var
|
|
1189
|
+
nr.classes = tr, nr.displayName = "@jcdecor/ui/ContentCard";
|
|
1190
|
+
var rr = {
|
|
1191
1191
|
root: "jc-KpiCard-root-18l3e",
|
|
1192
1192
|
header: "jc-KpiCard-header-akny9",
|
|
1193
1193
|
label: "jc-KpiCard-label-wh8eq",
|
|
@@ -1199,23 +1199,23 @@ var tr = {
|
|
|
1199
1199
|
};
|
|
1200
1200
|
//#endregion
|
|
1201
1201
|
//#region src/components/KpiCard/KpiCard.tsx
|
|
1202
|
-
function
|
|
1202
|
+
function ir(e, t = !1) {
|
|
1203
1203
|
return e === void 0 || e === 0 || Number.isNaN(e) ? "flat" : e > 0 === t ? "down" : "up";
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1205
|
+
var ar = {
|
|
1206
1206
|
up: "var(--ds-success)",
|
|
1207
1207
|
down: "var(--ds-error)",
|
|
1208
1208
|
flat: "var(--ds-text-3)"
|
|
1209
|
-
},
|
|
1210
|
-
let i =
|
|
1209
|
+
}, or = Pt((e, { delta: t, invertDelta: n, colorValue: r }) => {
|
|
1210
|
+
let i = ir(t, n);
|
|
1211
1211
|
return { root: {
|
|
1212
|
-
"--kpi-delta-color":
|
|
1213
|
-
"--kpi-value-color": r && i !== "flat" ?
|
|
1212
|
+
"--kpi-delta-color": ar[i],
|
|
1213
|
+
"--kpi-value-color": r && i !== "flat" ? ar[i] : void 0
|
|
1214
1214
|
} };
|
|
1215
|
-
}), Z =
|
|
1216
|
-
let t =
|
|
1215
|
+
}), Z = I((e) => {
|
|
1216
|
+
let t = L("KpiCard", {}, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, label: l, value: u, delta: d, deltaLabel: p, invertDelta: m, colorValue: h, icon: g, chart: _, loading: v, ...b } = t, x = R({
|
|
1217
1217
|
name: "KpiCard",
|
|
1218
|
-
classes:
|
|
1218
|
+
classes: rr,
|
|
1219
1219
|
props: t,
|
|
1220
1220
|
className: r,
|
|
1221
1221
|
style: i,
|
|
@@ -1224,73 +1224,75 @@ var rr = {
|
|
|
1224
1224
|
unstyled: o,
|
|
1225
1225
|
attributes: c,
|
|
1226
1226
|
vars: s,
|
|
1227
|
-
varsResolver:
|
|
1228
|
-
}), S =
|
|
1229
|
-
return /* @__PURE__ */
|
|
1227
|
+
varsResolver: or
|
|
1228
|
+
}), S = ir(d, m), C = d === void 0 || d === 0 ? nn : d > 0 ? Jt : Kt;
|
|
1229
|
+
return /* @__PURE__ */ B(A, {
|
|
1230
1230
|
...x("root"),
|
|
1231
1231
|
...b,
|
|
1232
1232
|
children: [
|
|
1233
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ B("div", {
|
|
1234
1234
|
...x("header"),
|
|
1235
|
-
children: [/* @__PURE__ */
|
|
1235
|
+
children: [/* @__PURE__ */ z("span", {
|
|
1236
1236
|
...x("label"),
|
|
1237
1237
|
children: l
|
|
1238
|
-
}), g && /* @__PURE__ */
|
|
1238
|
+
}), g && /* @__PURE__ */ z("span", {
|
|
1239
1239
|
...x("icon"),
|
|
1240
1240
|
children: g
|
|
1241
1241
|
})]
|
|
1242
1242
|
}),
|
|
1243
|
-
v ? /* @__PURE__ */
|
|
1243
|
+
v ? /* @__PURE__ */ z(yt, {
|
|
1244
1244
|
height: 32,
|
|
1245
1245
|
width: "60%",
|
|
1246
1246
|
mt: 4
|
|
1247
|
-
}) : /* @__PURE__ */
|
|
1247
|
+
}) : /* @__PURE__ */ z("div", {
|
|
1248
1248
|
...x("value"),
|
|
1249
1249
|
children: typeof u == "number" ? f(u) : u
|
|
1250
1250
|
}),
|
|
1251
|
-
(d !== void 0 || p) && !v && /* @__PURE__ */
|
|
1251
|
+
(d !== void 0 || p) && !v && /* @__PURE__ */ B("div", {
|
|
1252
1252
|
...x("footer"),
|
|
1253
|
-
children: [d !== void 0 && /* @__PURE__ */
|
|
1253
|
+
children: [d !== void 0 && /* @__PURE__ */ B("span", {
|
|
1254
1254
|
...x("delta"),
|
|
1255
1255
|
"data-tone": S,
|
|
1256
|
-
children: [/* @__PURE__ */
|
|
1256
|
+
children: [/* @__PURE__ */ z(C, {
|
|
1257
1257
|
size: 14,
|
|
1258
1258
|
stroke: 2.5
|
|
1259
1259
|
}), y(d, { signed: !0 })]
|
|
1260
|
-
}), p && /* @__PURE__ */
|
|
1260
|
+
}), p && /* @__PURE__ */ z("span", { children: p })]
|
|
1261
1261
|
}),
|
|
1262
|
-
_ && /* @__PURE__ */
|
|
1262
|
+
_ && /* @__PURE__ */ z("div", {
|
|
1263
1263
|
...x("chart"),
|
|
1264
1264
|
children: _
|
|
1265
1265
|
})
|
|
1266
1266
|
]
|
|
1267
1267
|
});
|
|
1268
1268
|
});
|
|
1269
|
-
Z.classes =
|
|
1270
|
-
function
|
|
1269
|
+
Z.classes = rr, Z.varsResolver = or, Z.displayName = "@jcdecor/ui/KpiCard";
|
|
1270
|
+
function sr({ cols: e = {
|
|
1271
1271
|
base: 1,
|
|
1272
1272
|
"440px": 2,
|
|
1273
1273
|
"880px": 4
|
|
1274
1274
|
}, spacing: t = "md", type: n = "container", ...r }) {
|
|
1275
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ z(vt, {
|
|
1276
1276
|
type: n,
|
|
1277
1277
|
cols: e,
|
|
1278
1278
|
spacing: t,
|
|
1279
1279
|
...r
|
|
1280
1280
|
});
|
|
1281
1281
|
}
|
|
1282
|
-
|
|
1283
|
-
var
|
|
1282
|
+
sr.displayName = "@jcdecor/ui/KpiGroup";
|
|
1283
|
+
var cr = {
|
|
1284
1284
|
root: "jc-TopNav-root-r96wh",
|
|
1285
1285
|
brand: "jc-TopNav-brand-1rbya",
|
|
1286
1286
|
links: "jc-TopNav-links-1rhar",
|
|
1287
1287
|
link: "jc-TopNav-link-r92y3",
|
|
1288
|
+
linkSection: "jc-TopNav-linkSection-ynemx",
|
|
1289
|
+
linkLabel: "jc-TopNav-linkLabel-n7k1n",
|
|
1288
1290
|
right: "jc-TopNav-right-1rkld",
|
|
1289
1291
|
burger: "jc-TopNav-burger-19ifr",
|
|
1290
1292
|
mobileLinks: "jc-TopNav-mobileLinks-dspnw"
|
|
1291
|
-
},
|
|
1292
|
-
let t =
|
|
1293
|
-
brand: /* @__PURE__ */
|
|
1293
|
+
}, lr = I((e) => {
|
|
1294
|
+
let t = L("TopNav", {
|
|
1295
|
+
brand: /* @__PURE__ */ z(k, {
|
|
1294
1296
|
variant: "dark",
|
|
1295
1297
|
size: 28
|
|
1296
1298
|
}),
|
|
@@ -1298,9 +1300,9 @@ var or = {
|
|
|
1298
1300
|
links: [],
|
|
1299
1301
|
linkComponent: "a",
|
|
1300
1302
|
collapseOnMobile: !0
|
|
1301
|
-
}, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, brand: l, brandHref: u, links: d, linkComponent: f = "a", rightSection: p, collapseOnMobile: m, ...h } = t, [g, { toggle: _, close: v }] =
|
|
1303
|
+
}, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, brand: l, brandHref: u, links: d, linkComponent: f = "a", rightSection: p, collapseOnMobile: m, ...h } = t, [g, { toggle: _, close: v }] = pn(!1), y = R({
|
|
1302
1304
|
name: "TopNav",
|
|
1303
|
-
classes:
|
|
1305
|
+
classes: cr,
|
|
1304
1306
|
props: t,
|
|
1305
1307
|
className: r,
|
|
1306
1308
|
style: i,
|
|
@@ -1310,42 +1312,62 @@ var or = {
|
|
|
1310
1312
|
attributes: c,
|
|
1311
1313
|
vars: s
|
|
1312
1314
|
}), b = (e) => d.map((t, n) => {
|
|
1313
|
-
let r = !t.href, i = r ? "button" : f, a = r ? {
|
|
1315
|
+
let r = !t.href || t.disabled, i = r ? "button" : f, a = r ? {
|
|
1316
|
+
type: "button",
|
|
1317
|
+
disabled: t.disabled || void 0
|
|
1318
|
+
} : f === "a" ? { href: t.href } : {
|
|
1314
1319
|
to: t.href,
|
|
1315
1320
|
href: t.href
|
|
1316
1321
|
};
|
|
1317
|
-
return /* @__PURE__ */
|
|
1322
|
+
return /* @__PURE__ */ z(i, {
|
|
1318
1323
|
...a,
|
|
1319
1324
|
...y("link"),
|
|
1320
1325
|
"data-active": t.active || void 0,
|
|
1326
|
+
"data-disabled": t.disabled || void 0,
|
|
1321
1327
|
"aria-current": t.active ? "page" : void 0,
|
|
1328
|
+
"aria-label": t["aria-label"],
|
|
1322
1329
|
onClick: (n) => {
|
|
1323
|
-
t.onClick?.(n), e?.();
|
|
1330
|
+
t.disabled || (t.onClick?.(n), e?.());
|
|
1324
1331
|
},
|
|
1325
|
-
children: t.
|
|
1332
|
+
children: t.leftSection || t.rightSection ? /* @__PURE__ */ B(Ut, { children: [
|
|
1333
|
+
t.leftSection && /* @__PURE__ */ z("span", {
|
|
1334
|
+
...y("linkSection"),
|
|
1335
|
+
"data-position": "left",
|
|
1336
|
+
children: t.leftSection
|
|
1337
|
+
}),
|
|
1338
|
+
t.label !== void 0 && t.label !== null && t.label !== "" && /* @__PURE__ */ z("span", {
|
|
1339
|
+
...y("linkLabel"),
|
|
1340
|
+
children: t.label
|
|
1341
|
+
}),
|
|
1342
|
+
t.rightSection && /* @__PURE__ */ z("span", {
|
|
1343
|
+
...y("linkSection"),
|
|
1344
|
+
"data-position": "right",
|
|
1345
|
+
children: t.rightSection
|
|
1346
|
+
})
|
|
1347
|
+
] }) : t.label
|
|
1326
1348
|
}, n);
|
|
1327
1349
|
}), x = u === null ? "span" : f, S = u === null ? {} : f === "a" ? { href: u } : {
|
|
1328
1350
|
to: u,
|
|
1329
1351
|
href: u
|
|
1330
1352
|
};
|
|
1331
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ B("header", { children: [/* @__PURE__ */ B(A, {
|
|
1332
1354
|
...y("root"),
|
|
1333
1355
|
mod: { collapse: m },
|
|
1334
1356
|
...h,
|
|
1335
1357
|
children: [
|
|
1336
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ z(x, {
|
|
1337
1359
|
...S,
|
|
1338
1360
|
...y("brand"),
|
|
1339
1361
|
children: l
|
|
1340
1362
|
}),
|
|
1341
|
-
/* @__PURE__ */
|
|
1363
|
+
/* @__PURE__ */ z("nav", {
|
|
1342
1364
|
...y("links"),
|
|
1343
1365
|
"aria-label": "Principal",
|
|
1344
1366
|
children: b()
|
|
1345
1367
|
}),
|
|
1346
|
-
/* @__PURE__ */
|
|
1368
|
+
/* @__PURE__ */ B("div", {
|
|
1347
1369
|
...y("right"),
|
|
1348
|
-
children: [p, m && d.length > 0 && /* @__PURE__ */
|
|
1370
|
+
children: [p, m && d.length > 0 && /* @__PURE__ */ z(_e, {
|
|
1349
1371
|
opened: g,
|
|
1350
1372
|
onClick: _,
|
|
1351
1373
|
size: "sm",
|
|
@@ -1354,95 +1376,127 @@ var or = {
|
|
|
1354
1376
|
})]
|
|
1355
1377
|
})
|
|
1356
1378
|
]
|
|
1357
|
-
}), m && d.length > 0 && /* @__PURE__ */
|
|
1379
|
+
}), m && d.length > 0 && /* @__PURE__ */ z(Ee, {
|
|
1358
1380
|
expanded: g,
|
|
1359
|
-
children: /* @__PURE__ */
|
|
1381
|
+
children: /* @__PURE__ */ z("nav", {
|
|
1360
1382
|
...y("mobileLinks"),
|
|
1361
1383
|
"aria-label": "Principal (mobile)",
|
|
1362
1384
|
children: b(v)
|
|
1363
1385
|
})
|
|
1364
1386
|
})] });
|
|
1365
1387
|
});
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1388
|
+
lr.classes = cr, lr.displayName = "@jcdecor/ui/TopNav";
|
|
1389
|
+
var ur = {
|
|
1390
|
+
root: "jc-PageHeader-root-1a6dm",
|
|
1391
|
+
breadcrumbs: "jc-PageHeader-breadcrumbs-kti8b",
|
|
1392
|
+
header: "jc-PageHeader-header-1c38j",
|
|
1393
|
+
main: "jc-PageHeader-main-1a6a5",
|
|
1394
|
+
icon: "jc-PageHeader-icon-1a67m",
|
|
1395
|
+
body: "jc-PageHeader-body-1a63e",
|
|
1396
|
+
kicker: "jc-PageHeader-kicker-1dkm0",
|
|
1397
|
+
title: "jc-PageHeader-title-awh5g",
|
|
1398
|
+
description: "jc-PageHeader-description-1s6i7",
|
|
1399
|
+
actions: "jc-PageHeader-actions-11svw"
|
|
1400
|
+
}, dr = {
|
|
1401
|
+
linkComponent: "a",
|
|
1402
|
+
size: "headline"
|
|
1403
|
+
}, fr = I((e) => {
|
|
1404
|
+
let t = L("PageHeader", dr, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, kicker: l, title: u, description: d, icon: f, iconSize: p, actions: g, breadcrumbs: _, linkComponent: v = "a", size: y, ...b } = t, x = R({
|
|
1405
|
+
name: "PageHeader",
|
|
1406
|
+
classes: ur,
|
|
1407
|
+
props: t,
|
|
1408
|
+
className: r,
|
|
1409
|
+
style: i,
|
|
1410
|
+
classNames: n,
|
|
1411
|
+
styles: a,
|
|
1412
|
+
unstyled: o,
|
|
1413
|
+
attributes: c,
|
|
1414
|
+
vars: s,
|
|
1415
|
+
varsResolver: (e, { iconSize: t }) => ({ root: { "--page-header-icon-size": t === void 0 ? void 0 : typeof t == "number" ? Bt(t) : t } })
|
|
1416
|
+
});
|
|
1417
|
+
return /* @__PURE__ */ B(A, {
|
|
1418
|
+
...x("root"),
|
|
1419
|
+
...b,
|
|
1420
|
+
children: [_ && _.length > 0 && /* @__PURE__ */ z(ge, {
|
|
1421
|
+
...x("breadcrumbs"),
|
|
1375
1422
|
fz: "sm",
|
|
1376
1423
|
separatorMargin: 6,
|
|
1377
|
-
children:
|
|
1378
|
-
component:
|
|
1424
|
+
children: _.map((e, t) => e.href ? /* @__PURE__ */ z(le, {
|
|
1425
|
+
component: v,
|
|
1379
1426
|
href: e.href,
|
|
1380
|
-
...
|
|
1427
|
+
...v !== "a" && { to: e.href },
|
|
1381
1428
|
fz: "sm",
|
|
1382
1429
|
children: e.label
|
|
1383
|
-
}, t) : /* @__PURE__ */
|
|
1430
|
+
}, t) : /* @__PURE__ */ z(A, {
|
|
1384
1431
|
component: "span",
|
|
1385
1432
|
c: "var(--ds-text-3)",
|
|
1386
1433
|
fz: "sm",
|
|
1387
1434
|
children: e.label
|
|
1388
1435
|
}, t))
|
|
1389
|
-
}), /* @__PURE__ */
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1436
|
+
}), /* @__PURE__ */ B("div", {
|
|
1437
|
+
...x("header"),
|
|
1438
|
+
children: [/* @__PURE__ */ B("div", {
|
|
1439
|
+
...x("main"),
|
|
1440
|
+
children: [f && /* @__PURE__ */ z("div", {
|
|
1441
|
+
...x("icon"),
|
|
1442
|
+
"aria-hidden": !0,
|
|
1443
|
+
children: f
|
|
1444
|
+
}), /* @__PURE__ */ B("div", {
|
|
1445
|
+
...x("body"),
|
|
1446
|
+
children: [
|
|
1447
|
+
l && /* @__PURE__ */ z(m, {
|
|
1448
|
+
...x("kicker"),
|
|
1449
|
+
children: l
|
|
1450
|
+
}),
|
|
1451
|
+
y === "display" ? /* @__PURE__ */ z(C, {
|
|
1452
|
+
component: "h1",
|
|
1453
|
+
size: "lg",
|
|
1454
|
+
fz: "var(--type-display-sm)",
|
|
1455
|
+
lh: 1.15,
|
|
1456
|
+
mt: 8,
|
|
1457
|
+
...x("title"),
|
|
1458
|
+
children: u
|
|
1459
|
+
}) : /* @__PURE__ */ z(C, {
|
|
1460
|
+
component: "h1",
|
|
1461
|
+
size: "lg",
|
|
1462
|
+
mt: l ? 8 : 0,
|
|
1463
|
+
...x("title"),
|
|
1464
|
+
children: u
|
|
1465
|
+
}),
|
|
1466
|
+
d && /* @__PURE__ */ z(h, {
|
|
1467
|
+
component: "div",
|
|
1468
|
+
size: "lg",
|
|
1469
|
+
c: "var(--ds-text-2)",
|
|
1470
|
+
maw: 640,
|
|
1471
|
+
mt: 8,
|
|
1472
|
+
...x("description"),
|
|
1473
|
+
children: d
|
|
1474
|
+
})
|
|
1475
|
+
]
|
|
1476
|
+
})]
|
|
1477
|
+
}), g && /* @__PURE__ */ z("div", {
|
|
1478
|
+
...x("actions"),
|
|
1479
|
+
children: g
|
|
1426
1480
|
})]
|
|
1427
1481
|
})]
|
|
1428
1482
|
});
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1483
|
+
});
|
|
1484
|
+
fr.classes = ur, fr.displayName = "@jcdecor/ui/PageHeader";
|
|
1431
1485
|
var Q = {
|
|
1432
1486
|
wrapper: "jc-DataTable-wrapper-1irlf",
|
|
1433
1487
|
num: "jc-DataTable-num-73qhh",
|
|
1434
1488
|
sortButton: "jc-DataTable-sortButton-vnopd",
|
|
1435
1489
|
row: "jc-DataTable-row-73qkb",
|
|
1436
1490
|
footer: "jc-DataTable-footer-ngrsx"
|
|
1437
|
-
},
|
|
1438
|
-
function
|
|
1491
|
+
}, pr = (e) => e.id ?? e.key ?? "";
|
|
1492
|
+
function mr(e, t) {
|
|
1439
1493
|
return typeof e == "number" && typeof t == "number" ? e - t : String(e ?? "").localeCompare(String(t ?? ""), "pt-BR", {
|
|
1440
1494
|
numeric: !0,
|
|
1441
1495
|
sensitivity: "base"
|
|
1442
1496
|
});
|
|
1443
1497
|
}
|
|
1444
|
-
function
|
|
1445
|
-
let [_, v] =
|
|
1498
|
+
function hr({ columns: e, data: t, rowKey: n, initialSort: r, sort: i, onSortChange: a, pageSize: o, loading: s, loadingRows: c = 5, empty: l, onRowClick: u, plain: d, striped: p, stickyHeader: m, tableProps: h, ...g }) {
|
|
1499
|
+
let [_, v] = dn(r ?? null), y = i === void 0 ? _ : i, [b, x] = dn(1), S = (e) => {
|
|
1446
1500
|
i === void 0 && v(e), a?.(e), x(1);
|
|
1447
1501
|
}, C = (e) => {
|
|
1448
1502
|
!y || y.key !== e ? S({
|
|
@@ -1452,26 +1506,26 @@ function dr({ columns: e, data: t, rowKey: n, initialSort: r, sort: i, onSortCha
|
|
|
1452
1506
|
key: e,
|
|
1453
1507
|
direction: "desc"
|
|
1454
1508
|
}) : S(null);
|
|
1455
|
-
}, w =
|
|
1509
|
+
}, w = un(() => {
|
|
1456
1510
|
if (!y) return t;
|
|
1457
|
-
let n = e.find((e) =>
|
|
1511
|
+
let n = e.find((e) => pr(e) === y.key), r = n?.sortValue ?? ((e) => n?.key ? e[n.key] : void 0), i = [...t].sort((e, t) => mr(r(e), r(t)));
|
|
1458
1512
|
return y.direction === "desc" ? i.reverse() : i;
|
|
1459
1513
|
}, [
|
|
1460
1514
|
t,
|
|
1461
1515
|
y,
|
|
1462
1516
|
e
|
|
1463
|
-
]), T = o ? Math.max(1, Math.ceil(w.length / o)) : 1, E = Math.min(b, T), D = o ? w.slice((E - 1) * o, E * o) : w, ee = /* @__PURE__ */
|
|
1464
|
-
let t =
|
|
1465
|
-
return /* @__PURE__ */
|
|
1517
|
+
]), T = o ? Math.max(1, Math.ceil(w.length / o)) : 1, E = Math.min(b, T), D = o ? w.slice((E - 1) * o, E * o) : w, ee = /* @__PURE__ */ z(N.Thead, { children: /* @__PURE__ */ z(N.Tr, { children: e.map((e) => {
|
|
1518
|
+
let t = pr(e), n = y?.key === t, r = n ? y.direction === "asc" ? qt : Gt : Yt;
|
|
1519
|
+
return /* @__PURE__ */ z(N.Th, {
|
|
1466
1520
|
className: e.numeric ? Q.num : void 0,
|
|
1467
1521
|
style: { width: e.width },
|
|
1468
1522
|
"aria-sort": n ? y.direction === "asc" ? "ascending" : "descending" : void 0,
|
|
1469
|
-
children: e.sortable ? /* @__PURE__ */
|
|
1523
|
+
children: e.sortable ? /* @__PURE__ */ B("button", {
|
|
1470
1524
|
type: "button",
|
|
1471
1525
|
className: Q.sortButton,
|
|
1472
1526
|
"data-sorted": n || void 0,
|
|
1473
1527
|
onClick: () => C(t),
|
|
1474
|
-
children: [e.header, /* @__PURE__ */
|
|
1528
|
+
children: [e.header, /* @__PURE__ */ z(r, {
|
|
1475
1529
|
size: 12,
|
|
1476
1530
|
stroke: 2.5,
|
|
1477
1531
|
opacity: n ? 1 : .5
|
|
@@ -1479,20 +1533,20 @@ function dr({ columns: e, data: t, rowKey: n, initialSort: r, sort: i, onSortCha
|
|
|
1479
1533
|
}) : e.header
|
|
1480
1534
|
}, t);
|
|
1481
1535
|
}) }) }), O;
|
|
1482
|
-
return O = s ? Array.from({ length: c }, (t, n) => /* @__PURE__ */
|
|
1536
|
+
return O = s ? Array.from({ length: c }, (t, n) => /* @__PURE__ */ z(N.Tr, { children: e.map((e) => /* @__PURE__ */ z(N.Td, { children: /* @__PURE__ */ z(yt, {
|
|
1483
1537
|
height: 14,
|
|
1484
1538
|
width: e.numeric ? "50%" : "80%",
|
|
1485
1539
|
ml: e.numeric ? "auto" : 0
|
|
1486
|
-
}) },
|
|
1540
|
+
}) }, pr(e))) }, n)) : D.length === 0 ? /* @__PURE__ */ z(N.Tr, { children: /* @__PURE__ */ z(N.Td, {
|
|
1487
1541
|
colSpan: e.length,
|
|
1488
|
-
children: l ?? /* @__PURE__ */
|
|
1542
|
+
children: l ?? /* @__PURE__ */ z(Ne, {
|
|
1489
1543
|
py: "xl",
|
|
1490
1544
|
size: "sm",
|
|
1491
|
-
icon: /* @__PURE__ */
|
|
1545
|
+
icon: /* @__PURE__ */ z(Qt, { size: 22 }),
|
|
1492
1546
|
title: "Nenhum resultado",
|
|
1493
1547
|
description: "Não há dados para exibir com os filtros atuais."
|
|
1494
1548
|
})
|
|
1495
|
-
}) }) : D.map((t, r) => /* @__PURE__ */
|
|
1549
|
+
}) }) : D.map((t, r) => /* @__PURE__ */ z(N.Tr, {
|
|
1496
1550
|
className: Q.row,
|
|
1497
1551
|
"data-clickable": u ? !0 : void 0,
|
|
1498
1552
|
onClick: u ? () => u(t, r) : void 0,
|
|
@@ -1502,33 +1556,33 @@ function dr({ columns: e, data: t, rowKey: n, initialSort: r, sort: i, onSortCha
|
|
|
1502
1556
|
} : void 0,
|
|
1503
1557
|
children: e.map((e) => {
|
|
1504
1558
|
let n = e.key ? t[e.key] : void 0, i = e.render ? e.render(t, r) : e.numeric && typeof n == "number" ? f(n, e.format) : n;
|
|
1505
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ z(N.Td, {
|
|
1506
1560
|
className: e.numeric ? Q.num : void 0,
|
|
1507
1561
|
children: i
|
|
1508
|
-
},
|
|
1562
|
+
}, pr(e));
|
|
1509
1563
|
})
|
|
1510
|
-
}, n ? n(t, r) : r)), /* @__PURE__ */
|
|
1564
|
+
}, n ? n(t, r) : r)), /* @__PURE__ */ B(A, {
|
|
1511
1565
|
className: Q.wrapper,
|
|
1512
1566
|
"data-plain": d || void 0,
|
|
1513
1567
|
...g,
|
|
1514
|
-
children: [/* @__PURE__ */
|
|
1568
|
+
children: [/* @__PURE__ */ z(ht, {
|
|
1515
1569
|
type: "auto",
|
|
1516
|
-
children: /* @__PURE__ */
|
|
1570
|
+
children: /* @__PURE__ */ B(N, {
|
|
1517
1571
|
striped: p,
|
|
1518
1572
|
stickyHeader: m,
|
|
1519
1573
|
...h,
|
|
1520
|
-
children: [ee, /* @__PURE__ */
|
|
1574
|
+
children: [ee, /* @__PURE__ */ z(N.Tbody, { children: O })]
|
|
1521
1575
|
})
|
|
1522
|
-
}), o && w.length > o && /* @__PURE__ */
|
|
1576
|
+
}), o && w.length > o && /* @__PURE__ */ B("div", {
|
|
1523
1577
|
className: Q.footer,
|
|
1524
|
-
children: [/* @__PURE__ */
|
|
1578
|
+
children: [/* @__PURE__ */ B("span", { children: [
|
|
1525
1579
|
f((E - 1) * o + 1),
|
|
1526
1580
|
"–",
|
|
1527
1581
|
f(Math.min(E * o, w.length)),
|
|
1528
1582
|
" de",
|
|
1529
1583
|
" ",
|
|
1530
1584
|
f(w.length)
|
|
1531
|
-
] }), /* @__PURE__ */
|
|
1585
|
+
] }), /* @__PURE__ */ z(nt, {
|
|
1532
1586
|
size: "sm",
|
|
1533
1587
|
total: T,
|
|
1534
1588
|
value: E,
|
|
@@ -1537,20 +1591,20 @@ function dr({ columns: e, data: t, rowKey: n, initialSort: r, sort: i, onSortCha
|
|
|
1537
1591
|
})]
|
|
1538
1592
|
});
|
|
1539
1593
|
}
|
|
1540
|
-
|
|
1594
|
+
hr.displayName = "@jcdecor/ui/DataTable";
|
|
1541
1595
|
//#endregion
|
|
1542
1596
|
//#region src/components/ThemeToggle/ThemeToggle.tsx
|
|
1543
|
-
function
|
|
1544
|
-
let { setColorScheme: o } = Ht(), s = Vt("light", { getInitialValueInEffect: !0 }), c = () => o(s === "dark" ? "light" : "dark"), l = s === "dark" ?
|
|
1545
|
-
return e === "button" ? /* @__PURE__ */
|
|
1597
|
+
function gr({ as: e = "icon", label: t = "Alternar tema", variant: n, color: r, size: i, ...a }) {
|
|
1598
|
+
let { setColorScheme: o } = Ht(), s = Vt("light", { getInitialValueInEffect: !0 }), c = () => o(s === "dark" ? "light" : "dark"), l = s === "dark" ? on : rn;
|
|
1599
|
+
return e === "button" ? /* @__PURE__ */ z(j, {
|
|
1546
1600
|
variant: n ?? "outline",
|
|
1547
1601
|
color: r,
|
|
1548
1602
|
size: i ?? "sm",
|
|
1549
|
-
leftSection: /* @__PURE__ */
|
|
1603
|
+
leftSection: /* @__PURE__ */ z(l, { size: 16 }),
|
|
1550
1604
|
onClick: c,
|
|
1551
1605
|
...a,
|
|
1552
1606
|
children: t
|
|
1553
|
-
}) : /* @__PURE__ */
|
|
1607
|
+
}) : /* @__PURE__ */ z(oe, {
|
|
1554
1608
|
variant: n ?? "subtle",
|
|
1555
1609
|
color: r,
|
|
1556
1610
|
size: i ?? "lg",
|
|
@@ -1558,10 +1612,10 @@ function fr({ as: e = "icon", label: t = "Alternar tema", variant: n, color: r,
|
|
|
1558
1612
|
"aria-label": t,
|
|
1559
1613
|
title: t,
|
|
1560
1614
|
...a,
|
|
1561
|
-
children: /* @__PURE__ */
|
|
1615
|
+
children: /* @__PURE__ */ z(l, { size: 18 })
|
|
1562
1616
|
});
|
|
1563
1617
|
}
|
|
1564
|
-
|
|
1618
|
+
gr.displayName = "@jcdecor/ui/ThemeToggle";
|
|
1565
1619
|
var $ = {
|
|
1566
1620
|
swatch: "jc-TokenSwatch-swatch-dd519",
|
|
1567
1621
|
color: "jc-TokenSwatch-color-1q1r0",
|
|
@@ -1573,31 +1627,31 @@ var $ = {
|
|
|
1573
1627
|
};
|
|
1574
1628
|
//#endregion
|
|
1575
1629
|
//#region src/components/TokenSwatch/TokenSwatch.tsx
|
|
1576
|
-
function
|
|
1577
|
-
let o =
|
|
1578
|
-
return /* @__PURE__ */
|
|
1630
|
+
function _r({ name: e, value: t, cssVar: n, copy: r = "value", className: i, ...a }) {
|
|
1631
|
+
let o = fn({ timeout: 1200 }), s = r === "cssVar" && n ? `var(${n})` : t;
|
|
1632
|
+
return /* @__PURE__ */ z(At, {
|
|
1579
1633
|
label: o.copied ? "Copiado!" : `Copiar ${s}`,
|
|
1580
1634
|
withArrow: !0,
|
|
1581
|
-
children: /* @__PURE__ */
|
|
1635
|
+
children: /* @__PURE__ */ B("button", {
|
|
1582
1636
|
type: "button",
|
|
1583
1637
|
className: i ? `${$.swatch} ${i}` : $.swatch,
|
|
1584
1638
|
onClick: () => o.copy(s),
|
|
1585
1639
|
...a,
|
|
1586
|
-
children: [/* @__PURE__ */
|
|
1640
|
+
children: [/* @__PURE__ */ z("div", {
|
|
1587
1641
|
className: $.color,
|
|
1588
1642
|
style: { background: t }
|
|
1589
|
-
}), /* @__PURE__ */
|
|
1643
|
+
}), /* @__PURE__ */ B("div", {
|
|
1590
1644
|
className: $.info,
|
|
1591
1645
|
children: [
|
|
1592
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ z("div", {
|
|
1593
1647
|
className: $.name,
|
|
1594
1648
|
children: e
|
|
1595
1649
|
}),
|
|
1596
|
-
/* @__PURE__ */
|
|
1650
|
+
/* @__PURE__ */ z("div", {
|
|
1597
1651
|
className: $.hex,
|
|
1598
1652
|
children: t
|
|
1599
1653
|
}),
|
|
1600
|
-
n && /* @__PURE__ */
|
|
1654
|
+
n && /* @__PURE__ */ z("div", {
|
|
1601
1655
|
className: $.hex,
|
|
1602
1656
|
children: n
|
|
1603
1657
|
})
|
|
@@ -1606,21 +1660,21 @@ function pr({ name: e, value: t, cssVar: n, copy: r = "value", className: i, ...
|
|
|
1606
1660
|
})
|
|
1607
1661
|
});
|
|
1608
1662
|
}
|
|
1609
|
-
|
|
1610
|
-
function
|
|
1611
|
-
let r =
|
|
1612
|
-
return /* @__PURE__ */
|
|
1663
|
+
_r.displayName = "@jcdecor/ui/TokenSwatch";
|
|
1664
|
+
function vr({ steps: e, className: t, ...n }) {
|
|
1665
|
+
let r = fn({ timeout: 1200 });
|
|
1666
|
+
return /* @__PURE__ */ z("div", {
|
|
1613
1667
|
className: t ? `${$.ramp} ${t}` : $.ramp,
|
|
1614
1668
|
...n,
|
|
1615
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1669
|
+
children: e.map((e) => /* @__PURE__ */ z(At, {
|
|
1616
1670
|
label: r.copied ? "Copiado!" : e.value,
|
|
1617
1671
|
withArrow: !0,
|
|
1618
|
-
children: /* @__PURE__ */
|
|
1672
|
+
children: /* @__PURE__ */ B("button", {
|
|
1619
1673
|
type: "button",
|
|
1620
1674
|
className: $.step,
|
|
1621
1675
|
style: {
|
|
1622
1676
|
background: e.value,
|
|
1623
|
-
color:
|
|
1677
|
+
color: Lt(e.value) > .3 ? "var(--dc-obsidian)" : "#fff"
|
|
1624
1678
|
},
|
|
1625
1679
|
onClick: () => r.copy(e.value),
|
|
1626
1680
|
children: [e.label, e.derived ? "*" : ""]
|
|
@@ -1628,38 +1682,38 @@ function mr({ steps: e, className: t, ...n }) {
|
|
|
1628
1682
|
}, e.label))
|
|
1629
1683
|
});
|
|
1630
1684
|
}
|
|
1631
|
-
|
|
1685
|
+
vr.displayName = "@jcdecor/ui/ColorRamp";
|
|
1632
1686
|
//#endregion
|
|
1633
1687
|
//#region src/components/PriceTag/PriceTag.tsx
|
|
1634
|
-
var
|
|
1688
|
+
var yr = {
|
|
1635
1689
|
sm: "var(--type-subheadline-lg)",
|
|
1636
1690
|
md: "var(--type-headline-sm)",
|
|
1637
1691
|
lg: "var(--type-headline-lg)"
|
|
1638
1692
|
};
|
|
1639
|
-
function
|
|
1640
|
-
return /* @__PURE__ */
|
|
1693
|
+
function br({ value: e, oldValue: t, installments: n, pixDiscount: r, unit: i, size: a = "md", ...o }) {
|
|
1694
|
+
return /* @__PURE__ */ B(A, {
|
|
1641
1695
|
...o,
|
|
1642
1696
|
children: [
|
|
1643
|
-
t !== void 0 && t > e && /* @__PURE__ */
|
|
1697
|
+
t !== void 0 && t > e && /* @__PURE__ */ z(P, {
|
|
1644
1698
|
fz: "xs",
|
|
1645
1699
|
c: "var(--ds-text-3)",
|
|
1646
1700
|
td: "line-through",
|
|
1647
1701
|
"aria-label": `Preço anterior ${b(t)}`,
|
|
1648
1702
|
children: b(t)
|
|
1649
1703
|
}),
|
|
1650
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ B(M, {
|
|
1651
1705
|
gap: 4,
|
|
1652
1706
|
align: "baseline",
|
|
1653
1707
|
wrap: "nowrap",
|
|
1654
|
-
children: [/* @__PURE__ */
|
|
1708
|
+
children: [/* @__PURE__ */ z(P, {
|
|
1655
1709
|
component: "span",
|
|
1656
|
-
fz:
|
|
1710
|
+
fz: yr[a],
|
|
1657
1711
|
fw: 700,
|
|
1658
1712
|
lh: 1.2,
|
|
1659
1713
|
c: "var(--ds-primary)",
|
|
1660
1714
|
style: { fontVariantNumeric: "tabular-nums" },
|
|
1661
1715
|
children: b(e)
|
|
1662
|
-
}), i && /* @__PURE__ */
|
|
1716
|
+
}), i && /* @__PURE__ */ z(P, {
|
|
1663
1717
|
component: "span",
|
|
1664
1718
|
fz: "xs",
|
|
1665
1719
|
c: "var(--ds-text-3)",
|
|
@@ -1667,7 +1721,7 @@ function gr({ value: e, oldValue: t, installments: n, pixDiscount: r, unit: i, s
|
|
|
1667
1721
|
children: i
|
|
1668
1722
|
})]
|
|
1669
1723
|
}),
|
|
1670
|
-
r !== void 0 && r > 0 && /* @__PURE__ */
|
|
1724
|
+
r !== void 0 && r > 0 && /* @__PURE__ */ B(P, {
|
|
1671
1725
|
fz: "xs",
|
|
1672
1726
|
fw: 600,
|
|
1673
1727
|
c: "var(--ds-tag-success-color)",
|
|
@@ -1678,7 +1732,7 @@ function gr({ value: e, oldValue: t, installments: n, pixDiscount: r, unit: i, s
|
|
|
1678
1732
|
"% off)"
|
|
1679
1733
|
]
|
|
1680
1734
|
}),
|
|
1681
|
-
n && n.count > 1 && /* @__PURE__ */
|
|
1735
|
+
n && n.count > 1 && /* @__PURE__ */ B(P, {
|
|
1682
1736
|
fz: "xs",
|
|
1683
1737
|
c: "var(--ds-text-2)",
|
|
1684
1738
|
children: [
|
|
@@ -1692,8 +1746,8 @@ function gr({ value: e, oldValue: t, installments: n, pixDiscount: r, unit: i, s
|
|
|
1692
1746
|
]
|
|
1693
1747
|
});
|
|
1694
1748
|
}
|
|
1695
|
-
|
|
1696
|
-
var
|
|
1749
|
+
br.displayName = "@jcdecor/ui/PriceTag";
|
|
1750
|
+
var xr = {
|
|
1697
1751
|
root: "jc-ProductCard-root-bpw1v",
|
|
1698
1752
|
media: "jc-ProductCard-media-823r5",
|
|
1699
1753
|
badges: "jc-ProductCard-badges-vg75e",
|
|
@@ -1702,15 +1756,15 @@ var _r = {
|
|
|
1702
1756
|
name: "jc-ProductCard-name-bpt7h",
|
|
1703
1757
|
price: "jc-ProductCard-price-83zjb",
|
|
1704
1758
|
action: "jc-ProductCard-action-v0jdp"
|
|
1705
|
-
},
|
|
1706
|
-
let t =
|
|
1759
|
+
}, Sr = I((e) => {
|
|
1760
|
+
let t = L("ProductCard", {
|
|
1707
1761
|
showDiscount: !0,
|
|
1708
1762
|
actionLabel: "Comprar",
|
|
1709
1763
|
imageRatio: 1,
|
|
1710
1764
|
linkComponent: "a"
|
|
1711
|
-
}, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, name: l, image: u, href: d, category: f, price: p, oldPrice: m, installments: h, pixDiscount: g, unit: _, badges: v, showDiscount: y, rating: b, reviews: x, favorite: S, onFavoriteChange: C, actionLabel: w, onAction: T, imageRatio: E, linkComponent: D = "a", ...ee } = t, O =
|
|
1765
|
+
}, e), { classNames: n, className: r, style: i, styles: a, unstyled: o, vars: s, attributes: c, name: l, image: u, href: d, category: f, price: p, oldPrice: m, installments: h, pixDiscount: g, unit: _, badges: v, showDiscount: y, rating: b, reviews: x, favorite: S, onFavoriteChange: C, actionLabel: w, onAction: T, imageRatio: E, linkComponent: D = "a", ...ee } = t, O = R({
|
|
1712
1766
|
name: "ProductCard",
|
|
1713
|
-
classes:
|
|
1767
|
+
classes: xr,
|
|
1714
1768
|
props: t,
|
|
1715
1769
|
className: r,
|
|
1716
1770
|
style: i,
|
|
@@ -1723,23 +1777,23 @@ var _r = {
|
|
|
1723
1777
|
to: d,
|
|
1724
1778
|
href: d
|
|
1725
1779
|
} : {}, ne = d ? D : "div";
|
|
1726
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ B(ve, {
|
|
1727
1781
|
...O("root"),
|
|
1728
1782
|
mod: { interactive: !!(d || T) },
|
|
1729
1783
|
...ee,
|
|
1730
1784
|
children: [
|
|
1731
|
-
/* @__PURE__ */
|
|
1785
|
+
/* @__PURE__ */ B("div", {
|
|
1732
1786
|
...O("media"),
|
|
1733
1787
|
style: { "--product-ratio": String(E) },
|
|
1734
1788
|
children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1789
|
+
/* @__PURE__ */ z("img", {
|
|
1736
1790
|
src: u,
|
|
1737
1791
|
alt: l,
|
|
1738
1792
|
loading: "lazy"
|
|
1739
1793
|
}),
|
|
1740
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ B("div", {
|
|
1741
1795
|
...O("badges"),
|
|
1742
|
-
children: [y && k > 0 && /* @__PURE__ */
|
|
1796
|
+
children: [y && k > 0 && /* @__PURE__ */ B(Xn, {
|
|
1743
1797
|
tone: "error",
|
|
1744
1798
|
variant: "filled",
|
|
1745
1799
|
children: [
|
|
@@ -1747,9 +1801,9 @@ var _r = {
|
|
|
1747
1801
|
k,
|
|
1748
1802
|
"%"
|
|
1749
1803
|
]
|
|
1750
|
-
}), v?.map((e, t) => /* @__PURE__ */
|
|
1804
|
+
}), v?.map((e, t) => /* @__PURE__ */ z(ln, { children: e }, t))]
|
|
1751
1805
|
}),
|
|
1752
|
-
C && /* @__PURE__ */
|
|
1806
|
+
C && /* @__PURE__ */ z(oe, {
|
|
1753
1807
|
...O("favorite"),
|
|
1754
1808
|
variant: "subtle",
|
|
1755
1809
|
color: S ? "danger" : "obsidian",
|
|
@@ -1757,29 +1811,29 @@ var _r = {
|
|
|
1757
1811
|
"aria-label": S ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
1758
1812
|
"aria-pressed": S,
|
|
1759
1813
|
onClick: () => C(!S),
|
|
1760
|
-
children:
|
|
1814
|
+
children: z(S ? en : $t, { size: 18 })
|
|
1761
1815
|
})
|
|
1762
1816
|
]
|
|
1763
1817
|
}),
|
|
1764
|
-
f && /* @__PURE__ */
|
|
1818
|
+
f && /* @__PURE__ */ z("div", {
|
|
1765
1819
|
...O("category"),
|
|
1766
1820
|
children: f
|
|
1767
1821
|
}),
|
|
1768
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ z(ne, {
|
|
1769
1823
|
...te,
|
|
1770
1824
|
...O("name"),
|
|
1771
1825
|
children: l
|
|
1772
1826
|
}),
|
|
1773
|
-
b !== void 0 && /* @__PURE__ */
|
|
1827
|
+
b !== void 0 && /* @__PURE__ */ B(M, {
|
|
1774
1828
|
gap: 6,
|
|
1775
1829
|
mb: "xs",
|
|
1776
|
-
children: [/* @__PURE__ */
|
|
1830
|
+
children: [/* @__PURE__ */ z(ft, {
|
|
1777
1831
|
value: b,
|
|
1778
1832
|
fractions: 2,
|
|
1779
1833
|
readOnly: !0,
|
|
1780
1834
|
size: "xs",
|
|
1781
1835
|
color: "electric.4"
|
|
1782
|
-
}), x !== void 0 && /* @__PURE__ */
|
|
1836
|
+
}), x !== void 0 && /* @__PURE__ */ B(P, {
|
|
1783
1837
|
fz: "xs",
|
|
1784
1838
|
c: "var(--ds-text-3)",
|
|
1785
1839
|
children: [
|
|
@@ -1789,7 +1843,7 @@ var _r = {
|
|
|
1789
1843
|
]
|
|
1790
1844
|
})]
|
|
1791
1845
|
}),
|
|
1792
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ z(br, {
|
|
1793
1847
|
...O("price"),
|
|
1794
1848
|
value: p,
|
|
1795
1849
|
oldValue: m,
|
|
@@ -1797,22 +1851,22 @@ var _r = {
|
|
|
1797
1851
|
pixDiscount: g,
|
|
1798
1852
|
unit: _
|
|
1799
1853
|
}),
|
|
1800
|
-
T && /* @__PURE__ */
|
|
1854
|
+
T && /* @__PURE__ */ z(j, {
|
|
1801
1855
|
...O("action"),
|
|
1802
1856
|
fullWidth: !0,
|
|
1803
|
-
leftSection: /* @__PURE__ */
|
|
1857
|
+
leftSection: /* @__PURE__ */ z(an, { size: 18 }),
|
|
1804
1858
|
onClick: T,
|
|
1805
1859
|
children: w
|
|
1806
1860
|
})
|
|
1807
1861
|
]
|
|
1808
1862
|
});
|
|
1809
1863
|
});
|
|
1810
|
-
|
|
1864
|
+
Sr.classes = xr, Sr.displayName = "@jcdecor/ui/ProductCard";
|
|
1811
1865
|
//#endregion
|
|
1812
1866
|
//#region src/components/CouponCode/CouponCode.tsx
|
|
1813
|
-
function
|
|
1814
|
-
let o =
|
|
1815
|
-
return /* @__PURE__ */
|
|
1867
|
+
function Cr({ code: e, description: t, copyLabel: n = "Copiar", copiedLabel: r = "Copiado!", onCopy: i, ...a }) {
|
|
1868
|
+
let o = fn({ timeout: 1600 });
|
|
1869
|
+
return /* @__PURE__ */ z(A, {
|
|
1816
1870
|
p: "sm",
|
|
1817
1871
|
style: {
|
|
1818
1872
|
border: "2px dashed var(--ds-primary)",
|
|
@@ -1820,26 +1874,26 @@ function yr({ code: e, description: t, copyLabel: n = "Copiar", copiedLabel: r =
|
|
|
1820
1874
|
background: "var(--ds-primary-soft)"
|
|
1821
1875
|
},
|
|
1822
1876
|
...a,
|
|
1823
|
-
children: /* @__PURE__ */
|
|
1877
|
+
children: /* @__PURE__ */ B(M, {
|
|
1824
1878
|
justify: "space-between",
|
|
1825
1879
|
gap: "sm",
|
|
1826
1880
|
wrap: "nowrap",
|
|
1827
|
-
children: [/* @__PURE__ */
|
|
1881
|
+
children: [/* @__PURE__ */ B(M, {
|
|
1828
1882
|
gap: "sm",
|
|
1829
1883
|
wrap: "nowrap",
|
|
1830
1884
|
style: { minWidth: 0 },
|
|
1831
|
-
children: [/* @__PURE__ */
|
|
1885
|
+
children: [/* @__PURE__ */ z(sn, {
|
|
1832
1886
|
size: 22,
|
|
1833
1887
|
color: "var(--ds-primary)",
|
|
1834
1888
|
style: { flexShrink: 0 }
|
|
1835
|
-
}), /* @__PURE__ */
|
|
1889
|
+
}), /* @__PURE__ */ B("div", {
|
|
1836
1890
|
style: { minWidth: 0 },
|
|
1837
|
-
children: [t && /* @__PURE__ */
|
|
1891
|
+
children: [t && /* @__PURE__ */ z(P, {
|
|
1838
1892
|
fz: "xs",
|
|
1839
1893
|
c: "var(--ds-text-2)",
|
|
1840
1894
|
fw: 500,
|
|
1841
1895
|
children: t
|
|
1842
|
-
}), /* @__PURE__ */
|
|
1896
|
+
}), /* @__PURE__ */ z(P, {
|
|
1843
1897
|
fw: 700,
|
|
1844
1898
|
fz: "lg",
|
|
1845
1899
|
lts: "0.08em",
|
|
@@ -1848,11 +1902,11 @@ function yr({ code: e, description: t, copyLabel: n = "Copiar", copiedLabel: r =
|
|
|
1848
1902
|
children: e
|
|
1849
1903
|
})]
|
|
1850
1904
|
})]
|
|
1851
|
-
}), /* @__PURE__ */
|
|
1905
|
+
}), /* @__PURE__ */ z(j, {
|
|
1852
1906
|
size: "sm",
|
|
1853
1907
|
variant: o.copied ? "filled" : "outline",
|
|
1854
1908
|
color: o.copied ? "evergreen" : void 0,
|
|
1855
|
-
leftSection: o.copied ? /* @__PURE__ */
|
|
1909
|
+
leftSection: o.copied ? /* @__PURE__ */ z(Xt, { size: 16 }) : /* @__PURE__ */ z(Zt, { size: 16 }),
|
|
1856
1910
|
onClick: () => {
|
|
1857
1911
|
o.copy(e), i?.(e);
|
|
1858
1912
|
},
|
|
@@ -1861,8 +1915,8 @@ function yr({ code: e, description: t, copyLabel: n = "Copiar", copiedLabel: r =
|
|
|
1861
1915
|
})
|
|
1862
1916
|
});
|
|
1863
1917
|
}
|
|
1864
|
-
|
|
1918
|
+
Cr.displayName = "@jcdecor/ui/CouponCode";
|
|
1865
1919
|
//#endregion
|
|
1866
|
-
export { ne as Collaborator,
|
|
1920
|
+
export { ne as Collaborator, vr as ColorRamp, nr as ContentCard, Cr as CouponCode, hr as DataTable, p as Disclaimer, _ as Display, ee as GreekFrame, C as Headline, k as JcLogo, E as JcLogoAlt, qn as JcProvider, m as Kicker, Z as KpiCard, sr as KpiGroup, S as LOCALE, fr as PageHeader, br as PriceTag, Sr as ProductCard, er as PromoBanner, w as SpartanHelmet, h as Subheadline, Xn as Tag, gr as ThemeToggle, _r as TokenSwatch, lr as TopNav, O as altLogoPaths, te as collaboratorPaths, v as formatCompact, b as formatCurrency, g as formatDate, f as formatNumber, y as formatPercent, x as formatTime, ir as getDeltaTone, T as greekFramePaths, d as jcColors, Kn as jcCssVariablesResolver, zn as jcTheme, hn as jcVariantColorResolver, D as logoPaths, re as spartanPaths, n as tokens };
|
|
1867
1921
|
|
|
1868
1922
|
//# sourceMappingURL=index.js.map
|