@douyinfe/semi-ui 2.16.0-beta.0 → 2.16.0
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/avatar/__test__/avatar.test.js +3 -3
- package/dist/css/semi.css +33 -12
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +39 -175
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/typography/base.js +3 -15
- package/lib/cjs/typography/text.js +1 -11
- package/lib/es/typography/base.js +3 -15
- package/lib/es/typography/text.js +1 -10
- package/package.json +11 -11
- package/select/_story/select.stories.tsx +1 -1
- package/typography/_story/typography.stories.js +3 -15
- package/typography/base.tsx +4 -9
- package/typography/text.tsx +1 -9
package/dist/umd/semi-ui.js
CHANGED
|
@@ -1604,97 +1604,6 @@ function times(n, iteratee) {
|
|
|
1604
1604
|
module.exports = times;
|
|
1605
1605
|
|
|
1606
1606
|
|
|
1607
|
-
/***/ }),
|
|
1608
|
-
|
|
1609
|
-
/***/ "16Al":
|
|
1610
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1611
|
-
|
|
1612
|
-
"use strict";
|
|
1613
|
-
/**
|
|
1614
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1615
|
-
*
|
|
1616
|
-
* This source code is licensed under the MIT license found in the
|
|
1617
|
-
* LICENSE file in the root directory of this source tree.
|
|
1618
|
-
*/
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
var ReactPropTypesSecret = __webpack_require__("WbBG");
|
|
1623
|
-
|
|
1624
|
-
function emptyFunction() {}
|
|
1625
|
-
function emptyFunctionWithReset() {}
|
|
1626
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1627
|
-
|
|
1628
|
-
module.exports = function() {
|
|
1629
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1630
|
-
if (secret === ReactPropTypesSecret) {
|
|
1631
|
-
// It is still safe when called from React.
|
|
1632
|
-
return;
|
|
1633
|
-
}
|
|
1634
|
-
var err = new Error(
|
|
1635
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1636
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1637
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1638
|
-
);
|
|
1639
|
-
err.name = 'Invariant Violation';
|
|
1640
|
-
throw err;
|
|
1641
|
-
};
|
|
1642
|
-
shim.isRequired = shim;
|
|
1643
|
-
function getShim() {
|
|
1644
|
-
return shim;
|
|
1645
|
-
};
|
|
1646
|
-
// Important!
|
|
1647
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1648
|
-
var ReactPropTypes = {
|
|
1649
|
-
array: shim,
|
|
1650
|
-
bool: shim,
|
|
1651
|
-
func: shim,
|
|
1652
|
-
number: shim,
|
|
1653
|
-
object: shim,
|
|
1654
|
-
string: shim,
|
|
1655
|
-
symbol: shim,
|
|
1656
|
-
|
|
1657
|
-
any: shim,
|
|
1658
|
-
arrayOf: getShim,
|
|
1659
|
-
element: shim,
|
|
1660
|
-
elementType: shim,
|
|
1661
|
-
instanceOf: getShim,
|
|
1662
|
-
node: shim,
|
|
1663
|
-
objectOf: getShim,
|
|
1664
|
-
oneOf: getShim,
|
|
1665
|
-
oneOfType: getShim,
|
|
1666
|
-
shape: getShim,
|
|
1667
|
-
exact: getShim,
|
|
1668
|
-
|
|
1669
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1670
|
-
resetWarningCache: emptyFunction
|
|
1671
|
-
};
|
|
1672
|
-
|
|
1673
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1674
|
-
|
|
1675
|
-
return ReactPropTypes;
|
|
1676
|
-
};
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
/***/ }),
|
|
1680
|
-
|
|
1681
|
-
/***/ "17x9":
|
|
1682
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1683
|
-
|
|
1684
|
-
/**
|
|
1685
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1686
|
-
*
|
|
1687
|
-
* This source code is licensed under the MIT license found in the
|
|
1688
|
-
* LICENSE file in the root directory of this source tree.
|
|
1689
|
-
*/
|
|
1690
|
-
|
|
1691
|
-
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
1692
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1693
|
-
// http://fb.me/prop-types-in-prod
|
|
1694
|
-
module.exports = __webpack_require__("16Al")();
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
1607
|
/***/ }),
|
|
1699
1608
|
|
|
1700
1609
|
/***/ "1EDM":
|
|
@@ -14880,26 +14789,6 @@ module.exports = function (it) {
|
|
|
14880
14789
|
};
|
|
14881
14790
|
|
|
14882
14791
|
|
|
14883
|
-
/***/ }),
|
|
14884
|
-
|
|
14885
|
-
/***/ "WbBG":
|
|
14886
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
14887
|
-
|
|
14888
|
-
"use strict";
|
|
14889
|
-
/**
|
|
14890
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
14891
|
-
*
|
|
14892
|
-
* This source code is licensed under the MIT license found in the
|
|
14893
|
-
* LICENSE file in the root directory of this source tree.
|
|
14894
|
-
*/
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
14899
|
-
|
|
14900
|
-
module.exports = ReactPropTypesSecret;
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
14792
|
/***/ }),
|
|
14904
14793
|
|
|
14905
14794
|
/***/ "WbkG":
|
|
@@ -25128,8 +25017,8 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
|
|
|
25128
25017
|
var classnames = __webpack_require__("O94r");
|
|
25129
25018
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
25130
25019
|
|
|
25131
|
-
// EXTERNAL MODULE:
|
|
25132
|
-
var prop_types = __webpack_require__("
|
|
25020
|
+
// EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
|
|
25021
|
+
var prop_types = __webpack_require__("aWzz");
|
|
25133
25022
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
25134
25023
|
|
|
25135
25024
|
// CONCATENATED MODULE: ../semi-foundation/base/env.ts
|
|
@@ -33480,18 +33369,12 @@ const wrapperDecorations = (props, content) => {
|
|
|
33480
33369
|
underline,
|
|
33481
33370
|
strong,
|
|
33482
33371
|
link,
|
|
33483
|
-
disabled
|
|
33484
|
-
icon
|
|
33372
|
+
disabled
|
|
33485
33373
|
} = props;
|
|
33486
33374
|
let wrapped = content;
|
|
33487
33375
|
|
|
33488
33376
|
const wrap = (isNeeded, tag) => {
|
|
33489
|
-
let wrapProps =
|
|
33490
|
-
style: {
|
|
33491
|
-
display: 'inline-flex',
|
|
33492
|
-
alignItems: 'center'
|
|
33493
|
-
}
|
|
33494
|
-
} : {};
|
|
33377
|
+
let wrapProps = {};
|
|
33495
33378
|
|
|
33496
33379
|
if (!isNeeded) {
|
|
33497
33380
|
return;
|
|
@@ -33509,13 +33392,7 @@ const wrapperDecorations = (props, content) => {
|
|
|
33509
33392
|
wrap(underline && !link, 'u');
|
|
33510
33393
|
wrap(strong, 'strong');
|
|
33511
33394
|
wrap(props.delete, 'del');
|
|
33512
|
-
wrap(link, disabled ? 'span' : 'a');
|
|
33513
|
-
// use span to wrap the content, so that the content in the span is vertically aligned
|
|
33514
|
-
|
|
33515
|
-
if (wrapped === content && icon) {
|
|
33516
|
-
wrap(true, 'span');
|
|
33517
|
-
}
|
|
33518
|
-
|
|
33395
|
+
wrap(link, disabled ? 'span' : 'a');
|
|
33519
33396
|
return wrapped;
|
|
33520
33397
|
};
|
|
33521
33398
|
|
|
@@ -34147,20 +34024,11 @@ base_Base.defaultProps = {
|
|
|
34147
34024
|
|
|
34148
34025
|
|
|
34149
34026
|
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
const text_prefixCls = constants_cssClasses.PREFIX;
|
|
34153
34027
|
class text_Text extends external_root_React_commonjs2_react_commonjs_react_amd_react_["PureComponent"] {
|
|
34154
34028
|
render() {
|
|
34155
|
-
const className = classnames_default()(this.props.className, {
|
|
34156
|
-
["".concat(text_prefixCls, "-text")]: true,
|
|
34157
|
-
["".concat(text_prefixCls, "-text-icon")]: this.props.icon
|
|
34158
|
-
});
|
|
34159
34029
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(base_Base, assign_default()({
|
|
34160
34030
|
component: 'span'
|
|
34161
|
-
}, this.props
|
|
34162
|
-
className: className
|
|
34163
|
-
}));
|
|
34031
|
+
}, this.props));
|
|
34164
34032
|
}
|
|
34165
34033
|
|
|
34166
34034
|
}
|
|
@@ -106293,10 +106161,6 @@ function _nonIterableSpread() {
|
|
|
106293
106161
|
function _toConsumableArray(arr) {
|
|
106294
106162
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
106295
106163
|
}
|
|
106296
|
-
// EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
|
|
106297
|
-
var semi_design_node_modules_prop_types = __webpack_require__("aWzz");
|
|
106298
|
-
var semi_design_node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(semi_design_node_modules_prop_types);
|
|
106299
|
-
|
|
106300
106164
|
// CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/react-sortable-hoc/dist/react-sortable-hoc.esm.js
|
|
106301
106165
|
|
|
106302
106166
|
|
|
@@ -106814,37 +106678,37 @@ function defaultShouldCancelStart(event) {
|
|
|
106814
106678
|
}
|
|
106815
106679
|
|
|
106816
106680
|
var propTypes = {
|
|
106817
|
-
axis:
|
|
106818
|
-
contentWindow:
|
|
106819
|
-
disableAutoscroll:
|
|
106820
|
-
distance:
|
|
106821
|
-
getContainer:
|
|
106822
|
-
getHelperDimensions:
|
|
106823
|
-
helperClass:
|
|
106824
|
-
helperContainer:
|
|
106825
|
-
hideSortableGhost:
|
|
106826
|
-
keyboardSortingTransitionDuration:
|
|
106827
|
-
lockAxis:
|
|
106828
|
-
lockOffset:
|
|
106829
|
-
lockToContainerEdges:
|
|
106830
|
-
onSortEnd:
|
|
106831
|
-
onSortMove:
|
|
106832
|
-
onSortOver:
|
|
106833
|
-
onSortStart:
|
|
106834
|
-
pressDelay:
|
|
106835
|
-
pressThreshold:
|
|
106836
|
-
keyCodes:
|
|
106837
|
-
lift:
|
|
106838
|
-
drop:
|
|
106839
|
-
cancel:
|
|
106840
|
-
up:
|
|
106841
|
-
down:
|
|
106681
|
+
axis: prop_types_default.a.oneOf(['x', 'y', 'xy']),
|
|
106682
|
+
contentWindow: prop_types_default.a.any,
|
|
106683
|
+
disableAutoscroll: prop_types_default.a.bool,
|
|
106684
|
+
distance: prop_types_default.a.number,
|
|
106685
|
+
getContainer: prop_types_default.a.func,
|
|
106686
|
+
getHelperDimensions: prop_types_default.a.func,
|
|
106687
|
+
helperClass: prop_types_default.a.string,
|
|
106688
|
+
helperContainer: prop_types_default.a.oneOfType([prop_types_default.a.func, typeof HTMLElement === 'undefined' ? prop_types_default.a.any : prop_types_default.a.instanceOf(HTMLElement)]),
|
|
106689
|
+
hideSortableGhost: prop_types_default.a.bool,
|
|
106690
|
+
keyboardSortingTransitionDuration: prop_types_default.a.number,
|
|
106691
|
+
lockAxis: prop_types_default.a.string,
|
|
106692
|
+
lockOffset: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string, prop_types_default.a.arrayOf(prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]))]),
|
|
106693
|
+
lockToContainerEdges: prop_types_default.a.bool,
|
|
106694
|
+
onSortEnd: prop_types_default.a.func,
|
|
106695
|
+
onSortMove: prop_types_default.a.func,
|
|
106696
|
+
onSortOver: prop_types_default.a.func,
|
|
106697
|
+
onSortStart: prop_types_default.a.func,
|
|
106698
|
+
pressDelay: prop_types_default.a.number,
|
|
106699
|
+
pressThreshold: prop_types_default.a.number,
|
|
106700
|
+
keyCodes: prop_types_default.a.shape({
|
|
106701
|
+
lift: prop_types_default.a.arrayOf(prop_types_default.a.number),
|
|
106702
|
+
drop: prop_types_default.a.arrayOf(prop_types_default.a.number),
|
|
106703
|
+
cancel: prop_types_default.a.arrayOf(prop_types_default.a.number),
|
|
106704
|
+
up: prop_types_default.a.arrayOf(prop_types_default.a.number),
|
|
106705
|
+
down: prop_types_default.a.arrayOf(prop_types_default.a.number)
|
|
106842
106706
|
}),
|
|
106843
|
-
shouldCancelStart:
|
|
106844
|
-
transitionDuration:
|
|
106845
|
-
updateBeforeSortStart:
|
|
106846
|
-
useDragHandle:
|
|
106847
|
-
useWindowAsScrollContainer:
|
|
106707
|
+
shouldCancelStart: prop_types_default.a.func,
|
|
106708
|
+
transitionDuration: prop_types_default.a.number,
|
|
106709
|
+
updateBeforeSortStart: prop_types_default.a.func,
|
|
106710
|
+
useDragHandle: prop_types_default.a.bool,
|
|
106711
|
+
useWindowAsScrollContainer: prop_types_default.a.bool
|
|
106848
106712
|
};
|
|
106849
106713
|
var defaultKeyCodes = {
|
|
106850
106714
|
lift: [KEYCODE.SPACE],
|
|
@@ -107791,9 +107655,9 @@ function sortableContainer(WrappedComponent) {
|
|
|
107791
107655
|
}
|
|
107792
107656
|
|
|
107793
107657
|
var propTypes$1 = {
|
|
107794
|
-
index:
|
|
107795
|
-
collection:
|
|
107796
|
-
disabled:
|
|
107658
|
+
index: prop_types_default.a.number.isRequired,
|
|
107659
|
+
collection: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
|
|
107660
|
+
disabled: prop_types_default.a.bool
|
|
107797
107661
|
};
|
|
107798
107662
|
var omittedProps$1 = Object.keys(propTypes$1);
|
|
107799
107663
|
function sortableElement(WrappedComponent) {
|