@sikka/hawa 0.4.5-next → 0.4.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 +55 -1
- package/dist/index.d.mts +178 -16
- package/dist/index.d.ts +178 -16
- package/dist/index.js +1465 -1078
- package/dist/index.mjs +1186 -814
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -580,13 +580,20 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
580
580
|
display: inline-block;
|
|
581
581
|
position: relative;
|
|
582
582
|
top: 3px;
|
|
583
|
-
margin: 0 5px 0 0;
|
|
583
|
+
/* margin: 0 5px 0 0; */
|
|
584
|
+
|
|
584
585
|
width: 15px;
|
|
585
586
|
height: 15px;
|
|
586
587
|
border-radius: 11px;
|
|
587
588
|
border: 2px solid #a3a3a3;
|
|
588
589
|
background-color: transparent;
|
|
589
590
|
}
|
|
591
|
+
.radio-item.margin-right label:before {
|
|
592
|
+
margin: 0 5px 0 0; /* top right bottom left */
|
|
593
|
+
}
|
|
594
|
+
.radio-item.margin-left label:before {
|
|
595
|
+
margin: 0 0 0 5px; /* top right bottom left */
|
|
596
|
+
}
|
|
590
597
|
.radio-item-default input[type="radio"]:checked + label:after {
|
|
591
598
|
border-radius: 100%;
|
|
592
599
|
width: 9px;
|
|
@@ -839,6 +846,12 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
839
846
|
.hawa-mb-5 {
|
|
840
847
|
margin-bottom: 1.25rem;
|
|
841
848
|
}
|
|
849
|
+
.hawa-ml-0 {
|
|
850
|
+
margin-left: 0px;
|
|
851
|
+
}
|
|
852
|
+
.hawa-ml-1 {
|
|
853
|
+
margin-left: 0.25rem;
|
|
854
|
+
}
|
|
842
855
|
.hawa-ml-14 {
|
|
843
856
|
margin-left: 3.5rem;
|
|
844
857
|
}
|
|
@@ -908,6 +921,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
908
921
|
.hawa-hidden {
|
|
909
922
|
display: none;
|
|
910
923
|
}
|
|
924
|
+
.hawa-aspect-square {
|
|
925
|
+
aspect-ratio: 1 / 1;
|
|
926
|
+
}
|
|
911
927
|
.hawa-h-1 {
|
|
912
928
|
height: 0.25rem;
|
|
913
929
|
}
|
|
@@ -1147,6 +1163,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1147
1163
|
.hawa-w-\[47px\] {
|
|
1148
1164
|
width: 47px;
|
|
1149
1165
|
}
|
|
1166
|
+
.hawa-w-auto {
|
|
1167
|
+
width: auto;
|
|
1168
|
+
}
|
|
1150
1169
|
.hawa-w-fit {
|
|
1151
1170
|
width: -moz-fit-content;
|
|
1152
1171
|
width: fit-content;
|
|
@@ -1176,6 +1195,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1176
1195
|
.hawa-max-w-4xl {
|
|
1177
1196
|
max-width: 56rem;
|
|
1178
1197
|
}
|
|
1198
|
+
.hawa-max-w-\[200px\] {
|
|
1199
|
+
max-width: 200px;
|
|
1200
|
+
}
|
|
1179
1201
|
.hawa-max-w-\[52px\] {
|
|
1180
1202
|
max-width: 52px;
|
|
1181
1203
|
}
|
|
@@ -1204,6 +1226,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1204
1226
|
.hawa-flex-1 {
|
|
1205
1227
|
flex: 1 1 0%;
|
|
1206
1228
|
}
|
|
1229
|
+
.hawa-flex-shrink-0 {
|
|
1230
|
+
flex-shrink: 0;
|
|
1231
|
+
}
|
|
1207
1232
|
.hawa-shrink-0 {
|
|
1208
1233
|
flex-shrink: 0;
|
|
1209
1234
|
}
|
|
@@ -1345,6 +1370,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1345
1370
|
.hawa-items-center {
|
|
1346
1371
|
align-items: center;
|
|
1347
1372
|
}
|
|
1373
|
+
.hawa-items-baseline {
|
|
1374
|
+
align-items: baseline;
|
|
1375
|
+
}
|
|
1348
1376
|
.hawa-justify-start {
|
|
1349
1377
|
justify-content: flex-start;
|
|
1350
1378
|
}
|
|
@@ -1607,6 +1635,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1607
1635
|
--tw-bg-opacity: 1;
|
|
1608
1636
|
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
|
1609
1637
|
}
|
|
1638
|
+
.hawa-bg-blue-500 {
|
|
1639
|
+
--tw-bg-opacity: 1;
|
|
1640
|
+
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
1641
|
+
}
|
|
1610
1642
|
.hawa-bg-border {
|
|
1611
1643
|
background-color: hsl(var(--border));
|
|
1612
1644
|
}
|
|
@@ -1687,6 +1719,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1687
1719
|
.hawa-bg-primary\/5 {
|
|
1688
1720
|
background-color: hsl(var(--primary) / 0.05);
|
|
1689
1721
|
}
|
|
1722
|
+
.hawa-bg-primary\/50 {
|
|
1723
|
+
background-color: hsl(var(--primary) / 0.5);
|
|
1724
|
+
}
|
|
1690
1725
|
.hawa-bg-primary\/90 {
|
|
1691
1726
|
background-color: hsl(var(--primary) / 0.9);
|
|
1692
1727
|
}
|
|
@@ -1907,6 +1942,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1907
1942
|
font-size: 1.5rem;
|
|
1908
1943
|
line-height: 2rem;
|
|
1909
1944
|
}
|
|
1945
|
+
.hawa-text-5xl {
|
|
1946
|
+
font-size: 3rem;
|
|
1947
|
+
line-height: 1;
|
|
1948
|
+
}
|
|
1910
1949
|
.hawa-text-6xl {
|
|
1911
1950
|
font-size: 3.75rem;
|
|
1912
1951
|
line-height: 1;
|
|
@@ -1917,6 +1956,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1917
1956
|
.hawa-text-\[11px\] {
|
|
1918
1957
|
font-size: 11px;
|
|
1919
1958
|
}
|
|
1959
|
+
.hawa-text-\[12px\] {
|
|
1960
|
+
font-size: 12px;
|
|
1961
|
+
}
|
|
1920
1962
|
.hawa-text-\[1rem\] {
|
|
1921
1963
|
font-size: 1rem;
|
|
1922
1964
|
}
|
|
@@ -1942,6 +1984,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1942
1984
|
.hawa-font-bold {
|
|
1943
1985
|
font-weight: 700;
|
|
1944
1986
|
}
|
|
1987
|
+
.hawa-font-extrabold {
|
|
1988
|
+
font-weight: 800;
|
|
1989
|
+
}
|
|
1945
1990
|
.hawa-font-medium {
|
|
1946
1991
|
font-weight: 500;
|
|
1947
1992
|
}
|
|
@@ -1963,6 +2008,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1963
2008
|
.hawa-leading-none {
|
|
1964
2009
|
line-height: 1;
|
|
1965
2010
|
}
|
|
2011
|
+
.hawa-leading-tight {
|
|
2012
|
+
line-height: 1.25;
|
|
2013
|
+
}
|
|
1966
2014
|
.hawa-tracking-tight {
|
|
1967
2015
|
letter-spacing: -0.025em;
|
|
1968
2016
|
}
|
|
@@ -2047,6 +2095,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2047
2095
|
.hawa-text-primary-foreground {
|
|
2048
2096
|
color: hsl(var(--primary-foreground));
|
|
2049
2097
|
}
|
|
2098
|
+
.hawa-text-primary\/70 {
|
|
2099
|
+
color: hsl(var(--primary) / 0.7);
|
|
2100
|
+
}
|
|
2050
2101
|
.hawa-text-red-500 {
|
|
2051
2102
|
--tw-text-opacity: 1;
|
|
2052
2103
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
@@ -2858,6 +2909,9 @@ body {
|
|
|
2858
2909
|
:is(.hawa-dark .dark\:hawa-border-primary\/10) {
|
|
2859
2910
|
border-color: hsl(var(--primary) / 0.1);
|
|
2860
2911
|
}
|
|
2912
|
+
:is(.hawa-dark .dark\:hawa-border-primary\/70) {
|
|
2913
|
+
border-color: hsl(var(--primary) / 0.7);
|
|
2914
|
+
}
|
|
2861
2915
|
:is(.hawa-dark .dark\:hawa-bg-background) {
|
|
2862
2916
|
background-color: hsl(var(--background));
|
|
2863
2917
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import React__default, { FC, ReactNode, ChangeEvent, RefObject, PropsWithRef } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
@@ -21,6 +21,49 @@ import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
|
21
21
|
import * as react_hook_form from 'react-hook-form';
|
|
22
22
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
23
|
|
|
24
|
+
type ImageCardTypes = {
|
|
25
|
+
children: any;
|
|
26
|
+
align?: any;
|
|
27
|
+
bottomElement?: any;
|
|
28
|
+
inCardActions?: any;
|
|
29
|
+
cardImage?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
subtitle?: string;
|
|
32
|
+
blank?: boolean;
|
|
33
|
+
};
|
|
34
|
+
declare const ActionCard: FC<ImageCardTypes>;
|
|
35
|
+
|
|
36
|
+
type AdCardTypes = {
|
|
37
|
+
orientation: "vertical" | "horizontal";
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
imageURL: string;
|
|
41
|
+
handleHide?: any;
|
|
42
|
+
handleCantHide?: () => void;
|
|
43
|
+
canHide: boolean;
|
|
44
|
+
};
|
|
45
|
+
declare const AdCard: FC<AdCardTypes>;
|
|
46
|
+
|
|
47
|
+
type PricingCardTypes = {
|
|
48
|
+
direction?: "rtl" | "ltr";
|
|
49
|
+
features: {
|
|
50
|
+
included: boolean;
|
|
51
|
+
text: string;
|
|
52
|
+
}[];
|
|
53
|
+
price: number;
|
|
54
|
+
texts: {
|
|
55
|
+
title: string;
|
|
56
|
+
subtitle: string;
|
|
57
|
+
buttonText: string;
|
|
58
|
+
cycleText: string;
|
|
59
|
+
currencyText: string;
|
|
60
|
+
};
|
|
61
|
+
onPlanClicked?: () => void;
|
|
62
|
+
currentPlan?: boolean;
|
|
63
|
+
size: "small" | "medium" | "large";
|
|
64
|
+
};
|
|
65
|
+
declare const PricingCard: FC<PricingCardTypes>;
|
|
66
|
+
|
|
24
67
|
declare const buttonVariants: (props?: ({
|
|
25
68
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
26
69
|
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
@@ -169,6 +212,7 @@ type RadioTypes = {
|
|
|
169
212
|
width?: "default" | "full";
|
|
170
213
|
onChangeTab?: any;
|
|
171
214
|
defaultValue?: any;
|
|
215
|
+
direction?: "rtl" | "ltr";
|
|
172
216
|
};
|
|
173
217
|
declare const Radio: FC<RadioTypes>;
|
|
174
218
|
|
|
@@ -302,18 +346,6 @@ type PinInputTypes = {
|
|
|
302
346
|
};
|
|
303
347
|
declare const PinInput: FC<PinInputTypes>;
|
|
304
348
|
|
|
305
|
-
type ImageCardTypes = {
|
|
306
|
-
children: any;
|
|
307
|
-
align?: any;
|
|
308
|
-
bottomElement?: any;
|
|
309
|
-
inCardActions?: any;
|
|
310
|
-
cardImage?: string;
|
|
311
|
-
title?: string;
|
|
312
|
-
subtitle?: string;
|
|
313
|
-
blank?: boolean;
|
|
314
|
-
};
|
|
315
|
-
declare const ActionCard: FC<ImageCardTypes>;
|
|
316
|
-
|
|
317
349
|
type FileDropzoneTypes = {
|
|
318
350
|
/** The text label above the component. Consistant with the other form input fields */
|
|
319
351
|
label?: string;
|
|
@@ -494,14 +526,14 @@ type TextFieldTypes = {
|
|
|
494
526
|
declare const Input: FC<TextFieldTypes>;
|
|
495
527
|
|
|
496
528
|
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
497
|
-
orientation?: "
|
|
529
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
498
530
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
499
531
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
500
532
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
501
533
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
502
534
|
|
|
503
535
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
504
|
-
orientation?: "
|
|
536
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
505
537
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
506
538
|
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
507
539
|
|
|
@@ -1083,6 +1115,136 @@ type TNoPermission = {
|
|
|
1083
1115
|
};
|
|
1084
1116
|
declare const NoPermission: FC<TNoPermission>;
|
|
1085
1117
|
|
|
1118
|
+
type PricingPlansTypes = {
|
|
1119
|
+
plans: [
|
|
1120
|
+
{
|
|
1121
|
+
direction: "rtl" | "ltr";
|
|
1122
|
+
features: [{
|
|
1123
|
+
included: boolean;
|
|
1124
|
+
text: string;
|
|
1125
|
+
}];
|
|
1126
|
+
price: number;
|
|
1127
|
+
texts: {
|
|
1128
|
+
title: string;
|
|
1129
|
+
subtitle: string;
|
|
1130
|
+
buttonText: string;
|
|
1131
|
+
cycleText: string;
|
|
1132
|
+
currencyText: string;
|
|
1133
|
+
};
|
|
1134
|
+
size: "small" | "medium" | "large";
|
|
1135
|
+
}
|
|
1136
|
+
];
|
|
1137
|
+
currencies: [
|
|
1138
|
+
{
|
|
1139
|
+
label: string;
|
|
1140
|
+
value: string;
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
1143
|
+
billingCycles: [
|
|
1144
|
+
{
|
|
1145
|
+
label: string;
|
|
1146
|
+
value: string;
|
|
1147
|
+
}
|
|
1148
|
+
];
|
|
1149
|
+
onPlanClicked?: (e: any) => void;
|
|
1150
|
+
currentCycle: {
|
|
1151
|
+
label: string;
|
|
1152
|
+
value: string;
|
|
1153
|
+
};
|
|
1154
|
+
currentCurrency: {
|
|
1155
|
+
label: string;
|
|
1156
|
+
value: string;
|
|
1157
|
+
};
|
|
1158
|
+
onCycleChange?: (e: any) => void;
|
|
1159
|
+
onCurrencyChange?: (e: any) => void;
|
|
1160
|
+
direction?: "rtl" | "ltr";
|
|
1161
|
+
};
|
|
1162
|
+
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1163
|
+
|
|
1164
|
+
type ComparingPlansTypes = {
|
|
1165
|
+
plans: [
|
|
1166
|
+
{
|
|
1167
|
+
direction: "rtl" | "ltr";
|
|
1168
|
+
features: [{
|
|
1169
|
+
included: boolean;
|
|
1170
|
+
text: string;
|
|
1171
|
+
description?: string;
|
|
1172
|
+
}];
|
|
1173
|
+
price: number;
|
|
1174
|
+
texts: {
|
|
1175
|
+
title: string;
|
|
1176
|
+
subtitle: string;
|
|
1177
|
+
buttonText: string;
|
|
1178
|
+
cycleText: string;
|
|
1179
|
+
currencyText: string;
|
|
1180
|
+
};
|
|
1181
|
+
size: "small" | "medium" | "large";
|
|
1182
|
+
}
|
|
1183
|
+
];
|
|
1184
|
+
currencies: [
|
|
1185
|
+
{
|
|
1186
|
+
label: string;
|
|
1187
|
+
value: string;
|
|
1188
|
+
}
|
|
1189
|
+
];
|
|
1190
|
+
billingCycles: [
|
|
1191
|
+
{
|
|
1192
|
+
label: string;
|
|
1193
|
+
value: string;
|
|
1194
|
+
}
|
|
1195
|
+
];
|
|
1196
|
+
onCycleChange?: (e: any) => void;
|
|
1197
|
+
onCurrencyChange?: (e: any) => void;
|
|
1198
|
+
direction?: "rtl" | "ltr";
|
|
1199
|
+
};
|
|
1200
|
+
declare const ComparingPlans: FC<ComparingPlansTypes>;
|
|
1201
|
+
|
|
1202
|
+
type HorizontalPricingTypes = {
|
|
1203
|
+
plans: [
|
|
1204
|
+
{
|
|
1205
|
+
direction: "rtl" | "ltr";
|
|
1206
|
+
features: [{
|
|
1207
|
+
included: boolean;
|
|
1208
|
+
text: string;
|
|
1209
|
+
}];
|
|
1210
|
+
price: number;
|
|
1211
|
+
texts: {
|
|
1212
|
+
title: string;
|
|
1213
|
+
subtitle: string;
|
|
1214
|
+
buttonText: string;
|
|
1215
|
+
cycleText: string;
|
|
1216
|
+
currencyText: string;
|
|
1217
|
+
};
|
|
1218
|
+
size: "small" | "medium" | "large";
|
|
1219
|
+
}
|
|
1220
|
+
];
|
|
1221
|
+
currencies: [
|
|
1222
|
+
{
|
|
1223
|
+
label: string;
|
|
1224
|
+
value: string;
|
|
1225
|
+
}
|
|
1226
|
+
];
|
|
1227
|
+
billingCycles: [
|
|
1228
|
+
{
|
|
1229
|
+
label: string;
|
|
1230
|
+
value: string;
|
|
1231
|
+
}
|
|
1232
|
+
];
|
|
1233
|
+
onPlanClicked?: (e: any) => void;
|
|
1234
|
+
currentCycle: {
|
|
1235
|
+
label: string;
|
|
1236
|
+
value: string;
|
|
1237
|
+
};
|
|
1238
|
+
currentCurrency: {
|
|
1239
|
+
label: string;
|
|
1240
|
+
value: string;
|
|
1241
|
+
};
|
|
1242
|
+
onCycleChange?: (e: any) => void;
|
|
1243
|
+
onCurrencyChange?: (e: any) => void;
|
|
1244
|
+
direction?: "rtl" | "ltr";
|
|
1245
|
+
};
|
|
1246
|
+
declare const HorizontalPricing: FC<HorizontalPricingTypes>;
|
|
1247
|
+
|
|
1086
1248
|
type UsageCardTypes = {
|
|
1087
1249
|
tooltip?: any;
|
|
1088
1250
|
title: any;
|
|
@@ -1091,4 +1253,4 @@ type UsageCardTypes = {
|
|
|
1091
1253
|
};
|
|
1092
1254
|
declare const Usage: FC<UsageCardTypes>;
|
|
1093
1255
|
|
|
1094
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, 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, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UserReferralSource, buttonVariants, useFormField };
|
|
1256
|
+
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, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UserReferralSource, buttonVariants, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import React__default, { FC, ReactNode, ChangeEvent, RefObject, PropsWithRef } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
@@ -21,6 +21,49 @@ import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
|
21
21
|
import * as react_hook_form from 'react-hook-form';
|
|
22
22
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
23
23
|
|
|
24
|
+
type ImageCardTypes = {
|
|
25
|
+
children: any;
|
|
26
|
+
align?: any;
|
|
27
|
+
bottomElement?: any;
|
|
28
|
+
inCardActions?: any;
|
|
29
|
+
cardImage?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
subtitle?: string;
|
|
32
|
+
blank?: boolean;
|
|
33
|
+
};
|
|
34
|
+
declare const ActionCard: FC<ImageCardTypes>;
|
|
35
|
+
|
|
36
|
+
type AdCardTypes = {
|
|
37
|
+
orientation: "vertical" | "horizontal";
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
imageURL: string;
|
|
41
|
+
handleHide?: any;
|
|
42
|
+
handleCantHide?: () => void;
|
|
43
|
+
canHide: boolean;
|
|
44
|
+
};
|
|
45
|
+
declare const AdCard: FC<AdCardTypes>;
|
|
46
|
+
|
|
47
|
+
type PricingCardTypes = {
|
|
48
|
+
direction?: "rtl" | "ltr";
|
|
49
|
+
features: {
|
|
50
|
+
included: boolean;
|
|
51
|
+
text: string;
|
|
52
|
+
}[];
|
|
53
|
+
price: number;
|
|
54
|
+
texts: {
|
|
55
|
+
title: string;
|
|
56
|
+
subtitle: string;
|
|
57
|
+
buttonText: string;
|
|
58
|
+
cycleText: string;
|
|
59
|
+
currencyText: string;
|
|
60
|
+
};
|
|
61
|
+
onPlanClicked?: () => void;
|
|
62
|
+
currentPlan?: boolean;
|
|
63
|
+
size: "small" | "medium" | "large";
|
|
64
|
+
};
|
|
65
|
+
declare const PricingCard: FC<PricingCardTypes>;
|
|
66
|
+
|
|
24
67
|
declare const buttonVariants: (props?: ({
|
|
25
68
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
26
69
|
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
@@ -169,6 +212,7 @@ type RadioTypes = {
|
|
|
169
212
|
width?: "default" | "full";
|
|
170
213
|
onChangeTab?: any;
|
|
171
214
|
defaultValue?: any;
|
|
215
|
+
direction?: "rtl" | "ltr";
|
|
172
216
|
};
|
|
173
217
|
declare const Radio: FC<RadioTypes>;
|
|
174
218
|
|
|
@@ -302,18 +346,6 @@ type PinInputTypes = {
|
|
|
302
346
|
};
|
|
303
347
|
declare const PinInput: FC<PinInputTypes>;
|
|
304
348
|
|
|
305
|
-
type ImageCardTypes = {
|
|
306
|
-
children: any;
|
|
307
|
-
align?: any;
|
|
308
|
-
bottomElement?: any;
|
|
309
|
-
inCardActions?: any;
|
|
310
|
-
cardImage?: string;
|
|
311
|
-
title?: string;
|
|
312
|
-
subtitle?: string;
|
|
313
|
-
blank?: boolean;
|
|
314
|
-
};
|
|
315
|
-
declare const ActionCard: FC<ImageCardTypes>;
|
|
316
|
-
|
|
317
349
|
type FileDropzoneTypes = {
|
|
318
350
|
/** The text label above the component. Consistant with the other form input fields */
|
|
319
351
|
label?: string;
|
|
@@ -494,14 +526,14 @@ type TextFieldTypes = {
|
|
|
494
526
|
declare const Input: FC<TextFieldTypes>;
|
|
495
527
|
|
|
496
528
|
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
497
|
-
orientation?: "
|
|
529
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
498
530
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
499
531
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
500
532
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
501
533
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
502
534
|
|
|
503
535
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
504
|
-
orientation?: "
|
|
536
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
505
537
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
506
538
|
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
507
539
|
|
|
@@ -1083,6 +1115,136 @@ type TNoPermission = {
|
|
|
1083
1115
|
};
|
|
1084
1116
|
declare const NoPermission: FC<TNoPermission>;
|
|
1085
1117
|
|
|
1118
|
+
type PricingPlansTypes = {
|
|
1119
|
+
plans: [
|
|
1120
|
+
{
|
|
1121
|
+
direction: "rtl" | "ltr";
|
|
1122
|
+
features: [{
|
|
1123
|
+
included: boolean;
|
|
1124
|
+
text: string;
|
|
1125
|
+
}];
|
|
1126
|
+
price: number;
|
|
1127
|
+
texts: {
|
|
1128
|
+
title: string;
|
|
1129
|
+
subtitle: string;
|
|
1130
|
+
buttonText: string;
|
|
1131
|
+
cycleText: string;
|
|
1132
|
+
currencyText: string;
|
|
1133
|
+
};
|
|
1134
|
+
size: "small" | "medium" | "large";
|
|
1135
|
+
}
|
|
1136
|
+
];
|
|
1137
|
+
currencies: [
|
|
1138
|
+
{
|
|
1139
|
+
label: string;
|
|
1140
|
+
value: string;
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
1143
|
+
billingCycles: [
|
|
1144
|
+
{
|
|
1145
|
+
label: string;
|
|
1146
|
+
value: string;
|
|
1147
|
+
}
|
|
1148
|
+
];
|
|
1149
|
+
onPlanClicked?: (e: any) => void;
|
|
1150
|
+
currentCycle: {
|
|
1151
|
+
label: string;
|
|
1152
|
+
value: string;
|
|
1153
|
+
};
|
|
1154
|
+
currentCurrency: {
|
|
1155
|
+
label: string;
|
|
1156
|
+
value: string;
|
|
1157
|
+
};
|
|
1158
|
+
onCycleChange?: (e: any) => void;
|
|
1159
|
+
onCurrencyChange?: (e: any) => void;
|
|
1160
|
+
direction?: "rtl" | "ltr";
|
|
1161
|
+
};
|
|
1162
|
+
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1163
|
+
|
|
1164
|
+
type ComparingPlansTypes = {
|
|
1165
|
+
plans: [
|
|
1166
|
+
{
|
|
1167
|
+
direction: "rtl" | "ltr";
|
|
1168
|
+
features: [{
|
|
1169
|
+
included: boolean;
|
|
1170
|
+
text: string;
|
|
1171
|
+
description?: string;
|
|
1172
|
+
}];
|
|
1173
|
+
price: number;
|
|
1174
|
+
texts: {
|
|
1175
|
+
title: string;
|
|
1176
|
+
subtitle: string;
|
|
1177
|
+
buttonText: string;
|
|
1178
|
+
cycleText: string;
|
|
1179
|
+
currencyText: string;
|
|
1180
|
+
};
|
|
1181
|
+
size: "small" | "medium" | "large";
|
|
1182
|
+
}
|
|
1183
|
+
];
|
|
1184
|
+
currencies: [
|
|
1185
|
+
{
|
|
1186
|
+
label: string;
|
|
1187
|
+
value: string;
|
|
1188
|
+
}
|
|
1189
|
+
];
|
|
1190
|
+
billingCycles: [
|
|
1191
|
+
{
|
|
1192
|
+
label: string;
|
|
1193
|
+
value: string;
|
|
1194
|
+
}
|
|
1195
|
+
];
|
|
1196
|
+
onCycleChange?: (e: any) => void;
|
|
1197
|
+
onCurrencyChange?: (e: any) => void;
|
|
1198
|
+
direction?: "rtl" | "ltr";
|
|
1199
|
+
};
|
|
1200
|
+
declare const ComparingPlans: FC<ComparingPlansTypes>;
|
|
1201
|
+
|
|
1202
|
+
type HorizontalPricingTypes = {
|
|
1203
|
+
plans: [
|
|
1204
|
+
{
|
|
1205
|
+
direction: "rtl" | "ltr";
|
|
1206
|
+
features: [{
|
|
1207
|
+
included: boolean;
|
|
1208
|
+
text: string;
|
|
1209
|
+
}];
|
|
1210
|
+
price: number;
|
|
1211
|
+
texts: {
|
|
1212
|
+
title: string;
|
|
1213
|
+
subtitle: string;
|
|
1214
|
+
buttonText: string;
|
|
1215
|
+
cycleText: string;
|
|
1216
|
+
currencyText: string;
|
|
1217
|
+
};
|
|
1218
|
+
size: "small" | "medium" | "large";
|
|
1219
|
+
}
|
|
1220
|
+
];
|
|
1221
|
+
currencies: [
|
|
1222
|
+
{
|
|
1223
|
+
label: string;
|
|
1224
|
+
value: string;
|
|
1225
|
+
}
|
|
1226
|
+
];
|
|
1227
|
+
billingCycles: [
|
|
1228
|
+
{
|
|
1229
|
+
label: string;
|
|
1230
|
+
value: string;
|
|
1231
|
+
}
|
|
1232
|
+
];
|
|
1233
|
+
onPlanClicked?: (e: any) => void;
|
|
1234
|
+
currentCycle: {
|
|
1235
|
+
label: string;
|
|
1236
|
+
value: string;
|
|
1237
|
+
};
|
|
1238
|
+
currentCurrency: {
|
|
1239
|
+
label: string;
|
|
1240
|
+
value: string;
|
|
1241
|
+
};
|
|
1242
|
+
onCycleChange?: (e: any) => void;
|
|
1243
|
+
onCurrencyChange?: (e: any) => void;
|
|
1244
|
+
direction?: "rtl" | "ltr";
|
|
1245
|
+
};
|
|
1246
|
+
declare const HorizontalPricing: FC<HorizontalPricingTypes>;
|
|
1247
|
+
|
|
1086
1248
|
type UsageCardTypes = {
|
|
1087
1249
|
tooltip?: any;
|
|
1088
1250
|
title: any;
|
|
@@ -1091,4 +1253,4 @@ type UsageCardTypes = {
|
|
|
1091
1253
|
};
|
|
1092
1254
|
declare const Usage: FC<UsageCardTypes>;
|
|
1093
1255
|
|
|
1094
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, 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, Copyrights, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, SubItem$2 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UserReferralSource, buttonVariants, useFormField };
|
|
1256
|
+
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, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, Usage, UserReferralSource, buttonVariants, useFormField };
|