@itcase/ui-web 1.9.93 → 1.9.94
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_CrBNDT-b.js → Avatar_cjs_D2KBQgCe.js} +1 -1
- package/dist/{Avatar_es_U1YYJODp.js → Avatar_es_CUtyrzAt.js} +1 -1
- package/dist/{Button_cjs_BooGWjFA.js → Button_cjs_D7JyUFXZ.js} +1 -1
- package/dist/{Button_es_ByZvr97d.js → Button_es_gm2pGnwp.js} +1 -1
- package/dist/{ChipsGroup_cjs_e06Mbwfo.js → ChipsGroup_cjs_DwdX5KHD.js} +1 -1
- package/dist/{ChipsGroup_es_BPB49-MY.js → ChipsGroup_es_dcSLO3Zt.js} +1 -1
- package/dist/{DatePicker_cjs_wBpuO_k6.js → DatePicker_cjs_DxAVMKPe.js} +1 -1
- package/dist/{DatePicker_es_CNeC_D8K.js → DatePicker_es_D7sUlsDb.js} +1 -1
- package/dist/{Label_cjs_DvzrQiaJ.js → Label_cjs_Cwq325IM.js} +1 -1
- package/dist/{Label_es_GkbUOWkY.js → Label_es_j7KzWWH_.js} +1 -1
- package/dist/{Loader_cjs_jDizp0PM.js → Loader_cjs_C3Erfzz3.js} +1 -1
- package/dist/{Loader_es_CNm-0k9h.js → Loader_es_D2S1nwTD.js} +1 -1
- package/dist/{SelectContainer_cjs_DwcpbekD.js → SelectContainer_cjs_DaPt-Yyg.js} +1 -1
- package/dist/{SelectContainer_es_BBw3-MW1.js → SelectContainer_es_C-nSe-mo.js} +1 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +1 -1
- package/dist/cjs/components/AvatarStack.js +1 -1
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Checkmark.js +1 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePeriod.js +1 -1
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Dropzone.js +1 -1
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputNumber.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarStack.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Cell.js +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkmark.js +1 -1
- package/dist/components/Chips.js +1 -1
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePeriod.js +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Divider.js +1 -1
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Dropzone.js +1 -1
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputNumber.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/Response.js +1 -1
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/styles/bundles.css +6 -4
- package/dist/default_cjs_BMbs2it-.js +1 -0
- package/dist/default_es_C4dY1Dqw.js +1 -0
- package/dist/primitives_cjs_Cn5nSqZM.js +1 -0
- package/dist/primitives_es_CkHPBwNl.js +1 -0
- package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -0
- package/dist/types/components/Swiper/Swiper.js +4 -2
- package/dist/types/components/Swiper/stories/SwiperDemo.stories.js +4 -2
- package/dist/types/components/Swiper/stories/__mock__/index.js +6 -10
- package/dist/types/components/Text/Text.interface.d.ts +2 -1
- package/dist/types/components/Text/Text.js +2 -2
- package/package.json +2 -2
- package/dist/default_cjs_lUT82fjL.js +0 -1
- package/dist/default_es_l85QutMi.js +0 -1
- package/dist/primitives_cjs_e06YLoA1.js +0 -1
- package/dist/primitives_es_B2iaeM5M.js +0 -1
package/dist/components/Tile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"clsx";import{useAppearanceConfig as a,useDevicePropsGenerator as t,useStyles as o}from"@itcase/ui-core/hooks";import{mergeAppearanceKeys as c}from"@itcase/ui-core/utils";import{T as l,a as s,B as n,I as d}from"../
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import r from"clsx";import{useAppearanceConfig as a,useDevicePropsGenerator as t,useStyles as o}from"@itcase/ui-core/hooks";import{mergeAppearanceKeys as c}from"@itcase/ui-core/utils";import{T as l,a as s,B as n,I as d}from"../primitives_es_CkHPBwNl.js";import"@rc-component/tooltip";import"react";import"react-inlinesvg";import"@itcase/ui-core/hoc";const p={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},sizeXL:{size:"xl",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"32",iconSize:"24"},sizeL:{size:"l",titleTextSize:"h4",descTextSize:"l",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeM:{size:"m",titleTextSize:"h4",descTextSize:"m",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeS:{size:"s",titleTextSize:"h4",descTextSize:"s",badgeAppearanceSize:"sizeM",iconFillSize:"24",iconSize:"24"},sizeXS:{size:"xs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},sizeXXS:{size:"xxs",titleTextSize:"h6",descTextSize:"xs",badgeAppearanceSize:"sizeXXS",iconFillSize:"12",iconSize:"12"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},surfacePrimary:{fill:"surfacePrimary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceSecondary:{fill:"surfaceSecondary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"},surfaceTertiary:{fill:"surfaceTertiary",titleTextColor:"surfaceTextPrimary",descTextColor:"surfaceTextPrimary",borderColor:"surfaceBorderTertiary",badgeAppearance:"accentPrimary",iconAppearance:"accentPrimary"}},z={appearance:p,setAppearance:e=>{z.appearance=e}};function x(p){const{appearance:x,className:S,dataTestId:m,dataTour:T,type:u,title:f,desc:h,badgeValue:C,iconClick:_,before:b,after:y,isSkeleton:g,onClick:A,children:P}=p,v=a(x,z),$=t(p,v),{directionClass:F,alignClass:N,alignDirectionClass:X,fillClass:k,titleTextAlign:W,titleTextColor:M,titleTextSize:B,titleTextWeight:w,titleTextWrap:I,descTextColor:L,descTextSize:j,descTextWrap:Q,borderColorClass:D,borderColorHoverClass:H,borderTypeClass:V,borderWidthClass:q,badgeAppearance:E,badgeAppearanceSize:G,badgeShape:J,badgeSize:K,badgeTextColor:O,badgeTextSize:R,icon:U,iconAppearance:Y,iconFill:Z,iconFillIcon:ee,iconFillSize:ie,iconShape:re,iconSize:ae,iconSrc:te,shapeClass:oe,sizeClass:ce,widthClass:le}=$,{styles:se}=o(p);return e("div",{className:r("tile",S,k&&`fill_${k}`,oe&&`shape_${oe}`,N&&`align_${N}`,F&&`direction_${F}`,D&&`border-color_${D}`,H&&`border-color_hover_${H}`,q&&`border-width_${q}`,V&&`border_type_${V}`,ce&&`tile_size_${ce}`,u&&`tile_type_${u}`,C&&"tile_state_badge",le&&`width_${le}`,g&&"skeleton"),"data-testid":m,"data-tour":T,style:se,onClick:A,children:i("div",{className:r("tile__wrapper",N,X),children:[b,i("div",{className:"tile__header",children:[i("div",{className:"tile__header-inner",children:[f&&e(l,{className:"tile__title",size:B,textAlign:W,textColor:M,textWeight:w,textWrap:I,children:f}),h&&e(s,{className:"tile__text",size:j,textColor:L,textWrap:Q,children:h})]}),i("div",{className:"tile__header-actions",children:[C&&e(n,{appearance:c(E,G),className:"tile__badge",size:K,textColor:O,textSize:R,shape:J,value:C}),(U||te)&&e(d,{appearance:Y,className:"tile__icon",fill:Z,fillSize:ie,iconFill:ee,iconSize:ae,imageSrc:te,shape:re,SvgImage:U,onClick:_})]})]}),P,y]})})}export{x as Tile,p as tileAppearance,z as tileConfig};
|
package/dist/components/Title.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as Title,k as titleAppearance,m as titleConfig}from"../
|
|
1
|
+
export{T as Title,k as titleAppearance,m as titleConfig}from"../primitives_es_CkHPBwNl.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as Tooltip,d as TooltipWrapper,n as tooltipAppearance,o as tooltipConfig}from"../
|
|
1
|
+
export{f as Tooltip,d as TooltipWrapper,n as tooltipAppearance,o as tooltipConfig}from"../primitives_es_CkHPBwNl.js";import"react/jsx-runtime";import"@rc-component/tooltip";import"react";import"clsx";import"@itcase/ui-core/hooks";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useState as o,Fragment as i}from"react";import n from"clsx";import{useAppearanceConfig as t,useDevicePropsGenerator as l,useStyles as a}from"@itcase/ui-core/hooks";import{I as c,a as d}from"../
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{useState as o,Fragment as i}from"react";import n from"clsx";import{useAppearanceConfig as t,useDevicePropsGenerator as l,useStyles as a}from"@itcase/ui-core/hooks";import{I as c,a as d}from"../primitives_es_CkHPBwNl.js";import{i as f}from"../default_es_C4dY1Dqw.js";import"@rc-component/tooltip";import"react-inlinesvg";import"@itcase/ui-core/hoc";import"@itcase/ui-core/utils";const s={accentMutedPrimary:{fill:"accentTertiary",labelTextColor:"accentTextQuaternary",descriptionTextColor:"accentTextQuaternary",borderColor:"accentBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemQuaternary"},accentPrimary:{fill:"accentPrimary",labelTextColor:"accentTextPrimary",descriptionTextColor:"accentTextPrimary",borderColor:"accentBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"accentItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"accentItemPrimary"}},m={errorMutedPrimary:{fill:"errorTertiary",labelTextColor:"errorTextQuaternary",descriptionTextColor:"errorTextQuaternary",borderColor:"errorBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemQuaternary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemQuaternary"},errorPrimary:{fill:"errorPrimary",labelTextColor:"errorTextPrimary",descriptionTextColor:"errorTextPrimary",borderColor:"errorBorderQuaternary",iconAfter:f.Action.Close,iconAfterFillIcon:"errorItemPrimary",iconBefore:f.Action.Block,iconBeforeFillIcon:"errorItemPrimary"}},y={infoMutedPrimary:{fill:"infoTertiary",labelTextColor:"infoTextSecondary",descriptionTextColor:"infoTextSecondary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemQuaternary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemQuaternary"},infoPrimary:{fill:"infoPrimary",labelTextColor:"infoTextPrimary",descriptionTextColor:"infoTextPrimary",borderColor:"infoBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"infoItemPrimary",iconBefore:f.Alert.Warning,iconBeforeFillIcon:"infoItemPrimary"}},T={...s,...{warningMutedPrimary:{fill:"warningTertiary",labelTextColor:"warningTextSecondary",descriptionTextColor:"warningTextSecondary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemSecondary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemSecondary"},warningPrimary:{fill:"warningPrimary",labelTextColor:"warningTextPrimary",descriptionTextColor:"warningTextPrimary",borderColor:"warningBorderSecondary",iconAfter:f.Action.Close,iconAfterFillIcon:"warningItemPrimary",iconBefore:f.Alert.WarningTriangle,iconBeforeFillIcon:"warningItemPrimary"}},...m,...y,solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},sizeL:{size:"l",labelTextSize:"s",labelTextWeight:"600",descriptionTextSize:"s",iconAfterSize:"16",iconBeforeSize:"16"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},x={appearance:T,setAppearance:r=>{x.appearance=r}};function C(f){const{appearance:s,className:m,dataTestId:y,dataTour:T,label:C,description:p,isSkeleton:u,children:A}=f,I=t(s,x),g=l(f,I),{fillClass:B,labelTextColor:S,labelTextSize:P,labelTextWeight:b,descriptionTextColor:F,descriptionTextSize:h,borderColorClass:w,iconAfter:z,iconAfterFill:Q,iconAfterFillIcon:_,iconAfterSize:W,iconAfterSrc:k,iconBefore:v,iconBeforeFill:M,iconBeforeFillIcon:$,iconBeforeSize:j,iconBeforeSrc:L,shapeClass:N,sizeClass:X}=g,{styles:q}=a(f),[D,E]=o(!0);return r(i,{children:D&&e("div",{className:n(m,"warning",B&&`fill_${B}`,X&&`warning_size_${X}`,w&&`border-color_${w}`,N&&`shape_${N}`,u&&"skeleton"),"data-testid":y,"data-tour":T,style:q,children:[(v||L)&&r(c,{fill:M,iconFill:$,iconSize:j,imageSrc:L,SvgImage:v}),e("div",{className:"warning__content",children:[C&&r(d,{size:P,textColor:S,textWeight:b,children:C}),p&&r(d,{size:h,textColor:F,children:p}),A]}),(z||k)&&r(c,{fill:Q,iconFill:_,iconSize:W,imageSrc:k,SvgImage:z,onClick:()=>E(!1)})]})})}export{C as Warning,T as warningAppearance,x as warningConfig};
|
|
@@ -99412,20 +99412,22 @@ div.swiper-block {
|
|
|
99412
99412
|
}
|
|
99413
99413
|
}
|
|
99414
99414
|
&__prev {
|
|
99415
|
+
padding: 0 0 0 8px;
|
|
99415
99416
|
position: absolute;
|
|
99416
99417
|
left: 0;
|
|
99417
99418
|
top: 50%;
|
|
99418
|
-
cursor: pointer;
|
|
99419
|
-
transform: translateY(-50%);
|
|
99420
99419
|
z-index: 100;
|
|
99420
|
+
transform: translateY(-50%);
|
|
99421
|
+
cursor: pointer;
|
|
99421
99422
|
}
|
|
99422
99423
|
&__next {
|
|
99424
|
+
padding: 0 8px 0 0;
|
|
99423
99425
|
position: absolute;
|
|
99424
|
-
right: 0;
|
|
99425
|
-
cursor: pointer;
|
|
99426
99426
|
top: 50%;
|
|
99427
|
+
right: 0;
|
|
99427
99428
|
z-index: 100;
|
|
99428
99429
|
transform: translateY(-50%);
|
|
99430
|
+
cursor: pointer;
|
|
99429
99431
|
}
|
|
99430
99432
|
}
|
|
99431
99433
|
.swiper-zoom-container {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(n){var e=Object.create(null);return n&&Object.keys(n).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}}),e.default=n,Object.freeze(e)}var e,t=n(require("react"));function r(){return r=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},r.apply(null,arguments)}var l;function a(){return a=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},a.apply(null,arguments)}var o;function i(){return i=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},i.apply(null,arguments)}var c;function s(){return s=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},s.apply(null,arguments)}var u;function h(){return h=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},h.apply(null,arguments)}var v;function g(){return g=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},g.apply(null,arguments)}var f;function w(){return w=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},w.apply(null,arguments)}var p;function d(){return d=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},d.apply(null,arguments)}var m;function b(){return b=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},b.apply(null,arguments)}var O;function y(){return y=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},y.apply(null,arguments)}var j;function E(){return E=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},E.apply(null,arguments)}var L;function R(){return R=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},R.apply(null,arguments)}var x;function M(){return M=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},M.apply(null,arguments)}var k;function P(){return P=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},P.apply(null,arguments)}var C;function z(){return z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},z.apply(null,arguments)}var A,S;function V(){return V=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},V.apply(null,arguments)}var D;function H(){return H=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},H.apply(null,arguments)}var q;function F(){return F=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},F.apply(null,arguments)}var G;function W(){return W=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},W.apply(null,arguments)}var B;function N(){return N=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},N.apply(null,arguments)}var T;function I(){return I=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},I.apply(null,arguments)}var J;function K(){return K=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},K.apply(null,arguments)}var Q;function U(){return U=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},U.apply(null,arguments)}var X;function Y(){return Y=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Y.apply(null,arguments)}var Z;function $(){return $=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},$.apply(null,arguments)}var _,nn;function en(){return en=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},en.apply(null,arguments)}var tn;function rn(){return rn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},rn.apply(null,arguments)}var ln;function an(){return an=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},an.apply(null,arguments)}var on;function cn(){return cn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},cn.apply(null,arguments)}var sn;function un(){return un=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},un.apply(null,arguments)}var hn;function vn(){return vn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},vn.apply(null,arguments)}var gn;function fn(){return fn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},fn.apply(null,arguments)}var wn,pn;function dn(){return dn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},dn.apply(null,arguments)}var mn;function bn(){return bn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},bn.apply(null,arguments)}var On;function yn(){return yn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},yn.apply(null,arguments)}var jn;function En(){return En=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},En.apply(null,arguments)}var Ln;function Rn(){return Rn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Rn.apply(null,arguments)}var xn;function Mn(){return Mn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Mn.apply(null,arguments)}var kn;function Pn(){return Pn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Pn.apply(null,arguments)}var Cn;function zn(){return zn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},zn.apply(null,arguments)}var An;function Sn(){return Sn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Sn.apply(null,arguments)}const Vn={Action:{Close:function(n){return t.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",stroke:"none"},n),e||(e=t.createElement("path",{d:"M10.754 1.246a.84.84 0 0 0-1.189 0L6 4.812 2.435 1.246a.84.84 0 1 0-1.189 1.189L4.812 6 1.246 9.565a.84.84 0 0 0 1.189 1.189L6 7.188l3.565 3.566a.84.84 0 0 0 1.189-1.189L7.188 6l3.566-3.565a.84.84 0 0 0 0-1.189"})))}},Arrow:{ChevronRightSmall:function(n){return t.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",stroke:"none"},n),l||(l=t.createElement("path",{fillRule:"evenodd",d:"M7.9 5.7a.5.5 0 0 1 0 .6l-3 4a.5.5 0 0 1-.8-.6L6.875 6 4.1 2.3a.5.5 0 1 1 .8-.6z",clipRule:"evenodd"})))}}},Dn={Action:{Close:function(n){return t.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),o||(o=t.createElement("path",{d:"M11.826 2.174a.594.594 0 0 0-.84 0L7 6.16 3.013 2.174a.594.594 0 0 0-.84.84L6.162 7l-3.987 3.987a.594.594 0 0 0 .84.84L7 7.838l3.987 3.987a.594.594 0 0 0 .84-.84L7.838 7l3.987-3.987a.594.594 0 0 0 0-.84"})))}},Arrow:{ChevronDownSmall:function(n){return t.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),c||(c=t.createElement("path",{fillRule:"evenodd",d:"M7.3 8.9a.5.5 0 0 1-.6 0l-4-3a.5.5 0 0 1 .6-.8L7 7.875 10.7 5.1a.5.5 0 0 1 .6.8z",clipRule:"evenodd"})))},ChevronLeft:function(n){return t.createElement("svg",g({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),v||(v=t.createElement("path",{fillRule:"evenodd",d:"M4.453 6.563a.7.7 0 0 0 0 .874l4 5a.7.7 0 1 0 1.094-.874L5.897 7l3.65-4.563a.7.7 0 0 0-1.094-.874z",clipRule:"evenodd"})))},ChevronLeftSmall:function(n){return t.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),u||(u=t.createElement("path",{fillRule:"evenodd",d:"M5.1 7.3a.5.5 0 0 1 0-.6l3-4a.5.5 0 0 1 .8.6L6.125 7 8.9 10.7a.5.5 0 0 1-.8.6z",clipRule:"evenodd"})))},ChevronRight:function(n){return t.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),p||(p=t.createElement("path",{fillRule:"evenodd",d:"M9.547 6.563a.7.7 0 0 1 0 .874l-4 5a.7.7 0 1 1-1.094-.874L8.103 7l-3.65-4.563a.7.7 0 0 1 1.094-.874z",clipRule:"evenodd"})))},ChevronRightSmall:function(n){return t.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),f||(f=t.createElement("path",{fillRule:"evenodd",d:"M8.9 6.7a.5.5 0 0 1 0 .6l-3 4a.5.5 0 0 1-.8-.6L7.875 7 5.1 3.3a.5.5 0 1 1 .8-.6z",clipRule:"evenodd"})))}},Form:{Check:function(n){return t.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),m||(m=t.createElement("path",{fillRule:"evenodd",d:"M11.776 4.711c.287-.266.3-.71.029-.991a.724.724 0 0 0-1.01-.029l-5.56 5.156-2.03-1.883a.724.724 0 0 0-1.01.029.69.69 0 0 0 .029.991l2.496 2.315a.76.76 0 0 0 1.03 0z",clipRule:"evenodd"})))}},General:{DotMedium:function(n){return t.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),O||(O=t.createElement("circle",{cx:7,cy:7,r:3})))}}},Hn={Action:{Block:function(n){return t.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),j||(j=t.createElement("path",{fillRule:"evenodd",d:"M2.416 8a5.584 5.584 0 0 1 9-4.418l-7.834 7.834A5.56 5.56 0 0 1 2.416 8m2.168 4.418a5.584 5.584 0 0 0 7.834-7.834zM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1",clipRule:"evenodd"})))},Clear:function(n){return t.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),L||(L=t.createElement("path",{d:"M10.896 5.104a.356.356 0 0 0-.504 0L8 7.496 5.608 5.104a.356.356 0 1 0-.504.504L7.496 8l-2.392 2.392a.356.356 0 1 0 .504.504L8 8.504l2.392 2.392a.356.356 0 1 0 .504-.504L8.504 8l2.392-2.392a.356.356 0 0 0 0-.504"})))},Close:function(n){return t.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),x||(x=t.createElement("path",{d:"M13.791 2.209a.71.71 0 0 0-1.007 0L8 6.993 3.216 2.209a.712.712 0 0 0-1.007 1.007L6.993 8l-4.784 4.784a.712.712 0 0 0 1.007 1.007L8 9.007l4.784 4.784a.712.712 0 0 0 1.007-1.007L9.007 8l4.784-4.784a.71.71 0 0 0 0-1.007"})))},NewWindow:function(n){return t.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},n),k||(k=t.createElement("path",{fillRule:"evenodd",d:"M2.1 0h1.4a.7.7 0 0 1 .082 1.395L3.5 1.4H2.1a.7.7 0 0 0-.695.618L1.4 2.1v9.8a.7.7 0 0 0 .618.695l.082.005h9.8a.7.7 0 0 0 .695-.618l.005-.082v-1.4a.7.7 0 0 1 1.395-.082L14 10.5v1.4a2.1 2.1 0 0 1-1.977 2.096L11.9 14H2.1a2.1 2.1 0 0 1-2.096-1.977L0 11.9V2.1A2.1 2.1 0 0 1 1.977.004zm11.2 0 .057.002.084.012.077.02.078.032.069.036.067.047.063.056.068.078.05.078.021.043.024.057.017.053.02.103L14 .7v4.2a.7.7 0 1 1-1.4 0V2.39L8.195 6.795a.7.7 0 0 1-.924.058l-.066-.058a.7.7 0 0 1-.058-.924l.058-.066L11.609 1.4H9.1a.7.7 0 1 1 0-1.4z",clipRule:"evenodd"})))}},Alert:{Warning:function(n){return t.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),A||(A=t.createElement("path",{fillRule:"evenodd",d:"M8 1a7 7 0 0 0-7 7c0 3.867 3.133 7 7 7s7-3.133 7-7-3.133-7-7-7m.001 12.708a5.707 5.707 0 1 1 0-11.414 5.707 5.707 0 0 1 0 11.414",clipRule:"evenodd"})),S||(S=t.createElement("path",{d:"M8 4c-.414 0-.75.224-.75.5V9c0 .276.336.5.75.5s.75-.224.75-.5V4.5c0-.276-.336-.5-.75-.5M8 10.5A.75.75 0 1 0 8 12a.75.75 0 0 0 0-1.5"})))},WarningTriangle:function(n){return t.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),C||(C=t.createElement("path",{fillRule:"evenodd",d:"M7.393 2.707 2.326 12.863a.47.47 0 0 0 .032.486c.102.155.301.29.575.29h10.134a.67.67 0 0 0 .575-.29.47.47 0 0 0 .032-.486L8.607 2.707C8.503 2.5 8.28 2.36 8 2.36s-.503.139-.607.346M8 1c.654 0 1.363.332 1.73 1.066l5.067 10.156A1.922 1.922 0 0 1 13.067 15H2.933a1.922 1.922 0 0 1-1.73-2.778L6.27 2.066A1.92 1.92 0 0 1 8 1m0 4.27c.377 0 .682.326.682.729v2.668c0 .403-.305.73-.682.73s-.682-.327-.682-.73V5.999c0-.403.305-.73.682-.73m.682 6.065c0-.403-.305-.729-.682-.729s-.682.326-.682.73v.013c0 .403.305.73.682.73s.682-.327.682-.73z",clipRule:"evenodd"})))}},Arrow:{ChevronDown:function(n){return t.createElement("svg",F({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),q||(q=t.createElement("path",{fillRule:"evenodd",d:"M7.496 11.055a.75.75 0 0 0 1.009 0l5.5-5a.75.75 0 1 0-1.01-1.11L8 9.486 3.005 4.945a.75.75 0 1 0-1.01 1.11z",clipRule:"evenodd"})))},ChevronDownSmall:function(n){return t.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),D||(D=t.createElement("path",{fillRule:"evenodd",d:"M8.375 10.469a.6.6 0 0 1-.75 0l-5-4a.6.6 0 0 1 .75-.937L8 9.232l4.625-3.7a.6.6 0 0 1 .75.937z",clipRule:"evenodd"})))},ChevronLeftSmall:function(n){return t.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),G||(G=t.createElement("path",{fillRule:"evenodd",d:"M5.532 7.625a.6.6 0 0 0 0 .75l4 5a.6.6 0 1 0 .937-.75L6.769 8l3.7-4.625a.6.6 0 1 0-.937-.75z",clipRule:"evenodd"})))},ChevronRightSmall:function(n){return t.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),B||(B=t.createElement("path",{fillRule:"evenodd",d:"M10.469 7.625a.6.6 0 0 1 0 .75l-4 5a.6.6 0 1 1-.938-.75L9.231 8l-3.7-4.625a.6.6 0 1 1 .938-.75z",clipRule:"evenodd"})))}},Form:{Check:function(n){return t.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),T||(T=t.createElement("path",{d:"M2.218 7.242a.695.695 0 0 0 0 1.01l3.68 3.539c.29.279.76.279 1.05 0l6.834-6.57a.695.695 0 0 0 0-1.012.765.765 0 0 0-1.051 0l-6.308 6.065-3.154-3.032a.765.765 0 0 0-1.051 0"})))}},Security:{Search:function(n){return t.createElement("svg",K({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},n),J||(J=t.createElement("path",{d:"M6.534 12.945a6.56 6.56 0 0 0 3.798-1.212l4.028 3.99a.97.97 0 0 0 .697.277c.552 0 .943-.42.943-.96a.9.9 0 0 0-.272-.673l-4.002-3.972a6.4 6.4 0 0 0 1.342-3.923c0-3.56-2.94-6.472-6.534-6.472C2.948 0 0 2.904 0 6.472c0 3.56 2.94 6.473 6.534 6.473m0-1.397c-2.804 0-5.123-2.298-5.123-5.076s2.32-5.075 5.123-5.075 5.124 2.298 5.124 5.075-2.32 5.076-5.124 5.076"})))}}},qn={Action:{Close:function(n){return t.createElement("svg",U({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},n),Q||(Q=t.createElement("path",{d:"M17.722 2.278a.95.95 0 0 0-1.343 0L10 8.658l-6.379-6.38a.95.95 0 1 0-1.343 1.343L8.658 10l-6.38 6.379a.95.95 0 0 0 1.343 1.343L10 11.342l6.379 6.38a.95.95 0 0 0 1.343-1.343L11.342 10l6.38-6.379a.95.95 0 0 0 0-1.343"})))}},Arrow:{ChevronRightSmall:function(n){return t.createElement("svg",Y({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},n),X||(X=t.createElement("path",{fillRule:"evenodd",d:"M13.038 9.552a.7.7 0 0 1 0 .896l-5 6a.7.7 0 1 1-1.076-.896L11.59 10 6.962 4.448a.7.7 0 1 1 1.076-.896z",clipRule:"evenodd"})))}},Form:{Check:function(n){return t.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},n),Z||(Z=t.createElement("path",{fillRule:"evenodd",d:"M17.731 5.526a.889.889 0 1 0-1.24-1.274l-9.42 9.174-3.562-3.47a.889.889 0 1 0-1.24 1.273l4.152 4.044a.933.933 0 0 0 1.302 0z",clipRule:"evenodd"})))}}},Fn={Action:{Clear:function(n){return t.createElement("svg",en({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),_||(_=t.createElement("path",{d:"M8.924 16.166a.71.71 0 0 1-.556.234.74.74 0 0 1-.545-.223.77.77 0 0 1-.223-.547q0-.323.234-.535l3.07-3.1-3.07-3.09A.7.7 0 0 1 7.6 8.37q0-.323.223-.536a.74.74 0 0 1 .545-.223q.323 0 .534.234l3.081 3.079 3.104-3.09a.77.77 0 0 1 .545-.234q.312 0 .534.223a.7.7 0 0 1 .234.547q0 .3-.234.535l-3.081 3.09 3.07 3.089a.75.75 0 0 1 .234.546.75.75 0 0 1-.234.547.73.73 0 0 1-.534.223.76.76 0 0 1-.556-.234l-3.082-3.078z"})),nn||(nn=t.createElement("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.65 0a9.35 9.35 0 1 1-18.7 0 9.35 9.35 0 1 1 18.7 0",clipRule:"evenodd"})))},Close:function(n){return t.createElement("svg",rn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),tn||(tn=t.createElement("path",{d:"M19.722 4.703a.95.95 0 0 0-1.343 0L12 11.082l-6.379-6.38a.95.95 0 1 0-1.343 1.344l6.38 6.379-6.38 6.378a.95.95 0 1 0 1.343 1.343L12 13.767l6.379 6.38a.95.95 0 1 0 1.343-1.343l-6.38-6.38 6.38-6.378a.95.95 0 0 0 0-1.343"})))}},Arrow:{ChevronDownSmall:function(n){return t.createElement("svg",an({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),ln||(ln=t.createElement("path",{fillRule:"evenodd",d:"M12.48 15.576a.75.75 0 0 1-.96 0l-6-5a.75.75 0 0 1 .96-1.152l5.52 4.6 5.52-4.6a.75.75 0 1 1 .96 1.152z",clipRule:"evenodd"})))},ChevronLeftSmall:function(n){return t.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),on||(on=t.createElement("path",{fillRule:"evenodd",d:"M8.92 11.525a.75.75 0 0 0 0 .95l4.5 5.5a.75.75 0 0 0 1.16-.95L10.47 12l4.112-5.025a.75.75 0 0 0-1.162-.95z",clipRule:"evenodd"})))},ChevronRightSmall:function(n){return t.createElement("svg",un({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),sn||(sn=t.createElement("path",{fillRule:"evenodd",d:"M14.555 11.496a.75.75 0 0 1 0 1.008l-5 5.5a.75.75 0 1 1-1.11-1.009L12.986 12 8.445 7.005a.75.75 0 1 1 1.11-1.01z",clipRule:"evenodd"})))}},Form:{Check:function(n){return t.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),hn||(hn=t.createElement("path",{fillRule:"evenodd",d:"M20.698 7.716a1 1 0 1 0-1.396-1.432L8.706 16.604 4.698 12.7a1 1 0 0 0-1.396 1.433l4.671 4.55a1.05 1.05 0 0 0 1.465 0z",clipRule:"evenodd"})))},Minus:function(n){return t.createElement("svg",fn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),gn||(gn=t.createElement("path",{d:"M20.156 11.156a.844.844 0 0 1 0 1.688H3.844a.844.844 0 0 1 0-1.688z"})))},Plus:function(n){return t.createElement("svg",dn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),wn||(wn=t.createElement("path",{d:"M11 4a1 1 0 1 1 2 0v16a1 1 0 1 1-2 0z"})),pn||(pn=t.createElement("path",{d:"M20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2z"})))}},General:{DotMedium:function(n){return t.createElement("svg",bn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),mn||(mn=t.createElement("circle",{cx:12,cy:12,r:8})))}},Security:{Search:function(n){return t.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),On||(On=t.createElement("path",{d:"M10.168 18.181c1.774 0 3.41-.568 4.748-1.515l5.034 4.987c.234.231.542.347.871.347.69 0 1.179-.526 1.179-1.2 0-.315-.106-.62-.34-.841l-5.003-4.966a8 8 0 0 0 1.679-4.902C18.336 5.64 14.66 2 10.168 2 5.686 2 2 5.63 2 10.09c0 4.45 3.675 8.091 8.168 8.091m0-1.747c-3.505 0-6.405-2.872-6.405-6.344 0-3.471 2.9-6.344 6.405-6.344s6.405 2.873 6.405 6.345-2.9 6.344-6.405 6.344"})))}},View:{HideValue:function(n){return t.createElement("svg",En({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),jn||(jn=t.createElement("path",{d:"M12 6.795c2.492 0 4.547 2.126 4.547 4.743 0 .624-.125 1.21-.313 1.736l2.649 2.782A11.26 11.26 0 0 0 22 11.538c-1.59-4.185-5.453-7.13-10-7.13-1.277 0-2.492.23-3.613.656l1.96 2.06A4.5 4.5 0 0 1 12 6.795M2.902 4.21 4.988 6.37l.407.426A10.77 10.77 0 0 0 2 11.505c1.59 4.19 5.453 7.136 10 7.136 1.402 0 2.742-.296 3.988-.784l.375.361L19.043 21l1.152-1.21L4.055 3zM7.95 9.446l1.403 1.473c-.032.197-.063.394-.063.624 0 1.571 1.215 2.847 2.742 2.847.188 0 .406-.033.594-.066l1.402 1.473a4.1 4.1 0 0 1-1.992.493c-2.492 0-4.547-2.126-4.547-4.743a4.24 4.24 0 0 1 .461-2.101m3.895-.751 2.867 2.979.031-.164c0-1.572-1.215-2.848-2.742-2.848z"})))},ShowValue:function(n){return t.createElement("svg",Rn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},n),Ln||(Ln=t.createElement("path",{fillRule:"evenodd",d:"M10.628 5.056c-1.806.285-3.317.952-4.832 2.131-1.274.992-2.657 2.658-3.452 4.156L2 11.99l.344.648c1.261 2.377 3.528 4.572 5.72 5.539 2.733 1.206 5.965 1.078 8.58-.338.982-.532 1.665-1.06 2.64-2.042.969-.975 1.803-2.086 2.372-3.16l.344-.647-.344-.648c-.569-1.073-1.403-2.184-2.372-3.16-1.627-1.638-3.147-2.521-5.12-2.974-.822-.19-2.773-.273-3.536-.153m2.49 2.586c.356.092.859.287 1.117.435.601.343 1.32 1.065 1.662 1.669.324.572.598 1.6.598 2.245s-.274 1.672-.598 2.245c-.342.603-1.06 1.325-1.662 1.668-.569.326-1.594.601-2.227.6a4.63 4.63 0 0 1-3.132-1.295c-.628-.62-.99-1.25-1.206-2.094-.208-.821-.208-1.427 0-2.248.407-1.597 1.6-2.805 3.178-3.22a4.23 4.23 0 0 1 2.27-.005m-1.923 1.99c-2.088.75-2.27 3.616-.292 4.592a2.54 2.54 0 0 0 2.194 0c.893-.44 1.355-1.202 1.355-2.233 0-.712-.173-1.189-.614-1.694-.597-.683-1.77-.978-2.643-.665",clipRule:"evenodd"})))}}},Gn={Action:{Close:function(n){return t.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",stroke:"none"},n),xn||(xn=t.createElement("path",{d:"M26.618 5.382a1.306 1.306 0 0 0-1.847 0L16 14.154 7.229 5.381A1.306 1.306 0 1 0 5.382 7.23L14.154 16l-8.772 8.771a1.306 1.306 0 0 0 1.847 1.847L16 17.847l8.771 8.77a1.306 1.306 0 0 0 1.847-1.846L17.847 16l8.77-8.771c.51-.51.51-1.337 0-1.847"})))}},General:{Check:function(n){return t.createElement("svg",Pn({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",stroke:"none"},n),kn||(kn=t.createElement("path",{fillRule:"evenodd",d:"M27.597 9.38a1.426 1.426 0 0 0 .025-1.96 1.297 1.297 0 0 0-1.886-.027L11.608 21.705l-5.344-5.413a1.297 1.297 0 0 0-1.886.025 1.426 1.426 0 0 0 .025 1.961l6.228 6.309c.544.55 1.41.55 1.954 0z",clipRule:"evenodd"})))}}},Wn={Action:{Close:function(n){return t.createElement("svg",zn({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",stroke:"none"},n),Cn||(Cn=t.createElement("path",{d:"M34.479 5.522a1.78 1.78 0 0 0-2.518 0L20 17.482 8.04 5.522A1.78 1.78 0 1 0 5.52 8.04L17.482 20 5.522 31.96a1.78 1.78 0 1 0 2.518 2.518L20 22.518l11.96 11.96a1.78 1.78 0 0 0 2.518-2.518L22.518 20l11.96-11.96a1.78 1.78 0 0 0 0-2.518"})))}},General:{Check:function(n){return t.createElement("svg",Sn({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",stroke:"none"},n),An||(An=t.createElement("path",{fillRule:"evenodd",d:"M36.082 11.174a1.849 1.849 0 1 0-2.58-2.65L13.909 27.607 6.5 20.389a1.849 1.849 0 0 0-2.58 2.649l8.636 8.411a1.94 1.94 0 0 0 2.709 0z",clipRule:"evenodd"})))}}};exports.icons12=Vn,exports.icons14=Dn,exports.icons16=Hn,exports.icons20=qn,exports.icons24=Fn,exports.icons32=Gn,exports.icons40=Wn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as n from"react";var e;function t(){return t=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},t.apply(null,arguments)}var r;function l(){return l=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},l.apply(null,arguments)}var a;function o(){return o=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},o.apply(null,arguments)}var i;function c(){return c=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},c.apply(null,arguments)}var s;function u(){return u=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},u.apply(null,arguments)}var h;function v(){return v=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},v.apply(null,arguments)}var g;function f(){return f=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},f.apply(null,arguments)}var w;function p(){return p=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},p.apply(null,arguments)}var d;function m(){return m=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},m.apply(null,arguments)}var b;function O(){return O=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},O.apply(null,arguments)}var y;function E(){return E=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},E.apply(null,arguments)}var j;function L(){return L=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},L.apply(null,arguments)}var R;function M(){return M=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},M.apply(null,arguments)}var k;function x(){return x=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},x.apply(null,arguments)}var P;function C(){return C=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},C.apply(null,arguments)}var z,A;function S(){return S=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},S.apply(null,arguments)}var V;function H(){return H=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},H.apply(null,arguments)}var D;function q(){return q=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},q.apply(null,arguments)}var F;function G(){return G=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},G.apply(null,arguments)}var W;function B(){return B=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},B.apply(null,arguments)}var N;function T(){return T=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},T.apply(null,arguments)}var I;function J(){return J=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},J.apply(null,arguments)}var K;function Q(){return Q=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Q.apply(null,arguments)}var U;function X(){return X=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},X.apply(null,arguments)}var Y;function Z(){return Z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Z.apply(null,arguments)}var $,_;function nn(){return nn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},nn.apply(null,arguments)}var en;function tn(){return tn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},tn.apply(null,arguments)}var rn;function ln(){return ln=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ln.apply(null,arguments)}var an;function on(){return on=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},on.apply(null,arguments)}var cn;function sn(){return sn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},sn.apply(null,arguments)}var un;function hn(){return hn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},hn.apply(null,arguments)}var vn;function gn(){return gn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},gn.apply(null,arguments)}var fn,wn;function pn(){return pn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},pn.apply(null,arguments)}var dn;function mn(){return mn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},mn.apply(null,arguments)}var bn;function On(){return On=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},On.apply(null,arguments)}var yn;function En(){return En=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},En.apply(null,arguments)}var jn;function Ln(){return Ln=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Ln.apply(null,arguments)}var Rn;function Mn(){return Mn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Mn.apply(null,arguments)}var kn;function xn(){return xn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},xn.apply(null,arguments)}var Pn;function Cn(){return Cn=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Cn.apply(null,arguments)}var zn;function An(){return An=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},An.apply(null,arguments)}const Sn={Action:{Close:function(r){return n.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",stroke:"none"},r),e||(e=n.createElement("path",{d:"M10.754 1.246a.84.84 0 0 0-1.189 0L6 4.812 2.435 1.246a.84.84 0 1 0-1.189 1.189L4.812 6 1.246 9.565a.84.84 0 0 0 1.189 1.189L6 7.188l3.565 3.566a.84.84 0 0 0 1.189-1.189L7.188 6l3.566-3.565a.84.84 0 0 0 0-1.189"})))}},Arrow:{ChevronRightSmall:function(e){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",stroke:"none"},e),r||(r=n.createElement("path",{fillRule:"evenodd",d:"M7.9 5.7a.5.5 0 0 1 0 .6l-3 4a.5.5 0 0 1-.8-.6L6.875 6 4.1 2.3a.5.5 0 1 1 .8-.6z",clipRule:"evenodd"})))}}},Vn={Action:{Close:function(e){return n.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),a||(a=n.createElement("path",{d:"M11.826 2.174a.594.594 0 0 0-.84 0L7 6.16 3.013 2.174a.594.594 0 0 0-.84.84L6.162 7l-3.987 3.987a.594.594 0 0 0 .84.84L7 7.838l3.987 3.987a.594.594 0 0 0 .84-.84L7.838 7l3.987-3.987a.594.594 0 0 0 0-.84"})))}},Arrow:{ChevronDownSmall:function(e){return n.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),i||(i=n.createElement("path",{fillRule:"evenodd",d:"M7.3 8.9a.5.5 0 0 1-.6 0l-4-3a.5.5 0 0 1 .6-.8L7 7.875 10.7 5.1a.5.5 0 0 1 .6.8z",clipRule:"evenodd"})))},ChevronLeft:function(e){return n.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),h||(h=n.createElement("path",{fillRule:"evenodd",d:"M4.453 6.563a.7.7 0 0 0 0 .874l4 5a.7.7 0 1 0 1.094-.874L5.897 7l3.65-4.563a.7.7 0 0 0-1.094-.874z",clipRule:"evenodd"})))},ChevronLeftSmall:function(e){return n.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),s||(s=n.createElement("path",{fillRule:"evenodd",d:"M5.1 7.3a.5.5 0 0 1 0-.6l3-4a.5.5 0 0 1 .8.6L6.125 7 8.9 10.7a.5.5 0 0 1-.8.6z",clipRule:"evenodd"})))},ChevronRight:function(e){return n.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),w||(w=n.createElement("path",{fillRule:"evenodd",d:"M9.547 6.563a.7.7 0 0 1 0 .874l-4 5a.7.7 0 1 1-1.094-.874L8.103 7l-3.65-4.563a.7.7 0 0 1 1.094-.874z",clipRule:"evenodd"})))},ChevronRightSmall:function(e){return n.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),g||(g=n.createElement("path",{fillRule:"evenodd",d:"M8.9 6.7a.5.5 0 0 1 0 .6l-3 4a.5.5 0 0 1-.8-.6L7.875 7 5.1 3.3a.5.5 0 1 1 .8-.6z",clipRule:"evenodd"})))}},Form:{Check:function(e){return n.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),d||(d=n.createElement("path",{fillRule:"evenodd",d:"M11.776 4.711c.287-.266.3-.71.029-.991a.724.724 0 0 0-1.01-.029l-5.56 5.156-2.03-1.883a.724.724 0 0 0-1.01.029.69.69 0 0 0 .029.991l2.496 2.315a.76.76 0 0 0 1.03 0z",clipRule:"evenodd"})))}},General:{DotMedium:function(e){return n.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),b||(b=n.createElement("circle",{cx:7,cy:7,r:3})))}}},Hn={Action:{Block:function(e){return n.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),y||(y=n.createElement("path",{fillRule:"evenodd",d:"M2.416 8a5.584 5.584 0 0 1 9-4.418l-7.834 7.834A5.56 5.56 0 0 1 2.416 8m2.168 4.418a5.584 5.584 0 0 0 7.834-7.834zM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1",clipRule:"evenodd"})))},Clear:function(e){return n.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),j||(j=n.createElement("path",{d:"M10.896 5.104a.356.356 0 0 0-.504 0L8 7.496 5.608 5.104a.356.356 0 1 0-.504.504L7.496 8l-2.392 2.392a.356.356 0 1 0 .504.504L8 8.504l2.392 2.392a.356.356 0 1 0 .504-.504L8.504 8l2.392-2.392a.356.356 0 0 0 0-.504"})))},Close:function(e){return n.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),R||(R=n.createElement("path",{d:"M13.791 2.209a.71.71 0 0 0-1.007 0L8 6.993 3.216 2.209a.712.712 0 0 0-1.007 1.007L6.993 8l-4.784 4.784a.712.712 0 0 0 1.007 1.007L8 9.007l4.784 4.784a.712.712 0 0 0 1.007-1.007L9.007 8l4.784-4.784a.71.71 0 0 0 0-1.007"})))},NewWindow:function(e){return n.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",stroke:"none"},e),k||(k=n.createElement("path",{fillRule:"evenodd",d:"M2.1 0h1.4a.7.7 0 0 1 .082 1.395L3.5 1.4H2.1a.7.7 0 0 0-.695.618L1.4 2.1v9.8a.7.7 0 0 0 .618.695l.082.005h9.8a.7.7 0 0 0 .695-.618l.005-.082v-1.4a.7.7 0 0 1 1.395-.082L14 10.5v1.4a2.1 2.1 0 0 1-1.977 2.096L11.9 14H2.1a2.1 2.1 0 0 1-2.096-1.977L0 11.9V2.1A2.1 2.1 0 0 1 1.977.004zm11.2 0 .057.002.084.012.077.02.078.032.069.036.067.047.063.056.068.078.05.078.021.043.024.057.017.053.02.103L14 .7v4.2a.7.7 0 1 1-1.4 0V2.39L8.195 6.795a.7.7 0 0 1-.924.058l-.066-.058a.7.7 0 0 1-.058-.924l.058-.066L11.609 1.4H9.1a.7.7 0 1 1 0-1.4z",clipRule:"evenodd"})))}},Alert:{Warning:function(e){return n.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),z||(z=n.createElement("path",{fillRule:"evenodd",d:"M8 1a7 7 0 0 0-7 7c0 3.867 3.133 7 7 7s7-3.133 7-7-3.133-7-7-7m.001 12.708a5.707 5.707 0 1 1 0-11.414 5.707 5.707 0 0 1 0 11.414",clipRule:"evenodd"})),A||(A=n.createElement("path",{d:"M8 4c-.414 0-.75.224-.75.5V9c0 .276.336.5.75.5s.75-.224.75-.5V4.5c0-.276-.336-.5-.75-.5M8 10.5A.75.75 0 1 0 8 12a.75.75 0 0 0 0-1.5"})))},WarningTriangle:function(e){return n.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),P||(P=n.createElement("path",{fillRule:"evenodd",d:"M7.393 2.707 2.326 12.863a.47.47 0 0 0 .032.486c.102.155.301.29.575.29h10.134a.67.67 0 0 0 .575-.29.47.47 0 0 0 .032-.486L8.607 2.707C8.503 2.5 8.28 2.36 8 2.36s-.503.139-.607.346M8 1c.654 0 1.363.332 1.73 1.066l5.067 10.156A1.922 1.922 0 0 1 13.067 15H2.933a1.922 1.922 0 0 1-1.73-2.778L6.27 2.066A1.92 1.92 0 0 1 8 1m0 4.27c.377 0 .682.326.682.729v2.668c0 .403-.305.73-.682.73s-.682-.327-.682-.73V5.999c0-.403.305-.73.682-.73m.682 6.065c0-.403-.305-.729-.682-.729s-.682.326-.682.73v.013c0 .403.305.73.682.73s.682-.327.682-.73z",clipRule:"evenodd"})))}},Arrow:{ChevronDown:function(e){return n.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),D||(D=n.createElement("path",{fillRule:"evenodd",d:"M7.496 11.055a.75.75 0 0 0 1.009 0l5.5-5a.75.75 0 1 0-1.01-1.11L8 9.486 3.005 4.945a.75.75 0 1 0-1.01 1.11z",clipRule:"evenodd"})))},ChevronDownSmall:function(e){return n.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),V||(V=n.createElement("path",{fillRule:"evenodd",d:"M8.375 10.469a.6.6 0 0 1-.75 0l-5-4a.6.6 0 0 1 .75-.937L8 9.232l4.625-3.7a.6.6 0 0 1 .75.937z",clipRule:"evenodd"})))},ChevronLeftSmall:function(e){return n.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),F||(F=n.createElement("path",{fillRule:"evenodd",d:"M5.532 7.625a.6.6 0 0 0 0 .75l4 5a.6.6 0 1 0 .937-.75L6.769 8l3.7-4.625a.6.6 0 1 0-.937-.75z",clipRule:"evenodd"})))},ChevronRightSmall:function(e){return n.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),W||(W=n.createElement("path",{fillRule:"evenodd",d:"M10.469 7.625a.6.6 0 0 1 0 .75l-4 5a.6.6 0 1 1-.938-.75L9.231 8l-3.7-4.625a.6.6 0 1 1 .938-.75z",clipRule:"evenodd"})))}},Form:{Check:function(e){return n.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),N||(N=n.createElement("path",{d:"M2.218 7.242a.695.695 0 0 0 0 1.01l3.68 3.539c.29.279.76.279 1.05 0l6.834-6.57a.695.695 0 0 0 0-1.012.765.765 0 0 0-1.051 0l-6.308 6.065-3.154-3.032a.765.765 0 0 0-1.051 0"})))}},Security:{Search:function(e){return n.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",stroke:"none"},e),I||(I=n.createElement("path",{d:"M6.534 12.945a6.56 6.56 0 0 0 3.798-1.212l4.028 3.99a.97.97 0 0 0 .697.277c.552 0 .943-.42.943-.96a.9.9 0 0 0-.272-.673l-4.002-3.972a6.4 6.4 0 0 0 1.342-3.923c0-3.56-2.94-6.472-6.534-6.472C2.948 0 0 2.904 0 6.472c0 3.56 2.94 6.473 6.534 6.473m0-1.397c-2.804 0-5.123-2.298-5.123-5.076s2.32-5.075 5.123-5.075 5.124 2.298 5.124 5.075-2.32 5.076-5.124 5.076"})))}}},Dn={Action:{Close:function(e){return n.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},e),K||(K=n.createElement("path",{d:"M17.722 2.278a.95.95 0 0 0-1.343 0L10 8.658l-6.379-6.38a.95.95 0 1 0-1.343 1.343L8.658 10l-6.38 6.379a.95.95 0 0 0 1.343 1.343L10 11.342l6.379 6.38a.95.95 0 0 0 1.343-1.343L11.342 10l6.38-6.379a.95.95 0 0 0 0-1.343"})))}},Arrow:{ChevronRightSmall:function(e){return n.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},e),U||(U=n.createElement("path",{fillRule:"evenodd",d:"M13.038 9.552a.7.7 0 0 1 0 .896l-5 6a.7.7 0 1 1-1.076-.896L11.59 10 6.962 4.448a.7.7 0 1 1 1.076-.896z",clipRule:"evenodd"})))}},Form:{Check:function(e){return n.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",stroke:"none"},e),Y||(Y=n.createElement("path",{fillRule:"evenodd",d:"M17.731 5.526a.889.889 0 1 0-1.24-1.274l-9.42 9.174-3.562-3.47a.889.889 0 1 0-1.24 1.273l4.152 4.044a.933.933 0 0 0 1.302 0z",clipRule:"evenodd"})))}}},qn={Action:{Clear:function(e){return n.createElement("svg",nn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),$||($=n.createElement("path",{d:"M8.924 16.166a.71.71 0 0 1-.556.234.74.74 0 0 1-.545-.223.77.77 0 0 1-.223-.547q0-.323.234-.535l3.07-3.1-3.07-3.09A.7.7 0 0 1 7.6 8.37q0-.323.223-.536a.74.74 0 0 1 .545-.223q.323 0 .534.234l3.081 3.079 3.104-3.09a.77.77 0 0 1 .545-.234q.312 0 .534.223a.7.7 0 0 1 .234.547q0 .3-.234.535l-3.081 3.09 3.07 3.089a.75.75 0 0 1 .234.546.75.75 0 0 1-.234.547.73.73 0 0 1-.534.223.76.76 0 0 1-.556-.234l-3.082-3.078z"})),_||(_=n.createElement("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11m-1.65 0a9.35 9.35 0 1 1-18.7 0 9.35 9.35 0 1 1 18.7 0",clipRule:"evenodd"})))},Close:function(e){return n.createElement("svg",tn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),en||(en=n.createElement("path",{d:"M19.722 4.703a.95.95 0 0 0-1.343 0L12 11.082l-6.379-6.38a.95.95 0 1 0-1.343 1.344l6.38 6.379-6.38 6.378a.95.95 0 1 0 1.343 1.343L12 13.767l6.379 6.38a.95.95 0 1 0 1.343-1.343l-6.38-6.38 6.38-6.378a.95.95 0 0 0 0-1.343"})))}},Arrow:{ChevronDownSmall:function(e){return n.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),rn||(rn=n.createElement("path",{fillRule:"evenodd",d:"M12.48 15.576a.75.75 0 0 1-.96 0l-6-5a.75.75 0 0 1 .96-1.152l5.52 4.6 5.52-4.6a.75.75 0 1 1 .96 1.152z",clipRule:"evenodd"})))},ChevronLeftSmall:function(e){return n.createElement("svg",on({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),an||(an=n.createElement("path",{fillRule:"evenodd",d:"M8.92 11.525a.75.75 0 0 0 0 .95l4.5 5.5a.75.75 0 0 0 1.16-.95L10.47 12l4.112-5.025a.75.75 0 0 0-1.162-.95z",clipRule:"evenodd"})))},ChevronRightSmall:function(e){return n.createElement("svg",sn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),cn||(cn=n.createElement("path",{fillRule:"evenodd",d:"M14.555 11.496a.75.75 0 0 1 0 1.008l-5 5.5a.75.75 0 1 1-1.11-1.009L12.986 12 8.445 7.005a.75.75 0 1 1 1.11-1.01z",clipRule:"evenodd"})))}},Form:{Check:function(e){return n.createElement("svg",hn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),un||(un=n.createElement("path",{fillRule:"evenodd",d:"M20.698 7.716a1 1 0 1 0-1.396-1.432L8.706 16.604 4.698 12.7a1 1 0 0 0-1.396 1.433l4.671 4.55a1.05 1.05 0 0 0 1.465 0z",clipRule:"evenodd"})))},Minus:function(e){return n.createElement("svg",gn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),vn||(vn=n.createElement("path",{d:"M20.156 11.156a.844.844 0 0 1 0 1.688H3.844a.844.844 0 0 1 0-1.688z"})))},Plus:function(e){return n.createElement("svg",pn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),fn||(fn=n.createElement("path",{d:"M11 4a1 1 0 1 1 2 0v16a1 1 0 1 1-2 0z"})),wn||(wn=n.createElement("path",{d:"M20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2z"})))}},General:{DotMedium:function(e){return n.createElement("svg",mn({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),dn||(dn=n.createElement("circle",{cx:12,cy:12,r:8})))}},Security:{Search:function(e){return n.createElement("svg",On({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),bn||(bn=n.createElement("path",{d:"M10.168 18.181c1.774 0 3.41-.568 4.748-1.515l5.034 4.987c.234.231.542.347.871.347.69 0 1.179-.526 1.179-1.2 0-.315-.106-.62-.34-.841l-5.003-4.966a8 8 0 0 0 1.679-4.902C18.336 5.64 14.66 2 10.168 2 5.686 2 2 5.63 2 10.09c0 4.45 3.675 8.091 8.168 8.091m0-1.747c-3.505 0-6.405-2.872-6.405-6.344 0-3.471 2.9-6.344 6.405-6.344s6.405 2.873 6.405 6.345-2.9 6.344-6.405 6.344"})))}},View:{HideValue:function(e){return n.createElement("svg",En({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),yn||(yn=n.createElement("path",{d:"M12 6.795c2.492 0 4.547 2.126 4.547 4.743 0 .624-.125 1.21-.313 1.736l2.649 2.782A11.26 11.26 0 0 0 22 11.538c-1.59-4.185-5.453-7.13-10-7.13-1.277 0-2.492.23-3.613.656l1.96 2.06A4.5 4.5 0 0 1 12 6.795M2.902 4.21 4.988 6.37l.407.426A10.77 10.77 0 0 0 2 11.505c1.59 4.19 5.453 7.136 10 7.136 1.402 0 2.742-.296 3.988-.784l.375.361L19.043 21l1.152-1.21L4.055 3zM7.95 9.446l1.403 1.473c-.032.197-.063.394-.063.624 0 1.571 1.215 2.847 2.742 2.847.188 0 .406-.033.594-.066l1.402 1.473a4.1 4.1 0 0 1-1.992.493c-2.492 0-4.547-2.126-4.547-4.743a4.24 4.24 0 0 1 .461-2.101m3.895-.751 2.867 2.979.031-.164c0-1.572-1.215-2.848-2.742-2.848z"})))},ShowValue:function(e){return n.createElement("svg",Ln({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",stroke:"none"},e),jn||(jn=n.createElement("path",{fillRule:"evenodd",d:"M10.628 5.056c-1.806.285-3.317.952-4.832 2.131-1.274.992-2.657 2.658-3.452 4.156L2 11.99l.344.648c1.261 2.377 3.528 4.572 5.72 5.539 2.733 1.206 5.965 1.078 8.58-.338.982-.532 1.665-1.06 2.64-2.042.969-.975 1.803-2.086 2.372-3.16l.344-.647-.344-.648c-.569-1.073-1.403-2.184-2.372-3.16-1.627-1.638-3.147-2.521-5.12-2.974-.822-.19-2.773-.273-3.536-.153m2.49 2.586c.356.092.859.287 1.117.435.601.343 1.32 1.065 1.662 1.669.324.572.598 1.6.598 2.245s-.274 1.672-.598 2.245c-.342.603-1.06 1.325-1.662 1.668-.569.326-1.594.601-2.227.6a4.63 4.63 0 0 1-3.132-1.295c-.628-.62-.99-1.25-1.206-2.094-.208-.821-.208-1.427 0-2.248.407-1.597 1.6-2.805 3.178-3.22a4.23 4.23 0 0 1 2.27-.005m-1.923 1.99c-2.088.75-2.27 3.616-.292 4.592a2.54 2.54 0 0 0 2.194 0c.893-.44 1.355-1.202 1.355-2.233 0-.712-.173-1.189-.614-1.694-.597-.683-1.77-.978-2.643-.665",clipRule:"evenodd"})))}}},Fn={Action:{Close:function(e){return n.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",stroke:"none"},e),Rn||(Rn=n.createElement("path",{d:"M26.618 5.382a1.306 1.306 0 0 0-1.847 0L16 14.154 7.229 5.381A1.306 1.306 0 1 0 5.382 7.23L14.154 16l-8.772 8.771a1.306 1.306 0 0 0 1.847 1.847L16 17.847l8.771 8.77a1.306 1.306 0 0 0 1.847-1.846L17.847 16l8.77-8.771c.51-.51.51-1.337 0-1.847"})))}},General:{Check:function(e){return n.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",stroke:"none"},e),kn||(kn=n.createElement("path",{fillRule:"evenodd",d:"M27.597 9.38a1.426 1.426 0 0 0 .025-1.96 1.297 1.297 0 0 0-1.886-.027L11.608 21.705l-5.344-5.413a1.297 1.297 0 0 0-1.886.025 1.426 1.426 0 0 0 .025 1.961l6.228 6.309c.544.55 1.41.55 1.954 0z",clipRule:"evenodd"})))}}},Gn={Action:{Close:function(e){return n.createElement("svg",Cn({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",stroke:"none"},e),Pn||(Pn=n.createElement("path",{d:"M34.479 5.522a1.78 1.78 0 0 0-2.518 0L20 17.482 8.04 5.522A1.78 1.78 0 1 0 5.52 8.04L17.482 20 5.522 31.96a1.78 1.78 0 1 0 2.518 2.518L20 22.518l11.96 11.96a1.78 1.78 0 0 0 2.518-2.518L22.518 20l11.96-11.96a1.78 1.78 0 0 0 0-2.518"})))}},General:{Check:function(e){return n.createElement("svg",An({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,fill:"none",stroke:"none"},e),zn||(zn=n.createElement("path",{fillRule:"evenodd",d:"M36.082 11.174a1.849 1.849 0 1 0-2.58-2.65L13.909 27.607 6.5 20.389a1.849 1.849 0 0 0-2.58 2.649l8.636 8.411a1.94 1.94 0 0 0 2.709 0z",clipRule:"evenodd"})))}}};export{qn as a,Vn as b,Fn as c,Gn as d,Sn as e,Dn as f,Hn as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("@rc-component/tooltip"),i=require("react"),a=require("clsx"),o=require("@itcase/ui-core/hooks"),l=require("react-inlinesvg"),t=require("@itcase/ui-core/hoc"),s=require("@itcase/ui-core/utils");const n={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},c={appearance:n,setAppearance:e=>{c.appearance=e}};function d(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,text:n,cursor:d,style:f,tag:y="span",before:p,after:x,isActive:m,isDisabled:u,isSkeleton:S,onClick:z,onDoubleClick:C,children:g}=r,_=o.useAppearanceConfig(i,c,u),b=o.useDevicePropsGenerator(r,_),{textAlignClass:v,textColorActiveClass:P,textColorActiveHoverClass:T,textColorClass:h,textColorDisabledClass:A,textColorHoverClass:H,textDecorationClass:w,textFontClass:B,textStyleClass:$,textTruncateClass:F,textWeightClass:I,textWrapClass:X,cursorClass:k,sizeClass:j,widthClass:D}=b,{styles:N}=o.useStyles(r);return e.jsxs(y,{className:a(l,"text",j&&`text_size_${j}`,I&&`text-weight_${I}`,v&&`text-align_${v}`,u&&A&&`text-color_${A}`,!m&&!u&&h&&`text-color_${h}`,!m&&!u&&H&&`text-color_hover_${H}`,m&&!u&&T&&`text-color_active_hover_${T}`,m&&!u&&P&&`text-color_active_${P}`,B&&`text-font_${B}`,$&&`text-style_${$}`,X&&`word-wrap_${X}`,w&&`text-decoration_${w}`,F&&`text-truncate_${F}`,S&&"skeleton",D&&`width_${D}`,k&&`cursor_${k}`,z&&(d||"cursor_type_pointer")),"data-testid":t,"data-tour":s,style:Object.assign({},N,f),onClick:z,onDoubleClick:C,children:[p,g||n,x]})}const f={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},y={appearance:f,setAppearance:e=>{y.appearance=e}};function p(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,dot:n,icon:c,iconSrc:f,value:p,isSkeleton:x,children:m}=r,u=Boolean(p||0===p),S=o.useAppearanceConfig(i,y),z=o.useDevicePropsGenerator(r,S),{fillClass:C,fillHoverClass:g,borderColorClass:_,borderColorHoverClass:b,borderTypeClass:v,borderWidthClass:P,textColor:h,textSize:A,dotFillClass:H,iconFill:w,iconShape:B,iconSize:$,shapeClass:F,sizeClass:I}=z,{styles:X}=o.useStyles(r),k=u?c?n?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":c?"badge_type_icon":n?"badge_type_dot":"badge_type_fill";return e.jsxs("div",{className:a(l,"badge",_&&`border-color_${_}`,b&&`border-color_hover_${b}`,P&&`border-width_${P}`,v&&`border_type_${v}`,C&&`fill_${C}`,g&&`fill_hover_${g}`,I&&`badge_size_${I}`,F&&`shape_${F}`,k,x&&"skeleton"),"data-testid":t,"data-tour":s,style:X,children:[n&&e.jsx("div",{className:a("badge__dot",H&&`svg_fill_${H}`),children:e.jsx("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{width:"6",height:"6",rx:"50"})})}),c&&e.jsx(T,{className:"badge__icon",size:$,iconFill:w,imageSrc:f,shape:B,SvgImage:c}),m||u&&e.jsx(d,{className:"badge__value",size:A,textColor:h,children:p})]})}const x={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},m={appearance:x,LinkComponent:"a",setAppearance:e=>{m.appearance=e},setLinkComponent:e=>{m.LinkComponent=e}};function u(r){const{href:a,LinkComponent:o,rel:l,target:t,children:s,...n}=r;if(a){const r=o||m.LinkComponent;if(r)return e.jsx(r,{href:a,rel:l,target:t,...n,children:s})}else if(o)return e.jsx(o,{...n,children:s});return i.Children.toArray(s).filter(Boolean).map(e=>i.isValidElement(e)?i.cloneElement(e,n):e)}const S={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},z={appearance:S,setAppearance:e=>{z.appearance=e}};function C(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,text:c,afterWrapper:d,beforeWrapper:f,style:y,tag:p="span",before:x,after:m,isActive:u,isDisabled:S,isSkeleton:C,onClick:g,children:_}=r,b=o.useAppearanceConfig(l,z,S),v=o.useDevicePropsGenerator(r,b),{directionClass:P,size:h,fillClass:A,fillHoverClass:H,textAlignClass:w,textColorActiveClass:B,textColorActiveHoverClass:$,textColorClass:F,textColorDisabledClass:I,textColorHoverClass:X,textFontClass:k,textStyleClass:j,textTruncateClass:D,textWeightClass:N,textWrap:Q,heightClass:L,iconAfter:M,iconAfterFill:W,iconAfterFillIcon:E,iconAfterFillSize:V,iconAfterShape:q,iconAfterSize:G,iconAfterSrc:O,iconBadgeAppearance:R,iconBadgeShape:U,iconBadgeSize:K,iconBadgeTextColor:J,iconBadgeTextSize:Y,iconBadgeValue:Z,iconBefore:ee,iconBeforeFill:re,iconBeforeFillIcon:ie,iconBeforeFillSize:ae,iconBeforeShape:oe,iconBeforeSize:le,iconBeforeSrc:te,svgFillClass:se,svgFillHoverClass:ne,widthClass:ce,wrapperDirectionClass:de,onClickIconAfter:fe,onClickIconBefore:ye}=v,{styles:pe,wrapper:xe}=o.useStyles(r),me=i.useMemo(()=>p||(h||"span"),[p,h]);return e.jsxs(me,{className:a(t,"title",A&&`fill_${A}`,H&&`fill_hover_${H}`,se&&`svg_fill_${se}`,ne&&`svg_fill_hover_${ne}`,ce&&`width_${ce}`,L&&`height_${L}`,h&&`title_size_${h}`,P&&`title_direction_${P}`,S&&I&&`text-color_${I}`,!u&&!S&&F&&`text text-color_${F}`,u&&!S&&B&&`text-color_active_${B}`,!u&&!S&&X&&`text-color_hover_${X}`,u&&!S&&$&&`text-color_active_hover${$}`,k&&`text-font_${k}`,j&&`text-style_${j}`,N&&`text-weight_${N}`,Q&&`word-wrap_${Q}`,Z&&"title_badge",C&&"skeleton"),"data-testid":s,"data-tour":n,style:Object.assign({},pe,y),onClick:g,children:[x,e.jsxs("span",{className:a(w&&`text-align_${w}`,de&&`title_direction_${de}`,"title__wrapper",D&&`text-truncate_${D}`),style:xe,children:[(ee||te)&&e.jsx(T,{className:a("title__icon_before",Z&&"title__icon_before-badge"),fill:re,fillSize:ae,badgeAppearance:R,badgeClass:"title__icon_before_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:ie,iconSize:le,imageSrc:te,shape:oe,SvgImage:ee,onClick:ye}),f,_||c,d,(M||O)&&e.jsx(T,{className:a("title__icon_after",Z&&"title__icon_after-badge"),fill:W,fillSize:V,badgeAppearance:R,badgeClass:"title__icon_after_badge",badgeShape:U,badgeSize:K,badgeTextColor:J,badgeTextSize:Y,badgeValue:Z,iconFill:E,iconSize:G,imageSrc:O,shape:q,SvgImage:M,onClick:fe})]}),m]})}const g={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},_={appearance:g,setAppearance:e=>{_.appearance=e}},b=i.forwardRef(function(r,l){const{appearance:t,className:s,dataTestId:n,dataTour:c,initialIsVisible:f,title:y,text:p,before:x,after:m,openTimeoutDelay:u=500,closeTimeoutDelay:S=250,isSkeleton:z,children:g}=r,b=i.useRef(null),v=i.useRef(null),P=i.useRef(null),T=i.useRef(!1),[h,A]=i.useState(f),H=i.useCallback(()=>{T.current||(v.current&&clearTimeout(v.current),P.current=setTimeout(()=>{A(!0)},u))},[u]),w=i.useCallback(()=>{P.current&&clearTimeout(P.current),v.current=setTimeout(()=>{A(e=>(!0===e&&(T.current=!0),!1))},S)},[S]),B=i.useCallback(()=>{T.current=!1},[]);i.useImperativeHandle(l,()=>({get tooltipElement(){return b.current},openTooltip:H,closeTooltip:w,isTooltipVisible:h}),[h,H,w]);const $=o.useAppearanceConfig(t,_),F=o.useDevicePropsGenerator(r,$),{alignClass:I,alignDirectionClass:X,alignmentClass:k,alignPosition:j,fillClass:D,titleColor:N,titleSize:Q,titleWeight:L,borderColorClass:M,borderTypeClass:W,borderWidthClass:E,textColor:V,textSize:q,textWeight:G,arrowPosition:O,elevationClass:R,shapeClass:U,sizeClass:K,widthClass:J}=F,{styles:Y}=o.useStyles(r);return e.jsxs("div",{className:a(s,"tooltip",j&&`tooltip_align-position_${j}`,X&&`align_${X}`,I&&`align_${I}`,R&&`elevation_${R}`,k&&`alignment_${k}`,K&&`tooltip_size_${K}`,z&&"skeleton",J&&`width_${J}`),ref:b,"data-testid":n,"data-tour":c,style:Y,onAnimationEnd:B,children:[O&&e.jsx("div",{className:a("tooltip__arrow",O&&`tooltip__arrow_position_${O}`,D&&`fill_${D}`),children:" "}),x,e.jsxs("div",{className:a("tooltip__inner",E&&`border-width_${E}`,M&&`border-color_${M}`,W&&`border_type_${W}`,D&&`fill_${D}`,U&&`shape_${U}`),children:[y&&e.jsx(C,{className:"tooltip__title text",size:Q,textColor:N,textWeight:L,children:y}),p&&e.jsx(d,{className:"tooltip__text",size:q,textColor:V,textWeight:G,children:p}),g]}),m]})}),v={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},P={appearance:v,setAppearance:e=>{P.appearance=e}},T=t.urlWithAssetPrefix(i.forwardRef(function(r,t){const{id:n,appearance:c,className:d,dataTestId:f,dataTour:y,width:x,height:m,badgeClass:S,href:z,imageSrc:C,link:g,linkRel:_,linkTarget:v,notification:T,saveFillStroke:A,showTooltip:H,SvgImage:w,svgImageStyles:B,before:$,after:F,isActive:I,isDisabled:X,isSkeleton:k,onClick:j,onMouseEnter:D,onMouseLeave:N}=r,Q=i.useMemo(()=>{if(w){const r=w,i={};return x&&(i.width=x),m&&(i.height=m),e.jsx(r,{...i,...B})}return C?C.endsWith(".svg")?A?e.jsx(l,{src:C}):e.jsx(l,{src:C,preProcessor:h}):e.jsx("img",{src:C}):null},[w,C,x,m,B,A]),L=o.useAppearanceConfig(c,P,X),M=o.useDevicePropsGenerator(r,L),{alignmentClass:W,fillActiveClass:E,fillActiveHoverClass:V,fillClass:q,fillDisabledClass:G,fillHoverClass:O,fillSizeClass:R,borderColorClass:U,borderColorHoverClass:K,borderTypeClass:J,borderWidthClass:Y,badgeAppearance:Z,badgeAppearanceSize:ee,badgeShape:re,badgeSize:ie,badgeTextColor:ae,badgeTextSize:oe,badgeValue:le,centeringClass:te,iconFillActiveClass:se,iconFillActiveHoverClass:ne,iconFillClass:ce,iconFillDisabledClass:de,iconFillHoverClass:fe,iconSizeClass:ye,shapeClass:pe,tooltipAppearance:xe,tooltipText:me,tooltipTextSize:ue,tooltipTitle:Se,tooltipTitleSize:ze}=M,{styles:Ce}=o.useStyles(r);return e.jsxs("div",{id:n,className:a(d,"icon",I?E&&`fill_active_${E}`:q&&`fill_${q}`,I?V&&`fill_active_hover_${V}`:O&&`fill_hover_${O}`,R&&`icon_fill_size_${R}`,G&&`fill_disabled_${G}`,I?se&&`icon_fill_active_${se}`:ce&&`icon_fill_${ce}`,I?ne&&`icon_fill_active_hover_${ne}`:fe&&`icon_fill_hover_${fe}`,X&&de&&`icon_fill_disabled_${de}`,pe&&`shape_${pe}`,U&&`border-color_${U}`,K&&`border-color_hover_${K}`,Y&&`border-width_${Y}`,J&&`border_type_${J}`,le&&"icon_with-badge",te&&`centering_${te}`,j&&"cursor_type_pointer",k&&"skeleton"),ref:t,"data-testid":f,"data-tour":y,style:Ce,onClick:j,onMouseEnter:D,onMouseLeave:N,children:[$,e.jsxs(u,{className:a((g||z||j)&&"cursor_type_pointer",g||z?"icon__link":"icon__item",ye&&`icon_size_${ye}`),href:g||z,LinkComponent:"div",rel:_,target:v,children:[Q,(le||T)&&e.jsx(p,{appearance:s.mergeAppearanceKeys(Z,ee),className:a(S,"icon__badge"),size:ie,textColor:ae,textSize:oe,shape:re,value:le}),H&&e.jsx(b,{appearance:xe,className:a(d,"icon__tooltip",W&&`alignment_${W}`),title:Se,titleSize:ze,text:me,textSize:ue})]}),F]})})),h=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),A={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},H={appearance:A,setAppearance:e=>{H.appearance=e}};function w(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,print:n,isActive:c,isDisabled:d,isSkeleton:f}=r,y=o.useAppearanceConfig(i,H),p=o.useDevicePropsGenerator(r,y),{directionClass:x,fillActiveClass:m,fillActiveHoverClass:u,fillClass:S,fillDisabledClass:z,fillHoverClass:C,shapeClass:g,sizeClass:_,widthClass:b}=p,{styles:v}=o.useStyles(r);return e.jsx("hr",{className:a(l,"divider",b&&`width_${b}`,x&&`divider_direction_${x}`,g&&`shape_${g}`,_&&`divider_size_${_}`,c?m&&`fill_active_${m}`:S&&`fill_${S}`,c?u&&`fill_active_hover_${u}`:C&&`fill_hover_${C}`,d&&z&&`fill_disabled_${z}`,f&&"skeleton",!n&&"no-print",n&&"print"),"data-testid":t,"data-tour":s,style:v})}const B={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},$={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},F={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},I={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},X={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},k={appearance:{...X,...I,...$,...B,...F},setAppearance:e=>{k.appearance=e}};const j={...X,...I,...$,...B,...F},D={appearance:j,setAppearance:e=>{D.appearance=e}};function N(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,label:c,desc:f,badgeValue:y,emptyMessage:x,showDivider:m,before:u,after:S,isActive:z,isDisabled:C,isSkeleton:g,isHover:_,onClick:b,onMouseEnter:v,children:P}=r,h=o.useAppearanceConfig(l,D),A=o.useDevicePropsGenerator(r,h),{directionClass:H,justifyContentClass:B,fillActiveClass:$,fillActiveHoverClass:F,fillClass:I,fillDisabledClass:X,fillHoverClass:k,labelTextAlign:j,labelTextColor:N,labelTextColorActive:Q,labelTextColorActiveHover:L,labelTextColorHover:M,labelTextSize:W,labelTextStyle:E,labelTextWeight:V,labelTextWrap:q,descTextColor:G,descTextColorHover:O,descTextGradient:R,descTextSize:U,descTextStyle:K,descTextWeight:J,descTextWrap:Y,badgeAppearance:Z,badgeShape:ee,badgeSize:re,badgeTextColor:ie,badgeTextSize:ae,dividerDirection:oe,dividerFill:le,dividerSize:te,emptyMessageTextColor:se,emptyMessageTextColorHover:ne,emptyMessageTextSize:ce,emptyMessageTextStyle:de,emptyMessageTextWeight:fe,emptyMessageTextWrap:ye,iconAfter:pe,iconAfterFill:xe,iconAfterFillIcon:me,iconAfterFillSize:ue,iconAfterShape:Se,iconAfterSize:ze,iconAfterSrc:Ce,iconBadgeAppearance:ge,iconBadgeShape:_e,iconBadgeSize:be,iconBadgeTextColor:ve,iconBadgeTextSize:Pe,iconBadgeValue:Te,iconBefore:he,iconBeforeFill:Ae,iconBeforeFillIcon:He,iconBeforeFillSize:we,iconBeforeShape:Be,iconBeforeSize:$e,iconBeforeSrc:Fe,shapeClass:Ie,sizeClass:Xe,widthClass:ke}=A,{styles:je}=o.useStyles(r);return e.jsxs("div",{className:a("dropdown__item",z&&"dropdown__item_state_active",_&&"dropdown__item_state_hover",H&&`dropdown__item_direction_${H}`,t,z?$&&`fill_active_${$}`:I&&`fill_${I}`,z?F&&`fill_active_hover_${F}`:k&&`fill_hover_${k}`,X&&`fill_disabled_${X}`,Xe&&`dropdown__item_size_${Xe}`,Ie&&`shape_${Ie}`,ke&&`dropdown__item_width_${ke}`,C&&"dropdown__item_state_disabled",b&&"cursor_type_pointer",g&&"skeleton",B&&`dropdown__item_justify-content_${B}`),"data-testid":s,"data-tour":n,style:je,onClick:b,onMouseEnter:v,children:[e.jsx("div",{className:"dropdown__item-wrapper",children:e.jsxs(i.Fragment,{children:[u,(he||Fe)&&e.jsx(T,{className:a("dropdown__item_before",Te&&"dropdown__item_before-badge"),fill:Ae,fillSize:we,badgeAppearance:ge,badgeClass:"dropdown__item_before_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:He,iconSize:$e,imageSrc:Fe,shape:Be,SvgImage:he}),P||e.jsxs(i.Fragment,{children:[c&&e.jsx(d,{className:"dropdown__item-label",size:W,textAlign:j,textColor:N,textColorActive:Q,textColorActiveHover:L,textColorHover:M,textStyle:E,textWeight:V,textWrap:q,isActive:z,children:c}),y&&e.jsx(p,{appearance:Z,size:re,textColor:ie,textSize:ae,shape:ee,value:y}),f&&e.jsx(d,{className:"dropdown__item-desc",size:U,textColor:G,textColorGradient:R,textColorHover:O,textStyle:K,textWeight:J,textWrap:Y,isActive:z,children:f}),x&&e.jsx(d,{className:"dropdown__item",size:ce,textColor:se,textColorHover:ne,textStyle:de,textWeight:fe,textWrap:ye,isActive:z,children:x})]}),S,(pe||Ce)&&e.jsx(T,{className:a("dropdown__item_after",Te&&"dropdown__item_after-badge"),fill:xe,fillSize:ue,badgeAppearance:ge,badgeClass:"dropdown__item_after_badge",badgeShape:_e,badgeSize:be,badgeTextColor:ve,badgeTextSize:Pe,badgeValue:Te,iconFill:me,iconSize:ze,imageSrc:Ce,shape:Se,SvgImage:pe})]})}),m&&e.jsx(w,{width:"fill",direction:oe,size:te,fill:le})]})}exports.Badge=p,exports.Divider=w,exports.Dropdown=function(r){const{appearance:l,className:t,dataTestId:s,dataTour:n,animationClose:c="dropdown_animation_close",animationOpen:d="dropdown_animation_open",dropdownList:f,showDivider:y,before:p,after:x,isSkeleton:m,isOpen:u,setIsOpen:S,onClickItem:z,children:C}=r,g=i.useRef(null),_=o.useAppearanceConfig(l,k),[b,v]=i.useState({className:""}),P=i.useCallback(()=>{v(e=>({className:u?e.className:""}))},[u]);i.useEffect(()=>{d&&c&&v(()=>({className:u?d:c}))},[u,d,c]),i.useEffect(()=>{function e(e){const r=g.current;if(r&&d){const i=r.contains(e.target),a=r.classList.contains(d);!i&&a&&S(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[d,S]);const T=o.useDevicePropsGenerator(r,_),{alignmentClass:h,fillClass:A,elevationClass:H,shapeClass:w}=T,{styles:B}=o.useStyles(r);return e.jsxs("div",{className:a(t,"dropdown",h&&`alignment_${h}`,A&&`fill_${A}`,w&&`shape_${w}`,H&&`elevation_${H}`,u?"dropdown_state_open":"dropdown_state_close",b.className),ref:g,"data-testid":s,"data-tour":n,style:B,children:[p,(C||f)&&e.jsxs("div",{className:a("dropdown__wrapper"),onAnimationEnd:P,children:[f?.map(r=>e.jsx(N,{appearance:l,label:r.label,badgeValue:r.badgeValue,emptyMessage:r.emptyMessage,iconAfter:r.iconAfter,iconBefore:r.iconBefore,iconSrc:r.icon,showDivider:y,isActive:r.isActive,isSkeleton:m,onClick:r.onClick||(e=>z?.(r,e))},r.key)),C]}),x]})},exports.DropdownItem=N,exports.Icon=T,exports.Link=function(r){const{appearance:i,className:l,dataTestId:t,dataTour:s,text:n,href:c,link:d,LinkComponent:f,rel:y,style:p,target:x,before:S,after:z,isDisabled:C,onClick:g,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:h}=r,A=o.useAppearanceConfig(i,m,C),H=o.useDevicePropsGenerator(r,A),{directionClass:w,fillClass:B,fillHoverClass:$,borderColorClass:F,borderColorHoverClass:I,borderTypeClass:X,borderWidthClass:k,textColorClass:j,textColorHoverClass:D,textGradientClass:N,textStyleClass:Q,textWeightClass:L,heightClass:M,shapeClass:W,sizeClass:E,svgFillClass:V,svgFillHoverClass:q,underline:G="underline",widthClass:O}=H,{styles:R}=o.useStyles(r);return e.jsxs(u,{className:a(l,"link",O&&`width_${O}`,M&&`height_${M}`,w&&`link_direction_${w}`,E&&`text_size_${E}`,V&&`svg_fill_${V}`,q&&`svg_fill_hover_${q}`,G&&`link_underline_${G}`,"text",(j||D||N||Q||L)&&"text",j&&`text-color_${j}`,D&&`text-color_hover_${D}`,N&&`text-gradient_${N}`,Q&&`text-style_${Q}`,L&&`text-weight_${L}`,B&&`fill_${B}`,$&&`fill_hover_${$}`,F&&`border-color_${F}`,I&&`border-color_hover_${I}`,k&&`border-width_${k}`,X&&`border_type_${X}`,W&&`link_shape_${W}`),"data-testid":t,"data-tour":s,href:c||d,LinkComponent:f,rel:y,style:Object.assign({},R,p),target:x,onClick:g,onMouseDown:_,onPointerCancel:b,onPointerDown:v,onPointerLeave:P,onPointerUp:T,children:[S,h||n,z]})},exports.LinkWrapper=u,exports.Text=d,exports.Title=C,exports.Tooltip=b,exports.TooltipWrapper=i=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=i;return e.jsx(r,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:e.jsx(b,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},exports.badgeAppearance=f,exports.badgeConfig=y,exports.dividerAppearance=A,exports.dividerConfig=H,exports.dropdownItemAppearance=j,exports.dropdownItemConfig=D,exports.iconAppearance=v,exports.iconConfig=P,exports.linkAppearance=x,exports.linkConfig=m,exports.textAppearance=n,exports.textConfig=c,exports.titleAppearance=S,exports.titleConfig=z,exports.tooltipAppearance=g,exports.tooltipConfig=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import i from"@rc-component/tooltip";import a,{useMemo as o,useRef as l,useState as t,useCallback as s,useImperativeHandle as n,useEffect as c}from"react";import d from"clsx";import{useAppearanceConfig as f,useDevicePropsGenerator as y,useStyles as m}from"@itcase/ui-core/hooks";import S from"react-inlinesvg";import{urlWithAssetPrefix as p}from"@itcase/ui-core/hoc";import{mergeAppearanceKeys as x}from"@itcase/ui-core/utils";const z={sizeXXL:{size:"xxl"},sizeXL:{size:"xl"},sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},sizeXS:{size:"xs"},sizeXXS:{size:"xxs"}},u={appearance:z,setAppearance:e=>{u.appearance=e}};function _(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,text:t,cursor:s,style:n,tag:c="span",before:S,after:p,isActive:x,isDisabled:z,isSkeleton:_,onClick:b,onDoubleClick:g,children:C}=r,v=f(i,u,z),P=y(r,v),{textAlignClass:T,textColorActiveClass:h,textColorActiveHoverClass:H,textColorClass:A,textColorDisabledClass:B,textColorHoverClass:$,textDecorationClass:w,textFontClass:F,textStyleClass:X,textTruncateClass:I,textWeightClass:k,textWrapClass:N,cursorClass:Q,sizeClass:L,widthClass:D}=P,{styles:M}=m(r);return e(c,{className:d(a,"text",L&&`text_size_${L}`,k&&`text-weight_${k}`,T&&`text-align_${T}`,z&&B&&`text-color_${B}`,!x&&!z&&A&&`text-color_${A}`,!x&&!z&&$&&`text-color_hover_${$}`,x&&!z&&H&&`text-color_active_hover_${H}`,x&&!z&&h&&`text-color_active_${h}`,F&&`text-font_${F}`,X&&`text-style_${X}`,N&&`word-wrap_${N}`,w&&`text-decoration_${w}`,I&&`text-truncate_${I}`,_&&"skeleton",D&&`width_${D}`,Q&&`cursor_${Q}`,b&&(s||"cursor_type_pointer")),"data-testid":o,"data-tour":l,style:Object.assign({},M,n),onClick:b,onDoubleClick:g,children:[S,C||t,p]})}const b={sizeXXL:{size:"xxl",textSize:"xl",iconSize:"24"},sizeXL:{size:"xl",textSize:"l",iconSize:"24"},sizeL:{size:"l",textSize:"l",iconSize:"24"},sizeM:{size:"m",textSize:"m",iconSize:"24"},sizeS:{size:"s",textSize:"s",iconSize:"24"},sizeXS:{size:"xs",textSize:"xxs",iconSize:"24"},sizeXXS:{size:"xxs",textSize:"xxs",iconSize:"24"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentQuaternary:{fill:"accentQuaternary",borderColor:"accentBorderQuaternary",textColor:"accentTextPrimary",dotFill:"accentItemPrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentSecondary",borderColor:"accentBorderQuaternary",textColor:"accentTextQuaternary",dotFill:"accentItemQuaternary",iconFill:"accentItemQuaternary"},accentTertiary:{fill:"accentTertiary",borderColor:"accentBorderSecondary",textColor:"accentTextSecondary",dotFill:"accentItemSecondary",iconFill:"accentItemSecondary"},dangerPrimary:{fill:"dangerPrimary",borderColor:"dangerBorderPrimary",textColor:"dangerTextPrimary",dotFill:"dangerItemPrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderSecondary",textColor:"infoTextPrimary",dotFill:"infoItemPrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"infoSecondary",borderColor:"infoBorderSecondary",textColor:"infoTextSecondary",dotFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",borderColor:"specialBorderSecondary",textColor:"specialTextPrimary",dotFill:"specialItemPrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",borderColor:"extraBorderSecondary",textColor:"extraTextPrimary",dotFill:"extraItemPrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary",dotFill:"successItemPrimary",iconFill:"successItemPrimary"},disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary",iconFill:"surfaceItemPrimary"},surfacePrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary",dotFill:"surfaceItemPrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"accentPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderSecondary",textColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",borderColor:"surfaceBorderTertiary",textColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary",dotFill:"warningItemPrimary",iconFill:"warningItemPrimary"}},g={appearance:b,setAppearance:e=>{g.appearance=e}};function C(i){const{appearance:a,className:o,dataTestId:l,dataTour:t,dot:s,icon:n,iconSrc:c,value:S,isSkeleton:p,children:x}=i,z=Boolean(S||0===S),u=f(a,g),b=y(i,u),{fillClass:C,fillHoverClass:v,borderColorClass:P,borderColorHoverClass:T,borderTypeClass:h,borderWidthClass:H,textColor:A,textSize:B,dotFillClass:$,iconFill:w,iconShape:F,iconSize:X,shapeClass:I,sizeClass:k}=b,{styles:Q}=m(i);return e("div",{className:d(o,"badge",P&&`border-color_${P}`,T&&`border-color_hover_${T}`,H&&`border-width_${H}`,h&&`border_type_${h}`,C&&`fill_${C}`,v&&`fill_hover_${v}`,k&&`badge_size_${k}`,I&&`shape_${I}`,z?n?s?"badge_type_dot-icon-counter":"badge_type_icon-counter":"badge_type_counter":n?"badge_type_icon":s?"badge_type_dot":"badge_type_fill",p&&"skeleton"),"data-testid":l,"data-tour":t,style:Q,children:[s&&r("div",{className:d("badge__dot",$&&`svg_fill_${$}`),children:r("svg",{width:"6",height:"6",viewBox:"0 0 6 6",xmlns:"http://www.w3.org/2000/svg",children:r("rect",{width:"6",height:"6",rx:"50"})})}),n&&r(N,{className:"badge__icon",size:X,iconFill:w,imageSrc:c,shape:F,SvgImage:n}),x||z&&r(_,{className:"badge__value",size:B,textColor:A,children:S})]})}const v={sizeXXL:{size:"xxl",labelTextSize:"xxl",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeXL:{size:"xl",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeL:{size:"l",labelTextSize:"l",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeM:{size:"m",labelTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},sizeXS:{size:"xs",labelTextSize:"xs",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXXS:{size:"xxs",labelTextSize:"xs",iconAfterFillSize:"14",iconAfterSize:"14",iconBeforeFillSize:"14",iconBeforeSize:"14"},disabledPrimary:{fill:"surfaceDisabled",borderColor:"errorBorderQuaternary",textColor:"surfaceTextQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderColorHover:"surfaceBorderQuaternary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",textColor:"surfaceTextPrimary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{borderColor:"none"},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary",borderColor:"accentBorderPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",labelTextColor:"errorTextPrimary",labelTextColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextPrimary",borderColor:"accentBorderPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",labelTextColor:"specialTextPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",labelTextColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",labelTextColor:"successTextSecondary",labelTextColorHover:"successTextSecondary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",labelTextColor:"warningTextSecondary",labelTextColorHover:"warningTextSecondary"}},P={appearance:v,LinkComponent:"a",setAppearance:e=>{P.appearance=e},setLinkComponent:e=>{P.LinkComponent=e}};function T(r){const{appearance:i,className:a,dataTestId:o,dataTour:l,text:t,href:s,link:n,LinkComponent:c,rel:S,style:p,target:x,before:z,after:u,isDisabled:_,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:A}=r,B=f(i,P,_),$=y(r,B),{directionClass:w,fillClass:F,fillHoverClass:X,borderColorClass:I,borderColorHoverClass:k,borderTypeClass:N,borderWidthClass:Q,textColorClass:L,textColorHoverClass:D,textGradientClass:M,textStyleClass:W,textWeightClass:V,heightClass:E,shapeClass:O,sizeClass:j,svgFillClass:q,svgFillHoverClass:G,underline:R="underline",widthClass:U}=$,{styles:J}=m(r);return e(h,{className:d(a,"link",U&&`width_${U}`,E&&`height_${E}`,w&&`link_direction_${w}`,j&&`text_size_${j}`,q&&`svg_fill_${q}`,G&&`svg_fill_hover_${G}`,R&&`link_underline_${R}`,"text",(L||D||M||W||V)&&"text",L&&`text-color_${L}`,D&&`text-color_hover_${D}`,M&&`text-gradient_${M}`,W&&`text-style_${W}`,V&&`text-weight_${V}`,F&&`fill_${F}`,X&&`fill_hover_${X}`,I&&`border-color_${I}`,k&&`border-color_hover_${k}`,Q&&`border-width_${Q}`,N&&`border_type_${N}`,O&&`link_shape_${O}`),"data-testid":o,"data-tour":l,href:s||n,LinkComponent:c,rel:S,style:Object.assign({},J,p),target:x,onClick:b,onMouseDown:g,onPointerCancel:C,onPointerDown:v,onPointerLeave:T,onPointerUp:H,children:[z,A||t,u]})}function h(e){const{href:i,LinkComponent:o,rel:l,target:t,children:s,...n}=e;if(i){const e=o||P.LinkComponent;if(e)return r(e,{href:i,rel:l,target:t,...n,children:s})}else if(o)return r(o,{...n,children:s});return a.Children.toArray(s).filter(Boolean).map(e=>a.isValidElement(e)?a.cloneElement(e,n):e)}const H={h1:{size:"h1",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h2:{size:"h2",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h3:{size:"h3",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h4:{size:"h4",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},h5:{size:"h5",iconAfterFillSize:"20",iconAfterSize:"20",iconBeforeFillSize:"20",iconBeforeSize:"20"},h6:{size:"h6",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},disabledPrimary:{fill:"surfacePrimary",borderColor:"errorBorderQuaternary",borderHover:"errorBorderHoverQuaternary",textColor:"surfaceTextQuaternary",iconBeforeFill:"errorQuaternary"},disabledSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderHoverQuaternary",iconBeforeFill:"surfaceQuaternary"},solid:{},outlined:{fill:"none"},full:{},ghost:{fill:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",textColor:"errorTextPrimary",textColorHover:"errorTextPrimary"},infoPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",textColor:"extraTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",textColor:"warningTextSecondary",textColorHover:"warningTextSecondary"},requirePrimary:{fill:"warningTertiary",borderColor:"warningBorderQuaternary",borderHover:"warningBorderQuaternary",textColor:"surfaceTextPrimary",iconBeforeFill:"warningQuaternary"},requireSecondary:{fill:"surfaceSecondary",borderColor:"surfaceBorderTertiary",borderHover:"surfaceBorderQuaternary",iconBeforeFill:"surfaceQuaternary"}},A={appearance:H,setAppearance:e=>{A.appearance=e}};function B(i){const{appearance:a,className:l,dataTestId:t,dataTour:s,text:n,afterWrapper:c,beforeWrapper:S,style:p,tag:x="span",before:z,after:u,isActive:_,isDisabled:b,isSkeleton:g,onClick:C,children:v}=i,P=f(a,A,b),T=y(i,P),{directionClass:h,size:H,fillClass:B,fillHoverClass:$,textAlignClass:w,textColorActiveClass:F,textColorActiveHoverClass:X,textColorClass:I,textColorDisabledClass:k,textColorHoverClass:Q,textFontClass:L,textStyleClass:D,textTruncateClass:M,textWeightClass:W,textWrap:V,heightClass:E,iconAfter:O,iconAfterFill:j,iconAfterFillIcon:q,iconAfterFillSize:G,iconAfterShape:R,iconAfterSize:U,iconAfterSrc:J,iconBadgeAppearance:K,iconBadgeShape:Y,iconBadgeSize:Z,iconBadgeTextColor:ee,iconBadgeTextSize:re,iconBadgeValue:ie,iconBefore:ae,iconBeforeFill:oe,iconBeforeFillIcon:le,iconBeforeFillSize:te,iconBeforeShape:se,iconBeforeSize:ne,iconBeforeSrc:ce,svgFillClass:de,svgFillHoverClass:fe,widthClass:ye,wrapperDirectionClass:me,onClickIconAfter:Se,onClickIconBefore:pe}=T,{styles:xe,wrapper:ze}=m(i),ue=o(()=>x||(H||"span"),[x,H]);return e(ue,{className:d(l,"title",B&&`fill_${B}`,$&&`fill_hover_${$}`,de&&`svg_fill_${de}`,fe&&`svg_fill_hover_${fe}`,ye&&`width_${ye}`,E&&`height_${E}`,H&&`title_size_${H}`,h&&`title_direction_${h}`,b&&k&&`text-color_${k}`,!_&&!b&&I&&`text text-color_${I}`,_&&!b&&F&&`text-color_active_${F}`,!_&&!b&&Q&&`text-color_hover_${Q}`,_&&!b&&X&&`text-color_active_hover${X}`,L&&`text-font_${L}`,D&&`text-style_${D}`,W&&`text-weight_${W}`,V&&`word-wrap_${V}`,ie&&"title_badge",g&&"skeleton"),"data-testid":t,"data-tour":s,style:Object.assign({},xe,p),onClick:C,children:[z,e("span",{className:d(w&&`text-align_${w}`,me&&`title_direction_${me}`,"title__wrapper",M&&`text-truncate_${M}`),style:ze,children:[(ae||ce)&&r(N,{className:d("title__icon_before",ie&&"title__icon_before-badge"),fill:oe,fillSize:te,badgeAppearance:K,badgeClass:"title__icon_before_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:le,iconSize:ne,imageSrc:ce,shape:se,SvgImage:ae,onClick:pe}),S,v||n,c,(O||J)&&r(N,{className:d("title__icon_after",ie&&"title__icon_after-badge"),fill:j,fillSize:G,badgeAppearance:K,badgeClass:"title__icon_after_badge",badgeShape:Y,badgeSize:Z,badgeTextColor:ee,badgeTextSize:re,badgeValue:ie,iconFill:q,iconSize:U,imageSrc:J,shape:R,SvgImage:O,onClick:Se})]}),u]})}const $={defaultPrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverPrimary",titleColor:"surfaceTextPrimary",borderColor:"surfaceBorderPrimary",textColor:"surfaceTextPrimary"},sizeL:{size:"l",titleSize:"h5",textSize:"s"},sizeM:{size:"m",titleSize:"h5",textSize:"s"},sizeS:{size:"s",titleSize:"h5",textSize:"s"},disabledPrimary:{fill:"disabledPrimary",fillHover:"disabledHoverPrimary",titleColor:"surfaceTextPrimary",textColor:"surfaceTextPrimary"},requirePrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",titleColor:"warningTextPrimary",borderColor:"warningBorderPrimary",textColor:"warningTextPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",titleColor:"errorTextPrimary",borderColor:"errorBorderPrimary",textColor:"errorTextPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",titleColor:"successTextPrimary",borderColor:"successBorderPrimary",textColor:"successTextPrimary"}},w={appearance:$,setAppearance:e=>{w.appearance=e}},F=a.forwardRef(function(i,a){const{appearance:o,className:c,dataTestId:S,dataTour:p,initialIsVisible:x,title:z,text:u,before:b,after:g,openTimeoutDelay:C=500,closeTimeoutDelay:v=250,isSkeleton:P,children:T}=i,h=l(null),H=l(null),A=l(null),$=l(!1),[F,X]=t(x),I=s(()=>{$.current||(H.current&&clearTimeout(H.current),A.current=setTimeout(()=>{X(!0)},C))},[C]),k=s(()=>{A.current&&clearTimeout(A.current),H.current=setTimeout(()=>{X(e=>(!0===e&&($.current=!0),!1))},v)},[v]),N=s(()=>{$.current=!1},[]);n(a,()=>({get tooltipElement(){return h.current},openTooltip:I,closeTooltip:k,isTooltipVisible:F}),[F,I,k]);const Q=f(o,w),L=y(i,Q),{alignClass:D,alignDirectionClass:M,alignmentClass:W,alignPosition:V,fillClass:E,titleColor:O,titleSize:j,titleWeight:q,borderColorClass:G,borderTypeClass:R,borderWidthClass:U,textColor:J,textSize:K,textWeight:Y,arrowPosition:Z,elevationClass:ee,shapeClass:re,sizeClass:ie,widthClass:ae}=L,{styles:oe}=m(i);return e("div",{className:d(c,"tooltip",V&&`tooltip_align-position_${V}`,M&&`align_${M}`,D&&`align_${D}`,ee&&`elevation_${ee}`,W&&`alignment_${W}`,ie&&`tooltip_size_${ie}`,P&&"skeleton",ae&&`width_${ae}`),ref:h,"data-testid":S,"data-tour":p,style:oe,onAnimationEnd:N,children:[Z&&r("div",{className:d("tooltip__arrow",Z&&`tooltip__arrow_position_${Z}`,E&&`fill_${E}`),children:" "}),b,e("div",{className:d("tooltip__inner",U&&`border-width_${U}`,G&&`border-color_${G}`,R&&`border_type_${R}`,E&&`fill_${E}`,re&&`shape_${re}`),children:[z&&r(B,{className:"tooltip__title text",size:j,textColor:O,textWeight:q,children:z}),u&&r(_,{className:"tooltip__text",size:K,textColor:J,textWeight:Y,children:u}),T]}),g]})}),X=e=>{const{destroyOnHidden:a=!1,placement:o="right",tooltipContent:l,trigger:t="hover",openDelay:s=.5,closeDelay:n=.25,isOpen:c,children:d,...f}=e;return r(i,{destroyOnHidden:a,mouseEnterDelay:s,mouseLeaveDelay:n,overlay:r(F,{initialIsVisible:!0,...f,children:l}),placement:o,prefixCls:"tooltip-wrapper",trigger:t,visible:c,children:d})},I={disabledPrimary:{fill:"surfacePrimary",borderColor:"surfaceBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemQuaternary"},size12_12:{fillSize:"12",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_12:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size14_14:{fillSize:"14",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_12:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size16_14:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size16_16:{fillSize:"16",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_12:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size20_14:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size20_16:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size20_20:{fillSize:"20",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_12:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size24_14:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size24_16:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size24_20:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size24_24:{fillSize:"24",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_12:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size32_14:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size32_16:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size32_20:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size32_24:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size32_32:{fillSize:"32",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_12:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"12"},size40_14:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"14"},size40_16:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"16"},size40_20:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"20"},size40_24:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"24"},size40_32:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"32"},size40_40:{fillSize:"40",badgeAppearanceSize:"sizeXXS",badgeSize:"xxs",iconSize:"40"},solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"},accentPrimary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"accentItemPrimary"},circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"},dangerPrimary:{fill:"dangerPrimary",fillHover:"dangerHoverPrimary",borderColor:"dangerBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"dangerItemPrimary"},errorPrimary:{fill:"errorPrimary",fillHover:"errorHoverPrimary",borderColor:"errorBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"errorItemPrimary"},infoPrimary:{fill:"infoPrimary",borderColor:"infoBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"infoItemPrimary"},infoSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",borderColor:"accentBorderPrimary",iconFill:"infoItemSecondary"},specialPrimary:{fill:"specialPrimary",fillHover:"specialHoverPrimary",borderColor:"specialBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"specialItemPrimary"},extraPrimary:{fill:"extraPrimary",fillHover:"extraHoverPrimary",borderColor:"extraBorderQuaternary",badgeAppearance:"surfacePrimary",iconFill:"extraItemPrimary"},successPrimary:{fill:"successPrimary",fillHover:"successHoverPrimary",borderColor:"successBorderPrimary",badgeAppearance:"surfacePrimary",iconFill:"successItemPrimary"},surfacePrimary:{fill:"surfacePrimary",fillHover:"surfaceHoverSecondary",borderColor:"surfaceBorderTertiary",badgeAppearance:"surfacePrimary",iconFill:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary solid rounded",iconFill:"surfaceItemPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",badgeAppearance:"accentPrimary",iconFill:"surfaceItemPrimary"},warningPrimary:{fill:"warningPrimary",fillHover:"warningHoverPrimary",borderColor:"warningBorderSecondary",badgeAppearance:"surfacePrimary",iconFill:"warningItemPrimary"}},k={appearance:I,setAppearance:e=>{k.appearance=e}},N=p(a.forwardRef(function(i,a){const{id:l,appearance:t,className:s,dataTestId:n,dataTour:c,width:p,height:z,badgeClass:u,href:_,imageSrc:b,link:g,linkRel:v,linkTarget:P,notification:T,saveFillStroke:H,showTooltip:A,SvgImage:B,svgImageStyles:$,before:w,after:X,isActive:I,isDisabled:N,isSkeleton:L,onClick:D,onMouseEnter:M,onMouseLeave:W}=i,V=o(()=>{if(B){const e=B,i={};return p&&(i.width=p),z&&(i.height=z),r(e,{...i,...$})}return b?b.endsWith(".svg")?r(S,H?{src:b}:{src:b,preProcessor:Q}):r("img",{src:b}):null},[B,b,p,z,$,H]),E=f(t,k,N),O=y(i,E),{alignmentClass:j,fillActiveClass:q,fillActiveHoverClass:G,fillClass:R,fillDisabledClass:U,fillHoverClass:J,fillSizeClass:K,borderColorClass:Y,borderColorHoverClass:Z,borderTypeClass:ee,borderWidthClass:re,badgeAppearance:ie,badgeAppearanceSize:ae,badgeShape:oe,badgeSize:le,badgeTextColor:te,badgeTextSize:se,badgeValue:ne,centeringClass:ce,iconFillActiveClass:de,iconFillActiveHoverClass:fe,iconFillClass:ye,iconFillDisabledClass:me,iconFillHoverClass:Se,iconSizeClass:pe,shapeClass:xe,tooltipAppearance:ze,tooltipText:ue,tooltipTextSize:_e,tooltipTitle:be,tooltipTitleSize:ge}=O,{styles:Ce}=m(i);return e("div",{id:l,className:d(s,"icon",I?q&&`fill_active_${q}`:R&&`fill_${R}`,I?G&&`fill_active_hover_${G}`:J&&`fill_hover_${J}`,K&&`icon_fill_size_${K}`,U&&`fill_disabled_${U}`,I?de&&`icon_fill_active_${de}`:ye&&`icon_fill_${ye}`,I?fe&&`icon_fill_active_hover_${fe}`:Se&&`icon_fill_hover_${Se}`,N&&me&&`icon_fill_disabled_${me}`,xe&&`shape_${xe}`,Y&&`border-color_${Y}`,Z&&`border-color_hover_${Z}`,re&&`border-width_${re}`,ee&&`border_type_${ee}`,ne&&"icon_with-badge",ce&&`centering_${ce}`,D&&"cursor_type_pointer",L&&"skeleton"),ref:a,"data-testid":n,"data-tour":c,style:Ce,onClick:D,onMouseEnter:M,onMouseLeave:W,children:[w,e(h,{className:d((g||_||D)&&"cursor_type_pointer",g||_?"icon__link":"icon__item",pe&&`icon_size_${pe}`),href:g||_,LinkComponent:"div",rel:v,target:P,children:[V,(ne||T)&&r(C,{appearance:x(ie,ae),className:d(u,"icon__badge"),size:le,textColor:te,textSize:se,shape:oe,value:ne}),A&&r(F,{appearance:ze,className:d(s,"icon__tooltip",j&&`alignment_${j}`),title:be,titleSize:ge,text:ue,textSize:_e})]}),X]})})),Q=e=>e.replace(/fill=".*?"/g,'fill=""').replace(/stroke=".*?"/g,'stroke=""'),L={sizeL:{size:"l"},sizeM:{size:"m"},sizeS:{size:"s"},accentPrimary:{fill:"accentPrimary"},errorPrimary:{fill:"errorPrimary"},specialPrimary:{fill:"specialPrimary"},extraPrimary:{fill:"extraPrimary"},successPrimary:{fill:"successPrimary"},surfacePrimary:{fill:"surfacePrimary"},surfaceQuaternary:{fill:"surfaceQuaternary"},surfaceSecondary:{fill:"surfaceSecondary"},surfaceTertiary:{fill:"surfaceTertiary"},warningPrimary:{fill:"warningPrimary"}},D={appearance:L,setAppearance:e=>{D.appearance=e}};function M(e){const{appearance:i,className:a,dataTestId:o,dataTour:l,print:t,isActive:s,isDisabled:n,isSkeleton:c}=e,S=f(i,D),p=y(e,S),{directionClass:x,fillActiveClass:z,fillActiveHoverClass:u,fillClass:_,fillDisabledClass:b,fillHoverClass:g,shapeClass:C,sizeClass:v,widthClass:P}=p,{styles:T}=m(e);return r("hr",{className:d(a,"divider",P&&`width_${P}`,x&&`divider_direction_${x}`,C&&`shape_${C}`,v&&`divider_size_${v}`,s?z&&`fill_active_${z}`:_&&`fill_${_}`,s?u&&`fill_active_hover_${u}`:g&&`fill_hover_${g}`,n&&b&&`fill_disabled_${b}`,c&&"skeleton",!t&&"no-print",t&&"print"),"data-testid":o,"data-tour":l,style:T})}const W={accentPrimary:{fill:"accentPrimary",fillActive:"accentActivePrimary",fillActiveHover:"accentActiveHoverPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextPrimary",labelTextColorActive:"accentTextPrimary",labelTextColorActiveHover:"accentTextPrimary",labelTextColorHover:"accentTextPrimary",badgeAppearance:"surfacePrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"accentTextPrimary",iconAfterFillIcon:"accentItemPrimary",iconBeforeFillIcon:"accentItemPrimary"},accentSecondary:{fill:"accentPrimary",fillHover:"accentHoverPrimary",labelTextColor:"accentTextSecondary",labelTextColorHover:"accentTextSecondary"}},V={circular:{shape:"circular"},rounded:{shape:"rounded"},roundedXL:{shape:"rounded"},roundedL:{shape:"rounded"},roundedM:{shape:"rounded"},roundedS:{shape:"rounded"}},E={sizeL:{size:"l",labelTextSize:"m",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"24",iconAfterSize:"24",iconBeforeFillSize:"24",iconBeforeSize:"24"},sizeS:{size:"s",labelTextSize:"s",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"m",iconAfterFillSize:"16",iconAfterSize:"16",iconBeforeFillSize:"16",iconBeforeSize:"16"},sizeXS:{size:"xs",labelTextSize:"xs",badgeSize:"xs",badgeTextSize:"xs",dividerSize:"s",emptyMessageTextSize:"xs",iconAfterFillSize:"12",iconAfterSize:"12",iconBeforeFillSize:"12",iconBeforeSize:"12"}},O={solid:{borderColor:"none"},outlined:{fill:"none"},full:{},ghost:{fill:"none",borderColor:"none"}},j={surfacePrimary:{fill:"surfacePrimary",fillActive:"surfaceActivePrimary",fillHover:"surfaceHoverPrimary",labelTextColor:"surfaceTextPrimary",labelTextColorActive:"surfaceTextPrimary",labelTextColorActiveHover:"surfaceTextPrimary",labelTextColorHover:"surfaceTextPrimary",badgeAppearance:"accentPrimary",dividerFill:"surfaceTertiary",emptyMessageTextColor:"surfaceTextPrimary",iconAfterFillIcon:"surfaceItemPrimary",iconBeforeFillIcon:"surfaceItemPrimary"},surfaceQuaternary:{fill:"surfaceQuaternary",fillHover:"surfaceHoverQuaternary",labelTextColor:"surfaceTextPrimary"},surfaceSecondary:{fill:"surfaceSecondary",fillHover:"surfaceHoverSecondary",labelTextColor:"surfaceTextPrimary"},surfaceTertiary:{fill:"surfaceTertiary",fillHover:"surfaceHoverTertiary",labelTextColor:"surfaceTextPrimary"}},q={appearance:{...j,...O,...V,...W,...E},setAppearance:e=>{q.appearance=e}};function G(i){const{appearance:a,className:o,dataTestId:n,dataTour:S,animationClose:p="dropdown_animation_close",animationOpen:x="dropdown_animation_open",dropdownList:z,showDivider:u,before:_,after:b,isSkeleton:g,isOpen:C,setIsOpen:v,onClickItem:P,children:T}=i,h=l(null),H=f(a,q),[A,B]=t({className:""}),$=s(()=>{B(e=>({className:C?e.className:""}))},[C]);c(()=>{x&&p&&B(()=>({className:C?x:p}))},[C,x,p]),c(()=>{function e(e){const r=h.current;if(r&&x){const i=r.contains(e.target),a=r.classList.contains(x);!i&&a&&v(!1)}}return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[x,v]);const w=y(i,H),{alignmentClass:F,fillClass:X,elevationClass:I,shapeClass:k}=w,{styles:N}=m(i);return e("div",{className:d(o,"dropdown",F&&`alignment_${F}`,X&&`fill_${X}`,k&&`shape_${k}`,I&&`elevation_${I}`,C?"dropdown_state_open":"dropdown_state_close",A.className),ref:h,"data-testid":n,"data-tour":S,style:N,children:[_,(T||z)&&e("div",{className:d("dropdown__wrapper"),onAnimationEnd:$,children:[z?.map(e=>r(J,{appearance:a,label:e.label,badgeValue:e.badgeValue,emptyMessage:e.emptyMessage,iconAfter:e.iconAfter,iconBefore:e.iconBefore,iconSrc:e.icon,showDivider:u,isActive:e.isActive,isSkeleton:g,onClick:e.onClick||(r=>P?.(e,r))},e.key)),T]}),b]})}const R={...j,...O,...V,...W,...E},U={appearance:R,setAppearance:e=>{U.appearance=e}};function J(i){const{appearance:o,className:l,dataTestId:t,dataTour:s,label:n,desc:c,badgeValue:S,emptyMessage:p,showDivider:x,before:z,after:u,isActive:b,isDisabled:g,isSkeleton:v,isHover:P,onClick:T,onMouseEnter:h,children:H}=i,A=f(o,U),B=y(i,A),{directionClass:$,justifyContentClass:w,fillActiveClass:F,fillActiveHoverClass:X,fillClass:I,fillDisabledClass:k,fillHoverClass:Q,labelTextAlign:L,labelTextColor:D,labelTextColorActive:W,labelTextColorActiveHover:V,labelTextColorHover:E,labelTextSize:O,labelTextStyle:j,labelTextWeight:q,labelTextWrap:G,descTextColor:R,descTextColorHover:J,descTextGradient:K,descTextSize:Y,descTextStyle:Z,descTextWeight:ee,descTextWrap:re,badgeAppearance:ie,badgeShape:ae,badgeSize:oe,badgeTextColor:le,badgeTextSize:te,dividerDirection:se,dividerFill:ne,dividerSize:ce,emptyMessageTextColor:de,emptyMessageTextColorHover:fe,emptyMessageTextSize:ye,emptyMessageTextStyle:me,emptyMessageTextWeight:Se,emptyMessageTextWrap:pe,iconAfter:xe,iconAfterFill:ze,iconAfterFillIcon:ue,iconAfterFillSize:_e,iconAfterShape:be,iconAfterSize:ge,iconAfterSrc:Ce,iconBadgeAppearance:ve,iconBadgeShape:Pe,iconBadgeSize:Te,iconBadgeTextColor:he,iconBadgeTextSize:He,iconBadgeValue:Ae,iconBefore:Be,iconBeforeFill:$e,iconBeforeFillIcon:we,iconBeforeFillSize:Fe,iconBeforeShape:Xe,iconBeforeSize:Ie,iconBeforeSrc:ke,shapeClass:Ne,sizeClass:Qe,widthClass:Le}=B,{styles:De}=m(i);return e("div",{className:d("dropdown__item",b&&"dropdown__item_state_active",P&&"dropdown__item_state_hover",$&&`dropdown__item_direction_${$}`,l,b?F&&`fill_active_${F}`:I&&`fill_${I}`,b?X&&`fill_active_hover_${X}`:Q&&`fill_hover_${Q}`,k&&`fill_disabled_${k}`,Qe&&`dropdown__item_size_${Qe}`,Ne&&`shape_${Ne}`,Le&&`dropdown__item_width_${Le}`,g&&"dropdown__item_state_disabled",T&&"cursor_type_pointer",v&&"skeleton",w&&`dropdown__item_justify-content_${w}`),"data-testid":t,"data-tour":s,style:De,onClick:T,onMouseEnter:h,children:[r("div",{className:"dropdown__item-wrapper",children:e(a.Fragment,{children:[z,(Be||ke)&&r(N,{className:d("dropdown__item_before",Ae&&"dropdown__item_before-badge"),fill:$e,fillSize:Fe,badgeAppearance:ve,badgeClass:"dropdown__item_before_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:we,iconSize:Ie,imageSrc:ke,shape:Xe,SvgImage:Be}),H||e(a.Fragment,{children:[n&&r(_,{className:"dropdown__item-label",size:O,textAlign:L,textColor:D,textColorActive:W,textColorActiveHover:V,textColorHover:E,textStyle:j,textWeight:q,textWrap:G,isActive:b,children:n}),S&&r(C,{appearance:ie,size:oe,textColor:le,textSize:te,shape:ae,value:S}),c&&r(_,{className:"dropdown__item-desc",size:Y,textColor:R,textColorGradient:K,textColorHover:J,textStyle:Z,textWeight:ee,textWrap:re,isActive:b,children:c}),p&&r(_,{className:"dropdown__item",size:ye,textColor:de,textColorHover:fe,textStyle:me,textWeight:Se,textWrap:pe,isActive:b,children:p})]}),u,(xe||Ce)&&r(N,{className:d("dropdown__item_after",Ae&&"dropdown__item_after-badge"),fill:ze,fillSize:_e,badgeAppearance:ve,badgeClass:"dropdown__item_after_badge",badgeShape:Pe,badgeSize:Te,badgeTextColor:he,badgeTextSize:He,badgeValue:Ae,iconFill:ue,iconSize:ge,imageSrc:Ce,shape:be,SvgImage:xe})]})}),x&&r(M,{width:"fill",direction:se,size:ce,fill:ne})]})}export{C as B,M as D,N as I,h as L,B as T,_ as a,G as b,J as c,X as d,T as e,F as f,u as g,b as h,g as i,P as j,H as k,v as l,A as m,$ as n,w as o,I as p,k as q,L as r,D as s,z as t,R as u,U as v};
|
|
@@ -28,6 +28,7 @@ type SwiperProps = StyleAttributes & SwiperAppearanceProps & {
|
|
|
28
28
|
isChangeOnClickSlide?: boolean;
|
|
29
29
|
isInit?: boolean;
|
|
30
30
|
isNavigation?: boolean;
|
|
31
|
+
isOriginalLinkIcon?: boolean;
|
|
31
32
|
isScrollbar?: boolean;
|
|
32
33
|
isShowOriginalLink?: boolean;
|
|
33
34
|
isZoomEnabled?: boolean;
|
|
@@ -44,6 +45,7 @@ type SwiperProps = StyleAttributes & SwiperAppearanceProps & {
|
|
|
44
45
|
onSlidePrevTransitionEnd?: (swiper: SwiperClass) => void;
|
|
45
46
|
onSwiper?: (swiper: SwiperClass) => void;
|
|
46
47
|
onUpdate?: (swiper: SwiperClass) => void;
|
|
48
|
+
originalLinkText?: string;
|
|
47
49
|
pagination?: boolean;
|
|
48
50
|
prevButton?: ReactNode;
|
|
49
51
|
preventClicks?: boolean;
|
|
@@ -2,12 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useCallback, useEffect, useImperativeHandle, useRef, useState, } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { Swiper as SwiperJS, SwiperSlide, } from 'swiper/react';
|
|
5
|
+
import { icons16 } from '@itcase/icons-default';
|
|
5
6
|
import { useDevicePropsGenerator, useStyles } from '@itcase/ui-core/hooks';
|
|
6
7
|
import { Group } from 'src/components/Group';
|
|
7
8
|
import { Text } from 'src/components/Text';
|
|
8
9
|
import { Title } from 'src/components/Title';
|
|
10
|
+
import { Icon } from '../Icon';
|
|
9
11
|
function Swiper(props) {
|
|
10
|
-
const { id, className, dataTestId, dataTour, direction, minZoom = 1, maxZoom = 5, title, titleAfter, titleSize, titleTextColor, titleWeight, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, isShowOriginalLink = false, isZoomEnabled = false, setNextBtnDisabled, setPrevBtnDisabled, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
|
|
12
|
+
const { id, className, dataTestId, dataTour, direction, minZoom = 1, maxZoom = 5, title, titleAfter, titleSize, titleTextColor, titleWeight, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, originalLinkText = 'Открыть полный размер', pagination, prevButton, preventClicks, preventClicksPropagation, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isOriginalLinkIcon = true, isScrollbar, isShowOriginalLink = false, isZoomEnabled = false, setNextBtnDisabled, setPrevBtnDisabled, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
|
|
11
13
|
const swiperRef = useRef(null);
|
|
12
14
|
const isMountedRef = useRef(false);
|
|
13
15
|
const [nextEl, nextRef] = useSwiperRef();
|
|
@@ -57,7 +59,7 @@ function Swiper(props) {
|
|
|
57
59
|
maxRatio: maxZoom,
|
|
58
60
|
toggle: true,
|
|
59
61
|
}, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
|
|
60
|
-
items?.map((item, i) => (_jsx(SwiperSlide, { className: clsx('swiper-block__item', isZoomEnabled && 'swiper-block__item_zooming', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: isZoomEnabled ? (_jsx("div", { className: "swiper-zoom-container", children: item })) : (item) }, `swiper-slide_${i}`))) }), isShowOriginalLink && (
|
|
62
|
+
items?.map((item, i) => (_jsx(SwiperSlide, { className: clsx('swiper-block__item', isZoomEnabled && 'swiper-block__item_zooming', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: isZoomEnabled ? (_jsx("div", { className: "swiper-zoom-container", children: item })) : (item) }, `swiper-slide_${i}`))) }), isShowOriginalLink && (_jsxs(Group, { width: "fill", direction: "horizontal", alignItems: "center", fill: "surfacePrimary", padding: "1m 0", gap: "0.5m", onClick: onClickShowOriginalButton, children: [_jsx(Text, { size: "m", textColor: "surfaceTextPrimary", textColorHover: "surfaceTextQuaternary", textDecoration: "underline", children: originalLinkText }), isOriginalLinkIcon && (_jsx(Icon, { appearance: "surfacePrimary size14_14 ghost", SvgImage: icons16.Action.NewWindow }))] }))] }));
|
|
61
63
|
}
|
|
62
64
|
const useSwiperRef = () => {
|
|
63
65
|
const [wrapper, setWrapper] = useState(null);
|
|
@@ -3,6 +3,8 @@ import { Mousewheel, Navigation, Pagination } from 'swiper/modules';
|
|
|
3
3
|
import { Swiper } from '../Swiper';
|
|
4
4
|
import { slidesMock } from './__mock__';
|
|
5
5
|
import 'swiper/css';
|
|
6
|
+
import { icons24 } from '@itcase/icons-default';
|
|
7
|
+
import { Button } from 'src/components/Button';
|
|
6
8
|
const meta = {
|
|
7
9
|
title: 'Molecules / Swiper',
|
|
8
10
|
component: Swiper,
|
|
@@ -21,8 +23,8 @@ export const CustomButtons = {
|
|
|
21
23
|
args: {
|
|
22
24
|
autoHeight: true,
|
|
23
25
|
modules: [Navigation],
|
|
24
|
-
nextButton: _jsx(
|
|
25
|
-
prevButton: _jsx(
|
|
26
|
+
nextButton: (_jsx(Button, { appearance: "surfacePrimary sizeXL solid", cursor: "pointer", icon: icons24.Arrow.ChevronRight })),
|
|
27
|
+
prevButton: (_jsx(Button, { appearance: "surfacePrimary sizeXL solid", cursor: "pointer", icon: icons24.Arrow.ChevronLeft })),
|
|
26
28
|
isNavigation: true,
|
|
27
29
|
},
|
|
28
30
|
render: (args) => {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
alignItems: 'center',
|
|
7
|
-
fontSize: 24,
|
|
8
|
-
fontWeight: 'bold',
|
|
9
|
-
display: 'flex',
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Group } from 'src/components/Group';
|
|
3
|
+
import { Image } from 'src/components/Image';
|
|
4
|
+
import { Text } from 'src/components/Text';
|
|
5
|
+
const slidesMock = Array.from({ length: 10 }, (_, index) => (_jsxs(Group, { width: "fill", direction: "horizontal", justifyContent: "center", alignItems: "center", style: {
|
|
10
6
|
background: `hsl(${index * 60}, 70%, 80%)`,
|
|
11
|
-
}, children: ["Slide ", index + 1] }, index)));
|
|
7
|
+
}, children: [_jsxs(Text, { size: "xl", textColor: "surfaceTextPrimary", textWeight: "semiBold", children: ["Slide ", index + 1] }), _jsx(Image, { src: "/avatar/Man.png" })] }, index)));
|
|
12
8
|
export { slidesMock };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceConfig, AppearanceSizeKey, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextFontProps, TextSizeProps, TextStyleProps, TextTagProps, TextWeightProps, TextWrapProps } from '@itcase/types-ui';
|
|
2
|
+
import { AppearanceConfig, AppearanceSizeKey, TextAlignProps, TextColorActiveHoverProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextFontProps, TextSizeProps, TextStyleProps, TextTagProps, TextWeightProps, TextWrapProps, UnderlineProps } from '@itcase/types-ui';
|
|
3
3
|
import type { AppearancePartialRecord } from '@itcase/types-ui';
|
|
4
4
|
import { StyleAttributes } from '@itcase/ui-core/hooks';
|
|
5
5
|
type TextAppearanceProps = {
|
|
@@ -13,6 +13,7 @@ type TextAppearanceProps = {
|
|
|
13
13
|
textColorDisabled?: TextColorProps;
|
|
14
14
|
textColorGradient?: string;
|
|
15
15
|
textColorHover?: TextColorHoverProps | TextColorProps;
|
|
16
|
+
textDecoration?: UnderlineProps;
|
|
16
17
|
textFont?: TextFontProps;
|
|
17
18
|
textStyle?: TextStyleProps;
|
|
18
19
|
textTruncate?: boolean;
|
|
@@ -12,7 +12,7 @@ function Text(props) {
|
|
|
12
12
|
const { appearance, className, dataTestId, dataTour, text, cursor, style, tag: Tag = 'span', before, after, isActive, isDisabled, isSkeleton, onClick, onDoubleClick, children, } = props;
|
|
13
13
|
const appearanceConfig = useAppearanceConfig(appearance, textConfig, isDisabled);
|
|
14
14
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
15
|
-
const { textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrapClass, cursorClass, sizeClass, widthClass, } = propsGenerator;
|
|
15
|
+
const { textAlignClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorDisabledClass, textColorHoverClass, textDecorationClass, textFontClass, textStyleClass, textTruncateClass, textWeightClass, textWrapClass, cursorClass, sizeClass, widthClass, } = propsGenerator;
|
|
16
16
|
const { styles: textStyles } = useStyles(props);
|
|
17
17
|
return (_jsxs(Tag, { className: clsx(className, 'text', sizeClass && `text_size_${sizeClass}`, textWeightClass && `text-weight_${textWeightClass}`, textAlignClass && `text-align_${textAlignClass}`, isDisabled &&
|
|
18
18
|
textColorDisabledClass &&
|
|
@@ -28,6 +28,6 @@ function Text(props) {
|
|
|
28
28
|
`text-color_active_hover_${textColorActiveHoverClass}`, isActive &&
|
|
29
29
|
!isDisabled &&
|
|
30
30
|
textColorActiveClass &&
|
|
31
|
-
`text-color_active_${textColorActiveClass}`, textFontClass && `text-font_${textFontClass}`, textStyleClass && `text-style_${textStyleClass}`, textWrapClass && `word-wrap_${textWrapClass}`, textTruncateClass && `text-truncate_${textTruncateClass}`, isSkeleton && 'skeleton', widthClass && `width_${widthClass}`, cursorClass && `cursor_${cursorClass}`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, textStyles, style), onClick: onClick, onDoubleClick: onDoubleClick, children: [before, children || text, after] }));
|
|
31
|
+
`text-color_active_${textColorActiveClass}`, textFontClass && `text-font_${textFontClass}`, textStyleClass && `text-style_${textStyleClass}`, textWrapClass && `word-wrap_${textWrapClass}`, textDecorationClass && `text-decoration_${textDecorationClass}`, textTruncateClass && `text-truncate_${textTruncateClass}`, isSkeleton && 'skeleton', widthClass && `width_${widthClass}`, cursorClass && `cursor_${cursorClass}`, onClick && (cursor || 'cursor_type_pointer')), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, textStyles, style), onClick: onClick, onDoubleClick: onDoubleClick, children: [before, children || text, after] }));
|
|
32
32
|
}
|
|
33
33
|
export { Text, textConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui-web",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.94",
|
|
4
4
|
"description": "UI components",
|
|
5
5
|
"keywords": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"storybook": "^10.3.5",
|
|
115
115
|
"typescript": "^6.0.3"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "16e0ee677be566c76412683e6252a51155a5b202"
|
|
118
118
|
}
|