@saas-ui/react 3.0.0-alpha.21 → 3.0.0-alpha.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/{chunk-72LEGXHY.js → chunk-EQ7Q6HRE.js} +5 -13
- package/dist/{chunk-4VH4IGVF.js → chunk-GWC5GCMW.js} +10 -18
- package/dist/chunk-IEWHAXXU.js +28 -0
- package/dist/chunk-INV6RT5B.js +8 -0
- package/dist/{chunk-C7B3ELC4.js → chunk-KFXNVUEZ.js} +3 -3
- package/dist/chunk-MS2ELLDY.js +26 -0
- package/dist/chunk-NGSHWY7E.js +27 -0
- package/dist/{chunk-MZ75UMS3.js → chunk-NSD5HRIP.js} +1 -5
- package/dist/{chunk-WS5XGFSL.js → chunk-VJ4NCA6R.js} +6 -13
- package/dist/chunk-YHQ5JGCC.js +1 -0
- package/dist/chunk-YKSY7UOM.js +20 -0
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/badge/index.cjs +31 -0
- package/dist/components/badge/index.d.cts +1 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/button/index.cjs +8 -26
- package/dist/components/button/index.js +1 -1
- package/dist/components/dialog/index.cjs +5 -13
- package/dist/components/dialog/index.d.cts +2 -1
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/drawer/index.cjs +6 -13
- package/dist/components/drawer/index.d.cts +2 -1
- package/dist/components/drawer/index.d.ts +2 -1
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/grid-list/index.cjs +1 -5
- package/dist/components/grid-list/index.d.cts +1 -1
- package/dist/components/grid-list/index.d.ts +1 -1
- package/dist/components/grid-list/index.js +1 -1
- package/dist/components/icon-button/index.cjs +38 -2
- package/dist/components/icon-button/index.d.cts +9 -1
- package/dist/components/icon-button/index.d.ts +9 -1
- package/dist/components/icon-button/index.js +2 -1
- package/dist/components/menu/index.cjs +8 -26
- package/dist/components/menu/index.js +2 -2
- package/dist/components/persona/index.cjs +61 -34
- package/dist/components/persona/index.d.cts +4 -3
- package/dist/components/persona/index.d.ts +4 -3
- package/dist/components/persona/index.js +2 -1
- package/dist/components/status/index.cjs +45 -0
- package/dist/components/status/index.d.cts +17 -0
- package/dist/components/status/index.d.ts +17 -0
- package/dist/components/status/index.js +8 -0
- package/dist/components/tag/index.cjs +53 -0
- package/dist/components/tag/index.d.cts +12 -0
- package/dist/components/tag/index.d.ts +12 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/index.cjs +2636 -2568
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2187 -2121
- package/package.json +1 -1
- package/dist/chunk-BCNPBZZK.js +0 -45
- package/dist/chunk-QVFJV6HJ.js +0 -8
- /package/dist/{chunk-UCQ3LZIE.js → chunk-JO4WJVYO.js} +0 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @saas-ui/react
|
2
2
|
|
3
|
+
## 3.0.0-alpha.23
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 8ac704a: Improved tag recipe and support status component.
|
8
|
+
|
9
|
+
## 3.0.0-alpha.22
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- Added Status component
|
14
|
+
- Added Badge and Tag components
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- Fixed GridList prop forwarding
|
19
|
+
- Changed default Button variant to surface
|
20
|
+
- Fixed issue where Button colorPalette could not be changed using the recipe
|
21
|
+
- Rename Drawer and Dialog CloseTrigger to CloseButton
|
22
|
+
- Improved Button glass variant hover color
|
23
|
+
- Improved semantic grays and shadows balance
|
24
|
+
|
3
25
|
## 3.0.0-alpha.21
|
4
26
|
|
5
27
|
### Patch Changes
|
@@ -12,7 +12,8 @@ __export(namespace_exports, {
|
|
12
12
|
ActionTrigger: () => DialogActionTrigger,
|
13
13
|
Backdrop: () => DialogBackdrop,
|
14
14
|
Body: () => DialogBody,
|
15
|
-
|
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
|
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
|
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__ */
|
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
|
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__ */
|
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__ */
|
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,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
|
+
};
|
@@ -12,7 +12,8 @@ __export(namespace_exports, {
|
|
12
12
|
ActionTrigger: () => DrawerActionTrigger,
|
13
13
|
Backdrop: () => DrawerBackdrop,
|
14
14
|
Body: () => DrawerBody,
|
15
|
-
|
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
|
38
|
-
|
39
|
-
|
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'
|
@@ -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, ...rest, children: [
|
12
|
+
/* @__PURE__ */ jsx(ChakraStatus.Indicator, { bg: color }),
|
13
|
+
children
|
14
|
+
] });
|
15
|
+
}
|
16
|
+
);
|
17
|
+
|
18
|
+
export {
|
19
|
+
Status
|
20
|
+
};
|
@@ -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';
|
@@ -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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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:
|
@@ -31,7 +31,8 @@ __export(namespace_exports, {
|
|
31
31
|
ActionTrigger: () => DialogActionTrigger,
|
32
32
|
Backdrop: () => DialogBackdrop,
|
33
33
|
Body: () => DialogBody,
|
34
|
-
|
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
|
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 };
|
@@ -31,7 +31,8 @@ __export(namespace_exports, {
|
|
31
31
|
ActionTrigger: () => DrawerActionTrigger,
|
32
32
|
Backdrop: () => DrawerBackdrop,
|
33
33
|
Body: () => DrawerBody,
|
34
|
-
|
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
|
179
|
-
|
180
|
-
|
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 };
|
@@ -52,11 +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
|
-
forwardAsChild: false
|
59
|
-
}
|
55
|
+
"item"
|
60
56
|
);
|
61
57
|
var GridListHeader = withContext(
|
62
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" | "
|
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" | "
|
7
|
+
declare const gridListSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "root" | "header" | "item", {
|
8
8
|
interactive: {
|
9
9
|
true: {
|
10
10
|
item: {
|