dhre-ui-kit 0.0.172 → 0.0.174

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.d.ts CHANGED
@@ -282,7 +282,8 @@ declare enum Theme {
282
282
  WARNING = "WARNING",
283
283
  SUCCESS = "SUCCESS",
284
284
  INFO = "INFO",
285
- ERROR = "ERROR"
285
+ ERROR = "ERROR",
286
+ TRANSPARENT_INVERTED = "TRANSPARENT_INVERTED"
286
287
  }
287
288
 
288
289
  interface CustomProgressBarProps {
@@ -872,6 +873,10 @@ declare const theme: {
872
873
  light: string;
873
874
  dark: string;
874
875
  };
876
+ TRANSPARENT_INVERTED: {
877
+ light: string;
878
+ dark: string;
879
+ };
875
880
  };
876
881
 
877
882
  declare const DHRE_COLORS_PRIMARY: {
package/lib/index.js CHANGED
@@ -14,6 +14,7 @@ var reactNativeCalendars = require('react-native-calendars');
14
14
  var CountryPicker = require('react-native-country-picker-modal');
15
15
  var reactNativePaper = require('react-native-paper');
16
16
  var reactNativeElementDropdown = require('react-native-element-dropdown');
17
+ var assets = require('src/assets');
17
18
  var DocumentPicker = require('react-native-document-picker');
18
19
  var RNFS = require('react-native-fs');
19
20
  var Clipboard = require('@react-native-clipboard/clipboard');
@@ -141,6 +142,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
141
142
  Theme2["SUCCESS"] = "SUCCESS";
142
143
  Theme2["INFO"] = "INFO";
143
144
  Theme2["ERROR"] = "ERROR";
145
+ Theme2["TRANSPARENT_INVERTED"] = "TRANSPARENT_INVERTED";
144
146
  return Theme2;
145
147
  })(Theme || {});
146
148
 
@@ -272,6 +274,10 @@ const theme = {
272
274
  [Theme.ERROR]: {
273
275
  light: "#EB0542",
274
276
  dark: "#EB0542"
277
+ },
278
+ [Theme.TRANSPARENT_INVERTED]: {
279
+ light: "#68686833",
280
+ dark: "#FFFFFF33"
275
281
  }
276
282
  };
277
283
 
@@ -309,44 +315,44 @@ const createFontStyle = (fontFamily, fontSize, lineHeight) => ({
309
315
  fontFamily
310
316
  });
311
317
  const FONT_STYLES = {
312
- [FontStyle.H1_BOLD]: createFontStyle("MeraasAktiv-Bd", 40, 56),
313
- [FontStyle.H2_BOLD]: createFontStyle("MeraasAktiv-Bd", 36, 50.4),
314
- [FontStyle.H3_BOLD]: createFontStyle("MeraasAktiv-Bd", 32, 44.8),
315
- [FontStyle.H4_BOLD]: createFontStyle("MeraasAktiv-Bd", 26, 36.4),
316
- [FontStyle.H5_BOLD]: createFontStyle("MeraasAktiv-Bd", 24, 33.6),
317
- [FontStyle.H6_BOLD]: createFontStyle("MeraasAktiv-Bd", 22, 30.8),
318
- [FontStyle.H7_BOLD]: createFontStyle("MeraasAktiv-Bd", 20, 28),
319
- [FontStyle.H8_BOLD]: createFontStyle("MeraasAktiv-Bd", 18, 25.2),
320
- [FontStyle.H1_REGULAR]: createFontStyle("MeraasAktiv-Rg", 40, 56),
321
- [FontStyle.H2_REGULAR]: createFontStyle("MeraasAktiv-Rg", 36, 50.4),
322
- [FontStyle.H3_REGULAR]: createFontStyle("MeraasAktiv-Rg", 32, 44.8),
323
- [FontStyle.H4_REGULAR]: createFontStyle("MeraasAktiv-Rg", 26, 36.4),
324
- [FontStyle.H5_REGULAR]: createFontStyle("MeraasAktiv-Rg", 24, 33.6),
325
- [FontStyle.H6_REGULAR]: createFontStyle("MeraasAktiv-Rg", 22, 30.8),
326
- [FontStyle.H7_REGULAR]: createFontStyle("MeraasAktiv-Rg", 20, 28),
327
- [FontStyle.H8_REGULAR]: createFontStyle("MeraasAktiv-Rg", 18, 25.2),
328
- [FontStyle.H1_LIGHT]: createFontStyle("MeraasAktiv-Lt", 40, 56),
329
- [FontStyle.H2_LIGHT]: createFontStyle("MeraasAktiv-Lt", 36, 50.4),
330
- [FontStyle.H3_LIGHT]: createFontStyle("MeraasAktiv-Lt", 32, 44.8),
331
- [FontStyle.H4_LIGHT]: createFontStyle("MeraasAktiv-Lt", 26, 36.4),
332
- [FontStyle.H5_LIGHT]: createFontStyle("MeraasAktiv-Lt", 24, 33.6),
333
- [FontStyle.H6_LIGHT]: createFontStyle("MeraasAktiv-Lt", 22, 30.8),
334
- [FontStyle.H7_LIGHT]: createFontStyle("MeraasAktiv-Lt", 20, 28),
335
- [FontStyle.H8_LIGHT]: createFontStyle("MeraasAktiv-Lt", 18, 25.2),
336
- [FontStyle.B1_BOLD]: createFontStyle("MeraasAktiv-Bd", 20, 28),
337
- [FontStyle.B2_BOLD]: createFontStyle("MeraasAktiv-Bd", 18, 25.2),
338
- [FontStyle.B3_BOLD]: createFontStyle("MeraasAktiv-Bd", 16, 22.4),
339
- [FontStyle.B4_BOLD]: createFontStyle("MeraasAktiv-Bd", 14, 22.4),
340
- [FontStyle.B1_REGULAR]: createFontStyle("MeraasAktiv-Rg", 20, 28),
341
- [FontStyle.B2_REGULAR]: createFontStyle("MeraasAktiv-Rg", 18, 25.2),
342
- [FontStyle.B3_REGULAR]: createFontStyle("MeraasAktiv-Rg", 16, 22.4),
343
- [FontStyle.B4_REGULAR]: createFontStyle("MeraasAktiv-Rg", 14, 22.4),
344
- [FontStyle.L1_BOLD]: createFontStyle("MeraasAktiv-Bd", 14, 19.6),
345
- [FontStyle.L2_BOLD]: createFontStyle("MeraasAktiv-Bd", 12, 16.8),
346
- [FontStyle.L3_BOLD]: createFontStyle("MeraasAktiv-Bd", 10, 14),
347
- [FontStyle.L1_REGULAR]: createFontStyle("MeraasAktiv-Rg", 14, 19.6),
348
- [FontStyle.L2_REGULAR]: createFontStyle("MeraasAktiv-Rg", 12, 16.8),
349
- [FontStyle.L3_REGULAR]: createFontStyle("MeraasAktiv-Rg", 10, 14)
318
+ [FontStyle.H1_BOLD]: createFontStyle("MeraasAktiv-Bold", 40, 56),
319
+ [FontStyle.H2_BOLD]: createFontStyle("MeraasAktiv-Bold", 36, 50.4),
320
+ [FontStyle.H3_BOLD]: createFontStyle("MeraasAktiv-Bold", 32, 44.8),
321
+ [FontStyle.H4_BOLD]: createFontStyle("MeraasAktiv-Bold", 26, 36.4),
322
+ [FontStyle.H5_BOLD]: createFontStyle("MeraasAktiv-Bold", 24, 33.6),
323
+ [FontStyle.H6_BOLD]: createFontStyle("MeraasAktiv-Bold", 22, 30.8),
324
+ [FontStyle.H7_BOLD]: createFontStyle("MeraasAktiv-Bold", 20, 28),
325
+ [FontStyle.H8_BOLD]: createFontStyle("MeraasAktiv-Bold", 18, 25.2),
326
+ [FontStyle.H1_REGULAR]: createFontStyle("MeraasAktiv-Regular", 40, 56),
327
+ [FontStyle.H2_REGULAR]: createFontStyle("MeraasAktiv-Regular", 36, 50.4),
328
+ [FontStyle.H3_REGULAR]: createFontStyle("MeraasAktiv-Regular", 32, 44.8),
329
+ [FontStyle.H4_REGULAR]: createFontStyle("MeraasAktiv-Regular", 26, 36.4),
330
+ [FontStyle.H5_REGULAR]: createFontStyle("MeraasAktiv-Regular", 24, 33.6),
331
+ [FontStyle.H6_REGULAR]: createFontStyle("MeraasAktiv-Regular", 22, 30.8),
332
+ [FontStyle.H7_REGULAR]: createFontStyle("MeraasAktiv-Regular", 20, 28),
333
+ [FontStyle.H8_REGULAR]: createFontStyle("MeraasAktiv-Regular", 18, 25.2),
334
+ [FontStyle.H1_LIGHT]: createFontStyle("MeraasAktiv-Light", 40, 56),
335
+ [FontStyle.H2_LIGHT]: createFontStyle("MeraasAktiv-Light", 36, 50.4),
336
+ [FontStyle.H3_LIGHT]: createFontStyle("MeraasAktiv-Light", 32, 44.8),
337
+ [FontStyle.H4_LIGHT]: createFontStyle("MeraasAktiv-Light", 26, 36.4),
338
+ [FontStyle.H5_LIGHT]: createFontStyle("MeraasAktiv-Light", 24, 33.6),
339
+ [FontStyle.H6_LIGHT]: createFontStyle("MeraasAktiv-Light", 22, 30.8),
340
+ [FontStyle.H7_LIGHT]: createFontStyle("MeraasAktiv-Light", 20, 28),
341
+ [FontStyle.H8_LIGHT]: createFontStyle("MeraasAktiv-Light", 18, 25.2),
342
+ [FontStyle.B1_BOLD]: createFontStyle("MeraasAktiv-Bold", 20, 28),
343
+ [FontStyle.B2_BOLD]: createFontStyle("MeraasAktiv-Bold", 18, 25.2),
344
+ [FontStyle.B3_BOLD]: createFontStyle("MeraasAktiv-Bold", 16, 22.4),
345
+ [FontStyle.B4_BOLD]: createFontStyle("MeraasAktiv-Bold", 14, 22.4),
346
+ [FontStyle.B1_REGULAR]: createFontStyle("MeraasAktiv-Regular", 20, 28),
347
+ [FontStyle.B2_REGULAR]: createFontStyle("MeraasAktiv-Regular", 18, 25.2),
348
+ [FontStyle.B3_REGULAR]: createFontStyle("MeraasAktiv-Regular", 16, 22.4),
349
+ [FontStyle.B4_REGULAR]: createFontStyle("MeraasAktiv-Regular", 14, 22.4),
350
+ [FontStyle.L1_BOLD]: createFontStyle("MeraasAktiv-Bold", 14, 19.6),
351
+ [FontStyle.L2_BOLD]: createFontStyle("MeraasAktiv-Bold", 12, 16.8),
352
+ [FontStyle.L3_BOLD]: createFontStyle("MeraasAktiv-Bold", 10, 14),
353
+ [FontStyle.L1_REGULAR]: createFontStyle("MeraasAktiv-Regular", 14, 19.6),
354
+ [FontStyle.L2_REGULAR]: createFontStyle("MeraasAktiv-Regular", 12, 16.8),
355
+ [FontStyle.L3_REGULAR]: createFontStyle("MeraasAktiv-Regular", 10, 14)
350
356
  };
351
357
 
352
358
  const CustomTypography = ({
@@ -2175,7 +2181,7 @@ const CustomSearchBar = ({
2175
2181
  styles$j.inputContainer,
2176
2182
  {
2177
2183
  height: verticalScale(height),
2178
- borderColor: disabled ? disableBorderColor : value ? borderColor : "#A7A7A7"
2184
+ borderColor: disabled ? disableBorderColor : value ? borderColor : "#686868"
2179
2185
  },
2180
2186
  inputContainerStyle
2181
2187
  ],
@@ -2689,25 +2695,31 @@ const styles$d = reactNative.StyleSheet.create({
2689
2695
  borderRadius: 10
2690
2696
  },
2691
2697
  cancelText: {
2692
- color: "#007AFF"
2698
+ color: "#007AFF",
2699
+ alignSelf: "center"
2693
2700
  },
2694
2701
  title: {
2695
2702
  textAlign: "center",
2696
- marginTop: 13
2703
+ marginTop: 13,
2704
+ alignSelf: "center"
2697
2705
  },
2698
2706
  subtitle: {
2699
2707
  textAlign: "center",
2700
2708
  marginTop: 2,
2701
- marginBottom: 13
2709
+ marginBottom: 13,
2710
+ alignSelf: "center"
2702
2711
  },
2703
2712
  optionButton: {
2704
2713
  padding: 16,
2705
2714
  borderRadius: 8,
2706
- alignItems: "center"
2715
+ alignItems: "center",
2716
+ textAlign: "center"
2707
2717
  },
2708
2718
  optionText: {
2709
2719
  fontSize: 16,
2710
- color: "#007AFF"
2720
+ color: "#007AFF",
2721
+ alignSelf: "center",
2722
+ textAlign: "center"
2711
2723
  },
2712
2724
  cancelButton: {
2713
2725
  marginTop: 10,
@@ -3429,7 +3441,8 @@ const CustomDropdown = ({
3429
3441
  itemTextStyle,
3430
3442
  containerStyle: menuContainerStyle,
3431
3443
  activeColor,
3432
- itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
3444
+ itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
3445
+ renderRightIcon: () => /* @__PURE__ */ React__default["default"].createElement(assets.DropDownArrow, null)
3433
3446
  }
3434
3447
  ));
3435
3448
  };