@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
@@ -1,107 +1,13 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
Backdrop: () => SidebarBackdrop,
|
10
|
-
Body: () => SidebarBody,
|
11
|
-
FlyoutTrigger: () => SidebarFlyoutTrigger,
|
12
|
-
Footer: () => SidebarFooter,
|
13
|
-
Group: () => SidebarGroup,
|
14
|
-
GroupContent: () => SidebarGroupContent,
|
15
|
-
GroupEndElement: () => SidebarGroupEndElement,
|
16
|
-
GroupHeader: () => SidebarGroupHeader,
|
17
|
-
GroupTitle: () => SidebarGroupTitle,
|
18
|
-
Header: () => SidebarHeader,
|
19
|
-
NavButton: () => SidebarNavButton,
|
20
|
-
NavItem: () => SidebarNavItem,
|
21
|
-
NavItemEndElement: () => SidebarNavItemEndElement,
|
22
|
-
Provider: () => SidebarProvider,
|
23
|
-
Root: () => SidebarRoot,
|
24
|
-
Track: () => SidebarTrack,
|
25
|
-
Trigger: () => SidebarTrigger
|
26
|
-
});
|
27
|
-
|
28
|
-
// src/components/sidebar/sidebar.tsx
|
29
|
-
import { createSlotRecipeContext } from "@chakra-ui/react";
|
30
|
-
import { Sidebar, useSidebar } from "@saas-ui/core/sidebar";
|
31
|
-
import { jsx } from "react/jsx-runtime";
|
32
|
-
var {
|
33
|
-
withContext,
|
34
|
-
useRecipeResult,
|
35
|
-
StylesProvider,
|
36
|
-
ClassNamesProvider,
|
37
|
-
useStyles: useSidebarStyles
|
38
|
-
} = createSlotRecipeContext({
|
39
|
-
key: "sidebar"
|
40
|
-
});
|
41
|
-
var SidebarProvider = function SidebarProvider2(props) {
|
42
|
-
return /* @__PURE__ */ jsx(Sidebar.Provider, { ...props, children: /* @__PURE__ */ jsx(RecipeProvider, { ...props, children: props.children }) });
|
43
|
-
};
|
44
|
-
function RecipeProvider(props) {
|
45
|
-
const { mode } = useSidebar();
|
46
|
-
const { styles, classNames } = useRecipeResult({
|
47
|
-
...props,
|
48
|
-
mode
|
49
|
-
});
|
50
|
-
return /* @__PURE__ */ jsx(StylesProvider, { value: styles, children: /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: props.children }) });
|
51
|
-
}
|
52
|
-
var SidebarRoot = withContext(
|
53
|
-
Sidebar.Root,
|
54
|
-
"root"
|
55
|
-
);
|
56
|
-
var SidebarTrigger = withContext(Sidebar.Trigger, "trigger", {
|
57
|
-
forwardAsChild: true
|
58
|
-
});
|
59
|
-
var SidebarFlyoutTrigger = withContext(Sidebar.FlyoutTrigger, "flyoutTrigger", {
|
60
|
-
forwardAsChild: true
|
61
|
-
});
|
62
|
-
var SidebarBackdrop = withContext(Sidebar.Backdrop, "backdrop", {
|
63
|
-
forwardAsChild: true
|
64
|
-
});
|
65
|
-
var SidebarHeader = withContext(Sidebar.Header, "header");
|
66
|
-
var SidebarBody = withContext(
|
67
|
-
Sidebar.Body,
|
68
|
-
"body"
|
69
|
-
);
|
70
|
-
var SidebarFooter = withContext(Sidebar.Footer, "footer");
|
71
|
-
var SidebarTrack = withContext(
|
72
|
-
Sidebar.Track,
|
73
|
-
"track",
|
74
|
-
{
|
75
|
-
forwardAsChild: true
|
76
|
-
}
|
77
|
-
);
|
78
|
-
var SidebarGroup = withContext(
|
79
|
-
Sidebar.Group,
|
80
|
-
"group",
|
81
|
-
{
|
82
|
-
defaultProps: {
|
83
|
-
role: "group"
|
84
|
-
}
|
85
|
-
}
|
86
|
-
);
|
87
|
-
var SidebarGroupHeader = withContext(Sidebar.GroupHeader, "groupHeader");
|
88
|
-
var SidebarGroupTitle = withContext(Sidebar.GroupTitle, "groupTitle");
|
89
|
-
var SidebarGroupEndElement = withContext(Sidebar.GroupEndElement, "groupEndElement");
|
90
|
-
var SidebarGroupContent = withContext(Sidebar.GroupContent, "groupContent");
|
91
|
-
var {
|
92
|
-
withProvider: withItemProvider,
|
93
|
-
withContext: withItemContext,
|
94
|
-
useStyles: useSidebarItemStyles
|
95
|
-
} = createSlotRecipeContext({
|
96
|
-
key: "sidebarNavItem"
|
97
|
-
});
|
98
|
-
var SidebarNavItem = withItemProvider(Sidebar.NavItem, "item");
|
99
|
-
var SidebarNavButton = withItemContext(Sidebar.NavButton, "button", {
|
100
|
-
forwardAsChild: true
|
101
|
-
});
|
102
|
-
var SidebarNavItemEndElement = withItemContext(Sidebar.NavItemEndElement, "endElement");
|
3
|
+
sidebar_exports,
|
4
|
+
useSidebar,
|
5
|
+
useSidebarItemStyles,
|
6
|
+
useSidebarStyles
|
7
|
+
} from "../../chunk-U23VDAWJ.js";
|
8
|
+
import "../../chunk-RTMS5TJN.js";
|
103
9
|
export {
|
104
|
-
|
10
|
+
sidebar_exports as Sidebar,
|
105
11
|
useSidebar,
|
106
12
|
useSidebarItemStyles,
|
107
13
|
useSidebarStyles
|
@@ -0,0 +1,45 @@
|
|
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/status/index.ts
|
22
|
+
var status_exports = {};
|
23
|
+
__export(status_exports, {
|
24
|
+
Status: () => Status
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(status_exports);
|
27
|
+
|
28
|
+
// src/components/status/status.tsx
|
29
|
+
var import_react = require("react");
|
30
|
+
var import_react2 = require("@chakra-ui/react");
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
+
var Status = (0, import_react.forwardRef)(
|
33
|
+
function Status2(props, ref) {
|
34
|
+
const { children, value, ...rest } = props;
|
35
|
+
const color = value ? `status.${value}` : void 0;
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Status.Root, { ref, ...rest, children: [
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Status.Indicator, { bg: color }),
|
38
|
+
children
|
39
|
+
] });
|
40
|
+
}
|
41
|
+
);
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
43
|
+
0 && (module.exports = {
|
44
|
+
Status
|
45
|
+
});
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Status as Status$1, Token } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
type StatusTokens = Extract<Token, `colors.status.${string}`>;
|
5
|
+
interface StatusProps extends Status$1.RootProps {
|
6
|
+
/**
|
7
|
+
* The status value, used to determine the color of the status
|
8
|
+
* colors can be configured as semantic tokens under the `colors.status` key.
|
9
|
+
*/
|
10
|
+
value?: StatusTokens extends never ? string : StatusTokens;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Status component
|
14
|
+
*/
|
15
|
+
declare const Status: react.ForwardRefExoticComponent<StatusProps & react.RefAttributes<HTMLDivElement>>;
|
16
|
+
|
17
|
+
export { Status, type StatusProps };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Status as Status$1, Token } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
type StatusTokens = Extract<Token, `colors.status.${string}`>;
|
5
|
+
interface StatusProps extends Status$1.RootProps {
|
6
|
+
/**
|
7
|
+
* The status value, used to determine the color of the status
|
8
|
+
* colors can be configured as semantic tokens under the `colors.status` key.
|
9
|
+
*/
|
10
|
+
value?: StatusTokens extends never ? string : StatusTokens;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Status component
|
14
|
+
*/
|
15
|
+
declare const Status: react.ForwardRefExoticComponent<StatusProps & react.RefAttributes<HTMLDivElement>>;
|
16
|
+
|
17
|
+
export { Status, type StatusProps };
|
@@ -19,15 +19,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
20
|
|
21
21
|
// src/components/steps/index.ts
|
22
|
-
var
|
23
|
-
__export(
|
24
|
-
Steps: () =>
|
22
|
+
var steps_exports2 = {};
|
23
|
+
__export(steps_exports2, {
|
24
|
+
Steps: () => steps_exports
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
26
|
+
module.exports = __toCommonJS(steps_exports2);
|
27
27
|
|
28
|
-
// src/components/steps/
|
29
|
-
var
|
30
|
-
__export(
|
28
|
+
// src/components/steps/steps.tsx
|
29
|
+
var steps_exports = {};
|
30
|
+
__export(steps_exports, {
|
31
31
|
CompletedContent: () => StepsCompletedContent,
|
32
32
|
Content: () => StepsContent,
|
33
33
|
Indicator: () => StepsIndicator,
|
@@ -35,10 +35,9 @@ __export(namespace_exports, {
|
|
35
35
|
List: () => StepsList,
|
36
36
|
NextTrigger: () => StepsNextTrigger,
|
37
37
|
PrevTrigger: () => StepsPrevTrigger,
|
38
|
-
Root: () => StepsRoot
|
38
|
+
Root: () => StepsRoot,
|
39
|
+
useContext: () => import_react2.useStepsContext
|
39
40
|
});
|
40
|
-
|
41
|
-
// src/components/steps/steps.tsx
|
42
41
|
var import_react2 = require("@chakra-ui/react");
|
43
42
|
|
44
43
|
// src/components/icons/create-icon.tsx
|
@@ -139,6 +138,14 @@ var CheckIcon = createIcon({
|
|
139
138
|
displayName: "CheckIcon",
|
140
139
|
path: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" }) })
|
141
140
|
});
|
141
|
+
var EllipsisIcon = createIcon({
|
142
|
+
displayName: "EllipsisIcon",
|
143
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
|
144
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
145
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
147
|
+
] })
|
148
|
+
});
|
142
149
|
|
143
150
|
// src/components/steps/steps.tsx
|
144
151
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
3
|
-
import { Steps } from '@chakra-ui/react';
|
3
|
+
import { Steps, useStepsContext } from '@chakra-ui/react';
|
4
4
|
|
5
5
|
interface StepInfoProps {
|
6
6
|
title?: React.ReactNode;
|
@@ -24,8 +24,8 @@ declare const StepsCompletedContent: react.ForwardRefExoticComponent<Steps.Compl
|
|
24
24
|
declare const StepsNextTrigger: (props: Steps.NextTriggerProps) => react_jsx_runtime.JSX.Element;
|
25
25
|
declare const StepsPrevTrigger: (props: Steps.PrevTriggerProps) => react_jsx_runtime.JSX.Element;
|
26
26
|
|
27
|
-
declare namespace
|
28
|
-
export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps };
|
27
|
+
declare namespace steps {
|
28
|
+
export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps, useStepsContext as useContext };
|
29
29
|
}
|
30
30
|
|
31
|
-
export {
|
31
|
+
export { steps as Steps };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
3
|
-
import { Steps } from '@chakra-ui/react';
|
3
|
+
import { Steps, useStepsContext } from '@chakra-ui/react';
|
4
4
|
|
5
5
|
interface StepInfoProps {
|
6
6
|
title?: React.ReactNode;
|
@@ -24,8 +24,8 @@ declare const StepsCompletedContent: react.ForwardRefExoticComponent<Steps.Compl
|
|
24
24
|
declare const StepsNextTrigger: (props: Steps.NextTriggerProps) => react_jsx_runtime.JSX.Element;
|
25
25
|
declare const StepsPrevTrigger: (props: Steps.PrevTriggerProps) => react_jsx_runtime.JSX.Element;
|
26
26
|
|
27
|
-
declare namespace
|
28
|
-
export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps };
|
27
|
+
declare namespace steps {
|
28
|
+
export { StepsCompletedContent as CompletedContent, StepsContent as Content, StepsIndicator as Indicator, type StepsIndicatorProps as IndicatorProps, StepsItem as Item, type StepsItemProps as ItemProps, StepsList as List, StepsNextTrigger as NextTrigger, StepsPrevTrigger as PrevTrigger, StepsRoot as Root, type StepsRootProps as RootProps, useStepsContext as useContext };
|
29
29
|
}
|
30
30
|
|
31
|
-
export {
|
31
|
+
export { steps as Steps };
|
@@ -1,71 +1,10 @@
|
|
1
1
|
'use client'
|
2
|
-
import "../../chunk-KTLWEUNW.js";
|
3
|
-
import {
|
4
|
-
CheckIcon
|
5
|
-
} from "../../chunk-VDXTEASE.js";
|
6
2
|
import {
|
7
|
-
|
8
|
-
} from "../../chunk-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
__export(namespace_exports, {
|
13
|
-
CompletedContent: () => StepsCompletedContent,
|
14
|
-
Content: () => StepsContent,
|
15
|
-
Indicator: () => StepsIndicator,
|
16
|
-
Item: () => StepsItem,
|
17
|
-
List: () => StepsList,
|
18
|
-
NextTrigger: () => StepsNextTrigger,
|
19
|
-
PrevTrigger: () => StepsPrevTrigger,
|
20
|
-
Root: () => StepsRoot
|
21
|
-
});
|
22
|
-
|
23
|
-
// src/components/steps/steps.tsx
|
24
|
-
import { Box, Steps as ChakraSteps } from "@chakra-ui/react";
|
25
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
26
|
-
var StepsItem = (props) => {
|
27
|
-
const { title, description, completedIcon, icon, ...rest } = props;
|
28
|
-
return /* @__PURE__ */ jsxs(ChakraSteps.Item, { ...rest, children: [
|
29
|
-
/* @__PURE__ */ jsxs(ChakraSteps.Trigger, { children: [
|
30
|
-
/* @__PURE__ */ jsx(ChakraSteps.Indicator, { children: /* @__PURE__ */ jsx(
|
31
|
-
ChakraSteps.Status,
|
32
|
-
{
|
33
|
-
complete: completedIcon || /* @__PURE__ */ jsx(CheckIcon, {}),
|
34
|
-
incomplete: icon || /* @__PURE__ */ jsx(ChakraSteps.Number, {})
|
35
|
-
}
|
36
|
-
) }),
|
37
|
-
/* @__PURE__ */ jsx(StepInfo, { title, description })
|
38
|
-
] }),
|
39
|
-
/* @__PURE__ */ jsx(ChakraSteps.Separator, {})
|
40
|
-
] });
|
41
|
-
};
|
42
|
-
var StepInfo = (props) => {
|
43
|
-
const { title, description } = props;
|
44
|
-
if (title && description) {
|
45
|
-
return /* @__PURE__ */ jsxs(Box, { children: [
|
46
|
-
/* @__PURE__ */ jsx(ChakraSteps.Title, { children: title }),
|
47
|
-
/* @__PURE__ */ jsx(ChakraSteps.Description, { children: description })
|
48
|
-
] });
|
49
|
-
}
|
50
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
51
|
-
title && /* @__PURE__ */ jsx(ChakraSteps.Title, { children: title }),
|
52
|
-
description && /* @__PURE__ */ jsx(ChakraSteps.Description, { children: description })
|
53
|
-
] });
|
54
|
-
};
|
55
|
-
var StepsIndicator = (props) => {
|
56
|
-
const { icon = /* @__PURE__ */ jsx(ChakraSteps.Number, {}), completedIcon } = props;
|
57
|
-
return /* @__PURE__ */ jsx(ChakraSteps.Indicator, { children: /* @__PURE__ */ jsx(ChakraSteps.Status, { complete: completedIcon, incomplete: icon }) });
|
58
|
-
};
|
59
|
-
var StepsList = ChakraSteps.List;
|
60
|
-
var StepsRoot = ChakraSteps.Root;
|
61
|
-
var StepsContent = ChakraSteps.Content;
|
62
|
-
var StepsCompletedContent = ChakraSteps.CompletedContent;
|
63
|
-
var StepsNextTrigger = (props) => {
|
64
|
-
return /* @__PURE__ */ jsx(ChakraSteps.NextTrigger, { ...props });
|
65
|
-
};
|
66
|
-
var StepsPrevTrigger = (props) => {
|
67
|
-
return /* @__PURE__ */ jsx(ChakraSteps.PrevTrigger, { ...props });
|
68
|
-
};
|
3
|
+
steps_exports
|
4
|
+
} from "../../chunk-VZG7EJ64.js";
|
5
|
+
import "../../chunk-KTLWEUNW.js";
|
6
|
+
import "../../chunk-4TPVIHNO.js";
|
7
|
+
import "../../chunk-RTMS5TJN.js";
|
69
8
|
export {
|
70
|
-
|
9
|
+
steps_exports as Steps
|
71
10
|
};
|
@@ -1,23 +1,8 @@
|
|
1
1
|
'use client'
|
2
|
+
import {
|
3
|
+
Switch
|
4
|
+
} from "../../chunk-SA3OGTOO.js";
|
2
5
|
import "../../chunk-RTMS5TJN.js";
|
3
|
-
|
4
|
-
// src/components/switch/switch.tsx
|
5
|
-
import { Switch as ChakraSwitch } from "@chakra-ui/react";
|
6
|
-
import { forwardRef } from "react";
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
8
|
-
var Switch = forwardRef(
|
9
|
-
function Switch2(props, ref) {
|
10
|
-
const { inputProps, children, rootRef, trackLabel, thumbLabel, ...rest } = props;
|
11
|
-
return /* @__PURE__ */ jsxs(ChakraSwitch.Root, { ref: rootRef, ...rest, children: [
|
12
|
-
/* @__PURE__ */ jsx(ChakraSwitch.HiddenInput, { ref, ...inputProps }),
|
13
|
-
/* @__PURE__ */ jsxs(ChakraSwitch.Control, { children: [
|
14
|
-
/* @__PURE__ */ jsx(ChakraSwitch.Thumb, { children: thumbLabel && /* @__PURE__ */ jsx(ChakraSwitch.ThumbIndicator, { fallback: thumbLabel == null ? void 0 : thumbLabel.off, children: thumbLabel == null ? void 0 : thumbLabel.on }) }),
|
15
|
-
trackLabel && /* @__PURE__ */ jsx(ChakraSwitch.Indicator, { fallback: trackLabel.off, children: trackLabel.on })
|
16
|
-
] }),
|
17
|
-
children != null && /* @__PURE__ */ jsx(ChakraSwitch.Label, { children })
|
18
|
-
] });
|
19
|
-
}
|
20
|
-
);
|
21
6
|
export {
|
22
7
|
Switch
|
23
8
|
};
|
@@ -0,0 +1,35 @@
|
|
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/tabs/index.ts
|
22
|
+
var tabs_exports = {};
|
23
|
+
__export(tabs_exports, {
|
24
|
+
Tabs: () => import_tabs.Tabs,
|
25
|
+
useTabsContext: () => import_tabs.useTabsContext,
|
26
|
+
useTabsStyles: () => import_tabs.useTabsStyles
|
27
|
+
});
|
28
|
+
module.exports = __toCommonJS(tabs_exports);
|
29
|
+
var import_tabs = require("@chakra-ui/react/tabs");
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
31
|
+
0 && (module.exports = {
|
32
|
+
Tabs,
|
33
|
+
useTabsContext,
|
34
|
+
useTabsStyles
|
35
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Tabs, useTabsContext, useTabsStyles } from '@chakra-ui/react/tabs';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Tabs, useTabsContext, useTabsStyles } from '@chakra-ui/react/tabs';
|
@@ -0,0 +1,53 @@
|
|
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/tag/index.ts
|
22
|
+
var tag_exports = {};
|
23
|
+
__export(tag_exports, {
|
24
|
+
Tag: () => Tag
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(tag_exports);
|
27
|
+
|
28
|
+
// src/components/tag/tag.tsx
|
29
|
+
var import_react = require("react");
|
30
|
+
var import_react2 = require("@chakra-ui/react");
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
+
var Tag = (0, import_react.forwardRef)(
|
33
|
+
function Tag2(props, ref) {
|
34
|
+
const {
|
35
|
+
startElement,
|
36
|
+
endElement,
|
37
|
+
onClose,
|
38
|
+
closable = !!onClose,
|
39
|
+
children,
|
40
|
+
...rest
|
41
|
+
} = props;
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Tag.Root, { ref, ...rest, children: [
|
43
|
+
startElement && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.StartElement, { children: startElement }),
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.Label, { children }),
|
45
|
+
endElement && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.EndElement, { children: endElement }),
|
46
|
+
closable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.EndElement, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.CloseTrigger, { onClick: onClose }) })
|
47
|
+
] });
|
48
|
+
}
|
49
|
+
);
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
51
|
+
0 && (module.exports = {
|
52
|
+
Tag
|
53
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Tag as Tag$1 } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface TagProps extends Tag$1.RootProps {
|
5
|
+
startElement?: React.ReactNode;
|
6
|
+
endElement?: React.ReactNode;
|
7
|
+
onClose?: VoidFunction;
|
8
|
+
closable?: boolean;
|
9
|
+
}
|
10
|
+
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLSpanElement>>;
|
11
|
+
|
12
|
+
export { Tag, type TagProps };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { Tag as Tag$1 } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface TagProps extends Tag$1.RootProps {
|
5
|
+
startElement?: React.ReactNode;
|
6
|
+
endElement?: React.ReactNode;
|
7
|
+
onClose?: VoidFunction;
|
8
|
+
closable?: boolean;
|
9
|
+
}
|
10
|
+
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLSpanElement>>;
|
11
|
+
|
12
|
+
export { Tag, type TagProps };
|
@@ -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/textarea/index.ts
|
22
|
+
var textarea_exports = {};
|
23
|
+
__export(textarea_exports, {
|
24
|
+
Textarea: () => import_textarea.Textarea
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(textarea_exports);
|
27
|
+
var import_textarea = require("@chakra-ui/react/textarea");
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
29
|
+
0 && (module.exports = {
|
30
|
+
Textarea
|
31
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Textarea, TextareaProps } from '@chakra-ui/react/textarea';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Textarea, TextareaProps } from '@chakra-ui/react/textarea';
|