@edge-zuq/core 1.2.7 → 1.3.4
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.
- package/README.md +2 -2
- package/lib/module/data/use-cases/remote-get-comment-list.js.map +1 -1
- package/lib/module/data/use-cases/remote-get-image-list.js.map +1 -1
- package/lib/module/infra/axios-http-client-adapter.js +45 -72
- package/lib/module/infra/axios-http-client-adapter.js.map +1 -1
- package/lib/module/infra/offline-mutation-queue.js.map +1 -1
- package/lib/module/infra/rnp-permission-manager-adapter.js.map +1 -1
- package/lib/module/presentation/components/atoms/UIIcon.js +40 -40
- package/lib/module/presentation/components/atoms/UIIcon.js.map +1 -1
- package/lib/module/presentation/components/atoms/UIProgress.js.map +1 -1
- package/lib/module/presentation/components/molecules/UIActionSheet.js.map +1 -1
- package/lib/module/presentation/components/molecules/UIButton.js +5 -5
- package/lib/module/presentation/components/molecules/UIButton.js.map +1 -1
- package/lib/module/presentation/components/molecules/UICurrencyInput.js.map +1 -1
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js +1 -0
- package/lib/module/presentation/components/molecules/UIDatetimeInput.js.map +1 -1
- package/lib/module/presentation/components/molecules/UIImage.js.map +1 -1
- package/lib/module/presentation/components/molecules/UISkeleton.js +41 -9
- package/lib/module/presentation/components/molecules/UISkeleton.js.map +1 -1
- package/lib/module/presentation/components/molecules/UITextInput.js +6 -2
- package/lib/module/presentation/components/molecules/UITextInput.js.map +1 -1
- package/lib/module/presentation/components/molecules/UITextInputMask.js +6 -2
- package/lib/module/presentation/components/molecules/UITextInputMask.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormButton.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormCheckboxInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormCurrencyInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormDatetimeInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormMultiselectInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js +8 -2
- package/lib/module/presentation/components/organisms/UIFormSelectInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIFormTextInput.js.map +1 -1
- package/lib/module/presentation/components/organisms/UIMultipleSelectChip.js +129 -0
- package/lib/module/presentation/components/organisms/UIMultipleSelectChip.js.map +1 -0
- package/lib/module/presentation/components/organisms/UISelectChip.js +33 -2
- package/lib/module/presentation/components/organisms/UISelectChip.js.map +1 -1
- package/lib/module/presentation/components/organisms/UISignature.js +3 -2
- package/lib/module/presentation/components/organisms/UISignature.js.map +1 -1
- package/lib/module/presentation/components/organisms/UISlideButton.js.map +1 -1
- package/lib/module/presentation/components/organisms/index.js +1 -0
- package/lib/module/presentation/components/organisms/index.js.map +1 -1
- package/lib/module/presentation/components/permissions/request-permissions.js.map +1 -1
- package/lib/module/presentation/domain/offline/use-offline-mutation.js +1 -1
- package/lib/module/presentation/domain/offline/use-offline-mutation.js.map +1 -1
- package/lib/module/presentation/domain/offline/use-offline-query.js.map +1 -1
- package/lib/module/theme.js +22 -22
- package/lib/module/theme.js.map +1 -1
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts +1 -1
- package/lib/typescript/src/infra/axios-http-client-adapter.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/atoms/UIIcon.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/atoms/UIProgress.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UIActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UIButton.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UIDatetimeInput.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UIImage.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts +3 -1
- package/lib/typescript/src/presentation/components/molecules/UISkeleton.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInput.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts +1 -0
- package/lib/typescript/src/presentation/components/molecules/UITextInputMask.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/UIFormMultiselectInput.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts +4 -1
- package/lib/typescript/src/presentation/components/organisms/UIFormSelectInput.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/UIMultipleSelectChip.d.ts +17 -0
- package/lib/typescript/src/presentation/components/organisms/UIMultipleSelectChip.d.ts.map +1 -0
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts +6 -2
- package/lib/typescript/src/presentation/components/organisms/UISelectChip.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/UISignature.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/UISlideButton.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/organisms/index.d.ts +1 -0
- package/lib/typescript/src/presentation/components/organisms/index.d.ts.map +1 -1
- package/lib/typescript/src/presentation/components/permissions/request-permissions.d.ts.map +1 -1
- package/package.json +71 -75
- package/src/data/use-cases/remote-get-comment-list.ts +1 -1
- package/src/data/use-cases/remote-get-image-list.ts +2 -2
- package/src/infra/axios-http-client-adapter.ts +46 -70
- package/src/infra/offline-mutation-queue.ts +4 -4
- package/src/infra/rnp-permission-manager-adapter.ts +4 -4
- package/src/presentation/components/atoms/UIIcon.tsx +75 -110
- package/src/presentation/components/atoms/UIProgress.tsx +2 -3
- package/src/presentation/components/molecules/UIActionSheet.tsx +9 -13
- package/src/presentation/components/molecules/UIButton.tsx +6 -7
- package/src/presentation/components/molecules/UICurrencyInput.tsx +2 -2
- package/src/presentation/components/molecules/UIDatetimeInput.tsx +1 -0
- package/src/presentation/components/molecules/UIImage.tsx +3 -5
- package/src/presentation/components/molecules/UISkeleton.tsx +19 -7
- package/src/presentation/components/molecules/UITextInput.tsx +8 -7
- package/src/presentation/components/molecules/UITextInputMask.tsx +8 -7
- package/src/presentation/components/organisms/UIFormButton.tsx +1 -1
- package/src/presentation/components/organisms/UIFormCheckboxInput.tsx +1 -1
- package/src/presentation/components/organisms/UIFormCurrencyInput.tsx +1 -1
- package/src/presentation/components/organisms/UIFormDatetimeInput.tsx +1 -1
- package/src/presentation/components/organisms/UIFormMultiselectInput.tsx +7 -9
- package/src/presentation/components/organisms/UIFormSelectInput.tsx +13 -6
- package/src/presentation/components/organisms/UIFormTextInput.tsx +1 -1
- package/src/presentation/components/organisms/UIMultipleSelectChip.tsx +139 -0
- package/src/presentation/components/organisms/UISelectChip.tsx +26 -3
- package/src/presentation/components/organisms/UISignature.tsx +10 -8
- package/src/presentation/components/organisms/UISlideButton.tsx +5 -7
- package/src/presentation/components/organisms/index.ts +1 -0
- package/src/presentation/components/permissions/request-permissions.tsx +5 -7
- package/src/presentation/domain/offline/use-offline-mutation.ts +2 -2
- package/src/presentation/domain/offline/use-offline-query.ts +1 -1
- package/src/theme.ts +22 -22
|
@@ -30,15 +30,15 @@ export const RequestPermissions = ({
|
|
|
30
30
|
|
|
31
31
|
const check = React.useCallback(async () => {
|
|
32
32
|
const current = await Promise.all(
|
|
33
|
-
permissions.map(async
|
|
33
|
+
permissions.map(async permission => ({
|
|
34
34
|
permission,
|
|
35
35
|
state: await permissionManager.get(permission.value),
|
|
36
36
|
}))
|
|
37
37
|
);
|
|
38
38
|
setPending(
|
|
39
39
|
current
|
|
40
|
-
.filter(
|
|
41
|
-
.map(
|
|
40
|
+
.filter(item => ['denied', 'blocked'].includes(item.state))
|
|
41
|
+
.map(item => item.permission)
|
|
42
42
|
);
|
|
43
43
|
}, [permissionManager, permissions]);
|
|
44
44
|
|
|
@@ -73,8 +73,7 @@ export const RequestPermissions = ({
|
|
|
73
73
|
visible={visible}
|
|
74
74
|
onRequestClose={onClose}
|
|
75
75
|
title={title ?? 'Permissões'}
|
|
76
|
-
estimatedHeight={height}
|
|
77
|
-
>
|
|
76
|
+
estimatedHeight={height}>
|
|
78
77
|
<UIList
|
|
79
78
|
data={pending}
|
|
80
79
|
style={{ height: height ?? 400 }}
|
|
@@ -91,8 +90,7 @@ export const RequestPermissions = ({
|
|
|
91
90
|
variant="contained"
|
|
92
91
|
color="neutral-light-20"
|
|
93
92
|
textColor="brand-violet-500"
|
|
94
|
-
onPress={() => onAllow(item)}
|
|
95
|
-
>
|
|
93
|
+
onPress={() => onAllow(item)}>
|
|
96
94
|
{item.option.allow ?? 'Permitir'}
|
|
97
95
|
</UIButton>
|
|
98
96
|
</UIStack>
|
|
@@ -28,7 +28,7 @@ import type { Storage } from '../../../data/protocols';
|
|
|
28
28
|
const parseData = (data: any) => {
|
|
29
29
|
try {
|
|
30
30
|
return typeof data === 'string' ? JSON.parse(data) : data;
|
|
31
|
-
} catch
|
|
31
|
+
} catch {
|
|
32
32
|
return data;
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -110,7 +110,7 @@ export const useOfflineMutation = <TData, TError, TVariables>({
|
|
|
110
110
|
body: parsedData,
|
|
111
111
|
},
|
|
112
112
|
status: OfflineMutationStatus.PENDING,
|
|
113
|
-
dependencies: dependencies.map(
|
|
113
|
+
dependencies: dependencies.map(value =>
|
|
114
114
|
isIsomorphicId(value) ? value : String(value)
|
|
115
115
|
),
|
|
116
116
|
queryKeysToInvalidate,
|
|
@@ -30,7 +30,7 @@ export const useOfflineQuery = <
|
|
|
30
30
|
}: Params<TQueryFnData, TError, TData, TQueryKey>) => {
|
|
31
31
|
return useQuery({
|
|
32
32
|
queryKey,
|
|
33
|
-
queryFn: async
|
|
33
|
+
queryFn: async context => {
|
|
34
34
|
const data = await (queryFn as any)?.(context);
|
|
35
35
|
if (isInvalidData(data)) {
|
|
36
36
|
throw new Error(
|
package/src/theme.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const theme = {
|
|
|
28
28
|
},
|
|
29
29
|
neutral: {
|
|
30
30
|
light: {
|
|
31
|
-
|
|
31
|
+
transparent: 'transparent',
|
|
32
32
|
'00': '#FFFFFF',
|
|
33
33
|
'05': '#fafcfd',
|
|
34
34
|
'10': '#f0f5f9',
|
|
@@ -49,7 +49,7 @@ export const theme = {
|
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
feedback: {
|
|
52
|
-
|
|
52
|
+
green: {
|
|
53
53
|
'50': '#e7f7f2',
|
|
54
54
|
'100': '#b3e7d6',
|
|
55
55
|
'200': '#8fdbc2',
|
|
@@ -61,7 +61,7 @@ export const theme = {
|
|
|
61
61
|
'800': '#066144',
|
|
62
62
|
'900': '#054a34',
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
red: {
|
|
65
65
|
'50': '#feecec',
|
|
66
66
|
'100': '#fac3c3',
|
|
67
67
|
'200': '#f8a6a6',
|
|
@@ -73,7 +73,7 @@ export const theme = {
|
|
|
73
73
|
'800': '#842222',
|
|
74
74
|
'900': '#651a1a',
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
yellow: {
|
|
77
77
|
'50': '#fff7e7',
|
|
78
78
|
'100': '#ffe6b4',
|
|
79
79
|
'200': '#ffd990',
|
|
@@ -85,7 +85,7 @@ export const theme = {
|
|
|
85
85
|
'800': '#8c5f07',
|
|
86
86
|
'900': '#664905',
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
orange: {
|
|
89
89
|
'50': '#fdf0e6',
|
|
90
90
|
'100': '#f9d1b0',
|
|
91
91
|
'200': '#f6ba8a',
|
|
@@ -97,7 +97,7 @@ export const theme = {
|
|
|
97
97
|
'800': '#823a00',
|
|
98
98
|
'900': '#632d00',
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
magenta: {
|
|
101
101
|
'50': '#ffe7f5',
|
|
102
102
|
'100': '#ffb6de',
|
|
103
103
|
'200': '#ff92cf',
|
|
@@ -109,7 +109,7 @@ export const theme = {
|
|
|
109
109
|
'800': '#8c0a53',
|
|
110
110
|
'900': '#6b083f',
|
|
111
111
|
},
|
|
112
|
-
|
|
112
|
+
purple: {
|
|
113
113
|
'50': '#f5e8f6',
|
|
114
114
|
'100': '#e0b8e4',
|
|
115
115
|
'200': '#d196d7',
|
|
@@ -121,7 +121,7 @@ export const theme = {
|
|
|
121
121
|
'800': '#550e5d',
|
|
122
122
|
'900': '#410b47',
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
turquoise: {
|
|
125
125
|
'50': '#e8f1f8',
|
|
126
126
|
'100': '#b7d2ea',
|
|
127
127
|
'200': '#94bce0',
|
|
@@ -145,7 +145,7 @@ export const theme = {
|
|
|
145
145
|
'800': '#1a2236',
|
|
146
146
|
'900': '#141a2a',
|
|
147
147
|
},
|
|
148
|
-
|
|
148
|
+
gray: {
|
|
149
149
|
'50': '#fdfdfd',
|
|
150
150
|
'100': '#f8f9fa',
|
|
151
151
|
'200': '#f5f6f8',
|
|
@@ -159,7 +159,7 @@ export const theme = {
|
|
|
159
159
|
},
|
|
160
160
|
},
|
|
161
161
|
action: {
|
|
162
|
-
|
|
162
|
+
default: {
|
|
163
163
|
'500': '#252a57',
|
|
164
164
|
},
|
|
165
165
|
'default-2': {
|
|
@@ -169,18 +169,18 @@ export const theme = {
|
|
|
169
169
|
},
|
|
170
170
|
font: {
|
|
171
171
|
weight: {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
172
|
+
black: 'Inter-Black',
|
|
173
|
+
condensed: 'Inter-Bold',
|
|
174
|
+
condensedBold: 'Inter-ExtraBold',
|
|
175
|
+
heavy: 'Inter-Bold',
|
|
176
|
+
light: 'Inter-Light',
|
|
177
|
+
medium: 'Inter-Medium',
|
|
178
|
+
regular: 'Inter-Regular',
|
|
179
|
+
semibold: 'Inter-SemiBold',
|
|
180
|
+
thin: 'Inter-Thin',
|
|
181
|
+
ultralight: 'Inter-Thin',
|
|
182
|
+
bold: 'Inter-Bold',
|
|
183
|
+
normal: 'Inter-Regular',
|
|
184
184
|
'100': 'Inter-Thin',
|
|
185
185
|
'200': 'Inter-ExtraLight',
|
|
186
186
|
'300': 'Inter-Light',
|