@wix/site-ui 1.13.0 → 1.15.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/dist/Accordion/index.css +7 -10
- package/dist/Accordion/index.d.ts +5 -0
- package/dist/Accordion/index.js +16 -1
- package/dist/AlertDialog/index.css +15 -4
- package/dist/AlertDialog/index.js +3 -1
- package/dist/Autocomplete/index.css +7 -0
- package/dist/Autocomplete/index.js +2 -1
- package/dist/Avatar/index.css +6 -4
- package/dist/Button/index.css +78 -55
- package/dist/Button/index.d.ts +0 -3
- package/dist/Button/index.js +3 -19
- package/dist/Checkbox/index.css +9 -8
- package/dist/Checkbox/index.d.ts +8 -0
- package/dist/Checkbox/index.js +11 -2
- package/dist/CheckboxGroup/index.css +1 -1
- package/dist/Combobox/index.css +7 -7
- package/dist/ContextMenu/index.css +6 -0
- package/dist/ContextMenu/index.js +1 -0
- package/dist/Dialog/index.css +15 -4
- package/dist/Dialog/index.js +3 -1
- package/dist/Drawer/index.css +22 -4
- package/dist/Drawer/index.js +2 -0
- package/dist/Field/index.css +12 -9
- package/dist/Field/index.js +2 -1
- package/dist/Fieldset/index.css +8 -1
- package/dist/Fieldset/index.js +3 -1
- package/dist/Input/index.css +3 -4
- package/dist/Menu/index.css +15 -6
- package/dist/Menu/index.js +2 -0
- package/dist/Meter/index.css +4 -1
- package/dist/NavigationMenu/index.css +47 -0
- package/dist/NavigationMenu/index.js +7 -1
- package/dist/NumberField/index.css +10 -3
- package/dist/Popover/index.css +12 -0
- package/dist/Popover/index.js +3 -1
- package/dist/Progress/index.css +8 -8
- package/dist/Progress/index.d.ts +9 -0
- package/dist/Progress/index.js +12 -2
- package/dist/Radio/index.css +16 -4
- package/dist/Radio/index.d.ts +11 -1
- package/dist/Radio/index.js +12 -3
- package/dist/ScrollArea/index.css +35 -0
- package/dist/ScrollArea/index.js +6 -1
- package/dist/Select/index.css +7 -12
- package/dist/Slider/index.css +16 -5
- package/dist/Slider/index.d.ts +11 -1
- package/dist/Slider/index.js +14 -3
- package/dist/Switch/index.css +28 -20
- package/dist/Switch/index.d.ts +18 -0
- package/dist/Switch/index.js +22 -2
- package/dist/Tabs/index.css +1 -1
- package/dist/Toggle/index.css +32 -8
- package/dist/ToggleGroup/index.css +4 -1
- package/dist/ToggleGroup/index.js +3 -1
- package/dist/Toolbar/index.css +56 -0
- package/dist/Toolbar/index.js +6 -1
- package/dist/Tooltip/index.css +20 -2
- package/dist/Tooltip/index.js +1 -0
- package/dist/Typography/index.css +45 -0
- package/dist/Typography/index.d.ts +12 -0
- package/dist/Typography/index.js +44 -0
- package/dist/index.d.ts +71 -5
- package/dist/index.js +6 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ export declare const Accordion: {
|
|
|
241
241
|
className?: string | undefined;
|
|
242
242
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
243
243
|
Root: typeof Root;
|
|
244
|
+
Arrow: React_2.ForwardRefExoticComponent<Omit<ArrowProps, "ref"> & React_2.RefAttributes<SVGSVGElement>>;
|
|
244
245
|
};
|
|
245
246
|
|
|
246
247
|
export declare const AlertDialog: {
|
|
@@ -269,6 +270,10 @@ export declare const AlertDialog: {
|
|
|
269
270
|
createHandle: typeof AlertDialog_2.createHandle;
|
|
270
271
|
};
|
|
271
272
|
|
|
273
|
+
declare type ArrowProps = React_2.SVGProps<SVGSVGElement> & {
|
|
274
|
+
className?: string;
|
|
275
|
+
};
|
|
276
|
+
|
|
272
277
|
export declare const Autocomplete: {
|
|
273
278
|
InputGroup: React_2.ForwardRefExoticComponent<Omit<Omit<AutocompleteInputGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
274
279
|
className?: string | undefined;
|
|
@@ -352,16 +357,15 @@ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & Rea
|
|
|
352
357
|
|
|
353
358
|
declare interface ButtonProps extends BaseProps {
|
|
354
359
|
variant?: ButtonVariant;
|
|
355
|
-
size?: ButtonSize;
|
|
356
360
|
}
|
|
357
361
|
|
|
358
|
-
declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
359
|
-
|
|
360
362
|
declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
361
363
|
|
|
362
364
|
export declare const Checkbox: {
|
|
363
365
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
364
366
|
className?: string | undefined;
|
|
367
|
+
} & {
|
|
368
|
+
size?: number | undefined;
|
|
365
369
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
366
370
|
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
367
371
|
className?: string | undefined;
|
|
@@ -372,6 +376,12 @@ export declare const CheckboxGroup: React_2.ForwardRefExoticComponent<Omit<Omit<
|
|
|
372
376
|
className?: string | undefined;
|
|
373
377
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
374
378
|
|
|
379
|
+
export declare const CheckboxSize: {
|
|
380
|
+
readonly small: 12;
|
|
381
|
+
readonly medium: 16;
|
|
382
|
+
readonly large: 20;
|
|
383
|
+
};
|
|
384
|
+
|
|
375
385
|
declare function Close({ className, ...props }: WithStringClassName<Drawer_2.Close.Props>): JSX_2.Element;
|
|
376
386
|
|
|
377
387
|
export declare const Collapsible: {
|
|
@@ -808,6 +818,8 @@ export declare const PreviewCard: {
|
|
|
808
818
|
export declare const Progress: {
|
|
809
819
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ProgressRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
810
820
|
className?: string | undefined;
|
|
821
|
+
} & {
|
|
822
|
+
size?: number | undefined;
|
|
811
823
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
812
824
|
Track: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ProgressTrackProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
813
825
|
className?: string | undefined;
|
|
@@ -823,6 +835,13 @@ export declare const Progress: {
|
|
|
823
835
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
824
836
|
};
|
|
825
837
|
|
|
838
|
+
export declare const ProgressSize: {
|
|
839
|
+
readonly thin: 4;
|
|
840
|
+
readonly small: 6;
|
|
841
|
+
readonly medium: 8;
|
|
842
|
+
readonly large: 12;
|
|
843
|
+
};
|
|
844
|
+
|
|
826
845
|
export declare const Radio: {
|
|
827
846
|
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<RadioIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
828
847
|
className?: string | undefined;
|
|
@@ -834,13 +853,27 @@ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<Omit<Rad
|
|
|
834
853
|
className?: string | undefined;
|
|
835
854
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
836
855
|
|
|
856
|
+
export declare const RadioSize: {
|
|
857
|
+
readonly small: 12;
|
|
858
|
+
readonly medium: 16;
|
|
859
|
+
readonly large: 20;
|
|
860
|
+
};
|
|
861
|
+
|
|
837
862
|
declare function Root<Value = any>({ className, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>>): JSX_2.Element;
|
|
838
863
|
|
|
839
864
|
declare function Root_2<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
840
865
|
|
|
841
|
-
declare function Root_3<Value>({ className, ...props }:
|
|
866
|
+
declare function Root_3<Value>({ className, size, style, ...props }: RootProps<Value>): JSX_2.Element;
|
|
842
867
|
|
|
843
|
-
declare function Root_4<Value extends number | readonly number[]>({ className, ...props }:
|
|
868
|
+
declare function Root_4<Value extends number | readonly number[]>({ className, size, style, ...props }: RootProps_2<Value>): JSX_2.Element;
|
|
869
|
+
|
|
870
|
+
declare type RootProps<Value> = WithStringClassName<Radio_2.Root.Props<Value>> & {
|
|
871
|
+
size?: number;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
declare type RootProps_2<Value extends number | readonly number[]> = WithStringClassName<Slider_2.Root.Props<Value>> & {
|
|
875
|
+
size?: number;
|
|
876
|
+
};
|
|
844
877
|
|
|
845
878
|
export declare const ScrollArea: {
|
|
846
879
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ScrollAreaRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
@@ -943,15 +976,39 @@ export declare const Slider: {
|
|
|
943
976
|
Root: typeof Root_4;
|
|
944
977
|
};
|
|
945
978
|
|
|
979
|
+
export declare const SliderSize: {
|
|
980
|
+
readonly small: 12;
|
|
981
|
+
readonly medium: 16;
|
|
982
|
+
readonly large: 20;
|
|
983
|
+
};
|
|
984
|
+
|
|
946
985
|
export declare const Switch: {
|
|
947
986
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SwitchRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
948
987
|
className?: string | undefined;
|
|
988
|
+
} & {
|
|
989
|
+
width?: number | undefined;
|
|
990
|
+
height?: number | undefined;
|
|
949
991
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
950
992
|
Thumb: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SwitchThumbProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
951
993
|
className?: string | undefined;
|
|
952
994
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
953
995
|
};
|
|
954
996
|
|
|
997
|
+
export declare const SwitchSize: {
|
|
998
|
+
readonly small: {
|
|
999
|
+
readonly width: 36;
|
|
1000
|
+
readonly height: 20;
|
|
1001
|
+
};
|
|
1002
|
+
readonly medium: {
|
|
1003
|
+
readonly width: 44;
|
|
1004
|
+
readonly height: 24;
|
|
1005
|
+
};
|
|
1006
|
+
readonly large: {
|
|
1007
|
+
readonly width: 56;
|
|
1008
|
+
readonly height: 32;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
|
|
955
1012
|
export declare const Tabs: {
|
|
956
1013
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<TabsRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
957
1014
|
className?: string | undefined;
|
|
@@ -1038,6 +1095,15 @@ declare function Trigger_7<Payload = unknown>({ className, ...props }: WithStrin
|
|
|
1038
1095
|
|
|
1039
1096
|
declare function Trigger_8<Payload = unknown>({ className, ...props }: WithStringClassName<Tooltip_2.Trigger.Props<Payload>> & React_2.RefAttributes<HTMLElement>): JSX_2.Element;
|
|
1040
1097
|
|
|
1098
|
+
export declare const Typography: React_2.ForwardRefExoticComponent<TypographyProps & React_2.RefAttributes<HTMLElement>>;
|
|
1099
|
+
|
|
1100
|
+
export declare interface TypographyProps extends React_2.HTMLAttributes<HTMLElement> {
|
|
1101
|
+
variant?: TypographyVariant;
|
|
1102
|
+
render?: React_2.ReactElement;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
export declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p1' | 'p2' | 'p3';
|
|
1106
|
+
|
|
1041
1107
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
1042
1108
|
className?: string;
|
|
1043
1109
|
};
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { AlertDialog } from "./AlertDialog/index.js";
|
|
|
3
3
|
export { Autocomplete } from "./Autocomplete/index.js";
|
|
4
4
|
export { Avatar, AvatarSize } from "./Avatar/index.js";
|
|
5
5
|
export { Button } from "./Button/index.js";
|
|
6
|
-
export { Checkbox } from "./Checkbox/index.js";
|
|
6
|
+
export { Checkbox, CheckboxSize } from "./Checkbox/index.js";
|
|
7
7
|
export { CheckboxGroup } from "./CheckboxGroup/index.js";
|
|
8
8
|
export { Collapsible } from "./Collapsible/index.js";
|
|
9
9
|
export { Combobox } from "./Combobox/index.js";
|
|
@@ -21,16 +21,17 @@ export { NavigationMenu } from "./NavigationMenu/index.js";
|
|
|
21
21
|
export { NumberField } from "./NumberField/index.js";
|
|
22
22
|
export { Popover } from "./Popover/index.js";
|
|
23
23
|
export { PreviewCard } from "./PreviewCard/index.js";
|
|
24
|
-
export { Progress } from "./Progress/index.js";
|
|
25
|
-
export { Radio } from "./Radio/index.js";
|
|
24
|
+
export { Progress, ProgressSize } from "./Progress/index.js";
|
|
25
|
+
export { Radio, RadioSize } from "./Radio/index.js";
|
|
26
26
|
export { RadioGroup } from "./RadioGroup/index.js";
|
|
27
27
|
export { ScrollArea } from "./ScrollArea/index.js";
|
|
28
28
|
export { Select } from "./Select/index.js";
|
|
29
29
|
export { Separator } from "./Separator/index.js";
|
|
30
|
-
export { Slider } from "./Slider/index.js";
|
|
31
|
-
export { Switch } from "./Switch/index.js";
|
|
30
|
+
export { Slider, SliderSize } from "./Slider/index.js";
|
|
31
|
+
export { Switch, SwitchSize } from "./Switch/index.js";
|
|
32
32
|
export { Tabs } from "./Tabs/index.js";
|
|
33
33
|
export { Toggle } from "./Toggle/index.js";
|
|
34
34
|
export { ToggleGroup } from "./ToggleGroup/index.js";
|
|
35
35
|
export { Toolbar } from "./Toolbar/index.js";
|
|
36
36
|
export { Tooltip } from "./Tooltip/index.js";
|
|
37
|
+
export { Typography } from "./Typography/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"registry": "https://registry.npmjs.org/",
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
80
|
+
"falconPackageHash": "a8e93b8a04b6bd9b7dbea47edaf45ce59f109d983f40e5d2332948f4"
|
|
81
81
|
}
|