shineout 3.6.0-beta.5 → 3.6.0-beta.7

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.d.ts CHANGED
@@ -48,7 +48,7 @@ export { default as Transfer } from './transfer';
48
48
  export { default as Tree } from './tree';
49
49
  export { default as TreeSelect } from './tree-select';
50
50
  export { default as Upload } from './upload';
51
- export { setConfig, config, setLocale, setIcons } from '@sheinx/base';
51
+ export { setConfig, config, setLocale, setIcons, icons } from '@sheinx/base';
52
52
  export type { ConfigOption } from '@sheinx/base';
53
53
  export { setToken, useToken } from '@sheinx/theme';
54
54
  export { JssProvider, SheetsRegistry, setJssConfig, scopeNormalizeStyle, } from '@sheinx/shineout-style';
package/cjs/index.js CHANGED
@@ -60,6 +60,7 @@ var _exportNames = {
60
60
  config: true,
61
61
  setLocale: true,
62
62
  setIcons: true,
63
+ icons: true,
63
64
  setToken: true,
64
65
  useToken: true,
65
66
  JssProvider: true,
@@ -389,6 +390,12 @@ Object.defineProperty(exports, "config", {
389
390
  }
390
391
  });
391
392
  exports.default = void 0;
393
+ Object.defineProperty(exports, "icons", {
394
+ enumerable: true,
395
+ get: function get() {
396
+ return _base.icons;
397
+ }
398
+ });
392
399
  Object.defineProperty(exports, "scopeNormalizeStyle", {
393
400
  enumerable: true,
394
401
  get: function get() {
@@ -507,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
514
  // 此文件由脚本自动生成,请勿直接修改。
508
515
  // This file was generated automatically by a script. Please do not modify it directly.
509
516
  var _default = exports.default = {
510
- version: '3.6.0-beta.5'
517
+ version: '3.6.0-beta.7'
511
518
  };
package/dist/shineout.js CHANGED
@@ -4116,11 +4116,18 @@ const figma = [
4116
4116
  describe: '分割线',
4117
4117
  locked: false,
4118
4118
  },
4119
+ {
4120
+ name: '填充色',
4121
+ token: 'Neutral-fill-7',
4122
+ value: '#666C7C',
4123
+ describe: '',
4124
+ locked: true,
4125
+ },
4119
4126
  {
4120
4127
  name: '填充色',
4121
4128
  token: 'Neutral-fill-5',
4122
4129
  value: '#B3B7C1',
4123
- describe: '点击',
4130
+ describe: '',
4124
4131
  locked: true,
4125
4132
  },
4126
4133
  {
@@ -6385,6 +6392,7 @@ __webpack_require__.d(__webpack_exports__, {
6385
6392
  color: function() { return /* reexport */ color; },
6386
6393
  config: function() { return /* reexport */ src_config_config; },
6387
6394
  "default": function() { return /* binding */ src_0; },
6395
+ icons: function() { return /* reexport */ icons; },
6388
6396
  scopeNormalizeStyle: function() { return /* reexport */ scopeNormalizeStyle; },
6389
6397
  setConfig: function() { return /* reexport */ config_setConfig; },
6390
6398
  setIcons: function() { return /* reexport */ setIcons; },
@@ -6747,7 +6755,7 @@ var imageDownload = ['M12.0673 2C15.7465 2 18.7667 4.82116 19.0828 8.41823C21.39
6747
6755
  var imagePreview = ['M17.177 11.248C15.258 9.776 13.429 9 12 9C10.57 9 8.74 9.775 6.822 11.246C6.466 11.519 6.118 11.809 5.792 12.101C6.118 12.394 6.467 12.684 6.823 12.957C8.743 14.428 10.573 15.204 12.003 15.204C13.433 15.204 15.262 14.429 17.18 12.959C17.535 12.686 17.883 12.397 18.208 12.105C17.8755 11.8062 17.5316 11.5203 17.177 11.248ZM20.581 11.628C20.743 11.802 20.885 11.964 21 12.105C20.885 12.245 20.743 12.407 20.582 12.58C19.9074 13.293 19.1763 13.9505 18.396 14.546C16.234 16.204 13.994 17.204 12.003 17.204C10.012 17.204 7.771 16.203 5.607 14.544C4.82603 13.9482 4.09433 13.2904 3.419 12.577C3.27436 12.4231 3.13463 12.2647 3 12.102C3.115 11.961 3.257 11.799 3.419 11.626C4.09367 10.913 4.8247 10.2555 5.605 9.66C7.77 8 10.01 7 12 7C13.99 7 16.23 8.001 18.394 9.661C19.1747 10.2572 19.906 10.9143 20.581 11.628ZM4 4V7C4.00002 7.13134 3.97417 7.26139 3.92392 7.38273C3.87368 7.50407 3.80002 7.61433 3.70716 7.70721C3.6143 7.80008 3.50405 7.87375 3.38272 7.92402C3.26138 7.97428 3.13133 8.00015 3 8.00015C2.86867 8.00015 2.73862 7.97428 2.61728 7.92402C2.49595 7.87375 2.3857 7.80008 2.29284 7.70721C2.19998 7.61433 2.12632 7.50407 2.07608 7.38273C2.02583 7.26139 1.99998 7.13134 2 7V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H7C7.13134 1.99998 7.26139 2.02583 7.38273 2.07608C7.50407 2.12632 7.61433 2.19998 7.70721 2.29284C7.80008 2.3857 7.87375 2.49595 7.92402 2.61728C7.97428 2.73862 8.00015 2.86867 8.00015 3C8.00015 3.13133 7.97428 3.26138 7.92402 3.38272C7.87375 3.50405 7.80008 3.6143 7.70721 3.70716C7.61433 3.80002 7.50407 3.87368 7.38273 3.92392C7.26139 3.97417 7.13134 4.00002 7 4H4ZM4 20H7C7.26519 20 7.51951 20.1054 7.70701 20.2929C7.89451 20.4805 7.99985 20.7348 7.99985 21C7.99985 21.2652 7.89451 21.5195 7.70701 21.7071C7.51951 21.8946 7.26519 22 7 22H3C2.73478 22 2.48043 21.8946 2.29289 21.7071C2.10536 21.5196 2 21.2652 2 21V17C2.00004 16.7348 2.10542 16.4805 2.29295 16.293C2.48048 16.1055 2.73481 16.0002 3 16.0002C3.26519 16.0002 3.51952 16.1055 3.70705 16.293C3.89458 16.4805 3.99996 16.7348 4 17V20ZM20 4H17C16.7348 3.99996 16.4805 3.89458 16.293 3.70705C16.1055 3.51952 16.0002 3.26519 16.0002 3C16.0002 2.73481 16.1055 2.48048 16.293 2.29295C16.4805 2.10542 16.7348 2.00004 17 2H21C21.2652 2 21.5196 2.10536 21.7071 2.29289C21.8946 2.48043 22 2.73478 22 3V7C22 7.26519 21.8946 7.51951 21.7071 7.70701C21.5195 7.89451 21.2652 7.99985 21 7.99985C20.7348 7.99985 20.4805 7.89451 20.2929 7.70701C20.1054 7.51951 20 7.26519 20 7V4ZM20 20V17C20 16.7348 20.1054 16.4805 20.2929 16.293C20.4805 16.1055 20.7348 16.0002 21 16.0002C21.2652 16.0002 21.5195 16.1055 21.7071 16.293C21.8946 16.4805 22 16.7348 22 17V21C22 21.2652 21.8946 21.5196 21.7071 21.7071C21.5196 21.8946 21.2652 22 21 22H17C16.7348 22 16.4805 21.8946 16.293 21.7071C16.1055 21.5195 16.0002 21.2652 16.0002 21C16.0002 20.7348 16.1055 20.4805 16.293 20.2929C16.4805 20.1054 16.7348 20 17 20H20ZM12 14.5C11.6717 14.5 11.3466 14.4353 11.0433 14.3097C10.74 14.1841 10.4644 13.9999 10.2322 13.7678C10.0001 13.5356 9.81594 13.26 9.6903 12.9567C9.56467 12.6534 9.5 12.3283 9.5 12C9.5 11.6717 9.56467 11.3466 9.6903 11.0433C9.81594 10.74 10.0001 10.4644 10.2322 10.2322C10.4644 10.0001 10.74 9.81594 11.0433 9.6903C11.3466 9.56467 11.6717 9.5 12 9.5C12.663 9.5 13.2989 9.76339 13.7678 10.2322C14.2366 10.7011 14.5 11.337 14.5 12C14.5 12.663 14.2366 13.2989 13.7678 13.7678C13.2989 14.2366 12.663 14.5 12 14.5ZM12 12.5C12.1326 12.5 12.2598 12.4473 12.3536 12.3536C12.4473 12.2598 12.5 12.1326 12.5 12C12.5 11.8674 12.4473 11.7402 12.3536 11.6464C12.2598 11.5527 12.1326 11.5 12 11.5C11.8674 11.5 11.7402 11.5527 11.6464 11.6464C11.5527 11.7402 11.5 11.8674 11.5 12C11.5 12.1326 11.5527 12.2598 11.6464 12.3536C11.7402 12.4473 11.8674 12.5 12 12.5Z'];
6748
6756
  var hide = ['M13.0384 12.1565V16.2235C13.0213 16.7681 12.5748 17.2007 12.0299 17.2007C11.485 17.2007 11.0386 16.7681 11.0214 16.2235V12.1895V12.1565C9.98553 12.0881 8.95945 11.9131 7.95942 11.6345L4.63942 14.9555C4.24564 15.3498 3.60675 15.3502 3.21242 14.9565C2.81809 14.5627 2.81764 13.9238 3.21142 13.5295L5.86142 10.8795C4.16901 10.1224 2.63013 9.06073 1.32142 7.74745C1.0512 7.49584 0.940005 7.11672 1.03149 6.75901C1.12298 6.4013 1.40255 6.12213 1.76038 6.03114C2.11822 5.94016 2.49718 6.05189 2.74842 6.32245C5.20494 8.79141 8.54557 10.1773 12.0284 10.1725C15.5564 10.1725 18.8604 8.77445 21.3044 6.32845C21.5569 6.06287 21.9336 5.95508 22.2884 6.04686C22.6432 6.13865 22.9203 6.41558 23.0123 6.7703C23.1044 7.12502 22.9968 7.50176 22.7314 7.75445C21.4239 9.06462 19.8871 10.1238 18.1974 10.8795L20.8474 13.5295C21.2247 13.9262 21.2167 14.5514 20.8294 14.9384C20.4421 15.3254 19.8169 15.333 19.4204 14.9555L16.1004 11.6355C15.1094 11.9105 14.0844 12.0875 13.0374 12.1555L13.0384 12.1565Z'];
6749
6757
  var display = ['M20.41 11.536C19.7483 10.8368 19.0313 10.1921 18.266 9.608C16.146 7.98 13.951 7 12 7C10.049 7 7.853 7.98 5.733 9.606C4.96801 10.19 4.25136 10.8348 3.59 11.534C3.34585 11.7967 3.34584 12.2033 3.58999 12.466C4.25208 13.1649 4.96941 13.8093 5.735 14.393C7.855 16.02 10.05 17 12.003 17C13.954 17 16.149 16.02 18.269 14.395C19.0333 13.8113 19.7493 13.1668 20.41 12.468C20.4106 12.4674 20.4111 12.4668 20.4117 12.4662C20.6554 12.2037 20.6547 11.7975 20.41 11.536ZM12 5C16.416 5 22.997 10.05 23 12.001C23.003 13.953 16.42 19.001 12.003 19C7.586 19 1.003 13.953 1 12.001C0.997002 10.05 7.583 5 12 5ZM12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12C15.5 13.933 13.933 15.5 12 15.5ZM12 13.5C12.8284 13.5 13.5 12.8284 13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5Z'];
6750
- var loading = ["M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 11.4477 1.44967 11 2.00195 11C2.55424 11 3.00195 11.4477 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02943 16.9725 3 12.002 3C11.4497 3 11.002 2.55228 11.002 2C11.002 1.44772 11.4497 1 12.002 1Z"];
6758
+ var loading = ['M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 11.4477 1.44967 11 2.00195 11C2.55424 11 3.00195 11.4477 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02943 16.9725 3 12.002 3C11.4497 3 11.002 2.55228 11.002 2C11.002 1.44772 11.4497 1 12.002 1Z'];
6751
6759
 
6752
6760
  // const info = [
6753
6761
  // 'M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8ZM12 19C12.5523 19 13 18.5523 13 18V10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V18C11 18.5523 11.4477 19 12 19Z',
@@ -6832,7 +6840,7 @@ var minus = [/*#__PURE__*/(0,jsx_runtime.jsx)("g", {
6832
6840
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6833
6841
  d: "M19.25,11 C19.8022847,11 20.25,11.4477153 20.25,12 C20.25,12.5128358 19.8639598,12.9355072 19.3666211,12.9932723 L19.25,13 L5.25,13 C4.69771525,13 4.25,12.5522847 4.25,12 C4.25,11.4871642 4.63604019,11.0644928 5.13337887,11.0067277 L5.25,11 L19.25,11 Z"
6834
6842
  })
6835
- }, "minus")];
6843
+ }, 'minus')];
6836
6844
  var more = ['M5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10ZM19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10Z'];
6837
6845
  var warningSimple = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
6838
6846
  d: "M10.4312 4.48155C10.4031 3.91069 10.8584 3.4325 11.43 3.4325H12.5693C13.1409 3.4325 13.5962 3.91069 13.5681 4.48155L13.0664 14.6976C13.0402 15.2301 12.6008 15.6485 12.0676 15.6485H11.9317C11.3985 15.6485 10.9591 15.2301 10.9329 14.6976L10.4312 4.48155ZM11.9876 16.9445C12.5156 16.9445 12.9716 17.1125 13.3316 17.4485C13.6676 17.7845 13.8596 18.2165 13.8596 18.7445C13.8596 19.2725 13.6676 19.7285 13.3316 20.0645C12.9476 20.4005 12.5156 20.5685 11.9876 20.5685C11.4596 20.5685 11.0276 20.3765 10.6916 20.0405C10.3076 19.7045 10.1396 19.2725 10.1396 18.7445C10.1396 18.2165 10.3076 17.7845 10.6916 17.4485C11.0276 17.1125 11.4596 16.9445 11.9876 16.9445Z",
@@ -12115,7 +12123,7 @@ var handleStyle = function handleStyle(style) {
12115
12123
  };
12116
12124
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12117
12125
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12118
- /* harmony default export */ var version = ('3.6.0-beta.5');
12126
+ /* harmony default export */ var version = ('3.6.0-beta.7');
12119
12127
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12120
12128
 
12121
12129
 
@@ -12441,6 +12449,7 @@ var Token = {
12441
12449
  'Neutral-text-1': '#FFFFFF',
12442
12450
  'Neutral-border-2': '#CCCFD7',
12443
12451
  'Neutral-border-1': '#E8EBF0',
12452
+ 'Neutral-fill-7': '#666C7C',
12444
12453
  'Neutral-fill-5': '#B3B7C1',
12445
12454
  'Neutral-fill-9': '#141737',
12446
12455
  'Neutral-fill-10': '#020B18',
@@ -13359,7 +13368,8 @@ var checkboxTokens = {
13359
13368
 
13360
13369
  var collapseTokens = {
13361
13370
  collapseIconColor: 'Neutral-text-4',
13362
- collapseIconHoverBackgroundColor: 'Neutral-fill-3',
13371
+ collapseIconHoverBackgroundColor: 'Neutral-fill-2',
13372
+ collapseIconActiveBackgroundColor: 'Neutral-fill-3',
13363
13373
  collapseExtraMargin: 'Spacing-24',
13364
13374
  collapseWrapperBorderSize: 'Border-1',
13365
13375
  collapseWrapperBorderRadius: 'Radius-default',
@@ -13520,7 +13530,7 @@ var datePickerTokens = {
13520
13530
  var descriptionsTokens = {
13521
13531
  descriptionsTitlePaddingBottom: 'Spacing-12',
13522
13532
  descriptionsLabelPaddingBottom: 'Spacing-12',
13523
- descriptionsLabelPaddingRight: 'Spacing-24',
13533
+ descriptionsLabelPaddingRight: 'Spacing-8',
13524
13534
  descriptionsValuePaddingBottom: 'Spacing-12',
13525
13535
  descriptionsTitleSmallSize: 'Font-14',
13526
13536
  descriptionsTitleDefaultSize: 'Font-16',
@@ -15160,14 +15170,15 @@ var treeSelectTokens = {
15160
15170
  // This file was generated automatically by a script. Please do not modify it directly.
15161
15171
 
15162
15172
  var uploadTokens = {
15163
- uploadResultPaddingX: 'Spacing-16',
15173
+ uploadResultPaddingX: 'Spacing-12',
15164
15174
  uploadResultPaddingY: 'Spacing-5',
15165
15175
  uploadResultBackgroundColor: 'Neutral-fill-2',
15166
15176
  uploadResultGap: 'Spacing-4',
15167
15177
  uploadResultMarginY: 'Spacing-8',
15168
15178
  uploadResultIconSize: 'Size-7',
15169
- uploadResultIconColor: 'Neutral-text-4',
15170
- uploadResultIconHoverBackgroundColor: 'Neutral-fill-2',
15179
+ uploadResultIconColor: 'Neutral-text-5',
15180
+ uploadResultIconHoverBackgroundColor: 'Neutral-fill-3',
15181
+ uploadResultIconHoverColor: 'Brand-6',
15171
15182
  uploadResultFontSize: 'Font-14',
15172
15183
  uploadResultFontColor: 'Neutral-text-5',
15173
15184
  uploadResultBorderRadius: 'Radius-default',
@@ -15177,16 +15188,19 @@ var uploadTokens = {
15177
15188
  uploadResultDeletedFontColor: 'Neutral-text-3',
15178
15189
  uploadResultUploadingIconColor: 'Brand-6',
15179
15190
  uploadImageBorderRadius: 'Radius-default',
15180
- uploadImageHandlerBorderColor: 'Neutral-border-1',
15191
+ uploadImageHandlerBorderColor: 'Neutral-border-2',
15181
15192
  uploadImageHandlerBackgroundColor: 'Neutral-fill-1',
15182
15193
  uploadImageHandlerFontColor: 'Neutral-text-4',
15183
15194
  uploadImageHandlerHoverBorderColor: 'Brand-6',
15184
15195
  uploadImageHandlerHoverFontColor: 'Brand-6',
15196
+ uploadImageHandlerActiveBorderColor: 'Brand-7',
15197
+ uploadImageHandlerActiveFontColor: 'Brand-7',
15185
15198
  uploadImageHandlerErrorBorderColor: 'Danger-6',
15186
15199
  uploadImageHandlerErrorFontColor: 'Danger-6',
15187
15200
  uploadImageHandlerDisabledBorderColor: 'Neutral-border-2',
15188
15201
  uploadImageHandlerDisabledBackgroundColor: 'Neutral-fill-2',
15189
15202
  uploadImageHandlerDisabledFontColor: 'Neutral-text-2',
15203
+ uploadImageHandlerIconColor: 'Neutral-text-3',
15190
15204
  uploadImageResultBorderColor: 'Neutral-border-1',
15191
15205
  uploadImageResultBtnSize: 'Size-7',
15192
15206
  uploadImageResultBtnCloseColor: 'Danger-6',
@@ -17662,7 +17676,6 @@ var collapseItemStyle = {
17662
17676
  justifyContent: 'space-between',
17663
17677
  boxSizing: 'border-box',
17664
17678
  overflow: 'hidden',
17665
- gap: src.collapseHeaderGap,
17666
17679
  fontSize: src.collapseHeaderFontSize,
17667
17680
  fontWeight: src.collapseHeaderFontWeight,
17668
17681
  color: src.collapseHeaderColor,
@@ -17702,6 +17715,7 @@ var collapseItemStyle = {
17702
17715
  color: src.collapseIconColor,
17703
17716
  lineHeight: src.lineHeightDynamic,
17704
17717
  zIndex: 0,
17718
+ marginRight: src.collapseHeaderGap,
17705
17719
  '& svg': {
17706
17720
  zIndex: 1,
17707
17721
  width: src.collapseHeaderIconWidth
@@ -17719,6 +17733,11 @@ var collapseItemStyle = {
17719
17733
  borderRadius: '50%',
17720
17734
  background: src.collapseIconHoverBackgroundColor
17721
17735
  }
17736
+ },
17737
+ '&:active:hover': {
17738
+ '&:after': {
17739
+ background: src.collapseIconActiveBackgroundColor
17740
+ }
17722
17741
  }
17723
17742
  },
17724
17743
  title: {
@@ -18882,6 +18901,10 @@ var dropdown_dropdown = {
18882
18901
  minWidth: '0',
18883
18902
  '& + $caret': {
18884
18903
  marginLeft: src.dropdownCaretMarginLeft
18904
+ },
18905
+ '& > svg': {
18906
+ display: 'block',
18907
+ margin: '0 auto'
18885
18908
  }
18886
18909
  },
18887
18910
  button: {
@@ -24566,7 +24589,7 @@ var stepsStyle = {
24566
24589
  overflow: 'hidden'
24567
24590
  },
24568
24591
  '& $icon': {
24569
- marginRight: 12
24592
+ marginRight: 16
24570
24593
  },
24571
24594
  '& $title, $description': {
24572
24595
  textAlign: 'left'
@@ -24696,11 +24719,13 @@ var stepsStyle = {
24696
24719
  },
24697
24720
  '& $icon': {
24698
24721
  lineHeight: 0,
24722
+ marginRight: 6,
24699
24723
  padding: '8px 10px'
24700
24724
  },
24701
24725
  '& $process': {
24702
24726
  '& $icon': {
24703
24727
  marginTop: 0,
24728
+ marginRight: 8,
24704
24729
  padding: '7px 8px'
24705
24730
  },
24706
24731
  '& $tail': {
@@ -26715,6 +26740,8 @@ var TagStyle = {
26715
26740
  rootClass: {},
26716
26741
  tag: {
26717
26742
  display: 'inline-flex',
26743
+ // 消除 inline-flex 看不见的空白高度
26744
+ verticalAlign: 'top',
26718
26745
  padding: "".concat(src.tagPaddingY, " ").concat(src.tagPaddingX),
26719
26746
  fontSize: src.tagFontSize,
26720
26747
  fontWeight: src.tagFontWeight,
@@ -26726,11 +26753,25 @@ var TagStyle = {
26726
26753
  }
26727
26754
  },
26728
26755
  input: {
26729
- '&[data-soui-input-border]': {
26730
- width: 100,
26731
- '& input': {
26732
- padding: "0 ".concat(src.tagInputPaddingX)
26733
- }
26756
+ paddingLeft: '0 !important',
26757
+ paddingRight: '0 !important',
26758
+ width: 100,
26759
+ '& > div': {
26760
+ padding: '0 !important'
26761
+ },
26762
+ '& > div > input': {
26763
+ fontSize: src.tagFontSize,
26764
+ padding: "0 ".concat(src.tagPaddingX),
26765
+ lineHeight: "calc(".concat(src.tagFontSize, " + 8px)")
26766
+ },
26767
+ '$small& > div > input': {
26768
+ padding: "0 ".concat(src.tagSmallPaddingX),
26769
+ lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
26770
+ },
26771
+ '$large& > div > input': {
26772
+ fontSize: src.tagLargeFontSize,
26773
+ padding: "0 ".concat(src.tagLargePaddingX),
26774
+ lineHeight: "calc(".concat(src.tagLargeFontSize, " + 8px)")
26734
26775
  }
26735
26776
  },
26736
26777
  wrapper: {
@@ -28105,11 +28146,11 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
28105
28146
  // },
28106
28147
  },
28107
28148
  optionActive: {
28108
- color: src.treeSelectOptionActiveColor,
28109
- backgroundColor: src.treeSelectOptionActiveBackgroundColor,
28110
- '&>div': {
28111
- color: src.treeSelectOptionActiveColor
28112
- }
28149
+ // color: token.treeSelectOptionActiveColor,
28150
+ // backgroundColor: token.treeSelectOptionActiveBackgroundColor,
28151
+ // '&>div': {
28152
+ // color: token.treeSelectOptionActiveColor,
28153
+ // },
28113
28154
  },
28114
28155
  optionDisabled: {
28115
28156
  cursor: 'not-allowed',
@@ -28222,7 +28263,7 @@ var uploadStyle = {
28222
28263
  border: "1px dashed ".concat(src.uploadImageHandlerBorderColor),
28223
28264
  backgroundColor: src.uploadImageHandlerBackgroundColor,
28224
28265
  color: src.uploadImageHandlerFontColor,
28225
- '&:hover': {
28266
+ '&:hover, &:hover *': {
28226
28267
  borderColor: src.uploadImageHandlerHoverBorderColor,
28227
28268
  color: src.uploadImageHandlerHoverFontColor
28228
28269
  },
@@ -28233,14 +28274,28 @@ var uploadStyle = {
28233
28274
  },
28234
28275
  '& svg': {
28235
28276
  color: src.uploadImageResultBtnRecoverColor
28277
+ },
28278
+ '&:active': {
28279
+ color: src.uploadImageHandlerActiveFontColor,
28280
+ borderColor: src.uploadImageHandlerActiveBorderColor
28281
+ },
28282
+ '&:active *': {
28283
+ color: src.uploadImageHandlerActiveFontColor
28236
28284
  }
28237
28285
  }
28238
28286
  },
28239
28287
  result: {
28240
28288
  display: 'flex',
28241
28289
  alignItems: 'center',
28242
- marginTop: src.uploadResultMarginY,
28243
- gap: src.uploadResultGap
28290
+ gap: '8px',
28291
+ borderRadius: src.uploadResultBorderRadius,
28292
+ padding: "".concat(src.uploadResultPaddingY, " ").concat(src.uploadResultPaddingX),
28293
+ '&:hover': {
28294
+ backgroundColor: src.uploadResultBackgroundColor
28295
+ },
28296
+ '$handler+&, $dropItem+&': {
28297
+ marginTop: src.uploadResultMarginY
28298
+ }
28244
28299
  },
28245
28300
  icon: {
28246
28301
  width: src.uploadResultIconSize,
@@ -28256,25 +28311,10 @@ var uploadStyle = {
28256
28311
  }
28257
28312
  },
28258
28313
  iconHover: {
28259
- position: 'relative',
28260
- '&::before': {
28261
- content: '""',
28262
- position: 'absolute',
28263
- top: '-5px',
28264
- left: '-5px',
28265
- right: '-5px',
28266
- bottom: '-5px',
28314
+ '&:hover': {
28315
+ color: src.uploadResultIconHoverColor,
28267
28316
  borderRadius: '50%',
28268
- display: 'none',
28269
28317
  backgroundColor: src.uploadResultIconHoverBackgroundColor
28270
- },
28271
- '& svg': {
28272
- position: 'relative'
28273
- },
28274
- '&:hover': {
28275
- '&::before': {
28276
- display: 'block'
28277
- }
28278
28318
  }
28279
28319
  },
28280
28320
  resultError: {},
@@ -28302,17 +28342,12 @@ var uploadStyle = {
28302
28342
  fontSize: src.uploadResultFontSize,
28303
28343
  color: src.uploadResultFontColor,
28304
28344
  lineHeight: src.lineHeightDynamic,
28305
- padding: "".concat(src.uploadResultPaddingY, " ").concat(src.uploadResultPaddingX),
28306
- borderRadius: src.uploadResultBorderRadius,
28307
28345
  '$resultError &': {
28308
28346
  color: src.uploadResultErrorFontColor
28309
28347
  },
28310
28348
  '$resultDeleted &': {
28311
28349
  textDecoration: 'line-through',
28312
28350
  color: src.uploadResultDeletedFontColor
28313
- },
28314
- '&:hover': {
28315
- backgroundColor: src.uploadResultBackgroundColor
28316
28351
  }
28317
28352
  },
28318
28353
  resultTextBody: {
@@ -28321,7 +28356,11 @@ var uploadStyle = {
28321
28356
  },
28322
28357
  resultClose: {
28323
28358
  cursor: 'pointer',
28324
- margin: '0 6px'
28359
+ '&$icon': {
28360
+ boxSizing: 'content-box',
28361
+ padding: '0 4px',
28362
+ height: src.lineHeightDynamic
28363
+ }
28325
28364
  },
28326
28365
  imageHandler: {
28327
28366
  boxSizing: 'border-box',
@@ -28338,6 +28377,13 @@ var uploadStyle = {
28338
28377
  borderColor: src.uploadImageHandlerHoverBorderColor,
28339
28378
  color: src.uploadImageHandlerHoverFontColor
28340
28379
  },
28380
+ '$wrapper:not($wrapperDisabled) &:hover *': {
28381
+ color: "".concat(src.uploadImageHandlerHoverFontColor, " !important")
28382
+ },
28383
+ '$wrapper:not($wrapperDisabled) &:active, $wrapper:not($wrapperDisabled) &:active *': {
28384
+ color: "".concat(src.uploadImageHandlerActiveFontColor, " !important"),
28385
+ borderColor: src.uploadImageHandlerActiveBorderColor
28386
+ },
28341
28387
  '$wrapperDisabled &': {
28342
28388
  borderColor: src.uploadImageHandlerDisabledBorderColor,
28343
28389
  backgroundColor: src.uploadImageHandlerDisabledBackgroundColor,
@@ -28347,9 +28393,13 @@ var uploadStyle = {
28347
28393
  imageHandlerIcon: {
28348
28394
  display: 'flex',
28349
28395
  alignItems: 'center',
28396
+ color: src.uploadImageHandlerIconColor,
28350
28397
  '& > svg': {
28351
28398
  width: 20,
28352
28399
  height: 20
28400
+ },
28401
+ '$wrapperDisabled &': {
28402
+ color: src.uploadImageHandlerDisabledFontColor
28353
28403
  }
28354
28404
  },
28355
28405
  imageResult: {
@@ -28487,10 +28537,20 @@ var uploadStyle = {
28487
28537
  dropItem: {
28488
28538
  ':not(wrapperDisabled) &[data-soui-dragover="true"]': {
28489
28539
  '& $handler, & $imageHandler, & $imageResult': {
28490
- borderColor: src.uploadImageHandlerHoverBorderColor,
28491
- borderStyle: 'dashed',
28492
- borderWidth: '2px',
28540
+ borderColor: 'transparent !important',
28541
+ color: src.uploadImageHandlerHoverFontColor,
28542
+ position: 'relative'
28543
+ },
28544
+ '& $handler *, & $imageHandler *, & $imageResult *': {
28493
28545
  color: src.uploadImageHandlerHoverFontColor
28546
+ },
28547
+ '& $handler:after, & $imageHandler:after, & $imageResult:after': {
28548
+ content: '" "',
28549
+ position: 'absolute',
28550
+ inset: 0,
28551
+ pointerEvents: 'none',
28552
+ border: "2px dashed ".concat(src.uploadImageHandlerHoverBorderColor),
28553
+ borderRadius: src.uploadImageBorderRadius
28494
28554
  }
28495
28555
  }
28496
28556
  },
@@ -29991,9 +30051,6 @@ var usePositionStyle = function usePositionStyle(config) {
29991
30051
  };
29992
30052
  context.containerRect = containerRect;
29993
30053
  context.containerScroll = containerScroll;
29994
- console.log('======================');
29995
- console.log('targetPosition: >>', targetPosition);
29996
- console.log('======================');
29997
30054
  if (verticalPosition.includes(targetPosition)) {
29998
30055
  var _targetPosition$split = targetPosition.split('-'),
29999
30056
  _targetPosition$split2 = slicedToArray_default()(_targetPosition$split, 2),
@@ -33959,9 +34016,10 @@ var useCheckboxInputable = function useCheckboxInputable(props) {
33959
34016
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
33960
34017
  setCheckedState(!!props.value);
33961
34018
  }, [props.value]);
33962
- var onInputableCheckboxChange = function onInputableCheckboxChange(c) {
34019
+ var onInputableCheckboxChange = function onInputableCheckboxChange(c, ignoreOnChange) {
33963
34020
  var _props$onChange;
33964
34021
  setCheckedState(c);
34022
+ if (ignoreOnChange) return;
33965
34023
  props === null || props === void 0 || (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, undefined, c, undefined);
33966
34024
  };
33967
34025
  var onInputChange = function onInputChange(_value) {
@@ -35340,7 +35398,7 @@ var checkbox_Checkbox = function Checkbox(props) {
35340
35398
 
35341
35399
  // 兼容Checkbox在createPortal中使用时,无法改变勾选状态的问题
35342
35400
  if ('value' in props && props.checked === undefined) {
35343
- onInputableCheckboxChange(checked);
35401
+ onInputableCheckboxChange(checked, true);
35344
35402
  }
35345
35403
  if (props.onRawChange) {
35346
35404
  props.onRawChange(checked ? htmlValue : undefined, checked, htmlValue);
@@ -37440,6 +37498,7 @@ function use_tree_toArray(value) {
37440
37498
  if (!Array.isArray(value)) return [value];
37441
37499
  return value;
37442
37500
  }
37501
+ var global_tree_map = new Map();
37443
37502
  var MODE = {
37444
37503
  /**
37445
37504
  * 返回全选数据,包含父节点和子节点
@@ -39359,6 +39418,7 @@ var useTag = function useTag(props) {
39359
39418
 
39360
39419
 
39361
39420
 
39421
+
39362
39422
  var TagInput = function TagInput(props) {
39363
39423
  var _jssStyle$tag;
39364
39424
  var value = props.value,
@@ -39399,7 +39459,7 @@ var TagInput = function TagInput(props) {
39399
39459
  size: size,
39400
39460
  style: style,
39401
39461
  inputRef: inputRef,
39402
- className: classnames_default()(tagStyle.input),
39462
+ className: classnames_default()(tagStyle.input, defineProperty_default()(defineProperty_default()({}, tagStyle.small, size === 'small'), tagStyle.large, size === 'large')),
39403
39463
  jssStyle: jssStyle,
39404
39464
  onKeyUp: handleKeyUp,
39405
39465
  onChange: handleChange,
@@ -39494,6 +39554,7 @@ var Tag = function Tag(props) {
39494
39554
  };
39495
39555
  var renderInput = function renderInput() {
39496
39556
  return /*#__PURE__*/(0,jsx_runtime.jsx)(tag_input, {
39557
+ size: size,
39497
39558
  value: value,
39498
39559
  className: classnames_default()(tagStyle.input),
39499
39560
  jssStyle: jssStyle,
@@ -40451,7 +40512,7 @@ var Cascader = function Cascader(props0) {
40451
40512
  });
40452
40513
  var renderClearable = function renderClearable() {
40453
40514
  if (!mode !== undefined && !showArrow) return null;
40454
- var defaultIcon = compressed ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
40515
+ var defaultIcon = compressed || multiple ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
40455
40516
  var arrow = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
40456
40517
  className: classnames_default()(compressed && styles.compressedIcon, styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
40457
40518
  onClick: handleResultClick,
@@ -42234,6 +42295,7 @@ var CollapseItem = function CollapseItem(props) {
42234
42295
  }, getHeaderIconProps({
42235
42296
  className: collapseItemIconClassName
42236
42297
  })), {}, {
42298
+ role: "button",
42237
42299
  children: headerIcon
42238
42300
  }));
42239
42301
  };
@@ -42245,7 +42307,7 @@ var CollapseItem = function CollapseItem(props) {
42245
42307
  }));
42246
42308
  };
42247
42309
  var collapseItemClassName = classnames_default()(className, jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.wrapper, judgeExpanded && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.active), (disabled || triggerRegion === 'disabled') && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.disabled), !border && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.borderLess));
42248
- var collapseItemHeaderClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.header, !showExpandIcon && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.noIcon), !triggerRegion && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.region));
42310
+ var collapseItemHeaderClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.header, !showExpandIcon && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.noIcon), triggerRegion !== 'icon' && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.region));
42249
42311
  var collapseItemContentClassName = classnames_default()(jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.content, judgeExpanded && (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.collapseItem.expanded));
42250
42312
  var renderContent = function renderContent() {
42251
42313
  return /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
@@ -47392,7 +47454,8 @@ var Dropdown = function Dropdown(props) {
47392
47454
  var type = props.type,
47393
47455
  text = props.text,
47394
47456
  outline = props.outline,
47395
- mode = props.mode;
47457
+ mode = props.mode,
47458
+ shape = props.shape;
47396
47459
 
47397
47460
  // 默认使用 secondary text 样式
47398
47461
  if (type === undefined && text === undefined && outline === undefined && mode === undefined) {
@@ -47436,6 +47499,7 @@ var Dropdown = function Dropdown(props) {
47436
47499
  className: classnames_default()(dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.button, !placeholder && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.splitButton)),
47437
47500
  mode: mode,
47438
47501
  type: type,
47502
+ shape: shape,
47439
47503
  size: size,
47440
47504
  text: text,
47441
47505
  children: child
@@ -56428,6 +56492,7 @@ var MenuItem = function MenuItem(props) {
56428
56492
  _useState2 = slicedToArray_default()(_useState, 2),
56429
56493
  popOpen = _useState2[0],
56430
56494
  setOpen = _useState2[1];
56495
+ var liRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
56431
56496
  var hasExpandAbleChildren = children.some(function (item) {
56432
56497
  return item && item.children && (props.looseChildren || item.children.length);
56433
56498
  });
@@ -56502,6 +56567,10 @@ var MenuItem = function MenuItem(props) {
56502
56567
  };
56503
56568
  if (shoudPop) {
56504
56569
  var position = isVertical || isSubHorizontal ? isUp ? 'right-bottom' : 'right-top' : 'bottom';
56570
+ var offset = isVertical && props.isEdgeItem ? [0, 4] : undefined;
56571
+ var popoverContentStyle = props.level === 0 && liRef.current ? {
56572
+ minWidth: liRef.current.clientWidth
56573
+ } : undefined;
56505
56574
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_popover_popover, {
56506
56575
  mouseLeaveDelay: toggleDuration,
56507
56576
  className: classnames_default()(classes === null || classes === void 0 ? void 0 : classes.popover),
@@ -56515,7 +56584,8 @@ var MenuItem = function MenuItem(props) {
56515
56584
  showArrow: mode !== 'horizontal',
56516
56585
  position: position,
56517
56586
  lazy: false,
56518
- offset: isVertical && props.isEdgeItem ? [0, 4] : undefined,
56587
+ offset: offset,
56588
+ style: popoverContentStyle,
56519
56589
  children: function children(close) {
56520
56590
  return content(close);
56521
56591
  }
@@ -56602,6 +56672,7 @@ var MenuItem = function MenuItem(props) {
56602
56672
  onMouseEnter: handleMouseEnter,
56603
56673
  onMouseLeave: handleMouseLeave,
56604
56674
  dir: config.direction,
56675
+ ref: liRef,
56605
56676
  children: [renderItem(), renderChildren()]
56606
56677
  });
56607
56678
  };
@@ -60551,8 +60622,10 @@ var useTableVirtual = function useTableVirtual(props) {
60551
60622
  if (props.disabled) return;
60552
60623
  if (context.heightCallback) {
60553
60624
  var cb = context.heightCallback;
60554
- context.heightCallback = null;
60555
60625
  cb();
60626
+ setTimeout(function () {
60627
+ context.heightCallback = null;
60628
+ }, 300);
60556
60629
  }
60557
60630
  }, [scrollHeight]);
60558
60631
  var finalRowsInView = rowsInView + context.rowSpanRows + context.autoAddRows;
@@ -65773,7 +65846,7 @@ var upload_result_Result = function Result(props) {
65773
65846
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageBg,
65774
65847
  src: src,
65775
65848
  jssStyle: props.jssStyle,
65776
- fit: "center",
65849
+ fit: "fill",
65777
65850
  width: "auto",
65778
65851
  height: 0
65779
65852
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@@ -65967,6 +66040,7 @@ var Upload = function Upload(props0) {
65967
66040
  className: classnames_default()(listType === 'image' ? uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageHandler : uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.handler),
65968
66041
  style: listType === 'image' ? imageStyle : undefined
65969
66042
  }, wrapperProps), {}, {
66043
+ role: "button",
65970
66044
  children: [listType === 'image' && (props.children || /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
65971
66045
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageHandlerIcon,
65972
66046
  children: icons_config.upload.AddImage
@@ -68643,7 +68717,7 @@ var upload_interface = __webpack_require__(8821);
68643
68717
 
68644
68718
 
68645
68719
  /* harmony default export */ var src_0 = ({
68646
- version: '3.6.0-beta.5'
68720
+ version: '3.6.0-beta.7'
68647
68721
  });
68648
68722
  }();
68649
68723
  /******/ return __webpack_exports__;