oneslash-design-system 1.3.5 → 1.5.0
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/alert.jsx +9 -15
- package/dist/components/button.jsx +3 -3
- package/dist/components/iconButton.d.ts +1 -1
- package/dist/components/iconButton.jsx +2 -0
- package/dist/components/loadingScreen.d.ts +1 -1
- package/dist/components/loadingScreen.jsx +1 -0
- package/dist/components/menuItem.d.ts +2 -1
- package/dist/components/menuItem.jsx +2 -2
- package/dist/components/modal.jsx +1 -1
- package/dist/components/tag.jsx +6 -5
- package/dist/components/tooltip.jsx +25 -11
- package/dist/components/userImage.jsx +2 -0
- package/dist/designTokens.d.ts +23 -4
- package/dist/designTokens.js +10 -0
- package/dist/output.css +137 -36
- package/dist/stories/Button.stories.jsx +1 -0
- package/dist/stories/IconButton.stories.jsx +2 -1
- package/dist/stories/MenuItem.stories.d.ts +1 -0
- package/dist/stories/MenuItem.stories.jsx +11 -0
- package/dist/tailwind.config.js +10 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -2
package/dist/output.css
CHANGED
|
@@ -545,9 +545,15 @@ video {
|
|
|
545
545
|
.pointer-events-auto{
|
|
546
546
|
pointer-events: auto;
|
|
547
547
|
}
|
|
548
|
+
.\!visible{
|
|
549
|
+
visibility: visible !important;
|
|
550
|
+
}
|
|
548
551
|
.visible{
|
|
549
552
|
visibility: visible;
|
|
550
553
|
}
|
|
554
|
+
.static{
|
|
555
|
+
position: static;
|
|
556
|
+
}
|
|
551
557
|
.fixed{
|
|
552
558
|
position: fixed;
|
|
553
559
|
}
|
|
@@ -606,6 +612,10 @@ video {
|
|
|
606
612
|
.hidden{
|
|
607
613
|
display: none;
|
|
608
614
|
}
|
|
615
|
+
.size-4{
|
|
616
|
+
width: 1rem;
|
|
617
|
+
height: 1rem;
|
|
618
|
+
}
|
|
609
619
|
.size-5{
|
|
610
620
|
width: 1.25rem;
|
|
611
621
|
height: 1.25rem;
|
|
@@ -686,10 +696,28 @@ video {
|
|
|
686
696
|
.flex-shrink-0{
|
|
687
697
|
flex-shrink: 0;
|
|
688
698
|
}
|
|
699
|
+
.-translate-y-3{
|
|
700
|
+
--tw-translate-y: -0.75rem;
|
|
701
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
702
|
+
}
|
|
703
|
+
.translate-y-0{
|
|
704
|
+
--tw-translate-y: 0px;
|
|
705
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
706
|
+
}
|
|
689
707
|
.rotate-180{
|
|
690
708
|
--tw-rotate: 180deg;
|
|
691
709
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
692
710
|
}
|
|
711
|
+
.scale-100{
|
|
712
|
+
--tw-scale-x: 1;
|
|
713
|
+
--tw-scale-y: 1;
|
|
714
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
715
|
+
}
|
|
716
|
+
.scale-95{
|
|
717
|
+
--tw-scale-x: .95;
|
|
718
|
+
--tw-scale-y: .95;
|
|
719
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
720
|
+
}
|
|
693
721
|
.transform{
|
|
694
722
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
695
723
|
}
|
|
@@ -711,6 +739,9 @@ video {
|
|
|
711
739
|
.cursor-wait{
|
|
712
740
|
cursor: wait;
|
|
713
741
|
}
|
|
742
|
+
.resize{
|
|
743
|
+
resize: both;
|
|
744
|
+
}
|
|
714
745
|
.flex-row{
|
|
715
746
|
flex-direction: row;
|
|
716
747
|
}
|
|
@@ -872,10 +903,6 @@ video {
|
|
|
872
903
|
.bg-\[var\(--light-bg\)\]{
|
|
873
904
|
background-color: var(--light-bg);
|
|
874
905
|
}
|
|
875
|
-
.bg-black{
|
|
876
|
-
--tw-bg-opacity: 1;
|
|
877
|
-
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
878
|
-
}
|
|
879
906
|
.bg-dark-background-accent300{
|
|
880
907
|
--tw-bg-opacity: 1;
|
|
881
908
|
background-color: rgb(79 79 79 / var(--tw-bg-opacity));
|
|
@@ -908,14 +935,18 @@ video {
|
|
|
908
935
|
--tw-bg-opacity: 1;
|
|
909
936
|
background-color: rgb(232 232 232 / var(--tw-bg-opacity));
|
|
910
937
|
}
|
|
911
|
-
.bg-light-error-
|
|
938
|
+
.bg-light-error-alertBg{
|
|
912
939
|
--tw-bg-opacity: 1;
|
|
913
|
-
background-color: rgb(242
|
|
940
|
+
background-color: rgb(242 196 196 / var(--tw-bg-opacity));
|
|
914
941
|
}
|
|
915
942
|
.bg-light-error-main{
|
|
916
943
|
--tw-bg-opacity: 1;
|
|
917
944
|
background-color: rgb(211 47 47 / var(--tw-bg-opacity));
|
|
918
945
|
}
|
|
946
|
+
.bg-light-info-alertBg{
|
|
947
|
+
--tw-bg-opacity: 1;
|
|
948
|
+
background-color: rgb(184 217 240 / var(--tw-bg-opacity));
|
|
949
|
+
}
|
|
919
950
|
.bg-light-info-main{
|
|
920
951
|
--tw-bg-opacity: 1;
|
|
921
952
|
background-color: rgb(0 135 212 / var(--tw-bg-opacity));
|
|
@@ -924,6 +955,9 @@ video {
|
|
|
924
955
|
--tw-bg-opacity: 1;
|
|
925
956
|
background-color: rgb(209 209 209 / var(--tw-bg-opacity));
|
|
926
957
|
}
|
|
958
|
+
.bg-light-misc-scrim\/40{
|
|
959
|
+
background-color: rgb(0 0 0 / 0.4);
|
|
960
|
+
}
|
|
927
961
|
.bg-light-primary-dark{
|
|
928
962
|
--tw-bg-opacity: 1;
|
|
929
963
|
background-color: rgb(38 38 38 / var(--tw-bg-opacity));
|
|
@@ -936,6 +970,10 @@ video {
|
|
|
936
970
|
--tw-bg-opacity: 1;
|
|
937
971
|
background-color: rgb(176 176 176 / var(--tw-bg-opacity));
|
|
938
972
|
}
|
|
973
|
+
.bg-light-success-alertBg{
|
|
974
|
+
--tw-bg-opacity: 1;
|
|
975
|
+
background-color: rgb(196 226 197 / var(--tw-bg-opacity));
|
|
976
|
+
}
|
|
939
977
|
.bg-light-success-main{
|
|
940
978
|
--tw-bg-opacity: 1;
|
|
941
979
|
background-color: rgb(50 135 54 / var(--tw-bg-opacity));
|
|
@@ -952,6 +990,10 @@ video {
|
|
|
952
990
|
--tw-bg-opacity: 1;
|
|
953
991
|
background-color: rgb(109 109 109 / var(--tw-bg-opacity));
|
|
954
992
|
}
|
|
993
|
+
.bg-light-warning-alertBg{
|
|
994
|
+
--tw-bg-opacity: 1;
|
|
995
|
+
background-color: rgb(245 213 176 / var(--tw-bg-opacity));
|
|
996
|
+
}
|
|
955
997
|
.bg-light-warning-main{
|
|
956
998
|
--tw-bg-opacity: 1;
|
|
957
999
|
background-color: rgb(239 108 0 / var(--tw-bg-opacity));
|
|
@@ -959,12 +1001,12 @@ video {
|
|
|
959
1001
|
.bg-transparent{
|
|
960
1002
|
background-color: transparent;
|
|
961
1003
|
}
|
|
962
|
-
.bg-opacity-50{
|
|
963
|
-
--tw-bg-opacity: 0.5;
|
|
964
|
-
}
|
|
965
1004
|
.object-cover{
|
|
966
1005
|
object-fit: cover;
|
|
967
1006
|
}
|
|
1007
|
+
.p-0\.5{
|
|
1008
|
+
padding: 0.125rem;
|
|
1009
|
+
}
|
|
968
1010
|
.p-1{
|
|
969
1011
|
padding: 0.25rem;
|
|
970
1012
|
}
|
|
@@ -1043,18 +1085,38 @@ video {
|
|
|
1043
1085
|
--tw-text-opacity: 1;
|
|
1044
1086
|
color: rgb(238 238 238 / var(--tw-text-opacity));
|
|
1045
1087
|
}
|
|
1088
|
+
.text-light-accent-contrast{
|
|
1089
|
+
--tw-text-opacity: 1;
|
|
1090
|
+
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1091
|
+
}
|
|
1046
1092
|
.text-light-accent-main{
|
|
1047
1093
|
--tw-text-opacity: 1;
|
|
1048
1094
|
color: rgb(238 174 3 / var(--tw-text-opacity));
|
|
1049
1095
|
}
|
|
1096
|
+
.text-light-error-contrast{
|
|
1097
|
+
--tw-text-opacity: 1;
|
|
1098
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1099
|
+
}
|
|
1100
|
+
.text-light-error-dark{
|
|
1101
|
+
--tw-text-opacity: 1;
|
|
1102
|
+
color: rgb(178 35 35 / var(--tw-text-opacity));
|
|
1103
|
+
}
|
|
1050
1104
|
.text-light-error-main{
|
|
1051
1105
|
--tw-text-opacity: 1;
|
|
1052
1106
|
color: rgb(211 47 47 / var(--tw-text-opacity));
|
|
1053
1107
|
}
|
|
1108
|
+
.text-light-info-contrast{
|
|
1109
|
+
--tw-text-opacity: 1;
|
|
1110
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1111
|
+
}
|
|
1054
1112
|
.text-light-info-main{
|
|
1055
1113
|
--tw-text-opacity: 1;
|
|
1056
1114
|
color: rgb(0 135 212 / var(--tw-text-opacity));
|
|
1057
1115
|
}
|
|
1116
|
+
.text-light-success-contrast{
|
|
1117
|
+
--tw-text-opacity: 1;
|
|
1118
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1119
|
+
}
|
|
1058
1120
|
.text-light-success-main{
|
|
1059
1121
|
--tw-text-opacity: 1;
|
|
1060
1122
|
color: rgb(50 135 54 / var(--tw-text-opacity));
|
|
@@ -1075,13 +1137,13 @@ video {
|
|
|
1075
1137
|
--tw-text-opacity: 1;
|
|
1076
1138
|
color: rgb(109 109 109 / var(--tw-text-opacity));
|
|
1077
1139
|
}
|
|
1078
|
-
.text-light-warning-
|
|
1140
|
+
.text-light-warning-contrast{
|
|
1079
1141
|
--tw-text-opacity: 1;
|
|
1080
|
-
color: rgb(
|
|
1142
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1081
1143
|
}
|
|
1082
|
-
.text-
|
|
1144
|
+
.text-light-warning-main{
|
|
1083
1145
|
--tw-text-opacity: 1;
|
|
1084
|
-
color: rgb(
|
|
1146
|
+
color: rgb(239 108 0 / var(--tw-text-opacity));
|
|
1085
1147
|
}
|
|
1086
1148
|
.underline{
|
|
1087
1149
|
text-decoration-line: underline;
|
|
@@ -1151,6 +1213,11 @@ video {
|
|
|
1151
1213
|
.filter{
|
|
1152
1214
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1153
1215
|
}
|
|
1216
|
+
.transition-\[opacity\2c transform\]{
|
|
1217
|
+
transition-property: opacity,transform;
|
|
1218
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1219
|
+
transition-duration: 150ms;
|
|
1220
|
+
}
|
|
1154
1221
|
.transition-all{
|
|
1155
1222
|
transition-property: all;
|
|
1156
1223
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1161,11 +1228,6 @@ video {
|
|
|
1161
1228
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1162
1229
|
transition-duration: 150ms;
|
|
1163
1230
|
}
|
|
1164
|
-
.transition-opacity{
|
|
1165
|
-
transition-property: opacity;
|
|
1166
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1167
|
-
transition-duration: 150ms;
|
|
1168
|
-
}
|
|
1169
1231
|
.transition-transform{
|
|
1170
1232
|
transition-property: transform;
|
|
1171
1233
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1174,12 +1236,15 @@ video {
|
|
|
1174
1236
|
.duration-200{
|
|
1175
1237
|
transition-duration: 200ms;
|
|
1176
1238
|
}
|
|
1239
|
+
.duration-300{
|
|
1240
|
+
transition-duration: 300ms;
|
|
1241
|
+
}
|
|
1242
|
+
.ease-\[cubic-bezier\(0\.16\2c 1\2c 0\.3\2c 1\)\]{
|
|
1243
|
+
transition-timing-function: cubic-bezier(0.16,1,0.3,1);
|
|
1244
|
+
}
|
|
1177
1245
|
.ease-in-out{
|
|
1178
1246
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1179
1247
|
}
|
|
1180
|
-
.ease-out{
|
|
1181
|
-
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
1182
|
-
}
|
|
1183
1248
|
.scrollbar::-webkit-scrollbar-track{
|
|
1184
1249
|
background-color: var(--scrollbar-track);
|
|
1185
1250
|
border-radius: var(--scrollbar-track-radius);
|
|
@@ -1265,12 +1330,12 @@ body {
|
|
|
1265
1330
|
background-color: rgb(178 35 35 / var(--tw-bg-opacity));
|
|
1266
1331
|
}
|
|
1267
1332
|
|
|
1268
|
-
.hover\:bg-light-error-
|
|
1269
|
-
background-color: rgb(
|
|
1333
|
+
.hover\:bg-light-error-light\/60:hover{
|
|
1334
|
+
background-color: rgb(242 119 119 / 0.6);
|
|
1270
1335
|
}
|
|
1271
1336
|
|
|
1272
|
-
.hover\:bg-light-error-main\/
|
|
1273
|
-
background-color: rgb(211 47 47 / 0.
|
|
1337
|
+
.hover\:bg-light-error-main\/10:hover{
|
|
1338
|
+
background-color: rgb(211 47 47 / 0.1);
|
|
1274
1339
|
}
|
|
1275
1340
|
|
|
1276
1341
|
.hover\:bg-light-secondary-dark:hover{
|
|
@@ -1302,6 +1367,13 @@ body {
|
|
|
1302
1367
|
color: rgb(204 83 2 / var(--tw-text-opacity));
|
|
1303
1368
|
}
|
|
1304
1369
|
|
|
1370
|
+
@media (prefers-reduced-motion: reduce){
|
|
1371
|
+
|
|
1372
|
+
.motion-reduce\:transition-none{
|
|
1373
|
+
transition-property: none;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1305
1377
|
.dark\:border-dark-accent-main:is(.dark *){
|
|
1306
1378
|
--tw-border-opacity: 1;
|
|
1307
1379
|
border-color: rgb(255 205 41 / var(--tw-border-opacity));
|
|
@@ -1415,9 +1487,9 @@ body {
|
|
|
1415
1487
|
background-color: rgb(38 38 38 / var(--tw-bg-opacity));
|
|
1416
1488
|
}
|
|
1417
1489
|
|
|
1418
|
-
.dark\:bg-dark-error-
|
|
1490
|
+
.dark\:bg-dark-error-alertBg:is(.dark *){
|
|
1419
1491
|
--tw-bg-opacity: 1;
|
|
1420
|
-
background-color: rgb(
|
|
1492
|
+
background-color: rgb(92 26 26 / var(--tw-bg-opacity));
|
|
1421
1493
|
}
|
|
1422
1494
|
|
|
1423
1495
|
.dark\:bg-dark-error-main:is(.dark *){
|
|
@@ -1425,6 +1497,11 @@ body {
|
|
|
1425
1497
|
background-color: rgb(231 76 76 / var(--tw-bg-opacity));
|
|
1426
1498
|
}
|
|
1427
1499
|
|
|
1500
|
+
.dark\:bg-dark-info-alertBg:is(.dark *){
|
|
1501
|
+
--tw-bg-opacity: 1;
|
|
1502
|
+
background-color: rgb(10 58 92 / var(--tw-bg-opacity));
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1428
1505
|
.dark\:bg-dark-info-main:is(.dark *){
|
|
1429
1506
|
--tw-bg-opacity: 1;
|
|
1430
1507
|
background-color: rgb(0 175 255 / var(--tw-bg-opacity));
|
|
@@ -1435,6 +1512,10 @@ body {
|
|
|
1435
1512
|
background-color: rgb(64 64 64 / var(--tw-bg-opacity));
|
|
1436
1513
|
}
|
|
1437
1514
|
|
|
1515
|
+
.dark\:bg-dark-misc-scrim\/40:is(.dark *){
|
|
1516
|
+
background-color: rgb(0 0 0 / 0.4);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1438
1519
|
.dark\:bg-dark-primary-dark:is(.dark *){
|
|
1439
1520
|
--tw-bg-opacity: 1;
|
|
1440
1521
|
background-color: rgb(233 233 233 / var(--tw-bg-opacity));
|
|
@@ -1450,6 +1531,11 @@ body {
|
|
|
1450
1531
|
background-color: rgb(79 79 79 / var(--tw-bg-opacity));
|
|
1451
1532
|
}
|
|
1452
1533
|
|
|
1534
|
+
.dark\:bg-dark-success-alertBg:is(.dark *){
|
|
1535
|
+
--tw-bg-opacity: 1;
|
|
1536
|
+
background-color: rgb(26 74 29 / var(--tw-bg-opacity));
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1453
1539
|
.dark\:bg-dark-success-main:is(.dark *){
|
|
1454
1540
|
--tw-bg-opacity: 1;
|
|
1455
1541
|
background-color: rgb(66 165 71 / var(--tw-bg-opacity));
|
|
@@ -1470,6 +1556,11 @@ body {
|
|
|
1470
1556
|
background-color: rgb(176 176 176 / var(--tw-bg-opacity));
|
|
1471
1557
|
}
|
|
1472
1558
|
|
|
1559
|
+
.dark\:bg-dark-warning-alertBg:is(.dark *){
|
|
1560
|
+
--tw-bg-opacity: 1;
|
|
1561
|
+
background-color: rgb(92 46 10 / var(--tw-bg-opacity));
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1473
1564
|
.dark\:bg-dark-warning-main:is(.dark *){
|
|
1474
1565
|
--tw-bg-opacity: 1;
|
|
1475
1566
|
background-color: rgb(255 140 10 / var(--tw-bg-opacity));
|
|
@@ -1480,11 +1571,26 @@ body {
|
|
|
1480
1571
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1481
1572
|
}
|
|
1482
1573
|
|
|
1574
|
+
.dark\:text-dark-accent-contrast:is(.dark *){
|
|
1575
|
+
--tw-text-opacity: 1;
|
|
1576
|
+
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1483
1579
|
.dark\:text-dark-accent-main:is(.dark *){
|
|
1484
1580
|
--tw-text-opacity: 1;
|
|
1485
1581
|
color: rgb(255 205 41 / var(--tw-text-opacity));
|
|
1486
1582
|
}
|
|
1487
1583
|
|
|
1584
|
+
.dark\:text-dark-error-contrast:is(.dark *){
|
|
1585
|
+
--tw-text-opacity: 1;
|
|
1586
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.dark\:text-dark-error-light:is(.dark *){
|
|
1590
|
+
--tw-text-opacity: 1;
|
|
1591
|
+
color: rgb(242 119 119 / var(--tw-text-opacity));
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1488
1594
|
.dark\:text-dark-error-main:is(.dark *){
|
|
1489
1595
|
--tw-text-opacity: 1;
|
|
1490
1596
|
color: rgb(231 76 76 / var(--tw-text-opacity));
|
|
@@ -1530,11 +1636,6 @@ body {
|
|
|
1530
1636
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1531
1637
|
}
|
|
1532
1638
|
|
|
1533
|
-
.dark\:text-white:is(.dark *){
|
|
1534
|
-
--tw-text-opacity: 1;
|
|
1535
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
1639
|
.dark\:outline-dark-accent-main:is(.dark *){
|
|
1539
1640
|
outline-color: #FFCD29;
|
|
1540
1641
|
}
|
|
@@ -1579,12 +1680,12 @@ body {
|
|
|
1579
1680
|
background-color: rgb(69 69 69 / var(--tw-bg-opacity));
|
|
1580
1681
|
}
|
|
1581
1682
|
|
|
1582
|
-
.dark\:hover\:bg-dark-error-
|
|
1583
|
-
background-color: rgb(
|
|
1683
|
+
.dark\:hover\:bg-dark-error-dark\/60:hover:is(.dark *){
|
|
1684
|
+
background-color: rgb(178 35 35 / 0.6);
|
|
1584
1685
|
}
|
|
1585
1686
|
|
|
1586
|
-
.dark\:hover\:bg-dark-error-main\/
|
|
1587
|
-
background-color: rgb(231 76 76 / 0.
|
|
1687
|
+
.dark\:hover\:bg-dark-error-main\/10:hover:is(.dark *){
|
|
1688
|
+
background-color: rgb(231 76 76 / 0.1);
|
|
1588
1689
|
}
|
|
1589
1690
|
|
|
1590
1691
|
.dark\:hover\:bg-dark-secondary-dark:hover:is(.dark *){
|
|
@@ -14,7 +14,7 @@ var meta = {
|
|
|
14
14
|
},
|
|
15
15
|
size: {
|
|
16
16
|
control: "select",
|
|
17
|
-
options: ["large", "medium", "small"],
|
|
17
|
+
options: ["large", "medium", "small", "tiny"],
|
|
18
18
|
},
|
|
19
19
|
iconName: { control: "text" },
|
|
20
20
|
loading: { control: "boolean" },
|
|
@@ -80,6 +80,7 @@ export var Loading = {
|
|
|
80
80
|
};
|
|
81
81
|
export var AllSizes = {
|
|
82
82
|
render: function () { return (<div style={{ display: "flex", gap: "16px", alignItems: "center" }}>
|
|
83
|
+
<IconButton color="primary" state="enabled" size="tiny" iconName="Star"/>
|
|
83
84
|
<IconButton color="primary" state="enabled" size="small" iconName="Star"/>
|
|
84
85
|
<IconButton color="primary" state="enabled" size="medium" iconName="Star"/>
|
|
85
86
|
<IconButton color="primary" state="enabled" size="large" iconName="Star"/>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import MenuItem from "../components/menuItem";
|
|
2
3
|
import IconButton from "../components/iconButton";
|
|
3
4
|
var meta = {
|
|
@@ -77,3 +78,13 @@ export var WithRightAction = {
|
|
|
77
78
|
rightAction: <IconButton iconName="X" size="small" color="tertiary" state="enabled" onClick={function () { return alert('Remove clicked'); }}/>,
|
|
78
79
|
},
|
|
79
80
|
};
|
|
81
|
+
export var WithCustomIcon = {
|
|
82
|
+
args: {
|
|
83
|
+
label: "Brand Item",
|
|
84
|
+
icon: (<svg viewBox="0 0 16 16" className="w-4 h-4 fill-current">
|
|
85
|
+
<rect x="2" y="2" width="12" height="12" rx="3"/>
|
|
86
|
+
</svg>),
|
|
87
|
+
size: "small",
|
|
88
|
+
isSelected: false,
|
|
89
|
+
},
|
|
90
|
+
};
|
package/dist/tailwind.config.js
CHANGED
|
@@ -50,41 +50,49 @@ var config = {
|
|
|
50
50
|
'light-error-dark': designTokens.colors.light.error.dark,
|
|
51
51
|
'light-error-light': designTokens.colors.light.error.light,
|
|
52
52
|
'light-error-alertBg': designTokens.colors.light.error.alertBg,
|
|
53
|
+
'light-error-contrast': designTokens.colors.light.error.contrast,
|
|
53
54
|
// dark: error colors
|
|
54
55
|
'dark-error-main': designTokens.colors.dark.error.main,
|
|
55
56
|
'dark-error-dark': designTokens.colors.dark.error.dark,
|
|
56
57
|
'dark-error-light': designTokens.colors.dark.error.light,
|
|
57
58
|
'dark-error-alertBg': designTokens.colors.dark.error.alertBg,
|
|
59
|
+
'dark-error-contrast': designTokens.colors.dark.error.contrast,
|
|
58
60
|
// light: warning colors
|
|
59
61
|
'light-warning-main': designTokens.colors.light.warning.main,
|
|
60
62
|
'light-warning-dark': designTokens.colors.light.warning.dark,
|
|
61
63
|
'light-warning-light': designTokens.colors.light.warning.light,
|
|
62
64
|
'light-warning-alertBg': designTokens.colors.light.warning.alertBg,
|
|
65
|
+
'light-warning-contrast': designTokens.colors.light.warning.contrast,
|
|
63
66
|
// dark: warning colors
|
|
64
67
|
'dark-warning-main': designTokens.colors.dark.warning.main,
|
|
65
68
|
'dark-warning-dark': designTokens.colors.dark.warning.dark,
|
|
66
69
|
'dark-warning-light': designTokens.colors.dark.warning.light,
|
|
67
70
|
'dark-warning-alertBg': designTokens.colors.dark.warning.alertBg,
|
|
71
|
+
'dark-warning-contrast': designTokens.colors.dark.warning.contrast,
|
|
68
72
|
// light: info colors
|
|
69
73
|
'light-info-main': designTokens.colors.light.info.main,
|
|
70
74
|
'light-info-dark': designTokens.colors.light.info.dark,
|
|
71
75
|
'light-info-light': designTokens.colors.light.info.light,
|
|
72
76
|
'light-info-alertBg': designTokens.colors.light.info.alertBg,
|
|
77
|
+
'light-info-contrast': designTokens.colors.light.info.contrast,
|
|
73
78
|
// dark: info colors
|
|
74
79
|
'dark-info-main': designTokens.colors.dark.info.main,
|
|
75
80
|
'dark-info-dark': designTokens.colors.dark.info.dark,
|
|
76
81
|
'dark-info-light': designTokens.colors.dark.info.light,
|
|
77
82
|
'dark-info-alertBg': designTokens.colors.dark.info.alertBg,
|
|
83
|
+
'dark-info-contrast': designTokens.colors.dark.info.contrast,
|
|
78
84
|
// light: success colors
|
|
79
85
|
'light-success-main': designTokens.colors.light.success.main,
|
|
80
86
|
'light-success-dark': designTokens.colors.light.success.dark,
|
|
81
87
|
'light-success-light': designTokens.colors.light.success.light,
|
|
82
88
|
'light-success-alertBg': designTokens.colors.light.success.alertBg,
|
|
89
|
+
'light-success-contrast': designTokens.colors.light.success.contrast,
|
|
83
90
|
// dark: success colors
|
|
84
91
|
'dark-success-main': designTokens.colors.dark.success.main,
|
|
85
92
|
'dark-success-dark': designTokens.colors.dark.success.dark,
|
|
86
93
|
'dark-success-light': designTokens.colors.dark.success.light,
|
|
87
94
|
'dark-success-alertBg': designTokens.colors.dark.success.alertBg,
|
|
95
|
+
'dark-success-contrast': designTokens.colors.dark.success.contrast,
|
|
88
96
|
// Light: background colors
|
|
89
97
|
'light-background-default': designTokens.colors.light.background.default,
|
|
90
98
|
'light-background-accent100': designTokens.colors.light.background.accent100,
|
|
@@ -129,8 +137,10 @@ var config = {
|
|
|
129
137
|
'dark-actionOutlinedBorder-disabled': designTokens.colors.dark.actionOutlinedBorder.disabled,
|
|
130
138
|
// misc light colors
|
|
131
139
|
'light-misc-divider': designTokens.colors.light.misc.divider,
|
|
140
|
+
'light-misc-scrim': designTokens.colors.light.misc.scrim,
|
|
132
141
|
// misc dark colors
|
|
133
142
|
'dark-misc-divider': designTokens.colors.dark.misc.divider,
|
|
143
|
+
'dark-misc-scrim': designTokens.colors.dark.misc.scrim,
|
|
134
144
|
'dark-misc-scrollbar-bg': designTokens.colors.dark.background.default,
|
|
135
145
|
'dark-misc-scrollbar-thumb': designTokens.colors.dark.background.accent200,
|
|
136
146
|
},
|