@sikka/hawa 0.2.44-next → 0.2.47-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 +177 -18
- package/dist/index.d.mts +95 -9
- package/dist/index.d.ts +95 -9
- package/dist/index.js +714 -197
- package/dist/index.mjs +667 -149
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import React__default, { FC, ReactNode, ChangeEvent, RefObject, PropsWithRef } from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
6
7
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
8
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
8
9
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
@@ -10,6 +11,8 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
10
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
12
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
13
16
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
14
17
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
15
18
|
|
|
@@ -146,16 +149,17 @@ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimit
|
|
|
146
149
|
}
|
|
147
150
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
148
151
|
|
|
152
|
+
type RadioOptionsTypes = {
|
|
153
|
+
value: any;
|
|
154
|
+
label: any;
|
|
155
|
+
disabled?: any;
|
|
156
|
+
sublabel?: any;
|
|
157
|
+
icon?: any;
|
|
158
|
+
};
|
|
149
159
|
type RadioTypes = {
|
|
150
160
|
orientation?: "vertical" | "horizontal";
|
|
151
161
|
design?: "default" | "tabs" | "cards" | "bordered";
|
|
152
|
-
options?:
|
|
153
|
-
value: any;
|
|
154
|
-
label: any;
|
|
155
|
-
disabled?: any;
|
|
156
|
-
sublabel?: any;
|
|
157
|
-
icon?: any;
|
|
158
|
-
}[];
|
|
162
|
+
options?: RadioOptionsTypes[];
|
|
159
163
|
width?: "default" | "full";
|
|
160
164
|
onChangeTab?: any;
|
|
161
165
|
defaultValue?: any;
|
|
@@ -223,6 +227,7 @@ interface PopoverProps {
|
|
|
223
227
|
}
|
|
224
228
|
type HawaPopoverTypes = PopoverProps & React.ComponentProps<typeof PopoverPrimitive.Root>;
|
|
225
229
|
declare const Popover: React.FC<HawaPopoverTypes>;
|
|
230
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
226
231
|
|
|
227
232
|
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
228
233
|
}
|
|
@@ -352,6 +357,10 @@ type StoreButtonsTypes = {
|
|
|
352
357
|
};
|
|
353
358
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
354
359
|
|
|
360
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
361
|
+
|
|
362
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
363
|
+
|
|
355
364
|
type BackToTopTypes = {
|
|
356
365
|
paddingX?: number;
|
|
357
366
|
paddingY?: number;
|
|
@@ -363,8 +372,9 @@ declare const BackToTop: FC<BackToTopTypes>;
|
|
|
363
372
|
|
|
364
373
|
type TextFieldTypes = {
|
|
365
374
|
isLoading?: boolean;
|
|
375
|
+
containerClassName?: string;
|
|
366
376
|
margin?: "none" | "normal" | "large";
|
|
367
|
-
width?: "small" | "normal" | "full";
|
|
377
|
+
width?: "small" | "normal" | "full" | "auto";
|
|
368
378
|
/** The label of the input field */
|
|
369
379
|
label?: any;
|
|
370
380
|
/** Disable/Enable multiple line text input field */
|
|
@@ -427,4 +437,80 @@ declare const Logos: {
|
|
|
427
437
|
spinner: (props: IconProps) => React__default.JSX.Element;
|
|
428
438
|
};
|
|
429
439
|
|
|
430
|
-
|
|
440
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
441
|
+
children?: React.ReactNode;
|
|
442
|
+
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
443
|
+
label?: string | undefined;
|
|
444
|
+
shouldFilter?: boolean | undefined;
|
|
445
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
446
|
+
value?: string | undefined;
|
|
447
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
448
|
+
loop?: boolean | undefined;
|
|
449
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
450
|
+
interface CommandDialogProps extends DialogProps {
|
|
451
|
+
}
|
|
452
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
|
|
453
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
|
|
454
|
+
value?: string | undefined;
|
|
455
|
+
onValueChange?: ((search: string) => void) | undefined;
|
|
456
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
457
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
458
|
+
children?: React.ReactNode;
|
|
459
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
460
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
461
|
+
children?: React.ReactNode;
|
|
462
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
463
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
464
|
+
children?: React.ReactNode;
|
|
465
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
|
|
466
|
+
heading?: React.ReactNode;
|
|
467
|
+
value?: string | undefined;
|
|
468
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
469
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
470
|
+
alwaysRender?: boolean | undefined;
|
|
471
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
472
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
473
|
+
children?: React.ReactNode;
|
|
474
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
|
|
475
|
+
disabled?: boolean | undefined;
|
|
476
|
+
onSelect?: ((value: string) => void) | undefined;
|
|
477
|
+
value?: string | undefined;
|
|
478
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
479
|
+
declare const CommandShortcut: {
|
|
480
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
481
|
+
displayName: string;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
declare function Combobox(): React.JSX.Element;
|
|
485
|
+
|
|
486
|
+
type SelectTypes = {
|
|
487
|
+
label?: string;
|
|
488
|
+
options?: {
|
|
489
|
+
value: any;
|
|
490
|
+
label: any;
|
|
491
|
+
}[];
|
|
492
|
+
isCreatable?: boolean;
|
|
493
|
+
isClearable?: boolean;
|
|
494
|
+
isMulti?: boolean;
|
|
495
|
+
isSearchable?: boolean;
|
|
496
|
+
controlClassNames?: string;
|
|
497
|
+
containerClassNames?: string;
|
|
498
|
+
onChange?: any;
|
|
499
|
+
helperText?: any;
|
|
500
|
+
onInputChange?: any;
|
|
501
|
+
native?: any;
|
|
502
|
+
width?: "full" | "small";
|
|
503
|
+
value?: any;
|
|
504
|
+
children?: any;
|
|
505
|
+
getOptionLabel?: any;
|
|
506
|
+
disabled?: boolean;
|
|
507
|
+
defaultValue?: any;
|
|
508
|
+
isLoading?: any;
|
|
509
|
+
texts?: {
|
|
510
|
+
noOptions?: string;
|
|
511
|
+
createLabel?: string;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
declare const Select: FC<SelectTypes>;
|
|
515
|
+
|
|
516
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|