@lets-events/react 4.0.0 → 5.0.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2823 -163
- package/dist/index.d.ts +2823 -163
- package/dist/index.js +862 -281
- package/dist/index.mjs +811 -250
- package/package.json +1 -1
- package/src/components/Alert.tsx +256 -0
- package/src/components/Button.tsx +3 -9
- package/src/components/Container.tsx +40 -0
- package/src/components/Flex.tsx +75 -4
- package/src/components/Grid.tsx +138 -0
- package/src/components/Modal.tsx +109 -0
- package/src/components/Section.tsx +34 -0
- package/src/components/Step.tsx +148 -0
- package/src/components/Switch.tsx +109 -0
- package/src/components/Text.tsx +15 -9
- package/src/index.tsx +14 -10
- package/src/components/BadgeText.tsx +0 -29
- package/src/components/BodyText.tsx +0 -24
- package/src/components/CaptionText.tsx +0 -16
- package/src/components/DisplayText.tsx +0 -26
- package/src/components/Headline.tsx +0 -29
- package/src/components/Label.tsx +0 -28
- package/src/components/Subtitle.tsx +0 -26
- package/src/components/TooltipText.tsx +0 -15
package/dist/index.mjs
CHANGED
|
@@ -235,7 +235,7 @@ var require_react_is_development = __commonJS({
|
|
|
235
235
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
236
236
|
var Element = REACT_ELEMENT_TYPE;
|
|
237
237
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
238
|
-
var
|
|
238
|
+
var Fragment3 = REACT_FRAGMENT_TYPE;
|
|
239
239
|
var Lazy = REACT_LAZY_TYPE;
|
|
240
240
|
var Memo = REACT_MEMO_TYPE;
|
|
241
241
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -294,7 +294,7 @@ var require_react_is_development = __commonJS({
|
|
|
294
294
|
exports.ContextProvider = ContextProvider;
|
|
295
295
|
exports.Element = Element;
|
|
296
296
|
exports.ForwardRef = ForwardRef;
|
|
297
|
-
exports.Fragment =
|
|
297
|
+
exports.Fragment = Fragment3;
|
|
298
298
|
exports.Lazy = Lazy;
|
|
299
299
|
exports.Memo = Memo;
|
|
300
300
|
exports.Portal = Portal;
|
|
@@ -1320,174 +1320,30 @@ var {
|
|
|
1320
1320
|
|
|
1321
1321
|
// src/components/Text.tsx
|
|
1322
1322
|
import { Text as TextRadix } from "@radix-ui/themes";
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
lineHeight: "$base",
|
|
1326
|
-
color: "$gray100",
|
|
1327
|
-
letterSpacing: "$2",
|
|
1328
|
-
fontWeight: "$semibold",
|
|
1329
|
-
variants: {
|
|
1330
|
-
size: {
|
|
1331
|
-
lg: { fontSize: "$56" },
|
|
1332
|
-
md: { fontSize: "$48" },
|
|
1333
|
-
sm: { fontSize: "$36" }
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
defaultVariants: {
|
|
1337
|
-
size: "md"
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
|
-
|
|
1341
|
-
// src/components/DisplayText.tsx
|
|
1342
|
-
var DisplayText = styled("p", {
|
|
1323
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1324
|
+
var TextStyle = styled(TextRadix, {
|
|
1343
1325
|
fontFamily: "$default",
|
|
1344
1326
|
lineHeight: "$base",
|
|
1345
1327
|
color: "$gray100",
|
|
1346
1328
|
letterSpacing: "$2",
|
|
1347
1329
|
fontWeight: "$semibold",
|
|
1330
|
+
fontSize: "$sm",
|
|
1348
1331
|
variants: {
|
|
1349
1332
|
size: {
|
|
1350
1333
|
lg: { fontSize: "$56" },
|
|
1351
1334
|
md: { fontSize: "$48" },
|
|
1352
1335
|
sm: { fontSize: "$36" }
|
|
1353
1336
|
}
|
|
1354
|
-
},
|
|
1355
|
-
defaultVariants: {
|
|
1356
|
-
size: "md"
|
|
1357
|
-
}
|
|
1358
|
-
});
|
|
1359
|
-
|
|
1360
|
-
// src/components/Headline.tsx
|
|
1361
|
-
import { Heading } from "@radix-ui/themes";
|
|
1362
|
-
var Headline = styled(Heading, {
|
|
1363
|
-
fontFamily: "$default",
|
|
1364
|
-
color: "$gray100",
|
|
1365
|
-
letterSpacing: "0px",
|
|
1366
|
-
variants: {
|
|
1367
|
-
size: {
|
|
1368
|
-
1: { fontSize: "$48", lineHeight: "$64", fontWeight: "$semibold" },
|
|
1369
|
-
2: { fontSize: "$32", lineHeight: "$48", fontWeight: "$semibold" },
|
|
1370
|
-
3: { fontSize: "$24", lineHeight: "$40", fontWeight: "$semibold" },
|
|
1371
|
-
4: { fontSize: "$20", lineHeight: "$36", fontWeight: "$semibold" },
|
|
1372
|
-
5: { fontSize: "$18", lineHeight: "$24", fontWeight: "$semibold" },
|
|
1373
|
-
6: { fontSize: "$18", lineHeight: "$34", fontWeight: "$medium" },
|
|
1374
|
-
7: { fontSize: "$16", lineHeight: "$32", fontWeight: "$semibold" },
|
|
1375
|
-
8: { fontSize: "$16", lineHeight: "$32", fontWeight: "$medium" }
|
|
1376
|
-
}
|
|
1377
|
-
},
|
|
1378
|
-
defaultVariants: {
|
|
1379
|
-
size: 1
|
|
1380
|
-
}
|
|
1381
|
-
});
|
|
1382
|
-
|
|
1383
|
-
// src/components/Subtitle.tsx
|
|
1384
|
-
import { Text as Text2 } from "@radix-ui/themes";
|
|
1385
|
-
var Subtitle = styled(Text2, {
|
|
1386
|
-
fontFamily: "$default",
|
|
1387
|
-
color: "$gray100",
|
|
1388
|
-
letterSpacing: "0px",
|
|
1389
|
-
variants: {
|
|
1390
|
-
size: {
|
|
1391
|
-
1: { fontSize: "$20", lineHeight: "$36", fontWeight: "$regular" },
|
|
1392
|
-
2: { fontSize: "$18", lineHeight: "$34", fontWeight: "$regular" },
|
|
1393
|
-
3: { fontSize: "$16", lineHeight: "$32", fontWeight: "$regular" },
|
|
1394
|
-
4: { fontSize: "$14", lineHeight: "$24", fontWeight: "$regular" },
|
|
1395
|
-
5: { fontSize: "$14", lineHeight: "$16", fontWeight: "$semibold" }
|
|
1396
|
-
}
|
|
1397
|
-
},
|
|
1398
|
-
defaultVariants: {
|
|
1399
|
-
size: 1
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
|
|
1403
|
-
// src/components/BodyText.tsx
|
|
1404
|
-
import { Text as Text3 } from "@radix-ui/themes";
|
|
1405
|
-
var BodyText = styled(Text3, {
|
|
1406
|
-
fontFamily: "$default",
|
|
1407
|
-
color: "$gray100",
|
|
1408
|
-
fontWeight: "$regular",
|
|
1409
|
-
variants: {
|
|
1410
|
-
size: {
|
|
1411
|
-
1: { fontSize: "$16", lineHeight: "$24" },
|
|
1412
|
-
2: { fontSize: "$14", lineHeight: "$24" },
|
|
1413
|
-
3: { fontSize: "$13", lineHeight: "$24" },
|
|
1414
|
-
4: { fontSize: "$12", lineHeight: "$16" }
|
|
1415
|
-
}
|
|
1416
|
-
},
|
|
1417
|
-
defaultVariants: {
|
|
1418
|
-
size: "1"
|
|
1419
|
-
}
|
|
1420
|
-
});
|
|
1421
|
-
|
|
1422
|
-
// src/components/Label.tsx
|
|
1423
|
-
import { Text as Text4 } from "@radix-ui/themes";
|
|
1424
|
-
var Label = styled(Text4, {
|
|
1425
|
-
fontFamily: "$default",
|
|
1426
|
-
color: "$gray100",
|
|
1427
|
-
letterSpacing: "0px",
|
|
1428
|
-
variants: {
|
|
1429
|
-
size: {
|
|
1430
|
-
1: { fontSize: "$18", lineHeight: "$22", fontWeight: "$semibold" },
|
|
1431
|
-
2: { fontSize: "$14", lineHeight: "$16", fontWeight: "$medium" },
|
|
1432
|
-
3: { fontSize: "$14", lineHeight: "$16", fontWeight: "$regular" },
|
|
1433
|
-
4: { fontSize: "$13", lineHeight: "$16", fontWeight: "$semibold", letterSpacing: "2px" },
|
|
1434
|
-
5: { fontSize: "$13", lineHeight: "$16", fontWeight: "$medium" },
|
|
1435
|
-
6: { fontSize: "$13", lineHeight: "$16", fontWeight: "$regular" },
|
|
1436
|
-
7: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" }
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1439
|
-
defaultVariants: {
|
|
1440
|
-
size: "1"
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
|
|
1444
|
-
// src/components/BadgeText.tsx
|
|
1445
|
-
import { Text as Text5 } from "@radix-ui/themes";
|
|
1446
|
-
var BadgeText = styled(Text5, {
|
|
1447
|
-
fontFamily: "$default",
|
|
1448
|
-
color: "$gray100",
|
|
1449
|
-
letterSpacing: "0px",
|
|
1450
|
-
variants: {
|
|
1451
|
-
size: {
|
|
1452
|
-
1: { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" },
|
|
1453
|
-
2: { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1454
|
-
3: { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1455
|
-
4: { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1456
|
-
"xs": { fontSize: "$10", lineHeight: "$10", fontWeight: "$regular" },
|
|
1457
|
-
"sm": { fontSize: "$12", lineHeight: "$12", fontWeight: "$regular" },
|
|
1458
|
-
"md": { fontSize: "$14", lineHeight: "$14", fontWeight: "$regular" },
|
|
1459
|
-
"xl": { fontSize: "$16", lineHeight: "$16", fontWeight: "$regular" }
|
|
1460
|
-
}
|
|
1461
|
-
},
|
|
1462
|
-
defaultVariants: {
|
|
1463
|
-
size: "1"
|
|
1464
1337
|
}
|
|
1465
1338
|
});
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
fontFamily: "$default",
|
|
1471
|
-
color: "$gray100",
|
|
1472
|
-
letterSpacing: "0px",
|
|
1473
|
-
fontSize: "$14",
|
|
1474
|
-
lineHeight: "$16",
|
|
1475
|
-
fontWeight: "$regular"
|
|
1476
|
-
});
|
|
1477
|
-
|
|
1478
|
-
// src/components/TooltipText.tsx
|
|
1479
|
-
var TooltipText = styled("span", {
|
|
1480
|
-
fontFamily: "$default",
|
|
1481
|
-
color: "$gray100",
|
|
1482
|
-
letterSpacing: "0px",
|
|
1483
|
-
fontSize: "$13",
|
|
1484
|
-
lineHeight: "$16",
|
|
1485
|
-
fontWeight: "$regular"
|
|
1486
|
-
});
|
|
1339
|
+
function Text(_a) {
|
|
1340
|
+
var props = __objRest(_a, []);
|
|
1341
|
+
return /* @__PURE__ */ jsx2(TextStyle, __spreadValues({}, props));
|
|
1342
|
+
}
|
|
1487
1343
|
|
|
1488
1344
|
// src/components/Button.tsx
|
|
1489
1345
|
import { Button as ButtonRadix } from "@radix-ui/themes";
|
|
1490
|
-
import { jsx as
|
|
1346
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1491
1347
|
var ButtonStyled = styled(ButtonRadix, {
|
|
1492
1348
|
fontFamily: "$default",
|
|
1493
1349
|
letterSpacing: 0,
|
|
@@ -1500,19 +1356,10 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1500
1356
|
alignItems: "center",
|
|
1501
1357
|
justifyContent: "center",
|
|
1502
1358
|
gap: "$10",
|
|
1503
|
-
"&:hover": {
|
|
1504
|
-
transform: "scale(1.05)"
|
|
1505
|
-
},
|
|
1506
|
-
"&:active": {
|
|
1507
|
-
transform: "scale(0.95)"
|
|
1508
|
-
},
|
|
1509
1359
|
"&:disabled": {
|
|
1510
1360
|
cursor: "not-allowed",
|
|
1511
1361
|
transition: "none"
|
|
1512
1362
|
},
|
|
1513
|
-
"&:hover:disabled": {
|
|
1514
|
-
transform: "none"
|
|
1515
|
-
},
|
|
1516
1363
|
variants: {
|
|
1517
1364
|
color: {
|
|
1518
1365
|
brand: {},
|
|
@@ -1673,6 +1520,9 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1673
1520
|
css: {
|
|
1674
1521
|
color: "$grey50",
|
|
1675
1522
|
backgroundColor: "$brand500",
|
|
1523
|
+
borderWidth: "$2",
|
|
1524
|
+
borderStyle: "solid",
|
|
1525
|
+
borderColor: "transparent",
|
|
1676
1526
|
"&:hover": {
|
|
1677
1527
|
borderColor: "$brand700",
|
|
1678
1528
|
backgroundColor: "$blue600"
|
|
@@ -1820,12 +1670,12 @@ var ButtonStyled = styled(ButtonRadix, {
|
|
|
1820
1670
|
function Button(_a) {
|
|
1821
1671
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
1822
1672
|
const Component = asChild ? ButtonRadix : "button";
|
|
1823
|
-
return /* @__PURE__ */
|
|
1673
|
+
return /* @__PURE__ */ jsx3(ButtonStyled, __spreadValues({ as: Component }, props));
|
|
1824
1674
|
}
|
|
1825
1675
|
|
|
1826
1676
|
// src/components/ButtonGroup.tsx
|
|
1827
1677
|
import { Button as Button2, Flex } from "@radix-ui/themes";
|
|
1828
|
-
import { jsx as
|
|
1678
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1829
1679
|
var ButtonItemStyled = styled(Button2, {
|
|
1830
1680
|
fontFamily: "$default",
|
|
1831
1681
|
letterSpacing: 0,
|
|
@@ -2284,16 +2134,16 @@ var ButtonGroupStyled = styled(Flex, {
|
|
|
2284
2134
|
});
|
|
2285
2135
|
function ButtonItem(_a) {
|
|
2286
2136
|
var _b = _a, { children, active } = _b, props = __objRest(_b, ["children", "active"]);
|
|
2287
|
-
return /* @__PURE__ */
|
|
2137
|
+
return /* @__PURE__ */ jsx4(ButtonItemStyled, __spreadProps(__spreadValues({ className: active ? "active" : "" }, props), { children }));
|
|
2288
2138
|
}
|
|
2289
2139
|
function ButtonGroup(_a) {
|
|
2290
2140
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
2291
|
-
return /* @__PURE__ */
|
|
2141
|
+
return /* @__PURE__ */ jsx4(ButtonGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2292
2142
|
}
|
|
2293
2143
|
|
|
2294
2144
|
// src/components/Avatar.tsx
|
|
2295
2145
|
import { Avatar as AvatarRadix } from "@radix-ui/themes";
|
|
2296
|
-
import { jsx as
|
|
2146
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2297
2147
|
var AvatarStyled = styled(AvatarRadix, {
|
|
2298
2148
|
fontFamily: "$default",
|
|
2299
2149
|
color: "$gray100",
|
|
@@ -2338,56 +2188,12 @@ var AvatarStyled = styled(AvatarRadix, {
|
|
|
2338
2188
|
});
|
|
2339
2189
|
function Avatar(_a) {
|
|
2340
2190
|
var _b = _a, { asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
2341
|
-
return /* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsx5(AvatarStyled, __spreadValues({ as: AvatarRadix }, props));
|
|
2342
2192
|
}
|
|
2343
2193
|
|
|
2344
|
-
// src/components/Flex.tsx
|
|
2345
|
-
import { Flex as FlexRadix } from "@radix-ui/themes";
|
|
2346
|
-
var Flex2 = styled(FlexRadix, {
|
|
2347
|
-
display: "flex",
|
|
2348
|
-
variants: {
|
|
2349
|
-
direction: {
|
|
2350
|
-
row: { flexDirection: "row" },
|
|
2351
|
-
column: { flexDirection: "column" },
|
|
2352
|
-
"row-reverse": { flexDirection: "row-reverse" },
|
|
2353
|
-
"column-reverse": { flexDirection: "column-reverse" }
|
|
2354
|
-
},
|
|
2355
|
-
gap: {
|
|
2356
|
-
2: { gap: "$2" },
|
|
2357
|
-
4: { gap: "$4" },
|
|
2358
|
-
6: { gap: "$6" },
|
|
2359
|
-
8: { gap: "$8" },
|
|
2360
|
-
10: { gap: "$10" },
|
|
2361
|
-
12: { gap: "$12" },
|
|
2362
|
-
14: { gap: "$14" },
|
|
2363
|
-
16: { gap: "$16" },
|
|
2364
|
-
20: { gap: "$20" },
|
|
2365
|
-
22: { gap: "$22" },
|
|
2366
|
-
24: { gap: "$24" },
|
|
2367
|
-
32: { gap: "$32" },
|
|
2368
|
-
36: { gap: "$36" },
|
|
2369
|
-
40: { gap: "$40" },
|
|
2370
|
-
48: { gap: "$48" },
|
|
2371
|
-
56: { gap: "$56" },
|
|
2372
|
-
64: { gap: "$64" },
|
|
2373
|
-
72: { gap: "$72" },
|
|
2374
|
-
80: { gap: "$80" },
|
|
2375
|
-
full: { gap: "$full" }
|
|
2376
|
-
}
|
|
2377
|
-
},
|
|
2378
|
-
defaultVariants: {
|
|
2379
|
-
direction: "row",
|
|
2380
|
-
gap: 10
|
|
2381
|
-
}
|
|
2382
|
-
});
|
|
2383
|
-
|
|
2384
|
-
// src/components/Box.tsx
|
|
2385
|
-
import { Box as BoxRadix } from "@radix-ui/themes";
|
|
2386
|
-
var Box = BoxRadix;
|
|
2387
|
-
|
|
2388
2194
|
// src/components/TextField.tsx
|
|
2389
2195
|
import { TextField as TextFieldRadix } from "@radix-ui/themes";
|
|
2390
|
-
import { Fragment, jsx as
|
|
2196
|
+
import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
|
|
2391
2197
|
var TextFieldStyled = styled(TextFieldRadix.Root, {
|
|
2392
2198
|
height: "$40",
|
|
2393
2199
|
fontFamily: "$default",
|
|
@@ -2516,7 +2322,7 @@ function TextField(_a) {
|
|
|
2516
2322
|
]);
|
|
2517
2323
|
return /* @__PURE__ */ jsxs(TextFieldStyled, __spreadProps(__spreadValues({ color, isValid, name }, props), { children: [
|
|
2518
2324
|
children,
|
|
2519
|
-
isValid && /* @__PURE__ */
|
|
2325
|
+
isValid && /* @__PURE__ */ jsx6(TextFieldSlot, { position: "flex-end", name, color, children: /* @__PURE__ */ jsx6(Icon_default, { name: "check" }) })
|
|
2520
2326
|
] }));
|
|
2521
2327
|
}
|
|
2522
2328
|
function TextFieldSlot(_a) {
|
|
@@ -2530,7 +2336,7 @@ function TextFieldSlot(_a) {
|
|
|
2530
2336
|
"onClick"
|
|
2531
2337
|
]);
|
|
2532
2338
|
console.log("onclick", onClick);
|
|
2533
|
-
return /* @__PURE__ */
|
|
2339
|
+
return /* @__PURE__ */ jsx6(Fragment, { children: !!onClick ? /* @__PURE__ */ jsx6(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2534
2340
|
position: "absolute",
|
|
2535
2341
|
left: position === "flex-end" ? "none" : 15,
|
|
2536
2342
|
right: position === "flex-start" ? "none" : 15,
|
|
@@ -2538,7 +2344,7 @@ function TextFieldSlot(_a) {
|
|
|
2538
2344
|
zIndex: 2,
|
|
2539
2345
|
top: 0,
|
|
2540
2346
|
cursor: "pointer"
|
|
2541
|
-
}, onClick: () => onClick(), children })) : /* @__PURE__ */
|
|
2347
|
+
}, onClick: () => onClick(), children })) : /* @__PURE__ */ jsx6(TextFieldSlotStyled, __spreadProps(__spreadValues({}, __spreadProps(__spreadValues({}, props), { color: void 0 })), { style: {
|
|
2542
2348
|
float: position === "flex-start" ? "left" : "right",
|
|
2543
2349
|
order: position === "flex-start" ? 0 : 2,
|
|
2544
2350
|
marginLeft: position === "flex-start" ? 0 : 15,
|
|
@@ -2548,7 +2354,7 @@ function TextFieldSlot(_a) {
|
|
|
2548
2354
|
|
|
2549
2355
|
// src/components/RadioGroup.tsx
|
|
2550
2356
|
import { RadioGroup as RadioGroupRadix } from "@radix-ui/themes";
|
|
2551
|
-
import { jsx as
|
|
2357
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2552
2358
|
var RadioGroupStyled = styled(RadioGroupRadix.Root, {
|
|
2553
2359
|
fontFamily: "$default",
|
|
2554
2360
|
letterSpacing: "0px",
|
|
@@ -2713,7 +2519,7 @@ function RadioGroup(_a) {
|
|
|
2713
2519
|
"children",
|
|
2714
2520
|
"disabled"
|
|
2715
2521
|
]);
|
|
2716
|
-
return /* @__PURE__ */
|
|
2522
|
+
return /* @__PURE__ */ jsx7(
|
|
2717
2523
|
RadioGroupStyled,
|
|
2718
2524
|
__spreadProps(__spreadValues({
|
|
2719
2525
|
disabled
|
|
@@ -2728,12 +2534,12 @@ function RadioItem(_a) {
|
|
|
2728
2534
|
} = _b, props = __objRest(_b, [
|
|
2729
2535
|
"children"
|
|
2730
2536
|
]);
|
|
2731
|
-
return /* @__PURE__ */
|
|
2537
|
+
return /* @__PURE__ */ jsx7(RadioGroupRadix.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2732
2538
|
}
|
|
2733
2539
|
|
|
2734
2540
|
// src/components/CheckboxGroup.tsx
|
|
2735
2541
|
import { CheckboxGroup as CheckboxGroupRadix } from "@radix-ui/themes";
|
|
2736
|
-
import { jsx as
|
|
2542
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2737
2543
|
var CheckboxGroupStyled = styled(CheckboxGroupRadix.Root, {
|
|
2738
2544
|
fontFamily: "$default",
|
|
2739
2545
|
letterSpacing: "0px",
|
|
@@ -2898,7 +2704,7 @@ function CheckboxGroup(_a) {
|
|
|
2898
2704
|
} = _b, props = __objRest(_b, [
|
|
2899
2705
|
"children"
|
|
2900
2706
|
]);
|
|
2901
|
-
return /* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ jsx8(CheckboxGroupStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2902
2708
|
}
|
|
2903
2709
|
function CheckboxItem(_a) {
|
|
2904
2710
|
var _b = _a, {
|
|
@@ -2906,12 +2712,12 @@ function CheckboxItem(_a) {
|
|
|
2906
2712
|
} = _b, props = __objRest(_b, [
|
|
2907
2713
|
"children"
|
|
2908
2714
|
]);
|
|
2909
|
-
return /* @__PURE__ */
|
|
2715
|
+
return /* @__PURE__ */ jsx8(CheckboxGroupRadix.Item, __spreadProps(__spreadValues({}, props), { children }));
|
|
2910
2716
|
}
|
|
2911
2717
|
|
|
2912
2718
|
// src/components/Filter.tsx
|
|
2913
2719
|
import { Theme, DropdownMenu } from "@radix-ui/themes";
|
|
2914
|
-
import { jsx as
|
|
2720
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2915
2721
|
var FilterStyled = styled("div", {
|
|
2916
2722
|
fontFamily: "$default",
|
|
2917
2723
|
color: "$dark600",
|
|
@@ -2957,19 +2763,19 @@ function Filter(_a) {
|
|
|
2957
2763
|
"children",
|
|
2958
2764
|
"placeholder"
|
|
2959
2765
|
]);
|
|
2960
|
-
return /* @__PURE__ */
|
|
2961
|
-
/* @__PURE__ */
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
2766
|
+
return /* @__PURE__ */ jsx9(Theme, { children: /* @__PURE__ */ jsx9(DropdownMenu.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs2(FilterStyled, { children: [
|
|
2767
|
+
/* @__PURE__ */ jsx9(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsxs2("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
2768
|
+
/* @__PURE__ */ jsx9(Icon, { name: "filter" }),
|
|
2769
|
+
/* @__PURE__ */ jsx9("span", { children: placeholder || "Fitrar" }),
|
|
2770
|
+
/* @__PURE__ */ jsx9(DropdownMenu.TriggerIcon, {})
|
|
2965
2771
|
] }) }),
|
|
2966
|
-
/* @__PURE__ */
|
|
2772
|
+
/* @__PURE__ */ jsx9(
|
|
2967
2773
|
FilterContentStyled,
|
|
2968
2774
|
{
|
|
2969
2775
|
avoidCollisions: false,
|
|
2970
2776
|
align: "start",
|
|
2971
2777
|
alignOffset: -14,
|
|
2972
|
-
children: /* @__PURE__ */
|
|
2778
|
+
children: /* @__PURE__ */ jsx9(CheckboxGroup, { children })
|
|
2973
2779
|
}
|
|
2974
2780
|
)
|
|
2975
2781
|
] }) })) });
|
|
@@ -2980,12 +2786,12 @@ function FilterItem(_a) {
|
|
|
2980
2786
|
} = _b, props = __objRest(_b, [
|
|
2981
2787
|
"children"
|
|
2982
2788
|
]);
|
|
2983
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ jsx9(CheckboxItem, __spreadProps(__spreadValues({}, props), { style: { padding: "8px 12px" }, children }));
|
|
2984
2790
|
}
|
|
2985
2791
|
|
|
2986
2792
|
// src/components/Dropdown.tsx
|
|
2987
2793
|
import { Theme as Theme2, DropdownMenu as DropdownMenuRadix } from "@radix-ui/themes";
|
|
2988
|
-
import { jsx as
|
|
2794
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2989
2795
|
var DropdownMenuStyled = styled("div", {
|
|
2990
2796
|
fontFamily: "$default",
|
|
2991
2797
|
color: "$dark600",
|
|
@@ -3043,18 +2849,18 @@ function DropdownMenu2(_a) {
|
|
|
3043
2849
|
"children",
|
|
3044
2850
|
"placeholder"
|
|
3045
2851
|
]);
|
|
3046
|
-
return /* @__PURE__ */
|
|
3047
|
-
/* @__PURE__ */
|
|
3048
|
-
/* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */
|
|
2852
|
+
return /* @__PURE__ */ jsx10(Theme2, { children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Root, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs3(DropdownMenuStyled, { children: [
|
|
2853
|
+
/* @__PURE__ */ jsx10(DropdownMenuRadix.Trigger, { children: /* @__PURE__ */ jsxs3("button", { "aria-label": placeholder || "Fitrar", children: [
|
|
2854
|
+
/* @__PURE__ */ jsx10("span", { children: placeholder || "Fitrar" }),
|
|
2855
|
+
/* @__PURE__ */ jsx10(DropdownMenuRadix.TriggerIcon, {})
|
|
3050
2856
|
] }) }),
|
|
3051
|
-
/* @__PURE__ */
|
|
2857
|
+
/* @__PURE__ */ jsx10(
|
|
3052
2858
|
DropdownMenuContentStyled,
|
|
3053
2859
|
{
|
|
3054
2860
|
avoidCollisions: false,
|
|
3055
2861
|
align: "start",
|
|
3056
2862
|
alignOffset: -14,
|
|
3057
|
-
children: /* @__PURE__ */
|
|
2863
|
+
children: /* @__PURE__ */ jsx10(DropdownMenuRadix.Group, { children })
|
|
3058
2864
|
}
|
|
3059
2865
|
)
|
|
3060
2866
|
] }) })) });
|
|
@@ -3065,13 +2871,13 @@ function DropdownMenuItem(_a) {
|
|
|
3065
2871
|
} = _b, props = __objRest(_b, [
|
|
3066
2872
|
"children"
|
|
3067
2873
|
]);
|
|
3068
|
-
return /* @__PURE__ */
|
|
2874
|
+
return /* @__PURE__ */ jsx10(DropdownMenuItemStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3069
2875
|
}
|
|
3070
2876
|
|
|
3071
2877
|
// src/components/Badge.tsx
|
|
3072
2878
|
import React from "react";
|
|
3073
2879
|
import { Badge as BadgeRadix } from "@radix-ui/themes";
|
|
3074
|
-
import { jsx as
|
|
2880
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
3075
2881
|
var BadgeStyled = styled(BadgeRadix, {
|
|
3076
2882
|
fontFamily: "$default",
|
|
3077
2883
|
borderRadius: "$sm",
|
|
@@ -3169,20 +2975,761 @@ var BadgeStyled = styled(BadgeRadix, {
|
|
|
3169
2975
|
});
|
|
3170
2976
|
function Badge(_a) {
|
|
3171
2977
|
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
3172
|
-
return /* @__PURE__ */
|
|
2978
|
+
return /* @__PURE__ */ jsx11(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: React.Children.map(children, (child) => {
|
|
3173
2979
|
if (React.isValidElement(child)) {
|
|
3174
2980
|
return React.cloneElement(child, { size: props.size });
|
|
3175
2981
|
}
|
|
3176
2982
|
return child;
|
|
3177
2983
|
}) }));
|
|
3178
2984
|
}
|
|
2985
|
+
|
|
2986
|
+
// src/components/Modal.tsx
|
|
2987
|
+
import { Dialog as ModalRadix } from "@radix-ui/themes";
|
|
2988
|
+
|
|
2989
|
+
// src/components/Box.tsx
|
|
2990
|
+
import { Box as BoxRadix } from "@radix-ui/themes";
|
|
2991
|
+
var Box = BoxRadix;
|
|
2992
|
+
|
|
2993
|
+
// src/components/Flex.tsx
|
|
2994
|
+
import { Flex as FlexRadix } from "@radix-ui/themes";
|
|
2995
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2996
|
+
var FlexStyled = styled(FlexRadix, {
|
|
2997
|
+
variants: {
|
|
2998
|
+
display: {
|
|
2999
|
+
"flex": { display: "flex" },
|
|
3000
|
+
"inline-flex": { display: "inline-flex" }
|
|
3001
|
+
},
|
|
3002
|
+
align: {
|
|
3003
|
+
start: { alignItems: "flex-start" },
|
|
3004
|
+
center: { alignItems: "center" },
|
|
3005
|
+
end: { alignItems: "flex-end" },
|
|
3006
|
+
stretch: { alignItems: "stretch" },
|
|
3007
|
+
baseline: { alignItems: "baseline" }
|
|
3008
|
+
},
|
|
3009
|
+
justify: {
|
|
3010
|
+
start: { justifyContent: "flex-start" },
|
|
3011
|
+
center: { justifyContent: "center" },
|
|
3012
|
+
end: { justifyContent: "flex-end" },
|
|
3013
|
+
between: { justifyContent: "space-between" },
|
|
3014
|
+
around: { justifyContent: "space-around" },
|
|
3015
|
+
evenly: { justifyContent: "space-evenly" }
|
|
3016
|
+
},
|
|
3017
|
+
direction: {
|
|
3018
|
+
row: { flexDirection: "row" },
|
|
3019
|
+
column: { flexDirection: "column" },
|
|
3020
|
+
"row-reverse": { flexDirection: "row-reverse" },
|
|
3021
|
+
"column-reverse": { flexDirection: "column-reverse" }
|
|
3022
|
+
},
|
|
3023
|
+
gap: {
|
|
3024
|
+
2: { gap: "$2" },
|
|
3025
|
+
4: { gap: "$4" },
|
|
3026
|
+
6: { gap: "$6" },
|
|
3027
|
+
8: { gap: "$8" },
|
|
3028
|
+
10: { gap: "$10" },
|
|
3029
|
+
12: { gap: "$12" },
|
|
3030
|
+
14: { gap: "$14" },
|
|
3031
|
+
16: { gap: "$16" },
|
|
3032
|
+
20: { gap: "$20" },
|
|
3033
|
+
22: { gap: "$22" },
|
|
3034
|
+
24: { gap: "$24" },
|
|
3035
|
+
32: { gap: "$32" },
|
|
3036
|
+
36: { gap: "$36" },
|
|
3037
|
+
40: { gap: "$40" },
|
|
3038
|
+
48: { gap: "$48" },
|
|
3039
|
+
56: { gap: "$56" },
|
|
3040
|
+
64: { gap: "$64" },
|
|
3041
|
+
72: { gap: "$72" },
|
|
3042
|
+
80: { gap: "$80" },
|
|
3043
|
+
full: { gap: "$full" }
|
|
3044
|
+
},
|
|
3045
|
+
gapY: {
|
|
3046
|
+
2: { gap: "$2" },
|
|
3047
|
+
4: { gap: "$4" },
|
|
3048
|
+
6: { gap: "$6" },
|
|
3049
|
+
8: { gap: "$8" },
|
|
3050
|
+
10: { gap: "$10" },
|
|
3051
|
+
12: { gap: "$12" },
|
|
3052
|
+
14: { gap: "$14" },
|
|
3053
|
+
16: { gap: "$16" },
|
|
3054
|
+
20: { gap: "$20" },
|
|
3055
|
+
22: { gap: "$22" },
|
|
3056
|
+
24: { gap: "$24" },
|
|
3057
|
+
32: { gap: "$32" },
|
|
3058
|
+
36: { gap: "$36" },
|
|
3059
|
+
40: { gap: "$40" },
|
|
3060
|
+
48: { gap: "$48" },
|
|
3061
|
+
56: { gap: "$56" },
|
|
3062
|
+
64: { gap: "$64" },
|
|
3063
|
+
72: { gap: "$72" },
|
|
3064
|
+
80: { gap: "$80" },
|
|
3065
|
+
full: { gap: "$full" }
|
|
3066
|
+
},
|
|
3067
|
+
gapX: {
|
|
3068
|
+
2: { gap: "$2" },
|
|
3069
|
+
4: { gap: "$4" },
|
|
3070
|
+
6: { gap: "$6" },
|
|
3071
|
+
8: { gap: "$8" },
|
|
3072
|
+
10: { gap: "$10" },
|
|
3073
|
+
12: { gap: "$12" },
|
|
3074
|
+
14: { gap: "$14" },
|
|
3075
|
+
16: { gap: "$16" },
|
|
3076
|
+
20: { gap: "$20" },
|
|
3077
|
+
22: { gap: "$22" },
|
|
3078
|
+
24: { gap: "$24" },
|
|
3079
|
+
32: { gap: "$32" },
|
|
3080
|
+
36: { gap: "$36" },
|
|
3081
|
+
40: { gap: "$40" },
|
|
3082
|
+
48: { gap: "$48" },
|
|
3083
|
+
56: { gap: "$56" },
|
|
3084
|
+
64: { gap: "$64" },
|
|
3085
|
+
72: { gap: "$72" },
|
|
3086
|
+
80: { gap: "$80" },
|
|
3087
|
+
full: { gap: "$full" }
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
defaultVariants: {
|
|
3091
|
+
display: "flex",
|
|
3092
|
+
direction: "row",
|
|
3093
|
+
gap: 10
|
|
3094
|
+
}
|
|
3095
|
+
});
|
|
3096
|
+
function Flex2(_a) {
|
|
3097
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3098
|
+
return /* @__PURE__ */ jsx12(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
// src/components/Modal.tsx
|
|
3102
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
3103
|
+
var ModalStyled = styled("div", {
|
|
3104
|
+
fontFamily: "$default",
|
|
3105
|
+
lineHeight: "$base",
|
|
3106
|
+
fontSize: "$13",
|
|
3107
|
+
borderRadius: "$sm"
|
|
3108
|
+
});
|
|
3109
|
+
var ModalContentStyled = styled(ModalRadix.Content, {
|
|
3110
|
+
fontFamily: "$default",
|
|
3111
|
+
lineHeight: "$base",
|
|
3112
|
+
fontSize: "$13",
|
|
3113
|
+
maxWidth: "502px",
|
|
3114
|
+
width: "100%",
|
|
3115
|
+
border: "1px solid $neutral",
|
|
3116
|
+
borderRadius: "$2xl",
|
|
3117
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)"
|
|
3118
|
+
});
|
|
3119
|
+
var ModalHeaderStyled = styled("div", {
|
|
3120
|
+
borderBottom: "1px solid $neutral300",
|
|
3121
|
+
padding: "$16 $24",
|
|
3122
|
+
textAlign: "center",
|
|
3123
|
+
position: "relative",
|
|
3124
|
+
display: "flex",
|
|
3125
|
+
alignItems: "center",
|
|
3126
|
+
justifyContent: "center"
|
|
3127
|
+
});
|
|
3128
|
+
var ModalIconClose = styled(Icon_default, {
|
|
3129
|
+
position: "absolute",
|
|
3130
|
+
right: "$24",
|
|
3131
|
+
cursor: "pointer"
|
|
3132
|
+
});
|
|
3133
|
+
var ModalFooterStyled = styled("div", {
|
|
3134
|
+
borderTop: "1px solid $neutral300",
|
|
3135
|
+
padding: "$16 $24",
|
|
3136
|
+
".modal-footer-flex": {
|
|
3137
|
+
justifyContent: "flex-end"
|
|
3138
|
+
}
|
|
3139
|
+
});
|
|
3140
|
+
var ModalTitleStyled = styled(ModalRadix.Title, {
|
|
3141
|
+
fontFamily: "$default",
|
|
3142
|
+
lineHeight: "$base",
|
|
3143
|
+
fontSize: "$18",
|
|
3144
|
+
fontWeight: "medium",
|
|
3145
|
+
fontStyle: "normal",
|
|
3146
|
+
textTransform: "uppercase"
|
|
3147
|
+
});
|
|
3148
|
+
function Modal(_a) {
|
|
3149
|
+
var _b = _a, { children, title, trigger, cancel, cancelText, action, actionText, onAction } = _b, props = __objRest(_b, ["children", "title", "trigger", "cancel", "cancelText", "action", "actionText", "onAction"]);
|
|
3150
|
+
return /* @__PURE__ */ jsx13(ModalRadix.Root, { children: /* @__PURE__ */ jsxs4(ModalStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3151
|
+
/* @__PURE__ */ jsx13(ModalRadix.Trigger, { children: trigger }),
|
|
3152
|
+
/* @__PURE__ */ jsxs4(ModalContentStyled, { children: [
|
|
3153
|
+
/* @__PURE__ */ jsxs4(ModalHeaderStyled, { children: [
|
|
3154
|
+
title && /* @__PURE__ */ jsx13(ModalTitleStyled, { children: title }),
|
|
3155
|
+
/* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
|
|
3156
|
+
] }),
|
|
3157
|
+
/* @__PURE__ */ jsx13(Box, { children }),
|
|
3158
|
+
cancel || action ? /* @__PURE__ */ jsx13(ModalFooterStyled, { children: /* @__PURE__ */ jsxs4(Flex2, { gap: "10", justify: "end", width: "100%", className: "modal-footer-flex", children: [
|
|
3159
|
+
action && onAction && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "contained", color: "brand", onClick: onAction, children: actionText ? actionText : "Salvar" }) }),
|
|
3160
|
+
cancel && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "outlined", color: "neutral", children: cancelText ? cancelText : "cancelar" }) })
|
|
3161
|
+
] }) }) : null
|
|
3162
|
+
] })
|
|
3163
|
+
] })) });
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
// src/components/Alert.tsx
|
|
3167
|
+
import { Theme as Theme3, AlertDialog } from "@radix-ui/themes";
|
|
3168
|
+
import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
3169
|
+
var AlertDialogSimpleStyled = styled(AlertDialog.Content, {
|
|
3170
|
+
fontFamily: "$default",
|
|
3171
|
+
lineHeight: "$base",
|
|
3172
|
+
fontSize: "$13",
|
|
3173
|
+
padding: "$16",
|
|
3174
|
+
borderRadius: "$sm",
|
|
3175
|
+
display: "flex",
|
|
3176
|
+
alignItems: "center",
|
|
3177
|
+
justifyContent: "space-between",
|
|
3178
|
+
gap: "$10",
|
|
3179
|
+
marginTop: "$10",
|
|
3180
|
+
variants: {
|
|
3181
|
+
color: {
|
|
3182
|
+
error: {
|
|
3183
|
+
backgroundColor: "$error50",
|
|
3184
|
+
border: "1px solid $error600",
|
|
3185
|
+
color: "$error600",
|
|
3186
|
+
"svg": {
|
|
3187
|
+
color: "$error600"
|
|
3188
|
+
}
|
|
3189
|
+
},
|
|
3190
|
+
warning: {
|
|
3191
|
+
backgroundColor: "$warning50",
|
|
3192
|
+
border: "1px solid $warning600",
|
|
3193
|
+
color: "$warning600",
|
|
3194
|
+
"svg": {
|
|
3195
|
+
color: "$warning600"
|
|
3196
|
+
}
|
|
3197
|
+
},
|
|
3198
|
+
success: {
|
|
3199
|
+
backgroundColor: "$success50",
|
|
3200
|
+
border: "1px solid $success600",
|
|
3201
|
+
color: "$success600",
|
|
3202
|
+
"svg": {
|
|
3203
|
+
color: "$success600"
|
|
3204
|
+
}
|
|
3205
|
+
},
|
|
3206
|
+
info: {
|
|
3207
|
+
backgroundColor: "$info50",
|
|
3208
|
+
border: "1px solid $info600",
|
|
3209
|
+
color: "$info600",
|
|
3210
|
+
"svg": {
|
|
3211
|
+
color: "$info600"
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
defaultVariants: {
|
|
3217
|
+
color: "success"
|
|
3218
|
+
}
|
|
3219
|
+
});
|
|
3220
|
+
var AlertDialogCompleteStyled = styled(AlertDialog.Content, {
|
|
3221
|
+
fontFamily: "$default",
|
|
3222
|
+
lineHeight: "$base",
|
|
3223
|
+
fontSize: "$13",
|
|
3224
|
+
borderRadius: "$sm",
|
|
3225
|
+
marginTop: "$10",
|
|
3226
|
+
maxWidth: "440px",
|
|
3227
|
+
width: "100%",
|
|
3228
|
+
boxShadow: "0px 0px 15px 5px rgba(0, 0, 0, 0.05)",
|
|
3229
|
+
border: "1px solid $neutral200",
|
|
3230
|
+
".le-alert-dialog-row": {
|
|
3231
|
+
display: "flex",
|
|
3232
|
+
flexDirection: "column",
|
|
3233
|
+
flexWrap: "wrap",
|
|
3234
|
+
alignItems: "center",
|
|
3235
|
+
textAlign: "center",
|
|
3236
|
+
justifyContent: "space-between",
|
|
3237
|
+
gap: "$10"
|
|
3238
|
+
},
|
|
3239
|
+
variants: {
|
|
3240
|
+
color: {}
|
|
3241
|
+
}
|
|
3242
|
+
});
|
|
3243
|
+
var AlertDialogDescriptionStyled = styled(AlertDialog.Description, {
|
|
3244
|
+
padding: 0,
|
|
3245
|
+
margin: 0
|
|
3246
|
+
});
|
|
3247
|
+
var AlertDialogTitleStyled = styled(AlertDialog.Title, {
|
|
3248
|
+
fontFamily: "$default",
|
|
3249
|
+
lineHeight: "$base",
|
|
3250
|
+
fontSize: "$20",
|
|
3251
|
+
fontWeight: "$semibold",
|
|
3252
|
+
padding: 0,
|
|
3253
|
+
margin: 0
|
|
3254
|
+
});
|
|
3255
|
+
var AlertDialogSubtitleStyled = styled(Text, {
|
|
3256
|
+
margin: 0,
|
|
3257
|
+
fontSize: "$48",
|
|
3258
|
+
color: "$gray100",
|
|
3259
|
+
fontWeight: "$semibold"
|
|
3260
|
+
});
|
|
3261
|
+
var AlertDialogRowStyled = styled("div", {
|
|
3262
|
+
padding: "$32 $24"
|
|
3263
|
+
});
|
|
3264
|
+
var AlertDialoghrStyled = styled("hr", {
|
|
3265
|
+
margin: 0,
|
|
3266
|
+
padding: 0,
|
|
3267
|
+
border: "none",
|
|
3268
|
+
borderTop: "1px solid $neutral200"
|
|
3269
|
+
});
|
|
3270
|
+
function Alert(_a) {
|
|
3271
|
+
var _b = _a, {
|
|
3272
|
+
color,
|
|
3273
|
+
trigger,
|
|
3274
|
+
completAlert,
|
|
3275
|
+
simpleAlert
|
|
3276
|
+
} = _b, props = __objRest(_b, [
|
|
3277
|
+
"color",
|
|
3278
|
+
"trigger",
|
|
3279
|
+
"completAlert",
|
|
3280
|
+
"simpleAlert"
|
|
3281
|
+
]);
|
|
3282
|
+
console.log("completAlert", completAlert, " simpleAlert", simpleAlert);
|
|
3283
|
+
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
3284
|
+
simpleAlert && /* @__PURE__ */ jsx14(Theme3, { children: /* @__PURE__ */ jsxs5(AlertDialog.Root, { children: [
|
|
3285
|
+
/* @__PURE__ */ jsx14(AlertDialog.Trigger, { children: trigger }),
|
|
3286
|
+
/* @__PURE__ */ jsx14(Fragment2, { children: /* @__PURE__ */ jsxs5(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
3287
|
+
/* @__PURE__ */ jsx14(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
|
|
3288
|
+
simpleAlert.cancel && /* @__PURE__ */ jsx14(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx14(Button, { variant: "text", children: /* @__PURE__ */ jsx14(Icon_default, { name: "close" }) }) })
|
|
3289
|
+
] })) })
|
|
3290
|
+
] }) }),
|
|
3291
|
+
completAlert && /* @__PURE__ */ jsx14(Theme3, { children: /* @__PURE__ */ jsxs5(AlertDialog.Root, { children: [
|
|
3292
|
+
/* @__PURE__ */ jsx14(AlertDialog.Trigger, { children: trigger }),
|
|
3293
|
+
/* @__PURE__ */ jsxs5(AlertDialogCompleteStyled, { children: [
|
|
3294
|
+
/* @__PURE__ */ jsxs5(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
|
|
3295
|
+
color === "success" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3296
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_9995)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM40.3594 22.8594L26.3594 36.8594C25.3312 37.8875 23.6688 37.8875 22.6516 36.8594L15.6516 29.8594C14.6234 28.8312 14.6234 27.1688 15.6516 26.1516C16.6797 25.1344 18.3422 25.1234 19.3594 26.1516L24.5 31.2922L36.6406 19.1406C37.6688 18.1125 39.3312 18.1125 40.3484 19.1406C41.3656 20.1688 41.3766 21.8312 40.3484 22.8484L40.3594 22.8594Z", fill: "#1E8535" }) }),
|
|
3297
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_9995", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3298
|
+
] }),
|
|
3299
|
+
color === "error" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3300
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_10022)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM19.1406 19.1406C20.1687 18.1125 21.8312 18.1125 22.8484 19.1406L27.9891 24.2812L33.1297 19.1406C34.1578 18.1125 35.8203 18.1125 36.8375 19.1406C37.8547 20.1687 37.8656 21.8312 36.8375 22.8484L31.6969 27.9891L36.8375 33.1297C37.8656 34.1578 37.8656 35.8203 36.8375 36.8375C35.8094 37.8547 34.1469 37.8656 33.1297 36.8375L27.9891 31.6969L22.8484 36.8375C21.8203 37.8656 20.1578 37.8656 19.1406 36.8375C18.1234 35.8094 18.1125 34.1469 19.1406 33.1297L24.2812 27.9891L19.1406 22.8484C18.1125 21.8203 18.1125 20.1578 19.1406 19.1406Z", fill: "#AD1F2B" }) }),
|
|
3301
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_10022", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3302
|
+
] }),
|
|
3303
|
+
color === "warning" && /* @__PURE__ */ jsxs5("svg", { width: "56", height: "56", viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3304
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1428_10038)", children: /* @__PURE__ */ jsx14("path", { d: "M28 56C35.4261 56 42.548 53.05 47.799 47.799C53.05 42.548 56 35.4261 56 28C56 20.5739 53.05 13.452 47.799 8.20101C42.548 2.94999 35.4261 0 28 0C20.5739 0 13.452 2.94999 8.20101 8.20101C2.94999 13.452 0 20.5739 0 28C0 35.4261 2.94999 42.548 8.20101 47.799C13.452 53.05 20.5739 56 28 56ZM28 14C29.4547 14 30.625 15.1703 30.625 16.625V28.875C30.625 30.3297 29.4547 31.5 28 31.5C26.5453 31.5 25.375 30.3297 25.375 28.875V16.625C25.375 15.1703 26.5453 14 28 14ZM24.5 38.5C24.5 37.5717 24.8687 36.6815 25.5251 36.0251C26.1815 35.3688 27.0717 35 28 35C28.9283 35 29.8185 35.3688 30.4749 36.0251C31.1313 36.6815 31.5 37.5717 31.5 38.5C31.5 39.4283 31.1313 40.3185 30.4749 40.9749C29.8185 41.6312 28.9283 42 28 42C27.0717 42 26.1815 41.6312 25.5251 40.9749C24.8687 40.3185 24.5 39.4283 24.5 38.5Z", fill: "#CC9A06" }) }),
|
|
3305
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1428_10038", children: /* @__PURE__ */ jsx14("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
3306
|
+
] }),
|
|
3307
|
+
color === "info" && /* @__PURE__ */ jsxs5("svg", { width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3308
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1645_46)", children: /* @__PURE__ */ jsx14("path", { d: "M20 40C25.3043 40 30.3914 37.8929 34.1421 34.1421C37.8929 30.3914 40 25.3043 40 20C40 14.6957 37.8929 9.60859 34.1421 5.85786C30.3914 2.10714 25.3043 0 20 0C14.6957 0 9.60859 2.10714 5.85786 5.85786C2.10714 9.60859 0 14.6957 0 20C0 25.3043 2.10714 30.3914 5.85786 34.1421C9.60859 37.8929 14.6957 40 20 40ZM20 10C21.0391 10 21.875 10.8359 21.875 11.875V20.625C21.875 21.6641 21.0391 22.5 20 22.5C18.9609 22.5 18.125 21.6641 18.125 20.625V11.875C18.125 10.8359 18.9609 10 20 10ZM17.5 27.5C17.5 26.837 17.7634 26.2011 18.2322 25.7322C18.7011 25.2634 19.337 25 20 25C20.663 25 21.2989 25.2634 21.7678 25.7322C22.2366 26.2011 22.5 26.837 22.5 27.5C22.5 28.163 22.2366 28.7989 21.7678 29.2678C21.2989 29.7366 20.663 30 20 30C19.337 30 18.7011 29.7366 18.2322 29.2678C17.7634 28.7989 17.5 28.163 17.5 27.5Z", fill: "#9FB6C7" }) }),
|
|
3309
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1645_46", children: /* @__PURE__ */ jsx14("rect", { width: "40", height: "40", fill: "white" }) }) })
|
|
3310
|
+
] }),
|
|
3311
|
+
completAlert.title && /* @__PURE__ */ jsx14(AlertDialogTitleStyled, { children: completAlert.title }),
|
|
3312
|
+
/* @__PURE__ */ jsxs5(AlertDialogDescriptionStyled, { children: [
|
|
3313
|
+
completAlert.subtitle && /* @__PURE__ */ jsx14(Text, { css: {
|
|
3314
|
+
fontSize: "$16"
|
|
3315
|
+
}, asChild: true, children: /* @__PURE__ */ jsx14("h2", { children: completAlert.subtitle }) }),
|
|
3316
|
+
completAlert.description
|
|
3317
|
+
] })
|
|
3318
|
+
] }),
|
|
3319
|
+
completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ jsx14(AlertDialoghrStyled, {}) : null,
|
|
3320
|
+
/* @__PURE__ */ jsx14(AlertDialogRowStyled, { children: /* @__PURE__ */ jsxs5(Flex2, { gap: "10", justify: "end", width: "100%", children: [
|
|
3321
|
+
completAlert.onAction && /* @__PURE__ */ jsx14(AlertDialog.Action, { children: /* @__PURE__ */ jsx14(Button, { variant: "contained", onClick: completAlert.onAction, children: completAlert.actionText || "Salvar" }) }),
|
|
3322
|
+
completAlert.cancel && /* @__PURE__ */ jsx14(AlertDialog.Cancel, { children: /* @__PURE__ */ jsx14(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
|
|
3323
|
+
] }) })
|
|
3324
|
+
] })
|
|
3325
|
+
] }) })
|
|
3326
|
+
] });
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
// src/components/Switch.tsx
|
|
3330
|
+
import { Switch as RadixSwitch } from "@radix-ui/themes";
|
|
3331
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
3332
|
+
var SwitchStyled = styled(RadixSwitch, {
|
|
3333
|
+
all: "unset",
|
|
3334
|
+
borderRadius: "$full",
|
|
3335
|
+
position: "relative",
|
|
3336
|
+
display: "flex",
|
|
3337
|
+
alignItems: "center",
|
|
3338
|
+
justifyContent: "center",
|
|
3339
|
+
transition: "all 0.3s",
|
|
3340
|
+
cursor: "pointer",
|
|
3341
|
+
"&::before": {
|
|
3342
|
+
content: '""',
|
|
3343
|
+
position: "absolute",
|
|
3344
|
+
borderRadius: "$full",
|
|
3345
|
+
pointerEvents: "none",
|
|
3346
|
+
cursor: "pointer"
|
|
3347
|
+
},
|
|
3348
|
+
"span": {
|
|
3349
|
+
position: "absolute",
|
|
3350
|
+
top: "50%",
|
|
3351
|
+
left: 0,
|
|
3352
|
+
transform: "translate(0, -50%)",
|
|
3353
|
+
borderRadius: "50%",
|
|
3354
|
+
transition: "all 0.3s",
|
|
3355
|
+
cursor: "pointer",
|
|
3356
|
+
borderWidth: "1px",
|
|
3357
|
+
borderStyle: "solid",
|
|
3358
|
+
boxShadow: "0px 0px 4px 0px rgba(0, 0, 0, 0.24)"
|
|
3359
|
+
},
|
|
3360
|
+
'&[data-state="checked"] span': {
|
|
3361
|
+
left: "auto",
|
|
3362
|
+
transform: "translate(50%, -50%)"
|
|
3363
|
+
},
|
|
3364
|
+
variants: {
|
|
3365
|
+
color: {
|
|
3366
|
+
brand: {
|
|
3367
|
+
"&::before": {
|
|
3368
|
+
backgroundColor: "$brand50"
|
|
3369
|
+
},
|
|
3370
|
+
"span": {
|
|
3371
|
+
backgroundColor: "$dark50",
|
|
3372
|
+
borderColor: "$neutral300"
|
|
3373
|
+
},
|
|
3374
|
+
'&[data-state="checked"] span': {
|
|
3375
|
+
backgroundColor: "$brand500",
|
|
3376
|
+
borderColor: "$brand500"
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
},
|
|
3380
|
+
size: {
|
|
3381
|
+
sm: {
|
|
3382
|
+
width: "32px",
|
|
3383
|
+
height: "20px",
|
|
3384
|
+
"&::before": {
|
|
3385
|
+
width: "$32",
|
|
3386
|
+
height: "$12"
|
|
3387
|
+
},
|
|
3388
|
+
"span": {
|
|
3389
|
+
width: "$20",
|
|
3390
|
+
height: "$20"
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
md: {
|
|
3394
|
+
width: "40px",
|
|
3395
|
+
height: "20px",
|
|
3396
|
+
"&::before": {
|
|
3397
|
+
width: "40px",
|
|
3398
|
+
height: "16px"
|
|
3399
|
+
},
|
|
3400
|
+
"span": {
|
|
3401
|
+
width: "24px",
|
|
3402
|
+
height: "24px"
|
|
3403
|
+
}
|
|
3404
|
+
},
|
|
3405
|
+
lg: {
|
|
3406
|
+
width: "56px",
|
|
3407
|
+
height: "32px",
|
|
3408
|
+
"&::before": {
|
|
3409
|
+
width: "56px",
|
|
3410
|
+
height: "24px"
|
|
3411
|
+
},
|
|
3412
|
+
"span": {
|
|
3413
|
+
width: "32px",
|
|
3414
|
+
height: "32px"
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
},
|
|
3419
|
+
defaultVariants: {
|
|
3420
|
+
size: "md",
|
|
3421
|
+
color: "brand"
|
|
3422
|
+
}
|
|
3423
|
+
});
|
|
3424
|
+
function Switch(props) {
|
|
3425
|
+
return /* @__PURE__ */ jsx15(SwitchStyled, __spreadValues({ color: "brand", defaultChecked: true }, props));
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
// src/components/Step.tsx
|
|
3429
|
+
import React2 from "react";
|
|
3430
|
+
import { Box as Box2, Tabs as StepRadix } from "@radix-ui/themes";
|
|
3431
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
3432
|
+
var StepStyled = styled("div", {
|
|
3433
|
+
fontFamily: "$default",
|
|
3434
|
+
color: "$gray100",
|
|
3435
|
+
letterSpacing: "0px"
|
|
3436
|
+
});
|
|
3437
|
+
var StepTriggerStyled = styled(StepRadix.Trigger, {
|
|
3438
|
+
all: "unset",
|
|
3439
|
+
position: "relative",
|
|
3440
|
+
display: "flex",
|
|
3441
|
+
alignItems: "center",
|
|
3442
|
+
justifyContent: "center",
|
|
3443
|
+
fontSize: "$16",
|
|
3444
|
+
fontWeight: "$medium",
|
|
3445
|
+
minWidth: "32px",
|
|
3446
|
+
minHeight: "32px",
|
|
3447
|
+
marginRight: "40px",
|
|
3448
|
+
"&:last-of-type": {
|
|
3449
|
+
marginRight: 0
|
|
3450
|
+
},
|
|
3451
|
+
"& > span:first-of-type": {
|
|
3452
|
+
width: "32px",
|
|
3453
|
+
height: "32px",
|
|
3454
|
+
borderRadius: "$full",
|
|
3455
|
+
backgroundColor: "$neutral50",
|
|
3456
|
+
border: "1px solid $neutral200",
|
|
3457
|
+
color: "$gray700",
|
|
3458
|
+
display: "flex",
|
|
3459
|
+
alignItems: "center",
|
|
3460
|
+
justifyContent: "center",
|
|
3461
|
+
zIndex: 1,
|
|
3462
|
+
position: "relative"
|
|
3463
|
+
},
|
|
3464
|
+
'&[data-state="active"] > span:first-of-type': {
|
|
3465
|
+
backgroundColor: "$blue500",
|
|
3466
|
+
borderColor: "$blue500",
|
|
3467
|
+
color: "white"
|
|
3468
|
+
},
|
|
3469
|
+
"& > span:last-of-type": {
|
|
3470
|
+
display: "none"
|
|
3471
|
+
},
|
|
3472
|
+
"&:not(:first-of-type)::before": {
|
|
3473
|
+
content: '""',
|
|
3474
|
+
position: "absolute",
|
|
3475
|
+
top: "50%",
|
|
3476
|
+
right: "calc(100% + 4px)",
|
|
3477
|
+
transform: "translateY(-50%)",
|
|
3478
|
+
width: "32px",
|
|
3479
|
+
height: "8px",
|
|
3480
|
+
borderRadius: "$sm",
|
|
3481
|
+
backgroundColor: "$neutral50",
|
|
3482
|
+
zIndex: 0
|
|
3483
|
+
},
|
|
3484
|
+
'&[data-state="active"]::before': {
|
|
3485
|
+
backgroundColor: "$blue500"
|
|
3486
|
+
},
|
|
3487
|
+
'&[data-filled="true"] > span:first-of-type': {
|
|
3488
|
+
backgroundColor: "$blue500",
|
|
3489
|
+
borderColor: "$blue500",
|
|
3490
|
+
color: "white"
|
|
3491
|
+
},
|
|
3492
|
+
'&[data-filled="true"]::before': {
|
|
3493
|
+
backgroundColor: "$blue500"
|
|
3494
|
+
}
|
|
3495
|
+
});
|
|
3496
|
+
var StepListStyled = styled(StepRadix.List, {
|
|
3497
|
+
display: "flex",
|
|
3498
|
+
alignItems: "center",
|
|
3499
|
+
justifyContent: "flex-start",
|
|
3500
|
+
gap: "$4"
|
|
3501
|
+
});
|
|
3502
|
+
function Step(_a) {
|
|
3503
|
+
var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
|
|
3504
|
+
return /* @__PURE__ */ jsx16(StepRadix.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ jsx16(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
|
|
3505
|
+
}
|
|
3506
|
+
function StepTrigger(_a) {
|
|
3507
|
+
var _b = _a, { value, children, currentStep } = _b, props = __objRest(_b, ["value", "children", "currentStep"]);
|
|
3508
|
+
const isActiveOrPrevious = currentStep !== void 0 && value <= currentStep;
|
|
3509
|
+
console.log(isActiveOrPrevious, "isActiveOrPrevius", currentStep);
|
|
3510
|
+
return /* @__PURE__ */ jsx16(StepTriggerStyled, __spreadProps(__spreadValues({ "data-filled": isActiveOrPrevious, value: String(value) }, props), { children }));
|
|
3511
|
+
}
|
|
3512
|
+
function StepContent(_a) {
|
|
3513
|
+
var _b = _a, { value, children } = _b, props = __objRest(_b, ["value", "children"]);
|
|
3514
|
+
return /* @__PURE__ */ jsx16(StepRadix.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
|
|
3515
|
+
}
|
|
3516
|
+
function StepList(_a) {
|
|
3517
|
+
var _b = _a, { children, currentStep } = _b, props = __objRest(_b, ["children", "currentStep"]);
|
|
3518
|
+
return /* @__PURE__ */ jsx16(StepListStyled, __spreadProps(__spreadValues({}, props), { children: React2.Children.map(children, (child) => {
|
|
3519
|
+
if (React2.isValidElement(child) && child.type === StepTrigger) {
|
|
3520
|
+
return React2.cloneElement(child, { currentStep });
|
|
3521
|
+
}
|
|
3522
|
+
return child;
|
|
3523
|
+
}) }));
|
|
3524
|
+
}
|
|
3525
|
+
function StepWrapper(_a) {
|
|
3526
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3527
|
+
return /* @__PURE__ */ jsx16(Box2, __spreadProps(__spreadValues({}, props), { children }));
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
// src/components/Grid.tsx
|
|
3531
|
+
import { Grid as GridRadix } from "@radix-ui/themes";
|
|
3532
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
3533
|
+
var GridStyled = styled(GridRadix, {
|
|
3534
|
+
display: "grid",
|
|
3535
|
+
variants: {
|
|
3536
|
+
display: {
|
|
3537
|
+
"grid": { display: "grid" },
|
|
3538
|
+
"inline-grid": { display: "inline-grid" }
|
|
3539
|
+
},
|
|
3540
|
+
align: {
|
|
3541
|
+
start: { alignItems: "start" },
|
|
3542
|
+
center: { alignItems: "center" },
|
|
3543
|
+
end: { alignItems: "end" },
|
|
3544
|
+
stretch: { alignItems: "stretch" }
|
|
3545
|
+
},
|
|
3546
|
+
justify: {
|
|
3547
|
+
start: { justifyContent: "start" },
|
|
3548
|
+
center: { justifyContent: "center" },
|
|
3549
|
+
end: { justifyContent: "end" },
|
|
3550
|
+
between: { justifyContent: "space-between" }
|
|
3551
|
+
},
|
|
3552
|
+
flow: {
|
|
3553
|
+
row: { gridAutoFlow: "row" },
|
|
3554
|
+
column: { gridAutoFlow: "column" },
|
|
3555
|
+
"row-dense": { gridAutoFlow: "row dense" },
|
|
3556
|
+
"column-dense": { gridAutoFlow: "column dense" }
|
|
3557
|
+
},
|
|
3558
|
+
columns: {
|
|
3559
|
+
1: { gridTemplateColumns: "repeat(1, 1fr)" },
|
|
3560
|
+
2: { gridTemplateColumns: "repeat(2, 1fr)" },
|
|
3561
|
+
3: { gridTemplateColumns: "repeat(3, 1fr)" },
|
|
3562
|
+
4: { gridTemplateColumns: "repeat(4, 1fr)" },
|
|
3563
|
+
6: { gridTemplateColumns: "repeat(6, 1fr)" },
|
|
3564
|
+
12: { gridTemplateColumns: "repeat(12, 1fr)" }
|
|
3565
|
+
},
|
|
3566
|
+
rows: {
|
|
3567
|
+
1: { gridTemplateRows: "repeat(1, 1fr)" },
|
|
3568
|
+
2: { gridTemplateRows: "repeat(2, 1fr)" },
|
|
3569
|
+
3: { gridTemplateRows: "repeat(3, 1fr)" },
|
|
3570
|
+
4: { gridTemplateRows: "repeat(4, 1fr)" },
|
|
3571
|
+
5: { gridTemplateRows: "repeat(5, 1fr)" },
|
|
3572
|
+
6: { gridTemplateRows: "repeat(6, 1fr)" },
|
|
3573
|
+
7: { gridTemplateRows: "repeat(7, 1fr)" },
|
|
3574
|
+
8: { gridTemplateRows: "repeat(8, 1fr)" },
|
|
3575
|
+
9: { gridTemplateRows: "repeat(9, 1fr)" },
|
|
3576
|
+
10: { gridTemplateRows: "repeat(10, 1fr)" },
|
|
3577
|
+
11: { gridTemplateRows: "repeat(11, 1fr)" },
|
|
3578
|
+
12: { gridTemplateRows: "repeat(12, 1fr)" },
|
|
3579
|
+
auto: { gridTemplateRows: "auto" }
|
|
3580
|
+
},
|
|
3581
|
+
gap: {
|
|
3582
|
+
2: { gap: "$2" },
|
|
3583
|
+
4: { gap: "$4" },
|
|
3584
|
+
6: { gap: "$6" },
|
|
3585
|
+
8: { gap: "$8" },
|
|
3586
|
+
10: { gap: "$10" },
|
|
3587
|
+
12: { gap: "$12" },
|
|
3588
|
+
14: { gap: "$14" },
|
|
3589
|
+
16: { gap: "$16" },
|
|
3590
|
+
20: { gap: "$20" },
|
|
3591
|
+
22: { gap: "$22" },
|
|
3592
|
+
24: { gap: "$24" },
|
|
3593
|
+
32: { gap: "$32" },
|
|
3594
|
+
36: { gap: "$36" },
|
|
3595
|
+
40: { gap: "$40" },
|
|
3596
|
+
48: { gap: "$48" },
|
|
3597
|
+
56: { gap: "$56" },
|
|
3598
|
+
64: { gap: "$64" },
|
|
3599
|
+
72: { gap: "$72" },
|
|
3600
|
+
80: { gap: "$80" },
|
|
3601
|
+
full: { gap: "$full" }
|
|
3602
|
+
},
|
|
3603
|
+
gapX: {
|
|
3604
|
+
2: { gap: "$2" },
|
|
3605
|
+
4: { gap: "$4" },
|
|
3606
|
+
6: { gap: "$6" },
|
|
3607
|
+
8: { gap: "$8" },
|
|
3608
|
+
10: { gap: "$10" },
|
|
3609
|
+
12: { gap: "$12" },
|
|
3610
|
+
14: { gap: "$14" },
|
|
3611
|
+
16: { gap: "$16" },
|
|
3612
|
+
20: { gap: "$20" },
|
|
3613
|
+
22: { gap: "$22" },
|
|
3614
|
+
24: { gap: "$24" },
|
|
3615
|
+
32: { gap: "$32" },
|
|
3616
|
+
36: { gap: "$36" },
|
|
3617
|
+
40: { gap: "$40" },
|
|
3618
|
+
48: { gap: "$48" },
|
|
3619
|
+
56: { gap: "$56" },
|
|
3620
|
+
64: { gap: "$64" },
|
|
3621
|
+
72: { gap: "$72" },
|
|
3622
|
+
80: { gap: "$80" },
|
|
3623
|
+
full: { gap: "$full" }
|
|
3624
|
+
},
|
|
3625
|
+
gapY: {
|
|
3626
|
+
2: { gap: "$2" },
|
|
3627
|
+
4: { gap: "$4" },
|
|
3628
|
+
6: { gap: "$6" },
|
|
3629
|
+
8: { gap: "$8" },
|
|
3630
|
+
10: { gap: "$10" },
|
|
3631
|
+
12: { gap: "$12" },
|
|
3632
|
+
14: { gap: "$14" },
|
|
3633
|
+
16: { gap: "$16" },
|
|
3634
|
+
20: { gap: "$20" },
|
|
3635
|
+
22: { gap: "$22" },
|
|
3636
|
+
24: { gap: "$24" },
|
|
3637
|
+
32: { gap: "$32" },
|
|
3638
|
+
36: { gap: "$36" },
|
|
3639
|
+
40: { gap: "$40" },
|
|
3640
|
+
48: { gap: "$48" },
|
|
3641
|
+
56: { gap: "$56" },
|
|
3642
|
+
64: { gap: "$64" },
|
|
3643
|
+
72: { gap: "$72" },
|
|
3644
|
+
80: { gap: "$80" },
|
|
3645
|
+
full: { gap: "$full" }
|
|
3646
|
+
}
|
|
3647
|
+
},
|
|
3648
|
+
defaultVariants: {
|
|
3649
|
+
gap: 10
|
|
3650
|
+
}
|
|
3651
|
+
});
|
|
3652
|
+
function Grid(_a) {
|
|
3653
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3654
|
+
return /* @__PURE__ */ jsx17(GridStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
// src/components/Container.tsx
|
|
3658
|
+
import { Container as ContainerRadix } from "@radix-ui/themes";
|
|
3659
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
3660
|
+
var ContainerStyled = styled(ContainerRadix, {
|
|
3661
|
+
variants: {
|
|
3662
|
+
size: {
|
|
3663
|
+
xs: { maxWidth: "576px" },
|
|
3664
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
3665
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
3666
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
3667
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
3668
|
+
xxl: { mixWidth: "1400px" },
|
|
3669
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
3670
|
+
},
|
|
3671
|
+
display: {
|
|
3672
|
+
none: { display: "none" },
|
|
3673
|
+
initial: { display: "initial" }
|
|
3674
|
+
},
|
|
3675
|
+
align: {
|
|
3676
|
+
left: { marginLeft: 0, marginRight: "auto" },
|
|
3677
|
+
center: { marginLeft: "auto", marginRight: "auto" },
|
|
3678
|
+
right: { marginLeft: "auto", marginRight: 0 }
|
|
3679
|
+
}
|
|
3680
|
+
},
|
|
3681
|
+
defaultVariants: {
|
|
3682
|
+
size: "md",
|
|
3683
|
+
align: "left",
|
|
3684
|
+
display: "initial"
|
|
3685
|
+
}
|
|
3686
|
+
});
|
|
3687
|
+
function Container(_a) {
|
|
3688
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3689
|
+
return /* @__PURE__ */ jsx18(ContainerStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
// src/components/Section.tsx
|
|
3693
|
+
import { Section as SectionRadix } from "@radix-ui/themes";
|
|
3694
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3695
|
+
var SectionStyled = styled(SectionRadix, {
|
|
3696
|
+
variants: {
|
|
3697
|
+
size: {
|
|
3698
|
+
xs: { maxWidth: "576px" },
|
|
3699
|
+
sm: { minWidth: "577px", maxWidth: "767px" },
|
|
3700
|
+
md: { mixWidth: "768px", maxWidth: "991px" },
|
|
3701
|
+
lg: { mixWidth: "992px", maxWidth: "1199px" },
|
|
3702
|
+
xl: { mixWidth: "1200px", maxWidth: "1399px" },
|
|
3703
|
+
xxl: { mixWidth: "1400px" },
|
|
3704
|
+
responsive: { width: "100%", maxWidth: "100%", minWidth: "100%" }
|
|
3705
|
+
},
|
|
3706
|
+
display: {
|
|
3707
|
+
none: { display: "none" },
|
|
3708
|
+
initial: { display: "initial" }
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
defaultVariants: {
|
|
3712
|
+
size: "md",
|
|
3713
|
+
display: "initial"
|
|
3714
|
+
}
|
|
3715
|
+
});
|
|
3716
|
+
function Section(_a) {
|
|
3717
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
3718
|
+
return /* @__PURE__ */ jsx19(SectionStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
3719
|
+
}
|
|
3179
3720
|
export {
|
|
3721
|
+
Alert,
|
|
3722
|
+
AlertDialogCompleteStyled,
|
|
3723
|
+
AlertDialogDescriptionStyled,
|
|
3724
|
+
AlertDialogRowStyled,
|
|
3725
|
+
AlertDialogSimpleStyled,
|
|
3726
|
+
AlertDialogSubtitleStyled,
|
|
3727
|
+
AlertDialogTitleStyled,
|
|
3728
|
+
AlertDialoghrStyled,
|
|
3180
3729
|
Avatar,
|
|
3181
3730
|
AvatarStyled,
|
|
3182
3731
|
Badge,
|
|
3183
3732
|
BadgeStyled,
|
|
3184
|
-
BadgeText,
|
|
3185
|
-
BodyText,
|
|
3186
3733
|
Box,
|
|
3187
3734
|
Button,
|
|
3188
3735
|
ButtonGroup,
|
|
@@ -3190,29 +3737,43 @@ export {
|
|
|
3190
3737
|
ButtonItem,
|
|
3191
3738
|
ButtonItemStyled,
|
|
3192
3739
|
ButtonStyled,
|
|
3193
|
-
CaptionText,
|
|
3194
3740
|
CheckboxGroup,
|
|
3195
3741
|
CheckboxGroupStyled,
|
|
3196
3742
|
CheckboxItem,
|
|
3197
|
-
|
|
3743
|
+
Container,
|
|
3744
|
+
ContainerStyled,
|
|
3198
3745
|
DropdownMenu2 as DropdownMenu,
|
|
3199
3746
|
DropdownMenuItem,
|
|
3200
3747
|
Filter,
|
|
3201
3748
|
FilterItem,
|
|
3202
3749
|
Flex2 as Flex,
|
|
3203
|
-
|
|
3750
|
+
FlexStyled,
|
|
3751
|
+
Grid,
|
|
3752
|
+
GridStyled,
|
|
3204
3753
|
Icon,
|
|
3205
|
-
|
|
3754
|
+
Modal,
|
|
3755
|
+
ModalContentStyled,
|
|
3756
|
+
ModalStyled,
|
|
3757
|
+
ModalTitleStyled,
|
|
3206
3758
|
RadioGroup,
|
|
3207
3759
|
RadioGroupStyled,
|
|
3208
3760
|
RadioItem,
|
|
3209
|
-
|
|
3761
|
+
Section,
|
|
3762
|
+
SectionStyled,
|
|
3763
|
+
Step,
|
|
3764
|
+
StepContent,
|
|
3765
|
+
StepList,
|
|
3766
|
+
StepStyled,
|
|
3767
|
+
StepTrigger,
|
|
3768
|
+
StepWrapper,
|
|
3769
|
+
Switch,
|
|
3770
|
+
SwitchStyled,
|
|
3210
3771
|
Text,
|
|
3211
3772
|
TextField,
|
|
3212
3773
|
TextFieldSlot,
|
|
3213
3774
|
TextFieldSlotStyled,
|
|
3214
3775
|
TextFieldStyled,
|
|
3215
|
-
|
|
3776
|
+
TextStyle
|
|
3216
3777
|
};
|
|
3217
3778
|
/*! Bundled license information:
|
|
3218
3779
|
|