dhre-ui-kit 2.0.9 → 2.0.11

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
@@ -98,6 +98,8 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
98
98
  Theme2["CONTENT_STATIC"] = "CONTENT_STATIC";
99
99
  Theme2["CONTENT_PRIMARY_STATIC"] = "CONTENT_PRIMARY_STATIC";
100
100
  Theme2["CONTENT_SECONDRY_STATIC"] = "CONTENT_SECONDRY_STATIC";
101
+ Theme2["CONTENT_SECONDARY_TEXT"] = "CONTENT_SECONDARY_TEXT";
102
+ Theme2["CONTENT_SECTION_HEADER_TEXT"] = "CONTENT_SECTION_HEADER_TEXT";
101
103
  Theme2["BORDER_PRIMARY"] = "BORDER_PRIMARY";
102
104
  Theme2["BORDER_SECONDRY"] = "BORDER_SECONDRY";
103
105
  Theme2["BORDER_DISABLE"] = "BORDER_DISABLE";
@@ -180,6 +182,14 @@ const theme = {
180
182
  light: "#686868",
181
183
  dark: "#A7A7A7"
182
184
  },
185
+ [Theme.CONTENT_SECONDARY_TEXT]: {
186
+ light: "#686868",
187
+ dark: "#C4BFB6"
188
+ },
189
+ [Theme.CONTENT_SECTION_HEADER_TEXT]: {
190
+ light: "#00263A",
191
+ dark: "#E3D6BF"
192
+ },
183
193
  [Theme.CONTENT_DISABLE]: {
184
194
  light: "#A7A7A7",
185
195
  dark: "#686868"
@@ -7598,8 +7608,10 @@ const ScrollableList = ({
7598
7608
  defaultItemTextColor = "CONTENT_SECONDRY",
7599
7609
  activeTab,
7600
7610
  errorStyle,
7611
+ errorTextStyle,
7601
7612
  activeTextStyle,
7602
- enableTextWrap
7613
+ enableTextWrap,
7614
+ inActiveTextStyle
7603
7615
  }) => {
7604
7616
  const [selectedItem, setSelectedItem] = useState(
7605
7617
  data && data.length > 0 ? data[0].name : null
@@ -7639,7 +7651,7 @@ const ScrollableList = ({
7639
7651
  text: item.name,
7640
7652
  variant: "L1_REGULAR",
7641
7653
  textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor,
7642
- style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
7654
+ style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : inActiveTextStyle ? inActiveTextStyle : {}
7643
7655
  }
7644
7656
  )),
7645
7657
  item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
@@ -7648,7 +7660,7 @@ const ScrollableList = ({
7648
7660
  text: item?.errorText,
7649
7661
  variant: FontStyle.L2_REGULAR,
7650
7662
  textColor: Theme.CONTENT_PRIMARY,
7651
- style: styles.errorTextStyle
7663
+ style: [styles.errorTextStyle, errorTextStyle]
7652
7664
  }
7653
7665
  ) : "") : null
7654
7666
  ))