@vkontakte/vkui 8.2.2 → 8.3.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/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/cssm/components/FormField/FormField.module.css +4 -4
- package/dist/cssm/components/PopoutWrapper/PopoutWrapper.module.css +11 -11
- package/dist/cssm/components/SegmentedControl/SegmentedControl.module.css +2 -4
- package/dist/cssm/hooks/useSnackbarManager/components/SnackbarHolder.js +1 -1
- package/dist/cssm/hooks/useSnackbarManager/components/SnackbarHolder.js.map +1 -1
- package/dist/cssm/index.js.map +1 -1
- package/dist/cssm/styles/themes.css +3 -0
- package/dist/hooks/useSnackbarManager/components/SnackbarHolder.js +1 -1
- package/dist/hooks/useSnackbarManager/components/SnackbarHolder.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/vkui.css +1 -1
- package/dist/vkui.css.map +1 -1
- package/package.json +5 -4
- package/src/components/FormField/FormField.module.css +4 -4
- package/src/components/PopoutWrapper/PopoutWrapper.module.css +11 -11
- package/src/components/PopoutWrapper/PopoutWrapper.module.css.d.ts.map +1 -1
- package/src/components/SegmentedControl/SegmentedControl.module.css +2 -4
- package/src/components/SegmentedControl/SegmentedControl.module.css.d.ts.map +1 -1
- package/src/hooks/useSnackbarManager/components/SnackbarHolder.tsx +1 -1
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"name": "@vkontakte/vkui",
|
|
5
5
|
"description": "VKUI library",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -87,16 +87,17 @@
|
|
|
87
87
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@swc/helpers": "^0.5.
|
|
91
|
-
"@vkontakte/icons": "^3.
|
|
90
|
+
"@swc/helpers": "^0.5.23",
|
|
91
|
+
"@vkontakte/icons": "^3.58.0",
|
|
92
92
|
"@vkontakte/vkjs": "^2.0.2",
|
|
93
93
|
"@vkontakte/vkui-date-fns-tz": "^0.0.6",
|
|
94
94
|
"@vkontakte/vkui-floating-ui": "^0.2.8"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@biomejs/biome": "^2.
|
|
97
|
+
"@biomejs/biome": "^2.5.0",
|
|
98
98
|
"@types/node": "*",
|
|
99
99
|
"@types/postcss-import": "^14.0.3",
|
|
100
|
+
"@vkontakte/storybook-addons": "^1.0.1",
|
|
100
101
|
"react": "^18.3.1",
|
|
101
102
|
"react-dom": "^18.3.1",
|
|
102
103
|
"size-limit": "^12.1.0",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
/* stylelint-disable-next-line selector-pseudo-class-disallowed-list */
|
|
211
211
|
:global(
|
|
212
212
|
.vkuiInternalFormLayoutGroup--segmented.vkuiInternalFormLayoutGroup--mode-horizontal
|
|
213
|
-
|
|
213
|
+
.vkuiInternalFormItem
|
|
214
214
|
):first-of-type
|
|
215
215
|
.host {
|
|
216
216
|
border-start-start-radius: var(--vkui--size_border_radius--regular);
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
/* stylelint-disable-next-line selector-pseudo-class-disallowed-list */
|
|
221
221
|
:global(
|
|
222
222
|
.vkuiInternalFormLayoutGroup--segmented.vkuiInternalFormLayoutGroup--mode-horizontal
|
|
223
|
-
|
|
223
|
+
.vkuiInternalFormItem
|
|
224
224
|
):last-of-type
|
|
225
225
|
.host {
|
|
226
226
|
border-start-end-radius: var(--vkui--size_border_radius--regular);
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
/* stylelint-disable-next-line selector-pseudo-class-disallowed-list */
|
|
231
231
|
:global(
|
|
232
232
|
.vkuiInternalFormLayoutGroup--segmented.vkuiInternalFormLayoutGroup--mode-vertical
|
|
233
|
-
|
|
233
|
+
.vkuiInternalFormItem
|
|
234
234
|
):first-of-type
|
|
235
235
|
.host {
|
|
236
236
|
border-start-start-radius: var(--vkui--size_border_radius--regular);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
/* stylelint-disable-next-line selector-pseudo-class-disallowed-list */
|
|
241
241
|
:global(
|
|
242
242
|
.vkuiInternalFormLayoutGroup--segmented.vkuiInternalFormLayoutGroup--mode-vertical
|
|
243
|
-
|
|
243
|
+
.vkuiInternalFormItem
|
|
244
244
|
):last-of-type
|
|
245
245
|
.host {
|
|
246
246
|
border-end-start-radius: var(--vkui--size_border_radius--regular);
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
opacity: 1;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.opened .overlay {
|
|
35
|
+
.opened > .container > .overlay {
|
|
36
36
|
animation: animationPopoutWrapperFullFadeIn var(--vkui--animation_duration_m) ease both;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.closing .overlay {
|
|
39
|
+
.closing > .container > .overlay {
|
|
40
40
|
opacity: 0;
|
|
41
41
|
animation: animationPopoutWrapperFullFadeOut var(--vkui--animation_duration_m)
|
|
42
42
|
var(--vkui--animation_easing_default) both;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.masked .overlay {
|
|
45
|
+
.masked > .container > .overlay {
|
|
46
46
|
background: var(--vkui--color_overlay_primary);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.fixed .overlay,
|
|
50
|
-
.absolute .overlay {
|
|
49
|
+
.fixed > .container > .overlay,
|
|
50
|
+
.absolute > .container > .overlay {
|
|
51
51
|
position: absolute;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -72,27 +72,27 @@
|
|
|
72
72
|
pointer-events: auto;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.alignYCenter .container {
|
|
75
|
+
.alignYCenter > .container {
|
|
76
76
|
align-items: center;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.alignYBottom .container {
|
|
79
|
+
.alignYBottom > .container {
|
|
80
80
|
align-items: flex-end;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.alignYTop .container {
|
|
83
|
+
.alignYTop > .container {
|
|
84
84
|
align-items: flex-start;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.alignXCenter .container {
|
|
87
|
+
.alignXCenter > .container {
|
|
88
88
|
justify-content: center;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.alignXLeft .container {
|
|
91
|
+
.alignXLeft > .container {
|
|
92
92
|
justify-content: flex-start;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.alignXRight .container {
|
|
95
|
+
.alignXRight > .container {
|
|
96
96
|
justify-content: flex-end;
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["./PopoutWrapper.module.css"],"names":["host","opened","closing","fixed","absolute","overlay","
|
|
1
|
+
{"version":3,"sources":["./PopoutWrapper.module.css"],"names":["host","opened","closing","fixed","absolute","overlay","container","masked","content","alignYCenter","alignYBottom","alignYTop","alignXCenter","alignXLeft","alignXRight"],"mappings":"AAAA;AAAA,E,aAAAA,M,WAAA;AAAA,E,aASAC,Q,WATA;AAAA,E,aAaAC,S,WAbA;AAAA,E,aAiBAC,O,WAjBA;AAAA,E,aAqBAC,U,WArBA;AAAA,E,aAyBAC,S,WAzBA;AAAA,E,aAkCAJ,Q,WAlCA;AAAA,E,aAkCUK,W,WAlCV;AAAA,E,aAkCuBD,S,WAlCvB;AAAA,E,aAsCAH,S,WAtCA;AAAA,E,aAsCWI,W,WAtCX;AAAA,E,aAsCwBD,S,WAtCxB;AAAA,E,aA4CAE,Q,WA5CA;AAAA,E,aA4CUD,W,WA5CV;AAAA,E,aA4CuBD,S,WA5CvB;AAAA,E,aAgDAF,O,WAhDA;AAAA,E,aAgDSG,W,WAhDT;AAAA,E,aAgDsBD,S,WAhDtB;AAAA,E,aAiDAD,U,WAjDA;AAAA,E,aAiDYE,W,WAjDZ;AAAA,E,aAiDyBD,S,WAjDzB;AAAA,E,aAqDAC,W,WArDA;AAAA,E,aA6DAE,S,WA7DA;AAAA,E,aAsEAA,S,WAtEA;AAAA,E,aA0EAC,c,WA1EA;AAAA,E,aA0EgBH,W,WA1EhB;AAAA,E,aA8EAI,c,WA9EA;AAAA,E,aA8EgBJ,W,WA9EhB;AAAA,E,aAkFAK,W,WAlFA;AAAA,E,aAkFaL,W,WAlFb;AAAA,E,aAsFAM,c,WAtFA;AAAA,E,aAsFgBN,W,WAtFhB;AAAA,E,aA0FAO,Y,WA1FA;AAAA,E,aA0FcP,W,WA1Fd;AAAA,E,aA8FAQ,a,WA9FA;AAAA,E,aA8FeR,W,WA9Ff;AAAA;AAAA","file":"PopoutWrapper.module.css.d.ts","sourceRoot":""}
|
|
@@ -26,11 +26,9 @@
|
|
|
26
26
|
inset-inline-start: 0;
|
|
27
27
|
inline-size: calc(100% / var(--vkui_internal--SegmentedControl_options));
|
|
28
28
|
background-color: var(--vkui--color_segmented_control);
|
|
29
|
+
border: var(--vkui--size_border--regular) solid var(--vkui--color_image_border_alpha);
|
|
29
30
|
border-radius: inherit;
|
|
30
|
-
box-shadow:
|
|
31
|
-
inset 0 0 0 0.5px var(--vkui--color_image_border_alpha),
|
|
32
|
-
0 3px 8px rgb(0, 0, 0, 0.12),
|
|
33
|
-
0 3px 1px rgb(0, 0, 0, 0.04);
|
|
31
|
+
box-shadow: var(--vkui--elevation2);
|
|
34
32
|
transform: translateX(calc(var(--vkui_internal--SegmentedControl_actual_index) * 100%));
|
|
35
33
|
transform-origin: 0 0;
|
|
36
34
|
transition: transform 150ms;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["./SegmentedControl.module.css"],"names":["host","sizeL","in","slider","rtl","densityRegular","densityNone"],"mappings":"AAAA;AAAA,E,aAAAA,M,WAAA;AAAA,E,aASAC,O,WATA;AAAA,E,aAaAC,I,WAbA;AAAA,E,aAsBAC,Q,WAtBA;AAAA,E,
|
|
1
|
+
{"version":3,"sources":["./SegmentedControl.module.css"],"names":["host","sizeL","in","slider","rtl","densityRegular","densityNone"],"mappings":"AAAA;AAAA,E,aAAAA,M,WAAA;AAAA,E,aASAC,O,WATA;AAAA,E,aAaAC,I,WAbA;AAAA,E,aAsBAC,Q,WAtBA;AAAA,E,aAuCAC,K,WAvCA;AAAA,E,aAuCKD,Q,WAvCL;AAAA,E,aA8CAE,gB,WA9CA;AAAA,E,aAkDAA,gB,WAlDA;AAAA,E,aAkDeJ,O,WAlDf;AAAA,E,aAuDEK,a,WAvDF;AAAA,E,aA2DEA,a,WA3DF;AAAA,E,aA2DcL,O,WA3Dd;AAAA;AAAA","file":"SegmentedControl.module.css.d.ts","sourceRoot":""}
|
|
@@ -40,7 +40,7 @@ export const SnackbarHolder: React.FC<SnackbarHolderProps> = ({
|
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
if (
|
|
43
|
+
if (!map[placement]) {
|
|
44
44
|
map[placement] = [];
|
|
45
45
|
openedSnackbarsCountersByPlacement[placement] = 0;
|
|
46
46
|
placements.push(placement);
|
package/src/index.ts
CHANGED
|
@@ -552,6 +552,7 @@ export type { PopperProps } from './components/Popper/Popper';
|
|
|
552
552
|
/**
|
|
553
553
|
* Types
|
|
554
554
|
*/
|
|
555
|
+
export type { LayoutProps } from './lib/layouts';
|
|
555
556
|
export type { AlignType, HasPlatform, HasRef, HasRootRef } from './types';
|
|
556
557
|
export type { NavIdProps } from './lib/getNavId';
|
|
557
558
|
export type { PlatformType } from './lib/platform';
|