@sikka/hawa 0.11.12-next → 0.11.14-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 -9
- package/dist/index.d.mts +40 -37
- package/dist/index.d.ts +40 -37
- package/dist/index.js +246 -152
- package/dist/index.mjs +484 -444
- 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
|
}
|
|
@@ -1139,9 +1147,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1139
1147
|
.hawa-h-\[44px\] {
|
|
1140
1148
|
height: 44px;
|
|
1141
1149
|
}
|
|
1142
|
-
.hawa-h-\[calc\(100dvh\)\] {
|
|
1143
|
-
height: calc(100dvh);
|
|
1144
|
-
}
|
|
1145
1150
|
.hawa-h-\[var\(--radix-navigation-menu-viewport-height\)\] {
|
|
1146
1151
|
height: var(--radix-navigation-menu-viewport-height);
|
|
1147
1152
|
}
|
|
@@ -1775,8 +1780,8 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1775
1780
|
.hawa-border-l-0 {
|
|
1776
1781
|
border-left-width: 0px;
|
|
1777
1782
|
}
|
|
1778
|
-
.hawa-border-l-
|
|
1779
|
-
border-left-width:
|
|
1783
|
+
.hawa-border-l-4 {
|
|
1784
|
+
border-left-width: 4px;
|
|
1780
1785
|
}
|
|
1781
1786
|
.hawa-border-r {
|
|
1782
1787
|
border-right-width: 1px;
|
|
@@ -1823,10 +1828,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1823
1828
|
.hawa-border-primary {
|
|
1824
1829
|
border-color: hsl(var(--primary));
|
|
1825
1830
|
}
|
|
1826
|
-
.hawa-border-red-500 {
|
|
1827
|
-
--tw-border-opacity: 1;
|
|
1828
|
-
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
1829
|
-
}
|
|
1830
1831
|
.hawa-border-transparent {
|
|
1831
1832
|
border-color: transparent;
|
|
1832
1833
|
}
|
|
@@ -3176,6 +3177,9 @@ body {
|
|
|
3176
3177
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
3177
3178
|
background-color: hsl(var(--accent));
|
|
3178
3179
|
}
|
|
3180
|
+
.data-\[state\=open\]\:hawa-bg-secondary[data-state=open] {
|
|
3181
|
+
background-color: hsl(var(--secondary));
|
|
3182
|
+
}
|
|
3179
3183
|
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
3180
3184
|
background-color: hsl(var(--muted));
|
|
3181
3185
|
}
|
|
@@ -3199,6 +3203,12 @@ body {
|
|
|
3199
3203
|
.data-\[swipe\=move\]\:hawa-transition-none[data-swipe=move] {
|
|
3200
3204
|
transition-property: none;
|
|
3201
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
|
+
}
|
|
3202
3212
|
.data-\[motion\^\=from-\]\:hawa-animate-in[data-motion^=from-] {
|
|
3203
3213
|
animation-name: enter;
|
|
3204
3214
|
animation-duration: 150ms;
|
|
@@ -3316,27 +3326,57 @@ body {
|
|
|
3316
3326
|
.data-\[side\=top\]\:hawa-slide-in-from-bottom-2[data-side=top] {
|
|
3317
3327
|
--tw-enter-translate-y: 0.5rem;
|
|
3318
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
|
+
}
|
|
3319
3335
|
.data-\[state\=closed\]\:hawa-slide-out-to-left-1\/2[data-state=closed] {
|
|
3320
3336
|
--tw-exit-translate-x: -50%;
|
|
3321
3337
|
}
|
|
3322
3338
|
.data-\[state\=closed\]\:hawa-slide-out-to-left-full[data-state=closed] {
|
|
3323
3339
|
--tw-exit-translate-x: -100%;
|
|
3324
3340
|
}
|
|
3341
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-right[data-state=closed] {
|
|
3342
|
+
--tw-exit-translate-x: 100%;
|
|
3343
|
+
}
|
|
3325
3344
|
.data-\[state\=closed\]\:hawa-slide-out-to-right-full[data-state=closed] {
|
|
3326
3345
|
--tw-exit-translate-x: 100%;
|
|
3327
3346
|
}
|
|
3347
|
+
.data-\[state\=closed\]\:hawa-slide-out-to-top[data-state=closed] {
|
|
3348
|
+
--tw-exit-translate-y: -100%;
|
|
3349
|
+
}
|
|
3328
3350
|
.data-\[state\=closed\]\:hawa-slide-out-to-top-\[48\%\][data-state=closed] {
|
|
3329
3351
|
--tw-exit-translate-y: -48%;
|
|
3330
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
|
+
}
|
|
3331
3359
|
.data-\[state\=open\]\:hawa-slide-in-from-left-1\/2[data-state=open] {
|
|
3332
3360
|
--tw-enter-translate-x: -50%;
|
|
3333
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
|
+
}
|
|
3334
3368
|
.data-\[state\=open\]\:hawa-slide-in-from-top-\[48\%\][data-state=open] {
|
|
3335
3369
|
--tw-enter-translate-y: -48%;
|
|
3336
3370
|
}
|
|
3337
3371
|
.data-\[state\=open\]\:hawa-slide-in-from-top-full[data-state=open] {
|
|
3338
3372
|
--tw-enter-translate-y: -100%;
|
|
3339
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
|
+
}
|
|
3340
3380
|
.hawa-group[data-state=open] .group-data-\[state\=open\]\:hawa-rotate-180 {
|
|
3341
3381
|
--tw-rotate: 180deg;
|
|
3342
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));
|
|
@@ -3545,6 +3585,10 @@ body {
|
|
|
3545
3585
|
top: auto;
|
|
3546
3586
|
}
|
|
3547
3587
|
|
|
3588
|
+
.sm\:hawa-max-w-sm {
|
|
3589
|
+
max-width: 24rem;
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3548
3592
|
.sm\:hawa-flex-row {
|
|
3549
3593
|
flex-direction: row;
|
|
3550
3594
|
}
|
|
@@ -3561,6 +3605,12 @@ body {
|
|
|
3561
3605
|
gap: 0.5rem;
|
|
3562
3606
|
}
|
|
3563
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
|
+
|
|
3564
3614
|
.sm\:hawa-rounded {
|
|
3565
3615
|
border-radius: var(--radius);
|
|
3566
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';
|
|
@@ -63,7 +63,7 @@ declare const PricingCard: FC<PricingCardTypes>;
|
|
|
63
63
|
|
|
64
64
|
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
65
65
|
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
66
|
-
type SubItem$
|
|
66
|
+
type SubItem$2 = {
|
|
67
67
|
label?: string;
|
|
68
68
|
value?: any;
|
|
69
69
|
icon?: any;
|
|
@@ -81,7 +81,7 @@ type MenuItemType = {
|
|
|
81
81
|
itemType?: "separator" | "label" | string;
|
|
82
82
|
action?: () => void;
|
|
83
83
|
highlighted?: boolean;
|
|
84
|
-
subitems?: SubItem$
|
|
84
|
+
subitems?: SubItem$2[];
|
|
85
85
|
disabled?: boolean;
|
|
86
86
|
onMiddleClick?: any;
|
|
87
87
|
onClick?: any;
|
|
@@ -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;
|
|
@@ -771,14 +793,14 @@ type StatTypes = {
|
|
|
771
793
|
};
|
|
772
794
|
declare const Stats: FC<StatTypes>;
|
|
773
795
|
|
|
774
|
-
type Item$
|
|
796
|
+
type Item$1 = {
|
|
775
797
|
value: string;
|
|
776
798
|
label: string;
|
|
777
799
|
icon?: any;
|
|
778
|
-
subitems?: SubItem$
|
|
800
|
+
subitems?: SubItem$1[];
|
|
779
801
|
onClick?: () => void;
|
|
780
802
|
};
|
|
781
|
-
type SubItem$
|
|
803
|
+
type SubItem$1 = {
|
|
782
804
|
value: string;
|
|
783
805
|
label: string;
|
|
784
806
|
icon?: any;
|
|
@@ -786,7 +808,7 @@ type SubItem$2 = {
|
|
|
786
808
|
};
|
|
787
809
|
interface SidebarGroupProps {
|
|
788
810
|
title?: string;
|
|
789
|
-
items: Item$
|
|
811
|
+
items: Item$1[];
|
|
790
812
|
openedItem?: any;
|
|
791
813
|
setOpenedItem?: any;
|
|
792
814
|
selectedItem?: any;
|
|
@@ -797,7 +819,7 @@ interface SidebarGroupProps {
|
|
|
797
819
|
}
|
|
798
820
|
declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
|
|
799
821
|
declare const SidebarItem: React$1.FC<{
|
|
800
|
-
item: Item$
|
|
822
|
+
item: Item$1;
|
|
801
823
|
selectedItem?: any;
|
|
802
824
|
direction?: "rtl" | "ltr";
|
|
803
825
|
onItemClick?: (value: string[]) => void;
|
|
@@ -808,7 +830,7 @@ declare const SidebarItem: React$1.FC<{
|
|
|
808
830
|
type AppLayoutTypes$1 = {
|
|
809
831
|
design?: "default" | "bubbles" | "floating";
|
|
810
832
|
/** The pages of the side drawer */
|
|
811
|
-
drawerItems: Item
|
|
833
|
+
drawerItems: Item[];
|
|
812
834
|
/** The direction of the layout */
|
|
813
835
|
direction?: "rtl" | "ltr";
|
|
814
836
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -869,14 +891,14 @@ type AppLayoutTypes$1 = {
|
|
|
869
891
|
collapseSidebar?: string;
|
|
870
892
|
};
|
|
871
893
|
};
|
|
872
|
-
type Item
|
|
894
|
+
type Item = {
|
|
873
895
|
value: string;
|
|
874
896
|
label: string;
|
|
875
897
|
icon?: any;
|
|
876
|
-
subitems?: SubItem
|
|
898
|
+
subitems?: SubItem[];
|
|
877
899
|
onClick?: () => void;
|
|
878
900
|
};
|
|
879
|
-
type SubItem
|
|
901
|
+
type SubItem = {
|
|
880
902
|
value: string;
|
|
881
903
|
label: string;
|
|
882
904
|
icon?: any;
|
|
@@ -906,9 +928,6 @@ type NavbarType = {
|
|
|
906
928
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
907
929
|
|
|
908
930
|
type AppLayoutTypes = {
|
|
909
|
-
design?: "default" | "bubbles" | "floating";
|
|
910
|
-
/** The pages of the side drawer */
|
|
911
|
-
drawerItems: Item[];
|
|
912
931
|
/** The direction of the layout */
|
|
913
932
|
direction?: "rtl" | "ltr";
|
|
914
933
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -923,8 +942,6 @@ type AppLayoutTypes = {
|
|
|
923
942
|
logoText?: any;
|
|
924
943
|
/** Specifies the content to be displayed in the layout. */
|
|
925
944
|
children?: any;
|
|
926
|
-
/** Specifies whether to display the top bar. */
|
|
927
|
-
topBar?: boolean;
|
|
928
945
|
/** Specifies the username to be displayed. */
|
|
929
946
|
username?: string;
|
|
930
947
|
/** Specifies the user email to be displayed. */
|
|
@@ -939,7 +956,6 @@ type AppLayoutTypes = {
|
|
|
939
956
|
*/
|
|
940
957
|
drawerSize?: "sm" | "md" | "large";
|
|
941
958
|
/** Specifies the menu items for the profile menu. */
|
|
942
|
-
profileMenuItems?: MenuItemType[];
|
|
943
959
|
/**
|
|
944
960
|
* Specifies the width of the profile menu.
|
|
945
961
|
* - 'default': Default width.
|
|
@@ -969,19 +985,6 @@ type AppLayoutTypes = {
|
|
|
969
985
|
collapseSidebar?: string;
|
|
970
986
|
};
|
|
971
987
|
};
|
|
972
|
-
type Item = {
|
|
973
|
-
value: string;
|
|
974
|
-
label: string;
|
|
975
|
-
icon?: any;
|
|
976
|
-
subitems?: SubItem[];
|
|
977
|
-
onClick?: () => void;
|
|
978
|
-
};
|
|
979
|
-
type SubItem = {
|
|
980
|
-
value: string;
|
|
981
|
-
label: string;
|
|
982
|
-
icon?: any;
|
|
983
|
-
onClick?: () => void;
|
|
984
|
-
};
|
|
985
988
|
declare const DocsLayout: React__default.FunctionComponent<AppLayoutTypes>;
|
|
986
989
|
|
|
987
990
|
type DocsSidebarType = {
|
|
@@ -1611,4 +1614,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1611
1614
|
handleTabChange: (index: any) => void;
|
|
1612
1615
|
};
|
|
1613
1616
|
|
|
1614
|
-
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, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$
|
|
1617
|
+
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, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, 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';
|
|
@@ -63,7 +63,7 @@ declare const PricingCard: FC<PricingCardTypes>;
|
|
|
63
63
|
|
|
64
64
|
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
65
65
|
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
66
|
-
type SubItem$
|
|
66
|
+
type SubItem$2 = {
|
|
67
67
|
label?: string;
|
|
68
68
|
value?: any;
|
|
69
69
|
icon?: any;
|
|
@@ -81,7 +81,7 @@ type MenuItemType = {
|
|
|
81
81
|
itemType?: "separator" | "label" | string;
|
|
82
82
|
action?: () => void;
|
|
83
83
|
highlighted?: boolean;
|
|
84
|
-
subitems?: SubItem$
|
|
84
|
+
subitems?: SubItem$2[];
|
|
85
85
|
disabled?: boolean;
|
|
86
86
|
onMiddleClick?: any;
|
|
87
87
|
onClick?: any;
|
|
@@ -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;
|
|
@@ -771,14 +793,14 @@ type StatTypes = {
|
|
|
771
793
|
};
|
|
772
794
|
declare const Stats: FC<StatTypes>;
|
|
773
795
|
|
|
774
|
-
type Item$
|
|
796
|
+
type Item$1 = {
|
|
775
797
|
value: string;
|
|
776
798
|
label: string;
|
|
777
799
|
icon?: any;
|
|
778
|
-
subitems?: SubItem$
|
|
800
|
+
subitems?: SubItem$1[];
|
|
779
801
|
onClick?: () => void;
|
|
780
802
|
};
|
|
781
|
-
type SubItem$
|
|
803
|
+
type SubItem$1 = {
|
|
782
804
|
value: string;
|
|
783
805
|
label: string;
|
|
784
806
|
icon?: any;
|
|
@@ -786,7 +808,7 @@ type SubItem$2 = {
|
|
|
786
808
|
};
|
|
787
809
|
interface SidebarGroupProps {
|
|
788
810
|
title?: string;
|
|
789
|
-
items: Item$
|
|
811
|
+
items: Item$1[];
|
|
790
812
|
openedItem?: any;
|
|
791
813
|
setOpenedItem?: any;
|
|
792
814
|
selectedItem?: any;
|
|
@@ -797,7 +819,7 @@ interface SidebarGroupProps {
|
|
|
797
819
|
}
|
|
798
820
|
declare const SidebarGroup: React$1.FC<SidebarGroupProps>;
|
|
799
821
|
declare const SidebarItem: React$1.FC<{
|
|
800
|
-
item: Item$
|
|
822
|
+
item: Item$1;
|
|
801
823
|
selectedItem?: any;
|
|
802
824
|
direction?: "rtl" | "ltr";
|
|
803
825
|
onItemClick?: (value: string[]) => void;
|
|
@@ -808,7 +830,7 @@ declare const SidebarItem: React$1.FC<{
|
|
|
808
830
|
type AppLayoutTypes$1 = {
|
|
809
831
|
design?: "default" | "bubbles" | "floating";
|
|
810
832
|
/** The pages of the side drawer */
|
|
811
|
-
drawerItems: Item
|
|
833
|
+
drawerItems: Item[];
|
|
812
834
|
/** The direction of the layout */
|
|
813
835
|
direction?: "rtl" | "ltr";
|
|
814
836
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -869,14 +891,14 @@ type AppLayoutTypes$1 = {
|
|
|
869
891
|
collapseSidebar?: string;
|
|
870
892
|
};
|
|
871
893
|
};
|
|
872
|
-
type Item
|
|
894
|
+
type Item = {
|
|
873
895
|
value: string;
|
|
874
896
|
label: string;
|
|
875
897
|
icon?: any;
|
|
876
|
-
subitems?: SubItem
|
|
898
|
+
subitems?: SubItem[];
|
|
877
899
|
onClick?: () => void;
|
|
878
900
|
};
|
|
879
|
-
type SubItem
|
|
901
|
+
type SubItem = {
|
|
880
902
|
value: string;
|
|
881
903
|
label: string;
|
|
882
904
|
icon?: any;
|
|
@@ -906,9 +928,6 @@ type NavbarType = {
|
|
|
906
928
|
declare const Navbar: React__default.FC<NavbarType>;
|
|
907
929
|
|
|
908
930
|
type AppLayoutTypes = {
|
|
909
|
-
design?: "default" | "bubbles" | "floating";
|
|
910
|
-
/** The pages of the side drawer */
|
|
911
|
-
drawerItems: Item[];
|
|
912
931
|
/** The direction of the layout */
|
|
913
932
|
direction?: "rtl" | "ltr";
|
|
914
933
|
/** The title of the current selected page, make sure it's the same as the drawerItem slug */
|
|
@@ -923,8 +942,6 @@ type AppLayoutTypes = {
|
|
|
923
942
|
logoText?: any;
|
|
924
943
|
/** Specifies the content to be displayed in the layout. */
|
|
925
944
|
children?: any;
|
|
926
|
-
/** Specifies whether to display the top bar. */
|
|
927
|
-
topBar?: boolean;
|
|
928
945
|
/** Specifies the username to be displayed. */
|
|
929
946
|
username?: string;
|
|
930
947
|
/** Specifies the user email to be displayed. */
|
|
@@ -939,7 +956,6 @@ type AppLayoutTypes = {
|
|
|
939
956
|
*/
|
|
940
957
|
drawerSize?: "sm" | "md" | "large";
|
|
941
958
|
/** Specifies the menu items for the profile menu. */
|
|
942
|
-
profileMenuItems?: MenuItemType[];
|
|
943
959
|
/**
|
|
944
960
|
* Specifies the width of the profile menu.
|
|
945
961
|
* - 'default': Default width.
|
|
@@ -969,19 +985,6 @@ type AppLayoutTypes = {
|
|
|
969
985
|
collapseSidebar?: string;
|
|
970
986
|
};
|
|
971
987
|
};
|
|
972
|
-
type Item = {
|
|
973
|
-
value: string;
|
|
974
|
-
label: string;
|
|
975
|
-
icon?: any;
|
|
976
|
-
subitems?: SubItem[];
|
|
977
|
-
onClick?: () => void;
|
|
978
|
-
};
|
|
979
|
-
type SubItem = {
|
|
980
|
-
value: string;
|
|
981
|
-
label: string;
|
|
982
|
-
icon?: any;
|
|
983
|
-
onClick?: () => void;
|
|
984
|
-
};
|
|
985
988
|
declare const DocsLayout: React__default.FunctionComponent<AppLayoutTypes>;
|
|
986
989
|
|
|
987
990
|
type DocsSidebarType = {
|
|
@@ -1611,4 +1614,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1611
1614
|
handleTabChange: (index: any) => void;
|
|
1612
1615
|
};
|
|
1613
1616
|
|
|
1614
|
-
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, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, StopPropagationWrapper, SubItem$
|
|
1617
|
+
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, LoginFormTextsTypes, Logos, MenuItemType, NavMenuItem, Navbar, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, RegisterFormTextsTypes, 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 };
|