@hh.ru/magritte-ui-picker-wheel 1.0.44 → 1.1.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/PickerWheel.js +1 -1
- package/index.css +15 -15
- package/package.json +3 -3
package/PickerWheel.js
CHANGED
|
@@ -6,7 +6,7 @@ import { initScrollHandlers } from '@hh.ru/magritte-internal-custom-scroll';
|
|
|
6
6
|
import { BottomSheetContext } from '@hh.ru/magritte-ui-bottom-sheet';
|
|
7
7
|
import { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
|
|
8
8
|
|
|
9
|
-
var styles = {"picker-wheel":"magritte-picker-wheel___VaPvG_1-0
|
|
9
|
+
var styles = {"picker-wheel":"magritte-picker-wheel___VaPvG_1-1-0","pickerWheel":"magritte-picker-wheel___VaPvG_1-1-0","selected-item-background":"magritte-selected-item-background___UnBPm_1-1-0","selectedItemBackground":"magritte-selected-item-background___UnBPm_1-1-0","columns":"magritte-columns___I7bCB_1-1-0","touch-events-overlay":"magritte-touch-events-overlay___c3YOp_1-1-0","touchEventsOverlay":"magritte-touch-events-overlay___c3YOp_1-1-0","fixed-height":"magritte-fixed-height___BLw9W_1-1-0","fixedHeight":"magritte-fixed-height___BLw9W_1-1-0","column-wrapper":"magritte-column-wrapper___yRwai_1-1-0","columnWrapper":"magritte-column-wrapper___yRwai_1-1-0","column-position-wrapper":"magritte-column-position-wrapper___wQTIu_1-1-0","columnPositionWrapper":"magritte-column-position-wrapper___wQTIu_1-1-0","wide-column-wrapper":"magritte-wide-column-wrapper___nvecx_1-1-0","wideColumnWrapper":"magritte-wide-column-wrapper___nvecx_1-1-0","full-width-column-wrapper":"magritte-full-width-column-wrapper___oxhh1_1-1-0","fullWidthColumnWrapper":"magritte-full-width-column-wrapper___oxhh1_1-1-0","column":"magritte-column___IMYca_1-1-0","item":"magritte-item___4RQVs_1-1-0","align-left":"magritte-align-left___PXJt0_1-1-0","alignLeft":"magritte-align-left___PXJt0_1-1-0","align-right":"magritte-align-right___0yc2S_1-1-0","alignRight":"magritte-align-right___0yc2S_1-1-0","disabled":"magritte-disabled___d3ukm_1-1-0","selected":"magritte-selected___Nar3H_1-1-0"};
|
|
10
10
|
|
|
11
11
|
const FIXED_HEIGHT_ITEMS = 7;
|
|
12
12
|
const ITEM_HEIGHT = 48;
|
package/index.css
CHANGED
|
@@ -18,49 +18,49 @@
|
|
|
18
18
|
--magritte-color-text-state-primary-disabled-v22-0-0:#ababab7a;
|
|
19
19
|
--magritte-color-component-time-picker-background-selection-v22-0-0:#262626;
|
|
20
20
|
}
|
|
21
|
-
.magritte-picker-wheel___VaPvG_1-0
|
|
21
|
+
.magritte-picker-wheel___VaPvG_1-1-0{
|
|
22
22
|
position:relative;
|
|
23
23
|
height:100%;
|
|
24
24
|
}
|
|
25
|
-
.magritte-selected-item-background___UnBPm_1-0
|
|
25
|
+
.magritte-selected-item-background___UnBPm_1-1-0{
|
|
26
26
|
position:absolute;
|
|
27
27
|
inset:calc(50% - 48px / 2) 0;
|
|
28
28
|
background-color:var(--magritte-color-component-time-picker-background-selection-v22-0-0);
|
|
29
29
|
}
|
|
30
|
-
.magritte-columns___I7bCB_1-0
|
|
30
|
+
.magritte-columns___I7bCB_1-1-0{
|
|
31
31
|
position:relative;
|
|
32
32
|
height:100%;
|
|
33
33
|
display:flex;
|
|
34
34
|
align-items:stretch;
|
|
35
35
|
justify-content:center;
|
|
36
36
|
}
|
|
37
|
-
.magritte-touch-events-overlay___c3YOp_1-0
|
|
37
|
+
.magritte-touch-events-overlay___c3YOp_1-1-0{
|
|
38
38
|
position:absolute;
|
|
39
39
|
inset:0;
|
|
40
40
|
}
|
|
41
|
-
.magritte-fixed-height___BLw9W_1-0
|
|
41
|
+
.magritte-fixed-height___BLw9W_1-1-0{
|
|
42
42
|
height:336px;
|
|
43
43
|
}
|
|
44
|
-
.magritte-column-wrapper___yRwai_1-0
|
|
44
|
+
.magritte-column-wrapper___yRwai_1-1-0{
|
|
45
45
|
flex:0 0 64px;
|
|
46
46
|
position:relative;
|
|
47
47
|
}
|
|
48
|
-
.magritte-column-position-wrapper___wQTIu_1-0
|
|
48
|
+
.magritte-column-position-wrapper___wQTIu_1-1-0{
|
|
49
49
|
position:relative;
|
|
50
50
|
top:50%;
|
|
51
51
|
margin-top:-24px;
|
|
52
52
|
}
|
|
53
|
-
.magritte-wide-column-wrapper___nvecx_1-0
|
|
53
|
+
.magritte-wide-column-wrapper___nvecx_1-1-0{
|
|
54
54
|
flex:0 0 105px;
|
|
55
55
|
}
|
|
56
|
-
.magritte-full-width-column-wrapper___oxhh1_1-0
|
|
56
|
+
.magritte-full-width-column-wrapper___oxhh1_1-1-0{
|
|
57
57
|
flex:0 0 100%;
|
|
58
58
|
}
|
|
59
|
-
.magritte-column___IMYca_1-0
|
|
59
|
+
.magritte-column___IMYca_1-1-0{
|
|
60
60
|
will-change:transform;
|
|
61
61
|
transform:translate3d(0, 0, 0);
|
|
62
62
|
}
|
|
63
|
-
.magritte-item___4RQVs_1-0
|
|
63
|
+
.magritte-item___4RQVs_1-1-0{
|
|
64
64
|
font-family:var(--magritte-typography-label-1-regular-font-family-v22-0-0);
|
|
65
65
|
font-weight:var(--magritte-typography-label-1-regular-font-weight-v22-0-0);
|
|
66
66
|
line-height:var(--magritte-typography-label-1-regular-line-height-v22-0-0);
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
text-align:center;
|
|
77
77
|
transform-origin:center center;
|
|
78
78
|
}
|
|
79
|
-
.magritte-item___4RQVs_1-0
|
|
79
|
+
.magritte-item___4RQVs_1-1-0.magritte-align-left___PXJt0_1-1-0{
|
|
80
80
|
text-align:left;
|
|
81
81
|
transform-origin:left center;
|
|
82
82
|
}
|
|
83
|
-
.magritte-item___4RQVs_1-0
|
|
83
|
+
.magritte-item___4RQVs_1-1-0.magritte-align-right___0yc2S_1-1-0{
|
|
84
84
|
text-align:right;
|
|
85
85
|
transform-origin:right center;
|
|
86
86
|
}
|
|
87
|
-
.magritte-item___4RQVs_1-0
|
|
87
|
+
.magritte-item___4RQVs_1-1-0.magritte-disabled___d3ukm_1-1-0{
|
|
88
88
|
color:var(--magritte-color-text-state-primary-disabled-v22-0-0);
|
|
89
89
|
}
|
|
90
|
-
.magritte-item___4RQVs_1-0
|
|
90
|
+
.magritte-item___4RQVs_1-1-0.magritte-selected___Nar3H_1-1-0{
|
|
91
91
|
font-weight:500;
|
|
92
92
|
height:22px;
|
|
93
93
|
line-height:22px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-picker-wheel",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@hh.ru/magritte-design-tokens": "22.0.0",
|
|
23
23
|
"@hh.ru/magritte-internal-custom-scroll": "1.4.3",
|
|
24
24
|
"@hh.ru/magritte-types": "5.0.4",
|
|
25
|
-
"@hh.ru/magritte-ui-bottom-sheet": "7.
|
|
25
|
+
"@hh.ru/magritte-ui-bottom-sheet": "7.3.0",
|
|
26
26
|
"@hh.ru/magritte-ui-breakpoint": "5.0.3",
|
|
27
27
|
"@hh.ru/magritte-ui-theme-provider": "1.1.51",
|
|
28
28
|
"@hh.ru/magritte-ui-typography": "3.0.47"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ea8b5bf46a20f696be9947da3a240357870d8dbb"
|
|
38
38
|
}
|