shineout 3.8.0-beta.10 → 3.8.0-beta.11

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.0-beta.10'
525
+ version: '3.8.0-beta.11'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.8.0-beta.10');
12237
+ /* harmony default export */ var version = ('3.8.0-beta.11');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -22256,6 +22256,7 @@ var setToken = function setToken(options) {
22256
22256
  // we force a non-overlapping, non-auto-hiding scrollbar to counteract.
22257
22257
  // 6. Change the default tap highlight to be completely transparent in iOS.
22258
22258
 
22259
+
22259
22260
  var normalize_token = {
22260
22261
  fontFamily: 'var(--common-body-font-family, PingFang SC, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, Hiragino KaKu Gothic Pro, Microsoft YaHei, Arial, sans-serif )',
22261
22262
  color: 'var(--common-body-color, #141737)',
@@ -22273,19 +22274,29 @@ var normalize_token = {
22273
22274
  var lineHeightComputed = '20px';
22274
22275
  var lineHeightComputed2 = '10px';
22275
22276
  var normalizeStyle = "*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\n\narticle,\naside,\ndialog,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block;\n}\n\nbody {\n margin: 0;\n color: ".concat(normalize_token.color, ";\n font-family: ").concat(normalize_token.fontFamily, ";\n font-size: ").concat(normalize_token.fontSize, ";\n line-height: ").concat(normalize_token.lineHeight, ";\n}\n\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\nh1 {\n margin: 0.67em 0;\n font-size: 2em;\n}\n\nfigcaption,\nfigure,\nmain {\n display: block;\n}\n\nfigure {\n margin: 1em 40px;\n}\n\nhr {\n overflow: visible;\n height: 0;\n box-sizing: content-box;\n}\n\npre {\n font-family: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 1em;\n}\n\na {\n background-color: transparent;\n color: ").concat(normalize_token.linkColor, ";\n cursor: pointer;\n outline: none;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n -webkit-text-decoration-skip: objects;\n transition: color 0.3s;\n}\n\na:active,\na:hover {\n color: ").concat(normalize_token.linkColor, ";\n outline: 0;\n text-decoration: ").concat(normalize_token.linkHoverDecoration, ";\n}\na[disabled] {\n color: ").concat(normalize_token.linkDisabledColor, ";\n cursor: not-allowed;\n pointer-events: none;\n}\n\nabbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\nb,\nstrong {\n font-weight: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\ndfn {\n font-style: italic;\n}\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\naudio,\nvideo {\n display: inline-block;\n}\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\nimg {\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\nbutton:-moz-focusring,\n[type='button']:-moz-focusring,\n[type='reset']:-moz-focusring,\n[type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\nlegend {\n display: table;\n max-width: 100%;\n box-sizing: border-box;\n padding: 0;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n display: inline-block;\n vertical-align: baseline;\n}\n\ntextarea {\n overflow: auto;\n}\n\n[type='checkbox'],\n[type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n\n\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n\n\ndetails,\nmenu {\n display: block;\n}\n\n\nsummary {\n display: list-item;\n}\n\n\ncanvas {\n display: inline-block;\n}\n\n\ntemplate {\n display: none;\n}\n\n\n[hidden] {\n display: none;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n color: ").concat(normalize_token.headingsColor, ";\n font-family: ").concat(normalize_token.headingsFontFamily, ";\n font-weight: ").concat(normalize_token.headingsFontWeight, ";\n line-height: ").concat(normalize_token.headingsLineHeight, ";\n}\nh1 small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small,\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n color: ").concat(normalize_token.headingsSmallColor, ";\n font-weight: normal;\n line-height: 1;\n}\n\n\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: ").concat(lineHeightComputed, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nhi small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small {\n font-size: 65%;\n}\n\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: ").concat(lineHeightComputed2, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n font-size: 75%;\n}\n\np {\n margin: 0 0 ").concat(lineHeightComputed2, ";\n}");
22277
+ var normalizeStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
22278
+ var jssInsertionPointId = 'shineout-next-jss-insertion-point__' + Math.random().toString(36).substring(2, 15);
22276
22279
  function appendNormalizeStyle(styleString, id) {
22277
22280
  var style = document.createElement('style');
22278
22281
  style.id = id;
22279
22282
  style.innerHTML = styleString;
22280
- document.head.appendChild(style);
22283
+ document.head.insertBefore(style, document.head.firstChild);
22284
+ }
22285
+ function appendJssInsertionPoint() {
22286
+ var insertionPoint = document.createElement('noscript');
22287
+ insertionPoint.id = jssInsertionPointId;
22288
+ document.head.insertBefore(insertionPoint, document.head.firstChild);
22289
+ react_jss_esm_defaultJss.setup({
22290
+ insertionPoint: insertionPoint
22291
+ });
22281
22292
  }
22282
- var uniqueStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
22283
22293
  if (typeof window !== 'undefined') {
22284
- appendNormalizeStyle(normalizeStyle, uniqueStyleId);
22294
+ appendJssInsertionPoint();
22295
+ appendNormalizeStyle(normalizeStyle, normalizeStyleId);
22285
22296
  }
22286
22297
  var scopeNormalizeStyle = function scopeNormalizeStyle() {
22287
22298
  var csScopePrefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#app';
22288
- var styleElement = document.getElementById(uniqueStyleId);
22299
+ var styleElement = document.getElementById(normalizeStyleId);
22289
22300
  // 移除styleElement
22290
22301
 
22291
22302
  var styleSheet = styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet;
@@ -22314,7 +22325,7 @@ var scopeNormalizeStyle = function scopeNormalizeStyle() {
22314
22325
  return rule.cssText;
22315
22326
  }).join('') : '';
22316
22327
  document.head.removeChild(styleElement);
22317
- appendNormalizeStyle(scopedStyleString, uniqueStyleId);
22328
+ appendNormalizeStyle(scopedStyleString, normalizeStyleId);
22318
22329
  };
22319
22330
  token_setter({
22320
22331
  selector: 'html'
@@ -31279,7 +31290,7 @@ var usePositionStyle = function usePositionStyle(config) {
31279
31290
  _v = _targetPosition$split4[1];
31280
31291
  if (_v === 'top') {
31281
31292
  style.top = rect.top - containerRect.top + containerScroll.top - (offset ? offset[1] : 0);
31282
- setTransform(style, '');
31293
+ setTransform(style, 'translateX(0%)');
31283
31294
  } else if (_v === 'bottom') {
31284
31295
  style.top = rect.bottom - containerRect.top + containerScroll.top + (offset ? offset[1] : 0);
31285
31296
  setTransform(style, 'translateY(-100%)');
@@ -71769,7 +71780,7 @@ var upload_interface = __webpack_require__(8821);
71769
71780
 
71770
71781
 
71771
71782
  /* harmony default export */ var src_0 = ({
71772
- version: '3.8.0-beta.10'
71783
+ version: '3.8.0-beta.11'
71773
71784
  });
71774
71785
  }();
71775
71786
  /******/ return __webpack_exports__;