@dspworkplace/ui 1.5.34 → 1.5.37
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/index.es.js +6 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6111,7 +6111,7 @@ var ButtonGroup = function ButtonGroup(_ref) {
|
|
|
6111
6111
|
};
|
|
6112
6112
|
|
|
6113
6113
|
function _templateObject4$9() {
|
|
6114
|
-
var data = taggedTemplateLiteral(["\n position:relative;\n\n &:hover > ", " > * {\n animation-name: ", ";\n animation-duration: 300ms;\n animation-fill-mode: both;\n animation-timing-function: ease-in-out;\n }\n"]);
|
|
6114
|
+
var data = taggedTemplateLiteral(["\n position:relative;\n\n &:hover > ", " {\n visibility: visible;\n }\n\n &:hover > ", " > * {\n animation-name: ", ";\n animation-duration: 300ms;\n animation-fill-mode: both;\n animation-timing-function: ease-in-out;\n }\n"]);
|
|
6115
6115
|
|
|
6116
6116
|
_templateObject4$9 = function _templateObject4() {
|
|
6117
6117
|
return data;
|
|
@@ -6131,7 +6131,7 @@ function _templateObject3$9() {
|
|
|
6131
6131
|
}
|
|
6132
6132
|
|
|
6133
6133
|
function _templateObject2$b() {
|
|
6134
|
-
var data = taggedTemplateLiteral(["\n position:absolute;\n height:fit-content;\n padding:12px;\n white-space: nowrap;\n align-items:center;\n gap: ", "\n display:flex;\n visibility: hidden;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"]);
|
|
6134
|
+
var data = taggedTemplateLiteral(["\n position:absolute;\n height:fit-content;\n padding:12px;\n white-space: nowrap;\n align-items:center;\n gap: ", "\n display:flex;\n visibility: hidden;\n\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"]);
|
|
6135
6135
|
|
|
6136
6136
|
_templateObject2$b = function _templateObject2() {
|
|
6137
6137
|
return data;
|
|
@@ -6177,16 +6177,16 @@ var ListContent = styled.div(_templateObject2$b(), function (props) {
|
|
|
6177
6177
|
}, function (props) {
|
|
6178
6178
|
return generateAnimationDelay(props.childrenQuantity, props.direction);
|
|
6179
6179
|
}, function (props) {
|
|
6180
|
-
return props.direction === 'right' || props.direction === 'auto' && "\n flex-direction:row;\n top:0;\n bottom:0;\n left:".concat(POSITION_LIST, ";\n padding-left:").concat(POSITION_LIST_DISTANCE, ";\n ");
|
|
6180
|
+
return (props.direction === 'right' || props.direction === 'auto') && "\n flex-direction:row;\n top:0;\n bottom:0;\n left:".concat(POSITION_LIST, ";\n padding-left:").concat(POSITION_LIST_DISTANCE, ";\n ");
|
|
6181
6181
|
}, function (props) {
|
|
6182
6182
|
return props.direction === 'left' && "\n flex-direction:row;\n top:0;\n bottom:0;\n right:".concat(POSITION_LIST, ";\n padding-right:").concat(POSITION_LIST_DISTANCE, ";\n ");
|
|
6183
6183
|
}, function (props) {
|
|
6184
6184
|
return props.direction === 'top' && "\n flex-direction:column;\n justify-content:end;\n bottom:".concat(POSITION_LIST, ";\n right:0;\n left:0;\n padding-top:").concat(POSITION_LIST_DISTANCE, ";\n ");
|
|
6185
6185
|
}, function (props) {
|
|
6186
|
-
return props.
|
|
6186
|
+
return props.direction === 'bottom' && "\n flex-direction:column;\n justify-content:start;\n top:".concat(POSITION_LIST, ";\n bottom:0;\n right:0;\n left:0;\n padding-top:").concat(POSITION_LIST_DISTANCE, ";\n ");
|
|
6187
6187
|
});
|
|
6188
6188
|
var PreviewContent = styled.div(_templateObject3$9());
|
|
6189
|
-
var Container$1 = styled.div(_templateObject4$9(), ListContent, listAnimation);
|
|
6189
|
+
var Container$1 = styled.div(_templateObject4$9(), ListContent, ListContent, listAnimation);
|
|
6190
6190
|
|
|
6191
6191
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
6192
6192
|
var children = _ref.children,
|
|
@@ -6243,6 +6243,7 @@ var ButtonList = function ButtonList(_ref3) {
|
|
|
6243
6243
|
var contentRef = useRef();
|
|
6244
6244
|
useEffect(function () {
|
|
6245
6245
|
if (!(contentRef === null || contentRef === void 0 ? void 0 : contentRef.current)) return;
|
|
6246
|
+
if (dir !== 'auto') return;
|
|
6246
6247
|
var bounds = contentRef.current.getBoundingClientRect();
|
|
6247
6248
|
var windowWidth = window.innerWidth;
|
|
6248
6249
|
var windowHeight = window.innerHeight;
|