shineout 3.1.13 → 3.1.14

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.1.13'
479
+ version: '3.1.14'
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.1.13');
11952
+ /* harmony default export */ var version = ('3.1.14');
11953
11953
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11954
11954
 
11955
11955
 
@@ -20411,7 +20411,13 @@ var popoverStyle = {
20411
20411
  height: '8.4px',
20412
20412
  boxSizing: 'content-box',
20413
20413
  background: 'inherit',
20414
- borderBottom: 'none'
20414
+ borderBottom: 'none',
20415
+ '&[dir=ltr]': {
20416
+ borderLeftColor: 'transparent'
20417
+ },
20418
+ '&[dir=rtl]': {
20419
+ borderRight: 'transparent'
20420
+ }
20415
20421
  },
20416
20422
  '&[data-soui-position^="bottom"]': {
20417
20423
  marginTop: arrowGap - 2,
@@ -25112,7 +25118,8 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25112
25118
  '&[data-soui-type^="light"]': {
25113
25119
  backgroundColor: src.tooltipLightBackgroundColor,
25114
25120
  color: src.tooltipLightColor,
25115
- border: "1px solid ".concat(src.tooltipLightBorderColor)
25121
+ border: "1px solid ".concat(src.tooltipLightBorderColor),
25122
+ boxSizing: 'border-box'
25116
25123
  },
25117
25124
  '&[data-soui-type^="primary"]': {
25118
25125
  backgroundColor: src.tooltipPrimaryBackgroundColor,
@@ -25136,12 +25143,12 @@ var tooltipStyle = objectSpread2_default()(objectSpread2_default()({}, tooltip_a
25136
25143
  content: '" "',
25137
25144
  display: 'block',
25138
25145
  border: "inherit",
25139
- borderLeft: 'none',
25146
+ borderLeftColor: 'transparent',
25140
25147
  width: '8.4px',
25141
25148
  height: '8.4px',
25142
25149
  boxSizing: 'content-box',
25143
25150
  background: 'inherit',
25144
- borderBottom: 'none'
25151
+ borderBottomColor: 'transparent'
25145
25152
  },
25146
25153
  '&[data-soui-position^="bottom"]': {
25147
25154
  marginTop: tooltip_arrowGap - 2,
@@ -25624,16 +25631,35 @@ var treeStyle = {
25624
25631
  cursor: 'pointer',
25625
25632
  padding: "0 ".concat(src.treePaddingX),
25626
25633
  borderRadius: src.treeContentBorderRadius,
25634
+ position: 'relative',
25635
+ '&[data-expanded="true"]::before': {
25636
+ content: '""',
25637
+ position: 'absolute',
25638
+ top: 24,
25639
+ bottom: 0,
25640
+ left: -12,
25641
+ width: 1,
25642
+ background: '#ebebeb'
25643
+ },
25644
+ '&[dir=ltr][data-expanded="true"]::before': {
25645
+ left: -12
25646
+ },
25647
+ '&[dir=rtl][data-expanded="true"]::before': {
25648
+ right: -12
25649
+ },
25627
25650
  '&[data-active="true"]': {
25628
25651
  background: src.treeContentActiveBackgroundColor,
25629
25652
  '& $text': {
25630
25653
  color: src.treeContentActiveFontColor
25631
25654
  }
25632
25655
  },
25633
- '&[data-disabled="true"]': {
25634
- cursor: 'not-allowed'
25635
- },
25636
- '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
25656
+ // '&[data-disabled="true"]': {
25657
+ // cursor: 'not-allowed',
25658
+ // },
25659
+ // '&:hover:not([data-active="true"]):not([data-disabled="true"])': {
25660
+ // background: Token.treeContentHoverBackgroundColor,
25661
+ // },
25662
+ '&:hover:not([data-active="true"])': {
25637
25663
  background: src.treeContentHoverBackgroundColor
25638
25664
  }
25639
25665
  },
@@ -25650,9 +25676,9 @@ var treeStyle = {
25650
25676
  paddingTop: src.treeTextPaddingY,
25651
25677
  paddingBottom: src.treeTextPaddingY
25652
25678
  },
25653
- textDisabled: {
25654
- color: src.treeItemDisabledFontColor
25655
- },
25679
+ // textDisabled: {
25680
+ // color: Token.treeItemDisabledFontColor,
25681
+ // },
25656
25682
  list: {},
25657
25683
  node: {
25658
25684
  position: 'relative',
@@ -31826,7 +31852,8 @@ var Popover = function Popover(props) {
31826
31852
  onMouseLeave: events.onMouseLeave,
31827
31853
  dir: config.direction,
31828
31854
  children: [showArrow && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
31829
- className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow
31855
+ className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow,
31856
+ dir: config.direction
31830
31857
  }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
31831
31858
  style: style,
31832
31859
  className: classnames_default()(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.content, (typeof childrened === 'string' || props.useTextStyle) && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.text)),
@@ -47435,7 +47462,8 @@ var NodeContent = function NodeContent(props) {
47435
47462
  var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
47436
47463
  var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode));
47437
47464
  var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
47438
- var textClass = classnames_default()(contentStyle.text, disabled ? contentStyle.textDisabled : '');
47465
+ // const textClass = classNames(contentStyle.text, disabled ? contentStyle.textDisabled : '');
47466
+ var textClass = classnames_default()(contentStyle.text);
47439
47467
  var hasExpandIcons = expandIcons !== undefined;
47440
47468
  var children = data[childrenKey];
47441
47469
  var hasChildren = children && children.length > 0;
@@ -47444,9 +47472,9 @@ var NodeContent = function NodeContent(props) {
47444
47472
  if (highlight) {
47445
47473
  dataProps['data-active'] = active;
47446
47474
  }
47447
- if (disabled) {
47448
- dataProps['data-disabled'] = disabled;
47449
- }
47475
+ // if (disabled) {
47476
+ // dataProps['data-disabled'] = disabled;
47477
+ // }
47450
47478
  return dataProps;
47451
47479
  };
47452
47480
  var handleIndicatorClick = function handleIndicatorClick() {
@@ -47463,7 +47491,7 @@ var NodeContent = function NodeContent(props) {
47463
47491
  }
47464
47492
  };
47465
47493
  var handleNodeClick = function handleNodeClick() {
47466
- if (disabled) return;
47494
+ // if (disabled) return;
47467
47495
  if (parentClickExpand && hasChildren) {
47468
47496
  handleIndicatorClick();
47469
47497
  } else {
@@ -47550,6 +47578,7 @@ var NodeContent = function NodeContent(props) {
47550
47578
  dir: config.direction,
47551
47579
  children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
47552
47580
  dir: config.direction,
47581
+ "data-expanded": expanded,
47553
47582
  ref: bindContent,
47554
47583
  className: contentClass
47555
47584
  }, contentDataProps()), contentEvent), {}, {
@@ -47849,6 +47878,10 @@ var Node = function Node(props) {
47849
47878
  onChange: onChange,
47850
47879
  onToggle: onToggle,
47851
47880
  onNodeClick: onNodeClick,
47881
+ onDragOver: onDragOver,
47882
+ onDragLeave: onDragLeave,
47883
+ onDragStart: onDragStart,
47884
+ onDragEnd: onDragEnd,
47852
47885
  bindNode: bindNode,
47853
47886
  childrenClassName: childrenClass(data),
47854
47887
  childrenKey: childrenKey,
@@ -62181,7 +62214,7 @@ var upload_interface = __webpack_require__(4412);
62181
62214
 
62182
62215
 
62183
62216
  /* harmony default export */ var src_0 = ({
62184
- version: '3.1.13'
62217
+ version: '3.1.14'
62185
62218
  });
62186
62219
  }();
62187
62220
  /******/ return __webpack_exports__;