shineout 3.3.0-beta.1 → 3.3.0-beta.2
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 +1 -1
- package/dist/shineout.js +38 -14
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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.3.0-beta.
|
|
479
|
+
version: '3.3.0-beta.2'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.3.0-beta.
|
|
11963
|
+
/* harmony default export */ var version = ('3.3.0-beta.2');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -14755,9 +14755,11 @@ var treeTokens = {
|
|
|
14755
14755
|
treeItemActiveFontColor: 'Neutral-text-4',
|
|
14756
14756
|
treeItemDisabledFontColor: 'Neutral-text-2',
|
|
14757
14757
|
treeContentHoverBackgroundColor: 'Neutral-fill-2',
|
|
14758
|
+
treeContentHoverFontColor: 'Neutral-text-5',
|
|
14758
14759
|
treeContentActiveBackgroundColor: 'Brand-1',
|
|
14759
14760
|
treeContentActiveFontColor: 'Brand-6',
|
|
14760
|
-
|
|
14761
|
+
treeContentDisabledBackgroundColor: 'Transprent',
|
|
14762
|
+
treeContentDisabledFontColor: 'Neutral-text-5',
|
|
14761
14763
|
treeDragBorderColor: 'Brand-6',
|
|
14762
14764
|
treeDragBackgroundColor: 'Brand-1',
|
|
14763
14765
|
treeContentBorderRadius: 'Radius-lesser'
|
|
@@ -14819,11 +14821,18 @@ var treeSelectTokens = {
|
|
|
14819
14821
|
treeSelectPanelShadow: 'Shadow-2',
|
|
14820
14822
|
treeSelectPanelRadius: 'Radius-default',
|
|
14821
14823
|
treeSelectPanelBorder: 'Neutral-border-1',
|
|
14824
|
+
treeSelectContentHoverFontColor: 'Neutral-text-5',
|
|
14825
|
+
treeSelectContentHoverBackgroundColor: 'Neutral-fill-2',
|
|
14826
|
+
treeSelectContentActiveFontColor: 'Brand-6',
|
|
14827
|
+
treeSelectContentActiveBackgroundColor: 'Brand-1',
|
|
14828
|
+
treeSelectContentDisabledFontColor: 'Neutral-text-2',
|
|
14829
|
+
treeSelectContentDisabledBackgroundColor: 'Transprent',
|
|
14822
14830
|
treeSelectOptionHeight: 'Size-16',
|
|
14823
14831
|
treeSelectOptionPaddingX: 'Spacing-4',
|
|
14824
14832
|
treeSelectOptionPaddingY: 'Spacing-1',
|
|
14825
14833
|
treeSelectOptionActiveColor: 'Brand-6',
|
|
14826
14834
|
treeSelectOptionActiveBackgroundColor: 'Brand-1',
|
|
14835
|
+
treeSelectOptionFontColor: 'Neutral-text-5',
|
|
14827
14836
|
treeSelectOptionInnerPaddingX: 'Spacing-8',
|
|
14828
14837
|
treeSelectOptionInnerPaddingY: 'Spacing-5',
|
|
14829
14838
|
treeSelectOptionInnerPaddingRight: 'Size-15',
|
|
@@ -20598,7 +20607,7 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
|
|
|
20598
20607
|
flexDirection: 'column',
|
|
20599
20608
|
textAlign: 'left',
|
|
20600
20609
|
minWidth: 0,
|
|
20601
|
-
background:
|
|
20610
|
+
background: src.modalPanelBackground,
|
|
20602
20611
|
borderRadius: src.modalPanelRadius,
|
|
20603
20612
|
padding: "".concat(src.modalPanelPaddingY, " ").concat(src.modalPanelPaddingX),
|
|
20604
20613
|
fontSize: src.modalPanelFontSize,
|
|
@@ -25466,7 +25475,7 @@ var tag_tag = function tag(type) {
|
|
|
25466
25475
|
},
|
|
25467
25476
|
// outline 边框风格
|
|
25468
25477
|
'&$outline': {
|
|
25469
|
-
background:
|
|
25478
|
+
background: src["tag".concat(type, "OutlineBackgroundColor")],
|
|
25470
25479
|
color: src["tag".concat(type, "OutlineFontColor")],
|
|
25471
25480
|
border: "1px solid ".concat(src["tag".concat(type, "OutlineBorderColor")]),
|
|
25472
25481
|
'& $closeIconWrapper': {
|
|
@@ -26356,6 +26365,17 @@ var treeStyle = {
|
|
|
26356
26365
|
inlineContent: {
|
|
26357
26366
|
display: 'inline-flex'
|
|
26358
26367
|
},
|
|
26368
|
+
contentDisabled: {
|
|
26369
|
+
'& $content[data-active="true"]': {
|
|
26370
|
+
background: src.treeContentDisabledBackgroundColor
|
|
26371
|
+
},
|
|
26372
|
+
'& $content:hover:not([data-active="true"])': {
|
|
26373
|
+
background: 'none',
|
|
26374
|
+
'& $text': {
|
|
26375
|
+
color: src.treeContentDisabledFontColor
|
|
26376
|
+
}
|
|
26377
|
+
}
|
|
26378
|
+
},
|
|
26359
26379
|
content: {
|
|
26360
26380
|
flex: 1,
|
|
26361
26381
|
display: 'flex',
|
|
@@ -26379,20 +26399,22 @@ var treeStyle = {
|
|
|
26379
26399
|
'&[dir=rtl][data-expanded="true"]::before': {
|
|
26380
26400
|
right: -12
|
|
26381
26401
|
},
|
|
26402
|
+
'$contentDisabled &': {
|
|
26403
|
+
'& $text': {
|
|
26404
|
+
color: src.treeContentDisabledFontColor
|
|
26405
|
+
}
|
|
26406
|
+
},
|
|
26382
26407
|
'&[data-active="true"]': {
|
|
26383
26408
|
background: src.treeContentActiveBackgroundColor,
|
|
26384
26409
|
'& $text': {
|
|
26385
26410
|
color: src.treeContentActiveFontColor
|
|
26386
26411
|
}
|
|
26387
26412
|
},
|
|
26388
|
-
// '&[data-disabled="true"]': {
|
|
26389
|
-
// cursor: 'not-allowed',
|
|
26390
|
-
// },
|
|
26391
|
-
// '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
|
|
26392
|
-
// background: Token.treeContentHoverBackgroundColor,
|
|
26393
|
-
// },
|
|
26394
26413
|
'&:hover:not([data-active="true"])': {
|
|
26395
|
-
background: src.treeContentHoverBackgroundColor
|
|
26414
|
+
background: src.treeContentHoverBackgroundColor,
|
|
26415
|
+
'& $text': {
|
|
26416
|
+
color: src.treeContentHoverFontColor
|
|
26417
|
+
}
|
|
26396
26418
|
}
|
|
26397
26419
|
},
|
|
26398
26420
|
checkbox: {
|
|
@@ -26488,6 +26510,7 @@ var useTreeStyle = styled(tree_tree, 'tree');
|
|
|
26488
26510
|
|
|
26489
26511
|
|
|
26490
26512
|
|
|
26513
|
+
|
|
26491
26514
|
var tree_select_inputBorderToken = {
|
|
26492
26515
|
lineHeight: src.lineHeightDynamic,
|
|
26493
26516
|
borderRadius: src.inputBorderRadius,
|
|
@@ -26617,6 +26640,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26617
26640
|
}
|
|
26618
26641
|
}
|
|
26619
26642
|
}),
|
|
26643
|
+
treeWrapper: defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, getTokenName('treeFontColor'), src.treeSelectOptionFontColor), getTokenName('treeContentHoverFontColor'), src.treeSelectContentHoverFontColor), getTokenName('treeContentHoverBackgroundColor'), src.treeSelectContentHoverBackgroundColor), getTokenName('treeContentActiveBackgroundColor'), src.treeSelectContentActiveBackgroundColor), getTokenName('treeContentActiveFontColor'), src.treeSelectContentActiveFontColor), getTokenName('treeContentDisabledFontColor'), src.treeSelectContentDisabledFontColor), getTokenName('treeContentDisabledBackgroundColor'), src.treeSelectContentDisabledBackgroundColor),
|
|
26620
26644
|
wrapperEmpty: {},
|
|
26621
26645
|
wrapperOpen: {},
|
|
26622
26646
|
wrapperDisabled: objectSpread2_default()({}, tree_select_wrapperDisabled)
|
|
@@ -48271,7 +48295,7 @@ var NodeContent = function NodeContent(props) {
|
|
|
48271
48295
|
var disabled = isDisabled(id);
|
|
48272
48296
|
bindUpdate(id, forceUpdate);
|
|
48273
48297
|
var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
48274
|
-
var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode));
|
|
48298
|
+
var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode), contentStyle.contentDisabled, disabled));
|
|
48275
48299
|
var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
|
|
48276
48300
|
// const textClass = classNames(contentStyle.text, disabled ? contentStyle.textDisabled : '');
|
|
48277
48301
|
var textClass = classnames_default()(contentStyle.text);
|
|
@@ -59498,7 +59522,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
59498
59522
|
treeProps.expanded = expanded;
|
|
59499
59523
|
}
|
|
59500
59524
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
59501
|
-
className: classnames_default()(styles.tree),
|
|
59525
|
+
className: classnames_default()(styles.tree, styles.treeWrapper),
|
|
59502
59526
|
style: {
|
|
59503
59527
|
maxHeight: height
|
|
59504
59528
|
},
|
|
@@ -63149,7 +63173,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63149
63173
|
|
|
63150
63174
|
|
|
63151
63175
|
/* harmony default export */ var src_0 = ({
|
|
63152
|
-
version: '3.3.0-beta.
|
|
63176
|
+
version: '3.3.0-beta.2'
|
|
63153
63177
|
});
|
|
63154
63178
|
}();
|
|
63155
63179
|
/******/ return __webpack_exports__;
|