@wix/site-ui 1.69.0 → 1.70.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.
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
.root-Gth795.vertical-dY5H3D {
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
.list-kus7O6 {
|
|
8
12
|
flex-direction: row;
|
|
9
13
|
align-items: center;
|
|
@@ -14,6 +18,27 @@
|
|
|
14
18
|
display: flex;
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
.vertical-dY5H3D .list-kus7O6 {
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.content-TaN2sK .root-Gth795.vertical-dY5H3D {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.content-TaN2sK .root-Gth795.vertical-dY5H3D > .list-kus7O6 {
|
|
31
|
+
width: 100%;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.content-TaN2sK .root-Gth795.vertical-dY5H3D > .list-kus7O6 > .item-OKUYls > .trigger-L7xhgv {
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
width: 100%;
|
|
38
|
+
padding: 8px 24px;
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
17
42
|
.item-OKUYls {
|
|
18
43
|
position: relative;
|
|
19
44
|
}
|
|
@@ -43,14 +68,14 @@
|
|
|
43
68
|
background-color: color-mix(in srgb, var(--wst-base-2-color) 6%, transparent);
|
|
44
69
|
}
|
|
45
70
|
|
|
46
|
-
.trigger-L7xhgv[data-
|
|
71
|
+
.trigger-L7xhgv[data-popup-open] {
|
|
47
72
|
background-color: color-mix(in srgb,
|
|
48
73
|
var(--wst-base-2-color) 12%,
|
|
49
74
|
transparent);
|
|
50
75
|
color: var(--wst-links-and-actions-color, #116dff);
|
|
51
76
|
}
|
|
52
77
|
|
|
53
|
-
.trigger-L7xhgv[data-disabled] {
|
|
78
|
+
.trigger-L7xhgv[data-disabled], .trigger-L7xhgv[aria-disabled="true"] {
|
|
54
79
|
opacity: .3;
|
|
55
80
|
cursor: default;
|
|
56
81
|
pointer-events: none;
|
|
@@ -66,14 +91,20 @@
|
|
|
66
91
|
}
|
|
67
92
|
|
|
68
93
|
.viewport-yWpuCH {
|
|
94
|
+
max-height: var(--available-height, none);
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.popup-jElt_o {
|
|
69
99
|
background-color: var(--wst-primary-background-color, #fff);
|
|
70
100
|
border: var(--wst-system-line-1-width, 1px) solid
|
|
71
101
|
color-mix(in srgb, var(--wst-paragraph-2-color, #000) 15%, transparent);
|
|
72
102
|
box-sizing: border-box;
|
|
73
103
|
border-radius: 6px;
|
|
104
|
+
outline: none;
|
|
74
105
|
min-width: 160px;
|
|
75
106
|
max-width: 360px;
|
|
76
|
-
|
|
107
|
+
padding: 12px 0;
|
|
77
108
|
box-shadow: 0 0 4px #0000001a, 0 4px 8px #0000001a;
|
|
78
109
|
}
|
|
79
110
|
|
|
@@ -83,12 +114,6 @@
|
|
|
83
114
|
inset: 0;
|
|
84
115
|
}
|
|
85
116
|
|
|
86
|
-
.popup-jElt_o {
|
|
87
|
-
box-sizing: border-box;
|
|
88
|
-
outline: none;
|
|
89
|
-
padding: 12px 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
117
|
.arrow-as8hPF {
|
|
93
118
|
width: 10px;
|
|
94
119
|
height: 10px;
|
|
@@ -106,6 +131,7 @@
|
|
|
106
131
|
box-sizing: border-box;
|
|
107
132
|
outline: none;
|
|
108
133
|
align-items: center;
|
|
134
|
+
gap: 8px;
|
|
109
135
|
width: 100%;
|
|
110
136
|
padding: 8px 24px;
|
|
111
137
|
text-decoration: none;
|
|
@@ -122,7 +148,7 @@
|
|
|
122
148
|
text-decoration: underline;
|
|
123
149
|
}
|
|
124
150
|
|
|
125
|
-
.link-jrEqu4[data-disabled] {
|
|
151
|
+
.link-jrEqu4[data-disabled], .link-jrEqu4[aria-disabled="true"] {
|
|
126
152
|
opacity: .3;
|
|
127
153
|
cursor: default;
|
|
128
154
|
pointer-events: none;
|
|
@@ -144,7 +170,7 @@
|
|
|
144
170
|
display: inline-flex;
|
|
145
171
|
}
|
|
146
172
|
|
|
147
|
-
[data-
|
|
173
|
+
.icon-YQWwDM[data-popup-open] {
|
|
148
174
|
transform: rotate(180deg);
|
|
149
175
|
}
|
|
150
176
|
|
|
@@ -763,7 +763,7 @@ declare interface ReasonToEventMap {
|
|
|
763
763
|
[REASONS.windowResize]: UIEvent;
|
|
764
764
|
}
|
|
765
765
|
|
|
766
|
-
declare function Root<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
766
|
+
declare function Root<Value = any>({ className, orientation, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
767
767
|
|
|
768
768
|
declare const scrub: "scrub";
|
|
769
769
|
|
|
@@ -1021,14 +1021,15 @@ const NavigationMenuPortal_NavigationMenuPortal = /*#__PURE__*/ __rspack_externa
|
|
|
1021
1021
|
if ("production" !== process.env.NODE_ENV) NavigationMenuPortal_NavigationMenuPortal.displayName = "NavigationMenuPortal";
|
|
1022
1022
|
const NavigationMenu_module = {
|
|
1023
1023
|
root: "root-Gth795",
|
|
1024
|
+
vertical: "vertical-dY5H3D",
|
|
1024
1025
|
list: "list-kus7O6",
|
|
1025
|
-
item: "item-OKUYls",
|
|
1026
1026
|
content: "content-TaN2sK",
|
|
1027
|
+
item: "item-OKUYls",
|
|
1027
1028
|
trigger: "trigger-L7xhgv",
|
|
1028
1029
|
positioner: "positioner-C8EsN2",
|
|
1029
1030
|
viewport: "viewport-yWpuCH",
|
|
1030
|
-
backdrop: "backdrop-_mgpOu",
|
|
1031
1031
|
popup: "popup-jElt_o",
|
|
1032
|
+
backdrop: "backdrop-_mgpOu",
|
|
1032
1033
|
arrow: "arrow-as8hPF",
|
|
1033
1034
|
link: "link-jrEqu4",
|
|
1034
1035
|
icon: "icon-YQWwDM"
|
|
@@ -1088,10 +1089,11 @@ const Icon = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...p
|
|
|
1088
1089
|
className: clsx(NavigationMenu_module.icon, className),
|
|
1089
1090
|
...props
|
|
1090
1091
|
}));
|
|
1091
|
-
function Root({ className, ...props }) {
|
|
1092
|
+
function Root({ className, orientation = 'horizontal', ...props }) {
|
|
1092
1093
|
return /*#__PURE__*/ jsx(NavigationMenuRoot_NavigationMenuRoot, {
|
|
1093
1094
|
...props,
|
|
1094
|
-
|
|
1095
|
+
orientation: orientation,
|
|
1096
|
+
className: clsx(NavigationMenu_module.root, 'vertical' === orientation && NavigationMenu_module.vertical, className)
|
|
1095
1097
|
});
|
|
1096
1098
|
}
|
|
1097
1099
|
const NavigationMenu = {
|
package/dist/index.d.ts
CHANGED
|
@@ -8558,7 +8558,7 @@ declare function Root_2<Value = any>({ className, dir, separator, 'aria-label':
|
|
|
8558
8558
|
separator?: React_2.ReactNode;
|
|
8559
8559
|
}): JSX_2.Element;
|
|
8560
8560
|
|
|
8561
|
-
declare function Root_3<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
8561
|
+
declare function Root_3<Value = any>({ className, orientation, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
|
|
8562
8562
|
|
|
8563
8563
|
declare function Root_4<Value>({ className, size, style, ...props }: RootProps<Value>): JSX_2.Element;
|
|
8564
8564
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.70.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,12 +22,15 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "rslib build && yarn build:docs",
|
|
24
24
|
"build:docs": "yarn build-storybook && janet-build",
|
|
25
|
+
"generate:themes": "node scripts/generate-storybook-site-themes.mjs",
|
|
25
26
|
"test": "rstest --passWithNoTests",
|
|
26
27
|
"lint": "yarn run -T lint:package",
|
|
27
28
|
"format:check": "yarn run -T format:package:check",
|
|
28
29
|
"check:lint-and-format": "yarn run -T concurrently yarn:lint yarn:format:check",
|
|
29
30
|
"test:visual": "test-storybook --url http://localhost:6006",
|
|
30
31
|
"test:visual:update": "test-storybook --url http://localhost:6006 --updateSnapshot",
|
|
32
|
+
"verify:component": "node scripts/verify-component-status.mjs",
|
|
33
|
+
"verify:visual": "node scripts/visual-review-component.mjs",
|
|
31
34
|
"tsc": "tsc -b ./tsconfig.json --force",
|
|
32
35
|
"clean": "rm -rf dist",
|
|
33
36
|
"storybook": "storybook dev -p 6006",
|
|
@@ -91,5 +94,5 @@
|
|
|
91
94
|
"registry": "https://registry.npmjs.org/",
|
|
92
95
|
"access": "public"
|
|
93
96
|
},
|
|
94
|
-
"falconPackageHash": "
|
|
97
|
+
"falconPackageHash": "e347a80ebf6a2e3ee4559f91841cf111daa1085e5b929b2317eade74"
|
|
95
98
|
}
|