@staffbase/design 19.0.1 → 20.0.0

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/dist/main.cjs CHANGED
@@ -11,35 +11,15 @@ See the License for the specific language governing permissions and
11
11
  limitations under the License.
12
12
  */
13
13
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
- //#region \0rolldown/runtime.js
15
- var __create = Object.create;
16
- var __defProp = Object.defineProperty;
17
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
18
- var __getOwnPropNames = Object.getOwnPropertyNames;
19
- var __getProtoOf = Object.getPrototypeOf;
20
- var __hasOwnProp = Object.prototype.hasOwnProperty;
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
23
- key = keys[i];
24
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
25
- get: ((k) => from[k]).bind(null, key),
26
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
- });
28
- }
29
- return to;
30
- };
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
32
- value: mod,
33
- enumerable: true
34
- }) : target, mod));
35
- //#endregion
14
+ const require_chunk = require("./chunk-CDHmpCQf.cjs");
36
15
  let _floating_ui_react = require("@floating-ui/react");
37
16
  let clsx = require("clsx");
38
- clsx = __toESM(clsx, 1);
17
+ clsx = require_chunk.__toESM(clsx, 1);
39
18
  let react = require("react");
40
- react = __toESM(react, 1);
19
+ react = require_chunk.__toESM(react, 1);
41
20
  let react_jsx_runtime = require("react/jsx-runtime");
42
21
  let _base_ui_react = require("@base-ui/react");
22
+ let _base_ui_react_avatar = require("@base-ui/react/avatar");
43
23
  let _base_ui_react_drawer = require("@base-ui/react/drawer");
44
24
  let _base_ui_react_field = require("@base-ui/react/field");
45
25
  let react_dropzone = require("react-dropzone");
@@ -48,14 +28,14 @@ let motion_react = require("motion/react");
48
28
  let _base_ui_react_menu = require("@base-ui/react/menu");
49
29
  let _base_ui_react_number_field = require("@base-ui/react/number-field");
50
30
  let _radix_ui_react_popover = require("@radix-ui/react-popover");
51
- _radix_ui_react_popover = __toESM(_radix_ui_react_popover, 1);
31
+ _radix_ui_react_popover = require_chunk.__toESM(_radix_ui_react_popover, 1);
52
32
  let _base_ui_react_combobox = require("@base-ui/react/combobox");
53
33
  let _base_ui_react_radio = require("@base-ui/react/radio");
54
34
  let _base_ui_react_radio_group = require("@base-ui/react/radio-group");
55
35
  let _base_ui_react_select = require("@base-ui/react/select");
56
36
  let _base_ui_react_switch = require("@base-ui/react/switch");
57
37
  let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
58
- _radix_ui_react_tabs = __toESM(_radix_ui_react_tabs, 1);
38
+ _radix_ui_react_tabs = require_chunk.__toESM(_radix_ui_react_tabs, 1);
59
39
  let _base_ui_react_input = require("@base-ui/react/input");
60
40
  let _base_ui_react_tooltip = require("@base-ui/react/tooltip");
61
41
  //#region src/components/actionMenu/ActionMenuContext.tsx
@@ -273,11 +253,24 @@ ActionMenuItemIcon.displayName = "ActionMenuItemIcon";
273
253
  ActionMenuItemLabel.displayName = "ActionMenuItemLabel";
274
254
  //#endregion
275
255
  //#region src/components/button/Button.tsx
256
+ function buttonVariants({ variant = "solid", color = "primary", iconOnly, className } = {}) {
257
+ return {
258
+ className: (0, clsx.default)("ds-button", className),
259
+ "data-variant": variant,
260
+ "data-color": color,
261
+ "data-icon-only": iconOnly ? true : void 0
262
+ };
263
+ }
276
264
  var Button = (0, react.forwardRef)((props, ref) => {
277
- const { children, className, variant = "solid", color = "primary", iconOnly = false, ...rest } = props;
265
+ const { children, className, variant, color, iconOnly, ...rest } = props;
278
266
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
279
267
  "data-c13y-component": "button",
280
- className: (0, clsx.default)("ds-button", `ds-button--${variant}`, `ds-button--${color}`, { "ds-button--icon-only": iconOnly }, className),
268
+ ...buttonVariants({
269
+ variant,
270
+ color,
271
+ iconOnly,
272
+ className
273
+ }),
281
274
  ...rest,
282
275
  ref,
283
276
  children
@@ -336,7 +329,7 @@ var Popup$6 = (0, react.forwardRef)((props, ref) => {
336
329
  })]
337
330
  });
338
331
  });
339
- var Title$2 = (0, react.forwardRef)((props, ref) => {
332
+ var Title$3 = (0, react.forwardRef)((props, ref) => {
340
333
  const { className, ...rest } = props;
341
334
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Title, {
342
335
  "data-c13y-component": "alert-dialog-title",
@@ -345,7 +338,7 @@ var Title$2 = (0, react.forwardRef)((props, ref) => {
345
338
  ref
346
339
  });
347
340
  });
348
- var Description$3 = (0, react.forwardRef)((props, ref) => {
341
+ var Description$4 = (0, react.forwardRef)((props, ref) => {
349
342
  const { className, ...rest } = props;
350
343
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Description, {
351
344
  "data-c13y-component": "alert-dialog-description",
@@ -360,11 +353,70 @@ var AlertDialog = {
360
353
  Popup: Popup$6,
361
354
  Cancel,
362
355
  Action: Action$1,
363
- Title: Title$2,
364
- Description: Description$3,
356
+ Title: Title$3,
357
+ Description: Description$4,
365
358
  Icon: Icon$1
366
359
  };
367
360
  //#endregion
361
+ //#region src/components/avatar/Avatar.tsx
362
+ var Root$10 = (0, react.forwardRef)((props, ref) => {
363
+ const { size = 40, className, ...rest } = props;
364
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Root, {
365
+ ref,
366
+ "data-size": size,
367
+ className: (0, clsx.default)("ds-avatar", className),
368
+ ...rest
369
+ });
370
+ });
371
+ var Image = (0, react.forwardRef)((props, ref) => {
372
+ const { className, ...rest } = props;
373
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Image, {
374
+ "data-c13y-component": "avatar",
375
+ ref,
376
+ className: (0, clsx.default)("ds-avatar__image", className),
377
+ ...rest
378
+ });
379
+ });
380
+ var AVATAR_COLORS = [
381
+ "cyan",
382
+ "pink",
383
+ "purple",
384
+ "teal"
385
+ ];
386
+ function deriveColor(name) {
387
+ return AVATAR_COLORS[name.split("").reduce((acc, char) => acc + (char.codePointAt(0) ?? 0), 0) % AVATAR_COLORS.length] ?? "purple";
388
+ }
389
+ var Avatar = {
390
+ Root: Root$10,
391
+ Fallback: (0, react.forwardRef)((props, ref) => {
392
+ const { className, name, ...rest } = props;
393
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Fallback, {
394
+ "data-c13y-component": "avatar",
395
+ ref,
396
+ "data-color": name ? deriveColor(name) : void 0,
397
+ className: (0, clsx.default)("ds-avatar__fallback", className),
398
+ ...rest
399
+ });
400
+ }),
401
+ Group: (0, react.forwardRef)((props, ref) => {
402
+ const { className, ...rest } = props;
403
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
404
+ ref,
405
+ className: (0, clsx.default)("ds-avatar__group", className),
406
+ ...rest
407
+ });
408
+ }),
409
+ GroupCount: (0, react.forwardRef)((props, ref) => {
410
+ const { className, ...rest } = props;
411
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
412
+ ref,
413
+ className: (0, clsx.default)("ds-avatar__group-count", className),
414
+ ...rest
415
+ });
416
+ }),
417
+ Image
418
+ };
419
+ //#endregion
368
420
  //#region src/icons/AddCircleIcon.tsx
369
421
  /**
370
422
  * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
@@ -3983,6 +4035,29 @@ var LogoutIcon = react.default.forwardRef((props, ref) => {
3983
4035
  LogoutIcon.displayName = "LogoutIcon";
3984
4036
  var LogoutIcon_default = react.default.memo(LogoutIcon);
3985
4037
  //#endregion
4038
+ //#region src/icons/LongTextIcon.tsx
4039
+ /**
4040
+ * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
4041
+ */
4042
+ var LongTextIcon = react.default.forwardRef((props, ref) => {
4043
+ const { className, ...rest } = props;
4044
+ const finalClassName = ["ds-icon ds-icon-long-text", className].filter(Boolean).join(" ");
4045
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
4046
+ "aria-hidden": "true",
4047
+ viewBox: "0 0 20.6367 15.7754",
4048
+ width: "1em",
4049
+ height: "1em",
4050
+ fill: "currentColor",
4051
+ ...rest,
4052
+ className: finalClassName,
4053
+ ref,
4054
+ "data-c13y-component": "icon",
4055
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M19.3867 13.2754C19.7182 13.2754 20.0361 13.4073 20.2705 13.6416C20.5049 13.876 20.6367 14.1939 20.6367 14.5254C20.6367 14.8569 20.5049 15.1748 20.2705 15.4092C20.0361 15.6435 19.7182 15.7754 19.3867 15.7754H1.25C0.9185 15.7754 0.6006 15.6436 0.3662 15.4092C0.1318 15.1748 0 14.8569 0 14.5254C0 14.1939 0.1318 13.876 0.3662 13.6416C0.6006 13.4072 0.9185 13.2754 1.25 13.2754H19.3867ZM15.5684 6.6826C15.8998 6.6827 16.2178 6.8145 16.4521 7.0488C16.6865 7.2832 16.8184 7.6012 16.8184 7.9326C16.8184 8.2641 16.6865 8.582 16.4521 8.8164C16.2178 9.0507 15.8998 9.1825 15.5684 9.1826H1.25C0.9185 9.1826 0.6006 9.0508 0.3662 8.8164C0.1318 8.582 0 8.2641 0 7.9326C0 7.6011 0.1318 7.2833 0.3662 7.0488C0.6006 6.8144 0.9185 6.6826 1.25 6.6826H15.5684ZM19.3867 0C19.7182 0 20.0361 0.1319 20.2705 0.3662C20.5049 0.6006 20.6367 0.9185 20.6367 1.25C20.6367 1.5815 20.5049 1.8994 20.2705 2.1338C20.0361 2.3681 19.7182 2.5 19.3867 2.5H1.25C0.9185 2.5 0.6006 2.3682 0.3662 2.1338C0.1318 1.8994 0 1.5815 0 1.25C0 0.9185 0.1318 0.6006 0.3662 0.3662C0.6006 0.1318 0.9185 0 1.25 0H19.3867Z" })
4056
+ });
4057
+ });
4058
+ LongTextIcon.displayName = "LongTextIcon";
4059
+ var LongTextIcon_default = react.default.memo(LongTextIcon);
4060
+ //#endregion
3986
4061
  //#region src/icons/MagicWandIcon.tsx
3987
4062
  /**
3988
4063
  * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
@@ -6984,6 +7059,29 @@ var ShareIosIcon = react.default.forwardRef((props, ref) => {
6984
7059
  ShareIosIcon.displayName = "ShareIosIcon";
6985
7060
  var ShareIosIcon_default = react.default.memo(ShareIosIcon);
6986
7061
  //#endregion
7062
+ //#region src/icons/ShortTextIcon.tsx
7063
+ /**
7064
+ * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
7065
+ */
7066
+ var ShortTextIcon = react.default.forwardRef((props, ref) => {
7067
+ const { className, ...rest } = props;
7068
+ const finalClassName = ["ds-icon ds-icon-short-text", className].filter(Boolean).join(" ");
7069
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
7070
+ "aria-hidden": "true",
7071
+ viewBox: "0 0 20.6367 9.1826",
7072
+ width: "1em",
7073
+ height: "1em",
7074
+ fill: "currentColor",
7075
+ ...rest,
7076
+ className: finalClassName,
7077
+ ref,
7078
+ "data-c13y-component": "icon",
7079
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15.5684 6.6826C15.8998 6.6827 16.2178 6.8145 16.4521 7.0488C16.6865 7.2832 16.8184 7.6012 16.8184 7.9326C16.8184 8.264 16.6865 8.582 16.4521 8.8164C16.2178 9.0507 15.8998 9.1825 15.5684 9.1826H1.25C0.9185 9.1826 0.6006 9.0508 0.3662 8.8164C0.1318 8.582 0 8.2641 0 7.9326C0 7.6011 0.1318 7.2832 0.3662 7.0488C0.6006 6.8144 0.9185 6.6826 1.25 6.6826H15.5684ZM19.3867 0C19.7182 0 20.0361 0.1319 20.2705 0.3662C20.5049 0.6006 20.6367 0.9185 20.6367 1.25C20.6367 1.5815 20.5049 1.8994 20.2705 2.1338C20.0361 2.3681 19.7182 2.5 19.3867 2.5H1.25C0.9185 2.5 0.6006 2.3682 0.3662 2.1338C0.1318 1.8994 0 1.5815 0 1.25C0 0.9185 0.1318 0.6006 0.3662 0.3662C0.6006 0.1318 0.9185 0 1.25 0H19.3867Z" })
7080
+ });
7081
+ });
7082
+ ShortTextIcon.displayName = "ShortTextIcon";
7083
+ var ShortTextIcon_default = react.default.memo(ShortTextIcon);
7084
+ //#endregion
6987
7085
  //#region src/icons/ShrinkIcon.tsx
6988
7086
  /**
6989
7087
  * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
@@ -7059,6 +7157,34 @@ var SidebarRightIcon = react.default.forwardRef((props, ref) => {
7059
7157
  SidebarRightIcon.displayName = "SidebarRightIcon";
7060
7158
  var SidebarRightIcon_default = react.default.memo(SidebarRightIcon);
7061
7159
  //#endregion
7160
+ //#region src/icons/SingleChoiceQuestionIcon.tsx
7161
+ /**
7162
+ * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
7163
+ */
7164
+ var SingleChoiceQuestionIcon = react.default.forwardRef((props, ref) => {
7165
+ const { className, ...rest } = props;
7166
+ const finalClassName = ["ds-icon ds-icon-single-choice-question", className].filter(Boolean).join(" ");
7167
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
7168
+ "aria-hidden": "true",
7169
+ viewBox: "0 0 24 24",
7170
+ width: "1em",
7171
+ height: "1em",
7172
+ fill: "currentColor",
7173
+ ...rest,
7174
+ className: finalClassName,
7175
+ ref,
7176
+ "data-c13y-component": "icon",
7177
+ children: [
7178
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M21 0H3C2.20435 0 1.44129 0.31607 0.87868 0.878679C0.316071 1.44129 0 2.20435 0 3V21C0 21.7956 0.316071 22.5587 0.87868 23.1213C1.44129 23.6839 2.20435 24 3 24H21C21.7956 24 22.5587 23.6839 23.1213 23.1213C23.6839 22.5587 24 21.7956 24 21V3C24 2.20435 23.6839 1.44129 23.1213 0.878679C22.5587 0.31607 21.7956 0 21 0ZM22 21C22 21.2652 21.8946 21.5196 21.7071 21.7071C21.5196 21.8946 21.2652 22 21 22H3C2.73478 22 2.48043 21.8946 2.29289 21.7071C2.10536 21.5196 2 21.2652 2 21V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H21C21.2652 2 21.5196 2.10536 21.7071 2.29289C21.8946 2.48043 22 2.73478 22 3V21Z" }),
7179
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M18.5 7.74902H14C13.6022 7.74902 13.2206 7.88072 12.9393 8.11514C12.658 8.34956 12.5 8.6675 12.5 8.99902C12.5 9.33054 12.658 9.64849 12.9393 9.88291C13.2206 10.1173 13.6022 10.249 14 10.249H18.5C18.8315 10.249 19.1495 10.1173 19.3839 9.88291C19.6183 9.64849 19.75 9.33054 19.75 8.99902C19.75 8.6675 19.6183 8.34956 19.3839 8.11514C19.1495 7.88072 18.8315 7.74902 18.5 7.74902Z" }),
7180
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M18.5 15.749H14C13.6022 15.749 13.2206 15.8807 12.9393 16.1151C12.658 16.3496 12.5 16.6675 12.5 16.999C12.5 17.3305 12.658 17.6485 12.9393 17.8829C13.2206 18.1173 13.6022 18.249 14 18.249H18.5C18.8315 18.249 19.1495 18.1173 19.3839 17.8829C19.6183 17.6485 19.75 17.3305 19.75 16.999C19.75 16.6675 19.6183 16.3496 19.3839 16.1151C19.1495 15.8807 18.8315 15.749 18.5 15.749Z" }),
7181
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6.82843 6.41324C6.18198 6.41324 5.48493 6.68567 5 7.17059C4.51507 7.65552 4.24264 8.31323 4.24264 8.99902C4.24264 9.68482 4.51507 10.3425 5 10.8274C5.48493 11.3124 6.19814 11.5848 6.82843 11.5848C7.51422 11.5848 8.17193 11.3124 8.65686 10.8274C9.14179 10.3425 9.41421 9.68482 9.41421 8.99902C9.41421 8.31323 9.14179 7.65552 8.65686 7.17059C8.17193 6.68567 7.51422 6.41324 6.82843 6.41324Z" })
7182
+ ]
7183
+ });
7184
+ });
7185
+ SingleChoiceQuestionIcon.displayName = "SingleChoiceQuestionIcon";
7186
+ var SingleChoiceQuestionIcon_default = react.default.memo(SingleChoiceQuestionIcon);
7187
+ //#endregion
7062
7188
  //#region src/icons/SliderQuestionIcon.tsx
7063
7189
  /**
7064
7190
  * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
@@ -8579,6 +8705,7 @@ var iconList = {
8579
8705
  "lock-alt": LockAltIcon_default,
8580
8706
  login: LoginIcon_default,
8581
8707
  logout: LogoutIcon_default,
8708
+ "long-text": LongTextIcon_default,
8582
8709
  "magic-wand": MagicWandIcon_default,
8583
8710
  "map-pin": MapPinIcon_default,
8584
8711
  "merge-left": MergeLeftIcon_default,
@@ -8664,9 +8791,11 @@ var iconList = {
8664
8791
  settings: SettingsIcon_default,
8665
8792
  "share-android": ShareAndroidIcon_default,
8666
8793
  "share-ios": ShareIosIcon_default,
8794
+ "short-text": ShortTextIcon_default,
8667
8795
  shrink: ShrinkIcon_default,
8668
8796
  "sidebar-left": SidebarLeftIcon_default,
8669
8797
  "sidebar-right": SidebarRightIcon_default,
8798
+ "single-choice-question": SingleChoiceQuestionIcon_default,
8670
8799
  "slider-question": SliderQuestionIcon_default,
8671
8800
  snowflake: SnowflakeIcon_default,
8672
8801
  sort: SortIcon_default,
@@ -8730,8 +8859,9 @@ var Icon = ({ name, ...props }) => {
8730
8859
  }) : null;
8731
8860
  };
8732
8861
  //#endregion
8733
- //#region src/components/avatar/Avatar.tsx
8734
- function Avatar(props) {
8862
+ //#region src/components/avatarDeprecated/AvatarDeprecated.tsx
8863
+ /** @deprecated Use `Avatar` from `@staffbase/design` instead */
8864
+ function AvatarDeprecated(props) {
8735
8865
  const { alt, children, className = "", color = "purple", size = "32", src } = props;
8736
8866
  const [hasImage, setHasImage] = (0, react.useState)(src !== void 0 && src !== "");
8737
8867
  const variant = typeof children === "string" && children !== "" ? color : "grey";
@@ -8741,20 +8871,18 @@ function Avatar(props) {
8741
8871
  const attrs = { title: alt };
8742
8872
  if (hasImage) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
8743
8873
  ...attrs,
8744
- "data-c13y-component": "avatar",
8745
- className: (0, clsx.default)("ds-avatar", "ds-avatar__image", `ds-avatar--size-${size}`, className),
8874
+ className: (0, clsx.default)("ds-avatar-deprecated", "ds-avatar-deprecated__image", `ds-avatar--size-${size}`, className),
8746
8875
  src,
8747
8876
  alt,
8748
8877
  onError: () => setHasImage(false)
8749
8878
  });
8750
8879
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
8751
8880
  ...attrs,
8752
- "data-c13y-component": "avatar",
8753
- className: (0, clsx.default)("ds-avatar", "ds-avatar--default", `ds-avatar--${variant}`, `ds-avatar--size-${size}`, className),
8881
+ className: (0, clsx.default)("ds-avatar-deprecated", "ds-avatar--default", `ds-avatar--${variant}`, `ds-avatar--size-${size}`, className),
8754
8882
  children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UserIcon_default, {})
8755
8883
  });
8756
8884
  }
8757
- Avatar.displayName = "Avatar";
8885
+ AvatarDeprecated.displayName = "Avatar";
8758
8886
  //#endregion
8759
8887
  //#region src/components/badge/Badge.tsx
8760
8888
  function Badge(props) {
@@ -8782,7 +8910,7 @@ var ICONS = {
8782
8910
  warning: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WarningIcon_default, {}),
8783
8911
  critical: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertIcon_default, {})
8784
8912
  };
8785
- var Root$8 = (0, react.forwardRef)((props, ref) => {
8913
+ var Root$9 = (0, react.forwardRef)((props, ref) => {
8786
8914
  const { children, className, variant = "info", size = "sm", layout = "standalone", ...restProps } = props;
8787
8915
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8788
8916
  "data-c13y-component": "banner",
@@ -8799,8 +8927,8 @@ var Root$8 = (0, react.forwardRef)((props, ref) => {
8799
8927
  })]
8800
8928
  });
8801
8929
  });
8802
- Root$8.displayName = "Banner.Root";
8803
- var CloseButton = (0, react.forwardRef)((props, ref) => {
8930
+ Root$9.displayName = "Banner.Root";
8931
+ var Close$3 = (0, react.forwardRef)((props, ref) => {
8804
8932
  const { className, ...restProps } = props;
8805
8933
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8806
8934
  ref,
@@ -8811,8 +8939,8 @@ var CloseButton = (0, react.forwardRef)((props, ref) => {
8811
8939
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {})
8812
8940
  });
8813
8941
  });
8814
- CloseButton.displayName = "Banner.CloseButton";
8815
- var Banner = Object.assign(Root$8, { CloseButton });
8942
+ Close$3.displayName = "Banner.Close";
8943
+ var Banner = Object.assign(Root$9, { Close: Close$3 });
8816
8944
  //#endregion
8817
8945
  //#region src/components/bottomSheet/BottomSheet.tsx
8818
8946
  var Trigger$6 = (props) => {
@@ -8823,7 +8951,7 @@ var Trigger$6 = (props) => {
8823
8951
  ref
8824
8952
  });
8825
8953
  };
8826
- var Title$1 = (0, react.forwardRef)((props, ref) => {
8954
+ var Title$2 = (0, react.forwardRef)((props, ref) => {
8827
8955
  const { className, ...rest } = props;
8828
8956
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_drawer.Drawer.Title, {
8829
8957
  "data-c13y-component": "bottom-sheet-title",
@@ -8832,7 +8960,7 @@ var Title$1 = (0, react.forwardRef)((props, ref) => {
8832
8960
  ref
8833
8961
  });
8834
8962
  });
8835
- var Description$2 = (0, react.forwardRef)((props, ref) => {
8963
+ var Description$3 = (0, react.forwardRef)((props, ref) => {
8836
8964
  const { className, ...rest } = props;
8837
8965
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_drawer.Drawer.Description, {
8838
8966
  "data-c13y-component": "bottom-sheet-description",
@@ -8906,8 +9034,8 @@ var BottomSheet = {
8906
9034
  Trigger: Trigger$6,
8907
9035
  Close: Close$2,
8908
9036
  Back,
8909
- Description: Description$2,
8910
- Title: Title$1,
9037
+ Description: Description$3,
9038
+ Title: Title$2,
8911
9039
  Action,
8912
9040
  Header: Header$1
8913
9041
  };
@@ -9077,7 +9205,7 @@ var Trigger$5 = (props) => {
9077
9205
  ref
9078
9206
  });
9079
9207
  };
9080
- var Title = (0, react.forwardRef)((props, ref) => {
9208
+ var Title$1 = (0, react.forwardRef)((props, ref) => {
9081
9209
  const { className, ...rest } = props;
9082
9210
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Title, {
9083
9211
  "data-c13y-component": "dialog-title",
@@ -9086,7 +9214,7 @@ var Title = (0, react.forwardRef)((props, ref) => {
9086
9214
  ref
9087
9215
  });
9088
9216
  });
9089
- var Description$1 = (0, react.forwardRef)((props, ref) => {
9217
+ var Description$2 = (0, react.forwardRef)((props, ref) => {
9090
9218
  const { className, ...rest } = props;
9091
9219
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Description, {
9092
9220
  "data-c13y-component": "dialog-description",
@@ -9151,8 +9279,8 @@ var Dialog = {
9151
9279
  Popup: Popup$4,
9152
9280
  Trigger: Trigger$5,
9153
9281
  Close: Close$1,
9154
- Description: Description$1,
9155
- Title,
9282
+ Description: Description$2,
9283
+ Title: Title$1,
9156
9284
  Header,
9157
9285
  Footer,
9158
9286
  Body
@@ -9186,13 +9314,63 @@ function Divider(props) {
9186
9314
  }
9187
9315
  Divider.displayName = "Divider";
9188
9316
  //#endregion
9317
+ //#region src/components/empty/Empty.tsx
9318
+ var Root$8 = (0, react.forwardRef)((props, ref) => {
9319
+ const { className, ...rest } = props;
9320
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9321
+ "data-c13y-component": "empty",
9322
+ className: (0, clsx.default)("ds-empty", className),
9323
+ ...rest,
9324
+ ref
9325
+ });
9326
+ });
9327
+ Root$8.displayName = "Empty.Root";
9328
+ var Media = (0, react.forwardRef)((props, ref) => {
9329
+ const { className, size = "md", ...rest } = props;
9330
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9331
+ "data-c13y-component": "empty-media",
9332
+ "data-size": size,
9333
+ className: (0, clsx.default)("ds-empty__media", className),
9334
+ ...rest,
9335
+ ref
9336
+ });
9337
+ });
9338
+ Media.displayName = "Empty.Media";
9339
+ var Title = (0, react.forwardRef)((props, ref) => {
9340
+ const { className, children, as: Tag, ...rest } = props;
9341
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
9342
+ "data-c13y-component": "empty-title",
9343
+ className: (0, clsx.default)("ds-empty__title", className),
9344
+ ...rest,
9345
+ ref,
9346
+ children
9347
+ });
9348
+ });
9349
+ Title.displayName = "Empty.Title";
9350
+ var Description$1 = (0, react.forwardRef)((props, ref) => {
9351
+ const { className, ...rest } = props;
9352
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9353
+ "data-c13y-component": "empty-description",
9354
+ className: (0, clsx.default)("ds-empty__description", className),
9355
+ ...rest,
9356
+ ref
9357
+ });
9358
+ });
9359
+ Description$1.displayName = "Empty.Description";
9360
+ var Empty = {
9361
+ Root: Root$8,
9362
+ Media,
9363
+ Title,
9364
+ Description: Description$1
9365
+ };
9366
+ //#endregion
9189
9367
  //#region src/components/emptyState/EmptyState.tsx
9190
9368
  var getValidIconSize = (iconSize) => iconSize === "40px" || iconSize === "96px" ? iconSize : "40px";
9369
+ /** @deprecated Use Empty instead */
9191
9370
  function EmptyState(props) {
9192
9371
  const { title, icon, iconSize, body, className = "" } = props;
9193
9372
  const validIconSize = getValidIconSize(iconSize);
9194
9373
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9195
- "data-c13y-component": "empty-state",
9196
9374
  className: (0, clsx.default)("ds-empty-state", className),
9197
9375
  children: [
9198
9376
  icon && (0, react.cloneElement)(icon, {
@@ -9205,12 +9383,10 @@ function EmptyState(props) {
9205
9383
  }),
9206
9384
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9207
9385
  className: "ds-empty-state__title",
9208
- "data-c13y-component": "empty-state-title",
9209
9386
  children: title
9210
9387
  }),
9211
9388
  body ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9212
9389
  className: "ds-empty-state__body",
9213
- "data-c13y-component": "empty-state-content",
9214
9390
  children: body
9215
9391
  }) : null
9216
9392
  ]
@@ -10727,7 +10903,7 @@ var Chip = (0, react.forwardRef)((props, ref) => {
10727
10903
  })]
10728
10904
  });
10729
10905
  });
10730
- var Empty$1 = (0, react.forwardRef)((props, ref) => {
10906
+ var Empty$2 = (0, react.forwardRef)((props, ref) => {
10731
10907
  const { className, ...rest } = props;
10732
10908
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Empty, {
10733
10909
  "data-c13y-component": "searchable-multi-select-empty",
@@ -10763,7 +10939,7 @@ var SearchableMultiSelect = {
10763
10939
  Input: Input$1,
10764
10940
  Value: Value$1,
10765
10941
  Chip,
10766
- Empty: Empty$1,
10942
+ Empty: Empty$2,
10767
10943
  Collection: _base_ui_react_combobox.Combobox.Collection,
10768
10944
  Status: _base_ui_react_combobox.Combobox.Status
10769
10945
  };
@@ -10861,7 +11037,7 @@ var GroupLabel$1 = (0, react.forwardRef)((props, ref) => {
10861
11037
  ...rest
10862
11038
  });
10863
11039
  });
10864
- var Empty = (0, react.forwardRef)((props, ref) => {
11040
+ var Empty$1 = (0, react.forwardRef)((props, ref) => {
10865
11041
  const { className, ...rest } = props;
10866
11042
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Empty, {
10867
11043
  "data-c13y-component": "searchable-single-select-empty",
@@ -10882,7 +11058,7 @@ var SearchableSingleSelect = {
10882
11058
  ItemIndicator: ItemIndicator$1,
10883
11059
  Separator: Separator$2,
10884
11060
  Input,
10885
- Empty
11061
+ Empty: Empty$1
10886
11062
  };
10887
11063
  //#endregion
10888
11064
  //#region src/components/segmentedControl/SegmentedControl.tsx
@@ -11758,6 +11934,7 @@ exports.ArrowUpIcon = ArrowUpIcon_default;
11758
11934
  exports.ArtboardIcon = ArtboardIcon_default;
11759
11935
  exports.AttachmentIcon = AttachmentIcon_default;
11760
11936
  exports.Avatar = Avatar;
11937
+ exports.AvatarDeprecated = AvatarDeprecated;
11761
11938
  exports.Badge = Badge;
11762
11939
  exports.Banner = Banner;
11763
11940
  exports.BarChartIcon = BarChartIcon_default;
@@ -11822,6 +11999,7 @@ exports.EmailFollowUpIcon = EmailFollowUpIcon_default;
11822
11999
  exports.EmailIcon = EmailIcon_default;
11823
12000
  exports.EmailOpenIcon = EmailOpenIcon_default;
11824
12001
  exports.EmailTeamsIcon = EmailTeamsIcon_default;
12002
+ exports.Empty = Empty;
11825
12003
  exports.EmptyState = EmptyState;
11826
12004
  exports.ExpandHorizontalIcon = ExpandHorizontalIcon_default;
11827
12005
  exports.ExpandIcon = ExpandIcon_default;
@@ -11893,6 +12071,7 @@ exports.LockAltIcon = LockAltIcon_default;
11893
12071
  exports.LockIcon = LockIcon_default;
11894
12072
  exports.LoginIcon = LoginIcon_default;
11895
12073
  exports.LogoutIcon = LogoutIcon_default;
12074
+ exports.LongTextIcon = LongTextIcon_default;
11896
12075
  exports.MagicWandIcon = MagicWandIcon_default;
11897
12076
  exports.MapPinIcon = MapPinIcon_default;
11898
12077
  exports.Menu = Menu;
@@ -11993,9 +12172,11 @@ exports.Separator = Separator;
11993
12172
  exports.SettingsIcon = SettingsIcon_default;
11994
12173
  exports.ShareAndroidIcon = ShareAndroidIcon_default;
11995
12174
  exports.ShareIosIcon = ShareIosIcon_default;
12175
+ exports.ShortTextIcon = ShortTextIcon_default;
11996
12176
  exports.ShrinkIcon = ShrinkIcon_default;
11997
12177
  exports.SidebarLeftIcon = SidebarLeftIcon_default;
11998
12178
  exports.SidebarRightIcon = SidebarRightIcon_default;
12179
+ exports.SingleChoiceQuestionIcon = SingleChoiceQuestionIcon_default;
11999
12180
  exports.SingleSelect = SingleSelect;
12000
12181
  exports.Skeleton = Skeleton;
12001
12182
  exports.SliderQuestionIcon = SliderQuestionIcon_default;
@@ -12059,6 +12240,7 @@ exports.ViewAltIcon = ViewAltIcon_default;
12059
12240
  exports.ViewIcon = ViewIcon_default;
12060
12241
  exports.WarningIcon = WarningIcon_default;
12061
12242
  exports.WatchIcon = WatchIcon_default;
12243
+ exports.buttonVariants = buttonVariants;
12062
12244
  exports.iconNames = iconNames;
12063
12245
 
12064
12246
  //# sourceMappingURL=main.cjs.map