sapo-components-ui-rn 1.0.46 → 1.0.48
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/dist/components/Spacer/index.d.ts +2 -1
- package/dist/components/TextInput/TextInput.d.ts +2 -2
- package/dist/index.esm.js +76 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +76 -74
- package/dist/index.js.map +1 -1
- package/dist/styles/themes/tokens.d.ts +8 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Spacer/index.tsx +10 -1
- package/src/components/Switch/Switch.tsx +1 -8
- package/src/components/Switch/utils.ts +9 -9
- package/src/components/TextInput/TextInput.tsx +2 -2
- package/src/styles/themes/DarkTheme.tsx +14 -12
- package/src/styles/themes/LightTheme.tsx +14 -12
- package/src/styles/themes/tokens.tsx +28 -24
- package/src/types.ts +3 -0
|
@@ -4,6 +4,7 @@ interface SpacerProps {
|
|
|
4
4
|
width?: number;
|
|
5
5
|
height?: number;
|
|
6
6
|
style?: StyleProp<ViewStyle>;
|
|
7
|
+
backgroundColor?: string;
|
|
7
8
|
}
|
|
8
|
-
declare const Spacer: ({ style, width, height, }: SpacerProps) => React.JSX.Element;
|
|
9
|
+
declare const Spacer: ({ style, width, height, backgroundColor, }: SpacerProps) => React.JSX.Element;
|
|
9
10
|
export default Spacer;
|
|
@@ -14,11 +14,11 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
|
|
|
14
14
|
/**
|
|
15
15
|
* The text or component to use for the floating label.
|
|
16
16
|
*/
|
|
17
|
-
label
|
|
17
|
+
label?: TextInputLabelProp;
|
|
18
18
|
/**
|
|
19
19
|
* Placeholder for the input.
|
|
20
20
|
*/
|
|
21
|
-
placeholder
|
|
21
|
+
placeholder?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Whether to style the TextInput with error style.
|
|
24
24
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -258,8 +258,8 @@ var ref = {
|
|
|
258
258
|
surfaceBrandDisabled: ink.INK10,
|
|
259
259
|
surfaceBrandHover: blue.BLUE80,
|
|
260
260
|
surfaceBrandInverseDefault: blue.BLUE5,
|
|
261
|
-
surfaceBrandInverseHover: blue.
|
|
262
|
-
surfaceBrandInversePressed: blue.
|
|
261
|
+
surfaceBrandInverseHover: blue.BLUE10,
|
|
262
|
+
surfaceBrandInversePressed: blue.BLUE20,
|
|
263
263
|
surfaceBrandPressed: blue.BLUE120,
|
|
264
264
|
surfaceCriticalDefault: red.RED100,
|
|
265
265
|
surfaceCriticalDisabled: ink.INK10,
|
|
@@ -296,9 +296,9 @@ var ref = {
|
|
|
296
296
|
surfaceSuccessDefault: green.GREEN100,
|
|
297
297
|
surfaceSuccessDisabled: ink.INK10,
|
|
298
298
|
surfaceSuccessHover: green.GREEN80,
|
|
299
|
-
surfaceSuccessInverseDefault: green.
|
|
300
|
-
surfaceSuccessInverseHover: green.
|
|
301
|
-
surfaceSuccessInversePressed: green.
|
|
299
|
+
surfaceSuccessInverseDefault: green.GREEN5,
|
|
300
|
+
surfaceSuccessInverseHover: green.GREEN10,
|
|
301
|
+
surfaceSuccessInversePressed: green.GREEN20,
|
|
302
302
|
surfaceSuccessPressed: green.GREEN_STATUS,
|
|
303
303
|
surfaceWarningDefault: yellow.YELLOW100,
|
|
304
304
|
surfaceWarningDisabled: ink.INK10,
|
|
@@ -308,19 +308,19 @@ var ref = {
|
|
|
308
308
|
surfaceWarningInversePressed: yellow.YELLOW40,
|
|
309
309
|
surfaceWarningPressed: yellow.YELLOW120,
|
|
310
310
|
textDefault: ink.INK100,
|
|
311
|
-
textDisabled: ink.
|
|
311
|
+
textDisabled: ink.INK40,
|
|
312
312
|
textPlaceholder: ink.INK40,
|
|
313
313
|
textSecondary: ink.INK60,
|
|
314
314
|
textBrandDefault: blue.BLUE100,
|
|
315
|
-
textBrandDisabled: ink.
|
|
315
|
+
textBrandDisabled: ink.INK40,
|
|
316
316
|
textBrandHovered: blue.BLUE80,
|
|
317
317
|
textBrandPressed: blue.BLUE120,
|
|
318
318
|
textCriticalDefault: red.RED100,
|
|
319
|
-
textCriticalDisabled: ink.
|
|
319
|
+
textCriticalDisabled: ink.INK40,
|
|
320
320
|
textCriticalHovered: red.RED80,
|
|
321
321
|
textCriticalPressed: red.RED_STATUS,
|
|
322
322
|
textErrorDefault: red.RED100,
|
|
323
|
-
textErrorDisabled: ink.
|
|
323
|
+
textErrorDisabled: ink.INK40,
|
|
324
324
|
textErrorHovered: red.RED80,
|
|
325
325
|
textErrorPressed: red.RED_STATUS,
|
|
326
326
|
textInfoDefault: blue.BLUE100,
|
|
@@ -328,7 +328,7 @@ var ref = {
|
|
|
328
328
|
textInfoHovered: blue.BLUE80,
|
|
329
329
|
textInfoPressed: blue.BLUE120,
|
|
330
330
|
textLinkDefault: blue.BLUE100,
|
|
331
|
-
textLinkDisabled: ink.
|
|
331
|
+
textLinkDisabled: ink.INK40,
|
|
332
332
|
textLinkHovered: blue.BLUE80,
|
|
333
333
|
textLinkPressed: blue.BLUE120,
|
|
334
334
|
textLinkVisitedDefault: purple.PURPLE100,
|
|
@@ -340,11 +340,11 @@ var ref = {
|
|
|
340
340
|
textOnFillHovered: white.WHITE80,
|
|
341
341
|
textOnFillPressed: white.WHITE80,
|
|
342
342
|
textSuccessDefault: green.GREEN100,
|
|
343
|
-
textSuccessDisabled: ink.
|
|
343
|
+
textSuccessDisabled: ink.INK40,
|
|
344
344
|
textSuccessHovered: green.GREEN80,
|
|
345
345
|
textSuccessPressed: green.GREEN_STATUS,
|
|
346
346
|
textWarningDefault: yellow.YELLOW100,
|
|
347
|
-
textWarningDisabled: ink.
|
|
347
|
+
textWarningDisabled: ink.INK40,
|
|
348
348
|
textWarningHovered: yellow.YELLOW80,
|
|
349
349
|
textWarningPressed: yellow.YELLOW_STATUS,
|
|
350
350
|
selectBackgroundDisabled: white.WHITE40,
|
|
@@ -356,6 +356,8 @@ var ref = {
|
|
|
356
356
|
borderPrimaryFocused: blue.BLUE100,
|
|
357
357
|
borderWarningInverseDefault: yellow.YELLOW40,
|
|
358
358
|
borderSuccessInverseDefault: green.GREEN40,
|
|
359
|
+
toggleBackgroundDefault: ink.INK10,
|
|
360
|
+
toggleBackgroundActive: green.GREEN80,
|
|
359
361
|
},
|
|
360
362
|
},
|
|
361
363
|
light: {
|
|
@@ -400,8 +402,8 @@ var ref = {
|
|
|
400
402
|
surfaceBrandDisabled: ink.INK10,
|
|
401
403
|
surfaceBrandHover: blue.BLUE80,
|
|
402
404
|
surfaceBrandInverseDefault: blue.BLUE5,
|
|
403
|
-
surfaceBrandInverseHover: blue.
|
|
404
|
-
surfaceBrandInversePressed: blue.
|
|
405
|
+
surfaceBrandInverseHover: blue.BLUE10,
|
|
406
|
+
surfaceBrandInversePressed: blue.BLUE20,
|
|
405
407
|
surfaceBrandPressed: blue.BLUE120,
|
|
406
408
|
surfaceCriticalDefault: red.RED100,
|
|
407
409
|
surfaceCriticalDisabled: ink.INK10,
|
|
@@ -438,9 +440,9 @@ var ref = {
|
|
|
438
440
|
surfaceSuccessDefault: green.GREEN100,
|
|
439
441
|
surfaceSuccessDisabled: ink.INK10,
|
|
440
442
|
surfaceSuccessHover: green.GREEN80,
|
|
441
|
-
surfaceSuccessInverseDefault: green.
|
|
442
|
-
surfaceSuccessInverseHover: green.
|
|
443
|
-
surfaceSuccessInversePressed: green.
|
|
443
|
+
surfaceSuccessInverseDefault: green.GREEN5,
|
|
444
|
+
surfaceSuccessInverseHover: green.GREEN10,
|
|
445
|
+
surfaceSuccessInversePressed: green.GREEN20,
|
|
444
446
|
surfaceSuccessPressed: green.GREEN_STATUS,
|
|
445
447
|
surfaceWarningDefault: yellow.YELLOW100,
|
|
446
448
|
surfaceWarningDisabled: ink.INK10,
|
|
@@ -450,19 +452,19 @@ var ref = {
|
|
|
450
452
|
surfaceWarningInversePressed: yellow.YELLOW40,
|
|
451
453
|
surfaceWarningPressed: yellow.YELLOW120,
|
|
452
454
|
textDefault: ink.INK100,
|
|
453
|
-
textDisabled: ink.
|
|
455
|
+
textDisabled: ink.INK40,
|
|
454
456
|
textPlaceholder: ink.INK40,
|
|
455
457
|
textSecondary: ink.INK60,
|
|
456
458
|
textBrandDefault: blue.BLUE100,
|
|
457
|
-
textBrandDisabled: ink.
|
|
459
|
+
textBrandDisabled: ink.INK40,
|
|
458
460
|
textBrandHovered: blue.BLUE80,
|
|
459
461
|
textBrandPressed: blue.BLUE120,
|
|
460
462
|
textCriticalDefault: red.RED100,
|
|
461
|
-
textCriticalDisabled: ink.
|
|
463
|
+
textCriticalDisabled: ink.INK40,
|
|
462
464
|
textCriticalHovered: red.RED80,
|
|
463
465
|
textCriticalPressed: red.RED_STATUS,
|
|
464
466
|
textErrorDefault: red.RED100,
|
|
465
|
-
textErrorDisabled: ink.
|
|
467
|
+
textErrorDisabled: ink.INK40,
|
|
466
468
|
textErrorHovered: red.RED80,
|
|
467
469
|
textErrorPressed: red.RED_STATUS,
|
|
468
470
|
textInfoDefault: blue.BLUE100,
|
|
@@ -470,7 +472,7 @@ var ref = {
|
|
|
470
472
|
textInfoHovered: blue.BLUE80,
|
|
471
473
|
textInfoPressed: blue.BLUE120,
|
|
472
474
|
textLinkDefault: blue.BLUE100,
|
|
473
|
-
textLinkDisabled: ink.
|
|
475
|
+
textLinkDisabled: ink.INK40,
|
|
474
476
|
textLinkHovered: blue.BLUE80,
|
|
475
477
|
textLinkPressed: blue.BLUE120,
|
|
476
478
|
textLinkVisitedDefault: purple.PURPLE100,
|
|
@@ -482,11 +484,11 @@ var ref = {
|
|
|
482
484
|
textOnFillHovered: white.WHITE80,
|
|
483
485
|
textOnFillPressed: white.WHITE80,
|
|
484
486
|
textSuccessDefault: green.GREEN100,
|
|
485
|
-
textSuccessDisabled: ink.
|
|
487
|
+
textSuccessDisabled: ink.INK40,
|
|
486
488
|
textSuccessHovered: green.GREEN80,
|
|
487
489
|
textSuccessPressed: green.GREEN_STATUS,
|
|
488
490
|
textWarningDefault: yellow.YELLOW100,
|
|
489
|
-
textWarningDisabled: ink.
|
|
491
|
+
textWarningDisabled: ink.INK40,
|
|
490
492
|
textWarningHovered: yellow.YELLOW80,
|
|
491
493
|
textWarningPressed: yellow.YELLOW_STATUS,
|
|
492
494
|
selectBackgroundDisabled: white.WHITE40,
|
|
@@ -498,6 +500,8 @@ var ref = {
|
|
|
498
500
|
borderPrimaryFocused: blue.BLUE100,
|
|
499
501
|
borderWarningInverseDefault: yellow.YELLOW40,
|
|
500
502
|
borderSuccessInverseDefault: green.GREEN40,
|
|
503
|
+
toggleBackgroundDefault: ink.INK10,
|
|
504
|
+
toggleBackgroundActive: green.GREEN80,
|
|
501
505
|
},
|
|
502
506
|
},
|
|
503
507
|
},
|
|
@@ -1167,8 +1171,8 @@ var LightTheme = {
|
|
|
1167
1171
|
surfaceBrandDisabled: ink.INK10,
|
|
1168
1172
|
surfaceBrandHover: blue.BLUE80,
|
|
1169
1173
|
surfaceBrandInverseDefault: blue.BLUE5,
|
|
1170
|
-
surfaceBrandInverseHover: blue.
|
|
1171
|
-
surfaceBrandInversePressed: blue.
|
|
1174
|
+
surfaceBrandInverseHover: blue.BLUE10,
|
|
1175
|
+
surfaceBrandInversePressed: blue.BLUE20,
|
|
1172
1176
|
surfaceBrandPressed: blue.BLUE120,
|
|
1173
1177
|
surfaceCriticalDefault: red.RED100,
|
|
1174
1178
|
surfaceCriticalDisabled: ink.INK10,
|
|
@@ -1205,9 +1209,9 @@ var LightTheme = {
|
|
|
1205
1209
|
surfaceSuccessDefault: green.GREEN100,
|
|
1206
1210
|
surfaceSuccessDisabled: ink.INK10,
|
|
1207
1211
|
surfaceSuccessHover: green.GREEN80,
|
|
1208
|
-
surfaceSuccessInverseDefault: green.
|
|
1209
|
-
surfaceSuccessInverseHover: green.
|
|
1210
|
-
surfaceSuccessInversePressed: green.
|
|
1212
|
+
surfaceSuccessInverseDefault: green.GREEN5,
|
|
1213
|
+
surfaceSuccessInverseHover: green.GREEN10,
|
|
1214
|
+
surfaceSuccessInversePressed: green.GREEN20,
|
|
1211
1215
|
surfaceSuccessPressed: green.GREEN_STATUS,
|
|
1212
1216
|
surfaceWarningDefault: yellow.YELLOW100,
|
|
1213
1217
|
surfaceWarningDisabled: ink.INK10,
|
|
@@ -1217,19 +1221,19 @@ var LightTheme = {
|
|
|
1217
1221
|
surfaceWarningInversePressed: yellow.YELLOW40,
|
|
1218
1222
|
surfaceWarningPressed: yellow.YELLOW120,
|
|
1219
1223
|
textDefault: ink.INK100,
|
|
1220
|
-
textDisabled: ink.
|
|
1224
|
+
textDisabled: ink.INK40,
|
|
1221
1225
|
textPlaceholder: ink.INK40,
|
|
1222
1226
|
textSecondary: ink.INK60,
|
|
1223
1227
|
textBrandDefault: blue.BLUE100,
|
|
1224
|
-
textBrandDisabled: ink.
|
|
1228
|
+
textBrandDisabled: ink.INK40,
|
|
1225
1229
|
textBrandHovered: blue.BLUE80,
|
|
1226
1230
|
textBrandPressed: blue.BLUE120,
|
|
1227
1231
|
textCriticalDefault: red.RED100,
|
|
1228
|
-
textCriticalDisabled: ink.
|
|
1232
|
+
textCriticalDisabled: ink.INK40,
|
|
1229
1233
|
textCriticalHovered: red.RED80,
|
|
1230
1234
|
textCriticalPressed: red.RED_STATUS,
|
|
1231
1235
|
textErrorDefault: red.RED100,
|
|
1232
|
-
textErrorDisabled: ink.
|
|
1236
|
+
textErrorDisabled: ink.INK40,
|
|
1233
1237
|
textErrorHovered: red.RED80,
|
|
1234
1238
|
textErrorPressed: red.RED_STATUS,
|
|
1235
1239
|
textInfoDefault: blue.BLUE100,
|
|
@@ -1237,7 +1241,7 @@ var LightTheme = {
|
|
|
1237
1241
|
textInfoHovered: blue.BLUE80,
|
|
1238
1242
|
textInfoPressed: blue.BLUE120,
|
|
1239
1243
|
textLinkDefault: blue.BLUE100,
|
|
1240
|
-
textLinkDisabled: ink.
|
|
1244
|
+
textLinkDisabled: ink.INK40,
|
|
1241
1245
|
textLinkHovered: blue.BLUE80,
|
|
1242
1246
|
textLinkPressed: blue.BLUE120,
|
|
1243
1247
|
textLinkVisitedDefault: purple.PURPLE100,
|
|
@@ -1249,11 +1253,11 @@ var LightTheme = {
|
|
|
1249
1253
|
textOnFillHovered: white.WHITE80,
|
|
1250
1254
|
textOnFillPressed: white.WHITE80,
|
|
1251
1255
|
textSuccessDefault: green.GREEN100,
|
|
1252
|
-
textSuccessDisabled: ink.
|
|
1256
|
+
textSuccessDisabled: ink.INK40,
|
|
1253
1257
|
textSuccessHovered: green.GREEN80,
|
|
1254
1258
|
textSuccessPressed: green.GREEN_STATUS,
|
|
1255
1259
|
textWarningDefault: yellow.YELLOW100,
|
|
1256
|
-
textWarningDisabled: ink.
|
|
1260
|
+
textWarningDisabled: ink.INK40,
|
|
1257
1261
|
textWarningHovered: yellow.YELLOW80,
|
|
1258
1262
|
textWarningPressed: yellow.YELLOW_STATUS,
|
|
1259
1263
|
selectBackgroundDisabled: white.WHITE40,
|
|
@@ -1265,6 +1269,8 @@ var LightTheme = {
|
|
|
1265
1269
|
borderPrimaryFocused: blue.BLUE100,
|
|
1266
1270
|
borderWarningInverseDefault: yellow.YELLOW40,
|
|
1267
1271
|
borderSuccessInverseDefault: green.GREEN40,
|
|
1272
|
+
toggleBackgroundDefault: ink.INK10,
|
|
1273
|
+
toggleBackgroundActive: green.GREEN80,
|
|
1268
1274
|
},
|
|
1269
1275
|
fonts: configureFonts(),
|
|
1270
1276
|
animation: {
|
|
@@ -1313,8 +1319,8 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1313
1319
|
surfaceBrandDisabled: ink.INK10,
|
|
1314
1320
|
surfaceBrandHover: blue.BLUE80,
|
|
1315
1321
|
surfaceBrandInverseDefault: blue.BLUE5,
|
|
1316
|
-
surfaceBrandInverseHover: blue.
|
|
1317
|
-
surfaceBrandInversePressed: blue.
|
|
1322
|
+
surfaceBrandInverseHover: blue.BLUE10,
|
|
1323
|
+
surfaceBrandInversePressed: blue.BLUE20,
|
|
1318
1324
|
surfaceBrandPressed: blue.BLUE120,
|
|
1319
1325
|
surfaceCriticalDefault: red.RED100,
|
|
1320
1326
|
surfaceCriticalDisabled: ink.INK10,
|
|
@@ -1351,9 +1357,9 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1351
1357
|
surfaceSuccessDefault: green.GREEN100,
|
|
1352
1358
|
surfaceSuccessDisabled: ink.INK10,
|
|
1353
1359
|
surfaceSuccessHover: green.GREEN80,
|
|
1354
|
-
surfaceSuccessInverseDefault: green.
|
|
1355
|
-
surfaceSuccessInverseHover: green.
|
|
1356
|
-
surfaceSuccessInversePressed: green.
|
|
1360
|
+
surfaceSuccessInverseDefault: green.GREEN5,
|
|
1361
|
+
surfaceSuccessInverseHover: green.GREEN10,
|
|
1362
|
+
surfaceSuccessInversePressed: green.GREEN20,
|
|
1357
1363
|
surfaceSuccessPressed: green.GREEN_STATUS,
|
|
1358
1364
|
surfaceWarningDefault: yellow.YELLOW100,
|
|
1359
1365
|
surfaceWarningDisabled: ink.INK10,
|
|
@@ -1363,19 +1369,19 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1363
1369
|
surfaceWarningInversePressed: yellow.YELLOW40,
|
|
1364
1370
|
surfaceWarningPressed: yellow.YELLOW120,
|
|
1365
1371
|
textDefault: ink.INK100,
|
|
1366
|
-
textDisabled: ink.
|
|
1372
|
+
textDisabled: ink.INK40,
|
|
1367
1373
|
textPlaceholder: ink.INK40,
|
|
1368
1374
|
textSecondary: ink.INK60,
|
|
1369
1375
|
textBrandDefault: blue.BLUE100,
|
|
1370
|
-
textBrandDisabled: ink.
|
|
1376
|
+
textBrandDisabled: ink.INK40,
|
|
1371
1377
|
textBrandHovered: blue.BLUE80,
|
|
1372
1378
|
textBrandPressed: blue.BLUE120,
|
|
1373
1379
|
textCriticalDefault: red.RED100,
|
|
1374
|
-
textCriticalDisabled: ink.
|
|
1380
|
+
textCriticalDisabled: ink.INK40,
|
|
1375
1381
|
textCriticalHovered: red.RED80,
|
|
1376
1382
|
textCriticalPressed: red.RED_STATUS,
|
|
1377
1383
|
textErrorDefault: red.RED100,
|
|
1378
|
-
textErrorDisabled: ink.
|
|
1384
|
+
textErrorDisabled: ink.INK40,
|
|
1379
1385
|
textErrorHovered: red.RED80,
|
|
1380
1386
|
textErrorPressed: red.RED_STATUS,
|
|
1381
1387
|
textInfoDefault: blue.BLUE100,
|
|
@@ -1383,7 +1389,7 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1383
1389
|
textInfoHovered: blue.BLUE80,
|
|
1384
1390
|
textInfoPressed: blue.BLUE120,
|
|
1385
1391
|
textLinkDefault: blue.BLUE100,
|
|
1386
|
-
textLinkDisabled: ink.
|
|
1392
|
+
textLinkDisabled: ink.INK40,
|
|
1387
1393
|
textLinkHovered: blue.BLUE80,
|
|
1388
1394
|
textLinkPressed: blue.BLUE120,
|
|
1389
1395
|
textLinkVisitedDefault: purple.PURPLE100,
|
|
@@ -1395,11 +1401,11 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1395
1401
|
textOnFillHovered: white.WHITE80,
|
|
1396
1402
|
textOnFillPressed: white.WHITE80,
|
|
1397
1403
|
textSuccessDefault: green.GREEN100,
|
|
1398
|
-
textSuccessDisabled: ink.
|
|
1404
|
+
textSuccessDisabled: ink.INK40,
|
|
1399
1405
|
textSuccessHovered: green.GREEN80,
|
|
1400
1406
|
textSuccessPressed: green.GREEN_STATUS,
|
|
1401
1407
|
textWarningDefault: yellow.YELLOW100,
|
|
1402
|
-
textWarningDisabled: ink.
|
|
1408
|
+
textWarningDisabled: ink.INK40,
|
|
1403
1409
|
textWarningHovered: yellow.YELLOW80,
|
|
1404
1410
|
textWarningPressed: yellow.YELLOW_STATUS,
|
|
1405
1411
|
selectBackgroundDisabled: white.WHITE40,
|
|
@@ -1411,6 +1417,8 @@ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive
|
|
|
1411
1417
|
borderPrimaryFocused: blue.BLUE100,
|
|
1412
1418
|
borderWarningInverseDefault: yellow.YELLOW40,
|
|
1413
1419
|
borderSuccessInverseDefault: green.GREEN40,
|
|
1420
|
+
toggleBackgroundDefault: ink.INK10,
|
|
1421
|
+
toggleBackgroundActive: green.GREEN80,
|
|
1414
1422
|
} });
|
|
1415
1423
|
|
|
1416
1424
|
var DefaultTheme = LightTheme;
|
|
@@ -2027,7 +2035,7 @@ var getCheckedColor = function (_a) {
|
|
|
2027
2035
|
if (color) {
|
|
2028
2036
|
return color;
|
|
2029
2037
|
}
|
|
2030
|
-
return theme.colors.
|
|
2038
|
+
return theme.colors.toggleBackgroundActive;
|
|
2031
2039
|
};
|
|
2032
2040
|
var getThumbTintColor = function (_a) {
|
|
2033
2041
|
var theme = _a.theme, disabled = _a.disabled, value = _a.value, checkedColor = _a.checkedColor;
|
|
@@ -2037,17 +2045,17 @@ var getThumbTintColor = function (_a) {
|
|
|
2037
2045
|
}
|
|
2038
2046
|
if (disabled) {
|
|
2039
2047
|
if (theme.dark) {
|
|
2040
|
-
return theme.colors.
|
|
2048
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2041
2049
|
}
|
|
2042
|
-
return theme.colors.
|
|
2050
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2043
2051
|
}
|
|
2044
2052
|
if (value) {
|
|
2045
2053
|
return checkedColor;
|
|
2046
2054
|
}
|
|
2047
2055
|
if (theme.dark) {
|
|
2048
|
-
return theme.colors.
|
|
2056
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2049
2057
|
}
|
|
2050
|
-
return theme.colors.
|
|
2058
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2051
2059
|
};
|
|
2052
2060
|
var getOnTintColor = function (_a) {
|
|
2053
2061
|
var theme = _a.theme, disabled = _a.disabled, value = _a.value, checkedColor = _a.checkedColor;
|
|
@@ -2057,17 +2065,17 @@ var getOnTintColor = function (_a) {
|
|
|
2057
2065
|
}
|
|
2058
2066
|
if (disabled) {
|
|
2059
2067
|
if (theme.dark) {
|
|
2060
|
-
return theme.colors.
|
|
2068
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2061
2069
|
}
|
|
2062
|
-
return theme.colors.
|
|
2070
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2063
2071
|
}
|
|
2064
2072
|
if (value) {
|
|
2065
2073
|
return checkedColor;
|
|
2066
2074
|
}
|
|
2067
2075
|
if (theme.dark) {
|
|
2068
|
-
return theme.colors.
|
|
2076
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2069
2077
|
}
|
|
2070
|
-
return theme.colors.
|
|
2078
|
+
return theme.colors.toggleBackgroundDefault;
|
|
2071
2079
|
};
|
|
2072
2080
|
var getSwitchColor = function (_a) {
|
|
2073
2081
|
var theme = _a.theme, disabled = _a.disabled, value = _a.value, color = _a.color;
|
|
@@ -2109,25 +2117,19 @@ var Switch = function (_a) {
|
|
|
2109
2117
|
disabled: disabled,
|
|
2110
2118
|
value: value,
|
|
2111
2119
|
color: color,
|
|
2112
|
-
}),
|
|
2120
|
+
}), onTintColor = _b.onTintColor, thumbTintColor = _b.thumbTintColor;
|
|
2113
2121
|
var props = version && version.major === 0 && version.minor <= 56
|
|
2114
2122
|
? {
|
|
2115
2123
|
onTintColor: onTintColor,
|
|
2116
2124
|
thumbTintColor: thumbTintColor,
|
|
2117
2125
|
}
|
|
2118
|
-
:
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
thumbColor: thumbTintColor,
|
|
2126
|
-
trackColor: {
|
|
2127
|
-
true: onTintColor,
|
|
2128
|
-
false: onTintColor,
|
|
2129
|
-
},
|
|
2130
|
-
};
|
|
2126
|
+
: {
|
|
2127
|
+
thumbColor: thumbTintColor,
|
|
2128
|
+
trackColor: {
|
|
2129
|
+
true: onTintColor,
|
|
2130
|
+
false: onTintColor,
|
|
2131
|
+
},
|
|
2132
|
+
};
|
|
2131
2133
|
return (React$3.createElement(View, { row: true },
|
|
2132
2134
|
React$3.createElement(Switch$1, __assign({ value: value, disabled: disabled, onValueChange: disabled ? undefined : onValueChange }, props, rest))));
|
|
2133
2135
|
};
|
|
@@ -2712,8 +2714,8 @@ var styles$d = StyleSheet.create({
|
|
|
2712
2714
|
});
|
|
2713
2715
|
|
|
2714
2716
|
var Spacer = function (_a) {
|
|
2715
|
-
var style = _a.style, _b = _a.width, width = _b === void 0 ? CONSTANTS.SPACE_16 : _b, _c = _a.height, height = _c === void 0 ? CONSTANTS.SPACE_12 : _c;
|
|
2716
|
-
return React__default.createElement(View, { width: width, height: height, style: [style] });
|
|
2717
|
+
var style = _a.style, _b = _a.width, width = _b === void 0 ? CONSTANTS.SPACE_16 : _b, _c = _a.height, height = _c === void 0 ? CONSTANTS.SPACE_12 : _c, backgroundColor = _a.backgroundColor;
|
|
2718
|
+
return (React__default.createElement(View, { backgroundColor: backgroundColor || "transparent", width: width, height: height, style: [style] }));
|
|
2717
2719
|
};
|
|
2718
2720
|
|
|
2719
2721
|
Dimensions.get("window").height;
|
|
@@ -6680,7 +6682,7 @@ var Checkbox = function (_a) {
|
|
|
6680
6682
|
React__default.createElement(Text$1, { color: colors.textDefault, style: [
|
|
6681
6683
|
styles$4.text14,
|
|
6682
6684
|
disabled && {
|
|
6683
|
-
color: colors.
|
|
6685
|
+
color: colors.textDisabled,
|
|
6684
6686
|
},
|
|
6685
6687
|
textStyle,
|
|
6686
6688
|
] }, content))));
|