shineout 3.6.1 → 3.6.2-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/cjs/input/group.type.d.ts +4 -0
- package/cjs/input/input.type.d.ts +1 -0
- package/cjs/input/number.type.d.ts +1 -0
- package/dist/shineout.js +21 -11
- 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/esm/input/group.type.d.ts +4 -0
- package/esm/input/input.type.d.ts +1 -0
- package/esm/input/number.type.d.ts +1 -0
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.
|
|
517
|
+
version: '3.6.2-beta.2'
|
|
518
518
|
};
|
|
@@ -3,5 +3,6 @@ import { GetWithFieldProps } from '../hooks/use-field-common';
|
|
|
3
3
|
export type BaseNumberProps = Omit<UnStyledInputNumberProps, 'jssStyle'>;
|
|
4
4
|
/**
|
|
5
5
|
* @title Input.Number
|
|
6
|
+
* @sort 3
|
|
6
7
|
*/
|
|
7
8
|
export type InputNumberProps = GetWithFieldProps<BaseNumberProps, BaseNumberProps['value']>;
|
package/dist/shineout.js
CHANGED
|
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12139
12139
|
};
|
|
12140
12140
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12141
12141
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12142
|
-
/* harmony default export */ var version = ('3.6.
|
|
12142
|
+
/* harmony default export */ var version = ('3.6.2-beta.2');
|
|
12143
12143
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12144
12144
|
|
|
12145
12145
|
|
|
@@ -16953,6 +16953,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
16953
16953
|
borderRadius: 0,
|
|
16954
16954
|
flexShrink: 0,
|
|
16955
16955
|
width: 'auto',
|
|
16956
|
+
flex: 1,
|
|
16956
16957
|
'margin-left': "-1px",
|
|
16957
16958
|
'&:hover': {
|
|
16958
16959
|
zIndex: 1050
|
|
@@ -20227,11 +20228,9 @@ var groupSpace = function groupSpace(gap) {
|
|
|
20227
20228
|
fontWeight: 'normal',
|
|
20228
20229
|
color: src.inputGroupFontColor,
|
|
20229
20230
|
'&:first-child': {
|
|
20230
|
-
borderLeftColor: 'inherit',
|
|
20231
20231
|
marginLeft: '-1px'
|
|
20232
20232
|
},
|
|
20233
20233
|
'&:last-child': {
|
|
20234
|
-
borderRightColor: 'inherit',
|
|
20235
20234
|
marginRight: '-1px'
|
|
20236
20235
|
}
|
|
20237
20236
|
},
|
|
@@ -44194,6 +44193,9 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
44194
44193
|
var mode = getTypeMode(type);
|
|
44195
44194
|
var disabled = position === 'end' ? context.modeDisabledEnd[mode] : context.modeDisabledStart[mode];
|
|
44196
44195
|
var isDisabled = disabled ? disabled(date) : false;
|
|
44196
|
+
if (triggerType === 'input' && !isDisabled) {
|
|
44197
|
+
isDisabled = isDisabledInputDate(position === 'end' ? [currentArr[0], date] : [date, currentArr[1]]);
|
|
44198
|
+
}
|
|
44197
44199
|
if (type === 'datetime' && !isDisabled) {
|
|
44198
44200
|
var disabledTime = position === 'end' ? context.modeDisabledEnd['time'] : context.modeDisabledStart['time'];
|
|
44199
44201
|
isDisabled = disabledTime ? disabledTime(date, triggerType) : false;
|
|
@@ -44262,7 +44264,6 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
44262
44264
|
formatValue = getFormatValueArr(inputValue);
|
|
44263
44265
|
}
|
|
44264
44266
|
}
|
|
44265
|
-
// const formatValue = getFormatValueArr(stateDate);
|
|
44266
44267
|
var v = range ? formatValue : formatValue[0];
|
|
44267
44268
|
if (range && (!stateDate[0] || !stateDate[1]) && !props.allowSingle) {
|
|
44268
44269
|
return;
|
|
@@ -52104,10 +52105,12 @@ var input_input_Input = function Input(props) {
|
|
|
52104
52105
|
var children = props.children,
|
|
52105
52106
|
className = props.className,
|
|
52106
52107
|
width = props.width,
|
|
52107
|
-
style = props.style
|
|
52108
|
-
|
|
52108
|
+
style = props.style,
|
|
52109
|
+
_props$seperate = props.seperate,
|
|
52110
|
+
seperate = _props$seperate === void 0 ? true : _props$seperate;
|
|
52111
|
+
var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, seperate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeperate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
|
|
52109
52112
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
|
|
52110
|
-
role:
|
|
52113
|
+
role: seperate ? 'input-group-seperate' : 'input-group'
|
|
52111
52114
|
})), {}, {
|
|
52112
52115
|
className: rootClass,
|
|
52113
52116
|
style: objectSpread2_default()({
|
|
@@ -63483,6 +63486,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63483
63486
|
id = props.id,
|
|
63484
63487
|
indexInTabs = props.index,
|
|
63485
63488
|
tab = props.tab,
|
|
63489
|
+
background = props.background,
|
|
63486
63490
|
className = props.className,
|
|
63487
63491
|
style = props.style,
|
|
63488
63492
|
jssStyle = props.jssStyle;
|
|
@@ -63500,6 +63504,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63500
63504
|
tab: tab,
|
|
63501
63505
|
disabled: props.disabled,
|
|
63502
63506
|
jssStyle: jssStyle,
|
|
63507
|
+
background: background,
|
|
63503
63508
|
color: props.color || (active === id ? color : undefined)
|
|
63504
63509
|
};
|
|
63505
63510
|
setTabs(function (prev) {
|
|
@@ -63537,7 +63542,8 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63537
63542
|
keekAlive.current = true;
|
|
63538
63543
|
var panelClass = classnames_default()(className, panelStyle.panel, defineProperty_default()({}, panelStyle.show, isActive));
|
|
63539
63544
|
var styles = objectSpread2_default()({
|
|
63540
|
-
color: color
|
|
63545
|
+
color: color,
|
|
63546
|
+
background: background
|
|
63541
63547
|
}, style);
|
|
63542
63548
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63543
63549
|
className: panelClass,
|
|
@@ -63725,6 +63731,7 @@ var Tab = function Tab(props, _ref) {
|
|
|
63725
63731
|
var _jssStyle$tabs;
|
|
63726
63732
|
var jssStyle = props.jssStyle,
|
|
63727
63733
|
propTab = props.tab,
|
|
63734
|
+
background = props.background,
|
|
63728
63735
|
disabled = props.disabled,
|
|
63729
63736
|
id = props.id,
|
|
63730
63737
|
color = props.color;
|
|
@@ -63776,7 +63783,9 @@ var Tab = function Tab(props, _ref) {
|
|
|
63776
63783
|
children: tab
|
|
63777
63784
|
});
|
|
63778
63785
|
};
|
|
63779
|
-
var style = {
|
|
63786
|
+
var style = {
|
|
63787
|
+
background: background
|
|
63788
|
+
};
|
|
63780
63789
|
if (activeBackground && isActive) {
|
|
63781
63790
|
style.background = activeBackground;
|
|
63782
63791
|
}
|
|
@@ -64243,7 +64252,8 @@ var Tabs = function Tabs(props) {
|
|
|
64243
64252
|
if (tabs_isNamedComponent(Child.type) && Child.type.displayName === 'ShineoutTabsPanel') {
|
|
64244
64253
|
return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(Child, {
|
|
64245
64254
|
id: Child.props.id !== undefined ? Child.props.id : index,
|
|
64246
|
-
index: index
|
|
64255
|
+
index: index,
|
|
64256
|
+
background: Child.props.background
|
|
64247
64257
|
});
|
|
64248
64258
|
}
|
|
64249
64259
|
if (allowNonPanel) {
|
|
@@ -69696,7 +69706,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69696
69706
|
|
|
69697
69707
|
|
|
69698
69708
|
/* harmony default export */ var src_0 = ({
|
|
69699
|
-
version: '3.6.
|
|
69709
|
+
version: '3.6.2-beta.2'
|
|
69700
69710
|
});
|
|
69701
69711
|
}();
|
|
69702
69712
|
/******/ return __webpack_exports__;
|