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

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +16 -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-MZ75UMS3.js → chunk-NSD5HRIP.js} +1 -5
  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 -5
  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 -2575
  51. package/dist/index.d.cts +4 -1
  52. package/dist/index.d.ts +4 -1
  53. package/dist/index.js +2171 -2126
  54. package/package.json +1 -1
  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
@@ -21,10 +21,46 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/components/icon-button/index.ts
22
22
  var icon_button_exports = {};
23
23
  __export(icon_button_exports, {
24
- IconButton: () => import_react.IconButton
24
+ IconButton: () => IconButton
25
25
  });
26
26
  module.exports = __toCommonJS(icon_button_exports);
27
- var import_react = require("@chakra-ui/react");
27
+
28
+ // src/components/icon-button/icon-button.tsx
29
+ var import_react3 = require("react");
30
+
31
+ // src/components/button/button.tsx
32
+ var import_react = require("react");
33
+ var import_react2 = require("@chakra-ui/react");
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var Button = (0, import_react.forwardRef)(
36
+ function Button2(props, ref) {
37
+ const { loading, disabled, loadingText, children, ...rest } = props;
38
+ 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: [
39
+ /* @__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" }) }),
40
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
41
+ ] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
43
+ loadingText
44
+ ] }) : children });
45
+ }
46
+ );
47
+
48
+ // src/components/icon-button/icon-button.tsx
49
+ var import_jsx_runtime2 = require("react/jsx-runtime");
50
+ var IconButton = (0, import_react3.forwardRef)(
51
+ function IconButton2(props, ref) {
52
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
53
+ Button,
54
+ {
55
+ px: "0",
56
+ py: "0",
57
+ _icon: { fontSize: "1.2em" },
58
+ ref,
59
+ ...props
60
+ }
61
+ );
62
+ }
63
+ );
28
64
  // Annotate the CommonJS export names for ESM import in node:
29
65
  0 && (module.exports = {
30
66
  IconButton
@@ -1 +1,9 @@
1
- export { IconButton, IconButtonProps } from '@chakra-ui/react';
1
+ import * as react from 'react';
2
+ import { ButtonProps } from '../button/index.cjs';
3
+ import '@chakra-ui/react';
4
+
5
+ interface IconButtonProps extends ButtonProps {
6
+ }
7
+ declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
8
+
9
+ export { IconButton, type IconButtonProps };
@@ -1 +1,9 @@
1
- export { IconButton, IconButtonProps } from '@chakra-ui/react';
1
+ import * as react from 'react';
2
+ import { ButtonProps } from '../button/index.js';
3
+ import '@chakra-ui/react';
4
+
5
+ interface IconButtonProps extends ButtonProps {
6
+ }
7
+ declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
8
+
9
+ export { IconButton, type IconButtonProps };
@@ -1,7 +1,8 @@
1
1
  'use client'
2
2
  import {
3
3
  IconButton
4
- } from "../../chunk-QVFJV6HJ.js";
4
+ } from "../../chunk-MS2ELLDY.js";
5
+ import "../../chunk-NGSHWY7E.js";
5
6
  import "../../chunk-RTMS5TJN.js";
6
7
  export {
7
8
  IconButton
@@ -54,32 +54,14 @@ var import_react2 = require("@chakra-ui/react");
54
54
  var import_jsx_runtime = require("react/jsx-runtime");
55
55
  var Button = (0, import_react.forwardRef)(
56
56
  function Button2(props, ref) {
57
- const {
58
- loading,
59
- disabled,
60
- loadingText,
61
- children,
62
- variant = "glass",
63
- colorPalette = variant === "glass" ? "accent" : "gray",
64
- ...rest
65
- } = props;
66
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
- import_react2.Button,
68
- {
69
- colorPalette,
70
- disabled: loading || disabled,
71
- variant,
72
- ref,
73
- ...rest,
74
- children: loading && !loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
75
- /* @__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" }) }),
76
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
77
- ] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
78
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
79
- loadingText
80
- ] }) : children
81
- }
82
- );
57
+ const { loading, disabled, loadingText, children, ...rest } = props;
58
+ 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: [
59
+ /* @__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" }) }),
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Span, { opacity: 0, children })
61
+ ] }) : loading && loadingText ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
62
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Spinner, { size: "inherit", color: "inherit" }),
63
+ loadingText
64
+ ] }) : children });
83
65
  }
84
66
  );
85
67
 
@@ -1,10 +1,10 @@
1
1
  'use client'
2
2
  import {
3
3
  menu_exports
4
- } from "../../chunk-C7B3ELC4.js";
4
+ } from "../../chunk-KFXNVUEZ.js";
5
5
  import "../../chunk-KTLWEUNW.js";
6
- import "../../chunk-BCNPBZZK.js";
7
6
  import "../../chunk-4TPVIHNO.js";
7
+ import "../../chunk-NGSHWY7E.js";
8
8
  import "../../chunk-RTMS5TJN.js";
9
9
  export {
10
10
  menu_exports as Menu
@@ -41,27 +41,64 @@ module.exports = __toCommonJS(persona_exports);
41
41
  var React2 = __toESM(require("react"), 1);
42
42
 
43
43
  // src/components/persona/persona-primitive.tsx
44
- var import_react2 = require("react");
45
- var import_react3 = require("@chakra-ui/react");
44
+ var import_react4 = require("react");
45
+ var import_react5 = require("@chakra-ui/react");
46
46
  var import_utils = require("@saas-ui/core/utils");
47
47
 
48
+ // src/components/avatar/avatar.tsx
49
+ var import_react = require("react");
50
+ var import_react2 = require("@chakra-ui/react");
51
+ var import_jsx_runtime = require("react/jsx-runtime");
52
+ var Avatar = (0, import_react.forwardRef)(
53
+ function Avatar2(props, ref) {
54
+ const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Avatar.Root, { ref, ...rest, children: [
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarFallback, { name, icon, children: fallback }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Avatar.Image, { src, srcSet, loading }),
58
+ children
59
+ ] });
60
+ }
61
+ );
62
+ var AvatarFallback = (0, import_react.forwardRef)(
63
+ function AvatarFallback2(props, ref) {
64
+ const { name, icon, children, ...rest } = props;
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Avatar.Fallback, { ref, ...rest, children: [
66
+ children,
67
+ name != null && children == null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: getInitials(name) }),
68
+ name == null && children == null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Avatar.Icon, { asChild: !!icon, children: icon })
69
+ ] });
70
+ }
71
+ );
72
+ function getInitials(name) {
73
+ const names = name.trim().split(" ");
74
+ const firstName = names[0] != null ? names[0] : "";
75
+ const lastName = names.length > 1 ? names[names.length - 1] : "";
76
+ return firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
77
+ }
78
+ var AvatarGroup = (0, import_react.forwardRef)(
79
+ function AvatarGroup2(props, ref) {
80
+ const { size, variant, borderless, ...rest } = props;
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Avatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Group, { gap: "0", spaceX: "-3", ref, ...rest }) });
82
+ }
83
+ );
84
+
48
85
  // src/components/persona/persona.context.ts
49
- var import_react = require("@chakra-ui/react");
86
+ var import_react3 = require("@chakra-ui/react");
50
87
  var {
51
88
  useStyles: usePersonaStyles,
52
89
  withProvider,
53
90
  withContext
54
- } = (0, import_react.createSlotRecipeContext)({
91
+ } = (0, import_react3.createSlotRecipeContext)({
55
92
  key: "suiPersona"
56
93
  });
57
94
 
58
95
  // src/components/persona/persona-primitive.tsx
59
- var import_jsx_runtime = require("react/jsx-runtime");
96
+ var import_jsx_runtime2 = require("react/jsx-runtime");
60
97
  var PersonaRoot = withProvider(
61
- (0, import_react2.forwardRef)((props, ref) => {
98
+ (0, import_react4.forwardRef)((props, ref) => {
62
99
  const { outOfOffice, presence, ...rest } = props;
63
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
- import_react3.chakra.div,
100
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
101
+ import_react5.chakra.div,
65
102
  {
66
103
  ref,
67
104
  ...rest,
@@ -78,11 +115,11 @@ var PersonaRoot = withProvider(
78
115
  }),
79
116
  "root"
80
117
  );
81
- var PersonaAvatar = (0, import_react2.forwardRef)(
118
+ var PersonaAvatar = (0, import_react4.forwardRef)(
82
119
  (props, ref) => {
83
120
  const {
84
121
  name,
85
- getInitials = (name2) => name2 == null ? void 0 : name2[0],
122
+ getInitials: getInitials2 = (name2) => name2 == null ? void 0 : name2[0],
86
123
  icon,
87
124
  loading,
88
125
  onError,
@@ -91,19 +128,7 @@ var PersonaAvatar = (0, import_react2.forwardRef)(
91
128
  children,
92
129
  ...rest
93
130
  } = props;
94
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react3.Avatar.Root, { ref, ...rest, children: [
95
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.Avatar.Fallback, { children: getInitials(name) }),
96
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
- import_react3.Avatar.Image,
98
- {
99
- src,
100
- srcSet,
101
- loading,
102
- onError
103
- }
104
- ),
105
- children
106
- ] });
131
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Avatar, { ref, ...rest, children });
107
132
  }
108
133
  );
109
134
  var PersonaPresenceBadge = withContext("span", "presence");
@@ -126,7 +151,7 @@ var PersonaTertiaryLabel = withContext(
126
151
  );
127
152
 
128
153
  // src/components/persona/persona.tsx
129
- var import_jsx_runtime2 = require("react/jsx-runtime");
154
+ var import_jsx_runtime3 = require("react/jsx-runtime");
130
155
  var Persona = React2.forwardRef(
131
156
  (props, ref) => {
132
157
  const {
@@ -141,15 +166,16 @@ var Persona = React2.forwardRef(
141
166
  hideDetails,
142
167
  children,
143
168
  /** Avatar props */
144
- getInitials,
169
+ getInitials: getInitials2,
145
170
  icon,
146
171
  loading,
147
172
  onError,
148
173
  src,
149
174
  srcSet,
175
+ fallback,
150
176
  ...rest
151
177
  } = props;
152
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
178
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
153
179
  PersonaRoot,
154
180
  {
155
181
  ref,
@@ -158,24 +184,25 @@ var Persona = React2.forwardRef(
158
184
  size,
159
185
  ...rest,
160
186
  children: [
161
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
187
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
162
188
  PersonaAvatar,
163
189
  {
164
190
  name,
165
191
  size,
166
- getInitials,
192
+ getInitials: getInitials2,
167
193
  icon,
168
194
  loading,
169
195
  onError,
170
196
  src,
171
197
  srcSet,
172
- children: presence ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
198
+ fallback,
199
+ children: presence ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
173
200
  }
174
201
  ),
175
- !hideDetails && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PersonaDetails, { children: [
176
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PersonaLabel, { children: label || name }),
177
- secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PersonaSecondaryLabel, { children: secondaryLabel }),
178
- tertiaryLabel && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PersonaTertiaryLabel, { children: tertiaryLabel }),
202
+ !hideDetails && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PersonaDetails, { children: [
203
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaLabel, { children: label || name }),
204
+ secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaSecondaryLabel, { children: secondaryLabel }),
205
+ tertiaryLabel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaTertiaryLabel, { children: tertiaryLabel }),
179
206
  children
180
207
  ] })
181
208
  ]
@@ -185,7 +212,7 @@ var Persona = React2.forwardRef(
185
212
  );
186
213
  Persona.displayName = "Persona";
187
214
  var PersonaAvatar2 = React2.forwardRef(function PersonaAvatar3(props, ref) {
188
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Persona, { ref, ...props, hideDetails: true });
215
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Persona, { ref, ...props, hideDetails: true });
189
216
  });
190
217
 
191
218
  // src/components/persona/presence.ts
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { RecipeVariantProps, HTMLChakraProps, AvatarRootProps, ImageProps, ConfigSlotRecipes, SlotRecipeDefinition } from '@chakra-ui/react';
4
+ import { RecipeVariantProps, HTMLChakraProps, ImageProps, ConfigSlotRecipes, SlotRecipeDefinition } from '@chakra-ui/react';
5
+ import { AvatarProps } from '../avatar/index.cjs';
5
6
 
6
7
  declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence" | "root" | "avatar" | "details" | "label" | "secondaryLabel" | "tertiaryLabel", {
7
8
  size: {
@@ -10,7 +11,7 @@ declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence
10
11
  ms: number;
11
12
  };
12
13
  label: {
13
- fontSize: "2xs";
14
+ fontSize: "xs";
14
15
  };
15
16
  secondaryLabel: {
16
17
  display: "none";
@@ -152,7 +153,7 @@ interface PersonaAvatarOptions {
152
153
  */
153
154
  name?: string;
154
155
  }
155
- interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarRootProps {
156
+ interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarProps {
156
157
  src?: string;
157
158
  srcSet?: string;
158
159
  loading?: ImageProps['loading'];
@@ -1,7 +1,8 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { RecipeVariantProps, HTMLChakraProps, AvatarRootProps, ImageProps, ConfigSlotRecipes, SlotRecipeDefinition } from '@chakra-ui/react';
4
+ import { RecipeVariantProps, HTMLChakraProps, ImageProps, ConfigSlotRecipes, SlotRecipeDefinition } from '@chakra-ui/react';
5
+ import { AvatarProps } from '../avatar/index.js';
5
6
 
6
7
  declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence" | "root" | "avatar" | "details" | "label" | "secondaryLabel" | "tertiaryLabel", {
7
8
  size: {
@@ -10,7 +11,7 @@ declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence
10
11
  ms: number;
11
12
  };
12
13
  label: {
13
- fontSize: "2xs";
14
+ fontSize: "xs";
14
15
  };
15
16
  secondaryLabel: {
16
17
  display: "none";
@@ -152,7 +153,7 @@ interface PersonaAvatarOptions {
152
153
  */
153
154
  name?: string;
154
155
  }
155
- interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarRootProps {
156
+ interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarProps {
156
157
  src?: string;
157
158
  srcSet?: string;
158
159
  loading?: ImageProps['loading'];
@@ -3,7 +3,8 @@ import {
3
3
  Persona,
4
4
  PersonaAvatar,
5
5
  defaultPresenceOptions
6
- } from "../../chunk-4VH4IGVF.js";
6
+ } from "../../chunk-GWC5GCMW.js";
7
+ import "../../chunk-JO4WJVYO.js";
7
8
  import "../../chunk-RTMS5TJN.js";
8
9
  export {
9
10
  Persona,
@@ -0,0 +1,45 @@
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/status/index.ts
22
+ var status_exports = {};
23
+ __export(status_exports, {
24
+ Status: () => Status
25
+ });
26
+ module.exports = __toCommonJS(status_exports);
27
+
28
+ // src/components/status/status.tsx
29
+ var import_react = require("react");
30
+ var import_react2 = require("@chakra-ui/react");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var Status = (0, import_react.forwardRef)(
33
+ function Status2(props, ref) {
34
+ const { children, value, ...rest } = props;
35
+ const color = value ? `status.${value}` : void 0;
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Status.Root, { ref, bg: color, ...rest, children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Status.Indicator, {}),
38
+ children
39
+ ] });
40
+ }
41
+ );
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ Status
45
+ });
@@ -0,0 +1,17 @@
1
+ import * as react from 'react';
2
+ import { Status as Status$1, Token } from '@chakra-ui/react';
3
+
4
+ type StatusTokens = Extract<Token, `colors.status.${string}`>;
5
+ interface StatusProps extends Status$1.RootProps {
6
+ /**
7
+ * The status value, used to determine the color of the status
8
+ * colors can be configured as semantic tokens under the `colors.status` key.
9
+ */
10
+ value?: StatusTokens extends never ? string : StatusTokens;
11
+ }
12
+ /**
13
+ * Status component
14
+ */
15
+ declare const Status: react.ForwardRefExoticComponent<StatusProps & react.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Status, type StatusProps };
@@ -0,0 +1,17 @@
1
+ import * as react from 'react';
2
+ import { Status as Status$1, Token } from '@chakra-ui/react';
3
+
4
+ type StatusTokens = Extract<Token, `colors.status.${string}`>;
5
+ interface StatusProps extends Status$1.RootProps {
6
+ /**
7
+ * The status value, used to determine the color of the status
8
+ * colors can be configured as semantic tokens under the `colors.status` key.
9
+ */
10
+ value?: StatusTokens extends never ? string : StatusTokens;
11
+ }
12
+ /**
13
+ * Status component
14
+ */
15
+ declare const Status: react.ForwardRefExoticComponent<StatusProps & react.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { Status, type StatusProps };
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ import {
3
+ Status
4
+ } from "../../chunk-Q6IC3BTH.js";
5
+ import "../../chunk-RTMS5TJN.js";
6
+ export {
7
+ Status
8
+ };
@@ -0,0 +1,53 @@
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/tag/index.ts
22
+ var tag_exports = {};
23
+ __export(tag_exports, {
24
+ Tag: () => Tag
25
+ });
26
+ module.exports = __toCommonJS(tag_exports);
27
+
28
+ // src/components/tag/tag.tsx
29
+ var import_react = require("react");
30
+ var import_react2 = require("@chakra-ui/react");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var Tag = (0, import_react.forwardRef)(
33
+ function Tag2(props, ref) {
34
+ const {
35
+ startElement,
36
+ endElement,
37
+ onClose,
38
+ closable = !!onClose,
39
+ children,
40
+ ...rest
41
+ } = props;
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Tag.Root, { ref, ...rest, children: [
43
+ startElement && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.StartElement, { children: startElement }),
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.Label, { children }),
45
+ endElement && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.EndElement, { children: endElement }),
46
+ closable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.EndElement, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Tag.CloseTrigger, { onClick: onClose }) })
47
+ ] });
48
+ }
49
+ );
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ Tag
53
+ });
@@ -0,0 +1,12 @@
1
+ import * as react from 'react';
2
+ import { Tag as Tag$1 } from '@chakra-ui/react';
3
+
4
+ interface TagProps extends Tag$1.RootProps {
5
+ startElement?: React.ReactNode;
6
+ endElement?: React.ReactNode;
7
+ onClose?: VoidFunction;
8
+ closable?: boolean;
9
+ }
10
+ declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLSpanElement>>;
11
+
12
+ export { Tag, type TagProps };
@@ -0,0 +1,12 @@
1
+ import * as react from 'react';
2
+ import { Tag as Tag$1 } from '@chakra-ui/react';
3
+
4
+ interface TagProps extends Tag$1.RootProps {
5
+ startElement?: React.ReactNode;
6
+ endElement?: React.ReactNode;
7
+ onClose?: VoidFunction;
8
+ closable?: boolean;
9
+ }
10
+ declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLSpanElement>>;
11
+
12
+ export { Tag, type TagProps };
@@ -0,0 +1,8 @@
1
+ 'use client'
2
+ import {
3
+ Tag
4
+ } from "../../chunk-IEWHAXXU.js";
5
+ import "../../chunk-RTMS5TJN.js";
6
+ export {
7
+ Tag
8
+ };