@namehash/namehash-ui 1.9.0 → 1.10.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/legacy/index.cjs +155 -0
- package/dist/components/legacy/index.cjs.map +1 -0
- package/dist/components/legacy/index.css +1603 -0
- package/dist/components/legacy/index.css.map +1 -0
- package/dist/components/legacy/index.d.cts +35 -0
- package/dist/components/legacy/index.d.ts +35 -0
- package/dist/components/legacy/index.js +122 -0
- package/dist/components/legacy/index.js.map +1 -0
- package/dist/index.cjs +15 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +207 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
package/dist/index.css
CHANGED
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
--nhui-text-xs--line-height: calc(1 / 0.75);
|
|
36
36
|
--nhui-text-sm: 0.875rem;
|
|
37
37
|
--nhui-text-sm--line-height: calc(1.25 / 0.875);
|
|
38
|
+
--nhui-text-base: 1rem;
|
|
39
|
+
--nhui-text-base--line-height: calc(1.5 / 1);
|
|
40
|
+
--nhui-text-lg: 1.125rem;
|
|
41
|
+
--nhui-text-lg--line-height: calc(1.75 / 1.125);
|
|
38
42
|
--nhui-font-weight-light: 300;
|
|
39
43
|
--nhui-font-weight-normal: 400;
|
|
40
44
|
--nhui-font-weight-medium: 500;
|
|
@@ -241,6 +245,9 @@
|
|
|
241
245
|
.nhui\:relative {
|
|
242
246
|
position: relative;
|
|
243
247
|
}
|
|
248
|
+
.nhui\:z-10 {
|
|
249
|
+
z-index: 10;
|
|
250
|
+
}
|
|
244
251
|
.nhui\:z-50 {
|
|
245
252
|
z-index: 50;
|
|
246
253
|
}
|
|
@@ -487,9 +494,18 @@
|
|
|
487
494
|
border-top-style: var(--tw-border-style);
|
|
488
495
|
border-top-width: 1px;
|
|
489
496
|
}
|
|
497
|
+
.nhui\:border-\[\#DBDBDB\] {
|
|
498
|
+
border-color: #DBDBDB;
|
|
499
|
+
}
|
|
500
|
+
.nhui\:border-black {
|
|
501
|
+
border-color: var(--nhui-color-black);
|
|
502
|
+
}
|
|
490
503
|
.nhui\:border-gray-200 {
|
|
491
504
|
border-color: var(--nhui-color-gray-200);
|
|
492
505
|
}
|
|
506
|
+
.nhui\:border-transparent {
|
|
507
|
+
border-color: transparent;
|
|
508
|
+
}
|
|
493
509
|
.nhui\:bg-\[\#171717\] {
|
|
494
510
|
background-color: #171717;
|
|
495
511
|
}
|
|
@@ -499,6 +515,9 @@
|
|
|
499
515
|
.nhui\:bg-background {
|
|
500
516
|
background-color: var(--nhui-background);
|
|
501
517
|
}
|
|
518
|
+
.nhui\:bg-black {
|
|
519
|
+
background-color: var(--nhui-color-black);
|
|
520
|
+
}
|
|
502
521
|
.nhui\:bg-destructive {
|
|
503
522
|
background-color: var(--nhui-destructive);
|
|
504
523
|
}
|
|
@@ -523,6 +542,9 @@
|
|
|
523
542
|
.nhui\:bg-white {
|
|
524
543
|
background-color: var(--nhui-color-white);
|
|
525
544
|
}
|
|
545
|
+
.nhui\:fill-black {
|
|
546
|
+
fill: var(--nhui-color-black);
|
|
547
|
+
}
|
|
526
548
|
.nhui\:fill-foreground {
|
|
527
549
|
fill: var(--nhui-foreground);
|
|
528
550
|
}
|
|
@@ -532,6 +554,9 @@
|
|
|
532
554
|
.nhui\:p-4 {
|
|
533
555
|
padding: calc(var(--nhui-spacing) * 4);
|
|
534
556
|
}
|
|
557
|
+
.nhui\:px-2 {
|
|
558
|
+
padding-inline: calc(var(--nhui-spacing) * 2);
|
|
559
|
+
}
|
|
535
560
|
.nhui\:px-3 {
|
|
536
561
|
padding-inline: calc(var(--nhui-spacing) * 3);
|
|
537
562
|
}
|
|
@@ -544,12 +569,18 @@
|
|
|
544
569
|
.nhui\:px-6 {
|
|
545
570
|
padding-inline: calc(var(--nhui-spacing) * 6);
|
|
546
571
|
}
|
|
572
|
+
.nhui\:py-1 {
|
|
573
|
+
padding-block: calc(var(--nhui-spacing) * 1);
|
|
574
|
+
}
|
|
547
575
|
.nhui\:py-1\.5 {
|
|
548
576
|
padding-block: calc(var(--nhui-spacing) * 1.5);
|
|
549
577
|
}
|
|
550
578
|
.nhui\:py-2 {
|
|
551
579
|
padding-block: calc(var(--nhui-spacing) * 2);
|
|
552
580
|
}
|
|
581
|
+
.nhui\:py-3 {
|
|
582
|
+
padding-block: calc(var(--nhui-spacing) * 3);
|
|
583
|
+
}
|
|
553
584
|
.nhui\:pt-5 {
|
|
554
585
|
padding-top: calc(var(--nhui-spacing) * 5);
|
|
555
586
|
}
|
|
@@ -565,6 +596,14 @@
|
|
|
565
596
|
.nhui\:text-left {
|
|
566
597
|
text-align: left;
|
|
567
598
|
}
|
|
599
|
+
.nhui\:text-base {
|
|
600
|
+
font-size: var(--nhui-text-base);
|
|
601
|
+
line-height: var(--tw-leading, var(--nhui-text-base--line-height));
|
|
602
|
+
}
|
|
603
|
+
.nhui\:text-lg {
|
|
604
|
+
font-size: var(--nhui-text-lg);
|
|
605
|
+
line-height: var(--tw-leading, var(--nhui-text-lg--line-height));
|
|
606
|
+
}
|
|
568
607
|
.nhui\:text-sm {
|
|
569
608
|
font-size: var(--nhui-text-sm);
|
|
570
609
|
line-height: var(--tw-leading, var(--nhui-text-sm--line-height));
|
|
@@ -655,18 +694,33 @@
|
|
|
655
694
|
.nhui\:not-italic {
|
|
656
695
|
font-style: normal;
|
|
657
696
|
}
|
|
697
|
+
.nhui\:no-underline {
|
|
698
|
+
text-decoration-line: none;
|
|
699
|
+
}
|
|
658
700
|
.nhui\:underline {
|
|
659
701
|
text-decoration-line: underline;
|
|
660
702
|
}
|
|
661
703
|
.nhui\:decoration-current {
|
|
662
704
|
text-decoration-color: currentcolor;
|
|
663
705
|
}
|
|
706
|
+
.nhui\:decoration-transparent {
|
|
707
|
+
text-decoration-color: transparent;
|
|
708
|
+
}
|
|
664
709
|
.nhui\:underline-offset-4 {
|
|
665
710
|
text-underline-offset: 4px;
|
|
666
711
|
}
|
|
667
712
|
.nhui\:underline-offset-\[4px\] {
|
|
668
713
|
text-underline-offset: 4px;
|
|
669
714
|
}
|
|
715
|
+
.nhui\:shadow-\[0_1px_2px_0_rgba\(0\,0\,0\,0\.05\)\] {
|
|
716
|
+
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgba(0,0,0,0.05));
|
|
717
|
+
box-shadow:
|
|
718
|
+
var(--tw-inset-shadow),
|
|
719
|
+
var(--tw-inset-ring-shadow),
|
|
720
|
+
var(--tw-ring-offset-shadow),
|
|
721
|
+
var(--tw-ring-shadow),
|
|
722
|
+
var(--tw-shadow);
|
|
723
|
+
}
|
|
670
724
|
.nhui\:shadow-md {
|
|
671
725
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
672
726
|
box-shadow:
|
|
@@ -741,6 +795,11 @@
|
|
|
741
795
|
transition-timing-function: var(--tw-ease, var(--nhui-default-transition-timing-function));
|
|
742
796
|
transition-duration: var(--tw-duration, var(--nhui-default-transition-duration));
|
|
743
797
|
}
|
|
798
|
+
.nhui\:transition-opacity {
|
|
799
|
+
transition-property: opacity;
|
|
800
|
+
transition-timing-function: var(--tw-ease, var(--nhui-default-transition-timing-function));
|
|
801
|
+
transition-duration: var(--tw-duration, var(--nhui-default-transition-duration));
|
|
802
|
+
}
|
|
744
803
|
.nhui\:duration-0 {
|
|
745
804
|
--tw-duration: 0ms;
|
|
746
805
|
transition-duration: 0ms;
|
|
@@ -749,6 +808,10 @@
|
|
|
749
808
|
--tw-duration: 200ms;
|
|
750
809
|
transition-duration: 200ms;
|
|
751
810
|
}
|
|
811
|
+
.nhui\:duration-300 {
|
|
812
|
+
--tw-duration: 300ms;
|
|
813
|
+
transition-duration: 300ms;
|
|
814
|
+
}
|
|
752
815
|
.nhui\:animate-in {
|
|
753
816
|
animation-name: enter;
|
|
754
817
|
animation-duration: 150ms;
|
|
@@ -776,12 +839,22 @@
|
|
|
776
839
|
.nhui\:duration-200 {
|
|
777
840
|
animation-duration: 200ms;
|
|
778
841
|
}
|
|
842
|
+
.nhui\:duration-300 {
|
|
843
|
+
animation-duration: 300ms;
|
|
844
|
+
}
|
|
779
845
|
.nhui\:fade-in-0 {
|
|
780
846
|
--tw-enter-opacity: 0;
|
|
781
847
|
}
|
|
782
848
|
.nhui\:zoom-in-95 {
|
|
783
849
|
--tw-enter-scale: .95;
|
|
784
850
|
}
|
|
851
|
+
.nhui\:hover\:bg-\[\#272727\] {
|
|
852
|
+
&:hover {
|
|
853
|
+
@media (hover: hover) {
|
|
854
|
+
background-color: #272727;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
785
858
|
.nhui\:hover\:bg-accent {
|
|
786
859
|
&:hover {
|
|
787
860
|
@media (hover: hover) {
|
|
@@ -789,6 +862,16 @@
|
|
|
789
862
|
}
|
|
790
863
|
}
|
|
791
864
|
}
|
|
865
|
+
.nhui\:hover\:bg-black\/5 {
|
|
866
|
+
&:hover {
|
|
867
|
+
@media (hover: hover) {
|
|
868
|
+
background-color: var(--nhui-color-black);
|
|
869
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
870
|
+
background-color: color-mix(in oklab, var(--nhui-color-black) 5%, transparent);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
792
875
|
.nhui\:hover\:bg-destructive\/90 {
|
|
793
876
|
&:hover {
|
|
794
877
|
@media (hover: hover) {
|
|
@@ -799,6 +882,13 @@
|
|
|
799
882
|
}
|
|
800
883
|
}
|
|
801
884
|
}
|
|
885
|
+
.nhui\:hover\:bg-gray-50 {
|
|
886
|
+
&:hover {
|
|
887
|
+
@media (hover: hover) {
|
|
888
|
+
background-color: var(--nhui-color-gray-50);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
802
892
|
.nhui\:hover\:bg-primary\/90 {
|
|
803
893
|
&:hover {
|
|
804
894
|
@media (hover: hover) {
|
|
@@ -847,6 +937,13 @@
|
|
|
847
937
|
}
|
|
848
938
|
}
|
|
849
939
|
}
|
|
940
|
+
.nhui\:hover\:decoration-current {
|
|
941
|
+
&:hover {
|
|
942
|
+
@media (hover: hover) {
|
|
943
|
+
text-decoration-color: currentcolor;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
850
947
|
.nhui\:hover\:underline-offset-\[2px\] {
|
|
851
948
|
&:hover {
|
|
852
949
|
@media (hover: hover) {
|
|
@@ -931,6 +1028,16 @@
|
|
|
931
1028
|
}
|
|
932
1029
|
}
|
|
933
1030
|
}
|
|
1031
|
+
.nhui\:data-\[side\=bottom\]\:slide-in-from-top-1 {
|
|
1032
|
+
&[data-side=bottom] {
|
|
1033
|
+
--tw-enter-translate-y: -.;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
.nhui\:data-\[side\=bottom\]\:slide-in-from-top-1 {
|
|
1037
|
+
&[data-side=bottom] {
|
|
1038
|
+
--tw-enter-translate-y: calc(1*var(--spacing)*-1);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
934
1041
|
.nhui\:data-\[side\=bottom\]\:slide-in-from-top-2 {
|
|
935
1042
|
&[data-side=bottom] {
|
|
936
1043
|
--tw-enter-translate-y: -2;
|
|
@@ -941,6 +1048,16 @@
|
|
|
941
1048
|
--tw-enter-translate-y: calc(2*var(--spacing)*-1);
|
|
942
1049
|
}
|
|
943
1050
|
}
|
|
1051
|
+
.nhui\:data-\[side\=left\]\:slide-in-from-right-1 {
|
|
1052
|
+
&[data-side=left] {
|
|
1053
|
+
--tw-enter-translate-x: .;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
.nhui\:data-\[side\=left\]\:slide-in-from-right-1 {
|
|
1057
|
+
&[data-side=left] {
|
|
1058
|
+
--tw-enter-translate-x: calc(1*var(--spacing));
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
944
1061
|
.nhui\:data-\[side\=left\]\:slide-in-from-right-2 {
|
|
945
1062
|
&[data-side=left] {
|
|
946
1063
|
--tw-enter-translate-x: 2;
|
|
@@ -951,6 +1068,16 @@
|
|
|
951
1068
|
--tw-enter-translate-x: calc(2*var(--spacing));
|
|
952
1069
|
}
|
|
953
1070
|
}
|
|
1071
|
+
.nhui\:data-\[side\=right\]\:slide-in-from-left-1 {
|
|
1072
|
+
&[data-side=right] {
|
|
1073
|
+
--tw-enter-translate-x: -.;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
.nhui\:data-\[side\=right\]\:slide-in-from-left-1 {
|
|
1077
|
+
&[data-side=right] {
|
|
1078
|
+
--tw-enter-translate-x: calc(1*var(--spacing)*-1);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
954
1081
|
.nhui\:data-\[side\=right\]\:slide-in-from-left-2 {
|
|
955
1082
|
&[data-side=right] {
|
|
956
1083
|
--tw-enter-translate-x: -2;
|
|
@@ -961,6 +1088,16 @@
|
|
|
961
1088
|
--tw-enter-translate-x: calc(2*var(--spacing)*-1);
|
|
962
1089
|
}
|
|
963
1090
|
}
|
|
1091
|
+
.nhui\:data-\[side\=top\]\:slide-in-from-bottom-1 {
|
|
1092
|
+
&[data-side=top] {
|
|
1093
|
+
--tw-enter-translate-y: .;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
.nhui\:data-\[side\=top\]\:slide-in-from-bottom-1 {
|
|
1097
|
+
&[data-side=top] {
|
|
1098
|
+
--tw-enter-translate-y: calc(1*var(--spacing));
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
964
1101
|
.nhui\:data-\[side\=top\]\:slide-in-from-bottom-2 {
|
|
965
1102
|
&[data-side=top] {
|
|
966
1103
|
--tw-enter-translate-y: 2;
|
|
@@ -976,6 +1113,12 @@
|
|
|
976
1113
|
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);
|
|
977
1114
|
}
|
|
978
1115
|
}
|
|
1116
|
+
.nhui\:data-\[state\=closed\]\:duration-200 {
|
|
1117
|
+
&[data-state=closed] {
|
|
1118
|
+
--tw-duration: 200ms;
|
|
1119
|
+
transition-duration: 200ms;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
979
1122
|
.nhui\:data-\[state\=closed\]\:animate-out {
|
|
980
1123
|
&[data-state=closed] {
|
|
981
1124
|
animation-name: exit;
|
|
@@ -999,6 +1142,11 @@
|
|
|
999
1142
|
--tw-exit-scale: .95;
|
|
1000
1143
|
}
|
|
1001
1144
|
}
|
|
1145
|
+
.nhui\:data-\[state\=closed\]\:duration-200 {
|
|
1146
|
+
&[data-state=closed] {
|
|
1147
|
+
animation-duration: 200ms;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1002
1150
|
.nhui\:data-\[state\=closed\]\:fade-out-0 {
|
|
1003
1151
|
&[data-state=closed] {
|
|
1004
1152
|
--tw-exit-opacity: 0;
|
|
@@ -1009,6 +1157,33 @@
|
|
|
1009
1157
|
--tw-exit-scale: .95;
|
|
1010
1158
|
}
|
|
1011
1159
|
}
|
|
1160
|
+
.nhui\:data-\[state\=delayed-open\]\:animate-in {
|
|
1161
|
+
&[data-state=delayed-open] {
|
|
1162
|
+
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);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
.nhui\:data-\[state\=delayed-open\]\:animate-in {
|
|
1166
|
+
&[data-state=delayed-open] {
|
|
1167
|
+
animation-name: enter;
|
|
1168
|
+
animation-duration: 150ms;
|
|
1169
|
+
--tw-enter-opacity: initial;
|
|
1170
|
+
--tw-enter-scale: initial;
|
|
1171
|
+
--tw-enter-rotate: initial;
|
|
1172
|
+
--tw-enter-translate-x: initial;
|
|
1173
|
+
--tw-enter-translate-y: initial;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
.nhui\:data-\[state\=delayed-open\]\:fade-in-0 {
|
|
1177
|
+
&[data-state=delayed-open] {
|
|
1178
|
+
--tw-enter-opacity: calc(0/100);
|
|
1179
|
+
--tw-enter-opacity: 0;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
.nhui\:data-\[state\=delayed-open\]\:fade-in-0 {
|
|
1183
|
+
&[data-state=delayed-open] {
|
|
1184
|
+
--tw-enter-opacity: 0;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1012
1187
|
.nhui\:max-sm\:w-full {
|
|
1013
1188
|
@media (width < 40rem) {
|
|
1014
1189
|
width: 100%;
|
|
@@ -1099,6 +1274,38 @@
|
|
|
1099
1274
|
padding: calc(var(--nhui-spacing) * 6);
|
|
1100
1275
|
}
|
|
1101
1276
|
}
|
|
1277
|
+
.nhui\:sm\:underline-offset-\[4px\] {
|
|
1278
|
+
@media (width >= 40rem) {
|
|
1279
|
+
text-underline-offset: 4px;
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
.nhui\:sm\:transition-all {
|
|
1283
|
+
@media (width >= 40rem) {
|
|
1284
|
+
transition-property: all;
|
|
1285
|
+
transition-timing-function: var(--tw-ease, var(--nhui-default-transition-timing-function));
|
|
1286
|
+
transition-duration: var(--tw-duration, var(--nhui-default-transition-duration));
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
.nhui\:sm\:duration-200 {
|
|
1290
|
+
@media (width >= 40rem) {
|
|
1291
|
+
--tw-duration: 200ms;
|
|
1292
|
+
transition-duration: 200ms;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
.nhui\:sm\:duration-200 {
|
|
1296
|
+
@media (width >= 40rem) {
|
|
1297
|
+
animation-duration: 200ms;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
.nhui\:sm\:hover\:underline-offset-\[2px\] {
|
|
1301
|
+
@media (width >= 40rem) {
|
|
1302
|
+
&:hover {
|
|
1303
|
+
@media (hover: hover) {
|
|
1304
|
+
text-underline-offset: 2px;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1102
1309
|
.nhui\:sm\:max-\[1220px\]\:max-w-\[110px\] {
|
|
1103
1310
|
@media (width >= 40rem) {
|
|
1104
1311
|
@media (width < 1220px) {
|