@alma-oss/spirit-web-react 4.7.0 → 4.8.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.8.0](https://github.com/alma-oss/spirit-design-system/compare/@alma-oss/spirit-web-react@4.7.0...@alma-oss/spirit-web-react@4.8.0) (2026-06-02)
7
+
8
+ ### Features
9
+
10
+ - **web, web-react:** add popoverProps and labelProps to Picker #DS-2568, closes [#DS-2568](https://github.com/alma-oss/spirit-design-system/issues/DS-2568)
11
+
12
+ ### Code Refactoring
13
+
14
+ - **web-react:** use Grid and Stack in `UNSTABLE_FileUpload` demos
15
+
6
16
  ## [4.7.0](https://github.com/alma-oss/spirit-design-system/compare/@alma-oss/spirit-web-react@4.6.1...@alma-oss/spirit-web-react@4.7.0) (2026-05-21)
7
17
 
8
18
  ### Features
@@ -16372,6 +16372,9 @@
16372
16372
  UNSTABLE_HeaderLogo.spiritComponent = "UNSTABLE_HeaderLogo";
16373
16373
  UNSTABLE_HeaderLogo.displayName = "UNSTABLE_HeaderLogo";
16374
16374
  const DEFAULT_SIZE = Sizes.MEDIUM;
16375
+ const DEFAULT_POPOVER_PROPS = {
16376
+ theme: "theme-light-default"
16377
+ };
16375
16378
  const PICKER_NESTED_SIZE_MAP = {
16376
16379
  [Sizes.SMALL]: SizesExtended.XSMALL,
16377
16380
  [Sizes.MEDIUM]: SizesExtended.SMALL,
@@ -16737,9 +16740,12 @@
16737
16740
  isLabelHidden = false,
16738
16741
  isOpen,
16739
16742
  isRequired = false,
16743
+ dropdownProps,
16740
16744
  label,
16745
+ labelProps,
16741
16746
  onSelectionChange,
16742
16747
  onToggle,
16748
+ popoverProps = DEFAULT_POPOVER_PROPS,
16743
16749
  removeAllLabel = t("picker.removeAll"),
16744
16750
  renderTags,
16745
16751
  selectedKeys,
@@ -16862,8 +16868,17 @@
16862
16868
  [close, selectedKeys]
16863
16869
  );
16864
16870
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PickerContextProvider, { value: { size: size2, tagDescriptionId }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ...styleProps, className: classNames(classProps.root, styleProps.className), ...transferProps, children: [
16865
- /* @__PURE__ */ jsxRuntimeExports.jsx(Label, { id: labelId, UNSAFE_className: classProps.label, elementType: "span", children: label }),
16866
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { id: popoverId, isOpen, onToggle, children: [
16871
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
16872
+ Label,
16873
+ {
16874
+ ...labelProps,
16875
+ id: labelId,
16876
+ elementType: "span",
16877
+ UNSAFE_className: classNames(classProps.label, labelProps?.UNSAFE_className),
16878
+ children: label
16879
+ }
16880
+ ),
16881
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { ...dropdownProps, id: popoverId, isOpen, onToggle, children: [
16867
16882
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { role: "group", "aria-label": label, className: classProps.inputContainer, children: [
16868
16883
  /* @__PURE__ */ jsxRuntimeExports.jsx(
16869
16884
  "div",
@@ -16901,6 +16916,7 @@
16901
16916
  /* @__PURE__ */ jsxRuntimeExports.jsx(
16902
16917
  DropdownPopover,
16903
16918
  {
16919
+ ...popoverProps,
16904
16920
  "aria-labelledby": labelId,
16905
16921
  role: "dialog",
16906
16922
  "aria-modal": "true",