@transferwise/components 0.0.0-experimental-c2e635d → 0.0.0-experimental-6fa7ff3
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/build/avatarView/AvatarView.js +12 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +12 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +18 -21
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +19 -22
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/th.json +1 -0
- package/build/i18n/th.json.js +1 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +1 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/main.css +17 -158
- package/build/styles/circularButton/CircularButton.css +17 -158
- package/build/styles/main.css +17 -158
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +11 -4
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +1 -2
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/avatarView/AvatarView.tsx +15 -1
- package/src/circularButton/CircularButton.css +17 -158
- package/src/circularButton/CircularButton.less +22 -91
- package/src/circularButton/CircularButton.story.tsx +45 -24
- package/src/circularButton/CircularButton.tsx +38 -25
- package/src/dateInput/DateInput.spec.tsx +45 -26
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/i18n/de.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/th.json +1 -0
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/main.css +17 -158
- package/src/slidingPanel/SlidingPanel.spec.tsx +69 -0
- package/src/circularButton/_button-label-states.less +0 -34
- package/src/definitionList/DefinitionList.spec.js +0 -91
- package/src/slidingPanel/SlidingPanel.spec.js +0 -56
package/build/main.css
CHANGED
|
@@ -1442,175 +1442,34 @@ div.critical-comms .critical-comms-body {
|
|
|
1442
1442
|
display: inline-flex;
|
|
1443
1443
|
flex-direction: column;
|
|
1444
1444
|
align-items: center;
|
|
1445
|
-
text-align: center;
|
|
1446
1445
|
cursor: pointer;
|
|
1447
|
-
position: relative;
|
|
1448
|
-
}
|
|
1449
|
-
.np-circular-btn .tw-icon {
|
|
1450
|
-
position: absolute;
|
|
1451
|
-
top: 16px;
|
|
1452
|
-
top: var(--size-16);
|
|
1453
|
-
pointer-events: none;
|
|
1454
|
-
color: white;
|
|
1455
|
-
transition: color 0.15s ease-in-out;
|
|
1456
|
-
width: 100%;
|
|
1457
|
-
left: 0;
|
|
1458
|
-
}
|
|
1459
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1460
|
-
right: 0;
|
|
1461
|
-
left: auto;
|
|
1462
|
-
left: initial;
|
|
1463
|
-
}
|
|
1464
|
-
@media (max-width: 320px) {
|
|
1465
|
-
.np-circular-btn .tw-icon {
|
|
1466
|
-
top: 12px;
|
|
1467
|
-
top: var(--size-12);
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
.np-circular-btn .tw-icon > svg {
|
|
1471
|
-
margin: 0 auto;
|
|
1472
|
-
}
|
|
1473
|
-
.np-theme-personal .np-circular-btn {
|
|
1474
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1475
|
-
}
|
|
1476
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1477
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1478
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1479
|
-
color: var(--color-interactive-control);
|
|
1480
|
-
}
|
|
1481
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1482
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1483
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1484
|
-
color: var(--color-contrast) !important;
|
|
1485
|
-
}
|
|
1486
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1487
|
-
color: var(--color-sentiment-negative) !important;
|
|
1488
|
-
}
|
|
1489
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
1490
|
-
color: #00a2dd;
|
|
1491
|
-
color: var(--color-interactive-accent);
|
|
1492
|
-
}
|
|
1493
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1494
|
-
color: #008fc9;
|
|
1495
|
-
color: var(--color-interactive-accent-hover);
|
|
1496
|
-
}
|
|
1497
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1498
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1499
|
-
color: #0081ba;
|
|
1500
|
-
color: var(--color-interactive-accent-active);
|
|
1501
|
-
}
|
|
1502
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
1503
|
-
color: #00a2dd;
|
|
1504
|
-
color: var(--color-interactive-accent);
|
|
1505
|
-
}
|
|
1506
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1507
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1508
|
-
color: white;
|
|
1509
|
-
}
|
|
1510
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
1511
|
-
color: #2ead4b;
|
|
1512
|
-
color: var(--color-interactive-positive);
|
|
1513
|
-
}
|
|
1514
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1515
|
-
color: #069939;
|
|
1516
|
-
color: var(--color-interactive-positive-hover);
|
|
1517
|
-
}
|
|
1518
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1519
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1520
|
-
color: #008b2b;
|
|
1521
|
-
color: var(--color-interactive-positive-active);
|
|
1522
|
-
}
|
|
1523
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
1524
|
-
color: #2ead4b;
|
|
1525
|
-
color: var(--color-interactive-positive);
|
|
1526
1446
|
}
|
|
1527
|
-
.np-circular-btn
|
|
1528
|
-
.np-circular-btn
|
|
1529
|
-
color: white;
|
|
1530
|
-
}
|
|
1531
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
1532
|
-
color: #e74848;
|
|
1533
|
-
color: var(--color-interactive-negative);
|
|
1534
|
-
}
|
|
1535
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1536
|
-
color: #d03238;
|
|
1537
|
-
color: var(--color-interactive-negative-hover);
|
|
1538
|
-
}
|
|
1539
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1540
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1541
|
-
color: #bf1e2c;
|
|
1542
|
-
color: var(--color-interactive-negative-active);
|
|
1543
|
-
}
|
|
1544
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
1545
|
-
color: #e74848;
|
|
1546
|
-
color: var(--color-interactive-negative);
|
|
1547
|
-
}
|
|
1548
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1549
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1550
|
-
color: white;
|
|
1551
|
-
}
|
|
1552
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1447
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
1448
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
1553
1449
|
color: var(--color-interactive-primary);
|
|
1554
1450
|
}
|
|
1555
|
-
.np-
|
|
1451
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1452
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1556
1453
|
color: var(--color-interactive-primary-hover);
|
|
1557
1454
|
}
|
|
1558
|
-
.np-
|
|
1559
|
-
.np-
|
|
1455
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1456
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1560
1457
|
color: var(--color-interactive-primary-active);
|
|
1561
1458
|
}
|
|
1562
|
-
.np-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1566
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1567
|
-
color: white;
|
|
1568
|
-
color: var(--color-interactive-control);
|
|
1569
|
-
}
|
|
1570
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1571
|
-
color: var(--color-interactive-control);
|
|
1572
|
-
}
|
|
1573
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1574
|
-
color: var(--color-interactive-primary);
|
|
1575
|
-
}
|
|
1576
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1577
|
-
color: var(--color-interactive-primary-hover);
|
|
1578
|
-
}
|
|
1579
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1580
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1581
|
-
color: var(--color-interactive-primary-active);
|
|
1582
|
-
}
|
|
1583
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1584
|
-
color: var(--color-interactive-primary);
|
|
1585
|
-
}
|
|
1586
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1587
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1588
|
-
color: white;
|
|
1589
|
-
color: var(--color-interactive-control);
|
|
1590
|
-
}
|
|
1591
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1592
|
-
color: var(--color-interactive-control);
|
|
1593
|
-
}
|
|
1594
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1595
|
-
color: var(--color-sentiment-negative);
|
|
1596
|
-
}
|
|
1597
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1598
|
-
color: var(--color-sentiment-negative-hover);
|
|
1599
|
-
}
|
|
1600
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1601
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1602
|
-
color: var(--color-sentiment-negative-active);
|
|
1459
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
1460
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
1461
|
+
color: var(--color-sentiment-negative-primary);
|
|
1603
1462
|
}
|
|
1604
|
-
.np-
|
|
1605
|
-
|
|
1463
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1464
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1465
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
1606
1466
|
}
|
|
1607
|
-
.np-
|
|
1608
|
-
.np-
|
|
1609
|
-
color:
|
|
1610
|
-
color: var(--color-interactive-control);
|
|
1467
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1468
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1469
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
1611
1470
|
}
|
|
1612
|
-
.np-
|
|
1613
|
-
|
|
1471
|
+
.np-circular-btn-disabled {
|
|
1472
|
+
cursor: not-allowed;
|
|
1614
1473
|
}
|
|
1615
1474
|
.np-circle {
|
|
1616
1475
|
border-radius: 9999px;
|
|
@@ -2,173 +2,32 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
|
-
text-align: center;
|
|
6
5
|
cursor: pointer;
|
|
7
|
-
position: relative;
|
|
8
6
|
}
|
|
9
|
-
.np-circular-btn .
|
|
10
|
-
|
|
11
|
-
top: 16px;
|
|
12
|
-
top: var(--size-16);
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
color: white;
|
|
15
|
-
transition: color 0.15s ease-in-out;
|
|
16
|
-
width: 100%;
|
|
17
|
-
left: 0;
|
|
18
|
-
}
|
|
19
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
20
|
-
right: 0;
|
|
21
|
-
left: auto;
|
|
22
|
-
left: initial;
|
|
23
|
-
}
|
|
24
|
-
@media (max-width: 320px) {
|
|
25
|
-
.np-circular-btn .tw-icon {
|
|
26
|
-
top: 12px;
|
|
27
|
-
top: var(--size-12);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.np-circular-btn .tw-icon > svg {
|
|
31
|
-
margin: 0 auto;
|
|
32
|
-
}
|
|
33
|
-
.np-theme-personal .np-circular-btn {
|
|
34
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
35
|
-
}
|
|
36
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
37
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
38
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
39
|
-
color: var(--color-interactive-control);
|
|
40
|
-
}
|
|
41
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
42
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
43
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
44
|
-
color: var(--color-contrast) !important;
|
|
45
|
-
}
|
|
46
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
47
|
-
color: var(--color-sentiment-negative) !important;
|
|
48
|
-
}
|
|
49
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
50
|
-
color: #00a2dd;
|
|
51
|
-
color: var(--color-interactive-accent);
|
|
52
|
-
}
|
|
53
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
54
|
-
color: #008fc9;
|
|
55
|
-
color: var(--color-interactive-accent-hover);
|
|
56
|
-
}
|
|
57
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
58
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
59
|
-
color: #0081ba;
|
|
60
|
-
color: var(--color-interactive-accent-active);
|
|
61
|
-
}
|
|
62
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
63
|
-
color: #00a2dd;
|
|
64
|
-
color: var(--color-interactive-accent);
|
|
65
|
-
}
|
|
66
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
67
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
68
|
-
color: white;
|
|
69
|
-
}
|
|
70
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
71
|
-
color: #2ead4b;
|
|
72
|
-
color: var(--color-interactive-positive);
|
|
73
|
-
}
|
|
74
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
75
|
-
color: #069939;
|
|
76
|
-
color: var(--color-interactive-positive-hover);
|
|
77
|
-
}
|
|
78
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
79
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
80
|
-
color: #008b2b;
|
|
81
|
-
color: var(--color-interactive-positive-active);
|
|
82
|
-
}
|
|
83
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
84
|
-
color: #2ead4b;
|
|
85
|
-
color: var(--color-interactive-positive);
|
|
86
|
-
}
|
|
87
|
-
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
88
|
-
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
89
|
-
color: white;
|
|
90
|
-
}
|
|
91
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
92
|
-
color: #e74848;
|
|
93
|
-
color: var(--color-interactive-negative);
|
|
94
|
-
}
|
|
95
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
96
|
-
color: #d03238;
|
|
97
|
-
color: var(--color-interactive-negative-hover);
|
|
98
|
-
}
|
|
99
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
100
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
101
|
-
color: #bf1e2c;
|
|
102
|
-
color: var(--color-interactive-negative-active);
|
|
103
|
-
}
|
|
104
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
105
|
-
color: #e74848;
|
|
106
|
-
color: var(--color-interactive-negative);
|
|
107
|
-
}
|
|
108
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
109
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
110
|
-
color: white;
|
|
111
|
-
}
|
|
112
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
7
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
8
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
113
9
|
color: var(--color-interactive-primary);
|
|
114
10
|
}
|
|
115
|
-
.np-
|
|
11
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
12
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
116
13
|
color: var(--color-interactive-primary-hover);
|
|
117
14
|
}
|
|
118
|
-
.np-
|
|
119
|
-
.np-
|
|
15
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
16
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
120
17
|
color: var(--color-interactive-primary-active);
|
|
121
18
|
}
|
|
122
|
-
.np-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
126
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
127
|
-
color: white;
|
|
128
|
-
color: var(--color-interactive-control);
|
|
129
|
-
}
|
|
130
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
131
|
-
color: var(--color-interactive-control);
|
|
132
|
-
}
|
|
133
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
134
|
-
color: var(--color-interactive-primary);
|
|
135
|
-
}
|
|
136
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
137
|
-
color: var(--color-interactive-primary-hover);
|
|
138
|
-
}
|
|
139
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
140
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
141
|
-
color: var(--color-interactive-primary-active);
|
|
142
|
-
}
|
|
143
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
144
|
-
color: var(--color-interactive-primary);
|
|
145
|
-
}
|
|
146
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
147
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
148
|
-
color: white;
|
|
149
|
-
color: var(--color-interactive-control);
|
|
150
|
-
}
|
|
151
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
152
|
-
color: var(--color-interactive-control);
|
|
153
|
-
}
|
|
154
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
155
|
-
color: var(--color-sentiment-negative);
|
|
156
|
-
}
|
|
157
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
158
|
-
color: var(--color-sentiment-negative-hover);
|
|
159
|
-
}
|
|
160
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
161
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
162
|
-
color: var(--color-sentiment-negative-active);
|
|
19
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
20
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
21
|
+
color: var(--color-sentiment-negative-primary);
|
|
163
22
|
}
|
|
164
|
-
.np-
|
|
165
|
-
|
|
23
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
24
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
25
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
166
26
|
}
|
|
167
|
-
.np-
|
|
168
|
-
.np-
|
|
169
|
-
color:
|
|
170
|
-
color: var(--color-interactive-control);
|
|
27
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
28
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
29
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
171
30
|
}
|
|
172
|
-
.np-
|
|
173
|
-
|
|
31
|
+
.np-circular-btn-disabled {
|
|
32
|
+
cursor: not-allowed;
|
|
174
33
|
}
|
package/build/styles/main.css
CHANGED
|
@@ -1442,175 +1442,34 @@ div.critical-comms .critical-comms-body {
|
|
|
1442
1442
|
display: inline-flex;
|
|
1443
1443
|
flex-direction: column;
|
|
1444
1444
|
align-items: center;
|
|
1445
|
-
text-align: center;
|
|
1446
1445
|
cursor: pointer;
|
|
1447
|
-
position: relative;
|
|
1448
|
-
}
|
|
1449
|
-
.np-circular-btn .tw-icon {
|
|
1450
|
-
position: absolute;
|
|
1451
|
-
top: 16px;
|
|
1452
|
-
top: var(--size-16);
|
|
1453
|
-
pointer-events: none;
|
|
1454
|
-
color: white;
|
|
1455
|
-
transition: color 0.15s ease-in-out;
|
|
1456
|
-
width: 100%;
|
|
1457
|
-
left: 0;
|
|
1458
|
-
}
|
|
1459
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1460
|
-
right: 0;
|
|
1461
|
-
left: auto;
|
|
1462
|
-
left: initial;
|
|
1463
|
-
}
|
|
1464
|
-
@media (max-width: 320px) {
|
|
1465
|
-
.np-circular-btn .tw-icon {
|
|
1466
|
-
top: 12px;
|
|
1467
|
-
top: var(--size-12);
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
.np-circular-btn .tw-icon > svg {
|
|
1471
|
-
margin: 0 auto;
|
|
1472
|
-
}
|
|
1473
|
-
.np-theme-personal .np-circular-btn {
|
|
1474
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1475
|
-
}
|
|
1476
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1477
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1478
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1479
|
-
color: var(--color-interactive-control);
|
|
1480
|
-
}
|
|
1481
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1482
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1483
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1484
|
-
color: var(--color-contrast) !important;
|
|
1485
|
-
}
|
|
1486
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1487
|
-
color: var(--color-sentiment-negative) !important;
|
|
1488
|
-
}
|
|
1489
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
1490
|
-
color: #00a2dd;
|
|
1491
|
-
color: var(--color-interactive-accent);
|
|
1492
|
-
}
|
|
1493
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1494
|
-
color: #008fc9;
|
|
1495
|
-
color: var(--color-interactive-accent-hover);
|
|
1496
|
-
}
|
|
1497
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1498
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1499
|
-
color: #0081ba;
|
|
1500
|
-
color: var(--color-interactive-accent-active);
|
|
1501
|
-
}
|
|
1502
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
1503
|
-
color: #00a2dd;
|
|
1504
|
-
color: var(--color-interactive-accent);
|
|
1505
|
-
}
|
|
1506
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1507
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1508
|
-
color: white;
|
|
1509
|
-
}
|
|
1510
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
1511
|
-
color: #2ead4b;
|
|
1512
|
-
color: var(--color-interactive-positive);
|
|
1513
|
-
}
|
|
1514
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1515
|
-
color: #069939;
|
|
1516
|
-
color: var(--color-interactive-positive-hover);
|
|
1517
|
-
}
|
|
1518
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1519
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1520
|
-
color: #008b2b;
|
|
1521
|
-
color: var(--color-interactive-positive-active);
|
|
1522
|
-
}
|
|
1523
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
1524
|
-
color: #2ead4b;
|
|
1525
|
-
color: var(--color-interactive-positive);
|
|
1526
1446
|
}
|
|
1527
|
-
.np-circular-btn
|
|
1528
|
-
.np-circular-btn
|
|
1529
|
-
color: white;
|
|
1530
|
-
}
|
|
1531
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
1532
|
-
color: #e74848;
|
|
1533
|
-
color: var(--color-interactive-negative);
|
|
1534
|
-
}
|
|
1535
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1536
|
-
color: #d03238;
|
|
1537
|
-
color: var(--color-interactive-negative-hover);
|
|
1538
|
-
}
|
|
1539
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1540
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1541
|
-
color: #bf1e2c;
|
|
1542
|
-
color: var(--color-interactive-negative-active);
|
|
1543
|
-
}
|
|
1544
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
1545
|
-
color: #e74848;
|
|
1546
|
-
color: var(--color-interactive-negative);
|
|
1547
|
-
}
|
|
1548
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1549
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1550
|
-
color: white;
|
|
1551
|
-
}
|
|
1552
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1447
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
1448
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
1553
1449
|
color: var(--color-interactive-primary);
|
|
1554
1450
|
}
|
|
1555
|
-
.np-
|
|
1451
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1452
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1556
1453
|
color: var(--color-interactive-primary-hover);
|
|
1557
1454
|
}
|
|
1558
|
-
.np-
|
|
1559
|
-
.np-
|
|
1455
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1456
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1560
1457
|
color: var(--color-interactive-primary-active);
|
|
1561
1458
|
}
|
|
1562
|
-
.np-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1566
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1567
|
-
color: white;
|
|
1568
|
-
color: var(--color-interactive-control);
|
|
1569
|
-
}
|
|
1570
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1571
|
-
color: var(--color-interactive-control);
|
|
1572
|
-
}
|
|
1573
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1574
|
-
color: var(--color-interactive-primary);
|
|
1575
|
-
}
|
|
1576
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1577
|
-
color: var(--color-interactive-primary-hover);
|
|
1578
|
-
}
|
|
1579
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1580
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1581
|
-
color: var(--color-interactive-primary-active);
|
|
1582
|
-
}
|
|
1583
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1584
|
-
color: var(--color-interactive-primary);
|
|
1585
|
-
}
|
|
1586
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1587
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1588
|
-
color: white;
|
|
1589
|
-
color: var(--color-interactive-control);
|
|
1590
|
-
}
|
|
1591
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1592
|
-
color: var(--color-interactive-control);
|
|
1593
|
-
}
|
|
1594
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1595
|
-
color: var(--color-sentiment-negative);
|
|
1596
|
-
}
|
|
1597
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1598
|
-
color: var(--color-sentiment-negative-hover);
|
|
1599
|
-
}
|
|
1600
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1601
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1602
|
-
color: var(--color-sentiment-negative-active);
|
|
1459
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
1460
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
1461
|
+
color: var(--color-sentiment-negative-primary);
|
|
1603
1462
|
}
|
|
1604
|
-
.np-
|
|
1605
|
-
|
|
1463
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1464
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1465
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
1606
1466
|
}
|
|
1607
|
-
.np-
|
|
1608
|
-
.np-
|
|
1609
|
-
color:
|
|
1610
|
-
color: var(--color-interactive-control);
|
|
1467
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1468
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1469
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
1611
1470
|
}
|
|
1612
|
-
.np-
|
|
1613
|
-
|
|
1471
|
+
.np-circular-btn-disabled {
|
|
1472
|
+
cursor: not-allowed;
|
|
1614
1473
|
}
|
|
1615
1474
|
.np-circle {
|
|
1616
1475
|
border-radius: 9999px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAM/F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,QAAQ,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC3E,GAAG,IAAI,CACN,cAAc,CAAC,cAAc,CAAC,EAC9B,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACrF,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,QAAoB,EACpB,IAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,+
|
|
1
|
+
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAM/F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,GAC/D,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,QAAQ,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC3E,GAAG,IAAI,CACN,cAAc,CAAC,cAAc,CAAC,EAC9B,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACrF,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,QAAoB,EACpB,IAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,+BAkCP;AAmGD,eAAe,UAAU,CAAC"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { ControlType, Priority } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use `'default'` instead
|
|
4
|
+
*/
|
|
5
|
+
type DeprecatedTypes = `${ControlType.ACCENT | ControlType.POSITIVE}`;
|
|
2
6
|
export interface CircularButtonProps {
|
|
3
7
|
className?: string;
|
|
4
8
|
children: string;
|
|
5
9
|
disabled?: boolean;
|
|
6
10
|
icon: React.ReactElement<{
|
|
7
11
|
size?: unknown;
|
|
8
|
-
}
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
12
|
+
}> | React.ReactNode;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLInputElement> & React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLAnchorElement>;
|
|
10
14
|
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* `"accent"` and `"positive"` values are **deprecated**, please use `"default"` instead
|
|
17
|
+
*/
|
|
18
|
+
type?: DeprecatedTypes | 'default' | `${ControlType.NEGATIVE}`;
|
|
12
19
|
}
|
|
13
|
-
declare const CircularButton: ({ className, children, disabled, icon, priority, type,
|
|
20
|
+
declare const CircularButton: ({ className, children, disabled, icon, onClick, priority, type, }: CircularButtonProps) => import("react").JSX.Element;
|
|
14
21
|
export default CircularButton;
|
|
15
22
|
//# sourceMappingURL=CircularButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;AAI1E;;GAEG;AACH,KAAK,eAAe,GAAG,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GACjD,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAC1C,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;CAChE;AAED,QAAA,MAAM,cAAc,sEAQjB,mBAAmB,gCA8BrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -8,12 +8,11 @@ export interface DefinitionListDefinition {
|
|
|
8
8
|
value: React.ReactNode;
|
|
9
9
|
key: string;
|
|
10
10
|
}
|
|
11
|
-
type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
11
|
+
export type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
12
12
|
export interface DefinitionListProps {
|
|
13
13
|
definitions?: DefinitionListDefinition[];
|
|
14
14
|
layout?: DefinitionListLayout;
|
|
15
15
|
muted?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export default function DefinitionList({ definitions, layout, muted, }: DefinitionListProps): import("react").JSX.Element;
|
|
18
|
-
export {};
|
|
19
18
|
//# sourceMappingURL=DefinitionList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,
|
|
1
|
+
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,oBAAoB,GAC9B,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,GAAG,MAAM,CAAC,wBAAwB,EAAE,CAAC;AAEhK,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAoCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,WAAgC,EAChC,MAA8B,EAC9B,KAAK,GACN,EAAE,mBAAmB,+BAmCrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-6fa7ff3",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
"rollup-preserve-directives": "^1.1.1",
|
|
93
93
|
"storybook": "^8.2.2",
|
|
94
94
|
"@transferwise/less-config": "3.1.0",
|
|
95
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
95
|
+
"@transferwise/neptune-css": "0.0.0-experimental-6fa7ff3",
|
|
96
96
|
"@wise/components-theming": "1.6.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3.13.1",
|
|
100
|
-
"@transferwise/neptune-css": "0.0.0-experimental-
|
|
100
|
+
"@transferwise/neptune-css": "0.0.0-experimental-6fa7ff3",
|
|
101
101
|
"@wise/art": "^2.16",
|
|
102
102
|
"@wise/components-theming": "^1.0.0",
|
|
103
103
|
"react": ">=18",
|