@proprioo/salatim 28.3.0 → 28.3.2
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 +8 -0
- package/lib/index.js +8 -3
- 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/lib/ui/src/tag/Tag.styles.js +6 -2
- package/lib/ui/src/tag/Tag.styles.js.map +1 -1
- package/package.json +3 -4
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)};
|
|
@@ -2584,16 +2585,20 @@ object-assign
|
|
|
2584
2585
|
width: ${w(12)};
|
|
2585
2586
|
height: ${w(12)};
|
|
2586
2587
|
margin-left: ${w(8)};
|
|
2588
|
+
cursor: pointer;
|
|
2587
2589
|
|
|
2588
2590
|
${({appearance:e})=>e===exports.TagAppearance.CUSTOMER&&n.css`
|
|
2589
2591
|
margin-right: ${w(8)};
|
|
2590
2592
|
`}
|
|
2591
2593
|
|
|
2592
|
-
cursor: pointer;
|
|
2593
|
-
|
|
2594
2594
|
> svg {
|
|
2595
2595
|
width: 100%;
|
|
2596
2596
|
height: 100%;
|
|
2597
|
+
transition: opacity 0.2s ease;
|
|
2598
|
+
|
|
2599
|
+
:hover {
|
|
2600
|
+
opacity: 0.7;
|
|
2601
|
+
}
|
|
2597
2602
|
}
|
|
2598
2603
|
`,iI=f.default.li`
|
|
2599
2604
|
white-space: nowrap;
|