@controleonline/ui-default 1.0.275 → 1.0.276
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.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
|
@@ -1,797 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
shadowOffset: { width: 0, height: 8 },
|
|
7
|
-
shadowOpacity: 0.14,
|
|
8
|
-
shadowRadius: 20,
|
|
9
|
-
},
|
|
10
|
-
android: { elevation: 6 },
|
|
11
|
-
web: { boxShadow: '0 14px 36px rgba(15,23,42,0.16)' },
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
const styles = StyleSheet.create({
|
|
15
|
-
wrap: {
|
|
16
|
-
flex: 1,
|
|
17
|
-
width: '100%',
|
|
18
|
-
minHeight: 0,
|
|
19
|
-
borderRadius: 8,
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
position: 'relative',
|
|
22
|
-
},
|
|
23
|
-
toolbar: {
|
|
24
|
-
minHeight: 52,
|
|
25
|
-
paddingHorizontal: 16,
|
|
26
|
-
paddingVertical: 10,
|
|
27
|
-
borderBottomWidth: 1,
|
|
28
|
-
flexDirection: 'row',
|
|
29
|
-
flexWrap: 'nowrap',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
justifyContent: 'flex-end',
|
|
32
|
-
gap: 6,
|
|
33
|
-
zIndex: 10,
|
|
34
|
-
},
|
|
35
|
-
toolbarWithCompactTotal: {
|
|
36
|
-
flexWrap: 'wrap',
|
|
37
|
-
},
|
|
38
|
-
toolbarLeft: {
|
|
39
|
-
flex: 1,
|
|
40
|
-
width: '100%',
|
|
41
|
-
flexDirection: 'row',
|
|
42
|
-
flexWrap: 'nowrap',
|
|
43
|
-
alignItems: 'center',
|
|
44
|
-
flexShrink: 0,
|
|
45
|
-
gap: 6,
|
|
46
|
-
minWidth: 0,
|
|
47
|
-
justifyContent: 'space-between',
|
|
48
|
-
},
|
|
49
|
-
toolbarActionGroup: {
|
|
50
|
-
flexDirection: 'row',
|
|
51
|
-
flexWrap: 'nowrap',
|
|
52
|
-
alignItems: 'center',
|
|
53
|
-
gap: 8,
|
|
54
|
-
flexShrink: 0,
|
|
55
|
-
marginLeft: 'auto',
|
|
56
|
-
},
|
|
57
|
-
toolbarCompactLead: {
|
|
58
|
-
flex: 1,
|
|
59
|
-
flexBasis: '100%',
|
|
60
|
-
minWidth: 0,
|
|
61
|
-
flexDirection: 'row',
|
|
62
|
-
flexWrap: 'wrap',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
justifyContent: 'flex-end',
|
|
65
|
-
gap: 6,
|
|
66
|
-
},
|
|
67
|
-
toolbarCompactActions: {
|
|
68
|
-
width: '100%',
|
|
69
|
-
flexDirection: 'row',
|
|
70
|
-
flexWrap: 'wrap',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
justifyContent: 'flex-end',
|
|
73
|
-
gap: 6,
|
|
74
|
-
flexShrink: 0,
|
|
75
|
-
marginLeft: 0,
|
|
76
|
-
},
|
|
77
|
-
toolbarSearch: {
|
|
78
|
-
width: 260,
|
|
79
|
-
maxWidth: 360,
|
|
80
|
-
flexShrink: 1,
|
|
81
|
-
},
|
|
82
|
-
toolbarSearchButton: {
|
|
83
|
-
minWidth: 30,
|
|
84
|
-
width: 30,
|
|
85
|
-
height: 30,
|
|
86
|
-
borderRadius: 15,
|
|
87
|
-
borderWidth: 1,
|
|
88
|
-
alignItems: 'center',
|
|
89
|
-
justifyContent: 'center',
|
|
90
|
-
flexShrink: 0,
|
|
91
|
-
},
|
|
92
|
-
toolbarCompactSearch: {
|
|
93
|
-
flex: 1,
|
|
94
|
-
width: 'auto',
|
|
95
|
-
maxWidth: '100%',
|
|
96
|
-
minWidth: 104,
|
|
97
|
-
},
|
|
98
|
-
toolbarCountPill: {
|
|
99
|
-
minWidth: 0,
|
|
100
|
-
maxWidth: 112,
|
|
101
|
-
height: 28,
|
|
102
|
-
borderRadius: 999,
|
|
103
|
-
paddingHorizontal: 10,
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
justifyContent: 'center',
|
|
106
|
-
flexShrink: 1,
|
|
107
|
-
},
|
|
108
|
-
toolbarCountText: {
|
|
109
|
-
fontSize: 9,
|
|
110
|
-
fontWeight: '900',
|
|
111
|
-
},
|
|
112
|
-
toolbarButton: {
|
|
113
|
-
minWidth: 36,
|
|
114
|
-
height: 36,
|
|
115
|
-
borderRadius: 8,
|
|
116
|
-
paddingHorizontal: 10,
|
|
117
|
-
borderWidth: 1,
|
|
118
|
-
flexDirection: 'row',
|
|
119
|
-
alignItems: 'center',
|
|
120
|
-
justifyContent: 'center',
|
|
121
|
-
gap: 4,
|
|
122
|
-
},
|
|
123
|
-
toolbarButtonActive: {
|
|
124
|
-
},
|
|
125
|
-
toolbarAddButton: {
|
|
126
|
-
minWidth: 36,
|
|
127
|
-
width: 36,
|
|
128
|
-
paddingHorizontal: 0,
|
|
129
|
-
},
|
|
130
|
-
floatingAddButton: {
|
|
131
|
-
position: 'absolute',
|
|
132
|
-
right: 16,
|
|
133
|
-
bottom: 16,
|
|
134
|
-
width: 52,
|
|
135
|
-
height: 52,
|
|
136
|
-
borderRadius: 26,
|
|
137
|
-
alignItems: 'center',
|
|
138
|
-
justifyContent: 'center',
|
|
139
|
-
zIndex: 30,
|
|
140
|
-
...shadow,
|
|
141
|
-
},
|
|
142
|
-
bottomAddBar: {
|
|
143
|
-
paddingHorizontal: 12,
|
|
144
|
-
paddingVertical: 10,
|
|
145
|
-
borderTopWidth: 1,
|
|
146
|
-
borderTopColor: '#E2E8F0',
|
|
147
|
-
backgroundColor: '#FFFFFF',
|
|
148
|
-
zIndex: 14,
|
|
149
|
-
...shadow,
|
|
150
|
-
...Platform.select({
|
|
151
|
-
web: {
|
|
152
|
-
position: 'sticky',
|
|
153
|
-
bottom: 0,
|
|
154
|
-
},
|
|
155
|
-
default: {},
|
|
156
|
-
}),
|
|
157
|
-
},
|
|
158
|
-
bottomAddButton: {
|
|
159
|
-
minHeight: 46,
|
|
160
|
-
borderRadius: 8,
|
|
161
|
-
paddingHorizontal: 16,
|
|
162
|
-
flexDirection: 'row',
|
|
163
|
-
alignItems: 'center',
|
|
164
|
-
justifyContent: 'center',
|
|
165
|
-
gap: 8,
|
|
166
|
-
},
|
|
167
|
-
bottomAddText: {
|
|
168
|
-
fontSize: 14,
|
|
169
|
-
fontWeight: '900',
|
|
170
|
-
},
|
|
171
|
-
toolbarBadgeText: {
|
|
172
|
-
fontSize: 10,
|
|
173
|
-
fontWeight: '900',
|
|
174
|
-
},
|
|
175
|
-
toolbarActionLabel: {
|
|
176
|
-
flexShrink: 1,
|
|
177
|
-
fontSize: 11,
|
|
178
|
-
fontWeight: '800',
|
|
179
|
-
letterSpacing: 0.2,
|
|
180
|
-
},
|
|
181
|
-
columnMenu: {
|
|
182
|
-
position: 'absolute',
|
|
183
|
-
right: 8,
|
|
184
|
-
top: 36,
|
|
185
|
-
width: 230,
|
|
186
|
-
maxHeight: 520,
|
|
187
|
-
borderWidth: 1,
|
|
188
|
-
borderColor: '#CBD5E1',
|
|
189
|
-
borderRadius: 10,
|
|
190
|
-
backgroundColor: '#FFFFFF',
|
|
191
|
-
paddingVertical: 6,
|
|
192
|
-
zIndex: 50,
|
|
193
|
-
...shadow,
|
|
194
|
-
},
|
|
195
|
-
columnMenuItem: {
|
|
196
|
-
minHeight: 32,
|
|
197
|
-
paddingHorizontal: 10,
|
|
198
|
-
flexDirection: 'row',
|
|
199
|
-
alignItems: 'center',
|
|
200
|
-
gap: 8,
|
|
201
|
-
},
|
|
202
|
-
columnMenuText: {
|
|
203
|
-
flex: 1,
|
|
204
|
-
color: '#0F172A',
|
|
205
|
-
fontSize: 12,
|
|
206
|
-
fontWeight: '700',
|
|
207
|
-
},
|
|
208
|
-
columnMenuModalCard: {
|
|
209
|
-
width: 250,
|
|
210
|
-
maxWidth: 250,
|
|
211
|
-
maxHeight: '78%',
|
|
212
|
-
},
|
|
213
|
-
columnMenuModalBody: {
|
|
214
|
-
maxHeight: 520,
|
|
215
|
-
},
|
|
216
|
-
searchModalCard: {
|
|
217
|
-
width: '100%',
|
|
218
|
-
maxWidth: 420,
|
|
219
|
-
},
|
|
220
|
-
filtersModalCard: {
|
|
221
|
-
width: '100%',
|
|
222
|
-
maxWidth: 560,
|
|
223
|
-
},
|
|
224
|
-
debugModalCard: {
|
|
225
|
-
width: '100%',
|
|
226
|
-
maxWidth: 760,
|
|
227
|
-
},
|
|
228
|
-
filtersModalBody: {
|
|
229
|
-
maxHeight: 520,
|
|
230
|
-
},
|
|
231
|
-
filtersModalList: {
|
|
232
|
-
padding: 14,
|
|
233
|
-
gap: 12,
|
|
234
|
-
},
|
|
235
|
-
filtersModalField: {
|
|
236
|
-
width: '100%',
|
|
237
|
-
gap: 4,
|
|
238
|
-
},
|
|
239
|
-
filtersModalInput: {
|
|
240
|
-
width: '100%',
|
|
241
|
-
},
|
|
242
|
-
searchModalBody: {
|
|
243
|
-
padding: 14,
|
|
244
|
-
},
|
|
245
|
-
searchModalInput: {
|
|
246
|
-
width: '100%',
|
|
247
|
-
maxWidth: '100%',
|
|
248
|
-
},
|
|
249
|
-
columnMenuModalList: {
|
|
250
|
-
paddingVertical: 6,
|
|
251
|
-
},
|
|
252
|
-
debugModalBody: {
|
|
253
|
-
maxHeight: 560,
|
|
254
|
-
},
|
|
255
|
-
debugModalContent: {
|
|
256
|
-
padding: 14,
|
|
257
|
-
gap: 12,
|
|
258
|
-
},
|
|
259
|
-
debugSectionHeader: {
|
|
260
|
-
minHeight: 30,
|
|
261
|
-
flexDirection: 'row',
|
|
262
|
-
alignItems: 'center',
|
|
263
|
-
justifyContent: 'space-between',
|
|
264
|
-
gap: 8,
|
|
265
|
-
},
|
|
266
|
-
debugSectionTitle: {
|
|
267
|
-
fontSize: 11,
|
|
268
|
-
fontWeight: '900',
|
|
269
|
-
textTransform: 'uppercase',
|
|
270
|
-
},
|
|
271
|
-
debugCopyButton: {
|
|
272
|
-
height: 28,
|
|
273
|
-
borderRadius: 8,
|
|
274
|
-
borderWidth: 1,
|
|
275
|
-
paddingHorizontal: 9,
|
|
276
|
-
flexDirection: 'row',
|
|
277
|
-
alignItems: 'center',
|
|
278
|
-
justifyContent: 'center',
|
|
279
|
-
gap: 5,
|
|
280
|
-
},
|
|
281
|
-
debugCopyButtonText: {
|
|
282
|
-
fontSize: 11,
|
|
283
|
-
fontWeight: '800',
|
|
284
|
-
},
|
|
285
|
-
debugCodeBlock: {
|
|
286
|
-
minHeight: 92,
|
|
287
|
-
borderWidth: 1,
|
|
288
|
-
borderRadius: 8,
|
|
289
|
-
padding: 10,
|
|
290
|
-
backgroundColor: '#F8FAFC',
|
|
291
|
-
fontSize: 11,
|
|
292
|
-
lineHeight: 16,
|
|
293
|
-
fontFamily: Platform.select({
|
|
294
|
-
ios: 'Menlo',
|
|
295
|
-
android: 'monospace',
|
|
296
|
-
default: 'monospace',
|
|
297
|
-
}),
|
|
298
|
-
},
|
|
299
|
-
scroll: {
|
|
300
|
-
flex: 1,
|
|
301
|
-
width: '100%',
|
|
302
|
-
minHeight: 0,
|
|
303
|
-
},
|
|
304
|
-
body: {
|
|
305
|
-
flex: 1,
|
|
306
|
-
width: '100%',
|
|
307
|
-
minHeight: 0,
|
|
308
|
-
overflow: 'hidden',
|
|
309
|
-
},
|
|
310
|
-
horizontalScrollContent: {
|
|
311
|
-
flexGrow: 1,
|
|
312
|
-
minWidth: '100%',
|
|
313
|
-
},
|
|
314
|
-
content: {
|
|
315
|
-
flex: 1,
|
|
316
|
-
width: '100%',
|
|
317
|
-
minWidth: '100%',
|
|
318
|
-
minHeight: 0,
|
|
319
|
-
},
|
|
320
|
-
headerRow: {
|
|
321
|
-
minHeight: 40,
|
|
322
|
-
width: '100%',
|
|
323
|
-
flexDirection: 'row',
|
|
324
|
-
alignItems: 'center',
|
|
325
|
-
backgroundColor: '#F8FAFC',
|
|
326
|
-
borderBottomWidth: 1,
|
|
327
|
-
borderBottomColor: '#E2E8F0',
|
|
328
|
-
},
|
|
329
|
-
filterRow: {
|
|
330
|
-
minHeight: 46,
|
|
331
|
-
width: '100%',
|
|
332
|
-
flexDirection: 'row',
|
|
333
|
-
alignItems: 'stretch',
|
|
334
|
-
backgroundColor: '#FFFFFF',
|
|
335
|
-
borderBottomWidth: 1,
|
|
336
|
-
borderBottomColor: '#E2E8F0',
|
|
337
|
-
},
|
|
338
|
-
row: {
|
|
339
|
-
minHeight: 48,
|
|
340
|
-
width: '100%',
|
|
341
|
-
flexDirection: 'row',
|
|
342
|
-
alignItems: 'stretch',
|
|
343
|
-
borderBottomWidth: 1,
|
|
344
|
-
borderBottomColor: '#EEF2F7',
|
|
345
|
-
},
|
|
346
|
-
cell: {
|
|
347
|
-
minWidth: 118,
|
|
348
|
-
flexBasis: 118,
|
|
349
|
-
flexGrow: 1,
|
|
350
|
-
flexShrink: 0,
|
|
351
|
-
paddingHorizontal: 14,
|
|
352
|
-
paddingVertical: 10,
|
|
353
|
-
justifyContent: 'center',
|
|
354
|
-
borderRightWidth: 0,
|
|
355
|
-
},
|
|
356
|
-
identityCell: {
|
|
357
|
-
minWidth: 76,
|
|
358
|
-
flexBasis: 76,
|
|
359
|
-
flexGrow: 0.62,
|
|
360
|
-
},
|
|
361
|
-
stickyIdentityCell: {
|
|
362
|
-
backgroundColor: '#FFFFFF',
|
|
363
|
-
zIndex: 5,
|
|
364
|
-
...Platform.select({
|
|
365
|
-
web: {
|
|
366
|
-
position: 'sticky',
|
|
367
|
-
left: 0,
|
|
368
|
-
},
|
|
369
|
-
default: {},
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
372
|
-
stickyActionsCell: {
|
|
373
|
-
backgroundColor: '#FFFFFF',
|
|
374
|
-
zIndex: 5,
|
|
375
|
-
...Platform.select({
|
|
376
|
-
web: {
|
|
377
|
-
position: 'sticky',
|
|
378
|
-
right: 0,
|
|
379
|
-
},
|
|
380
|
-
default: {},
|
|
381
|
-
}),
|
|
382
|
-
},
|
|
383
|
-
stickyHeaderCell: {
|
|
384
|
-
zIndex: 8,
|
|
385
|
-
},
|
|
386
|
-
pinnedIdentityCell: {
|
|
387
|
-
backgroundColor: '#FFFFFF',
|
|
388
|
-
zIndex: 6,
|
|
389
|
-
...Platform.select({
|
|
390
|
-
web: {
|
|
391
|
-
boxShadow: '2px 0 0 rgba(226,232,240,0.9)',
|
|
392
|
-
position: 'relative',
|
|
393
|
-
},
|
|
394
|
-
default: {},
|
|
395
|
-
}),
|
|
396
|
-
},
|
|
397
|
-
pinnedActionsCell: {
|
|
398
|
-
backgroundColor: '#FFFFFF',
|
|
399
|
-
zIndex: 6,
|
|
400
|
-
...Platform.select({
|
|
401
|
-
web: {
|
|
402
|
-
boxShadow: '-2px 0 0 rgba(226,232,240,0.9)',
|
|
403
|
-
position: 'relative',
|
|
404
|
-
},
|
|
405
|
-
default: {},
|
|
406
|
-
}),
|
|
407
|
-
},
|
|
408
|
-
moneyCell: {
|
|
409
|
-
minWidth: 132,
|
|
410
|
-
flexBasis: 132,
|
|
411
|
-
flexGrow: 0.9,
|
|
412
|
-
},
|
|
413
|
-
headerText: {
|
|
414
|
-
fontSize: 11,
|
|
415
|
-
fontWeight: '800',
|
|
416
|
-
letterSpacing: 0,
|
|
417
|
-
textTransform: 'uppercase',
|
|
418
|
-
},
|
|
419
|
-
sortableHeader: {
|
|
420
|
-
flexDirection: 'row',
|
|
421
|
-
alignItems: 'center',
|
|
422
|
-
gap: 4,
|
|
423
|
-
},
|
|
424
|
-
filterCell: {
|
|
425
|
-
paddingVertical: 4,
|
|
426
|
-
backgroundColor: '#FFFFFF',
|
|
427
|
-
},
|
|
428
|
-
filterInput: {
|
|
429
|
-
height: 30,
|
|
430
|
-
borderWidth: 1,
|
|
431
|
-
borderColor: '#CBD5E1',
|
|
432
|
-
borderRadius: 8,
|
|
433
|
-
paddingHorizontal: 8,
|
|
434
|
-
color: '#0F172A',
|
|
435
|
-
backgroundColor: '#FFFFFF',
|
|
436
|
-
fontSize: 11,
|
|
437
|
-
fontWeight: '700',
|
|
438
|
-
},
|
|
439
|
-
cellText: {
|
|
440
|
-
fontSize: 13,
|
|
441
|
-
fontWeight: '600',
|
|
442
|
-
},
|
|
443
|
-
mutedCellText: {
|
|
444
|
-
color: '#94A3B8',
|
|
445
|
-
},
|
|
446
|
-
editableCell: {
|
|
447
|
-
backgroundColor: '#FFFFFF',
|
|
448
|
-
},
|
|
449
|
-
editingCell: {
|
|
450
|
-
paddingVertical: 4,
|
|
451
|
-
backgroundColor: '#EFF6FF',
|
|
452
|
-
},
|
|
453
|
-
input: {
|
|
454
|
-
flex: 1,
|
|
455
|
-
height: 32,
|
|
456
|
-
borderWidth: 1,
|
|
457
|
-
borderColor: '#93C5FD',
|
|
458
|
-
borderRadius: 8,
|
|
459
|
-
paddingHorizontal: 8,
|
|
460
|
-
color: '#0F172A',
|
|
461
|
-
fontSize: 12,
|
|
462
|
-
fontWeight: '700',
|
|
463
|
-
backgroundColor: '#FFFFFF',
|
|
464
|
-
},
|
|
465
|
-
savingText: {
|
|
466
|
-
marginTop: 2,
|
|
467
|
-
color: '#64748B',
|
|
468
|
-
fontSize: 9,
|
|
469
|
-
fontWeight: '800',
|
|
470
|
-
textTransform: 'uppercase',
|
|
471
|
-
},
|
|
472
|
-
actionsCell: {
|
|
473
|
-
minWidth: 60,
|
|
474
|
-
width: 60,
|
|
475
|
-
flexBasis: 60,
|
|
476
|
-
flexGrow: 0,
|
|
477
|
-
flexShrink: 0,
|
|
478
|
-
maxWidth: 72,
|
|
479
|
-
alignItems: 'center',
|
|
480
|
-
},
|
|
481
|
-
rowActionsGroup: {
|
|
482
|
-
flexDirection: 'row',
|
|
483
|
-
flexWrap: 'wrap',
|
|
484
|
-
alignItems: 'center',
|
|
485
|
-
justifyContent: 'center',
|
|
486
|
-
gap: 6,
|
|
487
|
-
width: '100%',
|
|
488
|
-
},
|
|
489
|
-
iconButton: {
|
|
490
|
-
width: 28,
|
|
491
|
-
height: 28,
|
|
492
|
-
borderRadius: 14,
|
|
493
|
-
alignItems: 'center',
|
|
494
|
-
justifyContent: 'center',
|
|
495
|
-
borderWidth: 1,
|
|
496
|
-
borderColor: '#E2E8F0',
|
|
497
|
-
backgroundColor: '#F8FAFC',
|
|
498
|
-
},
|
|
499
|
-
cancelButton: {
|
|
500
|
-
width: 28,
|
|
501
|
-
height: 28,
|
|
502
|
-
borderRadius: 14,
|
|
503
|
-
alignItems: 'center',
|
|
504
|
-
justifyContent: 'center',
|
|
505
|
-
backgroundColor: '#FFFFFF',
|
|
506
|
-
borderWidth: 1,
|
|
507
|
-
borderColor: '#CBD5E1',
|
|
508
|
-
},
|
|
509
|
-
cardsScroll: {
|
|
510
|
-
flex: 1,
|
|
511
|
-
width: '100%',
|
|
512
|
-
minHeight: 0,
|
|
513
|
-
...Platform.select({
|
|
514
|
-
web: {
|
|
515
|
-
overflowY: 'auto',
|
|
516
|
-
},
|
|
517
|
-
default: {},
|
|
518
|
-
}),
|
|
519
|
-
},
|
|
520
|
-
cardsGrid: {
|
|
521
|
-
paddingVertical: 10,
|
|
522
|
-
paddingHorizontal: 0,
|
|
523
|
-
gap: 8,
|
|
524
|
-
flexGrow: 1,
|
|
525
|
-
width: '100%',
|
|
526
|
-
alignSelf: 'stretch',
|
|
527
|
-
},
|
|
528
|
-
cardsGridWithBottomAdd: {
|
|
529
|
-
paddingBottom: 86,
|
|
530
|
-
},
|
|
531
|
-
tableList: {
|
|
532
|
-
flex: 1,
|
|
533
|
-
width: '100%',
|
|
534
|
-
minHeight: 0,
|
|
535
|
-
},
|
|
536
|
-
tableListContent: {
|
|
537
|
-
flexGrow: 1,
|
|
538
|
-
width: '100%',
|
|
539
|
-
},
|
|
540
|
-
// FlatList multi-column cells must stretch so cards fill the row
|
|
541
|
-
// (app-community#710 — products card grid floating on desktop).
|
|
542
|
-
cardItem: {
|
|
543
|
-
position: 'relative',
|
|
544
|
-
flex: 1,
|
|
545
|
-
flexBasis: 0,
|
|
546
|
-
flexGrow: 1,
|
|
547
|
-
minWidth: 0,
|
|
548
|
-
width: '100%',
|
|
549
|
-
maxWidth: '100%',
|
|
550
|
-
alignSelf: 'stretch',
|
|
551
|
-
},
|
|
552
|
-
cardItemWithActions: {
|
|
553
|
-
flexDirection: 'row',
|
|
554
|
-
alignItems: 'center',
|
|
555
|
-
gap: 8,
|
|
556
|
-
},
|
|
557
|
-
cardContent: {
|
|
558
|
-
flex: 1,
|
|
559
|
-
minWidth: 0,
|
|
560
|
-
width: '100%',
|
|
561
|
-
},
|
|
562
|
-
cardActions: {
|
|
563
|
-
flexDirection: 'row',
|
|
564
|
-
alignItems: 'center',
|
|
565
|
-
justifyContent: 'flex-end',
|
|
566
|
-
gap: 6,
|
|
567
|
-
flexShrink: 0,
|
|
568
|
-
},
|
|
569
|
-
cardActionGroup: {
|
|
570
|
-
flexDirection: 'row',
|
|
571
|
-
alignItems: 'center',
|
|
572
|
-
justifyContent: 'flex-end',
|
|
573
|
-
alignSelf: 'flex-end',
|
|
574
|
-
gap: 6,
|
|
575
|
-
},
|
|
576
|
-
defaultCard: {
|
|
577
|
-
borderWidth: 1,
|
|
578
|
-
borderColor: '#E2E8F0',
|
|
579
|
-
borderRadius: 10,
|
|
580
|
-
backgroundColor: '#FFFFFF',
|
|
581
|
-
padding: 12,
|
|
582
|
-
gap: 8,
|
|
583
|
-
width: '100%',
|
|
584
|
-
},
|
|
585
|
-
defaultCardLine: {
|
|
586
|
-
flexDirection: 'row',
|
|
587
|
-
alignItems: 'center',
|
|
588
|
-
gap: 12,
|
|
589
|
-
},
|
|
590
|
-
defaultCardLabel: {
|
|
591
|
-
width: 130,
|
|
592
|
-
color: '#64748B',
|
|
593
|
-
fontSize: 10,
|
|
594
|
-
fontWeight: '900',
|
|
595
|
-
textTransform: 'uppercase',
|
|
596
|
-
},
|
|
597
|
-
defaultCardValue: {
|
|
598
|
-
flex: 1,
|
|
599
|
-
color: '#0F172A',
|
|
600
|
-
fontSize: 12,
|
|
601
|
-
fontWeight: '700',
|
|
602
|
-
},
|
|
603
|
-
cardEditButton: {
|
|
604
|
-
position: 'absolute',
|
|
605
|
-
top: 8,
|
|
606
|
-
right: 8,
|
|
607
|
-
width: 28,
|
|
608
|
-
height: 28,
|
|
609
|
-
borderRadius: 14,
|
|
610
|
-
alignItems: 'center',
|
|
611
|
-
justifyContent: 'center',
|
|
612
|
-
borderWidth: 1,
|
|
613
|
-
borderColor: '#E2E8F0',
|
|
614
|
-
backgroundColor: '#F8FAFC',
|
|
615
|
-
},
|
|
616
|
-
emptyBox: {
|
|
617
|
-
padding: 20,
|
|
618
|
-
alignItems: 'center',
|
|
619
|
-
justifyContent: 'center',
|
|
620
|
-
gap: 8,
|
|
621
|
-
},
|
|
622
|
-
footerBar: {
|
|
623
|
-
minHeight: 40,
|
|
624
|
-
paddingHorizontal: 8,
|
|
625
|
-
paddingVertical: 5,
|
|
626
|
-
borderTopWidth: 1,
|
|
627
|
-
borderTopColor: '#E2E8F0',
|
|
628
|
-
backgroundColor: '#FFFFFF',
|
|
629
|
-
flexDirection: 'row',
|
|
630
|
-
alignItems: 'center',
|
|
631
|
-
justifyContent: 'space-between',
|
|
632
|
-
gap: 6,
|
|
633
|
-
zIndex: 12,
|
|
634
|
-
...Platform.select({
|
|
635
|
-
web: {
|
|
636
|
-
position: 'sticky',
|
|
637
|
-
bottom: 0,
|
|
638
|
-
},
|
|
639
|
-
default: {},
|
|
640
|
-
}),
|
|
641
|
-
},
|
|
642
|
-
footerSummaryList: {
|
|
643
|
-
flex: 1,
|
|
644
|
-
minWidth: 0,
|
|
645
|
-
flexDirection: 'row',
|
|
646
|
-
alignItems: 'center',
|
|
647
|
-
gap: 4,
|
|
648
|
-
},
|
|
649
|
-
footerSummaryItem: {
|
|
650
|
-
flex: 1,
|
|
651
|
-
minWidth: 0,
|
|
652
|
-
flexBasis: 0,
|
|
653
|
-
flexShrink: 1,
|
|
654
|
-
paddingHorizontal: 4,
|
|
655
|
-
},
|
|
656
|
-
footerSummaryLabel: {
|
|
657
|
-
color: '#64748B',
|
|
658
|
-
fontSize: 9,
|
|
659
|
-
fontWeight: '900',
|
|
660
|
-
textTransform: 'uppercase',
|
|
661
|
-
},
|
|
662
|
-
footerSummaryValue: {
|
|
663
|
-
color: '#0F172A',
|
|
664
|
-
fontSize: 13,
|
|
665
|
-
fontWeight: '900',
|
|
666
|
-
},
|
|
667
|
-
footerCountPill: {
|
|
668
|
-
maxWidth: '100%',
|
|
669
|
-
minWidth: 0,
|
|
670
|
-
flexShrink: 1,
|
|
671
|
-
borderRadius: 999,
|
|
672
|
-
paddingHorizontal: 10,
|
|
673
|
-
paddingVertical: 5,
|
|
674
|
-
},
|
|
675
|
-
footerCountText: {
|
|
676
|
-
fontSize: 11,
|
|
677
|
-
fontWeight: '900',
|
|
678
|
-
},
|
|
679
|
-
emptyText: {
|
|
680
|
-
color: '#64748B',
|
|
681
|
-
fontSize: 12,
|
|
682
|
-
fontWeight: '700',
|
|
683
|
-
},
|
|
684
|
-
modalOverlay: {
|
|
685
|
-
flex: 1,
|
|
686
|
-
alignItems: 'center',
|
|
687
|
-
justifyContent: 'center',
|
|
688
|
-
padding: 16,
|
|
689
|
-
backgroundColor: 'rgba(15,23,42,0.42)',
|
|
690
|
-
},
|
|
691
|
-
modalCard: {
|
|
692
|
-
width: '100%',
|
|
693
|
-
maxWidth: 860,
|
|
694
|
-
maxHeight: '86%',
|
|
695
|
-
borderRadius: 12,
|
|
696
|
-
backgroundColor: '#FFFFFF',
|
|
697
|
-
overflow: 'hidden',
|
|
698
|
-
...shadow,
|
|
699
|
-
},
|
|
700
|
-
modalHeader: {
|
|
701
|
-
minHeight: 48,
|
|
702
|
-
paddingHorizontal: 14,
|
|
703
|
-
borderBottomWidth: 1,
|
|
704
|
-
borderBottomColor: '#E2E8F0',
|
|
705
|
-
flexDirection: 'row',
|
|
706
|
-
alignItems: 'center',
|
|
707
|
-
justifyContent: 'space-between',
|
|
708
|
-
},
|
|
709
|
-
modalTitle: {
|
|
710
|
-
color: '#0F172A',
|
|
711
|
-
fontSize: 16,
|
|
712
|
-
fontWeight: '900',
|
|
713
|
-
},
|
|
714
|
-
modalCloseButton: {
|
|
715
|
-
width: 32,
|
|
716
|
-
height: 32,
|
|
717
|
-
borderRadius: 16,
|
|
718
|
-
alignItems: 'center',
|
|
719
|
-
justifyContent: 'center',
|
|
720
|
-
borderWidth: 1,
|
|
721
|
-
borderColor: '#E2E8F0',
|
|
722
|
-
backgroundColor: '#F8FAFC',
|
|
723
|
-
},
|
|
724
|
-
modalBody: {
|
|
725
|
-
maxHeight: 520,
|
|
726
|
-
},
|
|
727
|
-
formGrid: {
|
|
728
|
-
padding: 14,
|
|
729
|
-
flexDirection: 'row',
|
|
730
|
-
flexWrap: 'wrap',
|
|
731
|
-
gap: 10,
|
|
732
|
-
},
|
|
733
|
-
formField: {
|
|
734
|
-
flexGrow: 1,
|
|
735
|
-
flexBasis: 220,
|
|
736
|
-
minWidth: 220,
|
|
737
|
-
},
|
|
738
|
-
formLabel: {
|
|
739
|
-
marginBottom: 4,
|
|
740
|
-
color: '#64748B',
|
|
741
|
-
fontSize: 10,
|
|
742
|
-
fontWeight: '900',
|
|
743
|
-
letterSpacing: 0.3,
|
|
744
|
-
textTransform: 'uppercase',
|
|
745
|
-
},
|
|
746
|
-
formInput: {
|
|
747
|
-
height: 34,
|
|
748
|
-
borderWidth: 1,
|
|
749
|
-
borderColor: '#CBD5E1',
|
|
750
|
-
borderRadius: 8,
|
|
751
|
-
paddingHorizontal: 10,
|
|
752
|
-
color: '#0F172A',
|
|
753
|
-
backgroundColor: '#FFFFFF',
|
|
754
|
-
fontSize: 12,
|
|
755
|
-
fontWeight: '700',
|
|
756
|
-
},
|
|
757
|
-
modalActions: {
|
|
758
|
-
minHeight: 52,
|
|
759
|
-
paddingHorizontal: 14,
|
|
760
|
-
borderTopWidth: 1,
|
|
761
|
-
borderTopColor: '#E2E8F0',
|
|
762
|
-
flexDirection: 'row',
|
|
763
|
-
alignItems: 'center',
|
|
764
|
-
justifyContent: 'flex-end',
|
|
765
|
-
gap: 8,
|
|
766
|
-
},
|
|
767
|
-
secondaryButton: {
|
|
768
|
-
height: 34,
|
|
769
|
-
borderRadius: 8,
|
|
770
|
-
borderWidth: 1,
|
|
771
|
-
borderColor: '#CBD5E1',
|
|
772
|
-
paddingHorizontal: 14,
|
|
773
|
-
alignItems: 'center',
|
|
774
|
-
justifyContent: 'center',
|
|
775
|
-
backgroundColor: '#FFFFFF',
|
|
776
|
-
},
|
|
777
|
-
secondaryButtonText: {
|
|
778
|
-
color: '#334155',
|
|
779
|
-
fontSize: 12,
|
|
780
|
-
fontWeight: '800',
|
|
781
|
-
},
|
|
782
|
-
primaryButton: {
|
|
783
|
-
height: 34,
|
|
784
|
-
borderRadius: 8,
|
|
785
|
-
paddingHorizontal: 16,
|
|
786
|
-
alignItems: 'center',
|
|
787
|
-
justifyContent: 'center',
|
|
788
|
-
backgroundColor: '#0EA5E9',
|
|
789
|
-
},
|
|
790
|
-
primaryButtonText: {
|
|
791
|
-
color: '#FFFFFF',
|
|
792
|
-
fontSize: 12,
|
|
793
|
-
fontWeight: '900',
|
|
794
|
-
},
|
|
795
|
-
});
|
|
796
|
-
|
|
1
|
+
import {StyleSheet} from 'react-native';
|
|
2
|
+
import tableStyleGroup1 from './DefaultTable.styleGroup1';
|
|
3
|
+
import tableStyleGroup2 from './DefaultTable.styleGroup2';
|
|
4
|
+
import tableStyleGroup3 from './DefaultTable.styleGroup3';
|
|
5
|
+
const styles = StyleSheet.create({...tableStyleGroup1, ...tableStyleGroup2, ...tableStyleGroup3});
|
|
797
6
|
export default styles;
|