@saas-ui/react 3.0.0-alpha.20 → 3.0.0-alpha.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/{chunk-72LEGXHY.js → chunk-EQ7Q6HRE.js} +5 -13
  3. package/dist/{chunk-4VH4IGVF.js → chunk-GWC5GCMW.js} +10 -18
  4. package/dist/chunk-IEWHAXXU.js +28 -0
  5. package/dist/chunk-INV6RT5B.js +8 -0
  6. package/dist/{chunk-C7B3ELC4.js → chunk-KFXNVUEZ.js} +3 -3
  7. package/dist/chunk-MS2ELLDY.js +26 -0
  8. package/dist/chunk-NGSHWY7E.js +27 -0
  9. package/dist/{chunk-D2Q7IR5F.js → chunk-NSD5HRIP.js} +1 -4
  10. package/dist/chunk-Q6IC3BTH.js +20 -0
  11. package/dist/{chunk-WS5XGFSL.js → chunk-VJ4NCA6R.js} +6 -13
  12. package/dist/chunk-YHQ5JGCC.js +1 -0
  13. package/dist/components/avatar/index.js +2 -1
  14. package/dist/components/badge/index.cjs +31 -0
  15. package/dist/components/badge/index.d.cts +1 -0
  16. package/dist/components/badge/index.d.ts +1 -0
  17. package/dist/components/badge/index.js +8 -0
  18. package/dist/components/button/index.cjs +8 -26
  19. package/dist/components/button/index.js +1 -1
  20. package/dist/components/dialog/index.cjs +5 -13
  21. package/dist/components/dialog/index.d.cts +2 -1
  22. package/dist/components/dialog/index.d.ts +2 -1
  23. package/dist/components/dialog/index.js +1 -1
  24. package/dist/components/drawer/index.cjs +6 -13
  25. package/dist/components/drawer/index.d.cts +2 -1
  26. package/dist/components/drawer/index.d.ts +2 -1
  27. package/dist/components/drawer/index.js +1 -1
  28. package/dist/components/grid-list/index.cjs +1 -4
  29. package/dist/components/grid-list/index.d.cts +1 -1
  30. package/dist/components/grid-list/index.d.ts +1 -1
  31. package/dist/components/grid-list/index.js +1 -1
  32. package/dist/components/icon-button/index.cjs +38 -2
  33. package/dist/components/icon-button/index.d.cts +9 -1
  34. package/dist/components/icon-button/index.d.ts +9 -1
  35. package/dist/components/icon-button/index.js +2 -1
  36. package/dist/components/menu/index.cjs +8 -26
  37. package/dist/components/menu/index.js +2 -2
  38. package/dist/components/persona/index.cjs +61 -34
  39. package/dist/components/persona/index.d.cts +4 -3
  40. package/dist/components/persona/index.d.ts +4 -3
  41. package/dist/components/persona/index.js +2 -1
  42. package/dist/components/status/index.cjs +45 -0
  43. package/dist/components/status/index.d.cts +17 -0
  44. package/dist/components/status/index.d.ts +17 -0
  45. package/dist/components/status/index.js +8 -0
  46. package/dist/components/tag/index.cjs +53 -0
  47. package/dist/components/tag/index.d.cts +12 -0
  48. package/dist/components/tag/index.d.ts +12 -0
  49. package/dist/components/tag/index.js +8 -0
  50. package/dist/index.cjs +2622 -2574
  51. package/dist/index.d.cts +4 -1
  52. package/dist/index.d.ts +4 -1
  53. package/dist/index.js +2172 -2127
  54. package/package.json +2 -2
  55. package/dist/chunk-BCNPBZZK.js +0 -45
  56. package/dist/chunk-QVFJV6HJ.js +0 -8
  57. /package/dist/{chunk-UCQ3LZIE.js → chunk-JO4WJVYO.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 3.0.0-alpha.22
4
+
5
+ ### Minor Changes
6
+
7
+ - Added Status component
8
+ - Added Badge and Tag components
9
+
10
+ ### Patch Changes
11
+
12
+ - Fixed GridList prop forwarding
13
+ - Changed default Button variant to surface
14
+ - Fixed issue where Button colorPalette could not be changed using the recipe
15
+ - Rename Drawer and Dialog CloseTrigger to CloseButton
16
+ - Improved Button glass variant hover color
17
+ - Improved semantic grays and shadows balance
18
+
19
+ ## 3.0.0-alpha.21
20
+
21
+ ### Patch Changes
22
+
23
+ - 6f9f04d: Fixed issue where Sidebar mode could not be controlled
24
+ - Updated dependencies [6f9f04d]
25
+ - @saas-ui/core@3.0.0-alpha.7
26
+
3
27
  ## 3.0.0-alpha.20
4
28
 
5
29
  ### Minor Changes
@@ -12,7 +12,8 @@ __export(namespace_exports, {
12
12
  ActionTrigger: () => DialogActionTrigger,
13
13
  Backdrop: () => DialogBackdrop,
14
14
  Body: () => DialogBody,
15
- CloseTrigger: () => DialogCloseTrigger,
15
+ CloseButton: () => DialogCloseButton,
16
+ CloseTrigger: () => DialogCloseTrigger2,
16
17
  Content: () => DialogContent,
17
18
  Context: () => DialogContext,
18
19
  Description: () => DialogDescription,
@@ -43,19 +44,10 @@ var DialogContent = forwardRef(
43
44
  ] });
44
45
  }
45
46
  );
46
- var DialogCloseTrigger = forwardRef(function DialogCloseTrigger2(props, ref) {
47
- return /* @__PURE__ */ jsx(
48
- ChakraDialog.CloseTrigger,
49
- {
50
- position: "absolute",
51
- top: "2",
52
- insetEnd: "2",
53
- ...props,
54
- asChild: true,
55
- children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref, children: props.children })
56
- }
57
- );
47
+ var DialogCloseButton = forwardRef(function DialogCloseTrigger(props, ref) {
48
+ return /* @__PURE__ */ jsx(ChakraDialog.CloseTrigger, { position: "absolute", ...props, asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref, children: props.children }) });
58
49
  });
50
+ var DialogCloseTrigger2 = ChakraDialog.CloseTrigger;
59
51
  var DialogRoot = ChakraDialog.Root;
60
52
  var DialogFooter = ChakraDialog.Footer;
61
53
  var DialogHeader = ChakraDialog.Header;
@@ -1,4 +1,7 @@
1
1
  'use client'
2
+ import {
3
+ Avatar
4
+ } from "./chunk-JO4WJVYO.js";
2
5
 
3
6
  // src/components/persona/persona.tsx
4
7
  import * as React2 from "react";
@@ -6,7 +9,6 @@ import * as React2 from "react";
6
9
  // src/components/persona/persona-primitive.tsx
7
10
  import { forwardRef } from "react";
8
11
  import {
9
- Avatar,
10
12
  chakra
11
13
  } from "@chakra-ui/react";
12
14
  import { dataAttr } from "@saas-ui/core/utils";
@@ -22,7 +24,7 @@ var {
22
24
  });
23
25
 
24
26
  // src/components/persona/persona-primitive.tsx
25
- import { jsx, jsxs } from "react/jsx-runtime";
27
+ import { jsx } from "react/jsx-runtime";
26
28
  var PersonaRoot = withProvider(
27
29
  forwardRef((props, ref) => {
28
30
  const { outOfOffice, presence, ...rest } = props;
@@ -57,19 +59,7 @@ var PersonaAvatar = forwardRef(
57
59
  children,
58
60
  ...rest
59
61
  } = props;
60
- return /* @__PURE__ */ jsxs(Avatar.Root, { ref, ...rest, children: [
61
- /* @__PURE__ */ jsx(Avatar.Fallback, { children: getInitials(name) }),
62
- /* @__PURE__ */ jsx(
63
- Avatar.Image,
64
- {
65
- src,
66
- srcSet,
67
- loading,
68
- onError
69
- }
70
- ),
71
- children
72
- ] });
62
+ return /* @__PURE__ */ jsx(Avatar, { ref, ...rest, children });
73
63
  }
74
64
  );
75
65
  var PersonaPresenceBadge = withContext("span", "presence");
@@ -92,7 +82,7 @@ var PersonaTertiaryLabel = withContext(
92
82
  );
93
83
 
94
84
  // src/components/persona/persona.tsx
95
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
85
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
96
86
  var Persona = React2.forwardRef(
97
87
  (props, ref) => {
98
88
  const {
@@ -113,9 +103,10 @@ var Persona = React2.forwardRef(
113
103
  onError,
114
104
  src,
115
105
  srcSet,
106
+ fallback,
116
107
  ...rest
117
108
  } = props;
118
- return /* @__PURE__ */ jsxs2(
109
+ return /* @__PURE__ */ jsxs(
119
110
  PersonaRoot,
120
111
  {
121
112
  ref,
@@ -135,10 +126,11 @@ var Persona = React2.forwardRef(
135
126
  onError,
136
127
  src,
137
128
  srcSet,
129
+ fallback,
138
130
  children: presence ? /* @__PURE__ */ jsx2(PersonaPresenceBadge, { children: presenceIcon }) : null
139
131
  }
140
132
  ),
141
- !hideDetails && /* @__PURE__ */ jsxs2(PersonaDetails, { children: [
133
+ !hideDetails && /* @__PURE__ */ jsxs(PersonaDetails, { children: [
142
134
  /* @__PURE__ */ jsx2(PersonaLabel, { children: label || name }),
143
135
  secondaryLabel && /* @__PURE__ */ jsx2(PersonaSecondaryLabel, { children: secondaryLabel }),
144
136
  tertiaryLabel && /* @__PURE__ */ jsx2(PersonaTertiaryLabel, { children: tertiaryLabel }),
@@ -0,0 +1,28 @@
1
+ 'use client'
2
+
3
+ // src/components/tag/tag.tsx
4
+ import { forwardRef } from "react";
5
+ import { Tag as ChakraTag } from "@chakra-ui/react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var Tag = forwardRef(
8
+ function Tag2(props, ref) {
9
+ const {
10
+ startElement,
11
+ endElement,
12
+ onClose,
13
+ closable = !!onClose,
14
+ children,
15
+ ...rest
16
+ } = props;
17
+ return /* @__PURE__ */ jsxs(ChakraTag.Root, { ref, ...rest, children: [
18
+ startElement && /* @__PURE__ */ jsx(ChakraTag.StartElement, { children: startElement }),
19
+ /* @__PURE__ */ jsx(ChakraTag.Label, { children }),
20
+ endElement && /* @__PURE__ */ jsx(ChakraTag.EndElement, { children: endElement }),
21
+ closable && /* @__PURE__ */ jsx(ChakraTag.EndElement, { children: /* @__PURE__ */ jsx(ChakraTag.CloseTrigger, { onClick: onClose }) })
22
+ ] });
23
+ }
24
+ );
25
+
26
+ export {
27
+ Tag
28
+ };
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+
3
+ // src/components/badge/index.ts
4
+ import { Badge } from "@chakra-ui/react";
5
+
6
+ export {
7
+ Badge
8
+ };
@@ -1,11 +1,11 @@
1
1
  'use client'
2
- import {
3
- Button
4
- } from "./chunk-BCNPBZZK.js";
5
2
  import {
6
3
  CheckIcon,
7
4
  ChevronRightIcon
8
5
  } from "./chunk-4TPVIHNO.js";
6
+ import {
7
+ Button
8
+ } from "./chunk-NGSHWY7E.js";
9
9
  import {
10
10
  __export
11
11
  } from "./chunk-RTMS5TJN.js";
@@ -0,0 +1,26 @@
1
+ 'use client'
2
+ import {
3
+ Button
4
+ } from "./chunk-NGSHWY7E.js";
5
+
6
+ // src/components/icon-button/icon-button.tsx
7
+ import { forwardRef } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var IconButton = forwardRef(
10
+ function IconButton2(props, ref) {
11
+ return /* @__PURE__ */ jsx(
12
+ Button,
13
+ {
14
+ px: "0",
15
+ py: "0",
16
+ _icon: { fontSize: "1.2em" },
17
+ ref,
18
+ ...props
19
+ }
20
+ );
21
+ }
22
+ );
23
+
24
+ export {
25
+ IconButton
26
+ };
@@ -0,0 +1,27 @@
1
+ 'use client'
2
+
3
+ // src/components/button/button.tsx
4
+ import { forwardRef } from "react";
5
+ import {
6
+ AbsoluteCenter,
7
+ Button as ButtonPrimitive,
8
+ Span,
9
+ Spinner
10
+ } from "@chakra-ui/react";
11
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
+ var Button = forwardRef(
13
+ function Button2(props, ref) {
14
+ const { loading, disabled, loadingText, children, ...rest } = props;
15
+ return /* @__PURE__ */ jsx(ButtonPrimitive, { disabled: loading || disabled, ref, ...rest, children: loading && !loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ /* @__PURE__ */ jsx(AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }) }),
17
+ /* @__PURE__ */ jsx(Span, { opacity: 0, children })
18
+ ] }) : loading && loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }),
20
+ loadingText
21
+ ] }) : children });
22
+ }
23
+ );
24
+
25
+ export {
26
+ Button
27
+ };
@@ -30,10 +30,7 @@ var GridListRoot = withProvider(
30
30
  );
31
31
  var GridListItem = withContext(
32
32
  GridList.Item,
33
- "item",
34
- {
35
- forwardProps: ["role"]
36
- }
33
+ "item"
37
34
  );
38
35
  var GridListHeader = withContext(
39
36
  GridList.Header,
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+
3
+ // src/components/status/status.tsx
4
+ import { forwardRef } from "react";
5
+ import { Status as ChakraStatus } from "@chakra-ui/react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var Status = forwardRef(
8
+ function Status2(props, ref) {
9
+ const { children, value, ...rest } = props;
10
+ const color = value ? `status.${value}` : void 0;
11
+ return /* @__PURE__ */ jsxs(ChakraStatus.Root, { ref, bg: color, ...rest, children: [
12
+ /* @__PURE__ */ jsx(ChakraStatus.Indicator, {}),
13
+ children
14
+ ] });
15
+ }
16
+ );
17
+
18
+ export {
19
+ Status
20
+ };
@@ -12,7 +12,8 @@ __export(namespace_exports, {
12
12
  ActionTrigger: () => DrawerActionTrigger,
13
13
  Backdrop: () => DrawerBackdrop,
14
14
  Body: () => DrawerBody,
15
- CloseTrigger: () => DrawerCloseTrigger,
15
+ CloseButton: () => DrawerCloseButton,
16
+ CloseTrigger: () => DrawerCloseTrigger2,
16
17
  Content: () => DrawerContent,
17
18
  Context: () => DrawerContext,
18
19
  Description: () => DrawerDescription,
@@ -34,19 +35,11 @@ var DrawerContent = forwardRef(
34
35
  return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(ChakraDrawer.Positioner, { padding: offset, children: /* @__PURE__ */ jsx(ChakraDrawer.Content, { ref, ...rest, asChild: false, children }) }) });
35
36
  }
36
37
  );
37
- var DrawerCloseTrigger = forwardRef(function DrawerCloseTrigger2(props, ref) {
38
- return /* @__PURE__ */ jsx(
39
- ChakraDrawer.CloseTrigger,
40
- {
41
- position: "absolute",
42
- top: "2",
43
- insetEnd: "2",
44
- ...props,
45
- asChild: true,
46
- children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref })
47
- }
48
- );
38
+ var DrawerCloseButton = forwardRef(function DrawerCloseTrigger(props, ref) {
39
+ const { children, ...rest } = props;
40
+ return /* @__PURE__ */ jsx(ChakraDrawer.CloseTrigger, { position: "absolute", ...rest, asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "sm", ref, children }) });
49
41
  });
42
+ var DrawerCloseTrigger2 = ChakraDrawer.CloseTrigger;
50
43
  var DrawerTrigger = ChakraDrawer.Trigger;
51
44
  var DrawerRoot = ChakraDrawer.Root;
52
45
  var DrawerFooter = ChakraDrawer.Footer;
@@ -0,0 +1 @@
1
+ 'use client'
@@ -1,8 +1,9 @@
1
1
  'use client'
2
+ import "../../chunk-YHQ5JGCC.js";
2
3
  import {
3
4
  Avatar,
4
5
  AvatarGroup
5
- } from "../../chunk-UCQ3LZIE.js";
6
+ } from "../../chunk-JO4WJVYO.js";
6
7
  import "../../chunk-RTMS5TJN.js";
7
8
  export {
8
9
  Avatar,
@@ -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/badge/index.ts
22
+ var badge_exports = {};
23
+ __export(badge_exports, {
24
+ Badge: () => import_react.Badge
25
+ });
26
+ module.exports = __toCommonJS(badge_exports);
27
+ var import_react = require("@chakra-ui/react");
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ Badge
31
+ });
@@ -0,0 +1 @@
1
+ export { Badge, BadgeProps } from '@chakra-ui/react';
@@ -0,0 +1 @@
1
+ export { Badge, BadgeProps } from '@chakra-ui/react';
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ import {
3
+ Badge
4
+ } from "../../chunk-INV6RT5B.js";
5
+ import "../../chunk-RTMS5TJN.js";
6
+ export {
7
+ Badge
8
+ };
@@ -31,32 +31,14 @@ var import_react2 = require("@chakra-ui/react");
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
32
  var Button = (0, import_react.forwardRef)(
33
33
  function Button2(props, ref) {
34
- const {
35
- loading,
36
- disabled,
37
- loadingText,
38
- children,
39
- variant = "glass",
40
- colorPalette = variant === "glass" ? "accent" : "gray",
41
- ...rest
42
- } = props;
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
- import_react2.Button,
45
- {
46
- colorPalette,
47
- disabled: loading || disabled,
48
- variant,
49
- ref,
50
- ...rest,
51
- children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
52
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }) }),
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
54
- ] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
56
- loadingText
57
- ] }) : children
58
- }
59
- );
34
+ const { loading, disabled, loadingText, children, ...rest } = props;
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Button, { disabled: loading || disabled, ref, ...rest, children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }) }),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
38
+ ] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
40
+ loadingText
41
+ ] }) : children });
60
42
  }
61
43
  );
62
44
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  Button
4
- } from "../../chunk-BCNPBZZK.js";
4
+ } from "../../chunk-NGSHWY7E.js";
5
5
  import "../../chunk-RTMS5TJN.js";
6
6
  export {
7
7
  Button
@@ -31,7 +31,8 @@ __export(namespace_exports, {
31
31
  ActionTrigger: () => DialogActionTrigger,
32
32
  Backdrop: () => DialogBackdrop,
33
33
  Body: () => DialogBody,
34
- CloseTrigger: () => DialogCloseTrigger,
34
+ CloseButton: () => DialogCloseButton,
35
+ CloseTrigger: () => DialogCloseTrigger2,
35
36
  Content: () => DialogContent,
36
37
  Context: () => import_dialog.DialogContext,
37
38
  Description: () => DialogDescription,
@@ -184,19 +185,10 @@ var DialogContent = (0, import_react4.forwardRef)(
184
185
  ] });
185
186
  }
186
187
  );
187
- var DialogCloseTrigger = (0, import_react4.forwardRef)(function DialogCloseTrigger2(props, ref) {
188
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
189
- import_react5.Dialog.CloseTrigger,
190
- {
191
- position: "absolute",
192
- top: "2",
193
- insetEnd: "2",
194
- ...props,
195
- asChild: true,
196
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref, children: props.children })
197
- }
198
- );
188
+ var DialogCloseButton = (0, import_react4.forwardRef)(function DialogCloseTrigger(props, ref) {
189
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Dialog.CloseTrigger, { position: "absolute", ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref, children: props.children }) });
199
190
  });
191
+ var DialogCloseTrigger2 = import_react5.Dialog.CloseTrigger;
200
192
  var DialogRoot = import_react5.Dialog.Root;
201
193
  var DialogFooter = import_react5.Dialog.Footer;
202
194
  var DialogHeader = import_react5.Dialog.Header;
@@ -8,6 +8,7 @@ interface DialogContentProps extends Dialog.ContentProps {
8
8
  backdrop?: boolean;
9
9
  }
10
10
  declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const DialogCloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
12
  declare const DialogCloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
13
  type DialogRootProps = Dialog.RootProps;
13
14
  declare const DialogRoot: react.FC<Dialog.RootProps>;
@@ -21,7 +22,7 @@ declare const DialogTrigger: react.ForwardRefExoticComponent<Dialog.TriggerProps
21
22
  declare const DialogActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
23
 
23
24
  declare namespace namespace {
24
- export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
25
+ export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseButton as CloseButton, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
25
26
  }
26
27
 
27
28
  export { namespace as Dialog };
@@ -8,6 +8,7 @@ interface DialogContentProps extends Dialog.ContentProps {
8
8
  backdrop?: boolean;
9
9
  }
10
10
  declare const DialogContent: react.ForwardRefExoticComponent<DialogContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const DialogCloseButton: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
12
  declare const DialogCloseTrigger: react.ForwardRefExoticComponent<Dialog.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
13
  type DialogRootProps = Dialog.RootProps;
13
14
  declare const DialogRoot: react.FC<Dialog.RootProps>;
@@ -21,7 +22,7 @@ declare const DialogTrigger: react.ForwardRefExoticComponent<Dialog.TriggerProps
21
22
  declare const DialogActionTrigger: react.ForwardRefExoticComponent<Dialog.ActionTriggerProps & react.RefAttributes<HTMLButtonElement>>;
22
23
 
23
24
  declare namespace namespace {
24
- export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
25
+ export { DialogActionTrigger as ActionTrigger, DialogBackdrop as Backdrop, DialogBody as Body, DialogCloseButton as CloseButton, DialogCloseTrigger as CloseTrigger, DialogContent as Content, type DialogContentProps as ContentProps, DialogContext as Context, DialogDescription as Description, DialogFooter as Footer, DialogHeader as Header, DialogRoot as Root, type DialogRootProps as RootProps, DialogTitle as Title, DialogTrigger as Trigger };
25
26
  }
26
27
 
27
28
  export { namespace as Dialog };
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  namespace_exports
4
- } from "../../chunk-72LEGXHY.js";
4
+ } from "../../chunk-EQ7Q6HRE.js";
5
5
  import "../../chunk-BKYGKH3L.js";
6
6
  import "../../chunk-4TPVIHNO.js";
7
7
  import "../../chunk-RTMS5TJN.js";
@@ -31,7 +31,8 @@ __export(namespace_exports, {
31
31
  ActionTrigger: () => DrawerActionTrigger,
32
32
  Backdrop: () => DrawerBackdrop,
33
33
  Body: () => DrawerBody,
34
- CloseTrigger: () => DrawerCloseTrigger,
34
+ CloseButton: () => DrawerCloseButton,
35
+ CloseTrigger: () => DrawerCloseTrigger2,
35
36
  Content: () => DrawerContent,
36
37
  Context: () => DrawerContext,
37
38
  Description: () => DrawerDescription,
@@ -175,19 +176,11 @@ var DrawerContent = (0, import_react4.forwardRef)(
175
176
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.Positioner, { padding: offset, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.Content, { ref, ...rest, asChild: false, children }) }) });
176
177
  }
177
178
  );
178
- var DrawerCloseTrigger = (0, import_react4.forwardRef)(function DrawerCloseTrigger2(props, ref) {
179
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
180
- import_react5.Drawer.CloseTrigger,
181
- {
182
- position: "absolute",
183
- top: "2",
184
- insetEnd: "2",
185
- ...props,
186
- asChild: true,
187
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref })
188
- }
189
- );
179
+ var DrawerCloseButton = (0, import_react4.forwardRef)(function DrawerCloseTrigger(props, ref) {
180
+ const { children, ...rest } = props;
181
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react5.Drawer.CloseTrigger, { position: "absolute", ...rest, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CloseButton, { size: "sm", ref, children }) });
190
182
  });
183
+ var DrawerCloseTrigger2 = import_react5.Drawer.CloseTrigger;
191
184
  var DrawerTrigger = import_react5.Drawer.Trigger;
192
185
  var DrawerRoot = import_react5.Drawer.Root;
193
186
  var DrawerFooter = import_react5.Drawer.Footer;
@@ -8,6 +8,7 @@ interface DrawerContentProps extends Drawer.ContentProps {
8
8
  offset?: Drawer.ContentProps['padding'];
9
9
  }
10
10
  declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const DrawerCloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
12
  declare const DrawerCloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
13
  declare const DrawerTrigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
14
  declare const DrawerRoot: react.FC<Drawer.RootProps>;
@@ -22,7 +23,7 @@ declare const DrawerContext: (props: _ark_ui_react.DialogContextProps) => react.
22
23
  type DrawerRootProps = Drawer.RootProps;
23
24
 
24
25
  declare namespace namespace {
25
- export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
26
+ export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
26
27
  }
27
28
 
28
29
  export { namespace as Drawer };
@@ -8,6 +8,7 @@ interface DrawerContentProps extends Drawer.ContentProps {
8
8
  offset?: Drawer.ContentProps['padding'];
9
9
  }
10
10
  declare const DrawerContent: react.ForwardRefExoticComponent<DrawerContentProps & react.RefAttributes<HTMLDivElement>>;
11
+ declare const DrawerCloseButton: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
11
12
  declare const DrawerCloseTrigger: react.ForwardRefExoticComponent<Drawer.CloseTriggerProps & react.RefAttributes<HTMLButtonElement>>;
12
13
  declare const DrawerTrigger: react.ForwardRefExoticComponent<Drawer.TriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
14
  declare const DrawerRoot: react.FC<Drawer.RootProps>;
@@ -22,7 +23,7 @@ declare const DrawerContext: (props: _ark_ui_react.DialogContextProps) => react.
22
23
  type DrawerRootProps = Drawer.RootProps;
23
24
 
24
25
  declare namespace namespace {
25
- export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
26
+ export { DrawerActionTrigger as ActionTrigger, DrawerBackdrop as Backdrop, DrawerBody as Body, DrawerCloseButton as CloseButton, DrawerCloseTrigger as CloseTrigger, DrawerContent as Content, type DrawerContentProps as ContentProps, DrawerContext as Context, DrawerDescription as Description, DrawerFooter as Footer, DrawerHeader as Header, DrawerRoot as Root, type DrawerRootProps as RootProps, DrawerTitle as Title, DrawerTrigger as Trigger };
26
27
  }
27
28
 
28
29
  export { namespace as Drawer };
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  namespace_exports
4
- } from "../../chunk-WS5XGFSL.js";
4
+ } from "../../chunk-VJ4NCA6R.js";
5
5
  import "../../chunk-BKYGKH3L.js";
6
6
  import "../../chunk-4TPVIHNO.js";
7
7
  import "../../chunk-RTMS5TJN.js";
@@ -52,10 +52,7 @@ var GridListRoot = withProvider(
52
52
  );
53
53
  var GridListItem = withContext(
54
54
  import_grid_list.GridList.Item,
55
- "item",
56
- {
57
- forwardProps: ["role"]
58
- }
55
+ "item"
59
56
  );
60
57
  var GridListHeader = withContext(
61
58
  import_grid_list.GridList.Header,
@@ -4,7 +4,7 @@ import { RecipeVariantProps, HTMLChakraProps } from '@chakra-ui/react';
4
4
  import { GridList } from '@saas-ui/core/grid-list';
5
5
  import { S as SlotRecipeProps } from '../../types-DnFoUudY.cjs';
6
6
 
7
- declare const gridListSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "root" | "item" | "header", {
7
+ declare const gridListSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "root" | "header" | "item", {
8
8
  interactive: {
9
9
  true: {
10
10
  item: {
@@ -4,7 +4,7 @@ import { RecipeVariantProps, HTMLChakraProps } from '@chakra-ui/react';
4
4
  import { GridList } from '@saas-ui/core/grid-list';
5
5
  import { S as SlotRecipeProps } from '../../types-DnFoUudY.js';
6
6
 
7
- declare const gridListSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "root" | "item" | "header", {
7
+ declare const gridListSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "root" | "header" | "item", {
8
8
  interactive: {
9
9
  true: {
10
10
  item: {
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import {
3
3
  grid_list_exports
4
- } from "../../chunk-D2Q7IR5F.js";
4
+ } from "../../chunk-NSD5HRIP.js";
5
5
  import "../../chunk-RTMS5TJN.js";
6
6
  export {
7
7
  grid_list_exports as GridList