shineout 3.2.0-rc.2 → 3.2.0-rc.3

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.2.0-rc.2'
479
+ version: '3.2.0-rc.3'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11949,7 +11949,7 @@ var handleStyle = function handleStyle(style) {
11949
11949
  };
11950
11950
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11951
11951
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11952
- /* harmony default export */ var version = ('3.2.0-rc.2');
11952
+ /* harmony default export */ var version = ('3.2.0-rc.3');
11953
11953
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11954
 
11955
11955
 
@@ -12425,6 +12425,7 @@ var Token = {
12425
12425
 
12426
12426
  // @ts-ignore
12427
12427
  var CommonToken = {};
12428
+ var CommonTokenMap = (/* unused pure expression or super */ null && (Token));
12428
12429
  Object.keys(Token).forEach(function (key) {
12429
12430
  var _getConfig = getConfig(),
12430
12431
  prefix = _getConfig.prefix;
@@ -13013,6 +13014,8 @@ var cascaderTokens = {
13013
13014
  cascaderPanelRadius: 'Radius-4',
13014
13015
  cascaderPanelBorder: 'Neutral-border-1',
13015
13016
  cascaderOptionHeight: 'Size-16',
13017
+ cascaderOptionFontColor: 'Neutral-text-5',
13018
+ cascaderOptionBackgroundColor: 'Neutral-fill-1',
13016
13019
  cascaderOptionPaddingX: 'Spacing-4',
13017
13020
  cascaderOptionPaddingY: 'Spacing-1',
13018
13021
  cascaderOptionActiveColor: 'Brand-6',
@@ -13023,6 +13026,7 @@ var cascaderTokens = {
13023
13026
  cascaderOptionInnerBorderRadius: 'Radius-2',
13024
13027
  cascaderOptionIconColor: 'Neutral-text-4',
13025
13028
  cascaderOptionHoverBackgroundColor: 'Neutral-fill-2',
13029
+ cascaderOptionHoverFontColor: 'Neutral-text-5',
13026
13030
  cascaderOptionDisabledColor: 'Neutral-text-2',
13027
13031
  cascaderOptionDisabledBackgroundColor: 'Neutral-fill-1',
13028
13032
  cascaderMorePaddingX: 'Spacing-16',
@@ -13482,6 +13486,7 @@ var inputTokens = {
13482
13486
  inputLargePaddingX: 'Spacing-12',
13483
13487
  inputLargePaddingY: 'Spacing-7',
13484
13488
  inputPlaceholderColor: 'Neutral-text-2',
13489
+ inputPlaceholderFontWeight: 'Weight-regular',
13485
13490
  inputBackgroundColor: 'Neutral-fill-1',
13486
13491
  inputClearColor: 'Neutral-text-3',
13487
13492
  inputToggleColor: 'Neutral-text-4',
@@ -13489,6 +13494,7 @@ var inputTokens = {
13489
13494
  inputHoverBackgroundColor: 'Neutral-fill-1',
13490
13495
  inputHoverClearColor: 'Neutral-text-4',
13491
13496
  inputHoverToggleColor: 'Neutral-text-5',
13497
+ inputHoverIconColor: 'Brand-6',
13492
13498
  inputFocusBorderColor: 'Brand-7',
13493
13499
  inputFocusBackgroundColor: 'Neutral-fill-1',
13494
13500
  inputFocusShadow: 'Brand-2',
@@ -13503,6 +13509,8 @@ var inputTokens = {
13503
13509
  inputErrorFocusBorderColor: 'Danger-6',
13504
13510
  inputErrorFocusBackgroundColor: 'Neutral-fill-1',
13505
13511
  inputErrorFocusShadow: 'Danger-1',
13512
+ inputGroupFontColor: 'Neutral-text-5',
13513
+ inputGroupFontBackgroundColor: 'Neutral-fill-2',
13506
13514
  inputInfoFontColor: 'Brand-6',
13507
13515
  inputInfoBackgroundColor: 'Neutral-fill-1',
13508
13516
  inputInfoBorderColor: 'Neutral-border-2',
@@ -14577,7 +14585,9 @@ var treeTokens = {
14577
14585
  treeSmallLineHeight: 'Size-14',
14578
14586
  treeLargeFontSize: 'Font-16',
14579
14587
  treeLargeLineHeight: 'Size-22',
14588
+ treeFontWeight: 'Weight-regular',
14580
14589
  treeFontColor: 'Neutral-text-5',
14590
+ treeLineBackgroundColor: 'Neutral-fill-2',
14581
14591
  treePaddingX: 'Spacing-8',
14582
14592
  treePaddingY: 'Spacing-1',
14583
14593
  treeItemFontColor: 'Neutral-text-4',
@@ -16562,6 +16572,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16562
16572
  // hover
16563
16573
  '&:not($optionDisabled):hover': {
16564
16574
  '& $optionInner': {
16575
+ color: src.cascaderOptionHoverFontColor,
16565
16576
  backgroundColor: src.cascaderOptionHoverBackgroundColor
16566
16577
  }
16567
16578
  }
@@ -16586,7 +16597,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
16586
16597
  whiteSpace: 'nowrap',
16587
16598
  minWidth: 44,
16588
16599
  display: 'flex',
16600
+ color: src.cascaderOptionFontColor,
16589
16601
  fontSize: src.cascaderFontSize,
16602
+ background: src.cascaderOptionBackgroundColor,
16590
16603
  lineHeight: src.lineHeightDynamic,
16591
16604
  padding: "".concat(src.cascaderOptionInnerPaddingY, " ").concat(src.cascaderOptionInnerPaddingX),
16592
16605
  paddingRight: 30,
@@ -18999,8 +19012,9 @@ var groupSpace = function groupSpace(gap) {
18999
19012
  alignItems: 'center',
19000
19013
  border: "1px solid ".concat(src.inputBorderColor),
19001
19014
  borderWidth: '0 1px',
19002
- background: src.inputDisabledBackgroundColor,
19015
+ background: src.inputGroupFontBackgroundColor,
19003
19016
  fontWeight: 'normal',
19017
+ color: src.inputGroupFontColor,
19004
19018
  '&:first-child': {
19005
19019
  borderLeftColor: 'inherit',
19006
19020
  marginLeft: '-1px'
@@ -19061,7 +19075,9 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
19061
19075
  outline: 'none',
19062
19076
  backgroundColor: 'transparent',
19063
19077
  boxSizing: 'border-box',
19078
+ fontWeight: 'inherit',
19064
19079
  '&::placeholder': {
19080
+ fontWeight: src.inputPlaceholderFontWeight,
19065
19081
  color: src.inputPlaceholderColor,
19066
19082
  fontSize: 'inherit'
19067
19083
  }
@@ -19141,7 +19157,7 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
19141
19157
  color: src.inputIconColor,
19142
19158
  '&:hover': {
19143
19159
  '$wrapper:not($wrapperDisabled) &': {
19144
- color: src.inputHoverBorderColor
19160
+ color: src.inputHoverIconColor
19145
19161
  }
19146
19162
  },
19147
19163
  '&:first-child': {
@@ -25742,7 +25758,7 @@ var treeStyle = {
25742
25758
  top: -6,
25743
25759
  height: 'calc(100% + 6px)',
25744
25760
  width: 1,
25745
- background: '#ebebeb'
25761
+ background: src.treeLineBackgroundColor
25746
25762
  },
25747
25763
  '&[dir=ltr]::after': {
25748
25764
  left: 0
@@ -25756,7 +25772,7 @@ var treeStyle = {
25756
25772
  top: 18,
25757
25773
  height: 1,
25758
25774
  width: 16,
25759
- background: '#ebebeb'
25775
+ background: src.treeLineBackgroundColor
25760
25776
  }
25761
25777
  },
25762
25778
  '& $node:first-child': {},
@@ -25864,6 +25880,7 @@ var treeStyle = {
25864
25880
  fontSize: src.treeFontSize,
25865
25881
  lineHeight: src.lineHeightDynamic,
25866
25882
  color: src.treeFontColor,
25883
+ fontWeight: src.treeFontWeight,
25867
25884
  paddingTop: src.treeTextPaddingY,
25868
25885
  paddingBottom: src.treeTextPaddingY
25869
25886
  },
@@ -34159,18 +34176,14 @@ function castImmutable(value) {
34159
34176
  }
34160
34177
 
34161
34178
  ;// CONCATENATED MODULE: ../hooks/src/utils/immer.ts
34162
- // import { produce as produce2, getSnapshot } from '@shined/reactive/vanilla';
34163
34179
 
34164
- // export const produce = ((...args: any) => {
34165
- // return produce2.apply(null, args);
34166
- // }) as typeof produce2;
34167
34180
 
34168
- // export const current = getSnapshot;
34169
-
34170
-
34171
-
34172
- var utils_immer_produce = function produce(value, cb) {
34173
- return immer_produce(value, cb);
34181
+ var utils_immer_produce = function produce() {
34182
+ setAutoFreeze(false);
34183
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34184
+ args[_key] = arguments[_key];
34185
+ }
34186
+ return immer_produce.apply(null, args);
34174
34187
  };
34175
34188
  ;// CONCATENATED MODULE: ../hooks/src/utils/clone.ts
34176
34189
 
@@ -62370,7 +62383,7 @@ var upload_interface = __webpack_require__(4412);
62370
62383
 
62371
62384
 
62372
62385
  /* harmony default export */ var src_0 = ({
62373
- version: '3.2.0-rc.2'
62386
+ version: '3.2.0-rc.3'
62374
62387
  });
62375
62388
  }();
62376
62389
  /******/ return __webpack_exports__;