@zonos/amino 5.5.7 → 5.5.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react/jsx-runtime"),l=require("react"),o=require("react-intersection-observer"),n=require("react-select"),i=require("clsx"),a=require("../checkbox/Checkbox.js"),c=require("../help-text/HelpText.js"),s=require("../../icons/CheckCircleIcon.js"),r=require("../../icons/DoubleChevronIcon.js"),d=require("../../icons/RemoveCircleIcon.js"),_=require("../../icons/RemoveIcon.js"),u=require("../../styles/constants/theme.js"),m=require("../../utils/getTestId.js"),S=require("../../style-inject.es-d4ddeae4.js");function p(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../text/Text.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js");var y=p(n),h=p(i),g={iconWrapper:"Amino__StyledReactSelect-module__iconWrapper--o6af4",styledFloatedLabel:"Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB",hasIcon:"Amino__StyledReactSelect-module__hasIcon--ua8Qm",hasLabel:"Amino__StyledReactSelect-module__hasLabel--2uysz",hasValue:"Amino__StyledReactSelect-module__hasValue--QzRR6",isFocused:"Amino__StyledReactSelect-module__isFocused--cvHNw",sm:"Amino__StyledReactSelect-module__sm--uRxwS",md:"Amino__StyledReactSelect-module__md--05qsU",lg:"Amino__StyledReactSelect-module__lg--iGesU",xl:"Amino__StyledReactSelect-module__xl--4TfG5",isDisabled:"Amino__StyledReactSelect-module__isDisabled--WwkVj",styledSelectWrapper:"Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S",reactSelectControl:"Amino__StyledReactSelect-module__reactSelectControl--0sbFa",hasError:"Amino__StyledReactSelect-module__hasError--DJ10C",strongLabel:"Amino__StyledReactSelect-module__strongLabel--iF71N",checkboxOptionIconWrapper:"Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF",styledSelectOptionWrapper:"Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9",selectedSingleOptionWrapper:"Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x"};S.styleInject(".Amino__StyledReactSelect-module__iconWrapper--o6af4{align-items:center;color:var(--amino-gray-700);display:flex;height:24px;justify-content:space-evenly;margin-left:var(--amino-space-8);margin-right:-2px;width:24px}.Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{font-size:var(--amino-font-size-base);left:14px;line-height:var(--amino-font-size-base);position:absolute;top:calc(50% - var(--amino-font-size-base)/2);transform-origin:left top;transition:var(--amino-transition)}.Amino__StyledReactSelect-module__hasIcon--ua8Qm .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{left:44px}.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{align-self:flex-end}.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px;transform:scale(.8)}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-6px}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:6px}.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:10px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:3px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px}.Amino__StyledReactSelect-module__isDisabled--WwkVj{opacity:var(--amino-opacity-disabled)}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S .Amino__StyledReactSelect-module__reactSelectControl--0sbFa+div{z-index:20}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S.Amino__StyledReactSelect-module__hasError--DJ10C .Amino__StyledReactSelect-module__reactSelectControl--0sbFa{box-shadow:var(--amino-shadow-select-error)!important}.Amino__StyledReactSelect-module__strongLabel--iF71N{font-weight:600}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF{align-items:center;color:var(--amino-styled-react-select-color);display:flex}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF svg{color:var(--amino-gray-1000);margin-right:4px}.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj).Amino__StyledReactSelect-module__isFocused--cvHNw,.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj):hover{background-color:var(--amino-gray-100)!important}.Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x{align-items:center;display:flex;justify-content:space-between}");var R=function(e){switch(e){case"sm":return"".concat(u.theme.radius6);case"lg":case"xl":return"".concat(u.theme.radius10);default:return"".concat(u.theme.radius8)}},b=function(l){return t.jsx(n.components.ClearIndicator,e.__assign({},l,{children:t.jsx(d.RemoveCircleIcon,{size:24})}))},x=function(l){return t.jsx(n.components.DropdownIndicator,e.__assign({},l,{children:t.jsx(r.DoubleChevronIcon,{size:24})}))},f=function(l){var o=l.children,n=l.className,i=l.getStyles,a=l.hasValue,c=l.innerProps,s=l.innerRef,r=l.isDisabled,d=l.isFocused,_=l.selectProps,u=_.icon,m=_.label,S=_.size,p=_.value;return t.jsxs("div",e.__assign({ref:s,className:h.default([n,a&&g.hasValue,u&&g.hasIcon,d&&g.isFocused,r&&g.isDisabled,m||Array.isArray(p)&&p.length>1?g.hasLabel:"",S&&g[S],g.reactSelectControl,"react-select-control"]),style:i("control",l)},c,{children:[u&&t.jsx("div",{className:g.iconWrapper,children:u}),t.jsxs("div",{className:g.styledFloatedLabel,children:[m," ",Array.isArray(p)&&p.length>1&&t.jsxs("strong",{className:g.strongLabel,children:["(",p.length," selected)"]})]}),o]}))},A=function(e){var l=e.children,o=e.color,n=e.icon;return t.jsxs("div",{className:g.checkboxOptionIconWrapper,style:{"--amino-styled-react-select-color":o||"inherit"},children:[n,l]})},v=function(l){var o=l.children,i=e.__rest(l,["children"]);return t.jsx(n.components.MultiValueLabel,e.__assign({},i,{children:t.jsx(A,{icon:i.data.icon,children:o})}))},j=function(l){var o=l.innerProps;return t.jsx("div",e.__assign({},o,{role:"button",children:t.jsx(_.RemoveIcon,{size:14})}))},z=function(l){var n=l.children,i=l.className,c=l.data,r=l.getStyles,d=l.innerProps,_=l.innerRef,u=l.isDisabled,m=l.isFocused,S=l.isSelected,p=l.selectProps,y=o.useInView({fallbackInView:!0,triggerOnce:!0}),h=y.inView,R=y.ref,b=p,x=b.customOption,f=b.hasGroups,v=r("option",l),j=v.color,z=e.__rest(v,["color"]);f&&(z.paddingLeft=48);return t.jsx("div",e.__assign({ref:_},d,{children:t.jsx("div",{className:[i,g.styledSelectOptionWrapper,m&&g.isFocused,u&&g.isDisabled].join(" "),style:z,children:p.isMulti?t.jsx(a.Checkbox,{checked:S,disabled:u,icon:c.icon,label:c.label,labelDescription:c.labelDescription,onChange:function(){}}):x?x(c.value):t.jsxs("div",{ref:R,className:g.selectedSingleOptionWrapper,children:[h&&t.jsx(A,{color:j,icon:c.icon,children:n}),S&&t.jsx(s.CheckCircleIcon,{color:"blue600",size:24})]})})}))},L={clearIndicator:function(t){return e.__assign(e.__assign({},t),{color:u.theme.gray700,paddingLeft:14,paddingRight:4})},control:function(t,l){var o=l.selectProps.size;return e.__assign(e.__assign({},t),{backgroundColor:u.theme.raisedSurfaceColor,borderColor:"unset",borderRadius:R(o),borderWidth:0,boxShadow:l.isFocused?"".concat(u.theme.shadowSelectActive):"".concat(u.theme.shadowSelectBase),color:u.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:"var(--amino-size-".concat(o,")"),minHeight:"var(--amino-size-".concat(o,")")})},dropdownIndicator:function(t){return e.__assign(e.__assign({},t),{color:u.theme.gray900,paddingLeft:4,paddingRight:10})},group:function(t){return e.__assign(e.__assign({},t),{paddingBottom:0,paddingTop:0})},indicatorSeparator:function(t){return e.__assign(e.__assign({},t),{width:0})},input:function(t){return e.__assign(e.__assign({},t),{color:u.theme.textColor,opacity:.8})},menu:function(t){return e.__assign(e.__assign({},t),{background:u.theme.surfaceColor,borderRadius:12,boxShadow:u.theme.v3ShadowLarge,marginTop:4})},menuList:function(t){return e.__assign(e.__assign({},t),{paddingLeft:8,paddingRight:8,paddingTop:8})},multiValue:function(t){return e.__assign(e.__assign({},t),{alignItems:"center",background:u.theme.gray100,borderRadius:u.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:2})},multiValueLabel:function(t){return e.__assign(e.__assign({},t),{color:u.theme.textColor})},option:function(t,l){return e.__assign(e.__assign({},t),{backgroundColor:"inherit",borderRadius:"8px",color:l.isSelected?u.theme.blue600:u.theme.textColor,cursor:"pointer",fontWeight:l.isSelected?500:400,paddingBottom:7,paddingLeft:8,paddingRight:12,paddingTop:7})},placeholder:function(t){return e.__assign(e.__assign({},t),{".has-label.is-focused &":{opacity:1},opacity:0})},singleValue:function(t){return e.__assign(e.__assign({},t),{color:u.theme.textColor,fontWeight:500})},valueContainer:function(t){return e.__assign(e.__assign({},t),{".has-icon &":{paddingLeft:0},flexWrap:"nowrap",padding:"unset",paddingLeft:12})}};exports.CheckboxOptionComponent=z,exports.StyledReactSelect=function(o){var n=o.closeOnOutsideScroll,i=void 0!==n&&n,a=o.components,s=o.customOption,r=o.error,d=o.hasGroups,_=o.helpText,u=o.icon,S=o.label,p=o.menuPosition,R=void 0===p?"fixed":p,A=o.placeholder,F=o.size,w=void 0===F?"xl":F,C=o.style,D=e.__rest(o,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","style"]),W={customOption:s,hasGroups:d,icon:u,label:S,size:w},I=l.useMemo((function(){return m.getTestId({componentName:"select",name:S})}),[S]),U=l.useRef(null),O=l.useMemo((function(){return!!i&&function(e){var t,l;return!(e.target instanceof HTMLElement)||!(null===(l=null===(t=U.current)||void 0===t?void 0:t.menuListRef)||void 0===l?void 0:l.isEqualNode(e.target))}}),[i]);return t.jsxs("div",{className:h.default(g.styledSelectWrapper,r&&g.hasError),"data-testid":I,children:[t.jsx(y.default,e.__assign({ref:U,closeMenuOnScroll:O,components:e.__assign({ClearIndicator:b,Control:f,DropdownIndicator:x,MultiValueLabel:v,MultiValueRemove:j,Option:z},a),menuPosition:R,placeholder:A||"",styles:e.__assign(e.__assign({},C),L)},D,W)),t.jsx(c.HelpText,{error:r,helpText:_})]})};
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react/jsx-runtime"),l=require("react"),o=require("react-intersection-observer"),i=require("react-select"),n=require("clsx"),a=require("../checkbox/Checkbox.js"),c=require("../help-text/HelpText.js"),s=require("../../icons/CheckCircleIcon.js"),r=require("../../icons/DoubleChevronIcon.js"),d=require("../../icons/RemoveCircleIcon.js"),_=require("../../icons/RemoveIcon.js"),u=require("../../styles/constants/theme.js"),m=require("../../utils/getTestId.js"),S=require("../../style-inject.es-d4ddeae4.js");function p(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../text/Text.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js");var y=p(i),g=p(n),h={iconWrapper:"Amino__StyledReactSelect-module__iconWrapper--o6af4",styledFloatedLabel:"Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB",hasIcon:"Amino__StyledReactSelect-module__hasIcon--ua8Qm",hasLabel:"Amino__StyledReactSelect-module__hasLabel--2uysz",hasValue:"Amino__StyledReactSelect-module__hasValue--QzRR6",isFocused:"Amino__StyledReactSelect-module__isFocused--cvHNw",sm:"Amino__StyledReactSelect-module__sm--uRxwS",md:"Amino__StyledReactSelect-module__md--05qsU",lg:"Amino__StyledReactSelect-module__lg--iGesU",xl:"Amino__StyledReactSelect-module__xl--4TfG5",isDisabled:"Amino__StyledReactSelect-module__isDisabled--WwkVj",styledSelectWrapper:"Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S",reactSelectControl:"Amino__StyledReactSelect-module__reactSelectControl--0sbFa",hasError:"Amino__StyledReactSelect-module__hasError--DJ10C",strongLabel:"Amino__StyledReactSelect-module__strongLabel--iF71N",checkboxOptionIconWrapper:"Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF",styledSelectOptionWrapper:"Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9",selectedSingleOptionWrapper:"Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x"};S.styleInject(".Amino__StyledReactSelect-module__iconWrapper--o6af4{align-items:center;color:var(--amino-gray-700);display:flex;height:24px;justify-content:space-evenly;margin-left:var(--amino-space-8);margin-right:-2px;width:24px}.Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{font-size:var(--amino-font-size-base);left:14px;line-height:var(--amino-font-size-base);position:absolute;top:calc(50% - var(--amino-font-size-base)/2);transform-origin:left top;transition:var(--amino-transition)}.Amino__StyledReactSelect-module__hasIcon--ua8Qm .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{left:44px}.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{align-self:flex-end}.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px;transform:scale(.8)}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-6px}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:6px}.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:10px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:3px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px}.Amino__StyledReactSelect-module__isDisabled--WwkVj{opacity:var(--amino-opacity-disabled)}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S .Amino__StyledReactSelect-module__reactSelectControl--0sbFa+div{z-index:20}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S.Amino__StyledReactSelect-module__hasError--DJ10C .Amino__StyledReactSelect-module__reactSelectControl--0sbFa{box-shadow:var(--amino-shadow-select-error)!important}.Amino__StyledReactSelect-module__strongLabel--iF71N{font-weight:600}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF{align-items:center;color:var(--amino-styled-react-select-color);display:flex}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF svg{color:var(--amino-gray-1000);margin-right:4px}.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj).Amino__StyledReactSelect-module__isFocused--cvHNw,.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj):hover{background-color:var(--amino-gray-100)!important}.Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x{align-items:center;display:flex;justify-content:space-between}");var v=function(e){switch(e){case"sm":return"".concat(u.theme.radius6);case"lg":case"xl":return"".concat(u.theme.radius10);default:return"".concat(u.theme.radius8)}},R=function(l){return t.jsx(i.components.ClearIndicator,e.__assign({},l,{children:t.jsx(d.RemoveCircleIcon,{size:24})}))},b=function(l){return t.jsx(i.components.DropdownIndicator,e.__assign({},l,{children:t.jsx(r.DoubleChevronIcon,{size:24})}))},x=function(l){var o=l.children,i=l.className,n=l.getStyles,a=l.hasValue,c=l.innerProps,s=l.innerRef,r=l.isDisabled,d=l.isFocused,_=l.selectProps,u=_.icon,m=_.label,S=_.size,p=_.value;return t.jsxs("div",e.__assign({ref:s,className:g.default([i,a&&h.hasValue,u&&h.hasIcon,d&&h.isFocused,r&&h.isDisabled,m||Array.isArray(p)&&p.length>1?h.hasLabel:"",S&&h[S],h.reactSelectControl,"react-select-control"]),style:n("control",l)},c,{children:[u&&t.jsx("div",{className:h.iconWrapper,children:u}),t.jsxs("div",{className:h.styledFloatedLabel,children:[m," ",Array.isArray(p)&&p.length>1&&t.jsxs("strong",{className:h.strongLabel,children:["(",p.length," selected)"]})]}),o]}))},f=function(e){var l=e.children,o=e.color,i=e.icon;return t.jsxs("div",{className:h.checkboxOptionIconWrapper,style:{"--amino-styled-react-select-color":o||"inherit"},children:[i,l]})},A=function(l){var o=l.children,n=e.__rest(l,["children"]);return t.jsx(i.components.MultiValueLabel,e.__assign({},n,{children:t.jsx(f,{icon:n.data.icon,children:o})}))},j=function(l){var o=l.innerProps;return t.jsx("div",e.__assign({},o,{role:"button",children:t.jsx(_.RemoveIcon,{size:14})}))},L=function(l){var i=l.children,n=l.className,c=l.data,r=l.getStyles,d=l.innerProps,_=l.innerRef,u=l.isDisabled,m=l.isFocused,S=l.isSelected,p=l.selectProps,y=o.useInView({fallbackInView:!0,triggerOnce:!0}),g=y.inView,v=y.ref,R=p,b=R.customOption,x=R.hasGroups,A=r("option",l),j=A.color,L=e.__rest(A,["color"]);x&&(L.paddingLeft=48);return t.jsx("div",e.__assign({ref:_},d,{children:t.jsx("div",{className:[n,h.styledSelectOptionWrapper,m&&h.isFocused,u&&h.isDisabled].join(" "),style:L,children:p.isMulti?t.jsx(a.Checkbox,{checked:S,disabled:u,icon:c.icon,label:c.label,labelDescription:c.labelDescription,onChange:function(){}}):b?b(c.value):t.jsxs("div",{ref:v,className:h.selectedSingleOptionWrapper,children:[g&&t.jsx(f,{color:j,icon:c.icon,children:i}),S&&t.jsx(s.CheckCircleIcon,{color:"blue600",size:24})]})})}))};exports.CheckboxOptionComponent=L,exports.StyledReactSelect=function(o){var i=o.closeOnOutsideScroll,n=void 0!==i&&i,a=o.components,s=o.customOption,r=o.error,d=o.hasGroups,_=o.helpText,S=o.icon,p=o.label,f=o.menuPosition,z=void 0===f?"fixed":f,F=o.placeholder,w=o.size,C=void 0===w?"xl":w,D=o.style,W=e.__rest(o,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","style"]),I={customOption:s,hasGroups:d,icon:S,label:p,size:C},U=l.useMemo((function(){return m.getTestId({componentName:"select",name:p})}),[p]),O=l.useRef(null),q=l.useMemo((function(){return!!n&&function(e){var t,l;return!(e.target instanceof HTMLElement)||!(null===(l=null===(t=O.current)||void 0===t?void 0:t.menuListRef)||void 0===l?void 0:l.isEqualNode(e.target))}}),[n]),V=W.styles,k=e.__rest(W,["styles"]),N=function(t){return{clearIndicator:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{color:u.theme.gray700,paddingLeft:14,paddingRight:4}),null===(i=null==t?void 0:t.clearIndicator)||void 0===i?void 0:i.call(t,l,o))},control:function(l,o){var i,n=o.selectProps.size;return e.__assign(e.__assign(e.__assign({},l),{backgroundColor:u.theme.raisedSurfaceColor,borderColor:"unset",borderRadius:v(n),borderWidth:0,boxShadow:o.isFocused?"".concat(u.theme.shadowSelectActive):"".concat(u.theme.shadowSelectBase),color:u.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:"var(--amino-size-".concat(n,")"),minHeight:"var(--amino-size-".concat(n,")")}),null===(i=null==t?void 0:t.control)||void 0===i?void 0:i.call(t,l,o))},dropdownIndicator:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{color:u.theme.gray900,paddingLeft:4,paddingRight:10}),null===(i=null==t?void 0:t.dropdownIndicator)||void 0===i?void 0:i.call(t,l,o))},group:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{paddingBottom:0,paddingTop:0}),null===(i=null==t?void 0:t.group)||void 0===i?void 0:i.call(t,l,o))},indicatorSeparator:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{width:0}),null===(i=null==t?void 0:t.indicatorSeparator)||void 0===i?void 0:i.call(t,l,o))},input:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{color:u.theme.textColor,opacity:.8}),null===(i=null==t?void 0:t.input)||void 0===i?void 0:i.call(t,l,o))},menu:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{background:u.theme.surfaceColor,borderRadius:12,boxShadow:u.theme.v3ShadowLarge,marginTop:4}),null===(i=null==t?void 0:t.menu)||void 0===i?void 0:i.call(t,l,o))},menuList:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{paddingLeft:8,paddingRight:8,paddingTop:8}),null===(i=null==t?void 0:t.menuList)||void 0===i?void 0:i.call(t,l,o))},multiValue:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{alignItems:"center",background:u.theme.gray100,borderRadius:u.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:2}),null===(i=null==t?void 0:t.multiValue)||void 0===i?void 0:i.call(t,l,o))},multiValueLabel:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{color:u.theme.textColor}),null===(i=null==t?void 0:t.multiValueLabel)||void 0===i?void 0:i.call(t,l,o))},option:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{backgroundColor:"inherit",borderRadius:"8px",color:o.isSelected?u.theme.blue600:u.theme.textColor,cursor:"pointer",fontWeight:o.isSelected?500:400,paddingBottom:7,paddingLeft:8,paddingRight:12,paddingTop:7}),null===(i=null==t?void 0:t.option)||void 0===i?void 0:i.call(t,l,o))},placeholder:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{".has-label.is-focused &":{opacity:1},opacity:0}),null===(i=null==t?void 0:t.placeholder)||void 0===i?void 0:i.call(t,l,o))},singleValue:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{color:u.theme.textColor,fontWeight:500}),null===(i=null==t?void 0:t.singleValue)||void 0===i?void 0:i.call(t,l,o))},valueContainer:function(l,o){var i;return e.__assign(e.__assign(e.__assign({},l),{".has-icon &":{paddingLeft:0},flexWrap:"nowrap",padding:"unset",paddingLeft:12}),null===(i=null==t?void 0:t.valueContainer)||void 0===i?void 0:i.call(t,l,o))}}}(V);return t.jsxs("div",{className:g.default(h.styledSelectWrapper,r&&h.hasError),"data-testid":U,children:[t.jsx(y.default,e.__assign({ref:O,closeMenuOnScroll:q,components:e.__assign({ClearIndicator:R,Control:x,DropdownIndicator:b,MultiValueLabel:A,MultiValueRemove:j,Option:L},a),menuPosition:z,placeholder:F||"",styles:e.__assign(e.__assign({},D),N)},k,I)),t.jsx(c.HelpText,{error:r,helpText:_})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../tslib.es6-5672428a.js"),l=require("react/jsx-runtime");require("react");var i=require("clsx"),o=require("../checkbox/Checkbox.js"),t=require("../skeleton/Skeleton.js"),r=require("../text/Text.js"),d=require("../../style-inject.es-d4ddeae4.js"),a=require("./SimpleTableRow.js");function n(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../help-text/HelpText.js"),require("../../styles/constants/theme.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js"),require("../../utils/getTestId.js"),require("../table/TableRowCollapse.js"),require("../button/Button.js"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../tooltip/Tooltip.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../flex/Flex.js");var m=n(i),s="Amino_SimpleTable-module__tableContainer--UsGFZ",b="Amino_SimpleTable-module__tableStyled--Q3YSy",_="Amino_SimpleTable-
|
|
1
|
+
"use strict";var e=require("../../tslib.es6-5672428a.js"),l=require("react/jsx-runtime");require("react");var i=require("clsx"),o=require("../checkbox/Checkbox.js"),t=require("../skeleton/Skeleton.js"),r=require("../text/Text.js"),d=require("../../style-inject.es-d4ddeae4.js"),a=require("./SimpleTableRow.js");function n(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../help-text/HelpText.js"),require("../../styles/constants/theme.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js"),require("../../utils/getTestId.js"),require("../table/TableRowCollapse.js"),require("../button/Button.js"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("../tooltip/Tooltip.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../flex/Flex.js");var m=n(i),s="Amino_SimpleTable-module__tableContainer--UsGFZ",b="Amino_SimpleTable-module__tableStyled--Q3YSy",_="Amino_SimpleTable-module__loading--bvjof",u="Amino_SimpleTable-module__skeletonCellWrapper--I8vJ7",p="Amino_SimpleTable-module__noHeaders---Nf59",c="Amino_SimpleTable-module__bordered--rYjAD",S="Amino_SimpleTable-module__noPadding--b5Y-c",h="Amino_SimpleTable-module__collapsible--ozkOZ",y="Amino_SimpleTable-module__styledCheckbox---753a";d.styleInject(".Amino_SimpleTable-module__tableContainer--UsGFZ{width:100%}.Amino_SimpleTable-module__tableStyled--Q3YSy{border-collapse:initial;border-spacing:0;font-size:var(--amino-font-size-base);width:100%}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr{height:48px}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__loading--bvjof{padding:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__loading--bvjof .Amino_SimpleTable-module__skeletonCellWrapper--I8vJ7{display:flex}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__noHeaders---Nf59 thead{display:none;max-height:0}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD th{border:none}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD tr:first-child td{border-top:var(--amino-border-subtle)}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD tr:first-child td:first-child{border-top-left-radius:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD tr:first-child td:last-child{border-top-right-radius:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD tr:last-child td:first-child{border-bottom-left-radius:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD tr:last-child td:last-child{border-bottom-right-radius:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD td:first-child{border-left:var(--amino-border-subtle)}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__bordered--rYjAD td:last-child{border-right:var(--amino-border-subtle)}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead{text-transform:none}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr{border-bottom:var(--amino-border-subtle);height:48px}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr>th{background-color:var(--amino-gray-0);border-bottom:var(--amino-border-subtle);padding:12px;position:-webkit-sticky;position:sticky;top:0;white-space:nowrap;z-index:1}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr>th.Amino_SimpleTable-module__noPadding--b5Y-c{padding:0}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__collapsible--ozkOZ tr>td:last-child{width:40px}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__collapsible--ozkOZ tr>td:last-child>div{padding:0}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__collapsible--ozkOZ>tbody *{transition:var(--amino-transition)}.Amino_SimpleTable-module__tableStyled--Q3YSy.Amino_SimpleTable-module__collapsible--ozkOZ>tbody>tr:not(:has(.Amino_SimpleTable-module__loading--bvjof)){height:unset}.Amino_SimpleTable-module__styledCheckbox---753a{display:inline-flex;padding:12px}");var x=function(e){switch(e){case"center":return"center";case"end":return"flex-end";default:return"flex-start"}};exports.SimpleTable=function(i){var d=i.bordered,n=void 0!==d&&d,j=i.className,A=i.collapsible,T=void 0===A?{enabled:!1,expandedItemKeys:[],toggleItem:function(){}}:A,g=i.CustomLinkComponent,f=i.getRowLink,k=i.headers,v=i.items,q=i.keyExtractor,Y=i.loading,C=void 0!==Y&&Y,w=i.loadingItems,Q=void 0===w?10:w,H=i.loadingSkeletonHeight,R=void 0===H?13:H,N=i.maxHeight,I=void 0===N?"100%":N,D=i.noHoverBackground,z=void 0!==D&&D,Z=i.onRowClick,O=i.onRowHover,W=i.renderFooter,B=i.selectable,F=void 0===B?{enabled:!1}:B,L=i.style;return l.jsx("div",{className:m.default(s,j),style:e.__assign({maxHeight:I},L),children:l.jsxs("table",{className:m.default(T.enabled&&h,b,n&&c,k.every((function(e){return!e.name}))&&p),children:[l.jsxs("colgroup",{children:[!!F.onHeaderCheckboxChange&&l.jsx("col",{width:0}),k.map((function(e){return l.jsx("col",{style:{minWidth:void 0!==e.minWidth?"".concat(e.minWidth,"px"):void 0},width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)})),T.enabled&&l.jsx("col",{})]}),l.jsx("thead",{children:l.jsxs("tr",{children:[!!F.onHeaderCheckboxChange&&l.jsx("th",{className:S,children:F.renderCustomHeaderCheckbox||l.jsx(o.Checkbox,{checked:!C&&F.headerCheckboxValue||!1,className:y,disabled:C,onChange:F.onHeaderCheckboxChange})}),k.map((function(e){return l.jsx("th",{className:m.default(e.noPadding&&S),style:{textAlign:e.align||"start"},children:"string"==typeof e.name?l.jsx(r.Text,{color:"gray800",type:"small-header",children:e.name}):e.name},e.key)})),T.enabled&&l.jsx("th",{})]})}),l.jsx("tbody",{children:C?e.__spreadArray([],e.__read(Array(Q).keys()),!1).map((function(e){return l.jsxs("tr",{children:[F.enabled&&l.jsx("td",{className:_,children:l.jsx("div",{children:l.jsx(t.Skeleton,{height:R},e)})}),k.map((function(i){return l.jsx("td",{className:m.default(_,i.noPadding&&S),children:l.jsx("div",{className:u,style:{justifyContent:x(i.align)},children:l.jsx(t.Skeleton,{height:R,style:{width:"70%"}},e)})},i.key)})),T.enabled&&l.jsx("td",{})]},e)})):v.map((function(e,i){var o=q(e);return l.jsx(a.SimpleTableRow,{CustomLinkComponent:g,bordered:n,collapsible:T,getRowLink:f,headers:k,index:i,item:e,noHoverBackground:z,onRowClick:Z,onRowHover:O,rowKey:o,selectable:F},o)}))}),W]})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),l=require("react"),o=require("clsx"),i=require("../checkbox/Checkbox.js"),t=require("../table/TableRowCollapse.js"),r=require("../tooltip/Tooltip.js"),n=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}require("../../tslib.es6-5672428a.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../text/Text.js"),require("../../styles/constants/theme.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js"),require("../../utils/getTestId.js"),require("../button/Button.js"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../flex/Flex.js");var a=d(l),m=d(o),s="Amino_SimpleTableRow-module__styledTr--7wqmD",u="Amino_SimpleTableRow-module__bordered--F4nVy",c="Amino_SimpleTableRow-module__collapsed--1b0eu",_="Amino_SimpleTableRow-module__withHover--lsi66",p="Amino_SimpleTableRow-module__clickable--cwD9E",
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),l=require("react"),o=require("clsx"),i=require("../checkbox/Checkbox.js"),t=require("../table/TableRowCollapse.js"),r=require("../tooltip/Tooltip.js"),n=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}require("../../tslib.es6-5672428a.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../text/Text.js"),require("../../styles/constants/theme.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../global.module-569e4fd5.js"),require("../../utils/getTestId.js"),require("../button/Button.js"),require("../button/RippleGroup.js"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse"),require("../table/TableCell.js"),require("../table/TableRow.js"),require("../../icons/ChevronUpIcon.js"),require("@mui/material/styles"),require("@mui/material/Tooltip"),require("../flex/Flex.js");var a=d(l),m=d(o),s="Amino_SimpleTableRow-module__styledTr--7wqmD",u="Amino_SimpleTableRow-module__bordered--F4nVy",c="Amino_SimpleTableRow-module__collapsed--1b0eu",_="Amino_SimpleTableRow-module__withHover--lsi66",p="Amino_SimpleTableRow-module__clickable--cwD9E",w="Amino_SimpleTableRow-module__noPadding--r2KPc",b="Amino_SimpleTableRow-module__allowTextWrap--jGjMo",h="Amino_SimpleTableRow-module__shouldTruncate--DUSAV",T="Amino_SimpleTableRow-module__hasContent--wJBWQ";n.styleInject(".Amino_SimpleTableRow-module__styledTr--7wqmD{height:48px}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__bordered--F4nVy:nth-last-child(2).Amino_SimpleTableRow-module__collapsed--1b0eu td:first-child{border-bottom-left-radius:12px}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__bordered--F4nVy:nth-last-child(2).Amino_SimpleTableRow-module__collapsed--1b0eu td:last-child{border-bottom-right-radius:12px}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__withHover--lsi66:hover{background-color:var(--amino-hover-color)}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__clickable--cwD9E{cursor:pointer}.Amino_SimpleTableRow-module__styledTr--7wqmD:not(:hover) .row-hover-show{visibility:collapse}.Amino_SimpleTableRow-module__styledTr--7wqmD>td{border-bottom:var(--amino-border-subtle);padding:0}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child{display:block;height:100%;padding:12px;white-space:nowrap;width:100%}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child.tooltip-wrapper{padding:0}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child.tooltip-wrapper>a,.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child.tooltip-wrapper>span{display:block;height:100%;overflow:hidden;padding:12px;text-overflow:ellipsis;width:100%}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child.Amino_SimpleTableRow-module__noPadding--r2KPc{padding:0}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child.Amino_SimpleTableRow-module__allowTextWrap--jGjMo{white-space:normal}.Amino_SimpleTableRow-module__styledTr--7wqmD>td>:first-child:not(:hover) .cell-hover-show{visibility:collapse}.Amino_SimpleTableRow-module__styledTr--7wqmD>td.Amino_SimpleTableRow-module__shouldTruncate--DUSAV{max-width:var(--amino-cell-min-width);min-width:var(--amino-cell-min-width)}.Amino_SimpleTableRow-module__styledTr--7wqmD>td.Amino_SimpleTableRow-module__shouldTruncate--DUSAV>:first-child{overflow:hidden;text-overflow:ellipsis}.Amino_SimpleTableRow-module__styledTr--7wqmD:not(.Amino_SimpleTableRow-module__collapsed--1b0eu) td{border-bottom:var(--amino-border-subtle)}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__collapsed--1b0eu.Amino_SimpleTableRow-module__hasContent--wJBWQ+tr>td{border:0}.Amino_SimpleTableRow-module__styledTr--7wqmD.Amino_SimpleTableRow-module__collapsed--1b0eu.Amino_SimpleTableRow-module__hasContent--wJBWQ+tr>td>:first-child{padding:0}");var v=800;exports.SimpleTableRow=function(o){var n,d,R=o.bordered,x=o.collapsible,S=o.CustomLinkComponent,q=o.getRowLink,A=o.headers,y=o.index,f=o.item,j=o.noHoverBackground,g=o.onRowClick,C=o.onRowHover,D=o.rowKey,k=o.selectable,W=l.useRef(null),N=function(l){var o=f[l.key],i=function(o){var i=a.default.Children.toArray(o).some((function(e){return!!a.default.isValidElement(e)&&/row-hover-show|cell-hover-show/.test(e.props.className)})),t=m.default("truncate"===l.textWrapMethod&&!i&&h),n={"--amino-cell-min-width":"".concat(l.minWidth||0,"px")},d=m.default(l.noPadding&&w,"normal"===l.textWrapMethod&&b),s={textAlign:l.align||"start"},u=function(e){switch(e){case"center":return"bottom";case"end":return"bottom-end";default:return"bottom-start"}}(l.align);if(q&&!(null==k?void 0:k.anySelected)&&!l.disabledLink){var c=S||"a";return e.jsx("td",{className:t,style:n,children:e.jsx(r.Tooltip,{disabled:"truncate"!==l.textWrapMethod,enterDelay:v,enterNextDelay:v,placement:u,subtitle:o,children:e.jsx(c,{className:d,href:q(f),style:s,children:o})})})}return e.jsx("td",{className:t,style:n,children:e.jsx(r.Tooltip,{disabled:"truncate"!==l.textWrapMethod,enterDelay:v,enterNextDelay:v,placement:u,subtitle:o,children:e.jsx("span",{className:d,style:s,children:o})})})};return l.renderCustom?e.jsx(e.Fragment,{children:i(l.renderCustom(o,f))}):e.jsx(e.Fragment,{children:i(String(o))})},F=function(){var o,t,r;return e.jsxs(e.Fragment,{children:[(null==k?void 0:k.enabled)&&e.jsx("td",{ref:W,children:(null===(o=null==k?void 0:k.renderCustomRowCheckbox)||void 0===o?void 0:o.call(k,f,y))||e.jsx(i.Checkbox,{checked:(null===(t=null==k?void 0:k.isRowChecked)||void 0===t?void 0:t.call(k,f,y))||!1,disabled:(null===(r=null==k?void 0:k.isRowCheckboxDisabled)||void 0===r?void 0:r.call(k,f,y))||!1,onChange:function(e){var l;return null===(l=null==k?void 0:k.onRowCheckboxChange)||void 0===l?void 0:l.call(k,e,f,y)}})}),A.map((function(o){return e.jsx(l.Fragment,{children:N(o)},o.key)}))]})};if((null==x?void 0:x.enabled)&&(null===(n=x.collapseContent)||void 0===n?void 0:n.length)){var M=x.collapseContent,I=x.expandedItemKeys,V=x.toggleItem,B=!I.includes(D),H=null===(d=null==M?void 0:M.find((function(e){return e.key===D})))||void 0===d?void 0:d.content;return e.jsx(t.TableRowCollapse,{className:m.default(s,!j&&_,B&&c,H&&T,R&&u),collapsed:B,onToggleCollapse:function(){V(D),null==g||g(f)},rowContent:F(),children:H},D)}var P=!!g||!!(null==k?void 0:k.anySelected)&&!!(null==k?void 0:k.onRowCheckboxChange);return e.jsx("tr",{className:m.default(s,P&&p,!j&&_,R&&u),onClick:function(e){var l,o,i,t;(null==k?void 0:k.anySelected)||(null===(l=W.current)||void 0===l?void 0:l.contains(e.target))?(null===(o=null==k?void 0:k.isRowCheckboxDisabled)||void 0===o?void 0:o.call(k,f,y))||(e.preventDefault(),null===(i=null==k?void 0:k.onRowCheckboxChange)||void 0===i||i.call(k,!(null===(t=null==k?void 0:k.isRowChecked)||void 0===t?void 0:t.call(k,f,y)),f,y)):null==g||g(f)},onMouseEnter:function(){return null==C?void 0:C(f)},children:F()},D)};
|