@adiraku/react-native-ui 2.0.0-canary-1 → 2.0.0-canary-2

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 (51) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Pagination/pagination.component.js +39 -0
  3. package/lib/commonjs/components/Pagination/pagination.component.js.map +1 -0
  4. package/lib/commonjs/components/Pagination/pagination.style.js +26 -0
  5. package/lib/commonjs/components/Pagination/pagination.style.js.map +1 -0
  6. package/lib/commonjs/components/Pagination/pagination.type.js +2 -0
  7. package/lib/commonjs/components/Pagination/pagination.type.js.map +1 -0
  8. package/lib/commonjs/components/StickyBar/StickyBar.component.js +67 -0
  9. package/lib/commonjs/components/StickyBar/StickyBar.component.js.map +1 -0
  10. package/lib/commonjs/components/StickyBar/StickyBar.style.js +64 -0
  11. package/lib/commonjs/components/StickyBar/StickyBar.style.js.map +1 -0
  12. package/lib/commonjs/components/StickyBar/StickyBar.type.js +6 -0
  13. package/lib/commonjs/components/StickyBar/StickyBar.type.js.map +1 -0
  14. package/lib/commonjs/components/index.js +14 -0
  15. package/lib/commonjs/components/index.js.map +1 -1
  16. package/lib/module/components/Pagination/pagination.component.js +31 -0
  17. package/lib/module/components/Pagination/pagination.component.js.map +1 -0
  18. package/lib/module/components/Pagination/pagination.style.js +20 -0
  19. package/lib/module/components/Pagination/pagination.style.js.map +1 -0
  20. package/lib/module/components/Pagination/pagination.type.js +2 -0
  21. package/lib/module/components/Pagination/pagination.type.js.map +1 -0
  22. package/lib/module/components/StickyBar/StickyBar.component.js +60 -0
  23. package/lib/module/components/StickyBar/StickyBar.component.js.map +1 -0
  24. package/lib/module/components/StickyBar/StickyBar.style.js +57 -0
  25. package/lib/module/components/StickyBar/StickyBar.style.js.map +1 -0
  26. package/lib/module/components/StickyBar/StickyBar.type.js +2 -0
  27. package/lib/module/components/StickyBar/StickyBar.type.js.map +1 -0
  28. package/lib/module/components/index.js +2 -0
  29. package/lib/module/components/index.js.map +1 -1
  30. package/lib/typescript/components/Pagination/pagination.component.d.ts +5 -0
  31. package/lib/typescript/components/Pagination/pagination.component.d.ts.map +1 -0
  32. package/lib/typescript/components/Pagination/pagination.style.d.ts +19 -0
  33. package/lib/typescript/components/Pagination/pagination.style.d.ts.map +1 -0
  34. package/lib/typescript/components/Pagination/pagination.type.d.ts +15 -0
  35. package/lib/typescript/components/Pagination/pagination.type.d.ts.map +1 -0
  36. package/lib/typescript/components/StickyBar/StickyBar.component.d.ts +5 -0
  37. package/lib/typescript/components/StickyBar/StickyBar.component.d.ts.map +1 -0
  38. package/lib/typescript/components/StickyBar/StickyBar.style.d.ts +15 -0
  39. package/lib/typescript/components/StickyBar/StickyBar.style.d.ts.map +1 -0
  40. package/lib/typescript/components/StickyBar/StickyBar.type.d.ts +30 -0
  41. package/lib/typescript/components/StickyBar/StickyBar.type.d.ts.map +1 -0
  42. package/lib/typescript/components/index.d.ts +3 -0
  43. package/lib/typescript/components/index.d.ts.map +1 -1
  44. package/package.json +3 -1
  45. package/src/components/Pagination/pagination.component.tsx +29 -0
  46. package/src/components/Pagination/pagination.style.tsx +20 -0
  47. package/src/components/Pagination/pagination.type.ts +16 -0
  48. package/src/components/StickyBar/StickyBar.component.tsx +74 -0
  49. package/src/components/StickyBar/StickyBar.style.tsx +79 -0
  50. package/src/components/StickyBar/StickyBar.type.ts +35 -0
  51. package/src/components/index.ts +3 -0
package/README.md CHANGED
@@ -53,4 +53,4 @@ MIT
53
53
 
54
54
  ---
55
55
 
56
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
56
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Pagination = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ const Pagination = ({
12
+ totalPages = 1,
13
+ currentPage = 1
14
+ }) => {
15
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
16
+ style: {
17
+ flexDirection: 'row',
18
+ justifyContent: 'flex-start',
19
+ alignItems: 'flex-start'
20
+ }
21
+ }, Array.from({
22
+ length: totalPages
23
+ }).map((_, index) => {
24
+ const page = index + 0;
25
+ const isActive = page === currentPage;
26
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
27
+ key: page,
28
+ style: {
29
+ width: isActive ? 30 : 8,
30
+ height: 8,
31
+ borderRadius: 4,
32
+ backgroundColor: isActive ? '#000' : '#ddd',
33
+ marginHorizontal: 4
34
+ }
35
+ });
36
+ }));
37
+ };
38
+ exports.Pagination = Pagination;
39
+ //# sourceMappingURL=pagination.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Pagination","totalPages","currentPage","createElement","View","style","flexDirection","justifyContent","alignItems","Array","from","length","map","_","index","page","isActive","key","width","height","borderRadius","backgroundColor","marginHorizontal","exports"],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.component.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,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;EAC3E,oBACE1B,KAAA,CAAA2B,aAAA,CAACxB,YAAA,CAAAyB,IAAI;IAACC,KAAK,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,cAAc,EAAE,YAAY;MAAEC,UAAU,EAAE;IAAa;EAAE,GAC3FC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEV;EAAW,CAAC,CAAC,CAACW,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;IACpD,MAAMC,IAAI,GAAGD,KAAK,GAAG,CAAC;IACtB,MAAME,QAAQ,GAAGD,IAAI,KAAKb,WAAW;IAErC,oBACE1B,KAAA,CAAA2B,aAAA,CAACxB,YAAA,CAAAyB,IAAI;MACHa,GAAG,EAAEF,IAAK;MACVV,KAAK,EAAE;QACLa,KAAK,EAAEF,QAAQ,GAAG,EAAE,GAAG,CAAC;QACxBG,MAAM,EAAE,CAAC;QACTC,YAAY,EAAE,CAAC;QACfC,eAAe,EAAEL,QAAQ,GAAG,MAAM,GAAG,MAAM;QAC3CM,gBAAgB,EAAE;MACpB;IAAE,CACH,CAAC;EAEN,CAAC,CACG,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAvB,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = void 0;
7
+ var _reactNative = require("react-native");
8
+ const styles = exports.styles = _reactNative.StyleSheet.create({
9
+ paginationContainer: {
10
+ flexDirection: 'row',
11
+ justifyContent: 'flex-start',
12
+ alignItems: 'flex-end'
13
+ },
14
+ dot: {
15
+ width: 8,
16
+ height: 8,
17
+ borderRadius: 4,
18
+ backgroundColor: '#ddd',
19
+ marginHorizontal: 4
20
+ },
21
+ activeDot: {
22
+ width: 20,
23
+ backgroundColor: '#000'
24
+ }
25
+ });
26
+ //# sourceMappingURL=pagination.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","styles","exports","StyleSheet","create","paginationContainer","flexDirection","justifyContent","alignItems","dot","width","height","borderRadius","backgroundColor","marginHorizontal","activeDot"],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.style.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EACtCC,mBAAmB,EAAE;IACnBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDC,GAAG,EAAE;IACHC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE,MAAM;IACvBC,gBAAgB,EAAE;EACpB,CAAC;EACDC,SAAS,EAAE;IACTL,KAAK,EAAE,EAAE;IACTG,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=pagination.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.type.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StickyBar = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-linear-gradient"));
10
+ var _typography = require("../typography/typography.component");
11
+ var _themes = require("src/themes");
12
+ var _icons = require("src/icons");
13
+ var _StickyBar = require("./StickyBar.style");
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ const StickyBar = ({
16
+ show,
17
+ text,
18
+ onClose,
19
+ iconComponent,
20
+ buttonComponent,
21
+ testID
22
+ }) => {
23
+ const computedStyle = (0, _StickyBar.getStyle)({
24
+ show,
25
+ text,
26
+ iconComponent,
27
+ buttonComponent,
28
+ onClose
29
+ });
30
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
31
+ style: [computedStyle.container]
32
+ }, /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.default, {
33
+ colors: [_themes.Palettes.yellow[600], '#FFFFFF'],
34
+ start: {
35
+ x: 0.5,
36
+ y: 0
37
+ },
38
+ end: {
39
+ x: 1,
40
+ y: 0.1
41
+ },
42
+ useAngle: true,
43
+ angle: 45,
44
+ style: [computedStyle.linearGradient]
45
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
46
+ style: [computedStyle.rowContainer]
47
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
48
+ style: [computedStyle.contentWrapper, computedStyle.imageWrapper]
49
+ }, iconComponent), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
50
+ style: [computedStyle.contentWrapper, computedStyle.textWrapper]
51
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
52
+ variant: "overline-small",
53
+ testID: testID,
54
+ accessibilityLabel: testID
55
+ }, text)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
56
+ style: [computedStyle.contentWrapper]
57
+ }, buttonComponent), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
58
+ style: [computedStyle.closeButtonWrapper]
59
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
60
+ onPress: onClose
61
+ }, /*#__PURE__*/_react.default.createElement(_icons.IconClose, {
62
+ height: _themes.Spacing[12],
63
+ width: _themes.Spacing[12]
64
+ }))))));
65
+ };
66
+ exports.StickyBar = StickyBar;
67
+ //# sourceMappingURL=StickyBar.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeLinearGradient","_typography","_themes","_icons","_StickyBar","e","__esModule","default","StickyBar","show","text","onClose","iconComponent","buttonComponent","testID","computedStyle","getStyle","createElement","View","style","container","colors","Palettes","yellow","start","x","y","end","useAngle","angle","linearGradient","rowContainer","contentWrapper","imageWrapper","textWrapper","Typography","variant","accessibilityLabel","closeButtonWrapper","TouchableOpacity","onPress","IconClose","height","Spacing","width","exports"],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAA6C,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C,MAAMG,SAA6B,GAAGA,CAAC;EACrCC,IAAI;EACJC,IAAI;EACJC,OAAO;EACPC,aAAa;EACbC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,MAAMC,aAAa,GAAG,IAAAC,mBAAQ,EAAC;IAC7BP,IAAI;IACJC,IAAI;IACJE,aAAa;IACbC,eAAe;IACfF;EACF,CAAC,CAAC;EAEF,oBACEf,MAAA,CAAAW,OAAA,CAAAU,aAAA,CAAClB,YAAA,CAAAmB,IAAI;IAACC,KAAK,EAAE,CAACJ,aAAa,CAACK,SAAS;EAAE,gBACrCxB,MAAA,CAAAW,OAAA,CAAAU,aAAA,CAACjB,0BAAA,CAAAO,OAAc;IACbc,MAAM,EAAE,CAACC,gBAAQ,CAACC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAE;IAC1CC,KAAK,EAAE;MAAEC,CAAC,EAAE,GAAG;MAAEC,CAAC,EAAE;IAAE,CAAE;IACxBC,GAAG,EAAE;MAAEF,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAI,CAAE;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AAE,CACrC,CACd,CACF,CACQ,CACZ,CAAC;AAEX,CAAC;AAACE,OAAA,CAAArC,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getStyle = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _themes = require("src/themes");
9
+ const getStyle = props => {
10
+ const {
11
+ show,
12
+ onClose,
13
+ iconComponent: IconComponent,
14
+ buttonComponent
15
+ } = props;
16
+ const computedStyle = {};
17
+ computedStyle.container = {
18
+ flex: 1,
19
+ minWidth: 400,
20
+ display: show ? 'flex' : 'none'
21
+ };
22
+ computedStyle.rowContainer = {
23
+ flexDirection: 'row',
24
+ justifyContent: 'center',
25
+ alignItems: 'center'
26
+ };
27
+ computedStyle.linearGradient = {
28
+ paddingVertical: _themes.Spacing[8],
29
+ paddingHorizontal: _themes.Spacing[16],
30
+ borderTopRightRadius: _themes.Spacing[16],
31
+ borderTopLeftRadius: _themes.Spacing[16],
32
+ position: 'absolute',
33
+ zIndex: 2
34
+ };
35
+ computedStyle.contentWrapper = {
36
+ marginRight: _themes.Spacing[8]
37
+ };
38
+ computedStyle.imageWrapper = {
39
+ display: IconComponent ? 'flex' : 'none',
40
+ alignSelf: 'center',
41
+ justifyContent: 'center',
42
+ backgroundColor: 'white',
43
+ borderRadius: _themes.Spacing[32],
44
+ padding: 6
45
+ };
46
+ computedStyle.textWrapper = {
47
+ flex: 1,
48
+ flexWrap: 'wrap'
49
+ };
50
+ computedStyle.buttonWrapper = {
51
+ display: buttonComponent ? 'flex' : 'none'
52
+ };
53
+ computedStyle.closeButtonWrapper = {
54
+ display: onClose ? 'flex' : 'none',
55
+ borderWidth: 2,
56
+ borderRadius: 12,
57
+ borderColor: _themes.Palettes.black[900],
58
+ borderStyle: 'solid',
59
+ padding: 2
60
+ };
61
+ return _reactNative.StyleSheet.create(computedStyle);
62
+ };
63
+ exports.getStyle = getStyle;
64
+ //# sourceMappingURL=StickyBar.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_themes","getStyle","props","show","onClose","iconComponent","IconComponent","buttonComponent","computedStyle","container","flex","minWidth","display","rowContainer","flexDirection","justifyContent","alignItems","linearGradient","paddingVertical","Spacing","paddingHorizontal","borderTopRightRadius","borderTopLeftRadius","position","zIndex","contentWrapper","marginRight","imageWrapper","alignSelf","backgroundColor","borderRadius","padding","textWrapper","flexWrap","buttonWrapper","closeButtonWrapper","borderWidth","borderColor","Palettes","black","borderStyle","StyleSheet","create","exports"],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.style.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAaO,MAAME,QAAQ,GAAIC,KAAqB,IAAK;EACjD,MAAM;IACJC,IAAI;IACJC,OAAO;IACPC,aAAa,EAAEC,aAAa;IAC5BC;EACF,CAAC,GAAGL,KAAK;EAET,MAAMM,aAAiC,GAAG,CAAC,CAAC;EAE5CA,aAAa,CAACC,SAAS,GAAG;IACxBC,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAET,IAAI,GAAG,MAAM,GAAG;EAC3B,CAAC;EAEDK,aAAa,CAACK,YAAY,GAAG;IAC3BC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EAEDR,aAAa,CAACS,cAAc,GAAG;IAC7BC,eAAe,EAAEC,eAAO,CAAC,CAAC,CAAC;IAC3BC,iBAAiB,EAAED,eAAO,CAAC,EAAE,CAAC;IAC9BE,oBAAoB,EAAEF,eAAO,CAAC,EAAE,CAAC;IACjCG,mBAAmB,EAAEH,eAAO,CAAC,EAAE,CAAC;IAChCI,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE;EACV,CAAC;EAEDhB,aAAa,CAACiB,cAAc,GAAG;IAC7BC,WAAW,EAAEP,eAAO,CAAC,CAAC;EACxB,CAAC;EAEDX,aAAa,CAACmB,YAAY,GAAG;IAC3Bf,OAAO,EAAEN,aAAa,GAAG,MAAM,GAAG,MAAM;IACxCsB,SAAS,EAAE,QAAQ;IACnBb,cAAc,EAAE,QAAQ;IACxBc,eAAe,EAAE,OAAO;IACxBC,YAAY,EAAEX,eAAO,CAAC,EAAE,CAAC;IACzBY,OAAO,EAAE;EACX,CAAC;EAEDvB,aAAa,CAACwB,WAAW,GAAG;IAC1BtB,IAAI,EAAE,CAAC;IACPuB,QAAQ,EAAE;EACZ,CAAC;EAEDzB,aAAa,CAAC0B,aAAa,GAAG;IAC5BtB,OAAO,EAAEL,eAAe,GAAG,MAAM,GAAG;EACtC,CAAC;EAEDC,aAAa,CAAC2B,kBAAkB,GAAG;IACjCvB,OAAO,EAAER,OAAO,GAAG,MAAM,GAAG,MAAM;IAClCgC,WAAW,EAAE,CAAC;IACdN,YAAY,EAAE,EAAE;IAChBO,WAAW,EAAEC,gBAAQ,CAACC,KAAK,CAAC,GAAG,CAAC;IAChCC,WAAW,EAAE,OAAO;IACpBT,OAAO,EAAE;EACX,CAAC;EAED,OAAOU,uBAAU,CAACC,MAAM,CAAClC,aAAa,CAAC;AACzC,CAAC;AAACmC,OAAA,CAAA1C,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=StickyBar.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.type.ts"],"mappings":"","ignoreList":[]}
@@ -165,6 +165,12 @@ Object.defineProperty(exports, "Notification", {
165
165
  return _notification.Notification;
166
166
  }
167
167
  });
168
+ Object.defineProperty(exports, "Pagination", {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _pagination.Pagination;
172
+ }
173
+ });
168
174
  Object.defineProperty(exports, "RadioButton", {
169
175
  enumerable: true,
170
176
  get: function () {
@@ -231,6 +237,12 @@ Object.defineProperty(exports, "StepperCounter", {
231
237
  return _StepperCounter.StepperCounter;
232
238
  }
233
239
  });
240
+ Object.defineProperty(exports, "StickyBar", {
241
+ enumerable: true,
242
+ get: function () {
243
+ return _StickyBar.StickyBar;
244
+ }
245
+ });
234
246
  Object.defineProperty(exports, "Switch", {
235
247
  enumerable: true,
236
248
  get: function () {
@@ -337,8 +349,10 @@ var _roundedTab = require("./rounded-tab/rounded-tab.component");
337
349
  var _countdown = require("./countdown/countdown.component");
338
350
  var _loader = require("./Loader/loader.component");
339
351
  var _notification = require("./Notification/notification.component");
352
+ var _pagination = require("./Pagination/pagination.component");
340
353
  var _reactNativeMaskInput = require("react-native-mask-input");
341
354
  var _SelectionCard = require("./selection-card/SelectionCard.component");
342
355
  var _Ribbon = require("./Ribbon/Ribbon.component");
356
+ var _StickyBar = require("./StickyBar/StickyBar.component");
343
357
  var _View = require("./View/View.component");
344
358
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ActionList","require","_Badge","_BottomTabBar","_button","_calendars","_CategoryCard","_ContentCard","_label","_base","_typography","_coachmark","_textlink","_sliderIndicator","_TextInput","_TextArea","_StepperCounter","_Divider","_Tabs","_RadioButton","_Chips","_BottomSheet","_searchInput","_RadioInput","_CheckBoxInput","_Checkbox","_Appbar","_Snackbar","_switch","_dot","_informationBox","_roundedTab","_countdown","_loader","_notification","_reactNativeMaskInput","_SelectionCard","_Ribbon","_View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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iC,aAAA,GAAAjC,OAAA;AACA,IAAAkC,qBAAA,GAAAlC,OAAA;AAWA,IAAAmC,cAAA,GAAAnC,OAAA;AACA,IAAAoC,OAAA,GAAApC,OAAA;AACA,IAAAqC,KAAA,GAAArC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_ActionList","require","_Badge","_BottomTabBar","_button","_calendars","_CategoryCard","_ContentCard","_label","_base","_typography","_coachmark","_textlink","_sliderIndicator","_TextInput","_TextArea","_StepperCounter","_Divider","_Tabs","_RadioButton","_Chips","_BottomSheet","_searchInput","_RadioInput","_CheckBoxInput","_Checkbox","_Appbar","_Snackbar","_switch","_dot","_informationBox","_roundedTab","_countdown","_loader","_notification","_pagination","_reactNativeMaskInput","_SelectionCard","_Ribbon","_StickyBar","_View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AACA,IAAAY,gBAAA,GAAAZ,OAAA;AACA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,eAAA,GAAAf,OAAA;AACA,IAAAgB,QAAA,GAAAhB,OAAA;AACA,IAAAiB,KAAA,GAAAjB,OAAA;AACA,IAAAkB,YAAA,GAAAlB,OAAA;AACA,IAAAmB,MAAA,GAAAnB,OAAA;AACA,IAAAoB,YAAA,GAAApB,OAAA;AAIA,IAAAqB,YAAA,GAAArB,OAAA;AACA,IAAAsB,WAAA,GAAAtB,OAAA;AACA,IAAAuB,cAAA,GAAAvB,OAAA;AACA,IAAAwB,SAAA,GAAAxB,OAAA;AACA,IAAAyB,OAAA,GAAAzB,OAAA;AACA,IAAA0B,SAAA,GAAA1B,OAAA;AAKA,IAAA2B,OAAA,GAAA3B,OAAA;AACA,IAAA4B,IAAA,GAAA5B,OAAA;AACA,IAAA6B,eAAA,GAAA7B,OAAA;AACA,IAAA8B,WAAA,GAAA9B,OAAA;AACA,IAAA+B,UAAA,GAAA/B,OAAA;AACA,IAAAgC,OAAA,GAAAhC,OAAA;AACA,IAAAiC,aAAA,GAAAjC,OAAA;AACA,IAAAkC,WAAA,GAAAlC,OAAA;AACA,IAAAmC,qBAAA,GAAAnC,OAAA;AAWA,IAAAoC,cAAA,GAAApC,OAAA;AACA,IAAAqC,OAAA,GAAArC,OAAA;AACA,IAAAsC,UAAA,GAAAtC,OAAA;AACA,IAAAuC,KAAA,GAAAvC,OAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import { View } from 'react-native';
3
+ const Pagination = ({
4
+ totalPages = 1,
5
+ currentPage = 1
6
+ }) => {
7
+ return /*#__PURE__*/React.createElement(View, {
8
+ style: {
9
+ flexDirection: 'row',
10
+ justifyContent: 'flex-start',
11
+ alignItems: 'flex-start'
12
+ }
13
+ }, Array.from({
14
+ length: totalPages
15
+ }).map((_, index) => {
16
+ const page = index + 0;
17
+ const isActive = page === currentPage;
18
+ return /*#__PURE__*/React.createElement(View, {
19
+ key: page,
20
+ style: {
21
+ width: isActive ? 30 : 8,
22
+ height: 8,
23
+ borderRadius: 4,
24
+ backgroundColor: isActive ? '#000' : '#ddd',
25
+ marginHorizontal: 4
26
+ }
27
+ });
28
+ }));
29
+ };
30
+ export { Pagination };
31
+ //# sourceMappingURL=pagination.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Pagination","totalPages","currentPage","createElement","style","flexDirection","justifyContent","alignItems","Array","from","length","map","_","index","page","isActive","key","width","height","borderRadius","backgroundColor","marginHorizontal"],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.component.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AAGnC,MAAMC,UAAU,GAAGA,CAAC;EAAEC,UAAU,GAAG,CAAC;EAAEC,WAAW,GAAG;AAAmB,CAAC,KAAK;EAC3E,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,IAAI;IAACK,KAAK,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,cAAc,EAAE,YAAY;MAAEC,UAAU,EAAE;IAAa;EAAE,GAC3FC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAET;EAAW,CAAC,CAAC,CAACU,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;IACpD,MAAMC,IAAI,GAAGD,KAAK,GAAG,CAAC;IACtB,MAAME,QAAQ,GAAGD,IAAI,KAAKZ,WAAW;IAErC,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,IAAI;MACHiB,GAAG,EAAEF,IAAK;MACVV,KAAK,EAAE;QACLa,KAAK,EAAEF,QAAQ,GAAG,EAAE,GAAG,CAAC;QACxBG,MAAM,EAAE,CAAC;QACTC,YAAY,EAAE,CAAC;QACfC,eAAe,EAAEL,QAAQ,GAAG,MAAM,GAAG,MAAM;QAC3CM,gBAAgB,EAAE;MACpB;IAAE,CACH,CAAC;EAEN,CAAC,CACG,CAAC;AAEX,CAAC;AAED,SAASrB,UAAU","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export const styles = StyleSheet.create({
3
+ paginationContainer: {
4
+ flexDirection: 'row',
5
+ justifyContent: 'flex-start',
6
+ alignItems: 'flex-end'
7
+ },
8
+ dot: {
9
+ width: 8,
10
+ height: 8,
11
+ borderRadius: 4,
12
+ backgroundColor: '#ddd',
13
+ marginHorizontal: 4
14
+ },
15
+ activeDot: {
16
+ width: 20,
17
+ backgroundColor: '#000'
18
+ }
19
+ });
20
+ //# sourceMappingURL=pagination.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","styles","create","paginationContainer","flexDirection","justifyContent","alignItems","dot","width","height","borderRadius","backgroundColor","marginHorizontal","activeDot"],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.style.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,MAAM,GAAGD,UAAU,CAACE,MAAM,CAAC;EACtCC,mBAAmB,EAAE;IACnBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDC,GAAG,EAAE;IACHC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE,MAAM;IACvBC,gBAAgB,EAAE;EACpB,CAAC;EACDC,SAAS,EAAE;IACTL,KAAK,EAAE,EAAE;IACTG,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=pagination.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Pagination/pagination.type.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { TouchableOpacity, View } from 'react-native';
3
+ import LinearGradient from 'react-native-linear-gradient';
4
+ import { Typography } from '../typography/typography.component';
5
+ import { Palettes, Spacing } from 'src/themes';
6
+ import { IconClose } from 'src/icons';
7
+ import { getStyle } from './StickyBar.style';
8
+ const StickyBar = ({
9
+ show,
10
+ text,
11
+ onClose,
12
+ iconComponent,
13
+ buttonComponent,
14
+ testID
15
+ }) => {
16
+ const computedStyle = getStyle({
17
+ show,
18
+ text,
19
+ iconComponent,
20
+ buttonComponent,
21
+ onClose
22
+ });
23
+ return /*#__PURE__*/React.createElement(View, {
24
+ style: [computedStyle.container]
25
+ }, /*#__PURE__*/React.createElement(LinearGradient, {
26
+ colors: [Palettes.yellow[600], '#FFFFFF'],
27
+ start: {
28
+ x: 0.5,
29
+ y: 0
30
+ },
31
+ end: {
32
+ x: 1,
33
+ y: 0.1
34
+ },
35
+ useAngle: true,
36
+ angle: 45,
37
+ style: [computedStyle.linearGradient]
38
+ }, /*#__PURE__*/React.createElement(View, {
39
+ style: [computedStyle.rowContainer]
40
+ }, /*#__PURE__*/React.createElement(View, {
41
+ style: [computedStyle.contentWrapper, computedStyle.imageWrapper]
42
+ }, iconComponent), /*#__PURE__*/React.createElement(View, {
43
+ style: [computedStyle.contentWrapper, computedStyle.textWrapper]
44
+ }, /*#__PURE__*/React.createElement(Typography, {
45
+ variant: "overline-small",
46
+ testID: testID,
47
+ accessibilityLabel: testID
48
+ }, text)), /*#__PURE__*/React.createElement(View, {
49
+ style: [computedStyle.contentWrapper]
50
+ }, buttonComponent), /*#__PURE__*/React.createElement(View, {
51
+ style: [computedStyle.closeButtonWrapper]
52
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
53
+ onPress: onClose
54
+ }, /*#__PURE__*/React.createElement(IconClose, {
55
+ height: Spacing[12],
56
+ width: Spacing[12]
57
+ }))))));
58
+ };
59
+ export { StickyBar };
60
+ //# sourceMappingURL=StickyBar.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","TouchableOpacity","View","LinearGradient","Typography","Palettes","Spacing","IconClose","getStyle","StickyBar","show","text","onClose","iconComponent","buttonComponent","testID","computedStyle","createElement","style","container","colors","yellow","start","x","y","end","useAngle","angle","linearGradient","rowContainer","contentWrapper","imageWrapper","textWrapper","variant","accessibilityLabel","closeButtonWrapper","onPress","height","width"],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.component.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACrD,OAAOC,cAAc,MAAM,8BAA8B;AAEzD,SAASC,UAAU,QAAQ,oCAAoC;AAE/D,SAASC,QAAQ,EAAEC,OAAO,QAAQ,YAAY;AAE9C,SAASC,SAAS,QAAQ,WAAW;AACrC,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,MAAMC,SAA6B,GAAGA,CAAC;EACrCC,IAAI;EACJC,IAAI;EACJC,OAAO;EACPC,aAAa;EACbC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,MAAMC,aAAa,GAAGR,QAAQ,CAAC;IAC7BE,IAAI;IACJC,IAAI;IACJE,aAAa;IACbC,eAAe;IACfF;EACF,CAAC,CAAC;EAEF,oBACEZ,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACF,aAAa,CAACG,SAAS;EAAE,gBACrCnB,KAAA,CAAAiB,aAAA,CAACd,cAAc;IACbiB,MAAM,EAAE,CAACf,QAAQ,CAACgB,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAE;IAC1CC,KAAK,EAAE;MAAEC,CAAC,EAAE,GAAG;MAAEC,CAAC,EAAE;IAAE,CAAE;IACxBC,GAAG,EAAE;MAAEF,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAI,CAAE;IACtBE,QAAQ,EAAE,IAAK;IACfC,KAAK,EAAE,EAAG;IACVT,KAAK,EAAE,CAACF,aAAa,CAACY,cAAc;EAAE,gBAEtC5B,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACF,aAAa,CAACa,YAAY;EAAE,gBAExC7B,KAAA,CAAAiB,aAAA,CAACf,IAAI;IACHgB,KAAK,EAAE,CAACF,aAAa,CAACc,cAAc,EAAEd,aAAa,CAACe,YAAY;EAAE,GAEjElB,aACG,CAAC,eAGPb,KAAA,CAAAiB,aAAA,CAACf,IAAI;IACHgB,KAAK,EAAE,CAACF,aAAa,CAACc,cAAc,EAAEd,aAAa,CAACgB,WAAW;EAAE,gBAEjEhC,KAAA,CAAAiB,aAAA,CAACb,UAAU;IACT6B,OAAO,EAAC,gBAAgB;IACxBlB,MAAM,EAAEA,MAAO;IACfmB,kBAAkB,EAAEnB;EAAO,GAE1BJ,IACS,CACR,CAAC,eAGPX,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACF,aAAa,CAACc,cAAc;EAAE,GAAEhB,eAAsB,CAAC,eAGrEd,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACF,aAAa,CAACmB,kBAAkB;EAAE,gBAC9CnC,KAAA,CAAAiB,aAAA,CAAChB,gBAAgB;IAACmC,OAAO,EAAExB;EAAQ,gBACjCZ,KAAA,CAAAiB,aAAA,CAACV,SAAS;IAAC8B,MAAM,EAAE/B,OAAO,CAAC,EAAE,CAAE;IAACgC,KAAK,EAAEhC,OAAO,CAAC,EAAE;EAAE,CAAE,CACrC,CACd,CACF,CACQ,CACZ,CAAC;AAEX,CAAC;AAED,SAASG,SAAS","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { Palettes, Spacing } from 'src/themes';
3
+ export const getStyle = props => {
4
+ const {
5
+ show,
6
+ onClose,
7
+ iconComponent: IconComponent,
8
+ buttonComponent
9
+ } = props;
10
+ const computedStyle = {};
11
+ computedStyle.container = {
12
+ flex: 1,
13
+ minWidth: 400,
14
+ display: show ? 'flex' : 'none'
15
+ };
16
+ computedStyle.rowContainer = {
17
+ flexDirection: 'row',
18
+ justifyContent: 'center',
19
+ alignItems: 'center'
20
+ };
21
+ computedStyle.linearGradient = {
22
+ paddingVertical: Spacing[8],
23
+ paddingHorizontal: Spacing[16],
24
+ borderTopRightRadius: Spacing[16],
25
+ borderTopLeftRadius: Spacing[16],
26
+ position: 'absolute',
27
+ zIndex: 2
28
+ };
29
+ computedStyle.contentWrapper = {
30
+ marginRight: Spacing[8]
31
+ };
32
+ computedStyle.imageWrapper = {
33
+ display: IconComponent ? 'flex' : 'none',
34
+ alignSelf: 'center',
35
+ justifyContent: 'center',
36
+ backgroundColor: 'white',
37
+ borderRadius: Spacing[32],
38
+ padding: 6
39
+ };
40
+ computedStyle.textWrapper = {
41
+ flex: 1,
42
+ flexWrap: 'wrap'
43
+ };
44
+ computedStyle.buttonWrapper = {
45
+ display: buttonComponent ? 'flex' : 'none'
46
+ };
47
+ computedStyle.closeButtonWrapper = {
48
+ display: onClose ? 'flex' : 'none',
49
+ borderWidth: 2,
50
+ borderRadius: 12,
51
+ borderColor: Palettes.black[900],
52
+ borderStyle: 'solid',
53
+ padding: 2
54
+ };
55
+ return StyleSheet.create(computedStyle);
56
+ };
57
+ //# sourceMappingURL=StickyBar.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Palettes","Spacing","getStyle","props","show","onClose","iconComponent","IconComponent","buttonComponent","computedStyle","container","flex","minWidth","display","rowContainer","flexDirection","justifyContent","alignItems","linearGradient","paddingVertical","paddingHorizontal","borderTopRightRadius","borderTopLeftRadius","position","zIndex","contentWrapper","marginRight","imageWrapper","alignSelf","backgroundColor","borderRadius","padding","textWrapper","flexWrap","buttonWrapper","closeButtonWrapper","borderWidth","borderColor","black","borderStyle","create"],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.style.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAmB,cA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,OAAO,EAAEL,eAAe,GAAG,MAAM,GAAG;EACtC,CAAC;EAEDC,aAAa,CAAC0B,kBAAkB,GAAG;IACjCtB,OAAO,EAAER,OAAO,GAAG,MAAM,GAAG,MAAM;IAClC+B,WAAW,EAAE,CAAC;IACdN,YAAY,EAAE,EAAE;IAChBO,WAAW,EAAErC,QAAQ,CAACsC,KAAK,CAAC,GAAG,CAAC;IAChCC,WAAW,EAAE,OAAO;IACpBR,OAAO,EAAE;EACX,CAAC;EAED,OAAOhC,UAAU,CAACyC,MAAM,CAAC/B,aAAa,CAAC;AACzC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StickyBar.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/StickyBar/StickyBar.type.ts"],"mappings":"","ignoreList":[]}
@@ -32,8 +32,10 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
32
32
  export { Countdown } from './countdown/countdown.component';
33
33
  export { Loader } from './Loader/loader.component';
34
34
  export { Notification } from './Notification/notification.component';
35
+ export { Pagination } from './Pagination/pagination.component';
35
36
  export { Mask, MaskArray, MaskInputProps, MaskItem, Masks, UseMaskedInputProps, createNumberMask, formatWithMask, useMaskedInputProps } from 'react-native-mask-input';
36
37
  export { SelectionCard } from './selection-card/SelectionCard.component';
37
38
  export { Ribbon } from './Ribbon/Ribbon.component';
39
+ export { StickyBar } from './StickyBar/StickyBar.component';
38
40
  export { View } from './View/View.component';
39
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ActionList","Badges","BottomTabBar","Button","Calendars","CategoryCard","ContentCard","Label","BaseComponent","Typography","Coachmark","circleSvgPath","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","Chips","BottomSheet","BottomSheetHandler","SearchInput","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","SnackbarComponent","SnackbarUI","Switch","Dot","InformationBox","RoundedTab","Countdown","Loader","Notification","Mask","MaskArray","MaskInputProps","MaskItem","Masks","UseMaskedInputProps","createNumberMask","formatWithMask","useMaskedInputProps","SelectionCard","Ribbon","View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,SAAS,EAAEC,aAAa,QAAQ,iCAAiC;AAC1E,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,KAAK,QAAQ,yBAAyB;AAC/C,SACEC,WAAW,EACXC,kBAAkB,QACb,qCAAqC;AAC5C,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SACEC,QAAQ,EACRC,iBAAiB,EACjBC,UAAU,QACL,+BAA+B;AACtC,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,GAAG,QAAQ,qBAAqB;AACzC,SAASC,cAAc,QAAQ,6CAA6C;AAC5E,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SACEC,IAAI,EACJC,SAAS,EACTC,cAAc,EACdC,QAAQ,EACRC,KAAK,EACLC,mBAAmB,EACnBC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,QACd,yBAAyB;AAChC,SAASC,aAAa,QAAQ,0CAA0C;AACxE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,IAAI,QAAQ,uBAAuB","ignoreList":[]}
1
+ {"version":3,"names":["ActionList","Badges","BottomTabBar","Button","Calendars","CategoryCard","ContentCard","Label","BaseComponent","Typography","Coachmark","circleSvgPath","TextLink","SliderIndicator","TextInput","TextArea","StepperCounter","Divider","Tabs","RadioButton","Chips","BottomSheet","BottomSheetHandler","SearchInput","RadioInput","CheckBoxInput","Checkbox","Appbar","Snackbar","SnackbarComponent","SnackbarUI","Switch","Dot","InformationBox","RoundedTab","Countdown","Loader","Notification","Pagination","Mask","MaskArray","MaskInputProps","MaskItem","Masks","UseMaskedInputProps","createNumberMask","formatWithMask","useMaskedInputProps","SelectionCard","Ribbon","StickyBar","View"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,WAAW,QAAQ,qCAAqC;AACjE,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,SAAS,EAAEC,aAAa,QAAQ,iCAAiC;AAC1E,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,KAAK,QAAQ,yBAAyB;AAC/C,SACEC,WAAW,EACXC,kBAAkB,QACb,qCAAqC;AAC5C,SAASC,WAAW,QAAQ,uCAAuC;AACnE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SAASC,aAAa,QAAQ,yCAAyC;AACvE,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SACEC,QAAQ,EACRC,iBAAiB,EACjBC,UAAU,QACL,+BAA+B;AACtC,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,GAAG,QAAQ,qBAAqB;AACzC,SAASC,cAAc,QAAQ,6CAA6C;AAC5E,SAASC,UAAU,QAAQ,qCAAqC;AAChE,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,YAAY,QAAQ,uCAAuC;AACpE,SAASC,UAAU,QAAQ,mCAAmC;AAC9D,SACEC,IAAI,EACJC,SAAS,EACTC,cAAc,EACdC,QAAQ,EACRC,KAAK,EACLC,mBAAmB,EACnBC,gBAAgB,EAChBC,cAAc,EACdC,mBAAmB,QACd,yBAAyB;AAChC,SAASC,aAAa,QAAQ,0CAA0C;AACxE,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,IAAI,QAAQ,uBAAuB","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { PaginationProps } from './pagination.type';
3
+ declare const Pagination: ({ totalPages, currentPage }: PaginationProps) => JSX.Element;
4
+ export { Pagination };
5
+ //# sourceMappingURL=pagination.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/pagination.component.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,QAAA,MAAM,UAAU,gCAAyC,eAAe,gBAsBvE,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const styles: {
2
+ paginationContainer: {
3
+ flexDirection: "row";
4
+ justifyContent: "flex-start";
5
+ alignItems: "flex-end";
6
+ };
7
+ dot: {
8
+ width: number;
9
+ height: number;
10
+ borderRadius: number;
11
+ backgroundColor: string;
12
+ marginHorizontal: number;
13
+ };
14
+ activeDot: {
15
+ width: number;
16
+ backgroundColor: string;
17
+ };
18
+ };
19
+ //# sourceMappingURL=pagination.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.style.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/pagination.style.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;CAiBjB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export interface PaginationProps {
2
+ /**
3
+ * Total number of pages
4
+ *
5
+ * @default 1
6
+ */
7
+ totalPages?: number;
8
+ /**
9
+ * Current active page
10
+ *
11
+ * @default 1
12
+ */
13
+ currentPage?: number;
14
+ }
15
+ //# sourceMappingURL=pagination.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/pagination.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { StickyBarProps } from './StickyBar.type';
3
+ declare const StickyBar: FC<StickyBarProps>;
4
+ export { StickyBar };
5
+ //# sourceMappingURL=StickyBar.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyBar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/StickyBar/StickyBar.component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA4DjC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ViewStyle } from 'react-native';
2
+ import { StickyBarProps } from './StickyBar.type';
3
+ interface ComputedStyleProps {
4
+ container?: ViewStyle;
5
+ rowContainer?: ViewStyle;
6
+ linearGradient?: ViewStyle;
7
+ contentWrapper?: ViewStyle;
8
+ imageWrapper?: ViewStyle;
9
+ textWrapper?: ViewStyle;
10
+ buttonWrapper?: ViewStyle;
11
+ closeButtonWrapper?: ViewStyle;
12
+ }
13
+ export declare const getStyle: (props: StickyBarProps) => ComputedStyleProps;
14
+ export {};
15
+ //# sourceMappingURL=StickyBar.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyBar.style.d.ts","sourceRoot":"","sources":["../../../../src/components/StickyBar/StickyBar.style.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,QAAQ,UAAW,cAAc,uBA+D7C,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ import { GestureResponderEvent } from 'react-native-modal';
4
+ export interface StickyBarProps extends ViewProps {
5
+ /**
6
+ * State to show or hide the component
7
+ */
8
+ show: boolean;
9
+ /**
10
+ * Text to display
11
+ */
12
+ text: string;
13
+ /**
14
+ * Small icon to the left of the displayed text
15
+ */
16
+ iconComponent?: React.ReactNode;
17
+ /**
18
+ * CTA Button to the right of the displayed text
19
+ */
20
+ buttonComponent?: React.ReactNode;
21
+ /**
22
+ * Close button handler
23
+ */
24
+ onClose?: (event: GestureResponderEvent) => void;
25
+ /**
26
+ *test ID
27
+ */
28
+ testID?: string;
29
+ }
30
+ //# sourceMappingURL=StickyBar.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StickyBar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/StickyBar/StickyBar.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -32,9 +32,11 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
32
32
  export { Countdown } from './countdown/countdown.component';
33
33
  export { Loader } from './Loader/loader.component';
34
34
  export { Notification } from './Notification/notification.component';
35
+ export { Pagination } from './Pagination/pagination.component';
35
36
  export { Mask, MaskArray, MaskInputProps, MaskItem, Masks, UseMaskedInputProps, createNumberMask, formatWithMask, useMaskedInputProps, } from 'react-native-mask-input';
36
37
  export { SelectionCard } from './selection-card/SelectionCard.component';
37
38
  export { Ribbon } from './Ribbon/Ribbon.component';
39
+ export { StickyBar } from './StickyBar/StickyBar.component';
38
40
  export { View } from './View/View.component';
39
41
  export type { ActionListProps } from './ActionList/ActionList.type';
40
42
  export type { BadgesIconProps, BadgesIlustrationProps, BadgesIlustrationRakuProps, BadgesProps, BadgesImageProps, BadgesInitialProps, BadgesStepProps, BadgesLogoProps, } from './Badge/Badge.type';
@@ -54,6 +56,7 @@ export type { TabsProps } from './Tabs/Tabs.type';
54
56
  export type { SearchInputProps } from './search-input/search-input.type';
55
57
  export type { SelectionCardProps } from './selection-card/SelectionCard.type';
56
58
  export type { RibbonProps } from './Ribbon/Ribbon.type';
59
+ export type { StickyBarProps } from './StickyBar/StickyBar.type';
57
60
  export type { ViewProps } from './View/View.type';
58
61
  export type { RadioInputProps, RadioItemProps, RadioItemPropsComponent, } from './RadioInput/RadioInput.type';
59
62
  export type { CheckboxInputProps, CheckboxItemProps, CheckboxItemPropsComponent, } from './CheckBoxInput/CheckBoxInput.type';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uCA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AAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,eAAe,EACf,cAAc,EACd,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,oCAAoC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adiraku/react-native-ui",
3
- "version": "2.0.0-canary-1",
3
+ "version": "2.0.0-canary-2",
4
4
  "description": "UI library for Adiraku apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -71,6 +71,7 @@
71
71
  "react-native-svg": "^13.9.0",
72
72
  "react-native-svg-web": "^1.0.9",
73
73
  "react-native-web": "^0.19.4",
74
+ "react-native-web-linear-gradient": "^1.1.2",
74
75
  "release-it": "^15.0.0",
75
76
  "typescript": "4.5.2"
76
77
  },
@@ -135,6 +136,7 @@
135
136
  "dependencies": {
136
137
  "deepmerge": "^4.3.1",
137
138
  "react-native-calendars": "^1.1306.0",
139
+ "react-native-linear-gradient": "^2.8.3",
138
140
  "react-native-mask-input": "^1.2.3",
139
141
  "react-native-modal": "^13.0.1",
140
142
  "react-native-safe-area-context": "^4.11.0",
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { View } from 'react-native';
3
+ import type { PaginationProps } from './pagination.type';
4
+
5
+ const Pagination = ({ totalPages = 1, currentPage = 1 }: PaginationProps) => {
6
+ return (
7
+ <View style={{ flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'flex-start' }}>
8
+ {Array.from({ length: totalPages }).map((_, index) => {
9
+ const page = index + 0;
10
+ const isActive = page === currentPage;
11
+
12
+ return (
13
+ <View
14
+ key={page}
15
+ style={{
16
+ width: isActive ? 30 : 8,
17
+ height: 8,
18
+ borderRadius: 4,
19
+ backgroundColor: isActive ? '#000' : '#ddd',
20
+ marginHorizontal: 4,
21
+ }}
22
+ />
23
+ );
24
+ })}
25
+ </View>
26
+ );
27
+ };
28
+
29
+ export { Pagination };
@@ -0,0 +1,20 @@
1
+ import { StyleSheet } from 'react-native';
2
+
3
+ export const styles = StyleSheet.create({
4
+ paginationContainer: {
5
+ flexDirection: 'row',
6
+ justifyContent: 'flex-start',
7
+ alignItems: 'flex-end',
8
+ },
9
+ dot: {
10
+ width: 8,
11
+ height: 8,
12
+ borderRadius: 4,
13
+ backgroundColor: '#ddd',
14
+ marginHorizontal: 4,
15
+ },
16
+ activeDot: {
17
+ width: 20,
18
+ backgroundColor: '#000',
19
+ },
20
+ });
@@ -0,0 +1,16 @@
1
+ export interface PaginationProps {
2
+ /**
3
+ * Total number of pages
4
+ *
5
+ * @default 1
6
+ */
7
+ totalPages?: number;
8
+
9
+ /**
10
+ * Current active page
11
+ *
12
+ * @default 1
13
+ */
14
+ currentPage?: number;
15
+ }
16
+
@@ -0,0 +1,74 @@
1
+ import React, { FC } from 'react';
2
+ import { TouchableOpacity, View } from 'react-native';
3
+ import LinearGradient from 'react-native-linear-gradient';
4
+
5
+ import { Typography } from '../typography/typography.component';
6
+ import { StickyBarProps } from './StickyBar.type';
7
+ import { Palettes, Spacing } from 'src/themes';
8
+
9
+ import { IconClose } from 'src/icons';
10
+ import { getStyle } from './StickyBar.style';
11
+
12
+ const StickyBar: FC<StickyBarProps> = ({
13
+ show,
14
+ text,
15
+ onClose,
16
+ iconComponent,
17
+ buttonComponent,
18
+ testID,
19
+ }) => {
20
+ const computedStyle = getStyle({
21
+ show,
22
+ text,
23
+ iconComponent,
24
+ buttonComponent,
25
+ onClose,
26
+ });
27
+
28
+ return (
29
+ <View style={[computedStyle.container]}>
30
+ <LinearGradient
31
+ colors={[Palettes.yellow[600], '#FFFFFF']}
32
+ start={{ x: 0.5, y: 0 }}
33
+ end={{ x: 1, y: 0.1 }}
34
+ useAngle={true}
35
+ angle={45}
36
+ style={[computedStyle.linearGradient]}
37
+ >
38
+ <View style={[computedStyle.rowContainer]}>
39
+ {/* Small Image */}
40
+ <View
41
+ style={[computedStyle.contentWrapper, computedStyle.imageWrapper]}
42
+ >
43
+ {iconComponent}
44
+ </View>
45
+
46
+ {/* Copy */}
47
+ <View
48
+ style={[computedStyle.contentWrapper, computedStyle.textWrapper]}
49
+ >
50
+ <Typography
51
+ variant="overline-small"
52
+ testID={testID}
53
+ accessibilityLabel={testID}
54
+ >
55
+ {text}
56
+ </Typography>
57
+ </View>
58
+
59
+ {/* CTA Button */}
60
+ <View style={[computedStyle.contentWrapper]}>{buttonComponent}</View>
61
+
62
+ {/* Close Button */}
63
+ <View style={[computedStyle.closeButtonWrapper]}>
64
+ <TouchableOpacity onPress={onClose}>
65
+ <IconClose height={Spacing[12]} width={Spacing[12]} />
66
+ </TouchableOpacity>
67
+ </View>
68
+ </View>
69
+ </LinearGradient>
70
+ </View>
71
+ );
72
+ };
73
+
74
+ export { StickyBar };
@@ -0,0 +1,79 @@
1
+ import { StyleSheet, ViewStyle } from 'react-native';
2
+ import { StickyBarProps } from './StickyBar.type';
3
+ import { Palettes, Spacing } from 'src/themes';
4
+
5
+ interface ComputedStyleProps {
6
+ container?: ViewStyle;
7
+ rowContainer?: ViewStyle;
8
+ linearGradient?: ViewStyle;
9
+ contentWrapper?: ViewStyle;
10
+ imageWrapper?: ViewStyle;
11
+ textWrapper?: ViewStyle;
12
+ buttonWrapper?: ViewStyle;
13
+ closeButtonWrapper?: ViewStyle;
14
+ }
15
+
16
+ export const getStyle = (props: StickyBarProps) => {
17
+ const {
18
+ show,
19
+ onClose,
20
+ iconComponent: IconComponent,
21
+ buttonComponent,
22
+ } = props;
23
+
24
+ const computedStyle: ComputedStyleProps = {};
25
+
26
+ computedStyle.container = {
27
+ flex: 1,
28
+ minWidth: 400,
29
+ display: show ? 'flex' : 'none',
30
+ };
31
+
32
+ computedStyle.rowContainer = {
33
+ flexDirection: 'row',
34
+ justifyContent: 'center',
35
+ alignItems: 'center',
36
+ };
37
+
38
+ computedStyle.linearGradient = {
39
+ paddingVertical: Spacing[8],
40
+ paddingHorizontal: Spacing[16],
41
+ borderTopRightRadius: Spacing[16],
42
+ borderTopLeftRadius: Spacing[16],
43
+ position: 'absolute',
44
+ zIndex: 2,
45
+ };
46
+
47
+ computedStyle.contentWrapper = {
48
+ marginRight: Spacing[8],
49
+ };
50
+
51
+ computedStyle.imageWrapper = {
52
+ display: IconComponent ? 'flex' : 'none',
53
+ alignSelf: 'center',
54
+ justifyContent: 'center',
55
+ backgroundColor: 'white',
56
+ borderRadius: Spacing[32],
57
+ padding: 6,
58
+ };
59
+
60
+ computedStyle.textWrapper = {
61
+ flex: 1,
62
+ flexWrap: 'wrap',
63
+ };
64
+
65
+ computedStyle.buttonWrapper = {
66
+ display: buttonComponent ? 'flex' : 'none',
67
+ };
68
+
69
+ computedStyle.closeButtonWrapper = {
70
+ display: onClose ? 'flex' : 'none',
71
+ borderWidth: 2,
72
+ borderRadius: 12,
73
+ borderColor: Palettes.black[900],
74
+ borderStyle: 'solid',
75
+ padding: 2,
76
+ };
77
+
78
+ return StyleSheet.create(computedStyle);
79
+ };
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ import { GestureResponderEvent } from 'react-native-modal';
4
+
5
+ export interface StickyBarProps extends ViewProps {
6
+ /**
7
+ * State to show or hide the component
8
+ */
9
+ show: boolean;
10
+
11
+ /**
12
+ * Text to display
13
+ */
14
+ text: string;
15
+
16
+ /**
17
+ * Small icon to the left of the displayed text
18
+ */
19
+ iconComponent?: React.ReactNode;
20
+
21
+ /**
22
+ * CTA Button to the right of the displayed text
23
+ */
24
+ buttonComponent?: React.ReactNode;
25
+
26
+ /**
27
+ * Close button handler
28
+ */
29
+ onClose?: (event: GestureResponderEvent) => void;
30
+
31
+ /**
32
+ *test ID
33
+ */
34
+ testID?: string;
35
+ }
@@ -39,6 +39,7 @@ export { RoundedTab } from './rounded-tab/rounded-tab.component';
39
39
  export { Countdown } from './countdown/countdown.component';
40
40
  export { Loader } from './Loader/loader.component';
41
41
  export { Notification } from './Notification/notification.component';
42
+ export { Pagination } from './Pagination/pagination.component';
42
43
  export {
43
44
  Mask,
44
45
  MaskArray,
@@ -52,6 +53,7 @@ export {
52
53
  } from 'react-native-mask-input';
53
54
  export { SelectionCard } from './selection-card/SelectionCard.component';
54
55
  export { Ribbon } from './Ribbon/Ribbon.component';
56
+ export { StickyBar } from './StickyBar/StickyBar.component';
55
57
  export { View } from './View/View.component';
56
58
 
57
59
  export type { ActionListProps } from './ActionList/ActionList.type';
@@ -81,6 +83,7 @@ export type { TabsProps } from './Tabs/Tabs.type';
81
83
  export type { SearchInputProps } from './search-input/search-input.type';
82
84
  export type { SelectionCardProps } from './selection-card/SelectionCard.type';
83
85
  export type { RibbonProps } from './Ribbon/Ribbon.type';
86
+ export type { StickyBarProps } from './StickyBar/StickyBar.type';
84
87
  export type { ViewProps } from './View/View.type';
85
88
  export type {
86
89
  RadioInputProps,