@saas-ui/react 3.0.0-alpha.3 → 3.0.0-alpha.31
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 +410 -1
- package/dist/chunk-2EUACKRH.js +26 -0
- package/dist/chunk-32DD6PHF.js +63 -0
- package/dist/chunk-3JZ42NYM.js +100 -0
- package/dist/chunk-3MO37LYW.js +326 -0
- package/dist/chunk-46ISJZBS.js +119 -0
- package/dist/{chunk-VDXTEASE.js → chunk-4TPVIHNO.js} +10 -1
- package/dist/chunk-52XM5VXJ.js +9 -0
- package/dist/chunk-5MTFSSOH.js +16 -0
- package/dist/chunk-6YZ76Q2W.js +8 -0
- package/dist/chunk-6ZNR6N2K.js +45 -0
- package/dist/chunk-CQD32UVJ.js +8 -0
- package/dist/chunk-GRUMUCSL.js +109 -0
- package/dist/chunk-GWC5GCMW.js +177 -0
- package/dist/chunk-I2RXEKTB.js +38 -0
- package/dist/chunk-IEWHAXXU.js +28 -0
- package/dist/chunk-IGT224EZ.js +56 -0
- package/dist/chunk-INV6RT5B.js +8 -0
- package/dist/chunk-IVLUAUU5.js +10 -0
- package/dist/chunk-JMYI6YXR.js +1 -0
- package/dist/chunk-JO4WJVYO.js +43 -0
- package/dist/chunk-K2SPPLAY.js +231 -0
- package/dist/chunk-KE5AC3TZ.js +63 -0
- package/dist/chunk-KFXNVUEZ.js +102 -0
- package/dist/chunk-L356FPLY.js +20 -0
- package/dist/chunk-LTVFG6UC.js +54 -0
- package/dist/chunk-MLJN6IOJ.js +96 -0
- package/dist/chunk-MS2ELLDY.js +26 -0
- package/dist/chunk-NGGISORT.js +29 -0
- package/dist/chunk-NGSHWY7E.js +27 -0
- package/dist/chunk-NSD5HRIP.js +46 -0
- package/dist/chunk-Q6SNJJO2.js +63 -0
- package/dist/chunk-QSNSWCTM.js +32 -0
- package/dist/chunk-RLIAFHVM.js +66 -0
- package/dist/chunk-S5J6REMC.js +40 -0
- package/dist/chunk-SA3OGTOO.js +23 -0
- package/dist/chunk-SKXSBAOS.js +35 -0
- package/dist/{components/breadcrumbs/index.js → chunk-TT4C5VXB.js} +6 -7
- package/dist/chunk-TZBAM4AD.js +20 -0
- package/dist/chunk-U23VDAWJ.js +143 -0
- package/dist/chunk-UASXI64E.js +34 -0
- package/dist/chunk-VZG7EJ64.js +70 -0
- package/dist/chunk-WYLMBMAH.js +22 -0
- package/dist/chunk-YHQ5JGCC.js +1 -0
- package/dist/chunk-YKSY7UOM.js +20 -0
- package/dist/{chunk-FZW2DYK3.js → chunk-YXGJOOMM.js} +1 -1
- package/dist/components/app-shell/index.cjs +1 -1
- package/dist/components/app-shell/index.d.cts +1 -1
- package/dist/components/app-shell/index.d.ts +1 -1
- package/dist/components/app-shell/index.js +3 -40
- package/dist/components/avatar/index.cjs +69 -0
- package/dist/components/avatar/index.d.cts +18 -0
- package/dist/components/avatar/index.d.ts +18 -0
- package/dist/components/avatar/index.js +11 -0
- package/dist/components/badge/index.cjs +31 -0
- package/dist/components/badge/index.d.cts +7 -0
- package/dist/components/badge/index.d.ts +7 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/{breadcrumbs → breadcrumb}/index.cjs +8 -10
- package/dist/components/{breadcrumbs → breadcrumb}/index.d.cts +3 -4
- package/dist/components/{breadcrumbs → breadcrumb}/index.d.ts +3 -4
- package/dist/components/breadcrumb/index.js +8 -0
- package/dist/components/button/index.cjs +8 -26
- package/dist/components/button/index.js +3 -40
- package/dist/components/card/index.cjs +31 -0
- package/dist/components/card/index.d.cts +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +8 -0
- package/dist/components/checkbox/index.js +3 -15
- package/dist/components/close-button/index.cjs +8 -0
- package/dist/components/close-button/index.js +3 -2
- package/dist/components/command/index.cjs +13 -13
- package/dist/components/command/index.d.cts +28 -2
- package/dist/components/command/index.d.ts +28 -2
- package/dist/components/command/index.js +3 -28
- package/dist/components/data-list/index.cjs +33 -0
- package/dist/components/data-list/index.d.cts +1 -0
- package/dist/components/data-list/index.d.ts +1 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/dialog/index.cjs +51 -90
- package/dist/components/dialog/index.d.cts +35 -16
- package/dist/components/dialog/index.d.ts +35 -16
- package/dist/components/dialog/index.js +7 -69
- package/dist/components/drawer/index.cjs +55 -97
- package/dist/components/drawer/index.d.cts +34 -18
- package/dist/components/drawer/index.d.ts +34 -18
- package/dist/components/drawer/index.js +7 -61
- package/dist/components/empty-state/index.cjs +50 -0
- package/dist/components/empty-state/index.d.cts +11 -0
- package/dist/components/empty-state/index.d.ts +11 -0
- package/dist/components/empty-state/index.js +8 -0
- package/dist/components/file-upload/index.cjs +254 -0
- package/dist/components/file-upload/index.d.cts +43 -0
- package/dist/components/file-upload/index.d.ts +43 -0
- package/dist/components/file-upload/index.js +10 -0
- package/dist/components/grid-list/index.cjs +68 -0
- package/dist/components/grid-list/index.d.cts +84 -0
- package/dist/components/grid-list/index.d.ts +84 -0
- package/dist/components/grid-list/index.js +8 -0
- package/dist/components/icon-badge/index.cjs +1 -1
- package/dist/components/icon-badge/index.d.cts +1 -1
- package/dist/components/icon-badge/index.d.ts +1 -1
- package/dist/components/icon-badge/index.js +3 -33
- package/dist/components/icon-button/index.cjs +67 -0
- package/dist/components/icon-button/index.d.cts +9 -0
- package/dist/components/icon-button/index.d.ts +9 -0
- package/dist/components/icon-button/index.js +9 -0
- package/dist/components/icons/index.cjs +10 -0
- package/dist/components/icons/index.d.cts +2 -1
- package/dist/components/icons/index.d.ts +2 -1
- package/dist/components/icons/index.js +3 -1
- package/dist/components/input/index.cjs +37 -0
- package/dist/components/input/index.d.cts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +14 -0
- package/dist/components/link/index.js +3 -14
- package/dist/components/loading-overlay/index.cjs +44 -1878
- package/dist/components/loading-overlay/index.d.cts +19 -6
- package/dist/components/loading-overlay/index.d.ts +19 -6
- package/dist/components/loading-overlay/index.js +7 -1874
- package/dist/components/menu/index.cjs +239 -0
- package/dist/components/menu/index.d.cts +39 -0
- package/dist/components/menu/index.d.ts +39 -0
- package/dist/components/menu/index.js +11 -0
- package/dist/components/navbar/index.cjs +61 -15
- package/dist/components/navbar/index.d.cts +12 -9
- package/dist/components/navbar/index.d.ts +12 -9
- package/dist/components/navbar/index.js +5 -38
- package/dist/components/number-input/index.cjs +9 -1
- package/dist/components/number-input/index.js +3 -26
- package/dist/components/pagination/index.cjs +215 -0
- package/dist/components/pagination/index.d.cts +41 -0
- package/dist/components/pagination/index.d.ts +41 -0
- package/dist/components/pagination/index.js +9 -0
- package/dist/components/password-input/index.cjs +2 -2
- package/dist/components/password-input/index.js +3 -225
- package/dist/components/persona/index.cjs +101 -36
- package/dist/components/persona/index.d.cts +131 -5
- package/dist/components/persona/index.d.ts +131 -5
- package/dist/components/persona/index.js +8 -144
- package/dist/components/pin-input/index.js +3 -21
- package/dist/components/popover/index.cjs +214 -0
- package/dist/components/popover/index.d.cts +37 -0
- package/dist/components/popover/index.d.ts +37 -0
- package/dist/components/popover/index.js +11 -0
- package/dist/components/progress/index.cjs +31 -0
- package/dist/components/progress/index.d.cts +1 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +8 -0
- package/dist/components/progress-circle/index.cjs +31 -0
- package/dist/components/progress-circle/index.d.cts +1 -0
- package/dist/components/progress-circle/index.d.ts +1 -0
- package/dist/components/progress-circle/index.js +8 -0
- package/dist/components/radio/index.js +4 -16
- package/dist/components/search-input/index.cjs +8 -0
- package/dist/components/search-input/index.js +4 -114
- package/dist/components/segmented-control/index.cjs +60 -0
- package/dist/components/segmented-control/index.d.cts +14 -0
- package/dist/components/segmented-control/index.d.ts +14 -0
- package/dist/components/segmented-control/index.js +8 -0
- package/dist/components/select/index.cjs +8 -0
- package/dist/components/select/index.js +6 -95
- package/dist/components/sidebar/index.cjs +66 -32
- package/dist/components/sidebar/index.d.cts +30 -25
- package/dist/components/sidebar/index.d.ts +30 -25
- package/dist/components/sidebar/index.js +7 -101
- package/dist/components/status/index.cjs +45 -0
- package/dist/components/status/index.d.cts +17 -0
- package/dist/components/status/index.d.ts +17 -0
- package/dist/components/status/index.js +8 -0
- package/dist/components/steps/index.cjs +17 -10
- package/dist/components/steps/index.d.cts +4 -4
- package/dist/components/steps/index.d.ts +4 -4
- package/dist/components/steps/index.js +6 -67
- package/dist/components/switch/index.js +3 -18
- package/dist/components/tabs/index.cjs +35 -0
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/tag/index.cjs +53 -0
- package/dist/components/tag/index.d.cts +12 -0
- package/dist/components/tag/index.d.ts +12 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/components/textarea/index.cjs +31 -0
- package/dist/components/textarea/index.d.cts +1 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +8 -0
- package/dist/components/toaster/index.cjs +204 -0
- package/dist/components/toaster/index.d.cts +11 -0
- package/dist/components/toaster/index.d.ts +11 -0
- package/dist/components/toaster/index.js +12 -0
- package/dist/components/tooltip/index.cjs +57 -0
- package/dist/components/tooltip/index.d.cts +14 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +8 -0
- package/dist/index.cjs +8618 -5735
- package/dist/index.d.cts +50 -2
- package/dist/index.d.ts +50 -2
- package/dist/index.js +5733 -5021
- package/dist/theme/tokens/colors.cjs +349 -0
- package/dist/theme/tokens/colors.d.cts +856 -0
- package/dist/theme/tokens/colors.d.ts +856 -0
- package/dist/theme/tokens/colors.js +8 -0
- package/dist/types-DnFoUudY.d.cts +10 -0
- package/dist/types-DnFoUudY.d.ts +10 -0
- package/package.json +11 -4
- package/dist/chunk-VBIVLREP.js +0 -45
- /package/dist/{chunk-KHRLZUV4.js → chunk-O2WVT2BP.js} +0 -0
@@ -10,9 +10,8 @@ declare const BreadcrumbLink: react.ForwardRefExoticComponent<Breadcrumb.LinkPro
|
|
10
10
|
declare const BreadcrumbCurrentLink: react.ForwardRefExoticComponent<Breadcrumb.CurrentLinkProps & react.RefAttributes<HTMLElement>>;
|
11
11
|
declare const BreadcrumbEllipsis: react.ForwardRefExoticComponent<Breadcrumb.EllipsisProps & react.RefAttributes<HTMLElement>>;
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
export { type namespace_BreadcrumbRootProps as BreadcrumbRootProps, BreadcrumbCurrentLink as CurrentLink, BreadcrumbEllipsis as Ellipsis, BreadcrumbLink as Link, BreadcrumbRoot as Root };
|
13
|
+
declare namespace breadcrumb {
|
14
|
+
export { BreadcrumbCurrentLink as CurrentLink, BreadcrumbEllipsis as Ellipsis, BreadcrumbLink as Link, BreadcrumbRoot as Root, type BreadcrumbRootProps as RootProps };
|
16
15
|
}
|
17
16
|
|
18
|
-
export {
|
17
|
+
export { breadcrumb as Breadcrumb };
|
@@ -31,32 +31,14 @@ var import_react2 = require("@chakra-ui/react");
|
|
31
31
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
32
|
var Button = (0, import_react.forwardRef)(
|
33
33
|
function Button2(props, ref) {
|
34
|
-
const {
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
} = props;
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
44
|
-
import_react2.Button,
|
45
|
-
{
|
46
|
-
colorPalette,
|
47
|
-
disabled: loading || disabled,
|
48
|
-
variant,
|
49
|
-
ref,
|
50
|
-
...rest,
|
51
|
-
children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }) }),
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
|
54
|
-
] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
|
56
|
-
loadingText
|
57
|
-
] }) : children
|
58
|
-
}
|
59
|
-
);
|
34
|
+
const { loading, disabled, loadingText, children, ...rest } = props;
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Button, { disabled: loading || disabled, ref, ...rest, children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }) }),
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
|
38
|
+
] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
|
40
|
+
loadingText
|
41
|
+
] }) : children });
|
60
42
|
}
|
61
43
|
);
|
62
44
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -1,45 +1,8 @@
|
|
1
1
|
'use client'
|
2
|
-
import "../../chunk-RTMS5TJN.js";
|
3
|
-
|
4
|
-
// src/components/button/button.tsx
|
5
|
-
import { forwardRef } from "react";
|
6
2
|
import {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
Spinner
|
11
|
-
} from "@chakra-ui/react";
|
12
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
13
|
-
var Button = forwardRef(
|
14
|
-
function Button2(props, ref) {
|
15
|
-
const {
|
16
|
-
loading,
|
17
|
-
disabled,
|
18
|
-
loadingText,
|
19
|
-
children,
|
20
|
-
variant = "glass",
|
21
|
-
colorPalette = variant === "glass" ? "accent" : "gray",
|
22
|
-
...rest
|
23
|
-
} = props;
|
24
|
-
return /* @__PURE__ */ jsx(
|
25
|
-
ButtonPrimitive,
|
26
|
-
{
|
27
|
-
colorPalette,
|
28
|
-
disabled: loading || disabled,
|
29
|
-
variant,
|
30
|
-
ref,
|
31
|
-
...rest,
|
32
|
-
children: loading && !loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
33
|
-
/* @__PURE__ */ jsx(AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }) }),
|
34
|
-
/* @__PURE__ */ jsx(Span, { opacity: 0, children })
|
35
|
-
] }) : loading && loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
36
|
-
/* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }),
|
37
|
-
loadingText
|
38
|
-
] }) : children
|
39
|
-
}
|
40
|
-
);
|
41
|
-
}
|
42
|
-
);
|
3
|
+
Button
|
4
|
+
} from "../../chunk-NGSHWY7E.js";
|
5
|
+
import "../../chunk-RTMS5TJN.js";
|
43
6
|
export {
|
44
7
|
Button
|
45
8
|
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use client'
|
2
|
+
"use strict";
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
+
|
21
|
+
// src/components/card/index.ts
|
22
|
+
var card_exports = {};
|
23
|
+
__export(card_exports, {
|
24
|
+
Card: () => import_react.Card
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(card_exports);
|
27
|
+
var import_react = require("@chakra-ui/react");
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
29
|
+
0 && (module.exports = {
|
30
|
+
Card
|
31
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Card } from '@chakra-ui/react';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Card } from '@chakra-ui/react';
|
@@ -1,20 +1,8 @@
|
|
1
1
|
'use client'
|
2
|
+
import {
|
3
|
+
Checkbox
|
4
|
+
} from "../../chunk-L356FPLY.js";
|
2
5
|
import "../../chunk-RTMS5TJN.js";
|
3
|
-
|
4
|
-
// src/components/checkbox/checkbox.tsx
|
5
|
-
import { forwardRef } from "react";
|
6
|
-
import { Checkbox as ChakraCheckbox } from "@chakra-ui/react";
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
8
|
-
var Checkbox = forwardRef(
|
9
|
-
function Checkbox2(props, ref) {
|
10
|
-
const { icon, children, inputProps, rootRef, ...rest } = props;
|
11
|
-
return /* @__PURE__ */ jsxs(ChakraCheckbox.Root, { ref: rootRef, ...rest, children: [
|
12
|
-
/* @__PURE__ */ jsx(ChakraCheckbox.HiddenInput, { ref, ...inputProps }),
|
13
|
-
/* @__PURE__ */ jsx(ChakraCheckbox.Control, { children: icon || /* @__PURE__ */ jsx(ChakraCheckbox.Indicator, {}) }),
|
14
|
-
children != null && /* @__PURE__ */ jsx(ChakraCheckbox.Label, { children })
|
15
|
-
] });
|
16
|
-
}
|
17
|
-
);
|
18
6
|
export {
|
19
7
|
Checkbox
|
20
8
|
};
|
@@ -127,6 +127,14 @@ var CheckIcon = createIcon({
|
|
127
127
|
displayName: "CheckIcon",
|
128
128
|
path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" }) })
|
129
129
|
});
|
130
|
+
var EllipsisIcon = createIcon({
|
131
|
+
displayName: "EllipsisIcon",
|
132
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
|
133
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
134
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
136
|
+
] })
|
137
|
+
});
|
130
138
|
|
131
139
|
// src/components/close-button/close-button.tsx
|
132
140
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
@@ -1,8 +1,9 @@
|
|
1
1
|
'use client'
|
2
|
+
import "../../chunk-JMYI6YXR.js";
|
2
3
|
import {
|
3
4
|
CloseButton
|
4
|
-
} from "../../chunk-
|
5
|
-
import "../../chunk-
|
5
|
+
} from "../../chunk-YXGJOOMM.js";
|
6
|
+
import "../../chunk-4TPVIHNO.js";
|
6
7
|
import "../../chunk-RTMS5TJN.js";
|
7
8
|
export {
|
8
9
|
CloseButton
|
@@ -27,29 +27,29 @@ module.exports = __toCommonJS(command_exports);
|
|
27
27
|
|
28
28
|
// src/components/command/command.tsx
|
29
29
|
var import_react = require("@chakra-ui/react");
|
30
|
-
var import_react2 = require("@chakra-ui/react");
|
31
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
-
var { withContext } = (0,
|
33
|
-
key: "
|
31
|
+
var { withContext } = (0, import_react.createRecipeContext)({
|
32
|
+
key: "suiCommand"
|
34
33
|
});
|
35
|
-
var
|
34
|
+
var Command = (props) => {
|
35
|
+
const { children, modifiers, ...rest } = props;
|
36
36
|
if (typeof children !== "string") {
|
37
37
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
38
38
|
}
|
39
|
-
|
40
|
-
|
41
|
-
}
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Kbd, { children });
|
39
|
+
const keys = children.split(/\s|\+/);
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCommand, { ...rest, children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Key, { modifiers, size: props.size, children: key }, key)) });
|
43
41
|
};
|
44
|
-
var
|
45
|
-
|
42
|
+
var StyledCommand = withContext("span");
|
43
|
+
var Key = (props) => {
|
44
|
+
const { modifiers = ["then", "or", "+"], children, ...rest } = props;
|
46
45
|
if (typeof children !== "string") {
|
47
46
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
48
47
|
}
|
49
|
-
|
50
|
-
|
48
|
+
if (modifiers.includes(children)) {
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children });
|
50
|
+
}
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Kbd, { ...rest, children });
|
51
52
|
};
|
52
|
-
var CommandRoot = withContext("span");
|
53
53
|
// Annotate the CommonJS export names for ESM import in node:
|
54
54
|
0 && (module.exports = {
|
55
55
|
Command
|
@@ -1,6 +1,32 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import
|
2
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
3
|
+
import { RecipeVariantProps, HTMLChakraProps, UnstyledProp } from '@chakra-ui/react';
|
4
|
+
import { R as RecipeProps } from '../../types-DnFoUudY.cjs';
|
3
5
|
|
4
|
-
declare const
|
6
|
+
declare const commandRecipe: _chakra_ui_react.RecipeDefinition<{
|
7
|
+
size: {
|
8
|
+
sm: {
|
9
|
+
fontSize: "xs";
|
10
|
+
};
|
11
|
+
md: {
|
12
|
+
fontSize: "sm";
|
13
|
+
};
|
14
|
+
lg: {
|
15
|
+
fontSize: "md";
|
16
|
+
};
|
17
|
+
};
|
18
|
+
}>;
|
19
|
+
type CommandVariantProps = RecipeVariantProps<typeof commandRecipe>;
|
20
|
+
|
21
|
+
interface CommandBaseProps extends RecipeProps<'suiCommand', CommandVariantProps>, UnstyledProp {
|
22
|
+
}
|
23
|
+
interface CommandProps extends HTMLChakraProps<'span'>, CommandBaseProps, CommandVariantProps {
|
24
|
+
/**
|
25
|
+
* The modifiers to use for the command.
|
26
|
+
* @default ['then', 'or', '+']
|
27
|
+
*/
|
28
|
+
modifiers?: Array<string>;
|
29
|
+
}
|
30
|
+
declare const Command: react.FC<CommandProps>;
|
5
31
|
|
6
32
|
export { Command };
|
@@ -1,6 +1,32 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import
|
2
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
3
|
+
import { RecipeVariantProps, HTMLChakraProps, UnstyledProp } from '@chakra-ui/react';
|
4
|
+
import { R as RecipeProps } from '../../types-DnFoUudY.js';
|
3
5
|
|
4
|
-
declare const
|
6
|
+
declare const commandRecipe: _chakra_ui_react.RecipeDefinition<{
|
7
|
+
size: {
|
8
|
+
sm: {
|
9
|
+
fontSize: "xs";
|
10
|
+
};
|
11
|
+
md: {
|
12
|
+
fontSize: "sm";
|
13
|
+
};
|
14
|
+
lg: {
|
15
|
+
fontSize: "md";
|
16
|
+
};
|
17
|
+
};
|
18
|
+
}>;
|
19
|
+
type CommandVariantProps = RecipeVariantProps<typeof commandRecipe>;
|
20
|
+
|
21
|
+
interface CommandBaseProps extends RecipeProps<'suiCommand', CommandVariantProps>, UnstyledProp {
|
22
|
+
}
|
23
|
+
interface CommandProps extends HTMLChakraProps<'span'>, CommandBaseProps, CommandVariantProps {
|
24
|
+
/**
|
25
|
+
* The modifiers to use for the command.
|
26
|
+
* @default ['then', 'or', '+']
|
27
|
+
*/
|
28
|
+
modifiers?: Array<string>;
|
29
|
+
}
|
30
|
+
declare const Command: react.FC<CommandProps>;
|
5
31
|
|
6
32
|
export { Command };
|
@@ -1,33 +1,8 @@
|
|
1
1
|
'use client'
|
2
|
-
import "../../chunk-RTMS5TJN.js";
|
3
|
-
|
4
|
-
// src/components/command/command.tsx
|
5
|
-
import { Kbd } from "@chakra-ui/react";
|
6
2
|
import {
|
7
|
-
|
8
|
-
} from "
|
9
|
-
import
|
10
|
-
var { withContext } = createRecipeContext({
|
11
|
-
key: "command"
|
12
|
-
});
|
13
|
-
var Key = ({ children }) => {
|
14
|
-
if (typeof children !== "string") {
|
15
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
16
|
-
}
|
17
|
-
if (["then", "or", "+"].includes(children)) {
|
18
|
-
return /* @__PURE__ */ jsx("span", { children });
|
19
|
-
}
|
20
|
-
return /* @__PURE__ */ jsx(Kbd, { children });
|
21
|
-
};
|
22
|
-
var Command = (props) => {
|
23
|
-
const { children, ...rest } = props;
|
24
|
-
if (typeof children !== "string") {
|
25
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
26
|
-
}
|
27
|
-
const keys = children.split(/\s|\+/);
|
28
|
-
return /* @__PURE__ */ jsx(CommandRoot, { ...rest, children: keys.map((key) => /* @__PURE__ */ jsx(Key, { children: key }, key)) });
|
29
|
-
};
|
30
|
-
var CommandRoot = withContext("span");
|
3
|
+
Command
|
4
|
+
} from "../../chunk-UASXI64E.js";
|
5
|
+
import "../../chunk-RTMS5TJN.js";
|
31
6
|
export {
|
32
7
|
Command
|
33
8
|
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
'use client'
|
2
|
+
"use strict";
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
+
|
21
|
+
// src/components/data-list/index.ts
|
22
|
+
var data_list_exports = {};
|
23
|
+
__export(data_list_exports, {
|
24
|
+
DataList: () => import_data_list.DataList,
|
25
|
+
useDataListStyles: () => import_data_list.useDataListStyles
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(data_list_exports);
|
28
|
+
var import_data_list = require("@chakra-ui/react/data-list");
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
30
|
+
0 && (module.exports = {
|
31
|
+
DataList,
|
32
|
+
useDataListStyles
|
33
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DataList, useDataListStyles } from '@chakra-ui/react/data-list';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DataList, useDataListStyles } from '@chakra-ui/react/data-list';
|
@@ -19,32 +19,32 @@ var __copyProps = (to, from, except, desc) => {
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
20
|
|
21
21
|
// src/components/dialog/index.ts
|
22
|
-
var
|
23
|
-
__export(
|
24
|
-
Dialog: () =>
|
25
|
-
});
|
26
|
-
module.exports = __toCommonJS(dialog_exports);
|
27
|
-
|
28
|
-
// src/components/dialog/namespace.ts
|
29
|
-
var namespace_exports = {};
|
30
|
-
__export(namespace_exports, {
|
31
|
-
ActionTrigger: () => DialogActionTrigger,
|
32
|
-
Backdrop: () => DialogBackdrop,
|
33
|
-
Body: () => DialogBody,
|
34
|
-
CloseTrigger: () => DialogCloseTrigger,
|
35
|
-
Content: () => DialogContent,
|
36
|
-
Context: () => DialogContext,
|
37
|
-
Description: () => DialogDescription,
|
38
|
-
Footer: () => DialogFooter,
|
39
|
-
Header: () => DialogHeader,
|
40
|
-
Root: () => DialogRoot,
|
41
|
-
Title: () => DialogTitle,
|
42
|
-
Trigger: () => DialogTrigger
|
22
|
+
var dialog_exports2 = {};
|
23
|
+
__export(dialog_exports2, {
|
24
|
+
Dialog: () => dialog_exports
|
43
25
|
});
|
26
|
+
module.exports = __toCommonJS(dialog_exports2);
|
44
27
|
|
45
28
|
// src/components/dialog/dialog.tsx
|
46
|
-
var
|
47
|
-
|
29
|
+
var dialog_exports = {};
|
30
|
+
__export(dialog_exports, {
|
31
|
+
ActionTrigger: () => ActionTrigger,
|
32
|
+
Backdrop: () => Backdrop,
|
33
|
+
Body: () => Body,
|
34
|
+
CloseButton: () => CloseButton3,
|
35
|
+
CloseTrigger: () => CloseTrigger,
|
36
|
+
Content: () => Content,
|
37
|
+
Context: () => Context,
|
38
|
+
Description: () => Description,
|
39
|
+
DialogContext: () => import_dialog.DialogContext,
|
40
|
+
Footer: () => Footer,
|
41
|
+
Header: () => Header,
|
42
|
+
Root: () => Root,
|
43
|
+
Title: () => Title,
|
44
|
+
Trigger: () => Trigger
|
45
|
+
});
|
46
|
+
var import_react4 = require("react");
|
47
|
+
var import_react5 = require("@chakra-ui/react");
|
48
48
|
|
49
49
|
// src/components/close-button/close-button.tsx
|
50
50
|
var import_react2 = require("react");
|
@@ -148,6 +148,14 @@ var CheckIcon = createIcon({
|
|
148
148
|
displayName: "CheckIcon",
|
149
149
|
path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" }) })
|
150
150
|
});
|
151
|
+
var EllipsisIcon = createIcon({
|
152
|
+
displayName: "EllipsisIcon",
|
153
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
|
154
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
155
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
157
|
+
] })
|
158
|
+
});
|
151
159
|
|
152
160
|
// src/components/close-button/close-button.tsx
|
153
161
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
@@ -158,50 +166,11 @@ var CloseButton = (0, import_react2.forwardRef)(
|
|
158
166
|
}
|
159
167
|
);
|
160
168
|
|
161
|
-
// ../../node_modules/@ark-ui/react/dist/utils/create-context.js
|
162
|
-
var import_react4 = require("react");
|
163
|
-
function getErrorMessage(hook, provider) {
|
164
|
-
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
165
|
-
}
|
166
|
-
function createContext(options = {}) {
|
167
|
-
const {
|
168
|
-
name,
|
169
|
-
strict = true,
|
170
|
-
hookName = "useContext",
|
171
|
-
providerName = "Provider",
|
172
|
-
errorMessage,
|
173
|
-
defaultValue
|
174
|
-
} = options;
|
175
|
-
const Context = (0, import_react4.createContext)(defaultValue);
|
176
|
-
Context.displayName = name;
|
177
|
-
function useContext$1() {
|
178
|
-
var _a;
|
179
|
-
const context = (0, import_react4.useContext)(Context);
|
180
|
-
if (!context && strict) {
|
181
|
-
const error = new Error(errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName));
|
182
|
-
error.name = "ContextError";
|
183
|
-
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext$1);
|
184
|
-
throw error;
|
185
|
-
}
|
186
|
-
return context;
|
187
|
-
}
|
188
|
-
return [Context.Provider, useContext$1, Context];
|
189
|
-
}
|
190
|
-
|
191
|
-
// ../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js
|
192
|
-
var [DialogProvider, useDialogContext] = createContext({
|
193
|
-
name: "DialogContext",
|
194
|
-
hookName: "useDialogContext",
|
195
|
-
providerName: "<DialogProvider />"
|
196
|
-
});
|
197
|
-
|
198
|
-
// ../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js
|
199
|
-
var DialogContext = (props) => props.children(useDialogContext());
|
200
|
-
|
201
169
|
// src/components/dialog/dialog.tsx
|
170
|
+
var import_dialog = require("@ark-ui/react/dialog");
|
202
171
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
203
|
-
var
|
204
|
-
function
|
172
|
+
var Content = (0, import_react4.forwardRef)(
|
173
|
+
function DialogContent(props, ref) {
|
205
174
|
const {
|
206
175
|
children,
|
207
176
|
portalled = true,
|
@@ -209,34 +178,26 @@ var DialogContent = (0, import_react5.forwardRef)(
|
|
209
178
|
backdrop = true,
|
210
179
|
...rest
|
211
180
|
} = props;
|
212
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
213
|
-
backdrop && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
214
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react5.Portal, { disabled: !portalled, container: portalRef, children: [
|
182
|
+
backdrop && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Dialog.Backdrop, {}),
|
183
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Dialog.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Dialog.Content, { ref, ...rest, asChild: false, children }) })
|
215
184
|
] });
|
216
185
|
}
|
217
186
|
);
|
218
|
-
var
|
219
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
var
|
232
|
-
var DialogFooter = import_react6.Dialog.Footer;
|
233
|
-
var DialogHeader = import_react6.Dialog.Header;
|
234
|
-
var DialogBody = import_react6.Dialog.Body;
|
235
|
-
var DialogBackdrop = import_react6.Dialog.Backdrop;
|
236
|
-
var DialogTitle = import_react6.Dialog.Title;
|
237
|
-
var DialogDescription = import_react6.Dialog.Description;
|
238
|
-
var DialogTrigger = import_react6.Dialog.Trigger;
|
239
|
-
var DialogActionTrigger = import_react6.Dialog.ActionTrigger;
|
187
|
+
var CloseButton3 = (0, import_react4.forwardRef)(function DialogCloseTrigger(props, ref) {
|
188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Dialog.CloseTrigger, { ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref, children: props.children }) });
|
189
|
+
});
|
190
|
+
var CloseTrigger = import_react5.Dialog.CloseTrigger;
|
191
|
+
var Root = import_react5.Dialog.Root;
|
192
|
+
var Context = import_react5.Dialog.Context;
|
193
|
+
var Footer = import_react5.Dialog.Footer;
|
194
|
+
var Header = import_react5.Dialog.Header;
|
195
|
+
var Body = import_react5.Dialog.Body;
|
196
|
+
var Backdrop = import_react5.Dialog.Backdrop;
|
197
|
+
var Title = import_react5.Dialog.Title;
|
198
|
+
var Description = import_react5.Dialog.Description;
|
199
|
+
var Trigger = import_react5.Dialog.Trigger;
|
200
|
+
var ActionTrigger = import_react5.Dialog.ActionTrigger;
|
240
201
|
// Annotate the CommonJS export names for ESM import in node:
|
241
202
|
0 && (module.exports = {
|
242
203
|
Dialog
|