dhre-ui-kit 3.2.0 → 3.3.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/lib/index.mjs CHANGED
@@ -189,6 +189,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
189
189
  Theme2["STROKE_ACTIVE"] = "STROKE_ACTIVE";
190
190
  Theme2["STROKE_DISABLED_SELECTED"] = "STROKE_DISABLED_SELECTED";
191
191
  Theme2["SHADOW_10"] = "SHADOW_10";
192
+ Theme2["SHADOW_SOFT_LIGHTEST"] = "SHADOW_SOFT_LIGHTEST";
192
193
  return Theme2;
193
194
  })(Theme || {});
194
195
 
@@ -876,6 +877,12 @@ const theme = {
876
877
  [Theme.SHADOW_10]: {
877
878
  dark: "rgba(255, 255, 255, 0.20)",
878
879
  light: "rgba(0, 0, 0, 0.10)"
880
+ },
881
+ // Figma: effects/dh-shadow/5, "Shadow/Soft/Lightest" (dropdown/menu surfaces).
882
+ [Theme.SHADOW_SOFT_LIGHTEST]: {
883
+ dark: "rgba(255, 255, 255, 0.05)",
884
+ light: "rgba(0, 10, 40, 0.05)"
885
+ // light-theme value pending DHDS Figma spec
879
886
  }
880
887
  };
881
888
 
@@ -11877,19 +11884,32 @@ const CustomDropdown = (props) => {
11877
11884
  };
11878
11885
  const renderItem = (item) => {
11879
11886
  const isSelected = item[valueField] === value;
11880
- return /* @__PURE__ */ React.createElement(View, { style: [styles$6.itemContainer, itemContainerStyle] }, /* @__PURE__ */ React.createElement(
11881
- Text,
11887
+ return /* @__PURE__ */ React.createElement(
11888
+ View,
11882
11889
  {
11883
11890
  style: [
11884
- styles$6.itemText,
11885
- FONT_STYLES[FontStyle.BODY2_LIGHT],
11886
- { color: theme.CONTENT_PRIMARY },
11887
- itemTextStyle,
11888
- isSelected && selectedItemTextStyle
11891
+ styles$6.itemContainer,
11892
+ isSelected && {
11893
+ backgroundColor: theme.SURFACE_INVERTED,
11894
+ borderRadius: DHRE_RADIUS_BASE.RADIUS_8
11895
+ },
11896
+ itemContainerStyle
11889
11897
  ]
11890
11898
  },
11891
- item[labelField]
11892
- ));
11899
+ /* @__PURE__ */ React.createElement(
11900
+ Text,
11901
+ {
11902
+ style: [
11903
+ styles$6.itemText,
11904
+ FONT_STYLES[FontStyle.BODY1_MEDIUM],
11905
+ { color: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_PRIMARY },
11906
+ itemTextStyle,
11907
+ isSelected && selectedItemTextStyle
11908
+ ]
11909
+ },
11910
+ item[labelField]
11911
+ )
11912
+ );
11893
11913
  };
11894
11914
  return /* @__PURE__ */ React.createElement(View, { style: [styles$6.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
11895
11915
  Dropdown,
@@ -11942,7 +11962,13 @@ const CustomDropdown = (props) => {
11942
11962
  backgroundColor: theme.SURFACE_SECONDARY,
11943
11963
  borderColor: theme.STROKE_TERTIARY,
11944
11964
  borderWidth: 1,
11945
- borderRadius: DHRE_RADIUS_BASE.RADIUS_8
11965
+ borderRadius: DHRE_RADIUS_BASE.RADIUS_8,
11966
+ padding: DHRE_PADDING_BASE.PADDING_16,
11967
+ shadowColor: theme.SHADOW_SOFT_LIGHTEST,
11968
+ shadowOffset: { width: 0, height: 2 },
11969
+ shadowOpacity: 1,
11970
+ shadowRadius: 10,
11971
+ elevation: 4
11946
11972
  },
11947
11973
  menuContainerStyle
11948
11974
  ],
@@ -12003,8 +12029,10 @@ const styles$6 = StyleSheet.create({
12003
12029
  maxHeight: verticalScale(150)
12004
12030
  },
12005
12031
  itemContainer: {
12032
+ minHeight: verticalScale(48),
12006
12033
  paddingVertical: verticalScale(8),
12007
- paddingHorizontal: horizontalScale(12)
12034
+ paddingHorizontal: horizontalScale(16),
12035
+ justifyContent: "center"
12008
12036
  },
12009
12037
  itemText: {},
12010
12038
  helperText: {