@carto/meridian-ds 2.12.0 → 2.12.1

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
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## 2.0
6
6
 
7
+ ### 2.12.1
8
+
9
+ - Allow customization of menu item label in MultipleSelectField [#359](https://github.com/CartoDB/meridian-ds/pull/359)
10
+ - Custom Icons [#374](https://github.com/CartoDB/meridian-ds/pull/374)
11
+
7
12
  ### 2.12.0
8
13
 
9
14
  - Added onBack button functionality to the DialogHeader component [#372](https://github.com/CartoDB/meridian-ds/pull/372)
@@ -638,6 +638,7 @@ function _MultipleSelectField({
638
638
  noneSelectedText,
639
639
  selectedText,
640
640
  selectAllText,
641
+ renderItemLabel,
641
642
  ...props
642
643
  }, ref) {
643
644
  const {
@@ -771,7 +772,7 @@ function _MultipleSelectField({
771
772
  checked: currentOptions.includes(option.value)
772
773
  }
773
774
  ),
774
- /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { primary: option.label })
775
+ renderItemLabel ? renderItemLabel(option) : /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { primary: option.label })
775
776
  ]
776
777
  },
777
778
  option.value
@@ -622,6 +622,7 @@ function _MultipleSelectField({
622
622
  noneSelectedText,
623
623
  selectedText,
624
624
  selectAllText,
625
+ renderItemLabel,
625
626
  ...props
626
627
  }, ref) {
627
628
  const {
@@ -755,7 +756,7 @@ function _MultipleSelectField({
755
756
  checked: currentOptions.includes(option.value)
756
757
  }
757
758
  ),
758
- /* @__PURE__ */ jsx(ListItemText$1, { primary: option.label })
759
+ renderItemLabel ? renderItemLabel(option) : /* @__PURE__ */ jsx(ListItemText$1, { primary: option.label })
759
760
  ]
760
761
  },
761
762
  option.value