@sikka/hawa 0.2.45-next → 0.2.48-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 +112 -20
- package/dist/index.d.mts +54 -10
- package/dist/index.d.ts +54 -10
- package/dist/index.js +627 -125
- package/dist/index.mjs +673 -156
- package/package.json +5 -2
package/dist/index.css
CHANGED
|
@@ -405,7 +405,7 @@ video {
|
|
|
405
405
|
--border: 240 5.9% 90%;
|
|
406
406
|
--input: 240 5.9% 90%;
|
|
407
407
|
--ring: 240 5.9% 10%;
|
|
408
|
-
--radius: 0.
|
|
408
|
+
--radius: 0.5rem;
|
|
409
409
|
--radius-inner: calc(var(--radius) - calc(var(--radius) / 3));
|
|
410
410
|
}
|
|
411
411
|
|
|
@@ -645,6 +645,12 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
645
645
|
.hawa-pointer-events-auto {
|
|
646
646
|
pointer-events: auto;
|
|
647
647
|
}
|
|
648
|
+
.hawa-visible {
|
|
649
|
+
visibility: visible;
|
|
650
|
+
}
|
|
651
|
+
.hawa-invisible {
|
|
652
|
+
visibility: hidden;
|
|
653
|
+
}
|
|
648
654
|
.hawa-fixed {
|
|
649
655
|
position: fixed;
|
|
650
656
|
}
|
|
@@ -657,9 +663,15 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
657
663
|
.hawa-inset-0 {
|
|
658
664
|
inset: 0px;
|
|
659
665
|
}
|
|
666
|
+
.hawa-bottom-0 {
|
|
667
|
+
bottom: 0px;
|
|
668
|
+
}
|
|
660
669
|
.hawa-bottom-2 {
|
|
661
670
|
bottom: 0.5rem;
|
|
662
671
|
}
|
|
672
|
+
.hawa-bottom-4 {
|
|
673
|
+
bottom: 1rem;
|
|
674
|
+
}
|
|
663
675
|
.hawa-left-0 {
|
|
664
676
|
left: 0px;
|
|
665
677
|
}
|
|
@@ -738,6 +750,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
738
750
|
margin-top: 0.25rem;
|
|
739
751
|
margin-bottom: 0.25rem;
|
|
740
752
|
}
|
|
753
|
+
.hawa-my-4 {
|
|
754
|
+
margin-top: 1rem;
|
|
755
|
+
margin-bottom: 1rem;
|
|
756
|
+
}
|
|
741
757
|
.hawa--mt-1 {
|
|
742
758
|
margin-top: -0.25rem;
|
|
743
759
|
}
|
|
@@ -795,6 +811,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
795
811
|
.hawa-mt-4 {
|
|
796
812
|
margin-top: 1rem;
|
|
797
813
|
}
|
|
814
|
+
.hawa-mt-8 {
|
|
815
|
+
margin-top: 2rem;
|
|
816
|
+
}
|
|
798
817
|
.hawa-block {
|
|
799
818
|
display: block;
|
|
800
819
|
}
|
|
@@ -867,11 +886,17 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
867
886
|
.hawa-h-\[0\.8px\] {
|
|
868
887
|
height: 0.8px;
|
|
869
888
|
}
|
|
889
|
+
.hawa-h-\[1\.2rem\] {
|
|
890
|
+
height: 1.2rem;
|
|
891
|
+
}
|
|
870
892
|
.hawa-h-\[16px\] {
|
|
871
893
|
height: 16px;
|
|
872
894
|
}
|
|
873
|
-
.hawa-h-\[
|
|
874
|
-
height:
|
|
895
|
+
.hawa-h-\[185px\] {
|
|
896
|
+
height: 185px;
|
|
897
|
+
}
|
|
898
|
+
.hawa-h-\[1px\] {
|
|
899
|
+
height: 1px;
|
|
875
900
|
}
|
|
876
901
|
.hawa-h-\[200px\] {
|
|
877
902
|
height: 200px;
|
|
@@ -891,11 +916,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
891
916
|
.hawa-h-\[30px\] {
|
|
892
917
|
height: 30px;
|
|
893
918
|
}
|
|
919
|
+
.hawa-h-\[36px\] {
|
|
920
|
+
height: 36px;
|
|
921
|
+
}
|
|
894
922
|
.hawa-h-\[38px\] {
|
|
895
923
|
height: 38px;
|
|
896
924
|
}
|
|
897
|
-
.hawa-h
|
|
898
|
-
height:
|
|
925
|
+
.hawa-h-\[44px\] {
|
|
926
|
+
height: 44px;
|
|
899
927
|
}
|
|
900
928
|
.hawa-h-fit {
|
|
901
929
|
height: -moz-fit-content;
|
|
@@ -992,12 +1020,21 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
992
1020
|
.hawa-w-9 {
|
|
993
1021
|
width: 2.25rem;
|
|
994
1022
|
}
|
|
1023
|
+
.hawa-w-\[1\.2rem\] {
|
|
1024
|
+
width: 1.2rem;
|
|
1025
|
+
}
|
|
1026
|
+
.hawa-w-\[100px\] {
|
|
1027
|
+
width: 100px;
|
|
1028
|
+
}
|
|
995
1029
|
.hawa-w-\[16px\] {
|
|
996
1030
|
width: 16px;
|
|
997
1031
|
}
|
|
998
1032
|
.hawa-w-\[190px\] {
|
|
999
1033
|
width: 190px;
|
|
1000
1034
|
}
|
|
1035
|
+
.hawa-w-\[1px\] {
|
|
1036
|
+
width: 1px;
|
|
1037
|
+
}
|
|
1001
1038
|
.hawa-w-\[200px\] {
|
|
1002
1039
|
width: 200px;
|
|
1003
1040
|
}
|
|
@@ -1019,9 +1056,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1019
1056
|
.hawa-w-\[47px\] {
|
|
1020
1057
|
width: 47px;
|
|
1021
1058
|
}
|
|
1022
|
-
.hawa-w-\[64px\] {
|
|
1023
|
-
width: 64px;
|
|
1024
|
-
}
|
|
1025
1059
|
.hawa-w-fit {
|
|
1026
1060
|
width: -moz-fit-content;
|
|
1027
1061
|
width: fit-content;
|
|
@@ -1035,6 +1069,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1035
1069
|
.hawa-min-w-\[8rem\] {
|
|
1036
1070
|
min-width: 8rem;
|
|
1037
1071
|
}
|
|
1072
|
+
.hawa-min-w-fit {
|
|
1073
|
+
min-width: -moz-fit-content;
|
|
1074
|
+
min-width: fit-content;
|
|
1075
|
+
}
|
|
1038
1076
|
.hawa-min-w-full {
|
|
1039
1077
|
min-width: 100%;
|
|
1040
1078
|
}
|
|
@@ -1106,10 +1144,19 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1106
1144
|
--tw-translate-y: -50%;
|
|
1107
1145
|
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));
|
|
1108
1146
|
}
|
|
1147
|
+
.hawa-rotate-0 {
|
|
1148
|
+
--tw-rotate: 0deg;
|
|
1149
|
+
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));
|
|
1150
|
+
}
|
|
1109
1151
|
.hawa-rotate-180 {
|
|
1110
1152
|
--tw-rotate: 180deg;
|
|
1111
1153
|
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));
|
|
1112
1154
|
}
|
|
1155
|
+
.hawa-scale-100 {
|
|
1156
|
+
--tw-scale-x: 1;
|
|
1157
|
+
--tw-scale-y: 1;
|
|
1158
|
+
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));
|
|
1159
|
+
}
|
|
1113
1160
|
@keyframes hawa-bounce {
|
|
1114
1161
|
|
|
1115
1162
|
0%, 100% {
|
|
@@ -1160,6 +1207,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1160
1207
|
-moz-user-select: none;
|
|
1161
1208
|
user-select: none;
|
|
1162
1209
|
}
|
|
1210
|
+
.hawa-resize-none {
|
|
1211
|
+
resize: none;
|
|
1212
|
+
}
|
|
1163
1213
|
.hawa-grid-cols-1 {
|
|
1164
1214
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1165
1215
|
}
|
|
@@ -1253,6 +1303,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1253
1303
|
.hawa-overflow-hidden {
|
|
1254
1304
|
overflow: hidden;
|
|
1255
1305
|
}
|
|
1306
|
+
.hawa-overflow-clip {
|
|
1307
|
+
overflow: clip;
|
|
1308
|
+
}
|
|
1256
1309
|
.hawa-overflow-x-auto {
|
|
1257
1310
|
overflow-x: auto;
|
|
1258
1311
|
}
|
|
@@ -1299,13 +1352,13 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1299
1352
|
border-bottom-right-radius: var(--radius);
|
|
1300
1353
|
border-bottom-left-radius: var(--radius);
|
|
1301
1354
|
}
|
|
1302
|
-
.hawa-rounded-l {
|
|
1303
|
-
border-top-left-radius:
|
|
1304
|
-
border-bottom-left-radius:
|
|
1355
|
+
.hawa-rounded-l-none {
|
|
1356
|
+
border-top-left-radius: 0px;
|
|
1357
|
+
border-bottom-left-radius: 0px;
|
|
1305
1358
|
}
|
|
1306
|
-
.hawa-rounded-r {
|
|
1307
|
-
border-top-right-radius:
|
|
1308
|
-
border-bottom-right-radius:
|
|
1359
|
+
.hawa-rounded-r-none {
|
|
1360
|
+
border-top-right-radius: 0px;
|
|
1361
|
+
border-bottom-right-radius: 0px;
|
|
1309
1362
|
}
|
|
1310
1363
|
.hawa-rounded-t {
|
|
1311
1364
|
border-top-left-radius: var(--radius);
|
|
@@ -1446,6 +1499,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1446
1499
|
--tw-bg-opacity: 1;
|
|
1447
1500
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1448
1501
|
}
|
|
1502
|
+
.hawa-bg-gray-500 {
|
|
1503
|
+
--tw-bg-opacity: 1;
|
|
1504
|
+
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
|
|
1505
|
+
}
|
|
1449
1506
|
.hawa-bg-gray-900 {
|
|
1450
1507
|
--tw-bg-opacity: 1;
|
|
1451
1508
|
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
|
@@ -1477,6 +1534,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1477
1534
|
.hawa-bg-primary-foreground {
|
|
1478
1535
|
background-color: hsl(var(--primary-foreground));
|
|
1479
1536
|
}
|
|
1537
|
+
.hawa-bg-primary\/10 {
|
|
1538
|
+
background-color: hsl(var(--primary) / 0.1);
|
|
1539
|
+
}
|
|
1480
1540
|
.hawa-bg-primary\/20 {
|
|
1481
1541
|
background-color: hsl(var(--primary) / 0.2);
|
|
1482
1542
|
}
|
|
@@ -1513,6 +1573,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1513
1573
|
--tw-bg-opacity: 1;
|
|
1514
1574
|
background-color: rgb(254 249 195 / var(--tw-bg-opacity));
|
|
1515
1575
|
}
|
|
1576
|
+
.hawa-bg-opacity-80 {
|
|
1577
|
+
--tw-bg-opacity: 0.8;
|
|
1578
|
+
}
|
|
1516
1579
|
.hawa-bg-cover {
|
|
1517
1580
|
background-size: cover;
|
|
1518
1581
|
}
|
|
@@ -1684,9 +1747,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1684
1747
|
.hawa-text-center {
|
|
1685
1748
|
text-align: center;
|
|
1686
1749
|
}
|
|
1687
|
-
.hawa-text-right {
|
|
1688
|
-
text-align: right;
|
|
1689
|
-
}
|
|
1690
1750
|
.hawa-text-start {
|
|
1691
1751
|
text-align: start;
|
|
1692
1752
|
}
|
|
@@ -1694,9 +1754,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1694
1754
|
font-size: 1.5rem;
|
|
1695
1755
|
line-height: 2rem;
|
|
1696
1756
|
}
|
|
1697
|
-
.hawa-text-\[0\.875rem\] {
|
|
1698
|
-
font-size: 0.875rem;
|
|
1699
|
-
}
|
|
1700
1757
|
.hawa-text-\[10px\] {
|
|
1701
1758
|
font-size: 10px;
|
|
1702
1759
|
}
|
|
@@ -1755,6 +1812,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1755
1812
|
.hawa-tracking-widest {
|
|
1756
1813
|
letter-spacing: 0.1em;
|
|
1757
1814
|
}
|
|
1815
|
+
.hawa-text-\[\#666666\] {
|
|
1816
|
+
--tw-text-opacity: 1;
|
|
1817
|
+
color: rgb(102 102 102 / var(--tw-text-opacity));
|
|
1818
|
+
}
|
|
1758
1819
|
.hawa-text-black {
|
|
1759
1820
|
--tw-text-opacity: 1;
|
|
1760
1821
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
@@ -1946,6 +2007,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1946
2007
|
.hawa-duration-500 {
|
|
1947
2008
|
transition-duration: 500ms;
|
|
1948
2009
|
}
|
|
2010
|
+
.hawa-ease-in-out {
|
|
2011
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2012
|
+
}
|
|
1949
2013
|
.hawa-will-change-transform {
|
|
1950
2014
|
will-change: transform;
|
|
1951
2015
|
}
|
|
@@ -2002,6 +2066,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2002
2066
|
.hawa-delay-300 {
|
|
2003
2067
|
animation-delay: 300ms;
|
|
2004
2068
|
}
|
|
2069
|
+
.hawa-ease-in-out {
|
|
2070
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2071
|
+
}
|
|
2005
2072
|
.hawa-repeat-infinite {
|
|
2006
2073
|
animation-iteration-count: infinite;
|
|
2007
2074
|
}
|
|
@@ -2270,6 +2337,10 @@ body {
|
|
|
2270
2337
|
--tw-ring-opacity: 1;
|
|
2271
2338
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
2272
2339
|
}
|
|
2340
|
+
.focus\:hawa-ring-gray-300:focus {
|
|
2341
|
+
--tw-ring-opacity: 1;
|
|
2342
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2343
|
+
}
|
|
2273
2344
|
.focus\:hawa-ring-ring:focus {
|
|
2274
2345
|
--tw-ring-color: hsl(var(--ring));
|
|
2275
2346
|
}
|
|
@@ -2563,6 +2634,19 @@ body {
|
|
|
2563
2634
|
.data-\[state\=open\]\:hawa-slide-in-from-top-full[data-state=open] {
|
|
2564
2635
|
--tw-enter-translate-y: -100%;
|
|
2565
2636
|
}
|
|
2637
|
+
:is(.hawa-dark .dark\:hawa--rotate-90) {
|
|
2638
|
+
--tw-rotate: -90deg;
|
|
2639
|
+
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));
|
|
2640
|
+
}
|
|
2641
|
+
:is(.hawa-dark .dark\:hawa-rotate-0) {
|
|
2642
|
+
--tw-rotate: 0deg;
|
|
2643
|
+
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));
|
|
2644
|
+
}
|
|
2645
|
+
:is(.hawa-dark .dark\:hawa-scale-100) {
|
|
2646
|
+
--tw-scale-x: 1;
|
|
2647
|
+
--tw-scale-y: 1;
|
|
2648
|
+
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));
|
|
2649
|
+
}
|
|
2566
2650
|
:is(.hawa-dark .dark\:hawa-border-gray-700) {
|
|
2567
2651
|
--tw-border-opacity: 1;
|
|
2568
2652
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
@@ -2585,6 +2669,10 @@ body {
|
|
|
2585
2669
|
--tw-bg-opacity: 1;
|
|
2586
2670
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2587
2671
|
}
|
|
2672
|
+
:is(.hawa-dark .dark\:hawa-bg-gray-700) {
|
|
2673
|
+
--tw-bg-opacity: 1;
|
|
2674
|
+
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
2675
|
+
}
|
|
2588
2676
|
:is(.hawa-dark .dark\:hawa-bg-gray-800) {
|
|
2589
2677
|
--tw-bg-opacity: 1;
|
|
2590
2678
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
@@ -2622,6 +2710,10 @@ body {
|
|
|
2622
2710
|
--tw-text-opacity: 1;
|
|
2623
2711
|
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
2624
2712
|
}
|
|
2713
|
+
:is(.hawa-dark .dark\:hawa-text-gray-500) {
|
|
2714
|
+
--tw-text-opacity: 1;
|
|
2715
|
+
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2716
|
+
}
|
|
2625
2717
|
:is(.hawa-dark .dark\:hawa-text-gray-800) {
|
|
2626
2718
|
--tw-text-opacity: 1;
|
|
2627
2719
|
color: rgb(31 41 55 / var(--tw-text-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -11,8 +11,13 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
11
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
14
16
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
15
17
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
18
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
19
|
+
import * as react_hook_form from 'react-hook-form';
|
|
20
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
16
21
|
|
|
17
22
|
declare const buttonVariants: (props?: ({
|
|
18
23
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
@@ -147,16 +152,17 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
|
|
|
147
152
|
}
|
|
148
153
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
149
154
|
|
|
155
|
+
type RadioOptionsTypes = {
|
|
156
|
+
value: any;
|
|
157
|
+
label: any;
|
|
158
|
+
disabled?: any;
|
|
159
|
+
sublabel?: any;
|
|
160
|
+
icon?: any;
|
|
161
|
+
};
|
|
150
162
|
type RadioTypes = {
|
|
151
163
|
orientation?: "vertical" | "horizontal";
|
|
152
164
|
design?: "default" | "tabs" | "cards" | "bordered";
|
|
153
|
-
options?:
|
|
154
|
-
value: any;
|
|
155
|
-
label: any;
|
|
156
|
-
disabled?: any;
|
|
157
|
-
sublabel?: any;
|
|
158
|
-
icon?: any;
|
|
159
|
-
}[];
|
|
165
|
+
options?: RadioOptionsTypes[];
|
|
160
166
|
width?: "default" | "full";
|
|
161
167
|
onChangeTab?: any;
|
|
162
168
|
defaultValue?: any;
|
|
@@ -354,6 +360,10 @@ type StoreButtonsTypes = {
|
|
|
354
360
|
};
|
|
355
361
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
356
362
|
|
|
363
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
364
|
+
|
|
365
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
366
|
+
|
|
357
367
|
type BackToTopTypes = {
|
|
358
368
|
paddingX?: number;
|
|
359
369
|
paddingY?: number;
|
|
@@ -365,8 +375,9 @@ declare const BackToTop: FC<BackToTopTypes>;
|
|
|
365
375
|
|
|
366
376
|
type TextFieldTypes = {
|
|
367
377
|
isLoading?: boolean;
|
|
378
|
+
containerClassName?: string;
|
|
368
379
|
margin?: "none" | "normal" | "large";
|
|
369
|
-
width?: "small" | "normal" | "full";
|
|
380
|
+
width?: "small" | "normal" | "full" | "auto";
|
|
370
381
|
/** The label of the input field */
|
|
371
382
|
label?: any;
|
|
372
383
|
/** Disable/Enable multiple line text input field */
|
|
@@ -473,6 +484,8 @@ declare const CommandShortcut: {
|
|
|
473
484
|
displayName: string;
|
|
474
485
|
};
|
|
475
486
|
|
|
487
|
+
declare function Combobox(): React.JSX.Element;
|
|
488
|
+
|
|
476
489
|
type SelectTypes = {
|
|
477
490
|
label?: string;
|
|
478
491
|
options?: {
|
|
@@ -483,11 +496,13 @@ type SelectTypes = {
|
|
|
483
496
|
isClearable?: boolean;
|
|
484
497
|
isMulti?: boolean;
|
|
485
498
|
isSearchable?: boolean;
|
|
499
|
+
controlClassNames?: string;
|
|
500
|
+
containerClassNames?: string;
|
|
486
501
|
onChange?: any;
|
|
487
502
|
helperText?: any;
|
|
488
503
|
onInputChange?: any;
|
|
489
504
|
native?: any;
|
|
490
|
-
width?: "full" | "small";
|
|
505
|
+
width?: "full" | "small" | "fit";
|
|
491
506
|
value?: any;
|
|
492
507
|
children?: any;
|
|
493
508
|
getOptionLabel?: any;
|
|
@@ -501,4 +516,33 @@ type SelectTypes = {
|
|
|
501
516
|
};
|
|
502
517
|
declare const Select: FC<SelectTypes>;
|
|
503
518
|
|
|
504
|
-
|
|
519
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
520
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
521
|
+
declare const useFormField: () => {
|
|
522
|
+
invalid: boolean;
|
|
523
|
+
isDirty: boolean;
|
|
524
|
+
isTouched: boolean;
|
|
525
|
+
error?: react_hook_form.FieldError | undefined;
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
formItemId: string;
|
|
529
|
+
formDescriptionId: string;
|
|
530
|
+
formMessageId: string;
|
|
531
|
+
};
|
|
532
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
533
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
534
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
535
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
536
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
537
|
+
|
|
538
|
+
type TypographyTypes = {
|
|
539
|
+
handleLanguage: (e: any) => void;
|
|
540
|
+
currentLanguage: any;
|
|
541
|
+
handleColorMode: (e: any) => void;
|
|
542
|
+
currentColorMode: any;
|
|
543
|
+
orientation?: "vertical" | "horizontal";
|
|
544
|
+
width?: "default" | "full";
|
|
545
|
+
};
|
|
546
|
+
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
547
|
+
|
|
548
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,13 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
11
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
14
16
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
15
17
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
18
|
+
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
19
|
+
import * as react_hook_form from 'react-hook-form';
|
|
20
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
16
21
|
|
|
17
22
|
declare const buttonVariants: (props?: ({
|
|
18
23
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
@@ -147,16 +152,17 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
|
|
|
147
152
|
}
|
|
148
153
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
149
154
|
|
|
155
|
+
type RadioOptionsTypes = {
|
|
156
|
+
value: any;
|
|
157
|
+
label: any;
|
|
158
|
+
disabled?: any;
|
|
159
|
+
sublabel?: any;
|
|
160
|
+
icon?: any;
|
|
161
|
+
};
|
|
150
162
|
type RadioTypes = {
|
|
151
163
|
orientation?: "vertical" | "horizontal";
|
|
152
164
|
design?: "default" | "tabs" | "cards" | "bordered";
|
|
153
|
-
options?:
|
|
154
|
-
value: any;
|
|
155
|
-
label: any;
|
|
156
|
-
disabled?: any;
|
|
157
|
-
sublabel?: any;
|
|
158
|
-
icon?: any;
|
|
159
|
-
}[];
|
|
165
|
+
options?: RadioOptionsTypes[];
|
|
160
166
|
width?: "default" | "full";
|
|
161
167
|
onChangeTab?: any;
|
|
162
168
|
defaultValue?: any;
|
|
@@ -354,6 +360,10 @@ type StoreButtonsTypes = {
|
|
|
354
360
|
};
|
|
355
361
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
356
362
|
|
|
363
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
364
|
+
|
|
365
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
366
|
+
|
|
357
367
|
type BackToTopTypes = {
|
|
358
368
|
paddingX?: number;
|
|
359
369
|
paddingY?: number;
|
|
@@ -365,8 +375,9 @@ declare const BackToTop: FC<BackToTopTypes>;
|
|
|
365
375
|
|
|
366
376
|
type TextFieldTypes = {
|
|
367
377
|
isLoading?: boolean;
|
|
378
|
+
containerClassName?: string;
|
|
368
379
|
margin?: "none" | "normal" | "large";
|
|
369
|
-
width?: "small" | "normal" | "full";
|
|
380
|
+
width?: "small" | "normal" | "full" | "auto";
|
|
370
381
|
/** The label of the input field */
|
|
371
382
|
label?: any;
|
|
372
383
|
/** Disable/Enable multiple line text input field */
|
|
@@ -473,6 +484,8 @@ declare const CommandShortcut: {
|
|
|
473
484
|
displayName: string;
|
|
474
485
|
};
|
|
475
486
|
|
|
487
|
+
declare function Combobox(): React.JSX.Element;
|
|
488
|
+
|
|
476
489
|
type SelectTypes = {
|
|
477
490
|
label?: string;
|
|
478
491
|
options?: {
|
|
@@ -483,11 +496,13 @@ type SelectTypes = {
|
|
|
483
496
|
isClearable?: boolean;
|
|
484
497
|
isMulti?: boolean;
|
|
485
498
|
isSearchable?: boolean;
|
|
499
|
+
controlClassNames?: string;
|
|
500
|
+
containerClassNames?: string;
|
|
486
501
|
onChange?: any;
|
|
487
502
|
helperText?: any;
|
|
488
503
|
onInputChange?: any;
|
|
489
504
|
native?: any;
|
|
490
|
-
width?: "full" | "small";
|
|
505
|
+
width?: "full" | "small" | "fit";
|
|
491
506
|
value?: any;
|
|
492
507
|
children?: any;
|
|
493
508
|
getOptionLabel?: any;
|
|
@@ -501,4 +516,33 @@ type SelectTypes = {
|
|
|
501
516
|
};
|
|
502
517
|
declare const Select: FC<SelectTypes>;
|
|
503
518
|
|
|
504
|
-
|
|
519
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
520
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
|
521
|
+
declare const useFormField: () => {
|
|
522
|
+
invalid: boolean;
|
|
523
|
+
isDirty: boolean;
|
|
524
|
+
isTouched: boolean;
|
|
525
|
+
error?: react_hook_form.FieldError | undefined;
|
|
526
|
+
id: string;
|
|
527
|
+
name: string;
|
|
528
|
+
formItemId: string;
|
|
529
|
+
formDescriptionId: string;
|
|
530
|
+
formMessageId: string;
|
|
531
|
+
};
|
|
532
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
533
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
534
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
535
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
536
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
537
|
+
|
|
538
|
+
type TypographyTypes = {
|
|
539
|
+
handleLanguage: (e: any) => void;
|
|
540
|
+
currentLanguage: any;
|
|
541
|
+
handleColorMode: (e: any) => void;
|
|
542
|
+
currentColorMode: any;
|
|
543
|
+
orientation?: "vertical" | "horizontal";
|
|
544
|
+
width?: "default" | "full";
|
|
545
|
+
};
|
|
546
|
+
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
547
|
+
|
|
548
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|