@xjur-ui/react 1.0.2 → 1.0.4
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 +26 -16
- package/CHANGELOG.md +20 -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/chip.js +1 -0
- package/dist/components/date-picker.js +1 -1
- package/dist/components/divider.js +2 -1
- package/dist/components/dropdown-menu.js +3 -2
- package/dist/components/icon.d.ts +1 -1
- package/dist/components/icon.js +5 -1
- package/dist/components/input.js +1 -1
- package/dist/components/otp-input.js +1 -1
- package/dist/components/rich-editor.d.ts +25 -0
- package/dist/components/rich-editor.js +723 -0
- package/dist/components/search-input.js +1 -1
- package/dist/components/select.js +2 -2
- package/dist/components/skeleton.d.ts +6 -0
- package/dist/components/skeleton.js +16 -0
- package/dist/components/table.d.ts +17 -0
- package/dist/components/table.js +196 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.js +58 -0
- package/dist/components/typography.d.ts +1 -1
- package/dist/index.css +401 -23
- package/package.json +14 -2
- package/src/components/avatar-group.tsx +76 -0
- package/src/components/avatar.tsx +1 -0
- package/src/components/date-picker.tsx +1 -1
- package/src/components/divider.tsx +2 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/otp-input.tsx +1 -1
- package/src/components/rich-editor.tsx +371 -0
- package/src/components/search-input.tsx +1 -2
- package/src/components/select.tsx +1 -1
- package/src/components/skeleton.tsx +12 -0
- package/src/components/table.tsx +160 -0
- package/src/components/tooltip.tsx +63 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-os.ts +32 -0
- package/src/resources/icons.ts +5 -1
package/dist/index.css
CHANGED
|
@@ -34,8 +34,10 @@
|
|
|
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);
|
|
40
|
+
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
39
41
|
--default-transition-duration: 150ms;
|
|
40
42
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
41
43
|
--default-font-family: var(--font-sans);
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
--color-neutral-placeholder: #9C9CAD;
|
|
79
81
|
--color-neutral-label: #FFFFFF;
|
|
80
82
|
--color-icon-neutral-3: #69697A;
|
|
83
|
+
--color-icon-neutral-5: #FFFFFF;
|
|
81
84
|
--color-layer-1-idle: #F7F7FA;
|
|
82
85
|
--color-layer-1-hover: #F0F0F2;
|
|
83
86
|
--color-layer-1-pressed: #E7E7EB;
|
|
@@ -86,7 +89,9 @@
|
|
|
86
89
|
--color-layer-2-hover: #F8F8FA;
|
|
87
90
|
--color-layer-2-pressed: #F0F0F2;
|
|
88
91
|
--color-layer-2-active: #E7E7EB;
|
|
92
|
+
--color-layer-skeleton: #E5E7EB;
|
|
89
93
|
--color-alt-1: #17171A;
|
|
94
|
+
--color-alt-2: #3D3D47;
|
|
90
95
|
--color-alt-4: #9C9CAD;
|
|
91
96
|
--color-border-layer-1: #D6D6DC;
|
|
92
97
|
--color-border-layer-2: #DEDEE3;
|
|
@@ -392,6 +397,27 @@
|
|
|
392
397
|
.ml-small-1x {
|
|
393
398
|
margin-left: var(--spacing-small-1x);
|
|
394
399
|
}
|
|
400
|
+
.scrollbar-thin {
|
|
401
|
+
&::-webkit-scrollbar-track {
|
|
402
|
+
background-color: var(--scrollbar-track);
|
|
403
|
+
border-radius: var(--scrollbar-track-radius);
|
|
404
|
+
}
|
|
405
|
+
&::-webkit-scrollbar-thumb {
|
|
406
|
+
background-color: var(--scrollbar-thumb);
|
|
407
|
+
border-radius: var(--scrollbar-thumb-radius);
|
|
408
|
+
}
|
|
409
|
+
&::-webkit-scrollbar-corner {
|
|
410
|
+
background-color: var(--scrollbar-corner);
|
|
411
|
+
border-radius: var(--scrollbar-corner-radius);
|
|
412
|
+
}
|
|
413
|
+
scrollbar-width: thin;
|
|
414
|
+
scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);
|
|
415
|
+
&::-webkit-scrollbar {
|
|
416
|
+
display: block;
|
|
417
|
+
width: 8px;
|
|
418
|
+
height: 8px;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
395
421
|
.scrollbar-hide {
|
|
396
422
|
-ms-overflow-style: none;
|
|
397
423
|
scrollbar-width: none;
|
|
@@ -411,6 +437,15 @@
|
|
|
411
437
|
.inline-flex {
|
|
412
438
|
display: inline-flex;
|
|
413
439
|
}
|
|
440
|
+
.table {
|
|
441
|
+
display: table;
|
|
442
|
+
}
|
|
443
|
+
.table-cell {
|
|
444
|
+
display: table-cell;
|
|
445
|
+
}
|
|
446
|
+
.table-row {
|
|
447
|
+
display: table-row;
|
|
448
|
+
}
|
|
414
449
|
.aspect-square {
|
|
415
450
|
aspect-ratio: 1 / 1;
|
|
416
451
|
}
|
|
@@ -422,6 +457,10 @@
|
|
|
422
457
|
width: var(--spacing-large);
|
|
423
458
|
height: var(--spacing-large);
|
|
424
459
|
}
|
|
460
|
+
.size-large-1x {
|
|
461
|
+
width: var(--spacing-large-1x);
|
|
462
|
+
height: var(--spacing-large-1x);
|
|
463
|
+
}
|
|
425
464
|
.size-large-alt {
|
|
426
465
|
width: var(--spacing-large-alt);
|
|
427
466
|
height: var(--spacing-large-alt);
|
|
@@ -451,12 +490,21 @@
|
|
|
451
490
|
.h-large-7x {
|
|
452
491
|
height: var(--spacing-large-7x);
|
|
453
492
|
}
|
|
493
|
+
.h-large-8x {
|
|
494
|
+
height: var(--spacing-large-8x);
|
|
495
|
+
}
|
|
496
|
+
.max-h-\[116px\] {
|
|
497
|
+
max-height: 116px;
|
|
498
|
+
}
|
|
454
499
|
.max-h-\[400px\] {
|
|
455
500
|
max-height: 400px;
|
|
456
501
|
}
|
|
457
502
|
.max-h-\[var\(--radix-popover-content-available-height\)\] {
|
|
458
503
|
max-height: var(--radix-popover-content-available-height);
|
|
459
504
|
}
|
|
505
|
+
.min-h-\[116px\] {
|
|
506
|
+
min-height: 116px;
|
|
507
|
+
}
|
|
460
508
|
.w-3\/4 {
|
|
461
509
|
width: calc(3/4 * 100%);
|
|
462
510
|
}
|
|
@@ -484,9 +532,6 @@
|
|
|
484
532
|
.max-w-full {
|
|
485
533
|
max-width: 100%;
|
|
486
534
|
}
|
|
487
|
-
.min-w-\[240px\] {
|
|
488
|
-
min-width: 240px;
|
|
489
|
-
}
|
|
490
535
|
.min-w-\[var\(--radix-popover-trigger-width\)\] {
|
|
491
536
|
min-width: var(--radix-popover-trigger-width);
|
|
492
537
|
}
|
|
@@ -496,6 +541,12 @@
|
|
|
496
541
|
.shrink-0 {
|
|
497
542
|
flex-shrink: 0;
|
|
498
543
|
}
|
|
544
|
+
.caption-bottom {
|
|
545
|
+
caption-side: bottom;
|
|
546
|
+
}
|
|
547
|
+
.origin-\(--radix-tooltip-content-transform-origin\) {
|
|
548
|
+
transform-origin: var(--radix-tooltip-content-transform-origin);
|
|
549
|
+
}
|
|
499
550
|
.-translate-y-1\/2 {
|
|
500
551
|
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
501
552
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -503,15 +554,30 @@
|
|
|
503
554
|
.animate-in {
|
|
504
555
|
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);
|
|
505
556
|
}
|
|
557
|
+
.animate-pulse {
|
|
558
|
+
animation: var(--animate-pulse);
|
|
559
|
+
}
|
|
506
560
|
.cursor-pointer {
|
|
507
561
|
cursor: pointer;
|
|
508
562
|
}
|
|
563
|
+
.list-outside {
|
|
564
|
+
list-style-position: outside;
|
|
565
|
+
}
|
|
566
|
+
.list-decimal {
|
|
567
|
+
list-style-type: decimal;
|
|
568
|
+
}
|
|
569
|
+
.list-disc {
|
|
570
|
+
list-style-type: disc;
|
|
571
|
+
}
|
|
509
572
|
.list-none {
|
|
510
573
|
list-style-type: none;
|
|
511
574
|
}
|
|
512
575
|
.flex-col {
|
|
513
576
|
flex-direction: column;
|
|
514
577
|
}
|
|
578
|
+
.flex-nowrap {
|
|
579
|
+
flex-wrap: nowrap;
|
|
580
|
+
}
|
|
515
581
|
.items-center {
|
|
516
582
|
align-items: center;
|
|
517
583
|
}
|
|
@@ -533,6 +599,13 @@
|
|
|
533
599
|
.gap-small_1x-alt {
|
|
534
600
|
gap: var(--spacing-small_1x-alt);
|
|
535
601
|
}
|
|
602
|
+
.-space-x-small-1x {
|
|
603
|
+
:where(& > :not(:last-child)) {
|
|
604
|
+
--tw-space-x-reverse: 0;
|
|
605
|
+
margin-inline-start: calc(calc(var(--spacing-small-1x) * -1) * var(--tw-space-x-reverse));
|
|
606
|
+
margin-inline-end: calc(calc(var(--spacing-small-1x) * -1) * calc(1 - var(--tw-space-x-reverse)));
|
|
607
|
+
}
|
|
608
|
+
}
|
|
536
609
|
.truncate {
|
|
537
610
|
overflow: hidden;
|
|
538
611
|
text-overflow: ellipsis;
|
|
@@ -541,9 +614,18 @@
|
|
|
541
614
|
.overflow-hidden {
|
|
542
615
|
overflow: hidden;
|
|
543
616
|
}
|
|
617
|
+
.overflow-x-auto {
|
|
618
|
+
overflow-x: auto;
|
|
619
|
+
}
|
|
620
|
+
.overflow-x-hidden {
|
|
621
|
+
overflow-x: hidden;
|
|
622
|
+
}
|
|
544
623
|
.overflow-y-auto {
|
|
545
624
|
overflow-y: auto;
|
|
546
625
|
}
|
|
626
|
+
.overflow-y-hidden {
|
|
627
|
+
overflow-y: hidden;
|
|
628
|
+
}
|
|
547
629
|
.rounded-\[6px\] {
|
|
548
630
|
border-radius: 6px;
|
|
549
631
|
}
|
|
@@ -632,6 +714,9 @@
|
|
|
632
714
|
.border-border-layer-2 {
|
|
633
715
|
border-color: var(--color-border-layer-2);
|
|
634
716
|
}
|
|
717
|
+
.border-icon-neutral-5 {
|
|
718
|
+
border-color: var(--color-icon-neutral-5);
|
|
719
|
+
}
|
|
635
720
|
.border-transparent {
|
|
636
721
|
border-color: transparent;
|
|
637
722
|
}
|
|
@@ -677,6 +762,9 @@
|
|
|
677
762
|
.bg-layer-2-idle {
|
|
678
763
|
background-color: var(--color-layer-2-idle);
|
|
679
764
|
}
|
|
765
|
+
.bg-layer-skeleton {
|
|
766
|
+
background-color: var(--color-layer-skeleton);
|
|
767
|
+
}
|
|
680
768
|
.bg-primary-alt-active {
|
|
681
769
|
background-color: var(--color-primary-alt-active);
|
|
682
770
|
}
|
|
@@ -740,12 +828,24 @@
|
|
|
740
828
|
.pt-small-1x {
|
|
741
829
|
padding-top: var(--spacing-small-1x);
|
|
742
830
|
}
|
|
831
|
+
.pr-large-2x {
|
|
832
|
+
padding-right: var(--spacing-large-2x);
|
|
833
|
+
}
|
|
834
|
+
.pr-large-3x {
|
|
835
|
+
padding-right: var(--spacing-large-3x);
|
|
836
|
+
}
|
|
837
|
+
.pl-large-1x {
|
|
838
|
+
padding-left: var(--spacing-large-1x);
|
|
839
|
+
}
|
|
743
840
|
.text-center {
|
|
744
841
|
text-align: center;
|
|
745
842
|
}
|
|
746
843
|
.text-left {
|
|
747
844
|
text-align: left;
|
|
748
845
|
}
|
|
846
|
+
.align-middle {
|
|
847
|
+
vertical-align: middle;
|
|
848
|
+
}
|
|
749
849
|
.font-inter {
|
|
750
850
|
font-family: var(--font-inter);
|
|
751
851
|
}
|
|
@@ -845,6 +945,12 @@
|
|
|
845
945
|
--tw-font-weight: var(--font-weight-thin);
|
|
846
946
|
font-weight: var(--font-weight-thin);
|
|
847
947
|
}
|
|
948
|
+
.text-balance {
|
|
949
|
+
text-wrap: balance;
|
|
950
|
+
}
|
|
951
|
+
.whitespace-nowrap {
|
|
952
|
+
white-space: nowrap;
|
|
953
|
+
}
|
|
848
954
|
.\!text-primary-label-active {
|
|
849
955
|
color: var(--color-primary-label-active) !important;
|
|
850
956
|
}
|
|
@@ -878,6 +984,12 @@
|
|
|
878
984
|
.text-white {
|
|
879
985
|
color: var(--color-white);
|
|
880
986
|
}
|
|
987
|
+
.italic {
|
|
988
|
+
font-style: italic;
|
|
989
|
+
}
|
|
990
|
+
.underline {
|
|
991
|
+
text-decoration-line: underline;
|
|
992
|
+
}
|
|
881
993
|
.opacity-60 {
|
|
882
994
|
opacity: 60%;
|
|
883
995
|
}
|
|
@@ -998,6 +1110,10 @@
|
|
|
998
1110
|
--tw-duration: 250ms;
|
|
999
1111
|
transition-duration: 250ms;
|
|
1000
1112
|
}
|
|
1113
|
+
.ease-in {
|
|
1114
|
+
--tw-ease: var(--ease-in);
|
|
1115
|
+
transition-timing-function: var(--ease-in);
|
|
1116
|
+
}
|
|
1001
1117
|
.ease-in-out {
|
|
1002
1118
|
--tw-ease: var(--ease-in-out);
|
|
1003
1119
|
transition-timing-function: var(--ease-in-out);
|
|
@@ -1006,10 +1122,37 @@
|
|
|
1006
1122
|
--tw-ease: var(--ease-out);
|
|
1007
1123
|
transition-timing-function: var(--ease-out);
|
|
1008
1124
|
}
|
|
1125
|
+
.fade-in-0 {
|
|
1126
|
+
--tw-enter-opacity: calc(0/100);
|
|
1127
|
+
--tw-enter-opacity: 0;
|
|
1128
|
+
}
|
|
1009
1129
|
.outline-none {
|
|
1010
1130
|
--tw-outline-style: none;
|
|
1011
1131
|
outline-style: none;
|
|
1012
1132
|
}
|
|
1133
|
+
.zoom-in-95 {
|
|
1134
|
+
--tw-enter-scale: calc(95*1%);
|
|
1135
|
+
--tw-enter-scale: .95;
|
|
1136
|
+
}
|
|
1137
|
+
.fade-in {
|
|
1138
|
+
--tw-enter-opacity: 0;
|
|
1139
|
+
}
|
|
1140
|
+
.\*\:h-full {
|
|
1141
|
+
:is(& > *) {
|
|
1142
|
+
height: 100%;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
.\*\:w-full {
|
|
1146
|
+
:is(& > *) {
|
|
1147
|
+
width: 100%;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
.\*\:outline-0 {
|
|
1151
|
+
:is(& > *) {
|
|
1152
|
+
outline-style: var(--tw-outline-style);
|
|
1153
|
+
outline-width: 0px;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1013
1156
|
.group-focus-within\:-top-\[3px\] {
|
|
1014
1157
|
&:is(:where(.group):focus-within *) {
|
|
1015
1158
|
top: calc(3px * -1);
|
|
@@ -1073,6 +1216,13 @@
|
|
|
1073
1216
|
}
|
|
1074
1217
|
}
|
|
1075
1218
|
}
|
|
1219
|
+
.group-hover\/th\:flex {
|
|
1220
|
+
&:is(:where(.group\/th):hover *) {
|
|
1221
|
+
@media (hover: hover) {
|
|
1222
|
+
display: flex;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1076
1226
|
.group-has-\[div\[data-slot\=date-picker-left-slot\]\]\:left-large-4x {
|
|
1077
1227
|
&:is(:where(.group):has(*:is(div[data-slot=date-picker-left-slot])) *) {
|
|
1078
1228
|
left: var(--spacing-large-4x);
|
|
@@ -1331,6 +1481,62 @@
|
|
|
1331
1481
|
}
|
|
1332
1482
|
}
|
|
1333
1483
|
}
|
|
1484
|
+
.before\:absolute {
|
|
1485
|
+
&::before {
|
|
1486
|
+
content: var(--tw-content);
|
|
1487
|
+
position: absolute;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
.before\:top-0 {
|
|
1491
|
+
&::before {
|
|
1492
|
+
content: var(--tw-content);
|
|
1493
|
+
top: calc(var(--spacing) * 0);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
.before\:left-0 {
|
|
1497
|
+
&::before {
|
|
1498
|
+
content: var(--tw-content);
|
|
1499
|
+
left: calc(var(--spacing) * 0);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
.before\:text-neutral-placeholder {
|
|
1503
|
+
&::before {
|
|
1504
|
+
content: var(--tw-content);
|
|
1505
|
+
color: var(--color-neutral-placeholder);
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
.before\:content-\[attr\(data-placeholder\)\] {
|
|
1509
|
+
&::before {
|
|
1510
|
+
content: var(--tw-content);
|
|
1511
|
+
--tw-content: attr(data-placeholder);
|
|
1512
|
+
content: var(--tw-content);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
.first\:before\:pointer-events-none {
|
|
1516
|
+
&:first-child {
|
|
1517
|
+
&::before {
|
|
1518
|
+
content: var(--tw-content);
|
|
1519
|
+
pointer-events: none;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
.first\:before\:float-left {
|
|
1524
|
+
&:first-child {
|
|
1525
|
+
&::before {
|
|
1526
|
+
content: var(--tw-content);
|
|
1527
|
+
float: left;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
.first\:before\:content-\[attr\(data-placeholder\)\] {
|
|
1532
|
+
&:first-child {
|
|
1533
|
+
&::before {
|
|
1534
|
+
content: var(--tw-content);
|
|
1535
|
+
--tw-content: attr(data-placeholder);
|
|
1536
|
+
content: var(--tw-content);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1334
1540
|
.focus-within\:border {
|
|
1335
1541
|
&:focus-within {
|
|
1336
1542
|
border-style: var(--tw-border-style);
|
|
@@ -1342,15 +1548,18 @@
|
|
|
1342
1548
|
border-color: var(--color-primary-idle);
|
|
1343
1549
|
}
|
|
1344
1550
|
}
|
|
1345
|
-
.
|
|
1346
|
-
&:
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1551
|
+
.hover\:overflow-x-auto {
|
|
1552
|
+
&:hover {
|
|
1553
|
+
@media (hover: hover) {
|
|
1554
|
+
overflow-x: auto;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
.hover\:border-border-layer-2 {
|
|
1559
|
+
&:hover {
|
|
1560
|
+
@media (hover: hover) {
|
|
1561
|
+
border-color: var(--color-border-layer-2);
|
|
1562
|
+
}
|
|
1354
1563
|
}
|
|
1355
1564
|
}
|
|
1356
1565
|
.hover\:border-border-layer-3 {
|
|
@@ -1606,30 +1815,94 @@
|
|
|
1606
1815
|
flex-direction: column;
|
|
1607
1816
|
}
|
|
1608
1817
|
}
|
|
1818
|
+
.data-\[selected\=true\]\:bg-primary-alt-active {
|
|
1819
|
+
&[data-selected=true] {
|
|
1820
|
+
background-color: var(--color-primary-alt-active);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
.data-\[side\=bottom\]\:slide-in-from-top-2 {
|
|
1824
|
+
&[data-side=bottom] {
|
|
1825
|
+
--tw-enter-translate-y: calc(2*var(--spacing)*-1);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
.data-\[side\=left\]\:slide-in-from-right-2 {
|
|
1829
|
+
&[data-side=left] {
|
|
1830
|
+
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
.data-\[side\=right\]\:slide-in-from-left-2 {
|
|
1834
|
+
&[data-side=right] {
|
|
1835
|
+
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
.data-\[side\=top\]\:slide-in-from-bottom-2 {
|
|
1839
|
+
&[data-side=top] {
|
|
1840
|
+
--tw-enter-translate-y: calc(2*var(--spacing));
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1609
1843
|
.data-\[size\=lg\]\:size-large-8x {
|
|
1610
1844
|
&[data-size=lg] {
|
|
1611
1845
|
width: var(--spacing-large-8x);
|
|
1612
1846
|
height: var(--spacing-large-8x);
|
|
1613
1847
|
}
|
|
1614
1848
|
}
|
|
1849
|
+
.data-\[size\=lg\]\:text-size-headline-md {
|
|
1850
|
+
&[data-size=lg] {
|
|
1851
|
+
font-size: var(--text-size-headline-md);
|
|
1852
|
+
line-height: var(--tw-leading, var(--text-size-headline-md--line-height));
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1615
1855
|
.data-\[size\=md\]\:size-large-4x {
|
|
1616
1856
|
&[data-size=md] {
|
|
1617
1857
|
width: var(--spacing-large-4x);
|
|
1618
1858
|
height: var(--spacing-large-4x);
|
|
1619
1859
|
}
|
|
1620
1860
|
}
|
|
1861
|
+
.data-\[size\=md\]\:text-size-label-lg {
|
|
1862
|
+
&[data-size=md] {
|
|
1863
|
+
font-size: var(--text-size-label-lg);
|
|
1864
|
+
line-height: var(--tw-leading, var(--text-size-label-lg--line-height));
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1621
1867
|
.data-\[size\=sm\]\:size-large-2x {
|
|
1622
1868
|
&[data-size=sm] {
|
|
1623
1869
|
width: var(--spacing-large-2x);
|
|
1624
1870
|
height: var(--spacing-large-2x);
|
|
1625
1871
|
}
|
|
1626
1872
|
}
|
|
1873
|
+
.data-\[size\=sm\]\:text-size-label-sm {
|
|
1874
|
+
&[data-size=sm] {
|
|
1875
|
+
font-size: var(--text-size-label-sm);
|
|
1876
|
+
line-height: var(--tw-leading, var(--text-size-label-sm--line-height));
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1627
1879
|
.data-\[size\=xs\]\:size-large-1x {
|
|
1628
1880
|
&[data-size=xs] {
|
|
1629
1881
|
width: var(--spacing-large-1x);
|
|
1630
1882
|
height: var(--spacing-large-1x);
|
|
1631
1883
|
}
|
|
1632
1884
|
}
|
|
1885
|
+
.data-\[size\=xs\]\:text-size-label-sm {
|
|
1886
|
+
&[data-size=xs] {
|
|
1887
|
+
font-size: var(--text-size-label-sm);
|
|
1888
|
+
line-height: var(--tw-leading, var(--text-size-label-sm--line-height));
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
.data-\[sorted\=true\]\:flex {
|
|
1892
|
+
&[data-sorted=true] {
|
|
1893
|
+
display: flex;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
.data-\[sorted\=true\]\:bg-primary-alt-active {
|
|
1897
|
+
&[data-sorted=true] {
|
|
1898
|
+
background-color: var(--color-primary-alt-active);
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
.data-\[sorted\=true\]\:text-primary-label-active {
|
|
1902
|
+
&[data-sorted=true] {
|
|
1903
|
+
color: var(--color-primary-label-active);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1633
1906
|
.data-\[state\=active\]\:rounded-none {
|
|
1634
1907
|
&[data-state=active] {
|
|
1635
1908
|
border-radius: 0;
|
|
@@ -1713,6 +1986,12 @@
|
|
|
1713
1986
|
--tw-exit-opacity: 0;
|
|
1714
1987
|
}
|
|
1715
1988
|
}
|
|
1989
|
+
.data-\[state\=closed\]\:zoom-out-95 {
|
|
1990
|
+
&[data-state=closed] {
|
|
1991
|
+
--tw-exit-scale: calc(95*1%);
|
|
1992
|
+
--tw-exit-scale: .95;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1716
1995
|
.data-\[state\=closed\]\:slide-out-to-bottom {
|
|
1717
1996
|
&[data-state=closed] {
|
|
1718
1997
|
--tw-exit-translate-y: 100%;
|
|
@@ -1748,17 +2027,6 @@
|
|
|
1748
2027
|
border-color: var(--color-primary-idle);
|
|
1749
2028
|
}
|
|
1750
2029
|
}
|
|
1751
|
-
.data-\[state\=open\]\:shadow-focus-primary {
|
|
1752
|
-
&[data-state=open] {
|
|
1753
|
-
--tw-shadow: 0 0 0 var(--tw-shadow-color, var(--shadow-medium, 4px)) rgba(232, 125, 48, 0.16);
|
|
1754
|
-
box-shadow:
|
|
1755
|
-
var(--tw-inset-shadow),
|
|
1756
|
-
var(--tw-inset-ring-shadow),
|
|
1757
|
-
var(--tw-ring-offset-shadow),
|
|
1758
|
-
var(--tw-ring-shadow),
|
|
1759
|
-
var(--tw-shadow);
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
2030
|
.data-\[state\=open\]\:duration-500 {
|
|
1763
2031
|
&[data-state=open] {
|
|
1764
2032
|
--tw-duration: 500ms;
|
|
@@ -1809,11 +2077,112 @@
|
|
|
1809
2077
|
}
|
|
1810
2078
|
}
|
|
1811
2079
|
}
|
|
2080
|
+
.data-\[variant\=rich\]\:rounded-small {
|
|
2081
|
+
&[data-variant=rich] {
|
|
2082
|
+
border-radius: var(--radius-small);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
.data-\[variant\=rich\]\:border {
|
|
2086
|
+
&[data-variant=rich] {
|
|
2087
|
+
border-style: var(--tw-border-style);
|
|
2088
|
+
border-width: 1px;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
.data-\[variant\=rich\]\:border-border-layer-2 {
|
|
2092
|
+
&[data-variant=rich] {
|
|
2093
|
+
border-color: var(--color-border-layer-2);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
.data-\[variant\=rich\]\:bg-layer-2-idle {
|
|
2097
|
+
&[data-variant=rich] {
|
|
2098
|
+
background-color: var(--color-layer-2-idle);
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
.data-\[variant\=rich\]\:p-large {
|
|
2102
|
+
&[data-variant=rich] {
|
|
2103
|
+
padding: var(--spacing-large);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
.data-\[variant\=rich\]\:text-neutral-dark {
|
|
2107
|
+
&[data-variant=rich] {
|
|
2108
|
+
color: var(--color-neutral-dark);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
.data-\[variant\=simple\]\:rounded-small-1x {
|
|
2112
|
+
&[data-variant=simple] {
|
|
2113
|
+
border-radius: var(--radius-small-1x);
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
.data-\[variant\=simple\]\:bg-alt-2 {
|
|
2117
|
+
&[data-variant=simple] {
|
|
2118
|
+
background-color: var(--color-alt-2);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
.data-\[variant\=simple\]\:px-small {
|
|
2122
|
+
&[data-variant=simple] {
|
|
2123
|
+
padding-inline: var(--spacing-small);
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
.data-\[variant\=simple\]\:py-small-1x {
|
|
2127
|
+
&[data-variant=simple] {
|
|
2128
|
+
padding-block: var(--spacing-small-1x);
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
.data-\[variant\=simple\]\:text-neutral-label {
|
|
2132
|
+
&[data-variant=simple] {
|
|
2133
|
+
color: var(--color-neutral-label);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
1812
2136
|
.sm\:max-w-sm {
|
|
1813
2137
|
@media (width >= 40rem) {
|
|
1814
2138
|
max-width: var(--container-sm);
|
|
1815
2139
|
}
|
|
1816
2140
|
}
|
|
2141
|
+
.\[\&_ol_ol\]\:list-\[lower-alpha\] {
|
|
2142
|
+
& ol ol {
|
|
2143
|
+
list-style-type: lower-alpha;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
.\[\&_ol_ol_ol\]\:list-\[lower-roman\] {
|
|
2147
|
+
& ol ol ol {
|
|
2148
|
+
list-style-type: lower-roman;
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
.\[\&_tr\]\:border-b {
|
|
2152
|
+
& tr {
|
|
2153
|
+
border-bottom-style: var(--tw-border-style);
|
|
2154
|
+
border-bottom-width: 1px;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
.\[\&_tr\]\:border-border-layer-2 {
|
|
2158
|
+
& tr {
|
|
2159
|
+
border-color: var(--color-border-layer-2);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
.\[\&_tr\:last-child\]\:border-0 {
|
|
2163
|
+
& tr:last-child {
|
|
2164
|
+
border-style: var(--tw-border-style);
|
|
2165
|
+
border-width: 0px;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
.\[\&_ul_ul\]\:list-\[circle\] {
|
|
2169
|
+
& ul ul {
|
|
2170
|
+
list-style-type: circle;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
.\[\&_ul_ul_ul\]\:list-\[square\] {
|
|
2174
|
+
& ul ul ul {
|
|
2175
|
+
list-style-type: square;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
.\[\&\>tr\]\:last\:border-b-0 {
|
|
2179
|
+
& > tr {
|
|
2180
|
+
&:last-child {
|
|
2181
|
+
border-bottom-style: var(--tw-border-style);
|
|
2182
|
+
border-bottom-width: 0px;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
1817
2186
|
}
|
|
1818
2187
|
@property --tw-animation-delay { syntax: "*"; inherits: false; initial-value: 0s; }
|
|
1819
2188
|
@property --tw-animation-direction { syntax: "*"; inherits: false; initial-value: normal; }
|
|
@@ -1841,6 +2210,7 @@
|
|
|
1841
2210
|
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1842
2211
|
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1843
2212
|
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
|
|
2213
|
+
@property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1844
2214
|
@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
1845
2215
|
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
1846
2216
|
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
@@ -1860,6 +2230,12 @@
|
|
|
1860
2230
|
@property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
|
|
1861
2231
|
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
1862
2232
|
@property --tw-ease { syntax: "*"; inherits: false; }
|
|
2233
|
+
@property --tw-content { syntax: "*"; initial-value: ""; inherits: false; }
|
|
2234
|
+
@keyframes pulse {
|
|
2235
|
+
50% {
|
|
2236
|
+
opacity: 0.5;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
1863
2239
|
@keyframes enter {
|
|
1864
2240
|
from {
|
|
1865
2241
|
opacity: var(--tw-enter-opacity,1);
|
|
@@ -1899,6 +2275,7 @@
|
|
|
1899
2275
|
--tw-translate-x: 0;
|
|
1900
2276
|
--tw-translate-y: 0;
|
|
1901
2277
|
--tw-translate-z: 0;
|
|
2278
|
+
--tw-space-x-reverse: 0;
|
|
1902
2279
|
--tw-border-style: solid;
|
|
1903
2280
|
--tw-font-weight: initial;
|
|
1904
2281
|
--tw-shadow: 0 0 #0000;
|
|
@@ -1918,6 +2295,7 @@
|
|
|
1918
2295
|
--tw-outline-style: solid;
|
|
1919
2296
|
--tw-duration: initial;
|
|
1920
2297
|
--tw-ease: initial;
|
|
2298
|
+
--tw-content: "";
|
|
1921
2299
|
--tw-animation-delay: 0s;
|
|
1922
2300
|
--tw-animation-direction: normal;
|
|
1923
2301
|
--tw-animation-duration: initial;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xjur-ui/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components for XJur Design System",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
"./index.css": "./dist/index.css",
|
|
11
|
+
"./hooks": "./dist/hooks/index.js",
|
|
11
12
|
"./button": "./dist/components/button.js",
|
|
12
13
|
"./icon": "./dist/components/icon.js",
|
|
13
14
|
"./typography": "./dist/components/typography.js",
|
|
@@ -30,7 +31,12 @@
|
|
|
30
31
|
"./dropdown-menu": "./dist/components/dropdown-menu.js",
|
|
31
32
|
"./divider": "./dist/components/divider.js",
|
|
32
33
|
"./sheet": "./dist/components/sheet.js",
|
|
33
|
-
"./badge": "./dist/components/badge.js"
|
|
34
|
+
"./badge": "./dist/components/badge.js",
|
|
35
|
+
"./table": "./dist/components/table.js",
|
|
36
|
+
"./avatar-group": "./dist/components/avatar-group.js",
|
|
37
|
+
"./skeleton": "./dist/components/skeleton.js",
|
|
38
|
+
"./rich-editor": "./dist/components/rich-editor.js",
|
|
39
|
+
"./tooltip": "./dist/components/tooltip.js"
|
|
34
40
|
},
|
|
35
41
|
"dependencies": {
|
|
36
42
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
@@ -46,8 +52,14 @@
|
|
|
46
52
|
"@radix-ui/react-slot": "^1.2.3",
|
|
47
53
|
"@radix-ui/react-switch": "^1.2.6",
|
|
48
54
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
55
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
49
56
|
"@react-input/mask": "^2.0.4",
|
|
50
57
|
"@react-input/number-format": "^2.0.3",
|
|
58
|
+
"@tiptap/extension-heading": "^3.3.0",
|
|
59
|
+
"@tiptap/extensions": "^3.3.0",
|
|
60
|
+
"@tiptap/pm": "^3.3.0",
|
|
61
|
+
"@tiptap/react": "^3.3.0",
|
|
62
|
+
"@tiptap/starter-kit": "^3.3.0",
|
|
51
63
|
"@xjur-ui/styles": "*",
|
|
52
64
|
"@xjur-ui/util": "*",
|
|
53
65
|
"react-day-picker": "^9.9.0",
|