@wix/site-ui 1.12.0 → 1.14.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 +40 -0
- package/dist/Accordion/index.d.ts +5 -0
- package/dist/Accordion/index.js +23 -2
- package/dist/AlertDialog/index.css +48 -0
- package/dist/AlertDialog/index.js +8 -1
- package/dist/Autocomplete/index.css +114 -0
- package/dist/Autocomplete/index.js +9 -1
- package/dist/Avatar/index.css +34 -0
- package/dist/Avatar/index.d.ts +11 -0
- package/dist/Avatar/index.js +19 -3
- 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 +73 -0
- package/dist/Checkbox/index.d.ts +8 -0
- package/dist/Checkbox/index.js +15 -3
- package/dist/CheckboxGroup/index.css +8 -1
- package/dist/CheckboxGroup/index.js +3 -1
- package/dist/Collapsible/index.css +45 -0
- package/dist/Collapsible/index.js +5 -1
- package/dist/Combobox/index.css +216 -0
- package/dist/Combobox/index.js +19 -1
- package/dist/ContextMenu/index.css +150 -0
- package/dist/ContextMenu/index.js +9 -1
- package/dist/Dialog/index.css +48 -0
- package/dist/Dialog/index.js +8 -1
- package/dist/Drawer/index.css +46 -0
- package/dist/Drawer/index.js +5 -1
- package/dist/Field/index.css +34 -0
- package/dist/Field/index.js +7 -1
- package/dist/Fieldset/index.css +8 -1
- package/dist/Fieldset/index.js +3 -1
- package/dist/Input/index.css +70 -0
- package/dist/Input/index.js +3 -1
- package/dist/Menu/index.css +83 -0
- package/dist/Menu/index.js +7 -1
- package/dist/Meter/index.css +38 -0
- package/dist/Meter/index.js +7 -1
- package/dist/NavigationMenu/index.css +47 -0
- package/dist/NavigationMenu/index.js +7 -1
- package/dist/NumberField/index.css +114 -0
- package/dist/NumberField/index.js +8 -1
- package/dist/Popover/index.css +88 -0
- package/dist/Popover/index.js +7 -1
- package/dist/PreviewCard/index.css +73 -0
- package/dist/PreviewCard/index.js +5 -1
- package/dist/Progress/index.css +24 -0
- package/dist/Progress/index.d.ts +9 -0
- package/dist/Progress/index.js +19 -3
- package/dist/Radio/index.css +59 -0
- package/dist/Radio/index.d.ts +11 -1
- package/dist/Radio/index.js +16 -4
- package/dist/RadioGroup/index.css +7 -1
- package/dist/RadioGroup/index.js +3 -1
- package/dist/ScrollArea/index.css +35 -0
- package/dist/ScrollArea/index.js +6 -1
- package/dist/Select/index.css +160 -0
- package/dist/Select/index.js +15 -1
- package/dist/Separator/index.css +19 -0
- package/dist/Separator/index.js +3 -1
- package/dist/Slider/index.css +60 -0
- package/dist/Slider/index.d.ts +11 -1
- package/dist/Slider/index.js +21 -4
- package/dist/Switch/index.css +44 -0
- package/dist/Switch/index.d.ts +18 -0
- package/dist/Switch/index.js +26 -3
- package/dist/Tabs/index.css +81 -0
- package/dist/Tabs/index.js +6 -1
- package/dist/Toggle/index.css +70 -0
- package/dist/Toggle/index.js +5 -1
- 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 +132 -0
- package/dist/Tooltip/index.js +6 -1
- 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 +82 -5
- package/dist/index.js +7 -6
- package/package.json +2 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import * as __rspack_external_react from "react";
|
|
4
|
+
const Typography_module = {
|
|
5
|
+
h1: "h1-go2_mI",
|
|
6
|
+
h2: "h2-dAyvwd",
|
|
7
|
+
h3: "h3-LClqyK",
|
|
8
|
+
h4: "h4-pzBHGr",
|
|
9
|
+
h5: "h5-HOx5Wp",
|
|
10
|
+
h6: "h6-zCNm1M",
|
|
11
|
+
p1: "p1-pY02jM",
|
|
12
|
+
p2: "p2-TsZIq5",
|
|
13
|
+
p3: "p3-N6QdAQ"
|
|
14
|
+
};
|
|
15
|
+
const variantToElementTagMap = {
|
|
16
|
+
h1: 'h1',
|
|
17
|
+
h2: 'h2',
|
|
18
|
+
h3: 'h3',
|
|
19
|
+
h4: 'h4',
|
|
20
|
+
h5: 'h5',
|
|
21
|
+
h6: 'h6',
|
|
22
|
+
p1: 'p',
|
|
23
|
+
p2: 'p',
|
|
24
|
+
p3: 'p'
|
|
25
|
+
};
|
|
26
|
+
const Typography = /*#__PURE__*/ __rspack_external_react.forwardRef(({ variant = 'p2', render: renderProp, className, ...props }, ref)=>{
|
|
27
|
+
const variantClass = Typography_module[variant];
|
|
28
|
+
if (renderProp) {
|
|
29
|
+
const { className: renderClassName, ...renderElementProps } = renderProp.props;
|
|
30
|
+
return /*#__PURE__*/ __rspack_external_react.cloneElement(renderProp, {
|
|
31
|
+
...renderElementProps,
|
|
32
|
+
...props,
|
|
33
|
+
ref,
|
|
34
|
+
className: clsx(variantClass, renderClassName, className)
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const Tag = variantToElementTagMap[variant];
|
|
38
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
className: clsx(variantClass, className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
export { Typography };
|
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;
|
|
@@ -326,6 +331,8 @@ export declare const Autocomplete: {
|
|
|
326
331
|
export declare const Avatar: {
|
|
327
332
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AvatarRootProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
328
333
|
className?: string | undefined;
|
|
334
|
+
} & {
|
|
335
|
+
size?: string | number | undefined;
|
|
329
336
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
330
337
|
Image: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AvatarImageProps, "ref"> & React_2.RefAttributes<HTMLImageElement>, "ref">, "className"> & {
|
|
331
338
|
className?: string | undefined;
|
|
@@ -335,22 +342,30 @@ export declare const Avatar: {
|
|
|
335
342
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
336
343
|
};
|
|
337
344
|
|
|
345
|
+
export declare const AvatarSize: {
|
|
346
|
+
readonly xxSmall: 16;
|
|
347
|
+
readonly xSmall: 20;
|
|
348
|
+
readonly small: 28;
|
|
349
|
+
readonly medium: 36;
|
|
350
|
+
readonly large: 52;
|
|
351
|
+
readonly xLarge: 60;
|
|
352
|
+
};
|
|
353
|
+
|
|
338
354
|
declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
|
|
339
355
|
|
|
340
356
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLElement>>;
|
|
341
357
|
|
|
342
358
|
declare interface ButtonProps extends BaseProps {
|
|
343
359
|
variant?: ButtonVariant;
|
|
344
|
-
size?: ButtonSize;
|
|
345
360
|
}
|
|
346
361
|
|
|
347
|
-
declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
348
|
-
|
|
349
362
|
declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
350
363
|
|
|
351
364
|
export declare const Checkbox: {
|
|
352
365
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
353
366
|
className?: string | undefined;
|
|
367
|
+
} & {
|
|
368
|
+
size?: number | undefined;
|
|
354
369
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
355
370
|
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
356
371
|
className?: string | undefined;
|
|
@@ -361,6 +376,12 @@ export declare const CheckboxGroup: React_2.ForwardRefExoticComponent<Omit<Omit<
|
|
|
361
376
|
className?: string | undefined;
|
|
362
377
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
363
378
|
|
|
379
|
+
export declare const CheckboxSize: {
|
|
380
|
+
readonly small: 12;
|
|
381
|
+
readonly medium: 16;
|
|
382
|
+
readonly large: 20;
|
|
383
|
+
};
|
|
384
|
+
|
|
364
385
|
declare function Close({ className, ...props }: WithStringClassName<Drawer_2.Close.Props>): JSX_2.Element;
|
|
365
386
|
|
|
366
387
|
export declare const Collapsible: {
|
|
@@ -797,6 +818,8 @@ export declare const PreviewCard: {
|
|
|
797
818
|
export declare const Progress: {
|
|
798
819
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ProgressRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
799
820
|
className?: string | undefined;
|
|
821
|
+
} & {
|
|
822
|
+
size?: number | undefined;
|
|
800
823
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
801
824
|
Track: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ProgressTrackProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
802
825
|
className?: string | undefined;
|
|
@@ -812,6 +835,13 @@ export declare const Progress: {
|
|
|
812
835
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
813
836
|
};
|
|
814
837
|
|
|
838
|
+
export declare const ProgressSize: {
|
|
839
|
+
readonly thin: 4;
|
|
840
|
+
readonly small: 6;
|
|
841
|
+
readonly medium: 8;
|
|
842
|
+
readonly large: 12;
|
|
843
|
+
};
|
|
844
|
+
|
|
815
845
|
export declare const Radio: {
|
|
816
846
|
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<RadioIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
817
847
|
className?: string | undefined;
|
|
@@ -823,13 +853,27 @@ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<Omit<Rad
|
|
|
823
853
|
className?: string | undefined;
|
|
824
854
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
825
855
|
|
|
856
|
+
export declare const RadioSize: {
|
|
857
|
+
readonly small: 12;
|
|
858
|
+
readonly medium: 16;
|
|
859
|
+
readonly large: 20;
|
|
860
|
+
};
|
|
861
|
+
|
|
826
862
|
declare function Root<Value = any>({ className, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>>): JSX_2.Element;
|
|
827
863
|
|
|
828
864
|
declare function Root_2<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
829
865
|
|
|
830
|
-
declare function Root_3<Value>({ className, ...props }:
|
|
866
|
+
declare function Root_3<Value>({ className, size, style, ...props }: RootProps<Value>): JSX_2.Element;
|
|
831
867
|
|
|
832
|
-
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
|
+
};
|
|
833
877
|
|
|
834
878
|
export declare const ScrollArea: {
|
|
835
879
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ScrollAreaRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
@@ -932,15 +976,39 @@ export declare const Slider: {
|
|
|
932
976
|
Root: typeof Root_4;
|
|
933
977
|
};
|
|
934
978
|
|
|
979
|
+
export declare const SliderSize: {
|
|
980
|
+
readonly small: 12;
|
|
981
|
+
readonly medium: 16;
|
|
982
|
+
readonly large: 20;
|
|
983
|
+
};
|
|
984
|
+
|
|
935
985
|
export declare const Switch: {
|
|
936
986
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SwitchRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
937
987
|
className?: string | undefined;
|
|
988
|
+
} & {
|
|
989
|
+
width?: number | undefined;
|
|
990
|
+
height?: number | undefined;
|
|
938
991
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
939
992
|
Thumb: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SwitchThumbProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
940
993
|
className?: string | undefined;
|
|
941
994
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
942
995
|
};
|
|
943
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
|
+
|
|
944
1012
|
export declare const Tabs: {
|
|
945
1013
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<TabsRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
946
1014
|
className?: string | undefined;
|
|
@@ -1027,6 +1095,15 @@ declare function Trigger_7<Payload = unknown>({ className, ...props }: WithStrin
|
|
|
1027
1095
|
|
|
1028
1096
|
declare function Trigger_8<Payload = unknown>({ className, ...props }: WithStringClassName<Tooltip_2.Trigger.Props<Payload>> & React_2.RefAttributes<HTMLElement>): JSX_2.Element;
|
|
1029
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
|
+
|
|
1030
1107
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
1031
1108
|
className?: string;
|
|
1032
1109
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { Accordion } from "./Accordion/index.js";
|
|
2
2
|
export { AlertDialog } from "./AlertDialog/index.js";
|
|
3
3
|
export { Autocomplete } from "./Autocomplete/index.js";
|
|
4
|
-
export { Avatar } from "./Avatar/index.js";
|
|
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.14.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
|
}
|