@itcase/ui 1.1.0 → 1.1.2
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/Accordion.js +1 -0
- package/dist/components/Avatar.js +1 -0
- package/dist/components/Breadcrumbs.js +1 -0
- package/dist/components/Button.js +9 -3
- package/dist/components/Cell.js +30 -13
- package/dist/components/Choice.js +1 -0
- package/dist/components/ContextMenu.js +1 -0
- package/dist/components/CookiesWarning.js +1 -0
- package/dist/components/DatePicker.js +3 -1
- package/dist/components/Empty.js +1 -0
- package/dist/components/FormField.js +26 -25
- package/dist/components/Grid.js +2 -2
- package/dist/components/Icon.js +126 -16
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -0
- package/dist/components/Label.js +3 -2
- package/dist/components/LanguageSelector.js +1 -0
- package/dist/components/Modal.js +27 -27
- package/dist/components/{Fader.js → Overlay.js} +43 -43
- package/dist/components/{RadioButton.js → Radio.js} +24 -24
- package/dist/components/ScrollOnDrag.js +290 -0
- package/dist/components/Search.js +1 -0
- package/dist/components/Select.js +1 -0
- package/dist/components/SiteMenu.js +1 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Tooltip.js +38 -20
- package/dist/constants/componentProps/borderWidth.js +3 -1
- package/dist/constants/componentProps/emojiSize.js +3 -1
- package/dist/constants/componentProps/iconFillSize.js +3 -1
- package/dist/constants/componentProps/iconSize.js +3 -1
- package/dist/constants/componentProps/sizePX.js +3 -1
- package/dist/css/components/DatePicker/DatePicker.css +12 -5
- package/dist/css/components/Group/Group.css +0 -8
- package/dist/css/components/Label/Label.css +0 -19
- package/dist/css/components/Modal/Modal.css +3 -3
- package/dist/css/components/{Fader/Fader.css → Overlay/Overlay.css} +10 -10
- package/dist/css/components/{RadioButton/RadioButton.css → Radio/Radio.css} +11 -10
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +6 -0
- package/dist/css/components/Title/Title.css +9 -0
- package/dist/stories/ModalConfirm.stories.js +1 -1
- package/dist/stories/ModalDefault.stories.js +1 -1
- package/dist/stories/{RadioButton.stories.js → Radio.stories.js} +5 -5
- package/package.json +2 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var PropTypes = require('prop-types');
|
|
5
|
+
var clsx = require('clsx');
|
|
6
|
+
var borderColor = require('../constants/componentProps/borderColor.js');
|
|
7
|
+
var borderType = require('../constants/componentProps/borderType.js');
|
|
8
|
+
var borderWidth = require('../constants/componentProps/borderWidth.js');
|
|
9
|
+
var fillHover = require('../constants/componentProps/fillHover.js');
|
|
10
|
+
var fill = require('../constants/componentProps/fill.js');
|
|
11
|
+
var height = require('../constants/componentProps/height.js');
|
|
12
|
+
var width = require('../constants/componentProps/width.js');
|
|
13
|
+
var useStyles = require('../hooks/useStyles.js');
|
|
14
|
+
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
15
|
+
require('lodash/camelCase');
|
|
16
|
+
require('lodash/maxBy');
|
|
17
|
+
require('lodash/upperFirst');
|
|
18
|
+
require('../hooks/styleAttributes.js');
|
|
19
|
+
require('../context/UIContext.js');
|
|
20
|
+
require('../hooks/useMediaQueries.js');
|
|
21
|
+
require('react-responsive');
|
|
22
|
+
require('lodash/castArray');
|
|
23
|
+
|
|
24
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
+
|
|
26
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
27
|
+
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
28
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
29
|
+
|
|
30
|
+
var isProduction = process.env.NODE_ENV === 'production';
|
|
31
|
+
var prefix = 'Invariant failed';
|
|
32
|
+
function invariant(condition, message) {
|
|
33
|
+
if (condition) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (isProduction) {
|
|
37
|
+
throw new Error(prefix);
|
|
38
|
+
}
|
|
39
|
+
var provided = typeof message === 'function' ? message() : message;
|
|
40
|
+
var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
41
|
+
throw new Error(value);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const maxHorizontalScroll = dom => dom.scrollWidth - dom.clientWidth;
|
|
45
|
+
const maxVerticalScroll = dom => dom.scrollHeight - dom.clientHeight;
|
|
46
|
+
var useScrollOnDrag = ((domRef, {
|
|
47
|
+
onDragStart = () => {},
|
|
48
|
+
onDragEnd = () => {},
|
|
49
|
+
runScroll = ({
|
|
50
|
+
dx,
|
|
51
|
+
dy
|
|
52
|
+
}) => {
|
|
53
|
+
const offsetX = Math.min(maxHorizontalScroll(domRef.current), domRef.current.scrollLeft + dx);
|
|
54
|
+
domRef.current.scrollLeft = offsetX; // eslint-disable-line no-param-reassign
|
|
55
|
+
|
|
56
|
+
const offsetY = Math.min(maxVerticalScroll(domRef.current), domRef.current.scrollTop + dy);
|
|
57
|
+
domRef.current.scrollTop = offsetY; // eslint-disable-line no-param-reassign
|
|
58
|
+
}
|
|
59
|
+
} = {}) => {
|
|
60
|
+
const internalState = React.useRef({
|
|
61
|
+
lastMouseX: null,
|
|
62
|
+
lastMouseY: null,
|
|
63
|
+
isMouseDown: false,
|
|
64
|
+
isScrolling: false
|
|
65
|
+
});
|
|
66
|
+
const scroll = React.useCallback(({
|
|
67
|
+
dx,
|
|
68
|
+
dy
|
|
69
|
+
}) => {
|
|
70
|
+
!(domRef.current !== null) ? process.env.NODE_ENV !== "production" ? invariant(false, `Trying to scroll to the bottom, but no element was found.
|
|
71
|
+
Did you call this scrollBottom before the component with this hook finished mounting?`) : invariant(false) : void 0;
|
|
72
|
+
runScroll({
|
|
73
|
+
dx,
|
|
74
|
+
dy
|
|
75
|
+
});
|
|
76
|
+
}, [runScroll]);
|
|
77
|
+
const onMouseDown = React.useCallback(e => {
|
|
78
|
+
internalState.current.isMouseDown = true;
|
|
79
|
+
internalState.current.lastMouseX = e.clientX;
|
|
80
|
+
internalState.current.lastMouseY = e.clientY;
|
|
81
|
+
}, []);
|
|
82
|
+
const onMouseUp = () => {
|
|
83
|
+
internalState.current.isMouseDown = false;
|
|
84
|
+
internalState.current.lastMouseX = null;
|
|
85
|
+
internalState.current.lastMouseY = null;
|
|
86
|
+
if (internalState.current.isScrolling) {
|
|
87
|
+
internalState.current.isScrolling = false;
|
|
88
|
+
onDragEnd();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const onMouseMove = e => {
|
|
92
|
+
if (!internalState.current.isMouseDown) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (!internalState.current.isScrolling) {
|
|
96
|
+
internalState.current.isScrolling = true;
|
|
97
|
+
onDragStart();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// diff is negative because we want to scroll in the opposite direction of the movement
|
|
101
|
+
const dx = -(e.clientX - internalState.current.lastMouseX);
|
|
102
|
+
const dy = -(e.clientY - internalState.current.lastMouseY);
|
|
103
|
+
internalState.current.lastMouseX = e.clientX;
|
|
104
|
+
internalState.current.lastMouseY = e.clientY;
|
|
105
|
+
scroll({
|
|
106
|
+
dx,
|
|
107
|
+
dy
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
React.useEffect(() => {
|
|
111
|
+
window.addEventListener('mouseup', onMouseUp);
|
|
112
|
+
window.addEventListener('mousemove', onMouseMove);
|
|
113
|
+
return () => {
|
|
114
|
+
window.removeEventListener('mouseup', onMouseUp);
|
|
115
|
+
window.removeEventListener('mousemove', onMouseMove);
|
|
116
|
+
};
|
|
117
|
+
}, []);
|
|
118
|
+
return {
|
|
119
|
+
events: {
|
|
120
|
+
onMouseDown
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
function ScrollOnDrag(props) {
|
|
126
|
+
const {
|
|
127
|
+
children,
|
|
128
|
+
className,
|
|
129
|
+
speed
|
|
130
|
+
} = props;
|
|
131
|
+
const ref = React.useRef(null);
|
|
132
|
+
const fun = ref => ({
|
|
133
|
+
dx
|
|
134
|
+
}) => {
|
|
135
|
+
ref.current.scrollLeft += dx * speed; // eslint-disable-line no-param-reassign
|
|
136
|
+
};
|
|
137
|
+
const {
|
|
138
|
+
events
|
|
139
|
+
} = useScrollOnDrag(ref, {
|
|
140
|
+
runScroll: fun(ref)
|
|
141
|
+
});
|
|
142
|
+
const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
143
|
+
prefix: 'fill_',
|
|
144
|
+
propsKey: 'fill'
|
|
145
|
+
});
|
|
146
|
+
const fillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
147
|
+
prefix: 'fill_hover_',
|
|
148
|
+
propsKey: 'fillHover'
|
|
149
|
+
});
|
|
150
|
+
const widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
151
|
+
prefix: 'width_',
|
|
152
|
+
propsKey: 'width'
|
|
153
|
+
});
|
|
154
|
+
const heightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
155
|
+
prefix: 'height_',
|
|
156
|
+
propsKey: 'height'
|
|
157
|
+
});
|
|
158
|
+
const borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
159
|
+
prefix: 'border-color_',
|
|
160
|
+
propsKey: 'borderColor'
|
|
161
|
+
});
|
|
162
|
+
const borderWidthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
163
|
+
prefix: 'border-width_',
|
|
164
|
+
propsKey: 'borderWidth'
|
|
165
|
+
});
|
|
166
|
+
const borderTypeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
167
|
+
prefix: 'border_type_',
|
|
168
|
+
propsKey: 'borderType'
|
|
169
|
+
});
|
|
170
|
+
const elevationClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
171
|
+
prefix: 'elevation_',
|
|
172
|
+
propsKey: 'elevation'
|
|
173
|
+
});
|
|
174
|
+
const {
|
|
175
|
+
styles: groupStyles
|
|
176
|
+
} = useStyles.useStyles(props);
|
|
177
|
+
return /*#__PURE__*/React__default.default.createElement("div", Object.assign({
|
|
178
|
+
className: clsx__default.default(className, 'scrolldrag', borderColorClass, borderTypeClass, borderWidthClass, elevationClass, fillClass, fillHoverClass, heightClass, widthClass)
|
|
179
|
+
}, events, {
|
|
180
|
+
ref: ref,
|
|
181
|
+
style: groupStyles
|
|
182
|
+
}), children);
|
|
183
|
+
}
|
|
184
|
+
ScrollOnDrag.propTypes = {
|
|
185
|
+
borderColor: PropTypes__default.default.oneOf(borderColor.default),
|
|
186
|
+
borderType: PropTypes__default.default.oneOf(borderType.default),
|
|
187
|
+
borderWidth: PropTypes__default.default.oneOf(borderWidth.default),
|
|
188
|
+
children: PropTypes__default.default.any,
|
|
189
|
+
className: PropTypes__default.default.string,
|
|
190
|
+
elevation: PropTypes__default.default.oneOf(),
|
|
191
|
+
fill: PropTypes__default.default.oneOf(fill.default),
|
|
192
|
+
fillHover: PropTypes__default.default.oneOf(fillHover.default),
|
|
193
|
+
height: PropTypes__default.default.oneOf(height.default),
|
|
194
|
+
width: PropTypes__default.default.oneOf(width.default)
|
|
195
|
+
};
|
|
196
|
+
ScrollOnDrag.__docgenInfo = {
|
|
197
|
+
"description": "",
|
|
198
|
+
"methods": [],
|
|
199
|
+
"displayName": "ScrollOnDrag",
|
|
200
|
+
"props": {
|
|
201
|
+
"borderColor": {
|
|
202
|
+
"description": "",
|
|
203
|
+
"type": {
|
|
204
|
+
"name": "enum",
|
|
205
|
+
"computed": true,
|
|
206
|
+
"value": "borderColorProps"
|
|
207
|
+
},
|
|
208
|
+
"required": false
|
|
209
|
+
},
|
|
210
|
+
"borderType": {
|
|
211
|
+
"description": "",
|
|
212
|
+
"type": {
|
|
213
|
+
"name": "enum",
|
|
214
|
+
"computed": true,
|
|
215
|
+
"value": "borderTypeProps"
|
|
216
|
+
},
|
|
217
|
+
"required": false
|
|
218
|
+
},
|
|
219
|
+
"borderWidth": {
|
|
220
|
+
"description": "",
|
|
221
|
+
"type": {
|
|
222
|
+
"name": "enum",
|
|
223
|
+
"computed": true,
|
|
224
|
+
"value": "borderWidthProps"
|
|
225
|
+
},
|
|
226
|
+
"required": false
|
|
227
|
+
},
|
|
228
|
+
"children": {
|
|
229
|
+
"description": "",
|
|
230
|
+
"type": {
|
|
231
|
+
"name": "any"
|
|
232
|
+
},
|
|
233
|
+
"required": false
|
|
234
|
+
},
|
|
235
|
+
"className": {
|
|
236
|
+
"description": "",
|
|
237
|
+
"type": {
|
|
238
|
+
"name": "string"
|
|
239
|
+
},
|
|
240
|
+
"required": false
|
|
241
|
+
},
|
|
242
|
+
"elevation": {
|
|
243
|
+
"description": "",
|
|
244
|
+
"type": {
|
|
245
|
+
"name": "enum",
|
|
246
|
+
"computed": true,
|
|
247
|
+
"value": "PropTypes.oneOf()"
|
|
248
|
+
},
|
|
249
|
+
"required": false
|
|
250
|
+
},
|
|
251
|
+
"fill": {
|
|
252
|
+
"description": "",
|
|
253
|
+
"type": {
|
|
254
|
+
"name": "enum",
|
|
255
|
+
"computed": true,
|
|
256
|
+
"value": "fillProps"
|
|
257
|
+
},
|
|
258
|
+
"required": false
|
|
259
|
+
},
|
|
260
|
+
"fillHover": {
|
|
261
|
+
"description": "",
|
|
262
|
+
"type": {
|
|
263
|
+
"name": "enum",
|
|
264
|
+
"computed": true,
|
|
265
|
+
"value": "fillHoverProps"
|
|
266
|
+
},
|
|
267
|
+
"required": false
|
|
268
|
+
},
|
|
269
|
+
"height": {
|
|
270
|
+
"description": "",
|
|
271
|
+
"type": {
|
|
272
|
+
"name": "enum",
|
|
273
|
+
"computed": true,
|
|
274
|
+
"value": "heightProps"
|
|
275
|
+
},
|
|
276
|
+
"required": false
|
|
277
|
+
},
|
|
278
|
+
"width": {
|
|
279
|
+
"description": "",
|
|
280
|
+
"type": {
|
|
281
|
+
"name": "enum",
|
|
282
|
+
"computed": true,
|
|
283
|
+
"value": "widthProps"
|
|
284
|
+
},
|
|
285
|
+
"required": false
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
exports.ScrollOnDrag = ScrollOnDrag;
|
|
@@ -36,6 +36,7 @@ require('./Title.js');
|
|
|
36
36
|
require('../constants/componentProps/textAlign.js');
|
|
37
37
|
require('../constants/componentProps/titleSize.js');
|
|
38
38
|
require('../constants/componentProps/wrap.js');
|
|
39
|
+
require('../constants/componentProps/textSize.js');
|
|
39
40
|
require('../constants/componentProps/textColorActive.js');
|
|
40
41
|
require('../constants/componentProps/textColorHover.js');
|
|
41
42
|
require('react-scrollbars-custom');
|
|
@@ -41,6 +41,7 @@ require('./Title.js');
|
|
|
41
41
|
require('../constants/componentProps/textAlign.js');
|
|
42
42
|
require('../constants/componentProps/titleSize.js');
|
|
43
43
|
require('../constants/componentProps/wrap.js');
|
|
44
|
+
require('../constants/componentProps/textSize.js');
|
|
44
45
|
require('../constants/componentProps/textColorActive.js');
|
|
45
46
|
require('../constants/componentProps/textColorHover.js');
|
|
46
47
|
require('../constants/componentProps/direction.js');
|
|
@@ -35,6 +35,7 @@ require('./Title.js');
|
|
|
35
35
|
require('../constants/componentProps/textAlign.js');
|
|
36
36
|
require('../constants/componentProps/titleSize.js');
|
|
37
37
|
require('../constants/componentProps/wrap.js');
|
|
38
|
+
require('../constants/componentProps/textSize.js');
|
|
38
39
|
require('../constants/componentProps/textColorActive.js');
|
|
39
40
|
require('../constants/componentProps/textColorHover.js');
|
|
40
41
|
|
package/dist/components/Text.js
CHANGED
package/dist/components/Tile.js
CHANGED
|
@@ -40,8 +40,8 @@ require('../constants/componentProps/underline.js');
|
|
|
40
40
|
require('../constants/componentProps/iconSize.js');
|
|
41
41
|
require('../constants/componentProps/strokeColor.js');
|
|
42
42
|
require('./Tooltip.js');
|
|
43
|
-
require('../constants/componentProps/textAlign.js');
|
|
44
43
|
require('../constants/componentProps/titleSize.js');
|
|
44
|
+
require('../constants/componentProps/textAlign.js');
|
|
45
45
|
require('../constants/componentProps/wrap.js');
|
|
46
46
|
|
|
47
47
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -6,11 +6,13 @@ var clsx = require('clsx');
|
|
|
6
6
|
var index$1 = require('./Text.js');
|
|
7
7
|
var index = require('./Title.js');
|
|
8
8
|
var size = require('../constants/componentProps/size.js');
|
|
9
|
+
var textSize = require('../constants/componentProps/textSize.js');
|
|
9
10
|
var fill = require('../constants/componentProps/fill.js');
|
|
10
11
|
var shape = require('../constants/componentProps/shape.js');
|
|
12
|
+
var textColor = require('../constants/componentProps/textColor.js');
|
|
13
|
+
var titleSize = require('../constants/componentProps/titleSize.js');
|
|
11
14
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
12
15
|
var useStyles = require('../hooks/useStyles.js');
|
|
13
|
-
require('../constants/componentProps/textColor.js');
|
|
14
16
|
require('../constants/componentProps/textColorActive.js');
|
|
15
17
|
require('../constants/componentProps/textColorHover.js');
|
|
16
18
|
require('../constants/componentProps/textStyle.js');
|
|
@@ -25,7 +27,6 @@ require('../hooks/useMediaQueries.js');
|
|
|
25
27
|
require('react-responsive');
|
|
26
28
|
require('lodash/castArray');
|
|
27
29
|
require('../constants/componentProps/textAlign.js');
|
|
28
|
-
require('../constants/componentProps/titleSize.js');
|
|
29
30
|
require('../constants/componentProps/type.js');
|
|
30
31
|
require('../constants/componentProps/wrap.js');
|
|
31
32
|
|
|
@@ -56,11 +57,12 @@ const Tooltip = /*#__PURE__*/React__default.default.forwardRef(function Tooltip(
|
|
|
56
57
|
titleTextColor,
|
|
57
58
|
titleSize,
|
|
58
59
|
textColor,
|
|
59
|
-
textSize
|
|
60
|
+
textSize,
|
|
61
|
+
initialIsVisible
|
|
60
62
|
} = props;
|
|
61
63
|
const tooltipTimeoutHideRef = React.useRef(null);
|
|
62
64
|
const isTooltipCloseAnimationInProgressRef = React.useRef(false);
|
|
63
|
-
const [isTooltipVisible, setIsTooltipVisible] = React.useState(
|
|
65
|
+
const [isTooltipVisible, setIsTooltipVisible] = React.useState(initialIsVisible);
|
|
64
66
|
const openTooltip = React.useCallback(() => {
|
|
65
67
|
if (!isTooltipCloseAnimationInProgressRef.current) {
|
|
66
68
|
clearTimeout(tooltipTimeoutHideRef.current);
|
|
@@ -169,27 +171,39 @@ Tooltip.propTypes = {
|
|
|
169
171
|
shapeDesktop: PropTypes__default.default.oneOf(shape.default),
|
|
170
172
|
shapeMobile: PropTypes__default.default.oneOf(shape.default),
|
|
171
173
|
shapeTablet: PropTypes__default.default.oneOf(shape.default),
|
|
174
|
+
/**
|
|
175
|
+
* внутренний padding и отступ gap между элементами
|
|
176
|
+
*/
|
|
172
177
|
size: PropTypes__default.default.oneOf(size.default),
|
|
173
178
|
sizeDesktop: PropTypes__default.default.oneOf(size.default),
|
|
174
179
|
sizeMobile: PropTypes__default.default.oneOf(size.default),
|
|
175
180
|
sizeTablet: PropTypes__default.default.oneOf(size.default),
|
|
176
181
|
text: PropTypes__default.default.any,
|
|
177
|
-
textColor: PropTypes__default.default.oneOf(
|
|
178
|
-
textSize: PropTypes__default.default.oneOf(
|
|
179
|
-
textSizeDesktop: PropTypes__default.default.oneOf(
|
|
180
|
-
textSizeMobile: PropTypes__default.default.oneOf(
|
|
181
|
-
textSizeTablet: PropTypes__default.default.oneOf(
|
|
182
|
+
textColor: PropTypes__default.default.oneOf(textColor.default),
|
|
183
|
+
textSize: PropTypes__default.default.oneOf(textSize.default),
|
|
184
|
+
textSizeDesktop: PropTypes__default.default.oneOf(textSize.default),
|
|
185
|
+
textSizeMobile: PropTypes__default.default.oneOf(textSize.default),
|
|
186
|
+
textSizeTablet: PropTypes__default.default.oneOf(textSize.default),
|
|
182
187
|
title: PropTypes__default.default.string,
|
|
183
|
-
titleSize: PropTypes__default.default.
|
|
184
|
-
titleTextColor: PropTypes__default.default.
|
|
188
|
+
titleSize: PropTypes__default.default.oneOf(titleSize.default),
|
|
189
|
+
titleTextColor: PropTypes__default.default.oneOf(textColor.default),
|
|
185
190
|
type: PropTypes__default.default.string
|
|
186
191
|
};
|
|
187
|
-
Tooltip.defaultProps = {
|
|
192
|
+
Tooltip.defaultProps = {
|
|
193
|
+
initialIsVisible: null
|
|
194
|
+
};
|
|
188
195
|
Tooltip.__docgenInfo = {
|
|
189
196
|
"description": "",
|
|
190
197
|
"methods": [],
|
|
191
198
|
"displayName": "Tooltip",
|
|
192
199
|
"props": {
|
|
200
|
+
"initialIsVisible": {
|
|
201
|
+
"defaultValue": {
|
|
202
|
+
"value": "null",
|
|
203
|
+
"computed": false
|
|
204
|
+
},
|
|
205
|
+
"required": false
|
|
206
|
+
},
|
|
193
207
|
"after": {
|
|
194
208
|
"description": "",
|
|
195
209
|
"type": {
|
|
@@ -312,7 +326,7 @@ Tooltip.__docgenInfo = {
|
|
|
312
326
|
"required": false
|
|
313
327
|
},
|
|
314
328
|
"size": {
|
|
315
|
-
"description": "",
|
|
329
|
+
"description": "\u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 padding \u0438 \u043E\u0442\u0441\u0442\u0443\u043F gap \u043C\u0435\u0436\u0434\u0443 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u043C\u0438",
|
|
316
330
|
"type": {
|
|
317
331
|
"name": "enum",
|
|
318
332
|
"computed": true,
|
|
@@ -359,7 +373,7 @@ Tooltip.__docgenInfo = {
|
|
|
359
373
|
"type": {
|
|
360
374
|
"name": "enum",
|
|
361
375
|
"computed": true,
|
|
362
|
-
"value": "
|
|
376
|
+
"value": "textColorProps"
|
|
363
377
|
},
|
|
364
378
|
"required": false
|
|
365
379
|
},
|
|
@@ -368,7 +382,7 @@ Tooltip.__docgenInfo = {
|
|
|
368
382
|
"type": {
|
|
369
383
|
"name": "enum",
|
|
370
384
|
"computed": true,
|
|
371
|
-
"value": "
|
|
385
|
+
"value": "textSizeProps"
|
|
372
386
|
},
|
|
373
387
|
"required": false
|
|
374
388
|
},
|
|
@@ -377,7 +391,7 @@ Tooltip.__docgenInfo = {
|
|
|
377
391
|
"type": {
|
|
378
392
|
"name": "enum",
|
|
379
393
|
"computed": true,
|
|
380
|
-
"value": "
|
|
394
|
+
"value": "textSizeProps"
|
|
381
395
|
},
|
|
382
396
|
"required": false
|
|
383
397
|
},
|
|
@@ -386,7 +400,7 @@ Tooltip.__docgenInfo = {
|
|
|
386
400
|
"type": {
|
|
387
401
|
"name": "enum",
|
|
388
402
|
"computed": true,
|
|
389
|
-
"value": "
|
|
403
|
+
"value": "textSizeProps"
|
|
390
404
|
},
|
|
391
405
|
"required": false
|
|
392
406
|
},
|
|
@@ -395,7 +409,7 @@ Tooltip.__docgenInfo = {
|
|
|
395
409
|
"type": {
|
|
396
410
|
"name": "enum",
|
|
397
411
|
"computed": true,
|
|
398
|
-
"value": "
|
|
412
|
+
"value": "textSizeProps"
|
|
399
413
|
},
|
|
400
414
|
"required": false
|
|
401
415
|
},
|
|
@@ -409,14 +423,18 @@ Tooltip.__docgenInfo = {
|
|
|
409
423
|
"titleSize": {
|
|
410
424
|
"description": "",
|
|
411
425
|
"type": {
|
|
412
|
-
"name": "
|
|
426
|
+
"name": "enum",
|
|
427
|
+
"computed": true,
|
|
428
|
+
"value": "titleSizeProps"
|
|
413
429
|
},
|
|
414
430
|
"required": false
|
|
415
431
|
},
|
|
416
432
|
"titleTextColor": {
|
|
417
433
|
"description": "",
|
|
418
434
|
"type": {
|
|
419
|
-
"name": "
|
|
435
|
+
"name": "enum",
|
|
436
|
+
"computed": true,
|
|
437
|
+
"value": "textColorProps"
|
|
420
438
|
},
|
|
421
439
|
"required": false
|
|
422
440
|
},
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const borderWidthProps = [null,
|
|
3
|
+
const borderWidthProps = [null, /* eslint-disable */
|
|
4
|
+
'1', 1, '2', 2, '3', 3, '4', 4, '5', 5, '6', 6, '7', 7, '8', 8, '9', 9, '10', 10
|
|
5
|
+
/* eslint-enable */];
|
|
4
6
|
|
|
5
7
|
exports.default = borderWidthProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const emojiSizeProps = [null,
|
|
3
|
+
const emojiSizeProps = [null, /* eslint-disable */
|
|
4
|
+
'16', 16, '24', 24, '32', 32, '40', 40, '56', 56, '64', 64, '144', 144
|
|
5
|
+
/* eslint-enable */];
|
|
4
6
|
|
|
5
7
|
exports.default = emojiSizeProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const iconFillProps = [null,
|
|
3
|
+
const iconFillProps = [null, /* eslint-disable */
|
|
4
|
+
'14', 14, '16', 16, '24', 24, '32', 32, '40', 40, '60', 60, '64', 64, '144', 144
|
|
5
|
+
/* eslint-enable */];
|
|
4
6
|
|
|
5
7
|
exports.default = iconFillProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const iconSizeProps = [null,
|
|
3
|
+
const iconSizeProps = [null, /* eslint-disable */
|
|
4
|
+
'14', 14, '16', 16, '24', 24, '32', 32, '40', 40, '60', 60, '64', 64, '144', 144
|
|
5
|
+
/* eslint-enable */];
|
|
4
6
|
|
|
5
7
|
exports.default = iconSizeProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const sizePXProps = [null,
|
|
3
|
+
const sizePXProps = [null, /* eslint-disable */
|
|
4
|
+
'14', 14, '16', 16, '24', 24, '32', 32, '40', 40, '48', 48, '56', 56, '60', 60, '64', 64, '72', 72, '80', 80, '96', 96, '112', 112, '144', 144, '240', 240
|
|
5
|
+
/* eslint-enable */];
|
|
4
6
|
|
|
5
7
|
exports.default = sizePXProps;
|
|
@@ -829,11 +829,11 @@
|
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
&--in-selecting-range:not(
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
832
|
+
.react-datepicker__day--in-range,
|
|
833
|
+
.react-datepicker__month-text--in-range,
|
|
834
|
+
.react-datepicker__quarter-text--in-range,
|
|
835
|
+
.react-datepicker__year-text--in-range
|
|
836
|
+
) {
|
|
837
837
|
background: var(--date-picker-day-selected-background);
|
|
838
838
|
& .button__label {
|
|
839
839
|
color: var(--date-picker-day-selected-text-color);
|
|
@@ -878,6 +878,12 @@
|
|
|
878
878
|
&:hover {
|
|
879
879
|
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
880
880
|
}
|
|
881
|
+
&.react-datepicker__day--today {
|
|
882
|
+
border-radius: var(--date-picker-day-today-border-radius) !important;
|
|
883
|
+
&:hover {
|
|
884
|
+
border-radius: var(--date-picker-day-today-border-radius) !important;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
881
887
|
}
|
|
882
888
|
&.react-datepicker__day--selecting-range-start.react-datepicker__day--selecting-range-end {
|
|
883
889
|
border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
|
|
@@ -1165,6 +1171,7 @@
|
|
|
1165
1171
|
--date-picker-day-range-end-border-radius: 0 12px 12px 0;
|
|
1166
1172
|
--date-picker-day-range-start-end-border-radius: 12px;
|
|
1167
1173
|
--date-picker-day-today-background: var(--color-surface-secondary);
|
|
1174
|
+
--date-picker-day-today-border-radius: 12px;
|
|
1168
1175
|
--date-picker-day-today-text-color: var(--color-surface-text-primary);
|
|
1169
1176
|
--date-picker-day-weekend-background: var(--color-surface-primary);
|
|
1170
1177
|
--date-picker-day-weekend-text-color: var(--color-secondary-text-secondary);
|
|
@@ -67,25 +67,6 @@ div.label {
|
|
|
67
67
|
z-index: 12;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
.label {
|
|
71
|
-
&&_text-align {
|
|
72
|
-
&_left {
|
|
73
|
-
^^&__inner {
|
|
74
|
-
text-align: left;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
&_center {
|
|
78
|
-
^^&__inner {
|
|
79
|
-
text-align: center;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&_right {
|
|
83
|
-
^^&__inner {
|
|
84
|
-
text-align: right;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
70
|
.label {
|
|
90
71
|
&&_width {
|
|
91
72
|
&_fixed {
|