shineout 3.6.0-beta.25 → 3.6.0-beta.26

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/cjs/index.js CHANGED
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.0-beta.25'
517
+ version: '3.6.0-beta.26'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12136,7 +12136,7 @@ var handleStyle = function handleStyle(style) {
12136
12136
  };
12137
12137
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12138
12138
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12139
- /* harmony default export */ var version = ('3.6.0-beta.25');
12139
+ /* harmony default export */ var version = ('3.6.0-beta.26');
12140
12140
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12141
12141
 
12142
12142
 
@@ -22230,13 +22230,11 @@ var popoverStyle = {
22230
22230
  }
22231
22231
  },
22232
22232
  '&[data-soui-position^="left"]': {
22233
- // '&[dir=ltr]': { marginLeft: (arrowGap - 2) * -1 },
22234
22233
  '&[dir=ltr]': {
22235
- marginLeft: "calc((".concat(hideArrowGap, " - 2px) * -1)")
22234
+ marginRight: "calc((".concat(hideArrowGap, " - 2px))")
22236
22235
  },
22237
- // '&[dir=rtl]': { marginRight: (arrowGap - 2) * -1 },
22238
22236
  '&[dir=rtl]': {
22239
- marginRight: "calc((".concat(hideArrowGap, " - 2px) * -1)")
22237
+ marginLeft: "calc((".concat(hideArrowGap, " - 2px))")
22240
22238
  },
22241
22239
  '& $arrow': {
22242
22240
  right: src.popoverBorderWidth,
@@ -22246,7 +22244,6 @@ var popoverStyle = {
22246
22244
  margin: 'auto'
22247
22245
  },
22248
22246
  '&::after': {
22249
- // left: arrowGap * -1,
22250
22247
  right: "calc(".concat(hideArrowGap, " * -1)"),
22251
22248
  top: '0',
22252
22249
  bottom: '0',
@@ -22257,11 +22254,9 @@ var popoverStyle = {
22257
22254
  }
22258
22255
  },
22259
22256
  '&[data-soui-position^="right"]': {
22260
- // '&[dir=ltr]': { marginLeft: arrowGap - 2 },
22261
22257
  '&[dir=ltr]': {
22262
22258
  marginLeft: "calc(".concat(hideArrowGap, " - 2px)")
22263
22259
  },
22264
- // '&[dir=rtl]': { marginRight: arrowGap - 2 },
22265
22260
  '&[dir=rtl]': {
22266
22261
  marginRight: "calc(".concat(hideArrowGap, " - 2px)")
22267
22262
  },
@@ -27377,13 +27372,13 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({
27377
27372
  },
27378
27373
  '&[data-soui-position^="left"]': {
27379
27374
  '&[dir=ltr]': {
27380
- marginLeft: -(arrowGap - 2),
27375
+ marginRight: arrowGap - 2,
27381
27376
  '& $arrow': {
27382
27377
  transform: 'translateX(11px) rotate(90deg)'
27383
27378
  }
27384
27379
  },
27385
27380
  '&[dir=rtl]': {
27386
- marginRight: -(arrowGap - 2),
27381
+ 'margin-right': arrowGap - 2,
27387
27382
  '& $arrow': {
27388
27383
  left: 0,
27389
27384
  transform: 'translateX(11px) rotate(90deg)'
@@ -27447,7 +27442,7 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({
27447
27442
  width: arrowGap,
27448
27443
  height: '100%',
27449
27444
  top: 0,
27450
- right: 0,
27445
+ left: 0,
27451
27446
  transform: 'translateX(-100%)'
27452
27447
  }
27453
27448
  }
@@ -30473,10 +30468,12 @@ var usePositionStyle = function usePositionStyle(config) {
30473
30468
  }
30474
30469
  if (_h === 'right') {
30475
30470
  style.left = rect.right - containerRect.left + containerScroll.left + popupGap;
30471
+ arrayStyle.left = '0px';
30472
+ arrayStyle.right = 'auto';
30476
30473
  } else {
30477
- style.left = rect.left - containerRect.left + containerScroll.left - popupGap;
30478
- arrayStyle.right = "0px";
30479
- style.transform += ' translateX(-100%)';
30474
+ style.right = containerRect.right - rect.left;
30475
+ arrayStyle.right = '0px';
30476
+ arrayStyle.left = 'auto';
30480
30477
  }
30481
30478
  } else if (position === 'cover') {
30482
30479
  style.top = rect.top - containerRect.top + containerScroll.top;
@@ -31181,7 +31178,7 @@ var useContainer = function useContainer() {
31181
31178
  if (!is_isBrowser()) return null;
31182
31179
  if (!context.element) {
31183
31180
  context.element = document.createElement('div');
31184
- context.element.setAttribute('style', ' position: absolute; top: 0px; left: 0px; width: 100% ');
31181
+ context.element.setAttribute('style', 'position: absolute; top: 0px; left: 0px; width: 100%;');
31185
31182
  }
31186
31183
  var rootContainer = getRootContainer(props);
31187
31184
  if (rootContainer && context.element.parentElement !== rootContainer) {
@@ -69512,7 +69509,7 @@ var upload_interface = __webpack_require__(8821);
69512
69509
 
69513
69510
 
69514
69511
  /* harmony default export */ var src_0 = ({
69515
- version: '3.6.0-beta.25'
69512
+ version: '3.6.0-beta.26'
69516
69513
  });
69517
69514
  }();
69518
69515
  /******/ return __webpack_exports__;