@sheinx/shineout-style 3.8.0-beta.4 → 3.8.0-beta.40
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/form/form-item.d.ts.map +1 -1
- package/cjs/form/form-item.js +5 -0
- package/cjs/input/input.d.ts.map +1 -1
- package/cjs/input/input.js +12 -45
- 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/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 +16 -5
- 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.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.js +4 -4
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +36 -6
- 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/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/form/form-item.d.ts.map +1 -1
- package/esm/form/form-item.js +5 -0
- package/esm/input/input.d.ts.map +1 -1
- package/esm/input/input.js +12 -45
- 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/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 +16 -5
- 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.d.ts.map +1 -1
- package/esm/skeleton/skeleton.js +3 -5
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +36 -6
- 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/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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["form-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAYxC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["form-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAYxC,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,eAAe,CAwJlD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/cjs/form/form-item.js
CHANGED
|
@@ -144,6 +144,11 @@ var formItemStyle = _objectSpread(_objectSpread({
|
|
|
144
144
|
top: '2px'
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
wrapperHideRequired: {
|
|
148
|
+
'& $label::before': {
|
|
149
|
+
display: 'none'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
147
152
|
wrapperKeepHeight: {
|
|
148
153
|
marginBottom: _theme.default.formItemTipMinHeight,
|
|
149
154
|
'&$wrapperTip': {
|
package/cjs/input/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAgH5C,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAgH5C,QAAA,MAAM,KAAK,EAAE,QAAQ,CAAC,MAAM,YAAY,CAmMvC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/cjs/input/input.js
CHANGED
|
@@ -165,6 +165,17 @@ var input = _objectSpread(_objectSpread(_objectSpread({
|
|
|
165
165
|
fontSize: 'inherit'
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
+
wrapperShowClear: {
|
|
169
|
+
'& $clearWrapper': {
|
|
170
|
+
display: 'flex',
|
|
171
|
+
opacity: 0
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
wrapperHasValue: {
|
|
175
|
+
'& $clearWrapper': {
|
|
176
|
+
opacity: 1
|
|
177
|
+
}
|
|
178
|
+
},
|
|
168
179
|
clearWrapper: {
|
|
169
180
|
position: 'relative',
|
|
170
181
|
flexBasis: "calc(".concat(_theme.default.inputIconSize, " + 8px)"),
|
|
@@ -282,54 +293,10 @@ var input = _objectSpread(_objectSpread(_objectSpread({
|
|
|
282
293
|
'&:hover svg': {
|
|
283
294
|
color: _theme.default.inputHoverToggleColor
|
|
284
295
|
}
|
|
285
|
-
// marginRight: token.inputPaddingX,
|
|
286
296
|
},
|
|
287
297
|
info: {
|
|
288
|
-
position: 'absolute',
|
|
289
|
-
'&[dir=ltr]': {
|
|
290
|
-
right: '0'
|
|
291
|
-
},
|
|
292
|
-
'&[dir=rtl]': {
|
|
293
|
-
left: '0'
|
|
294
|
-
},
|
|
295
|
-
top: '100%',
|
|
296
|
-
zIndex: 1000,
|
|
297
|
-
transformOrigin: '100% 0',
|
|
298
|
-
marginTop: '10px',
|
|
299
|
-
animation: 'so-input-fade .16s ease-in',
|
|
300
|
-
maxWidth: '400px',
|
|
301
|
-
padding: '5px 8px',
|
|
302
298
|
background: _theme.default.inputInfoBackgroundColor,
|
|
303
|
-
|
|
304
|
-
boxShadow: "0 0 0 1px ".concat(_theme.default.inputBorderColor),
|
|
305
|
-
fontSize: '12px',
|
|
306
|
-
color: _theme.default.inputInfoFontColor,
|
|
307
|
-
'&::before': {
|
|
308
|
-
display: 'block',
|
|
309
|
-
position: 'absolute',
|
|
310
|
-
bottom: '100%',
|
|
311
|
-
transform: 'rotate(45deg) translateY(3px)',
|
|
312
|
-
width: '6px',
|
|
313
|
-
height: '6px',
|
|
314
|
-
borderTop: "1px solid ".concat(_theme.default.inputBorderColor),
|
|
315
|
-
borderLeft: "1px solid ".concat(_theme.default.inputBorderColor),
|
|
316
|
-
background: 'inherit',
|
|
317
|
-
content: "' '"
|
|
318
|
-
},
|
|
319
|
-
'&[dir=ltr]::before': {
|
|
320
|
-
right: '4px'
|
|
321
|
-
},
|
|
322
|
-
'&[dir=rtl]::before': {
|
|
323
|
-
left: '8px'
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
infoError: {
|
|
327
|
-
boxShadow: "0 0 0 1px ".concat(_theme.default.inputInfoErrorBorderColor),
|
|
328
|
-
color: _theme.default.inputInfoErrorFontColor,
|
|
329
|
-
background: _theme.default.inputInfoErrorBackgroundColor,
|
|
330
|
-
'&::before': {
|
|
331
|
-
borderColor: _theme.default.inputInfoErrorBorderColor
|
|
332
|
-
}
|
|
299
|
+
color: _theme.default.inputInfoFontColor
|
|
333
300
|
}
|
|
334
301
|
});
|
|
335
302
|
var _default = exports.default = input;
|
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/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":"AA+YA,eAAO,MAAM,mBAAmB,kCA8B/B,CAAC"}
|
package/cjs/normalize.js
CHANGED
|
@@ -5,6 +5,7 @@ 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");
|
|
8
9
|
// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
|
|
9
10
|
// 2. Change the default font family in all browsers.
|
|
10
11
|
// 3. Correct the line height in all browsers.
|
|
@@ -30,19 +31,29 @@ var token = {
|
|
|
30
31
|
var lineHeightComputed = '20px';
|
|
31
32
|
var lineHeightComputed2 = '10px';
|
|
32
33
|
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}");
|
|
34
|
+
var normalizeStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
|
|
35
|
+
var jssInsertionPointId = 'shineout-next-jss-insertion-point__' + Math.random().toString(36).substring(2, 15);
|
|
33
36
|
function appendNormalizeStyle(styleString, id) {
|
|
34
37
|
var style = document.createElement('style');
|
|
35
38
|
style.id = id;
|
|
36
39
|
style.innerHTML = styleString;
|
|
37
|
-
document.head.
|
|
40
|
+
document.head.insertBefore(style, document.head.firstChild);
|
|
41
|
+
}
|
|
42
|
+
function appendJssInsertionPoint() {
|
|
43
|
+
var insertionPoint = document.createElement('style');
|
|
44
|
+
insertionPoint.id = jssInsertionPointId;
|
|
45
|
+
document.head.insertBefore(insertionPoint, document.head.firstChild);
|
|
46
|
+
_jssStyle.jss.setup({
|
|
47
|
+
insertionPoint: insertionPoint
|
|
48
|
+
});
|
|
38
49
|
}
|
|
39
|
-
var uniqueStyleId = 'shineout-next-normalize__' + Math.random().toString(36).substring(2, 15);
|
|
40
50
|
if (typeof window !== 'undefined') {
|
|
41
|
-
|
|
51
|
+
appendJssInsertionPoint();
|
|
52
|
+
appendNormalizeStyle(normalizeStyle, normalizeStyleId);
|
|
42
53
|
}
|
|
43
54
|
var scopeNormalizeStyle = exports.scopeNormalizeStyle = function scopeNormalizeStyle() {
|
|
44
55
|
var csScopePrefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#app';
|
|
45
|
-
var styleElement = document.getElementById(
|
|
56
|
+
var styleElement = document.getElementById(normalizeStyleId);
|
|
46
57
|
// 移除styleElement
|
|
47
58
|
|
|
48
59
|
var styleSheet = styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet;
|
|
@@ -71,7 +82,7 @@ var scopeNormalizeStyle = exports.scopeNormalizeStyle = function scopeNormalizeS
|
|
|
71
82
|
return rule.cssText;
|
|
72
83
|
}).join('') : '';
|
|
73
84
|
document.head.removeChild(styleElement);
|
|
74
|
-
appendNormalizeStyle(scopedStyleString,
|
|
85
|
+
appendNormalizeStyle(scopedStyleString, normalizeStyleId);
|
|
75
86
|
};
|
|
76
87
|
(0, _theme.setToken)({
|
|
77
88
|
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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["skeleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAU9C,MAAM,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC;AAEtD,QAAA,MAAM,aAAa,EAAE,QAAQ,CAAC,iBAAiB,CA0F9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/cjs/skeleton/skeleton.js
CHANGED
|
@@ -11,7 +11,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
|
-
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); }
|
|
14
|
+
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); }
|
|
15
15
|
var animation = {
|
|
16
16
|
'@keyframes skeleton-animation': {
|
|
17
17
|
'0%': {
|
|
@@ -29,9 +29,9 @@ var skeletonStyle = _objectSpread(_objectSpread({}, animation), {}, {
|
|
|
29
29
|
},
|
|
30
30
|
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,CAknBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|