@sikka/hawa 0.2.41-next → 0.2.42-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 +124 -0
- package/dist/index.d.mts +63 -2
- package/dist/index.d.ts +63 -2
- package/dist/index.js +2176 -50
- package/dist/index.mjs +2207 -67
- package/package.json +3 -1
package/dist/index.css
CHANGED
|
@@ -715,6 +715,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
715
715
|
.hawa-m-0 {
|
|
716
716
|
margin: 0px;
|
|
717
717
|
}
|
|
718
|
+
.hawa-m-2 {
|
|
719
|
+
margin: 0.5rem;
|
|
720
|
+
}
|
|
718
721
|
.hawa--mx-1 {
|
|
719
722
|
margin-left: -0.25rem;
|
|
720
723
|
margin-right: -0.25rem;
|
|
@@ -733,6 +736,12 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
733
736
|
.hawa-mb-1 {
|
|
734
737
|
margin-bottom: 0.25rem;
|
|
735
738
|
}
|
|
739
|
+
.hawa-mb-2 {
|
|
740
|
+
margin-bottom: 0.5rem;
|
|
741
|
+
}
|
|
742
|
+
.hawa-mb-3 {
|
|
743
|
+
margin-bottom: 0.75rem;
|
|
744
|
+
}
|
|
736
745
|
.hawa-mb-4 {
|
|
737
746
|
margin-bottom: 1rem;
|
|
738
747
|
}
|
|
@@ -751,6 +760,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
751
760
|
.hawa-mr-8 {
|
|
752
761
|
margin-right: 2rem;
|
|
753
762
|
}
|
|
763
|
+
.hawa-mt-1 {
|
|
764
|
+
margin-top: 0.25rem;
|
|
765
|
+
}
|
|
754
766
|
.hawa-mt-10 {
|
|
755
767
|
margin-top: 2.5rem;
|
|
756
768
|
}
|
|
@@ -844,6 +856,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
844
856
|
.hawa-h-\[30px\] {
|
|
845
857
|
height: 30px;
|
|
846
858
|
}
|
|
859
|
+
.hawa-h-auto {
|
|
860
|
+
height: auto;
|
|
861
|
+
}
|
|
847
862
|
.hawa-h-fit {
|
|
848
863
|
height: -moz-fit-content;
|
|
849
864
|
height: fit-content;
|
|
@@ -854,6 +869,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
854
869
|
.hawa-h-px {
|
|
855
870
|
height: 1px;
|
|
856
871
|
}
|
|
872
|
+
.hawa-h-screen {
|
|
873
|
+
height: 100vh;
|
|
874
|
+
}
|
|
857
875
|
.hawa-max-h-screen {
|
|
858
876
|
max-height: 100vh;
|
|
859
877
|
}
|
|
@@ -869,6 +887,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
869
887
|
.hawa-w-1 {
|
|
870
888
|
width: 0.25rem;
|
|
871
889
|
}
|
|
890
|
+
.hawa-w-1\/2 {
|
|
891
|
+
width: 50%;
|
|
892
|
+
}
|
|
872
893
|
.hawa-w-10 {
|
|
873
894
|
width: 2.5rem;
|
|
874
895
|
}
|
|
@@ -926,6 +947,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
926
947
|
.hawa-w-\[16px\] {
|
|
927
948
|
width: 16px;
|
|
928
949
|
}
|
|
950
|
+
.hawa-w-\[190px\] {
|
|
951
|
+
width: 190px;
|
|
952
|
+
}
|
|
929
953
|
.hawa-w-\[200px\] {
|
|
930
954
|
width: 200px;
|
|
931
955
|
}
|
|
@@ -944,6 +968,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
944
968
|
.hawa-w-\[47px\] {
|
|
945
969
|
width: 47px;
|
|
946
970
|
}
|
|
971
|
+
.hawa-w-\[64px\] {
|
|
972
|
+
width: 64px;
|
|
973
|
+
}
|
|
947
974
|
.hawa-w-fit {
|
|
948
975
|
width: -moz-fit-content;
|
|
949
976
|
width: fit-content;
|
|
@@ -951,6 +978,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
951
978
|
.hawa-w-full {
|
|
952
979
|
width: 100%;
|
|
953
980
|
}
|
|
981
|
+
.hawa-w-screen {
|
|
982
|
+
width: 100vw;
|
|
983
|
+
}
|
|
954
984
|
.hawa-min-w-\[8rem\] {
|
|
955
985
|
min-width: 8rem;
|
|
956
986
|
}
|
|
@@ -1165,6 +1195,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1165
1195
|
.hawa-overflow-x-auto {
|
|
1166
1196
|
overflow-x: auto;
|
|
1167
1197
|
}
|
|
1198
|
+
.hawa-overflow-y-scroll {
|
|
1199
|
+
overflow-y: scroll;
|
|
1200
|
+
}
|
|
1168
1201
|
.hawa-whitespace-nowrap {
|
|
1169
1202
|
white-space: nowrap;
|
|
1170
1203
|
}
|
|
@@ -1196,6 +1229,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1196
1229
|
border-bottom-right-radius: var(--radius);
|
|
1197
1230
|
border-bottom-left-radius: var(--radius);
|
|
1198
1231
|
}
|
|
1232
|
+
.hawa-rounded-l {
|
|
1233
|
+
border-top-left-radius: var(--radius);
|
|
1234
|
+
border-bottom-left-radius: var(--radius);
|
|
1235
|
+
}
|
|
1236
|
+
.hawa-rounded-r {
|
|
1237
|
+
border-top-right-radius: var(--radius);
|
|
1238
|
+
border-bottom-right-radius: var(--radius);
|
|
1239
|
+
}
|
|
1199
1240
|
.hawa-rounded-t {
|
|
1200
1241
|
border-top-left-radius: var(--radius);
|
|
1201
1242
|
border-top-right-radius: var(--radius);
|
|
@@ -1204,6 +1245,24 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1204
1245
|
border-top-left-radius: 0px;
|
|
1205
1246
|
border-top-right-radius: 0px;
|
|
1206
1247
|
}
|
|
1248
|
+
.hawa-rounded-bl-lg {
|
|
1249
|
+
border-bottom-left-radius: var(--radius);
|
|
1250
|
+
}
|
|
1251
|
+
.hawa-rounded-bl-none {
|
|
1252
|
+
border-bottom-left-radius: 0px;
|
|
1253
|
+
}
|
|
1254
|
+
.hawa-rounded-br-lg {
|
|
1255
|
+
border-bottom-right-radius: var(--radius);
|
|
1256
|
+
}
|
|
1257
|
+
.hawa-rounded-tl-lg {
|
|
1258
|
+
border-top-left-radius: var(--radius);
|
|
1259
|
+
}
|
|
1260
|
+
.hawa-rounded-tr-lg {
|
|
1261
|
+
border-top-right-radius: var(--radius);
|
|
1262
|
+
}
|
|
1263
|
+
.hawa-rounded-tr-none {
|
|
1264
|
+
border-top-right-radius: 0px;
|
|
1265
|
+
}
|
|
1207
1266
|
.hawa-border {
|
|
1208
1267
|
border-width: 1px;
|
|
1209
1268
|
}
|
|
@@ -1216,6 +1275,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1216
1275
|
.hawa-border-b-2 {
|
|
1217
1276
|
border-bottom-width: 2px;
|
|
1218
1277
|
}
|
|
1278
|
+
.hawa-border-dashed {
|
|
1279
|
+
border-style: dashed;
|
|
1280
|
+
}
|
|
1219
1281
|
.hawa-border-black {
|
|
1220
1282
|
--tw-border-opacity: 1;
|
|
1221
1283
|
border-color: rgb(0 0 0 / var(--tw-border-opacity));
|
|
@@ -1293,6 +1355,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1293
1355
|
--tw-bg-opacity: 1;
|
|
1294
1356
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1295
1357
|
}
|
|
1358
|
+
.hawa-bg-gray-900 {
|
|
1359
|
+
--tw-bg-opacity: 1;
|
|
1360
|
+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
|
1361
|
+
}
|
|
1296
1362
|
.hawa-bg-green-100 {
|
|
1297
1363
|
--tw-bg-opacity: 1;
|
|
1298
1364
|
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
|
|
@@ -1308,6 +1374,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1308
1374
|
.hawa-bg-muted {
|
|
1309
1375
|
background-color: hsl(var(--muted));
|
|
1310
1376
|
}
|
|
1377
|
+
.hawa-bg-muted\/20 {
|
|
1378
|
+
background-color: hsl(var(--muted) / 0.2);
|
|
1379
|
+
}
|
|
1311
1380
|
.hawa-bg-popover {
|
|
1312
1381
|
background-color: hsl(var(--popover));
|
|
1313
1382
|
}
|
|
@@ -1466,6 +1535,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1466
1535
|
.hawa-pb-0 {
|
|
1467
1536
|
padding-bottom: 0px;
|
|
1468
1537
|
}
|
|
1538
|
+
.hawa-pb-2 {
|
|
1539
|
+
padding-bottom: 0.5rem;
|
|
1540
|
+
}
|
|
1469
1541
|
.hawa-pl-0 {
|
|
1470
1542
|
padding-left: 0px;
|
|
1471
1543
|
}
|
|
@@ -1496,6 +1568,12 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1496
1568
|
.hawa-pt-1 {
|
|
1497
1569
|
padding-top: 0.25rem;
|
|
1498
1570
|
}
|
|
1571
|
+
.hawa-pt-2 {
|
|
1572
|
+
padding-top: 0.5rem;
|
|
1573
|
+
}
|
|
1574
|
+
.hawa-pt-4 {
|
|
1575
|
+
padding-top: 1rem;
|
|
1576
|
+
}
|
|
1499
1577
|
.hawa-pt-6 {
|
|
1500
1578
|
padding-top: 1.5rem;
|
|
1501
1579
|
}
|
|
@@ -1505,6 +1583,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1505
1583
|
.hawa-text-center {
|
|
1506
1584
|
text-align: center;
|
|
1507
1585
|
}
|
|
1586
|
+
.hawa-text-right {
|
|
1587
|
+
text-align: right;
|
|
1588
|
+
}
|
|
1508
1589
|
.hawa-text-start {
|
|
1509
1590
|
text-align: start;
|
|
1510
1591
|
}
|
|
@@ -1512,6 +1593,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1512
1593
|
font-size: 1.5rem;
|
|
1513
1594
|
line-height: 2rem;
|
|
1514
1595
|
}
|
|
1596
|
+
.hawa-text-\[0\.875rem\] {
|
|
1597
|
+
font-size: 0.875rem;
|
|
1598
|
+
}
|
|
1515
1599
|
.hawa-text-\[10px\] {
|
|
1516
1600
|
font-size: 10px;
|
|
1517
1601
|
}
|
|
@@ -1626,6 +1710,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1626
1710
|
.hawa-text-muted-foreground {
|
|
1627
1711
|
color: hsl(var(--muted-foreground));
|
|
1628
1712
|
}
|
|
1713
|
+
.hawa-text-muted-foreground\/50 {
|
|
1714
|
+
color: hsl(var(--muted-foreground) / 0.5);
|
|
1715
|
+
}
|
|
1629
1716
|
.hawa-text-popover-foreground {
|
|
1630
1717
|
color: hsl(var(--popover-foreground));
|
|
1631
1718
|
}
|
|
@@ -1639,6 +1726,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1639
1726
|
--tw-text-opacity: 1;
|
|
1640
1727
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
1641
1728
|
}
|
|
1729
|
+
.hawa-text-red-600 {
|
|
1730
|
+
--tw-text-opacity: 1;
|
|
1731
|
+
color: rgb(220 38 38 / var(--tw-text-opacity));
|
|
1732
|
+
}
|
|
1642
1733
|
.hawa-text-red-700 {
|
|
1643
1734
|
--tw-text-opacity: 1;
|
|
1644
1735
|
color: rgb(185 28 28 / var(--tw-text-opacity));
|
|
@@ -1908,6 +1999,10 @@ body {
|
|
|
1908
1999
|
--tw-bg-opacity: 1;
|
|
1909
2000
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1910
2001
|
}
|
|
2002
|
+
.hover\:hawa-bg-gray-200:hover {
|
|
2003
|
+
--tw-bg-opacity: 1;
|
|
2004
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2005
|
+
}
|
|
1911
2006
|
.hover\:hawa-bg-gray-300:hover {
|
|
1912
2007
|
--tw-bg-opacity: 1;
|
|
1913
2008
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
@@ -1919,6 +2014,12 @@ body {
|
|
|
1919
2014
|
.hover\:hawa-bg-muted-foreground\/20:hover {
|
|
1920
2015
|
background-color: hsl(var(--muted-foreground) / 0.2);
|
|
1921
2016
|
}
|
|
2017
|
+
.hover\:hawa-bg-muted\/50:hover {
|
|
2018
|
+
background-color: hsl(var(--muted) / 0.5);
|
|
2019
|
+
}
|
|
2020
|
+
.hover\:hawa-bg-primary:hover {
|
|
2021
|
+
background-color: hsl(var(--primary));
|
|
2022
|
+
}
|
|
1922
2023
|
.hover\:hawa-bg-primary\/10:hover {
|
|
1923
2024
|
background-color: hsl(var(--primary) / 0.1);
|
|
1924
2025
|
}
|
|
@@ -1959,6 +2060,9 @@ body {
|
|
|
1959
2060
|
.hover\:hawa-text-primary:hover {
|
|
1960
2061
|
color: hsl(var(--primary));
|
|
1961
2062
|
}
|
|
2063
|
+
.hover\:hawa-text-primary-foreground:hover {
|
|
2064
|
+
color: hsl(var(--primary-foreground));
|
|
2065
|
+
}
|
|
1962
2066
|
.hover\:hawa-text-secondary-foreground:hover {
|
|
1963
2067
|
color: hsl(var(--secondary-foreground));
|
|
1964
2068
|
}
|
|
@@ -1979,6 +2083,10 @@ body {
|
|
|
1979
2083
|
--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
|
|
1980
2084
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1981
2085
|
}
|
|
2086
|
+
.focus\:hawa-border-blue-500:focus {
|
|
2087
|
+
--tw-border-opacity: 1;
|
|
2088
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
2089
|
+
}
|
|
1982
2090
|
.focus\:hawa-bg-accent:focus {
|
|
1983
2091
|
background-color: hsl(var(--accent));
|
|
1984
2092
|
}
|
|
@@ -2000,6 +2108,10 @@ body {
|
|
|
2000
2108
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2001
2109
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2002
2110
|
}
|
|
2111
|
+
.focus\:hawa-ring-blue-500:focus {
|
|
2112
|
+
--tw-ring-opacity: 1;
|
|
2113
|
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
2114
|
+
}
|
|
2003
2115
|
.focus\:hawa-ring-ring:focus {
|
|
2004
2116
|
--tw-ring-color: hsl(var(--ring));
|
|
2005
2117
|
}
|
|
@@ -2043,6 +2155,10 @@ body {
|
|
|
2043
2155
|
.disabled\:hawa-cursor-not-allowed:disabled {
|
|
2044
2156
|
cursor: not-allowed;
|
|
2045
2157
|
}
|
|
2158
|
+
.disabled\:hawa-bg-gray-200:disabled {
|
|
2159
|
+
--tw-bg-opacity: 1;
|
|
2160
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
2161
|
+
}
|
|
2046
2162
|
.disabled\:hawa-opacity-50:disabled {
|
|
2047
2163
|
opacity: 0.5;
|
|
2048
2164
|
}
|
|
@@ -2333,6 +2449,10 @@ body {
|
|
|
2333
2449
|
--tw-text-opacity: 1;
|
|
2334
2450
|
color: rgb(22 101 52 / var(--tw-text-opacity));
|
|
2335
2451
|
}
|
|
2452
|
+
:is(.hawa-dark .dark\:hawa-text-red-500) {
|
|
2453
|
+
--tw-text-opacity: 1;
|
|
2454
|
+
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
2455
|
+
}
|
|
2336
2456
|
:is(.hawa-dark .dark\:hawa-text-red-800) {
|
|
2337
2457
|
--tw-text-opacity: 1;
|
|
2338
2458
|
color: rgb(153 27 27 / var(--tw-text-opacity));
|
|
@@ -2355,6 +2475,10 @@ body {
|
|
|
2355
2475
|
--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
|
|
2356
2476
|
--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
2357
2477
|
}
|
|
2478
|
+
:is(.hawa-dark .dark\:hover\:hawa-bg-gray-600:hover) {
|
|
2479
|
+
--tw-bg-opacity: 1;
|
|
2480
|
+
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
2481
|
+
}
|
|
2358
2482
|
:is(.hawa-dark .dark\:hover\:hawa-bg-gray-700:hover) {
|
|
2359
2483
|
--tw-bg-opacity: 1;
|
|
2360
2484
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, ReactNode } from 'react';
|
|
3
|
+
import React__default, { FC, ReactNode, ChangeEvent, RefObject } from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -266,6 +266,14 @@ interface DropdownMenuProps {
|
|
|
266
266
|
}
|
|
267
267
|
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
268
268
|
|
|
269
|
+
type ColorPickerTypes = {
|
|
270
|
+
/** The hex code for the color */
|
|
271
|
+
color?: any;
|
|
272
|
+
/** Fires everytime the color changes */
|
|
273
|
+
handleChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
274
|
+
};
|
|
275
|
+
declare const ColorPicker: FC<ColorPickerTypes>;
|
|
276
|
+
|
|
269
277
|
type PinInputTypes = {
|
|
270
278
|
/** Label text to display for the Pin Input */
|
|
271
279
|
label?: string;
|
|
@@ -292,10 +300,63 @@ type ImageCardTypes = {
|
|
|
292
300
|
};
|
|
293
301
|
declare const ActionCard: FC<ImageCardTypes>;
|
|
294
302
|
|
|
303
|
+
type FileDropzoneTypes = {
|
|
304
|
+
/** The text label above the component. Consistant with the other form input fields */
|
|
305
|
+
label?: string;
|
|
306
|
+
files: [File];
|
|
307
|
+
setFiles: any;
|
|
308
|
+
setDeletedFiles: any;
|
|
309
|
+
maxFiles: number;
|
|
310
|
+
accept: any;
|
|
311
|
+
onAcceptedFiles: any;
|
|
312
|
+
showPreview: any;
|
|
313
|
+
onDeleteFile: any;
|
|
314
|
+
onClearFiles: any;
|
|
315
|
+
maxSize: number;
|
|
316
|
+
errorMessages: string;
|
|
317
|
+
disclaimer?: boolean;
|
|
318
|
+
termsLink?: string;
|
|
319
|
+
privacyLink?: string;
|
|
320
|
+
/** The translation object, use this to replace the default text with any translated text you want.*/
|
|
321
|
+
texts: {
|
|
322
|
+
errorUploading: any;
|
|
323
|
+
clickHereToUpload: any;
|
|
324
|
+
maxFileSize: any;
|
|
325
|
+
tooManyFiles: any;
|
|
326
|
+
fileTooLarge: any;
|
|
327
|
+
acceptedFileTypes: any;
|
|
328
|
+
invalidFileType: any;
|
|
329
|
+
terms?: string;
|
|
330
|
+
privacyPolicy?: string;
|
|
331
|
+
disclaimer?: string;
|
|
332
|
+
and?: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
declare const FileDropzone: React__default.FunctionComponent<FileDropzoneTypes>;
|
|
336
|
+
|
|
337
|
+
type PhoneInputTypes = {
|
|
338
|
+
preferredCountry?: any;
|
|
339
|
+
helperText?: any;
|
|
340
|
+
label?: string;
|
|
341
|
+
value?: any;
|
|
342
|
+
country?: any;
|
|
343
|
+
handleChange?: any;
|
|
344
|
+
};
|
|
345
|
+
declare const PhoneInput: FC<PhoneInputTypes>;
|
|
346
|
+
|
|
295
347
|
type StoreButtonsTypes = {
|
|
296
348
|
store: "apple" | "google";
|
|
297
349
|
mode: "dark" | "light";
|
|
298
350
|
};
|
|
299
351
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
300
352
|
|
|
301
|
-
|
|
353
|
+
type BackToTopTypes = {
|
|
354
|
+
paddingX?: number;
|
|
355
|
+
paddingY?: number;
|
|
356
|
+
paddingThreshold?: number;
|
|
357
|
+
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
358
|
+
anchor: RefObject<HTMLInputElement>;
|
|
359
|
+
};
|
|
360
|
+
declare const BackToTop: FC<BackToTopTypes>;
|
|
361
|
+
|
|
362
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Label, Loading, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, Radio, Skeleton, Slider, SubItem, Switch, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, ReactNode } from 'react';
|
|
3
|
+
import React__default, { FC, ReactNode, ChangeEvent, RefObject } from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -266,6 +266,14 @@ interface DropdownMenuProps {
|
|
|
266
266
|
}
|
|
267
267
|
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
268
268
|
|
|
269
|
+
type ColorPickerTypes = {
|
|
270
|
+
/** The hex code for the color */
|
|
271
|
+
color?: any;
|
|
272
|
+
/** Fires everytime the color changes */
|
|
273
|
+
handleChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
274
|
+
};
|
|
275
|
+
declare const ColorPicker: FC<ColorPickerTypes>;
|
|
276
|
+
|
|
269
277
|
type PinInputTypes = {
|
|
270
278
|
/** Label text to display for the Pin Input */
|
|
271
279
|
label?: string;
|
|
@@ -292,10 +300,63 @@ type ImageCardTypes = {
|
|
|
292
300
|
};
|
|
293
301
|
declare const ActionCard: FC<ImageCardTypes>;
|
|
294
302
|
|
|
303
|
+
type FileDropzoneTypes = {
|
|
304
|
+
/** The text label above the component. Consistant with the other form input fields */
|
|
305
|
+
label?: string;
|
|
306
|
+
files: [File];
|
|
307
|
+
setFiles: any;
|
|
308
|
+
setDeletedFiles: any;
|
|
309
|
+
maxFiles: number;
|
|
310
|
+
accept: any;
|
|
311
|
+
onAcceptedFiles: any;
|
|
312
|
+
showPreview: any;
|
|
313
|
+
onDeleteFile: any;
|
|
314
|
+
onClearFiles: any;
|
|
315
|
+
maxSize: number;
|
|
316
|
+
errorMessages: string;
|
|
317
|
+
disclaimer?: boolean;
|
|
318
|
+
termsLink?: string;
|
|
319
|
+
privacyLink?: string;
|
|
320
|
+
/** The translation object, use this to replace the default text with any translated text you want.*/
|
|
321
|
+
texts: {
|
|
322
|
+
errorUploading: any;
|
|
323
|
+
clickHereToUpload: any;
|
|
324
|
+
maxFileSize: any;
|
|
325
|
+
tooManyFiles: any;
|
|
326
|
+
fileTooLarge: any;
|
|
327
|
+
acceptedFileTypes: any;
|
|
328
|
+
invalidFileType: any;
|
|
329
|
+
terms?: string;
|
|
330
|
+
privacyPolicy?: string;
|
|
331
|
+
disclaimer?: string;
|
|
332
|
+
and?: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
declare const FileDropzone: React__default.FunctionComponent<FileDropzoneTypes>;
|
|
336
|
+
|
|
337
|
+
type PhoneInputTypes = {
|
|
338
|
+
preferredCountry?: any;
|
|
339
|
+
helperText?: any;
|
|
340
|
+
label?: string;
|
|
341
|
+
value?: any;
|
|
342
|
+
country?: any;
|
|
343
|
+
handleChange?: any;
|
|
344
|
+
};
|
|
345
|
+
declare const PhoneInput: FC<PhoneInputTypes>;
|
|
346
|
+
|
|
295
347
|
type StoreButtonsTypes = {
|
|
296
348
|
store: "apple" | "google";
|
|
297
349
|
mode: "dark" | "light";
|
|
298
350
|
};
|
|
299
351
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
300
352
|
|
|
301
|
-
|
|
353
|
+
type BackToTopTypes = {
|
|
354
|
+
paddingX?: number;
|
|
355
|
+
paddingY?: number;
|
|
356
|
+
paddingThreshold?: number;
|
|
357
|
+
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
358
|
+
anchor: RefObject<HTMLInputElement>;
|
|
359
|
+
};
|
|
360
|
+
declare const BackToTop: FC<BackToTopTypes>;
|
|
361
|
+
|
|
362
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Label, Loading, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, Radio, Skeleton, Slider, SubItem, Switch, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|