sapo-components-ui-rn 1.1.58 → 1.1.60

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/index.esm.js CHANGED
@@ -241,6 +241,7 @@ var ref = {
241
241
  backgroundPrimary: ink.INK5,
242
242
  backgroundSecondary: white.WHITE100,
243
243
  borderBrandDefault: blue.BLUE100,
244
+ borderOnColorDefault: white.WHITE10,
244
245
  borderBrandDisabled: ink.INK20,
245
246
  borderCriticalDisabled: ink.INK20,
246
247
  borderCriticalDefault: red.RED100,
@@ -401,6 +402,7 @@ var ref = {
401
402
  backgroundPrimary: ink.INK5,
402
403
  backgroundSecondary: white.WHITE100,
403
404
  borderBrandDefault: blue.BLUE100,
405
+ borderOnColorDefault: white.WHITE10,
404
406
  borderBrandDisabled: ink.INK20,
405
407
  borderCriticalDisabled: ink.INK20,
406
408
  borderCriticalDefault: red.RED100,
@@ -1309,328 +1311,14 @@ var LightTheme = {
1309
1311
  dark: false,
1310
1312
  roundness: 8,
1311
1313
  version: 3,
1312
- colors: {
1313
- primary: blue.BLUE100,
1314
- background: white.WHITE100,
1315
- card: ink.INK100,
1316
- text: ink.INK100,
1317
- border: ink.INK40,
1318
- gray: ink.INK60,
1319
- backgroundLight: ink.INK10,
1320
- //new theme colors
1321
- backgroundPrimary: ink.INK5,
1322
- backgroundSecondary: white.WHITE100,
1323
- borderBrandDefault: blue.BLUE100,
1324
- borderBrandDisabled: ink.INK20,
1325
- borderCriticalDisabled: ink.INK20,
1326
- borderCriticalDefault: red.RED100,
1327
- borderCriticalHover: red.RED80,
1328
- borderCriticalPressed: red.RED120,
1329
- borderErrorDefault: red.RED100,
1330
- borderInfoDefault: blue.BLUE100,
1331
- borderPrimaryDefault: ink.INK20,
1332
- borderPrimaryDisabled: ink.INK20,
1333
- borderPrimaryHovered: ink.INK40,
1334
- borderPrimaryInverseDefault: blue.BLUE100,
1335
- borderPrimaryPressed: ink.INK60,
1336
- borderSuccessDefault: green.GREEN100,
1337
- borderWarningDefault: yellow.YELLOW100,
1338
- iconBrandDefault: blue.BLUE100,
1339
- iconBrandHover: blue.BLUE80,
1340
- iconBrandPressed: blue.BLUE120,
1341
- iconBrandDisabled: ink.INK20,
1342
- iconCriticalDefault: red.RED100,
1343
- iconCriticalHover: red.RED80,
1344
- iconCriticalPressed: red.RED_STATUS,
1345
- iconCriticalDisabled: ink.INK20,
1346
- iconErrorDefault: red.RED100,
1347
- iconInfoDefault: blue.BLUE100,
1348
- iconPrimaryDefault: ink.INK40,
1349
- iconPrimaryHover: ink.INK60,
1350
- iconPrimaryDisabled: ink.INK60,
1351
- iconPrimaryInverseDefault: white.WHITE100,
1352
- iconPrimaryInverseHover: white.WHITE80,
1353
- iconPrimaryInversePressed: white.WHITE80,
1354
- iconPrimaryPressed: ink.INK60,
1355
- iconSuccessDefault: green.GREEN100,
1356
- iconWarningDefault: yellow.YELLOW100,
1357
- iconActionPressed: ink.INK80,
1358
- iconActionDefault: ink.INK60,
1359
- iconActionHovered: ink.INK40,
1360
- iconActionInversePressed: ink.INK60,
1361
- iconActionInverseDefault: white.WHITE100,
1362
- iconActionInverseHovered: white.WHITE80,
1363
- iconActionDisabled: ink.INK20,
1364
- surfaceBrandDefault: blue.BLUE100,
1365
- surfaceBrandDisabled: ink.INK5,
1366
- surfaceBrandHover: blue.BLUE80,
1367
- surfaceBrandInverseDefault: blue.BLUE5,
1368
- surfaceBrandInverseHover: blue.BLUE10,
1369
- surfaceBrandInversePressed: blue.BLUE20,
1370
- surfaceBrandPressed: blue.BLUE120,
1371
- surfaceCriticalDefault: red.RED100,
1372
- surfaceCriticalDisabled: ink.INK5,
1373
- surfaceCriticalHover: red.RED80,
1374
- surfaceCriticalInverseDefault: red.RED10,
1375
- surfaceCriticalInverseHover: red.RED20,
1376
- surfaceCriticalInversePressed: red.RED40,
1377
- surfaceCriticalPressed: red.RED120,
1378
- surfaceErrorDefault: red.RED100,
1379
- surfaceErrorDisabled: ink.INK5,
1380
- surfaceErrorHover: red.RED80,
1381
- surfaceErrorInverseDefault: red.RED10,
1382
- surfaceErrorInverseHover: red.RED20,
1383
- surfaceErrorInversePressed: red.RED40,
1384
- surfaceErrorPressed: red.RED_STATUS,
1385
- surfaceInfoDefault: blue.BLUE100,
1386
- surfaceInfoDisabled: ink.INK5,
1387
- surfaceInfoHover: blue.BLUE80,
1388
- surfaceInfoInverseDefault: blue.BLUE10,
1389
- surfaceInfoInverseHover: blue.BLUE20,
1390
- surfaceInfoInversePressed: blue.BLUE40,
1391
- surfaceInfoPressed: blue.BLUE120,
1392
- surfacePrimaryDefault: white.WHITE100,
1393
- surfacePrimaryDisabled: ink.INK5,
1394
- surfacePrimaryHover: ink.INK5,
1395
- surfacePrimaryInverseDefault: ink.INK80,
1396
- surfacePrimaryInverseHover: ink.INK60,
1397
- surfacePrimaryInversePressed: ink.INK40,
1398
- surfacePrimaryPressed: ink.INK10,
1399
- surfaceSecondaryDefault: ink.INK5,
1400
- surfaceSecondaryDisabled: ink.INK5,
1401
- surfaceSecondaryHover: ink.INK10,
1402
- surfaceSecondaryPressed: ink.INK20,
1403
- surfaceSuccessDefault: green.GREEN100,
1404
- surfaceSuccessDisabled: ink.INK5,
1405
- surfaceSuccessHover: green.GREEN80,
1406
- surfaceSuccessInverseDefault: green.GREEN5,
1407
- surfaceSuccessInverseHover: green.GREEN10,
1408
- surfaceSuccessInversePressed: green.GREEN20,
1409
- surfaceSuccessPressed: green.GREEN_STATUS,
1410
- surfaceWarningDefault: yellow.YELLOW100,
1411
- surfaceWarningDisabled: ink.INK5,
1412
- surfaceWarningHover: yellow.YELLOW80,
1413
- surfaceWarningInverseDefault: yellow.YELLOW10,
1414
- surfaceWarningInverseHover: yellow.YELLOW20,
1415
- surfaceWarningInversePressed: yellow.YELLOW40,
1416
- surfaceWarningPressed: yellow.YELLOW120,
1417
- textDefault: ink.INK100,
1418
- textDisabled: ink.INK40,
1419
- textPlaceholder: ink.INK40,
1420
- textSecondary: ink.INK60,
1421
- textBrandDefault: blue.BLUE100,
1422
- textBrandDisabled: ink.INK40,
1423
- textBrandHovered: blue.BLUE80,
1424
- textBrandPressed: blue.BLUE120,
1425
- textCriticalDefault: red.RED100,
1426
- textCriticalDisabled: ink.INK40,
1427
- textCriticalHovered: red.RED80,
1428
- textCriticalPressed: red.RED_STATUS,
1429
- textErrorDefault: red.RED100,
1430
- textErrorDisabled: ink.INK40,
1431
- textErrorHovered: red.RED80,
1432
- textErrorPressed: red.RED_STATUS,
1433
- textInfoDefault: blue.BLUE100,
1434
- textInfoDisabled: ink.INK20,
1435
- textInfoHovered: blue.BLUE80,
1436
- textInfoPressed: blue.BLUE120,
1437
- textLinkDefault: blue.BLUE100,
1438
- textLinkDisabled: ink.INK40,
1439
- textLinkHovered: blue.BLUE80,
1440
- textLinkPressed: blue.BLUE120,
1441
- textLinkVisitedDefault: purple.PURPLE100,
1442
- textLinkVisitedDisabled: purple.PURPLE_BG,
1443
- textLinkVisitedHovered: purple.PURPLE_BG,
1444
- textLinkVisitedPressed: purple.PURPLE_BG,
1445
- textOnFillDefault: white.WHITE100,
1446
- textOnFillDisabled: white.WHITE20,
1447
- textOnFillHovered: white.WHITE80,
1448
- textOnFillPressed: white.WHITE80,
1449
- textSuccessDefault: green.GREEN100,
1450
- textSuccessDisabled: ink.INK40,
1451
- textSuccessHovered: green.GREEN80,
1452
- textSuccessPressed: green.GREEN_STATUS,
1453
- textWarningDefault: yellow.YELLOW100,
1454
- textWarningDisabled: ink.INK40,
1455
- textWarningHovered: yellow.YELLOW80,
1456
- textWarningPressed: yellow.YELLOW_STATUS,
1457
- selectBackgroundDisabled: white.WHITE40,
1458
- selectIconDisabled: white.WHITE40,
1459
- borderCriticalInverseDefault: red.RED40,
1460
- borderCriticalInverseHover: red.RED20,
1461
- borderCriticalInversePressed: red.RED60,
1462
- borderErrorInverseDefault: red.RED40,
1463
- borderPrimaryFocused: blue.BLUE100,
1464
- borderWarningInverseDefault: yellow.YELLOW40,
1465
- borderSuccessInverseDefault: green.GREEN40,
1466
- toggleBackgroundDefault: ink.INK10,
1467
- toggleBackgroundActive: green.GREEN80,
1468
- overlayPrimaryDefault: "rgba(3, 7, 18, 0.4)",
1469
- },
1314
+ colors: ThemeColors.light.colors,
1470
1315
  fonts: configureFonts(),
1471
1316
  animation: {
1472
1317
  scale: 1.0,
1473
1318
  },
1474
1319
  };
1475
1320
 
1476
- var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive", version: 3, colors: {
1477
- primary: blue.BLUE100,
1478
- background: white.WHITE100,
1479
- card: ink.INK100,
1480
- text: ink.INK100,
1481
- border: ink.INK40,
1482
- gray: ink.INK60,
1483
- backgroundLight: ink.INK10,
1484
- //new theme colors
1485
- backgroundPrimary: ink.INK5,
1486
- backgroundSecondary: white.WHITE100,
1487
- borderBrandDefault: blue.BLUE100,
1488
- borderBrandDisabled: ink.INK20,
1489
- borderCriticalDisabled: ink.INK20,
1490
- borderCriticalDefault: red.RED100,
1491
- borderCriticalHover: red.RED80,
1492
- borderCriticalPressed: red.RED120,
1493
- borderErrorDefault: red.RED100,
1494
- borderInfoDefault: blue.BLUE100,
1495
- borderPrimaryDefault: ink.INK20,
1496
- borderPrimaryDisabled: ink.INK20,
1497
- borderPrimaryHovered: ink.INK40,
1498
- borderPrimaryInverseDefault: blue.BLUE100,
1499
- borderPrimaryPressed: ink.INK60,
1500
- borderSuccessDefault: green.GREEN100,
1501
- borderWarningDefault: yellow.YELLOW100,
1502
- iconBrandDefault: blue.BLUE100,
1503
- iconBrandHover: blue.BLUE80,
1504
- iconBrandPressed: blue.BLUE120,
1505
- iconBrandDisabled: ink.INK20,
1506
- iconCriticalDefault: red.RED100,
1507
- iconCriticalHover: red.RED80,
1508
- iconCriticalPressed: red.RED_STATUS,
1509
- iconCriticalDisabled: ink.INK20,
1510
- iconErrorDefault: red.RED100,
1511
- iconInfoDefault: blue.BLUE100,
1512
- iconPrimaryDefault: ink.INK40,
1513
- iconPrimaryHover: ink.INK60,
1514
- iconPrimaryDisabled: ink.INK60,
1515
- iconPrimaryInverseDefault: white.WHITE100,
1516
- iconPrimaryInverseHover: white.WHITE80,
1517
- iconPrimaryInversePressed: white.WHITE80,
1518
- iconPrimaryPressed: ink.INK60,
1519
- iconSuccessDefault: green.GREEN100,
1520
- iconWarningDefault: yellow.YELLOW100,
1521
- iconActionPressed: ink.INK80,
1522
- iconActionDefault: ink.INK60,
1523
- iconActionHovered: ink.INK40,
1524
- iconActionInversePressed: ink.INK60,
1525
- iconActionInverseDefault: white.WHITE100,
1526
- iconActionInverseHovered: white.WHITE80,
1527
- iconActionDisabled: ink.INK20,
1528
- surfaceBrandDefault: blue.BLUE100,
1529
- surfaceBrandDisabled: ink.INK5,
1530
- surfaceBrandHover: blue.BLUE80,
1531
- surfaceBrandInverseDefault: blue.BLUE5,
1532
- surfaceBrandInverseHover: blue.BLUE10,
1533
- surfaceBrandInversePressed: blue.BLUE20,
1534
- surfaceBrandPressed: blue.BLUE120,
1535
- surfaceCriticalDefault: red.RED100,
1536
- surfaceCriticalDisabled: ink.INK5,
1537
- surfaceCriticalHover: red.RED80,
1538
- surfaceCriticalInverseDefault: red.RED10,
1539
- surfaceCriticalInverseHover: red.RED20,
1540
- surfaceCriticalInversePressed: red.RED40,
1541
- surfaceCriticalPressed: red.RED120,
1542
- surfaceErrorDefault: red.RED100,
1543
- surfaceErrorDisabled: ink.INK5,
1544
- surfaceErrorHover: red.RED80,
1545
- surfaceErrorInverseDefault: red.RED10,
1546
- surfaceErrorInverseHover: red.RED20,
1547
- surfaceErrorInversePressed: red.RED40,
1548
- surfaceErrorPressed: red.RED_STATUS,
1549
- surfaceInfoDefault: blue.BLUE100,
1550
- surfaceInfoDisabled: ink.INK5,
1551
- surfaceInfoHover: blue.BLUE80,
1552
- surfaceInfoInverseDefault: blue.BLUE10,
1553
- surfaceInfoInverseHover: blue.BLUE20,
1554
- surfaceInfoInversePressed: blue.BLUE40,
1555
- surfaceInfoPressed: blue.BLUE120,
1556
- surfacePrimaryDefault: white.WHITE100,
1557
- surfacePrimaryDisabled: ink.INK5,
1558
- surfacePrimaryHover: ink.INK5,
1559
- surfacePrimaryInverseDefault: ink.INK80,
1560
- surfacePrimaryInverseHover: ink.INK60,
1561
- surfacePrimaryInversePressed: ink.INK40,
1562
- surfacePrimaryPressed: ink.INK10,
1563
- surfaceSecondaryDefault: ink.INK5,
1564
- surfaceSecondaryDisabled: ink.INK5,
1565
- surfaceSecondaryHover: ink.INK10,
1566
- surfaceSecondaryPressed: ink.INK20,
1567
- surfaceSuccessDefault: green.GREEN100,
1568
- surfaceSuccessDisabled: ink.INK5,
1569
- surfaceSuccessHover: green.GREEN80,
1570
- surfaceSuccessInverseDefault: green.GREEN5,
1571
- surfaceSuccessInverseHover: green.GREEN10,
1572
- surfaceSuccessInversePressed: green.GREEN20,
1573
- surfaceSuccessPressed: green.GREEN_STATUS,
1574
- surfaceWarningDefault: yellow.YELLOW100,
1575
- surfaceWarningDisabled: ink.INK5,
1576
- surfaceWarningHover: yellow.YELLOW80,
1577
- surfaceWarningInverseDefault: yellow.YELLOW10,
1578
- surfaceWarningInverseHover: yellow.YELLOW20,
1579
- surfaceWarningInversePressed: yellow.YELLOW40,
1580
- surfaceWarningPressed: yellow.YELLOW120,
1581
- textDefault: ink.INK100,
1582
- textDisabled: ink.INK40,
1583
- textPlaceholder: ink.INK40,
1584
- textSecondary: ink.INK60,
1585
- textBrandDefault: blue.BLUE100,
1586
- textBrandDisabled: ink.INK40,
1587
- textBrandHovered: blue.BLUE80,
1588
- textBrandPressed: blue.BLUE120,
1589
- textCriticalDefault: red.RED100,
1590
- textCriticalDisabled: ink.INK40,
1591
- textCriticalHovered: red.RED80,
1592
- textCriticalPressed: red.RED_STATUS,
1593
- textErrorDefault: red.RED100,
1594
- textErrorDisabled: ink.INK40,
1595
- textErrorHovered: red.RED80,
1596
- textErrorPressed: red.RED_STATUS,
1597
- textInfoDefault: blue.BLUE100,
1598
- textInfoDisabled: ink.INK20,
1599
- textInfoHovered: blue.BLUE80,
1600
- textInfoPressed: blue.BLUE120,
1601
- textLinkDefault: blue.BLUE100,
1602
- textLinkDisabled: ink.INK40,
1603
- textLinkHovered: blue.BLUE80,
1604
- textLinkPressed: blue.BLUE120,
1605
- textLinkVisitedDefault: purple.PURPLE100,
1606
- textLinkVisitedDisabled: purple.PURPLE_BG,
1607
- textLinkVisitedHovered: purple.PURPLE_BG,
1608
- textLinkVisitedPressed: purple.PURPLE_BG,
1609
- textOnFillDefault: white.WHITE100,
1610
- textOnFillDisabled: white.WHITE20,
1611
- textOnFillHovered: white.WHITE80,
1612
- textOnFillPressed: white.WHITE80,
1613
- textSuccessDefault: green.GREEN100,
1614
- textSuccessDisabled: ink.INK40,
1615
- textSuccessHovered: green.GREEN80,
1616
- textSuccessPressed: green.GREEN_STATUS,
1617
- textWarningDefault: yellow.YELLOW100,
1618
- textWarningDisabled: ink.INK40,
1619
- textWarningHovered: yellow.YELLOW80,
1620
- textWarningPressed: yellow.YELLOW_STATUS,
1621
- selectBackgroundDisabled: white.WHITE40,
1622
- selectIconDisabled: white.WHITE40,
1623
- borderCriticalInverseDefault: red.RED40,
1624
- borderCriticalInverseHover: red.RED20,
1625
- borderCriticalInversePressed: red.RED60,
1626
- borderErrorInverseDefault: red.RED40,
1627
- borderPrimaryFocused: blue.BLUE100,
1628
- borderWarningInverseDefault: yellow.YELLOW40,
1629
- borderSuccessInverseDefault: green.GREEN40,
1630
- toggleBackgroundDefault: ink.INK10,
1631
- toggleBackgroundActive: green.GREEN80,
1632
- overlayPrimaryDefault: "rgba(3, 7, 18, 0.4)",
1633
- } });
1321
+ var DarkTheme = __assign(__assign({}, LightTheme), { dark: true, mode: "adaptive", version: 3, colors: ThemeColors.light.colors });
1634
1322
 
1635
1323
  var DefaultTheme = LightTheme;
1636
1324
  var _a = createTheming(LightTheme), BaseThemeProvider = _a.ThemeProvider; _a.withTheme; var useAppTheme = _a.useTheme;
@@ -7273,7 +6961,7 @@ var Checkbox = function (_a) {
7273
6961
  return (React__default.createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7274
6962
  leftIcon ? (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7275
6963
  React__default.createElement(SvgIcon, { name: isActive ? "IconCheckboxActive" : "IconCheckbox", width: iconSize, height: iconSize, color: checkboxColor }))),
7276
- React__default.createElement(View, null,
6964
+ React__default.createElement(View, { full: true },
7277
6965
  React__default.createElement(Text$1, { color: colors.textDefault, style: [
7278
6966
  styles$5.text14,
7279
6967
  disabled && {
@@ -7306,7 +6994,7 @@ var RadioButton = function (_a) {
7306
6994
  return (React__default.createElement(View, { row: true, disabled: disabled, alignCenter: true, style: [style], onPress: handlePress },
7307
6995
  leftIcon ? (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 }, leftIcon)) : (React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_8 },
7308
6996
  React__default.createElement(SvgIcon, { name: checked ? "IconRadioActive" : "IconRadio", width: 24, height: 24, color: getColorCheckbox }))),
7309
- React__default.createElement(View, null,
6997
+ React__default.createElement(View, { full: true },
7310
6998
  React__default.createElement(Text$1, { color: colors.textDefault, style: [
7311
6999
  styles$4.text14,
7312
7000
  disabled && {