@saas-ui/react 3.0.0-alpha.3 → 3.0.0-alpha.4
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 +6 -0
- 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 +1 -1
- package/dist/components/command/index.cjs +1 -1
- package/dist/components/command/index.js +1 -1
- package/dist/components/empty-state/index.cjs +48 -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 +23 -0
- package/dist/components/grid-list/index.cjs +68 -0
- package/dist/components/grid-list/index.d.cts +22 -0
- package/dist/components/grid-list/index.d.ts +22 -0
- package/dist/components/grid-list/index.js +45 -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 +1 -1
- package/dist/components/loading-overlay/index.cjs +30 -15
- 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 +26 -13
- package/dist/components/navbar/index.cjs +20 -12
- package/dist/components/navbar/index.d.cts +9 -9
- package/dist/components/navbar/index.d.ts +9 -9
- package/dist/components/navbar/index.js +17 -9
- package/dist/components/persona/index.cjs +52 -15
- package/dist/components/persona/index.d.cts +23 -3
- package/dist/components/persona/index.d.ts +23 -3
- package/dist/components/persona/index.js +42 -7
- package/dist/components/sidebar/index.cjs +58 -30
- package/dist/components/sidebar/index.d.cts +24 -23
- package/dist/components/sidebar/index.d.ts +24 -23
- package/dist/components/sidebar/index.js +55 -27
- package/dist/components/steps/index.cjs +7 -9
- package/dist/components/steps/index.d.cts +2 -2
- package/dist/components/steps/index.d.ts +2 -2
- package/dist/components/steps/index.js +4 -6
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -23,7 +23,7 @@ interface AppShellProps extends HTMLChakraProps<'div'> {
|
|
23
23
|
*/
|
24
24
|
children: React.ReactNode;
|
25
25
|
}
|
26
|
-
interface AppShellRootProps extends Omit<AppShellProps, 'position'>, SlotRecipeProps<'
|
26
|
+
interface AppShellRootProps extends Omit<AppShellProps, 'position'>, SlotRecipeProps<'suiAppShell'> {
|
27
27
|
}
|
28
28
|
declare const AppShell: react.ForwardRefExoticComponent<AppShellRootProps & react.RefAttributes<HTMLDivElement>>;
|
29
29
|
|
@@ -23,7 +23,7 @@ interface AppShellProps extends HTMLChakraProps<'div'> {
|
|
23
23
|
*/
|
24
24
|
children: React.ReactNode;
|
25
25
|
}
|
26
|
-
interface AppShellRootProps extends Omit<AppShellProps, 'position'>, SlotRecipeProps<'
|
26
|
+
interface AppShellRootProps extends Omit<AppShellProps, 'position'>, SlotRecipeProps<'suiAppShell'> {
|
27
27
|
}
|
28
28
|
declare const AppShell: react.ForwardRefExoticComponent<AppShellRootProps & react.RefAttributes<HTMLDivElement>>;
|
29
29
|
|
@@ -30,7 +30,7 @@ var import_react = require("@chakra-ui/react");
|
|
30
30
|
var import_react2 = require("@chakra-ui/react");
|
31
31
|
var import_jsx_runtime = require("react/jsx-runtime");
|
32
32
|
var { withContext } = (0, import_react2.createRecipeContext)({
|
33
|
-
key: "
|
33
|
+
key: "suiCommand"
|
34
34
|
});
|
35
35
|
var Key = ({ children }) => {
|
36
36
|
if (typeof children !== "string") {
|
@@ -0,0 +1,48 @@
|
|
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/empty-state/index.ts
|
22
|
+
var empty_state_exports = {};
|
23
|
+
__export(empty_state_exports, {
|
24
|
+
EmptyState: () => EmptyState
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(empty_state_exports);
|
27
|
+
|
28
|
+
// src/components/empty-state/empty-state.tsx
|
29
|
+
var import_react = require("@chakra-ui/react");
|
30
|
+
var import_react2 = require("react");
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
+
var EmptyState = (0, import_react2.forwardRef)(
|
33
|
+
function EmptyState2(props, ref) {
|
34
|
+
const { title, description, icon, children, ...rest } = props;
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.EmptyState.Content, { children: [
|
36
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Indicator, { children: icon }),
|
37
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.VStack, { textAlign: "center", children: [
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Title, { children: title }),
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Description, { children: description })
|
40
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.EmptyState.Title, { children: title }),
|
41
|
+
children
|
42
|
+
] }) });
|
43
|
+
}
|
44
|
+
);
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
46
|
+
0 && (module.exports = {
|
47
|
+
EmptyState
|
48
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { EmptyState as EmptyState$1 } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface EmptyStateProps extends EmptyState$1.RootProps {
|
5
|
+
title: string;
|
6
|
+
description?: string;
|
7
|
+
icon?: React.ReactNode;
|
8
|
+
}
|
9
|
+
declare const EmptyState: react.ForwardRefExoticComponent<EmptyStateProps & react.RefAttributes<HTMLDivElement>>;
|
10
|
+
|
11
|
+
export { EmptyState, type EmptyStateProps };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { EmptyState as EmptyState$1 } from '@chakra-ui/react';
|
3
|
+
|
4
|
+
interface EmptyStateProps extends EmptyState$1.RootProps {
|
5
|
+
title: string;
|
6
|
+
description?: string;
|
7
|
+
icon?: React.ReactNode;
|
8
|
+
}
|
9
|
+
declare const EmptyState: react.ForwardRefExoticComponent<EmptyStateProps & react.RefAttributes<HTMLDivElement>>;
|
10
|
+
|
11
|
+
export { EmptyState, type EmptyStateProps };
|
@@ -0,0 +1,23 @@
|
|
1
|
+
'use client'
|
2
|
+
import "../../chunk-RTMS5TJN.js";
|
3
|
+
|
4
|
+
// src/components/empty-state/empty-state.tsx
|
5
|
+
import { EmptyState as ChakraEmptyState, VStack } from "@chakra-ui/react";
|
6
|
+
import { forwardRef } from "react";
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
8
|
+
var EmptyState = forwardRef(
|
9
|
+
function EmptyState2(props, ref) {
|
10
|
+
const { title, description, icon, children, ...rest } = props;
|
11
|
+
return /* @__PURE__ */ jsx(ChakraEmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ jsxs(ChakraEmptyState.Content, { children: [
|
12
|
+
icon && /* @__PURE__ */ jsx(ChakraEmptyState.Indicator, { children: icon }),
|
13
|
+
description ? /* @__PURE__ */ jsxs(VStack, { textAlign: "center", children: [
|
14
|
+
/* @__PURE__ */ jsx(ChakraEmptyState.Title, { children: title }),
|
15
|
+
/* @__PURE__ */ jsx(ChakraEmptyState.Description, { children: description })
|
16
|
+
] }) : /* @__PURE__ */ jsx(ChakraEmptyState.Title, { children: title }),
|
17
|
+
children
|
18
|
+
] }) });
|
19
|
+
}
|
20
|
+
);
|
21
|
+
export {
|
22
|
+
EmptyState
|
23
|
+
};
|
@@ -0,0 +1,68 @@
|
|
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/grid-list/index.ts
|
22
|
+
var grid_list_exports2 = {};
|
23
|
+
__export(grid_list_exports2, {
|
24
|
+
GridList: () => grid_list_exports
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(grid_list_exports2);
|
27
|
+
|
28
|
+
// src/components/grid-list/grid-list.tsx
|
29
|
+
var grid_list_exports = {};
|
30
|
+
__export(grid_list_exports, {
|
31
|
+
Cell: () => GridListCell,
|
32
|
+
Header: () => GridListHeader,
|
33
|
+
Item: () => GridListItem,
|
34
|
+
Root: () => GridListRoot
|
35
|
+
});
|
36
|
+
var import_grid_list = require("@saas-ui/core/grid-list");
|
37
|
+
|
38
|
+
// src/components/grid-list/grid-list.context.ts
|
39
|
+
var import_react = require("@chakra-ui/react");
|
40
|
+
var {
|
41
|
+
withProvider,
|
42
|
+
withContext,
|
43
|
+
useStyles: useGridListStyles
|
44
|
+
} = (0, import_react.createSlotRecipeContext)({
|
45
|
+
key: "suiGridList"
|
46
|
+
});
|
47
|
+
|
48
|
+
// src/components/grid-list/grid-list.tsx
|
49
|
+
var GridListRoot = withProvider(
|
50
|
+
import_grid_list.GridList.Root,
|
51
|
+
"root"
|
52
|
+
);
|
53
|
+
var GridListItem = withContext(
|
54
|
+
import_grid_list.GridList.Item,
|
55
|
+
"item"
|
56
|
+
);
|
57
|
+
var GridListHeader = withContext(
|
58
|
+
import_grid_list.GridList.Header,
|
59
|
+
"header"
|
60
|
+
);
|
61
|
+
var GridListCell = withContext(
|
62
|
+
import_grid_list.GridList.Cell,
|
63
|
+
"cell"
|
64
|
+
);
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
66
|
+
0 && (module.exports = {
|
67
|
+
GridList
|
68
|
+
});
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
3
|
+
import { GridList } from '@saas-ui/core/grid-list';
|
4
|
+
|
5
|
+
interface GridListRootProps extends GridList.RootProps, Omit<HTMLChakraProps<'div'>, 'children'>, SlotRecipeProps<'suiGridList'> {
|
6
|
+
}
|
7
|
+
declare const GridListRoot: react.ForwardRefExoticComponent<Omit<GridList.RootProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
8
|
+
interface GridListItemProps extends HTMLChakraProps<'div'> {
|
9
|
+
}
|
10
|
+
declare const GridListItem: react.ForwardRefExoticComponent<GridListItemProps & react.RefAttributes<HTMLDivElement>>;
|
11
|
+
interface GridListHeaderProps extends HTMLChakraProps<'header'> {
|
12
|
+
}
|
13
|
+
declare const GridListHeader: react.ForwardRefExoticComponent<GridListHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
14
|
+
interface GridListCellProps extends GridList.CellProps, HTMLChakraProps<'div'> {
|
15
|
+
}
|
16
|
+
declare const GridListCell: react.ForwardRefExoticComponent<GridListCellProps & react.RefAttributes<HTMLDivElement>>;
|
17
|
+
|
18
|
+
declare namespace gridList {
|
19
|
+
export { GridListCell as Cell, type GridListCellProps as CellProps, GridListHeader as Header, type GridListHeaderProps as HeaderProps, GridListItem as Item, type GridListItemProps as ItemProps, GridListRoot as Root, type GridListRootProps as RootProps };
|
20
|
+
}
|
21
|
+
|
22
|
+
export { gridList as GridList };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import * as react from 'react';
|
2
|
+
import { HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
3
|
+
import { GridList } from '@saas-ui/core/grid-list';
|
4
|
+
|
5
|
+
interface GridListRootProps extends GridList.RootProps, Omit<HTMLChakraProps<'div'>, 'children'>, SlotRecipeProps<'suiGridList'> {
|
6
|
+
}
|
7
|
+
declare const GridListRoot: react.ForwardRefExoticComponent<Omit<GridList.RootProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
8
|
+
interface GridListItemProps extends HTMLChakraProps<'div'> {
|
9
|
+
}
|
10
|
+
declare const GridListItem: react.ForwardRefExoticComponent<GridListItemProps & react.RefAttributes<HTMLDivElement>>;
|
11
|
+
interface GridListHeaderProps extends HTMLChakraProps<'header'> {
|
12
|
+
}
|
13
|
+
declare const GridListHeader: react.ForwardRefExoticComponent<GridListHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
14
|
+
interface GridListCellProps extends GridList.CellProps, HTMLChakraProps<'div'> {
|
15
|
+
}
|
16
|
+
declare const GridListCell: react.ForwardRefExoticComponent<GridListCellProps & react.RefAttributes<HTMLDivElement>>;
|
17
|
+
|
18
|
+
declare namespace gridList {
|
19
|
+
export { GridListCell as Cell, type GridListCellProps as CellProps, GridListHeader as Header, type GridListHeaderProps as HeaderProps, GridListItem as Item, type GridListItemProps as ItemProps, GridListRoot as Root, type GridListRootProps as RootProps };
|
20
|
+
}
|
21
|
+
|
22
|
+
export { gridList as GridList };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "../../chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/grid-list/grid-list.tsx
|
7
|
+
var grid_list_exports = {};
|
8
|
+
__export(grid_list_exports, {
|
9
|
+
Cell: () => GridListCell,
|
10
|
+
Header: () => GridListHeader,
|
11
|
+
Item: () => GridListItem,
|
12
|
+
Root: () => GridListRoot
|
13
|
+
});
|
14
|
+
import { GridList } from "@saas-ui/core/grid-list";
|
15
|
+
|
16
|
+
// src/components/grid-list/grid-list.context.ts
|
17
|
+
import { createSlotRecipeContext } from "@chakra-ui/react";
|
18
|
+
var {
|
19
|
+
withProvider,
|
20
|
+
withContext,
|
21
|
+
useStyles: useGridListStyles
|
22
|
+
} = createSlotRecipeContext({
|
23
|
+
key: "suiGridList"
|
24
|
+
});
|
25
|
+
|
26
|
+
// src/components/grid-list/grid-list.tsx
|
27
|
+
var GridListRoot = withProvider(
|
28
|
+
GridList.Root,
|
29
|
+
"root"
|
30
|
+
);
|
31
|
+
var GridListItem = withContext(
|
32
|
+
GridList.Item,
|
33
|
+
"item"
|
34
|
+
);
|
35
|
+
var GridListHeader = withContext(
|
36
|
+
GridList.Header,
|
37
|
+
"header"
|
38
|
+
);
|
39
|
+
var GridListCell = withContext(
|
40
|
+
GridList.Cell,
|
41
|
+
"cell"
|
42
|
+
);
|
43
|
+
export {
|
44
|
+
grid_list_exports as GridList
|
45
|
+
};
|
@@ -44,7 +44,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
var IconBadge = React.forwardRef(
|
45
45
|
(props, ref) => {
|
46
46
|
const { icon, children, ...rest } = props;
|
47
|
-
const recipe = (0, import_react2.useRecipe)({ key: "
|
47
|
+
const recipe = (0, import_react2.useRecipe)({ key: "suiIconBadge", recipe: props.recipe });
|
48
48
|
const [variantProps, localProps] = recipe.splitVariantProps(rest);
|
49
49
|
const styles = recipe(variantProps);
|
50
50
|
const element = icon || children;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react';
|
3
3
|
|
4
|
-
interface IconBadgeProps extends HTMLChakraProps<'div'>, RecipeProps<'
|
4
|
+
interface IconBadgeProps extends HTMLChakraProps<'div'>, RecipeProps<'suiIconBadge'> {
|
5
5
|
/**
|
6
6
|
* The icon to display
|
7
7
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { HTMLChakraProps, RecipeProps } from '@chakra-ui/react';
|
3
3
|
|
4
|
-
interface IconBadgeProps extends HTMLChakraProps<'div'>, RecipeProps<'
|
4
|
+
interface IconBadgeProps extends HTMLChakraProps<'div'>, RecipeProps<'suiIconBadge'> {
|
5
5
|
/**
|
6
6
|
* The icon to display
|
7
7
|
*/
|
@@ -13,7 +13,7 @@ import { jsx } from "react/jsx-runtime";
|
|
13
13
|
var IconBadge = React.forwardRef(
|
14
14
|
(props, ref) => {
|
15
15
|
const { icon, children, ...rest } = props;
|
16
|
-
const recipe = useRecipe({ key: "
|
16
|
+
const recipe = useRecipe({ key: "suiIconBadge", recipe: props.recipe });
|
17
17
|
const [variantProps, localProps] = recipe.splitVariantProps(rest);
|
18
18
|
const styles = recipe(variantProps);
|
19
19
|
const element = icon || children;
|
@@ -29,15 +29,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
30
30
|
|
31
31
|
// src/components/loading-overlay/index.ts
|
32
|
-
var
|
33
|
-
__export(
|
34
|
-
LoadingOverlay: () =>
|
32
|
+
var loading_overlay_exports2 = {};
|
33
|
+
__export(loading_overlay_exports2, {
|
34
|
+
LoadingOverlay: () => loading_overlay_exports,
|
35
|
+
useLoadingOverlayStyles: () => useLoadingOverlayStyles
|
35
36
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
+
module.exports = __toCommonJS(loading_overlay_exports2);
|
37
38
|
|
38
|
-
// src/components/loading-overlay/
|
39
|
-
var
|
40
|
-
__export(
|
39
|
+
// src/components/loading-overlay/loading-overlay.tsx
|
40
|
+
var loading_overlay_exports = {};
|
41
|
+
__export(loading_overlay_exports, {
|
41
42
|
Root: () => LoadingOverlayRoot,
|
42
43
|
Spinner: () => LoadingOverlaySpinner,
|
43
44
|
Text: () => LoadingOverlayText
|
@@ -1885,7 +1886,7 @@ var Presence = (0, import_react6.forwardRef)((props2, ref2) => {
|
|
1885
1886
|
Presence.displayName = "Presence";
|
1886
1887
|
|
1887
1888
|
// src/components/loading-overlay/loading-overlay.tsx
|
1888
|
-
var
|
1889
|
+
var import_react10 = require("@chakra-ui/react");
|
1889
1890
|
|
1890
1891
|
// src/components/spinner/spinner.tsx
|
1891
1892
|
var import_react7 = require("react");
|
@@ -1901,21 +1902,35 @@ var Spinner = (0, import_react7.forwardRef)(
|
|
1901
1902
|
}
|
1902
1903
|
);
|
1903
1904
|
|
1905
|
+
// src/components/loading-overlay/loading-overlay.context.ts
|
1906
|
+
var import_react9 = require("@chakra-ui/react");
|
1907
|
+
var {
|
1908
|
+
useStyles: useLoadingOverlayStyles,
|
1909
|
+
withContext,
|
1910
|
+
withProvider
|
1911
|
+
} = (0, import_react9.createSlotRecipeContext)({
|
1912
|
+
key: "suiLoadingOverlay"
|
1913
|
+
});
|
1914
|
+
|
1904
1915
|
// src/components/loading-overlay/loading-overlay.tsx
|
1905
1916
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
1906
|
-
var { useStyles, withContext, withProvider } = (0, import_react9.createSlotRecipeContext)({
|
1907
|
-
key: "loadingOverlay"
|
1908
|
-
});
|
1909
1917
|
var LoadingOverlay = (props2) => {
|
1910
1918
|
const { children, loading = true, ...rest } = props2;
|
1911
1919
|
const [presenceProps, rootProps] = splitPresenceProps(rest);
|
1912
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
1920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react10.chakra.div, { ...rootProps, children }) });
|
1913
1921
|
};
|
1914
|
-
var LoadingOverlayRoot = withProvider(
|
1922
|
+
var LoadingOverlayRoot = withProvider(
|
1923
|
+
LoadingOverlay,
|
1924
|
+
"root"
|
1925
|
+
);
|
1915
1926
|
LoadingOverlayRoot.displayName = "LoadingOverlay";
|
1916
1927
|
var LoadingOverlaySpinner = Spinner;
|
1917
|
-
var LoadingOverlayText = withContext(
|
1928
|
+
var LoadingOverlayText = withContext(
|
1929
|
+
"p",
|
1930
|
+
"text"
|
1931
|
+
);
|
1918
1932
|
// Annotate the CommonJS export names for ESM import in node:
|
1919
1933
|
0 && (module.exports = {
|
1920
|
-
LoadingOverlay
|
1934
|
+
LoadingOverlay,
|
1935
|
+
useLoadingOverlayStyles
|
1921
1936
|
});
|
@@ -1,13 +1,26 @@
|
|
1
1
|
import { SpinnerProps } from '../spinner/index.cjs';
|
2
2
|
import react__default from 'react';
|
3
|
-
import '@
|
3
|
+
import { PresenceBaseProps } from '@ark-ui/react/presence';
|
4
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
5
|
+
import { HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
4
6
|
|
5
|
-
|
7
|
+
interface LoadingOverlayProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiLoadingOverlay'>, PresenceBaseProps {
|
8
|
+
/**
|
9
|
+
* Show or hide the LoadingOverlay.
|
10
|
+
* @default true
|
11
|
+
*/
|
12
|
+
loading?: boolean;
|
13
|
+
}
|
14
|
+
declare const LoadingOverlayRoot: react__default.ForwardRefExoticComponent<LoadingOverlayProps & react__default.RefAttributes<HTMLDivElement>>;
|
6
15
|
declare const LoadingOverlaySpinner: react__default.ForwardRefExoticComponent<SpinnerProps & react__default.RefAttributes<HTMLDivElement>>;
|
7
|
-
|
16
|
+
interface LoadingTextProps extends HTMLChakraProps<'p'> {
|
17
|
+
}
|
18
|
+
declare const LoadingOverlayText: react__default.ForwardRefExoticComponent<LoadingTextProps & react__default.RefAttributes<HTMLParagraphElement>>;
|
8
19
|
|
9
|
-
declare namespace
|
10
|
-
export { LoadingOverlayRoot as Root, LoadingOverlaySpinner as Spinner, LoadingOverlayText as Text };
|
20
|
+
declare namespace loadingOverlay {
|
21
|
+
export { LoadingOverlayRoot as Root, type LoadingOverlayProps as RootProps, LoadingOverlaySpinner as Spinner, LoadingOverlayText as Text, type LoadingTextProps as TextProps };
|
11
22
|
}
|
12
23
|
|
13
|
-
|
24
|
+
declare const useLoadingOverlayStyles: () => Record<string, _chakra_ui_react.SystemStyleObject>;
|
25
|
+
|
26
|
+
export { loadingOverlay as LoadingOverlay, useLoadingOverlayStyles };
|
@@ -1,13 +1,26 @@
|
|
1
1
|
import { SpinnerProps } from '../spinner/index.js';
|
2
2
|
import react__default from 'react';
|
3
|
-
import '@
|
3
|
+
import { PresenceBaseProps } from '@ark-ui/react/presence';
|
4
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
5
|
+
import { HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
4
6
|
|
5
|
-
|
7
|
+
interface LoadingOverlayProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiLoadingOverlay'>, PresenceBaseProps {
|
8
|
+
/**
|
9
|
+
* Show or hide the LoadingOverlay.
|
10
|
+
* @default true
|
11
|
+
*/
|
12
|
+
loading?: boolean;
|
13
|
+
}
|
14
|
+
declare const LoadingOverlayRoot: react__default.ForwardRefExoticComponent<LoadingOverlayProps & react__default.RefAttributes<HTMLDivElement>>;
|
6
15
|
declare const LoadingOverlaySpinner: react__default.ForwardRefExoticComponent<SpinnerProps & react__default.RefAttributes<HTMLDivElement>>;
|
7
|
-
|
16
|
+
interface LoadingTextProps extends HTMLChakraProps<'p'> {
|
17
|
+
}
|
18
|
+
declare const LoadingOverlayText: react__default.ForwardRefExoticComponent<LoadingTextProps & react__default.RefAttributes<HTMLParagraphElement>>;
|
8
19
|
|
9
|
-
declare namespace
|
10
|
-
export { LoadingOverlayRoot as Root, LoadingOverlaySpinner as Spinner, LoadingOverlayText as Text };
|
20
|
+
declare namespace loadingOverlay {
|
21
|
+
export { LoadingOverlayRoot as Root, type LoadingOverlayProps as RootProps, LoadingOverlaySpinner as Spinner, LoadingOverlayText as Text, type LoadingTextProps as TextProps };
|
11
22
|
}
|
12
23
|
|
13
|
-
|
24
|
+
declare const useLoadingOverlayStyles: () => Record<string, _chakra_ui_react.SystemStyleObject>;
|
25
|
+
|
26
|
+
export { loadingOverlay as LoadingOverlay, useLoadingOverlayStyles };
|
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
__export
|
7
7
|
} from "../../chunk-RTMS5TJN.js";
|
8
8
|
|
9
|
-
// src/components/loading-overlay/
|
10
|
-
var
|
11
|
-
__export(
|
9
|
+
// src/components/loading-overlay/loading-overlay.tsx
|
10
|
+
var loading_overlay_exports = {};
|
11
|
+
__export(loading_overlay_exports, {
|
12
12
|
Root: () => LoadingOverlayRoot,
|
13
13
|
Spinner: () => LoadingOverlaySpinner,
|
14
14
|
Text: () => LoadingOverlayText
|
@@ -1856,23 +1856,36 @@ var Presence = forwardRef2((props2, ref2) => {
|
|
1856
1856
|
Presence.displayName = "Presence";
|
1857
1857
|
|
1858
1858
|
// src/components/loading-overlay/loading-overlay.tsx
|
1859
|
-
import {
|
1860
|
-
|
1861
|
-
|
1862
|
-
} from "@chakra-ui/react";
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1859
|
+
import { chakra } from "@chakra-ui/react";
|
1860
|
+
|
1861
|
+
// src/components/loading-overlay/loading-overlay.context.ts
|
1862
|
+
import { createSlotRecipeContext } from "@chakra-ui/react";
|
1863
|
+
var {
|
1864
|
+
useStyles: useLoadingOverlayStyles,
|
1865
|
+
withContext,
|
1866
|
+
withProvider
|
1867
|
+
} = createSlotRecipeContext({
|
1868
|
+
key: "suiLoadingOverlay"
|
1866
1869
|
});
|
1870
|
+
|
1871
|
+
// src/components/loading-overlay/loading-overlay.tsx
|
1872
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
1867
1873
|
var LoadingOverlay = (props2) => {
|
1868
1874
|
const { children, loading = true, ...rest } = props2;
|
1869
1875
|
const [presenceProps, rootProps] = splitPresenceProps(rest);
|
1870
1876
|
return /* @__PURE__ */ jsx3(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ jsx3(chakra.div, { ...rootProps, children }) });
|
1871
1877
|
};
|
1872
|
-
var LoadingOverlayRoot = withProvider(
|
1878
|
+
var LoadingOverlayRoot = withProvider(
|
1879
|
+
LoadingOverlay,
|
1880
|
+
"root"
|
1881
|
+
);
|
1873
1882
|
LoadingOverlayRoot.displayName = "LoadingOverlay";
|
1874
1883
|
var LoadingOverlaySpinner = Spinner;
|
1875
|
-
var LoadingOverlayText = withContext(
|
1884
|
+
var LoadingOverlayText = withContext(
|
1885
|
+
"p",
|
1886
|
+
"text"
|
1887
|
+
);
|
1876
1888
|
export {
|
1877
|
-
|
1889
|
+
loading_overlay_exports as LoadingOverlay,
|
1890
|
+
useLoadingOverlayStyles
|
1878
1891
|
};
|
@@ -19,38 +19,46 @@ var __copyProps = (to, from, except, desc) => {
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
20
|
|
21
21
|
// src/components/navbar/index.ts
|
22
|
-
var
|
23
|
-
__export(
|
24
|
-
Navbar: () =>
|
22
|
+
var navbar_exports2 = {};
|
23
|
+
__export(navbar_exports2, {
|
24
|
+
Navbar: () => navbar_exports
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
26
|
+
module.exports = __toCommonJS(navbar_exports2);
|
27
27
|
|
28
|
-
// src/components/navbar/
|
29
|
-
var
|
30
|
-
__export(
|
28
|
+
// src/components/navbar/navbar.tsx
|
29
|
+
var navbar_exports = {};
|
30
|
+
__export(navbar_exports, {
|
31
31
|
Brand: () => NavbarBrand,
|
32
32
|
Content: () => NavbarContent,
|
33
33
|
Item: () => NavbarItem,
|
34
34
|
Link: () => NavbarLink,
|
35
35
|
Root: () => NavbarRoot
|
36
36
|
});
|
37
|
+
var import_navbar = require("@saas-ui/core/navbar");
|
37
38
|
|
38
|
-
// src/components/navbar/navbar.
|
39
|
+
// src/components/navbar/navbar.context.ts
|
39
40
|
var import_react = require("@chakra-ui/react");
|
40
|
-
var import_navbar = require("@saas-ui/core/navbar");
|
41
41
|
var {
|
42
42
|
withProvider,
|
43
43
|
withContext,
|
44
44
|
useStyles: useNavbarStyles
|
45
45
|
} = (0, import_react.createSlotRecipeContext)({
|
46
|
-
key: "
|
46
|
+
key: "suiNavbar"
|
47
47
|
});
|
48
|
+
|
49
|
+
// src/components/navbar/navbar.tsx
|
48
50
|
var NavbarRoot = withProvider(
|
49
51
|
import_navbar.Navbar.Root,
|
50
52
|
"root"
|
51
53
|
);
|
52
|
-
var NavbarBrand = withContext(
|
53
|
-
|
54
|
+
var NavbarBrand = withContext(
|
55
|
+
import_navbar.Navbar.Brand,
|
56
|
+
"brand"
|
57
|
+
);
|
58
|
+
var NavbarContent = withContext(
|
59
|
+
import_navbar.Navbar.Content,
|
60
|
+
"content"
|
61
|
+
);
|
54
62
|
var NavbarItem = withContext(
|
55
63
|
import_navbar.Navbar.Item,
|
56
64
|
"item"
|