@staffbase/design 20.1.0 → 20.1.2

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
@@ -321,7 +321,7 @@ var Popup$6 = (0, react.forwardRef)((props, ref) => {
321
321
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.AlertDialog.Portal, {
322
322
  container,
323
323
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Backdrop, { className: "ds-alert-dialog__backdrop" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.AlertDialog.Popup, {
324
- "data-c13y-component": "alert-dialog-popover",
324
+ "data-c13y-component": "alert-dialog-popup",
325
325
  className: (0, clsx.default)("ds-alert-dialog__popup", className),
326
326
  ...rest,
327
327
  ref,
@@ -8922,7 +8922,6 @@ var Root$9 = (0, react.forwardRef)((props, ref) => {
8922
8922
  children: ICONS[variant]
8923
8923
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
8924
8924
  className: "ds-banner__content",
8925
- "data-c13y-component": "banner-content",
8926
8925
  children
8927
8926
  })]
8928
8927
  });
@@ -8987,7 +8986,7 @@ var Popup$5 = (0, react.forwardRef)((props, ref) => {
8987
8986
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_drawer.Drawer.Backdrop, { className: "ds-bottom-sheet__backdrop" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_drawer.Drawer.Viewport, {
8988
8987
  className: "ds-bottom-sheet__viewport",
8989
8988
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_drawer.Drawer.Popup, {
8990
- "data-c13y-component": "bottom-sheet-popover",
8989
+ "data-c13y-component": "bottom-sheet-popup",
8991
8990
  className: (0, clsx.default)("ds-bottom-sheet__popup", className),
8992
8991
  ...rest,
8993
8992
  ref,
@@ -9045,7 +9044,6 @@ var BottomSheet = {
9045
9044
  var ButtonDeprecated = (0, react.forwardRef)(function Button(props, ref) {
9046
9045
  const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
9047
9046
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9048
- "data-c13y-component": "button",
9049
9047
  className: `ds-button-deprecated ds-button-deprecated--${variant} ${className}`,
9050
9048
  disabled,
9051
9049
  ...rest,
@@ -9064,7 +9062,6 @@ var ButtonDeprecated = (0, react.forwardRef)(function Button(props, ref) {
9064
9062
  var IconButton = (0, react.forwardRef)(function IconButton(props, ref) {
9065
9063
  const { icon, className = "", variant = "primary", ...rest } = props;
9066
9064
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9067
- "data-c13y-component": "button",
9068
9065
  className: (0, clsx.default)("ds-button-deprecated", "ds-icon-button", `ds-button-deprecated--${variant}`, `${className}`),
9069
9066
  ...rest,
9070
9067
  ref,
@@ -9239,7 +9236,7 @@ var Popup$4 = (0, react.forwardRef)((props, ref) => {
9239
9236
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react.Dialog.Portal, {
9240
9237
  container,
9241
9238
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Backdrop, { className: "ds-dialog__backdrop" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react.Dialog.Popup, {
9242
- "data-c13y-component": "dialog-popover",
9239
+ "data-c13y-component": "dialog-popup",
9243
9240
  className: (0, clsx.default)("ds-dialog__popup", className),
9244
9241
  ...rest,
9245
9242
  ref,
@@ -9895,7 +9892,7 @@ var FilterContentWrapper = (0, react.forwardRef)(function PopoverContent(props,
9895
9892
  modal: false,
9896
9893
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9897
9894
  ref,
9898
- "data-c13y-component": "filter-popover",
9895
+ "data-c13y-component": "filter-popup",
9899
9896
  style: {
9900
9897
  ...floatingContext.floatingStyles,
9901
9898
  width: "max-content",
@@ -10017,7 +10014,6 @@ Filter.displayName = "Filter";
10017
10014
  var GhostButton = (0, react.forwardRef)(function GhostButton(props, ref) {
10018
10015
  const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
10019
10016
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
10020
- "data-c13y-component": "ghost-button",
10021
10017
  className: `ds-ghost-button ds-ghost-button--${variant} ${className}`,
10022
10018
  disabled,
10023
10019
  ...rest,
@@ -10036,7 +10032,6 @@ var GhostButton = (0, react.forwardRef)(function GhostButton(props, ref) {
10036
10032
  var IconGhostButton = (0, react.forwardRef)(function IconGhostButton(props, ref) {
10037
10033
  const { icon, className = "", variant = "primary", ...rest } = props;
10038
10034
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10039
- "data-c13y-component": "ghost-button",
10040
10035
  className: (0, clsx.default)("ds-ghost-button", "ds-ghost-icon-button", `ds-ghost-button--${variant}`, `${className}`),
10041
10036
  ...rest,
10042
10037
  ref,
@@ -10047,20 +10042,20 @@ GhostButton.displayName = "GhostButton";
10047
10042
  IconGhostButton.displayName = "IconGhostButton";
10048
10043
  //#endregion
10049
10044
  //#region src/components/growl/Growl.tsx
10045
+ /** @deprecated Not an accessible UI pattern — no replacement */
10050
10046
  var PlainGrowl = (0, react.forwardRef)(function PlainGrowl(props, ref) {
10051
10047
  const { variant = "success", className = "", ...rest } = props;
10052
10048
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10053
10049
  ...rest,
10054
- "data-c13y-component": "plain-growl",
10055
10050
  className: (0, clsx.clsx)(`ds-growl ds-growl--${variant}`, className),
10056
10051
  role: "alert",
10057
10052
  ref
10058
10053
  });
10059
10054
  });
10055
+ /** @deprecated Not an accessible UI pattern — no replacement */
10060
10056
  function Growl(props) {
10061
10057
  const { children, variant = "success", className = "" } = props;
10062
10058
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.m.div, {
10063
- "data-c13y-component": "growl",
10064
10059
  className: (0, clsx.clsx)(`ds-growl ds-growl--${variant}`, className),
10065
10060
  initial: {
10066
10061
  opacity: 0,
@@ -10082,6 +10077,7 @@ function Growl(props) {
10082
10077
  children
10083
10078
  });
10084
10079
  }
10080
+ /** @deprecated Not an accessible UI pattern — no replacement */
10085
10081
  function GrowlContainer(props) {
10086
10082
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.LazyMotion, {
10087
10083
  features: motion_react.domAnimation,
@@ -10093,10 +10089,10 @@ Growl.displayName = "Growl";
10093
10089
  GrowlContainer.displayName = "GrowlContainer";
10094
10090
  //#endregion
10095
10091
  //#region src/components/helpButton/HelpButton.tsx
10092
+ /** @deprecated Not an accessible UI pattern — no replacement */
10096
10093
  var HelpButton = (0, react.forwardRef)(function HelpButton(props, ref) {
10097
10094
  const { className = "", title, ...rest } = props;
10098
10095
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10099
- "data-c13y-component": "help-button",
10100
10096
  className: (0, clsx.default)("ds-help-button", className),
10101
10097
  "aria-label": title,
10102
10098
  ref,
@@ -10108,14 +10104,14 @@ HelpButton.displayName = "HelpButton";
10108
10104
  //#endregion
10109
10105
  //#region src/utils/splitC13yProps.ts
10110
10106
  /**
10111
- * Splits a props object into its `data-c13y-*` customizability attributes and
10107
+ * Splits a props object into its `data-c13y-*` customisability attributes and
10112
10108
  * everything else.
10113
10109
  *
10114
10110
  * Portalled overlays render a positioner wrapper around the visible popup. The
10115
10111
  * public prop type extends the positioner's props, so a consumer-supplied
10116
10112
  * `data-c13y-region` / `data-c13y-purpose` / `data-c13y-id` would otherwise land
10117
10113
  * on the invisible positioner instead of the visible popup that carries
10118
- * `data-c13y-component`. Use this to forward the customizability attributes onto
10114
+ * `data-c13y-component`. Use this to forward the customisability attributes onto
10119
10115
  * the popup while keeping positioner props (`align`, `sideOffset`, …) on the
10120
10116
  * positioner.
10121
10117
  */
@@ -10157,7 +10153,7 @@ var Popup$3 = (0, react.forwardRef)((props, ref) => {
10157
10153
  ...positionerProps,
10158
10154
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Popup, {
10159
10155
  ...c13y,
10160
- "data-c13y-component": "menu-popover",
10156
+ "data-c13y-component": "menu-popup",
10161
10157
  className: (0, clsx.default)("ds-menu__popup", className),
10162
10158
  children,
10163
10159
  ref
@@ -10801,7 +10797,7 @@ var Popup$2 = (0, react.forwardRef)((props, ref) => {
10801
10797
  ...positionerProps,
10802
10798
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Popup, {
10803
10799
  ...c13y,
10804
- "data-c13y-component": "searchable-multi-select-popover",
10800
+ "data-c13y-component": "searchable-multi-select-popup",
10805
10801
  className: (0, clsx.default)("ds-searchable-multi-select__popup", className),
10806
10802
  children,
10807
10803
  ref
@@ -10991,7 +10987,7 @@ var Popup$1 = (0, react.forwardRef)((props, ref) => {
10991
10987
  ...positionerProps,
10992
10988
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Popup, {
10993
10989
  ...c13y,
10994
- "data-c13y-component": "searchable-single-select-popover",
10990
+ "data-c13y-component": "searchable-single-select-popup",
10995
10991
  className: (0, clsx.default)("ds-searchable-single-select__popup", className),
10996
10992
  children,
10997
10993
  ref
@@ -11017,17 +11013,6 @@ var Separator$2 = (0, react.forwardRef)((props, ref) => {
11017
11013
  ...rest
11018
11014
  });
11019
11015
  });
11020
- var ItemIndicator$1 = (0, react.forwardRef)((props, ref) => {
11021
- const { className, ...rest } = props;
11022
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.ItemIndicator, {
11023
- "data-c13y-component": "searchable-single-select-item-indicator",
11024
- keepMounted: true,
11025
- className: "ds-searchable-single-select__item-indicator-wrapper",
11026
- ref,
11027
- ...rest,
11028
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-searchable-single-select__item-indicator", className) })
11029
- });
11030
- });
11031
11016
  var GroupLabel$1 = (0, react.forwardRef)((props, ref) => {
11032
11017
  const { className, ...rest } = props;
11033
11018
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.GroupLabel, {
@@ -11055,7 +11040,6 @@ var SearchableSingleSelect = {
11055
11040
  GroupLabel: GroupLabel$1,
11056
11041
  Popup: Popup$1,
11057
11042
  Item: Item$2,
11058
- ItemIndicator: ItemIndicator$1,
11059
11043
  Separator: Separator$2,
11060
11044
  Input,
11061
11045
  Empty: Empty$1
@@ -11119,7 +11103,7 @@ var Popup = (0, react.forwardRef)((props, ref) => {
11119
11103
  ...positionerProps,
11120
11104
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_select.Select.Popup, {
11121
11105
  ...c13y,
11122
- "data-c13y-component": "select-popover",
11106
+ "data-c13y-component": "select-popup",
11123
11107
  className: (0, clsx.default)("ds-select__popup", className),
11124
11108
  children,
11125
11109
  ref
@@ -11661,7 +11645,6 @@ var TextField = (0, react.forwardRef)((props, ref) => {
11661
11645
  }),
11662
11646
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_input.Input, {
11663
11647
  className: (0, clsx.default)("ds-text-field__input", { "ds-text-field__input--has-leading-icon": leadingIcon }, { "ds-text-field__input--has-trailing-icon": trailingIcon }, className),
11664
- "data-c13y-component": "text-field-input",
11665
11648
  ref,
11666
11649
  ...rest
11667
11650
  }),
@@ -11837,7 +11820,7 @@ var Tooltip = {
11837
11820
  ...positionerProps,
11838
11821
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tooltip.Tooltip.Popup, {
11839
11822
  ...c13y,
11840
- "data-c13y-component": "tooltip-popover",
11823
+ "data-c13y-component": "tooltip",
11841
11824
  className: (0, clsx.default)(`ds-tooltip--${variant}`, "ds-tooltip", className),
11842
11825
  id: context?.id,
11843
11826
  children,