@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.
@@ -0,0 +1,335 @@
1
+ import {Platform} from 'react-native';
2
+ import {shadow} from './DefaultTable.shadow';
3
+ export default {
4
+ wrap: {
5
+ flex: 1,
6
+ width: '100%',
7
+ minHeight: 0,
8
+ borderRadius: 8,
9
+ overflow: 'hidden',
10
+ position: 'relative',
11
+ },
12
+ toolbar: {
13
+ minHeight: 52,
14
+ paddingHorizontal: 16,
15
+ paddingVertical: 10,
16
+ borderBottomWidth: 1,
17
+ flexDirection: 'row',
18
+ flexWrap: 'nowrap',
19
+ alignItems: 'center',
20
+ justifyContent: 'flex-end',
21
+ gap: 6,
22
+ zIndex: 10,
23
+ },
24
+ toolbarWithCompactTotal: {
25
+ flexWrap: 'wrap',
26
+ },
27
+ toolbarLeft: {
28
+ flex: 1,
29
+ width: '100%',
30
+ flexDirection: 'row',
31
+ flexWrap: 'nowrap',
32
+ alignItems: 'center',
33
+ flexShrink: 0,
34
+ gap: 6,
35
+ minWidth: 0,
36
+ justifyContent: 'space-between',
37
+ },
38
+ toolbarActionGroup: {
39
+ flexDirection: 'row',
40
+ flexWrap: 'nowrap',
41
+ alignItems: 'center',
42
+ gap: 8,
43
+ flexShrink: 0,
44
+ marginLeft: 'auto',
45
+ },
46
+ toolbarCompactLead: {
47
+ flex: 1,
48
+ flexBasis: '100%',
49
+ minWidth: 0,
50
+ flexDirection: 'row',
51
+ flexWrap: 'wrap',
52
+ alignItems: 'center',
53
+ justifyContent: 'flex-end',
54
+ gap: 6,
55
+ },
56
+ toolbarCompactActions: {
57
+ width: '100%',
58
+ flexDirection: 'row',
59
+ flexWrap: 'wrap',
60
+ alignItems: 'center',
61
+ justifyContent: 'flex-end',
62
+ gap: 6,
63
+ flexShrink: 0,
64
+ marginLeft: 0,
65
+ },
66
+ toolbarSearch: {
67
+ width: 260,
68
+ maxWidth: 360,
69
+ flexShrink: 1,
70
+ },
71
+ toolbarSearchButton: {
72
+ minWidth: 30,
73
+ width: 30,
74
+ height: 30,
75
+ borderRadius: 15,
76
+ borderWidth: 1,
77
+ alignItems: 'center',
78
+ justifyContent: 'center',
79
+ flexShrink: 0,
80
+ },
81
+ toolbarCompactSearch: {
82
+ flex: 1,
83
+ width: 'auto',
84
+ maxWidth: '100%',
85
+ minWidth: 104,
86
+ },
87
+ toolbarCountPill: {
88
+ minWidth: 0,
89
+ maxWidth: 112,
90
+ height: 28,
91
+ borderRadius: 999,
92
+ paddingHorizontal: 10,
93
+ alignItems: 'center',
94
+ justifyContent: 'center',
95
+ flexShrink: 1,
96
+ },
97
+ toolbarCountText: {
98
+ fontSize: 9,
99
+ fontWeight: '900',
100
+ },
101
+ toolbarButton: {
102
+ minWidth: 36,
103
+ height: 36,
104
+ borderRadius: 8,
105
+ paddingHorizontal: 10,
106
+ borderWidth: 1,
107
+ flexDirection: 'row',
108
+ alignItems: 'center',
109
+ justifyContent: 'center',
110
+ gap: 4,
111
+ },
112
+ toolbarButtonActive: {
113
+ },
114
+ toolbarAddButton: {
115
+ minWidth: 36,
116
+ width: 36,
117
+ paddingHorizontal: 0,
118
+ },
119
+ floatingAddButton: {
120
+ position: 'absolute',
121
+ right: 16,
122
+ bottom: 16,
123
+ width: 52,
124
+ height: 52,
125
+ borderRadius: 26,
126
+ alignItems: 'center',
127
+ justifyContent: 'center',
128
+ zIndex: 30,
129
+ ...shadow,
130
+ },
131
+ bottomAddBar: {
132
+ paddingHorizontal: 12,
133
+ paddingVertical: 10,
134
+ borderTopWidth: 1,
135
+ borderTopColor: '#E2E8F0',
136
+ backgroundColor: '#FFFFFF',
137
+ zIndex: 14,
138
+ ...shadow,
139
+ ...Platform.select({
140
+ web: {
141
+ position: 'sticky',
142
+ bottom: 0,
143
+ },
144
+ default: {},
145
+ }),
146
+ },
147
+ bottomAddButton: {
148
+ minHeight: 46,
149
+ borderRadius: 8,
150
+ paddingHorizontal: 16,
151
+ flexDirection: 'row',
152
+ alignItems: 'center',
153
+ justifyContent: 'center',
154
+ gap: 8,
155
+ },
156
+ bottomAddText: {
157
+ fontSize: 14,
158
+ fontWeight: '900',
159
+ },
160
+ toolbarBadgeText: {
161
+ fontSize: 10,
162
+ fontWeight: '900',
163
+ },
164
+ toolbarActionLabel: {
165
+ flexShrink: 1,
166
+ fontSize: 11,
167
+ fontWeight: '800',
168
+ letterSpacing: 0.2,
169
+ },
170
+ columnMenu: {
171
+ position: 'absolute',
172
+ right: 8,
173
+ top: 36,
174
+ width: 230,
175
+ maxHeight: 520,
176
+ borderWidth: 1,
177
+ borderColor: '#CBD5E1',
178
+ borderRadius: 10,
179
+ backgroundColor: '#FFFFFF',
180
+ paddingVertical: 6,
181
+ zIndex: 50,
182
+ ...shadow,
183
+ },
184
+ columnMenuItem: {
185
+ minHeight: 32,
186
+ paddingHorizontal: 10,
187
+ flexDirection: 'row',
188
+ alignItems: 'center',
189
+ gap: 8,
190
+ },
191
+ columnMenuText: {
192
+ flex: 1,
193
+ color: '#0F172A',
194
+ fontSize: 12,
195
+ fontWeight: '700',
196
+ },
197
+ columnMenuModalCard: {
198
+ width: 250,
199
+ maxWidth: 250,
200
+ maxHeight: '78%',
201
+ },
202
+ columnMenuModalBody: {
203
+ maxHeight: 520,
204
+ },
205
+ searchModalCard: {
206
+ width: '100%',
207
+ maxWidth: 420,
208
+ },
209
+ filtersModalCard: {
210
+ width: '100%',
211
+ maxWidth: 560,
212
+ },
213
+ debugModalCard: {
214
+ width: '100%',
215
+ maxWidth: 760,
216
+ },
217
+ filtersModalBody: {
218
+ maxHeight: 520,
219
+ },
220
+ filtersModalList: {
221
+ padding: 14,
222
+ gap: 12,
223
+ },
224
+ filtersModalField: {
225
+ width: '100%',
226
+ gap: 4,
227
+ },
228
+ filtersModalInput: {
229
+ width: '100%',
230
+ },
231
+ searchModalBody: {
232
+ padding: 14,
233
+ },
234
+ searchModalInput: {
235
+ width: '100%',
236
+ maxWidth: '100%',
237
+ },
238
+ columnMenuModalList: {
239
+ paddingVertical: 6,
240
+ },
241
+ debugModalBody: {
242
+ maxHeight: 560,
243
+ },
244
+ debugModalContent: {
245
+ padding: 14,
246
+ gap: 12,
247
+ },
248
+ debugSectionHeader: {
249
+ minHeight: 30,
250
+ flexDirection: 'row',
251
+ alignItems: 'center',
252
+ justifyContent: 'space-between',
253
+ gap: 8,
254
+ },
255
+ debugSectionTitle: {
256
+ fontSize: 11,
257
+ fontWeight: '900',
258
+ textTransform: 'uppercase',
259
+ },
260
+ debugCopyButton: {
261
+ height: 28,
262
+ borderRadius: 8,
263
+ borderWidth: 1,
264
+ paddingHorizontal: 9,
265
+ flexDirection: 'row',
266
+ alignItems: 'center',
267
+ justifyContent: 'center',
268
+ gap: 5,
269
+ },
270
+ debugCopyButtonText: {
271
+ fontSize: 11,
272
+ fontWeight: '800',
273
+ },
274
+ debugCodeBlock: {
275
+ minHeight: 92,
276
+ borderWidth: 1,
277
+ borderRadius: 8,
278
+ padding: 10,
279
+ backgroundColor: '#F8FAFC',
280
+ fontSize: 11,
281
+ lineHeight: 16,
282
+ fontFamily: Platform.select({
283
+ ios: 'Menlo',
284
+ android: 'monospace',
285
+ default: 'monospace',
286
+ }),
287
+ },
288
+ scroll: {
289
+ flex: 1,
290
+ width: '100%',
291
+ minHeight: 0,
292
+ },
293
+ body: {
294
+ flex: 1,
295
+ width: '100%',
296
+ minHeight: 0,
297
+ overflow: 'hidden',
298
+ },
299
+ horizontalScrollContent: {
300
+ flexGrow: 1,
301
+ minWidth: '100%',
302
+ },
303
+ content: {
304
+ flex: 1,
305
+ width: '100%',
306
+ minWidth: '100%',
307
+ minHeight: 0,
308
+ },
309
+ headerRow: {
310
+ minHeight: 40,
311
+ width: '100%',
312
+ flexDirection: 'row',
313
+ alignItems: 'center',
314
+ backgroundColor: '#F8FAFC',
315
+ borderBottomWidth: 1,
316
+ borderBottomColor: '#E2E8F0',
317
+ },
318
+ filterRow: {
319
+ minHeight: 46,
320
+ width: '100%',
321
+ flexDirection: 'row',
322
+ alignItems: 'stretch',
323
+ backgroundColor: '#FFFFFF',
324
+ borderBottomWidth: 1,
325
+ borderBottomColor: '#E2E8F0',
326
+ },
327
+ row: {
328
+ minHeight: 48,
329
+ width: '100%',
330
+ flexDirection: 'row',
331
+ alignItems: 'stretch',
332
+ borderBottomWidth: 1,
333
+ borderBottomColor: '#EEF2F7',
334
+ }
335
+ };
@@ -0,0 +1,347 @@
1
+ import {Platform} from 'react-native';
2
+ import {shadow} from './DefaultTable.shadow';
3
+ export default {
4
+ cell: {
5
+ minWidth: 118,
6
+ flexBasis: 118,
7
+ flexGrow: 1,
8
+ flexShrink: 0,
9
+ paddingHorizontal: 14,
10
+ paddingVertical: 10,
11
+ justifyContent: 'center',
12
+ borderRightWidth: 0,
13
+ },
14
+ identityCell: {
15
+ minWidth: 76,
16
+ flexBasis: 76,
17
+ flexGrow: 0.62,
18
+ },
19
+ stickyIdentityCell: {
20
+ backgroundColor: '#FFFFFF',
21
+ zIndex: 5,
22
+ ...Platform.select({
23
+ web: {
24
+ position: 'sticky',
25
+ left: 0,
26
+ },
27
+ default: {},
28
+ }),
29
+ },
30
+ stickyActionsCell: {
31
+ backgroundColor: '#FFFFFF',
32
+ zIndex: 5,
33
+ ...Platform.select({
34
+ web: {
35
+ position: 'sticky',
36
+ right: 0,
37
+ },
38
+ default: {},
39
+ }),
40
+ },
41
+ stickyHeaderCell: {
42
+ zIndex: 8,
43
+ },
44
+ pinnedIdentityCell: {
45
+ backgroundColor: '#FFFFFF',
46
+ zIndex: 6,
47
+ ...Platform.select({
48
+ web: {
49
+ boxShadow: '2px 0 0 rgba(226,232,240,0.9)',
50
+ position: 'relative',
51
+ },
52
+ default: {},
53
+ }),
54
+ },
55
+ pinnedActionsCell: {
56
+ backgroundColor: '#FFFFFF',
57
+ zIndex: 6,
58
+ ...Platform.select({
59
+ web: {
60
+ boxShadow: '-2px 0 0 rgba(226,232,240,0.9)',
61
+ position: 'relative',
62
+ },
63
+ default: {},
64
+ }),
65
+ },
66
+ moneyCell: {
67
+ minWidth: 132,
68
+ flexBasis: 132,
69
+ flexGrow: 0.9,
70
+ },
71
+ headerText: {
72
+ fontSize: 11,
73
+ fontWeight: '800',
74
+ letterSpacing: 0,
75
+ textTransform: 'uppercase',
76
+ },
77
+ sortableHeader: {
78
+ flexDirection: 'row',
79
+ alignItems: 'center',
80
+ gap: 4,
81
+ },
82
+ filterCell: {
83
+ paddingVertical: 4,
84
+ backgroundColor: '#FFFFFF',
85
+ },
86
+ filterInput: {
87
+ height: 30,
88
+ borderWidth: 1,
89
+ borderColor: '#CBD5E1',
90
+ borderRadius: 8,
91
+ paddingHorizontal: 8,
92
+ color: '#0F172A',
93
+ backgroundColor: '#FFFFFF',
94
+ fontSize: 11,
95
+ fontWeight: '700',
96
+ },
97
+ cellText: {
98
+ fontSize: 13,
99
+ fontWeight: '600',
100
+ },
101
+ mutedCellText: {
102
+ color: '#94A3B8',
103
+ },
104
+ editableCell: {
105
+ backgroundColor: '#FFFFFF',
106
+ },
107
+ editingCell: {
108
+ paddingVertical: 4,
109
+ backgroundColor: '#EFF6FF',
110
+ },
111
+ input: {
112
+ flex: 1,
113
+ height: 32,
114
+ borderWidth: 1,
115
+ borderColor: '#93C5FD',
116
+ borderRadius: 8,
117
+ paddingHorizontal: 8,
118
+ color: '#0F172A',
119
+ fontSize: 12,
120
+ fontWeight: '700',
121
+ backgroundColor: '#FFFFFF',
122
+ },
123
+ savingText: {
124
+ marginTop: 2,
125
+ color: '#64748B',
126
+ fontSize: 9,
127
+ fontWeight: '800',
128
+ textTransform: 'uppercase',
129
+ },
130
+ actionsCell: {
131
+ minWidth: 60,
132
+ width: 60,
133
+ flexBasis: 60,
134
+ flexGrow: 0,
135
+ flexShrink: 0,
136
+ maxWidth: 72,
137
+ alignItems: 'center',
138
+ },
139
+ rowActionsGroup: {
140
+ flexDirection: 'row',
141
+ flexWrap: 'wrap',
142
+ alignItems: 'center',
143
+ justifyContent: 'center',
144
+ gap: 6,
145
+ width: '100%',
146
+ },
147
+ iconButton: {
148
+ width: 28,
149
+ height: 28,
150
+ borderRadius: 14,
151
+ alignItems: 'center',
152
+ justifyContent: 'center',
153
+ borderWidth: 1,
154
+ borderColor: '#E2E8F0',
155
+ backgroundColor: '#F8FAFC',
156
+ },
157
+ cancelButton: {
158
+ width: 28,
159
+ height: 28,
160
+ borderRadius: 14,
161
+ alignItems: 'center',
162
+ justifyContent: 'center',
163
+ backgroundColor: '#FFFFFF',
164
+ borderWidth: 1,
165
+ borderColor: '#CBD5E1',
166
+ },
167
+ cardsScroll: {
168
+ flex: 1,
169
+ width: '100%',
170
+ minHeight: 0,
171
+ ...Platform.select({
172
+ web: {
173
+ overflowY: 'auto',
174
+ },
175
+ default: {},
176
+ }),
177
+ },
178
+ cardsGrid: {
179
+ paddingVertical: 10,
180
+ paddingHorizontal: 0,
181
+ gap: 8,
182
+ flexGrow: 1,
183
+ width: '100%',
184
+ alignSelf: 'stretch',
185
+ },
186
+ cardsGridWithBottomAdd: {
187
+ paddingBottom: 86,
188
+ },
189
+ tableList: {
190
+ flex: 1,
191
+ width: '100%',
192
+ minHeight: 0,
193
+ },
194
+ tableListContent: {
195
+ flexGrow: 1,
196
+ width: '100%',
197
+ },
198
+ cardItem: {
199
+ position: 'relative',
200
+ flex: 1,
201
+ flexBasis: 0,
202
+ flexGrow: 1,
203
+ minWidth: 0,
204
+ width: '100%',
205
+ maxWidth: '100%',
206
+ alignSelf: 'stretch',
207
+ },
208
+ cardItemWithActions: {
209
+ flexDirection: 'row',
210
+ alignItems: 'center',
211
+ gap: 8,
212
+ },
213
+ cardContent: {
214
+ flex: 1,
215
+ minWidth: 0,
216
+ width: '100%',
217
+ },
218
+ cardActions: {
219
+ flexDirection: 'row',
220
+ alignItems: 'center',
221
+ justifyContent: 'flex-end',
222
+ gap: 6,
223
+ flexShrink: 0,
224
+ },
225
+ cardActionGroup: {
226
+ flexDirection: 'row',
227
+ alignItems: 'center',
228
+ justifyContent: 'flex-end',
229
+ alignSelf: 'flex-end',
230
+ gap: 6,
231
+ },
232
+ defaultCard: {
233
+ borderWidth: 1,
234
+ borderColor: '#E2E8F0',
235
+ borderRadius: 10,
236
+ backgroundColor: '#FFFFFF',
237
+ padding: 12,
238
+ gap: 8,
239
+ width: '100%',
240
+ },
241
+ defaultCardLine: {
242
+ flexDirection: 'row',
243
+ alignItems: 'center',
244
+ gap: 12,
245
+ },
246
+ defaultCardLabel: {
247
+ width: 130,
248
+ color: '#64748B',
249
+ fontSize: 10,
250
+ fontWeight: '900',
251
+ textTransform: 'uppercase',
252
+ },
253
+ defaultCardValue: {
254
+ flex: 1,
255
+ color: '#0F172A',
256
+ fontSize: 12,
257
+ fontWeight: '700',
258
+ },
259
+ cardEditButton: {
260
+ position: 'absolute',
261
+ top: 8,
262
+ right: 8,
263
+ width: 28,
264
+ height: 28,
265
+ borderRadius: 14,
266
+ alignItems: 'center',
267
+ justifyContent: 'center',
268
+ borderWidth: 1,
269
+ borderColor: '#E2E8F0',
270
+ backgroundColor: '#F8FAFC',
271
+ },
272
+ emptyBox: {
273
+ padding: 20,
274
+ alignItems: 'center',
275
+ justifyContent: 'center',
276
+ gap: 8,
277
+ },
278
+ footerBar: {
279
+ minHeight: 40,
280
+ paddingHorizontal: 8,
281
+ paddingVertical: 5,
282
+ borderTopWidth: 1,
283
+ borderTopColor: '#E2E8F0',
284
+ backgroundColor: '#FFFFFF',
285
+ flexDirection: 'row',
286
+ alignItems: 'center',
287
+ justifyContent: 'space-between',
288
+ gap: 6,
289
+ zIndex: 12,
290
+ ...Platform.select({
291
+ web: {
292
+ position: 'sticky',
293
+ bottom: 0,
294
+ },
295
+ default: {},
296
+ }),
297
+ },
298
+ footerSummaryList: {
299
+ flex: 1,
300
+ minWidth: 0,
301
+ flexDirection: 'row',
302
+ alignItems: 'center',
303
+ gap: 4,
304
+ },
305
+ footerSummaryItem: {
306
+ flex: 1,
307
+ minWidth: 0,
308
+ flexBasis: 0,
309
+ flexShrink: 1,
310
+ paddingHorizontal: 4,
311
+ },
312
+ footerSummaryLabel: {
313
+ color: '#64748B',
314
+ fontSize: 9,
315
+ fontWeight: '900',
316
+ textTransform: 'uppercase',
317
+ },
318
+ footerSummaryValue: {
319
+ color: '#0F172A',
320
+ fontSize: 13,
321
+ fontWeight: '900',
322
+ },
323
+ footerCountPill: {
324
+ maxWidth: '100%',
325
+ minWidth: 0,
326
+ flexShrink: 1,
327
+ borderRadius: 999,
328
+ paddingHorizontal: 10,
329
+ paddingVertical: 5,
330
+ },
331
+ footerCountText: {
332
+ fontSize: 11,
333
+ fontWeight: '900',
334
+ },
335
+ emptyText: {
336
+ color: '#64748B',
337
+ fontSize: 12,
338
+ fontWeight: '700',
339
+ },
340
+ modalOverlay: {
341
+ flex: 1,
342
+ alignItems: 'center',
343
+ justifyContent: 'center',
344
+ padding: 16,
345
+ backgroundColor: 'rgba(15,23,42,0.42)',
346
+ }
347
+ };