@itcase/ui 1.8.38 → 1.8.40
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/{Avatar_cjs_nMPCDjk8.js → Avatar_cjs_BbeDJ-No.js} +2 -2
- package/dist/{Avatar_es_B73a6TzA.js → Avatar_es_B1Ao9Im_.js} +2 -2
- package/dist/{Button_cjs_plv5-qcj.js → Button_cjs_Ctkyt2ES.js} +1 -1
- package/dist/{Button_es_BigB2Wz6.js → Button_es_BiIuX0ER.js} +1 -1
- package/dist/{ChipsGroup_cjs_DrOhD-Fc.js → ChipsGroup_cjs_p99H-9a8.js} +48 -64
- package/dist/{ChipsGroup_es_B9m4l0wN.js → ChipsGroup_es_CWq3TR_1.js} +48 -64
- package/dist/{DatePicker_cjs_DKoF73mp.js → DatePicker_cjs_D_1v2mS0.js} +3 -3
- package/dist/{DatePicker_es_CdEYxtwj.js → DatePicker_es_CQwbdG0g.js} +3 -3
- package/dist/{DropdownItem_cjs_DQvByLbN.js → DropdownItem_cjs_B1gGciTB.js} +26 -9
- package/dist/{DropdownItem_es_KppIfto7.js → DropdownItem_es_JVT4f6Nb.js} +26 -9
- package/dist/{Image_cjs_CCWqbNn4.js → Image_cjs_2zEjohYE.js} +5 -4
- package/dist/{Image_es_DZUVp0FS.js → Image_es_ChF-63wh.js} +5 -4
- package/dist/{Label_cjs_BGJfyrOL.js → Label_cjs_Mb8j2bLu.js} +1 -5
- package/dist/{Label_es_C4Px7b-N.js → Label_es_CIDBUVgO.js} +1 -5
- package/dist/{Tooltip_cjs_DHduWa-v.js → Tooltip_cjs_BBwH8sjA.js} +16 -6
- package/dist/{Tooltip_es_ltCY-w4M.js → Tooltip_es_Y2aoFQW7.js} +16 -6
- package/dist/cjs/components/Accordion.js +3 -1
- package/dist/cjs/components/Avatar.js +5 -3
- package/dist/cjs/components/AvatarStack.js +5 -3
- package/dist/cjs/components/Badge.js +3 -1
- package/dist/cjs/components/Breadcrumbs.js +3 -1
- package/dist/cjs/components/Button.js +4 -2
- package/dist/cjs/components/Cell.js +4 -2
- package/dist/cjs/components/Chips.js +5 -2
- package/dist/cjs/components/Choice.js +3 -1
- package/dist/cjs/components/CookiesWarning.js +4 -2
- package/dist/cjs/components/DatePeriod.js +8 -5
- package/dist/cjs/components/DatePicker.js +6 -4
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown/stories/__mock__.js +27 -4
- package/dist/cjs/components/Dropdown.js +5 -3
- package/dist/cjs/components/HeroTitle.js +3 -1
- package/dist/cjs/components/Icon.js +3 -1
- package/dist/cjs/components/Image.js +5 -3
- package/dist/cjs/components/InputPassword.js +3 -1
- package/dist/cjs/components/Label.js +4 -2
- package/dist/cjs/components/Logo.js +7 -5
- package/dist/cjs/components/MenuItem.js +3 -1
- package/dist/cjs/components/Modal.js +3 -1
- package/dist/cjs/components/Notification.js +3 -1
- package/dist/cjs/components/Pagination.js +68 -21
- package/dist/cjs/components/Radio.js +45 -65
- package/dist/cjs/components/Response.js +8 -5
- package/dist/cjs/components/SVGContent.js +5 -3
- package/dist/cjs/components/Search.js +3 -1
- package/dist/cjs/components/Segmented.js +3 -1
- package/dist/cjs/components/Select.js +5 -3
- package/dist/cjs/components/Swiper.js +3 -1
- package/dist/cjs/components/Tab.js +3 -1
- package/dist/cjs/components/Textarea.js +1 -1
- package/dist/cjs/components/Tile.js +3 -1
- package/dist/cjs/components/Title.js +3 -1
- package/dist/cjs/components/Tooltip.js +3 -1
- package/dist/cjs/context/UrlAssetPrefix.js +17 -0
- package/dist/cjs/hoc/urlWithAssetPrefix.js +64 -0
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +29 -0
- package/dist/cjs/hooks/useAppearanceConfig.js +9 -0
- package/dist/components/Accordion.js +3 -1
- package/dist/components/Avatar.js +5 -3
- package/dist/components/AvatarStack.js +5 -3
- package/dist/components/Badge.js +3 -1
- package/dist/components/Breadcrumbs.js +3 -1
- package/dist/components/Button.js +4 -2
- package/dist/components/Cell.js +4 -2
- package/dist/components/Chips.js +5 -2
- package/dist/components/Choice.js +3 -1
- package/dist/components/CookiesWarning.js +4 -2
- package/dist/components/DatePeriod.js +8 -5
- package/dist/components/DatePicker.js +6 -4
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown/stories/__mock__.js +26 -5
- package/dist/components/Dropdown.js +5 -3
- package/dist/components/HeroTitle.js +3 -1
- package/dist/components/Icon.js +3 -1
- package/dist/components/Image.js +5 -3
- package/dist/components/InputPassword.js +3 -1
- package/dist/components/Label.js +4 -2
- package/dist/components/Logo.js +7 -5
- package/dist/components/MenuItem.js +3 -1
- package/dist/components/Modal.js +3 -1
- package/dist/components/Notification.js +3 -1
- package/dist/components/Pagination.js +69 -22
- package/dist/components/Radio.js +45 -65
- package/dist/components/Response.js +8 -5
- package/dist/components/SVGContent.js +5 -3
- package/dist/components/Search.js +3 -1
- package/dist/components/Segmented.js +3 -1
- package/dist/components/Select.js +5 -3
- package/dist/components/Swiper.js +3 -1
- package/dist/components/Tab.js +3 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Tile.js +3 -1
- package/dist/components/Title.js +3 -1
- package/dist/components/Tooltip.js +3 -1
- package/dist/context/UrlAssetPrefix.js +14 -0
- package/dist/css/components/Dropdown/Dropdown.css +24 -0
- package/dist/css/components/Pagination/Pagination.css +82 -30
- package/dist/css/components/Pagination/css/__item/pagination__item.css +8 -8
- package/dist/css/components/Pagination/css/__item/pagination__item_size.css +8 -0
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +16 -16
- package/dist/css/components/Radio/Radio.css +44 -5
- package/dist/css/components/Select/Select.css +1 -0
- package/dist/css/components/Select/css/__indicators/select__indicators.css +1 -0
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/styles/fill/fill.css +2 -1
- package/dist/css/styles/fill/fill_active.css +3 -0
- package/dist/css/styles/fill/fill_active_hover.css +7 -0
- package/dist/css/styles/fill/fill_hover.css +5 -9
- package/dist/hoc/urlWithAssetPrefix.js +62 -0
- package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +27 -0
- package/dist/hooks/useAppearanceConfig.js +3 -0
- package/dist/stories/ChipsOverview.mdx +10 -10
- package/dist/stories/ChipsPlayground.mdx +2 -2
- package/dist/stories/Components.mdx +378 -87
- package/dist/stories/useAppearanceConfig.mdx +83 -0
- package/dist/stories/useDevicePropsGenerator.mdx +6 -8
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -3
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +5 -0
- package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +9 -0
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +3 -0
- package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +9 -12
- package/dist/types/components/Icon/Icon.d.ts +6 -2
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconDisabled.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -1
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSuccess.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconSurface.d.ts +1 -0
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +1 -0
- package/dist/types/components/Image/Image.d.ts +5 -2
- package/dist/types/components/Label/appearance/labelError.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelGradient.d.ts +8 -0
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +0 -1
- package/dist/types/components/Logo/Logo.d.ts +6 -2
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +22 -1
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +20 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -1
- package/dist/types/components/Radio/Radio.appearance.d.ts +28 -48
- package/dist/types/components/Radio/appearance/radioDefault.d.ts +2 -14
- package/dist/types/components/Radio/appearance/radioDisabled.d.ts +5 -5
- package/dist/types/components/Radio/appearance/radioError.d.ts +6 -5
- package/dist/types/components/Radio/appearance/radioRequire.d.ts +5 -13
- package/dist/types/components/Radio/appearance/radioStyle.d.ts +4 -6
- package/dist/types/components/Radio/appearance/radioSuccess.d.ts +6 -5
- package/dist/types/components/Response/Response.d.ts +6 -2
- package/dist/types/components/Response/Response.interface.d.ts +3 -1
- package/dist/types/components/SVGContent/SVGContent.d.ts +5 -2
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +2 -1
- package/dist/types/config/forms/datepicker.d.ts +18 -0
- package/dist/types/config/forms/index.d.ts +3 -0
- package/dist/types/config/forms/input.d.ts +14 -0
- package/dist/types/context/UrlAssetPrefix.d.ts +12 -0
- package/dist/types/hoc/urlWithAssetPrefix.d.ts +8 -0
- package/dist/types/hooks/useAppearanceConfig/index.d.ts +1 -0
- package/dist/types/hooks/useAppearanceConfig/useAppearanceConfig.d.ts +7 -0
- package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
- package/package.json +22 -17
- package/dist/types/hooks/useDeviceTargetClass.d.ts +0 -5
|
@@ -3,24 +3,26 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
|
+
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
6
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../
|
|
9
|
+
import { B as Button } from '../Button_es_BiIuX0ER.js';
|
|
9
10
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
10
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
|
+
import '@itcase/common';
|
|
13
|
+
import '../context/UrlAssetPrefix.js';
|
|
11
14
|
import 'lodash/camelCase';
|
|
12
15
|
import 'lodash/castArray';
|
|
13
16
|
import 'lodash/upperFirst';
|
|
14
17
|
import '../context/Notifications.js';
|
|
15
18
|
import 'uuid';
|
|
16
|
-
import '@itcase/common';
|
|
17
19
|
import '../context/UIContext.js';
|
|
18
20
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
19
21
|
import 'react-responsive';
|
|
20
22
|
import '../utils/setViewportProperty.js';
|
|
21
23
|
import 'lodash/maxBy';
|
|
22
24
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
25
|
+
import '../Tooltip_es_Y2aoFQW7.js';
|
|
24
26
|
import '../Link_es_DxtZLeKY.js';
|
|
25
27
|
import '../Loader_es_GYOr0UTX.js';
|
|
26
28
|
|
|
@@ -142,7 +144,7 @@ var responseConfig = {
|
|
|
142
144
|
responseConfig.appearance = appearanceConfig;
|
|
143
145
|
},
|
|
144
146
|
};
|
|
145
|
-
function Response(props) {
|
|
147
|
+
var Response = urlWithAssetPrefix(function Response(props) {
|
|
146
148
|
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, onClickSecondaryButton = props.onClickSecondaryButton, secondaryButton = props.secondaryButton, before = props.before, after = props.after, isSkeleton = props.isSkeleton;
|
|
147
149
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
148
150
|
var _a;
|
|
@@ -150,6 +152,7 @@ function Response(props) {
|
|
|
150
152
|
}, {});
|
|
151
153
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
152
154
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, onClickPrimaryButton = propsGenerator.onClickPrimaryButton, primaryButtonAfter = propsGenerator.primaryButtonAfter, primaryButtonAppearance = propsGenerator.primaryButtonAppearance, primaryButtonBefore = propsGenerator.primaryButtonBefore, primaryButtonFill = propsGenerator.primaryButtonFill, primaryButtonFillHover = propsGenerator.primaryButtonFillHover, primaryButtonLabel = propsGenerator.primaryButtonLabel, primaryButtonLabelTextColor = propsGenerator.primaryButtonLabelTextColor, primaryButtonLabelTextSize = propsGenerator.primaryButtonLabelTextSize, primaryButtonShape = propsGenerator.primaryButtonShape, primaryButtonSize = propsGenerator.primaryButtonSize, primaryButtonWidth = propsGenerator.primaryButtonWidth, secondaryButtonAfter = propsGenerator.secondaryButtonAfter, secondaryButtonAppearance = propsGenerator.secondaryButtonAppearance, secondaryButtonBefore = propsGenerator.secondaryButtonBefore, secondaryButtonFill = propsGenerator.secondaryButtonFill, secondaryButtonFillHover = propsGenerator.secondaryButtonFillHover, secondaryButtonLabel = propsGenerator.secondaryButtonLabel, secondaryButtonLabelTextColor = propsGenerator.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = propsGenerator.secondaryButtonLabelTextSize, secondaryButtonShape = propsGenerator.secondaryButtonShape, secondaryButtonSize = propsGenerator.secondaryButtonSize, secondaryButtonWidth = propsGenerator.secondaryButtonWidth, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc;
|
|
155
|
+
// TODO: use Icon instead?
|
|
153
156
|
var ImageComponent = useMemo(function () {
|
|
154
157
|
var src = imageSrc || svgSrc;
|
|
155
158
|
var Image = SvgImage;
|
|
@@ -183,7 +186,7 @@ function Response(props) {
|
|
|
183
186
|
secondaryButtonLabel ||
|
|
184
187
|
secondaryButton ||
|
|
185
188
|
appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
|
|
186
|
-
}
|
|
189
|
+
});
|
|
187
190
|
var removeFillStroke = function (code) {
|
|
188
191
|
return code
|
|
189
192
|
.replace(/fill=".*?"/g, 'fill=""')
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import SVG from 'react-inlinesvg';
|
|
4
|
+
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
4
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
7
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
8
|
import 'react';
|
|
9
|
+
import '@itcase/common';
|
|
10
|
+
import '../context/UrlAssetPrefix.js';
|
|
8
11
|
import 'lodash/camelCase';
|
|
9
12
|
import 'lodash/castArray';
|
|
10
13
|
import 'lodash/upperFirst';
|
|
11
14
|
import '../context/Notifications.js';
|
|
12
15
|
import 'uuid';
|
|
13
|
-
import '@itcase/common';
|
|
14
16
|
import '../context/UIContext.js';
|
|
15
17
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
16
18
|
import 'react-responsive';
|
|
@@ -18,13 +20,13 @@ import '../utils/setViewportProperty.js';
|
|
|
18
20
|
import 'lodash/maxBy';
|
|
19
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
22
|
|
|
21
|
-
function SVGContent(props) {
|
|
23
|
+
var SVGContent = urlWithAssetPrefix(function SVGContent(props) {
|
|
22
24
|
var className = props.className, src = props.src, SvgImage = props.SvgImage;
|
|
23
25
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
24
26
|
var svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass;
|
|
25
27
|
// @ts-expect-error
|
|
26
28
|
var svgContentStyles = useStyles(props).styles;
|
|
27
29
|
return (jsxs("div", { className: clsx(className, 'svg-content', svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass)), style: svgContentStyles, children: [src && jsx(SVG, { src: src }), SvgImage && jsx(SvgImage, {})] }));
|
|
28
|
-
}
|
|
30
|
+
});
|
|
29
31
|
|
|
30
32
|
export { SVGContent };
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../
|
|
8
|
+
import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -21,6 +21,8 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
25
|
+
import '../context/UrlAssetPrefix.js';
|
|
24
26
|
import '../Link_es_DxtZLeKY.js';
|
|
25
27
|
import 'react-scrollbars-custom';
|
|
26
28
|
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from '../
|
|
5
|
+
import { I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -18,6 +18,8 @@ import 'react-responsive';
|
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import 'react-inlinesvg';
|
|
21
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
22
|
+
import '../context/UrlAssetPrefix.js';
|
|
21
23
|
import '../Link_es_DxtZLeKY.js';
|
|
22
24
|
import 'lodash/castArray';
|
|
23
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon, B as Badge } from '../
|
|
4
|
+
import { I as Icon, B as Badge } from '../Tooltip_es_Y2aoFQW7.js';
|
|
5
5
|
import React, { useRef, useCallback, useEffect, useMemo } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -22,6 +22,8 @@ import 'react-responsive';
|
|
|
22
22
|
import '../utils/setViewportProperty.js';
|
|
23
23
|
import '../hooks/useStyles/styleAttributes.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
26
|
+
import '../context/UrlAssetPrefix.js';
|
|
25
27
|
import '../Link_es_DxtZLeKY.js';
|
|
26
28
|
import 'lodash/castArray';
|
|
27
29
|
|
|
@@ -49,7 +51,7 @@ var selectAppearanceDefault = {
|
|
|
49
51
|
noOptionsText: 'Ничего не найдено...',
|
|
50
52
|
noOptionsTextColor: 'surfaceTextPrimary',
|
|
51
53
|
optionFill: 'surfacePrimary',
|
|
52
|
-
optionFillHover: '
|
|
54
|
+
optionFillHover: 'surfaceSecondary',
|
|
53
55
|
optionTextColor: 'surfaceTextPrimary',
|
|
54
56
|
placeholder: 'Выбрать...',
|
|
55
57
|
placeholderTextColor: 'surfaceTextQuaternary',
|
|
@@ -225,7 +227,7 @@ var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
|
|
|
225
227
|
return {};
|
|
226
228
|
}, [appearance]);
|
|
227
229
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
228
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass,
|
|
230
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, elevation = propsGenerator.elevation, badgeTextSize = propsGenerator.badgeTextSize, clearIconFill = propsGenerator.clearIconFill, dividerFill = propsGenerator.dividerFill, dropdownFillHover = propsGenerator.dropdownFillHover, dropdownIconFill = propsGenerator.dropdownIconFill, dropdownIconShape = propsGenerator.dropdownIconShape, headingFillClass = propsGenerator.headingFillClass, headingFillHoverClass = propsGenerator.headingFillHoverClass, headingTextColorClass = propsGenerator.headingTextColorClass, headingTextSizeClass = propsGenerator.headingTextSizeClass, headingTextWeightClass = propsGenerator.headingTextWeightClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, inputBorderColorHoverClass = propsGenerator.inputBorderColorHoverClass, inputCaretColorClass = propsGenerator.inputCaretColorClass, inputFillClass = propsGenerator.inputFillClass, inputShapeClass = propsGenerator.inputShapeClass, inputTextColorClass = propsGenerator.inputTextColorClass, inputTextSizeClass = propsGenerator.inputTextSizeClass, multipleItemFill = propsGenerator.multipleItemFill, multipleItemFillHover = propsGenerator.multipleItemFillHover, multipleItemIcon = propsGenerator.multipleItemIcon, multipleItemIconFill = propsGenerator.multipleItemIconFill, multipleItemTextColorClass = propsGenerator.multipleItemTextColorClass, multipleItemTextSizeClass = propsGenerator.multipleItemTextSizeClass, noOptionsTextColorClass = propsGenerator.noOptionsTextColorClass, noOptionsTextSizeClass = propsGenerator.noOptionsTextSizeClass, optionBorderClass = propsGenerator.optionBorderClass, optionBorderTypeClass = propsGenerator.optionBorderTypeClass, optionFillClass = propsGenerator.optionFillClass, optionFillHoverClass = propsGenerator.optionFillHoverClass, optionShapeClass = propsGenerator.optionShapeClass, optionTextColorClass = propsGenerator.optionTextColorClass, optionTextSizeClass = propsGenerator.optionTextSizeClass, placeholderTextColor = propsGenerator.placeholderTextColor, placeholderTextSize = propsGenerator.placeholderTextSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
229
231
|
return (jsx(SelectComponent, { className: clsx(className, 'select', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "select_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), sizeClass && "select_size_".concat(sizeClass), hideValueContainer && 'select_state_hide-value-container', set && "select_set_".concat(set), widthClass && "select_width_".concat(widthClass)), elevation: elevation, isDisabled: isDisabled, badgeAppearance: badgeAppearance, badgeSize: badgeSize, badgeTextSize: badgeTextSize, classNamePrefix: "select", clearIcon: clearIcon, clearIconFill: clearIconFill, components: {
|
|
230
232
|
IndicatorSeparator: function () { return null; },
|
|
231
233
|
ClearIndicator: SelectClearIndicator,
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { b as Title } from '../
|
|
7
|
+
import { b as Title } from '../Tooltip_es_Y2aoFQW7.js';
|
|
8
8
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -20,6 +20,8 @@ import 'lodash/maxBy';
|
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
24
|
+
import '../context/UrlAssetPrefix.js';
|
|
23
25
|
import '../Link_es_DxtZLeKY.js';
|
|
24
26
|
|
|
25
27
|
function Swiper(props) {
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { B as Badge, I as Icon } from '../
|
|
7
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
|
|
8
8
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
9
9
|
import { L as Link } from '../Link_es_DxtZLeKY.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
@@ -21,6 +21,8 @@ import '../utils/setViewportProperty.js';
|
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
25
|
+
import '../context/UrlAssetPrefix.js';
|
|
24
26
|
|
|
25
27
|
var tabAppearanceError = {
|
|
26
28
|
errorPrimary: {
|
|
@@ -51,7 +51,7 @@ var textareaAppearanceDefault = {
|
|
|
51
51
|
|
|
52
52
|
var textareaAppearanceDisabled = {
|
|
53
53
|
disabledPrimary: {
|
|
54
|
-
fill: '
|
|
54
|
+
fill: 'surfaceDisabled',
|
|
55
55
|
borderColor: 'errorBorderQuaternary',
|
|
56
56
|
borderHover: 'errorBorderQuaternary',
|
|
57
57
|
textColor: 'surfaceTextQuaternary',
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { b as Title, B as Badge, I as Icon } from '../
|
|
6
|
+
import { b as Title, B as Badge, I as Icon } from '../Tooltip_es_Y2aoFQW7.js';
|
|
7
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/camelCase';
|
|
@@ -19,6 +19,8 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
23
|
+
import '../context/UrlAssetPrefix.js';
|
|
22
24
|
import '../Link_es_DxtZLeKY.js';
|
|
23
25
|
|
|
24
26
|
var tileAppearanceSize = {
|
package/dist/components/Title.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as Title, d as titleAppearance, c as titleConfig } from '../
|
|
1
|
+
export { b as Title, d as titleAppearance, c as titleConfig } from '../Tooltip_es_Y2aoFQW7.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,4 +19,6 @@ import 'lodash/maxBy';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Text_es_BfLRfj-5.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
23
|
+
import '../context/UrlAssetPrefix.js';
|
|
22
24
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../
|
|
1
|
+
export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip_es_Y2aoFQW7.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,4 +19,6 @@ import 'lodash/maxBy';
|
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
20
|
import '../Text_es_BfLRfj-5.js';
|
|
21
21
|
import 'react-inlinesvg';
|
|
22
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
23
|
+
import '../context/UrlAssetPrefix.js';
|
|
22
24
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { createContext, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
var UrlAssetPrefixContext = createContext({
|
|
5
|
+
assetPrefix: undefined,
|
|
6
|
+
ignorePathsList: undefined,
|
|
7
|
+
});
|
|
8
|
+
function UrlAssetPrefixProvider(props) {
|
|
9
|
+
var assetPrefix = props.assetPrefix, ignorePathsList = props.ignorePathsList, children = props.children;
|
|
10
|
+
var value = useMemo(function () { return ({ assetPrefix: assetPrefix, ignorePathsList: ignorePathsList }); }, [assetPrefix, ignorePathsList]);
|
|
11
|
+
return (jsx(UrlAssetPrefixContext.Provider, { value: value, children: children }));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { UrlAssetPrefixContext, UrlAssetPrefixProvider };
|
|
@@ -109,6 +109,30 @@
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
+
.dropdown__item {
|
|
113
|
+
&&_skeleton {
|
|
114
|
+
background-size: 200% !important;
|
|
115
|
+
border: none;
|
|
116
|
+
animation: dropdownItemSkeleton 3s infinite linear !important;
|
|
117
|
+
background-image: linear-gradient(
|
|
118
|
+
90deg,
|
|
119
|
+
var(--color-surface-fill-secondary),
|
|
120
|
+
var(--color-surface-fill-tertiary),
|
|
121
|
+
var(--color-surface-fill-secondary)
|
|
122
|
+
) !important;
|
|
123
|
+
& * {
|
|
124
|
+
opacity: 0%;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@keyframes dropdownItemSkeleton {
|
|
129
|
+
0% {
|
|
130
|
+
background-position: 200%;
|
|
131
|
+
}
|
|
132
|
+
100% {
|
|
133
|
+
background-position: -200%;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
112
136
|
:root {
|
|
113
137
|
--dropdown-item-transition: all 0.2s ease 0s;
|
|
114
138
|
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
31
31
|
&_size_$(size) {
|
|
32
32
|
^&__input {
|
|
33
|
-
min-width: var(--pagination-input-size-$(size)-min-width);
|
|
34
|
-
min-height: var(--pagination-input-size-$(size)-min-height);
|
|
35
33
|
padding: var(--pagination-input-size-$(size)-padding);
|
|
36
34
|
gap: var(--pagination-input-size-$(size)-gap);
|
|
37
35
|
}
|
|
@@ -48,13 +46,34 @@
|
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
}
|
|
49
|
+
.pagination {
|
|
50
|
+
&&_skeleton {
|
|
51
|
+
background-size: 200% !important;
|
|
52
|
+
border: none;
|
|
53
|
+
animation: paginationSkeleton 3s infinite linear !important;
|
|
54
|
+
background-image: linear-gradient(
|
|
55
|
+
90deg,
|
|
56
|
+
var(--color-surface-fill-secondary),
|
|
57
|
+
var(--color-surface-fill-tertiary),
|
|
58
|
+
var(--color-surface-fill-secondary)
|
|
59
|
+
) !important;
|
|
60
|
+
& * {
|
|
61
|
+
opacity: 0%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@keyframes paginationSkeleton {
|
|
66
|
+
0% {
|
|
67
|
+
background-position: 200%;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
background-position: -200%;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
51
73
|
.pagination {
|
|
52
74
|
&__container {
|
|
53
75
|
margin: var(--paginator-margin);
|
|
54
76
|
^&__item {
|
|
55
|
-
width: var(--paginator-item-width);
|
|
56
|
-
height: var(--paginator-item-height);
|
|
57
|
-
background: var(--paginator-item-default-fill);
|
|
58
77
|
border: var(
|
|
59
78
|
--paginator-item-border,
|
|
60
79
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -63,9 +82,6 @@
|
|
|
63
82
|
display: flex;
|
|
64
83
|
transition: var(--paginator-item-transition);
|
|
65
84
|
cursor: pointer;
|
|
66
|
-
&:hover {
|
|
67
|
-
background: var(--paginator-item-default-fill-hover);
|
|
68
|
-
}
|
|
69
85
|
&_break {
|
|
70
86
|
display: flex;
|
|
71
87
|
^&-link {
|
|
@@ -76,31 +92,37 @@
|
|
|
76
92
|
&-link {
|
|
77
93
|
width: 100%;
|
|
78
94
|
height: 100%;
|
|
79
|
-
color: var(--paginator-item-default-text);
|
|
80
95
|
display: flex;
|
|
81
96
|
justify-content: center;
|
|
82
97
|
align-items: center;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
border: solid 1px var(--paginator-item-active-border);
|
|
91
|
-
&&_state {
|
|
92
|
-
&_active {
|
|
93
|
-
background: var(--paginator-item-active-fill);
|
|
94
|
-
&:hover {
|
|
95
|
-
background: var(--paginator-item-active-fill-hover);
|
|
96
|
-
}
|
|
97
|
-
^^&-link {
|
|
98
|
-
color: var(--paginator-item-active-text);
|
|
98
|
+
|
|
99
|
+
&_size {
|
|
100
|
+
@each $size in xs, s, m, l {
|
|
101
|
+
&_$(size) {
|
|
102
|
+
@mixin text-$(size);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
99
105
|
}
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
}
|
|
103
109
|
}
|
|
110
|
+
/* .pagination { */
|
|
111
|
+
/* &__item { */
|
|
112
|
+
/* border: solid 1px var(--paginator-item-active-border); */
|
|
113
|
+
/* &&_state { */
|
|
114
|
+
/* &_active { */
|
|
115
|
+
/* background: var(--paginator-item-active-fill); */
|
|
116
|
+
/* &:hover { */
|
|
117
|
+
/* background: var(--paginator-item-active-fill-hover); */
|
|
118
|
+
/* } */
|
|
119
|
+
/* ^^&-link { */
|
|
120
|
+
/* color: var(--paginator-item-active-text); */
|
|
121
|
+
/* } */
|
|
122
|
+
/* } */
|
|
123
|
+
/* } */
|
|
124
|
+
/* } */
|
|
125
|
+
/* } */
|
|
104
126
|
.pagination {
|
|
105
127
|
&__item {
|
|
106
128
|
&&_state {
|
|
@@ -121,11 +143,34 @@
|
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
145
|
}
|
|
146
|
+
.pagination__item {
|
|
147
|
+
@each $size in l, m, s, xs {
|
|
148
|
+
&_size_$(size) {
|
|
149
|
+
width: var(--paginator-item-$(size)-width) !important;
|
|
150
|
+
height: var(--paginator-item-$(size)-height) !important;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
124
154
|
:root {
|
|
125
155
|
--paginator-margin: 0;
|
|
126
156
|
|
|
127
|
-
--paginator-item-width:
|
|
128
|
-
--paginator-item-height:
|
|
157
|
+
--paginator-item-l-width: 40px;
|
|
158
|
+
--paginator-item-l-height: 40px;
|
|
159
|
+
|
|
160
|
+
--paginator-item-m-width: 32px;
|
|
161
|
+
--paginator-item-m-height: 32px;
|
|
162
|
+
|
|
163
|
+
--paginator-item-s-width: 24px;
|
|
164
|
+
--paginator-item-s-height: 24px;
|
|
165
|
+
|
|
166
|
+
--paginator-item-xs-width: 20px;
|
|
167
|
+
--paginator-item-xs-height: 20px;
|
|
168
|
+
|
|
169
|
+
--paginator-item-l-padding: 0 12px;
|
|
170
|
+
--paginator-item-m-padding: 0 12px;
|
|
171
|
+
--paginator-item-s-padding: 0 8px;
|
|
172
|
+
--paginator-item-xs-padding: 0 6px;
|
|
173
|
+
|
|
129
174
|
--paginator-item-border: none;
|
|
130
175
|
--paginator-item-border-radius: 50%;
|
|
131
176
|
--pagination-input-color: none;
|
|
@@ -151,8 +196,15 @@
|
|
|
151
196
|
--paginator-item-disabled-text: var(--color-surface-text-primary);
|
|
152
197
|
--paginator-item-disabled-icon: var(--color-surface-item-disabled);
|
|
153
198
|
|
|
154
|
-
--pagination-input-size-
|
|
199
|
+
--pagination-input-size-l-padding: 10px 12px;
|
|
200
|
+
--pagination-input-size-l-gap: 4px;
|
|
201
|
+
|
|
202
|
+
--pagination-input-size-m-padding: 7px 12px;
|
|
155
203
|
--pagination-input-size-m-gap: 4px;
|
|
156
|
-
|
|
157
|
-
--pagination-input-size-
|
|
204
|
+
|
|
205
|
+
--pagination-input-size-s-padding: 4px 8px;
|
|
206
|
+
--pagination-input-size-s-gap: 2px;
|
|
207
|
+
|
|
208
|
+
--pagination-input-size-xs-padding: 2px 6px;
|
|
209
|
+
--pagination-input-size-xs-gap: 2px;
|
|
158
210
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
&__container {
|
|
3
3
|
margin: var(--paginator-margin);
|
|
4
4
|
^&__item {
|
|
5
|
-
width: var(--paginator-item-width);
|
|
6
|
-
height: var(--paginator-item-height);
|
|
7
|
-
background: var(--paginator-item-default-fill);
|
|
8
5
|
border: var(
|
|
9
6
|
--paginator-item-border,
|
|
10
7
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -13,9 +10,6 @@
|
|
|
13
10
|
display: flex;
|
|
14
11
|
transition: var(--paginator-item-transition);
|
|
15
12
|
cursor: pointer;
|
|
16
|
-
&:hover {
|
|
17
|
-
background: var(--paginator-item-default-fill-hover);
|
|
18
|
-
}
|
|
19
13
|
&_break {
|
|
20
14
|
display: flex;
|
|
21
15
|
^&-link {
|
|
@@ -26,11 +20,17 @@
|
|
|
26
20
|
&-link {
|
|
27
21
|
width: 100%;
|
|
28
22
|
height: 100%;
|
|
29
|
-
color: var(--paginator-item-default-text);
|
|
30
23
|
display: flex;
|
|
31
24
|
justify-content: center;
|
|
32
25
|
align-items: center;
|
|
33
|
-
|
|
26
|
+
|
|
27
|
+
&_size {
|
|
28
|
+
@each $size in xs, s, m, l {
|
|
29
|
+
&_$(size) {
|
|
30
|
+
@mixin text-$(size);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.pagination {
|
|
2
|
-
&__item {
|
|
3
|
-
border: solid 1px var(--paginator-item-active-border);
|
|
4
|
-
&&_state {
|
|
5
|
-
&_active {
|
|
6
|
-
background: var(--paginator-item-active-fill);
|
|
7
|
-
&:hover {
|
|
8
|
-
background: var(--paginator-item-active-fill-hover);
|
|
9
|
-
}
|
|
10
|
-
^^&-link {
|
|
11
|
-
color: var(--paginator-item-active-text);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
/* .pagination { */
|
|
2
|
+
/* &__item { */
|
|
3
|
+
/* border: solid 1px var(--paginator-item-active-border); */
|
|
4
|
+
/* &&_state { */
|
|
5
|
+
/* &_active { */
|
|
6
|
+
/* background: var(--paginator-item-active-fill); */
|
|
7
|
+
/* &:hover { */
|
|
8
|
+
/* background: var(--paginator-item-active-fill-hover); */
|
|
9
|
+
/* } */
|
|
10
|
+
/* ^^&-link { */
|
|
11
|
+
/* color: var(--paginator-item-active-text); */
|
|
12
|
+
/* } */
|
|
13
|
+
/* } */
|
|
14
|
+
/* } */
|
|
15
|
+
/* } */
|
|
16
|
+
/* } */
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
&__item {
|
|
7
|
-
min-width: 16px;
|
|
8
|
-
min-height: 16px;
|
|
9
7
|
font-size: 0;
|
|
10
8
|
line-height: 0;
|
|
11
9
|
margin: 2px 0 0 0;
|
|
@@ -15,8 +13,7 @@
|
|
|
15
13
|
cursor: pointer;
|
|
16
14
|
grid-row-start: span 2;
|
|
17
15
|
^&__input {
|
|
18
|
-
|
|
19
|
-
height: 100%;
|
|
16
|
+
inset: 0;
|
|
20
17
|
font-size: 0;
|
|
21
18
|
line-height: 0;
|
|
22
19
|
margin: 0;
|
|
@@ -54,8 +51,50 @@
|
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
|
-
|
|
54
|
+
.radio {
|
|
55
|
+
@each $size in m, xs, xxs {
|
|
56
|
+
&_size_$(size) {
|
|
57
|
+
^&__item {
|
|
58
|
+
min-width: var(--radio-$(size)-min-width);
|
|
59
|
+
min-height: var(--radio-$(size)-min-height);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.radio {
|
|
65
|
+
&&_skeleton {
|
|
66
|
+
background-size: 200% !important;
|
|
67
|
+
border: none;
|
|
68
|
+
animation: radioSkeleton 3s infinite linear !important;
|
|
69
|
+
background-image: linear-gradient(
|
|
70
|
+
90deg,
|
|
71
|
+
var(--color-surface-fill-secondary),
|
|
72
|
+
var(--color-surface-fill-tertiary),
|
|
73
|
+
var(--color-surface-fill-secondary)
|
|
74
|
+
) !important;
|
|
75
|
+
& * {
|
|
76
|
+
opacity: 0%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@keyframes radioSkeleton {
|
|
81
|
+
0% {
|
|
82
|
+
background-position: 200%;
|
|
83
|
+
}
|
|
84
|
+
100% {
|
|
85
|
+
background-position: -200%;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
58
88
|
:root {
|
|
89
|
+
--radio-m-min-width: 16px;
|
|
90
|
+
--radio-m-min-height: 16px;
|
|
91
|
+
|
|
92
|
+
--radio-xs-min-width: 12px;
|
|
93
|
+
--radio-xs-min-height: 12px;
|
|
94
|
+
|
|
95
|
+
--radio-xxs-min-width: 10px;
|
|
96
|
+
--radio-xxs-min-height: 10px;
|
|
97
|
+
|
|
59
98
|
--radio-state-border-hover: var(--color-surface-border-tertiary);
|
|
60
99
|
--radio-success-border: var(--color-surface-border-tertiary);
|
|
61
100
|
--radio-shape-rounded: 0;
|