@grupalia/rn-ui-kit 0.125.0 → 0.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,24 +3,27 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = NotificationButton;
7
- var _outline = require("react-native-heroicons/outline");
6
+ exports.default = void 0;
7
+ var _nativewind = require("nativewind");
8
8
  var _BaseIcon = _interopRequireDefault(require("./BaseIcon"));
9
9
  var _BasePing = _interopRequireDefault(require("./BasePing"));
10
+ var _line = require("./icons/untitledui/line");
10
11
  var _PressableOpacity = _interopRequireDefault(require("./PressableOpacity"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
14
  function NotificationButton({
14
15
  iconSize = 18,
15
16
  unreadCount,
16
- onPress
17
+ onPress,
18
+ ...props
17
19
  }) {
18
20
  const showPing = unreadCount > 0;
19
21
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PressableOpacity.default, {
20
22
  onPress: onPress,
23
+ ...props,
21
24
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BaseIcon.default, {
22
25
  color: "fg-quaternary",
23
- icon: _outline.BellIcon,
26
+ icon: _line.Bell01,
24
27
  size: iconSize,
25
28
  strokeWidth: 2
26
29
  }), showPing && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BasePing.default, {
@@ -28,4 +31,5 @@ function NotificationButton({
28
31
  })]
29
32
  });
30
33
  }
34
+ var _default = exports.default = (0, _nativewind.styled)(NotificationButton);
31
35
  //# sourceMappingURL=NotificationButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_outline","require","_BaseIcon","_interopRequireDefault","_BasePing","_PressableOpacity","_jsxRuntime","e","__esModule","default","NotificationButton","iconSize","unreadCount","onPress","showPing","jsxs","children","jsx","color","icon","BellIcon","size","strokeWidth","className"],"sourceRoot":"../../../src","sources":["components/NotificationButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAkD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQnC,SAASG,kBAAkBA,CAAC;EACzCC,QAAQ,GAAG,EAAE;EACbC,WAAW;EACXC;AACqB,CAAC,EAAE;EACxB,MAAMC,QAAQ,GAAGF,WAAW,GAAG,CAAC;EAEhC,oBACE,IAAAN,WAAA,CAAAS,IAAA,EAACV,iBAAA,CAAAI,OAAgB;IAACI,OAAO,EAAEA,OAAQ;IAAAG,QAAA,gBACjC,IAAAV,WAAA,CAAAW,GAAA,EAACf,SAAA,CAAAO,OAAQ;MACPS,KAAK,EAAC,eAAe;MACrBC,IAAI,EAAEC,iBAAS;MACfC,IAAI,EAAEV,QAAS;MACfW,WAAW,EAAE;IAAE,CAChB,CAAC,EACDR,QAAQ,iBACP,IAAAR,WAAA,CAAAW,GAAA,EAACb,SAAA,CAAAK,OAAQ;MACPc,SAAS,EAAC;IAAyE,CACpF,CACF;EAAA,CACe,CAAC;AAEvB","ignoreList":[]}
1
+ {"version":3,"names":["_nativewind","require","_BaseIcon","_interopRequireDefault","_BasePing","_line","_PressableOpacity","_jsxRuntime","e","__esModule","default","NotificationButton","iconSize","unreadCount","onPress","props","showPing","jsxs","children","jsx","color","icon","Bell01","size","strokeWidth","className","_default","exports","styled"],"sourceRoot":"../../../src","sources":["components/NotificationButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA6E,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ7E,SAASG,kBAAkBA,CAAC;EAC1BC,QAAQ,GAAG,EAAE;EACbC,WAAW;EACXC,OAAO;EACP,GAAGC;AACkB,CAAC,EAAE;EACxB,MAAMC,QAAQ,GAAGH,WAAW,GAAG,CAAC;EAEhC,oBACE,IAAAN,WAAA,CAAAU,IAAA,EAACX,iBAAA,CAAAI,OAAgB;IACfI,OAAO,EAAEA,OAAQ;IAAA,GACbC,KAAK;IAAAG,QAAA,gBAET,IAAAX,WAAA,CAAAY,GAAA,EAACjB,SAAA,CAAAQ,OAAQ;MACPU,KAAK,EAAC,eAAe;MACrBC,IAAI,EAAEC,YAAO;MACbC,IAAI,EAAEX,QAAS;MACfY,WAAW,EAAE;IAAE,CAChB,CAAC,EACDR,QAAQ,iBACP,IAAAT,WAAA,CAAAY,GAAA,EAACf,SAAA,CAAAM,OAAQ;MACPe,SAAS,EAAC;IAAyE,CACpF,CACF;EAAA,CACe,CAAC;AAEvB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjB,OAAA,GAEc,IAAAkB,kBAAM,EAACjB,kBAAkB,CAAC","ignoreList":[]}
@@ -1,21 +1,24 @@
1
1
  "use strict";
2
2
 
3
- import { BellIcon } from 'react-native-heroicons/outline';
3
+ import { styled } from 'nativewind';
4
4
  import BaseIcon from "./BaseIcon.js";
5
5
  import BasePing from "./BasePing.js";
6
+ import { Bell01 } from "./icons/untitledui/line/index.js";
6
7
  import PressableOpacity from "./PressableOpacity.js";
7
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- export default function NotificationButton({
9
+ function NotificationButton({
9
10
  iconSize = 18,
10
11
  unreadCount,
11
- onPress
12
+ onPress,
13
+ ...props
12
14
  }) {
13
15
  const showPing = unreadCount > 0;
14
16
  return /*#__PURE__*/_jsxs(PressableOpacity, {
15
17
  onPress: onPress,
18
+ ...props,
16
19
  children: [/*#__PURE__*/_jsx(BaseIcon, {
17
20
  color: "fg-quaternary",
18
- icon: BellIcon,
21
+ icon: Bell01,
19
22
  size: iconSize,
20
23
  strokeWidth: 2
21
24
  }), showPing && /*#__PURE__*/_jsx(BasePing, {
@@ -23,4 +26,5 @@ export default function NotificationButton({
23
26
  })]
24
27
  });
25
28
  }
29
+ export default styled(NotificationButton);
26
30
  //# sourceMappingURL=NotificationButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BellIcon","BaseIcon","BasePing","PressableOpacity","jsx","_jsx","jsxs","_jsxs","NotificationButton","iconSize","unreadCount","onPress","showPing","children","color","icon","size","strokeWidth","className"],"sourceRoot":"../../../src","sources":["components/NotificationButton.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,gCAAgC;AAEzD,OAAOC,QAAQ,MAAM,eAAY;AACjC,OAAOC,QAAQ,MAAM,eAAY;AACjC,OAAOC,gBAAgB,MAAM,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQlD,eAAe,SAASC,kBAAkBA,CAAC;EACzCC,QAAQ,GAAG,EAAE;EACbC,WAAW;EACXC;AACqB,CAAC,EAAE;EACxB,MAAMC,QAAQ,GAAGF,WAAW,GAAG,CAAC;EAEhC,oBACEH,KAAA,CAACJ,gBAAgB;IAACQ,OAAO,EAAEA,OAAQ;IAAAE,QAAA,gBACjCR,IAAA,CAACJ,QAAQ;MACPa,KAAK,EAAC,eAAe;MACrBC,IAAI,EAAEf,QAAS;MACfgB,IAAI,EAAEP,QAAS;MACfQ,WAAW,EAAE;IAAE,CAChB,CAAC,EACDL,QAAQ,iBACPP,IAAA,CAACH,QAAQ;MACPgB,SAAS,EAAC;IAAyE,CACpF,CACF;EAAA,CACe,CAAC;AAEvB","ignoreList":[]}
1
+ {"version":3,"names":["styled","BaseIcon","BasePing","Bell01","PressableOpacity","jsx","_jsx","jsxs","_jsxs","NotificationButton","iconSize","unreadCount","onPress","props","showPing","children","color","icon","size","strokeWidth","className"],"sourceRoot":"../../../src","sources":["components/NotificationButton.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,YAAY;AAEnC,OAAOC,QAAQ,MAAM,eAAY;AACjC,OAAOC,QAAQ,MAAM,eAAY;AACjC,SAASC,MAAM,QAAQ,kCAAyB;AAChD,OAAOC,gBAAgB,MAAiC,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ7E,SAASC,kBAAkBA,CAAC;EAC1BC,QAAQ,GAAG,EAAE;EACbC,WAAW;EACXC,OAAO;EACP,GAAGC;AACkB,CAAC,EAAE;EACxB,MAAMC,QAAQ,GAAGH,WAAW,GAAG,CAAC;EAEhC,oBACEH,KAAA,CAACJ,gBAAgB;IACfQ,OAAO,EAAEA,OAAQ;IAAA,GACbC,KAAK;IAAAE,QAAA,gBAETT,IAAA,CAACL,QAAQ;MACPe,KAAK,EAAC,eAAe;MACrBC,IAAI,EAAEd,MAAO;MACbe,IAAI,EAAER,QAAS;MACfS,WAAW,EAAE;IAAE,CAChB,CAAC,EACDL,QAAQ,iBACPR,IAAA,CAACJ,QAAQ;MACPkB,SAAS,EAAC;IAAyE,CACpF,CACF;EAAA,CACe,CAAC;AAEvB;AAEA,eAAepB,MAAM,CAACS,kBAAkB,CAAC","ignoreList":[]}
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- interface NotificationIconProps {
2
+ import { PressableOpacityProps } from './PressableOpacity';
3
+ type NotificationIconProps = PressableOpacityProps & {
3
4
  iconSize?: number;
4
5
  unreadCount: number;
5
6
  onPress: () => void;
6
- }
7
- export default function NotificationButton({ iconSize, unreadCount, onPress, }: NotificationIconProps): import("react").JSX.Element;
8
- export {};
7
+ };
8
+ declare const _default: import("react").ForwardRefExoticComponent<import("nativewind").StyledProps<NotificationIconProps> & import("react").RefAttributes<unknown>>;
9
+ export default _default;
9
10
  //# sourceMappingURL=NotificationButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationButton.tsx"],"names":[],"mappings":";AAMA,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAa,EACb,WAAW,EACX,OAAO,GACR,EAAE,qBAAqB,+BAkBvB"}
1
+ {"version":3,"file":"NotificationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationButton.tsx"],"names":[],"mappings":";AAKA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;;AA8BF,wBAA0C"}
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- interface NotificationIconProps {
2
+ import { PressableOpacityProps } from './PressableOpacity';
3
+ type NotificationIconProps = PressableOpacityProps & {
3
4
  iconSize?: number;
4
5
  unreadCount: number;
5
6
  onPress: () => void;
6
- }
7
- export default function NotificationButton({ iconSize, unreadCount, onPress, }: NotificationIconProps): import("react").JSX.Element;
8
- export {};
7
+ };
8
+ declare const _default: import("react").ForwardRefExoticComponent<import("nativewind").StyledProps<NotificationIconProps> & import("react").RefAttributes<unknown>>;
9
+ export default _default;
9
10
  //# sourceMappingURL=NotificationButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationButton.tsx"],"names":[],"mappings":";AAMA,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAa,EACb,WAAW,EACX,OAAO,GACR,EAAE,qBAAqB,+BAkBvB"}
1
+ {"version":3,"file":"NotificationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/NotificationButton.tsx"],"names":[],"mappings":";AAKA,OAAyB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;;AA8BF,wBAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grupalia/rn-ui-kit",
3
- "version": "0.125.0",
3
+ "version": "0.126.0",
4
4
  "description": "Grupalia React Native UI Kit",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/module/index.d.ts",