@vacano/ui 1.12.1 → 1.13.0
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/README.md +6 -5
- package/dist/ToggleGroup-DCWH4ngK.cjs +1283 -0
- package/dist/ToggleGroup-DCWH4ngK.cjs.map +1 -0
- package/dist/ToggleGroup-DYePk1bM.js +3935 -0
- package/dist/ToggleGroup-DYePk1bM.js.map +1 -0
- package/dist/{X-BIgkmQPR.cjs → X-CI1qRJDP.cjs} +4 -4
- package/dist/X-CI1qRJDP.cjs.map +1 -0
- package/dist/{X-Dyq6IJZW.js → X-Cm-i8Bh7.js} +195 -219
- package/dist/X-Cm-i8Bh7.js.map +1 -0
- package/dist/form.cjs +2 -0
- package/dist/form.cjs.map +1 -0
- package/dist/form.d.ts +540 -0
- package/dist/form.js +428 -0
- package/dist/form.js.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +1253 -1230
- package/dist/icons.js.map +1 -1
- package/dist/index-Abn5L42P.js +42 -0
- package/dist/index-Abn5L42P.js.map +1 -0
- package/dist/index-GSZAZ6Cz.cjs +2 -0
- package/dist/index-GSZAZ6Cz.cjs.map +1 -0
- package/dist/index.cjs +235 -1393
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +126 -43
- package/dist/index.js +1324 -4875
- package/dist/index.js.map +1 -1
- package/dist/{media-CWK1OED-.js → keyboard-D00e_brg.js} +63 -66
- package/dist/keyboard-D00e_brg.js.map +1 -0
- package/dist/{media-BuwIclXE.cjs → keyboard-D8zOi0jU.cjs} +3 -3
- package/dist/keyboard-D8zOi0jU.cjs.map +1 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +38 -0
- package/dist/lib.js +15 -13
- package/dist/lib.js.map +1 -1
- package/package.json +25 -3
- package/dist/X-BIgkmQPR.cjs.map +0 -1
- package/dist/X-Dyq6IJZW.js.map +0 -1
- package/dist/media-BuwIclXE.cjs.map +0 -1
- package/dist/media-CWK1OED-.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { AnyObject } from 'yup';
|
|
1
2
|
import { ChangeEventHandler } from 'react';
|
|
3
|
+
import { DateSchema } from 'yup';
|
|
2
4
|
import { HTMLAttributes } from 'react';
|
|
3
5
|
import { InputHTMLAttributes } from 'react';
|
|
4
6
|
import { JSX } from '@emotion/react/jsx-runtime';
|
|
@@ -7,11 +9,12 @@ import { ReactElement } from 'react';
|
|
|
7
9
|
import { ReactNode } from 'react';
|
|
8
10
|
import { ReactPortal } from 'react';
|
|
9
11
|
import { Ref } from 'react';
|
|
12
|
+
import { StringSchema } from 'yup';
|
|
10
13
|
import { TextareaHTMLAttributes } from 'react';
|
|
11
14
|
|
|
12
15
|
export declare const alpha: (hexColor: string, percentage: number) => string;
|
|
13
16
|
|
|
14
|
-
export declare const Autocomplete: ({ className, classnames, disabled, fullWidth, label, ref, size, variant, value, onChange, onSearch, debounceMs, minChars, noResultsMessage, ...rest }: AutocompleteProps) => JSX.Element;
|
|
17
|
+
export declare const Autocomplete: ({ className, classnames, disabled, fullWidth, label, ref, message, size, variant, value, onChange, onSearch, debounceMs, minChars, noResultsMessage, ...rest }: AutocompleteProps) => JSX.Element;
|
|
15
18
|
|
|
16
19
|
export declare type AutocompleteClassNames = {
|
|
17
20
|
input?: string;
|
|
@@ -31,6 +34,7 @@ export declare type AutocompleteProps = VacanoComponentProps<HTMLInputElement, A
|
|
|
31
34
|
size?: VacanoComponentSize;
|
|
32
35
|
variant?: AutocompleteVariant;
|
|
33
36
|
noResultsMessage?: string;
|
|
37
|
+
message?: string;
|
|
34
38
|
};
|
|
35
39
|
|
|
36
40
|
export declare type AutocompleteSuggestion = {
|
|
@@ -120,7 +124,7 @@ export declare type CheckboxClassNames = {
|
|
|
120
124
|
label?: string;
|
|
121
125
|
};
|
|
122
126
|
|
|
123
|
-
export declare const CheckboxGroup: ({ className, classnames, disabled, label, onChange, options, ref, value, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
127
|
+
export declare const CheckboxGroup: ({ className, classnames, disabled, label, onChange, options, ref, value, variant, ...rest }: CheckboxGroupProps) => JSX.Element;
|
|
124
128
|
|
|
125
129
|
export declare type CheckboxGroupClassNames = {
|
|
126
130
|
label?: string;
|
|
@@ -139,6 +143,7 @@ export declare type CheckboxGroupProps = VacanoComponentProps<HTMLDivElement, Ch
|
|
|
139
143
|
onChange: (values: string[]) => void;
|
|
140
144
|
label?: string;
|
|
141
145
|
disabled?: boolean;
|
|
146
|
+
variant?: CheckboxVariant;
|
|
142
147
|
};
|
|
143
148
|
|
|
144
149
|
export declare type CheckboxProps = VacanoComponentProps<HTMLInputElement, CheckboxClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange' | 'className'> & {
|
|
@@ -203,7 +208,9 @@ export declare const Container: ({ children, className, ref, ...rest }: PropsWit
|
|
|
203
208
|
|
|
204
209
|
export declare type ContainerProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
205
210
|
|
|
206
|
-
|
|
211
|
+
declare const creditCard: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
212
|
+
|
|
213
|
+
export declare const DatePicker: ({ value, onChange, mode, displayFormat, placeholder, locale, weekStartsOn, minDate, maxDate, size, variant, disabled, fullWidth, label, message, portalRenderNode, open: controlledOpen, onOpen, onClose, className, classnames, ref, ...rest }: DatePickerProps) => JSX.Element;
|
|
207
214
|
|
|
208
215
|
export declare type DatePickerClassNames = {
|
|
209
216
|
trigger?: string;
|
|
@@ -254,6 +261,8 @@ export declare type DatePickerProps = VacanoComponentProps<HTMLDivElement, DateP
|
|
|
254
261
|
onOpen?: () => void;
|
|
255
262
|
/** Callback when dropdown closes */
|
|
256
263
|
onClose?: () => void;
|
|
264
|
+
/** Message text below the picker */
|
|
265
|
+
message?: string;
|
|
257
266
|
};
|
|
258
267
|
|
|
259
268
|
export declare type DatePickerVariant = 'normal' | 'error';
|
|
@@ -304,19 +313,7 @@ export declare type DropdownProps = VacanoComponentProps<HTMLDivElement, Dropdow
|
|
|
304
313
|
trigger: ReactElement;
|
|
305
314
|
};
|
|
306
315
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
export declare type EditableTextClassNames = {
|
|
310
|
-
text?: string;
|
|
311
|
-
button?: string;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export declare type EditableTextProps = VacanoComponentProps<HTMLDivElement, EditableTextClassNames> & {
|
|
315
|
-
value: string;
|
|
316
|
-
onChange: (value: string) => void;
|
|
317
|
-
disabled?: boolean;
|
|
318
|
-
placeholder?: string;
|
|
319
|
-
};
|
|
316
|
+
declare const email: (options?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
320
317
|
|
|
321
318
|
export declare const FieldLabel: ({ children, className, ref, required, variant, ...rest }: FieldLabelProps) => JSX.Element | null;
|
|
322
319
|
|
|
@@ -337,6 +334,12 @@ export declare type FieldMessageProps = VacanoComponentProps<HTMLSpanElement> &
|
|
|
337
334
|
|
|
338
335
|
export declare type FieldMessageVariant = 'normal' | 'error' | 'success' | 'warning';
|
|
339
336
|
|
|
337
|
+
export declare const FieldRow: ({ className, gap, ref, ...rest }: FieldRowProps) => JSX.Element;
|
|
338
|
+
|
|
339
|
+
export declare type FieldRowProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
340
|
+
gap?: number | string;
|
|
341
|
+
};
|
|
342
|
+
|
|
340
343
|
/**
|
|
341
344
|
* Go-style date formatting
|
|
342
345
|
* Reference time: Mon Jan 2 15:04:05 MST 2006
|
|
@@ -371,6 +374,8 @@ export declare const getOperatingSystem: () => OperatingSystem;
|
|
|
371
374
|
|
|
372
375
|
export declare const GlobalStyle: () => JSX.Element;
|
|
373
376
|
|
|
377
|
+
declare const hexColor: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
378
|
+
|
|
374
379
|
export declare const ImageCropper: ({ allowedTypes, applyLabel, buttonLabel, cancelLabel, className, classnames, compression, maxFileSize, onCrop, onError, outputSize, portalSize, previewSize, ref, type, value, ...rest }: ImageCropperProps) => JSX.Element;
|
|
375
380
|
|
|
376
381
|
export declare type ImageCropperClassNames = {
|
|
@@ -405,7 +410,7 @@ export declare type ImageCropperState = {
|
|
|
405
410
|
sourceHeight: number;
|
|
406
411
|
};
|
|
407
412
|
|
|
408
|
-
export declare const Input: ({ className, classnames, disabled, fullWidth, label, ref, size, variant, ...rest }: InputProps) => JSX.Element;
|
|
413
|
+
export declare const Input: ({ className, classnames, disabled, fullWidth, label, ref, message, prefix, size, variant, ...rest }: InputProps) => JSX.Element;
|
|
409
414
|
|
|
410
415
|
export declare type InputClassNames = {
|
|
411
416
|
input?: string;
|
|
@@ -417,10 +422,14 @@ export declare type InputProps = VacanoComponentProps<HTMLInputElement, InputCla
|
|
|
417
422
|
label?: string;
|
|
418
423
|
size?: VacanoComponentSize;
|
|
419
424
|
variant?: InputVariant;
|
|
425
|
+
message?: string;
|
|
426
|
+
prefix?: ReactNode;
|
|
420
427
|
};
|
|
421
428
|
|
|
422
429
|
export declare type InputVariant = 'normal' | 'error';
|
|
423
430
|
|
|
431
|
+
declare const ipv4: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
432
|
+
|
|
424
433
|
export declare const isValid: (hexColor: string) => boolean;
|
|
425
434
|
|
|
426
435
|
export declare const KEY_SYMBOLS: Partial<Record<KeyboardEventKey, {
|
|
@@ -561,6 +570,8 @@ export declare const mediaDown: (bp: Breakpoint) => string;
|
|
|
561
570
|
|
|
562
571
|
export declare const mediaUp: (bp: Breakpoint) => string;
|
|
563
572
|
|
|
573
|
+
declare const minAge: (years: number, message?: string) => DateSchema<Date | undefined, AnyObject, undefined, "">;
|
|
574
|
+
|
|
564
575
|
export declare const Modal: ({ animated, children, className, classnames, open, ref, width, ...rest }: ModalProps) => ReactPortal | null;
|
|
565
576
|
|
|
566
577
|
export declare type ModalClassNames = {
|
|
@@ -575,7 +586,7 @@ export declare type ModalProps = VacanoComponentProps<HTMLDivElement, ModalClass
|
|
|
575
586
|
width?: string;
|
|
576
587
|
};
|
|
577
588
|
|
|
578
|
-
export declare const MultiSelect: ({ className, classnames, disabled, emptyMessage, label, maxVisible, modalTitle, onChange, options, placeholder, ref, searchPlaceholder, value, variant, ...rest }: MultiSelectProps) => JSX.Element;
|
|
589
|
+
export declare const MultiSelect: ({ className, classnames, disabled, emptyMessage, label, maxVisible, message, modalTitle, onChange, options, placeholder, ref, searchPlaceholder, value, variant, ...rest }: MultiSelectProps) => JSX.Element;
|
|
579
590
|
|
|
580
591
|
export declare type MultiSelectClassNames = {
|
|
581
592
|
trigger?: string;
|
|
@@ -607,12 +618,15 @@ export declare type MultiSelectProps = VacanoComponentProps<HTMLDivElement, Mult
|
|
|
607
618
|
emptyMessage?: ReactNode;
|
|
608
619
|
searchPlaceholder?: string;
|
|
609
620
|
modalTitle?: string;
|
|
621
|
+
message?: string;
|
|
610
622
|
};
|
|
611
623
|
|
|
612
624
|
export declare type MultiSelectVariant = 'normal' | 'error';
|
|
613
625
|
|
|
614
626
|
export declare const newClassNameGetter: (name: string) => (element: string, ...classNames: Array<string | undefined>) => string;
|
|
615
627
|
|
|
628
|
+
declare const noSpaces: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
629
|
+
|
|
616
630
|
declare type Notification_2 = {
|
|
617
631
|
id: string;
|
|
618
632
|
message: ReactNode;
|
|
@@ -667,7 +681,7 @@ export declare type NotifyConfirmationState = {
|
|
|
667
681
|
|
|
668
682
|
export declare type OperatingSystem = 'windows' | 'macos' | 'linux' | 'ios' | 'android' | 'unknown';
|
|
669
683
|
|
|
670
|
-
export declare const OtpCode: ({ autoFocus, className, classnames, disabled, label, length, onChange, ref, size, value, variant, ...rest }: OtpCodeProps) => JSX.Element;
|
|
684
|
+
export declare const OtpCode: ({ autoFocus, className, classnames, disabled, label, length, message, onChange, ref, size, value, variant, ...rest }: OtpCodeProps) => JSX.Element;
|
|
671
685
|
|
|
672
686
|
export declare type OtpCodeClassNames = {
|
|
673
687
|
container?: string;
|
|
@@ -684,6 +698,7 @@ export declare type OtpCodeProps = VacanoComponentProps<HTMLDivElement, OtpCodeC
|
|
|
684
698
|
size?: VacanoComponentSize;
|
|
685
699
|
value?: string;
|
|
686
700
|
variant?: OtpCodeVariant;
|
|
701
|
+
message?: string;
|
|
687
702
|
};
|
|
688
703
|
|
|
689
704
|
export declare type OtpCodeVariant = 'normal' | 'error';
|
|
@@ -705,6 +720,10 @@ export declare type PanelProps = VacanoComponentProps<HTMLDivElement, PanelClass
|
|
|
705
720
|
|
|
706
721
|
export declare type PanelVariant = 'light' | 'dark';
|
|
707
722
|
|
|
723
|
+
declare const password: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
724
|
+
|
|
725
|
+
declare const phone: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
726
|
+
|
|
708
727
|
export declare const Progress: ({ value, size, className, classnames, ref, ...rest }: ProgressProps) => JSX.Element;
|
|
709
728
|
|
|
710
729
|
export declare type ProgressClassNames = {
|
|
@@ -748,7 +767,7 @@ export declare type RadioClassNames = {
|
|
|
748
767
|
label?: string;
|
|
749
768
|
};
|
|
750
769
|
|
|
751
|
-
export declare const RadioGroup: <T extends string = string>({ className, classnames, disabled, label, name, onChange, options, ref, value, ...rest }: RadioGroupProps<T>) => JSX.Element;
|
|
770
|
+
export declare const RadioGroup: <T extends string = string>({ className, classnames, disabled, label, name, onChange, options, ref, value, variant, ...rest }: RadioGroupProps<T>) => JSX.Element;
|
|
752
771
|
|
|
753
772
|
export declare type RadioGroupClassNames = {
|
|
754
773
|
label?: string;
|
|
@@ -768,6 +787,7 @@ export declare type RadioGroupProps<T extends string = string> = VacanoComponent
|
|
|
768
787
|
label?: string;
|
|
769
788
|
name?: string;
|
|
770
789
|
disabled?: boolean;
|
|
790
|
+
variant?: RadioVariant;
|
|
771
791
|
};
|
|
772
792
|
|
|
773
793
|
export declare type RadioProps = VacanoComponentProps<HTMLInputElement, RadioClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange' | 'className'> & {
|
|
@@ -792,7 +812,7 @@ export declare type SaveProgressProviderProps = {
|
|
|
792
812
|
defaultMessage?: string;
|
|
793
813
|
};
|
|
794
814
|
|
|
795
|
-
export declare const Select: ({ className, classnames, disabled, fullWidth, label, onChange, options, placeholder, portalRenderNode, ref, size, value, variant, ...rest }: SelectProps) => JSX.Element;
|
|
815
|
+
export declare const Select: ({ className, classnames, disabled, fullWidth, label, message, onChange, options, placeholder, portalRenderNode, ref, size, value, variant, ...rest }: SelectProps) => JSX.Element;
|
|
796
816
|
|
|
797
817
|
export declare type SelectClassNames = {
|
|
798
818
|
label?: string;
|
|
@@ -817,11 +837,14 @@ export declare type SelectProps = VacanoComponentProps<HTMLDivElement, SelectCla
|
|
|
817
837
|
size?: VacanoComponentSize;
|
|
818
838
|
disabled?: boolean;
|
|
819
839
|
fullWidth?: boolean;
|
|
840
|
+
message?: string;
|
|
820
841
|
portalRenderNode?: HTMLElement | null;
|
|
821
842
|
};
|
|
822
843
|
|
|
823
844
|
export declare type SelectVariant = 'normal' | 'error';
|
|
824
845
|
|
|
846
|
+
declare const slug: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
847
|
+
|
|
825
848
|
export declare const Spinner: ({ "aria-label": ariaLabel, className, ref, size, ...rest }: SpinnerProps) => JSX.Element;
|
|
826
849
|
|
|
827
850
|
export declare type SpinnerClassNames = Record<string, never>;
|
|
@@ -833,26 +856,6 @@ export declare type SpinnerProps = VacanoComponentProps<HTMLDivElement, SpinnerC
|
|
|
833
856
|
|
|
834
857
|
export declare type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
835
858
|
|
|
836
|
-
export declare const StatusCard: ({ border, className, classnames, icon, label, ref, shadow, trend, trendVariant, value, ...rest }: StatusCardProps) => JSX.Element;
|
|
837
|
-
|
|
838
|
-
export declare type StatusCardClassNames = {
|
|
839
|
-
label?: string;
|
|
840
|
-
value?: string;
|
|
841
|
-
trend?: string;
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
export declare type StatusCardProps = VacanoComponentProps<HTMLDivElement, StatusCardClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
845
|
-
border?: boolean;
|
|
846
|
-
icon?: ReactNode;
|
|
847
|
-
label: string;
|
|
848
|
-
shadow?: boolean;
|
|
849
|
-
trend?: string;
|
|
850
|
-
trendVariant?: StatusCardTrend;
|
|
851
|
-
value: string;
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
export declare type StatusCardTrend = 'positive' | 'negative' | 'neutral';
|
|
855
|
-
|
|
856
859
|
export declare type StepItem = {
|
|
857
860
|
value: string;
|
|
858
861
|
label: string;
|
|
@@ -894,7 +897,7 @@ export declare type TabsProps = VacanoComponentProps<HTMLDivElement, TabsClassNa
|
|
|
894
897
|
onChange: (value: string) => void;
|
|
895
898
|
};
|
|
896
899
|
|
|
897
|
-
export declare const Tags: ({ className, classnames, createKey, disabled, emptyMessage, freeSolo, label, onChange, options, placeholder, portalRenderNode, ref, value, variant, ...rest }: TagsProps) => JSX.Element;
|
|
900
|
+
export declare const Tags: ({ className, classnames, createKey, disabled, emptyMessage, freeSolo, label, message, onChange, options, placeholder, portalRenderNode, ref, value, variant, ...rest }: TagsProps) => JSX.Element;
|
|
898
901
|
|
|
899
902
|
export declare type TagsClassNames = {
|
|
900
903
|
trigger?: string;
|
|
@@ -924,11 +927,12 @@ export declare type TagsProps = VacanoComponentProps<HTMLDivElement, TagsClassNa
|
|
|
924
927
|
createKey?: TagsCreateKey;
|
|
925
928
|
emptyMessage?: ReactNode;
|
|
926
929
|
portalRenderNode?: HTMLElement | null;
|
|
930
|
+
message?: string;
|
|
927
931
|
};
|
|
928
932
|
|
|
929
933
|
export declare type TagsVariant = 'normal' | 'error';
|
|
930
934
|
|
|
931
|
-
export declare const Textarea: ({ className, classnames, disabled, fullWidth, label, ref, variant, rows, ...rest }: TextareaProps) => JSX.Element;
|
|
935
|
+
export declare const Textarea: ({ className, classnames, count, disabled, fullWidth, label, message, ref, value, variant, rows, ...rest }: TextareaProps) => JSX.Element;
|
|
932
936
|
|
|
933
937
|
export declare type TextareaClassNames = {
|
|
934
938
|
textarea?: string;
|
|
@@ -939,6 +943,8 @@ export declare type TextareaProps = VacanoComponentProps<HTMLTextAreaElement, Te
|
|
|
939
943
|
fullWidth?: boolean;
|
|
940
944
|
label?: string;
|
|
941
945
|
variant?: TextareaVariant;
|
|
946
|
+
message?: string;
|
|
947
|
+
count?: number;
|
|
942
948
|
};
|
|
943
949
|
|
|
944
950
|
export declare type TextareaVariant = 'normal' | 'error';
|
|
@@ -985,6 +991,66 @@ export declare type ToastState = {
|
|
|
985
991
|
|
|
986
992
|
export declare type ToastVariant = 'default' | 'success' | 'warning' | 'danger';
|
|
987
993
|
|
|
994
|
+
export declare const Toggle: ({ checked, className, classnames, disabled, label, onChange, ref, variant, ...rest }: ToggleProps) => JSX.Element;
|
|
995
|
+
|
|
996
|
+
export declare const ToggleCard: ({ checked, className, classnames, description, disabled, fullWidth, label, onChange, ref, variant, ...rest }: ToggleCardProps) => JSX.Element;
|
|
997
|
+
|
|
998
|
+
export declare type ToggleCardClassNames = {
|
|
999
|
+
toggle?: string;
|
|
1000
|
+
content?: string;
|
|
1001
|
+
label?: string;
|
|
1002
|
+
description?: string;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export declare type ToggleCardProps = VacanoComponentProps<HTMLInputElement, ToggleCardClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange' | 'className'> & {
|
|
1006
|
+
checked: boolean;
|
|
1007
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
1008
|
+
label: string;
|
|
1009
|
+
description?: string;
|
|
1010
|
+
fullWidth?: boolean;
|
|
1011
|
+
variant?: ToggleCardVariant;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
export declare type ToggleCardVariant = 'normal' | 'error';
|
|
1015
|
+
|
|
1016
|
+
export declare type ToggleClassNames = {
|
|
1017
|
+
input?: string;
|
|
1018
|
+
track?: string;
|
|
1019
|
+
thumb?: string;
|
|
1020
|
+
label?: string;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
export declare const ToggleGroup: ({ className, classnames, disabled, label, onChange, options, ref, value, variant, ...rest }: ToggleGroupProps) => JSX.Element;
|
|
1024
|
+
|
|
1025
|
+
export declare type ToggleGroupClassNames = {
|
|
1026
|
+
label?: string;
|
|
1027
|
+
options?: string;
|
|
1028
|
+
toggle?: string;
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
export declare type ToggleGroupOption = {
|
|
1032
|
+
label: string;
|
|
1033
|
+
value: string;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
export declare type ToggleGroupProps = VacanoComponentProps<HTMLDivElement, ToggleGroupClassNames> & {
|
|
1037
|
+
options: ToggleGroupOption[];
|
|
1038
|
+
value: string[];
|
|
1039
|
+
onChange: (values: string[]) => void;
|
|
1040
|
+
label?: string;
|
|
1041
|
+
disabled?: boolean;
|
|
1042
|
+
variant?: ToggleVariant;
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
export declare type ToggleProps = VacanoComponentProps<HTMLInputElement, ToggleClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange' | 'className'> & {
|
|
1046
|
+
checked: boolean;
|
|
1047
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
1048
|
+
label?: ReactNode;
|
|
1049
|
+
variant?: ToggleVariant;
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
export declare type ToggleVariant = 'normal' | 'error';
|
|
1053
|
+
|
|
988
1054
|
export declare const toHEX: (n: number) => string;
|
|
989
1055
|
|
|
990
1056
|
export declare const Tooltip: ({ children, className, classnames, content, delay, placement, portalRenderNode, ref, variant, ...rest }: TooltipProps) => JSX.Element;
|
|
@@ -1006,6 +1072,8 @@ export declare type TooltipProps = VacanoComponentProps<HTMLDivElement, TooltipC
|
|
|
1006
1072
|
|
|
1007
1073
|
export declare type TooltipVariant = 'dark' | 'light' | 'success' | 'warning' | 'danger';
|
|
1008
1074
|
|
|
1075
|
+
declare const url: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
1076
|
+
|
|
1009
1077
|
export declare const useConfirmation: () => ConfirmationContextValue;
|
|
1010
1078
|
|
|
1011
1079
|
export declare const useImageCropper: (options?: UseImageCropperOptions) => UseImageCropperReturn;
|
|
@@ -1061,4 +1129,19 @@ export declare type VacanoValueItem = {
|
|
|
1061
1129
|
disabled?: boolean;
|
|
1062
1130
|
};
|
|
1063
1131
|
|
|
1132
|
+
export declare namespace validation {
|
|
1133
|
+
export {
|
|
1134
|
+
creditCard,
|
|
1135
|
+
email,
|
|
1136
|
+
hexColor,
|
|
1137
|
+
ipv4,
|
|
1138
|
+
minAge,
|
|
1139
|
+
noSpaces,
|
|
1140
|
+
password,
|
|
1141
|
+
phone,
|
|
1142
|
+
slug,
|
|
1143
|
+
url
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1064
1147
|
export { }
|