@proprioo/salatim 28.3.0 → 28.3.1
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/CHANGELOG.md +4 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/src/select/Select.js +1 -1
- package/lib/ui/src/select/Select.js.map +1 -1
- package/lib/ui/src/select/Select.styles.js +1 -0
- package/lib/ui/src/select/Select.styles.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -1063,6 +1063,7 @@ object-assign
|
|
|
1063
1063
|
overflow: auto;
|
|
1064
1064
|
height: 100%;
|
|
1065
1065
|
max-height: ${w(100)};
|
|
1066
|
+
cursor: pointer;
|
|
1066
1067
|
`,Q$=f.default.div`
|
|
1067
1068
|
${O};
|
|
1068
1069
|
font-size: ${E.small};
|
|
@@ -1071,7 +1072,7 @@ object-assign
|
|
|
1071
1072
|
:first-child {
|
|
1072
1073
|
margin-top: 0;
|
|
1073
1074
|
}
|
|
1074
|
-
`;class eD extends t.PureComponent{constructor(e){super(e),this.selectItem=this.selectItem.bind(this)}selectItem(e){const{onClose:t,onSelect:r}=this.props;r(e),t()}componentDidUpdate(){const{selectedOptionRef:e}=this.props;e.current&&e.current.scrollIntoView&&e.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"})}render(){const{isOpen:e,options:t,optionsMinWidth:r,optionsAlign:n,selectRef:o,selectedOptionRef:a,value:i}=this.props;return e?c.default.createElement(J$,{optionsMinWidth:r,optionsAlign:n,"data-test":"select-layout",ref:o},c.default.createElement(X$,{role:"list"},t.map(((e,t)=>c.default.createElement(Q$,{"aria-label":e.label,key:t,role:"listitem",ref:K$(e.value,i)?a:void 0},c.default.createElement(Y$,{value:i,option:e,onSelect:()=>this.selectItem(e)})))))):null}}var tD=t.forwardRef(((e,t)=>c.default.createElement(eD,Object.assign({ref:t},e))));const rD=f.default.div`
|
|
1075
|
+
`;class eD extends t.PureComponent{constructor(e){super(e),this.selectItem=this.selectItem.bind(this)}selectItem(e){const{onClose:t,onSelect:r}=this.props;r(e),t()}componentDidUpdate(){const{selectedOptionRef:e}=this.props;e.current&&e.current.scrollIntoView&&e.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"})}render(){const{isOpen:e,options:t,optionsMinWidth:r,optionsAlign:n,selectRef:o,selectedOptionRef:a,value:i}=this.props;return e?c.default.createElement(J$,{optionsMinWidth:r,optionsAlign:n,"data-test":"select-layout",ref:o,onMouseDown:e=>e.stopPropagation()},c.default.createElement(X$,{role:"list"},t.map(((e,t)=>c.default.createElement(Q$,{"aria-label":e.label,key:t,role:"listitem",ref:K$(e.value,i)?a:void 0},c.default.createElement(Y$,{value:i,option:e,onSelect:()=>this.selectItem(e)})))))):null}}var tD=t.forwardRef(((e,t)=>c.default.createElement(eD,Object.assign({ref:t},e))));const rD=f.default.div`
|
|
1075
1076
|
position: absolute;
|
|
1076
1077
|
top: ${w(8)};
|
|
1077
1078
|
right: ${w(16)};
|