@saas-ui/react 3.0.0-alpha.14 → 3.0.0-alpha.16
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/CHANGELOG.md +14 -0
- package/dist/{chunk-M7FOBCOV.js → chunk-4VH4IGVF.js} +2 -1
- package/dist/{chunk-4TR3AOMG.js → chunk-UASXI64E.js} +12 -11
- package/dist/components/command/index.cjs +12 -12
- package/dist/components/command/index.d.cts +31 -2
- package/dist/components/command/index.d.ts +31 -2
- package/dist/components/command/index.js +1 -1
- package/dist/components/navbar/index.d.cts +3 -3
- package/dist/components/navbar/index.d.ts +3 -3
- package/dist/components/persona/index.cjs +2 -1
- package/dist/components/persona/index.d.cts +113 -3
- package/dist/components/persona/index.d.ts +113 -3
- package/dist/components/persona/index.js +1 -1
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/index.cjs +338 -299
- package/dist/index.js +91 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -66,7 +66,7 @@ __export(src_exports, {
|
|
66
66
|
Switch: () => Switch,
|
67
67
|
Toaster: () => Toaster,
|
68
68
|
Tooltip: () => Tooltip,
|
69
|
-
createSystem: () =>
|
69
|
+
createSystem: () => import_react161.createSystem,
|
70
70
|
defaultConfig: () => defaultConfig,
|
71
71
|
defaultPresenceOptions: () => defaultPresenceOptions,
|
72
72
|
defaultSystem: () => defaultSystem,
|
@@ -557,6 +557,7 @@ var commandRecipe = (0, import_react6.defineRecipe)({
|
|
557
557
|
colorPalette: "gray",
|
558
558
|
display: "inline-flex",
|
559
559
|
gap: 1,
|
560
|
+
color: "fg.muted",
|
560
561
|
"[role=tooltip] > &": {
|
561
562
|
ms: 1,
|
562
563
|
_before: {
|
@@ -565,6 +566,22 @@ var commandRecipe = (0, import_react6.defineRecipe)({
|
|
565
566
|
fontSize: "xs"
|
566
567
|
}
|
567
568
|
}
|
569
|
+
},
|
570
|
+
variants: {
|
571
|
+
size: {
|
572
|
+
sm: {
|
573
|
+
fontSize: "xs"
|
574
|
+
},
|
575
|
+
md: {
|
576
|
+
fontSize: "sm"
|
577
|
+
},
|
578
|
+
lg: {
|
579
|
+
fontSize: "md"
|
580
|
+
}
|
581
|
+
}
|
582
|
+
},
|
583
|
+
defaultVariants: {
|
584
|
+
size: "md"
|
568
585
|
}
|
569
586
|
});
|
570
587
|
|
@@ -1010,7 +1027,7 @@ var kbdRecipe = (0, import_react16.defineRecipe)({
|
|
1010
1027
|
display: "inline-flex",
|
1011
1028
|
alignItems: "center",
|
1012
1029
|
fontWeight: "medium",
|
1013
|
-
fontFamily: "
|
1030
|
+
fontFamily: "body",
|
1014
1031
|
flexShrink: "0",
|
1015
1032
|
whiteSpace: "nowrap",
|
1016
1033
|
wordSpacing: "-0.5em",
|
@@ -1045,18 +1062,18 @@ var kbdRecipe = (0, import_react16.defineRecipe)({
|
|
1045
1062
|
height: "4.5"
|
1046
1063
|
},
|
1047
1064
|
md: {
|
1048
|
-
textStyle: "
|
1065
|
+
textStyle: "xs",
|
1049
1066
|
height: "5"
|
1050
1067
|
},
|
1051
1068
|
lg: {
|
1052
|
-
textStyle: "
|
1069
|
+
textStyle: "sm",
|
1053
1070
|
height: "6"
|
1054
1071
|
}
|
1055
1072
|
}
|
1056
1073
|
},
|
1057
1074
|
defaultVariants: {
|
1058
1075
|
size: "md",
|
1059
|
-
variant: "
|
1076
|
+
variant: "subtle"
|
1060
1077
|
}
|
1061
1078
|
});
|
1062
1079
|
|
@@ -2585,6 +2602,7 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
|
|
2585
2602
|
],
|
2586
2603
|
base: {
|
2587
2604
|
root: {
|
2605
|
+
"--presence-border-color": "var(--bg-currentcolor)",
|
2588
2606
|
display: "flex",
|
2589
2607
|
flexDirection: "row",
|
2590
2608
|
alignItems: "center"
|
@@ -2596,11 +2614,11 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
|
|
2596
2614
|
position: "absolute",
|
2597
2615
|
bottom: 0,
|
2598
2616
|
right: 0,
|
2599
|
-
boxSize: "
|
2600
|
-
transform: "translate(
|
2601
|
-
borderWidth: "0.
|
2617
|
+
boxSize: "calc(var(--avatar-size) / 3)",
|
2618
|
+
transform: "translate(12%, 12%)",
|
2619
|
+
borderWidth: "0.10em",
|
2602
2620
|
borderRadius: "50%",
|
2603
|
-
borderColor: "
|
2621
|
+
borderColor: "var(--presence-border-color)",
|
2604
2622
|
bg: "var(--persona-presence)"
|
2605
2623
|
},
|
2606
2624
|
details: {
|
@@ -2621,8 +2639,14 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
|
|
2621
2639
|
},
|
2622
2640
|
variants: {
|
2623
2641
|
size: {
|
2642
|
+
"2xs": {
|
2643
|
+
details: { ms: 1 },
|
2644
|
+
label: { fontSize: "2xs" },
|
2645
|
+
secondaryLabel: { display: "none" },
|
2646
|
+
tertiaryLabel: { display: "none" }
|
2647
|
+
},
|
2624
2648
|
xs: {
|
2625
|
-
details: { ms:
|
2649
|
+
details: { ms: 1.5 },
|
2626
2650
|
label: { fontSize: "xs" },
|
2627
2651
|
secondaryLabel: { display: "none" },
|
2628
2652
|
tertiaryLabel: { display: "none" }
|
@@ -2650,6 +2674,12 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
|
|
2650
2674
|
label: { fontSize: "lg" },
|
2651
2675
|
secondaryLabel: { fontSize: "md" },
|
2652
2676
|
tertiaryLabel: { fontSize: "md" }
|
2677
|
+
},
|
2678
|
+
"2xl": {
|
2679
|
+
details: { ms: 4 },
|
2680
|
+
label: { fontSize: "xl" },
|
2681
|
+
secondaryLabel: { fontSize: "lg" },
|
2682
|
+
tertiaryLabel: { fontSize: "lg" }
|
2653
2683
|
}
|
2654
2684
|
}
|
2655
2685
|
},
|
@@ -3332,6 +3362,7 @@ var avatarSlotRecipe = (0, import_react38.defineSlotRecipe)({
|
|
3332
3362
|
className: "chakra-avatar",
|
3333
3363
|
base: {
|
3334
3364
|
root: {
|
3365
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
3335
3366
|
display: "inline-flex",
|
3336
3367
|
alignItems: "center",
|
3337
3368
|
justifyContent: "center",
|
@@ -3373,44 +3404,38 @@ var avatarSlotRecipe = (0, import_react38.defineSlotRecipe)({
|
|
3373
3404
|
},
|
3374
3405
|
"2xs": {
|
3375
3406
|
root: {
|
3376
|
-
"--avatar-
|
3377
|
-
"--avatar-size": "sizes.6"
|
3407
|
+
"--avatar-size": "sizes.5"
|
3378
3408
|
}
|
3379
3409
|
},
|
3380
3410
|
xs: {
|
3381
3411
|
root: {
|
3382
|
-
"--avatar-
|
3383
|
-
"--avatar-size": "sizes.8"
|
3412
|
+
"--avatar-size": "sizes.6"
|
3384
3413
|
}
|
3385
3414
|
},
|
3386
3415
|
sm: {
|
3387
3416
|
root: {
|
3388
|
-
"--avatar-font-size": "fontSizes.sm",
|
3389
3417
|
"--avatar-size": "sizes.9"
|
3390
3418
|
}
|
3391
3419
|
},
|
3392
3420
|
md: {
|
3393
3421
|
root: {
|
3394
|
-
"--avatar-
|
3395
|
-
"--avatar-size": "sizes.10"
|
3422
|
+
"--avatar-size": "sizes.12"
|
3396
3423
|
}
|
3397
3424
|
},
|
3398
3425
|
lg: {
|
3399
3426
|
root: {
|
3400
|
-
"--avatar-
|
3401
|
-
"--avatar-size": "sizes.11"
|
3427
|
+
"--avatar-size": "sizes.14"
|
3402
3428
|
}
|
3403
3429
|
},
|
3404
3430
|
xl: {
|
3405
3431
|
root: {
|
3406
|
-
"--avatar-
|
3407
|
-
"--avatar-size": "sizes.12"
|
3432
|
+
"--avatar-size": "sizes.16"
|
3408
3433
|
}
|
3409
3434
|
},
|
3410
3435
|
"2xl": {
|
3411
3436
|
root: {
|
3412
|
-
"--avatar-font-size": "
|
3413
|
-
"--avatar-size": "sizes.
|
3437
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
3438
|
+
"--avatar-size": "sizes.20"
|
3414
3439
|
}
|
3415
3440
|
}
|
3416
3441
|
},
|
@@ -7933,9 +7958,11 @@ var tooltipSlotRecipe = (0, import_react76.defineSlotRecipe)({
|
|
7933
7958
|
className: "chakra-tooltip",
|
7934
7959
|
base: {
|
7935
7960
|
content: {
|
7936
|
-
"--tooltip-bg": "colors.bg
|
7961
|
+
"--tooltip-bg": "colors.bg",
|
7962
|
+
display: "flex",
|
7963
|
+
alignItems: "center",
|
7937
7964
|
bg: "var(--tooltip-bg)",
|
7938
|
-
color: "fg
|
7965
|
+
color: "fg",
|
7939
7966
|
px: "2.5",
|
7940
7967
|
py: "1",
|
7941
7968
|
borderRadius: "l2",
|
@@ -7956,13 +7983,24 @@ var tooltipSlotRecipe = (0, import_react76.defineSlotRecipe)({
|
|
7956
7983
|
},
|
7957
7984
|
arrow: {
|
7958
7985
|
"--arrow-size": "sizes.2",
|
7959
|
-
"--arrow-background": "var(--tooltip-bg)"
|
7986
|
+
"--arrow-background": "var(--tooltip-bg)",
|
7987
|
+
zIndex: "-1"
|
7960
7988
|
},
|
7961
7989
|
arrowTip: {
|
7962
7990
|
borderTopWidth: "1px",
|
7963
7991
|
borderInlineStartWidth: "1px",
|
7964
7992
|
borderColor: "var(--tooltip-bg)"
|
7965
7993
|
}
|
7994
|
+
},
|
7995
|
+
variants: {
|
7996
|
+
variant: {
|
7997
|
+
inverted: {
|
7998
|
+
content: {
|
7999
|
+
"--tooltip-bg": "colors.bg.inverted",
|
8000
|
+
color: "fg.inverted"
|
8001
|
+
}
|
8002
|
+
}
|
8003
|
+
}
|
7966
8004
|
}
|
7967
8005
|
});
|
7968
8006
|
|
@@ -8464,20 +8502,20 @@ var easings = import_react85.defineTokens.easings({
|
|
8464
8502
|
// src/theme/tokens/font-sizes.ts
|
8465
8503
|
var import_react86 = require("@chakra-ui/react");
|
8466
8504
|
var fontSizes = import_react86.defineTokens.fontSizes({
|
8467
|
-
"2xs": { value: scaleToken("0.
|
8468
|
-
xs: { value: scaleToken("0.
|
8469
|
-
sm: { value: scaleToken("0.
|
8470
|
-
md: { value: scaleToken("
|
8471
|
-
lg: { value: scaleToken("
|
8472
|
-
xl: { value: scaleToken("1.
|
8473
|
-
"2xl": { value: scaleToken("1.
|
8474
|
-
"3xl": { value: scaleToken("1.
|
8475
|
-
"4xl": { value: scaleToken("
|
8476
|
-
"5xl": { value: scaleToken("
|
8477
|
-
"6xl": { value: scaleToken("
|
8478
|
-
"7xl": { value: scaleToken("
|
8479
|
-
"8xl": { value: scaleToken("
|
8480
|
-
"9xl": { value: scaleToken("
|
8505
|
+
"2xs": { value: scaleToken("0.625rem") },
|
8506
|
+
xs: { value: scaleToken("0.75rem") },
|
8507
|
+
sm: { value: scaleToken("0.8125rem") },
|
8508
|
+
md: { value: scaleToken("0.875rem") },
|
8509
|
+
lg: { value: scaleToken("1rem") },
|
8510
|
+
xl: { value: scaleToken("1.125rem") },
|
8511
|
+
"2xl": { value: scaleToken("1.25rem") },
|
8512
|
+
"3xl": { value: scaleToken("1.5rem") },
|
8513
|
+
"4xl": { value: scaleToken("1.875rem") },
|
8514
|
+
"5xl": { value: scaleToken("2.25rem") },
|
8515
|
+
"6xl": { value: scaleToken("3rem") },
|
8516
|
+
"7xl": { value: scaleToken("3.75rem") },
|
8517
|
+
"8xl": { value: scaleToken("4.5rem") },
|
8518
|
+
"9xl": { value: scaleToken("6rem") }
|
8481
8519
|
});
|
8482
8520
|
|
8483
8521
|
// src/theme/tokens/font-weights.ts
|
@@ -8901,7 +8939,7 @@ var defaultConfig = (0, import_react97.mergeConfigs)(import_react97.defaultBaseC
|
|
8901
8939
|
var defaultSystem = (0, import_react97.createSystem)(defaultConfig);
|
8902
8940
|
|
8903
8941
|
// src/index.ts
|
8904
|
-
var
|
8942
|
+
var import_react161 = require("@chakra-ui/react");
|
8905
8943
|
|
8906
8944
|
// src/provider/sui-provider.tsx
|
8907
8945
|
var React = __toESM(require("react"), 1);
|
@@ -9197,29 +9235,29 @@ var CloseButton = (0, import_react111.forwardRef)(
|
|
9197
9235
|
|
9198
9236
|
// src/components/command/command.tsx
|
9199
9237
|
var import_react113 = require("@chakra-ui/react");
|
9200
|
-
var import_react114 = require("@chakra-ui/react");
|
9201
9238
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
9202
|
-
var { withContext: withContext2 } = (0,
|
9239
|
+
var { withContext: withContext2 } = (0, import_react113.createRecipeContext)({
|
9203
9240
|
key: "suiCommand"
|
9204
9241
|
});
|
9205
|
-
var
|
9242
|
+
var Command = (props) => {
|
9243
|
+
const { children, modifiers, ...rest } = props;
|
9206
9244
|
if (typeof children !== "string") {
|
9207
9245
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children });
|
9208
9246
|
}
|
9209
|
-
|
9210
|
-
|
9211
|
-
}
|
9212
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react113.Kbd, { children });
|
9247
|
+
const keys = children.split(/\s|\+/);
|
9248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledCommand, { ...rest, children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Key, { modifiers, size: props.size, children: key }, key)) });
|
9213
9249
|
};
|
9214
|
-
var
|
9215
|
-
|
9250
|
+
var StyledCommand = withContext2("span");
|
9251
|
+
var Key = (props) => {
|
9252
|
+
const { modifiers = ["then", "or", "+"], children, ...rest } = props;
|
9216
9253
|
if (typeof children !== "string") {
|
9217
9254
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children });
|
9218
9255
|
}
|
9219
|
-
|
9220
|
-
|
9256
|
+
if (modifiers.includes(children)) {
|
9257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children });
|
9258
|
+
}
|
9259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react113.Kbd, { ...rest, children });
|
9221
9260
|
};
|
9222
|
-
var CommandRoot = withContext2("span");
|
9223
9261
|
|
9224
9262
|
// src/components/dialog/namespace.ts
|
9225
9263
|
var namespace_exports = {};
|
@@ -9239,11 +9277,11 @@ __export(namespace_exports, {
|
|
9239
9277
|
});
|
9240
9278
|
|
9241
9279
|
// src/components/dialog/dialog.tsx
|
9242
|
-
var
|
9243
|
-
var
|
9280
|
+
var import_react114 = require("react");
|
9281
|
+
var import_react115 = require("@chakra-ui/react");
|
9244
9282
|
var import_dialog2 = require("@ark-ui/react/dialog");
|
9245
9283
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
9246
|
-
var DialogContent = (0,
|
9284
|
+
var DialogContent = (0, import_react114.forwardRef)(
|
9247
9285
|
function DialogContent2(props, ref) {
|
9248
9286
|
const {
|
9249
9287
|
children,
|
@@ -9252,15 +9290,15 @@ var DialogContent = (0, import_react115.forwardRef)(
|
|
9252
9290
|
backdrop = true,
|
9253
9291
|
...rest
|
9254
9292
|
} = props;
|
9255
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
9256
|
-
backdrop && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
9257
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
9293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react115.Portal, { disabled: !portalled, container: portalRef, children: [
|
9294
|
+
backdrop && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react115.Dialog.Backdrop, {}),
|
9295
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react115.Dialog.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react115.Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
9258
9296
|
] });
|
9259
9297
|
}
|
9260
9298
|
);
|
9261
|
-
var DialogCloseTrigger = (0,
|
9299
|
+
var DialogCloseTrigger = (0, import_react114.forwardRef)(function DialogCloseTrigger2(props, ref) {
|
9262
9300
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
9263
|
-
|
9301
|
+
import_react115.Dialog.CloseTrigger,
|
9264
9302
|
{
|
9265
9303
|
position: "absolute",
|
9266
9304
|
top: "2",
|
@@ -9271,15 +9309,15 @@ var DialogCloseTrigger = (0, import_react115.forwardRef)(function DialogCloseTri
|
|
9271
9309
|
}
|
9272
9310
|
);
|
9273
9311
|
});
|
9274
|
-
var DialogRoot =
|
9275
|
-
var DialogFooter =
|
9276
|
-
var DialogHeader =
|
9277
|
-
var DialogBody =
|
9278
|
-
var DialogBackdrop =
|
9279
|
-
var DialogTitle =
|
9280
|
-
var DialogDescription =
|
9281
|
-
var DialogTrigger =
|
9282
|
-
var DialogActionTrigger =
|
9312
|
+
var DialogRoot = import_react115.Dialog.Root;
|
9313
|
+
var DialogFooter = import_react115.Dialog.Footer;
|
9314
|
+
var DialogHeader = import_react115.Dialog.Header;
|
9315
|
+
var DialogBody = import_react115.Dialog.Body;
|
9316
|
+
var DialogBackdrop = import_react115.Dialog.Backdrop;
|
9317
|
+
var DialogTitle = import_react115.Dialog.Title;
|
9318
|
+
var DialogDescription = import_react115.Dialog.Description;
|
9319
|
+
var DialogTrigger = import_react115.Dialog.Trigger;
|
9320
|
+
var DialogActionTrigger = import_react115.Dialog.ActionTrigger;
|
9283
9321
|
|
9284
9322
|
// src/components/drawer/namespace.ts
|
9285
9323
|
var namespace_exports2 = {};
|
@@ -9299,19 +9337,19 @@ __export(namespace_exports2, {
|
|
9299
9337
|
});
|
9300
9338
|
|
9301
9339
|
// src/components/drawer/drawer.tsx
|
9302
|
-
var
|
9340
|
+
var import_react116 = require("react");
|
9303
9341
|
var import_dialog4 = require("@ark-ui/react/dialog");
|
9304
|
-
var
|
9342
|
+
var import_react117 = require("@chakra-ui/react");
|
9305
9343
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
9306
|
-
var DrawerContent = (0,
|
9344
|
+
var DrawerContent = (0, import_react116.forwardRef)(
|
9307
9345
|
function DrawerContent2(props, ref) {
|
9308
9346
|
const { children, portalled = true, portalRef, offset, ...rest } = props;
|
9309
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
9347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react117.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react117.Drawer.Positioner, { padding: offset, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react117.Drawer.Content, { ref, ...rest, asChild: false, children }) }) });
|
9310
9348
|
}
|
9311
9349
|
);
|
9312
|
-
var DrawerCloseTrigger = (0,
|
9350
|
+
var DrawerCloseTrigger = (0, import_react116.forwardRef)(function DrawerCloseTrigger2(props, ref) {
|
9313
9351
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
9314
|
-
|
9352
|
+
import_react117.Drawer.CloseTrigger,
|
9315
9353
|
{
|
9316
9354
|
position: "absolute",
|
9317
9355
|
top: "2",
|
@@ -9322,30 +9360,30 @@ var DrawerCloseTrigger = (0, import_react117.forwardRef)(function DrawerCloseTri
|
|
9322
9360
|
}
|
9323
9361
|
);
|
9324
9362
|
});
|
9325
|
-
var DrawerTrigger =
|
9326
|
-
var DrawerRoot =
|
9327
|
-
var DrawerFooter =
|
9328
|
-
var DrawerHeader =
|
9329
|
-
var DrawerBody =
|
9330
|
-
var DrawerBackdrop =
|
9331
|
-
var DrawerDescription =
|
9332
|
-
var DrawerTitle =
|
9333
|
-
var DrawerActionTrigger =
|
9363
|
+
var DrawerTrigger = import_react117.Drawer.Trigger;
|
9364
|
+
var DrawerRoot = import_react117.Drawer.Root;
|
9365
|
+
var DrawerFooter = import_react117.Drawer.Footer;
|
9366
|
+
var DrawerHeader = import_react117.Drawer.Header;
|
9367
|
+
var DrawerBody = import_react117.Drawer.Body;
|
9368
|
+
var DrawerBackdrop = import_react117.Drawer.Backdrop;
|
9369
|
+
var DrawerDescription = import_react117.Drawer.Description;
|
9370
|
+
var DrawerTitle = import_react117.Drawer.Title;
|
9371
|
+
var DrawerActionTrigger = import_react117.Drawer.ActionTrigger;
|
9334
9372
|
var DrawerContext = import_dialog4.DialogContext;
|
9335
9373
|
|
9336
9374
|
// src/components/empty-state/empty-state.tsx
|
9337
|
-
var
|
9338
|
-
var
|
9375
|
+
var import_react118 = require("@chakra-ui/react");
|
9376
|
+
var import_react119 = require("react");
|
9339
9377
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
9340
|
-
var EmptyState = (0,
|
9378
|
+
var EmptyState = (0, import_react119.forwardRef)(
|
9341
9379
|
function EmptyState2(props, ref) {
|
9342
9380
|
const { title, description, icon, children, ...rest } = props;
|
9343
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
9344
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
9345
|
-
description ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
9346
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
9347
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
9348
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
9381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react118.EmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react118.EmptyState.Content, { children: [
|
9382
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react118.EmptyState.Indicator, { children: icon }),
|
9383
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react118.VStack, { textAlign: "center", children: [
|
9384
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react118.EmptyState.Title, { children: title }),
|
9385
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react118.EmptyState.Description, { children: description })
|
9386
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react118.EmptyState.Title, { children: title }),
|
9349
9387
|
children
|
9350
9388
|
] }) });
|
9351
9389
|
}
|
@@ -9362,12 +9400,12 @@ __export(grid_list_exports, {
|
|
9362
9400
|
var import_grid_list = require("@saas-ui/core/grid-list");
|
9363
9401
|
|
9364
9402
|
// src/components/grid-list/grid-list.context.ts
|
9365
|
-
var
|
9403
|
+
var import_react120 = require("@chakra-ui/react");
|
9366
9404
|
var {
|
9367
9405
|
withProvider: withProvider2,
|
9368
9406
|
withContext: withContext3,
|
9369
9407
|
useStyles: useGridListStyles
|
9370
|
-
} = (0,
|
9408
|
+
} = (0, import_react120.createSlotRecipeContext)({
|
9371
9409
|
key: "suiGridList"
|
9372
9410
|
});
|
9373
9411
|
|
@@ -9391,23 +9429,23 @@ var GridListCell = withContext3(
|
|
9391
9429
|
|
9392
9430
|
// src/components/icon-badge/icon-badge.tsx
|
9393
9431
|
var React2 = __toESM(require("react"), 1);
|
9394
|
-
var
|
9395
|
-
var
|
9432
|
+
var import_react121 = require("react");
|
9433
|
+
var import_react122 = require("@chakra-ui/react");
|
9396
9434
|
var import_utils7 = require("@saas-ui/core/utils");
|
9397
9435
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
9398
9436
|
var IconBadge = React2.forwardRef(
|
9399
9437
|
(props, ref) => {
|
9400
9438
|
const { icon, children, ...rest } = props;
|
9401
|
-
const recipe = (0,
|
9439
|
+
const recipe = (0, import_react122.useRecipe)({ key: "suiIconBadge", recipe: props.recipe });
|
9402
9440
|
const [variantProps, localProps] = recipe.splitVariantProps(rest);
|
9403
9441
|
const styles = recipe(variantProps);
|
9404
9442
|
const element = icon || children;
|
9405
|
-
const _children = (0,
|
9443
|
+
const _children = (0, import_react121.isValidElement)(element) ? (0, import_react121.cloneElement)(element, {
|
9406
9444
|
"aria-hidden": true,
|
9407
9445
|
focusable: false
|
9408
9446
|
}) : null;
|
9409
9447
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
9410
|
-
|
9448
|
+
import_react122.chakra.div,
|
9411
9449
|
{
|
9412
9450
|
ref,
|
9413
9451
|
...localProps,
|
@@ -9420,10 +9458,10 @@ var IconBadge = React2.forwardRef(
|
|
9420
9458
|
);
|
9421
9459
|
|
9422
9460
|
// src/components/input-group/input-group.tsx
|
9423
|
-
var
|
9424
|
-
var
|
9461
|
+
var import_react123 = require("react");
|
9462
|
+
var import_react124 = require("@chakra-ui/react");
|
9425
9463
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
9426
|
-
var InputGroup = (0,
|
9464
|
+
var InputGroup = (0, import_react123.forwardRef)(
|
9427
9465
|
function InputGroup2(props, ref) {
|
9428
9466
|
const {
|
9429
9467
|
startElement,
|
@@ -9433,26 +9471,26 @@ var InputGroup = (0, import_react124.forwardRef)(
|
|
9433
9471
|
children,
|
9434
9472
|
...rest
|
9435
9473
|
} = props;
|
9436
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
9437
|
-
startElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
9438
|
-
(0,
|
9474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react124.Group, { ref, display: "flex", ...rest, children: [
|
9475
|
+
startElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react124.InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
|
9476
|
+
(0, import_react123.isValidElement)(children) && (0, import_react123.cloneElement)(children, {
|
9439
9477
|
...startElement && { ps: "calc(var(--input-height) - 6px)" },
|
9440
9478
|
...endElement && { pe: "calc(var(--input-height) - 6px)" },
|
9441
9479
|
...children.props
|
9442
9480
|
}),
|
9443
|
-
endElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
9481
|
+
endElement && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react124.InputElement, { placement: "end", ...endElementProps, children: endElement })
|
9444
9482
|
] });
|
9445
9483
|
}
|
9446
9484
|
);
|
9447
9485
|
|
9448
9486
|
// src/components/link/link.tsx
|
9449
|
-
var
|
9450
|
-
var
|
9487
|
+
var import_react125 = __toESM(require("react"), 1);
|
9488
|
+
var import_react126 = require("@chakra-ui/react");
|
9451
9489
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
9452
|
-
var Link =
|
9490
|
+
var Link = import_react125.default.forwardRef(
|
9453
9491
|
(props, ref) => {
|
9454
9492
|
const LinkComponent = useLink();
|
9455
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
9493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react126.Link, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LinkComponent, { ref, ...props }) });
|
9456
9494
|
}
|
9457
9495
|
);
|
9458
9496
|
Link.displayName = "Link";
|
@@ -9465,29 +9503,29 @@ __export(loading_overlay_exports, {
|
|
9465
9503
|
Text: () => LoadingOverlayText
|
9466
9504
|
});
|
9467
9505
|
var import_presence = require("@ark-ui/react/presence");
|
9468
|
-
var
|
9506
|
+
var import_react130 = require("@chakra-ui/react");
|
9469
9507
|
|
9470
9508
|
// src/components/spinner/spinner.tsx
|
9471
|
-
var
|
9472
|
-
var
|
9509
|
+
var import_react127 = require("react");
|
9510
|
+
var import_react128 = require("@chakra-ui/react");
|
9473
9511
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
9474
|
-
var Spinner2 = (0,
|
9512
|
+
var Spinner2 = (0, import_react127.forwardRef)(
|
9475
9513
|
function Spinner3(props, ref) {
|
9476
9514
|
const { loading, children, ...rest } = props;
|
9477
9515
|
if (loading === false) {
|
9478
9516
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children });
|
9479
9517
|
}
|
9480
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
9518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react128.Spinner, { ref, ...rest });
|
9481
9519
|
}
|
9482
9520
|
);
|
9483
9521
|
|
9484
9522
|
// src/components/loading-overlay/loading-overlay.context.ts
|
9485
|
-
var
|
9523
|
+
var import_react129 = require("@chakra-ui/react");
|
9486
9524
|
var {
|
9487
9525
|
useStyles: useLoadingOverlayStyles,
|
9488
9526
|
withContext: withContext4,
|
9489
9527
|
withProvider: withProvider3
|
9490
|
-
} = (0,
|
9528
|
+
} = (0, import_react129.createSlotRecipeContext)({
|
9491
9529
|
key: "suiLoadingOverlay"
|
9492
9530
|
});
|
9493
9531
|
|
@@ -9496,7 +9534,7 @@ var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
9496
9534
|
var LoadingOverlay = (props) => {
|
9497
9535
|
const { children, loading = true, ...rest } = props;
|
9498
9536
|
const [presenceProps, rootProps] = (0, import_presence.splitPresenceProps)(rest);
|
9499
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_presence.Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
9537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_presence.Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react130.chakra.div, { ...rootProps, children }) });
|
9500
9538
|
};
|
9501
9539
|
var LoadingOverlayRoot = withProvider3(
|
9502
9540
|
LoadingOverlay,
|
@@ -9518,16 +9556,16 @@ __export(navbar_exports, {
|
|
9518
9556
|
Link: () => NavbarLink,
|
9519
9557
|
Root: () => NavbarRoot
|
9520
9558
|
});
|
9521
|
-
var
|
9559
|
+
var import_react132 = require("react");
|
9522
9560
|
var import_navbar = require("@saas-ui/core/navbar");
|
9523
9561
|
|
9524
9562
|
// src/components/navbar/navbar.context.ts
|
9525
|
-
var
|
9563
|
+
var import_react131 = require("@chakra-ui/react");
|
9526
9564
|
var {
|
9527
9565
|
withProvider: withProvider4,
|
9528
9566
|
withContext: withContext5,
|
9529
9567
|
useStyles: useNavbarStyles
|
9530
|
-
} = (0,
|
9568
|
+
} = (0, import_react131.createSlotRecipeContext)({
|
9531
9569
|
key: "suiNavbar"
|
9532
9570
|
});
|
9533
9571
|
|
@@ -9550,7 +9588,7 @@ var NavbarItem = withContext5(
|
|
9550
9588
|
"item"
|
9551
9589
|
);
|
9552
9590
|
var NavbarLink = withContext5(
|
9553
|
-
(0,
|
9591
|
+
(0, import_react132.forwardRef)((props, ref) => {
|
9554
9592
|
const Link2 = useLink();
|
9555
9593
|
const { active, ...rest } = props;
|
9556
9594
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_navbar.Navbar.Link, { asChild: true, ...rest, ref, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Link2, { "data-active": active ? "" : void 0, ...props }) });
|
@@ -9562,10 +9600,10 @@ var NavbarLink = withContext5(
|
|
9562
9600
|
);
|
9563
9601
|
|
9564
9602
|
// src/components/number-input/number-input.tsx
|
9565
|
-
var
|
9566
|
-
var
|
9603
|
+
var import_react133 = require("react");
|
9604
|
+
var import_react134 = require("@chakra-ui/react");
|
9567
9605
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
9568
|
-
var NumberInput = (0,
|
9606
|
+
var NumberInput = (0, import_react133.forwardRef)(
|
9569
9607
|
function NumberInput2(props, ref) {
|
9570
9608
|
const {
|
9571
9609
|
hideControls,
|
@@ -9575,11 +9613,11 @@ var NumberInput = (0, import_react134.forwardRef)(
|
|
9575
9613
|
rootRef,
|
9576
9614
|
...rest
|
9577
9615
|
} = props;
|
9578
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
9579
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroup, { startElement, endElement, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
9580
|
-
!hideControls && !endElement ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
9581
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
9582
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
9616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react134.NumberInput.Root, { ref: rootRef, ...rest, children: [
|
9617
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputGroup, { startElement, endElement, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react134.NumberInput.Input, { ref, ...inputProps }) }),
|
9618
|
+
!hideControls && !endElement ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react134.NumberInput.Control, { children: [
|
9619
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react134.NumberInput.IncrementTrigger, {}),
|
9620
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react134.NumberInput.DecrementTrigger, {})
|
9583
9621
|
] }) : null
|
9584
9622
|
] });
|
9585
9623
|
}
|
@@ -9605,78 +9643,78 @@ __export(menu_exports, {
|
|
9605
9643
|
Trigger: () => MenuTrigger,
|
9606
9644
|
TriggerItem: () => MenuTriggerItem
|
9607
9645
|
});
|
9608
|
-
var
|
9609
|
-
var
|
9646
|
+
var import_react135 = require("react");
|
9647
|
+
var import_react136 = require("@chakra-ui/react");
|
9610
9648
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
9611
|
-
var MenuContent = (0,
|
9649
|
+
var MenuContent = (0, import_react135.forwardRef)(
|
9612
9650
|
function MenuContent2(props, ref) {
|
9613
9651
|
const { portalled = true, portalRef, ...rest } = props;
|
9614
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.Content, { ref, ...rest }) }) });
|
9615
9653
|
}
|
9616
9654
|
);
|
9617
|
-
var MenuArrow = (0,
|
9655
|
+
var MenuArrow = (0, import_react135.forwardRef)(
|
9618
9656
|
function MenuArrow2(props, ref) {
|
9619
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.Arrow, { ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.ArrowTip, {}) });
|
9620
9658
|
}
|
9621
9659
|
);
|
9622
|
-
var MenuCheckboxItem = (0,
|
9623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
9624
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9660
|
+
var MenuCheckboxItem = (0, import_react135.forwardRef)(function MenuCheckboxItem2(props, ref) {
|
9661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react136.Menu.CheckboxItem, { ref, ...props, children: [
|
9662
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.ItemIndicator, { hidden: false, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckIcon, {}) }),
|
9625
9663
|
props.children
|
9626
9664
|
] });
|
9627
9665
|
});
|
9628
|
-
var MenuRadioItem = (0,
|
9666
|
+
var MenuRadioItem = (0, import_react135.forwardRef)(
|
9629
9667
|
function MenuRadioItem2(props, ref) {
|
9630
9668
|
const { children, ...rest } = props;
|
9631
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
9632
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9633
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react136.Menu.RadioItem, { ps: "8", ref, ...rest, children: [
|
9670
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.AbsoluteCenter, { axis: "horizontal", left: "4", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckIcon, {}) }) }),
|
9671
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.ItemText, { children })
|
9634
9672
|
] });
|
9635
9673
|
}
|
9636
9674
|
);
|
9637
|
-
var MenuItemGroup = (0,
|
9675
|
+
var MenuItemGroup = (0, import_react135.forwardRef)(
|
9638
9676
|
function MenuItemGroup2(props, ref) {
|
9639
9677
|
const { title, children, ...rest } = props;
|
9640
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
9641
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
9678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react136.Menu.ItemGroup, { ref, ...rest, children: [
|
9679
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react136.Menu.ItemGroupLabel, { userSelect: "none", children: title }),
|
9642
9680
|
children
|
9643
9681
|
] });
|
9644
9682
|
}
|
9645
9683
|
);
|
9646
|
-
var MenuTriggerItem = (0,
|
9684
|
+
var MenuTriggerItem = (0, import_react135.forwardRef)(
|
9647
9685
|
function MenuTriggerItem2(props, ref) {
|
9648
9686
|
const { startIcon, children, ...rest } = props;
|
9649
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
9687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react136.Menu.TriggerItem, { ref, ...rest, children: [
|
9650
9688
|
startIcon,
|
9651
9689
|
children,
|
9652
9690
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRightIcon, {})
|
9653
9691
|
] });
|
9654
9692
|
}
|
9655
9693
|
);
|
9656
|
-
var MenuButton = (0,
|
9694
|
+
var MenuButton = (0, import_react135.forwardRef)(
|
9657
9695
|
function MenuButton2(props, ref) {
|
9658
9696
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MenuTrigger, { ref, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { ...props }) });
|
9659
9697
|
}
|
9660
9698
|
);
|
9661
|
-
var MenuRadioItemGroup =
|
9662
|
-
var MenuContextTrigger =
|
9663
|
-
var MenuRoot =
|
9664
|
-
var MenuSeparator =
|
9665
|
-
var MenuContext =
|
9666
|
-
var MenuItem =
|
9667
|
-
var MenuItemText =
|
9668
|
-
var MenuItemCommand =
|
9669
|
-
var MenuTrigger =
|
9699
|
+
var MenuRadioItemGroup = import_react136.Menu.RadioItemGroup;
|
9700
|
+
var MenuContextTrigger = import_react136.Menu.ContextTrigger;
|
9701
|
+
var MenuRoot = import_react136.Menu.Root;
|
9702
|
+
var MenuSeparator = import_react136.Menu.Separator;
|
9703
|
+
var MenuContext = import_react136.Menu.Context;
|
9704
|
+
var MenuItem = import_react136.Menu.Item;
|
9705
|
+
var MenuItemText = import_react136.Menu.ItemText;
|
9706
|
+
var MenuItemCommand = import_react136.Menu.ItemCommand;
|
9707
|
+
var MenuTrigger = import_react136.Menu.Trigger;
|
9670
9708
|
|
9671
9709
|
// src/components/password-input/password-input.tsx
|
9672
|
-
var
|
9673
|
-
var
|
9710
|
+
var import_react139 = require("react");
|
9711
|
+
var import_react140 = require("@chakra-ui/react");
|
9674
9712
|
|
9675
9713
|
// ../../node_modules/react-icons/lib/iconBase.mjs
|
9676
|
-
var
|
9714
|
+
var import_react138 = __toESM(require("react"), 1);
|
9677
9715
|
|
9678
9716
|
// ../../node_modules/react-icons/lib/iconContext.mjs
|
9679
|
-
var
|
9717
|
+
var import_react137 = __toESM(require("react"), 1);
|
9680
9718
|
var DefaultContext = {
|
9681
9719
|
color: void 0,
|
9682
9720
|
size: void 0,
|
@@ -9684,7 +9722,7 @@ var DefaultContext = {
|
|
9684
9722
|
style: void 0,
|
9685
9723
|
attr: void 0
|
9686
9724
|
};
|
9687
|
-
var IconContext =
|
9725
|
+
var IconContext = import_react137.default.createContext && /* @__PURE__ */ import_react137.default.createContext(DefaultContext);
|
9688
9726
|
|
9689
9727
|
// ../../node_modules/react-icons/lib/iconBase.mjs
|
9690
9728
|
var _excluded = ["attr", "size", "title"];
|
@@ -9773,12 +9811,12 @@ function _toPrimitive(t, r) {
|
|
9773
9811
|
return ("string" === r ? String : Number)(t);
|
9774
9812
|
}
|
9775
9813
|
function Tree2Element(tree) {
|
9776
|
-
return tree && tree.map((node, i) => /* @__PURE__ */
|
9814
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ import_react138.default.createElement(node.tag, _objectSpread({
|
9777
9815
|
key: i
|
9778
9816
|
}, node.attr), Tree2Element(node.child)));
|
9779
9817
|
}
|
9780
9818
|
function GenIcon(data) {
|
9781
|
-
return (props) => /* @__PURE__ */
|
9819
|
+
return (props) => /* @__PURE__ */ import_react138.default.createElement(IconBase, _extends({
|
9782
9820
|
attr: _objectSpread({}, data.attr)
|
9783
9821
|
}, props), Tree2Element(data.child));
|
9784
9822
|
}
|
@@ -9793,7 +9831,7 @@ function IconBase(props) {
|
|
9793
9831
|
var className;
|
9794
9832
|
if (conf.className) className = conf.className;
|
9795
9833
|
if (props.className) className = (className ? className + " " : "") + props.className;
|
9796
|
-
return /* @__PURE__ */
|
9834
|
+
return /* @__PURE__ */ import_react138.default.createElement("svg", _extends({
|
9797
9835
|
stroke: "currentColor",
|
9798
9836
|
fill: "currentColor",
|
9799
9837
|
strokeWidth: "0"
|
@@ -9805,9 +9843,9 @@ function IconBase(props) {
|
|
9805
9843
|
height: computedSize,
|
9806
9844
|
width: computedSize,
|
9807
9845
|
xmlns: "http://www.w3.org/2000/svg"
|
9808
|
-
}), title && /* @__PURE__ */
|
9846
|
+
}), title && /* @__PURE__ */ import_react138.default.createElement("title", null, title), props.children);
|
9809
9847
|
};
|
9810
|
-
return IconContext !== void 0 ? /* @__PURE__ */
|
9848
|
+
return IconContext !== void 0 ? /* @__PURE__ */ import_react138.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
9811
9849
|
}
|
9812
9850
|
|
9813
9851
|
// ../../node_modules/react-icons/lu/index.mjs
|
@@ -9820,7 +9858,7 @@ function LuEye(props) {
|
|
9820
9858
|
|
9821
9859
|
// src/components/password-input/password-input.tsx
|
9822
9860
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
9823
|
-
var PasswordInput = (0,
|
9861
|
+
var PasswordInput = (0, import_react139.forwardRef)(
|
9824
9862
|
function PasswordInput2(props, ref) {
|
9825
9863
|
const {
|
9826
9864
|
rootProps,
|
@@ -9830,12 +9868,12 @@ var PasswordInput = (0, import_react140.forwardRef)(
|
|
9830
9868
|
visibilityIcon = { on: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LuEye, {}), off: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LuEyeOff, {}) },
|
9831
9869
|
...rest
|
9832
9870
|
} = props;
|
9833
|
-
const [visible, setVisible] = (0,
|
9871
|
+
const [visible, setVisible] = (0, import_react140.useControllableState)({
|
9834
9872
|
value: visibleProp,
|
9835
9873
|
defaultValue: defaultVisible || false,
|
9836
9874
|
onChange: onVisibleChange
|
9837
9875
|
});
|
9838
|
-
const inputRef = (0,
|
9876
|
+
const inputRef = (0, import_react139.useRef)(null);
|
9839
9877
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
9840
9878
|
InputGroup,
|
9841
9879
|
{
|
@@ -9855,10 +9893,10 @@ var PasswordInput = (0, import_react140.forwardRef)(
|
|
9855
9893
|
),
|
9856
9894
|
...rootProps,
|
9857
9895
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
9858
|
-
|
9896
|
+
import_react140.Input,
|
9859
9897
|
{
|
9860
9898
|
...rest,
|
9861
|
-
ref: (0,
|
9899
|
+
ref: (0, import_react140.mergeRefs)(ref, inputRef),
|
9862
9900
|
type: visible ? "text" : "password"
|
9863
9901
|
}
|
9864
9902
|
)
|
@@ -9866,10 +9904,10 @@ var PasswordInput = (0, import_react140.forwardRef)(
|
|
9866
9904
|
);
|
9867
9905
|
}
|
9868
9906
|
);
|
9869
|
-
var VisibilityTrigger = (0,
|
9907
|
+
var VisibilityTrigger = (0, import_react139.forwardRef)(
|
9870
9908
|
function VisibilityTrigger2(props, ref) {
|
9871
9909
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
9872
|
-
|
9910
|
+
import_react140.IconButton,
|
9873
9911
|
{
|
9874
9912
|
tabIndex: -1,
|
9875
9913
|
ref,
|
@@ -9890,27 +9928,27 @@ var VisibilityTrigger = (0, import_react140.forwardRef)(
|
|
9890
9928
|
var React7 = __toESM(require("react"), 1);
|
9891
9929
|
|
9892
9930
|
// src/components/persona/persona-primitive.tsx
|
9893
|
-
var
|
9894
|
-
var
|
9931
|
+
var import_react142 = require("react");
|
9932
|
+
var import_react143 = require("@chakra-ui/react");
|
9895
9933
|
var import_utils8 = require("@saas-ui/core/utils");
|
9896
9934
|
|
9897
9935
|
// src/components/persona/persona.context.ts
|
9898
|
-
var
|
9936
|
+
var import_react141 = require("@chakra-ui/react");
|
9899
9937
|
var {
|
9900
9938
|
useStyles: usePersonaStyles,
|
9901
9939
|
withProvider: withProvider5,
|
9902
9940
|
withContext: withContext6
|
9903
|
-
} = (0,
|
9941
|
+
} = (0, import_react141.createSlotRecipeContext)({
|
9904
9942
|
key: "suiPersona"
|
9905
9943
|
});
|
9906
9944
|
|
9907
9945
|
// src/components/persona/persona-primitive.tsx
|
9908
9946
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
9909
9947
|
var PersonaRoot = withProvider5(
|
9910
|
-
(0,
|
9948
|
+
(0, import_react142.forwardRef)((props, ref) => {
|
9911
9949
|
const { outOfOffice, presence, ...rest } = props;
|
9912
9950
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
9913
|
-
|
9951
|
+
import_react143.chakra.div,
|
9914
9952
|
{
|
9915
9953
|
ref,
|
9916
9954
|
...rest,
|
@@ -9927,7 +9965,7 @@ var PersonaRoot = withProvider5(
|
|
9927
9965
|
}),
|
9928
9966
|
"root"
|
9929
9967
|
);
|
9930
|
-
var PersonaAvatar = (0,
|
9968
|
+
var PersonaAvatar = (0, import_react142.forwardRef)(
|
9931
9969
|
(props, ref) => {
|
9932
9970
|
const {
|
9933
9971
|
name,
|
@@ -9940,10 +9978,10 @@ var PersonaAvatar = (0, import_react143.forwardRef)(
|
|
9940
9978
|
children,
|
9941
9979
|
...rest
|
9942
9980
|
} = props;
|
9943
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
9944
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
9981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react143.Avatar.Root, { ref, ...rest, children: [
|
9982
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react143.Avatar.Fallback, { children: getInitials2(name) }),
|
9945
9983
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
9946
|
-
|
9984
|
+
import_react143.Avatar.Image,
|
9947
9985
|
{
|
9948
9986
|
src,
|
9949
9987
|
srcSet,
|
@@ -10004,6 +10042,7 @@ var Persona = React7.forwardRef(
|
|
10004
10042
|
ref,
|
10005
10043
|
outOfOffice: isOutOfOffice,
|
10006
10044
|
presence,
|
10045
|
+
size,
|
10007
10046
|
...rest,
|
10008
10047
|
children: [
|
10009
10048
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
@@ -10017,7 +10056,7 @@ var Persona = React7.forwardRef(
|
|
10017
10056
|
onError,
|
10018
10057
|
src,
|
10019
10058
|
srcSet,
|
10020
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon })
|
10059
|
+
children: presence ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
|
10021
10060
|
}
|
10022
10061
|
),
|
10023
10062
|
!hideDetails && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PersonaDetails, { children: [
|
@@ -10061,10 +10100,10 @@ var defaultPresenceOptions = {
|
|
10061
10100
|
};
|
10062
10101
|
|
10063
10102
|
// src/components/pin-input/pin-input.tsx
|
10064
|
-
var
|
10065
|
-
var
|
10103
|
+
var import_react144 = require("react");
|
10104
|
+
var import_react145 = require("@chakra-ui/react");
|
10066
10105
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
10067
|
-
var PinInput = (0,
|
10106
|
+
var PinInput = (0, import_react144.forwardRef)(
|
10068
10107
|
function PinInput2(props, ref) {
|
10069
10108
|
const {
|
10070
10109
|
pinLength = 4,
|
@@ -10074,35 +10113,35 @@ var PinInput = (0, import_react145.forwardRef)(
|
|
10074
10113
|
gap = attached ? 0 : 2,
|
10075
10114
|
...rest
|
10076
10115
|
} = props;
|
10077
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
10078
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
10079
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
10116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react145.PinInput.Root, { ref: rootRef, ...rest, children: [
|
10117
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react145.PinInput.HiddenInput, { ref, ...inputProps }),
|
10118
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react145.PinInput.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react145.Group, { attached, gap, children: Array.from({ length: pinLength }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react145.PinInput.Input, { index }, index)) }) })
|
10080
10119
|
] });
|
10081
10120
|
}
|
10082
10121
|
);
|
10083
10122
|
|
10084
10123
|
// src/components/radio/radio.tsx
|
10085
|
-
var
|
10086
|
-
var
|
10124
|
+
var import_react146 = require("react");
|
10125
|
+
var import_react147 = require("@chakra-ui/react");
|
10087
10126
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
10088
|
-
var Radio = (0,
|
10127
|
+
var Radio = (0, import_react146.forwardRef)(
|
10089
10128
|
function Radio2(props, ref) {
|
10090
10129
|
const { children, inputProps, rootRef, ...rest } = props;
|
10091
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
10092
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
10093
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
10094
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
10130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react147.RadioGroup.Item, { ref: rootRef, ...rest, children: [
|
10131
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react147.RadioGroup.ItemHiddenInput, { ref, ...inputProps }),
|
10132
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react147.RadioGroup.ItemIndicator, {}),
|
10133
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react147.RadioGroup.ItemText, { children })
|
10095
10134
|
] });
|
10096
10135
|
}
|
10097
10136
|
);
|
10098
|
-
var RadioGroup =
|
10137
|
+
var RadioGroup = import_react147.RadioGroup.Root;
|
10099
10138
|
|
10100
10139
|
// src/components/search-input/search-input.tsx
|
10101
|
-
var
|
10102
|
-
var
|
10140
|
+
var import_react148 = __toESM(require("react"), 1);
|
10141
|
+
var import_react149 = require("@chakra-ui/react");
|
10103
10142
|
var import_utils9 = require("@saas-ui/core/utils");
|
10104
10143
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
10105
|
-
var SearchInput = (0,
|
10144
|
+
var SearchInput = (0, import_react148.forwardRef)(
|
10106
10145
|
(props, ref) => {
|
10107
10146
|
const {
|
10108
10147
|
placeholder = "Search",
|
@@ -10120,18 +10159,18 @@ var SearchInput = (0, import_react149.forwardRef)(
|
|
10120
10159
|
disabled,
|
10121
10160
|
...inputProps
|
10122
10161
|
} = props;
|
10123
|
-
const inputRef =
|
10124
|
-
const [value, setValue] = (0,
|
10162
|
+
const inputRef = import_react148.default.useRef(null);
|
10163
|
+
const [value, setValue] = (0, import_react149.useControllableState)({
|
10125
10164
|
value: valueProp,
|
10126
10165
|
defaultValue: defaultValueProp
|
10127
10166
|
});
|
10128
|
-
const onChange =
|
10167
|
+
const onChange = import_react148.default.useCallback(
|
10129
10168
|
(e) => {
|
10130
10169
|
setValue(e.target.value);
|
10131
10170
|
},
|
10132
10171
|
[setValue]
|
10133
10172
|
);
|
10134
|
-
const onKeyDown =
|
10173
|
+
const onKeyDown = import_react148.default.useCallback(
|
10135
10174
|
(event) => {
|
10136
10175
|
if (event.key === "Escape") {
|
10137
10176
|
setValue("");
|
@@ -10148,9 +10187,9 @@ var SearchInput = (0, import_react149.forwardRef)(
|
|
10148
10187
|
};
|
10149
10188
|
const showReset = value && !props.disabled;
|
10150
10189
|
const endElement = showReset ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SearchInputResetButton, { size, children: resetIcon }) : endElementProp;
|
10151
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
10190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react149.Group, { width, children: [
|
10152
10191
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
10153
|
-
|
10192
|
+
import_react149.InputElement,
|
10154
10193
|
{
|
10155
10194
|
placement: "start",
|
10156
10195
|
px: "0",
|
@@ -10160,7 +10199,7 @@ var SearchInput = (0, import_react149.forwardRef)(
|
|
10160
10199
|
}
|
10161
10200
|
),
|
10162
10201
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
10163
|
-
|
10202
|
+
import_react149.Input,
|
10164
10203
|
{
|
10165
10204
|
type: "text",
|
10166
10205
|
placeholder,
|
@@ -10168,7 +10207,7 @@ var SearchInput = (0, import_react149.forwardRef)(
|
|
10168
10207
|
size,
|
10169
10208
|
value,
|
10170
10209
|
disabled,
|
10171
|
-
ref: (0,
|
10210
|
+
ref: (0, import_react149.mergeRefs)(ref, inputRef),
|
10172
10211
|
onChange: (0, import_utils9.callAll)(onChange, onChangeProp),
|
10173
10212
|
onKeyDown: (0, import_utils9.callAll)(onKeyDown, onKeyDownProp),
|
10174
10213
|
ps: "calc(var(--input-height) - var(--input-height) / 10)",
|
@@ -10176,15 +10215,15 @@ var SearchInput = (0, import_react149.forwardRef)(
|
|
10176
10215
|
...inputProps
|
10177
10216
|
}
|
10178
10217
|
),
|
10179
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
10218
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react149.InputElement, { placement: "end", children: endElement })
|
10180
10219
|
] });
|
10181
10220
|
}
|
10182
10221
|
);
|
10183
|
-
var SearchInputResetButton = (0,
|
10222
|
+
var SearchInputResetButton = (0, import_react148.forwardRef)(
|
10184
10223
|
(props, ref) => {
|
10185
10224
|
const { children = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CloseIcon, {}), ...rest } = props;
|
10186
10225
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
10187
|
-
|
10226
|
+
import_react149.IconButton,
|
10188
10227
|
{
|
10189
10228
|
ref,
|
10190
10229
|
variant: "ghost",
|
@@ -10214,23 +10253,23 @@ __export(namespace_exports3, {
|
|
10214
10253
|
});
|
10215
10254
|
|
10216
10255
|
// src/components/select/select.tsx
|
10217
|
-
var
|
10218
|
-
var
|
10256
|
+
var import_react150 = require("react");
|
10257
|
+
var import_react151 = require("@chakra-ui/react");
|
10219
10258
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
10220
|
-
var SelectTrigger = (0,
|
10259
|
+
var SelectTrigger = (0, import_react150.forwardRef)(
|
10221
10260
|
function SelectTrigger2(props, ref) {
|
10222
10261
|
const { children, clearable, ...rest } = props;
|
10223
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
10224
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10225
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
10262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react151.Select.Control, { ...rest, children: [
|
10263
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.Trigger, { ref, children }),
|
10264
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react151.Select.IndicatorGroup, { children: [
|
10226
10265
|
clearable && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SelectClearTrigger, {}),
|
10227
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10266
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.Indicator, {})
|
10228
10267
|
] })
|
10229
10268
|
] });
|
10230
10269
|
}
|
10231
10270
|
);
|
10232
|
-
var SelectClearTrigger = (0,
|
10233
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10271
|
+
var SelectClearTrigger = (0, import_react150.forwardRef)(function SelectClearTrigger2(props, ref) {
|
10272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.ClearTrigger, { asChild: true, ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10234
10273
|
CloseButton,
|
10235
10274
|
{
|
10236
10275
|
size: "xs",
|
@@ -10241,24 +10280,24 @@ var SelectClearTrigger = (0, import_react151.forwardRef)(function SelectClearTri
|
|
10241
10280
|
}
|
10242
10281
|
) });
|
10243
10282
|
});
|
10244
|
-
var SelectContent = (0,
|
10283
|
+
var SelectContent = (0, import_react150.forwardRef)(
|
10245
10284
|
function SelectContent2(props, ref) {
|
10246
10285
|
const { portalled = true, portalRef, ...rest } = props;
|
10247
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.Content, { ...rest, ref }) }) });
|
10248
10287
|
}
|
10249
10288
|
);
|
10250
|
-
var SelectItem = (0,
|
10289
|
+
var SelectItem = (0, import_react150.forwardRef)(
|
10251
10290
|
function SelectItem2(props, ref) {
|
10252
10291
|
const { item, children, ...rest } = props;
|
10253
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
10292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react151.Select.Item, { item, ...rest, ref, children: [
|
10254
10293
|
children,
|
10255
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10294
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.ItemIndicator, {})
|
10256
10295
|
] }, item.value);
|
10257
10296
|
}
|
10258
10297
|
);
|
10259
|
-
var SelectValueText = (0,
|
10298
|
+
var SelectValueText = (0, import_react150.forwardRef)(function SelectValueText2(props, ref) {
|
10260
10299
|
const { children, ...rest } = props;
|
10261
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.ValueText, { ...rest, ref, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.Context, { children: (select) => {
|
10262
10301
|
const items = select.selectedItems;
|
10263
10302
|
if (items.length === 0) return props.placeholder;
|
10264
10303
|
if (children) return children(items);
|
@@ -10267,9 +10306,9 @@ var SelectValueText = (0, import_react151.forwardRef)(function SelectValueText2(
|
|
10267
10306
|
return `${items.length} selected`;
|
10268
10307
|
} }) });
|
10269
10308
|
});
|
10270
|
-
var SelectRoot = (0,
|
10309
|
+
var SelectRoot = (0, import_react150.forwardRef)(function SelectRoot2(props, ref) {
|
10271
10310
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10272
|
-
|
10311
|
+
import_react151.Select.Root,
|
10273
10312
|
{
|
10274
10313
|
...props,
|
10275
10314
|
ref,
|
@@ -10277,21 +10316,21 @@ var SelectRoot = (0, import_react151.forwardRef)(function SelectRoot2(props, ref
|
|
10277
10316
|
}
|
10278
10317
|
);
|
10279
10318
|
});
|
10280
|
-
var SelectItemGroup = (0,
|
10319
|
+
var SelectItemGroup = (0, import_react150.forwardRef)(
|
10281
10320
|
function SelectItemGroup2(props, ref) {
|
10282
10321
|
const { children, label, ...rest } = props;
|
10283
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
10284
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
10322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react151.Select.ItemGroup, { ...rest, ref, children: [
|
10323
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react151.Select.ItemGroupLabel, { children: label }),
|
10285
10324
|
children
|
10286
10325
|
] });
|
10287
10326
|
}
|
10288
10327
|
);
|
10289
|
-
var SelectLabel =
|
10290
|
-
var SelectItemText =
|
10328
|
+
var SelectLabel = import_react151.Select.Label;
|
10329
|
+
var SelectItemText = import_react151.Select.ItemText;
|
10291
10330
|
|
10292
10331
|
// src/components/segmented-control/segmented-control.tsx
|
10293
|
-
var
|
10294
|
-
var
|
10332
|
+
var import_react152 = require("react");
|
10333
|
+
var import_react153 = require("@chakra-ui/react");
|
10295
10334
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
10296
10335
|
function normalize(items) {
|
10297
10336
|
return items.map((item) => {
|
@@ -10299,19 +10338,19 @@ function normalize(items) {
|
|
10299
10338
|
return item;
|
10300
10339
|
});
|
10301
10340
|
}
|
10302
|
-
var SegmentedControl = (0,
|
10341
|
+
var SegmentedControl = (0, import_react152.forwardRef)(function SegmentedControl2(props, ref) {
|
10303
10342
|
const { items, ...rest } = props;
|
10304
|
-
const data = (0,
|
10305
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
10306
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
10307
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
10308
|
-
|
10343
|
+
const data = (0, import_react152.useMemo)(() => normalize(items), [items]);
|
10344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_react153.SegmentGroup.Root, { ref, ...rest, children: [
|
10345
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react153.SegmentGroup.Indicator, {}),
|
10346
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react153.For, { each: data, children: (item) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
10347
|
+
import_react153.SegmentGroup.Item,
|
10309
10348
|
{
|
10310
10349
|
value: item.value,
|
10311
10350
|
disabled: item.disabled,
|
10312
10351
|
children: [
|
10313
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
10314
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
10352
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react153.SegmentGroup.ItemText, { children: item.label }),
|
10353
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react153.SegmentGroup.ItemHiddenInput, {})
|
10315
10354
|
]
|
10316
10355
|
},
|
10317
10356
|
item.value
|
@@ -10343,21 +10382,21 @@ __export(sidebar_exports, {
|
|
10343
10382
|
var import_sidebar = require("@saas-ui/core/sidebar");
|
10344
10383
|
|
10345
10384
|
// src/components/sidebar/sidebar.context.ts
|
10346
|
-
var
|
10385
|
+
var import_react154 = require("@chakra-ui/react");
|
10347
10386
|
var {
|
10348
10387
|
withContext: withContext7,
|
10349
10388
|
useRecipeResult,
|
10350
10389
|
StylesProvider,
|
10351
10390
|
ClassNamesProvider,
|
10352
10391
|
useStyles: useSidebarStyles
|
10353
|
-
} = (0,
|
10392
|
+
} = (0, import_react154.createSlotRecipeContext)({
|
10354
10393
|
key: "suiSidebar"
|
10355
10394
|
});
|
10356
10395
|
var {
|
10357
10396
|
withProvider: withItemProvider,
|
10358
10397
|
withContext: withItemContext,
|
10359
10398
|
useStyles: useSidebarItemStyles
|
10360
|
-
} = (0,
|
10399
|
+
} = (0, import_react154.createSlotRecipeContext)({
|
10361
10400
|
key: "suiSidebarNavItem"
|
10362
10401
|
});
|
10363
10402
|
|
@@ -10460,99 +10499,99 @@ __export(steps_exports, {
|
|
10460
10499
|
NextTrigger: () => StepsNextTrigger,
|
10461
10500
|
PrevTrigger: () => StepsPrevTrigger,
|
10462
10501
|
Root: () => StepsRoot,
|
10463
|
-
useContext: () =>
|
10502
|
+
useContext: () => import_react155.useStepsContext
|
10464
10503
|
});
|
10465
|
-
var
|
10504
|
+
var import_react155 = require("@chakra-ui/react");
|
10466
10505
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
10467
10506
|
var StepsItem = (props) => {
|
10468
10507
|
const { title, description, completedIcon, icon, ...rest } = props;
|
10469
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
10470
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
10471
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10472
|
-
|
10508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react155.Steps.Item, { ...rest, children: [
|
10509
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react155.Steps.Trigger, { children: [
|
10510
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10511
|
+
import_react155.Steps.Status,
|
10473
10512
|
{
|
10474
10513
|
complete: completedIcon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CheckIcon, {}),
|
10475
|
-
incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10514
|
+
incomplete: icon || /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Number, {})
|
10476
10515
|
}
|
10477
10516
|
) }),
|
10478
10517
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StepInfo, { title, description })
|
10479
10518
|
] }),
|
10480
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10519
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Separator, {})
|
10481
10520
|
] });
|
10482
10521
|
};
|
10483
10522
|
var StepInfo = (props) => {
|
10484
10523
|
const { title, description } = props;
|
10485
10524
|
if (title && description) {
|
10486
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
10487
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10488
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react155.Box, { children: [
|
10526
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Title, { children: title }),
|
10527
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Description, { children: description })
|
10489
10528
|
] });
|
10490
10529
|
}
|
10491
10530
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
10492
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10493
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10531
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Title, { children: title }),
|
10532
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Description, { children: description })
|
10494
10533
|
] });
|
10495
10534
|
};
|
10496
10535
|
var StepsIndicator = (props) => {
|
10497
|
-
const { icon = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10498
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10536
|
+
const { icon = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Number, {}), completedIcon } = props;
|
10537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.Status, { complete: completedIcon, incomplete: icon }) });
|
10499
10538
|
};
|
10500
|
-
var StepsList =
|
10501
|
-
var StepsRoot =
|
10502
|
-
var StepsContent =
|
10503
|
-
var StepsCompletedContent =
|
10539
|
+
var StepsList = import_react155.Steps.List;
|
10540
|
+
var StepsRoot = import_react155.Steps.Root;
|
10541
|
+
var StepsContent = import_react155.Steps.Content;
|
10542
|
+
var StepsCompletedContent = import_react155.Steps.CompletedContent;
|
10504
10543
|
var StepsNextTrigger = (props) => {
|
10505
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.NextTrigger, { ...props });
|
10506
10545
|
};
|
10507
10546
|
var StepsPrevTrigger = (props) => {
|
10508
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
10547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react155.Steps.PrevTrigger, { ...props });
|
10509
10548
|
};
|
10510
10549
|
|
10511
10550
|
// src/components/switch/switch.tsx
|
10512
|
-
var
|
10513
|
-
var
|
10551
|
+
var import_react156 = require("@chakra-ui/react");
|
10552
|
+
var import_react157 = require("react");
|
10514
10553
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
10515
|
-
var Switch = (0,
|
10554
|
+
var Switch = (0, import_react157.forwardRef)(
|
10516
10555
|
function Switch2(props, ref) {
|
10517
10556
|
const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
|
10518
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
10519
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
10520
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
10521
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
10522
|
-
trackLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
10557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react156.Switch.Root, { ref: rootRef, ...rest, children: [
|
10558
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react156.Switch.HiddenInput, { ref, ...inputProps }),
|
10559
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react156.Switch.Control, { children: [
|
10560
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react156.Switch.Thumb, { children: thumbLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react156.Switch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
|
10561
|
+
trackLabel && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react156.Switch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
|
10523
10562
|
] }),
|
10524
|
-
children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
10563
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react156.Switch.Label, { children })
|
10525
10564
|
] });
|
10526
10565
|
}
|
10527
10566
|
);
|
10528
10567
|
|
10529
10568
|
// src/components/toaster/toaster.tsx
|
10530
|
-
var
|
10569
|
+
var import_react158 = require("@chakra-ui/react");
|
10531
10570
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
10532
|
-
var toast = (0,
|
10571
|
+
var toast = (0, import_react158.createToaster)({
|
10533
10572
|
placement: "bottom-end",
|
10534
10573
|
pauseOnPageIdle: true
|
10535
10574
|
});
|
10536
10575
|
var Toaster = () => {
|
10537
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
|
10538
10577
|
var _a7;
|
10539
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
10540
|
-
toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10541
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
10542
|
-
toast2.title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10543
|
-
toast2.description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react158.Toast.Root, { width: { md: "sm" }, children: [
|
10579
|
+
toast2.type === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toast.Indicator, {}),
|
10580
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react158.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
10581
|
+
toast2.title && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toast.Title, { children: toast2.title }),
|
10582
|
+
toast2.description && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toast.Description, { children: toast2.description })
|
10544
10583
|
] }),
|
10545
|
-
toast2.action && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10546
|
-
((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
10584
|
+
toast2.action && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toast.ActionTrigger, { children: toast2.action.label }),
|
10585
|
+
((_a7 = toast2.meta) == null ? void 0 : _a7.closable) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react158.Toast.CloseTrigger, {})
|
10547
10586
|
] });
|
10548
10587
|
} }) });
|
10549
10588
|
};
|
10550
10589
|
|
10551
10590
|
// src/components/tooltip/tooltip.tsx
|
10552
|
-
var
|
10553
|
-
var
|
10591
|
+
var import_react159 = require("react");
|
10592
|
+
var import_react160 = require("@chakra-ui/react");
|
10554
10593
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
10555
|
-
var Tooltip = (0,
|
10594
|
+
var Tooltip = (0, import_react159.forwardRef)(
|
10556
10595
|
function Tooltip2(props, ref) {
|
10557
10596
|
const {
|
10558
10597
|
showArrow,
|
@@ -10565,10 +10604,10 @@ var Tooltip = (0, import_react160.forwardRef)(
|
|
10565
10604
|
...rest
|
10566
10605
|
} = props;
|
10567
10606
|
if (disabled) return children;
|
10568
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
10569
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
10570
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
10571
|
-
showArrow && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
10607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react160.Tooltip.Root, { ...rest, children: [
|
10608
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react160.Tooltip.Trigger, { asChild: true, children }),
|
10609
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react160.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react160.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react160.Tooltip.Content, { ref, ...contentProps, children: [
|
10610
|
+
showArrow && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react160.Tooltip.Arrow, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react160.Tooltip.ArrowTip, {}) }),
|
10572
10611
|
content
|
10573
10612
|
] }) }) })
|
10574
10613
|
] });
|