@wix/site-ui 1.13.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 +7 -10
- package/dist/Accordion/index.d.ts +5 -0
- package/dist/Accordion/index.js +16 -1
- package/dist/AlertDialog/index.css +15 -4
- package/dist/AlertDialog/index.js +3 -1
- package/dist/Autocomplete/index.css +7 -0
- package/dist/Autocomplete/index.js +2 -1
- package/dist/Avatar/index.css +6 -4
- 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 +9 -8
- package/dist/Checkbox/index.d.ts +8 -0
- package/dist/Checkbox/index.js +11 -2
- package/dist/CheckboxGroup/index.css +1 -1
- package/dist/Combobox/index.css +7 -7
- package/dist/ContextMenu/index.css +6 -0
- package/dist/ContextMenu/index.js +1 -0
- package/dist/Dialog/index.css +15 -4
- package/dist/Dialog/index.js +3 -1
- package/dist/Drawer/index.css +22 -4
- package/dist/Drawer/index.js +2 -0
- package/dist/Field/index.css +12 -9
- package/dist/Field/index.js +2 -1
- package/dist/Fieldset/index.css +8 -1
- package/dist/Fieldset/index.js +3 -1
- package/dist/Input/index.css +3 -4
- package/dist/Menu/index.css +15 -6
- package/dist/Menu/index.js +2 -0
- package/dist/Meter/index.css +4 -1
- package/dist/NavigationMenu/index.css +47 -0
- package/dist/NavigationMenu/index.js +7 -1
- package/dist/NumberField/index.css +10 -3
- package/dist/Popover/index.css +12 -0
- package/dist/Popover/index.js +3 -1
- package/dist/Progress/index.css +8 -8
- package/dist/Progress/index.d.ts +9 -0
- package/dist/Progress/index.js +12 -2
- package/dist/Radio/index.css +16 -4
- package/dist/Radio/index.d.ts +11 -1
- package/dist/Radio/index.js +12 -3
- package/dist/ScrollArea/index.css +35 -0
- package/dist/ScrollArea/index.js +6 -1
- package/dist/Select/index.css +7 -12
- package/dist/Slider/index.css +16 -5
- package/dist/Slider/index.d.ts +11 -1
- package/dist/Slider/index.js +14 -3
- package/dist/Switch/index.css +28 -20
- package/dist/Switch/index.d.ts +18 -0
- package/dist/Switch/index.js +22 -2
- package/dist/Tabs/index.css +1 -1
- package/dist/Toggle/index.css +32 -8
- 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 +20 -2
- package/dist/Tooltip/index.js +1 -0
- 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 +71 -5
- package/dist/index.js +6 -5
- package/package.json +2 -2
package/dist/Accordion/index.css
CHANGED
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.trigger-cbcjp2 {
|
|
19
|
-
font
|
|
20
|
-
font-size: var(--wst-paragraph-2-font-size, 16px);
|
|
21
|
-
font-style: var(--wst-paragraph-2-font-style);
|
|
22
|
-
font-weight: var(--wst-paragraph-2-font-weight);
|
|
23
|
-
line-height: var(--wst-paragraph-2-line-height);
|
|
19
|
+
font: var(--wst-paragraph-2-font);
|
|
24
20
|
color: var(--wst-paragraph-2-color, #000);
|
|
25
21
|
text-align: start;
|
|
26
22
|
cursor: pointer;
|
|
27
23
|
background: none;
|
|
28
24
|
border: none;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 8px;
|
|
29
28
|
width: 100%;
|
|
30
29
|
padding: 0;
|
|
30
|
+
display: flex;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.trigger-cbcjp2:disabled {
|
|
@@ -35,11 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.panel-Gp0XFK {
|
|
38
|
-
font
|
|
39
|
-
font-size: var(--wst-paragraph-2-font-size, 16px);
|
|
40
|
-
font-style: var(--wst-paragraph-2-font-style);
|
|
41
|
-
font-weight: var(--wst-paragraph-2-font-weight);
|
|
42
|
-
line-height: var(--wst-paragraph-2-line-height);
|
|
38
|
+
font: var(--wst-paragraph-2-font);
|
|
43
39
|
color: var(--wst-paragraph-2-color, #000);
|
|
40
|
+
padding-block: 12px;
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -20,6 +20,11 @@ export declare const Accordion: {
|
|
|
20
20
|
className?: string | undefined;
|
|
21
21
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Root: typeof Root;
|
|
23
|
+
Arrow: React_2.ForwardRefExoticComponent<Omit<ArrowProps, "ref"> & React_2.RefAttributes<SVGSVGElement>>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare type ArrowProps = React_2.SVGProps<SVGSVGElement> & {
|
|
27
|
+
className?: string;
|
|
23
28
|
};
|
|
24
29
|
|
|
25
30
|
declare function Root<Value = any>({ className, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>>): JSX_2.Element;
|
package/dist/Accordion/index.js
CHANGED
|
@@ -35,11 +35,26 @@ function Root({ className, ...props }) {
|
|
|
35
35
|
className: clsx(Accordion_module.root, className)
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
const Arrow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("svg", {
|
|
39
|
+
ref: ref,
|
|
40
|
+
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
|
+
"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
|
+
})
|
|
51
|
+
}));
|
|
38
52
|
const Accordion_Accordion = {
|
|
39
53
|
Item: Item,
|
|
40
54
|
Header: Header,
|
|
41
55
|
Trigger: Trigger,
|
|
42
56
|
Panel: Panel,
|
|
43
|
-
Root: Root
|
|
57
|
+
Root: Root,
|
|
58
|
+
Arrow: Arrow
|
|
44
59
|
};
|
|
45
60
|
export { Accordion_Accordion as Accordion };
|
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
.popup-L9x90S {
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
background-color: var(--wst-dialog-background-color, #fff);
|
|
21
|
+
flex-direction: column;
|
|
21
22
|
min-width: 280px;
|
|
22
23
|
max-width: 980px;
|
|
23
24
|
min-height: 240px;
|
|
24
25
|
max-height: min(100vh, 620px);
|
|
25
|
-
padding:
|
|
26
|
+
padding: 32px;
|
|
27
|
+
display: flex;
|
|
26
28
|
position: absolute;
|
|
27
29
|
top: 50%;
|
|
28
30
|
left: 50%;
|
|
@@ -32,8 +34,17 @@
|
|
|
32
34
|
|
|
33
35
|
.close-ws9ziC {
|
|
34
36
|
color: var(--wst-dialog-close-button-color, #000);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.title-IeDaIJ {
|
|
40
|
+
font: var(--wst-heading-6-font);
|
|
41
|
+
color: var(--wst-heading-6-color);
|
|
42
|
+
margin: 0 0 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.description-imwSAm {
|
|
46
|
+
font: var(--wst-paragraph-2-font);
|
|
47
|
+
color: var(--wst-paragraph-2-color);
|
|
48
|
+
margin: 0 0 16px;
|
|
38
49
|
}
|
|
39
50
|
|
|
@@ -6,7 +6,9 @@ const AlertDialog_module = {
|
|
|
6
6
|
backdrop: "backdrop-uiBfeV",
|
|
7
7
|
viewport: "viewport-rOzJs7",
|
|
8
8
|
popup: "popup-L9x90S",
|
|
9
|
-
close: "close-ws9ziC"
|
|
9
|
+
close: "close-ws9ziC",
|
|
10
|
+
title: "title-IeDaIJ",
|
|
11
|
+
description: "description-imwSAm"
|
|
10
12
|
};
|
|
11
13
|
const Backdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(AlertDialog.Backdrop, {
|
|
12
14
|
ref: ref,
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
border-radius: var(--wst-autocomplete-border-radius, 0px);
|
|
93
93
|
background-color: var(--wst-primary-background-color, #fff);
|
|
94
94
|
width: calc(100% + 2px);
|
|
95
|
+
min-width: 100%;
|
|
95
96
|
margin-left: -1px;
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -107,3 +108,9 @@
|
|
|
107
108
|
background-color: color-mix(in srgb, var(--wst-paragraph-2-color, #000) 6%, transparent);
|
|
108
109
|
}
|
|
109
110
|
|
|
111
|
+
.empty-P2WjlU {
|
|
112
|
+
font: var(--wst-paragraph-2-font);
|
|
113
|
+
color: var(--wst-paragraph-3-color);
|
|
114
|
+
padding: 10px 14px;
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -8,7 +8,8 @@ const Autocomplete_module = {
|
|
|
8
8
|
icon: "icon-xxqTKh",
|
|
9
9
|
list: "list-D5iucO",
|
|
10
10
|
popup: "popup-w30icg",
|
|
11
|
-
item: "item-MXqW1H"
|
|
11
|
+
item: "item-MXqW1H",
|
|
12
|
+
empty: "empty-P2WjlU"
|
|
12
13
|
};
|
|
13
14
|
const InputGroup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Autocomplete.InputGroup, {
|
|
14
15
|
ref: ref,
|
package/dist/Avatar/index.css
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
font-size: calc(var(--avatar-size, 36px) / 3);
|
|
5
5
|
letter-spacing: 0;
|
|
6
6
|
text-align: center;
|
|
7
|
-
|
|
7
|
+
user-select: none;
|
|
8
|
+
background-color: var(--wst-secondary-background-color, #e6e6e6);
|
|
8
9
|
border-radius: 50%;
|
|
9
10
|
justify-content: center;
|
|
10
11
|
align-items: center;
|
|
@@ -17,17 +18,18 @@
|
|
|
17
18
|
width: 100%;
|
|
18
19
|
height: 100%;
|
|
19
20
|
font-size: initial;
|
|
21
|
+
object-fit: cover;
|
|
20
22
|
border-radius: 50%;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.fallback-r0pagw {
|
|
24
|
-
|
|
25
|
-
font-
|
|
26
|
+
font: var(--wst-paragraph-2-font);
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
color: var(--wst-paragraph-2-color);
|
|
26
29
|
justify-content: center;
|
|
27
30
|
align-items: center;
|
|
28
31
|
width: 100%;
|
|
29
32
|
height: 100%;
|
|
30
|
-
font-weight: 500;
|
|
31
33
|
display: flex;
|
|
32
34
|
position: absolute;
|
|
33
35
|
}
|
package/dist/Button/index.css
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
.root-kIffNe {
|
|
4
2
|
cursor: pointer;
|
|
5
3
|
box-sizing: border-box;
|
|
@@ -15,25 +13,31 @@
|
|
|
15
13
|
padding-bottom: var(--wst-button-primary-padding-bottom);
|
|
16
14
|
padding-left: var(--wst-button-primary-padding-left);
|
|
17
15
|
border-top-color: var(--wst-button-primary-border-top-color);
|
|
18
|
-
border-
|
|
16
|
+
border-inline-end-color: var(--wst-button-primary-border-right-color);
|
|
19
17
|
border-bottom-color: var(--wst-button-primary-border-bottom-color);
|
|
20
|
-
border-
|
|
18
|
+
border-inline-start-color: var(--wst-button-primary-border-left-color);
|
|
21
19
|
border-top-width: var(--wst-button-primary-border-top-width);
|
|
22
|
-
border-
|
|
20
|
+
border-inline-end-width: var(--wst-button-primary-border-right-width);
|
|
23
21
|
border-bottom-width: var(--wst-button-primary-border-bottom-width);
|
|
24
|
-
border-
|
|
22
|
+
border-inline-start-width: var(--wst-button-primary-border-left-width);
|
|
25
23
|
border-top-style: var(--wst-button-primary-border-top-style);
|
|
26
|
-
border-
|
|
24
|
+
border-inline-end-style: var(--wst-button-primary-border-right-style);
|
|
27
25
|
border-bottom-style: var(--wst-button-primary-border-bottom-style);
|
|
28
|
-
border-
|
|
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);
|
|
26
|
+
border-inline-start-style: var(--wst-button-primary-border-left-style);
|
|
33
27
|
box-shadow: var(--wst-button-primary-box-shadow);
|
|
34
28
|
column-gap: var(--wst-button-primary-column-gap);
|
|
35
29
|
row-gap: var(--wst-button-primary-row-gap);
|
|
36
30
|
justify-content: var(--wst-button-primary-justify-content);
|
|
31
|
+
color: var(--wst-button-primary-color);
|
|
32
|
+
font: var(--wst-button-primary-font);
|
|
33
|
+
letter-spacing: var(--wst-button-primary-letter-spacing);
|
|
34
|
+
text-decoration: var(--wst-button-primary-text-decoration);
|
|
35
|
+
text-transform: var(--wst-button-primary-text-transform);
|
|
36
|
+
text-shadow: var(--wst-button-primary-text-shadow);
|
|
37
|
+
border-start-start-radius: var(--wst-button-primary-border-top-left-radius);
|
|
38
|
+
border-start-end-radius: var(--wst-button-primary-border-top-right-radius);
|
|
39
|
+
border-end-end-radius: var(--wst-button-primary-border-bottom-right-radius);
|
|
40
|
+
border-end-start-radius: var(--wst-button-primary-border-bottom-left-radius);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
.secondary-O9td6z {
|
|
@@ -44,25 +48,31 @@
|
|
|
44
48
|
padding-bottom: var(--wst-button-secondary-padding-bottom);
|
|
45
49
|
padding-left: var(--wst-button-secondary-padding-left);
|
|
46
50
|
border-top-color: var(--wst-button-secondary-border-top-color);
|
|
47
|
-
border-
|
|
51
|
+
border-inline-end-color: var(--wst-button-secondary-border-right-color);
|
|
48
52
|
border-bottom-color: var(--wst-button-secondary-border-bottom-color);
|
|
49
|
-
border-
|
|
53
|
+
border-inline-start-color: var(--wst-button-secondary-border-left-color);
|
|
50
54
|
border-top-width: var(--wst-button-secondary-border-top-width);
|
|
51
|
-
border-
|
|
55
|
+
border-inline-end-width: var(--wst-button-secondary-border-right-width);
|
|
52
56
|
border-bottom-width: var(--wst-button-secondary-border-bottom-width);
|
|
53
|
-
border-
|
|
57
|
+
border-inline-start-width: var(--wst-button-secondary-border-left-width);
|
|
54
58
|
border-top-style: var(--wst-button-secondary-border-top-style);
|
|
55
|
-
border-
|
|
59
|
+
border-inline-end-style: var(--wst-button-secondary-border-right-style);
|
|
56
60
|
border-bottom-style: var(--wst-button-secondary-border-bottom-style);
|
|
57
|
-
border-
|
|
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);
|
|
61
|
+
border-inline-start-style: var(--wst-button-secondary-border-left-style);
|
|
62
62
|
box-shadow: var(--wst-button-secondary-box-shadow);
|
|
63
63
|
column-gap: var(--wst-button-secondary-column-gap);
|
|
64
64
|
row-gap: var(--wst-button-secondary-row-gap);
|
|
65
65
|
justify-content: var(--wst-button-secondary-justify-content);
|
|
66
|
+
color: var(--wst-button-secondary-color);
|
|
67
|
+
font: var(--wst-button-secondary-font);
|
|
68
|
+
letter-spacing: var(--wst-button-secondary-letter-spacing);
|
|
69
|
+
text-decoration: var(--wst-button-secondary-text-decoration);
|
|
70
|
+
text-transform: var(--wst-button-secondary-text-transform);
|
|
71
|
+
text-shadow: var(--wst-button-secondary-text-shadow);
|
|
72
|
+
border-start-start-radius: var(--wst-button-secondary-border-top-left-radius);
|
|
73
|
+
border-start-end-radius: var(--wst-button-secondary-border-top-right-radius);
|
|
74
|
+
border-end-end-radius: var(--wst-button-secondary-border-bottom-right-radius);
|
|
75
|
+
border-end-start-radius: var(--wst-button-secondary-border-bottom-left-radius);
|
|
66
76
|
}
|
|
67
77
|
|
|
68
78
|
.tertiary-QWTRNC {
|
|
@@ -73,57 +83,70 @@
|
|
|
73
83
|
padding-bottom: var(--wst-button-tertiary-padding-bottom);
|
|
74
84
|
padding-left: var(--wst-button-tertiary-padding-left);
|
|
75
85
|
border-top-color: var(--wst-button-tertiary-border-top-color);
|
|
76
|
-
border-
|
|
86
|
+
border-inline-end-color: var(--wst-button-tertiary-border-right-color);
|
|
77
87
|
border-bottom-color: var(--wst-button-tertiary-border-bottom-color);
|
|
78
|
-
border-
|
|
88
|
+
border-inline-start-color: var(--wst-button-tertiary-border-left-color);
|
|
79
89
|
border-top-width: var(--wst-button-tertiary-border-top-width);
|
|
80
|
-
border-
|
|
90
|
+
border-inline-end-width: var(--wst-button-tertiary-border-right-width);
|
|
81
91
|
border-bottom-width: var(--wst-button-tertiary-border-bottom-width);
|
|
82
|
-
border-
|
|
92
|
+
border-inline-start-width: var(--wst-button-tertiary-border-left-width);
|
|
83
93
|
border-top-style: var(--wst-button-tertiary-border-top-style);
|
|
84
|
-
border-
|
|
94
|
+
border-inline-end-style: var(--wst-button-tertiary-border-right-style);
|
|
85
95
|
border-bottom-style: var(--wst-button-tertiary-border-bottom-style);
|
|
86
|
-
border-
|
|
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);
|
|
96
|
+
border-inline-start-style: var(--wst-button-tertiary-border-left-style);
|
|
91
97
|
box-shadow: var(--wst-button-tertiary-box-shadow);
|
|
92
98
|
column-gap: var(--wst-button-tertiary-column-gap);
|
|
93
99
|
row-gap: var(--wst-button-tertiary-row-gap);
|
|
94
100
|
justify-content: var(--wst-button-tertiary-justify-content);
|
|
101
|
+
color: var(--wst-button-tertiary-color);
|
|
102
|
+
font: var(--wst-button-tertiary-font);
|
|
103
|
+
letter-spacing: var(--wst-button-tertiary-letter-spacing);
|
|
104
|
+
text-decoration: var(--wst-button-tertiary-text-decoration);
|
|
105
|
+
text-transform: var(--wst-button-tertiary-text-transform);
|
|
106
|
+
text-shadow: var(--wst-button-tertiary-text-shadow);
|
|
107
|
+
border-start-start-radius: var(--wst-button-tertiary-border-top-left-radius);
|
|
108
|
+
border-start-end-radius: var(--wst-button-tertiary-border-top-right-radius);
|
|
109
|
+
border-end-end-radius: var(--wst-button-tertiary-border-bottom-right-radius);
|
|
110
|
+
border-end-start-radius: var(--wst-button-tertiary-border-bottom-left-radius);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.root-kIffNe:focus-visible {
|
|
114
|
+
outline: 2px solid var(--wst-links-and-actions-color);
|
|
115
|
+
outline-offset: 2px;
|
|
95
116
|
}
|
|
96
117
|
|
|
97
|
-
.
|
|
98
|
-
|
|
99
|
-
padding-bottom: calc(4px * 2 - 2px);
|
|
100
|
-
padding-right: calc(4px * 4);
|
|
101
|
-
padding-left: calc(4px * 4);
|
|
118
|
+
.primary-BOdHls:not(:disabled):hover {
|
|
119
|
+
background-color: color-mix(in srgb, var(--wst-button-primary-background-color) 85%, black);
|
|
102
120
|
}
|
|
103
121
|
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
122
|
+
.primary-BOdHls:disabled {
|
|
123
|
+
background-color: var(--wst-system-disabled-color);
|
|
124
|
+
border-top-color: var(--wst-system-disabled-color);
|
|
125
|
+
border-bottom-color: var(--wst-system-disabled-color);
|
|
126
|
+
border-inline-start-color: var(--wst-system-disabled-color);
|
|
127
|
+
border-inline-end-color: var(--wst-system-disabled-color);
|
|
128
|
+
color: var(--wst-primary-background-color);
|
|
129
|
+
cursor: default;
|
|
130
|
+
pointer-events: none;
|
|
109
131
|
}
|
|
110
132
|
|
|
111
|
-
.
|
|
112
|
-
|
|
113
|
-
padding-bottom: calc(4px * 2);
|
|
114
|
-
padding-right: calc(4px * 4);
|
|
115
|
-
padding-left: calc(4px * 4);
|
|
133
|
+
.secondary-O9td6z:not(:disabled):hover {
|
|
134
|
+
background-color: color-mix(in srgb, var(--wst-button-secondary-border-top-color) 8%, transparent);
|
|
116
135
|
}
|
|
117
136
|
|
|
118
|
-
.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
137
|
+
.secondary-O9td6z:disabled {
|
|
138
|
+
border-top-color: var(--wst-system-disabled-color);
|
|
139
|
+
border-bottom-color: var(--wst-system-disabled-color);
|
|
140
|
+
border-inline-start-color: var(--wst-system-disabled-color);
|
|
141
|
+
border-inline-end-color: var(--wst-system-disabled-color);
|
|
142
|
+
color: var(--wst-system-disabled-color);
|
|
143
|
+
cursor: default;
|
|
144
|
+
pointer-events: none;
|
|
123
145
|
}
|
|
124
146
|
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
147
|
+
.tertiary-QWTRNC:disabled {
|
|
148
|
+
color: var(--wst-system-disabled-color);
|
|
149
|
+
cursor: default;
|
|
150
|
+
pointer-events: none;
|
|
128
151
|
}
|
|
129
152
|
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -7,11 +7,8 @@ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & Rea
|
|
|
7
7
|
|
|
8
8
|
declare interface ButtonProps extends BaseProps {
|
|
9
9
|
variant?: ButtonVariant;
|
|
10
|
-
size?: ButtonSize;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
declare type ButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
14
|
-
|
|
15
12
|
declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
16
13
|
|
|
17
14
|
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
package/dist/Button/index.js
CHANGED
|
@@ -3,30 +3,14 @@ import { Button } from "@base-ui/react/button";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as __rspack_external_react from "react";
|
|
5
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
6
|
root: "root-kIffNe",
|
|
19
7
|
primary: "primary-BOdHls",
|
|
20
8
|
secondary: "secondary-O9td6z",
|
|
21
|
-
tertiary: "tertiary-QWTRNC"
|
|
22
|
-
tiny: "tiny-u7daFm",
|
|
23
|
-
small: "small-OumyWK",
|
|
24
|
-
medium: "medium-ZNTo1S",
|
|
25
|
-
large: "large-g_AXNi"
|
|
9
|
+
tertiary: "tertiary-QWTRNC"
|
|
26
10
|
};
|
|
27
|
-
const Button_Button = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, variant = 'primary',
|
|
11
|
+
const Button_Button = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, variant = 'primary', ...props }, ref)=>/*#__PURE__*/ jsx(Button, {
|
|
28
12
|
ref: ref,
|
|
29
|
-
className: clsx(Button_module.root, Button_module[variant],
|
|
13
|
+
className: clsx(Button_module.root, Button_module[variant], className),
|
|
30
14
|
...props
|
|
31
15
|
}));
|
|
32
16
|
export { Button_Button as Button };
|
package/dist/Checkbox/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.root-OrOWpu {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
width: var(--
|
|
4
|
-
height: var(--
|
|
3
|
+
width: var(--checkbox-size, 16px);
|
|
4
|
+
height: var(--checkbox-size, 16px);
|
|
5
5
|
vertical-align: middle;
|
|
6
6
|
border: var(--wst-checkbox-input-border-width, 1px) solid;
|
|
7
7
|
border-color: var(--wst-paragraph-2-color, #0009);
|
|
@@ -20,12 +20,9 @@
|
|
|
20
20
|
background-color: var(--wst-primary-background-color, transparent);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.root-OrOWpu[data-checked]:not([data-disabled]) {
|
|
24
|
-
background-color: var(--wst-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.root-OrOWpu[data-checked]:hover {
|
|
28
|
-
background-color: #0000;
|
|
23
|
+
.root-OrOWpu[data-checked]:not([data-disabled]), .root-OrOWpu[data-checked]:hover {
|
|
24
|
+
background-color: var(--wst-links-and-actions-color);
|
|
25
|
+
border-color: var(--wst-links-and-actions-color);
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
.root-OrOWpu[data-disabled] {
|
|
@@ -60,6 +57,10 @@
|
|
|
60
57
|
transition: fill .2s linear;
|
|
61
58
|
}
|
|
62
59
|
|
|
60
|
+
.root-OrOWpu[data-checked]:not([data-disabled]) .indicator-g_8JYy path, .root-OrOWpu[data-checked]:hover .indicator-g_8JYy path {
|
|
61
|
+
fill: var(--wst-primary-background-color, #fff);
|
|
62
|
+
}
|
|
63
|
+
|
|
63
64
|
.root-OrOWpu:hover .indicator-g_8JYy path, .root-OrOWpu:focus-within .indicator-g_8JYy path {
|
|
64
65
|
fill: var(--wst-links-and-actions-color, #000);
|
|
65
66
|
}
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -5,12 +5,20 @@ import * as React_2 from 'react';
|
|
|
5
5
|
export declare const Checkbox: {
|
|
6
6
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
|
|
7
7
|
className?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
size?: number | undefined;
|
|
8
10
|
} & React_2.RefAttributes<HTMLElement>>;
|
|
9
11
|
Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
|
|
10
12
|
className?: string | undefined;
|
|
11
13
|
} & React_2.RefAttributes<HTMLSpanElement>>;
|
|
12
14
|
};
|
|
13
15
|
|
|
16
|
+
export declare const CheckboxSize: {
|
|
17
|
+
readonly small: 12;
|
|
18
|
+
readonly medium: 16;
|
|
19
|
+
readonly large: 20;
|
|
20
|
+
};
|
|
21
|
+
|
|
14
22
|
|
|
15
23
|
export * from "@base-ui/react/checkbox";
|
|
16
24
|
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -6,9 +6,18 @@ const Checkbox_module = {
|
|
|
6
6
|
root: "root-OrOWpu",
|
|
7
7
|
indicator: "indicator-g_8JYy"
|
|
8
8
|
};
|
|
9
|
-
const
|
|
9
|
+
const CheckboxSize = {
|
|
10
|
+
small: 12,
|
|
11
|
+
medium: 16,
|
|
12
|
+
large: 20
|
|
13
|
+
};
|
|
14
|
+
const Root = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, size = CheckboxSize.medium, style, ...props }, ref)=>/*#__PURE__*/ jsx(Checkbox.Root, {
|
|
10
15
|
ref: ref,
|
|
11
16
|
className: clsx(Checkbox_module.root, className),
|
|
17
|
+
style: {
|
|
18
|
+
'--checkbox-size': `${size}px`,
|
|
19
|
+
...style
|
|
20
|
+
},
|
|
12
21
|
...props
|
|
13
22
|
}));
|
|
14
23
|
const Indicator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Checkbox.Indicator, {
|
|
@@ -20,4 +29,4 @@ const Checkbox_Checkbox = {
|
|
|
20
29
|
Root: Root,
|
|
21
30
|
Indicator: Indicator
|
|
22
31
|
};
|
|
23
|
-
export { Checkbox_Checkbox as Checkbox };
|
|
32
|
+
export { CheckboxSize, Checkbox_Checkbox as Checkbox };
|
package/dist/Combobox/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.label-AxhKN1 {
|
|
2
2
|
color: var(--wst-paragraph-2-color, #000);
|
|
3
|
-
font: var(--wst-paragraph-2
|
|
3
|
+
font: var(--wst-paragraph-2-font);
|
|
4
4
|
margin-bottom: 8px;
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
border: 1px solid color-mix(in srgb, var(--wst-paragraph-2-color, #000) 60%, transparent);
|
|
14
14
|
border-radius: var(--wst-border-radius, 0);
|
|
15
15
|
color: var(--wst-paragraph-2-color, #000);
|
|
16
|
-
font: var(--wst-paragraph-2
|
|
16
|
+
font: var(--wst-paragraph-2-font);
|
|
17
17
|
transition: border-color .1s, background-color .1s, color .1s;
|
|
18
18
|
display: flex;
|
|
19
19
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
.input-V1lew7::placeholder {
|
|
49
49
|
color: var(--wst-shade-3-color, #aaa);
|
|
50
|
-
font: var(--wst-paragraph-2
|
|
50
|
+
font: var(--wst-paragraph-2-font);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.trigger-d9xFPE {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
padding-top: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
106
106
|
padding-bottom: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
107
107
|
color: var(--wst-shade-3-color, #aaa);
|
|
108
|
-
font: var(--wst-paragraph-2
|
|
108
|
+
font: var(--wst-paragraph-2-font);
|
|
109
109
|
padding-inline-start: var(--wst-dropdown-option-padding-inline-start, 12px);
|
|
110
110
|
padding-inline-end: 12px;
|
|
111
111
|
display: block;
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
padding-top: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
118
118
|
padding-bottom: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
119
119
|
color: var(--wst-paragraph-2-color, #000);
|
|
120
|
-
font: var(--wst-paragraph-2
|
|
120
|
+
font: var(--wst-paragraph-2-font);
|
|
121
121
|
cursor: pointer;
|
|
122
122
|
user-select: none;
|
|
123
123
|
align-items: center;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
.chip-YCMHpQ {
|
|
162
162
|
background-color: color-mix(in srgb, var(--wst-paragraph-2-color, #000) 8%, transparent);
|
|
163
163
|
color: var(--wst-paragraph-2-color, #000);
|
|
164
|
-
font: var(--wst-paragraph-2
|
|
164
|
+
font: var(--wst-paragraph-2-font);
|
|
165
165
|
border-radius: 2px;
|
|
166
166
|
align-items: center;
|
|
167
167
|
gap: 4px;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
padding-top: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
195
195
|
padding-bottom: var(--wst-dropdown-option-vertical-padding, 8px);
|
|
196
196
|
color: var(--wst-shade-3-color, #aaa);
|
|
197
|
-
font: var(--wst-paragraph-2
|
|
197
|
+
font: var(--wst-paragraph-2-font);
|
|
198
198
|
padding-inline-start: var(--wst-dropdown-option-padding-inline-start, 12px);
|
|
199
199
|
padding-inline-end: 12px;
|
|
200
200
|
}
|
package/dist/Dialog/index.css
CHANGED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
.popup-RjSkgq {
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
background-color: var(--wst-dialog-background-color, #fff);
|
|
21
|
+
flex-direction: column;
|
|
21
22
|
min-width: 280px;
|
|
22
23
|
max-width: 980px;
|
|
23
24
|
min-height: 240px;
|
|
24
25
|
max-height: min(100vh, 620px);
|
|
25
|
-
padding:
|
|
26
|
+
padding: 32px;
|
|
27
|
+
display: flex;
|
|
26
28
|
position: absolute;
|
|
27
29
|
top: 50%;
|
|
28
30
|
left: 50%;
|
|
@@ -32,8 +34,17 @@
|
|
|
32
34
|
|
|
33
35
|
.close-zqdBdX {
|
|
34
36
|
color: var(--wst-dialog-close-button-color, #000);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.title-U8Hyut {
|
|
40
|
+
font: var(--wst-heading-6-font);
|
|
41
|
+
color: var(--wst-heading-6-color);
|
|
42
|
+
margin: 0 0 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.description-ZV1a4j {
|
|
46
|
+
font: var(--wst-paragraph-2-font);
|
|
47
|
+
color: var(--wst-paragraph-2-color);
|
|
48
|
+
margin: 0 0 16px;
|
|
38
49
|
}
|
|
39
50
|
|
package/dist/Dialog/index.js
CHANGED
|
@@ -6,7 +6,9 @@ const Dialog_module = {
|
|
|
6
6
|
backdrop: "backdrop-EHLKAc",
|
|
7
7
|
viewport: "viewport-nOzLZZ",
|
|
8
8
|
popup: "popup-RjSkgq",
|
|
9
|
-
close: "close-zqdBdX"
|
|
9
|
+
close: "close-zqdBdX",
|
|
10
|
+
title: "title-U8Hyut",
|
|
11
|
+
description: "description-ZV1a4j"
|
|
10
12
|
};
|
|
11
13
|
const Backdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
12
14
|
ref: ref,
|