@adiraku/react-native-ui 0.1.17 → 0.2.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.
Files changed (80) hide show
  1. package/README.md +38 -59
  2. package/lib/commonjs/components/Appbar/Appbar.component.js +9 -6
  3. package/lib/commonjs/components/Appbar/Appbar.component.js.map +1 -1
  4. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js +9 -6
  5. package/lib/commonjs/components/BottomSheet/BottomSheet.component.js.map +1 -1
  6. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +1 -3
  7. package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  8. package/lib/commonjs/components/RadioInput/RadioInput.component.js +1 -3
  9. package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
  10. package/lib/commonjs/components/Snackbar/Snackbar.component.js +49 -1
  11. package/lib/commonjs/components/Snackbar/Snackbar.component.js.map +1 -1
  12. package/lib/commonjs/components/Snackbar/Snakbar.style.js +4 -0
  13. package/lib/commonjs/components/Snackbar/Snakbar.style.js.map +1 -1
  14. package/lib/commonjs/components/TextInput/TextInput.component.js +3 -7
  15. package/lib/commonjs/components/TextInput/TextInput.component.js.map +1 -1
  16. package/lib/commonjs/components/button/button.component.js +8 -3
  17. package/lib/commonjs/components/button/button.component.js.map +1 -1
  18. package/lib/commonjs/components/countdown/countdown.component.js +45 -47
  19. package/lib/commonjs/components/countdown/countdown.component.js.map +1 -1
  20. package/lib/commonjs/components/countdown/countdown.style.js +2 -1
  21. package/lib/commonjs/components/countdown/countdown.style.js.map +1 -1
  22. package/lib/commonjs/components/index.js +6 -0
  23. package/lib/commonjs/components/index.js.map +1 -1
  24. package/lib/module/components/Appbar/Appbar.component.js +9 -6
  25. package/lib/module/components/Appbar/Appbar.component.js.map +1 -1
  26. package/lib/module/components/BottomSheet/BottomSheet.component.js +9 -6
  27. package/lib/module/components/BottomSheet/BottomSheet.component.js.map +1 -1
  28. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +1 -3
  29. package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
  30. package/lib/module/components/RadioInput/RadioInput.component.js +1 -3
  31. package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
  32. package/lib/module/components/Snackbar/Snackbar.component.js +48 -2
  33. package/lib/module/components/Snackbar/Snackbar.component.js.map +1 -1
  34. package/lib/module/components/Snackbar/Snakbar.style.js +4 -0
  35. package/lib/module/components/Snackbar/Snakbar.style.js.map +1 -1
  36. package/lib/module/components/TextInput/TextInput.component.js +3 -7
  37. package/lib/module/components/TextInput/TextInput.component.js.map +1 -1
  38. package/lib/module/components/button/button.component.js +8 -3
  39. package/lib/module/components/button/button.component.js.map +1 -1
  40. package/lib/module/components/countdown/countdown.component.js +45 -47
  41. package/lib/module/components/countdown/countdown.component.js.map +1 -1
  42. package/lib/module/components/countdown/countdown.style.js +2 -1
  43. package/lib/module/components/countdown/countdown.style.js.map +1 -1
  44. package/lib/module/components/index.js +1 -1
  45. package/lib/module/components/index.js.map +1 -1
  46. package/lib/typescript/components/Appbar/Appbar.component.d.ts.map +1 -1
  47. package/lib/typescript/components/Appbar/Appbar.type.d.ts +4 -0
  48. package/lib/typescript/components/Appbar/Appbar.type.d.ts.map +1 -1
  49. package/lib/typescript/components/BottomSheet/BottomSheet.component.d.ts.map +1 -1
  50. package/lib/typescript/components/BottomSheet/BottomSheet.type.d.ts +4 -0
  51. package/lib/typescript/components/BottomSheet/BottomSheet.type.d.ts.map +1 -1
  52. package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
  53. package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
  54. package/lib/typescript/components/Snackbar/Snackbar.component.d.ts +10 -3
  55. package/lib/typescript/components/Snackbar/Snackbar.component.d.ts.map +1 -1
  56. package/lib/typescript/components/Snackbar/Snakbar.style.d.ts +1 -0
  57. package/lib/typescript/components/Snackbar/Snakbar.style.d.ts.map +1 -1
  58. package/lib/typescript/components/TextInput/TextInput.component.d.ts.map +1 -1
  59. package/lib/typescript/components/button/button.component.d.ts.map +1 -1
  60. package/lib/typescript/components/countdown/countdown.component.d.ts.map +1 -1
  61. package/lib/typescript/components/countdown/countdown.style.d.ts.map +1 -1
  62. package/lib/typescript/components/countdown/countdown.type.d.ts +5 -0
  63. package/lib/typescript/components/countdown/countdown.type.d.ts.map +1 -1
  64. package/lib/typescript/components/index.d.ts +1 -1
  65. package/lib/typescript/components/index.d.ts.map +1 -1
  66. package/package.json +5 -3
  67. package/src/components/Appbar/Appbar.component.tsx +9 -1
  68. package/src/components/Appbar/Appbar.type.ts +7 -0
  69. package/src/components/BottomSheet/BottomSheet.component.tsx +9 -3
  70. package/src/components/BottomSheet/BottomSheet.type.ts +8 -0
  71. package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +0 -1
  72. package/src/components/RadioInput/RadioInput.component.tsx +0 -1
  73. package/src/components/Snackbar/Snackbar.component.tsx +53 -2
  74. package/src/components/Snackbar/Snakbar.style.tsx +6 -0
  75. package/src/components/TextInput/TextInput.component.tsx +3 -7
  76. package/src/components/button/button.component.tsx +8 -3
  77. package/src/components/countdown/countdown.component.tsx +44 -43
  78. package/src/components/countdown/countdown.style.tsx +1 -0
  79. package/src/components/countdown/countdown.type.ts +6 -0
  80. package/src/components/index.ts +1 -1
@@ -4,7 +4,17 @@ import { Typography } from '../typography/typography.component';
4
4
  import { getStyle } from './countdown.style';
5
5
  const Countdown = props => {
6
6
  const {
7
- targetDateTime
7
+ targetDateTime,
8
+ formats = [{
9
+ type: 'd',
10
+ trailingString: ' hari'
11
+ }, {
12
+ type: 'h'
13
+ }, {
14
+ type: 'm'
15
+ }, {
16
+ type: 's'
17
+ }]
8
18
  } = props;
9
19
  const computedStyle = getStyle();
10
20
  const [timeLeft, setTimeLeft] = React.useState(calculateTimeRemaining(targetDateTime));
@@ -13,62 +23,50 @@ const Countdown = props => {
13
23
  setTimeLeft(calculateTimeRemaining(targetDateTime));
14
24
  }, 1000);
15
25
  return () => clearInterval(timer);
16
- }, []);
26
+ }, [targetDateTime]);
17
27
  const formatTime = time => {
18
28
  if (time <= 0) {
19
29
  return {
20
- days: `0 hari`,
21
- hours: appendZero(0),
22
- minutes: appendZero(0),
23
- seconds: appendZero(0)
30
+ d: appendZero(0),
31
+ h: appendZero(0),
32
+ m: appendZero(0),
33
+ s: appendZero(0)
24
34
  };
25
35
  }
26
- const days = Math.floor(time / (1000 * 60 * 60 * 24));
27
- const hours = appendZero(Math.floor(time / (1000 * 60 * 60) % 24));
28
- const minutes = appendZero(Math.floor(time / 1000 / 60 % 60));
29
- const seconds = appendZero(Math.floor(time / 1000 % 60));
36
+ time /= 1000;
37
+ let day = Math.floor(time / (24 * 3600));
38
+ let remainingSeconds = time % (24 * 3600);
39
+ let hour = Math.floor(remainingSeconds / 3600);
40
+ remainingSeconds %= 3600;
41
+ let minute = Math.floor(remainingSeconds / 60);
42
+ let second = remainingSeconds % 60;
30
43
  return {
31
- days: `${days} hari`,
32
- hours,
33
- minutes,
34
- seconds
44
+ d: Math.floor(day),
45
+ h: Math.floor(hour),
46
+ m: Math.floor(minute),
47
+ s: Math.floor(second)
35
48
  };
36
49
  };
37
50
  return /*#__PURE__*/React.createElement(View, {
38
51
  style: [computedStyle.container]
39
- }, /*#__PURE__*/React.createElement(View, {
40
- style: [computedStyle.textContainer]
41
- }, /*#__PURE__*/React.createElement(Typography, {
42
- variant: "overline",
43
- style: [computedStyle.textLabel]
44
- }, formatTime(timeLeft).days)), /*#__PURE__*/React.createElement(View, {
45
- style: [computedStyle.dividerContainer]
46
- }, /*#__PURE__*/React.createElement(Typography, {
47
- variant: "overline"
48
- }, ":")), /*#__PURE__*/React.createElement(View, {
49
- style: [computedStyle.textContainer]
50
- }, /*#__PURE__*/React.createElement(Typography, {
51
- variant: "overline",
52
- style: [computedStyle.textLabel]
53
- }, formatTime(timeLeft).hours)), /*#__PURE__*/React.createElement(View, {
54
- style: [computedStyle.dividerContainer]
55
- }, /*#__PURE__*/React.createElement(Typography, {
56
- variant: "overline"
57
- }, ":")), /*#__PURE__*/React.createElement(View, {
58
- style: [computedStyle.textContainer]
59
- }, /*#__PURE__*/React.createElement(Typography, {
60
- variant: "overline",
61
- style: [computedStyle.textLabel]
62
- }, formatTime(timeLeft).minutes)), /*#__PURE__*/React.createElement(View, {
63
- style: [computedStyle.dividerContainer]
64
- }, /*#__PURE__*/React.createElement(Typography, {
65
- variant: "overline"
66
- }, ":")), /*#__PURE__*/React.createElement(View, {
67
- style: [computedStyle.textContainer]
68
- }, /*#__PURE__*/React.createElement(Typography, {
69
- variant: "overline",
70
- style: [computedStyle.textLabel]
71
- }, formatTime(timeLeft).seconds)));
52
+ }, formats.map((_ref, idx) => {
53
+ var _formatTime;
54
+ let {
55
+ type,
56
+ leadingString = '',
57
+ trailingString = ''
58
+ } = _ref;
59
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
60
+ style: [computedStyle.textContainer]
61
+ }, /*#__PURE__*/React.createElement(Typography, {
62
+ variant: "overline",
63
+ style: [computedStyle.textLabel]
64
+ }, leadingString + ((_formatTime = formatTime(timeLeft)) === null || _formatTime === void 0 ? void 0 : _formatTime[type]) + trailingString)), idx !== formats.length - 1 ? /*#__PURE__*/React.createElement(View, {
65
+ style: [computedStyle.dividerContainer]
66
+ }, /*#__PURE__*/React.createElement(Typography, {
67
+ variant: "overline"
68
+ }, ":")) : null);
69
+ }));
72
70
  };
73
71
  const calculateTimeRemaining = targetDateTime => {
74
72
  const currentTime = new Date().getTime();
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Typography","getStyle","Countdown","props","targetDateTime","computedStyle","timeLeft","setTimeLeft","useState","calculateTimeRemaining","useEffect","timer","setInterval","clearInterval","formatTime","time","days","hours","appendZero","minutes","seconds","Math","floor","container","textContainer","textLabel","dividerContainer","currentTime","Date","getTime","targetTime","difference","max","num","Number"],"sourceRoot":"..\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,CAACR,QAAQ,CAAC,CAACa,OAAO,CAClB,CACR,eACP,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACd,aAAa,CAACqB,gBAAgB;EAAE,gBAC5C,oBAAC,UAAU;IAAC,OAAO,EAAC;EAAU,GAAC,GAAC,CAAa,CACxC,eACP,oBAAC,IAAI;IAAC,KAAK,EAAE,CAACrB,aAAa,CAACmB,aAAa;EAAE,gBACzC,oBAAC,UAAU;IAAC,OAAO,EAAC,UAAU;IAAC,KAAK,EAAE,CAACnB,aAAa,CAACoB,SAAS;EAAE,GAC7DX,UAAU,CAACR,QAAQ,CAAC,CAACc,OAAO,CAClB,CACR,CACF;AAEX,CAAC;AAED,MAAMX,sBAAsB,GAC1BL,cAAgD,IACrC;EACX,MAAMuB,WAAW,GAAG,IAAIC,IAAI,EAAE,CAACC,OAAO,EAAE;EACxC,MAAMC,UAAU,GAAG,IAAIF,IAAI,CAACxB,cAAc,CAAC,CAACyB,OAAO,EAAE;EACrD,MAAME,UAAU,GAAGD,UAAU,GAAGH,WAAW;EAC3C,OAAON,IAAI,CAACW,GAAG,CAAC,CAAC,EAAED,UAAU,CAAC;AAChC,CAAC;AAED,MAAMb,UAAU,GAAIe,GAAoB,IAAK;EAC3C,IAAIC,MAAM,CAACD,GAAG,CAAC,GAAG,EAAE,EAAE;IACpB,OAAQ,IAAG,CAAE,EAAC;EAChB;EAEA,OAAOA,GAAG;AACZ,CAAC;AAED,SAAS/B,SAAS"}
1
+ {"version":3,"names":["React","View","Typography","getStyle","Countdown","props","targetDateTime","formats","type","trailingString","computedStyle","timeLeft","setTimeLeft","useState","calculateTimeRemaining","useEffect","timer","setInterval","clearInterval","formatTime","time","d","appendZero","h","m","s","day","Math","floor","remainingSeconds","hour","minute","second","container","map","idx","leadingString","textContainer","textLabel","length","dividerContainer","currentTime","Date","getTime","targetTime","difference","max","num","Number"],"sourceRoot":"..\\..\\src","sources":["countdown.component.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,O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CAAC,CACG;AAEX,CAAC;AAED,MAAM1B,sBAAsB,GAC1BR,cAAgD,IACrC;EACX,MAAMmC,WAAW,GAAG,IAAIC,IAAI,EAAE,CAACC,OAAO,EAAE;EACxC,MAAMC,UAAU,GAAG,IAAIF,IAAI,CAACpC,cAAc,CAAC,CAACqC,OAAO,EAAE;EACrD,MAAME,UAAU,GAAGD,UAAU,GAAGH,WAAW;EAC3C,OAAOd,IAAI,CAACmB,GAAG,CAAC,CAAC,EAAED,UAAU,CAAC;AAChC,CAAC;AAED,MAAMvB,UAAU,GAAIyB,GAAoB,IAAK;EAC3C,IAAIC,MAAM,CAACD,GAAG,CAAC,GAAG,EAAE,EAAE;IACpB,OAAQ,IAAG,CAAE,EAAC;EAChB;EAEA,OAAOA,GAAG;AACZ,CAAC;AAED,SAAS3C,SAAS"}
@@ -3,7 +3,8 @@ import { Palettes, Radius, Spacing } from '../../themes';
3
3
  export const getStyle = () => {
4
4
  const computedStyle = {};
5
5
  computedStyle.container = {
6
- flexDirection: 'row'
6
+ flexDirection: 'row',
7
+ alignSelf: 'flex-start'
7
8
  };
8
9
  computedStyle.textLabel = {
9
10
  color: Palettes.white[50]
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","Palettes","Radius","Spacing","getStyle","computedStyle","container","flexDirection","textLabel","color","white","textContainer","backgroundColor","black","justifyContent","alignItems","borderRadius","paddingHorizontal","minWidth","height","dividerContainer","width","create"],"sourceRoot":"..\\..\\src","sources":["countdown.style.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,QAAQ,cAAc;AAWxD,OAAO,MAAMC,QAAQ,GAAG,MAAM;EAC5B,MAAMC,aAAiC,GAAG,CAAC,CAAC;EAE5CA,aAAa,CAACC,SAAS,GAAG;IACxBC,aAAa,EAAE;EACjB,CAAC;EAEDF,aAAa,CAACG,SAAS,GAAG;IACxBC,KAAK,EAAER,QAAQ,CAACS,KAAK,CAAC,EAAE;EAC1B,CAAC;EAEDL,aAAa,CAACM,aAAa,GAAG;IAC5BC,eAAe,EAAEX,QAAQ,CAACY,KAAK,CAAC,GAAG,CAAC;IACpCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAEd,MAAM,CAAC,CAAC,CAAC;IACvBe,iBAAiB,EAAEd,OAAO,CAAC,CAAC,CAAC;IAC7Be,QAAQ,EAAE,EAAE;IACZC,MAAM,EAAE;EACV,CAAC;EAEDd,aAAa,CAACe,gBAAgB,GAAG;IAC/BN,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBM,KAAK,EAAE;EACT,CAAC;EAED,OAAOrB,UAAU,CAACsB,MAAM,CAACjB,aAAa,CAAC;AACzC,CAAC"}
1
+ {"version":3,"names":["StyleSheet","Palettes","Radius","Spacing","getStyle","computedStyle","container","flexDirection","alignSelf","textLabel","color","white","textContainer","backgroundColor","black","justifyContent","alignItems","borderRadius","paddingHorizontal","minWidth","height","dividerContainer","width","create"],"sourceRoot":"..\\..\\src","sources":["countdown.style.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,QAAQ,cAAc;AAWxD,OAAO,MAAMC,QAAQ,GAAG,MAAM;EAC5B,MAAMC,aAAiC,GAAG,CAAC,CAAC;EAE5CA,aAAa,CAACC,SAAS,GAAG;IACxBC,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE;EACb,CAAC;EAEDH,aAAa,CAACI,SAAS,GAAG;IACxBC,KAAK,EAAET,QAAQ,CAACU,KAAK,CAAC,EAAE;EAC1B,CAAC;EAEDN,aAAa,CAACO,aAAa,GAAG;IAC5BC,eAAe,EAAEZ,QAAQ,CAACa,KAAK,CAAC,GAAG,CAAC;IACpCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAEf,MAAM,CAAC,CAAC,CAAC;IACvBgB,iBAAiB,EAAEf,OAAO,CAAC,CAAC,CAAC;IAC7BgB,QAAQ,EAAE,EAAE;IACZC,MAAM,EAAE;EACV,CAAC;EAEDf,aAAa,CAACgB,gBAAgB,GAAG;IAC/BN,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBM,KAAK,EAAE;EACT,CAAC;EAED,OAAOtB,UAAU,CAACuB,MAAM,CAAClB,aAAa,CAAC;AACzC,CAAC"}
@@ -16,7 +16,7 @@ export { RadioInput } from './RadioInput/RadioInput.component';
16
16
  export { CheckBoxInput } from './CheckBoxInput/CheckBoxInput.component';
17
17
  export { Checkbox } from './Checkbox/Checkbox.component';
18
18
  export { Appbar } from './Appbar/Appbar.component';
19
- export { Snackbar } from './Snackbar/Snackbar.component';
19
+ export { Snackbar, SnackbarComponent } from './Snackbar/Snackbar.component';
20
20
  export { Switch } from './switch/switch.component';
21
21
  export { Dot } from './dot/dot.component';
22
22
  export { InformationBox } from './information-box/information-box.component';
@@ -1 +1 @@
1
- {"version":3,"names":["Button","Label","BaseComponent","Typography","Coachmark","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","BottomSheet","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","Switch","Dot","InformationBox","RoundedTab","Countdown"],"sourceRoot":"..\\..\\src","sources":["index.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,2BAA2B;AAClD,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,eAAe,QAAQ,+CAA+C;AAC/E,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,cAAc,QAAQ,2CAA2C;AAC1E,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,GAAG,QAAQ,qBAAqB;AACzC,SAASC,cAAc,QAAQ,6CAA6C;AAC5E,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,SAAS,QAAQ,iCAAiC"}
1
+ {"version":3,"names":["Button","Label","BaseComponent","Typography","Coachmark","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","BottomSheet","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","SnackbarComponent","Switch","Dot","InformationBox","RoundedTab","Countdown"],"sourceRoot":"..\\..\\src","sources":["index.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,2BAA2B;AAClD,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,eAAe,QAAQ,+CAA+C;AAC/E,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,cAAc,QAAQ,2CAA2C;AAC1E,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,QAAQ,EAAEC,iBAAiB,QAAQ,+BAA+B;AAC3E,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,GAAG,QAAQ,qBAAqB;AACzC,SAASC,cAAc,QAAQ,6CAA6C;AAC5E,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,SAAS,QAAQ,iCAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Appbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAoDhD,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Appbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CA4DhD,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,15 +1,19 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ViewStyle } from 'react-native';
3
+ import type { TouchableHighlightProps, TextProps } from 'react-native';
3
4
  export interface AppbarProps {
4
5
  title?: string;
5
6
  onBackPress: () => void;
6
7
  backIcon?: ReactNode;
8
+ backIconProps?: TouchableHighlightProps;
9
+ titleProps?: TextProps;
7
10
  customHeader?: ReactNode;
8
11
  containerStyle?: ViewStyle;
9
12
  withShadow?: boolean;
10
13
  buttonActions?: {
11
14
  icon: ReactNode;
12
15
  onPress: () => void;
16
+ props?: TouchableHighlightProps;
13
17
  }[];
14
18
  }
15
19
  //# sourceMappingURL=Appbar.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Appbar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,EAAE,CAAC;CACL"}
1
+ {"version":3,"file":"Appbar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,aAAa,CAAC,EAAE,uBAAuB,CAAC;IAExC,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,EAAE,uBAAuB,CAAC;KACjC,EAAE,CAAC;CACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.component.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,oBAAY,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtE,QAAA,MAAM,WAAW,+FAoMhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"BottomSheet.component.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,oBAAY,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtE,QAAA,MAAM,WAAW,+FA0MhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,11 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
+ import type { TextProps, TouchableHighlightProps } from 'react-native';
2
3
  export interface BottomSheetProps {
3
4
  onDismiss?: () => void;
4
5
  sheetHeader?: ReactNode;
5
6
  title: string;
7
+ titleProps?: TextProps;
6
8
  subtitle?: string;
9
+ subtitleProps?: TextProps;
7
10
  isOverlayDismissDisabled?: boolean;
8
11
  dismissIcon?: ReactNode;
12
+ dismissIconProps?: TouchableHighlightProps;
9
13
  action?: ReactNode;
10
14
  largeIcon?: ReactNode;
11
15
  largeIconContainerHeight?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.type.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAE1C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"BottomSheet.type.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,KAAK,EAAE,MAAM,CAAC;IAEd,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAE3C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAE1C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckBoxInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAM9B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAsM9D,CAAC;AA+BF,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"CheckBoxInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAM9B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqM9D,CAAC;AA+BF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA6KxD,CAAC;AA6BF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"RadioInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA4KxD,CAAC;AA6BF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,5 +1,12 @@
1
1
  import * as React from 'react';
2
- import type { SnackbarProps } from './Snackbar.type';
3
- declare const Snackbar: React.FunctionComponent<SnackbarProps>;
4
- export { Snackbar };
2
+ import { ToastProps, ToastShowParams, ToastHideParams } from 'react-native-toast-message';
3
+ declare function SnackbarComponent(props: ToastProps): JSX.Element;
4
+ declare const Snackbar: {
5
+ show: (params: Omit<ToastShowParams, 'props' | 'text1' | 'text2' | 'type'> & {
6
+ message: string;
7
+ action?: React.ReactNode;
8
+ }) => void;
9
+ hide: (params: ToastHideParams) => void;
10
+ };
11
+ export { Snackbar, SnackbarComponent };
5
12
  //# sourceMappingURL=Snackbar.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Snackbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Snackbar/Snackbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAiBpD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Snackbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Snackbar/Snackbar.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAgB,EACd,UAAU,EACV,eAAe,EACf,eAAe,EAChB,MAAM,4BAA4B,CAAC;AA0BpC,iBAAS,iBAAiB,CAAC,KAAK,EAAE,UAAU,eAuB3C;AAED,QAAA,MAAM,QAAQ;mBAEF,KAAK,eAAe,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;QACpE,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,SAAS,CAAC;KAC1B;mBAWY,eAAe;CAG/B,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ViewStyle, TextStyle } from 'react-native';
2
2
  interface ComputedStyleProps {
3
3
  container?: ViewStyle;
4
+ snackbarWrapper?: ViewStyle;
4
5
  message?: TextStyle;
5
6
  actionWrapper?: ViewStyle;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Snakbar.style.d.ts","sourceRoot":"","sources":["../../../../src/components/Snackbar/Snakbar.style.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ,0BAsBpB,CAAC"}
1
+ {"version":3,"file":"Snakbar.style.d.ts","sourceRoot":"","sources":["../../../../src/components/Snackbar/Snakbar.style.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ,0BA2BpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CA+GtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CA2GtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8BjC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmCjC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"countdown.component.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAsEtD,CAAC;AAmBF,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"countdown.component.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAuEtD,CAAC;AAmBF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"countdown.style.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.style.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,QAAQ,0BA4BpB,CAAC"}
1
+ {"version":3,"file":"countdown.style.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.style.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,QAAQ,0BA6BpB,CAAC"}
@@ -3,5 +3,10 @@ export interface CountdownProps {
3
3
  * The target time in Date format, ex: 'YYYY-MM-DD hh:mm:ss'
4
4
  */
5
5
  targetDateTime: string | number | Date;
6
+ formats?: {
7
+ type: 'd' | 'h' | 'm' | 's';
8
+ trailingString?: string;
9
+ leadingString?: string;
10
+ }[];
6
11
  }
7
12
  //# sourceMappingURL=countdown.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"countdown.type.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC"}
1
+ {"version":3,"file":"countdown.type.d.ts","sourceRoot":"","sources":["../../../../src/components/countdown/countdown.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAEvC,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;QAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;CACL"}
@@ -16,7 +16,7 @@ export { RadioInput } from './RadioInput/RadioInput.component';
16
16
  export { CheckBoxInput } from './CheckBoxInput/CheckBoxInput.component';
17
17
  export { Checkbox } from './Checkbox/Checkbox.component';
18
18
  export { Appbar } from './Appbar/Appbar.component';
19
- export { Snackbar } from './Snackbar/Snackbar.component';
19
+ export { Snackbar, SnackbarComponent } from './Snackbar/Snackbar.component';
20
20
  export { Switch } from './switch/switch.component';
21
21
  export { Dot } from './dot/dot.component';
22
22
  export { InformationBox } from './information-box/information-box.component';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAA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cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adiraku/react-native-ui",
3
- "version": "0.1.17",
3
+ "version": "0.2.1",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -30,6 +30,7 @@
30
30
  "test": "jest",
31
31
  "typecheck": "tsc --noEmit",
32
32
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
33
+ "lint-fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
33
34
  "prepack": "bob build",
34
35
  "release": "release-it",
35
36
  "example": "yarn --cwd example",
@@ -67,11 +68,11 @@
67
68
  "react": "18.2.0",
68
69
  "react-native": "0.71.1",
69
70
  "react-native-builder-bob": "^0.20.0",
71
+ "react-native-svg": "^13.9.0",
70
72
  "react-native-svg-web": "^1.0.9",
71
73
  "react-native-web": "^0.19.4",
72
74
  "release-it": "^15.0.0",
73
- "typescript": "4.5.2",
74
- "react-native-svg": "^13.9.0"
75
+ "typescript": "4.5.2"
75
76
  },
76
77
  "resolutions": {
77
78
  "@types/react": "17.0.21"
@@ -125,5 +126,6 @@
125
126
  ]
126
127
  },
127
128
  "dependencies": {
129
+ "react-native-toast-message": "^2.1.6"
128
130
  }
129
131
  }
@@ -19,6 +19,8 @@ const Appbar: React.FunctionComponent<AppbarProps> = (props) => {
19
19
  onBackPress = () => {},
20
20
  buttonActions = [],
21
21
  withShadow = true,
22
+ backIconProps = {},
23
+ titleProps = {},
22
24
  } = props;
23
25
 
24
26
  const computedStyle = getStyle();
@@ -37,11 +39,16 @@ const Appbar: React.FunctionComponent<AppbarProps> = (props) => {
37
39
  onPress={onBackPress}
38
40
  style={[computedStyle.iconWrapper]}
39
41
  underlayColor={Palettes.grey[50]}
42
+ {...backIconProps}
40
43
  >
41
44
  {backIcon}
42
45
  </TouchableHighlight>
43
46
  <View style={[computedStyle.contentWrapper]}>
44
- <Typography variant="subtitle1" style={[computedStyle.title]}>
47
+ <Typography
48
+ variant="subtitle1"
49
+ style={[computedStyle.title]}
50
+ {...titleProps}
51
+ >
45
52
  {title}
46
53
  </Typography>
47
54
  {buttonActions.length > 0 &&
@@ -51,6 +58,7 @@ const Appbar: React.FunctionComponent<AppbarProps> = (props) => {
51
58
  onPress={action.onPress}
52
59
  style={[computedStyle.iconWrapper]}
53
60
  underlayColor={Palettes.grey[50]}
61
+ {...action.props}
54
62
  >
55
63
  {action.icon}
56
64
  </TouchableHighlight>
@@ -1,6 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ViewStyle } from 'react-native';
3
3
 
4
+ import type { TouchableHighlightProps, TextProps } from 'react-native';
5
+
4
6
  export interface AppbarProps {
5
7
  title?: string;
6
8
 
@@ -8,6 +10,10 @@ export interface AppbarProps {
8
10
 
9
11
  backIcon?: ReactNode;
10
12
 
13
+ backIconProps?: TouchableHighlightProps;
14
+
15
+ titleProps?: TextProps;
16
+
11
17
  customHeader?: ReactNode;
12
18
 
13
19
  containerStyle?: ViewStyle;
@@ -17,5 +23,6 @@ export interface AppbarProps {
17
23
  buttonActions?: {
18
24
  icon: ReactNode;
19
25
  onPress: () => void;
26
+ props?: TouchableHighlightProps;
20
27
  }[];
21
28
  }
@@ -26,9 +26,12 @@ const BottomSheet = React.forwardRef<BottomSheetRefHandle, BottomSheetProps>(
26
26
  const {
27
27
  onDismiss,
28
28
  title,
29
+ titleProps = {},
29
30
  subtitle,
31
+ subtitleProps = {},
30
32
  isOverlayDismissDisabled = false,
31
33
  dismissIcon = null,
34
+ dismissIconProps = {},
32
35
  action = null,
33
36
  largeIcon = null,
34
37
  largeIconContainerHeight = 50,
@@ -112,11 +115,12 @@ const BottomSheet = React.forwardRef<BottomSheetRefHandle, BottomSheetProps>(
112
115
  },
113
116
  ]}
114
117
  >
115
- {dismissIcon && (
118
+ {!!dismissIcon && (
116
119
  <TouchableHighlight
117
120
  onPress={handleDismiss}
118
121
  style={[computedStyle.sheetDismissIconWrapper]}
119
122
  underlayColor={'transparent'}
123
+ {...dismissIconProps}
120
124
  >
121
125
  {dismissIcon}
122
126
  </TouchableHighlight>
@@ -130,11 +134,12 @@ const BottomSheet = React.forwardRef<BottomSheetRefHandle, BottomSheetProps>(
130
134
  },
131
135
  ]}
132
136
  >
133
- {title && (
137
+ {!!title && (
134
138
  <Typography
135
139
  variant="subtitle1"
136
140
  style={[computedStyle.textCenter]}
137
141
  numberOfLines={2}
142
+ {...titleProps}
138
143
  >
139
144
  {title}
140
145
  </Typography>
@@ -152,11 +157,12 @@ const BottomSheet = React.forwardRef<BottomSheetRefHandle, BottomSheetProps>(
152
157
  {action || null}
153
158
  </View>
154
159
  </View>
155
- {subtitle && (
160
+ {!!subtitle && (
156
161
  <Typography
157
162
  variant="body2"
158
163
  numberOfLines={2}
159
164
  style={[computedStyle.textCenter]}
165
+ {...subtitleProps}
160
166
  >
161
167
  {subtitle}
162
168
  </Typography>
@@ -1,5 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
+ import type { TextProps, TouchableHighlightProps } from 'react-native';
4
+
3
5
  export interface BottomSheetProps {
4
6
  onDismiss?: () => void;
5
7
 
@@ -7,12 +9,18 @@ export interface BottomSheetProps {
7
9
 
8
10
  title: string;
9
11
 
12
+ titleProps?: TextProps;
13
+
10
14
  subtitle?: string;
11
15
 
16
+ subtitleProps?: TextProps;
17
+
12
18
  isOverlayDismissDisabled?: boolean;
13
19
 
14
20
  dismissIcon?: ReactNode;
15
21
 
22
+ dismissIconProps?: TouchableHighlightProps;
23
+
16
24
  action?: ReactNode;
17
25
 
18
26
  largeIcon?: ReactNode;
@@ -209,7 +209,6 @@ const CheckBoxInput: React.FunctionComponent<CheckboxInputProps> = (props) => {
209
209
  }}
210
210
  // eslint-disable-next-line react-native/no-inline-styles
211
211
  contentContainerStyle={{ padding: 16 }}
212
- // eslint-disable-next-line react/no-unstable-nested-components
213
212
  ItemSeparatorComponent={() => customItemSeparator}
214
213
  />
215
214
  {/* eslint-disable-next-line react-native/no-inline-styles */}
@@ -182,7 +182,6 @@ const RadioInput: React.FunctionComponent<RadioInputProps> = (props) => {
182
182
  }}
183
183
  // eslint-disable-next-line react-native/no-inline-styles
184
184
  contentContainerStyle={{ padding: 16 }}
185
- // eslint-disable-next-line react/no-unstable-nested-components
186
185
  ItemSeparatorComponent={() => customItemSeparator}
187
186
  />
188
187
  {/* eslint-disable-next-line react-native/no-inline-styles */}