@xjur-ui/react 1.0.1 → 1.0.3
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/.turbo/turbo-build.log +19 -13
- package/CHANGELOG.md +14 -0
- package/dist/components/avatar-group.d.ts +34 -0
- package/dist/components/avatar-group.js +179 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/badge.d.ts +13 -0
- package/dist/components/badge.js +111 -0
- package/dist/components/chip.d.ts +1 -1
- package/dist/components/chip.js +1 -0
- package/dist/components/date-picker.js +11 -9
- package/dist/components/icon.d.ts +1 -1
- package/dist/components/icon.js +3 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +23 -7
- package/dist/components/select.js +11 -9
- package/dist/components/table.d.ts +17 -0
- package/dist/components/table.js +196 -0
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/index.css +288 -55
- package/package.json +5 -2
- package/src/components/avatar-group.tsx +76 -0
- package/src/components/avatar.tsx +1 -0
- package/src/components/badge.tsx +40 -0
- package/src/components/date-picker.tsx +15 -9
- package/src/components/input.tsx +22 -7
- package/src/components/select.tsx +15 -9
- package/src/components/table.tsx +160 -0
- package/src/resources/icons.ts +3 -1
package/dist/index.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--font-weight-bold: 700;
|
|
35
35
|
--font-weight-extrabold: 800;
|
|
36
36
|
--font-weight-black: 900;
|
|
37
|
+
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
37
38
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
38
39
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
39
40
|
--default-transition-duration: 150ms;
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"Segoe UI Symbol",
|
|
51
52
|
"Noto Color Emoji";
|
|
52
53
|
--spacing-none: 0;
|
|
54
|
+
--spacing-small-2x: 2px;
|
|
53
55
|
--spacing-small-1x: 4px;
|
|
54
56
|
--spacing-small_1x-alt: 6px;
|
|
55
57
|
--spacing-small: 8px;
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
--color-neutral-placeholder: #9C9CAD;
|
|
78
80
|
--color-neutral-label: #FFFFFF;
|
|
79
81
|
--color-icon-neutral-3: #69697A;
|
|
82
|
+
--color-icon-neutral-5: #FFFFFF;
|
|
80
83
|
--color-layer-1-idle: #F7F7FA;
|
|
81
84
|
--color-layer-1-hover: #F0F0F2;
|
|
82
85
|
--color-layer-1-pressed: #E7E7EB;
|
|
@@ -107,6 +110,8 @@
|
|
|
107
110
|
--color-danger-alt-hover: #F7D9DC;
|
|
108
111
|
--color-danger-alt-pressed: #F4CDCD;
|
|
109
112
|
--color-danger-label-idle: #E83040;
|
|
113
|
+
--color-success-idle: #169C55;
|
|
114
|
+
--color-warning-idle: #DF9F20;
|
|
110
115
|
--text-size-body-sm-1x: 12px;
|
|
111
116
|
--text-size-body-sm-1x--line-height: 16px;
|
|
112
117
|
--text-size-body-sm: 13px;
|
|
@@ -359,9 +364,6 @@
|
|
|
359
364
|
.top-1\/2 {
|
|
360
365
|
top: calc(1/2 * 100%);
|
|
361
366
|
}
|
|
362
|
-
.top-\[50\%\] {
|
|
363
|
-
top: 50%;
|
|
364
|
-
}
|
|
365
367
|
.right-0 {
|
|
366
368
|
right: calc(var(--spacing) * 0);
|
|
367
369
|
}
|
|
@@ -374,9 +376,6 @@
|
|
|
374
376
|
.left-0 {
|
|
375
377
|
left: calc(var(--spacing) * 0);
|
|
376
378
|
}
|
|
377
|
-
.left-auto {
|
|
378
|
-
left: auto;
|
|
379
|
-
}
|
|
380
379
|
.left-small {
|
|
381
380
|
left: var(--spacing-small);
|
|
382
381
|
}
|
|
@@ -395,6 +394,27 @@
|
|
|
395
394
|
.ml-small-1x {
|
|
396
395
|
margin-left: var(--spacing-small-1x);
|
|
397
396
|
}
|
|
397
|
+
.scrollbar-thin {
|
|
398
|
+
&::-webkit-scrollbar-track {
|
|
399
|
+
background-color: var(--scrollbar-track);
|
|
400
|
+
border-radius: var(--scrollbar-track-radius);
|
|
401
|
+
}
|
|
402
|
+
&::-webkit-scrollbar-thumb {
|
|
403
|
+
background-color: var(--scrollbar-thumb);
|
|
404
|
+
border-radius: var(--scrollbar-thumb-radius);
|
|
405
|
+
}
|
|
406
|
+
&::-webkit-scrollbar-corner {
|
|
407
|
+
background-color: var(--scrollbar-corner);
|
|
408
|
+
border-radius: var(--scrollbar-corner-radius);
|
|
409
|
+
}
|
|
410
|
+
scrollbar-width: thin;
|
|
411
|
+
scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);
|
|
412
|
+
&::-webkit-scrollbar {
|
|
413
|
+
display: block;
|
|
414
|
+
width: 8px;
|
|
415
|
+
height: 8px;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
398
418
|
.scrollbar-hide {
|
|
399
419
|
-ms-overflow-style: none;
|
|
400
420
|
scrollbar-width: none;
|
|
@@ -408,9 +428,21 @@
|
|
|
408
428
|
.hidden {
|
|
409
429
|
display: none;
|
|
410
430
|
}
|
|
431
|
+
.inline-block {
|
|
432
|
+
display: inline-block;
|
|
433
|
+
}
|
|
411
434
|
.inline-flex {
|
|
412
435
|
display: inline-flex;
|
|
413
436
|
}
|
|
437
|
+
.table {
|
|
438
|
+
display: table;
|
|
439
|
+
}
|
|
440
|
+
.table-cell {
|
|
441
|
+
display: table-cell;
|
|
442
|
+
}
|
|
443
|
+
.table-row {
|
|
444
|
+
display: table-row;
|
|
445
|
+
}
|
|
414
446
|
.aspect-square {
|
|
415
447
|
aspect-ratio: 1 / 1;
|
|
416
448
|
}
|
|
@@ -422,6 +454,10 @@
|
|
|
422
454
|
width: var(--spacing-large);
|
|
423
455
|
height: var(--spacing-large);
|
|
424
456
|
}
|
|
457
|
+
.size-large-1x {
|
|
458
|
+
width: var(--spacing-large-1x);
|
|
459
|
+
height: var(--spacing-large-1x);
|
|
460
|
+
}
|
|
425
461
|
.size-large-alt {
|
|
426
462
|
width: var(--spacing-large-alt);
|
|
427
463
|
height: var(--spacing-large-alt);
|
|
@@ -451,6 +487,9 @@
|
|
|
451
487
|
.h-large-7x {
|
|
452
488
|
height: var(--spacing-large-7x);
|
|
453
489
|
}
|
|
490
|
+
.h-large-8x {
|
|
491
|
+
height: var(--spacing-large-8x);
|
|
492
|
+
}
|
|
454
493
|
.max-h-\[400px\] {
|
|
455
494
|
max-height: 400px;
|
|
456
495
|
}
|
|
@@ -460,9 +499,6 @@
|
|
|
460
499
|
.w-3\/4 {
|
|
461
500
|
width: calc(3/4 * 100%);
|
|
462
501
|
}
|
|
463
|
-
.w-\[var\(--radix-popover-trigger-width\)\] {
|
|
464
|
-
width: var(--radix-popover-trigger-width);
|
|
465
|
-
}
|
|
466
502
|
.w-fit {
|
|
467
503
|
width: fit-content;
|
|
468
504
|
}
|
|
@@ -478,18 +514,30 @@
|
|
|
478
514
|
.w-large-4x {
|
|
479
515
|
width: var(--spacing-large-4x);
|
|
480
516
|
}
|
|
517
|
+
.max-w-\[var\(--radix-popover-content-available-width\)\] {
|
|
518
|
+
max-width: var(--radix-popover-content-available-width);
|
|
519
|
+
}
|
|
481
520
|
.max-w-\[var\(--radix-popover-trigger-width\)\] {
|
|
482
521
|
max-width: var(--radix-popover-trigger-width);
|
|
483
522
|
}
|
|
523
|
+
.max-w-full {
|
|
524
|
+
max-width: 100%;
|
|
525
|
+
}
|
|
484
526
|
.min-w-\[240px\] {
|
|
485
527
|
min-width: 240px;
|
|
486
528
|
}
|
|
529
|
+
.min-w-\[var\(--radix-popover-trigger-width\)\] {
|
|
530
|
+
min-width: var(--radix-popover-trigger-width);
|
|
531
|
+
}
|
|
487
532
|
.flex-1 {
|
|
488
533
|
flex: 1;
|
|
489
534
|
}
|
|
490
535
|
.shrink-0 {
|
|
491
536
|
flex-shrink: 0;
|
|
492
537
|
}
|
|
538
|
+
.caption-bottom {
|
|
539
|
+
caption-side: bottom;
|
|
540
|
+
}
|
|
493
541
|
.-translate-y-1\/2 {
|
|
494
542
|
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
495
543
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -527,6 +575,13 @@
|
|
|
527
575
|
.gap-small_1x-alt {
|
|
528
576
|
gap: var(--spacing-small_1x-alt);
|
|
529
577
|
}
|
|
578
|
+
.-space-x-small-1x {
|
|
579
|
+
:where(& > :not(:last-child)) {
|
|
580
|
+
--tw-space-x-reverse: 0;
|
|
581
|
+
margin-inline-start: calc(calc(var(--spacing-small-1x) * -1) * var(--tw-space-x-reverse));
|
|
582
|
+
margin-inline-end: calc(calc(var(--spacing-small-1x) * -1) * calc(1 - var(--tw-space-x-reverse)));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
530
585
|
.truncate {
|
|
531
586
|
overflow: hidden;
|
|
532
587
|
text-overflow: ellipsis;
|
|
@@ -535,9 +590,6 @@
|
|
|
535
590
|
.overflow-hidden {
|
|
536
591
|
overflow: hidden;
|
|
537
592
|
}
|
|
538
|
-
.overflow-x-auto {
|
|
539
|
-
overflow-x: auto;
|
|
540
|
-
}
|
|
541
593
|
.overflow-y-auto {
|
|
542
594
|
overflow-y: auto;
|
|
543
595
|
}
|
|
@@ -629,6 +681,9 @@
|
|
|
629
681
|
.border-border-layer-2 {
|
|
630
682
|
border-color: var(--color-border-layer-2);
|
|
631
683
|
}
|
|
684
|
+
.border-icon-neutral-5 {
|
|
685
|
+
border-color: var(--color-icon-neutral-5);
|
|
686
|
+
}
|
|
632
687
|
.border-transparent {
|
|
633
688
|
border-color: transparent;
|
|
634
689
|
}
|
|
@@ -683,9 +738,15 @@
|
|
|
683
738
|
.bg-primary-idle {
|
|
684
739
|
background-color: var(--color-primary-idle);
|
|
685
740
|
}
|
|
741
|
+
.bg-success-idle {
|
|
742
|
+
background-color: var(--color-success-idle);
|
|
743
|
+
}
|
|
686
744
|
.bg-transparent {
|
|
687
745
|
background-color: transparent;
|
|
688
746
|
}
|
|
747
|
+
.bg-warning-idle {
|
|
748
|
+
background-color: var(--color-warning-idle);
|
|
749
|
+
}
|
|
689
750
|
.p-\[2px\] {
|
|
690
751
|
padding: 2px;
|
|
691
752
|
}
|
|
@@ -695,6 +756,9 @@
|
|
|
695
756
|
.p-small-1x {
|
|
696
757
|
padding: var(--spacing-small-1x);
|
|
697
758
|
}
|
|
759
|
+
.p-small-2x {
|
|
760
|
+
padding: var(--spacing-small-2x);
|
|
761
|
+
}
|
|
698
762
|
.px-large {
|
|
699
763
|
padding-inline: var(--spacing-large);
|
|
700
764
|
}
|
|
@@ -728,9 +792,21 @@
|
|
|
728
792
|
.pt-small-1x {
|
|
729
793
|
padding-top: var(--spacing-small-1x);
|
|
730
794
|
}
|
|
795
|
+
.pr-large-2x {
|
|
796
|
+
padding-right: var(--spacing-large-2x);
|
|
797
|
+
}
|
|
798
|
+
.pr-large-3x {
|
|
799
|
+
padding-right: var(--spacing-large-3x);
|
|
800
|
+
}
|
|
731
801
|
.text-center {
|
|
732
802
|
text-align: center;
|
|
733
803
|
}
|
|
804
|
+
.text-left {
|
|
805
|
+
text-align: left;
|
|
806
|
+
}
|
|
807
|
+
.align-middle {
|
|
808
|
+
vertical-align: middle;
|
|
809
|
+
}
|
|
734
810
|
.font-inter {
|
|
735
811
|
font-family: var(--font-inter);
|
|
736
812
|
}
|
|
@@ -830,6 +906,9 @@
|
|
|
830
906
|
--tw-font-weight: var(--font-weight-thin);
|
|
831
907
|
font-weight: var(--font-weight-thin);
|
|
832
908
|
}
|
|
909
|
+
.whitespace-nowrap {
|
|
910
|
+
white-space: nowrap;
|
|
911
|
+
}
|
|
833
912
|
.\!text-primary-label-active {
|
|
834
913
|
color: var(--color-primary-label-active) !important;
|
|
835
914
|
}
|
|
@@ -839,6 +918,9 @@
|
|
|
839
918
|
.text-icon-neutral-3 {
|
|
840
919
|
color: var(--color-icon-neutral-3);
|
|
841
920
|
}
|
|
921
|
+
.text-inherit {
|
|
922
|
+
color: inherit;
|
|
923
|
+
}
|
|
842
924
|
.text-neutral-dark {
|
|
843
925
|
color: var(--color-neutral-dark);
|
|
844
926
|
}
|
|
@@ -972,10 +1054,6 @@
|
|
|
972
1054
|
--tw-duration: 100ms;
|
|
973
1055
|
transition-duration: 100ms;
|
|
974
1056
|
}
|
|
975
|
-
.duration-150 {
|
|
976
|
-
--tw-duration: 150ms;
|
|
977
|
-
transition-duration: 150ms;
|
|
978
|
-
}
|
|
979
1057
|
.duration-200 {
|
|
980
1058
|
--tw-duration: 200ms;
|
|
981
1059
|
transition-duration: 200ms;
|
|
@@ -984,6 +1062,10 @@
|
|
|
984
1062
|
--tw-duration: 250ms;
|
|
985
1063
|
transition-duration: 250ms;
|
|
986
1064
|
}
|
|
1065
|
+
.ease-in {
|
|
1066
|
+
--tw-ease: var(--ease-in);
|
|
1067
|
+
transition-timing-function: var(--ease-in);
|
|
1068
|
+
}
|
|
987
1069
|
.ease-in-out {
|
|
988
1070
|
--tw-ease: var(--ease-in-out);
|
|
989
1071
|
transition-timing-function: var(--ease-in-out);
|
|
@@ -996,6 +1078,9 @@
|
|
|
996
1078
|
--tw-outline-style: none;
|
|
997
1079
|
outline-style: none;
|
|
998
1080
|
}
|
|
1081
|
+
.fade-in {
|
|
1082
|
+
--tw-enter-opacity: 0;
|
|
1083
|
+
}
|
|
999
1084
|
.group-focus-within\:-top-\[3px\] {
|
|
1000
1085
|
&:is(:where(.group):focus-within *) {
|
|
1001
1086
|
top: calc(3px * -1);
|
|
@@ -1006,11 +1091,6 @@
|
|
|
1006
1091
|
animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
1007
1092
|
}
|
|
1008
1093
|
}
|
|
1009
|
-
.group-focus-within\:bg-layer-2-hover {
|
|
1010
|
-
&:is(:where(.group):focus-within *) {
|
|
1011
|
-
background-color: var(--color-layer-2-hover);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
1094
|
.group-focus-within\:text-size-label-sm-1x {
|
|
1015
1095
|
&:is(:where(.group):focus-within *) {
|
|
1016
1096
|
font-size: var(--text-size-label-sm-1x);
|
|
@@ -1064,6 +1144,13 @@
|
|
|
1064
1144
|
}
|
|
1065
1145
|
}
|
|
1066
1146
|
}
|
|
1147
|
+
.group-hover\/th\:flex {
|
|
1148
|
+
&:is(:where(.group\/th):hover *) {
|
|
1149
|
+
@media (hover: hover) {
|
|
1150
|
+
display: flex;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1067
1154
|
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:left-large-4x {
|
|
1068
1155
|
&:is(:where(.group):has(*:is(div[data-slot=date-picker-left-slot])) *) {
|
|
1069
1156
|
left: var(--spacing-large-4x);
|
|
@@ -1074,6 +1161,11 @@
|
|
|
1074
1161
|
padding-left: var(--spacing-large-1x);
|
|
1075
1162
|
}
|
|
1076
1163
|
}
|
|
1164
|
+
.group-has-\[div\[data-slot\=date-picker-right-slot\]\]\:right-large-4x {
|
|
1165
|
+
&:is(:where(.group):has(*:is(div[data-slot=date-picker-right-slot])) *) {
|
|
1166
|
+
right: var(--spacing-large-4x);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1077
1169
|
.group-has-\[div\[data-slot\=input-left-action-slot\]\]\:rounded-l-none {
|
|
1078
1170
|
&:is(:where(.group):has(*:is(div[data-slot=input-left-action-slot])) *) {
|
|
1079
1171
|
border-top-left-radius: 0;
|
|
@@ -1096,10 +1188,10 @@
|
|
|
1096
1188
|
padding-left: var(--spacing-large-1x);
|
|
1097
1189
|
}
|
|
1098
1190
|
}
|
|
1099
|
-
.group-has-\[div\[data-slot\=input-left-slot\]\]\:group-focus-within\:left-
|
|
1191
|
+
.group-has-\[div\[data-slot\=input-left-slot\]\]\:group-focus-within\:left-small {
|
|
1100
1192
|
&:is(:where(.group):has(*:is(div[data-slot=input-left-slot])) *) {
|
|
1101
1193
|
&:is(:where(.group):focus-within *) {
|
|
1102
|
-
left:
|
|
1194
|
+
left: var(--spacing-small);
|
|
1103
1195
|
}
|
|
1104
1196
|
}
|
|
1105
1197
|
}
|
|
@@ -1115,6 +1207,18 @@
|
|
|
1115
1207
|
border-bottom-right-radius: var(--radius-none);
|
|
1116
1208
|
}
|
|
1117
1209
|
}
|
|
1210
|
+
.group-has-\[div\[data-slot\=input-right-slot\]\]\:right-large-4x {
|
|
1211
|
+
&:is(:where(.group):has(*:is(div[data-slot=input-right-slot])) *) {
|
|
1212
|
+
right: var(--spacing-large-4x);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
.group-has-\[div\[data-slot\=input-right-slot\]\]\:group-focus-within\:right-small {
|
|
1216
|
+
&:is(:where(.group):has(*:is(div[data-slot=input-right-slot])) *) {
|
|
1217
|
+
&:is(:where(.group):focus-within *) {
|
|
1218
|
+
right: var(--spacing-small);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1118
1222
|
.group-has-\[div\[data-slot\=select-left-slot\]\]\:left-large-4x {
|
|
1119
1223
|
&:is(:where(.group):has(*:is(div[data-slot=select-left-slot])) *) {
|
|
1120
1224
|
left: var(--spacing-large-4x);
|
|
@@ -1125,6 +1229,11 @@
|
|
|
1125
1229
|
padding-left: var(--spacing-large-1x);
|
|
1126
1230
|
}
|
|
1127
1231
|
}
|
|
1232
|
+
.group-has-\[div\[data-slot\=select-right-slot\]\]\:right-large-4x {
|
|
1233
|
+
&:is(:where(.group):has(*:is(div[data-slot=select-right-slot])) *) {
|
|
1234
|
+
right: var(--spacing-large-4x);
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1128
1237
|
.group-has-\[input\:not\(\:placeholder-shown\)\]\:-top-\[3px\] {
|
|
1129
1238
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1130
1239
|
top: calc(3px * -1);
|
|
@@ -1135,11 +1244,6 @@
|
|
|
1135
1244
|
animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
1136
1245
|
}
|
|
1137
1246
|
}
|
|
1138
|
-
.group-has-\[input\:not\(\:placeholder-shown\)\]\:bg-layer-2-idle {
|
|
1139
|
-
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1140
|
-
background-color: var(--color-layer-2-idle);
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
1247
|
.group-has-\[input\:not\(\:placeholder-shown\)\]\:text-size-label-sm-1x {
|
|
1144
1248
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1145
1249
|
font-size: var(--text-size-label-sm-1x);
|
|
@@ -1157,24 +1261,45 @@
|
|
|
1157
1261
|
color: var(--color-primary-idle);
|
|
1158
1262
|
}
|
|
1159
1263
|
}
|
|
1160
|
-
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:left-
|
|
1264
|
+
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:left-small {
|
|
1161
1265
|
&:is(:where(.group):has(*:is(div[data-slot=date-picker-left-slot])) *) {
|
|
1162
1266
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1163
|
-
left:
|
|
1267
|
+
left: var(--spacing-small);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
.group-has-\[div\[data-slot\=date-picker-right-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:right-small {
|
|
1272
|
+
&:is(:where(.group):has(*:is(div[data-slot=date-picker-right-slot])) *) {
|
|
1273
|
+
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1274
|
+
right: var(--spacing-small);
|
|
1164
1275
|
}
|
|
1165
1276
|
}
|
|
1166
1277
|
}
|
|
1167
|
-
.group-has-\[div\[data-slot\=input-left-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:left-
|
|
1278
|
+
.group-has-\[div\[data-slot\=input-left-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:left-small {
|
|
1168
1279
|
&:is(:where(.group):has(*:is(div[data-slot=input-left-slot])) *) {
|
|
1169
1280
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1170
|
-
left:
|
|
1281
|
+
left: var(--spacing-small);
|
|
1171
1282
|
}
|
|
1172
1283
|
}
|
|
1173
1284
|
}
|
|
1174
|
-
.group-has-\[div\[data-slot\=
|
|
1285
|
+
.group-has-\[div\[data-slot\=input-right-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:right-small {
|
|
1286
|
+
&:is(:where(.group):has(*:is(div[data-slot=input-right-slot])) *) {
|
|
1287
|
+
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1288
|
+
right: var(--spacing-small);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
.group-has-\[div\[data-slot\=select-left-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:left-small {
|
|
1175
1293
|
&:is(:where(.group):has(*:is(div[data-slot=select-left-slot])) *) {
|
|
1176
1294
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1177
|
-
left:
|
|
1295
|
+
left: var(--spacing-small);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
.group-has-\[div\[data-slot\=select-right-slot\]\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:right-small {
|
|
1300
|
+
&:is(:where(.group):has(*:is(div[data-slot=select-right-slot])) *) {
|
|
1301
|
+
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
1302
|
+
right: var(--spacing-small);
|
|
1178
1303
|
}
|
|
1179
1304
|
}
|
|
1180
1305
|
}
|
|
@@ -1193,11 +1318,6 @@
|
|
|
1193
1318
|
animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
|
|
1194
1319
|
}
|
|
1195
1320
|
}
|
|
1196
|
-
.group-data-\[state\=open\]\:bg-layer-2-idle {
|
|
1197
|
-
&:is(:where(.group)[data-state=open] *) {
|
|
1198
|
-
background-color: var(--color-layer-2-idle);
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
1321
|
.group-data-\[state\=open\]\:text-size-label-sm-1x {
|
|
1202
1322
|
&:is(:where(.group)[data-state=open] *) {
|
|
1203
1323
|
font-size: var(--text-size-label-sm-1x);
|
|
@@ -1215,17 +1335,31 @@
|
|
|
1215
1335
|
color: var(--color-primary-idle);
|
|
1216
1336
|
}
|
|
1217
1337
|
}
|
|
1218
|
-
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:group-data-\[state\=open\]\:left-
|
|
1338
|
+
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:group-data-\[state\=open\]\:left-small {
|
|
1219
1339
|
&:is(:where(.group):has(*:is(div[data-slot=date-picker-left-slot])) *) {
|
|
1220
1340
|
&:is(:where(.group)[data-state=open] *) {
|
|
1221
|
-
left:
|
|
1341
|
+
left: var(--spacing-small);
|
|
1222
1342
|
}
|
|
1223
1343
|
}
|
|
1224
1344
|
}
|
|
1225
|
-
.group-has-\[div\[data-slot\=
|
|
1345
|
+
.group-has-\[div\[data-slot\=date-picker-right-slot\]\]\:group-data-\[state\=open\]\:right-small {
|
|
1346
|
+
&:is(:where(.group):has(*:is(div[data-slot=date-picker-right-slot])) *) {
|
|
1347
|
+
&:is(:where(.group)[data-state=open] *) {
|
|
1348
|
+
right: var(--spacing-small);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
.group-has-\[div\[data-slot\=select-left-slot\]\]\:group-data-\[state\=open\]\:left-small {
|
|
1226
1353
|
&:is(:where(.group):has(*:is(div[data-slot=select-left-slot])) *) {
|
|
1227
1354
|
&:is(:where(.group)[data-state=open] *) {
|
|
1228
|
-
left:
|
|
1355
|
+
left: var(--spacing-small);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
.group-has-\[div\[data-slot\=select-right-slot\]\]\:group-data-\[state\=open\]\:right-small {
|
|
1360
|
+
&:is(:where(.group):has(*:is(div[data-slot=select-right-slot])) *) {
|
|
1361
|
+
&:is(:where(.group)[data-state=open] *) {
|
|
1362
|
+
right: var(--spacing-small);
|
|
1229
1363
|
}
|
|
1230
1364
|
}
|
|
1231
1365
|
}
|
|
@@ -1234,11 +1368,35 @@
|
|
|
1234
1368
|
color: var(--color-danger-label-idle);
|
|
1235
1369
|
}
|
|
1236
1370
|
}
|
|
1371
|
+
.group-data-\[variant\=filled\]\:bg-layer-2-hover {
|
|
1372
|
+
&:is(:where(.group)[data-variant=filled] *) {
|
|
1373
|
+
background-color: var(--color-layer-2-hover);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
.group-data-\[variant\=filled\]\:group-focus-within\:bg-layer-2-hover {
|
|
1377
|
+
&:is(:where(.group)[data-variant=filled] *) {
|
|
1378
|
+
&:is(:where(.group):focus-within *) {
|
|
1379
|
+
background-color: var(--color-layer-2-hover);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1237
1383
|
.group-data-\[variant\=neutral\]\:text-icon-neutral-3 {
|
|
1238
1384
|
&:is(:where(.group)[data-variant=neutral] *) {
|
|
1239
1385
|
color: var(--color-icon-neutral-3);
|
|
1240
1386
|
}
|
|
1241
1387
|
}
|
|
1388
|
+
.group-data-\[variant\=outlined\]\:bg-layer-2-idle {
|
|
1389
|
+
&:is(:where(.group)[data-variant=outlined] *) {
|
|
1390
|
+
background-color: var(--color-layer-2-idle);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
.group-data-\[variant\=outlined\]\:group-focus-within\:bg-layer-2-idle {
|
|
1394
|
+
&:is(:where(.group)[data-variant=outlined] *) {
|
|
1395
|
+
&:is(:where(.group):focus-within *) {
|
|
1396
|
+
background-color: var(--color-layer-2-idle);
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1242
1400
|
.group-data-\[variant\=primary\]\:text-primary-label-idle {
|
|
1243
1401
|
&:is(:where(.group)[data-variant=primary] *) {
|
|
1244
1402
|
color: var(--color-primary-label-idle);
|
|
@@ -1273,6 +1431,13 @@
|
|
|
1273
1431
|
var(--tw-shadow);
|
|
1274
1432
|
}
|
|
1275
1433
|
}
|
|
1434
|
+
.hover\:overflow-x-auto {
|
|
1435
|
+
&:hover {
|
|
1436
|
+
@media (hover: hover) {
|
|
1437
|
+
overflow-x: auto;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1276
1441
|
.hover\:border-border-layer-3 {
|
|
1277
1442
|
&:hover {
|
|
1278
1443
|
@media (hover: hover) {
|
|
@@ -1377,6 +1542,15 @@
|
|
|
1377
1542
|
}
|
|
1378
1543
|
}
|
|
1379
1544
|
}
|
|
1545
|
+
.hover\:group-has-\[input\:not\(\:focus-within\)\]\:border-border-layer-3 {
|
|
1546
|
+
&:hover {
|
|
1547
|
+
@media (hover: hover) {
|
|
1548
|
+
&:is(:where(.group):has(*:is(input:not(:focus-within))) *) {
|
|
1549
|
+
border-color: var(--color-border-layer-3);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1380
1554
|
.focus\:border-primary-idle {
|
|
1381
1555
|
&:focus {
|
|
1382
1556
|
border-color: var(--color-primary-idle);
|
|
@@ -1517,30 +1691,74 @@
|
|
|
1517
1691
|
flex-direction: column;
|
|
1518
1692
|
}
|
|
1519
1693
|
}
|
|
1694
|
+
.data-\[selected\=true\]\:bg-primary-alt-active {
|
|
1695
|
+
&[data-selected=true] {
|
|
1696
|
+
background-color: var(--color-primary-alt-active);
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1520
1699
|
.data-\[size\=lg\]\:size-large-8x {
|
|
1521
1700
|
&[data-size=lg] {
|
|
1522
1701
|
width: var(--spacing-large-8x);
|
|
1523
1702
|
height: var(--spacing-large-8x);
|
|
1524
1703
|
}
|
|
1525
1704
|
}
|
|
1705
|
+
.data-\[size\=lg\]\:text-size-headline-md {
|
|
1706
|
+
&[data-size=lg] {
|
|
1707
|
+
font-size: var(--text-size-headline-md);
|
|
1708
|
+
line-height: var(--tw-leading, var(--text-size-headline-md--line-height));
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1526
1711
|
.data-\[size\=md\]\:size-large-4x {
|
|
1527
1712
|
&[data-size=md] {
|
|
1528
1713
|
width: var(--spacing-large-4x);
|
|
1529
1714
|
height: var(--spacing-large-4x);
|
|
1530
1715
|
}
|
|
1531
1716
|
}
|
|
1717
|
+
.data-\[size\=md\]\:text-size-label-lg {
|
|
1718
|
+
&[data-size=md] {
|
|
1719
|
+
font-size: var(--text-size-label-lg);
|
|
1720
|
+
line-height: var(--tw-leading, var(--text-size-label-lg--line-height));
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1532
1723
|
.data-\[size\=sm\]\:size-large-2x {
|
|
1533
1724
|
&[data-size=sm] {
|
|
1534
1725
|
width: var(--spacing-large-2x);
|
|
1535
1726
|
height: var(--spacing-large-2x);
|
|
1536
1727
|
}
|
|
1537
1728
|
}
|
|
1729
|
+
.data-\[size\=sm\]\:text-size-label-sm {
|
|
1730
|
+
&[data-size=sm] {
|
|
1731
|
+
font-size: var(--text-size-label-sm);
|
|
1732
|
+
line-height: var(--tw-leading, var(--text-size-label-sm--line-height));
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1538
1735
|
.data-\[size\=xs\]\:size-large-1x {
|
|
1539
1736
|
&[data-size=xs] {
|
|
1540
1737
|
width: var(--spacing-large-1x);
|
|
1541
1738
|
height: var(--spacing-large-1x);
|
|
1542
1739
|
}
|
|
1543
1740
|
}
|
|
1741
|
+
.data-\[size\=xs\]\:text-size-label-sm {
|
|
1742
|
+
&[data-size=xs] {
|
|
1743
|
+
font-size: var(--text-size-label-sm);
|
|
1744
|
+
line-height: var(--tw-leading, var(--text-size-label-sm--line-height));
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
.data-\[sorted\=true\]\:flex {
|
|
1748
|
+
&[data-sorted=true] {
|
|
1749
|
+
display: flex;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
.data-\[sorted\=true\]\:bg-primary-alt-active {
|
|
1753
|
+
&[data-sorted=true] {
|
|
1754
|
+
background-color: var(--color-primary-alt-active);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
.data-\[sorted\=true\]\:text-primary-label-active {
|
|
1758
|
+
&[data-sorted=true] {
|
|
1759
|
+
color: var(--color-primary-label-active);
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1544
1762
|
.data-\[state\=active\]\:rounded-none {
|
|
1545
1763
|
&[data-state=active] {
|
|
1546
1764
|
border-radius: 0;
|
|
@@ -1713,18 +1931,6 @@
|
|
|
1713
1931
|
background-color: var(--color-alt-4);
|
|
1714
1932
|
}
|
|
1715
1933
|
}
|
|
1716
|
-
.data-\[variant\=outlined\]\:bg-layer-2-idle {
|
|
1717
|
-
&[data-variant=outlined] {
|
|
1718
|
-
background-color: var(--color-layer-2-idle);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
.data-\[variant\=outlined\]\:group-focus-within\:bg-layer-2-idle {
|
|
1722
|
-
&[data-variant=outlined] {
|
|
1723
|
-
&:is(:where(.group):focus-within *) {
|
|
1724
|
-
background-color: var(--color-layer-2-idle);
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
1934
|
.data-\[variant\=outlined\]\:group-has-\[input\:not\(\:placeholder-shown\)\]\:text-primary-idle {
|
|
1729
1935
|
&[data-variant=outlined] {
|
|
1730
1936
|
&:is(:where(.group):has(*:is(input:not(:placeholder-shown))) *) {
|
|
@@ -1737,6 +1943,31 @@
|
|
|
1737
1943
|
max-width: var(--container-sm);
|
|
1738
1944
|
}
|
|
1739
1945
|
}
|
|
1946
|
+
.\[\&_tr\]\:border-b {
|
|
1947
|
+
& tr {
|
|
1948
|
+
border-bottom-style: var(--tw-border-style);
|
|
1949
|
+
border-bottom-width: 1px;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
.\[\&_tr\]\:border-border-layer-2 {
|
|
1953
|
+
& tr {
|
|
1954
|
+
border-color: var(--color-border-layer-2);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
.\[\&_tr\:last-child\]\:border-0 {
|
|
1958
|
+
& tr:last-child {
|
|
1959
|
+
border-style: var(--tw-border-style);
|
|
1960
|
+
border-width: 0px;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
.\[\&\>tr\]\:last\:border-b-0 {
|
|
1964
|
+
& > tr {
|
|
1965
|
+
&:last-child {
|
|
1966
|
+
border-bottom-style: var(--tw-border-style);
|
|
1967
|
+
border-bottom-width: 0px;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1740
1971
|
}
|
|
1741
1972
|
@property --tw-animation-delay { syntax: "*"; inherits: false; initial-value: 0s; }
|
|
1742
1973
|
@property --tw-animation-direction { syntax: "*"; inherits: false; initial-value: normal; }
|
|
@@ -1764,6 +1995,7 @@
|
|
|
1764
1995
|
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1765
1996
|
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1766
1997
|
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1998
|
+
@property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1767
1999
|
@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
1768
2000
|
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
1769
2001
|
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
@@ -1822,6 +2054,7 @@
|
|
|
1822
2054
|
--tw-translate-x: 0;
|
|
1823
2055
|
--tw-translate-y: 0;
|
|
1824
2056
|
--tw-translate-z: 0;
|
|
2057
|
+
--tw-space-x-reverse: 0;
|
|
1825
2058
|
--tw-border-style: solid;
|
|
1826
2059
|
--tw-font-weight: initial;
|
|
1827
2060
|
--tw-shadow: 0 0 #0000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xjur-ui/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components for XJur Design System",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
"./date-picker": "./dist/components/date-picker.js",
|
|
30
30
|
"./dropdown-menu": "./dist/components/dropdown-menu.js",
|
|
31
31
|
"./divider": "./dist/components/divider.js",
|
|
32
|
-
"./sheet": "./dist/components/sheet.js"
|
|
32
|
+
"./sheet": "./dist/components/sheet.js",
|
|
33
|
+
"./badge": "./dist/components/badge.js",
|
|
34
|
+
"./table": "./dist/components/table.js",
|
|
35
|
+
"./avatar-group": "./dist/components/avatar-group.js"
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@radix-ui/react-avatar": "^1.1.10",
|