@saas-ui/react 3.0.0-alpha.7 → 3.0.0-alpha.8
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 +7 -0
- package/dist/chunk-7VSTNV2B.js +53 -0
- package/dist/{chunk-ZWSZQZ5G.js → chunk-CB52LBJK.js} +1 -3
- package/dist/{chunk-GEPWRHHH.js → chunk-H6TFEHY4.js} +1 -3
- package/dist/{chunk-5T7S5OAM.js → chunk-JGHXJ3PI.js} +2 -0
- package/dist/components/dialog/index.cjs +19 -58
- package/dist/components/dialog/index.js +1 -2
- package/dist/components/drawer/index.cjs +23 -64
- package/dist/components/drawer/index.js +1 -2
- package/dist/components/loading-overlay/index.cjs +16 -1868
- package/dist/components/loading-overlay/index.js +1 -1
- package/dist/components/menu/index.cjs +2 -0
- package/dist/components/menu/index.d.cts +3 -1
- package/dist/components/menu/index.d.ts +3 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/index.cjs +438 -2315
- package/dist/index.js +24 -24
- package/package.json +3 -2
- package/dist/chunk-VBIVLREP.js +0 -45
- package/dist/chunk-YWJZWB6I.js +0 -1892
package/dist/index.js
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
4
|
-
} from "./chunk-HELHPHIQ.js";
|
2
|
+
Tooltip
|
3
|
+
} from "./chunk-QSNSWCTM.js";
|
5
4
|
import {
|
6
5
|
colors
|
7
6
|
} from "./chunk-IFYV7NUJ.js";
|
8
7
|
import {
|
9
8
|
SearchInput
|
10
9
|
} from "./chunk-LIYUBUOP.js";
|
11
|
-
import {
|
12
|
-
namespace_exports as namespace_exports3
|
13
|
-
} from "./chunk-S3CQW7GD.js";
|
14
10
|
import {
|
15
11
|
SegmentedControl
|
16
12
|
} from "./chunk-SKXSBAOS.js";
|
13
|
+
import {
|
14
|
+
namespace_exports as namespace_exports3
|
15
|
+
} from "./chunk-S3CQW7GD.js";
|
17
16
|
import {
|
18
17
|
sidebar_exports,
|
19
18
|
useSidebar,
|
20
19
|
useSidebarItemStyles,
|
21
20
|
useSidebarStyles
|
22
21
|
} from "./chunk-DPMEXCSG.js";
|
23
|
-
import {
|
24
|
-
Switch
|
25
|
-
} from "./chunk-SA3OGTOO.js";
|
26
|
-
import {
|
27
|
-
Tooltip
|
28
|
-
} from "./chunk-QSNSWCTM.js";
|
29
22
|
import {
|
30
23
|
steps_exports
|
31
24
|
} from "./chunk-6LOMIKR5.js";
|
32
25
|
import {
|
33
|
-
|
34
|
-
} from "./chunk-
|
26
|
+
Switch
|
27
|
+
} from "./chunk-SA3OGTOO.js";
|
28
|
+
import {
|
29
|
+
Toaster,
|
30
|
+
toast
|
31
|
+
} from "./chunk-HELHPHIQ.js";
|
35
32
|
import {
|
36
33
|
loading_overlay_exports,
|
37
34
|
useLoadingOverlayStyles
|
38
|
-
} from "./chunk-
|
35
|
+
} from "./chunk-7VSTNV2B.js";
|
39
36
|
import {
|
40
37
|
Spinner
|
41
38
|
} from "./chunk-32JGENDB.js";
|
39
|
+
import {
|
40
|
+
menu_exports
|
41
|
+
} from "./chunk-JGHXJ3PI.js";
|
42
42
|
import {
|
43
43
|
navbar_exports
|
44
44
|
} from "./chunk-3Z2C27LI.js";
|
@@ -62,11 +62,10 @@ import {
|
|
62
62
|
} from "./chunk-WYLMBMAH.js";
|
63
63
|
import {
|
64
64
|
namespace_exports
|
65
|
-
} from "./chunk-
|
65
|
+
} from "./chunk-CB52LBJK.js";
|
66
66
|
import {
|
67
67
|
namespace_exports as namespace_exports2
|
68
|
-
} from "./chunk-
|
69
|
-
import "./chunk-VBIVLREP.js";
|
68
|
+
} from "./chunk-H6TFEHY4.js";
|
70
69
|
import {
|
71
70
|
EmptyState
|
72
71
|
} from "./chunk-FJFNGSPL.js";
|
@@ -87,10 +86,6 @@ import {
|
|
87
86
|
useLink,
|
88
87
|
useSui
|
89
88
|
} from "./chunk-BFA5FCA2.js";
|
90
|
-
import {
|
91
|
-
Avatar,
|
92
|
-
AvatarGroup
|
93
|
-
} from "./chunk-UCQ3LZIE.js";
|
94
89
|
import {
|
95
90
|
AppShell
|
96
91
|
} from "./chunk-6ZNR6N2K.js";
|
@@ -98,11 +93,15 @@ import {
|
|
98
93
|
breadcrumb_exports
|
99
94
|
} from "./chunk-TT4C5VXB.js";
|
100
95
|
import {
|
101
|
-
|
102
|
-
|
96
|
+
Avatar,
|
97
|
+
AvatarGroup
|
98
|
+
} from "./chunk-UCQ3LZIE.js";
|
103
99
|
import {
|
104
100
|
Button
|
105
101
|
} from "./chunk-BCNPBZZK.js";
|
102
|
+
import {
|
103
|
+
Checkbox
|
104
|
+
} from "./chunk-L356FPLY.js";
|
106
105
|
import {
|
107
106
|
CloseButton
|
108
107
|
} from "./chunk-FZW2DYK3.js";
|
@@ -411,6 +410,7 @@ import { defineRecipe } from "@chakra-ui/react";
|
|
411
410
|
var buttonRecipe = defineRecipe({
|
412
411
|
className: "chakra-button",
|
413
412
|
base: {
|
413
|
+
colorPalette: "gray",
|
414
414
|
display: "inline-flex",
|
415
415
|
appearance: "none",
|
416
416
|
alignItems: "center",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@saas-ui/react",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.8",
|
4
4
|
"description": "Saas UI - The React component library for startups.",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -69,11 +69,12 @@
|
|
69
69
|
"url": "https://storybook.saas-ui.dev"
|
70
70
|
},
|
71
71
|
"dependencies": {
|
72
|
+
"@ark-ui/react": "^4.4.4",
|
72
73
|
"@saas-ui/core": "3.0.0-alpha.4",
|
73
74
|
"@saas-ui/hooks": "3.0.0-alpha.4"
|
74
75
|
},
|
75
76
|
"peerDependencies": {
|
76
|
-
"@chakra-ui/react": "^3.2.
|
77
|
+
"@chakra-ui/react": "^3.2.2",
|
77
78
|
"@emotion/react": "^11",
|
78
79
|
"react": ">=18",
|
79
80
|
"react-dom": ">=18"
|
package/dist/chunk-VBIVLREP.js
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
|
3
|
-
// ../../node_modules/@ark-ui/react/dist/utils/create-context.js
|
4
|
-
import { createContext as createContext$1, useContext } from "react";
|
5
|
-
function getErrorMessage(hook, provider) {
|
6
|
-
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
7
|
-
}
|
8
|
-
function createContext(options = {}) {
|
9
|
-
const {
|
10
|
-
name,
|
11
|
-
strict = true,
|
12
|
-
hookName = "useContext",
|
13
|
-
providerName = "Provider",
|
14
|
-
errorMessage,
|
15
|
-
defaultValue
|
16
|
-
} = options;
|
17
|
-
const Context = createContext$1(defaultValue);
|
18
|
-
Context.displayName = name;
|
19
|
-
function useContext$1() {
|
20
|
-
var _a;
|
21
|
-
const context = useContext(Context);
|
22
|
-
if (!context && strict) {
|
23
|
-
const error = new Error(errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName));
|
24
|
-
error.name = "ContextError";
|
25
|
-
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext$1);
|
26
|
-
throw error;
|
27
|
-
}
|
28
|
-
return context;
|
29
|
-
}
|
30
|
-
return [Context.Provider, useContext$1, Context];
|
31
|
-
}
|
32
|
-
|
33
|
-
// ../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js
|
34
|
-
var [DialogProvider, useDialogContext] = createContext({
|
35
|
-
name: "DialogContext",
|
36
|
-
hookName: "useDialogContext",
|
37
|
-
providerName: "<DialogProvider />"
|
38
|
-
});
|
39
|
-
|
40
|
-
// ../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js
|
41
|
-
var DialogContext = (props) => props.children(useDialogContext());
|
42
|
-
|
43
|
-
export {
|
44
|
-
DialogContext
|
45
|
-
};
|