@staffbase/design 20.4.0 → 21.2.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,16 +27,15 @@ 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");
35
33
  let _base_ui_react_select = require("@base-ui/react/select");
36
34
  let _base_ui_react_switch = require("@base-ui/react/switch");
37
- let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
38
- _radix_ui_react_tabs = require_chunk.__toESM(_radix_ui_react_tabs, 1);
35
+ let _base_ui_react_tabs = require("@base-ui/react/tabs");
39
36
  let _base_ui_react_input = require("@base-ui/react/input");
37
+ let _base_ui_react_toggle = require("@base-ui/react/toggle");
38
+ let _base_ui_react_toggle_group = require("@base-ui/react/toggle-group");
40
39
  let _base_ui_react_tooltip = require("@base-ui/react/tooltip");
41
40
  //#region src/components/actionMenu/ActionMenuContext.tsx
42
41
  function useActionMenu({ listRef, placement = "bottom-start", open: controlledOpen, onOpenChange: setControlledOpen }) {
@@ -359,7 +358,7 @@ var AlertDialog = {
359
358
  };
360
359
  //#endregion
361
360
  //#region src/components/avatar/Avatar.tsx
362
- var Root$10 = (0, react.forwardRef)((props, ref) => {
361
+ var Root$9 = (0, react.forwardRef)((props, ref) => {
363
362
  const { size = 40, className, ...rest } = props;
364
363
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Root, {
365
364
  ref,
@@ -387,7 +386,7 @@ function deriveColor(name) {
387
386
  return AVATAR_COLORS[name.split("").reduce((acc, char) => acc + (char.codePointAt(0) ?? 0), 0) % AVATAR_COLORS.length] ?? "purple";
388
387
  }
389
388
  var Avatar = {
390
- Root: Root$10,
389
+ Root: Root$9,
391
390
  Fallback: (0, react.forwardRef)((props, ref) => {
392
391
  const { className, name, ...rest } = props;
393
392
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Fallback, {
@@ -2077,17 +2076,17 @@ var EmailBouncesIcon = react.default.forwardRef((props, ref) => {
2077
2076
  children: [
2078
2077
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2079
2078
  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"
2079
+ fill: "currentColor"
2081
2080
  }),
2082
2081
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2083
2082
  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"
2083
+ fill: "currentColor"
2085
2084
  }),
2086
2085
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
2087
2086
  fillRule: "evenodd",
2088
2087
  clipRule: "evenodd",
2089
2088
  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"
2089
+ fill: "currentColor"
2091
2090
  })
2092
2091
  ]
2093
2092
  });
@@ -8949,7 +8948,7 @@ var ICONS = {
8949
8948
  warning: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WarningIcon_default, {}),
8950
8949
  critical: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertIcon_default, {})
8951
8950
  };
8952
- var Root$9 = (0, react.forwardRef)((props, ref) => {
8951
+ var Root$8 = (0, react.forwardRef)((props, ref) => {
8953
8952
  const { children, className, variant = "info", size = "sm", layout = "standalone", ...restProps } = props;
8954
8953
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
8955
8954
  "data-c13y-component": "banner",
@@ -8965,7 +8964,7 @@ var Root$9 = (0, react.forwardRef)((props, ref) => {
8965
8964
  })]
8966
8965
  });
8967
8966
  });
8968
- Root$9.displayName = "Banner.Root";
8967
+ Root$8.displayName = "Banner.Root";
8969
8968
  var Close$3 = (0, react.forwardRef)((props, ref) => {
8970
8969
  const { className, ...restProps } = props;
8971
8970
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
@@ -8978,7 +8977,7 @@ var Close$3 = (0, react.forwardRef)((props, ref) => {
8978
8977
  });
8979
8978
  });
8980
8979
  Close$3.displayName = "Banner.Close";
8981
- var Banner = Object.assign(Root$9, { Close: Close$3 });
8980
+ var Banner = Object.assign(Root$8, { Close: Close$3 });
8982
8981
  //#endregion
8983
8982
  //#region src/components/bottomSheet/BottomSheet.tsx
8984
8983
  var Trigger$6 = (props) => {
@@ -9097,18 +9096,7 @@ var ButtonDeprecated = (0, react.forwardRef)(function Button(props, ref) {
9097
9096
  ]
9098
9097
  });
9099
9098
  });
9100
- /** @deprecated Use Button component with iconOnly instead */
9101
- var IconButton = (0, react.forwardRef)(function IconButton(props, ref) {
9102
- const { icon, className = "", variant = "primary", ...rest } = props;
9103
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9104
- className: (0, clsx.default)("ds-button-deprecated", "ds-icon-button", `ds-button-deprecated--${variant}`, `${className}`),
9105
- ...rest,
9106
- ref,
9107
- children: icon
9108
- });
9109
- });
9110
9099
  ButtonDeprecated.displayName = "Button";
9111
- IconButton.displayName = "IconButton";
9112
9100
  //#endregion
9113
9101
  //#region src/components/card/Card.tsx
9114
9102
  var Card = (0, react.forwardRef)((props, ref) => {
@@ -9351,7 +9339,7 @@ function Divider(props) {
9351
9339
  Divider.displayName = "Divider";
9352
9340
  //#endregion
9353
9341
  //#region src/components/empty/Empty.tsx
9354
- var Root$8 = (0, react.forwardRef)((props, ref) => {
9342
+ var Root$7 = (0, react.forwardRef)((props, ref) => {
9355
9343
  const { className, ...rest } = props;
9356
9344
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9357
9345
  "data-c13y-component": "empty",
@@ -9360,7 +9348,7 @@ var Root$8 = (0, react.forwardRef)((props, ref) => {
9360
9348
  ref
9361
9349
  });
9362
9350
  });
9363
- Root$8.displayName = "Empty.Root";
9351
+ Root$7.displayName = "Empty.Root";
9364
9352
  var Media = (0, react.forwardRef)((props, ref) => {
9365
9353
  const { className, size = "md", ...rest } = props;
9366
9354
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -9394,7 +9382,7 @@ var Description$1 = (0, react.forwardRef)((props, ref) => {
9394
9382
  });
9395
9383
  Description$1.displayName = "Empty.Description";
9396
9384
  var Empty = {
9397
- Root: Root$8,
9385
+ Root: Root$7,
9398
9386
  Media,
9399
9387
  Title,
9400
9388
  Description: Description$1
@@ -9431,7 +9419,7 @@ function EmptyState(props) {
9431
9419
  EmptyState.displayName = "EmptyState";
9432
9420
  //#endregion
9433
9421
  //#region src/components/field/Field.tsx
9434
- var Root$7 = (0, react.forwardRef)((props, ref) => {
9422
+ var Root$6 = (0, react.forwardRef)((props, ref) => {
9435
9423
  const { className, ...rest } = props;
9436
9424
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_field.Field.Root, {
9437
9425
  "data-c13y-component": "field",
@@ -9477,12 +9465,12 @@ var ErrorMessage = (0, react.forwardRef)((props, ref) => {
9477
9465
  });
9478
9466
  });
9479
9467
  var Field = {
9480
- Root: Root$7,
9468
+ Root: Root$6,
9481
9469
  Label,
9482
9470
  Description,
9483
9471
  Error: ErrorMessage
9484
9472
  };
9485
- Root$7.displayName = "Field.Root";
9473
+ Root$6.displayName = "Field.Root";
9486
9474
  Label.displayName = "Field.Label";
9487
9475
  Description.displayName = "Field.Description";
9488
9476
  ErrorMessage.displayName = "Field.Error";
@@ -10048,38 +10036,6 @@ var FilterTrigger = (0, react.memo)((0, react.forwardRef)(function FilterTrigger
10048
10036
  }));
10049
10037
  Filter.displayName = "Filter";
10050
10038
  //#endregion
10051
- //#region src/components/ghostButton/GhostButton.tsx
10052
- /** @deprecated Use Button with variant="ghost" instead */
10053
- var GhostButton = (0, react.forwardRef)(function GhostButton(props, ref) {
10054
- const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
10055
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
10056
- className: `ds-ghost-button ds-ghost-button--${variant} ${className}`,
10057
- disabled,
10058
- ...rest,
10059
- ref,
10060
- children: [
10061
- iconPosition === "leading" ? icon : null,
10062
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10063
- className: (0, clsx.default)("ds-ghost-button__content"),
10064
- children
10065
- }),
10066
- iconPosition === "trailing" ? icon : null
10067
- ]
10068
- });
10069
- });
10070
- /** @deprecated Use Button with variant="ghost" and iconOnly instead */
10071
- var IconGhostButton = (0, react.forwardRef)(function IconGhostButton(props, ref) {
10072
- const { icon, className = "", variant = "primary", ...rest } = props;
10073
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10074
- className: (0, clsx.default)("ds-ghost-button", "ds-ghost-icon-button", `ds-ghost-button--${variant}`, `${className}`),
10075
- ...rest,
10076
- ref,
10077
- children: icon
10078
- });
10079
- });
10080
- GhostButton.displayName = "GhostButton";
10081
- IconGhostButton.displayName = "IconGhostButton";
10082
- //#endregion
10083
10039
  //#region src/components/growl/Growl.tsx
10084
10040
  /** @deprecated Not an accessible UI pattern — no replacement */
10085
10041
  var PlainGrowl = (0, react.forwardRef)(function PlainGrowl(props, ref) {
@@ -10166,7 +10122,7 @@ function splitC13yProps(props) {
10166
10122
  }
10167
10123
  //#endregion
10168
10124
  //#region src/components/menu/Menu.tsx
10169
- var Root$6 = (props) => {
10125
+ var Root$5 = (props) => {
10170
10126
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Root, {
10171
10127
  modal: false,
10172
10128
  ...props
@@ -10268,7 +10224,7 @@ var SubMenuTrigger = (0, react.forwardRef)((props, ref) => {
10268
10224
  });
10269
10225
  });
10270
10226
  var Menu = {
10271
- Root: Root$6,
10227
+ Root: Root$5,
10272
10228
  Trigger: Trigger$4,
10273
10229
  Popup: Popup$3,
10274
10230
  Item: Item$4,
@@ -10343,9 +10299,9 @@ var useModalContext = () => {
10343
10299
  var ModalHeader = (0, react.forwardRef)(function ModalHeader(props, ref) {
10344
10300
  const { title, titleAddon, showCancelButton = false, cancelButtonText, onCancel, showHeaderButton = false, headerButtonIsGhost = true, onHeaderButtonClick, headerButtonText } = props;
10345
10301
  let headerButton;
10346
- if (showHeaderButton && onHeaderButtonClick && headerButtonText) if (headerButtonIsGhost) headerButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GhostButton, {
10302
+ if (showHeaderButton && onHeaderButtonClick && headerButtonText) if (headerButtonIsGhost) headerButton = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10347
10303
  className: (0, clsx.default)("ds-modal__ghost-button--accept"),
10348
- variant: "primary",
10304
+ variant: "ghost",
10349
10305
  onClick: () => onHeaderButtonClick(),
10350
10306
  children: headerButtonText
10351
10307
  });
@@ -10368,13 +10324,16 @@ var ModalHeader = (0, react.forwardRef)(function ModalHeader(props, ref) {
10368
10324
  }), titleAddon]
10369
10325
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10370
10326
  className: "ds-modal__header-buttons",
10371
- children: [!!headerButton && headerButton, showCancelButton && cancelButtonText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconGhostButton, {
10327
+ children: [!!headerButton && headerButton, showCancelButton && cancelButtonText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
10372
10328
  className: (0, clsx.default)("ds-modal__ghost-button--cancel"),
10373
- variant: "secondary",
10329
+ variant: "ghost",
10330
+ color: "neutral",
10331
+ iconOnly: true,
10374
10332
  style: { padding: "10px" },
10375
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, { className: "text-icon-neutral-medium" }),
10376
10333
  title: cancelButtonText,
10377
- onClick: () => onCancel()
10334
+ "aria-label": cancelButtonText,
10335
+ onClick: () => onCancel(),
10336
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, { className: "text-icon-neutral-medium" })
10378
10337
  })]
10379
10338
  })]
10380
10339
  }), !!props.children && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Divider, {
@@ -10591,7 +10550,7 @@ function ModalDialog(props) {
10591
10550
  ModalDialog.displayName = "ModalDialog";
10592
10551
  //#endregion
10593
10552
  //#region src/components/numberStepper/NumberStepper.tsx
10594
- var Root$5 = (0, react.forwardRef)((props, ref) => {
10553
+ var Root$4 = (0, react.forwardRef)((props, ref) => {
10595
10554
  const { className, children, ...rest } = props;
10596
10555
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_number_field.NumberField.Root, {
10597
10556
  ref,
@@ -10635,12 +10594,12 @@ var Increment = (0, react.forwardRef)((props, ref) => {
10635
10594
  });
10636
10595
  });
10637
10596
  var NumberStepper = {
10638
- Root: Root$5,
10597
+ Root: Root$4,
10639
10598
  Increment,
10640
10599
  Input: Input$2,
10641
10600
  Decrement
10642
10601
  };
10643
- Root$5.displayName = "NumberStepper.Root";
10602
+ Root$4.displayName = "NumberStepper.Root";
10644
10603
  Input$2.displayName = "NumberStepper.Input";
10645
10604
  Decrement.displayName = "NumberStepper.Decrement";
10646
10605
  Increment.displayName = "NumberStepper.Increment";
@@ -10659,18 +10618,17 @@ var Pill = (0, react.forwardRef)((props, ref) => {
10659
10618
  Pill.displayName = "Pill";
10660
10619
  //#endregion
10661
10620
  //#region src/components/popover/Popover.tsx
10662
- var Root$4 = _radix_ui_react_popover.Root;
10663
- var Anchor = _radix_ui_react_popover.Anchor;
10664
- var Trigger$3 = (0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Trigger, {
10665
- "data-c13y-component": "popover-trigger",
10666
- asChild: true,
10667
- ...props,
10668
- ref
10669
- }));
10670
- Trigger$3.displayName = "Popover.Trigger";
10621
+ var Trigger$3 = (props) => {
10622
+ const { children, ref, ...rest } = props;
10623
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Trigger, {
10624
+ render: children,
10625
+ ref,
10626
+ ...rest
10627
+ });
10628
+ };
10671
10629
  var Close = (0, react.forwardRef)((props, ref) => {
10672
10630
  const { className, ...rest } = props;
10673
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Close, {
10631
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Close, {
10674
10632
  "data-c13y-component": "button",
10675
10633
  "data-c13y-purpose": "close",
10676
10634
  ref,
@@ -10679,27 +10637,27 @@ var Close = (0, react.forwardRef)((props, ref) => {
10679
10637
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {})
10680
10638
  });
10681
10639
  });
10682
- Close.displayName = "Popover.Close";
10683
10640
  var Content$2 = (0, react.forwardRef)((props, ref) => {
10684
- const { className, container, ...rest } = props;
10685
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Portal, {
10641
+ const { className, children, container, ...rest } = props;
10642
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Portal, {
10686
10643
  container,
10687
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_popover.Content, {
10688
- "data-c13y-component": "popover",
10644
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Positioner, {
10689
10645
  sideOffset: 4,
10690
- className: (0, clsx.default)("ds-popover__content", className),
10691
- ref,
10692
- ...rest
10646
+ ...rest,
10647
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Popover.Popup, {
10648
+ "data-c13y-component": "popover",
10649
+ className: (0, clsx.default)("ds-popover__content", className),
10650
+ children,
10651
+ ref
10652
+ })
10693
10653
  })
10694
10654
  });
10695
10655
  });
10696
- Content$2.displayName = "Popover.Content";
10697
10656
  var Popover = {
10698
- Root: Root$4,
10657
+ Root: _base_ui_react.Popover.Root,
10699
10658
  Content: Content$2,
10700
10659
  Trigger: Trigger$3,
10701
- Close,
10702
- Anchor
10660
+ Close
10703
10661
  };
10704
10662
  //#endregion
10705
10663
  //#region src/components/radio/Radio.tsx
@@ -11551,22 +11509,77 @@ var Switch = (0, react.forwardRef)((props, ref) => {
11551
11509
  });
11552
11510
  });
11553
11511
  //#endregion
11512
+ //#region src/components/switchDeprecated/SwitchDeprecated.tsx
11513
+ /** @deprecated Use Switch component instead */
11514
+ function SwitchDeprecated(props) {
11515
+ const { checked, disabled, name, label, description, onChange, spaceBetween, className = "", ref } = props;
11516
+ const id = (0, react.useId)();
11517
+ const descriptionId = `toggle-${id}-descr`;
11518
+ const inputId = `toggle-${id}-label`;
11519
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11520
+ 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),
11521
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11522
+ className: (0, clsx.default)("ds-switch-deprecated__wrapper"),
11523
+ children: [
11524
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11525
+ className: (0, clsx.default)("ds-switch-deprecated__label-container"),
11526
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
11527
+ className: (0, clsx.default)("ds-switch-deprecated__label"),
11528
+ htmlFor: inputId,
11529
+ children: label
11530
+ })
11531
+ }),
11532
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11533
+ className: "ds-switch-deprecated",
11534
+ name,
11535
+ type: "checkbox",
11536
+ onChange,
11537
+ id: inputId,
11538
+ disabled,
11539
+ "aria-describedby": description ? descriptionId : void 0,
11540
+ checked,
11541
+ ref
11542
+ }),
11543
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11544
+ className: (0, clsx.default)("ds-switch-deprecated__switch-wrapper"),
11545
+ children: [
11546
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon_default, {
11547
+ "aria-hidden": "true",
11548
+ className: (0, clsx.default)("ds-switch-deprecated__inner", "ds-switch-deprecated__inner--on")
11549
+ }),
11550
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {
11551
+ "aria-hidden": "true",
11552
+ className: (0, clsx.default)("ds-switch-deprecated__inner", "ds-switch-deprecated__inner--off")
11553
+ }),
11554
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-switch-deprecated__switch") })
11555
+ ]
11556
+ })
11557
+ ]
11558
+ }), description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11559
+ className: (0, clsx.default)("ds-switch-deprecated__description"),
11560
+ id: descriptionId,
11561
+ children: description
11562
+ })]
11563
+ });
11564
+ }
11565
+ SwitchDeprecated.displayName = "SwitchDeprecated";
11566
+ //#endregion
11554
11567
  //#region src/components/tabs/Tabs.tsx
11555
- var Root$1 = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.Root, {
11568
+ var Root$1 = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tabs.Tabs.Root, {
11556
11569
  "data-c13y-component": "tabs",
11557
11570
  ref,
11558
11571
  className: (0, clsx.default)("ds-tabs", className),
11559
11572
  ...props
11560
11573
  }));
11561
- Root$1.displayName = _radix_ui_react_tabs.Root.displayName;
11562
- var List = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.List, {
11574
+ Root$1.displayName = _base_ui_react_tabs.Tabs.Root.displayName;
11575
+ var List = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tabs.Tabs.List, {
11563
11576
  "data-c13y-component": "tabs-list",
11564
11577
  ref,
11565
11578
  className: (0, clsx.default)("ds-tabs__list", className),
11566
11579
  ...props
11567
11580
  }));
11568
- List.displayName = _radix_ui_react_tabs.List.displayName;
11569
- var Trigger$1 = (0, react.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.Trigger, {
11581
+ List.displayName = _base_ui_react_tabs.Tabs.List.displayName;
11582
+ var Trigger$1 = (0, react.forwardRef)(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tabs.Tabs.Tab, {
11570
11583
  "data-c13y-component": "tabs-trigger",
11571
11584
  ref,
11572
11585
  className: (0, clsx.default)("ds-tabs__trigger", className),
@@ -11576,14 +11589,13 @@ var Trigger$1 = (0, react.forwardRef)(({ className, children, ...props }, ref) =
11576
11589
  children
11577
11590
  })
11578
11591
  }));
11579
- Trigger$1.displayName = _radix_ui_react_tabs.Trigger.displayName;
11580
- var Content$1 = (0, react.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_tabs.Content, {
11592
+ Trigger$1.displayName = _base_ui_react_tabs.Tabs.Tab.displayName;
11593
+ var Content$1 = (0, react.forwardRef)((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tabs.Tabs.Panel, {
11581
11594
  "data-c13y-component": "tabs-content",
11582
11595
  ref,
11583
- className: (0, clsx.default)("ds-tabs__content", className),
11584
11596
  ...props
11585
11597
  }));
11586
- Content$1.displayName = _radix_ui_react_tabs.Content.displayName;
11598
+ Content$1.displayName = _base_ui_react_tabs.Tabs.Panel.displayName;
11587
11599
  var Tabs = {
11588
11600
  Root: Root$1,
11589
11601
  List,
@@ -11763,60 +11775,29 @@ var TextInput = (0, react.forwardRef)(function TextInput(props, ref) {
11763
11775
  TextInput.displayName = "TextInput";
11764
11776
  //#endregion
11765
11777
  //#region src/components/toggle/Toggle.tsx
11766
- /** @deprecated Use Switch component instead */
11767
- function Toggle(props) {
11768
- const { checked, disabled, name, label, description, onChange, spaceBetween, className = "", ref } = props;
11769
- const id = (0, react.useId)();
11770
- const descriptionId = `toggle-${id}-descr`;
11771
- const inputId = `toggle-${id}-label`;
11772
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11773
- className: (0, clsx.default)("ds-toggle__container", disabled && "ds-toggle__container--disabled", spaceBetween ? "ds-toggle__container--full-width" : "ds-toggle__container--content-width", className),
11774
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11775
- className: (0, clsx.default)("ds-toggle__wrapper"),
11776
- children: [
11777
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11778
- className: (0, clsx.default)("ds-toggle__label-container"),
11779
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
11780
- className: (0, clsx.default)("ds-toggle__label"),
11781
- htmlFor: inputId,
11782
- children: label
11783
- })
11784
- }),
11785
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
11786
- className: "ds-toggle",
11787
- name,
11788
- type: "checkbox",
11789
- onChange,
11790
- id: inputId,
11791
- disabled,
11792
- "aria-describedby": description ? descriptionId : void 0,
11793
- checked,
11794
- ref
11795
- }),
11796
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11797
- className: (0, clsx.default)("ds-toggle__switch-wrapper"),
11798
- children: [
11799
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CheckIcon_default, {
11800
- "aria-hidden": "true",
11801
- className: (0, clsx.default)("ds-toggle__inner", "ds-toggle__inner--on")
11802
- }),
11803
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseIcon_default, {
11804
- "aria-hidden": "true",
11805
- className: (0, clsx.default)("ds-toggle__inner", "ds-toggle__inner--off")
11806
- }),
11807
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-toggle__switch") })
11808
- ]
11809
- })
11810
- ]
11811
- }), description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11812
- className: (0, clsx.default)("ds-toggle__description"),
11813
- id: descriptionId,
11814
- children: description
11815
- })]
11778
+ var Toggle = (0, react.forwardRef)((props, ref) => {
11779
+ const { className, ...rest } = props;
11780
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_toggle.Toggle, {
11781
+ "data-c13y-component": "toggle",
11782
+ className: (0, clsx.default)("ds-toggle", className),
11783
+ ref,
11784
+ ...rest
11816
11785
  });
11817
- }
11786
+ });
11818
11787
  Toggle.displayName = "Toggle";
11819
11788
  //#endregion
11789
+ //#region src/components/toggleGroup/ToggleGroup.tsx
11790
+ var ToggleGroup = (0, react.forwardRef)((props, ref) => {
11791
+ const { className, ...rest } = props;
11792
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_toggle_group.ToggleGroup, {
11793
+ "data-c13y-component": "toggle-group",
11794
+ className: (0, clsx.default)("ds-toggle-group", className),
11795
+ ref,
11796
+ ...rest
11797
+ });
11798
+ });
11799
+ ToggleGroup.displayName = "ToggleGroup";
11800
+ //#endregion
11820
11801
  //#region src/components/tooltip/Tooltip.tsx
11821
11802
  var TooltipContext = (0, react.createContext)(null);
11822
11803
  var Root = (props) => {
@@ -12056,7 +12037,6 @@ exports.FolderShareIcon = FolderShareIcon_default;
12056
12037
  exports.FontsIcon = FontsIcon_default;
12057
12038
  exports.FootballIcon = FootballIcon_default;
12058
12039
  exports.GalleryIcon = GalleryIcon_default;
12059
- exports.GhostButton = GhostButton;
12060
12040
  exports.GlobeIcon = GlobeIcon_default;
12061
12041
  exports.GridIcon = GridIcon_default;
12062
12042
  exports.GroupConversationAddIcon = GroupConversationAddIcon_default;
@@ -12073,8 +12053,6 @@ exports.HierarchyChartIcon = HierarchyChartIcon_default;
12073
12053
  exports.HomeIcon = HomeIcon_default;
12074
12054
  exports.HouseIcon = HouseIcon_default;
12075
12055
  exports.Icon = Icon;
12076
- exports.IconButton = IconButton;
12077
- exports.IconGhostButton = IconGhostButton;
12078
12056
  exports.ImageIcon = ImageIcon_default;
12079
12057
  exports.ImageUploadIcon = ImageUploadIcon_default;
12080
12058
  exports.InfoIcon = InfoIcon_default;
@@ -12214,6 +12192,7 @@ exports.StarAltIcon = StarAltIcon_default;
12214
12192
  exports.StarIcon = StarIcon_default;
12215
12193
  exports.StyleChip = StyleChip;
12216
12194
  exports.Switch = Switch;
12195
+ exports.SwitchDeprecated = SwitchDeprecated;
12217
12196
  exports.TabletIcon = TabletIcon_default;
12218
12197
  exports.Tabs = Tabs;
12219
12198
  exports.TagIcon = TagIcon_default;
@@ -12237,6 +12216,7 @@ exports.ThumbDownIcon = ThumbDownIcon_default;
12237
12216
  exports.ThumbUpAltIcon = ThumbUpAltIcon_default;
12238
12217
  exports.ThumbUpIcon = ThumbUpIcon_default;
12239
12218
  exports.Toggle = Toggle;
12219
+ exports.ToggleGroup = ToggleGroup;
12240
12220
  exports.Tooltip = Tooltip;
12241
12221
  exports.TooltipDeprecated = TooltipDeprecated;
12242
12222
  exports.TranslationOnIcon = TranslationOnIcon_default;