@sikka/hawa 0.2.41-next → 0.2.43-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 +245 -13
- package/dist/index.d.mts +104 -2
- package/dist/index.d.ts +104 -2
- package/dist/index.js +2288 -50
- package/dist/index.mjs +2329 -67
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { FC, ReactNode } from 'react';
|
|
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
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -10,6 +10,7 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
10
10
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
11
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
12
12
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
13
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
13
14
|
|
|
14
15
|
declare const buttonVariants: (props?: ({
|
|
15
16
|
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost" | "neoBrutalism" | null | undefined;
|
|
@@ -266,6 +267,14 @@ interface DropdownMenuProps {
|
|
|
266
267
|
}
|
|
267
268
|
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
268
269
|
|
|
270
|
+
type ColorPickerTypes = {
|
|
271
|
+
/** The hex code for the color */
|
|
272
|
+
color?: any;
|
|
273
|
+
/** Fires everytime the color changes */
|
|
274
|
+
handleChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
275
|
+
};
|
|
276
|
+
declare const ColorPicker: FC<ColorPickerTypes>;
|
|
277
|
+
|
|
269
278
|
type PinInputTypes = {
|
|
270
279
|
/** Label text to display for the Pin Input */
|
|
271
280
|
label?: string;
|
|
@@ -292,10 +301,103 @@ type ImageCardTypes = {
|
|
|
292
301
|
};
|
|
293
302
|
declare const ActionCard: FC<ImageCardTypes>;
|
|
294
303
|
|
|
304
|
+
type FileDropzoneTypes = {
|
|
305
|
+
/** The text label above the component. Consistant with the other form input fields */
|
|
306
|
+
label?: string;
|
|
307
|
+
files: [File];
|
|
308
|
+
setFiles: any;
|
|
309
|
+
setDeletedFiles: any;
|
|
310
|
+
maxFiles: number;
|
|
311
|
+
accept: any;
|
|
312
|
+
onAcceptedFiles: any;
|
|
313
|
+
showPreview: any;
|
|
314
|
+
onDeleteFile: any;
|
|
315
|
+
onClearFiles: any;
|
|
316
|
+
maxSize: number;
|
|
317
|
+
errorMessages: string;
|
|
318
|
+
disclaimer?: boolean;
|
|
319
|
+
termsLink?: string;
|
|
320
|
+
privacyLink?: string;
|
|
321
|
+
/** The translation object, use this to replace the default text with any translated text you want.*/
|
|
322
|
+
texts: {
|
|
323
|
+
errorUploading: any;
|
|
324
|
+
clickHereToUpload: any;
|
|
325
|
+
maxFileSize: any;
|
|
326
|
+
tooManyFiles: any;
|
|
327
|
+
fileTooLarge: any;
|
|
328
|
+
acceptedFileTypes: any;
|
|
329
|
+
invalidFileType: any;
|
|
330
|
+
terms?: string;
|
|
331
|
+
privacyPolicy?: string;
|
|
332
|
+
disclaimer?: string;
|
|
333
|
+
and?: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
declare const FileDropzone: React__default.FunctionComponent<FileDropzoneTypes>;
|
|
337
|
+
|
|
338
|
+
type PhoneInputTypes = {
|
|
339
|
+
preferredCountry?: any;
|
|
340
|
+
helperText?: any;
|
|
341
|
+
label?: string;
|
|
342
|
+
value?: any;
|
|
343
|
+
country?: any;
|
|
344
|
+
handleChange?: any;
|
|
345
|
+
};
|
|
346
|
+
declare const PhoneInput: FC<PhoneInputTypes>;
|
|
347
|
+
|
|
295
348
|
type StoreButtonsTypes = {
|
|
296
349
|
store: "apple" | "google";
|
|
297
350
|
mode: "dark" | "light";
|
|
298
351
|
};
|
|
299
352
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
300
353
|
|
|
301
|
-
|
|
354
|
+
type BackToTopTypes = {
|
|
355
|
+
paddingX?: number;
|
|
356
|
+
paddingY?: number;
|
|
357
|
+
paddingThreshold?: number;
|
|
358
|
+
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
359
|
+
anchor: RefObject<HTMLInputElement>;
|
|
360
|
+
};
|
|
361
|
+
declare const BackToTop: FC<BackToTopTypes>;
|
|
362
|
+
|
|
363
|
+
type TextFieldTypes = {
|
|
364
|
+
isLoading?: boolean;
|
|
365
|
+
margin?: "none" | "normal" | "large";
|
|
366
|
+
width?: "small" | "normal" | "full";
|
|
367
|
+
/** The label of the input field */
|
|
368
|
+
label?: any;
|
|
369
|
+
/** Disable/Enable multiple line text input field */
|
|
370
|
+
multiline?: boolean;
|
|
371
|
+
/** The small red text under the input field to show validation or a hint. */
|
|
372
|
+
helperText?: any;
|
|
373
|
+
/** The value of the input field */
|
|
374
|
+
value?: any;
|
|
375
|
+
props?: PropsWithRef<"input">;
|
|
376
|
+
/** The type of input field. Same as the types of the HTML input element */
|
|
377
|
+
type?: any;
|
|
378
|
+
/** The placeholder of the input field */
|
|
379
|
+
placeholder?: any;
|
|
380
|
+
defaultValue?: any;
|
|
381
|
+
name?: any;
|
|
382
|
+
inputProps?: any;
|
|
383
|
+
onChange?: any;
|
|
384
|
+
ref?: any;
|
|
385
|
+
/** The icon inside the input field */
|
|
386
|
+
icon?: any;
|
|
387
|
+
/** Boolean to enable/disable editing the input field and using it as a text field */
|
|
388
|
+
preview?: boolean;
|
|
389
|
+
autoComplete?: any;
|
|
390
|
+
maxLength?: any;
|
|
391
|
+
className?: any;
|
|
392
|
+
iconInside?: React__default.ReactNode;
|
|
393
|
+
};
|
|
394
|
+
declare const Input: FC<TextFieldTypes>;
|
|
395
|
+
|
|
396
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
397
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
398
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
399
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
400
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
401
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
402
|
+
|
|
403
|
+
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Input, Label, Loading, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, Radio, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants };
|