@sikka/hawa 0.11.13-next → 0.11.15-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 +59 -6
- package/dist/index.d.mts +82 -67
- package/dist/index.d.ts +82 -67
- package/dist/index.js +366 -172
- package/dist/index.mjs +571 -386
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -728,6 +728,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
728
728
|
.hawa-inset-0 {
|
|
729
729
|
inset: 0px;
|
|
730
730
|
}
|
|
731
|
+
.hawa-inset-x-0 {
|
|
732
|
+
left: 0px;
|
|
733
|
+
right: 0px;
|
|
734
|
+
}
|
|
735
|
+
.hawa-inset-y-0 {
|
|
736
|
+
top: 0px;
|
|
737
|
+
bottom: 0px;
|
|
738
|
+
}
|
|
731
739
|
.hawa--left-1 {
|
|
732
740
|
left: -0.25rem;
|
|
733
741
|
}
|
|
@@ -1772,8 +1780,8 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1772
1780
|
.hawa-border-l-0 {
|
|
1773
1781
|
border-left-width: 0px;
|
|
1774
1782
|
}
|
|
1775
|
-
.hawa-border-l-
|
|
1776
|
-
border-left-width:
|
|
1783
|
+
.hawa-border-l-4 {
|
|
1784
|
+
border-left-width: 4px;
|
|
1777
1785
|
}
|
|
1778
1786
|
.hawa-border-r {
|
|
1779
1787
|
border-right-width: 1px;
|
|
@@ -1820,10 +1828,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1820
1828
|
.hawa-border-primary {
|
|
1821
1829
|
border-color: hsl(var(--primary));
|
|
1822
1830
|
}
|
|
1823
|
-
.hawa-border-red-500 {
|
|
1824
|
-
--tw-border-opacity: 1;
|
|
1825
|
-
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
1826
|
-
}
|
|
1827
1831
|
.hawa-border-transparent {
|
|
1828
1832
|
border-color: transparent;
|
|
1829
1833
|
}
|
|
@@ -3173,6 +3177,9 @@ body {
|
|
|
3173
3177
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
3174
3178
|
background-color: hsl(var(--accent));
|
|
3175
3179
|
}
|
|
3180
|
+
.data-\[state\=open\]\:hawa-bg-secondary[data-state=open] {
|
|
3181
|
+
background-color: hsl(var(--secondary));
|
|
3182
|
+
}
|
|
3176
3183
|
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
3177
3184
|
background-color: hsl(var(--muted));
|
|
3178
3185
|
}
|
|
@@ -3196,6 +3203,12 @@ body {
|
|
|
3196
3203
|
.data-\[swipe\=move\]\:hawa-transition-none[data-swipe=move] {
|
|
3197
3204
|
transition-property: none;
|
|
3198
3205
|
}
|
|
3206
|
+
.data-\[state\=closed\]\:hawa-duration-300[data-state=closed] {
|
|
3207
|
+
transition-duration: 300ms;
|
|
3208
|
+
}
|
|
3209
|
+
.data-\[state\=open\]\:hawa-duration-300[data-state=open] {
|
|
3210
|
+
transition-duration: 300ms;
|
|
3211
|
+
}
|
|
3199
3212
|
.data-\[motion\^\=from-\]\:hawa-animate-in[data-motion^=from-] {
|
|
3200
3213
|
animation-name: enter;
|
|
3201
3214
|
animation-duration: 150ms;
|
|
@@ -3313,27 +3326,57 @@ body {
|
|
|
3313
3326
|
.data-\[side\=top\]\:hawa-slide-in-from-bottom-2[data-side=top] {
|
|
3314
3327
|
--tw-enter-translate-y: 0.5rem;
|
|
3315
3328
|
}
|
|
3329
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-bottom[data-state=closed] {
|
|
3330
|
+
--tw-exit-translate-y: 100%;
|
|
3331
|
+
}
|
|
3332
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-left[data-state=closed] {
|
|
3333
|
+
--tw-exit-translate-x: -100%;
|
|
3334
|
+
}
|
|
3316
3335
|
.data-\[state\=closed\]\:hawa-slide-out-to-left-1\/2[data-state=closed] {
|
|
3317
3336
|
--tw-exit-translate-x: -50%;
|
|
3318
3337
|
}
|
|
3319
3338
|
.data-\[state\=closed\]\:hawa-slide-out-to-left-full[data-state=closed] {
|
|
3320
3339
|
--tw-exit-translate-x: -100%;
|
|
3321
3340
|
}
|
|
3341
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-right[data-state=closed] {
|
|
3342
|
+
--tw-exit-translate-x: 100%;
|
|
3343
|
+
}
|
|
3322
3344
|
.data-\[state\=closed\]\:hawa-slide-out-to-right-full[data-state=closed] {
|
|
3323
3345
|
--tw-exit-translate-x: 100%;
|
|
3324
3346
|
}
|
|
3347
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-top[data-state=closed] {
|
|
3348
|
+
--tw-exit-translate-y: -100%;
|
|
3349
|
+
}
|
|
3325
3350
|
.data-\[state\=closed\]\:hawa-slide-out-to-top-\[48\%\][data-state=closed] {
|
|
3326
3351
|
--tw-exit-translate-y: -48%;
|
|
3327
3352
|
}
|
|
3353
|
+
.data-\[state\=open\]\:hawa-slide-in-from-bottom[data-state=open] {
|
|
3354
|
+
--tw-enter-translate-y: 100%;
|
|
3355
|
+
}
|
|
3356
|
+
.data-\[state\=open\]\:hawa-slide-in-from-left[data-state=open] {
|
|
3357
|
+
--tw-enter-translate-x: -100%;
|
|
3358
|
+
}
|
|
3328
3359
|
.data-\[state\=open\]\:hawa-slide-in-from-left-1\/2[data-state=open] {
|
|
3329
3360
|
--tw-enter-translate-x: -50%;
|
|
3330
3361
|
}
|
|
3362
|
+
.data-\[state\=open\]\:hawa-slide-in-from-right[data-state=open] {
|
|
3363
|
+
--tw-enter-translate-x: 100%;
|
|
3364
|
+
}
|
|
3365
|
+
.data-\[state\=open\]\:hawa-slide-in-from-top[data-state=open] {
|
|
3366
|
+
--tw-enter-translate-y: -100%;
|
|
3367
|
+
}
|
|
3331
3368
|
.data-\[state\=open\]\:hawa-slide-in-from-top-\[48\%\][data-state=open] {
|
|
3332
3369
|
--tw-enter-translate-y: -48%;
|
|
3333
3370
|
}
|
|
3334
3371
|
.data-\[state\=open\]\:hawa-slide-in-from-top-full[data-state=open] {
|
|
3335
3372
|
--tw-enter-translate-y: -100%;
|
|
3336
3373
|
}
|
|
3374
|
+
.data-\[state\=closed\]\:hawa-duration-300[data-state=closed] {
|
|
3375
|
+
animation-duration: 300ms;
|
|
3376
|
+
}
|
|
3377
|
+
.data-\[state\=open\]\:hawa-duration-300[data-state=open] {
|
|
3378
|
+
animation-duration: 300ms;
|
|
3379
|
+
}
|
|
3337
3380
|
.hawa-group[data-state=open] .group-data-\[state\=open\]\:hawa-rotate-180 {
|
|
3338
3381
|
--tw-rotate: 180deg;
|
|
3339
3382
|
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));
|
|
@@ -3542,6 +3585,10 @@ body {
|
|
|
3542
3585
|
top: auto;
|
|
3543
3586
|
}
|
|
3544
3587
|
|
|
3588
|
+
.sm\:hawa-max-w-sm {
|
|
3589
|
+
max-width: 24rem;
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3545
3592
|
.sm\:hawa-flex-row {
|
|
3546
3593
|
flex-direction: row;
|
|
3547
3594
|
}
|
|
@@ -3558,6 +3605,12 @@ body {
|
|
|
3558
3605
|
gap: 0.5rem;
|
|
3559
3606
|
}
|
|
3560
3607
|
|
|
3608
|
+
.sm\:hawa-space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
|
3609
|
+
--tw-space-x-reverse: 0;
|
|
3610
|
+
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
3611
|
+
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3561
3614
|
.sm\:hawa-rounded {
|
|
3562
3615
|
border-radius: var(--radius);
|
|
3563
3616
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { FC, ReactNode, ChangeEvent, InputHTMLAttributes, RefObj
|
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import * as
|
|
6
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
7
7
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
@@ -148,17 +148,17 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
148
148
|
}
|
|
149
149
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
150
150
|
|
|
151
|
-
declare const Dialog: React$1.FC<
|
|
152
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<
|
|
153
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<
|
|
151
|
+
declare const Dialog: React$1.FC<SheetPrimitive.DialogProps>;
|
|
152
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
153
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
154
154
|
persist?: boolean | undefined;
|
|
155
155
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
156
156
|
declare const DialogHeader: {
|
|
157
157
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
158
158
|
displayName: string;
|
|
159
159
|
};
|
|
160
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
161
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<
|
|
160
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
161
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
162
162
|
declare const DialogFooter: {
|
|
163
163
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
164
164
|
displayName: string;
|
|
@@ -735,6 +735,28 @@ type TypographyTypes = {
|
|
|
735
735
|
};
|
|
736
736
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
737
737
|
|
|
738
|
+
declare const Sheet: React$1.FC<SheetPrimitive.DialogProps>;
|
|
739
|
+
declare const SheetTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
740
|
+
declare const SheetClose: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
741
|
+
declare const SheetPortal: React$1.FC<SheetPrimitive.DialogPortalProps>;
|
|
742
|
+
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
743
|
+
declare const sheetVariants: (props?: ({
|
|
744
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
745
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
746
|
+
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
747
|
+
}
|
|
748
|
+
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
749
|
+
declare const SheetHeader: {
|
|
750
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
751
|
+
displayName: string;
|
|
752
|
+
};
|
|
753
|
+
declare const SheetFooter: {
|
|
754
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
755
|
+
displayName: string;
|
|
756
|
+
};
|
|
757
|
+
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
758
|
+
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
759
|
+
|
|
738
760
|
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
739
761
|
type NavMenuItemTypes = {
|
|
740
762
|
icon?: any;
|
|
@@ -979,28 +1001,58 @@ type ThirdPartyAuthTextsTypes = {
|
|
|
979
1001
|
continueWithEmail?: string;
|
|
980
1002
|
continueWithPhone?: string;
|
|
981
1003
|
};
|
|
982
|
-
|
|
1004
|
+
type BaseInputType = {
|
|
1005
|
+
label?: string;
|
|
1006
|
+
placeholder?: string;
|
|
1007
|
+
};
|
|
1008
|
+
type ValidationTexts = {
|
|
1009
|
+
required?: string;
|
|
1010
|
+
invalid?: string;
|
|
1011
|
+
};
|
|
1012
|
+
type TextInputType = ValidationTexts & {
|
|
1013
|
+
label?: string;
|
|
1014
|
+
placeholder?: string;
|
|
1015
|
+
};
|
|
1016
|
+
type PasswordInputType = BaseInputType & {
|
|
1017
|
+
required?: string;
|
|
1018
|
+
tooShort?: string;
|
|
1019
|
+
};
|
|
1020
|
+
type UsernameInputType = TextInputType & {
|
|
1021
|
+
tooShort?: string;
|
|
1022
|
+
};
|
|
1023
|
+
type ConfirmInputType = BaseInputType & {
|
|
1024
|
+
required?: string;
|
|
1025
|
+
dontMatch?: string;
|
|
1026
|
+
};
|
|
983
1027
|
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
usernameLabel?: string;
|
|
989
|
-
usernamePlaceholder?: string;
|
|
990
|
-
usernameRequired?: string;
|
|
991
|
-
usernameInvalid?: string;
|
|
992
|
-
phoneRequired?: string;
|
|
993
|
-
phoneInvalid?: string;
|
|
994
|
-
phoneLabel?: string;
|
|
995
|
-
passwordLabel?: string;
|
|
996
|
-
passwordPlaceholder?: string;
|
|
997
|
-
passwordRequired?: string;
|
|
998
|
-
passwordTooShort?: string;
|
|
1028
|
+
email?: TextInputType;
|
|
1029
|
+
username?: UsernameInputType;
|
|
1030
|
+
phone?: TextInputType;
|
|
1031
|
+
password?: PasswordInputType;
|
|
999
1032
|
forgotPassword?: string;
|
|
1000
1033
|
newUserText?: string;
|
|
1001
1034
|
createAccount?: string;
|
|
1002
1035
|
loginText?: string;
|
|
1003
1036
|
};
|
|
1037
|
+
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1038
|
+
fullNameLabel: string;
|
|
1039
|
+
fullNamePlaceholder: string;
|
|
1040
|
+
email?: TextInputType;
|
|
1041
|
+
username?: UsernameInputType;
|
|
1042
|
+
password?: PasswordInputType;
|
|
1043
|
+
confirm?: ConfirmInputType;
|
|
1044
|
+
userReference: BaseInputType;
|
|
1045
|
+
subscribeToNewsletter: string;
|
|
1046
|
+
termsRequired: string;
|
|
1047
|
+
refCode: string;
|
|
1048
|
+
refCodePlaceholder: string;
|
|
1049
|
+
existingUserText: string;
|
|
1050
|
+
termsText: string;
|
|
1051
|
+
iAcceptText: string;
|
|
1052
|
+
registerText: string;
|
|
1053
|
+
loginText: string;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1004
1056
|
type LoginFormTypes = {
|
|
1005
1057
|
texts?: LoginFormTextsTypes;
|
|
1006
1058
|
/** Function to handle language change. */
|
|
@@ -1059,37 +1111,6 @@ type LoginFormTypes = {
|
|
|
1059
1111
|
};
|
|
1060
1112
|
declare const LoginForm: FC<LoginFormTypes>;
|
|
1061
1113
|
|
|
1062
|
-
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1063
|
-
fullNameLabel: string;
|
|
1064
|
-
fullNamePlaceholder: string;
|
|
1065
|
-
emailLabel: string;
|
|
1066
|
-
emailPlaceholder: string;
|
|
1067
|
-
emailRequired: string;
|
|
1068
|
-
emailInvalid: string;
|
|
1069
|
-
usernameLabel: string;
|
|
1070
|
-
usernamePlaceholder: string;
|
|
1071
|
-
usernameInvalid: string;
|
|
1072
|
-
usernameRequired: string;
|
|
1073
|
-
passwordLabel: string;
|
|
1074
|
-
passwordPlaceholder: string;
|
|
1075
|
-
passwordRequired: string;
|
|
1076
|
-
passwordTooShort: string;
|
|
1077
|
-
passwordsDontMatch: string;
|
|
1078
|
-
confirmPasswordLabel: string;
|
|
1079
|
-
confirmPasswordPlaceholder: string;
|
|
1080
|
-
confirmPasswordRequired: string;
|
|
1081
|
-
subscribeToNewsletter: string;
|
|
1082
|
-
termsRequired: string;
|
|
1083
|
-
refCode: string;
|
|
1084
|
-
refCodePlaceholder: string;
|
|
1085
|
-
userReferenceLabel: string;
|
|
1086
|
-
userReferencePlaceholder: string;
|
|
1087
|
-
existingUserText: string;
|
|
1088
|
-
termsText: string;
|
|
1089
|
-
iAcceptText: string;
|
|
1090
|
-
registerText: string;
|
|
1091
|
-
loginText: string;
|
|
1092
|
-
};
|
|
1093
1114
|
type RegisterFormTypes = {
|
|
1094
1115
|
/** Object containing text labels used throughout the form. */
|
|
1095
1116
|
texts: RegisterFormTextsTypes;
|
|
@@ -1156,18 +1177,12 @@ type RegisterFormTypes = {
|
|
|
1156
1177
|
};
|
|
1157
1178
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
|
1158
1179
|
|
|
1180
|
+
type AppLandingTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1181
|
+
newUserText?: string;
|
|
1182
|
+
createAccount?: string;
|
|
1183
|
+
};
|
|
1159
1184
|
type AppLandingTypes = {
|
|
1160
|
-
texts?:
|
|
1161
|
-
newUserText?: string;
|
|
1162
|
-
createAccount?: string;
|
|
1163
|
-
continueWithGoogle?: string;
|
|
1164
|
-
continueWithTwitter?: string;
|
|
1165
|
-
continueWithApple?: string;
|
|
1166
|
-
continueWithMicrosoft?: string;
|
|
1167
|
-
continueWithGithub?: string;
|
|
1168
|
-
continueWithEmail?: string;
|
|
1169
|
-
continueWithPhone?: string;
|
|
1170
|
-
};
|
|
1185
|
+
texts?: AppLandingTextsTypes;
|
|
1171
1186
|
viaGoogle?: boolean;
|
|
1172
1187
|
viaTwitter?: boolean;
|
|
1173
1188
|
viaGithub?: boolean;
|
|
@@ -1209,13 +1224,13 @@ type NewPasswordTypes = {
|
|
|
1209
1224
|
allowRegister?: boolean;
|
|
1210
1225
|
passwordChanged: any;
|
|
1211
1226
|
texts: {
|
|
1212
|
-
updatePassword: string;
|
|
1213
1227
|
passwordPlaceholder: string;
|
|
1214
1228
|
passwordRequired: string;
|
|
1215
1229
|
passwordLabel: string;
|
|
1216
1230
|
passwordMatchError: string;
|
|
1217
|
-
passwordChanged: string;
|
|
1218
1231
|
passwordTooShort: string;
|
|
1232
|
+
updatePassword: string;
|
|
1233
|
+
passwordChanged: string;
|
|
1219
1234
|
confirmPasswordPlaceholder: string;
|
|
1220
1235
|
confirmPasswordLabel: string;
|
|
1221
1236
|
confirmPasswordRequired: string;
|
|
@@ -1592,4 +1607,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1592
1607
|
handleTabChange: (index: any) => void;
|
|
1593
1608
|
};
|
|
1594
1609
|
|
|
1595
|
-
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, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm,
|
|
1610
|
+
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, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, 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, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React__default, { FC, ReactNode, ChangeEvent, InputHTMLAttributes, RefObj
|
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import * as
|
|
6
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
7
7
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
8
8
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
9
9
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
@@ -148,17 +148,17 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
148
148
|
}
|
|
149
149
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
150
150
|
|
|
151
|
-
declare const Dialog: React$1.FC<
|
|
152
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<
|
|
153
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<
|
|
151
|
+
declare const Dialog: React$1.FC<SheetPrimitive.DialogProps>;
|
|
152
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
153
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
154
154
|
persist?: boolean | undefined;
|
|
155
155
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
156
156
|
declare const DialogHeader: {
|
|
157
157
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
158
158
|
displayName: string;
|
|
159
159
|
};
|
|
160
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<
|
|
161
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<
|
|
160
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
161
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
162
162
|
declare const DialogFooter: {
|
|
163
163
|
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
164
164
|
displayName: string;
|
|
@@ -735,6 +735,28 @@ type TypographyTypes = {
|
|
|
735
735
|
};
|
|
736
736
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
737
737
|
|
|
738
|
+
declare const Sheet: React$1.FC<SheetPrimitive.DialogProps>;
|
|
739
|
+
declare const SheetTrigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
740
|
+
declare const SheetClose: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
741
|
+
declare const SheetPortal: React$1.FC<SheetPrimitive.DialogPortalProps>;
|
|
742
|
+
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
743
|
+
declare const sheetVariants: (props?: ({
|
|
744
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
745
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
746
|
+
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
747
|
+
}
|
|
748
|
+
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
749
|
+
declare const SheetHeader: {
|
|
750
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
751
|
+
displayName: string;
|
|
752
|
+
};
|
|
753
|
+
declare const SheetFooter: {
|
|
754
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
755
|
+
displayName: string;
|
|
756
|
+
};
|
|
757
|
+
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
758
|
+
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
759
|
+
|
|
738
760
|
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
739
761
|
type NavMenuItemTypes = {
|
|
740
762
|
icon?: any;
|
|
@@ -979,28 +1001,58 @@ type ThirdPartyAuthTextsTypes = {
|
|
|
979
1001
|
continueWithEmail?: string;
|
|
980
1002
|
continueWithPhone?: string;
|
|
981
1003
|
};
|
|
982
|
-
|
|
1004
|
+
type BaseInputType = {
|
|
1005
|
+
label?: string;
|
|
1006
|
+
placeholder?: string;
|
|
1007
|
+
};
|
|
1008
|
+
type ValidationTexts = {
|
|
1009
|
+
required?: string;
|
|
1010
|
+
invalid?: string;
|
|
1011
|
+
};
|
|
1012
|
+
type TextInputType = ValidationTexts & {
|
|
1013
|
+
label?: string;
|
|
1014
|
+
placeholder?: string;
|
|
1015
|
+
};
|
|
1016
|
+
type PasswordInputType = BaseInputType & {
|
|
1017
|
+
required?: string;
|
|
1018
|
+
tooShort?: string;
|
|
1019
|
+
};
|
|
1020
|
+
type UsernameInputType = TextInputType & {
|
|
1021
|
+
tooShort?: string;
|
|
1022
|
+
};
|
|
1023
|
+
type ConfirmInputType = BaseInputType & {
|
|
1024
|
+
required?: string;
|
|
1025
|
+
dontMatch?: string;
|
|
1026
|
+
};
|
|
983
1027
|
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
usernameLabel?: string;
|
|
989
|
-
usernamePlaceholder?: string;
|
|
990
|
-
usernameRequired?: string;
|
|
991
|
-
usernameInvalid?: string;
|
|
992
|
-
phoneRequired?: string;
|
|
993
|
-
phoneInvalid?: string;
|
|
994
|
-
phoneLabel?: string;
|
|
995
|
-
passwordLabel?: string;
|
|
996
|
-
passwordPlaceholder?: string;
|
|
997
|
-
passwordRequired?: string;
|
|
998
|
-
passwordTooShort?: string;
|
|
1028
|
+
email?: TextInputType;
|
|
1029
|
+
username?: UsernameInputType;
|
|
1030
|
+
phone?: TextInputType;
|
|
1031
|
+
password?: PasswordInputType;
|
|
999
1032
|
forgotPassword?: string;
|
|
1000
1033
|
newUserText?: string;
|
|
1001
1034
|
createAccount?: string;
|
|
1002
1035
|
loginText?: string;
|
|
1003
1036
|
};
|
|
1037
|
+
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1038
|
+
fullNameLabel: string;
|
|
1039
|
+
fullNamePlaceholder: string;
|
|
1040
|
+
email?: TextInputType;
|
|
1041
|
+
username?: UsernameInputType;
|
|
1042
|
+
password?: PasswordInputType;
|
|
1043
|
+
confirm?: ConfirmInputType;
|
|
1044
|
+
userReference: BaseInputType;
|
|
1045
|
+
subscribeToNewsletter: string;
|
|
1046
|
+
termsRequired: string;
|
|
1047
|
+
refCode: string;
|
|
1048
|
+
refCodePlaceholder: string;
|
|
1049
|
+
existingUserText: string;
|
|
1050
|
+
termsText: string;
|
|
1051
|
+
iAcceptText: string;
|
|
1052
|
+
registerText: string;
|
|
1053
|
+
loginText: string;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1004
1056
|
type LoginFormTypes = {
|
|
1005
1057
|
texts?: LoginFormTextsTypes;
|
|
1006
1058
|
/** Function to handle language change. */
|
|
@@ -1059,37 +1111,6 @@ type LoginFormTypes = {
|
|
|
1059
1111
|
};
|
|
1060
1112
|
declare const LoginForm: FC<LoginFormTypes>;
|
|
1061
1113
|
|
|
1062
|
-
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1063
|
-
fullNameLabel: string;
|
|
1064
|
-
fullNamePlaceholder: string;
|
|
1065
|
-
emailLabel: string;
|
|
1066
|
-
emailPlaceholder: string;
|
|
1067
|
-
emailRequired: string;
|
|
1068
|
-
emailInvalid: string;
|
|
1069
|
-
usernameLabel: string;
|
|
1070
|
-
usernamePlaceholder: string;
|
|
1071
|
-
usernameInvalid: string;
|
|
1072
|
-
usernameRequired: string;
|
|
1073
|
-
passwordLabel: string;
|
|
1074
|
-
passwordPlaceholder: string;
|
|
1075
|
-
passwordRequired: string;
|
|
1076
|
-
passwordTooShort: string;
|
|
1077
|
-
passwordsDontMatch: string;
|
|
1078
|
-
confirmPasswordLabel: string;
|
|
1079
|
-
confirmPasswordPlaceholder: string;
|
|
1080
|
-
confirmPasswordRequired: string;
|
|
1081
|
-
subscribeToNewsletter: string;
|
|
1082
|
-
termsRequired: string;
|
|
1083
|
-
refCode: string;
|
|
1084
|
-
refCodePlaceholder: string;
|
|
1085
|
-
userReferenceLabel: string;
|
|
1086
|
-
userReferencePlaceholder: string;
|
|
1087
|
-
existingUserText: string;
|
|
1088
|
-
termsText: string;
|
|
1089
|
-
iAcceptText: string;
|
|
1090
|
-
registerText: string;
|
|
1091
|
-
loginText: string;
|
|
1092
|
-
};
|
|
1093
1114
|
type RegisterFormTypes = {
|
|
1094
1115
|
/** Object containing text labels used throughout the form. */
|
|
1095
1116
|
texts: RegisterFormTextsTypes;
|
|
@@ -1156,18 +1177,12 @@ type RegisterFormTypes = {
|
|
|
1156
1177
|
};
|
|
1157
1178
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
|
1158
1179
|
|
|
1180
|
+
type AppLandingTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1181
|
+
newUserText?: string;
|
|
1182
|
+
createAccount?: string;
|
|
1183
|
+
};
|
|
1159
1184
|
type AppLandingTypes = {
|
|
1160
|
-
texts?:
|
|
1161
|
-
newUserText?: string;
|
|
1162
|
-
createAccount?: string;
|
|
1163
|
-
continueWithGoogle?: string;
|
|
1164
|
-
continueWithTwitter?: string;
|
|
1165
|
-
continueWithApple?: string;
|
|
1166
|
-
continueWithMicrosoft?: string;
|
|
1167
|
-
continueWithGithub?: string;
|
|
1168
|
-
continueWithEmail?: string;
|
|
1169
|
-
continueWithPhone?: string;
|
|
1170
|
-
};
|
|
1185
|
+
texts?: AppLandingTextsTypes;
|
|
1171
1186
|
viaGoogle?: boolean;
|
|
1172
1187
|
viaTwitter?: boolean;
|
|
1173
1188
|
viaGithub?: boolean;
|
|
@@ -1209,13 +1224,13 @@ type NewPasswordTypes = {
|
|
|
1209
1224
|
allowRegister?: boolean;
|
|
1210
1225
|
passwordChanged: any;
|
|
1211
1226
|
texts: {
|
|
1212
|
-
updatePassword: string;
|
|
1213
1227
|
passwordPlaceholder: string;
|
|
1214
1228
|
passwordRequired: string;
|
|
1215
1229
|
passwordLabel: string;
|
|
1216
1230
|
passwordMatchError: string;
|
|
1217
|
-
passwordChanged: string;
|
|
1218
1231
|
passwordTooShort: string;
|
|
1232
|
+
updatePassword: string;
|
|
1233
|
+
passwordChanged: string;
|
|
1219
1234
|
confirmPasswordPlaceholder: string;
|
|
1220
1235
|
confirmPasswordLabel: string;
|
|
1221
1236
|
confirmPasswordRequired: string;
|
|
@@ -1592,4 +1607,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1592
1607
|
handleTabChange: (index: any) => void;
|
|
1593
1608
|
};
|
|
1594
1609
|
|
|
1595
|
-
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, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm,
|
|
1610
|
+
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, Count, DataTable, DestroyableCard, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, 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, useBreakpoint, useClipboard, useFocusWithin, useMediaQuery, useTabs, useToast, useWindowSize };
|