@controleonline/ui-default 1.0.275 → 1.0.277
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/package.json +1 -1
- package/src/react/components/table/DefaultTable.dataUtils.js +323 -0
- package/src/react/components/table/DefaultTable.js +2 -2
- package/src/react/components/table/DefaultTable.layoutUtils.js +253 -0
- package/src/react/components/table/DefaultTable.shadow.js +11 -0
- package/src/react/components/table/DefaultTable.styleGroup1.js +335 -0
- package/src/react/components/table/DefaultTable.styleGroup2.js +347 -0
- package/src/react/components/table/DefaultTable.styleGroup3.js +108 -0
- package/src/react/components/table/DefaultTable.styles.js +5 -796
- package/src/react/components/table/DefaultTable.utils.js +2 -566
- package/src/react/components/table/DefaultTableCards.js +1 -0
- package/src/react/components/table/DefaultTableRowActions.js +1 -1
- package/src/react/components/table/useDefaultTablePagination.js +3 -2
- package/src/tests/react/components/table/useDefaultTableStoreSync.test.js +39 -3
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {Platform} from 'react-native';
|
|
2
|
+
import {shadow} from './DefaultTable.shadow';
|
|
3
|
+
export default {
|
|
4
|
+
modalCard: {
|
|
5
|
+
width: '100%',
|
|
6
|
+
maxWidth: 860,
|
|
7
|
+
maxHeight: '86%',
|
|
8
|
+
borderRadius: 12,
|
|
9
|
+
backgroundColor: '#FFFFFF',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
...shadow,
|
|
12
|
+
},
|
|
13
|
+
modalHeader: {
|
|
14
|
+
minHeight: 48,
|
|
15
|
+
paddingHorizontal: 14,
|
|
16
|
+
borderBottomWidth: 1,
|
|
17
|
+
borderBottomColor: '#E2E8F0',
|
|
18
|
+
flexDirection: 'row',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
justifyContent: 'space-between',
|
|
21
|
+
},
|
|
22
|
+
modalTitle: {
|
|
23
|
+
color: '#0F172A',
|
|
24
|
+
fontSize: 16,
|
|
25
|
+
fontWeight: '900',
|
|
26
|
+
},
|
|
27
|
+
modalCloseButton: {
|
|
28
|
+
width: 32,
|
|
29
|
+
height: 32,
|
|
30
|
+
borderRadius: 16,
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderColor: '#E2E8F0',
|
|
35
|
+
backgroundColor: '#F8FAFC',
|
|
36
|
+
},
|
|
37
|
+
modalBody: {
|
|
38
|
+
maxHeight: 520,
|
|
39
|
+
},
|
|
40
|
+
formGrid: {
|
|
41
|
+
padding: 14,
|
|
42
|
+
flexDirection: 'row',
|
|
43
|
+
flexWrap: 'wrap',
|
|
44
|
+
gap: 10,
|
|
45
|
+
},
|
|
46
|
+
formField: {
|
|
47
|
+
flexGrow: 1,
|
|
48
|
+
flexBasis: 220,
|
|
49
|
+
minWidth: 220,
|
|
50
|
+
},
|
|
51
|
+
formLabel: {
|
|
52
|
+
marginBottom: 4,
|
|
53
|
+
color: '#64748B',
|
|
54
|
+
fontSize: 10,
|
|
55
|
+
fontWeight: '900',
|
|
56
|
+
letterSpacing: 0.3,
|
|
57
|
+
textTransform: 'uppercase',
|
|
58
|
+
},
|
|
59
|
+
formInput: {
|
|
60
|
+
height: 34,
|
|
61
|
+
borderWidth: 1,
|
|
62
|
+
borderColor: '#CBD5E1',
|
|
63
|
+
borderRadius: 8,
|
|
64
|
+
paddingHorizontal: 10,
|
|
65
|
+
color: '#0F172A',
|
|
66
|
+
backgroundColor: '#FFFFFF',
|
|
67
|
+
fontSize: 12,
|
|
68
|
+
fontWeight: '700',
|
|
69
|
+
},
|
|
70
|
+
modalActions: {
|
|
71
|
+
minHeight: 52,
|
|
72
|
+
paddingHorizontal: 14,
|
|
73
|
+
borderTopWidth: 1,
|
|
74
|
+
borderTopColor: '#E2E8F0',
|
|
75
|
+
flexDirection: 'row',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
justifyContent: 'flex-end',
|
|
78
|
+
gap: 8,
|
|
79
|
+
},
|
|
80
|
+
secondaryButton: {
|
|
81
|
+
height: 34,
|
|
82
|
+
borderRadius: 8,
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: '#CBD5E1',
|
|
85
|
+
paddingHorizontal: 14,
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
justifyContent: 'center',
|
|
88
|
+
backgroundColor: '#FFFFFF',
|
|
89
|
+
},
|
|
90
|
+
secondaryButtonText: {
|
|
91
|
+
color: '#334155',
|
|
92
|
+
fontSize: 12,
|
|
93
|
+
fontWeight: '800',
|
|
94
|
+
},
|
|
95
|
+
primaryButton: {
|
|
96
|
+
height: 34,
|
|
97
|
+
borderRadius: 8,
|
|
98
|
+
paddingHorizontal: 16,
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
backgroundColor: '#0EA5E9',
|
|
102
|
+
},
|
|
103
|
+
primaryButtonText: {
|
|
104
|
+
color: '#FFFFFF',
|
|
105
|
+
fontSize: 12,
|
|
106
|
+
fontWeight: '900',
|
|
107
|
+
}
|
|
108
|
+
};
|