@trilogy-ds/react 0.0.1-beta.29 → 0.0.1-beta.30

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 (93) hide show
  1. package/lib/components/autolayout/DefaultSpacingMatrix.js +0 -2
  2. package/lib/components/autolayout/DefaultSpacingMatrix.js.map +1 -1
  3. package/lib/components/breadcrumb/item/BreadcrumbItem.js +3 -2
  4. package/lib/components/breadcrumb/item/BreadcrumbItem.js.map +1 -1
  5. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js +2 -2
  6. package/lib/components/breadcrumb/item/BreadcrumbItem.native.js.map +1 -1
  7. package/lib/components/button/Button.native.d.ts +1 -1
  8. package/lib/components/button/Button.native.js +11 -11
  9. package/lib/components/button/Button.native.js.map +1 -1
  10. package/lib/components/card/image/CardImage.js +1 -1
  11. package/lib/components/card/image/CardImage.js.map +1 -1
  12. package/lib/components/checkbox/Checkbox.native.js +4 -4
  13. package/lib/components/checkbox/Checkbox.native.js.map +1 -1
  14. package/lib/components/chips/Chips.native.js +10 -15
  15. package/lib/components/chips/Chips.native.js.map +1 -1
  16. package/lib/components/chips/list/index.d.ts +2 -0
  17. package/lib/components/chips/list/index.js +3 -0
  18. package/lib/components/chips/list/index.js.map +1 -0
  19. package/lib/components/countdown/Countdown.native.js +5 -7
  20. package/lib/components/countdown/Countdown.native.js.map +1 -1
  21. package/lib/components/enumsComponentsName.d.ts +0 -2
  22. package/lib/components/enumsComponentsName.js +0 -2
  23. package/lib/components/enumsComponentsName.js.map +1 -1
  24. package/lib/components/icon/IconEnum.d.ts +3 -1
  25. package/lib/components/icon/IconEnum.js +2 -0
  26. package/lib/components/icon/IconEnum.js.map +1 -1
  27. package/lib/components/index.d.ts +51 -52
  28. package/lib/components/index.js +51 -52
  29. package/lib/components/index.js.map +1 -1
  30. package/lib/components/list/item/ListItem.d.ts +6 -3
  31. package/lib/components/list/item/ListItem.js +25 -21
  32. package/lib/components/list/item/ListItem.js.map +1 -1
  33. package/lib/components/list/item/ListItem.native.d.ts +3 -3
  34. package/lib/components/list/item/ListItem.native.js +84 -44
  35. package/lib/components/list/item/ListItem.native.js.map +1 -1
  36. package/lib/components/list/item/ListItemProps.d.ts +7 -2
  37. package/lib/components/list/item/ListItemProps.js.map +1 -1
  38. package/lib/components/modal/Modal.native.d.ts +1 -1
  39. package/lib/components/modal/Modal.native.js +3 -3
  40. package/lib/components/modal/Modal.native.js.map +1 -1
  41. package/lib/components/pagination/Pagination.native.js +24 -41
  42. package/lib/components/pagination/Pagination.native.js.map +1 -1
  43. package/lib/components/price/Price.d.ts +2 -1
  44. package/lib/components/price/Price.js +24 -14
  45. package/lib/components/price/Price.js.map +1 -1
  46. package/lib/components/price/Price.native.d.ts +1 -1
  47. package/lib/components/price/Price.native.js +29 -4
  48. package/lib/components/price/Price.native.js.map +1 -1
  49. package/lib/components/price/PriceProps.d.ts +1 -0
  50. package/lib/components/radio/Radio.native.js +6 -6
  51. package/lib/components/radio/Radio.native.js.map +1 -1
  52. package/lib/components/stepper/step/StepperStep.native.js +33 -8
  53. package/lib/components/stepper/step/StepperStep.native.js.map +1 -1
  54. package/lib/components/sticker/Sticker.native.js +2 -1
  55. package/lib/components/sticker/Sticker.native.js.map +1 -1
  56. package/lib/components/table/Table.d.ts +1 -1
  57. package/lib/components/table/Table.js +2 -2
  58. package/lib/components/table/Table.js.map +1 -1
  59. package/lib/components/table/TableProps.d.ts +2 -1
  60. package/lib/components/tabs/item/TabsItem.native.js +13 -8
  61. package/lib/components/tabs/item/TabsItem.native.js.map +1 -1
  62. package/lib/components/textarea/Textarea.native.js +4 -6
  63. package/lib/components/textarea/Textarea.native.js.map +1 -1
  64. package/lib/objects/facets/Color.js +1 -1
  65. package/lib/objects/facets/Color.js.map +1 -1
  66. package/package.json +1 -1
  67. package/lib/components/notification/Notification.d.ts +0 -27
  68. package/lib/components/notification/Notification.js +0 -68
  69. package/lib/components/notification/Notification.js.map +0 -1
  70. package/lib/components/notification/Notification.native.d.ts +0 -25
  71. package/lib/components/notification/Notification.native.js +0 -175
  72. package/lib/components/notification/Notification.native.js.map +0 -1
  73. package/lib/components/notification/NotificationEnum.d.ts +0 -1
  74. package/lib/components/notification/NotificationEnum.js +0 -16
  75. package/lib/components/notification/NotificationEnum.js.map +0 -1
  76. package/lib/components/notification/NotificationProps.d.ts +0 -27
  77. package/lib/components/notification/NotificationProps.js +0 -2
  78. package/lib/components/notification/NotificationProps.js.map +0 -1
  79. package/lib/components/notification/deletable/DeletableNotification.d.ts +0 -11
  80. package/lib/components/notification/deletable/DeletableNotification.js +0 -15
  81. package/lib/components/notification/deletable/DeletableNotification.js.map +0 -1
  82. package/lib/components/notification/deletable/DeletableNotification.native.d.ts +0 -15
  83. package/lib/components/notification/deletable/DeletableNotification.native.js +0 -119
  84. package/lib/components/notification/deletable/DeletableNotification.native.js.map +0 -1
  85. package/lib/components/notification/deletable/DeletableNotificationProps.d.ts +0 -13
  86. package/lib/components/notification/deletable/DeletableNotificationProps.js +0 -2
  87. package/lib/components/notification/deletable/DeletableNotificationProps.js.map +0 -1
  88. package/lib/components/notification/deletable/index.d.ts +0 -2
  89. package/lib/components/notification/deletable/index.js +0 -3
  90. package/lib/components/notification/deletable/index.js.map +0 -1
  91. package/lib/components/notification/index.d.ts +0 -2
  92. package/lib/components/notification/index.js +0 -3
  93. package/lib/components/notification/index.js.map +0 -1
@@ -1,119 +0,0 @@
1
- import * as React from "react";
2
- import { Animated, StyleSheet, TouchableOpacity } from "react-native";
3
- import { View } from "../../view";
4
- import { getColorStyle, TrilogyColor } from "../../../objects";
5
- import { Columns, ColumnsItem } from "../../columns";
6
- import { Icon, IconColor, IconName, IconSize } from "../../icon";
7
- import { Text, TextLevels } from "../../text";
8
- import Swipeable from "react-native-gesture-handler/Swipeable";
9
- import { ComponentName } from "../../enumsComponentsName";
10
- /**
11
- * Deletable Notification
12
- * @param iconName {IconName} Icon Name Type
13
- * @param title {string} Deletable notification title
14
- * @param deletable {ClickEvent | boolean} Click event, pass true if you want deletable style without swipe
15
- * @param read {boolean} If notification has been read
16
- */
17
- const DeletableNotification = ({ iconName, title, deletable, read, }) => {
18
- const backgroundColor = getColorStyle(TrilogyColor.BACKGROUND);
19
- const styles = StyleSheet.create({
20
- notification: {
21
- paddingTop: 0,
22
- paddingLeft: 12,
23
- paddingRight: 12,
24
- alignItems: "center",
25
- justifyContent: "center",
26
- },
27
- shadow: {
28
- shadowColor: "#000",
29
- shadowOffset: {
30
- width: 0,
31
- height: 1,
32
- },
33
- shadowOpacity: 0.33,
34
- shadowRadius: 2.22,
35
- elevation: 1,
36
- },
37
- deletableContainer: {
38
- width: "100%",
39
- paddingTop: 20,
40
- paddingBottom: 20,
41
- borderRadius: 12,
42
- backgroundColor: !read ? "#F2FAFB" : backgroundColor,
43
- paddingLeft: 5,
44
- paddingRight: 5,
45
- alignItems: "center",
46
- justifyContent: "center",
47
- },
48
- badge: {
49
- alignSelf: "center",
50
- width: 10,
51
- height: 10,
52
- marginRight: 8,
53
- marginLeft: 8,
54
- backgroundColor: getColorStyle(TrilogyColor.ERROR),
55
- borderRadius: 30,
56
- justifyContent: "center",
57
- alignItems: "center",
58
- },
59
- swipeInfo: {
60
- backgroundColor: "#eeeeee",
61
- width: 2,
62
- height: 20,
63
- borderRadius: 6,
64
- alignSelf: "flex-end",
65
- marginLeft: !read ? 0 : 26,
66
- },
67
- rightAction: {
68
- justifyContent: "center",
69
- flex: 1,
70
- alignItems: "flex-end",
71
- paddingLeft: 16,
72
- paddingRight: 4,
73
- },
74
- circled: {
75
- width: 60,
76
- height: 60,
77
- backgroundColor: "red",
78
- borderRadius: 60,
79
- justifyContent: "center",
80
- alignItems: "flex-end",
81
- margin: 4,
82
- },
83
- });
84
- const RightActions = ({ dragX, onPress }) => {
85
- const scale = dragX.interpolate({
86
- inputRange: [-100, 0],
87
- outputRange: [1.5, 0.9],
88
- extrapolate: "clamp",
89
- });
90
- return (React.createElement(TouchableOpacity, { onPress: onPress },
91
- React.createElement(Animated.View, { style: [styles.rightAction, { transform: [{ scale }] }] },
92
- React.createElement(Icon, { backgroundColor: TrilogyColor.ERROR, color: IconColor.BACKGROUND, size: IconSize.SMALL, circled: true, name: IconName.TRASH }))));
93
- };
94
- const rightActionTrigger = (progress, onPress) => {
95
- if (Number(JSON.stringify(progress)) > 4) {
96
- onPress(null);
97
- }
98
- };
99
- const notification = (React.createElement(View, { style: [styles.deletableContainer] },
100
- React.createElement(View, { style: styles.notification },
101
- React.createElement(Columns, null,
102
- React.createElement(ColumnsItem, { verticalCenter: true, size: 2 },
103
- React.createElement(Icon, { backgroundColor: TrilogyColor.MAIN, color: IconColor.BACKGROUND, size: IconSize.SMALL, circled: true, name: iconName ? iconName : IconName.BELL })),
104
- title && (React.createElement(ColumnsItem, { verticalCenter: true, size: 12 },
105
- React.createElement(Text, { style: { color: getColorStyle(TrilogyColor.MAIN) }, level: TextLevels.TWO }, title))),
106
- React.createElement(ColumnsItem, { verticalCenter: true, size: 1 },
107
- React.createElement(View, { style: { flexDirection: "row" } },
108
- !read ? React.createElement(View, { style: styles.badge }) : null,
109
- typeof deletable !== "boolean" && (React.createElement(View, { style: styles.swipeInfo }))))))));
110
- return typeof deletable !== "boolean" ? (React.createElement(Swipeable, { renderRightActions: (progress, dragX) => {
111
- rightActionTrigger(progress, deletable);
112
- return (React.createElement(View, null,
113
- React.createElement(RightActions, { dragX: dragX, onPress: deletable }),
114
- notification));
115
- } })) : (notification);
116
- };
117
- DeletableNotification.displayName = ComponentName.DeletableNotification;
118
- export default DeletableNotification;
119
- //# sourceMappingURL=DeletableNotification.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeletableNotification.native.js","sourceRoot":"","sources":["../../../../components/notification/deletable/DeletableNotification.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACrE,OAA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WAAW,IAAC,cAAc,QAAC,IAAI,EAAE,CAAC;oBACjC,oBAAC,IAAI,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;wBAClC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI;wBAC5C,OAAO,SAAS,KAAK,SAAS,IAAI,CACjC,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAI,CAClC,CACI,CACK,CACN,CACL,CACF,CACR,CAAA;IAED,OAAO,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CACtC,oBAAC,SAAS,IACR,kBAAkB,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;YACtC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;YACvC,OAAO,CACL,oBAAC,IAAI;gBACH,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,GAAI;gBACjD,YAAY,CACR,CACR,CAAA;QACH,CAAC,GACD,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAA;AACH,CAAC,CAAA;AAED,qBAAqB,CAAC,WAAW,GAAG,aAAa,CAAC,qBAAqB,CAAA;AAEvE,eAAe,qBAAqB,CAAA"}
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { ClickEvent } from '../../../events/OnClickEvent';
3
- import { AlertProps } from '../../../objects/facets';
4
- import { IconName, IconNameValues } from '../../icon/IconNameEnum';
5
- /**
6
- * Deletable Notification Interface
7
- */
8
- export interface DeletableNotificationProps extends AlertProps {
9
- iconName?: IconName | IconNameValues;
10
- title?: string | React.ReactNode;
11
- deletable: ClickEvent | boolean;
12
- read?: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DeletableNotificationProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeletableNotificationProps.js","sourceRoot":"","sources":["../../../../components/notification/deletable/DeletableNotificationProps.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import DeletableNotification from './DeletableNotification';
2
- export default DeletableNotification;
@@ -1,3 +0,0 @@
1
- import DeletableNotification from './DeletableNotification';
2
- export default DeletableNotification;
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/notification/deletable/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,yBAAyB,CAAA;AAE3D,eAAe,qBAAqB,CAAA"}
@@ -1,2 +0,0 @@
1
- import Notification from './Notification';
2
- export { Notification };
@@ -1,3 +0,0 @@
1
- import Notification from './Notification';
2
- export { Notification };
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,CAAA"}