@wix/site-ui 1.17.0 → 1.19.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 +85 -8
- package/dist/Accordion/index.d.ts +20 -4
- package/dist/Accordion/index.js +19 -14
- package/dist/Field/index.css +1 -6
- package/dist/index.d.ts +22 -6
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/dist/Accordion/index.css
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
background-color: var(--wst-primary-background-color, #fff);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.item-xwNKIu {
|
|
6
|
-
border-bottom
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
.line-t3NkfO .item-xwNKIu {
|
|
6
|
+
border-bottom: var(--wst-system-line-1-width, 1px) solid
|
|
7
|
+
color-mix(in srgb, var(--wst-paragraph-2-color, #000) 30%, transparent);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.box-IGlTAZ .item-xwNKIu {
|
|
11
|
+
border: var(--wst-system-line-1-width, 1px) solid
|
|
12
|
+
color-mix(in srgb, var(--wst-paragraph-2-color, #000) 30%, transparent);
|
|
13
|
+
margin-bottom: calc(-1 * var(--wst-system-line-1-width, 1px));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.box-IGlTAZ .item-xwNKIu:last-child {
|
|
17
|
+
margin-bottom: 0;
|
|
10
18
|
}
|
|
11
19
|
|
|
12
20
|
.header-YZESJq {
|
|
@@ -24,19 +32,88 @@
|
|
|
24
32
|
border: none;
|
|
25
33
|
justify-content: space-between;
|
|
26
34
|
align-items: center;
|
|
27
|
-
gap: 8px;
|
|
28
35
|
width: 100%;
|
|
29
36
|
padding: 0;
|
|
30
37
|
display: flex;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
|
-
.trigger-cbcjp2
|
|
40
|
+
.trigger-cbcjp2[data-disabled] {
|
|
34
41
|
color: var(--wst-system-disabled-color, #939393);
|
|
42
|
+
cursor: default;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.small-ECItLE .trigger-cbcjp2 {
|
|
47
|
+
gap: 8px;
|
|
48
|
+
padding-block: 12px;
|
|
49
|
+
padding-inline: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.large-FlJRwV .trigger-cbcjp2 {
|
|
53
|
+
gap: 12px;
|
|
54
|
+
padding-block: 24px;
|
|
55
|
+
padding-inline: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.box-IGlTAZ.small-ECItLE .trigger-cbcjp2 {
|
|
59
|
+
padding-inline: 12px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.box-IGlTAZ.large-FlJRwV .trigger-cbcjp2 {
|
|
63
|
+
padding-inline: 24px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.arrow-yZ7Nq2 {
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
transition: transform .2s;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[aria-expanded="true"] .arrow-yZ7Nq2 {
|
|
72
|
+
transform: rotate(180deg);
|
|
35
73
|
}
|
|
36
74
|
|
|
37
75
|
.panel-Gp0XFK {
|
|
38
76
|
font: var(--wst-paragraph-2-font);
|
|
39
77
|
color: var(--wst-paragraph-2-color, #000);
|
|
40
|
-
|
|
78
|
+
interpolate-size: allow-keywords;
|
|
79
|
+
height: auto;
|
|
80
|
+
transition: height .3s cubic-bezier(.39, .11, .37, .99), padding .3s cubic-bezier(.39, .11, .37, .99);
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.small-ECItLE .panel-Gp0XFK {
|
|
85
|
+
padding-block: 0 12px;
|
|
86
|
+
padding-inline: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.large-FlJRwV .panel-Gp0XFK {
|
|
90
|
+
padding-block: 0 24px;
|
|
91
|
+
padding-inline: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.box-IGlTAZ.small-ECItLE .panel-Gp0XFK {
|
|
95
|
+
padding-inline: 12px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.box-IGlTAZ.large-FlJRwV .panel-Gp0XFK {
|
|
99
|
+
padding-inline: 24px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.panel-Gp0XFK.panel-Gp0XFK[data-starting-style], .panel-Gp0XFK.panel-Gp0XFK[data-ending-style] {
|
|
103
|
+
height: 0;
|
|
104
|
+
padding-block: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.panel-Gp0XFK > * {
|
|
108
|
+
transition: opacity .1s linear 50ms;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.panel-Gp0XFK[data-starting-style] > * {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.panel-Gp0XFK[data-ending-style] > * {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
transition-delay: 0s;
|
|
41
118
|
}
|
|
42
119
|
|
|
@@ -3,6 +3,7 @@ import { AccordionHeaderProps } from '@base-ui/react/accordion';
|
|
|
3
3
|
import { AccordionItemProps } from '@base-ui/react/accordion';
|
|
4
4
|
import { AccordionPanelProps } from '@base-ui/react/accordion';
|
|
5
5
|
import { AccordionTriggerProps } from '@base-ui/react/accordion';
|
|
6
|
+
import { ChevronDownProps } from '@wix/wix-ui-icons-common/dist/types/default/general/dist/components/ChevronDown';
|
|
6
7
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
7
8
|
import * as React_2 from 'react';
|
|
8
9
|
|
|
@@ -20,14 +21,29 @@ export declare const Accordion: {
|
|
|
20
21
|
className?: string | undefined;
|
|
21
22
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
Root: typeof Root;
|
|
23
|
-
Arrow: React_2.ForwardRefExoticComponent<
|
|
24
|
+
Arrow: React_2.ForwardRefExoticComponent<ChevronDownProps & {
|
|
25
|
+
className?: string | undefined;
|
|
26
|
+
} & React_2.RefAttributes<SVGSVGElement>>;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
|
-
declare
|
|
27
|
-
|
|
29
|
+
export declare const AccordionSize: {
|
|
30
|
+
readonly small: "small";
|
|
31
|
+
readonly large: "large";
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const AccordionVariant: {
|
|
35
|
+
readonly line: "line";
|
|
36
|
+
readonly box: "box";
|
|
28
37
|
};
|
|
29
38
|
|
|
30
|
-
declare function Root<Value = any>({ className, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>>
|
|
39
|
+
declare function Root<Value = any>({ className, size, variant, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>> & {
|
|
40
|
+
size?: Size;
|
|
41
|
+
variant?: Variant;
|
|
42
|
+
}): JSX_2.Element;
|
|
43
|
+
|
|
44
|
+
declare type Size = (typeof AccordionSize)[keyof typeof AccordionSize];
|
|
45
|
+
|
|
46
|
+
declare type Variant = (typeof AccordionVariant)[keyof typeof AccordionVariant];
|
|
31
47
|
|
|
32
48
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
33
49
|
className?: string;
|
package/dist/Accordion/index.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion } from "@base-ui/react/accordion";
|
|
3
|
+
import { ChevronDown } from "@wix/wix-ui-icons-common";
|
|
3
4
|
import clsx from "clsx";
|
|
4
5
|
import * as __rspack_external_react from "react";
|
|
5
6
|
const Accordion_module = {
|
|
6
7
|
root: "root-jseiNO",
|
|
8
|
+
line: "line-t3NkfO",
|
|
7
9
|
item: "item-xwNKIu",
|
|
10
|
+
box: "box-IGlTAZ",
|
|
8
11
|
header: "header-YZESJq",
|
|
9
12
|
trigger: "trigger-cbcjp2",
|
|
13
|
+
small: "small-ECItLE",
|
|
14
|
+
large: "large-FlJRwV",
|
|
15
|
+
arrow: "arrow-yZ7Nq2",
|
|
10
16
|
panel: "panel-Gp0XFK"
|
|
11
17
|
};
|
|
18
|
+
const AccordionSize = {
|
|
19
|
+
small: 'small',
|
|
20
|
+
large: 'large'
|
|
21
|
+
};
|
|
22
|
+
const AccordionVariant = {
|
|
23
|
+
line: 'line',
|
|
24
|
+
box: 'box'
|
|
25
|
+
};
|
|
12
26
|
const Item = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Accordion.Item, {
|
|
13
27
|
ref: ref,
|
|
14
28
|
className: clsx(Accordion_module.item, className),
|
|
@@ -29,25 +43,16 @@ const Panel = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...
|
|
|
29
43
|
className: clsx(Accordion_module.panel, className),
|
|
30
44
|
...props
|
|
31
45
|
}));
|
|
32
|
-
function Root({ className, ...props }) {
|
|
46
|
+
function Root({ className, size = AccordionSize.small, variant = AccordionVariant.line, ...props }) {
|
|
33
47
|
return /*#__PURE__*/ jsx(Accordion.Root, {
|
|
34
48
|
...props,
|
|
35
|
-
className: clsx(Accordion_module.root, className)
|
|
49
|
+
className: clsx(Accordion_module.root, Accordion_module[size], Accordion_module[variant], className)
|
|
36
50
|
});
|
|
37
51
|
}
|
|
38
|
-
const Arrow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props },
|
|
39
|
-
ref: ref,
|
|
52
|
+
const Arrow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, _ref)=>/*#__PURE__*/ jsx(ChevronDown, {
|
|
40
53
|
className: clsx(Accordion_module.arrow, className),
|
|
41
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
-
viewBox: "0 0 16 16",
|
|
43
|
-
width: "16",
|
|
44
|
-
height: "16",
|
|
45
|
-
fill: "currentColor",
|
|
46
54
|
"aria-hidden": "true",
|
|
47
|
-
...props
|
|
48
|
-
children: /*#__PURE__*/ jsx("path", {
|
|
49
|
-
d: "M2.293 5.293a1 1 0 0 1 1.414 0L8 9.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 0-1.414z"
|
|
50
|
-
})
|
|
55
|
+
...props
|
|
51
56
|
}));
|
|
52
57
|
const Accordion_Accordion = {
|
|
53
58
|
Item: Item,
|
|
@@ -57,4 +62,4 @@ const Accordion_Accordion = {
|
|
|
57
62
|
Root: Root,
|
|
58
63
|
Arrow: Arrow
|
|
59
64
|
};
|
|
60
|
-
export { Accordion_Accordion as Accordion };
|
|
65
|
+
export { AccordionSize, AccordionVariant, Accordion_Accordion as Accordion };
|
package/dist/Field/index.css
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
.root-ECdHfF {
|
|
2
2
|
flex-direction: column;
|
|
3
|
+
gap: 8px;
|
|
3
4
|
display: flex;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
.label-YSWZBs {
|
|
7
8
|
font: var(--wst-paragraph-3-font);
|
|
8
9
|
color: var(--wst-paragraph-3-color);
|
|
9
|
-
margin-bottom: 8px;
|
|
10
|
-
display: inline-block;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
.root-ECdHfF:has([disabled]) .label-YSWZBs, .root-ECdHfF[data-disabled] .label-YSWZBs {
|
|
@@ -17,15 +16,11 @@
|
|
|
17
16
|
.error-BUDKWp {
|
|
18
17
|
font: var(--wst-paragraph-3-font);
|
|
19
18
|
color: var(--wst-system-error-color);
|
|
20
|
-
margin-top: 8px;
|
|
21
|
-
display: block;
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
.description-IVviYU {
|
|
25
22
|
font: var(--wst-paragraph-3-font);
|
|
26
23
|
color: var(--wst-paragraph-3-color);
|
|
27
|
-
margin-top: 8px;
|
|
28
|
-
display: block;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.item-kQeHOQ {
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { Button as Button_2 } from '@base-ui/react/button';
|
|
|
35
35
|
import { CheckboxGroupProps } from '@base-ui/react/checkbox-group';
|
|
36
36
|
import { CheckboxIndicatorProps } from '@base-ui/react/checkbox';
|
|
37
37
|
import { CheckboxRootProps } from '@base-ui/react/checkbox';
|
|
38
|
+
import { ChevronDownProps } from '@wix/wix-ui-icons-common/dist/types/default/general/dist/components/ChevronDown';
|
|
38
39
|
import { CollapsiblePanelProps } from '@base-ui/react/collapsible';
|
|
39
40
|
import { CollapsibleRootProps } from '@base-ui/react/collapsible';
|
|
40
41
|
import { CollapsibleTriggerProps } from '@base-ui/react/collapsible';
|
|
@@ -241,7 +242,19 @@ export declare const Accordion: {
|
|
|
241
242
|
className?: string | undefined;
|
|
242
243
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
243
244
|
Root: typeof Root;
|
|
244
|
-
Arrow: React_2.ForwardRefExoticComponent<
|
|
245
|
+
Arrow: React_2.ForwardRefExoticComponent<ChevronDownProps & {
|
|
246
|
+
className?: string | undefined;
|
|
247
|
+
} & React_2.RefAttributes<SVGSVGElement>>;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export declare const AccordionSize: {
|
|
251
|
+
readonly small: "small";
|
|
252
|
+
readonly large: "large";
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export declare const AccordionVariant: {
|
|
256
|
+
readonly line: "line";
|
|
257
|
+
readonly box: "box";
|
|
245
258
|
};
|
|
246
259
|
|
|
247
260
|
export declare const AlertDialog: {
|
|
@@ -270,10 +283,6 @@ export declare const AlertDialog: {
|
|
|
270
283
|
createHandle: typeof AlertDialog_2.createHandle;
|
|
271
284
|
};
|
|
272
285
|
|
|
273
|
-
declare type ArrowProps = React_2.SVGProps<SVGSVGElement> & {
|
|
274
|
-
className?: string;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
286
|
export declare const Autocomplete: {
|
|
278
287
|
InputGroup: React_2.ForwardRefExoticComponent<Omit<Omit<AutocompleteInputGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
279
288
|
className?: string | undefined;
|
|
@@ -859,7 +868,10 @@ export declare const RadioSize: {
|
|
|
859
868
|
readonly large: 20;
|
|
860
869
|
};
|
|
861
870
|
|
|
862
|
-
declare function Root<Value = any>({ className, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>>
|
|
871
|
+
declare function Root<Value = any>({ className, size, variant, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>> & {
|
|
872
|
+
size?: Size;
|
|
873
|
+
variant?: Variant;
|
|
874
|
+
}): JSX_2.Element;
|
|
863
875
|
|
|
864
876
|
declare function Root_2<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
865
877
|
|
|
@@ -954,6 +966,8 @@ export declare const Separator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit
|
|
|
954
966
|
className?: string | undefined;
|
|
955
967
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
956
968
|
|
|
969
|
+
declare type Size = (typeof AccordionSize)[keyof typeof AccordionSize];
|
|
970
|
+
|
|
957
971
|
export declare const Slider: {
|
|
958
972
|
Label: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SliderLabelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
959
973
|
className?: string | undefined;
|
|
@@ -1104,6 +1118,8 @@ export declare interface TypographyProps extends React_2.HTMLAttributes<HTMLElem
|
|
|
1104
1118
|
|
|
1105
1119
|
export declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p1' | 'p2' | 'p3';
|
|
1106
1120
|
|
|
1121
|
+
declare type Variant = (typeof AccordionVariant)[keyof typeof AccordionVariant];
|
|
1122
|
+
|
|
1107
1123
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
1108
1124
|
className?: string;
|
|
1109
1125
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Accordion } from "./Accordion/index.js";
|
|
1
|
+
export { Accordion, AccordionSize, AccordionVariant } from "./Accordion/index.js";
|
|
2
2
|
export { AlertDialog } from "./AlertDialog/index.js";
|
|
3
3
|
export { Autocomplete } from "./Autocomplete/index.js";
|
|
4
4
|
export { Avatar, AvatarSize } from "./Avatar/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@base-ui/react": "^1.5.0",
|
|
33
|
+
"@wix/wix-ui-icons-common": "^3.114.0",
|
|
33
34
|
"clsx": "2.0.0"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
@@ -77,5 +78,5 @@
|
|
|
77
78
|
"registry": "https://registry.npmjs.org/",
|
|
78
79
|
"access": "public"
|
|
79
80
|
},
|
|
80
|
-
"falconPackageHash": "
|
|
81
|
+
"falconPackageHash": "17e549237e9918f834dd2c826d1824086f56de229ed0139d0110d879"
|
|
81
82
|
}
|