shineout 3.9.13-beta.13 → 3.9.13-beta.15

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.9.13-beta.13'
525
+ version: '3.9.13-beta.15'
526
526
  };
package/dist/shineout.js CHANGED
@@ -3236,6 +3236,20 @@ const figma = [
3236
3236
  token: 'Brand-9',
3237
3237
  locked: true,
3238
3238
  },
3239
+ {
3240
+ name: 'colorBgLayout',
3241
+ value: '#F4F5F8',
3242
+ describe: '布局背景色',
3243
+ token: 'Bg-layout',
3244
+ locked: false,
3245
+ },
3246
+ {
3247
+ name: 'colorBgPopup',
3248
+ value: '#FFFFFF',
3249
+ describe: '浮层容器背景色',
3250
+ token: 'Bg-popup',
3251
+ locked: false,
3252
+ },
3239
3253
  {
3240
3254
  name: '青色-1',
3241
3255
  value: '#e8fffb',
@@ -4419,55 +4433,7 @@ const figma = [
4419
4433
  token: 'Margin-32',
4420
4434
  locked: true,
4421
4435
  },
4422
- {
4423
- name: '0/radius',
4424
- value: '0px',
4425
- describe: '直角',
4426
- token: 'Radius-0',
4427
- locked: true,
4428
- },
4429
- {
4430
- name: '2/radius',
4431
- value: '2px',
4432
- describe: '2 圆角',
4433
- token: 'Radius-2',
4434
- locked: true,
4435
- },
4436
- {
4437
- name: '3/radius',
4438
- value: '3px',
4439
- describe: '3 圆角',
4440
- token: 'Radius-3',
4441
- locked: true,
4442
- },
4443
- {
4444
- name: '4/radius',
4445
- value: '4px',
4446
- describe: '4 圆角',
4447
- token: 'Radius-4',
4448
- locked: true,
4449
- },
4450
- {
4451
- name: '8/radius',
4452
- value: '8px',
4453
- describe: '8 圆角',
4454
- token: 'Radius-8',
4455
- locked: true,
4456
- },
4457
- {
4458
- name: '12/radius',
4459
- value: '12px',
4460
- describe: '12 圆角',
4461
- token: 'Radius-12',
4462
- locked: true,
4463
- },
4464
- {
4465
- name: '1000/radius',
4466
- value: '1000px',
4467
- describe: '1000 大圆角',
4468
- token: 'Radius-1000',
4469
- locked: true,
4470
- },
4436
+
4471
4437
  {
4472
4438
  name: '基础阴影',
4473
4439
  value: '0px 2px 5px rgba(2, 11, 24, 0.1)',
@@ -12359,7 +12325,7 @@ var handleStyle = function handleStyle(style) {
12359
12325
  };
12360
12326
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12361
12327
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12362
- /* harmony default export */ var version = ('3.9.13-beta.13');
12328
+ /* harmony default export */ var version = ('3.9.13-beta.15');
12363
12329
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12364
12330
 
12365
12331
 
@@ -12581,6 +12547,8 @@ var Token = {
12581
12547
  'Brand-7': '#0B5BD4',
12582
12548
  'Brand-8': '#0040AD',
12583
12549
  'Brand-9': '#002D87',
12550
+ 'Bg-layout': '#F4F5F8',
12551
+ 'Bg-popup': '#FFFFFF',
12584
12552
  'Cyan-1': '#e8fffb',
12585
12553
  'Cyan-10': '#00424d',
12586
12554
  'Cyan-2': '#b7f1e9',
@@ -12750,13 +12718,6 @@ var Token = {
12750
12718
  'Margin-16': '16px',
12751
12719
  'Margin-24': '24px',
12752
12720
  'Margin-32': '32px',
12753
- 'Radius-0': '0px',
12754
- 'Radius-2': '2px',
12755
- 'Radius-3': '3px',
12756
- 'Radius-4': '4px',
12757
- 'Radius-8': '8px',
12758
- 'Radius-12': '12px',
12759
- 'Radius-1000': '1000px',
12760
12721
  'Shadow-1': '0px 2px 5px rgba(2, 11, 24, 0.1)',
12761
12722
  'Shadow-2': '0px 4px 10px rgba(2, 11, 24, 0.1)',
12762
12723
  'Shadow-3': '0px 8px 20px rgba(2, 11, 24, 0.1)',
@@ -13909,7 +13870,7 @@ var dropdownTokens = {
13909
13870
  dropdownOptionSelectFontColor: 'Brand-6',
13910
13871
  dropdownOptionDisabledBackgroundColor: 'Neutral-fill-1',
13911
13872
  dropdownOptionDisabledFontColor: 'Neutral-text-2',
13912
- dropdownOptionBorderRadius: 'Radius-2',
13873
+ dropdownOptionBorderRadius: 'Radius-lesser',
13913
13874
  dropdownOptionGroupPaddingX: 'Spacing-8',
13914
13875
  dropdownOptionGroupPaddingTop: 'Font-14',
13915
13876
  dropdownOptionGroupPaddingBottom: 'Spacing-2',
@@ -15444,19 +15405,15 @@ var transferTokens = {
15444
15405
  // This file was generated automatically by a script. Please do not modify it directly.
15445
15406
 
15446
15407
  var treeTokens = {
15447
- treeTextPaddingY: 'Spacing-2',
15448
- treeTextPaddingX: 'Spacing-4',
15449
- treeCheckboxMarginX: 'Spacing-8',
15450
- treeIconSize: 'Font-14',
15451
15408
  treeFontSize: 'Font-14',
15409
+ treeFontWeight: 'Weight-regular',
15410
+ treeFontColor: 'Neutral-text-5',
15452
15411
  treeLineHeight: 'Size-18',
15412
+ treeLineBackgroundColor: 'Neutral-fill-3',
15453
15413
  treeSmallFontSize: 'Font-12',
15454
15414
  treeSmallLineHeight: 'Size-14',
15455
15415
  treeLargeFontSize: 'Font-16',
15456
15416
  treeLargeLineHeight: 'Size-22',
15457
- treeFontWeight: 'Weight-regular',
15458
- treeFontColor: 'Neutral-text-5',
15459
- treeLineBackgroundColor: 'Neutral-fill-3',
15460
15417
  treePaddingX: 'Spacing-8',
15461
15418
  treePaddingY: 'Spacing-1',
15462
15419
  treeItemFontColor: 'Neutral-text-4',
@@ -15465,16 +15422,20 @@ var treeTokens = {
15465
15422
  treeItemActiveBackgroundColor: 'Neutral-fill-4',
15466
15423
  treeItemActiveFontColor: 'Neutral-text-4',
15467
15424
  treeItemDisabledFontColor: 'Neutral-text-2',
15468
- treeContentBorderRadius: 'Radius-lesser',
15469
15425
  treeContentHoverBackgroundColor: 'Neutral-fill-2',
15470
15426
  treeContentHoverFontColor: 'Neutral-text-5',
15471
15427
  treeContentActiveBackgroundColor: 'Brand-1',
15472
15428
  treeContentActiveFontColor: 'Brand-6',
15473
- treeContentActiveBorderRadius: 'Radius-2',
15429
+ treeContentActiveBorderRadius: 'Radius-lesser',
15474
15430
  treeContentDisabledBackgroundColor: 'Transprent',
15475
15431
  treeContentDisabledFontColor: 'Neutral-text-5',
15432
+ treeContentBorderRadius: 'Radius-lesser',
15476
15433
  treeDragBorderColor: 'Brand-6',
15477
- treeDragBackgroundColor: 'Brand-1'
15434
+ treeDragBackgroundColor: 'Brand-1',
15435
+ treeTextPaddingY: 'Spacing-2',
15436
+ treeTextPaddingX: 'Spacing-4',
15437
+ treeCheckboxMarginX: 'Spacing-8',
15438
+ treeIconSize: 'Font-14'
15478
15439
  };
15479
15440
  /* harmony default export */ var tree = (treeTokens);
15480
15441
  ;// CONCATENATED MODULE: ../theme/src/tree/index.ts
@@ -16199,8 +16160,8 @@ var breadcrumbStyle = {
16199
16160
  }
16200
16161
  },
16201
16162
  down: {
16202
- width: src.breadcrumbDownIconSize,
16203
- height: src.breadcrumbDownIconSize,
16163
+ width: src.breadcrumbFontSize,
16164
+ height: src.breadcrumbFontSize,
16204
16165
  lineHeight: '1',
16205
16166
  marginLeft: 4
16206
16167
  },
@@ -16482,16 +16443,19 @@ var ButtonStyle = {
16482
16443
  var bc = function bc(key) {
16483
16444
  return ".".concat(jss_style_prefix, "-button-").concat(key);
16484
16445
  };
16446
+ var heightAndTop = {
16447
+ height: "var(--button-before-line-height, calc(50% - 2px))",
16448
+ top: "var(--button-before-line-top, calc(25% + 1px))"
16449
+ };
16485
16450
  var beforeLine = function beforeLine() {
16486
16451
  return defineProperty_default()(defineProperty_default()({
16487
- '&::before': {
16452
+ '&::before': objectSpread2_default()(objectSpread2_default()({
16488
16453
  position: 'absolute',
16489
- content: '" "',
16490
- height: 'calc(50% - 2px)',
16491
- top: 'calc(25% + 1px)',
16454
+ content: '" "'
16455
+ }, heightAndTop), {}, {
16492
16456
  width: 1,
16493
16457
  background: src.buttonSplitlineFullBackgroundColor
16494
- },
16458
+ }),
16495
16459
  '&[dir=ltr]::before': {
16496
16460
  left: -1
16497
16461
  },
@@ -16537,14 +16501,13 @@ var beforeLine = function beforeLine() {
16537
16501
  };
16538
16502
  var outlineBeforeLine = function outlineBeforeLine(type, styles) {
16539
16503
  return defineProperty_default()({
16540
- '&::before': {
16504
+ '&::before': objectSpread2_default()(objectSpread2_default()({
16541
16505
  position: 'absolute',
16542
- content: '" "',
16543
- height: 'calc(50% - 2px)',
16544
- top: 'calc(25% + 1px)',
16506
+ content: '" "'
16507
+ }, heightAndTop), {}, {
16545
16508
  width: 1,
16546
16509
  background: src["button".concat(type).concat(styles, "BorderColor")]
16547
- },
16510
+ }),
16548
16511
  '&[dir=ltr]::before': {
16549
16512
  left: -1
16550
16513
  },
@@ -16578,14 +16541,13 @@ var outlineBeforeLine = function outlineBeforeLine(type, styles) {
16578
16541
  }
16579
16542
  }))
16580
16543
  }, "&".concat(bc('primary'), ",&").concat(bc('success'), ",&").concat(bc('warning'), ",&").concat(bc('danger'), ",").concat(bc('secondary')), {
16581
- '&::before': {
16582
- height: 'calc(100% + 2px)',
16583
- top: -1,
16544
+ '&::before': objectSpread2_default()(objectSpread2_default()({}, heightAndTop), {}, {
16545
+ top: "var(--button-before-line-top, calc(25% + 1px))",
16584
16546
  left: -1,
16585
16547
  width: 1,
16586
16548
  bottom: -1,
16587
16549
  background: "".concat(src["button".concat(type).concat(styles, "BorderColor")])
16588
- },
16550
+ }),
16589
16551
  '& + :not(&)': {
16590
16552
  '&::before': {
16591
16553
  height: 'calc(100% + 2px)',
@@ -16610,15 +16572,14 @@ var outlineBeforeLine = function outlineBeforeLine(type, styles) {
16610
16572
  };
16611
16573
  var textBeforeLine = function textBeforeLine() {
16612
16574
  return defineProperty_default()({
16613
- '&::before': {
16575
+ '&::before': objectSpread2_default()(objectSpread2_default()({
16614
16576
  transition: 'all 0.3s',
16615
16577
  position: 'absolute',
16616
- content: '" "',
16617
- height: 'calc(50% - 2px)',
16618
- top: 'calc(25% + 1px)',
16578
+ content: '" "'
16579
+ }, heightAndTop), {}, {
16619
16580
  width: 1,
16620
16581
  background: src.buttonSplitlineOutlineBackgroundColor
16621
- },
16582
+ }),
16622
16583
  '&[dir=ltr]::before': {
16623
16584
  left: -1
16624
16585
  },
@@ -16676,21 +16637,20 @@ var ButtonGroupStyle = {
16676
16637
  borderRadius: 0,
16677
16638
  borderLeft: 'none',
16678
16639
  borderRight: 'none'
16679
- }), "& ".concat(bc('button'), ":not(").concat(bc('outline'), "):not(").concat(bc('text'), ")"), defineProperty_default()(defineProperty_default()(defineProperty_default()({
16640
+ }), "& ".concat(bc('button'), ":not(").concat(bc('outline'), "):not(").concat(bc('dashed'), "):not(").concat(bc('text'), ")"), defineProperty_default()(defineProperty_default()(defineProperty_default()({
16680
16641
  position: 'relative',
16681
16642
  '&::before': {
16682
- transition: 'all 0.3s'
16643
+ // transition: 'all 0.3s',
16683
16644
  }
16684
16645
  }, "&".concat(bc('secondary')), objectSpread2_default()(objectSpread2_default()({}, beforeLine()), {}, defineProperty_default()({
16685
- '&::before': {
16646
+ '&::before': objectSpread2_default()(objectSpread2_default()({
16686
16647
  position: 'absolute',
16687
- content: '" "',
16688
- height: 'calc(50% - 2px)',
16689
- top: 'calc(25% + 1px)',
16648
+ content: '" "'
16649
+ }, heightAndTop), {}, {
16690
16650
  width: 1,
16691
16651
  background: src.buttonSplitlineOutlineBackgroundColor,
16692
16652
  transition: 'none'
16693
- },
16653
+ }),
16694
16654
  '&[dir=ltr]::before': {
16695
16655
  left: -1
16696
16656
  },
@@ -16714,27 +16674,11 @@ var ButtonGroupStyle = {
16714
16674
  '&::before': {
16715
16675
  transition: 'all 0.3s'
16716
16676
  }
16717
- }, "&".concat(bc('secondary')), objectSpread2_default()(objectSpread2_default()({}, outlineBeforeLine('Secondary', 'Outline')), {}, {
16718
- '&::before': {
16719
- position: 'absolute',
16720
- content: '" "',
16721
- height: 'calc(50% - 2px)',
16722
- top: 'calc(25% + 1px)',
16723
- width: 1,
16724
- background: src.buttonSplitlineOutlineBackgroundColor // Neutral-border-1
16725
- },
16726
- '&[dir=ltr]::before': {
16727
- left: -1
16728
- },
16729
- '&[dir=rtl]::before': {
16730
- right: -1
16731
- }
16732
- })), "&".concat(bc('primary')), objectSpread2_default()({}, outlineBeforeLine('Primary', 'Outline'))), "&".concat(bc('success')), objectSpread2_default()({}, outlineBeforeLine('Success', 'Outline'))), "&".concat(bc('warning')), objectSpread2_default()({}, outlineBeforeLine('Warning', 'Outline'))), "&".concat(bc('danger')), objectSpread2_default()({}, outlineBeforeLine('Danger', 'Outline')))), "& ".concat(bc('text')), objectSpread2_default()({
16677
+ }, "&".concat(bc('secondary')), objectSpread2_default()({}, outlineBeforeLine('Secondary', 'Outline'))), "&".concat(bc('primary')), objectSpread2_default()({}, outlineBeforeLine('Primary', 'Outline'))), "&".concat(bc('success')), objectSpread2_default()({}, outlineBeforeLine('Success', 'Outline'))), "&".concat(bc('warning')), objectSpread2_default()({}, outlineBeforeLine('Warning', 'Outline'))), "&".concat(bc('danger')), objectSpread2_default()({}, outlineBeforeLine('Danger', 'Outline')))), "& ".concat(bc('text')), objectSpread2_default()({
16733
16678
  position: 'relative'
16734
- }, textBeforeLine())), "&".concat(bc('dashed')), {
16735
- position: 'relative',
16736
- borderStyle: 'none'
16737
- })
16679
+ }, textBeforeLine())), "& ".concat(bc('dashed')), defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({
16680
+ position: 'relative'
16681
+ }, "&".concat(bc('secondary')), objectSpread2_default()({}, outlineBeforeLine('Secondary', 'Outline'))), "&".concat(bc('primary')), objectSpread2_default()({}, outlineBeforeLine('Primary', 'Outline'))), "&".concat(bc('success')), objectSpread2_default()({}, outlineBeforeLine('Success', 'Outline'))), "&".concat(bc('warning')), objectSpread2_default()({}, outlineBeforeLine('Warning', 'Outline'))), "&".concat(bc('danger')), objectSpread2_default()({}, outlineBeforeLine('Danger', 'Outline'))))
16738
16682
  };
16739
16683
  /* harmony default export */ var button_group = (ButtonGroupStyle);
16740
16684
  ;// CONCATENATED MODULE: ../shineout-style/src/button/index.ts
@@ -19644,16 +19588,16 @@ var dropdown_dropdown = {
19644
19588
  },
19645
19589
  itemDisabled: {},
19646
19590
  optionGroup: {
19647
- padding: "calc(".concat(src.dropdownOptionGroupPaddingTop, " - 4px) ").concat(src.dropdownOptionGroupPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom, " ").concat(src.dropdownOptionGroupPaddingX),
19591
+ padding: "calc(".concat(src.dropdownOptionGroupPaddingTop, " - 4px) ").concat(src.dropdownOptionPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom),
19648
19592
  fontSize: src.dropdownOptionGroupFontSize,
19649
19593
  fontWeight: src.dropdownOptionGroupFontWeight,
19650
19594
  color: src.dropdownOptionGroupFontColor,
19651
19595
  lineHeight: src.lineHeightDynamic,
19652
19596
  '$listSmall &': {
19653
- padding: "".concat(src.dropdownOptionGroupSmallTop, " ").concat(src.dropdownOptionGroupSmallX, " 0 ").concat(src.dropdownOptionGroupSmallX)
19597
+ padding: "".concat(src.dropdownOptionGroupSmallTop, " ").concat(src.dropdownOptionSmallPaddingX, " 0")
19654
19598
  },
19655
19599
  '$listLarge &': {
19656
- padding: "".concat(src.dropdownOptionGroupLargeTop, " ").concat(src.dropdownOptionGroupLargeX, " ").concat(src.dropdownOptionGroupLargeBottom, " ").concat(src.dropdownOptionGroupLargeX)
19600
+ padding: "".concat(src.dropdownOptionGroupLargeTop, " ").concat(src.dropdownOptionLargePaddingX, " ").concat(src.dropdownOptionGroupLargeBottom)
19657
19601
  }
19658
19602
  },
19659
19603
  optionDivider: {
@@ -21504,8 +21448,11 @@ var menuStyle = {
21504
21448
  }
21505
21449
  },
21506
21450
  // 一级菜单展不展开都是fill-9,一级展开后的子级都是fill-10
21507
- '[data-soui-theme=dark] $root > $item > &': {
21508
- backgroundColor: src.menuDarkItemBackgroundColor
21451
+ '[data-soui-theme=dark] $root > $item:not($itemActive) > &': {
21452
+ backgroundColor: src.menuDarkItemBackgroundColor,
21453
+ '&:hover': {
21454
+ backgroundColor: src.menuDarkItemHoverBackgroundColor
21455
+ }
21509
21456
  },
21510
21457
  '[data-soui-theme=dark] &': {
21511
21458
  color: src.menuDarkFontColor,
@@ -23799,7 +23746,10 @@ var radioStyle = objectSpread2_default()(objectSpread2_default()({}, animations)
23799
23746
  marginTop: src.radioIndicatorMarginTop
23800
23747
  }
23801
23748
  },
23802
- wrapperChecked: {},
23749
+ wrapperChecked: {
23750
+ '--button-before-line-height': '100%',
23751
+ '--button-before-line-top': 0
23752
+ },
23803
23753
  wrapperDisabled: {
23804
23754
  cursor: 'not-allowed'
23805
23755
  },
@@ -75744,7 +75694,7 @@ var upload_interface = __webpack_require__(8821);
75744
75694
 
75745
75695
 
75746
75696
  /* harmony default export */ var src_0 = ({
75747
- version: '3.9.13-beta.13'
75697
+ version: '3.9.13-beta.15'
75748
75698
  });
75749
75699
  }();
75750
75700
  /******/ return __webpack_exports__;