@itcase/ui 1.8.19 → 1.8.21
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_CiQ14ufF.js +240 -0
- package/dist/Avatar_es_No9vSqji.js +236 -0
- package/dist/{Button_cjs_DjCsrrlr.js → Button_cjs_CnStmeGt.js} +12 -4
- package/dist/{Button_es_CHDT0-8K.js → Button_es_BV1bepl1.js} +12 -4
- package/dist/{ChipsGroup_cjs_CTpMiyQb.js → ChipsGroup_cjs_CL00pWKy.js} +2 -2
- package/dist/{ChipsGroup_es_CP_xm25C.js → ChipsGroup_es_Ciln2otW.js} +2 -2
- package/dist/{DatePicker_cjs_DPtOL1eW.js → DatePicker_cjs_DGgkpGbI.js} +4 -4
- package/dist/{DatePicker_es_DCuzMD0T.js → DatePicker_es_BIOyGm22.js} +4 -4
- package/dist/{DropdownItem_cjs_DW0UXopm.js → DropdownItem_cjs_DT-zspEr.js} +15 -15
- package/dist/{DropdownItem_es_vuNthDPa.js → DropdownItem_es_BJLFqVuH.js} +15 -15
- package/dist/{Group_cjs_B0oM0pjF.js → Group_cjs_Cwt0gWk4.js} +9 -2
- package/dist/{Group_es_B8pQHYsC.js → Group_es_CYW2Hquh.js} +9 -2
- package/dist/{Image_cjs_DuIBtUq5.js → Image_cjs_CCWqbNn4.js} +11 -3
- package/dist/{Image_es_CSzHhlA1.js → Image_es_DZUVp0FS.js} +11 -3
- package/dist/{Label_cjs_mw4pHZR1.js → Label_cjs_Cqcf6ffp.js} +2 -2
- package/dist/{Label_es_CiPEDFcR.js → Label_es_CeNdA70T.js} +2 -2
- package/dist/Link_cjs_BlXrJ15R.js +303 -0
- package/dist/Link_es_CyJn7NFb.js +298 -0
- package/dist/{Loader_cjs_DZbIy6Ko.js → Loader_cjs_3VRzFLI2.js} +14 -2
- package/dist/{Loader_es_SHdP0IkA.js → Loader_es_DEYowVdU.js} +14 -2
- package/dist/Text_cjs_DPhKj3wf.js +68 -0
- package/dist/{Text_es_D012qJ8s.js → Text_es_BRb3qqKM.js} +8 -3
- package/dist/{Tooltip_cjs_BKOjNMkt.js → Tooltip_cjs_Cq5kuaIK.js} +480 -17
- package/dist/{Tooltip_es_C7zstTA2.js → Tooltip_es_D0PSqI2c.js} +480 -17
- package/dist/cjs/components/Accordion.js +3 -3
- package/dist/cjs/components/Avatar.js +13 -236
- package/dist/cjs/components/AvatarStack.js +35 -0
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +3 -3
- package/dist/cjs/components/Button.js +5 -5
- package/dist/cjs/components/Cell.js +4 -4
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Chips.js +4 -4
- package/dist/cjs/components/Choice.js +6 -6
- package/dist/cjs/components/CookiesWarning.js +13 -6
- package/dist/cjs/components/DatePeriod.js +8 -8
- package/dist/cjs/components/DatePicker.js +7 -7
- package/dist/cjs/components/Drawer.js +26 -2
- package/dist/cjs/components/Dropdown.js +5 -2
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +3 -3
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/InputPassword.js +226 -46
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/ModalSheetBottom.js +7 -0
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +11 -9
- package/dist/cjs/components/Panel.js +2 -2
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +227 -183
- package/dist/cjs/components/Search.js +126 -13
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +3 -3
- package/dist/cjs/components/Switch.js +238 -3
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +240 -5
- package/dist/cjs/components/Title.js +3 -3
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/Avatar.js +10 -237
- package/dist/components/AvatarStack.js +33 -0
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +3 -3
- package/dist/components/Button.js +5 -5
- package/dist/components/Cell.js +4 -4
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chips.js +4 -4
- package/dist/components/Choice.js +6 -6
- package/dist/components/CookiesWarning.js +13 -7
- package/dist/components/DatePeriod.js +8 -8
- package/dist/components/DatePicker.js +7 -7
- package/dist/components/Drawer.js +26 -2
- package/dist/components/Dropdown.js +5 -2
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/Image.js +2 -2
- package/dist/components/InputPassword.js +226 -45
- package/dist/components/Label.js +4 -4
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalSheetBottom.js +7 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +11 -9
- package/dist/components/Panel.js +2 -2
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +227 -183
- package/dist/components/Search.js +126 -13
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +3 -3
- package/dist/components/Switch.js +238 -3
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +240 -5
- package/dist/components/Title.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/css/components/AvatarStack/AvatarStack.css +67 -0
- package/dist/css/components/Icon/Icon.css +128 -4
- package/dist/css/components/Text/Text.css +0 -9
- package/dist/css/styles/border-color/border-color_hover.css +6 -8
- package/dist/css/styles/fill/fill_active.css +19 -9
- package/dist/css/styles/fill/fill_active_hover.css +19 -0
- package/dist/css/styles/fill/fill_hover.css +19 -0
- package/dist/css/styles/text-color/text-color_active.css +17 -0
- package/dist/css/styles/text-color/text-color_active_hover.css +40 -0
- package/dist/stories/index.stories.js +49 -0
- package/dist/stories/useDevicePropsGenerator.mdx +76 -102
- package/dist/stories/useMediaQueries.mdx +32 -7
- package/dist/stories/useStyles.mdx +50 -2
- package/dist/types/components/AvatarStack/AvatarStack.d.ts +3 -0
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -0
- package/dist/types/components/AvatarStack/index.d.ts +2 -0
- package/dist/types/components/Button/appearance/buttonDanger.d.ts +8 -0
- package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +5 -0
- package/dist/types/components/CookiesWarning/index.d.ts +2 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +25 -0
- package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +0 -6
- package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +5 -0
- package/dist/types/components/InputPassword/InputPassword.appearance.d.ts +2 -3
- package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -11
- package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +7 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordDisabled.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +11 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +21 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +8 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordRequire.d.ts +20 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +8 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +59 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordStyle.d.ts +16 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +11 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +25 -0
- package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +11 -0
- package/dist/types/components/InputPassword/index.d.ts +1 -1
- package/dist/types/components/Link/appearance/linkAccent.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkDanger.d.ts +7 -0
- package/dist/types/components/Link/appearance/linkDisabled.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkError.d.ts +11 -0
- package/dist/types/components/Link/appearance/linkInfo.d.ts +21 -0
- package/dist/types/components/Link/appearance/linkPrimary.d.ts +8 -0
- package/dist/types/components/Link/appearance/linkRequire.d.ts +20 -0
- package/dist/types/components/Link/appearance/linkSecondary.d.ts +8 -0
- package/dist/types/components/Link/appearance/linkSize.d.ts +59 -0
- package/dist/types/components/Link/appearance/linkStyle.d.ts +16 -0
- package/dist/types/components/Link/appearance/linkSuccess.d.ts +11 -0
- package/dist/types/components/Link/appearance/linkSurface.d.ts +25 -0
- package/dist/types/components/Link/appearance/linkWarning.d.ts +11 -0
- package/dist/types/components/Loader/Loader.appearance.d.ts +3 -2
- package/dist/types/components/Loader/Loader.interface.d.ts +16 -17
- package/dist/types/components/Loader/appearance/loaderSize.d.ts +12 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +5 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +8 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Response/Response.appearance.d.ts +2 -2
- package/dist/types/components/Response/appearance/responseAccent.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseDanger.d.ts +7 -0
- package/dist/types/components/Response/appearance/responseDisabled.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseError.d.ts +11 -0
- package/dist/types/components/Response/appearance/responseInfo.d.ts +21 -0
- package/dist/types/components/Response/appearance/responsePrimary.d.ts +8 -0
- package/dist/types/components/Response/appearance/responseRequire.d.ts +20 -0
- package/dist/types/components/Response/appearance/responseSecondary.d.ts +8 -0
- package/dist/types/components/Response/appearance/responseSize.d.ts +59 -0
- package/dist/types/components/Response/appearance/responseStyle.d.ts +16 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +11 -0
- package/dist/types/components/Response/appearance/responseSurface.d.ts +25 -0
- package/dist/types/components/Response/appearance/responseWarning.d.ts +11 -0
- package/dist/types/components/Search/appearance/searchDefault.d.ts +24 -0
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchError.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchRequire.d.ts +20 -0
- package/dist/types/components/Search/appearance/searchSize.d.ts +18 -8
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +20 -0
- package/dist/types/components/Switch/Switch.appearance.d.ts +1 -1
- package/dist/types/components/Switch/appearance/switchAccent.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchDanger.d.ts +7 -0
- package/dist/types/components/Switch/appearance/switchDisabled.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchError.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchInfo.d.ts +21 -0
- package/dist/types/components/Switch/appearance/switchPrimary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchRequire.d.ts +20 -0
- package/dist/types/components/Switch/appearance/switchSecondary.d.ts +8 -0
- package/dist/types/components/Switch/appearance/switchSize.d.ts +59 -0
- package/dist/types/components/Switch/appearance/switchStyle.d.ts +16 -0
- package/dist/types/components/Switch/appearance/switchSuccess.d.ts +11 -0
- package/dist/types/components/Switch/appearance/switchSurface.d.ts +25 -0
- package/dist/types/components/Switch/appearance/switchWarning.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileAccent.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileDanger.d.ts +7 -0
- package/dist/types/components/Tile/appearance/tileDisabled.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileError.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileInfo.d.ts +21 -0
- package/dist/types/components/Tile/appearance/tilePrimary.d.ts +8 -0
- package/dist/types/components/Tile/appearance/tileRequire.d.ts +20 -0
- package/dist/types/components/Tile/appearance/tileSecondary.d.ts +8 -0
- package/dist/types/components/Tile/appearance/tileSize.d.ts +59 -0
- package/dist/types/components/Tile/appearance/tileStyle.d.ts +16 -0
- package/dist/types/components/Tile/appearance/tileSuccess.d.ts +11 -0
- package/dist/types/components/Tile/appearance/tileSurface.d.ts +25 -0
- package/dist/types/components/Tile/appearance/tileWarning.d.ts +11 -0
- package/dist/types/components/Title/Title.appearance.d.ts +2 -2
- package/dist/types/components/Title/Title.interface.d.ts +3 -3
- package/dist/types/components/Title/appearance/titleAccent.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleDanger.d.ts +7 -0
- package/dist/types/components/Title/appearance/titleDisabled.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleError.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleInfo.d.ts +21 -0
- package/dist/types/components/Title/appearance/titlePrimary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleRequire.d.ts +20 -0
- package/dist/types/components/Title/appearance/titleSecondary.d.ts +8 -0
- package/dist/types/components/Title/appearance/titleSize.d.ts +59 -0
- package/dist/types/components/Title/appearance/titleStyle.d.ts +16 -0
- package/dist/types/components/Title/appearance/titleSuccess.d.ts +11 -0
- package/dist/types/components/Title/appearance/titleSurface.d.ts +25 -0
- package/dist/types/components/Title/appearance/titleWarning.d.ts +11 -0
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +1 -1
- package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +7 -0
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +21 -0
- package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +20 -0
- package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +8 -0
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +59 -0
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +16 -0
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +11 -0
- package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +25 -0
- package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +11 -0
- package/package.json +7 -7
- package/dist/Link_cjs_yht44xJv.js +0 -68
- package/dist/Link_es_DkW06IM-.js +0 -63
- package/dist/Text_cjs_iL1l_7V1.js +0 -63
- package/dist/stories/Pagination.mdx +0 -11
- package/dist/stories/Tile.mdx +0 -11
|
@@ -6,9 +6,9 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Text = require('./
|
|
9
|
+
var Text = require('./Text_cjs_DPhKj3wf.js');
|
|
10
10
|
var SVG = require('react-inlinesvg');
|
|
11
|
-
var Link = require('./
|
|
11
|
+
var Link = require('./Link_cjs_BlXrJ15R.js');
|
|
12
12
|
|
|
13
13
|
var badgeAppearanceAccent = {
|
|
14
14
|
accent: {
|
|
@@ -511,7 +511,7 @@ var iconConfig = {
|
|
|
511
511
|
var Icon = React.forwardRef(function Icon(props, ref) {
|
|
512
512
|
// TODO: Tooltip doesn't work that anymore
|
|
513
513
|
// const [isTooltipVisible, setIsTooltipVisible] = useState(false)
|
|
514
|
-
var id = props.id, className = props.className, appearance = props.appearance, badgeClass = props.badgeClass, width = props.width, height = props.height, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
514
|
+
var id = props.id, className = props.className, appearance = props.appearance, badgeClass = props.badgeClass, width = props.width, isActive = props.isActive, height = props.height, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
515
515
|
var ImageComponent = React.useMemo(function () {
|
|
516
516
|
if (SvgImage) {
|
|
517
517
|
var sizes = {};
|
|
@@ -536,10 +536,19 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
536
536
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = iconConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
537
537
|
}, {});
|
|
538
538
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
539
|
-
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
539
|
+
var alignmentClass = propsGenerator.alignmentClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, fillSizeClass = propsGenerator.fillSizeClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconFillDisabledClass = propsGenerator.iconFillDisabledClass, badgeAppearance = propsGenerator.badgeAppearance, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, cursorClass = propsGenerator.cursorClass, iconFillActiveClass = propsGenerator.iconFillActiveClass, iconFillActiveHoverClass = propsGenerator.iconFillActiveHoverClass, iconFillClass = propsGenerator.iconFillClass, iconFillHoverClass = propsGenerator.iconFillHoverClass, iconSizeClass = propsGenerator.iconSizeClass, shapeClass = propsGenerator.shapeClass, tooltipAppearance = propsGenerator.tooltipAppearance, tooltipText = propsGenerator.tooltipText, tooltipTextSize = propsGenerator.tooltipTextSize, tooltipTitle = propsGenerator.tooltipTitle, tooltipTitleSize = propsGenerator.tooltipTitleSize;
|
|
540
540
|
// @ts-expect-error
|
|
541
541
|
var iconStyles = useStyles.useStyles(props).styles;
|
|
542
|
-
return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'icon',
|
|
542
|
+
return (jsxRuntime.jsxs("div", { id: id, className: clsx(className, 'icon', !isActive
|
|
543
|
+
? fillClass && "fill_".concat(fillClass)
|
|
544
|
+
: fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
|
|
545
|
+
? fillHoverClass && "fill_hover_".concat(fillHoverClass)
|
|
546
|
+
: fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), fillSizeClass && "icon_fill_size_".concat(fillSizeClass), fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isActive
|
|
547
|
+
? iconFillClass && "icon_fill_".concat(iconFillClass)
|
|
548
|
+
: iconFillActiveClass && "icon_fill_active_".concat(iconFillActiveClass), !isActive
|
|
549
|
+
? iconFillHoverClass && "icon_fill_hover_".concat(iconFillHoverClass)
|
|
550
|
+
: iconFillActiveHoverClass &&
|
|
551
|
+
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), iconFillDisabledClass && "icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxRuntime.jsxs(Link.LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), DefaultComponent: "div", href: link || href, rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: badgeAppearance, size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
543
552
|
});
|
|
544
553
|
var removeFillStroke = function (code) {
|
|
545
554
|
return code
|
|
@@ -547,12 +556,245 @@ var removeFillStroke = function (code) {
|
|
|
547
556
|
.replace(/stroke=".*?"/g, 'stroke=""');
|
|
548
557
|
};
|
|
549
558
|
|
|
550
|
-
var
|
|
551
|
-
|
|
559
|
+
var titleAppearanceAccent = {
|
|
560
|
+
accent: {
|
|
561
|
+
fill: 'accentPrimary',
|
|
562
|
+
fillHover: 'accentPrimaryHover',
|
|
563
|
+
},
|
|
564
|
+
accentPrimary: {
|
|
565
|
+
fill: 'accentPrimary',
|
|
566
|
+
fillHover: 'accentPrimaryHover',
|
|
567
|
+
borderColor: 'accentBorderPrimary',
|
|
568
|
+
},
|
|
569
|
+
accentSecondary: {
|
|
570
|
+
fill: 'accentPrimary',
|
|
571
|
+
fillHover: 'accentPrimaryHover',
|
|
572
|
+
labelTextColor: 'accentTextSecondary',
|
|
573
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
574
|
+
borderColor: 'accentBorderPrimary',
|
|
575
|
+
loaderItemFill: 'accentItemPrimary',
|
|
576
|
+
},
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
var titleAppearanceDanger = {
|
|
580
|
+
danger: {
|
|
581
|
+
fill: 'dangerPrimary',
|
|
582
|
+
fillHover: 'dangerPrimaryHover',
|
|
583
|
+
},
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
var titleAppearanceDisabled = {
|
|
587
|
+
disabledPrimary: {
|
|
588
|
+
fill: 'surfaceFillDisabled',
|
|
589
|
+
borderColor: 'errorBorderQuaternary',
|
|
590
|
+
borderHover: 'errorBorderQuaternary',
|
|
591
|
+
textColor: 'surfaceTextQuaternary',
|
|
592
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
593
|
+
iconClearFill: 'errorItemPrimary',
|
|
594
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
595
|
+
},
|
|
596
|
+
disabledSecondary: {
|
|
597
|
+
fill: 'surfaceSecondary',
|
|
598
|
+
borderColor: 'surfaceBorderTertiary',
|
|
599
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
600
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
601
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
602
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
var titleAppearanceError = {
|
|
607
|
+
error: {
|
|
608
|
+
fill: 'errorPrimary',
|
|
609
|
+
fillHover: 'errorPrimaryHover',
|
|
610
|
+
labelTextColor: 'errorTextPrimary',
|
|
611
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
612
|
+
loaderFill: 'errorPrimary',
|
|
613
|
+
loaderItemFill: 'errorItemPrimary',
|
|
614
|
+
},
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
var titleAppearanceInfo = {
|
|
618
|
+
info: {
|
|
619
|
+
fill: 'accentPrimary',
|
|
620
|
+
fillHover: 'accentPrimaryHover',
|
|
621
|
+
labelTextColor: 'accentTextPrimary',
|
|
622
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
623
|
+
borderColor: 'accentBorderPrimary',
|
|
624
|
+
loaderFill: 'accentPrimary',
|
|
625
|
+
loaderItemFill: 'accentItemPrimary',
|
|
626
|
+
},
|
|
627
|
+
infoSecondary: {
|
|
628
|
+
fill: 'accentPrimary',
|
|
629
|
+
fillHover: 'accentPrimaryHover',
|
|
630
|
+
labelTextColor: 'accentTextSecondary',
|
|
631
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
632
|
+
borderColor: 'accentBorderPrimary',
|
|
633
|
+
loaderFill: 'accentPrimary',
|
|
634
|
+
loaderItemFill: 'accentItemPrimary',
|
|
635
|
+
},
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
var titleAppearancePrimary = {
|
|
639
|
+
primary: {
|
|
640
|
+
fill: 'primaryPrimary',
|
|
641
|
+
fillHover: 'primaryPrimaryHover',
|
|
642
|
+
labelTextColor: 'primaryTextPrimary',
|
|
643
|
+
},
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
var titleAppearanceRequire = {
|
|
647
|
+
requirePrimary: {
|
|
648
|
+
fill: 'warningTertiary',
|
|
649
|
+
borderColor: 'warningBorderQuaternary',
|
|
650
|
+
borderHover: 'warningBorderQuaternary',
|
|
552
651
|
textColor: 'surfaceTextPrimary',
|
|
652
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
653
|
+
iconClearFill: 'warningItemPrimary',
|
|
654
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
655
|
+
},
|
|
656
|
+
requireSecondary: {
|
|
657
|
+
fill: 'surfaceSecondary',
|
|
658
|
+
borderColor: 'surfaceBorderTertiary',
|
|
659
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
660
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
661
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
662
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
663
|
+
},
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
var titleAppearanceSecondary = {
|
|
667
|
+
secondary: {
|
|
668
|
+
fill: 'secondaryPrimary',
|
|
669
|
+
fillHover: 'secondaryPrimaryHover',
|
|
670
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
671
|
+
},
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
var titleAppearanceSize = {
|
|
675
|
+
sizeXXL: {
|
|
676
|
+
size: 'xxl',
|
|
677
|
+
labelTextSize: 'xxl',
|
|
678
|
+
iconAfterFillSize: '24',
|
|
679
|
+
iconAfterSize: '24',
|
|
680
|
+
iconBeforeFillSize: '24',
|
|
681
|
+
iconBeforeSize: '24',
|
|
682
|
+
},
|
|
683
|
+
sizeXL: {
|
|
684
|
+
size: 'xl',
|
|
685
|
+
labelTextSize: 'l',
|
|
686
|
+
iconAfterFillSize: '24',
|
|
687
|
+
iconAfterSize: '24',
|
|
688
|
+
iconBeforeFillSize: '24',
|
|
689
|
+
iconBeforeSize: '24',
|
|
690
|
+
},
|
|
691
|
+
sizeL: {
|
|
692
|
+
size: 'l',
|
|
693
|
+
labelTextSize: 'l',
|
|
694
|
+
iconAfterFillSize: '24',
|
|
695
|
+
iconAfterSize: '24',
|
|
696
|
+
iconBeforeFillSize: '24',
|
|
697
|
+
iconBeforeSize: '24',
|
|
698
|
+
},
|
|
699
|
+
sizeM: {
|
|
700
|
+
size: 'm',
|
|
701
|
+
labelTextSize: 'm',
|
|
702
|
+
iconAfterFillSize: '24',
|
|
703
|
+
iconAfterSize: '24',
|
|
704
|
+
iconBeforeFillSize: '24',
|
|
705
|
+
iconBeforeSize: '24',
|
|
706
|
+
},
|
|
707
|
+
sizeS: {
|
|
708
|
+
size: 's',
|
|
709
|
+
labelTextSize: 's',
|
|
710
|
+
iconAfterFillSize: '20',
|
|
711
|
+
iconAfterSize: '20',
|
|
712
|
+
iconBeforeFillSize: '20',
|
|
713
|
+
iconBeforeSize: '20',
|
|
714
|
+
},
|
|
715
|
+
sizeXS: {
|
|
716
|
+
size: 'xs',
|
|
717
|
+
labelTextSize: 'xs',
|
|
718
|
+
iconAfterFillSize: '16',
|
|
719
|
+
iconAfterSize: '16',
|
|
720
|
+
iconBeforeFillSize: '16',
|
|
721
|
+
iconBeforeSize: '16',
|
|
722
|
+
},
|
|
723
|
+
sizeXXS: {
|
|
724
|
+
size: 'xxs',
|
|
725
|
+
labelTextSize: 'xs',
|
|
726
|
+
iconAfterFillSize: '14',
|
|
727
|
+
iconAfterSize: '14',
|
|
728
|
+
iconBeforeFillSize: '14',
|
|
729
|
+
iconBeforeSize: '14',
|
|
730
|
+
},
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
var titleAppearanceStyle = {
|
|
734
|
+
full: {
|
|
735
|
+
borderColor: '0',
|
|
736
|
+
},
|
|
737
|
+
ghost: {
|
|
738
|
+
fill: 'none',
|
|
739
|
+
borderColor: '0',
|
|
740
|
+
},
|
|
741
|
+
outlined: {
|
|
742
|
+
fill: 'none',
|
|
743
|
+
},
|
|
744
|
+
solid: {
|
|
745
|
+
borderColor: '0',
|
|
746
|
+
},
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
var titleAppearanceSuccess = {
|
|
750
|
+
success: {
|
|
751
|
+
fill: 'successPrimary',
|
|
752
|
+
fillHover: 'successPrimaryHover',
|
|
753
|
+
labelTextColor: 'successTextSecondary',
|
|
754
|
+
labelTextColorHover: 'successTextSecondary',
|
|
755
|
+
loaderFill: 'successPrimary',
|
|
756
|
+
loaderItemFill: 'successItemPrimary',
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
var titleAppearanceSurface = {
|
|
761
|
+
surfacePrimary: {
|
|
762
|
+
fill: 'surfacePrimary',
|
|
763
|
+
fillHover: 'surfacePrimaryHover',
|
|
764
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
765
|
+
},
|
|
766
|
+
surfaceQuaternary: {
|
|
767
|
+
fill: 'surfaceQuaternary',
|
|
768
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
769
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
770
|
+
},
|
|
771
|
+
surfaceSecondary: {
|
|
772
|
+
fill: 'surfaceSecondary',
|
|
773
|
+
fillHover: 'surfaceSecondaryHover',
|
|
774
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
775
|
+
loaderFill: 'surfaceSecondary',
|
|
776
|
+
loaderItemFill: 'surfaceItemPrimary',
|
|
777
|
+
},
|
|
778
|
+
surfaceTertiary: {
|
|
779
|
+
fill: 'surfaceTertiary',
|
|
780
|
+
fillHover: 'surfaceTertiaryHover',
|
|
781
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
782
|
+
},
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
var titleAppearanceWarning = {
|
|
786
|
+
warning: {
|
|
787
|
+
fill: 'warningPrimary',
|
|
788
|
+
fillHover: 'warningPrimaryHover',
|
|
789
|
+
labelTextColor: 'warningTextSecondary',
|
|
790
|
+
labelTextColorHover: 'warningTextSecondary',
|
|
791
|
+
loaderFill: 'warningPrimary',
|
|
792
|
+
loaderItemFill: 'warningItemPrimary',
|
|
553
793
|
},
|
|
554
794
|
};
|
|
555
795
|
|
|
796
|
+
var titleAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, titleAppearanceSize), titleAppearanceDisabled), titleAppearanceRequire), titleAppearanceStyle), titleAppearanceAccent), titleAppearanceDanger), titleAppearanceError), titleAppearanceInfo), titleAppearancePrimary), titleAppearanceSecondary), titleAppearanceSuccess), titleAppearanceSurface), titleAppearanceWarning);
|
|
797
|
+
|
|
556
798
|
var titleConfig = {
|
|
557
799
|
appearance: titleAppearance,
|
|
558
800
|
setAppearance: function (appearanceConfig) {
|
|
@@ -560,13 +802,13 @@ var titleConfig = {
|
|
|
560
802
|
},
|
|
561
803
|
};
|
|
562
804
|
function Title(props) {
|
|
563
|
-
var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper
|
|
805
|
+
var className = props.className, appearance = props.appearance, text = props.text, afterWrapper = props.afterWrapper, beforeWrapper = props.beforeWrapper, dataTour = props.dataTour, _a = props.tag, tag = _a === void 0 ? 'span' : _a, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
|
|
564
806
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
565
807
|
var _a;
|
|
566
808
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = titleConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
567
809
|
}, {});
|
|
568
810
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
569
|
-
var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc,
|
|
811
|
+
var directionClass = propsGenerator.directionClass, size = propsGenerator.size, fillClass = propsGenerator.fillClass, textAlignClass = propsGenerator.textAlignClass, textColorActiveClass = propsGenerator.textColorActiveClass, textColorClass = propsGenerator.textColorClass, textColorGradientClass = propsGenerator.textColorGradientClass, textColorHoverClass = propsGenerator.textColorHoverClass, textStyleClass = propsGenerator.textStyleClass, textTruncateClass = propsGenerator.textTruncateClass, textWeightClass = propsGenerator.textWeightClass, textWrap = propsGenerator.textWrap, dataTestId = propsGenerator.dataTestId, heightClass = propsGenerator.heightClass, iconAfter = propsGenerator.iconAfter, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconAfterSrc = propsGenerator.iconAfterSrc, iconBadgeAppearance = propsGenerator.iconBadgeAppearance, iconBadgeShape = propsGenerator.iconBadgeShape, iconBadgeSize = propsGenerator.iconBadgeSize, iconBadgeTextColor = propsGenerator.iconBadgeTextColor, iconBadgeTextSize = propsGenerator.iconBadgeTextSize, iconBadgeValue = propsGenerator.iconBadgeValue, iconBefore = propsGenerator.iconBefore, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, iconBeforeSrc = propsGenerator.iconBeforeSrc, svgFillClass = propsGenerator.svgFillClass, svgFillHoverClass = propsGenerator.svgFillHoverClass, typeClass = propsGenerator.typeClass, widthClass = propsGenerator.widthClass, wrapperDirectionClass = propsGenerator.wrapperDirectionClass;
|
|
570
812
|
// @ts-expect-error
|
|
571
813
|
var _b = useStyles.useStyles(props), titleStyles = _b.styles, titleWrapperStyles = _b.wrapper;
|
|
572
814
|
// Element type (h1, h2, ..., h6)
|
|
@@ -576,27 +818,248 @@ function Title(props) {
|
|
|
576
818
|
}
|
|
577
819
|
return size ? size : 'span';
|
|
578
820
|
}, [tag, size]);
|
|
579
|
-
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass),
|
|
821
|
+
return (jsxRuntime.jsxs(Tag, { className: clsx(className, 'title', fillClass && "fill_".concat(fillClass), svgFillClass && "svg_fill_".concat(svgFillClass), svgFillHoverClass && "svg_fill_hover_".concat(svgFillHoverClass), widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), size && "title_size_".concat(size), directionClass && "title_direction_".concat(directionClass), textColorClass && "text-color_".concat(textColorClass), textColorActiveClass && "text-color_active_".concat(textColorActiveClass), textColorHoverClass && "text-color_hover_".concat(textColorHoverClass), typeClass && "title_type_".concat(typeClass), textColorGradientClass && "text-gradient_".concat(textColorGradientClass), textStyleClass && "text-style_".concat(textStyleClass), textWeightClass && "text-weight_".concat(textWeightClass), textWrap && "word-wrap_".concat(textWrap), iconBadgeValue && 'title_badge', isSkeleton && 'title_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, style: titleStyles, onClick: onClick, children: [before, jsxRuntime.jsxs("span", { className: clsx(textAlignClass && "text-align_".concat(textAlignClass), wrapperDirectionClass && "title_direction_".concat(wrapperDirectionClass), 'title__wrapper', textTruncateClass && "text-truncate_".concat(textTruncateClass)), style: titleWrapperStyles, children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_before', iconBadgeValue && 'title__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), beforeWrapper, children || text, afterWrapper, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon, { className: clsx('title__icon_after', iconBadgeValue && 'title__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'title__icon_after_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }), after] }));
|
|
580
822
|
}
|
|
581
823
|
|
|
582
|
-
var
|
|
824
|
+
var tooltipAppearanceAccent = {
|
|
825
|
+
accent: {
|
|
826
|
+
fill: 'accentPrimary',
|
|
827
|
+
fillHover: 'accentPrimaryHover',
|
|
828
|
+
},
|
|
829
|
+
accentPrimary: {
|
|
830
|
+
fill: 'accentPrimary',
|
|
831
|
+
fillHover: 'accentPrimaryHover',
|
|
832
|
+
borderColor: 'accentBorderPrimary',
|
|
833
|
+
},
|
|
834
|
+
accentSecondary: {
|
|
835
|
+
fill: 'accentPrimary',
|
|
836
|
+
fillHover: 'accentPrimaryHover',
|
|
837
|
+
labelTextColor: 'accentTextSecondary',
|
|
838
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
839
|
+
borderColor: 'accentBorderPrimary',
|
|
840
|
+
loaderItemFill: 'accentItemPrimary',
|
|
841
|
+
},
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
var tooltipAppearanceDanger = {
|
|
845
|
+
danger: {
|
|
846
|
+
fill: 'dangerPrimary',
|
|
847
|
+
fillHover: 'dangerPrimaryHover',
|
|
848
|
+
},
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
var tooltipAppearanceDisabled = {
|
|
852
|
+
disabledPrimary: {
|
|
853
|
+
fill: 'surfaceFillDisabled',
|
|
854
|
+
borderColor: 'errorBorderQuaternary',
|
|
855
|
+
borderHover: 'errorBorderQuaternary',
|
|
856
|
+
textColor: 'surfaceTextQuaternary',
|
|
857
|
+
iconBeforeFill: 'errorItemQuaternary',
|
|
858
|
+
iconClearFill: 'errorItemPrimary',
|
|
859
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
860
|
+
},
|
|
861
|
+
disabledSecondary: {
|
|
862
|
+
fill: 'surfaceSecondary',
|
|
863
|
+
borderColor: 'surfaceBorderTertiary',
|
|
864
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
865
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
866
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
867
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
868
|
+
},
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
var tooltipAppearanceError = {
|
|
872
|
+
error: {
|
|
873
|
+
fill: 'errorPrimary',
|
|
874
|
+
fillHover: 'errorPrimaryHover',
|
|
875
|
+
labelTextColor: 'errorTextPrimary',
|
|
876
|
+
labelTextColorHover: 'errorTextPrimary',
|
|
877
|
+
loaderFill: 'errorPrimary',
|
|
878
|
+
loaderItemFill: 'errorItemPrimary',
|
|
879
|
+
},
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
var tooltipAppearanceInfo = {
|
|
883
|
+
info: {
|
|
884
|
+
fill: 'accentPrimary',
|
|
885
|
+
fillHover: 'accentPrimaryHover',
|
|
886
|
+
labelTextColor: 'accentTextPrimary',
|
|
887
|
+
labelTextColorHover: 'accentTextPrimary',
|
|
888
|
+
borderColor: 'accentBorderPrimary',
|
|
889
|
+
loaderFill: 'accentPrimary',
|
|
890
|
+
loaderItemFill: 'accentItemPrimary',
|
|
891
|
+
},
|
|
892
|
+
infoSecondary: {
|
|
893
|
+
fill: 'accentPrimary',
|
|
894
|
+
fillHover: 'accentPrimaryHover',
|
|
895
|
+
labelTextColor: 'accentTextSecondary',
|
|
896
|
+
labelTextColorHover: 'accentTextSecondary',
|
|
897
|
+
borderColor: 'accentBorderPrimary',
|
|
898
|
+
loaderFill: 'accentPrimary',
|
|
899
|
+
loaderItemFill: 'accentItemPrimary',
|
|
900
|
+
},
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
var tooltipAppearancePrimary = {
|
|
904
|
+
primary: {
|
|
905
|
+
fill: 'primaryPrimary',
|
|
906
|
+
fillHover: 'primaryPrimaryHover',
|
|
907
|
+
labelTextColor: 'primaryTextPrimary',
|
|
908
|
+
},
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
var tooltipAppearanceRequire = {
|
|
912
|
+
requirePrimary: {
|
|
913
|
+
fill: 'warningTertiary',
|
|
914
|
+
borderColor: 'warningBorderQuaternary',
|
|
915
|
+
borderHover: 'warningBorderQuaternary',
|
|
916
|
+
textColor: 'surfaceTextPrimary',
|
|
917
|
+
iconBeforeFill: 'warningItemQuaternary',
|
|
918
|
+
iconClearFill: 'warningItemPrimary',
|
|
919
|
+
placeholderTextColor: 'surfaceTextQuaternary',
|
|
920
|
+
},
|
|
921
|
+
requireSecondary: {
|
|
922
|
+
fill: 'surfaceSecondary',
|
|
923
|
+
borderColor: 'surfaceBorderTertiary',
|
|
924
|
+
borderHover: 'surfaceBorderQuaternary',
|
|
925
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
926
|
+
iconClearFill: 'surfaceItemPrimary',
|
|
927
|
+
placeholderTextColor: 'surfaceTextSecondary',
|
|
928
|
+
},
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
var tooltipAppearanceSecondary = {
|
|
932
|
+
secondary: {
|
|
933
|
+
fill: 'secondaryPrimary',
|
|
934
|
+
fillHover: 'secondaryPrimaryHover',
|
|
935
|
+
labelTextColor: 'secondaryTextPrimary',
|
|
936
|
+
},
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
var tooltipAppearanceSize = {
|
|
940
|
+
sizeXXL: {
|
|
941
|
+
size: 'xxl',
|
|
942
|
+
labelTextSize: 'xxl',
|
|
943
|
+
iconAfterFillSize: '24',
|
|
944
|
+
iconAfterSize: '24',
|
|
945
|
+
iconBeforeFillSize: '24',
|
|
946
|
+
iconBeforeSize: '24',
|
|
947
|
+
},
|
|
948
|
+
sizeXL: {
|
|
949
|
+
size: 'xl',
|
|
950
|
+
labelTextSize: 'l',
|
|
951
|
+
iconAfterFillSize: '24',
|
|
952
|
+
iconAfterSize: '24',
|
|
953
|
+
iconBeforeFillSize: '24',
|
|
954
|
+
iconBeforeSize: '24',
|
|
955
|
+
},
|
|
956
|
+
sizeL: {
|
|
957
|
+
size: 'l',
|
|
958
|
+
labelTextSize: 'l',
|
|
959
|
+
iconAfterFillSize: '24',
|
|
960
|
+
iconAfterSize: '24',
|
|
961
|
+
iconBeforeFillSize: '24',
|
|
962
|
+
iconBeforeSize: '24',
|
|
963
|
+
},
|
|
964
|
+
sizeM: {
|
|
965
|
+
size: 'm',
|
|
966
|
+
labelTextSize: 'm',
|
|
967
|
+
iconAfterFillSize: '24',
|
|
968
|
+
iconAfterSize: '24',
|
|
969
|
+
iconBeforeFillSize: '24',
|
|
970
|
+
iconBeforeSize: '24',
|
|
971
|
+
},
|
|
972
|
+
sizeS: {
|
|
973
|
+
size: 's',
|
|
974
|
+
labelTextSize: 's',
|
|
975
|
+
iconAfterFillSize: '20',
|
|
976
|
+
iconAfterSize: '20',
|
|
977
|
+
iconBeforeFillSize: '20',
|
|
978
|
+
iconBeforeSize: '20',
|
|
979
|
+
},
|
|
980
|
+
sizeXS: {
|
|
981
|
+
size: 'xs',
|
|
982
|
+
labelTextSize: 'xs',
|
|
983
|
+
iconAfterFillSize: '16',
|
|
984
|
+
iconAfterSize: '16',
|
|
985
|
+
iconBeforeFillSize: '16',
|
|
986
|
+
iconBeforeSize: '16',
|
|
987
|
+
},
|
|
988
|
+
sizeXXS: {
|
|
989
|
+
size: 'xxs',
|
|
990
|
+
labelTextSize: 'xs',
|
|
991
|
+
iconAfterFillSize: '14',
|
|
992
|
+
iconAfterSize: '14',
|
|
993
|
+
iconBeforeFillSize: '14',
|
|
994
|
+
iconBeforeSize: '14',
|
|
995
|
+
},
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
var tooltipAppearanceStyle = {
|
|
999
|
+
full: {
|
|
1000
|
+
borderColor: '0',
|
|
1001
|
+
},
|
|
1002
|
+
ghost: {
|
|
1003
|
+
fill: 'none',
|
|
1004
|
+
borderColor: '0',
|
|
1005
|
+
},
|
|
1006
|
+
outlined: {
|
|
1007
|
+
fill: 'none',
|
|
1008
|
+
},
|
|
1009
|
+
solid: {
|
|
1010
|
+
borderColor: '0',
|
|
1011
|
+
},
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
var tooltipAppearanceSuccess = {
|
|
1015
|
+
success: {
|
|
1016
|
+
fill: 'successPrimary',
|
|
1017
|
+
fillHover: 'successPrimaryHover',
|
|
1018
|
+
labelTextColor: 'successTextSecondary',
|
|
1019
|
+
labelTextColorHover: 'successTextSecondary',
|
|
1020
|
+
loaderFill: 'successPrimary',
|
|
1021
|
+
loaderItemFill: 'successItemPrimary',
|
|
1022
|
+
},
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
var tooltipAppearanceSurface = {
|
|
583
1026
|
surfacePrimary: {
|
|
584
1027
|
fill: 'surfacePrimary',
|
|
585
|
-
|
|
586
|
-
|
|
1028
|
+
fillHover: 'surfacePrimaryHover',
|
|
1029
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
1030
|
+
},
|
|
1031
|
+
surfaceQuaternary: {
|
|
1032
|
+
fill: 'surfaceQuaternary',
|
|
1033
|
+
fillHover: 'surfaceQuaternaryHover',
|
|
1034
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
587
1035
|
},
|
|
588
1036
|
surfaceSecondary: {
|
|
589
1037
|
fill: 'surfaceSecondary',
|
|
590
|
-
|
|
591
|
-
|
|
1038
|
+
fillHover: 'surfaceSecondaryHover',
|
|
1039
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
1040
|
+
loaderFill: 'surfaceSecondary',
|
|
1041
|
+
loaderItemFill: 'surfaceItemPrimary',
|
|
592
1042
|
},
|
|
593
1043
|
surfaceTertiary: {
|
|
594
1044
|
fill: 'surfaceTertiary',
|
|
595
|
-
|
|
596
|
-
|
|
1045
|
+
fillHover: 'surfaceTertiaryHover',
|
|
1046
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
597
1047
|
},
|
|
598
1048
|
};
|
|
599
1049
|
|
|
1050
|
+
var tooltipAppearanceWarning = {
|
|
1051
|
+
warning: {
|
|
1052
|
+
fill: 'warningPrimary',
|
|
1053
|
+
fillHover: 'warningPrimaryHover',
|
|
1054
|
+
labelTextColor: 'warningTextSecondary',
|
|
1055
|
+
labelTextColorHover: 'warningTextSecondary',
|
|
1056
|
+
loaderFill: 'warningPrimary',
|
|
1057
|
+
loaderItemFill: 'warningItemPrimary',
|
|
1058
|
+
},
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
var tooltipAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, tooltipAppearanceSize), tooltipAppearanceDisabled), tooltipAppearanceRequire), tooltipAppearanceStyle), tooltipAppearanceAccent), tooltipAppearanceDanger), tooltipAppearanceError), tooltipAppearanceInfo), tooltipAppearancePrimary), tooltipAppearanceSecondary), tooltipAppearanceSuccess), tooltipAppearanceSurface), tooltipAppearanceWarning);
|
|
1062
|
+
|
|
600
1063
|
var tooltipConfig = {
|
|
601
1064
|
appearance: tooltipAppearance,
|
|
602
1065
|
setAppearance: function (appearanceConfig) {
|