@sikka/hawa 0.7.7-next → 0.7.8-next
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/index.css +151 -0
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +128 -25
- package/dist/index.mjs +392 -275
- package/package.json +3 -2
package/dist/index.css
CHANGED
|
@@ -784,6 +784,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
784
784
|
.hawa-top-7 {
|
|
785
785
|
top: 1.75rem;
|
|
786
786
|
}
|
|
787
|
+
.hawa-top-\[1px\] {
|
|
788
|
+
top: 1px;
|
|
789
|
+
}
|
|
787
790
|
.hawa-top-\[22px\] {
|
|
788
791
|
top: 22px;
|
|
789
792
|
}
|
|
@@ -793,9 +796,15 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
793
796
|
.hawa-top-\[50\%\] {
|
|
794
797
|
top: 50%;
|
|
795
798
|
}
|
|
799
|
+
.hawa-top-\[60\%\] {
|
|
800
|
+
top: 60%;
|
|
801
|
+
}
|
|
796
802
|
.hawa-top-\[76px\] {
|
|
797
803
|
top: 76px;
|
|
798
804
|
}
|
|
805
|
+
.hawa-top-full {
|
|
806
|
+
top: 100%;
|
|
807
|
+
}
|
|
799
808
|
.hawa-isolate {
|
|
800
809
|
isolation: isolate;
|
|
801
810
|
}
|
|
@@ -814,6 +823,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
814
823
|
.hawa-z-\[100\] {
|
|
815
824
|
z-index: 100;
|
|
816
825
|
}
|
|
826
|
+
.hawa-z-\[1\] {
|
|
827
|
+
z-index: 1;
|
|
828
|
+
}
|
|
817
829
|
.hawa-m-0 {
|
|
818
830
|
margin: 0px;
|
|
819
831
|
}
|
|
@@ -910,6 +922,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
910
922
|
.hawa-mt-1 {
|
|
911
923
|
margin-top: 0.25rem;
|
|
912
924
|
}
|
|
925
|
+
.hawa-mt-1\.5 {
|
|
926
|
+
margin-top: 0.375rem;
|
|
927
|
+
}
|
|
913
928
|
.hawa-mt-10 {
|
|
914
929
|
margin-top: 2.5rem;
|
|
915
930
|
}
|
|
@@ -949,6 +964,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
949
964
|
.hawa-h-1 {
|
|
950
965
|
height: 0.25rem;
|
|
951
966
|
}
|
|
967
|
+
.hawa-h-1\.5 {
|
|
968
|
+
height: 0.375rem;
|
|
969
|
+
}
|
|
952
970
|
.hawa-h-10 {
|
|
953
971
|
height: 2.5rem;
|
|
954
972
|
}
|
|
@@ -1051,6 +1069,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1051
1069
|
.hawa-h-\[44px\] {
|
|
1052
1070
|
height: 44px;
|
|
1053
1071
|
}
|
|
1072
|
+
.hawa-h-\[var\(--radix-navigation-menu-viewport-height\)\] {
|
|
1073
|
+
height: var(--radix-navigation-menu-viewport-height);
|
|
1074
|
+
}
|
|
1054
1075
|
.hawa-h-fit {
|
|
1055
1076
|
height: -moz-fit-content;
|
|
1056
1077
|
height: fit-content;
|
|
@@ -1195,6 +1216,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1195
1216
|
.hawa-w-full {
|
|
1196
1217
|
width: 100%;
|
|
1197
1218
|
}
|
|
1219
|
+
.hawa-w-max {
|
|
1220
|
+
width: -moz-max-content;
|
|
1221
|
+
width: max-content;
|
|
1222
|
+
}
|
|
1198
1223
|
.hawa-w-screen {
|
|
1199
1224
|
width: 100vw;
|
|
1200
1225
|
}
|
|
@@ -1233,6 +1258,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1233
1258
|
.hawa-max-w-lg {
|
|
1234
1259
|
max-width: 32rem;
|
|
1235
1260
|
}
|
|
1261
|
+
.hawa-max-w-max {
|
|
1262
|
+
max-width: -moz-max-content;
|
|
1263
|
+
max-width: max-content;
|
|
1264
|
+
}
|
|
1236
1265
|
.hawa-max-w-md {
|
|
1237
1266
|
max-width: 28rem;
|
|
1238
1267
|
}
|
|
@@ -1303,6 +1332,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1303
1332
|
--tw-rotate: 180deg;
|
|
1304
1333
|
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));
|
|
1305
1334
|
}
|
|
1335
|
+
.hawa-rotate-45 {
|
|
1336
|
+
--tw-rotate: 45deg;
|
|
1337
|
+
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));
|
|
1338
|
+
}
|
|
1306
1339
|
.hawa-rotate-90 {
|
|
1307
1340
|
--tw-rotate: 90deg;
|
|
1308
1341
|
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));
|
|
@@ -1368,6 +1401,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1368
1401
|
.hawa-resize-none {
|
|
1369
1402
|
resize: none;
|
|
1370
1403
|
}
|
|
1404
|
+
.hawa-list-none {
|
|
1405
|
+
list-style-type: none;
|
|
1406
|
+
}
|
|
1371
1407
|
.hawa-appearance-none {
|
|
1372
1408
|
-webkit-appearance: none;
|
|
1373
1409
|
-moz-appearance: none;
|
|
@@ -1400,6 +1436,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1400
1436
|
.hawa-items-start {
|
|
1401
1437
|
align-items: flex-start;
|
|
1402
1438
|
}
|
|
1439
|
+
.hawa-items-end {
|
|
1440
|
+
align-items: flex-end;
|
|
1441
|
+
}
|
|
1403
1442
|
.hawa-items-center {
|
|
1404
1443
|
align-items: center;
|
|
1405
1444
|
}
|
|
@@ -1457,6 +1496,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1457
1496
|
-moz-column-gap: 0.75rem;
|
|
1458
1497
|
column-gap: 0.75rem;
|
|
1459
1498
|
}
|
|
1499
|
+
.hawa-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1500
|
+
--tw-space-x-reverse: 0;
|
|
1501
|
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
1502
|
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1503
|
+
}
|
|
1460
1504
|
.hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1461
1505
|
--tw-space-x-reverse: 0;
|
|
1462
1506
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
@@ -1583,6 +1627,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1583
1627
|
.hawa-rounded-tl-lg {
|
|
1584
1628
|
border-top-left-radius: var(--radius);
|
|
1585
1629
|
}
|
|
1630
|
+
.hawa-rounded-tl-sm {
|
|
1631
|
+
border-top-left-radius: calc(var(--radius) - 4px);
|
|
1632
|
+
}
|
|
1586
1633
|
.hawa-rounded-tr-lg {
|
|
1587
1634
|
border-top-right-radius: var(--radius);
|
|
1588
1635
|
}
|
|
@@ -1671,6 +1718,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1671
1718
|
--tw-bg-opacity: 1;
|
|
1672
1719
|
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
1673
1720
|
}
|
|
1721
|
+
.hawa-bg-blue-400 {
|
|
1722
|
+
--tw-bg-opacity: 1;
|
|
1723
|
+
background-color: rgb(96 165 250 / var(--tw-bg-opacity));
|
|
1724
|
+
}
|
|
1674
1725
|
.hawa-bg-blue-50 {
|
|
1675
1726
|
--tw-bg-opacity: 1;
|
|
1676
1727
|
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
|
@@ -1728,6 +1779,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1728
1779
|
--tw-bg-opacity: 1;
|
|
1729
1780
|
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
|
|
1730
1781
|
}
|
|
1782
|
+
.hawa-bg-green-400 {
|
|
1783
|
+
--tw-bg-opacity: 1;
|
|
1784
|
+
background-color: rgb(74 222 128 / var(--tw-bg-opacity));
|
|
1785
|
+
}
|
|
1731
1786
|
.hawa-bg-green-500 {
|
|
1732
1787
|
--tw-bg-opacity: 1;
|
|
1733
1788
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
@@ -1810,6 +1865,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1810
1865
|
--tw-bg-opacity: 1;
|
|
1811
1866
|
background-color: rgb(254 249 195 / var(--tw-bg-opacity));
|
|
1812
1867
|
}
|
|
1868
|
+
.hawa-bg-yellow-400 {
|
|
1869
|
+
--tw-bg-opacity: 1;
|
|
1870
|
+
background-color: rgb(250 204 21 / var(--tw-bg-opacity));
|
|
1871
|
+
}
|
|
1813
1872
|
.hawa-bg-opacity-80 {
|
|
1814
1873
|
--tw-bg-opacity: 0.8;
|
|
1815
1874
|
}
|
|
@@ -2305,6 +2364,13 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2305
2364
|
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2306
2365
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2307
2366
|
}
|
|
2367
|
+
.hawa-transition {
|
|
2368
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
2369
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2370
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
2371
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2372
|
+
transition-duration: 150ms;
|
|
2373
|
+
}
|
|
2308
2374
|
.hawa-transition-all {
|
|
2309
2375
|
transition-property: all;
|
|
2310
2376
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2878,6 +2944,9 @@ body {
|
|
|
2878
2944
|
.data-\[state\=open\]\:hawa-animate-accordion-down[data-state=open] {
|
|
2879
2945
|
animation: hawa-accordion-down 0.2s ease-out;
|
|
2880
2946
|
}
|
|
2947
|
+
.data-\[active\]\:hawa-bg-accent\/50[data-active] {
|
|
2948
|
+
background-color: hsl(var(--accent) / 0.5);
|
|
2949
|
+
}
|
|
2881
2950
|
.data-\[state\=active\]\:hawa-bg-primary[data-state=active] {
|
|
2882
2951
|
background-color: hsl(var(--primary));
|
|
2883
2952
|
}
|
|
@@ -2890,6 +2959,9 @@ body {
|
|
|
2890
2959
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
2891
2960
|
background-color: hsl(var(--accent));
|
|
2892
2961
|
}
|
|
2962
|
+
.data-\[state\=open\]\:hawa-bg-accent\/50[data-state=open] {
|
|
2963
|
+
background-color: hsl(var(--accent) / 0.5);
|
|
2964
|
+
}
|
|
2893
2965
|
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
2894
2966
|
background-color: hsl(var(--muted));
|
|
2895
2967
|
}
|
|
@@ -2913,6 +2985,15 @@ body {
|
|
|
2913
2985
|
.data-\[swipe\=move\]\:hawa-transition-none[data-swipe=move] {
|
|
2914
2986
|
transition-property: none;
|
|
2915
2987
|
}
|
|
2988
|
+
.data-\[motion\^\=from-\]\:hawa-animate-in[data-motion^=from-] {
|
|
2989
|
+
animation-name: enter;
|
|
2990
|
+
animation-duration: 150ms;
|
|
2991
|
+
--tw-enter-opacity: initial;
|
|
2992
|
+
--tw-enter-scale: initial;
|
|
2993
|
+
--tw-enter-rotate: initial;
|
|
2994
|
+
--tw-enter-translate-x: initial;
|
|
2995
|
+
--tw-enter-translate-y: initial;
|
|
2996
|
+
}
|
|
2916
2997
|
.data-\[state\=open\]\:hawa-animate-in[data-state=open] {
|
|
2917
2998
|
animation-name: enter;
|
|
2918
2999
|
animation-duration: 150ms;
|
|
@@ -2922,6 +3003,24 @@ body {
|
|
|
2922
3003
|
--tw-enter-translate-x: initial;
|
|
2923
3004
|
--tw-enter-translate-y: initial;
|
|
2924
3005
|
}
|
|
3006
|
+
.data-\[state\=visible\]\:hawa-animate-in[data-state=visible] {
|
|
3007
|
+
animation-name: enter;
|
|
3008
|
+
animation-duration: 150ms;
|
|
3009
|
+
--tw-enter-opacity: initial;
|
|
3010
|
+
--tw-enter-scale: initial;
|
|
3011
|
+
--tw-enter-rotate: initial;
|
|
3012
|
+
--tw-enter-translate-x: initial;
|
|
3013
|
+
--tw-enter-translate-y: initial;
|
|
3014
|
+
}
|
|
3015
|
+
.data-\[motion\^\=to-\]\:hawa-animate-out[data-motion^=to-] {
|
|
3016
|
+
animation-name: exit;
|
|
3017
|
+
animation-duration: 150ms;
|
|
3018
|
+
--tw-exit-opacity: initial;
|
|
3019
|
+
--tw-exit-scale: initial;
|
|
3020
|
+
--tw-exit-rotate: initial;
|
|
3021
|
+
--tw-exit-translate-x: initial;
|
|
3022
|
+
--tw-exit-translate-y: initial;
|
|
3023
|
+
}
|
|
2925
3024
|
.data-\[state\=closed\]\:hawa-animate-out[data-state=closed] {
|
|
2926
3025
|
animation-name: exit;
|
|
2927
3026
|
animation-duration: 150ms;
|
|
@@ -2931,6 +3030,15 @@ body {
|
|
|
2931
3030
|
--tw-exit-translate-x: initial;
|
|
2932
3031
|
--tw-exit-translate-y: initial;
|
|
2933
3032
|
}
|
|
3033
|
+
.data-\[state\=hidden\]\:hawa-animate-out[data-state=hidden] {
|
|
3034
|
+
animation-name: exit;
|
|
3035
|
+
animation-duration: 150ms;
|
|
3036
|
+
--tw-exit-opacity: initial;
|
|
3037
|
+
--tw-exit-scale: initial;
|
|
3038
|
+
--tw-exit-rotate: initial;
|
|
3039
|
+
--tw-exit-translate-x: initial;
|
|
3040
|
+
--tw-exit-translate-y: initial;
|
|
3041
|
+
}
|
|
2934
3042
|
.data-\[swipe\=end\]\:hawa-animate-out[data-swipe=end] {
|
|
2935
3043
|
animation-name: exit;
|
|
2936
3044
|
animation-duration: 150ms;
|
|
@@ -2940,21 +3048,48 @@ body {
|
|
|
2940
3048
|
--tw-exit-translate-x: initial;
|
|
2941
3049
|
--tw-exit-translate-y: initial;
|
|
2942
3050
|
}
|
|
3051
|
+
.data-\[motion\^\=from-\]\:hawa-fade-in[data-motion^=from-] {
|
|
3052
|
+
--tw-enter-opacity: 0;
|
|
3053
|
+
}
|
|
3054
|
+
.data-\[motion\^\=to-\]\:hawa-fade-out[data-motion^=to-] {
|
|
3055
|
+
--tw-exit-opacity: 0;
|
|
3056
|
+
}
|
|
2943
3057
|
.data-\[state\=closed\]\:hawa-fade-out-0[data-state=closed] {
|
|
2944
3058
|
--tw-exit-opacity: 0;
|
|
2945
3059
|
}
|
|
2946
3060
|
.data-\[state\=closed\]\:hawa-fade-out-80[data-state=closed] {
|
|
2947
3061
|
--tw-exit-opacity: 0.8;
|
|
2948
3062
|
}
|
|
3063
|
+
.data-\[state\=hidden\]\:hawa-fade-out[data-state=hidden] {
|
|
3064
|
+
--tw-exit-opacity: 0;
|
|
3065
|
+
}
|
|
2949
3066
|
.data-\[state\=open\]\:hawa-fade-in-0[data-state=open] {
|
|
2950
3067
|
--tw-enter-opacity: 0;
|
|
2951
3068
|
}
|
|
3069
|
+
.data-\[state\=visible\]\:hawa-fade-in[data-state=visible] {
|
|
3070
|
+
--tw-enter-opacity: 0;
|
|
3071
|
+
}
|
|
2952
3072
|
.data-\[state\=closed\]\:hawa-zoom-out-95[data-state=closed] {
|
|
2953
3073
|
--tw-exit-scale: .95;
|
|
2954
3074
|
}
|
|
3075
|
+
.data-\[state\=open\]\:hawa-zoom-in-90[data-state=open] {
|
|
3076
|
+
--tw-enter-scale: .9;
|
|
3077
|
+
}
|
|
2955
3078
|
.data-\[state\=open\]\:hawa-zoom-in-95[data-state=open] {
|
|
2956
3079
|
--tw-enter-scale: .95;
|
|
2957
3080
|
}
|
|
3081
|
+
.data-\[motion\=from-end\]\:hawa-slide-in-from-right-52[data-motion=from-end] {
|
|
3082
|
+
--tw-enter-translate-x: 13rem;
|
|
3083
|
+
}
|
|
3084
|
+
.data-\[motion\=from-start\]\:hawa-slide-in-from-left-52[data-motion=from-start] {
|
|
3085
|
+
--tw-enter-translate-x: -13rem;
|
|
3086
|
+
}
|
|
3087
|
+
.data-\[motion\=to-end\]\:hawa-slide-out-to-right-52[data-motion=to-end] {
|
|
3088
|
+
--tw-exit-translate-x: 13rem;
|
|
3089
|
+
}
|
|
3090
|
+
.data-\[motion\=to-start\]\:hawa-slide-out-to-left-52[data-motion=to-start] {
|
|
3091
|
+
--tw-exit-translate-x: -13rem;
|
|
3092
|
+
}
|
|
2958
3093
|
.data-\[side\=bottom\]\:hawa-slide-in-from-top-2[data-side=bottom] {
|
|
2959
3094
|
--tw-enter-translate-y: -0.5rem;
|
|
2960
3095
|
}
|
|
@@ -2988,6 +3123,10 @@ body {
|
|
|
2988
3123
|
.data-\[state\=open\]\:hawa-slide-in-from-top-full[data-state=open] {
|
|
2989
3124
|
--tw-enter-translate-y: -100%;
|
|
2990
3125
|
}
|
|
3126
|
+
.hawa-group[data-state=open] .group-data-\[state\=open\]\:hawa-rotate-180 {
|
|
3127
|
+
--tw-rotate: 180deg;
|
|
3128
|
+
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));
|
|
3129
|
+
}
|
|
2991
3130
|
:is(.hawa-dark .dark\:hawa--rotate-90) {
|
|
2992
3131
|
--tw-rotate: -90deg;
|
|
2993
3132
|
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));
|
|
@@ -3220,6 +3359,18 @@ body {
|
|
|
3220
3359
|
}
|
|
3221
3360
|
@media (min-width: 768px) {
|
|
3222
3361
|
|
|
3362
|
+
.md\:hawa-absolute {
|
|
3363
|
+
position: absolute;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
.md\:hawa-w-\[var\(--radix-navigation-menu-viewport-width\)\] {
|
|
3367
|
+
width: var(--radix-navigation-menu-viewport-width);
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
.md\:hawa-w-auto {
|
|
3371
|
+
width: auto;
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3223
3374
|
.md\:hawa-w-full {
|
|
3224
3375
|
width: 100%;
|
|
3225
3376
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -300,6 +300,7 @@ type MenuItemType = {
|
|
|
300
300
|
icon?: any;
|
|
301
301
|
label?: string;
|
|
302
302
|
value?: any;
|
|
303
|
+
content?: any;
|
|
303
304
|
end?: any;
|
|
304
305
|
presist?: boolean;
|
|
305
306
|
itemType?: "separator" | "label" | string;
|
|
@@ -667,6 +668,14 @@ type TypographyTypes = {
|
|
|
667
668
|
};
|
|
668
669
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
669
670
|
|
|
671
|
+
type NavigationMenuTypes = {
|
|
672
|
+
items: {
|
|
673
|
+
trigger: any;
|
|
674
|
+
content?: any;
|
|
675
|
+
}[];
|
|
676
|
+
};
|
|
677
|
+
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
678
|
+
|
|
670
679
|
type StatTypes = {
|
|
671
680
|
label?: string;
|
|
672
681
|
color?: string;
|
|
@@ -1391,4 +1400,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1391
1400
|
handleTabChange: (index: any) => void;
|
|
1392
1401
|
};
|
|
1393
1402
|
|
|
1394
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1403
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,7 @@ type MenuItemType = {
|
|
|
300
300
|
icon?: any;
|
|
301
301
|
label?: string;
|
|
302
302
|
value?: any;
|
|
303
|
+
content?: any;
|
|
303
304
|
end?: any;
|
|
304
305
|
presist?: boolean;
|
|
305
306
|
itemType?: "separator" | "label" | string;
|
|
@@ -667,6 +668,14 @@ type TypographyTypes = {
|
|
|
667
668
|
};
|
|
668
669
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
669
670
|
|
|
671
|
+
type NavigationMenuTypes = {
|
|
672
|
+
items: {
|
|
673
|
+
trigger: any;
|
|
674
|
+
content?: any;
|
|
675
|
+
}[];
|
|
676
|
+
};
|
|
677
|
+
declare const NavigationMenu: React$1.FC<NavigationMenuTypes>;
|
|
678
|
+
|
|
670
679
|
type StatTypes = {
|
|
671
680
|
label?: string;
|
|
672
681
|
color?: string;
|
|
@@ -1391,4 +1400,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1391
1400
|
handleTabChange: (index: any) => void;
|
|
1392
1401
|
};
|
|
1393
1402
|
|
|
1394
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
|
1403
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckEmail, Checkbox, Chip, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavigationMenu, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, TChipTypes, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast$1 as Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UseFocusWithinOptions, UseMediaQueryOptions, UserReferralSource, buttonVariants, reducer, toast, useClipboard, useFocusWithin, useFormField, useMediaQuery, useTabs, useToast };
|
package/dist/index.js
CHANGED
|
@@ -550,6 +550,9 @@ __export(components_exports, {
|
|
|
550
550
|
Logos: function() {
|
|
551
551
|
return Logos;
|
|
552
552
|
},
|
|
553
|
+
NavigationMenu: function() {
|
|
554
|
+
return NavigationMenu;
|
|
555
|
+
},
|
|
553
556
|
NewPasswordForm: function() {
|
|
554
557
|
return NewPasswordForm;
|
|
555
558
|
},
|
|
@@ -2269,6 +2272,8 @@ var DropdownMenu = function(param) {
|
|
|
2269
2272
|
return /* @__PURE__ */ React24.createElement(DropdownMenuLabel, {
|
|
2270
2273
|
key: index
|
|
2271
2274
|
}, item.label);
|
|
2275
|
+
} else if (item.itemType === "custom") {
|
|
2276
|
+
return item.content;
|
|
2272
2277
|
} else {
|
|
2273
2278
|
return item.subitems ? /* @__PURE__ */ React24.createElement(DropdownMenuSub, {
|
|
2274
2279
|
key: index
|
|
@@ -5993,6 +5998,103 @@ var InterfaceSettings = function(_param) {
|
|
|
5993
5998
|
]
|
|
5994
5999
|
}));
|
|
5995
6000
|
};
|
|
6001
|
+
// components/elements/NavigationMenu.tsx
|
|
6002
|
+
var React47 = __toESM(require("react"));
|
|
6003
|
+
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
6004
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
6005
|
+
var NavigationMenuRoot = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6006
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6007
|
+
"className",
|
|
6008
|
+
"children"
|
|
6009
|
+
]);
|
|
6010
|
+
return React47.createElement(NavigationMenuPrimitive.Root, _object_spread({
|
|
6011
|
+
ref: ref,
|
|
6012
|
+
className: cn("hawa-relative hawa-bg-yellow-400 hawa-p-2 hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center", className)
|
|
6013
|
+
}, props), children, /* @__PURE__ */ React47.createElement(NavigationMenuViewport, null));
|
|
6014
|
+
});
|
|
6015
|
+
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6016
|
+
var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6017
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6018
|
+
"className"
|
|
6019
|
+
]);
|
|
6020
|
+
return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6021
|
+
ref: ref,
|
|
6022
|
+
className: cn("hawa-group hawa-bg-blue-400 hawa-p-2 hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1", className)
|
|
6023
|
+
}, props));
|
|
6024
|
+
});
|
|
6025
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6026
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6027
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 data-[state=open]:hawa-bg-accent/50");
|
|
6028
|
+
var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6029
|
+
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6030
|
+
"className",
|
|
6031
|
+
"children"
|
|
6032
|
+
]);
|
|
6033
|
+
return React47.createElement(NavigationMenuPrimitive.Trigger, _object_spread({
|
|
6034
|
+
ref: ref,
|
|
6035
|
+
className: cn(navigationMenuTriggerStyle(), "hawa-group", className)
|
|
6036
|
+
}, props), children, " ", /* @__PURE__ */ React47.createElement("svg", {
|
|
6037
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6038
|
+
width: "24",
|
|
6039
|
+
height: "24",
|
|
6040
|
+
viewBox: "0 0 24 24",
|
|
6041
|
+
fill: "none",
|
|
6042
|
+
stroke: "currentColor",
|
|
6043
|
+
"stroke-width": "2",
|
|
6044
|
+
"stroke-linecap": "round",
|
|
6045
|
+
"stroke-linejoin": "round",
|
|
6046
|
+
"aria-hidden": "true",
|
|
6047
|
+
className: "hawa-relative hawa-top-[1px] hawa-ml-1 hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6048
|
+
}, /* @__PURE__ */ React47.createElement("path", {
|
|
6049
|
+
d: "m6 9 6 6 6-6"
|
|
6050
|
+
})));
|
|
6051
|
+
});
|
|
6052
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6053
|
+
var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6054
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6055
|
+
"className"
|
|
6056
|
+
]);
|
|
6057
|
+
return React47.createElement(NavigationMenuPrimitive.Content, _object_spread({
|
|
6058
|
+
ref: ref,
|
|
6059
|
+
className: cn("hawa-bg-green-400 hawa-p-2 hawa-w-full md:hawa-absolute hawa-left-0 hawa-top-0 md:hawa-w-auto ", // animation
|
|
6060
|
+
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52", className)
|
|
6061
|
+
}, props));
|
|
6062
|
+
});
|
|
6063
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6064
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6065
|
+
var NavigationMenuViewport = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6066
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6067
|
+
"className"
|
|
6068
|
+
]);
|
|
6069
|
+
return React47.createElement("div", {
|
|
6070
|
+
className: cn("hawa-absolute hawa-left-0 hawa-top-full hawa-flex hawa-justify-center")
|
|
6071
|
+
}, /* @__PURE__ */ React47.createElement(NavigationMenuPrimitive.Viewport, _object_spread({
|
|
6072
|
+
className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 md:hawa-w-[var(--radix-navigation-menu-viewport-width)]", className),
|
|
6073
|
+
ref: ref
|
|
6074
|
+
}, props)));
|
|
6075
|
+
});
|
|
6076
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6077
|
+
var NavigationMenuIndicator = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6078
|
+
var className = _param.className, props = _object_without_properties(_param, [
|
|
6079
|
+
"className"
|
|
6080
|
+
]);
|
|
6081
|
+
return React47.createElement(NavigationMenuPrimitive.Indicator, _object_spread({
|
|
6082
|
+
ref: ref,
|
|
6083
|
+
className: cn("hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in", className)
|
|
6084
|
+
}, props), /* @__PURE__ */ React47.createElement("div", {
|
|
6085
|
+
className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md"
|
|
6086
|
+
}));
|
|
6087
|
+
});
|
|
6088
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6089
|
+
var NavigationMenu = function(props) {
|
|
6090
|
+
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, null, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
|
|
6091
|
+
return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
|
|
6092
|
+
key: i
|
|
6093
|
+
}, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(NavigationMenuLink, {
|
|
6094
|
+
className: navigationMenuTriggerStyle()
|
|
6095
|
+
}, item.trigger));
|
|
6096
|
+
})));
|
|
6097
|
+
};
|
|
5996
6098
|
// components/layout/Stats.tsx
|
|
5997
6099
|
var import_react29 = __toESM(require("react"));
|
|
5998
6100
|
var Stats = function(_param) {
|
|
@@ -6020,32 +6122,32 @@ var Stats = function(_param) {
|
|
|
6020
6122
|
}) : props.chart));
|
|
6021
6123
|
};
|
|
6022
6124
|
// components/layout/Sidebar.tsx
|
|
6023
|
-
var
|
|
6125
|
+
var React49 = __toESM(require("react"));
|
|
6024
6126
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
6025
6127
|
var Accordion2 = AccordionPrimitive2.Root;
|
|
6026
6128
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
|
6027
|
-
var AccordionItem2 =
|
|
6129
|
+
var AccordionItem2 = React49.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6028
6130
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6029
6131
|
"className"
|
|
6030
6132
|
]);
|
|
6031
|
-
return
|
|
6133
|
+
return React49.createElement(AccordionPrimitive2.Item, _object_spread({
|
|
6032
6134
|
ref: ref,
|
|
6033
6135
|
className: cn(className)
|
|
6034
6136
|
}, props));
|
|
6035
6137
|
});
|
|
6036
6138
|
AccordionItem2.displayName = "AccordionItem";
|
|
6037
|
-
var AccordionTrigger2 =
|
|
6139
|
+
var AccordionTrigger2 = React49.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6038
6140
|
var className = _param.className, showArrow = _param.showArrow, children = _param.children, props = _object_without_properties(_param, [
|
|
6039
6141
|
"className",
|
|
6040
6142
|
"showArrow",
|
|
6041
6143
|
"children"
|
|
6042
6144
|
]);
|
|
6043
|
-
return
|
|
6145
|
+
return React49.createElement(AccordionPrimitive2.Header, {
|
|
6044
6146
|
className: "flex"
|
|
6045
|
-
}, /* @__PURE__ */
|
|
6147
|
+
}, /* @__PURE__ */ React49.createElement(AccordionPrimitive2.Trigger, _object_spread({
|
|
6046
6148
|
ref: ref,
|
|
6047
6149
|
className: cn(triggerStyles, className)
|
|
6048
|
-
}, props), children, showArrow && /* @__PURE__ */
|
|
6150
|
+
}, props), children, showArrow && /* @__PURE__ */ React49.createElement("svg", {
|
|
6049
6151
|
"aria-label": "Chevron Right Icon",
|
|
6050
6152
|
stroke: "currentColor",
|
|
6051
6153
|
fill: "currentColor",
|
|
@@ -6053,29 +6155,29 @@ var AccordionTrigger2 = React48.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
6053
6155
|
height: "1em",
|
|
6054
6156
|
width: "1em",
|
|
6055
6157
|
className: "hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6056
|
-
}, /* @__PURE__ */
|
|
6158
|
+
}, /* @__PURE__ */ React49.createElement("path", {
|
|
6057
6159
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
6058
6160
|
}))));
|
|
6059
6161
|
});
|
|
6060
6162
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
6061
|
-
var AccordionContent2 =
|
|
6163
|
+
var AccordionContent2 = React49.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6062
6164
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6063
6165
|
"className",
|
|
6064
6166
|
"children"
|
|
6065
6167
|
]);
|
|
6066
|
-
return
|
|
6168
|
+
return React49.createElement(AccordionPrimitive2.Content, _object_spread({
|
|
6067
6169
|
ref: ref,
|
|
6068
6170
|
className: cn("hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down", className)
|
|
6069
|
-
}, props), /* @__PURE__ */
|
|
6171
|
+
}, props), /* @__PURE__ */ React49.createElement("div", null, children));
|
|
6070
6172
|
});
|
|
6071
6173
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
6072
6174
|
var SidebarGroup = function(param) {
|
|
6073
6175
|
var title = param.title, items = param.items, selectedItem = param.selectedItem, openedItem = param.openedItem, setOpenedItem = param.setOpenedItem, onItemClick = param.onItemClick, onSubItemClick = param.onSubItemClick, direction = param.direction, isOpen = param.isOpen;
|
|
6074
|
-
return /* @__PURE__ */
|
|
6176
|
+
return /* @__PURE__ */ React49.createElement("div", null, title && /* @__PURE__ */ React49.createElement("h3", {
|
|
6075
6177
|
className: "hawa-mb-1 hawa-font-bold"
|
|
6076
|
-
}, title), /* @__PURE__ */
|
|
6178
|
+
}, title), /* @__PURE__ */ React49.createElement("ul", {
|
|
6077
6179
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
6078
|
-
}, /* @__PURE__ */
|
|
6180
|
+
}, /* @__PURE__ */ React49.createElement(Accordion2, {
|
|
6079
6181
|
value: openedItem,
|
|
6080
6182
|
type: "single",
|
|
6081
6183
|
onValueChange: function(e) {
|
|
@@ -6084,7 +6186,7 @@ var SidebarGroup = function(param) {
|
|
|
6084
6186
|
collapsible: true,
|
|
6085
6187
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
|
6086
6188
|
}, items.map(function(item, idx) {
|
|
6087
|
-
return /* @__PURE__ */
|
|
6189
|
+
return /* @__PURE__ */ React49.createElement(SidebarItem, {
|
|
6088
6190
|
isOpen: isOpen,
|
|
6089
6191
|
selectedItem: selectedItem,
|
|
6090
6192
|
key: idx,
|
|
@@ -6107,25 +6209,25 @@ var SidebarItem = function(_param) {
|
|
|
6107
6209
|
return props.selectedItem === value ? "hawa-bg-primary hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
|
6108
6210
|
};
|
|
6109
6211
|
if (item.subitems) {
|
|
6110
|
-
return /* @__PURE__ */
|
|
6212
|
+
return /* @__PURE__ */ React49.createElement(AccordionItem2, {
|
|
6111
6213
|
value: item.value,
|
|
6112
6214
|
className: "hawa-overflow-x-clip ",
|
|
6113
6215
|
dir: direction
|
|
6114
|
-
}, /* @__PURE__ */
|
|
6216
|
+
}, /* @__PURE__ */ React49.createElement(AccordionTrigger2, {
|
|
6115
6217
|
className: cn("hawa-overflow-x-clip hawa-w-full", props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10", item.subitems && item.subitems.some(function(subitem) {
|
|
6116
6218
|
return props.selectedItem === subitem.value;
|
|
6117
6219
|
}) ? "hawa-bg-primary/90 hawa-text-primary-foreground hover:hawa-bg-primary/90" : ""),
|
|
6118
6220
|
showArrow: isOpen
|
|
6119
|
-
}, /* @__PURE__ */
|
|
6221
|
+
}, /* @__PURE__ */ React49.createElement("div", {
|
|
6120
6222
|
className: cn(!isOpen && "hawa-py-1", "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2")
|
|
6121
|
-
}, item.icon, isOpen && /* @__PURE__ */
|
|
6223
|
+
}, item.icon, isOpen && /* @__PURE__ */ React49.createElement("span", {
|
|
6122
6224
|
className: cn("hawa-transition-all ", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6123
|
-
}, item.label))), item.subitems && /* @__PURE__ */
|
|
6225
|
+
}, item.label))), item.subitems && /* @__PURE__ */ React49.createElement(AccordionContent2, {
|
|
6124
6226
|
className: "hawa-mt-1 hawa-h-full hawa-rounded"
|
|
6125
|
-
}, /* @__PURE__ */
|
|
6227
|
+
}, /* @__PURE__ */ React49.createElement("div", {
|
|
6126
6228
|
className: cn("hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1")
|
|
6127
6229
|
}, item.subitems.map(function(subitem, idx) {
|
|
6128
|
-
return /* @__PURE__ */
|
|
6230
|
+
return /* @__PURE__ */ React49.createElement("li", {
|
|
6129
6231
|
key: idx,
|
|
6130
6232
|
onClick: function(e) {
|
|
6131
6233
|
e.stopPropagation();
|
|
@@ -6144,7 +6246,7 @@ var SidebarItem = function(_param) {
|
|
|
6144
6246
|
}, subitem.icon, subitem.label);
|
|
6145
6247
|
}))));
|
|
6146
6248
|
} else {
|
|
6147
|
-
return /* @__PURE__ */
|
|
6249
|
+
return /* @__PURE__ */ React49.createElement("div", {
|
|
6148
6250
|
dir: direction,
|
|
6149
6251
|
onClick: function() {
|
|
6150
6252
|
if (item.onClick) {
|
|
@@ -6157,9 +6259,9 @@ var SidebarItem = function(_param) {
|
|
|
6157
6259
|
}
|
|
6158
6260
|
},
|
|
6159
6261
|
className: cn(triggerStyles, getSelectedStyle(item.value), "hawa-overflow-x-clip ")
|
|
6160
|
-
}, /* @__PURE__ */
|
|
6262
|
+
}, /* @__PURE__ */ React49.createElement("div", {
|
|
6161
6263
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
6162
|
-
}, item.icon, /* @__PURE__ */
|
|
6264
|
+
}, item.icon, /* @__PURE__ */ React49.createElement("span", {
|
|
6163
6265
|
className: cn("hawa-whitespace-nowrap hawa-transition-all", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6164
6266
|
}, item.label)));
|
|
6165
6267
|
}
|
|
@@ -8434,6 +8536,7 @@ function useTabs() {
|
|
|
8434
8536
|
Loading: Loading,
|
|
8435
8537
|
LoginForm: LoginForm,
|
|
8436
8538
|
Logos: Logos,
|
|
8539
|
+
NavigationMenu: NavigationMenu,
|
|
8437
8540
|
NewPasswordForm: NewPasswordForm,
|
|
8438
8541
|
NoPermission: NoPermission,
|
|
8439
8542
|
NotFound: NotFound,
|