@sheinx/shineout-style 3.8.0-beta.9 → 3.8.0-fix.1
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/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb.js +17 -1
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +3 -0
- package/cjs/checkbox/checkbox.d.ts.map +1 -1
- package/cjs/checkbox/checkbox.js +11 -3
- package/cjs/common/common.d.ts +10 -2
- package/cjs/common/common.d.ts.map +1 -1
- package/cjs/common/common.js +10 -2
- package/cjs/jss-style/index.d.ts +2 -2
- package/cjs/jss-style/index.d.ts.map +1 -1
- package/cjs/jss-style/index.js +6 -0
- package/cjs/message/message.js +2 -2
- package/cjs/modal/modal.d.ts.map +1 -1
- package/cjs/modal/modal.js +1 -0
- package/cjs/normalize.d.ts.map +1 -1
- package/cjs/normalize.js +19 -6
- package/cjs/popover/popover.d.ts.map +1 -1
- package/cjs/popover/popover.js +33 -9
- package/cjs/radio/radio.d.ts.map +1 -1
- package/cjs/radio/radio.js +12 -15
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +3 -1
- package/cjs/skeleton/skeleton.js +2 -2
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +36 -5
- package/cjs/tabs/tabs.js +7 -7
- package/cjs/textarea/textarea.d.ts.map +1 -1
- package/cjs/textarea/textarea.js +5 -2
- package/cjs/tooltip/tooltip.d.ts +80 -0
- package/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.js +90 -0
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +3 -0
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +5 -1
- package/cjs/version.d.ts +1 -1
- package/cjs/version.d.ts.map +1 -1
- package/cjs/version.js +1 -1
- package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.js +17 -1
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +3 -0
- package/esm/checkbox/checkbox.d.ts.map +1 -1
- package/esm/checkbox/checkbox.js +11 -3
- package/esm/common/common.d.ts +10 -2
- package/esm/common/common.d.ts.map +1 -1
- package/esm/common/common.js +10 -2
- package/esm/jss-style/index.d.ts +2 -2
- package/esm/jss-style/index.d.ts.map +1 -1
- package/esm/jss-style/index.js +2 -2
- package/esm/message/message.js +2 -2
- package/esm/modal/modal.d.ts.map +1 -1
- package/esm/modal/modal.js +1 -0
- package/esm/normalize.d.ts.map +1 -1
- package/esm/normalize.js +18 -6
- package/esm/popover/popover.d.ts.map +1 -1
- package/esm/popover/popover.js +33 -9
- package/esm/radio/radio.d.ts.map +1 -1
- package/esm/radio/radio.js +12 -15
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +3 -1
- package/esm/skeleton/skeleton.js +2 -2
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +36 -5
- package/esm/tabs/tabs.js +7 -7
- package/esm/textarea/textarea.d.ts.map +1 -1
- package/esm/textarea/textarea.js +5 -2
- package/esm/tooltip/tooltip.d.ts +80 -0
- package/esm/tooltip/tooltip.d.ts.map +1 -1
- package/esm/tooltip/tooltip.js +90 -0
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +3 -0
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +5 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.d.ts.map +1 -1
- package/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,MAAM,iBAAiB,CAAC;AAE1D,QAAA,MAAM,eAAe,EAAE,QAAQ,CAAC,mBAAmB,CA0HlD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -24,6 +24,9 @@ var breadcrumbStyle = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
wrapperPopover: {
|
|
28
|
+
flexWrap: 'wrap'
|
|
29
|
+
},
|
|
27
30
|
content: {
|
|
28
31
|
'&&': {
|
|
29
32
|
display: 'flex',
|
|
@@ -33,10 +36,23 @@ var breadcrumbStyle = {
|
|
|
33
36
|
color: _theme.default.breadcrumbDefaultLinkActiveColor
|
|
34
37
|
}
|
|
35
38
|
},
|
|
39
|
+
contentMaxWidth: {
|
|
40
|
+
maxWidth: '150px',
|
|
41
|
+
overflow: 'hidden',
|
|
42
|
+
textOverflow: 'ellipsis',
|
|
43
|
+
whiteSpace: 'nowrap',
|
|
44
|
+
'&&': {
|
|
45
|
+
display: 'block'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
36
48
|
ellipsis: {
|
|
37
49
|
color: _theme.default.breadcrumbLinkColor,
|
|
38
50
|
position: 'relative',
|
|
39
|
-
top: '-
|
|
51
|
+
top: '-0.25em',
|
|
52
|
+
cursor: 'pointer',
|
|
53
|
+
'&:hover': {
|
|
54
|
+
color: _theme.default.breadcrumbLinkHoverColor
|
|
55
|
+
}
|
|
40
56
|
},
|
|
41
57
|
itemWrapper: {
|
|
42
58
|
// padding: `0 ${token.breadcrumbListItemWrapperPaddingX}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AA+DtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AA+DtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CAuhB9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/cjs/cascader/cascader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CA+IlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/cjs/checkbox/checkbox.js
CHANGED
|
@@ -5,8 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _theme = _interopRequireDefault(require("@sheinx/theme"));
|
|
8
|
+
var _common = require("../common");
|
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
var checkboxStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
|
|
10
17
|
rootClass: {},
|
|
11
18
|
wrapper: {
|
|
12
19
|
display: 'inline-flex',
|
|
@@ -95,7 +102,8 @@ var checkboxStyle = {
|
|
|
95
102
|
width: '80%',
|
|
96
103
|
top: '50%',
|
|
97
104
|
left: '50%',
|
|
98
|
-
transform: '
|
|
105
|
+
transform: 'translate(-50%, -50%)',
|
|
106
|
+
animation: '$bounce-in-center 0.2s cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
99
107
|
},
|
|
100
108
|
'$wrapperChecked &, $wrapperIndeterminate &': {
|
|
101
109
|
borderColor: _theme.default.checkboxIconCheckedBorderColor,
|
|
@@ -145,5 +153,5 @@ var checkboxStyle = {
|
|
|
145
153
|
marginRight: 0
|
|
146
154
|
}
|
|
147
155
|
}
|
|
148
|
-
};
|
|
156
|
+
});
|
|
149
157
|
var _default = exports.default = checkboxStyle;
|
package/cjs/common/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommonClasses } from '@sheinx/base';
|
|
2
2
|
import { JsStyles } from '../jss-style';
|
|
3
3
|
export type CommonClass = keyof CommonClasses;
|
|
4
|
-
declare const
|
|
4
|
+
declare const commonStyle: JsStyles<CommonClass>;
|
|
5
5
|
export declare const animations: {
|
|
6
6
|
'@keyframes r2c': {
|
|
7
7
|
'0%': {
|
|
@@ -93,6 +93,14 @@ export declare const animations: {
|
|
|
93
93
|
transform: string;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
+
'@keyframes bounce-in-center': {
|
|
97
|
+
'0%': {
|
|
98
|
+
transform: string;
|
|
99
|
+
};
|
|
100
|
+
'100%': {
|
|
101
|
+
transform: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
96
104
|
};
|
|
97
|
-
export default
|
|
105
|
+
export default commonStyle;
|
|
98
106
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,WAAW,GAAG,MAAM,aAAa,CAAC;AAE9C,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,WAAW,GAAG,MAAM,aAAa,CAAC;AAE9C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAItC,CAAC;AAGF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/cjs/common/common.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.animations = void 0;
|
|
7
7
|
var _theme = _interopRequireDefault(require("@sheinx/theme"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var
|
|
9
|
+
var commonStyle = {
|
|
10
10
|
highlight: {
|
|
11
11
|
color: _theme.default.tagWarningFontColor
|
|
12
12
|
}
|
|
@@ -101,6 +101,14 @@ var animations = exports.animations = {
|
|
|
101
101
|
opacity: 1,
|
|
102
102
|
transform: 'translateY(-100%) scaleY(1)'
|
|
103
103
|
}
|
|
104
|
+
},
|
|
105
|
+
'@keyframes bounce-in-center': {
|
|
106
|
+
'0%': {
|
|
107
|
+
transform: 'translate(-50%, -50%) scale(0)'
|
|
108
|
+
},
|
|
109
|
+
'100%': {
|
|
110
|
+
transform: 'translate(-50%, -50%) scale(1)'
|
|
111
|
+
}
|
|
104
112
|
}
|
|
105
113
|
};
|
|
106
|
-
var _default = exports.default =
|
|
114
|
+
var _default = exports.default = commonStyle;
|
package/cjs/jss-style/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JssProvider, SheetsRegistry } from 'react-jss';
|
|
1
|
+
import { JssProvider, SheetsRegistry, jss } from 'react-jss';
|
|
2
2
|
import { JssStyle, GenerateId, Classes } from 'jss';
|
|
3
|
-
export { JssProvider, SheetsRegistry };
|
|
3
|
+
export { JssProvider, SheetsRegistry, jss };
|
|
4
4
|
export declare const setJssConfig: (newConfig: {
|
|
5
5
|
generateId?: GenerateId;
|
|
6
6
|
}) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAIpD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC;AAO5C,eAAO,MAAM,YAAY,cAAe;IAAE,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,SAElE,CAAC;AAeF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAIzF;AAiBD,MAAM,MAAM,QAAQ,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;AAEhG,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;KACrD,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,MAAM,6CAA8C,MAAM,qBAqBtE,CAAC"}
|
package/cjs/jss-style/index.js
CHANGED
|
@@ -17,6 +17,12 @@ Object.defineProperty(exports, "SheetsRegistry", {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
exports.generateClassName = generateClassName;
|
|
20
|
+
Object.defineProperty(exports, "jss", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _reactJss.jss;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
20
26
|
exports.styled = exports.setJssConfig = void 0;
|
|
21
27
|
var _reactJss = require("react-jss");
|
|
22
28
|
var _handleStyle = _interopRequireDefault(require("./handleStyle"));
|
package/cjs/message/message.js
CHANGED
|
@@ -109,10 +109,10 @@ var messageStyle = _objectSpread(_objectSpread({
|
|
|
109
109
|
},
|
|
110
110
|
itemDismissed: {
|
|
111
111
|
' [data-soui-position="bottom-left"] &': {
|
|
112
|
-
animation: "$left-out ".concat(animationDuration, " ease-in-out")
|
|
112
|
+
animation: "$left-out ".concat(animationDuration, " ease-in-out forwards")
|
|
113
113
|
},
|
|
114
114
|
' [data-soui-position="bottom-right"] &': {
|
|
115
|
-
animation: "$right-out ".concat(animationDuration, " ease-in-out")
|
|
115
|
+
animation: "$right-out ".concat(animationDuration, " ease-in-out forwards")
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
itemShow: {
|
package/cjs/modal/modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAqJhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAqJhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CA2SxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/modal/modal.js
CHANGED
|
@@ -316,6 +316,7 @@ var modalStyle = _objectSpread(_objectSpread({
|
|
|
316
316
|
background: _theme.default.modalPanelBackground,
|
|
317
317
|
borderRadius: _theme.default.modalPanelRadius,
|
|
318
318
|
padding: "".concat(_theme.default.modalPanelPaddingY, " ").concat(_theme.default.modalPanelPaddingX),
|
|
319
|
+
margin: '0 auto',
|
|
319
320
|
fontSize: _theme.default.modalPanelFontSize,
|
|
320
321
|
boxSizing: 'border-box',
|
|
321
322
|
boxShadow: _theme.default.modalPanelShadow,
|
package/cjs/normalize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["normalize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["normalize.ts"],"names":[],"mappings":"AAgZA,eAAO,MAAM,mBAAmB,kCA8B/B,CAAC"}
|
package/cjs/normalize.js
CHANGED
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.scopeNormalizeStyle = void 0;
|
|
7
7
|
var _theme = require("@sheinx/theme");
|
|
8
|
+
var _jssStyle = require("./jss-style");
|
|
9
|
+
var _version = _interopRequireDefault(require("./version"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
11
|
// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
|
9
12
|
// 2. Change the default font family in all browsers.
|
|
10
13
|
// 3. Correct the line height in all browsers.
|
|
@@ -30,19 +33,29 @@ var token = {
|
|
|
30
33
|
var lineHeightComputed = '20px';
|
|
31
34
|
var lineHeightComputed2 = '10px';
|
|
32
35
|
var normalizeStyle = "*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\n\narticle,\naside,\ndialog,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block;\n}\n\nbody {\n margin: 0;\n color: ".concat(token.color, ";\n font-family: ").concat(token.fontFamily, ";\n font-size: ").concat(token.fontSize, ";\n line-height: ").concat(token.lineHeight, ";\n}\n\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\nh1 {\n margin: 0.67em 0;\n font-size: 2em;\n}\n\nfigcaption,\nfigure,\nmain {\n display: block;\n}\n\nfigure {\n margin: 1em 40px;\n}\n\nhr {\n overflow: visible;\n height: 0;\n box-sizing: content-box;\n}\n\npre {\n font-family: \"SFMono-Regular\", Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 1em;\n}\n\na {\n background-color: transparent;\n color: ").concat(token.linkColor, ";\n cursor: pointer;\n outline: none;\n text-decoration: ").concat(token.linkHoverDecoration, ";\n -webkit-text-decoration-skip: objects;\n transition: color 0.3s;\n}\n\na:active,\na:hover {\n color: ").concat(token.linkColor, ";\n outline: 0;\n text-decoration: ").concat(token.linkHoverDecoration, ";\n}\na[disabled] {\n color: ").concat(token.linkDisabledColor, ";\n cursor: not-allowed;\n pointer-events: none;\n}\n\nabbr[title] {\n border-bottom: none;\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\nb,\nstrong {\n font-weight: inherit;\n}\n\nb,\nstrong {\n font-weight: bolder;\n}\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\ndfn {\n font-style: italic;\n}\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\nsmall {\n font-size: 80%;\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\naudio,\nvideo {\n display: inline-block;\n}\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\nimg {\n border-style: none;\n}\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n}\n\nbutton,\ninput {\n overflow: visible;\n}\n\nbutton,\nselect {\n text-transform: none;\n}\n\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n\nbutton:-moz-focusring,\n[type='button']:-moz-focusring,\n[type='reset']:-moz-focusring,\n[type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\nlegend {\n display: table;\n max-width: 100%;\n box-sizing: border-box;\n padding: 0;\n color: inherit;\n white-space: normal;\n}\n\nprogress {\n display: inline-block;\n vertical-align: baseline;\n}\n\ntextarea {\n overflow: auto;\n}\n\n[type='checkbox'],\n[type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n\n\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n\n[type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n\n\ndetails,\nmenu {\n display: block;\n}\n\n\nsummary {\n display: list-item;\n}\n\n\ncanvas {\n display: inline-block;\n}\n\n\ntemplate {\n display: none;\n}\n\n\n[hidden] {\n display: none;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6 {\n color: ").concat(token.headingsColor, ";\n font-family: ").concat(token.headingsFontFamily, ";\n font-weight: ").concat(token.headingsFontWeight, ";\n line-height: ").concat(token.headingsLineHeight, ";\n}\nh1 small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small,\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n color: ").concat(token.headingsSmallColor, ";\n font-weight: normal;\n line-height: 1;\n}\n\n\nh1,\n.h1,\nh2,\n.h2,\nh3,\n.h3 {\n margin-top: ").concat(lineHeightComputed, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nhi small, h1 .small, .h1 small, .h1 .small,\nh2 small, h2 .small, .h2 small, .h2 .small,\nh3 small, h3 .small, .h3 small, .h3 .small {\n font-size: 65%;\n}\n\nh4,\n.h4,\nh5,\n.h5,\nh6,\n.h6 {\n margin-top: ").concat(lineHeightComputed2, ";\n margin-bottom: ").concat(lineHeightComputed2, ";\n}\n\nh4 small, h4 .small, .h4 small, .h4 .small,\nh5 small, h5 .small, .h5 small, .h5 .small,\nh6 small, h6 .small, .h6 small, .h6 .small {\n font-size: 75%;\n}\n\np {\n margin: 0 0 ").concat(lineHeightComputed2, ";\n}");
|
|
36
|
+
var normalizeStyleId = 'shineout-next-normalize__' + _version.default;
|
|
37
|
+
var jssInsertionPointId = 'shineout-next-jss-insertion-point__' + _version.default;
|
|
33
38
|
function appendNormalizeStyle(styleString, id) {
|
|
34
39
|
var style = document.createElement('style');
|
|
35
|
-
style.
|
|
40
|
+
style.setAttribute('name', id);
|
|
36
41
|
style.innerHTML = styleString;
|
|
37
|
-
document.head.
|
|
42
|
+
document.head.insertBefore(style, document.head.firstChild);
|
|
43
|
+
}
|
|
44
|
+
function appendJssInsertionPoint() {
|
|
45
|
+
var insertionPoint = document.createElement('style');
|
|
46
|
+
insertionPoint.setAttribute('name', jssInsertionPointId);
|
|
47
|
+
document.head.insertBefore(insertionPoint, document.head.firstChild);
|
|
48
|
+
_jssStyle.jss.setup({
|
|
49
|
+
insertionPoint: insertionPoint
|
|
50
|
+
});
|
|
38
51
|
}
|
|
39
|
-
var uniqueStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
|
|
40
52
|
if (typeof window !== 'undefined') {
|
|
41
|
-
|
|
53
|
+
appendJssInsertionPoint();
|
|
54
|
+
appendNormalizeStyle(normalizeStyle, normalizeStyleId);
|
|
42
55
|
}
|
|
43
56
|
var scopeNormalizeStyle = exports.scopeNormalizeStyle = function scopeNormalizeStyle() {
|
|
44
57
|
var csScopePrefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#app';
|
|
45
|
-
var styleElement = document.
|
|
58
|
+
var styleElement = document.querySelector("style[name=\"".concat(normalizeStyleId, "\"]"));
|
|
46
59
|
// 移除styleElement
|
|
47
60
|
|
|
48
61
|
var styleSheet = styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet;
|
|
@@ -71,7 +84,7 @@ var scopeNormalizeStyle = exports.scopeNormalizeStyle = function scopeNormalizeS
|
|
|
71
84
|
return rule.cssText;
|
|
72
85
|
}).join('') : '';
|
|
73
86
|
document.head.removeChild(styleElement);
|
|
74
|
-
appendNormalizeStyle(scopedStyleString,
|
|
87
|
+
appendNormalizeStyle(scopedStyleString, normalizeStyleId);
|
|
75
88
|
};
|
|
76
89
|
(0, _theme.setToken)({
|
|
77
90
|
selector: 'html'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAUpD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC;AAUpD,QAAA,MAAM,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CAiN5C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/cjs/popover/popover.js
CHANGED
|
@@ -29,7 +29,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
29
29
|
borderRadius: _theme.default.popoverRadius,
|
|
30
30
|
border: "1px solid ".concat(_theme.default.popoverBorderColor),
|
|
31
31
|
wordWrap: 'break-word',
|
|
32
|
-
'& $arrow': {
|
|
32
|
+
'& > $arrow': {
|
|
33
33
|
'z-index': 1,
|
|
34
34
|
position: 'absolute',
|
|
35
35
|
content: '" "',
|
|
@@ -50,7 +50,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
50
50
|
'&$hideArrow': _defineProperty({}, cssvar, '4px'),
|
|
51
51
|
'&[data-soui-position^="bottom"]': {
|
|
52
52
|
marginTop: "calc(".concat(hideArrowGap, " - 2px)"),
|
|
53
|
-
'& $arrow': {
|
|
53
|
+
'& > $arrow': {
|
|
54
54
|
top: '0',
|
|
55
55
|
transform: 'translate(0, -50%) rotate(-45deg)',
|
|
56
56
|
left: '0',
|
|
@@ -70,7 +70,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
70
70
|
'&[data-soui-position^="top"]': {
|
|
71
71
|
// marginTop: (arrowGap - 2) * -1,
|
|
72
72
|
marginTop: "calc((".concat(hideArrowGap, " - 2px) * -1)"),
|
|
73
|
-
'& $arrow': {
|
|
73
|
+
'& > $arrow': {
|
|
74
74
|
bottom: '0',
|
|
75
75
|
transform: 'translate(0, 50%) rotate(135deg)',
|
|
76
76
|
left: '0',
|
|
@@ -96,7 +96,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
96
96
|
'&[dir=rtl]': {
|
|
97
97
|
marginLeft: "calc((".concat(hideArrowGap, " - 2px))")
|
|
98
98
|
},
|
|
99
|
-
'& $arrow': {
|
|
99
|
+
'& > $arrow': {
|
|
100
100
|
right: _theme.default.popoverBorderWidth,
|
|
101
101
|
transform: 'translate(50%, 0) rotate(45deg)',
|
|
102
102
|
top: '0',
|
|
@@ -120,7 +120,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
120
120
|
'&[dir=rtl]': {
|
|
121
121
|
marginRight: "calc(".concat(hideArrowGap, " - 2px)")
|
|
122
122
|
},
|
|
123
|
-
'& $arrow': {
|
|
123
|
+
'& > $arrow': {
|
|
124
124
|
left: '0',
|
|
125
125
|
transform: 'translate(-50%, 0) rotate(-135deg)',
|
|
126
126
|
top: '0',
|
|
@@ -139,19 +139,19 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
139
139
|
position: 'absolute'
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
-
'&&[data-soui-position$="-left"] $arrow': {
|
|
142
|
+
'&&[data-soui-position$="-left"] > $arrow': {
|
|
143
143
|
left: arrowMargin,
|
|
144
144
|
right: 'auto'
|
|
145
145
|
},
|
|
146
|
-
'&&[data-soui-position$="-right"] $arrow': {
|
|
146
|
+
'&&[data-soui-position$="-right"] > $arrow': {
|
|
147
147
|
right: arrowMargin,
|
|
148
148
|
left: 'auto'
|
|
149
149
|
},
|
|
150
|
-
'&&[data-soui-position$="-top"] $arrow': {
|
|
150
|
+
'&&[data-soui-position$="-top"] > $arrow': {
|
|
151
151
|
top: arrowMargin,
|
|
152
152
|
bottom: 'auto'
|
|
153
153
|
},
|
|
154
|
-
'&&[data-soui-position$="-bottom"] $arrow': {
|
|
154
|
+
'&&[data-soui-position$="-bottom"] > $arrow': {
|
|
155
155
|
bottom: arrowMargin,
|
|
156
156
|
top: 'auto'
|
|
157
157
|
},
|
|
@@ -184,14 +184,38 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
184
184
|
'&[data-soui-position^="bottom"]': {
|
|
185
185
|
animation: '$fadeIn 200ms ease, $moveBottom 200ms cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
186
186
|
},
|
|
187
|
+
'&[data-soui-position^="bottom-left"]': {
|
|
188
|
+
animation: '$fadeIn 200ms ease, $moveBottomLeft 200ms cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
189
|
+
},
|
|
190
|
+
'&[data-soui-position^="bottom-right"]': {
|
|
191
|
+
animation: '$fadeIn 200ms ease, $moveBottomRight 200ms cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
192
|
+
},
|
|
187
193
|
'&[data-soui-position^="top"]': {
|
|
188
194
|
animation: '$fadeIn 200ms ease, $moveTop 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
189
195
|
},
|
|
196
|
+
'&[data-soui-position^="top-left"]': {
|
|
197
|
+
animation: '$fadeIn 200ms ease, $moveTopLeft 200ms cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
198
|
+
},
|
|
199
|
+
'&[data-soui-position^="top-right"]': {
|
|
200
|
+
animation: '$fadeIn 200ms ease, $moveTopRight 200ms cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
201
|
+
},
|
|
190
202
|
'&[data-soui-position^="left"]': {
|
|
191
203
|
animation: '$fadeIn 200ms ease, $moveLeft 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
192
204
|
},
|
|
205
|
+
'&[data-soui-position^="left-top"]': {
|
|
206
|
+
animation: '$fadeIn 200ms ease, $moveLeftTop 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
207
|
+
},
|
|
208
|
+
'&[data-soui-position^="left-bottom"]': {
|
|
209
|
+
animation: '$fadeIn 200ms ease, $moveLeftBottom 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
210
|
+
},
|
|
193
211
|
'&[data-soui-position^="right"]': {
|
|
194
212
|
animation: '$fadeIn 200ms ease, $moveRight 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
213
|
+
},
|
|
214
|
+
'&[data-soui-position^="right-top"]': {
|
|
215
|
+
animation: '$fadeIn 200ms ease, $moveRightTop 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
216
|
+
},
|
|
217
|
+
'&[data-soui-position^="right-bottom"]': {
|
|
218
|
+
animation: '$fadeIn 200ms ease, $moveRightBottom 200ms cubic-bezier(0.22, 0.61, 0.36, 1);'
|
|
195
219
|
}
|
|
196
220
|
},
|
|
197
221
|
arrow: {},
|
package/cjs/radio/radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAG5C,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,YAAY,CA+J5C,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/radio/radio.js
CHANGED
|
@@ -5,20 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _theme = _interopRequireDefault(require("@sheinx/theme"));
|
|
8
|
+
var _common = require("../common");
|
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
var radioStyle = _objectSpread(_objectSpread({}, _common.animations), {}, {
|
|
10
17
|
rootClass: {},
|
|
11
|
-
// '@keyframes so-checkinput-focus': {
|
|
12
|
-
// '0%': {
|
|
13
|
-
// boxShadow: `0 0 0 0 ${cssVars.primaryColorFade50}`,
|
|
14
|
-
// },
|
|
15
|
-
// '50%': {
|
|
16
|
-
// boxShadow: `0 0 0 4px ${cssVars.primaryColorFade0}`,
|
|
17
|
-
// },
|
|
18
|
-
// '100%': {
|
|
19
|
-
// boxShadow: `0 0 0 8px ${cssVars.primaryColorFade0}`,
|
|
20
|
-
// },
|
|
21
|
-
// },
|
|
22
18
|
wrapper: {
|
|
23
19
|
display: 'inline-flex',
|
|
24
20
|
position: 'relative',
|
|
@@ -105,7 +101,7 @@ var radioStyle = {
|
|
|
105
101
|
color: _theme.default.radioIconColor,
|
|
106
102
|
backgroundColor: _theme.default.radioIconBackgroundColor,
|
|
107
103
|
border: '1px solid currentColor',
|
|
108
|
-
'$wrapperChecked &': {
|
|
104
|
+
'$wrapperChecked > $indicatorWrapper > &': {
|
|
109
105
|
backgroundColor: _theme.default.radioIconCheckedBackgroundColor,
|
|
110
106
|
color: _theme.default.radioIconCheckedColor,
|
|
111
107
|
'&::after': {
|
|
@@ -118,7 +114,8 @@ var radioStyle = {
|
|
|
118
114
|
position: 'absolute',
|
|
119
115
|
top: '50%',
|
|
120
116
|
left: '50%',
|
|
121
|
-
transform: 'translate(-50%, -50%)'
|
|
117
|
+
transform: 'translate(-50%, -50%)',
|
|
118
|
+
animation: '$bounce-in-center 0.2s cubic-bezier(0.22, 0.61, 0.36, 1)'
|
|
122
119
|
}
|
|
123
120
|
},
|
|
124
121
|
'$wrapperDisabled:not($wrapperChecked) &': {
|
|
@@ -174,5 +171,5 @@ var radioStyle = {
|
|
|
174
171
|
margin: 0
|
|
175
172
|
}
|
|
176
173
|
}
|
|
177
|
-
};
|
|
174
|
+
});
|
|
178
175
|
var _default = exports.default = radioStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AA+DlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC;AA+DlD,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,eAAe,CA+iB1C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/cjs/select/select.js
CHANGED
|
@@ -270,6 +270,9 @@ var selectStyle = _objectSpread(_objectSpread({
|
|
|
270
270
|
},
|
|
271
271
|
compressedWrapper: {
|
|
272
272
|
width: 0,
|
|
273
|
+
overflow: 'hidden'
|
|
274
|
+
},
|
|
275
|
+
compressedBoundWrapper: {
|
|
273
276
|
overflow: 'auto'
|
|
274
277
|
},
|
|
275
278
|
controlMouse: {
|
|
@@ -551,7 +554,6 @@ var selectStyle = _objectSpread(_objectSpread({
|
|
|
551
554
|
height: 32,
|
|
552
555
|
padding: "".concat(_theme.default.selectHeaderPaddingY, " ").concat(_theme.default.selectHeaderPaddingX),
|
|
553
556
|
borderBottom: "1px solid ".concat(_theme.default.selectHeaderBorderColor),
|
|
554
|
-
marginBottom: 4,
|
|
555
557
|
'& $columnsCheckbox': {
|
|
556
558
|
marginRight: 0,
|
|
557
559
|
marginLeft: 4,
|
package/cjs/skeleton/skeleton.js
CHANGED
|
@@ -31,7 +31,7 @@ var skeletonStyle = _objectSpread(_objectSpread({}, animation), {}, {
|
|
|
31
31
|
'& $textItem, & $image, & $buttonItem': {
|
|
32
32
|
backgroundImage: "linear-gradient(90deg, ".concat(_theme.default.skeletonAnimationFromColor, " 25%, ").concat(_theme.default.skeletonAnimationToColor, " 37%, ").concat(_theme.default.skeletonAnimationFromColor, " 63%)"),
|
|
33
33
|
backgroundSize: '400% 100%',
|
|
34
|
-
animation: '$skeleton-animation 1.
|
|
34
|
+
animation: '$skeleton-animation 1.5s cubic-bezier(0, 0, 1, 1) infinite'
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
content: {
|
|
@@ -80,7 +80,7 @@ var skeletonStyle = _objectSpread(_objectSpread({}, animation), {}, {
|
|
|
80
80
|
button: {
|
|
81
81
|
display: 'flex',
|
|
82
82
|
'$text + &': {
|
|
83
|
-
marginTop: _theme.default.
|
|
83
|
+
marginTop: _theme.default.skeletonButtonMarginTop
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
buttonItem: {
|
package/cjs/table/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAWxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAUhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAWxC,MAAM,MAAM,cAAc,GAAG,MAAM,YAAY,CAAC;AAUhD,QAAA,MAAM,UAAU,EAAE,QAAQ,CAAC,cAAc,CAynBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/table/table.js
CHANGED
|
@@ -183,12 +183,15 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
183
183
|
'$sticky > &': {
|
|
184
184
|
zIndex: headerIndex
|
|
185
185
|
},
|
|
186
|
-
'& table th': {
|
|
186
|
+
'$wrapper & table th': {
|
|
187
187
|
zIndex: fixedFixedIndex + 1,
|
|
188
188
|
'&$cellFixedLeft': {
|
|
189
189
|
position: 'sticky',
|
|
190
190
|
top: 'auto',
|
|
191
191
|
zIndex: fixedFixedIndex + 2
|
|
192
|
+
},
|
|
193
|
+
'&$cellFixedRight': {
|
|
194
|
+
zIndex: fixedFixedIndex + 3
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
},
|
|
@@ -210,7 +213,10 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
210
213
|
'&$cellFixedLeft': {
|
|
211
214
|
position: 'sticky',
|
|
212
215
|
top: 'auto',
|
|
213
|
-
zIndex: fixedIndex
|
|
216
|
+
zIndex: fixedIndex
|
|
217
|
+
},
|
|
218
|
+
'&$cellFixedRight': {
|
|
219
|
+
zIndex: fixedIndex
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
},
|
|
@@ -264,10 +270,13 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
264
270
|
borderBottom: 'none'
|
|
265
271
|
},
|
|
266
272
|
cellFixedLeft: {
|
|
267
|
-
position: 'sticky'
|
|
273
|
+
position: 'sticky',
|
|
274
|
+
// 快速横滚,有可能出现非固定列遮挡了固定列的短暂一瞬间,因此加上这个zIndex
|
|
275
|
+
zIndex: fixedIndex + 1
|
|
268
276
|
},
|
|
269
277
|
cellFixedRight: {
|
|
270
|
-
position: 'sticky'
|
|
278
|
+
position: 'sticky',
|
|
279
|
+
zIndex: fixedFixedIndex
|
|
271
280
|
},
|
|
272
281
|
cellAlignLeft: {
|
|
273
282
|
textAlign: 'left'
|
|
@@ -396,6 +405,9 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
396
405
|
color: _theme.default.tableFilterIconActiveColor
|
|
397
406
|
}
|
|
398
407
|
},
|
|
408
|
+
filterOpened: {
|
|
409
|
+
background: _theme.default.buttonSecondaryHoverBackgroundColor
|
|
410
|
+
},
|
|
399
411
|
filterContainer: {
|
|
400
412
|
minWidth: '120px'
|
|
401
413
|
},
|
|
@@ -408,7 +420,19 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
408
420
|
filterBody: {
|
|
409
421
|
padding: "".concat(_theme.default.tableFilterBodyPaddingY, " ").concat(_theme.default.tableFilterBodyPaddingX),
|
|
410
422
|
maxHeight: '300px',
|
|
411
|
-
overflow: 'auto'
|
|
423
|
+
overflow: 'auto',
|
|
424
|
+
// 特调Tree在Table filter中样式,以满足设计要求
|
|
425
|
+
'& [class*=tree-content-wrapper]': {
|
|
426
|
+
paddingTop: 1,
|
|
427
|
+
paddingBottom: 1
|
|
428
|
+
},
|
|
429
|
+
'&& [class*=tree-checkbox]': {
|
|
430
|
+
alignSelf: 'center'
|
|
431
|
+
},
|
|
432
|
+
'& [class*=tree-text]': {
|
|
433
|
+
paddingTop: 5,
|
|
434
|
+
paddingBottom: 5
|
|
435
|
+
}
|
|
412
436
|
},
|
|
413
437
|
filterFooter: {
|
|
414
438
|
display: 'flex',
|
|
@@ -620,6 +644,13 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
620
644
|
'& th, & td': {
|
|
621
645
|
textAlign: 'left'
|
|
622
646
|
},
|
|
647
|
+
'$bordered&': {
|
|
648
|
+
'& th:last-child, & td:last-child': {
|
|
649
|
+
'&:after': {
|
|
650
|
+
display: 'none'
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
},
|
|
623
654
|
'& table tr:hover td': {
|
|
624
655
|
background: "".concat(_theme.default.tableTbodyHoverBackgroundColor)
|
|
625
656
|
}
|