@wix/editor-react-components 1.2529.0 → 1.2530.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/site/components/Button/Button.types.d.ts +1 -0
- package/dist/site/components/Button/component.preview.d.ts +3 -1
- package/dist/site/components/Button/css.css +6 -5
- package/dist/site/components/Button/manifest.js +4 -1
- package/dist/site/components/CollapsibleText/css.css +6 -5
- package/dist/site/components/Lottie/css.css +6 -5
- package/dist/site/components/Menu/css.css +6 -5
- package/dist/site/components/Slideshow/css.css +7 -5
- package/dist/site/components/chunks/Button.js +6 -2
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
|
|
2
|
-
|
|
3
|
+
import { default as Button } from './component';
|
|
4
|
+
export default function ButtonPreview(props: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
3
5
|
export declare const resolveManifestOverrides: ResolveManifestOverrides;
|
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
align-items: var(--container-align-items, center);
|
|
17
17
|
outline: none;
|
|
18
18
|
}
|
|
19
|
-
.root__IB9QF:hover, .root__IB9QF.active__lpoVO, .root__IB9QF.button--hover {
|
|
20
|
-
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
21
|
-
transition-duration: 0.4s;
|
|
22
|
-
transition-timing-function: ease;
|
|
23
|
-
}
|
|
24
19
|
@media (forced-colors: active) {
|
|
25
20
|
.root__IB9QF:not(:disabled):not(.button--disabled) {
|
|
26
21
|
outline: 2px solid ButtonText;
|
|
@@ -54,6 +49,12 @@
|
|
|
54
49
|
white-space: pre-line;
|
|
55
50
|
}
|
|
56
51
|
|
|
52
|
+
.root__IB9QF.hasTransitions__sv08Z:hover, .root__IB9QF.hasTransitions__sv08Z.active__lpoVO, .root__IB9QF.hasTransitions__sv08Z.button--hover {
|
|
53
|
+
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
54
|
+
transition-duration: 0.4s;
|
|
55
|
+
transition-timing-function: ease;
|
|
56
|
+
}
|
|
57
|
+
|
|
57
58
|
.link__0rDnC {
|
|
58
59
|
text-decoration: none;
|
|
59
60
|
box-sizing: border-box;
|
|
@@ -334,7 +334,10 @@ const manifest = {
|
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
336
|
editor: {
|
|
337
|
-
componentUrl: "./site/components/Button/component.preview.tsx"
|
|
337
|
+
componentUrl: "./site/components/Button/component.preview.tsx",
|
|
338
|
+
dependencies: {
|
|
339
|
+
serviceDependencies: ["@wix/viewer-service-environment"]
|
|
340
|
+
}
|
|
338
341
|
},
|
|
339
342
|
sdk: {
|
|
340
343
|
url: "./site/components/Button/sdk.ts"
|
|
@@ -142,11 +142,6 @@
|
|
|
142
142
|
align-items: var(--container-align-items, center);
|
|
143
143
|
outline: none;
|
|
144
144
|
}
|
|
145
|
-
.root__IB9QF:hover, .root__IB9QF.active__lpoVO, .root__IB9QF.button--hover {
|
|
146
|
-
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
147
|
-
transition-duration: 0.4s;
|
|
148
|
-
transition-timing-function: ease;
|
|
149
|
-
}
|
|
150
145
|
@media (forced-colors: active) {
|
|
151
146
|
.root__IB9QF:not(:disabled):not(.button--disabled) {
|
|
152
147
|
outline: 2px solid ButtonText;
|
|
@@ -180,6 +175,12 @@
|
|
|
180
175
|
white-space: pre-line;
|
|
181
176
|
}
|
|
182
177
|
|
|
178
|
+
.root__IB9QF.hasTransitions__sv08Z:hover, .root__IB9QF.hasTransitions__sv08Z.active__lpoVO, .root__IB9QF.hasTransitions__sv08Z.button--hover {
|
|
179
|
+
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
180
|
+
transition-duration: 0.4s;
|
|
181
|
+
transition-timing-function: ease;
|
|
182
|
+
}
|
|
183
|
+
|
|
183
184
|
.link__0rDnC {
|
|
184
185
|
text-decoration: none;
|
|
185
186
|
box-sizing: border-box;
|
|
@@ -56,11 +56,6 @@
|
|
|
56
56
|
align-items: var(--container-align-items, center);
|
|
57
57
|
outline: none;
|
|
58
58
|
}
|
|
59
|
-
.root__IB9QF:hover, .root__IB9QF.active__lpoVO, .root__IB9QF.button--hover {
|
|
60
|
-
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
61
|
-
transition-duration: 0.4s;
|
|
62
|
-
transition-timing-function: ease;
|
|
63
|
-
}
|
|
64
59
|
@media (forced-colors: active) {
|
|
65
60
|
.root__IB9QF:not(:disabled):not(.button--disabled) {
|
|
66
61
|
outline: 2px solid ButtonText;
|
|
@@ -94,6 +89,12 @@
|
|
|
94
89
|
white-space: pre-line;
|
|
95
90
|
}
|
|
96
91
|
|
|
92
|
+
.root__IB9QF.hasTransitions__sv08Z:hover, .root__IB9QF.hasTransitions__sv08Z.active__lpoVO, .root__IB9QF.hasTransitions__sv08Z.button--hover {
|
|
93
|
+
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
94
|
+
transition-duration: 0.4s;
|
|
95
|
+
transition-timing-function: ease;
|
|
96
|
+
}
|
|
97
|
+
|
|
97
98
|
.link__0rDnC {
|
|
98
99
|
text-decoration: none;
|
|
99
100
|
box-sizing: border-box;
|
|
@@ -942,11 +942,6 @@
|
|
|
942
942
|
align-items: var(--container-align-items, center);
|
|
943
943
|
outline: none;
|
|
944
944
|
}
|
|
945
|
-
.root__IB9QF:hover, .root__IB9QF.active__lpoVO, .root__IB9QF.button--hover {
|
|
946
|
-
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
947
|
-
transition-duration: 0.4s;
|
|
948
|
-
transition-timing-function: ease;
|
|
949
|
-
}
|
|
950
945
|
@media (forced-colors: active) {
|
|
951
946
|
.root__IB9QF:not(:disabled):not(.button--disabled) {
|
|
952
947
|
outline: 2px solid ButtonText;
|
|
@@ -980,6 +975,12 @@
|
|
|
980
975
|
white-space: pre-line;
|
|
981
976
|
}
|
|
982
977
|
|
|
978
|
+
.root__IB9QF.hasTransitions__sv08Z:hover, .root__IB9QF.hasTransitions__sv08Z.active__lpoVO, .root__IB9QF.hasTransitions__sv08Z.button--hover {
|
|
979
|
+
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
980
|
+
transition-duration: 0.4s;
|
|
981
|
+
transition-timing-function: ease;
|
|
982
|
+
}
|
|
983
|
+
|
|
983
984
|
.link__0rDnC {
|
|
984
985
|
text-decoration: none;
|
|
985
986
|
box-sizing: border-box;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
display: grid;
|
|
25
25
|
grid-template-columns: 1fr;
|
|
26
26
|
grid-template-rows: 1fr;
|
|
27
|
+
overflow: hidden;
|
|
27
28
|
z-index: 1;
|
|
28
29
|
animation-duration: var(--animation-duration, 0.5s);
|
|
29
30
|
animation-fill-mode: forwards;
|
|
@@ -468,11 +469,6 @@
|
|
|
468
469
|
align-items: var(--container-align-items, center);
|
|
469
470
|
outline: none;
|
|
470
471
|
}
|
|
471
|
-
.root__IB9QF:hover, .root__IB9QF.active__lpoVO, .root__IB9QF.button--hover {
|
|
472
|
-
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
473
|
-
transition-duration: 0.4s;
|
|
474
|
-
transition-timing-function: ease;
|
|
475
|
-
}
|
|
476
472
|
@media (forced-colors: active) {
|
|
477
473
|
.root__IB9QF:not(:disabled):not(.button--disabled) {
|
|
478
474
|
outline: 2px solid ButtonText;
|
|
@@ -506,6 +502,12 @@
|
|
|
506
502
|
white-space: pre-line;
|
|
507
503
|
}
|
|
508
504
|
|
|
505
|
+
.root__IB9QF.hasTransitions__sv08Z:hover, .root__IB9QF.hasTransitions__sv08Z.active__lpoVO, .root__IB9QF.hasTransitions__sv08Z.button--hover {
|
|
506
|
+
transition-property: border-left, border-inline-start, border-right, border-inline-end, border-top, border-bottom, border-color, border-start-start-radius, border-start-end-radius, border-end-start-radius, border-end-end-radius, border-top-left-radius, border-top-right-radius, border-bottom-left-radius, border-bottom-right-radius, background, background-color, box-shadow, padding-left, padding-inline-start, padding-right, padding-inline-end, padding-top, padding-bottom, color, fill, transform, letter-spacing, line-height, text-decoration-line, text-align, text-transform, text-shadow;
|
|
507
|
+
transition-duration: 0.4s;
|
|
508
|
+
transition-timing-function: ease;
|
|
509
|
+
}
|
|
510
|
+
|
|
509
511
|
.link__0rDnC {
|
|
510
512
|
text-decoration: none;
|
|
511
513
|
box-sizing: border-box;
|
|
@@ -13,6 +13,7 @@ import { i as isValidLink } from "./Link.js";
|
|
|
13
13
|
const root = "root__IB9QF";
|
|
14
14
|
const active = "active__lpoVO";
|
|
15
15
|
const label = "label__EtLji";
|
|
16
|
+
const hasTransitions = "hasTransitions__sv08Z";
|
|
16
17
|
const link = "link__0rDnC";
|
|
17
18
|
const icon = "icon__ZzsS5";
|
|
18
19
|
const button = "button__i8gkO";
|
|
@@ -20,6 +21,7 @@ const styles = {
|
|
|
20
21
|
root,
|
|
21
22
|
active,
|
|
22
23
|
label,
|
|
24
|
+
hasTransitions,
|
|
23
25
|
link,
|
|
24
26
|
icon,
|
|
25
27
|
button
|
|
@@ -223,7 +225,8 @@ const Button = (props) => {
|
|
|
223
225
|
preventLinkNavigation,
|
|
224
226
|
onMouseEnter: propsOnMouseEnter,
|
|
225
227
|
onMouseLeave: propsOnMouseLeave,
|
|
226
|
-
wix
|
|
228
|
+
wix,
|
|
229
|
+
hasTransitions: hasTransitions2 = true
|
|
227
230
|
} = props;
|
|
228
231
|
const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
|
|
229
232
|
const animatedIconProps = elementProps == null ? void 0 : elementProps.animatedIcon;
|
|
@@ -249,7 +252,8 @@ const Button = (props) => {
|
|
|
249
252
|
formatClassNames(semanticClassNames.root),
|
|
250
253
|
{
|
|
251
254
|
disabled: isDisabled,
|
|
252
|
-
[styles.active]: active2
|
|
255
|
+
[styles.active]: active2,
|
|
256
|
+
[styles.hasTransitions]: hasTransitions2
|
|
253
257
|
}
|
|
254
258
|
);
|
|
255
259
|
const labelClassName = clsx(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2530.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"registry": "https://registry.npmjs.org/",
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"falconPackageHash": "
|
|
200
|
+
"falconPackageHash": "3194917ae1c964fd130b27f40399ca257160768db8fcf284ffac3443"
|
|
201
201
|
}
|