@pingux/astro 2.237.0-alpha.0 → 2.237.1-alpha.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/lib/cjs/components/SwitchField/SwitchField.stories.js +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +4 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +5 -1
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.js +14 -12
- package/lib/components/SwitchField/SwitchField.stories.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +5 -1
- package/lib/styles/themes/next-gen/variants/switch.js +14 -12
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ var Disabled = exports.Disabled = function Disabled(args) {
|
|
|
77
77
|
};
|
|
78
78
|
var NoVisibleLabel = exports.NoVisibleLabel = function NoVisibleLabel(args) {
|
|
79
79
|
return (0, _react2.jsx)(_index.SwitchField, (0, _extends2["default"])({}, args, {
|
|
80
|
-
"aria-label": "
|
|
80
|
+
"aria-label": "Non-visible-label",
|
|
81
81
|
value: "my-switch"
|
|
82
82
|
}));
|
|
83
83
|
};
|
|
@@ -1214,10 +1214,12 @@ declare const _default: {
|
|
|
1214
1214
|
switch: {
|
|
1215
1215
|
container: {
|
|
1216
1216
|
minWidth: string;
|
|
1217
|
+
mr: string;
|
|
1217
1218
|
color: string;
|
|
1218
1219
|
bg: string;
|
|
1219
1220
|
border: string;
|
|
1220
1221
|
borderColor: string;
|
|
1222
|
+
backgroundColor: string;
|
|
1221
1223
|
borderRadius: number;
|
|
1222
1224
|
'&.is-selected': {
|
|
1223
1225
|
bg: string;
|
|
@@ -2025,10 +2025,12 @@ declare const _default: {
|
|
|
2025
2025
|
switch: {
|
|
2026
2026
|
container: {
|
|
2027
2027
|
minWidth: string;
|
|
2028
|
+
mr: string;
|
|
2028
2029
|
color: string;
|
|
2029
2030
|
bg: string;
|
|
2030
2031
|
border: string;
|
|
2031
2032
|
borderColor: string;
|
|
2033
|
+
backgroundColor: string;
|
|
2032
2034
|
borderRadius: number;
|
|
2033
2035
|
'&.is-selected': {
|
|
2034
2036
|
bg: string;
|
|
@@ -7,12 +7,14 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.switchable = void 0;
|
|
8
8
|
var switchable = exports.switchable = {
|
|
9
9
|
container: {
|
|
10
|
-
minWidth: '
|
|
10
|
+
minWidth: '28px',
|
|
11
|
+
mr: '12px',
|
|
11
12
|
color: 'neutral.80',
|
|
12
|
-
bg: '
|
|
13
|
+
bg: 'gray-400',
|
|
13
14
|
border: '1px solid',
|
|
14
|
-
borderColor: '
|
|
15
|
-
|
|
15
|
+
borderColor: 'gray-400',
|
|
16
|
+
backgroundColor: 'gray-400',
|
|
17
|
+
borderRadius: 14,
|
|
16
18
|
'&.is-selected': {
|
|
17
19
|
bg: 'active',
|
|
18
20
|
borderColor: 'active'
|
|
@@ -21,23 +23,23 @@ var switchable = exports.switchable = {
|
|
|
21
23
|
thumbContainer: {
|
|
22
24
|
bg: 'transparent',
|
|
23
25
|
border: 'none',
|
|
24
|
-
width: '
|
|
26
|
+
width: '28px',
|
|
25
27
|
height: 16,
|
|
26
|
-
py: '
|
|
27
|
-
px: '
|
|
28
|
+
py: '2px',
|
|
29
|
+
px: '2px',
|
|
28
30
|
'label.is-selected &': {
|
|
29
31
|
bg: 'transparent'
|
|
30
32
|
}
|
|
31
33
|
},
|
|
32
34
|
thumb: {
|
|
33
|
-
bg: '
|
|
34
|
-
minHeight:
|
|
35
|
-
maxHeight:
|
|
36
|
-
width:
|
|
35
|
+
bg: 'white',
|
|
36
|
+
minHeight: 12,
|
|
37
|
+
maxHeight: 12,
|
|
38
|
+
width: 12,
|
|
37
39
|
border: 'none',
|
|
38
40
|
'&.is-selected': {
|
|
39
41
|
bg: 'white',
|
|
40
|
-
transform: 'translateX(
|
|
42
|
+
transform: 'translateX(12px)'
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
};
|
|
@@ -67,7 +67,7 @@ export var Disabled = function Disabled(args) {
|
|
|
67
67
|
};
|
|
68
68
|
export var NoVisibleLabel = function NoVisibleLabel(args) {
|
|
69
69
|
return ___EmotionJSX(SwitchField, _extends({}, args, {
|
|
70
|
-
"aria-label": "
|
|
70
|
+
"aria-label": "Non-visible-label",
|
|
71
71
|
value: "my-switch"
|
|
72
72
|
}));
|
|
73
73
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export var switchable = {
|
|
2
2
|
container: {
|
|
3
|
-
minWidth: '
|
|
3
|
+
minWidth: '28px',
|
|
4
|
+
mr: '12px',
|
|
4
5
|
color: 'neutral.80',
|
|
5
|
-
bg: '
|
|
6
|
+
bg: 'gray-400',
|
|
6
7
|
border: '1px solid',
|
|
7
|
-
borderColor: '
|
|
8
|
-
|
|
8
|
+
borderColor: 'gray-400',
|
|
9
|
+
backgroundColor: 'gray-400',
|
|
10
|
+
borderRadius: 14,
|
|
9
11
|
'&.is-selected': {
|
|
10
12
|
bg: 'active',
|
|
11
13
|
borderColor: 'active'
|
|
@@ -14,23 +16,23 @@ export var switchable = {
|
|
|
14
16
|
thumbContainer: {
|
|
15
17
|
bg: 'transparent',
|
|
16
18
|
border: 'none',
|
|
17
|
-
width: '
|
|
19
|
+
width: '28px',
|
|
18
20
|
height: 16,
|
|
19
|
-
py: '
|
|
20
|
-
px: '
|
|
21
|
+
py: '2px',
|
|
22
|
+
px: '2px',
|
|
21
23
|
'label.is-selected &': {
|
|
22
24
|
bg: 'transparent'
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
27
|
thumb: {
|
|
26
|
-
bg: '
|
|
27
|
-
minHeight:
|
|
28
|
-
maxHeight:
|
|
29
|
-
width:
|
|
28
|
+
bg: 'white',
|
|
29
|
+
minHeight: 12,
|
|
30
|
+
maxHeight: 12,
|
|
31
|
+
width: 12,
|
|
30
32
|
border: 'none',
|
|
31
33
|
'&.is-selected': {
|
|
32
34
|
bg: 'white',
|
|
33
|
-
transform: 'translateX(
|
|
35
|
+
transform: 'translateX(12px)'
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
};
|