@salutejs/plasma-homeds 0.372.0-dev.1 → 0.373.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/styled-components/cjs/components/Wheel/Wheel.config.js +156 -0
- package/dist/styled-components/cjs/components/Wheel/Wheel.js +14 -0
- package/dist/styled-components/cjs/components/Wheel/index.js +23 -0
- package/dist/styled-components/cjs/index.js +1 -0
- package/dist/styled-components/es/components/Wheel/Wheel.config.js +146 -0
- package/dist/styled-components/es/components/Wheel/Wheel.js +4 -0
- package/dist/styled-components/es/components/Wheel/index.js +2 -0
- package/dist/styled-components/es/index.js +1 -0
- package/package.json +9 -9
- package/types/components/Wheel/Wheel.config.d.ts +19 -0
- package/types/components/Wheel/Wheel.d.ts +36 -0
- package/types/components/Wheel/index.d.ts +4 -0
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "config", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return config;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _styledcomponents = require("styled-components");
|
|
12
|
+
const _styledcomponents1 = require("@salutejs/plasma-new-hope/styled-components");
|
|
13
|
+
const _plasma_homeds = require("@salutejs/plasma-themes/tokens/plasma_homeds");
|
|
14
|
+
const commonView = (0, _styledcomponents.css)([
|
|
15
|
+
``,
|
|
16
|
+
`:200ms;`,
|
|
17
|
+
`:cubic-bezier(0.2,0,0,1);`,
|
|
18
|
+
`:`,
|
|
19
|
+
`;`,
|
|
20
|
+
`:`,
|
|
21
|
+
`;`,
|
|
22
|
+
`:`,
|
|
23
|
+
`;`,
|
|
24
|
+
`:`,
|
|
25
|
+
`;`
|
|
26
|
+
], _styledcomponents1.wheelTokens.animationDuration, _styledcomponents1.wheelTokens.animationEasing, _styledcomponents1.wheelTokens.color, _plasma_homeds.textPrimary, _styledcomponents1.wheelTokens.controlColor, _plasma_homeds.textSecondary, _styledcomponents1.wheelTokens.dividerColor, _plasma_homeds.surfaceTransparentTertiary, _styledcomponents1.wheelTokens.focusColor, _plasma_homeds.textAccent);
|
|
27
|
+
const config = {
|
|
28
|
+
defaults: {
|
|
29
|
+
size: 'h1',
|
|
30
|
+
view: 'default'
|
|
31
|
+
},
|
|
32
|
+
variations: {
|
|
33
|
+
view: {
|
|
34
|
+
default: (0, _styledcomponents.css)([
|
|
35
|
+
``,
|
|
36
|
+
` `,
|
|
37
|
+
`:`,
|
|
38
|
+
`;`,
|
|
39
|
+
`:transparent;`,
|
|
40
|
+
`:0;`,
|
|
41
|
+
`:0.4;`,
|
|
42
|
+
`:0.16;`
|
|
43
|
+
], commonView, _styledcomponents1.wheelTokens.textAfterColor, _plasma_homeds.textSecondary, _styledcomponents1.wheelTokens.selectionBackgroundColor, _styledcomponents1.wheelTokens.selectionBorderRadius, _styledcomponents1.wheelTokens.secondaryOpacity, _styledcomponents1.wheelTokens.tertiaryOpacity),
|
|
44
|
+
highlighted: (0, _styledcomponents.css)([
|
|
45
|
+
``,
|
|
46
|
+
` `,
|
|
47
|
+
`:`,
|
|
48
|
+
`;`,
|
|
49
|
+
`:`,
|
|
50
|
+
`;`,
|
|
51
|
+
`:1.25rem;`,
|
|
52
|
+
`:0.5;`,
|
|
53
|
+
`:0.2;`
|
|
54
|
+
], commonView, _styledcomponents1.wheelTokens.textAfterColor, _plasma_homeds.textPrimary, _styledcomponents1.wheelTokens.selectionBackgroundColor, _plasma_homeds.surfaceTransparentPrimary, _styledcomponents1.wheelTokens.selectionBorderRadius, _styledcomponents1.wheelTokens.secondaryOpacity, _styledcomponents1.wheelTokens.tertiaryOpacity)
|
|
55
|
+
},
|
|
56
|
+
size: {
|
|
57
|
+
h1: (0, _styledcomponents.css)([
|
|
58
|
+
``,
|
|
59
|
+
`:2.5rem;`,
|
|
60
|
+
`:1.0625rem;`,
|
|
61
|
+
`:1.21875rem;`,
|
|
62
|
+
`:1.25rem;`,
|
|
63
|
+
`:0.5rem;`,
|
|
64
|
+
`:0.125rem;`,
|
|
65
|
+
`:2.25rem;`,
|
|
66
|
+
`:0.5rem;`,
|
|
67
|
+
`:0.375rem;`,
|
|
68
|
+
`:0.625rem;`,
|
|
69
|
+
`:1.3125rem;`,
|
|
70
|
+
`:0.7;`,
|
|
71
|
+
`:0.35;`,
|
|
72
|
+
`:`,
|
|
73
|
+
`;`,
|
|
74
|
+
`:`,
|
|
75
|
+
`;`,
|
|
76
|
+
`:`,
|
|
77
|
+
`;`,
|
|
78
|
+
`:`,
|
|
79
|
+
`;`,
|
|
80
|
+
`:`,
|
|
81
|
+
`;`,
|
|
82
|
+
`:`,
|
|
83
|
+
`;`,
|
|
84
|
+
`:`,
|
|
85
|
+
`;`,
|
|
86
|
+
`:`,
|
|
87
|
+
`;`,
|
|
88
|
+
`:`,
|
|
89
|
+
`;`,
|
|
90
|
+
`:`,
|
|
91
|
+
`;`,
|
|
92
|
+
`:`,
|
|
93
|
+
`;`,
|
|
94
|
+
`:`,
|
|
95
|
+
`;`
|
|
96
|
+
], _styledcomponents1.wheelTokens.columnGap, _styledcomponents1.wheelTokens.dotColumnGap, _styledcomponents1.wheelTokens.dividerColumnGap, _styledcomponents1.wheelTokens.itemGap, _styledcomponents1.wheelTokens.descriptionGap, _styledcomponents1.wheelTokens.textAfterGap, _styledcomponents1.wheelTokens.controlSize, _styledcomponents1.wheelTokens.controlGap, _styledcomponents1.wheelTokens.dotSize, _styledcomponents1.wheelTokens.dotGap, _styledcomponents1.wheelTokens.dotOffset, _styledcomponents1.wheelTokens.secondaryScale, _styledcomponents1.wheelTokens.tertiaryScale, _styledcomponents1.wheelTokens.fontFamily, _plasma_homeds.h1.fontFamily, _styledcomponents1.wheelTokens.fontSize, _plasma_homeds.h1.fontSize, _styledcomponents1.wheelTokens.fontStyle, _plasma_homeds.h1.fontStyle, _styledcomponents1.wheelTokens.fontWeight, _plasma_homeds.h1Bold.fontWeight, _styledcomponents1.wheelTokens.letterSpacing, _plasma_homeds.h1.letterSpacing, _styledcomponents1.wheelTokens.lineHeight, _plasma_homeds.h1.lineHeight, _styledcomponents1.wheelTokens.descriptionFontFamily, _plasma_homeds.bodyS.fontFamily, _styledcomponents1.wheelTokens.descriptionFontSize, _plasma_homeds.bodyS.fontSize, _styledcomponents1.wheelTokens.descriptionFontStyle, _plasma_homeds.bodyS.fontStyle, _styledcomponents1.wheelTokens.descriptionFontWeight, _plasma_homeds.bodySBold.fontWeight, _styledcomponents1.wheelTokens.descriptionLetterSpacing, _plasma_homeds.bodyS.letterSpacing, _styledcomponents1.wheelTokens.descriptionLineHeight, _plasma_homeds.bodyS.lineHeight),
|
|
97
|
+
h4: (0, _styledcomponents.css)([
|
|
98
|
+
``,
|
|
99
|
+
`:grid;`,
|
|
100
|
+
`:0.5rem;`,
|
|
101
|
+
`:0.5rem;`,
|
|
102
|
+
`:0.71875rem;`,
|
|
103
|
+
`:0.25rem;`,
|
|
104
|
+
`:1rem;`,
|
|
105
|
+
`:calc( (3.625rem - var(`,
|
|
106
|
+
`) * var(`,
|
|
107
|
+
`)) / 2 );`,
|
|
108
|
+
`:calc( (1.625rem - var(`,
|
|
109
|
+
`) * var(`,
|
|
110
|
+
`)) / 2 );`,
|
|
111
|
+
`:3.5rem;`,
|
|
112
|
+
`:0.375rem;`,
|
|
113
|
+
`:0.125rem;`,
|
|
114
|
+
`:1.5rem;`,
|
|
115
|
+
`:0.25rem;`,
|
|
116
|
+
`:0.125rem;`,
|
|
117
|
+
`:0.375rem;`,
|
|
118
|
+
`:0.4375rem;`,
|
|
119
|
+
`:1rem;`,
|
|
120
|
+
`:1.5625rem;`,
|
|
121
|
+
`:0.9;`,
|
|
122
|
+
`:0.8;`,
|
|
123
|
+
`:`,
|
|
124
|
+
`;`,
|
|
125
|
+
`:`,
|
|
126
|
+
`;`,
|
|
127
|
+
`:`,
|
|
128
|
+
`;`,
|
|
129
|
+
`:`,
|
|
130
|
+
`;`,
|
|
131
|
+
`:`,
|
|
132
|
+
`;`,
|
|
133
|
+
`:`,
|
|
134
|
+
`;`,
|
|
135
|
+
`:`,
|
|
136
|
+
`;`,
|
|
137
|
+
`:`,
|
|
138
|
+
`;`,
|
|
139
|
+
`:`,
|
|
140
|
+
`;`,
|
|
141
|
+
`:`,
|
|
142
|
+
`;`,
|
|
143
|
+
`:`,
|
|
144
|
+
`;`,
|
|
145
|
+
`:`,
|
|
146
|
+
`;`
|
|
147
|
+
], _styledcomponents1.wheelTokens.itemContentDisplay, _styledcomponents1.wheelTokens.columnGap, _styledcomponents1.wheelTokens.dotColumnGap, _styledcomponents1.wheelTokens.dividerColumnGap, _styledcomponents1.wheelTokens.itemGap, _styledcomponents1.wheelTokens.itemVerticalPadding, _styledcomponents1.wheelTokens.secondaryItemVerticalPadding, _styledcomponents1.wheelTokens.lineHeight, _styledcomponents1.wheelTokens.secondaryScale, _styledcomponents1.wheelTokens.tertiaryItemVerticalPadding, _styledcomponents1.wheelTokens.lineHeight, _styledcomponents1.wheelTokens.tertiaryScale, _styledcomponents1.wheelTokens.selectionHeight, _styledcomponents1.wheelTokens.descriptionGap, _styledcomponents1.wheelTokens.textAfterGap, _styledcomponents1.wheelTokens.controlSize, _styledcomponents1.wheelTokens.controlGap, _styledcomponents1.wheelTokens.dotSize, _styledcomponents1.wheelTokens.dotGap, _styledcomponents1.wheelTokens.dotSeparatorWidth, _styledcomponents1.wheelTokens.separatorInlinePadding, _styledcomponents1.wheelTokens.dotOffset, _styledcomponents1.wheelTokens.secondaryScale, _styledcomponents1.wheelTokens.tertiaryScale, _styledcomponents1.wheelTokens.fontFamily, _plasma_homeds.h4.fontFamily, _styledcomponents1.wheelTokens.fontSize, _plasma_homeds.h4.fontSize, _styledcomponents1.wheelTokens.fontStyle, _plasma_homeds.h4.fontStyle, _styledcomponents1.wheelTokens.fontWeight, _plasma_homeds.h4.fontWeight, _styledcomponents1.wheelTokens.letterSpacing, _plasma_homeds.h4.letterSpacing, _styledcomponents1.wheelTokens.lineHeight, _plasma_homeds.h4.lineHeight, _styledcomponents1.wheelTokens.descriptionFontFamily, _plasma_homeds.bodyS.fontFamily, _styledcomponents1.wheelTokens.descriptionFontSize, _plasma_homeds.bodyS.fontSize, _styledcomponents1.wheelTokens.descriptionFontStyle, _plasma_homeds.bodyS.fontStyle, _styledcomponents1.wheelTokens.descriptionFontWeight, _plasma_homeds.bodyS.fontWeight, _styledcomponents1.wheelTokens.descriptionLetterSpacing, _plasma_homeds.bodyS.letterSpacing, _styledcomponents1.wheelTokens.descriptionLineHeight, _plasma_homeds.bodyS.lineHeight)
|
|
148
|
+
},
|
|
149
|
+
disabled: {
|
|
150
|
+
true: (0, _styledcomponents.css)([
|
|
151
|
+
``,
|
|
152
|
+
`:0.4;`
|
|
153
|
+
], _styledcomponents1.wheelTokens.disabledOpacity)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Wheel", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Wheel;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
|
|
12
|
+
const _Wheelconfig = require("./Wheel.config");
|
|
13
|
+
const WheelComponent = (0, _styledcomponents.component)((0, _styledcomponents.mergeConfig)(_styledcomponents.wheelConfig, _Wheelconfig.config));
|
|
14
|
+
const Wheel = WheelComponent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get Wheel () {
|
|
13
|
+
return _Wheel.Wheel;
|
|
14
|
+
},
|
|
15
|
+
get wheelClasses () {
|
|
16
|
+
return _styledcomponents.wheelClasses;
|
|
17
|
+
},
|
|
18
|
+
get wheelTokens () {
|
|
19
|
+
return _styledcomponents.wheelTokens;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _Wheel = require("./Wheel");
|
|
23
|
+
const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
|
|
@@ -81,6 +81,7 @@ _export_star(require("./components/Tour"), exports);
|
|
|
81
81
|
_export_star(require("./components/EmbedIconButton"), exports);
|
|
82
82
|
_export_star(require("./components/InformationWrapper"), exports);
|
|
83
83
|
_export_star(require("./components/TimePicker"), exports);
|
|
84
|
+
_export_star(require("./components/Wheel"), exports);
|
|
84
85
|
_export_star(require("./components/ProgressBarCircular"), exports);
|
|
85
86
|
_export_star(require("./components/DateTimePicker"), exports);
|
|
86
87
|
_export_star(require("./components/Loader"), exports);
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { css } from 'styled-components';
|
|
2
|
+
import { wheelTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
|
+
import { bodyS, bodySBold, h1, h1Bold, h4, surfaceTransparentPrimary, surfaceTransparentTertiary, textAccent, textPrimary, textSecondary } from '@salutejs/plasma-themes/tokens/plasma_homeds';
|
|
4
|
+
const commonView = css([
|
|
5
|
+
``,
|
|
6
|
+
`:200ms;`,
|
|
7
|
+
`:cubic-bezier(0.2,0,0,1);`,
|
|
8
|
+
`:`,
|
|
9
|
+
`;`,
|
|
10
|
+
`:`,
|
|
11
|
+
`;`,
|
|
12
|
+
`:`,
|
|
13
|
+
`;`,
|
|
14
|
+
`:`,
|
|
15
|
+
`;`
|
|
16
|
+
], tokens.animationDuration, tokens.animationEasing, tokens.color, textPrimary, tokens.controlColor, textSecondary, tokens.dividerColor, surfaceTransparentTertiary, tokens.focusColor, textAccent);
|
|
17
|
+
export const config = {
|
|
18
|
+
defaults: {
|
|
19
|
+
size: 'h1',
|
|
20
|
+
view: 'default'
|
|
21
|
+
},
|
|
22
|
+
variations: {
|
|
23
|
+
view: {
|
|
24
|
+
default: css([
|
|
25
|
+
``,
|
|
26
|
+
` `,
|
|
27
|
+
`:`,
|
|
28
|
+
`;`,
|
|
29
|
+
`:transparent;`,
|
|
30
|
+
`:0;`,
|
|
31
|
+
`:0.4;`,
|
|
32
|
+
`:0.16;`
|
|
33
|
+
], commonView, tokens.textAfterColor, textSecondary, tokens.selectionBackgroundColor, tokens.selectionBorderRadius, tokens.secondaryOpacity, tokens.tertiaryOpacity),
|
|
34
|
+
highlighted: css([
|
|
35
|
+
``,
|
|
36
|
+
` `,
|
|
37
|
+
`:`,
|
|
38
|
+
`;`,
|
|
39
|
+
`:`,
|
|
40
|
+
`;`,
|
|
41
|
+
`:1.25rem;`,
|
|
42
|
+
`:0.5;`,
|
|
43
|
+
`:0.2;`
|
|
44
|
+
], commonView, tokens.textAfterColor, textPrimary, tokens.selectionBackgroundColor, surfaceTransparentPrimary, tokens.selectionBorderRadius, tokens.secondaryOpacity, tokens.tertiaryOpacity)
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
h1: css([
|
|
48
|
+
``,
|
|
49
|
+
`:2.5rem;`,
|
|
50
|
+
`:1.0625rem;`,
|
|
51
|
+
`:1.21875rem;`,
|
|
52
|
+
`:1.25rem;`,
|
|
53
|
+
`:0.5rem;`,
|
|
54
|
+
`:0.125rem;`,
|
|
55
|
+
`:2.25rem;`,
|
|
56
|
+
`:0.5rem;`,
|
|
57
|
+
`:0.375rem;`,
|
|
58
|
+
`:0.625rem;`,
|
|
59
|
+
`:1.3125rem;`,
|
|
60
|
+
`:0.7;`,
|
|
61
|
+
`:0.35;`,
|
|
62
|
+
`:`,
|
|
63
|
+
`;`,
|
|
64
|
+
`:`,
|
|
65
|
+
`;`,
|
|
66
|
+
`:`,
|
|
67
|
+
`;`,
|
|
68
|
+
`:`,
|
|
69
|
+
`;`,
|
|
70
|
+
`:`,
|
|
71
|
+
`;`,
|
|
72
|
+
`:`,
|
|
73
|
+
`;`,
|
|
74
|
+
`:`,
|
|
75
|
+
`;`,
|
|
76
|
+
`:`,
|
|
77
|
+
`;`,
|
|
78
|
+
`:`,
|
|
79
|
+
`;`,
|
|
80
|
+
`:`,
|
|
81
|
+
`;`,
|
|
82
|
+
`:`,
|
|
83
|
+
`;`,
|
|
84
|
+
`:`,
|
|
85
|
+
`;`
|
|
86
|
+
], tokens.columnGap, tokens.dotColumnGap, tokens.dividerColumnGap, tokens.itemGap, tokens.descriptionGap, tokens.textAfterGap, tokens.controlSize, tokens.controlGap, tokens.dotSize, tokens.dotGap, tokens.dotOffset, tokens.secondaryScale, tokens.tertiaryScale, tokens.fontFamily, h1.fontFamily, tokens.fontSize, h1.fontSize, tokens.fontStyle, h1.fontStyle, tokens.fontWeight, h1Bold.fontWeight, tokens.letterSpacing, h1.letterSpacing, tokens.lineHeight, h1.lineHeight, tokens.descriptionFontFamily, bodyS.fontFamily, tokens.descriptionFontSize, bodyS.fontSize, tokens.descriptionFontStyle, bodyS.fontStyle, tokens.descriptionFontWeight, bodySBold.fontWeight, tokens.descriptionLetterSpacing, bodyS.letterSpacing, tokens.descriptionLineHeight, bodyS.lineHeight),
|
|
87
|
+
h4: css([
|
|
88
|
+
``,
|
|
89
|
+
`:grid;`,
|
|
90
|
+
`:0.5rem;`,
|
|
91
|
+
`:0.5rem;`,
|
|
92
|
+
`:0.71875rem;`,
|
|
93
|
+
`:0.25rem;`,
|
|
94
|
+
`:1rem;`,
|
|
95
|
+
`:calc( (3.625rem - var(`,
|
|
96
|
+
`) * var(`,
|
|
97
|
+
`)) / 2 );`,
|
|
98
|
+
`:calc( (1.625rem - var(`,
|
|
99
|
+
`) * var(`,
|
|
100
|
+
`)) / 2 );`,
|
|
101
|
+
`:3.5rem;`,
|
|
102
|
+
`:0.375rem;`,
|
|
103
|
+
`:0.125rem;`,
|
|
104
|
+
`:1.5rem;`,
|
|
105
|
+
`:0.25rem;`,
|
|
106
|
+
`:0.125rem;`,
|
|
107
|
+
`:0.375rem;`,
|
|
108
|
+
`:0.4375rem;`,
|
|
109
|
+
`:1rem;`,
|
|
110
|
+
`:1.5625rem;`,
|
|
111
|
+
`:0.9;`,
|
|
112
|
+
`:0.8;`,
|
|
113
|
+
`:`,
|
|
114
|
+
`;`,
|
|
115
|
+
`:`,
|
|
116
|
+
`;`,
|
|
117
|
+
`:`,
|
|
118
|
+
`;`,
|
|
119
|
+
`:`,
|
|
120
|
+
`;`,
|
|
121
|
+
`:`,
|
|
122
|
+
`;`,
|
|
123
|
+
`:`,
|
|
124
|
+
`;`,
|
|
125
|
+
`:`,
|
|
126
|
+
`;`,
|
|
127
|
+
`:`,
|
|
128
|
+
`;`,
|
|
129
|
+
`:`,
|
|
130
|
+
`;`,
|
|
131
|
+
`:`,
|
|
132
|
+
`;`,
|
|
133
|
+
`:`,
|
|
134
|
+
`;`,
|
|
135
|
+
`:`,
|
|
136
|
+
`;`
|
|
137
|
+
], tokens.itemContentDisplay, tokens.columnGap, tokens.dotColumnGap, tokens.dividerColumnGap, tokens.itemGap, tokens.itemVerticalPadding, tokens.secondaryItemVerticalPadding, tokens.lineHeight, tokens.secondaryScale, tokens.tertiaryItemVerticalPadding, tokens.lineHeight, tokens.tertiaryScale, tokens.selectionHeight, tokens.descriptionGap, tokens.textAfterGap, tokens.controlSize, tokens.controlGap, tokens.dotSize, tokens.dotGap, tokens.dotSeparatorWidth, tokens.separatorInlinePadding, tokens.dotOffset, tokens.secondaryScale, tokens.tertiaryScale, tokens.fontFamily, h4.fontFamily, tokens.fontSize, h4.fontSize, tokens.fontStyle, h4.fontStyle, tokens.fontWeight, h4.fontWeight, tokens.letterSpacing, h4.letterSpacing, tokens.lineHeight, h4.lineHeight, tokens.descriptionFontFamily, bodyS.fontFamily, tokens.descriptionFontSize, bodyS.fontSize, tokens.descriptionFontStyle, bodyS.fontStyle, tokens.descriptionFontWeight, bodyS.fontWeight, tokens.descriptionLetterSpacing, bodyS.letterSpacing, tokens.descriptionLineHeight, bodyS.lineHeight)
|
|
138
|
+
},
|
|
139
|
+
disabled: {
|
|
140
|
+
true: css([
|
|
141
|
+
``,
|
|
142
|
+
`:0.4;`
|
|
143
|
+
], tokens.disabledOpacity)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
@@ -77,6 +77,7 @@ export * from './components/Tour';
|
|
|
77
77
|
export * from './components/EmbedIconButton';
|
|
78
78
|
export * from './components/InformationWrapper';
|
|
79
79
|
export * from './components/TimePicker';
|
|
80
|
+
export * from './components/Wheel';
|
|
80
81
|
export * from './components/ProgressBarCircular';
|
|
81
82
|
export * from './components/DateTimePicker';
|
|
82
83
|
export * from './components/Loader';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/plasma-homeds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.373.0",
|
|
4
4
|
"description": "Salute Design System / React UI kit for PLASMA-HOMEDS web applications",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"styled-components": "^5.3.11"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@salutejs/plasma-new-hope": "0.
|
|
39
|
-
"@salutejs/plasma-themes": "0.70.0
|
|
38
|
+
"@salutejs/plasma-new-hope": "0.390.0",
|
|
39
|
+
"@salutejs/plasma-themes": "0.70.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/cli": "7.24.1",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@rollup/plugin-babel": "^6.0.4",
|
|
55
55
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
56
56
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
57
|
-
"@salutejs/plasma-colors": "0.28.0
|
|
58
|
-
"@salutejs/plasma-core": "1.250.0
|
|
59
|
-
"@salutejs/plasma-cy-utils": "0.180.0
|
|
60
|
-
"@salutejs/plasma-icons": "1.
|
|
61
|
-
"@salutejs/plasma-sb-utils": "0.
|
|
57
|
+
"@salutejs/plasma-colors": "0.28.0",
|
|
58
|
+
"@salutejs/plasma-core": "1.250.0",
|
|
59
|
+
"@salutejs/plasma-cy-utils": "0.180.0",
|
|
60
|
+
"@salutejs/plasma-icons": "1.258.0",
|
|
61
|
+
"@salutejs/plasma-sb-utils": "0.253.0",
|
|
62
62
|
"@types/node": "16.7.13",
|
|
63
63
|
"@types/react": "18.0.28",
|
|
64
64
|
"@types/react-dom": "18.0.11",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
},
|
|
106
106
|
"dompurify": "3.4.17"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8ea18ebafab7eba60337c39ed7552f7c94b8a774"
|
|
109
109
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const config: {
|
|
2
|
+
defaults: {
|
|
3
|
+
size: string;
|
|
4
|
+
view: string;
|
|
5
|
+
};
|
|
6
|
+
variations: {
|
|
7
|
+
view: {
|
|
8
|
+
default: import("styled-components").FlattenSimpleInterpolation;
|
|
9
|
+
highlighted: import("styled-components").FlattenSimpleInterpolation;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
h1: import("styled-components").FlattenSimpleInterpolation;
|
|
13
|
+
h4: import("styled-components").FlattenSimpleInterpolation;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
true: import("styled-components").FlattenSimpleInterpolation;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement, Ref } from 'react';
|
|
2
|
+
import type { WheelProps as CoreWheelProps, WheelValue } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
|
+
import { config } from './Wheel.config';
|
|
4
|
+
declare const WheelComponent: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
5
|
+
view: {
|
|
6
|
+
default: import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
+
highlighted: import("styled-components").FlattenSimpleInterpolation;
|
|
8
|
+
};
|
|
9
|
+
size: {
|
|
10
|
+
h1: import("styled-components").FlattenSimpleInterpolation;
|
|
11
|
+
h4: import("styled-components").FlattenSimpleInterpolation;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
true: import("styled-components").FlattenSimpleInterpolation;
|
|
15
|
+
};
|
|
16
|
+
}> & Omit<import("react").HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children"> & {
|
|
17
|
+
columns: import("@salutejs/plasma-new-hope/styled-components").WheelColumns<import("@salutejs/plasma-new-hope/types/components/Wheel/Wheel.types.js").WheelValue<Record<string, import("@salutejs/plasma-new-hope/styled-components").WheelItemValue>>>;
|
|
18
|
+
width?: React.CSSProperties["width"];
|
|
19
|
+
value: import("@salutejs/plasma-new-hope/types/components/Wheel/Wheel.types.js").WheelValue<Record<string, import("@salutejs/plasma-new-hope/styled-components").WheelItemValue>>;
|
|
20
|
+
onChange?: ((value: import("@salutejs/plasma-new-hope/types/components/Wheel/Wheel.types.js").WheelValue<Record<string, import("@salutejs/plasma-new-hope/styled-components").WheelItemValue>>, column: string) => void) | undefined;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
hasControls?: boolean;
|
|
23
|
+
visibleItemsCount?: 3 | 5;
|
|
24
|
+
animated?: boolean;
|
|
25
|
+
textAfterMode?: "dynamic" | "static";
|
|
26
|
+
align?: import("@salutejs/plasma-new-hope/styled-components").WheelAlignment;
|
|
27
|
+
separator?: import("@salutejs/plasma-new-hope/styled-components").WheelSeparator;
|
|
28
|
+
size?: string;
|
|
29
|
+
view?: string;
|
|
30
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
type Variations = keyof typeof config.variations;
|
|
32
|
+
export type WheelProps<Value extends WheelValue<Value> = WheelValue> = Omit<CoreWheelProps<Value>, Variations> & Pick<ComponentProps<typeof WheelComponent>, Variations>;
|
|
33
|
+
export declare const Wheel: <Value extends WheelValue<Value>>(props: WheelProps<Value> & {
|
|
34
|
+
ref?: Ref<HTMLDivElement>;
|
|
35
|
+
}) => ReactElement | null;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Wheel } from './Wheel';
|
|
2
|
+
export type { WheelProps } from './Wheel';
|
|
3
|
+
export { wheelTokens, wheelClasses } from '@salutejs/plasma-new-hope/styled-components';
|
|
4
|
+
export type { WheelAlignment, WheelColumn, WheelColumns, WheelItem, WheelItemState, WheelItemValue, WheelSeparator, WheelSeparatorPreset, WheelValue, } from '@salutejs/plasma-new-hope/styled-components';
|
package/types/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export * from './components/Tour';
|
|
|
77
77
|
export * from './components/EmbedIconButton';
|
|
78
78
|
export * from './components/InformationWrapper';
|
|
79
79
|
export * from './components/TimePicker';
|
|
80
|
+
export * from './components/Wheel';
|
|
80
81
|
export * from './components/ProgressBarCircular';
|
|
81
82
|
export * from './components/DateTimePicker';
|
|
82
83
|
export * from './components/Loader';
|