@wix/site-ui 1.6.0 → 1.7.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/Button/index.css +127 -0
- package/dist/Button/index.d.ts +17 -4
- package/dist/Button/index.js +24 -3
- package/dist/index.d.ts +13 -4
- package/package.json +2 -2
package/dist/Button/index.css
CHANGED
|
@@ -1,2 +1,129 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
.root-kIffNe {
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.primary-BOdHls {
|
|
11
|
+
background-color: var(--wst-button-primary-background-color);
|
|
12
|
+
background-image: var(--wst-button-primary-background-image);
|
|
13
|
+
padding-top: var(--wst-button-primary-padding-top);
|
|
14
|
+
padding-right: var(--wst-button-primary-padding-right);
|
|
15
|
+
padding-bottom: var(--wst-button-primary-padding-bottom);
|
|
16
|
+
padding-left: var(--wst-button-primary-padding-left);
|
|
17
|
+
border-top-color: var(--wst-button-primary-border-top-color);
|
|
18
|
+
border-right-color: var(--wst-button-primary-border-right-color);
|
|
19
|
+
border-bottom-color: var(--wst-button-primary-border-bottom-color);
|
|
20
|
+
border-left-color: var(--wst-button-primary-border-left-color);
|
|
21
|
+
border-top-width: var(--wst-button-primary-border-top-width);
|
|
22
|
+
border-right-width: var(--wst-button-primary-border-right-width);
|
|
23
|
+
border-bottom-width: var(--wst-button-primary-border-bottom-width);
|
|
24
|
+
border-left-width: var(--wst-button-primary-border-left-width);
|
|
25
|
+
border-top-style: var(--wst-button-primary-border-top-style);
|
|
26
|
+
border-right-style: var(--wst-button-primary-border-right-style);
|
|
27
|
+
border-bottom-style: var(--wst-button-primary-border-bottom-style);
|
|
28
|
+
border-left-style: var(--wst-button-primary-border-left-style);
|
|
29
|
+
border-top-left-radius: var(--wst-button-primary-border-top-left-radius);
|
|
30
|
+
border-top-right-radius: var(--wst-button-primary-border-top-right-radius);
|
|
31
|
+
border-bottom-left-radius: var(--wst-button-primary-border-bottom-left-radius);
|
|
32
|
+
border-bottom-right-radius: var(--wst-button-primary-border-bottom-right-radius);
|
|
33
|
+
box-shadow: var(--wst-button-primary-box-shadow);
|
|
34
|
+
column-gap: var(--wst-button-primary-column-gap);
|
|
35
|
+
row-gap: var(--wst-button-primary-row-gap);
|
|
36
|
+
justify-content: var(--wst-button-primary-justify-content);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.secondary-O9td6z {
|
|
40
|
+
background-color: var(--wst-button-secondary-background-color);
|
|
41
|
+
background-image: var(--wst-button-secondary-background-image);
|
|
42
|
+
padding-top: var(--wst-button-secondary-padding-top);
|
|
43
|
+
padding-right: var(--wst-button-secondary-padding-right);
|
|
44
|
+
padding-bottom: var(--wst-button-secondary-padding-bottom);
|
|
45
|
+
padding-left: var(--wst-button-secondary-padding-left);
|
|
46
|
+
border-top-color: var(--wst-button-secondary-border-top-color);
|
|
47
|
+
border-right-color: var(--wst-button-secondary-border-right-color);
|
|
48
|
+
border-bottom-color: var(--wst-button-secondary-border-bottom-color);
|
|
49
|
+
border-left-color: var(--wst-button-secondary-border-left-color);
|
|
50
|
+
border-top-width: var(--wst-button-secondary-border-top-width);
|
|
51
|
+
border-right-width: var(--wst-button-secondary-border-right-width);
|
|
52
|
+
border-bottom-width: var(--wst-button-secondary-border-bottom-width);
|
|
53
|
+
border-left-width: var(--wst-button-secondary-border-left-width);
|
|
54
|
+
border-top-style: var(--wst-button-secondary-border-top-style);
|
|
55
|
+
border-right-style: var(--wst-button-secondary-border-right-style);
|
|
56
|
+
border-bottom-style: var(--wst-button-secondary-border-bottom-style);
|
|
57
|
+
border-left-style: var(--wst-button-secondary-border-left-style);
|
|
58
|
+
border-top-left-radius: var(--wst-button-secondary-border-top-left-radius);
|
|
59
|
+
border-top-right-radius: var(--wst-button-secondary-border-top-right-radius);
|
|
60
|
+
border-bottom-left-radius: var(--wst-button-secondary-border-bottom-left-radius);
|
|
61
|
+
border-bottom-right-radius: var(--wst-button-secondary-border-bottom-right-radius);
|
|
62
|
+
box-shadow: var(--wst-button-secondary-box-shadow);
|
|
63
|
+
column-gap: var(--wst-button-secondary-column-gap);
|
|
64
|
+
row-gap: var(--wst-button-secondary-row-gap);
|
|
65
|
+
justify-content: var(--wst-button-secondary-justify-content);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tertiary-QWTRNC {
|
|
69
|
+
background-color: var(--wst-button-tertiary-background-color);
|
|
70
|
+
background-image: var(--wst-button-tertiary-background-image);
|
|
71
|
+
padding-top: var(--wst-button-tertiary-padding-top);
|
|
72
|
+
padding-right: var(--wst-button-tertiary-padding-right);
|
|
73
|
+
padding-bottom: var(--wst-button-tertiary-padding-bottom);
|
|
74
|
+
padding-left: var(--wst-button-tertiary-padding-left);
|
|
75
|
+
border-top-color: var(--wst-button-tertiary-border-top-color);
|
|
76
|
+
border-right-color: var(--wst-button-tertiary-border-right-color);
|
|
77
|
+
border-bottom-color: var(--wst-button-tertiary-border-bottom-color);
|
|
78
|
+
border-left-color: var(--wst-button-tertiary-border-left-color);
|
|
79
|
+
border-top-width: var(--wst-button-tertiary-border-top-width);
|
|
80
|
+
border-right-width: var(--wst-button-tertiary-border-right-width);
|
|
81
|
+
border-bottom-width: var(--wst-button-tertiary-border-bottom-width);
|
|
82
|
+
border-left-width: var(--wst-button-tertiary-border-left-width);
|
|
83
|
+
border-top-style: var(--wst-button-tertiary-border-top-style);
|
|
84
|
+
border-right-style: var(--wst-button-tertiary-border-right-style);
|
|
85
|
+
border-bottom-style: var(--wst-button-tertiary-border-bottom-style);
|
|
86
|
+
border-left-style: var(--wst-button-tertiary-border-left-style);
|
|
87
|
+
border-top-left-radius: var(--wst-button-tertiary-border-top-left-radius);
|
|
88
|
+
border-top-right-radius: var(--wst-button-tertiary-border-top-right-radius);
|
|
89
|
+
border-bottom-left-radius: var(--wst-button-tertiary-border-bottom-left-radius);
|
|
90
|
+
border-bottom-right-radius: var(--wst-button-tertiary-border-bottom-right-radius);
|
|
91
|
+
box-shadow: var(--wst-button-tertiary-box-shadow);
|
|
92
|
+
column-gap: var(--wst-button-tertiary-column-gap);
|
|
93
|
+
row-gap: var(--wst-button-tertiary-row-gap);
|
|
94
|
+
justify-content: var(--wst-button-tertiary-justify-content);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.tiny-u7daFm {
|
|
98
|
+
padding-top: calc(4px * 2 - 2px);
|
|
99
|
+
padding-bottom: calc(4px * 2 - 2px);
|
|
100
|
+
padding-right: calc(4px * 4);
|
|
101
|
+
padding-left: calc(4px * 4);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.small-OumyWK {
|
|
105
|
+
padding-top: calc(4px * 2 - 1px);
|
|
106
|
+
padding-bottom: calc(4px * 2 - 1px);
|
|
107
|
+
padding-right: calc(4px * 4);
|
|
108
|
+
padding-left: calc(4px * 4);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.medium-ZNTo1S {
|
|
112
|
+
padding-top: calc(4px * 2);
|
|
113
|
+
padding-bottom: calc(4px * 2);
|
|
114
|
+
padding-right: calc(4px * 4);
|
|
115
|
+
padding-left: calc(4px * 4);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.large-g_AXNi {
|
|
119
|
+
padding-top: calc(4px * 3 - 2px);
|
|
120
|
+
padding-bottom: calc(4px * 3 - 2px);
|
|
121
|
+
padding-right: calc(4px * 4);
|
|
122
|
+
padding-left: calc(4px * 4);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.root-kIffNe:disabled {
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
opacity: .4;
|
|
128
|
+
}
|
|
129
|
+
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as Button_2 } from '@base-ui/react/button';
|
|
2
2
|
import * as React_2 from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
|
|
5
|
+
|
|
6
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLElement>>;
|
|
7
|
+
|
|
8
|
+
declare interface ButtonProps extends BaseProps {
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
14
|
+
|
|
15
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
16
|
+
|
|
17
|
+
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
7
20
|
|
|
8
21
|
|
|
9
22
|
export * from "@base-ui/react/button";
|
package/dist/Button/index.js
CHANGED
|
@@ -2,10 +2,31 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from "@base-ui/react/button";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as __rspack_external_react from "react";
|
|
5
|
-
const Button_module = {
|
|
6
|
-
|
|
5
|
+
const Button_module = {
|
|
6
|
+
"base-unit": "4px",
|
|
7
|
+
baseUnit: "4px",
|
|
8
|
+
"button-padding-h": "calc(4px * 4)",
|
|
9
|
+
buttonPaddingH: "calc(4px * 4)",
|
|
10
|
+
"button-size-tiny-padding-v": "calc(4px * 2 - 2px)",
|
|
11
|
+
buttonSizeTinyPaddingV: "calc(4px * 2 - 2px)",
|
|
12
|
+
"button-size-small-padding-v": "calc(4px * 2 - 1px)",
|
|
13
|
+
buttonSizeSmallPaddingV: "calc(4px * 2 - 1px)",
|
|
14
|
+
"button-size-medium-padding-v": "calc(4px * 2)",
|
|
15
|
+
buttonSizeMediumPaddingV: "calc(4px * 2)",
|
|
16
|
+
"button-size-large-padding-v": "calc(4px * 3 - 2px)",
|
|
17
|
+
buttonSizeLargePaddingV: "calc(4px * 3 - 2px)",
|
|
18
|
+
root: "root-kIffNe",
|
|
19
|
+
primary: "primary-BOdHls",
|
|
20
|
+
secondary: "secondary-O9td6z",
|
|
21
|
+
tertiary: "tertiary-QWTRNC",
|
|
22
|
+
tiny: "tiny-u7daFm",
|
|
23
|
+
small: "small-OumyWK",
|
|
24
|
+
medium: "medium-ZNTo1S",
|
|
25
|
+
large: "large-g_AXNi"
|
|
26
|
+
};
|
|
27
|
+
const Button_Button = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, variant = 'primary', size, ...props }, ref)=>/*#__PURE__*/ jsx(Button, {
|
|
7
28
|
ref: ref,
|
|
8
|
-
className: clsx(Button_module.root, className),
|
|
29
|
+
className: clsx(Button_module.root, Button_module[variant], size && Button_module[size], className),
|
|
9
30
|
...props
|
|
10
31
|
}));
|
|
11
32
|
export { Button_Button as Button };
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { AutocompleteStatusProps } from '@base-ui/react/autocomplete';
|
|
|
31
31
|
import { AvatarFallbackProps } from '@base-ui/react/avatar';
|
|
32
32
|
import { AvatarImageProps } from '@base-ui/react/avatar';
|
|
33
33
|
import { AvatarRootProps } from '@base-ui/react/avatar';
|
|
34
|
-
import {
|
|
34
|
+
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';
|
|
@@ -335,9 +335,18 @@ export declare const Avatar: {
|
|
|
335
335
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
|
|
339
|
+
|
|
340
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLElement>>;
|
|
341
|
+
|
|
342
|
+
declare interface ButtonProps extends BaseProps {
|
|
343
|
+
variant?: ButtonVariant;
|
|
344
|
+
size?: ButtonSize;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
348
|
+
|
|
349
|
+
declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
341
350
|
|
|
342
351
|
export declare const Checkbox: {
|
|
343
352
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"registry": "https://registry.npmjs.org/",
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"falconPackageHash": "
|
|
81
|
+
"falconPackageHash": "900291d1dd93fd591cbb1d78a7b3e1ea122dc188849530a0c96dac4e"
|
|
82
82
|
}
|