@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.d.ts CHANGED
@@ -14,7 +14,6 @@ import { ChangeEvent } from 'react';
14
14
  import { ClassAttributes } from 'react';
15
15
  import { Combobox } from '@base-ui/react/combobox';
16
16
  import { ComboboxChipProps } from '@base-ui/react';
17
- import { ComboboxItemIndicatorProps } from '@base-ui/react';
18
17
  import { ComboboxItemProps } from '@base-ui/react';
19
18
  import { ComponentProps } from 'react';
20
19
  import { ComponentPropsWithoutRef } from 'react';
@@ -872,12 +871,14 @@ export declare const GroupConversationIcon: default_2.NamedExoticComponent<defau
872
871
 
873
872
  export declare const GroupConversationLeaveIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
874
873
 
874
+ /** @deprecated Not an accessible UI pattern — no replacement */
875
875
  export declare function Growl(props: GrowlProps): ReactElement;
876
876
 
877
877
  export declare namespace Growl {
878
878
  var displayName: string;
879
879
  }
880
880
 
881
+ /** @deprecated Not an accessible UI pattern — no replacement */
881
882
  export declare function GrowlContainer(props: {
882
883
  children?: ReactNode;
883
884
  }): JSX.Element;
@@ -909,6 +910,7 @@ export declare const HeartAltIcon: default_2.NamedExoticComponent<default_2.SVGA
909
910
 
910
911
  export declare const HeartIcon: default_2.NamedExoticComponent<default_2.SVGAttributes<SVGSVGElement> & default_2.RefAttributes<SVGSVGElement>>;
911
912
 
913
+ /** @deprecated Not an accessible UI pattern — no replacement */
912
914
  export declare const HelpButton: ForwardRefExoticComponent<HelpButtonProps & RefAttributes<HTMLButtonElement>>;
913
915
 
914
916
  export declare interface HelpButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
@@ -1545,6 +1547,7 @@ declare interface PillProps extends ComponentProps<'div'> {
1545
1547
  children: ReactNode;
1546
1548
  }
1547
1549
 
1550
+ /** @deprecated Not an accessible UI pattern — no replacement */
1548
1551
  export declare const PlainGrowl: ForwardRefExoticComponent<Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
1549
1552
  variant?: GrowlVariant;
1550
1553
  }, "ref"> & RefAttributes<HTMLDivElement>>;
@@ -1780,7 +1783,6 @@ export declare const SearchableSingleSelect: {
1780
1783
  GroupLabel: ForwardRefExoticComponent<Omit< AutocompleteGroupLabelProps, "ref"> & RefAttributes<HTMLDivElement>>;
1781
1784
  Popup: ForwardRefExoticComponent<Omit<PopupProps_6, "ref"> & RefAttributes<HTMLDivElement>>;
1782
1785
  Item: ForwardRefExoticComponent<Omit< ComboboxItemProps, "ref"> & RefAttributes<HTMLDivElement>>;
1783
- ItemIndicator: ForwardRefExoticComponent<Omit< ComboboxItemIndicatorProps, "ref"> & RefAttributes<HTMLSpanElement>>;
1784
1786
  Separator: ForwardRefExoticComponent<Omit< SeparatorProps, "ref"> & RefAttributes<HTMLDivElement>>;
1785
1787
  Input: ForwardRefExoticComponent<Omit<InputProps, "ref"> & RefAttributes<HTMLInputElement>>;
1786
1788
  Empty: ForwardRefExoticComponent<Omit< AutocompleteEmptyProps, "ref"> & RefAttributes<HTMLDivElement>>;
package/dist/main.js CHANGED
@@ -315,7 +315,7 @@ var Popup$6 = forwardRef((props, ref) => {
315
315
  return /* @__PURE__ */ jsxs(AlertDialog$1.Portal, {
316
316
  container,
317
317
  children: [/* @__PURE__ */ jsx(AlertDialog$1.Backdrop, { className: "ds-alert-dialog__backdrop" }), /* @__PURE__ */ jsx(AlertDialog$1.Popup, {
318
- "data-c13y-component": "alert-dialog-popover",
318
+ "data-c13y-component": "alert-dialog-popup",
319
319
  className: clsx$1("ds-alert-dialog__popup", className),
320
320
  ...rest,
321
321
  ref,
@@ -8916,7 +8916,6 @@ var Root$9 = forwardRef((props, ref) => {
8916
8916
  children: ICONS[variant]
8917
8917
  }), /* @__PURE__ */ jsx("div", {
8918
8918
  className: "ds-banner__content",
8919
- "data-c13y-component": "banner-content",
8920
8919
  children
8921
8920
  })]
8922
8921
  });
@@ -8981,7 +8980,7 @@ var Popup$5 = forwardRef((props, ref) => {
8981
8980
  children: [/* @__PURE__ */ jsx(Drawer.Backdrop, { className: "ds-bottom-sheet__backdrop" }), /* @__PURE__ */ jsx(Drawer.Viewport, {
8982
8981
  className: "ds-bottom-sheet__viewport",
8983
8982
  children: /* @__PURE__ */ jsxs(Drawer.Popup, {
8984
- "data-c13y-component": "bottom-sheet-popover",
8983
+ "data-c13y-component": "bottom-sheet-popup",
8985
8984
  className: clsx$1("ds-bottom-sheet__popup", className),
8986
8985
  ...rest,
8987
8986
  ref,
@@ -9039,7 +9038,6 @@ var BottomSheet = {
9039
9038
  var ButtonDeprecated = forwardRef(function Button(props, ref) {
9040
9039
  const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
9041
9040
  return /* @__PURE__ */ jsxs("button", {
9042
- "data-c13y-component": "button",
9043
9041
  className: `ds-button-deprecated ds-button-deprecated--${variant} ${className}`,
9044
9042
  disabled,
9045
9043
  ...rest,
@@ -9058,7 +9056,6 @@ var ButtonDeprecated = forwardRef(function Button(props, ref) {
9058
9056
  var IconButton = forwardRef(function IconButton(props, ref) {
9059
9057
  const { icon, className = "", variant = "primary", ...rest } = props;
9060
9058
  return /* @__PURE__ */ jsx("button", {
9061
- "data-c13y-component": "button",
9062
9059
  className: clsx$1("ds-button-deprecated", "ds-icon-button", `ds-button-deprecated--${variant}`, `${className}`),
9063
9060
  ...rest,
9064
9061
  ref,
@@ -9233,7 +9230,7 @@ var Popup$4 = forwardRef((props, ref) => {
9233
9230
  return /* @__PURE__ */ jsxs(Dialog$1.Portal, {
9234
9231
  container,
9235
9232
  children: [/* @__PURE__ */ jsx(Dialog$1.Backdrop, { className: "ds-dialog__backdrop" }), /* @__PURE__ */ jsx(Dialog$1.Popup, {
9236
- "data-c13y-component": "dialog-popover",
9233
+ "data-c13y-component": "dialog-popup",
9237
9234
  className: clsx$1("ds-dialog__popup", className),
9238
9235
  ...rest,
9239
9236
  ref,
@@ -9889,7 +9886,7 @@ var FilterContentWrapper = forwardRef(function PopoverContent(props, propRef) {
9889
9886
  modal: false,
9890
9887
  children: /* @__PURE__ */ jsx("div", {
9891
9888
  ref,
9892
- "data-c13y-component": "filter-popover",
9889
+ "data-c13y-component": "filter-popup",
9893
9890
  style: {
9894
9891
  ...floatingContext.floatingStyles,
9895
9892
  width: "max-content",
@@ -10011,7 +10008,6 @@ Filter.displayName = "Filter";
10011
10008
  var GhostButton = forwardRef(function GhostButton(props, ref) {
10012
10009
  const { children, className = "", variant = "primary", icon = null, disabled, iconPosition = "leading", ...rest } = props;
10013
10010
  return /* @__PURE__ */ jsxs("button", {
10014
- "data-c13y-component": "ghost-button",
10015
10011
  className: `ds-ghost-button ds-ghost-button--${variant} ${className}`,
10016
10012
  disabled,
10017
10013
  ...rest,
@@ -10030,7 +10026,6 @@ var GhostButton = forwardRef(function GhostButton(props, ref) {
10030
10026
  var IconGhostButton = forwardRef(function IconGhostButton(props, ref) {
10031
10027
  const { icon, className = "", variant = "primary", ...rest } = props;
10032
10028
  return /* @__PURE__ */ jsx("button", {
10033
- "data-c13y-component": "ghost-button",
10034
10029
  className: clsx$1("ds-ghost-button", "ds-ghost-icon-button", `ds-ghost-button--${variant}`, `${className}`),
10035
10030
  ...rest,
10036
10031
  ref,
@@ -10041,20 +10036,20 @@ GhostButton.displayName = "GhostButton";
10041
10036
  IconGhostButton.displayName = "IconGhostButton";
10042
10037
  //#endregion
10043
10038
  //#region src/components/growl/Growl.tsx
10039
+ /** @deprecated Not an accessible UI pattern — no replacement */
10044
10040
  var PlainGrowl = forwardRef(function PlainGrowl(props, ref) {
10045
10041
  const { variant = "success", className = "", ...rest } = props;
10046
10042
  return /* @__PURE__ */ jsx("div", {
10047
10043
  ...rest,
10048
- "data-c13y-component": "plain-growl",
10049
10044
  className: clsx(`ds-growl ds-growl--${variant}`, className),
10050
10045
  role: "alert",
10051
10046
  ref
10052
10047
  });
10053
10048
  });
10049
+ /** @deprecated Not an accessible UI pattern — no replacement */
10054
10050
  function Growl(props) {
10055
10051
  const { children, variant = "success", className = "" } = props;
10056
10052
  return /* @__PURE__ */ jsx(m.div, {
10057
- "data-c13y-component": "growl",
10058
10053
  className: clsx(`ds-growl ds-growl--${variant}`, className),
10059
10054
  initial: {
10060
10055
  opacity: 0,
@@ -10076,6 +10071,7 @@ function Growl(props) {
10076
10071
  children
10077
10072
  });
10078
10073
  }
10074
+ /** @deprecated Not an accessible UI pattern — no replacement */
10079
10075
  function GrowlContainer(props) {
10080
10076
  return /* @__PURE__ */ jsx(LazyMotion, {
10081
10077
  features: domAnimation,
@@ -10087,10 +10083,10 @@ Growl.displayName = "Growl";
10087
10083
  GrowlContainer.displayName = "GrowlContainer";
10088
10084
  //#endregion
10089
10085
  //#region src/components/helpButton/HelpButton.tsx
10086
+ /** @deprecated Not an accessible UI pattern — no replacement */
10090
10087
  var HelpButton = forwardRef(function HelpButton(props, ref) {
10091
10088
  const { className = "", title, ...rest } = props;
10092
10089
  return /* @__PURE__ */ jsx("button", {
10093
- "data-c13y-component": "help-button",
10094
10090
  className: clsx$1("ds-help-button", className),
10095
10091
  "aria-label": title,
10096
10092
  ref,
@@ -10102,14 +10098,14 @@ HelpButton.displayName = "HelpButton";
10102
10098
  //#endregion
10103
10099
  //#region src/utils/splitC13yProps.ts
10104
10100
  /**
10105
- * Splits a props object into its `data-c13y-*` customizability attributes and
10101
+ * Splits a props object into its `data-c13y-*` customisability attributes and
10106
10102
  * everything else.
10107
10103
  *
10108
10104
  * Portalled overlays render a positioner wrapper around the visible popup. The
10109
10105
  * public prop type extends the positioner's props, so a consumer-supplied
10110
10106
  * `data-c13y-region` / `data-c13y-purpose` / `data-c13y-id` would otherwise land
10111
10107
  * on the invisible positioner instead of the visible popup that carries
10112
- * `data-c13y-component`. Use this to forward the customizability attributes onto
10108
+ * `data-c13y-component`. Use this to forward the customisability attributes onto
10113
10109
  * the popup while keeping positioner props (`align`, `sideOffset`, …) on the
10114
10110
  * positioner.
10115
10111
  */
@@ -10151,7 +10147,7 @@ var Popup$3 = forwardRef((props, ref) => {
10151
10147
  ...positionerProps,
10152
10148
  children: /* @__PURE__ */ jsx(Menu$1.Popup, {
10153
10149
  ...c13y,
10154
- "data-c13y-component": "menu-popover",
10150
+ "data-c13y-component": "menu-popup",
10155
10151
  className: clsx$1("ds-menu__popup", className),
10156
10152
  children,
10157
10153
  ref
@@ -10795,7 +10791,7 @@ var Popup$2 = forwardRef((props, ref) => {
10795
10791
  ...positionerProps,
10796
10792
  children: /* @__PURE__ */ jsx(Combobox.Popup, {
10797
10793
  ...c13y,
10798
- "data-c13y-component": "searchable-multi-select-popover",
10794
+ "data-c13y-component": "searchable-multi-select-popup",
10799
10795
  className: clsx$1("ds-searchable-multi-select__popup", className),
10800
10796
  children,
10801
10797
  ref
@@ -10985,7 +10981,7 @@ var Popup$1 = forwardRef((props, ref) => {
10985
10981
  ...positionerProps,
10986
10982
  children: /* @__PURE__ */ jsx(Combobox.Popup, {
10987
10983
  ...c13y,
10988
- "data-c13y-component": "searchable-single-select-popover",
10984
+ "data-c13y-component": "searchable-single-select-popup",
10989
10985
  className: clsx$1("ds-searchable-single-select__popup", className),
10990
10986
  children,
10991
10987
  ref
@@ -11011,17 +11007,6 @@ var Separator$2 = forwardRef((props, ref) => {
11011
11007
  ...rest
11012
11008
  });
11013
11009
  });
11014
- var ItemIndicator$1 = forwardRef((props, ref) => {
11015
- const { className, ...rest } = props;
11016
- return /* @__PURE__ */ jsx(Combobox.ItemIndicator, {
11017
- "data-c13y-component": "searchable-single-select-item-indicator",
11018
- keepMounted: true,
11019
- className: "ds-searchable-single-select__item-indicator-wrapper",
11020
- ref,
11021
- ...rest,
11022
- children: /* @__PURE__ */ jsx("div", { className: clsx$1("ds-searchable-single-select__item-indicator", className) })
11023
- });
11024
- });
11025
11010
  var GroupLabel$1 = forwardRef((props, ref) => {
11026
11011
  const { className, ...rest } = props;
11027
11012
  return /* @__PURE__ */ jsx(Combobox.GroupLabel, {
@@ -11049,7 +11034,6 @@ var SearchableSingleSelect = {
11049
11034
  GroupLabel: GroupLabel$1,
11050
11035
  Popup: Popup$1,
11051
11036
  Item: Item$2,
11052
- ItemIndicator: ItemIndicator$1,
11053
11037
  Separator: Separator$2,
11054
11038
  Input: Input$1,
11055
11039
  Empty: Empty$1
@@ -11113,7 +11097,7 @@ var Popup = forwardRef((props, ref) => {
11113
11097
  ...positionerProps,
11114
11098
  children: /* @__PURE__ */ jsx(Select$1.Popup, {
11115
11099
  ...c13y,
11116
- "data-c13y-component": "select-popover",
11100
+ "data-c13y-component": "select-popup",
11117
11101
  className: clsx$1("ds-select__popup", className),
11118
11102
  children,
11119
11103
  ref
@@ -11655,7 +11639,6 @@ var TextField = forwardRef((props, ref) => {
11655
11639
  }),
11656
11640
  /* @__PURE__ */ jsx(Input, {
11657
11641
  className: clsx$1("ds-text-field__input", { "ds-text-field__input--has-leading-icon": leadingIcon }, { "ds-text-field__input--has-trailing-icon": trailingIcon }, className),
11658
- "data-c13y-component": "text-field-input",
11659
11642
  ref,
11660
11643
  ...rest
11661
11644
  }),
@@ -11831,7 +11814,7 @@ var Tooltip = {
11831
11814
  ...positionerProps,
11832
11815
  children: /* @__PURE__ */ jsx(Tooltip$1.Popup, {
11833
11816
  ...c13y,
11834
- "data-c13y-component": "tooltip-popover",
11817
+ "data-c13y-component": "tooltip",
11835
11818
  className: clsx$1(`ds-tooltip--${variant}`, "ds-tooltip", className),
11836
11819
  id: context?.id,
11837
11820
  children,