@sikka/hawa 0.8.13-next → 0.8.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 +46 -0
- package/dist/index.d.mts +78 -45
- package/dist/index.d.ts +78 -45
- package/dist/index.js +1418 -1300
- package/dist/index.mjs +1812 -1684
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1098,6 +1098,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1098
1098
|
.hawa-h-\[var\(--radix-navigation-menu-viewport-height\)\] {
|
|
1099
1099
|
height: var(--radix-navigation-menu-viewport-height);
|
|
1100
1100
|
}
|
|
1101
|
+
.hawa-h-auto {
|
|
1102
|
+
height: auto;
|
|
1103
|
+
}
|
|
1101
1104
|
.hawa-h-fit {
|
|
1102
1105
|
height: -moz-fit-content;
|
|
1103
1106
|
height: fit-content;
|
|
@@ -1111,6 +1114,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1111
1114
|
.hawa-h-screen {
|
|
1112
1115
|
height: 100vh;
|
|
1113
1116
|
}
|
|
1117
|
+
.hawa-max-h-56 {
|
|
1118
|
+
max-height: 14rem;
|
|
1119
|
+
}
|
|
1114
1120
|
.hawa-max-h-\[300px\] {
|
|
1115
1121
|
max-height: 300px;
|
|
1116
1122
|
}
|
|
@@ -1623,6 +1629,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1623
1629
|
border-bottom-right-radius: var(--radius);
|
|
1624
1630
|
border-bottom-left-radius: var(--radius);
|
|
1625
1631
|
}
|
|
1632
|
+
.hawa-rounded-b-lg {
|
|
1633
|
+
border-bottom-right-radius: var(--radius);
|
|
1634
|
+
border-bottom-left-radius: var(--radius);
|
|
1635
|
+
}
|
|
1636
|
+
.hawa-rounded-l {
|
|
1637
|
+
border-top-left-radius: var(--radius);
|
|
1638
|
+
border-bottom-left-radius: var(--radius);
|
|
1639
|
+
}
|
|
1626
1640
|
.hawa-rounded-l-none {
|
|
1627
1641
|
border-top-left-radius: 0px;
|
|
1628
1642
|
border-bottom-left-radius: 0px;
|
|
@@ -1635,6 +1649,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1635
1649
|
border-top-left-radius: var(--radius);
|
|
1636
1650
|
border-top-right-radius: var(--radius);
|
|
1637
1651
|
}
|
|
1652
|
+
.hawa-rounded-t-lg {
|
|
1653
|
+
border-top-left-radius: var(--radius);
|
|
1654
|
+
border-top-right-radius: var(--radius);
|
|
1655
|
+
}
|
|
1638
1656
|
.hawa-rounded-t-none {
|
|
1639
1657
|
border-top-left-radius: 0px;
|
|
1640
1658
|
border-top-right-radius: 0px;
|
|
@@ -2080,6 +2098,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2080
2098
|
.hawa-pr-2 {
|
|
2081
2099
|
padding-right: 0.5rem;
|
|
2082
2100
|
}
|
|
2101
|
+
.hawa-pr-3 {
|
|
2102
|
+
padding-right: 0.75rem;
|
|
2103
|
+
}
|
|
2083
2104
|
.hawa-pr-8 {
|
|
2084
2105
|
padding-right: 2rem;
|
|
2085
2106
|
}
|
|
@@ -2098,6 +2119,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2098
2119
|
.hawa-pt-2 {
|
|
2099
2120
|
padding-top: 0.5rem;
|
|
2100
2121
|
}
|
|
2122
|
+
.hawa-pt-3 {
|
|
2123
|
+
padding-top: 0.75rem;
|
|
2124
|
+
}
|
|
2101
2125
|
.hawa-pt-4 {
|
|
2102
2126
|
padding-top: 1rem;
|
|
2103
2127
|
}
|
|
@@ -2761,6 +2785,11 @@ body {
|
|
|
2761
2785
|
.hover\:hawa-opacity-100:hover {
|
|
2762
2786
|
opacity: 1;
|
|
2763
2787
|
}
|
|
2788
|
+
.hover\:hawa-shadow-lg:hover {
|
|
2789
|
+
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
2790
|
+
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
2791
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2792
|
+
}
|
|
2764
2793
|
.hover\:hawa-drop-shadow-2xl:hover {
|
|
2765
2794
|
--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
|
|
2766
2795
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -2798,10 +2827,19 @@ body {
|
|
|
2798
2827
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2799
2828
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2800
2829
|
}
|
|
2830
|
+
.focus\:hawa-ring-4:focus {
|
|
2831
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2832
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2833
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2834
|
+
}
|
|
2801
2835
|
.focus\:hawa-ring-blue-500:focus {
|
|
2802
2836
|
--tw-ring-opacity: 1;
|
|
2803
2837
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
2804
2838
|
}
|
|
2839
|
+
.focus\:hawa-ring-gray-200:focus {
|
|
2840
|
+
--tw-ring-opacity: 1;
|
|
2841
|
+
--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity));
|
|
2842
|
+
}
|
|
2805
2843
|
.focus\:hawa-ring-gray-300:focus {
|
|
2806
2844
|
--tw-ring-opacity: 1;
|
|
2807
2845
|
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
@@ -2862,6 +2900,10 @@ body {
|
|
|
2862
2900
|
.hawa-group:hover .group-hover\:hawa-opacity-100 {
|
|
2863
2901
|
opacity: 1;
|
|
2864
2902
|
}
|
|
2903
|
+
.hawa-group:hover .group-hover\:hawa-blur-lg {
|
|
2904
|
+
--tw-blur: blur(16px);
|
|
2905
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2906
|
+
}
|
|
2865
2907
|
.hawa-group.error .group-\[\.error\]\:hawa-border-muted\/40 {
|
|
2866
2908
|
border-color: hsl(var(--muted) / 0.4);
|
|
2867
2909
|
}
|
|
@@ -3362,6 +3404,10 @@ body {
|
|
|
3362
3404
|
--tw-ring-opacity: 1;
|
|
3363
3405
|
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
3364
3406
|
}
|
|
3407
|
+
:is([data-mode="dark"] .dark\:focus\:hawa-ring-gray-700:focus) {
|
|
3408
|
+
--tw-ring-opacity: 1;
|
|
3409
|
+
--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity));
|
|
3410
|
+
}
|
|
3365
3411
|
:is([data-mode="dark"] .hawa-peer:checked ~ .dark\:peer-checked\:hawa-text-primary) {
|
|
3366
3412
|
color: hsl(var(--primary));
|
|
3367
3413
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { FC, ReactNode, ChangeEvent, InputHTMLAttributes, RefObject, PropsWithRef } from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -10,7 +11,6 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
|
10
11
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
11
12
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
13
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
14
|
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
15
15
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
16
16
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
@@ -66,6 +66,74 @@ type PricingCardTypes = {
|
|
|
66
66
|
};
|
|
67
67
|
declare const PricingCard: FC<PricingCardTypes>;
|
|
68
68
|
|
|
69
|
+
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
70
|
+
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
71
|
+
type SubItem$2 = {
|
|
72
|
+
label?: string;
|
|
73
|
+
value?: any;
|
|
74
|
+
icon?: any;
|
|
75
|
+
action?: () => void;
|
|
76
|
+
highlighted?: boolean;
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
};
|
|
79
|
+
type MenuItemType = {
|
|
80
|
+
icon?: any;
|
|
81
|
+
label?: string;
|
|
82
|
+
value?: any;
|
|
83
|
+
content?: any;
|
|
84
|
+
end?: any;
|
|
85
|
+
presist?: boolean;
|
|
86
|
+
itemType?: "separator" | "label" | string;
|
|
87
|
+
action?: () => void;
|
|
88
|
+
highlighted?: boolean;
|
|
89
|
+
subitems?: SubItem$2[];
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
onMiddleClick?: any;
|
|
92
|
+
onClick?: any;
|
|
93
|
+
};
|
|
94
|
+
interface DropdownMenuProps {
|
|
95
|
+
trigger?: any;
|
|
96
|
+
items?: MenuItemType[];
|
|
97
|
+
direction?: "rtl" | "ltr";
|
|
98
|
+
className?: ExtendedDropdownMenuContentProps["className"];
|
|
99
|
+
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
100
|
+
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
101
|
+
side?: ExtendedDropdownMenuContentProps["side"];
|
|
102
|
+
align?: ExtendedDropdownMenuContentProps["align"];
|
|
103
|
+
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
104
|
+
width?: "default" | "sm" | "lg" | "parent";
|
|
105
|
+
size?: "default" | "sm";
|
|
106
|
+
onItemSelect?: any;
|
|
107
|
+
onOpenChange?: any;
|
|
108
|
+
open?: any;
|
|
109
|
+
}
|
|
110
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
111
|
+
|
|
112
|
+
interface ItemCardTypes {
|
|
113
|
+
headerActions?: MenuItemType[];
|
|
114
|
+
header?: any;
|
|
115
|
+
content?: any;
|
|
116
|
+
/** a URL for the image of the card */
|
|
117
|
+
cardImage?: string;
|
|
118
|
+
/** a function that fires when the card is clicked anywhere */
|
|
119
|
+
onCardClick?: (event: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
120
|
+
/** a React node with HawaIconCount children to have counters at the bottom of the card */
|
|
121
|
+
counts?: JSX.Element;
|
|
122
|
+
/** The action buttons on the bottom right of the card */
|
|
123
|
+
actions?: JSX.Element;
|
|
124
|
+
/** The orientation of the card */
|
|
125
|
+
orientation?: "horizontal" | "vertical";
|
|
126
|
+
/** Enabling this blurs the image on hover and shows an action button */
|
|
127
|
+
clickableImage?: boolean;
|
|
128
|
+
/** The function of the action button on the image of the card */
|
|
129
|
+
clickableImageAction?: () => void;
|
|
130
|
+
/** The text of the action button on the image of the card */
|
|
131
|
+
clickableImageActionText: string;
|
|
132
|
+
/** The icon of the action button on the image of the card */
|
|
133
|
+
clickableImageActionIcon?: any;
|
|
134
|
+
}
|
|
135
|
+
declare const ItemCard: FC<ItemCardTypes>;
|
|
136
|
+
|
|
69
137
|
declare const buttonVariants: (props?: ({
|
|
70
138
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
71
139
|
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
@@ -291,49 +359,6 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
291
359
|
|
|
292
360
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
293
361
|
|
|
294
|
-
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
295
|
-
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
296
|
-
type SubItem$2 = {
|
|
297
|
-
label?: string;
|
|
298
|
-
value?: any;
|
|
299
|
-
icon?: any;
|
|
300
|
-
action?: () => void;
|
|
301
|
-
highlighted?: boolean;
|
|
302
|
-
disabled?: boolean;
|
|
303
|
-
};
|
|
304
|
-
type MenuItemType = {
|
|
305
|
-
icon?: any;
|
|
306
|
-
label?: string;
|
|
307
|
-
value?: any;
|
|
308
|
-
content?: any;
|
|
309
|
-
end?: any;
|
|
310
|
-
presist?: boolean;
|
|
311
|
-
itemType?: "separator" | "label" | string;
|
|
312
|
-
action?: () => void;
|
|
313
|
-
highlighted?: boolean;
|
|
314
|
-
subitems?: SubItem$2[];
|
|
315
|
-
disabled?: boolean;
|
|
316
|
-
onMiddleClick?: any;
|
|
317
|
-
onClick?: any;
|
|
318
|
-
};
|
|
319
|
-
interface DropdownMenuProps {
|
|
320
|
-
trigger?: any;
|
|
321
|
-
items?: MenuItemType[];
|
|
322
|
-
direction?: "rtl" | "ltr";
|
|
323
|
-
className?: ExtendedDropdownMenuContentProps["className"];
|
|
324
|
-
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
325
|
-
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
326
|
-
side?: ExtendedDropdownMenuContentProps["side"];
|
|
327
|
-
align?: ExtendedDropdownMenuContentProps["align"];
|
|
328
|
-
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
329
|
-
width?: "default" | "sm" | "lg" | "parent";
|
|
330
|
-
size?: "default" | "sm";
|
|
331
|
-
onItemSelect?: any;
|
|
332
|
-
onOpenChange?: any;
|
|
333
|
-
open?: any;
|
|
334
|
-
}
|
|
335
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
336
|
-
|
|
337
362
|
type ColorPickerTypes = {
|
|
338
363
|
/** The hex code for the color */
|
|
339
364
|
color?: any;
|
|
@@ -661,6 +686,14 @@ type SelectTypes = {
|
|
|
661
686
|
};
|
|
662
687
|
declare const Select: FC<SelectTypes>;
|
|
663
688
|
|
|
689
|
+
type IconCountTypes = {
|
|
690
|
+
/** The icon of the counter */
|
|
691
|
+
icon: JSX.Element;
|
|
692
|
+
/** The text next to the icon */
|
|
693
|
+
count?: string;
|
|
694
|
+
};
|
|
695
|
+
declare const Count: FC<IconCountTypes>;
|
|
696
|
+
|
|
664
697
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
665
698
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
666
699
|
declare const useFormField: () => {
|
|
@@ -1449,4 +1482,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1449
1482
|
handleTabChange: (index: any) => void;
|
|
1450
1483
|
};
|
|
1451
1484
|
|
|
1452
|
-
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, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1485
|
+
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, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { FC, ReactNode, ChangeEvent, InputHTMLAttributes, RefObject, PropsWithRef } from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -10,7 +11,6 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
|
10
11
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
11
12
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
13
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
14
|
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
15
15
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
16
16
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
@@ -66,6 +66,74 @@ type PricingCardTypes = {
|
|
|
66
66
|
};
|
|
67
67
|
declare const PricingCard: FC<PricingCardTypes>;
|
|
68
68
|
|
|
69
|
+
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
70
|
+
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
71
|
+
type SubItem$2 = {
|
|
72
|
+
label?: string;
|
|
73
|
+
value?: any;
|
|
74
|
+
icon?: any;
|
|
75
|
+
action?: () => void;
|
|
76
|
+
highlighted?: boolean;
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
};
|
|
79
|
+
type MenuItemType = {
|
|
80
|
+
icon?: any;
|
|
81
|
+
label?: string;
|
|
82
|
+
value?: any;
|
|
83
|
+
content?: any;
|
|
84
|
+
end?: any;
|
|
85
|
+
presist?: boolean;
|
|
86
|
+
itemType?: "separator" | "label" | string;
|
|
87
|
+
action?: () => void;
|
|
88
|
+
highlighted?: boolean;
|
|
89
|
+
subitems?: SubItem$2[];
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
onMiddleClick?: any;
|
|
92
|
+
onClick?: any;
|
|
93
|
+
};
|
|
94
|
+
interface DropdownMenuProps {
|
|
95
|
+
trigger?: any;
|
|
96
|
+
items?: MenuItemType[];
|
|
97
|
+
direction?: "rtl" | "ltr";
|
|
98
|
+
className?: ExtendedDropdownMenuContentProps["className"];
|
|
99
|
+
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
100
|
+
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
101
|
+
side?: ExtendedDropdownMenuContentProps["side"];
|
|
102
|
+
align?: ExtendedDropdownMenuContentProps["align"];
|
|
103
|
+
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
104
|
+
width?: "default" | "sm" | "lg" | "parent";
|
|
105
|
+
size?: "default" | "sm";
|
|
106
|
+
onItemSelect?: any;
|
|
107
|
+
onOpenChange?: any;
|
|
108
|
+
open?: any;
|
|
109
|
+
}
|
|
110
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
111
|
+
|
|
112
|
+
interface ItemCardTypes {
|
|
113
|
+
headerActions?: MenuItemType[];
|
|
114
|
+
header?: any;
|
|
115
|
+
content?: any;
|
|
116
|
+
/** a URL for the image of the card */
|
|
117
|
+
cardImage?: string;
|
|
118
|
+
/** a function that fires when the card is clicked anywhere */
|
|
119
|
+
onCardClick?: (event: React__default.MouseEvent<HTMLDivElement>) => void;
|
|
120
|
+
/** a React node with HawaIconCount children to have counters at the bottom of the card */
|
|
121
|
+
counts?: JSX.Element;
|
|
122
|
+
/** The action buttons on the bottom right of the card */
|
|
123
|
+
actions?: JSX.Element;
|
|
124
|
+
/** The orientation of the card */
|
|
125
|
+
orientation?: "horizontal" | "vertical";
|
|
126
|
+
/** Enabling this blurs the image on hover and shows an action button */
|
|
127
|
+
clickableImage?: boolean;
|
|
128
|
+
/** The function of the action button on the image of the card */
|
|
129
|
+
clickableImageAction?: () => void;
|
|
130
|
+
/** The text of the action button on the image of the card */
|
|
131
|
+
clickableImageActionText: string;
|
|
132
|
+
/** The icon of the action button on the image of the card */
|
|
133
|
+
clickableImageActionIcon?: any;
|
|
134
|
+
}
|
|
135
|
+
declare const ItemCard: FC<ItemCardTypes>;
|
|
136
|
+
|
|
69
137
|
declare const buttonVariants: (props?: ({
|
|
70
138
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
71
139
|
size?: "xs" | "sm" | "lg" | "xl" | "default" | "heightless" | "icon" | "smallIcon" | null | undefined;
|
|
@@ -291,49 +359,6 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
291
359
|
|
|
292
360
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
293
361
|
|
|
294
|
-
type ExtendedDropdownMenuContentProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>> & {};
|
|
295
|
-
type ExtendedDropdownMenuTriggerProps = Partial<React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>> & {};
|
|
296
|
-
type SubItem$2 = {
|
|
297
|
-
label?: string;
|
|
298
|
-
value?: any;
|
|
299
|
-
icon?: any;
|
|
300
|
-
action?: () => void;
|
|
301
|
-
highlighted?: boolean;
|
|
302
|
-
disabled?: boolean;
|
|
303
|
-
};
|
|
304
|
-
type MenuItemType = {
|
|
305
|
-
icon?: any;
|
|
306
|
-
label?: string;
|
|
307
|
-
value?: any;
|
|
308
|
-
content?: any;
|
|
309
|
-
end?: any;
|
|
310
|
-
presist?: boolean;
|
|
311
|
-
itemType?: "separator" | "label" | string;
|
|
312
|
-
action?: () => void;
|
|
313
|
-
highlighted?: boolean;
|
|
314
|
-
subitems?: SubItem$2[];
|
|
315
|
-
disabled?: boolean;
|
|
316
|
-
onMiddleClick?: any;
|
|
317
|
-
onClick?: any;
|
|
318
|
-
};
|
|
319
|
-
interface DropdownMenuProps {
|
|
320
|
-
trigger?: any;
|
|
321
|
-
items?: MenuItemType[];
|
|
322
|
-
direction?: "rtl" | "ltr";
|
|
323
|
-
className?: ExtendedDropdownMenuContentProps["className"];
|
|
324
|
-
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
|
325
|
-
sideOffset?: ExtendedDropdownMenuContentProps["sideOffset"];
|
|
326
|
-
side?: ExtendedDropdownMenuContentProps["side"];
|
|
327
|
-
align?: ExtendedDropdownMenuContentProps["align"];
|
|
328
|
-
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
|
|
329
|
-
width?: "default" | "sm" | "lg" | "parent";
|
|
330
|
-
size?: "default" | "sm";
|
|
331
|
-
onItemSelect?: any;
|
|
332
|
-
onOpenChange?: any;
|
|
333
|
-
open?: any;
|
|
334
|
-
}
|
|
335
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
336
|
-
|
|
337
362
|
type ColorPickerTypes = {
|
|
338
363
|
/** The hex code for the color */
|
|
339
364
|
color?: any;
|
|
@@ -661,6 +686,14 @@ type SelectTypes = {
|
|
|
661
686
|
};
|
|
662
687
|
declare const Select: FC<SelectTypes>;
|
|
663
688
|
|
|
689
|
+
type IconCountTypes = {
|
|
690
|
+
/** The icon of the counter */
|
|
691
|
+
icon: JSX.Element;
|
|
692
|
+
/** The text next to the icon */
|
|
693
|
+
count?: string;
|
|
694
|
+
};
|
|
695
|
+
declare const Count: FC<IconCountTypes>;
|
|
696
|
+
|
|
664
697
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
665
698
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React$1.JSX.Element;
|
|
666
699
|
declare const useFormField: () => {
|
|
@@ -1449,4 +1482,4 @@ declare function useTabs(initialTab?: string): {
|
|
|
1449
1482
|
handleTabChange: (index: any) => void;
|
|
1450
1483
|
};
|
|
1451
1484
|
|
|
1452
|
-
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, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|
|
1485
|
+
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, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, MenuItemType, NavMenuItem, NavigationMenu, NavigationMenuLink, NewPasswordForm, NoPermission, NotFound, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, PricingCard, PricingPlans, Progress, Radio, RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, Select, SelectOptionProps, Separator, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, Stats, 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, useFormField, useMediaQuery, useTabs, useToast, useWindowSize };
|