sapo-components-ui-rn 1.1.5 → 1.1.6

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.
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { StyleProp, ViewStyle, TextStyle } from "react-native";
3
- type BadgeType = "success" | "error" | "info" | "warning" | "default";
4
- type BadgeSize = "large" | "medium" | "small";
5
- type BadgeMode = "default" | "outline";
6
- type ProgressType = "full" | "half" | "empty" | "none";
3
+ export type BadgeType = "success" | "error" | "info" | "warning" | "default";
4
+ export type BadgeSize = "large" | "medium" | "small";
5
+ export type BadgeMode = "default" | "outline";
6
+ export type ProgressType = "full" | "half" | "empty" | "none";
7
7
  interface BadgeProps {
8
8
  value?: string;
9
9
  borderColor?: string;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export { default as Toast } from "./components/Toast";
13
13
  export { default as View } from "./components/View";
14
14
  export { default as Spacer } from "./components/Spacer";
15
15
  export { default as Image } from "./components/Image";
16
- export { default as Badge } from "./components/Badge";
16
+ export { default as Badge, type BadgeType, type BadgeSize, type BadgeMode, type ProgressType, } from "./components/Badge";
17
17
  export { default as CountingDot } from "./components/CountingDot";
18
18
  export { default as ChipBar } from "./components/ChipBar";
19
19
  export { default as Checkbox } from "./components/Checkbox";
package/dist/index.esm.js CHANGED
@@ -6838,7 +6838,7 @@ var ProgressCircle = function (_a) {
6838
6838
  } }));
6839
6839
  };
6840
6840
  var Badge = React__default.memo(function (_a) {
6841
- var _b = _a.value, value = _b === void 0 ? "1" : _b, style = _a.style, textColor = _a.textColor, textStyle = _a.textStyle, _c = _a.type, type = _c === void 0 ? "success" : _c, _d = _a.badgeSize, badgeSize = _d === void 0 ? "large" : _d, _e = _a.mode, mode = _e === void 0 ? "default" : _e, textSize = _a.textSize, borderColor = _a.borderColor, backgroundColor = _a.backgroundColor, _f = _a.progressType, progressType = _f === void 0 ? "none" : _f, leftIcon = _a.leftIcon;
6841
+ var _b = _a.value, value = _b === void 0 ? "1" : _b, style = _a.style, textColor = _a.textColor, textStyle = _a.textStyle, _c = _a.type, type = _c === void 0 ? "default" : _c, _d = _a.badgeSize, badgeSize = _d === void 0 ? "large" : _d, _e = _a.mode, mode = _e === void 0 ? "default" : _e, textSize = _a.textSize, borderColor = _a.borderColor, backgroundColor = _a.backgroundColor, _f = _a.progressType, progressType = _f === void 0 ? "none" : _f, leftIcon = _a.leftIcon;
6842
6842
  var theme = useInternalTheme();
6843
6843
  var colors = theme.colors;
6844
6844
  var sizeStyles = useMemo(function () {
package/dist/index.js CHANGED
@@ -6871,7 +6871,7 @@ var ProgressCircle = function (_a) {
6871
6871
  } }));
6872
6872
  };
6873
6873
  var Badge = React__default["default"].memo(function (_a) {
6874
- var _b = _a.value, value = _b === void 0 ? "1" : _b, style = _a.style, textColor = _a.textColor, textStyle = _a.textStyle, _c = _a.type, type = _c === void 0 ? "success" : _c, _d = _a.badgeSize, badgeSize = _d === void 0 ? "large" : _d, _e = _a.mode, mode = _e === void 0 ? "default" : _e, textSize = _a.textSize, borderColor = _a.borderColor, backgroundColor = _a.backgroundColor, _f = _a.progressType, progressType = _f === void 0 ? "none" : _f, leftIcon = _a.leftIcon;
6874
+ var _b = _a.value, value = _b === void 0 ? "1" : _b, style = _a.style, textColor = _a.textColor, textStyle = _a.textStyle, _c = _a.type, type = _c === void 0 ? "default" : _c, _d = _a.badgeSize, badgeSize = _d === void 0 ? "large" : _d, _e = _a.mode, mode = _e === void 0 ? "default" : _e, textSize = _a.textSize, borderColor = _a.borderColor, backgroundColor = _a.backgroundColor, _f = _a.progressType, progressType = _f === void 0 ? "none" : _f, leftIcon = _a.leftIcon;
6875
6875
  var theme = useInternalTheme();
6876
6876
  var colors = theme.colors;
6877
6877
  var sizeStyles = React$3.useMemo(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapo-components-ui-rn",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -6,10 +6,10 @@ import { useInternalTheme } from "../../core/theming";
6
6
  import { StyleProp, ViewStyle, TextStyle, StyleSheet } from "react-native";
7
7
  import containerStyles from "@/theme/container-styles";
8
8
 
9
- type BadgeType = "success" | "error" | "info" | "warning" | "default";
10
- type BadgeSize = "large" | "medium" | "small";
11
- type BadgeMode = "default" | "outline";
12
- type ProgressType = "full" | "half" | "empty" | "none";
9
+ export type BadgeType = "success" | "error" | "info" | "warning" | "default";
10
+ export type BadgeSize = "large" | "medium" | "small";
11
+ export type BadgeMode = "default" | "outline";
12
+ export type ProgressType = "full" | "half" | "empty" | "none";
13
13
 
14
14
  interface BadgeProps {
15
15
  value?: string;
@@ -112,7 +112,7 @@ const Badge = React.memo<BadgeProps>(
112
112
  style,
113
113
  textColor,
114
114
  textStyle,
115
- type = "success",
115
+ type = "default",
116
116
  badgeSize = "large",
117
117
  mode = "default",
118
118
  textSize,
package/src/index.ts CHANGED
@@ -19,7 +19,13 @@ export { default as Toast } from "./components/Toast";
19
19
  export { default as View } from "./components/View";
20
20
  export { default as Spacer } from "./components/Spacer";
21
21
  export { default as Image } from "./components/Image";
22
- export { default as Badge } from "./components/Badge";
22
+ export {
23
+ default as Badge,
24
+ type BadgeType,
25
+ type BadgeSize,
26
+ type BadgeMode,
27
+ type ProgressType,
28
+ } from "./components/Badge";
23
29
  export { default as CountingDot } from "./components/CountingDot";
24
30
  export { default as ChipBar } from "./components/ChipBar";
25
31
  export { default as Checkbox } from "./components/Checkbox";
package/src/index.tsx CHANGED
@@ -19,7 +19,13 @@ export { default as Toast } from "./components/Toast";
19
19
  export { default as View } from "./components/View";
20
20
  export { default as Spacer } from "./components/Spacer";
21
21
  export { default as Image } from "./components/Image";
22
- export { default as Badge } from "./components/Badge";
22
+ export {
23
+ default as Badge,
24
+ type BadgeType,
25
+ type BadgeSize,
26
+ type BadgeMode,
27
+ type ProgressType,
28
+ } from "./components/Badge";
23
29
  export { default as CountingDot } from "./components/CountingDot";
24
30
  export { default as ChipBar } from "./components/ChipBar";
25
31
  export { default as Checkbox } from "./components/Checkbox";