@staffbase/design 20.3.0 → 21.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
@@ -27,8 +27,6 @@ let es_toolkit = require("es-toolkit");
27
27
  let motion_react = require("motion/react");
28
28
  let _base_ui_react_menu = require("@base-ui/react/menu");
29
29
  let _base_ui_react_number_field = require("@base-ui/react/number-field");
30
- let _radix_ui_react_popover = require("@radix-ui/react-popover");
31
- _radix_ui_react_popover = require_chunk.__toESM(_radix_ui_react_popover, 1);
32
30
  let _base_ui_react_combobox = require("@base-ui/react/combobox");
33
31
  let _base_ui_react_radio = require("@base-ui/react/radio");
34
32
  let _base_ui_react_radio_group = require("@base-ui/react/radio-group");
@@ -37,6 +35,8 @@ let _base_ui_react_switch = require("@base-ui/react/switch");
37
35
  let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
38
36
  _radix_ui_react_tabs = require_chunk.__toESM(_radix_ui_react_tabs, 1);
39
37
  let _base_ui_react_input = require("@base-ui/react/input");
38
+ let _base_ui_react_toggle = require("@base-ui/react/toggle");
39
+ let _base_ui_react_toggle_group = require("@base-ui/react/toggle-group");
40
40
  let _base_ui_react_tooltip = require("@base-ui/react/tooltip");
41
41
  //#region src/components/actionMenu/ActionMenuContext.tsx
42
42
  function useActionMenu({ listRef, placement = "bottom-start", open: controlledOpen, onOpenChange: setControlledOpen }) {
@@ -359,7 +359,7 @@ var AlertDialog = {
359
359
  };
360
360
  //#endregion
361
361
  //#region src/components/avatar/Avatar.tsx
362
- var Root$10 = (0, react.forwardRef)((props, ref) => {
362
+ var Root$9 = (0, react.forwardRef)((props, ref) => {
363
363
  const { size = 40, className, ...rest } = props;
364
364
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Root, {
365
365
  ref,
@@ -387,7 +387,7 @@ function deriveColor(name) {
387
387
  return AVATAR_COLORS[name.split("").reduce((acc, char) => acc + (char.codePointAt(0) ?? 0), 0) % AVATAR_COLORS.length] ?? "purple";
388
388
  }
389
389
  var Avatar = {
390
- Root: Root$10,
390
+ Root: Root$9,
391
391
  Fallback: (0, react.forwardRef)((props, ref) => {
392
392
  const { className, name, ...rest } = props;
393
393
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Fallback, {
@@ -2077,17 +2077,17 @@ var EmailBouncesIcon = react.default.forwardRef((props, ref) => {
2077
2077
  children: [
2078
2078
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2079
2079
  d: "M14.5833 7.91713C15.4869 7.91768 16.3807 8.10404 17.2092 8.46463C17.2736 8.49196 17.3475 8.48524 17.4059 8.44671C17.4644 8.40819 17.4997 8.34297 17.5 8.27296V1.45879C17.5 1.40472 17.467 1.35614 17.4167 1.33629C17.3673 1.31602 17.3105 1.32717 17.2725 1.36463L10.1667 8.47046C9.38372 9.25156 8.11628 9.25156 7.33333 8.47046L0.225834 1.36463C0.187845 1.32693 0.130905 1.31578 0.0815066 1.33638C0.0321083 1.35698 -4.74736e-05 1.40527 2.38713e-07 1.45879V10.2088C-0.000221003 10.5956 0.153353 10.9667 0.426892 11.2402C0.70043 11.5138 1.07149 11.6673 1.45833 11.6671H8.46917C8.54738 11.6669 8.619 11.6232 8.655 11.5538C9.79214 9.32518 12.0814 7.92087 14.5833 7.91713Z",
2080
- fill: "#74747B"
2080
+ fill: "currentColor"
2081
2081
  }),
2082
2082
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2083
2083
  d: "M8.10531 7.69667C8.46132 8.05261 9.03846 8.05261 9.39447 7.69667L16.457 0.634167C16.5546 0.536741 16.5888 0.392543 16.5453 0.261667C16.4653 0.0225 16.242 0 16.0411 0H1.45781C1.25781 0 1.03281 0.0225 0.953641 0.261667C0.910981 0.392577 0.945075 0.536351 1.04197 0.634167L8.10531 7.69667Z",
2084
- fill: "#74747B"
2084
+ fill: "currentColor"
2085
2085
  }),
2086
2086
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2087
2087
  fillRule: "evenodd",
2088
2088
  clipRule: "evenodd",
2089
2089
  d: "M9.16699 14.5827C9.16699 11.5911 11.5921 9.16602 14.5837 9.16602C17.5737 9.16969 19.9967 11.5927 20.0003 14.5827C20.0003 17.5742 17.5752 19.9993 14.5837 19.9993C11.5921 19.9993 9.16699 17.5742 9.16699 14.5827ZM12.3898 12.3888C12.1518 12.6268 12.145 13.0106 12.3745 13.2568L13.5528 14.4352C13.6335 14.517 13.6335 14.6484 13.5528 14.7302L12.3745 15.9085C12.2073 16.0643 12.1385 16.299 12.195 16.5204C12.2516 16.7419 12.4245 16.9148 12.6459 16.9713C12.8674 17.0279 13.102 16.9591 13.2578 16.7918L14.4362 15.6135C14.5179 15.5328 14.6494 15.5328 14.7312 15.6135L15.9095 16.7918C16.0653 16.9591 16.3 17.0279 16.5214 16.9713C16.7428 16.9148 16.9158 16.7419 16.9723 16.5204C17.0289 16.299 16.96 16.0643 16.7928 15.9085L15.6145 14.7302C15.5338 14.6484 15.5338 14.517 15.6145 14.4352L16.7928 13.2568C16.96 13.101 17.0289 12.8664 16.9723 12.6449C16.9158 12.4235 16.7428 12.2506 16.5214 12.194C16.3 12.1375 16.0653 12.2063 15.9095 12.3735L14.7312 13.5518C14.6494 13.6325 14.5179 13.6325 14.4362 13.5518L13.2578 12.3735C13.0116 12.144 12.6278 12.1508 12.3898 12.3888Z",
2090
- fill: "#74747B"
2090
+ fill: "currentColor"
2091
2091
  })
2092
2092
  ]
2093
2093
  });
@@ -7212,6 +7212,44 @@ var SliderQuestionIcon = react.default.forwardRef((props, ref) => {
7212
7212
  SliderQuestionIcon.displayName = "SliderQuestionIcon";
7213
7213
  var SliderQuestionIcon_default = react.default.memo(SliderQuestionIcon);
7214
7214
  //#endregion
7215
+ //#region src/icons/SlideshowIcon.tsx
7216
+ /**
7217
+ * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
7218
+ */
7219
+ var SlideshowIcon = react.default.forwardRef((props, ref) => {
7220
+ const { className, ...rest } = props;
7221
+ const finalClassName = ["ds-icon ds-icon-slideshow", className].filter(Boolean).join(" ");
7222
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
7223
+ "aria-hidden": "true",
7224
+ viewBox: "0 0 97 96",
7225
+ width: "1em",
7226
+ height: "1em",
7227
+ fill: "currentColor",
7228
+ ...rest,
7229
+ className: finalClassName,
7230
+ ref,
7231
+ "data-c13y-component": "icon",
7232
+ children: [
7233
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M96.5 7.92A7.928 7.928 0 0 0 88.58 0H8.42A7.928 7.928 0 0 0 .5 7.92v80.16A7.928 7.928 0 0 0 8.42 96h80.16a7.927 7.927 0 0 0 7.92-7.92V7.92ZM88.5 86a2 2 0 0 1-2 2l-76 .08a2 2 0 0 1-2-2L8.42 10a2 2 0 0 1 2-2l76.08-.08a2 2 0 0 1 2 2V86Z" }),
7234
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
7235
+ fillRule: "evenodd",
7236
+ d: "M58.5 89V7a3 3 0 0 0-3-3c-.796 0-47.559.316-48.121.879A3 3 0 0 0 6.5 7v82a3 3 0 0 0 .879 2.121c.562.563 47.325.88 48.121.88a3 3 0 0 0 3-3ZM14.995 48.058l5.628-11.12c.185-.367.45-.686.775-.933a2.623 2.623 0 0 1 3.36.143l4.331 3.9a.893.893 0 0 0 .744.207.889.889 0 0 0 .627-.457l3.582-11.041a2.685 2.685 0 0 1 1.087-1.102 2.63 2.63 0 0 1 2.93.274c.407.333.71.78.868 1.286l5.247 19.258a2.744 2.744 0 0 1-.387 2.418 2.674 2.674 0 0 1-.946.816 2.633 2.633 0 0 1-1.207.293h-24.27c-.456 0-.905-.12-1.303-.346a2.683 2.683 0 0 1-.97-.95 2.734 2.734 0 0 1-.096-2.646ZM41.5 80h-24a3 3 0 0 1 0-6h24a3 3 0 0 1 0 6Z",
7237
+ clipRule: "evenodd"
7238
+ }),
7239
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M79.168 68h-6.669a3.332 3.332 0 0 0-3.331 3.332v7.336A3.332 3.332 0 0 0 72.499 82h6.669a3.332 3.332 0 0 0 3.332-3.332v-7.336A3.332 3.332 0 0 0 79.168 68ZM78.5 13.98H67.812a3.332 3.332 0 0 0-3.331 3.332v3.336a3.332 3.332 0 0 0 3.332 3.332H78.5a3.332 3.332 0 0 0 3.332-3.332v-3.335A3.332 3.332 0 0 0 78.5 13.98ZM78.5 30H67.812a3.332 3.332 0 0 0-3.331 3.332v3.336A3.332 3.332 0 0 0 67.813 40H78.5a3.332 3.332 0 0 0 3.332-3.332v-3.336A3.332 3.332 0 0 0 78.5 30Z" }),
7240
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
7241
+ id: "a",
7242
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
7243
+ fill: "#fff",
7244
+ d: "M.5 0h96v96H.5z"
7245
+ })
7246
+ })
7247
+ ]
7248
+ });
7249
+ });
7250
+ SlideshowIcon.displayName = "SlideshowIcon";
7251
+ var SlideshowIcon_default = react.default.memo(SlideshowIcon);
7252
+ //#endregion
7215
7253
  //#region src/icons/SnowflakeIcon.tsx
7216
7254
  /**
7217
7255
  * THIS IS A GENERATED FILE. PLEASE SEE `scripts/iconGenerator`.
@@ -8787,6 +8825,7 @@ var iconList = {
8787
8825
  "rounded-corners": RoundedCornersIcon_default,
8788
8826
  rss: RssIcon_default,
8789
8827
  search: SearchIcon_default,
8828
+ slideshow: SlideshowIcon_default,
8790
8829
  send: SendIcon_default,
8791
8830
  settings: SettingsIcon_default,
8792
8831
  "share-android": ShareAndroidIcon_default,
@@ -8910,7 +8949,7 @@ var ICONS = {
8910
8949
  warning: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WarningIcon_default, {}),
8911
8950
  critical: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertIcon_default, {})
8912
8951
  };
8913
- var Root$9 = (0, react.forwardRef)((props, ref) => {
8952
+ var Root$8 = (0, react.forwardRef)((props, ref) => {
8914
8953
  const { children, className, variant = "info", size = "sm", layout = "standalone", ...restProps } = props;
8915
8954
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8916
8955
  "data-c13y-component": "banner",
@@ -8926,7 +8965,7 @@ var Root$9 = (0, react.forwardRef)((props, ref) => {
8926
8965
  })]
8927
8966
  });
8928
8967
  });
8929
- Root$9.displayName = "Banner.Root";
8968
+ Root$8.displayName = "Banner.Root";
8930
8969
  var Close$3 = (0, react.forwardRef)((props, ref) => {
8931
8970
  const { className, ...restProps } = props;
8932
8971
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -8939,7 +8978,7 @@ var Close$3 = (0, react.forwardRef)((props, ref) => {
8939
8978
  });
8940
8979
  });
8941
8980
  Close$3.displayName = "Banner.Close";
8942
- var Banner = Object.assign(Root$9, { Close: Close$3 });
8981
+ var Banner = Object.assign(Root$8, { Close: Close$3 });
8943
8982
  //#endregion
8944
8983
  //#region src/components/bottomSheet/BottomSheet.tsx
8945
8984
  var Trigger$6 = (props) => {
@@ -9058,18 +9097,7 @@ var ButtonDeprecated = (0, react.forwardRef)(function Button(props, ref) {
9058
9097
  ]
9059
9098
  });
9060
9099
  });
9061
- /** @deprecated Use Button component with iconOnly instead */
9062
- var IconButton = (0, react.forwardRef)(function IconButton(props, ref) {
9063
- const { icon, className = "", variant = "primary", ...rest } = props;
9064
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9065
- className: (0, clsx.default)("ds-button-deprecated", "ds-icon-button", `ds-button-deprecated--${variant}`, `${className}`),
9066
- ...rest,
9067
- ref,
9068
- children: icon
9069
- });
9070
- });
9071
9100
  ButtonDeprecated.displayName = "Button";
9072
- IconButton.displayName = "IconButton";
9073
9101
  //#endregion
9074
9102
  //#region src/components/card/Card.tsx
9075
9103
  var Card = (0, react.forwardRef)((props, ref) => {
@@ -9312,7 +9340,7 @@ function Divider(props) {
9312
9340
  Divider.displayName = "Divider";
9313
9341
  //#endregion
9314
9342
  //#region src/components/empty/Empty.tsx
9315
- var Root$8 = (0, react.forwardRef)((props, ref) => {
9343
+ var Root$7 = (0, react.forwardRef)((props, ref) => {
9316
9344
  const { className, ...rest } = props;
9317
9345
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9318
9346
  "data-c13y-component": "empty",
@@ -9321,7 +9349,7 @@ var Root$8 = (0, react.forwardRef)((props, ref) => {
9321
9349
  ref
9322
9350
  });
9323
9351
  });
9324
- Root$8.displayName = "Empty.Root";
9352
+ Root$7.displayName = "Empty.Root";
9325
9353
  var Media = (0, react.forwardRef)((props, ref) => {
9326
9354
  const { className, size = "md", ...rest } = props;
9327
9355
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -9355,7 +9383,7 @@ var Description$1 = (0, react.forwardRef)((props, ref) => {
9355
9383
  });
9356
9384
  Description$1.displayName = "Empty.Description";
9357
9385
  var Empty = {
9358
- Root: Root$8,
9386
+ Root: Root$7,
9359
9387
  Media,
9360
9388
  Title,
9361
9389
  Description: Description$1
@@ -9392,7 +9420,7 @@ function EmptyState(props) {
9392
9420
  EmptyState.displayName = "EmptyState";
9393
9421
  //#endregion
9394
9422
  //#region src/components/field/Field.tsx
9395
- var Root$7 = (0, react.forwardRef)((props, ref) => {
9423
+ var Root$6 = (0, react.forwardRef)((props, ref) => {
9396
9424
  const { className, ...rest } = props;
9397
9425
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_field.Field.Root, {
9398
9426
  "data-c13y-component": "field",
@@ -9438,12 +9466,12 @@ var ErrorMessage = (0, react.forwardRef)((props, ref) => {
9438
9466
  });
9439
9467
  });
9440
9468
  var Field = {
9441
- Root: Root$7,
9469
+ Root: Root$6,
9442
9470
  Label,
9443
9471
  Description,
9444
9472
  Error: ErrorMessage
9445
9473
  };
9446
- Root$7.displayName = "Field.Root";
9474
+ Root$6.displayName = "Field.Root";
9447
9475
  Label.displayName = "Field.Label";
9448
9476
  Description.displayName = "Field.Description";
9449
9477
  ErrorMessage.displayName = "Field.Error";
@@ -10009,38 +10037,6 @@ var FilterTrigger = (0, react.memo)((0, react.forwardRef)(function FilterTrigger
10009
10037
  }));
10010
10038
  Filter.displayName = "Filter";
10011
10039
  //#endregion
10012
- //#region src/components/ghostButton/GhostButton.tsx
10013
- /** @deprecated Use Button with variant="ghost" instead */
10014
- var GhostButton = (0, react.forwardRef)(function GhostButton(props, ref) {
10015
- const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
10016
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
10017
- className: `ds-ghost-button ds-ghost-button--${variant} ${className}`,
10018
- disabled,
10019
- ...rest,
10020
- ref,
10021
- children: [
10022
- iconPosition === "leading" ? icon : null,
10023
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10024
- className: (0, clsx.default)("ds-ghost-button__content"),
10025
- children
10026
- }),
10027
- iconPosition === "trailing" ? icon : null
10028
- ]
10029
- });
10030
- });
10031
- /** @deprecated Use Button with variant="ghost" and iconOnly instead */
10032
- var IconGhostButton = (0, react.forwardRef)(function IconGhostButton(props, ref) {
10033
- const { icon, className = "", variant = "primary", ...rest } = props;
10034
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10035
- className: (0, clsx.default)("ds-ghost-button", "ds-ghost-icon-button", `ds-ghost-button--${variant}`, `${className}`),
10036
- ...rest,
10037
- ref,
10038
- children: icon
10039
- });
10040
- });
10041
- GhostButton.displayName = "GhostButton";
10042
- IconGhostButton.displayName = "IconGhostButton";
10043
- //#endregion
10044
10040
  //#region src/components/growl/Growl.tsx
10045
10041
  /** @deprecated Not an accessible UI pattern — no replacement */
10046
10042
  var PlainGrowl = (0, react.forwardRef)(function PlainGrowl(props, ref) {
@@ -10127,7 +10123,7 @@ function splitC13yProps(props) {
10127
10123
  }
10128
10124
  //#endregion
10129
10125
  //#region src/components/menu/Menu.tsx
10130
- var Root$6 = (props) => {
10126
+ var Root$5 = (props) => {
10131
10127
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Root, {
10132
10128
  modal: false,
10133
10129
  ...props
@@ -10229,7 +10225,7 @@ var SubMenuTrigger = (0, react.forwardRef)((props, ref) => {
10229
10225
  });
10230
10226
  });
10231
10227
  var Menu = {
10232
- Root: Root$6,
10228
+ Root: Root$5,
10233
10229
  Trigger: Trigger$4,
10234
10230
  Popup: Popup$3,
10235
10231
  Item: Item$4,
@@ -10304,9 +10300,9 @@ var useModalContext = () => {
10304
10300
  var ModalHeader = (0, react.forwardRef)(function ModalHeader(props, ref) {
10305
10301
  const { title, titleAddon, showCancelButton = false, cancelButtonText, onCancel, showHeaderButton = false, headerButtonIsGhost = true, onHeaderButtonClick, headerButtonText } = props;
10306
10302
  let headerButton;
10307
- if (showHeaderButton && onHeaderButtonClick && headerButtonText) if (headerButtonIsGhost) headerButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GhostButton, {
10303
+ if (showHeaderButton && onHeaderButtonClick && headerButtonText) if (headerButtonIsGhost) headerButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10308
10304
  className: (0, clsx.default)("ds-modal__ghost-button--accept"),
10309
- variant: "primary",
10305
+ variant: "ghost",
10310
10306
  onClick: () => onHeaderButtonClick(),
10311
10307
  children: headerButtonText
10312
10308
  });
@@ -10329,13 +10325,16 @@ var ModalHeader = (0, react.forwardRef)(function ModalHeader(props, ref) {
10329
10325
  }), titleAddon]
10330
10326
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10331
10327
  className: "ds-modal__header-buttons",
10332
- children: [!!headerButton && headerButton, showCancelButton && cancelButtonText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconGhostButton, {
10328
+ children: [!!headerButton && headerButton, showCancelButton && cancelButtonText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10333
10329
  className: (0, clsx.default)("ds-modal__ghost-button--cancel"),
10334
- variant: "secondary",
10330
+ variant: "ghost",
10331
+ color: "neutral",
10332
+ iconOnly: true,
10335
10333
  style: { padding: "10px" },
10336
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, { className: "text-icon-neutral-medium" }),
10337
10334
  title: cancelButtonText,
10338
- onClick: () => onCancel()
10335
+ "aria-label": cancelButtonText,
10336
+ onClick: () => onCancel(),
10337
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, { className: "text-icon-neutral-medium" })
10339
10338
  })]
10340
10339
  })]
10341
10340
  }), !!props.children && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Divider, {
@@ -10552,7 +10551,7 @@ function ModalDialog(props) {
10552
10551
  ModalDialog.displayName = "ModalDialog";
10553
10552
  //#endregion
10554
10553
  //#region src/components/numberStepper/NumberStepper.tsx
10555
- var Root$5 = (0, react.forwardRef)((props, ref) => {
10554
+ var Root$4 = (0, react.forwardRef)((props, ref) => {
10556
10555
  const { className, children, ...rest } = props;
10557
10556
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_number_field.NumberField.Root, {
10558
10557
  ref,
@@ -10596,12 +10595,12 @@ var Increment = (0, react.forwardRef)((props, ref) => {
10596
10595
  });
10597
10596
  });
10598
10597
  var NumberStepper = {
10599
- Root: Root$5,
10598
+ Root: Root$4,
10600
10599
  Increment,
10601
10600
  Input: Input$2,
10602
10601
  Decrement
10603
10602
  };
10604
- Root$5.displayName = "NumberStepper.Root";
10603
+ Root$4.displayName = "NumberStepper.Root";
10605
10604
  Input$2.displayName = "NumberStepper.Input";
10606
10605
  Decrement.displayName = "NumberStepper.Decrement";
10607
10606
  Increment.displayName = "NumberStepper.Increment";
@@ -10620,18 +10619,17 @@ var Pill = (0, react.forwardRef)((props, ref) => {
10620
10619
  Pill.displayName = "Pill";
10621
10620
  //#endregion
10622
10621
  //#region src/components/popover/Popover.tsx
10623
- var Root$4 = _radix_ui_react_popover.Root;
10624
- var Anchor = _radix_ui_react_popover.Anchor;
10625
- var Trigger$3 = (0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Trigger, {
10626
- "data-c13y-component": "popover-trigger",
10627
- asChild: true,
10628
- ...props,
10629
- ref
10630
- }));
10631
- Trigger$3.displayName = "Popover.Trigger";
10622
+ var Trigger$3 = (props) => {
10623
+ const { children, ref, ...rest } = props;
10624
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Trigger, {
10625
+ render: children,
10626
+ ref,
10627
+ ...rest
10628
+ });
10629
+ };
10632
10630
  var Close = (0, react.forwardRef)((props, ref) => {
10633
10631
  const { className, ...rest } = props;
10634
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Close, {
10632
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Close, {
10635
10633
  "data-c13y-component": "button",
10636
10634
  "data-c13y-purpose": "close",
10637
10635
  ref,
@@ -10640,27 +10638,27 @@ var Close = (0, react.forwardRef)((props, ref) => {
10640
10638
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {})
10641
10639
  });
10642
10640
  });
10643
- Close.displayName = "Popover.Close";
10644
10641
  var Content$2 = (0, react.forwardRef)((props, ref) => {
10645
- const { className, container, ...rest } = props;
10646
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Portal, {
10642
+ const { className, children, container, ...rest } = props;
10643
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Portal, {
10647
10644
  container,
10648
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Content, {
10649
- "data-c13y-component": "popover",
10645
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Positioner, {
10650
10646
  sideOffset: 4,
10651
- className: (0, clsx.default)("ds-popover__content", className),
10652
- ref,
10653
- ...rest
10647
+ ...rest,
10648
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Popup, {
10649
+ "data-c13y-component": "popover",
10650
+ className: (0, clsx.default)("ds-popover__content", className),
10651
+ children,
10652
+ ref
10653
+ })
10654
10654
  })
10655
10655
  });
10656
10656
  });
10657
- Content$2.displayName = "Popover.Content";
10658
10657
  var Popover = {
10659
- Root: Root$4,
10658
+ Root: _base_ui_react.Popover.Root,
10660
10659
  Content: Content$2,
10661
10660
  Trigger: Trigger$3,
10662
- Close,
10663
- Anchor
10661
+ Close
10664
10662
  };
10665
10663
  //#endregion
10666
10664
  //#region src/components/radio/Radio.tsx
@@ -11512,6 +11510,61 @@ var Switch = (0, react.forwardRef)((props, ref) => {
11512
11510
  });
11513
11511
  });
11514
11512
  //#endregion
11513
+ //#region src/components/switchDeprecated/SwitchDeprecated.tsx
11514
+ /** @deprecated Use Switch component instead */
11515
+ function SwitchDeprecated(props) {
11516
+ const { checked, disabled, name, label, description, onChange, spaceBetween, className = "", ref } = props;
11517
+ const id = (0, react.useId)();
11518
+ const descriptionId = `toggle-${id}-descr`;
11519
+ const inputId = `toggle-${id}-label`;
11520
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11521
+ className: (0, clsx.default)("ds-switch-deprecated__container", disabled && "ds-switch-deprecated__container--disabled", spaceBetween ? "ds-switch-deprecated__container--full-width" : "ds-switch-deprecated__container--content-width", className),
11522
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11523
+ className: (0, clsx.default)("ds-switch-deprecated__wrapper"),
11524
+ children: [
11525
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11526
+ className: (0, clsx.default)("ds-switch-deprecated__label-container"),
11527
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
11528
+ className: (0, clsx.default)("ds-switch-deprecated__label"),
11529
+ htmlFor: inputId,
11530
+ children: label
11531
+ })
11532
+ }),
11533
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11534
+ className: "ds-switch-deprecated",
11535
+ name,
11536
+ type: "checkbox",
11537
+ onChange,
11538
+ id: inputId,
11539
+ disabled,
11540
+ "aria-describedby": description ? descriptionId : void 0,
11541
+ checked,
11542
+ ref
11543
+ }),
11544
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11545
+ className: (0, clsx.default)("ds-switch-deprecated__switch-wrapper"),
11546
+ children: [
11547
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon_default, {
11548
+ "aria-hidden": "true",
11549
+ className: (0, clsx.default)("ds-switch-deprecated__inner", "ds-switch-deprecated__inner--on")
11550
+ }),
11551
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {
11552
+ "aria-hidden": "true",
11553
+ className: (0, clsx.default)("ds-switch-deprecated__inner", "ds-switch-deprecated__inner--off")
11554
+ }),
11555
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-switch-deprecated__switch") })
11556
+ ]
11557
+ })
11558
+ ]
11559
+ }), description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11560
+ className: (0, clsx.default)("ds-switch-deprecated__description"),
11561
+ id: descriptionId,
11562
+ children: description
11563
+ })]
11564
+ });
11565
+ }
11566
+ SwitchDeprecated.displayName = "SwitchDeprecated";
11567
+ //#endregion
11515
11568
  //#region src/components/tabs/Tabs.tsx
11516
11569
  var Root$1 = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.Root, {
11517
11570
  "data-c13y-component": "tabs",
@@ -11724,60 +11777,29 @@ var TextInput = (0, react.forwardRef)(function TextInput(props, ref) {
11724
11777
  TextInput.displayName = "TextInput";
11725
11778
  //#endregion
11726
11779
  //#region src/components/toggle/Toggle.tsx
11727
- /** @deprecated Use Switch component instead */
11728
- function Toggle(props) {
11729
- const { checked, disabled, name, label, description, onChange, spaceBetween, className = "", ref } = props;
11730
- const id = (0, react.useId)();
11731
- const descriptionId = `toggle-${id}-descr`;
11732
- const inputId = `toggle-${id}-label`;
11733
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11734
- className: (0, clsx.default)("ds-toggle__container", disabled && "ds-toggle__container--disabled", spaceBetween ? "ds-toggle__container--full-width" : "ds-toggle__container--content-width", className),
11735
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11736
- className: (0, clsx.default)("ds-toggle__wrapper"),
11737
- children: [
11738
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11739
- className: (0, clsx.default)("ds-toggle__label-container"),
11740
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
11741
- className: (0, clsx.default)("ds-toggle__label"),
11742
- htmlFor: inputId,
11743
- children: label
11744
- })
11745
- }),
11746
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11747
- className: "ds-toggle",
11748
- name,
11749
- type: "checkbox",
11750
- onChange,
11751
- id: inputId,
11752
- disabled,
11753
- "aria-describedby": description ? descriptionId : void 0,
11754
- checked,
11755
- ref
11756
- }),
11757
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11758
- className: (0, clsx.default)("ds-toggle__switch-wrapper"),
11759
- children: [
11760
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon_default, {
11761
- "aria-hidden": "true",
11762
- className: (0, clsx.default)("ds-toggle__inner", "ds-toggle__inner--on")
11763
- }),
11764
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {
11765
- "aria-hidden": "true",
11766
- className: (0, clsx.default)("ds-toggle__inner", "ds-toggle__inner--off")
11767
- }),
11768
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-toggle__switch") })
11769
- ]
11770
- })
11771
- ]
11772
- }), description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11773
- className: (0, clsx.default)("ds-toggle__description"),
11774
- id: descriptionId,
11775
- children: description
11776
- })]
11780
+ var Toggle = (0, react.forwardRef)((props, ref) => {
11781
+ const { className, ...rest } = props;
11782
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_toggle.Toggle, {
11783
+ "data-c13y-component": "toggle",
11784
+ className: (0, clsx.default)("ds-toggle", className),
11785
+ ref,
11786
+ ...rest
11777
11787
  });
11778
- }
11788
+ });
11779
11789
  Toggle.displayName = "Toggle";
11780
11790
  //#endregion
11791
+ //#region src/components/toggleGroup/ToggleGroup.tsx
11792
+ var ToggleGroup = (0, react.forwardRef)((props, ref) => {
11793
+ const { className, ...rest } = props;
11794
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_toggle_group.ToggleGroup, {
11795
+ "data-c13y-component": "toggle-group",
11796
+ className: (0, clsx.default)("ds-toggle-group", className),
11797
+ ref,
11798
+ ...rest
11799
+ });
11800
+ });
11801
+ ToggleGroup.displayName = "ToggleGroup";
11802
+ //#endregion
11781
11803
  //#region src/components/tooltip/Tooltip.tsx
11782
11804
  var TooltipContext = (0, react.createContext)(null);
11783
11805
  var Root = (props) => {
@@ -12017,7 +12039,6 @@ exports.FolderShareIcon = FolderShareIcon_default;
12017
12039
  exports.FontsIcon = FontsIcon_default;
12018
12040
  exports.FootballIcon = FootballIcon_default;
12019
12041
  exports.GalleryIcon = GalleryIcon_default;
12020
- exports.GhostButton = GhostButton;
12021
12042
  exports.GlobeIcon = GlobeIcon_default;
12022
12043
  exports.GridIcon = GridIcon_default;
12023
12044
  exports.GroupConversationAddIcon = GroupConversationAddIcon_default;
@@ -12034,8 +12055,6 @@ exports.HierarchyChartIcon = HierarchyChartIcon_default;
12034
12055
  exports.HomeIcon = HomeIcon_default;
12035
12056
  exports.HouseIcon = HouseIcon_default;
12036
12057
  exports.Icon = Icon;
12037
- exports.IconButton = IconButton;
12038
- exports.IconGhostButton = IconGhostButton;
12039
12058
  exports.ImageIcon = ImageIcon_default;
12040
12059
  exports.ImageUploadIcon = ImageUploadIcon_default;
12041
12060
  exports.InfoIcon = InfoIcon_default;
@@ -12163,6 +12182,7 @@ exports.SingleChoiceQuestionIcon = SingleChoiceQuestionIcon_default;
12163
12182
  exports.SingleSelect = SingleSelect;
12164
12183
  exports.Skeleton = Skeleton;
12165
12184
  exports.SliderQuestionIcon = SliderQuestionIcon_default;
12185
+ exports.SlideshowIcon = SlideshowIcon_default;
12166
12186
  exports.SnowflakeIcon = SnowflakeIcon_default;
12167
12187
  exports.SortIcon = SortIcon_default;
12168
12188
  exports.SoundAltIcon = SoundAltIcon_default;
@@ -12174,6 +12194,7 @@ exports.StarAltIcon = StarAltIcon_default;
12174
12194
  exports.StarIcon = StarIcon_default;
12175
12195
  exports.StyleChip = StyleChip;
12176
12196
  exports.Switch = Switch;
12197
+ exports.SwitchDeprecated = SwitchDeprecated;
12177
12198
  exports.TabletIcon = TabletIcon_default;
12178
12199
  exports.Tabs = Tabs;
12179
12200
  exports.TagIcon = TagIcon_default;
@@ -12197,6 +12218,7 @@ exports.ThumbDownIcon = ThumbDownIcon_default;
12197
12218
  exports.ThumbUpAltIcon = ThumbUpAltIcon_default;
12198
12219
  exports.ThumbUpIcon = ThumbUpIcon_default;
12199
12220
  exports.Toggle = Toggle;
12221
+ exports.ToggleGroup = ToggleGroup;
12200
12222
  exports.Tooltip = Tooltip;
12201
12223
  exports.TooltipDeprecated = TooltipDeprecated;
12202
12224
  exports.TranslationOnIcon = TranslationOnIcon_default;