shineout 3.5.4-beta.10 → 3.5.4-beta.12
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.d.ts +1 -1
- package/cjs/index.js +8 -1
- package/dist/shineout.js +12 -5
- 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.d.ts +1 -1
- package/esm/index.js +2 -2
- package/package.json +5 -5
package/cjs/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export { default as Upload } from './upload';
|
|
|
51
51
|
export { setConfig, config, setLocale, setIcons } from '@sheinx/base';
|
|
52
52
|
export type { ConfigOption } from '@sheinx/base';
|
|
53
53
|
export { setToken, useToken } from '@sheinx/theme';
|
|
54
|
-
export { JssProvider, SheetsRegistry, setJssConfig } from '@sheinx/shineout-style';
|
|
54
|
+
export { JssProvider, SheetsRegistry, setJssConfig, scopeNormalizeStyle, } from '@sheinx/shineout-style';
|
|
55
55
|
export * as utls from './utils';
|
|
56
56
|
export * from './deprecated';
|
|
57
57
|
export * as TYPE from './type';
|
package/cjs/index.js
CHANGED
|
@@ -65,6 +65,7 @@ var _exportNames = {
|
|
|
65
65
|
JssProvider: true,
|
|
66
66
|
SheetsRegistry: true,
|
|
67
67
|
setJssConfig: true,
|
|
68
|
+
scopeNormalizeStyle: true,
|
|
68
69
|
utls: true,
|
|
69
70
|
TYPE: true
|
|
70
71
|
};
|
|
@@ -388,6 +389,12 @@ Object.defineProperty(exports, "config", {
|
|
|
388
389
|
}
|
|
389
390
|
});
|
|
390
391
|
exports.default = void 0;
|
|
392
|
+
Object.defineProperty(exports, "scopeNormalizeStyle", {
|
|
393
|
+
enumerable: true,
|
|
394
|
+
get: function get() {
|
|
395
|
+
return _shineoutStyle.scopeNormalizeStyle;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
391
398
|
Object.defineProperty(exports, "setConfig", {
|
|
392
399
|
enumerable: true,
|
|
393
400
|
get: function get() {
|
|
@@ -500,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
500
507
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
501
508
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
502
509
|
var _default = exports.default = {
|
|
503
|
-
version: '3.5.4-beta.
|
|
510
|
+
version: '3.5.4-beta.12'
|
|
504
511
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -6378,6 +6378,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6378
6378
|
color: function() { return /* reexport */ color; },
|
|
6379
6379
|
config: function() { return /* reexport */ src_config_config; },
|
|
6380
6380
|
"default": function() { return /* binding */ src_0; },
|
|
6381
|
+
scopeNormalizeStyle: function() { return /* reexport */ scopeNormalizeStyle; },
|
|
6381
6382
|
setConfig: function() { return /* reexport */ config_setConfig; },
|
|
6382
6383
|
setIcons: function() { return /* reexport */ setIcons; },
|
|
6383
6384
|
setJssConfig: function() { return /* reexport */ setJssConfig; },
|
|
@@ -12030,7 +12031,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12030
12031
|
};
|
|
12031
12032
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12032
12033
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12033
|
-
/* harmony default export */ var version = ('3.5.4-beta.
|
|
12034
|
+
/* harmony default export */ var version = ('3.5.4-beta.12');
|
|
12034
12035
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12035
12036
|
|
|
12036
12037
|
|
|
@@ -57303,6 +57304,7 @@ var Step = function Step(props) {
|
|
|
57303
57304
|
onChange = props.onChange;
|
|
57304
57305
|
var config = useConfig();
|
|
57305
57306
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
57307
|
+
var isDisabled = typeof disabled === 'function' ? disabled(index, id) : disabled;
|
|
57306
57308
|
var getLabelPlacement = function getLabelPlacement() {
|
|
57307
57309
|
// dot 类型只支持 vertical labelPlacement
|
|
57308
57310
|
if (type === 'dot') {
|
|
@@ -57321,9 +57323,9 @@ var Step = function Step(props) {
|
|
|
57321
57323
|
};
|
|
57322
57324
|
var status = getStatus();
|
|
57323
57325
|
var labelPlacement = getLabelPlacement();
|
|
57324
|
-
var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled,
|
|
57326
|
+
var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, isDisabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
|
|
57325
57327
|
var handleChange = function handleChange(e) {
|
|
57326
|
-
if (
|
|
57328
|
+
if (isDisabled) return;
|
|
57327
57329
|
onClick === null || onClick === void 0 || onClick(e, index, id);
|
|
57328
57330
|
onChange === null || onChange === void 0 || onChange(index);
|
|
57329
57331
|
};
|
|
@@ -57364,7 +57366,10 @@ var Step = function Step(props) {
|
|
|
57364
57366
|
var StepWidthContext = function StepWidthContext(props) {
|
|
57365
57367
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(steps_context.Consumer, {
|
|
57366
57368
|
children: function children(value) {
|
|
57367
|
-
|
|
57369
|
+
var disabled = 'disabled' in props ? props.disabled : value.disabled;
|
|
57370
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
|
|
57371
|
+
disabled: disabled
|
|
57372
|
+
}));
|
|
57368
57373
|
}
|
|
57369
57374
|
});
|
|
57370
57375
|
};
|
|
@@ -57385,6 +57390,7 @@ var Steps = function Steps(props) {
|
|
|
57385
57390
|
_props$type = props.type,
|
|
57386
57391
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
57387
57392
|
size = props.size,
|
|
57393
|
+
disabled = props.disabled,
|
|
57388
57394
|
status = props.status,
|
|
57389
57395
|
_props$direction = props.direction,
|
|
57390
57396
|
directionProp = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
@@ -57430,6 +57436,7 @@ var Steps = function Steps(props) {
|
|
|
57430
57436
|
labelPlacement: labelPlacement,
|
|
57431
57437
|
size: size,
|
|
57432
57438
|
type: type,
|
|
57439
|
+
disabled: disabled,
|
|
57433
57440
|
onChange: onChange
|
|
57434
57441
|
},
|
|
57435
57442
|
children: renderStep()
|
|
@@ -67145,7 +67152,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67145
67152
|
|
|
67146
67153
|
|
|
67147
67154
|
/* harmony default export */ var src_0 = ({
|
|
67148
|
-
version: '3.5.4-beta.
|
|
67155
|
+
version: '3.5.4-beta.12'
|
|
67149
67156
|
});
|
|
67150
67157
|
}();
|
|
67151
67158
|
/******/ return __webpack_exports__;
|