@staffbase/design 20.1.1 → 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,
@@ -10052,7 +10047,6 @@ var PlainGrowl = (0, react.forwardRef)(function PlainGrowl(props, ref) {
10052
10047
  const { variant = "success", className = "", ...rest } = props;
10053
10048
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10054
10049
  ...rest,
10055
- "data-c13y-component": "plain-growl",
10056
10050
  className: (0, clsx.clsx)(`ds-growl ds-growl--${variant}`, className),
10057
10051
  role: "alert",
10058
10052
  ref
@@ -10062,7 +10056,6 @@ var PlainGrowl = (0, react.forwardRef)(function PlainGrowl(props, ref) {
10062
10056
  function Growl(props) {
10063
10057
  const { children, variant = "success", className = "" } = props;
10064
10058
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.m.div, {
10065
- "data-c13y-component": "growl",
10066
10059
  className: (0, clsx.clsx)(`ds-growl ds-growl--${variant}`, className),
10067
10060
  initial: {
10068
10061
  opacity: 0,
@@ -10100,7 +10093,6 @@ GrowlContainer.displayName = "GrowlContainer";
10100
10093
  var HelpButton = (0, react.forwardRef)(function HelpButton(props, ref) {
10101
10094
  const { className = "", title, ...rest } = props;
10102
10095
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10103
- "data-c13y-component": "help-button",
10104
10096
  className: (0, clsx.default)("ds-help-button", className),
10105
10097
  "aria-label": title,
10106
10098
  ref,
@@ -10112,14 +10104,14 @@ HelpButton.displayName = "HelpButton";
10112
10104
  //#endregion
10113
10105
  //#region src/utils/splitC13yProps.ts
10114
10106
  /**
10115
- * Splits a props object into its `data-c13y-*` customizability attributes and
10107
+ * Splits a props object into its `data-c13y-*` customisability attributes and
10116
10108
  * everything else.
10117
10109
  *
10118
10110
  * Portalled overlays render a positioner wrapper around the visible popup. The
10119
10111
  * public prop type extends the positioner's props, so a consumer-supplied
10120
10112
  * `data-c13y-region` / `data-c13y-purpose` / `data-c13y-id` would otherwise land
10121
10113
  * on the invisible positioner instead of the visible popup that carries
10122
- * `data-c13y-component`. Use this to forward the customizability attributes onto
10114
+ * `data-c13y-component`. Use this to forward the customisability attributes onto
10123
10115
  * the popup while keeping positioner props (`align`, `sideOffset`, …) on the
10124
10116
  * positioner.
10125
10117
  */
@@ -10161,7 +10153,7 @@ var Popup$3 = (0, react.forwardRef)((props, ref) => {
10161
10153
  ...positionerProps,
10162
10154
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Popup, {
10163
10155
  ...c13y,
10164
- "data-c13y-component": "menu-popover",
10156
+ "data-c13y-component": "menu-popup",
10165
10157
  className: (0, clsx.default)("ds-menu__popup", className),
10166
10158
  children,
10167
10159
  ref
@@ -10805,7 +10797,7 @@ var Popup$2 = (0, react.forwardRef)((props, ref) => {
10805
10797
  ...positionerProps,
10806
10798
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Popup, {
10807
10799
  ...c13y,
10808
- "data-c13y-component": "searchable-multi-select-popover",
10800
+ "data-c13y-component": "searchable-multi-select-popup",
10809
10801
  className: (0, clsx.default)("ds-searchable-multi-select__popup", className),
10810
10802
  children,
10811
10803
  ref
@@ -10995,7 +10987,7 @@ var Popup$1 = (0, react.forwardRef)((props, ref) => {
10995
10987
  ...positionerProps,
10996
10988
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.Popup, {
10997
10989
  ...c13y,
10998
- "data-c13y-component": "searchable-single-select-popover",
10990
+ "data-c13y-component": "searchable-single-select-popup",
10999
10991
  className: (0, clsx.default)("ds-searchable-single-select__popup", className),
11000
10992
  children,
11001
10993
  ref
@@ -11021,17 +11013,6 @@ var Separator$2 = (0, react.forwardRef)((props, ref) => {
11021
11013
  ...rest
11022
11014
  });
11023
11015
  });
11024
- var ItemIndicator$1 = (0, react.forwardRef)((props, ref) => {
11025
- const { className, ...rest } = props;
11026
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.ItemIndicator, {
11027
- "data-c13y-component": "searchable-single-select-item-indicator",
11028
- keepMounted: true,
11029
- className: "ds-searchable-single-select__item-indicator-wrapper",
11030
- ref,
11031
- ...rest,
11032
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, clsx.default)("ds-searchable-single-select__item-indicator", className) })
11033
- });
11034
- });
11035
11016
  var GroupLabel$1 = (0, react.forwardRef)((props, ref) => {
11036
11017
  const { className, ...rest } = props;
11037
11018
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_combobox.Combobox.GroupLabel, {
@@ -11059,7 +11040,6 @@ var SearchableSingleSelect = {
11059
11040
  GroupLabel: GroupLabel$1,
11060
11041
  Popup: Popup$1,
11061
11042
  Item: Item$2,
11062
- ItemIndicator: ItemIndicator$1,
11063
11043
  Separator: Separator$2,
11064
11044
  Input,
11065
11045
  Empty: Empty$1
@@ -11123,7 +11103,7 @@ var Popup = (0, react.forwardRef)((props, ref) => {
11123
11103
  ...positionerProps,
11124
11104
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_select.Select.Popup, {
11125
11105
  ...c13y,
11126
- "data-c13y-component": "select-popover",
11106
+ "data-c13y-component": "select-popup",
11127
11107
  className: (0, clsx.default)("ds-select__popup", className),
11128
11108
  children,
11129
11109
  ref
@@ -11665,7 +11645,6 @@ var TextField = (0, react.forwardRef)((props, ref) => {
11665
11645
  }),
11666
11646
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_input.Input, {
11667
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),
11668
- "data-c13y-component": "text-field-input",
11669
11648
  ref,
11670
11649
  ...rest
11671
11650
  }),
@@ -11841,7 +11820,7 @@ var Tooltip = {
11841
11820
  ...positionerProps,
11842
11821
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_tooltip.Tooltip.Popup, {
11843
11822
  ...c13y,
11844
- "data-c13y-component": "tooltip-popover",
11823
+ "data-c13y-component": "tooltip",
11845
11824
  className: (0, clsx.default)(`ds-tooltip--${variant}`, "ds-tooltip", className),
11846
11825
  id: context?.id,
11847
11826
  children,