@saas-ui/react 3.0.0-next.13 → 3.0.0-next.15
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 +15 -0
- package/dist/_tsup-dts-rollup.d.cts +213 -29
- package/dist/_tsup-dts-rollup.d.ts +213 -29
- package/dist/{chunk-DEP2DH7P.js → chunk-7FXZN5MX.js} +20 -11
- package/dist/{chunk-D72A4SU3.js → chunk-GQYL3VVZ.js} +1 -1
- package/dist/{chunk-RBG43JK2.js → chunk-LFITUDGB.js} +212 -45
- package/dist/{chunk-GXOQVOKP.js → chunk-NBNSPEJB.js} +1 -1
- package/dist/chunk-NRC2PKPJ.js +60 -0
- package/dist/components/info-tip/index.js +3 -3
- package/dist/components/menu/index.cjs +20 -11
- package/dist/components/menu/index.js +1 -1
- package/dist/components/section/index.cjs +81 -0
- package/dist/components/section/index.d.cts +2 -0
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/index.js +10 -0
- package/dist/components/toaster/index.cjs +1 -1
- package/dist/components/toaster/index.js +1 -1
- package/dist/components/toggle-tip/index.js +2 -2
- package/dist/index.cjs +331 -94
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +121 -107
- package/dist/preset.cjs +211 -44
- package/dist/preset.js +1 -1
- package/package.json +2 -2
- package/dist/{chunk-OWFY465Z.js → chunk-QITSWCWX.js} +3 -3
@@ -0,0 +1,81 @@
|
|
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/section/index.ts
|
22
|
+
var section_exports2 = {};
|
23
|
+
__export(section_exports2, {
|
24
|
+
Section: () => section_exports,
|
25
|
+
useSectionStyles: () => useSectionStyles
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(section_exports2);
|
28
|
+
|
29
|
+
// src/components/section/section.tsx
|
30
|
+
var section_exports = {};
|
31
|
+
__export(section_exports, {
|
32
|
+
Body: () => SectionBody,
|
33
|
+
Description: () => SectionDescription,
|
34
|
+
Header: () => SectionHeader,
|
35
|
+
Root: () => SectionRoot,
|
36
|
+
Title: () => SectionTitle
|
37
|
+
});
|
38
|
+
var import_react2 = require("@chakra-ui/react");
|
39
|
+
|
40
|
+
// src/components/section/section.context.ts
|
41
|
+
var import_react = require("@chakra-ui/react");
|
42
|
+
var {
|
43
|
+
withProvider,
|
44
|
+
withContext,
|
45
|
+
useStyles: useSectionStyles,
|
46
|
+
useClassNames
|
47
|
+
} = (0, import_react.createSlotRecipeContext)({
|
48
|
+
key: "suiSection"
|
49
|
+
});
|
50
|
+
|
51
|
+
// src/components/section/section.tsx
|
52
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
53
|
+
var SectionRoot = withProvider(
|
54
|
+
"div",
|
55
|
+
"root"
|
56
|
+
);
|
57
|
+
var SectionBody = withContext("div", "body");
|
58
|
+
var SectionHeader = withContext(
|
59
|
+
(props) => {
|
60
|
+
const { title, description, children, ...rest } = props;
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.chakra.div, { ...rest, children: [
|
62
|
+
typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: title }) : title,
|
63
|
+
typeof description === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionDescription, { children: description }) : description,
|
64
|
+
children
|
65
|
+
] });
|
66
|
+
},
|
67
|
+
"header"
|
68
|
+
);
|
69
|
+
var SectionTitle = withContext(
|
70
|
+
"h3",
|
71
|
+
"title"
|
72
|
+
);
|
73
|
+
var SectionDescription = withContext(
|
74
|
+
"div",
|
75
|
+
"description"
|
76
|
+
);
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
78
|
+
0 && (module.exports = {
|
79
|
+
Section,
|
80
|
+
useSectionStyles
|
81
|
+
});
|
@@ -234,7 +234,7 @@ var Toaster = (props) => {
|
|
234
234
|
toast2.description && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.Description, { children: toast2.description }),
|
235
235
|
toast2.action && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.ActionTrigger, { children: toast2.action.label })
|
236
236
|
] }),
|
237
|
-
closable !== false && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.CloseTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CloseButton, { size: "xs" }) })
|
237
|
+
closable !== false && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_toast.Toast.CloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CloseButton, { size: "xs" }) })
|
238
238
|
] });
|
239
239
|
} }) });
|
240
240
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
ToggleTip
|
4
|
-
} from "../../chunk-
|
5
|
-
import "../../chunk-UZUMIWPJ.js";
|
4
|
+
} from "../../chunk-QITSWCWX.js";
|
6
5
|
import "../../chunk-FVUEAELO.js";
|
6
|
+
import "../../chunk-UZUMIWPJ.js";
|
7
7
|
import "../../chunk-JMYI6YXR.js";
|
8
8
|
import "../../chunk-U2CWQDXE.js";
|
9
9
|
import "../../chunk-OJZPPAT6.js";
|