@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.
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ export { Section_alias_1 as Section } from '../../_tsup-dts-rollup.cjs';
2
+ export { useSectionStyles_alias_1 as useSectionStyles } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { Section_alias_1 as Section } from '../../_tsup-dts-rollup.js';
2
+ export { useSectionStyles_alias_1 as useSectionStyles } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import {
3
+ section_exports,
4
+ useSectionStyles
5
+ } from "../../chunk-NRC2PKPJ.js";
6
+ import "../../chunk-RTMS5TJN.js";
7
+ export {
8
+ section_exports as Section,
9
+ useSectionStyles
10
+ };
@@ -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
  };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Toaster,
4
4
  toast
5
- } from "../../chunk-GXOQVOKP.js";
5
+ } from "../../chunk-NBNSPEJB.js";
6
6
  import "../../chunk-MK3OG2I4.js";
7
7
  import "../../chunk-JMYI6YXR.js";
8
8
  import "../../chunk-U2CWQDXE.js";
@@ -1,9 +1,9 @@
1
1
  'use client'
2
2
  import {
3
3
  ToggleTip
4
- } from "../../chunk-OWFY465Z.js";
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";