@sheinx/shineout-style 3.9.10 → 3.9.11-beta.10
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/button/button-group.d.ts +5 -0
- package/cjs/button/button-group.d.ts.map +1 -0
- package/cjs/button/button-group.js +274 -0
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/button.js +0 -303
- package/cjs/button/index.d.ts +3 -0
- package/cjs/button/index.d.ts.map +1 -1
- package/cjs/button/index.js +9 -1
- package/cjs/jss-style/index.d.ts +1 -0
- package/cjs/jss-style/index.d.ts.map +1 -1
- package/cjs/jss-style/index.js +2 -2
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +4 -1
- package/cjs/menu/menu.d.ts.map +1 -1
- package/cjs/menu/menu.js +8 -5
- package/cjs/modal/modal.js +4 -4
- package/cjs/popover/popover.js +1 -1
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +15 -29
- package/cjs/version.d.ts +1 -1
- package/cjs/version.d.ts.map +1 -1
- package/cjs/version.js +1 -1
- package/esm/button/button-group.d.ts +5 -0
- package/esm/button/button-group.d.ts.map +1 -0
- package/esm/button/button-group.js +267 -0
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/button.js +0 -303
- package/esm/button/index.d.ts +3 -0
- package/esm/button/index.d.ts.map +1 -1
- package/esm/button/index.js +3 -0
- package/esm/jss-style/index.d.ts +1 -0
- package/esm/jss-style/index.d.ts.map +1 -1
- package/esm/jss-style/index.js +1 -1
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +4 -1
- package/esm/menu/menu.d.ts.map +1 -1
- package/esm/menu/menu.js +8 -5
- package/esm/modal/modal.js +4 -4
- package/esm/popover/popover.js +1 -1
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +15 -29
- 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
package/cjs/list/list.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAE9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAE9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAgItC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/cjs/list/list.js
CHANGED
|
@@ -89,7 +89,10 @@ var listStyle = {
|
|
|
89
89
|
minWidth: 0
|
|
90
90
|
},
|
|
91
91
|
pagination: {
|
|
92
|
-
|
|
92
|
+
marginTop: _theme.default.listPaginationMarginTop,
|
|
93
|
+
marginBottom: _theme.default.listPaginationMarginBottom,
|
|
94
|
+
marginLeft: 0,
|
|
95
|
+
marginRight: 0
|
|
93
96
|
},
|
|
94
97
|
// baseItem
|
|
95
98
|
baseItem: {
|
package/cjs/menu/menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAM9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["menu.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,MAAM,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC;AAM9C,QAAA,MAAM,SAAS,EAAE,QAAQ,CAAC,aAAa,CAijBtC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/cjs/menu/menu.js
CHANGED
|
@@ -84,15 +84,18 @@ var menuStyle = {
|
|
|
84
84
|
},
|
|
85
85
|
popArrow: {
|
|
86
86
|
'&&&': {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
filter: 'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15))',
|
|
88
|
+
'&::before': {
|
|
89
|
+
backgroundColor: _theme.default.menuItemBackgroundColor
|
|
90
|
+
}
|
|
90
91
|
}
|
|
91
92
|
},
|
|
92
93
|
popArrowDark: {
|
|
93
94
|
'&&&': {
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
filter: 'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15))',
|
|
96
|
+
'&::before': {
|
|
97
|
+
backgroundColor: _theme.default.menuDarkItemBackgroundColor
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
101
|
scrollbox: {
|
package/cjs/modal/modal.js
CHANGED
|
@@ -277,26 +277,26 @@ var modalStyle = _objectSpread(_objectSpread({
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
wrapperDrawerLeft: {
|
|
280
|
-
'& $panel': {
|
|
280
|
+
'& > $mask > $panel': {
|
|
281
281
|
left: 0,
|
|
282
282
|
height: '100vh'
|
|
283
283
|
}
|
|
284
284
|
},
|
|
285
285
|
wrapperDrawerRight: {
|
|
286
|
-
'& $panel': {
|
|
286
|
+
'& > $mask > $panel': {
|
|
287
287
|
right: 0,
|
|
288
288
|
height: '100vh'
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
291
|
wrapperDrawerTop: {
|
|
292
|
-
'& $panel': {
|
|
292
|
+
'& > $mask > $panel': {
|
|
293
293
|
top: 0,
|
|
294
294
|
left: 0,
|
|
295
295
|
width: '100vw'
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
298
|
wrapperDrawerBottom: {
|
|
299
|
-
'& $panel': {
|
|
299
|
+
'& > $mask > $panel': {
|
|
300
300
|
bottom: 0,
|
|
301
301
|
left: 0,
|
|
302
302
|
width: '100vw'
|
package/cjs/popover/popover.js
CHANGED
|
@@ -44,7 +44,7 @@ var popoverStyle = _objectSpread(_objectSpread({}, _tooltip.tooltipAnimation), {
|
|
|
44
44
|
bottom: 0,
|
|
45
45
|
width: '100%',
|
|
46
46
|
height: '100%',
|
|
47
|
-
backgroundColor: _theme.default.popoverBackgroundColor,
|
|
47
|
+
backgroundColor: "var(--popover-background-color, ".concat(_theme.default.popoverBackgroundColor, ")"),
|
|
48
48
|
clipPath: "path('".concat(_tooltip.arrowClipPath, "')")
|
|
49
49
|
}
|
|
50
50
|
},
|
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,CA6nBxC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/table/table.js
CHANGED
|
@@ -50,23 +50,11 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
50
50
|
wordBreak: 'break-all',
|
|
51
51
|
position: 'relative',
|
|
52
52
|
borderBottom: "1px solid ".concat(_theme.default.tableCellBorderColor),
|
|
53
|
+
borderRight: "var(--table-cell-border-width, 0px) solid ".concat(_theme.default.tableCellBorderColor),
|
|
53
54
|
boxSizing: 'border-box',
|
|
54
55
|
lineHeight: _theme.default.lineHeightDynamic,
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
content: '""',
|
|
58
|
-
position: 'absolute',
|
|
59
|
-
zIndex: cellBaseIndex,
|
|
60
|
-
top: 0,
|
|
61
|
-
bottom: 0,
|
|
62
|
-
borderLeft: "1px solid ".concat(_theme.default.tableCellBorderColor)
|
|
63
|
-
},
|
|
64
|
-
'[dir=ltr]&::after': {
|
|
65
|
-
right: 0
|
|
66
|
-
},
|
|
67
|
-
'[dir=rtl]&::after': {
|
|
68
|
-
left: 0
|
|
69
|
-
}
|
|
56
|
+
'&$cellIgnoreBorder': {
|
|
57
|
+
borderRight: 'none'
|
|
70
58
|
}
|
|
71
59
|
},
|
|
72
60
|
'& td': {
|
|
@@ -149,6 +137,7 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
149
137
|
borderRight: "1px solid ".concat(_theme.default.tableCellBorderColor),
|
|
150
138
|
borderBottom: 'none',
|
|
151
139
|
borderTop: 'none',
|
|
140
|
+
'--table-cell-border-width': '1px',
|
|
152
141
|
'&::before': {
|
|
153
142
|
position: 'absolute',
|
|
154
143
|
zIndex: fixedFixedIndex + 3,
|
|
@@ -318,12 +307,12 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
318
307
|
}
|
|
319
308
|
},
|
|
320
309
|
cellHover: {
|
|
321
|
-
'table tbody td
|
|
310
|
+
'table tbody td&': {
|
|
322
311
|
background: "".concat(_theme.default.tableTbodyHoverBackgroundColor)
|
|
323
312
|
}
|
|
324
313
|
},
|
|
325
314
|
rowHover: {
|
|
326
|
-
'
|
|
315
|
+
'&:hover > td': {
|
|
327
316
|
transition: 'background-color 0.2s',
|
|
328
317
|
background: "".concat(_theme.default.tableTbodyHoverBackgroundColor)
|
|
329
318
|
}
|
|
@@ -572,11 +561,7 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
572
561
|
opacity: 0
|
|
573
562
|
}
|
|
574
563
|
},
|
|
575
|
-
cellIgnoreBorder: {
|
|
576
|
-
'&::after': {
|
|
577
|
-
display: 'none'
|
|
578
|
-
}
|
|
579
|
-
},
|
|
564
|
+
cellIgnoreBorder: {},
|
|
580
565
|
cellSortable: {
|
|
581
566
|
cursor: 'pointer',
|
|
582
567
|
'&:hover': {
|
|
@@ -635,17 +620,17 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
635
620
|
alignItems: 'center'
|
|
636
621
|
},
|
|
637
622
|
rowStriped: {
|
|
638
|
-
'
|
|
623
|
+
'table & > td': {
|
|
639
624
|
background: _theme.default.tableTbodyStripedBackgroundColor
|
|
640
625
|
}
|
|
641
626
|
},
|
|
642
627
|
rowChecked: {
|
|
643
|
-
'
|
|
628
|
+
'table & > td': {
|
|
644
629
|
background: _theme.default.tableTbodyActiveBackgroundColor
|
|
645
630
|
}
|
|
646
631
|
},
|
|
647
632
|
rowExpand: {
|
|
648
|
-
'
|
|
633
|
+
'table & > td': {
|
|
649
634
|
background: _theme.default.tableExpandBackgroundColor
|
|
650
635
|
}
|
|
651
636
|
},
|
|
@@ -662,10 +647,11 @@ var tableStyle = _objectSpread(_objectSpread({
|
|
|
662
647
|
textAlign: 'left'
|
|
663
648
|
},
|
|
664
649
|
'$bordered&': {
|
|
665
|
-
'& th:last-child, & td:last-child': {
|
|
666
|
-
'
|
|
667
|
-
|
|
668
|
-
|
|
650
|
+
'& th:last-child[dir=ltr], & td:last-child[dir=ltr]': {
|
|
651
|
+
borderRight: 'none'
|
|
652
|
+
},
|
|
653
|
+
'& th:last-child[dir=rtl], & td:last-child[dir=rtl]': {
|
|
654
|
+
borderLeft: 'none'
|
|
669
655
|
}
|
|
670
656
|
},
|
|
671
657
|
'& table tr:hover td': {
|
package/cjs/version.d.ts
CHANGED
package/cjs/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";AAAA,wBAAgC"}
|
package/cjs/version.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AA6KlD,QAAA,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,kBAAkB,CAgKxD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import { prefix } from "../jss-style";
|
|
8
|
+
import Token from '@sheinx/theme';
|
|
9
|
+
// 引用 button stylesheet 的常量类名(元素同时拥有 hash class 和常量 class)
|
|
10
|
+
var bc = function bc(key) {
|
|
11
|
+
return ".".concat(prefix, "-button-").concat(key);
|
|
12
|
+
};
|
|
13
|
+
var beforeLine = function beforeLine() {
|
|
14
|
+
return _defineProperty(_defineProperty({
|
|
15
|
+
'&::before': {
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
content: '" "',
|
|
18
|
+
height: 'calc(50% - 2px)',
|
|
19
|
+
top: 'calc(25% + 1px)',
|
|
20
|
+
width: 1,
|
|
21
|
+
background: Token.buttonSplitlineFullBackgroundColor
|
|
22
|
+
},
|
|
23
|
+
'&[dir=ltr]::before': {
|
|
24
|
+
left: -1
|
|
25
|
+
},
|
|
26
|
+
'&[dir=rtl]::before': {
|
|
27
|
+
right: -1
|
|
28
|
+
}
|
|
29
|
+
}, "&".concat(bc('dashed'), ":hover"), _defineProperty({
|
|
30
|
+
'&::before': {
|
|
31
|
+
height: '100%',
|
|
32
|
+
top: 0,
|
|
33
|
+
bottom: 0,
|
|
34
|
+
borderLeft: '1px dashed currentColor',
|
|
35
|
+
background: 'none'
|
|
36
|
+
},
|
|
37
|
+
// 使用 ::after 在右侧创建分割线,颜色使用当前按钮的 currentColor
|
|
38
|
+
'&:not(:last-child)::after': {
|
|
39
|
+
content: '" "',
|
|
40
|
+
position: 'absolute',
|
|
41
|
+
height: '100%',
|
|
42
|
+
top: 0,
|
|
43
|
+
width: 1,
|
|
44
|
+
borderLeft: '1px dashed currentColor',
|
|
45
|
+
background: 'none',
|
|
46
|
+
zIndex: 1
|
|
47
|
+
},
|
|
48
|
+
'&:not(:last-child)[dir=ltr]::after': {
|
|
49
|
+
right: -1
|
|
50
|
+
},
|
|
51
|
+
'&:not(:last-child)[dir=rtl]::after': {
|
|
52
|
+
left: -1
|
|
53
|
+
}
|
|
54
|
+
}, "& + ".concat(bc('button'), "::before"), {
|
|
55
|
+
opacity: 0
|
|
56
|
+
})), "&:not(".concat(bc('disabled'), "):not(").concat(bc('dashed'), "):hover"), _defineProperty({
|
|
57
|
+
'&::before': {
|
|
58
|
+
background: 'transparent'
|
|
59
|
+
}
|
|
60
|
+
}, "& + ".concat(bc('button'), ",& + * ").concat(bc('button')), {
|
|
61
|
+
'&::before': {
|
|
62
|
+
background: 'transparent'
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
};
|
|
66
|
+
var outlineBeforeLine = function outlineBeforeLine(type, styles) {
|
|
67
|
+
return _defineProperty({
|
|
68
|
+
'&::before': {
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
content: '" "',
|
|
71
|
+
height: 'calc(50% - 2px)',
|
|
72
|
+
top: 'calc(25% + 1px)',
|
|
73
|
+
width: 1,
|
|
74
|
+
background: Token["button".concat(type).concat(styles, "BorderColor")]
|
|
75
|
+
},
|
|
76
|
+
'&[dir=ltr]::before': {
|
|
77
|
+
left: -1
|
|
78
|
+
},
|
|
79
|
+
'&[dir=rtl]::before': {
|
|
80
|
+
right: -1
|
|
81
|
+
},
|
|
82
|
+
'&:not(:disabled):hover': _defineProperty(_defineProperty({
|
|
83
|
+
// before
|
|
84
|
+
'&::before': {
|
|
85
|
+
height: 'calc(100% + 1.8px)',
|
|
86
|
+
top: -0.8,
|
|
87
|
+
left: -1,
|
|
88
|
+
width: 1,
|
|
89
|
+
background: Token["button".concat(type).concat(styles, "HoverBorderColor")]
|
|
90
|
+
}
|
|
91
|
+
}, "& + ".concat(bc('button'), ",& + * ").concat(bc('button')), {
|
|
92
|
+
'&::before': {
|
|
93
|
+
height: 'calc(100% + 1.8px)',
|
|
94
|
+
top: -0.8,
|
|
95
|
+
left: -1,
|
|
96
|
+
width: 1,
|
|
97
|
+
background: Token["button".concat(type).concat(styles, "HoverBorderColor")]
|
|
98
|
+
}
|
|
99
|
+
}), '&:active', _defineProperty({
|
|
100
|
+
'&::before': {
|
|
101
|
+
background: Token["button".concat(type).concat(styles, "ActiveBorderColor")]
|
|
102
|
+
}
|
|
103
|
+
}, "& + ".concat(bc('button'), ",& + * ").concat(bc('button')), {
|
|
104
|
+
'&::before': {
|
|
105
|
+
background: Token["button".concat(type).concat(styles, "ActiveBorderColor")]
|
|
106
|
+
}
|
|
107
|
+
}))
|
|
108
|
+
}, "&".concat(bc('primary'), ",&").concat(bc('success'), ",&").concat(bc('warning'), ",&").concat(bc('danger'), ",").concat(bc('secondary')), {
|
|
109
|
+
'&::before': {
|
|
110
|
+
height: 'calc(100% + 2px)',
|
|
111
|
+
top: -1,
|
|
112
|
+
left: -1,
|
|
113
|
+
width: 1,
|
|
114
|
+
bottom: -1,
|
|
115
|
+
background: "".concat(Token["button".concat(type).concat(styles, "BorderColor")])
|
|
116
|
+
},
|
|
117
|
+
'& + :not(&)': {
|
|
118
|
+
'&::before': {
|
|
119
|
+
height: 'calc(100% + 2px)',
|
|
120
|
+
top: -1,
|
|
121
|
+
left: -1,
|
|
122
|
+
width: 1,
|
|
123
|
+
bottom: -1,
|
|
124
|
+
background: Token["button".concat(type).concat(styles, "BorderColor")]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
'&:disabled': {
|
|
128
|
+
'&::before': {
|
|
129
|
+
background: Token["button".concat(type).concat(styles, "DisabledBorderColor")]
|
|
130
|
+
},
|
|
131
|
+
'& + :not(&)': {
|
|
132
|
+
'&::before': {
|
|
133
|
+
background: Token["button".concat(type).concat(styles, "DisabledBorderColor")]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
var textBeforeLine = function textBeforeLine() {
|
|
140
|
+
return _defineProperty({
|
|
141
|
+
'&::before': {
|
|
142
|
+
transition: 'all 0.3s',
|
|
143
|
+
position: 'absolute',
|
|
144
|
+
content: '" "',
|
|
145
|
+
height: 'calc(50% - 2px)',
|
|
146
|
+
top: 'calc(25% + 1px)',
|
|
147
|
+
width: 1,
|
|
148
|
+
background: Token.buttonSplitlineOutlineBackgroundColor
|
|
149
|
+
},
|
|
150
|
+
'&[dir=ltr]::before': {
|
|
151
|
+
left: -1
|
|
152
|
+
},
|
|
153
|
+
'&[dir=rtl]::before': {
|
|
154
|
+
right: -1
|
|
155
|
+
}
|
|
156
|
+
}, "&:not(".concat(bc('disabled'), "):hover"), _defineProperty({
|
|
157
|
+
'&::before': {
|
|
158
|
+
background: 'transparent'
|
|
159
|
+
}
|
|
160
|
+
}, "& + ".concat(bc('button'), ",& + * ").concat(bc('button')), {
|
|
161
|
+
'&::before': {
|
|
162
|
+
background: 'transparent'
|
|
163
|
+
}
|
|
164
|
+
}));
|
|
165
|
+
};
|
|
166
|
+
var ButtonGroupStyle = {
|
|
167
|
+
rootClass: {},
|
|
168
|
+
group: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
169
|
+
// 2.x 之前非 inline-block
|
|
170
|
+
display: 'inline-flex',
|
|
171
|
+
// 处理 dropdown 下的 button
|
|
172
|
+
'& [data-role="dropdown"]': _defineProperty(_defineProperty({}, "& ".concat(bc('button')), {
|
|
173
|
+
height: '100%'
|
|
174
|
+
}), '& [data-role="caret"]', {
|
|
175
|
+
margin: 0
|
|
176
|
+
})
|
|
177
|
+
}, "& > :first-child".concat(bc('button'), ",& > :first-child ").concat(bc('button')), {
|
|
178
|
+
'&::before': {
|
|
179
|
+
display: 'none'
|
|
180
|
+
}
|
|
181
|
+
}), "& > :first-child:not(:last-child)".concat(bc('button'), ",& > :first-child:not(:last-child) ").concat(bc('button')), {
|
|
182
|
+
'&[dir=ltr]': {
|
|
183
|
+
borderTopRightRadius: 0,
|
|
184
|
+
borderBottomRightRadius: 0,
|
|
185
|
+
borderRight: 'none'
|
|
186
|
+
},
|
|
187
|
+
'&[dir=rtl]': {
|
|
188
|
+
borderTopLeftRadius: 0,
|
|
189
|
+
borderBottomLeftRadius: 0,
|
|
190
|
+
borderRight: 'none'
|
|
191
|
+
}
|
|
192
|
+
}), "& > :last-child:not(:first-child)".concat(bc('button'), ",& > :last-child:not(:first-child) ").concat(bc('button')), {
|
|
193
|
+
'&[dir=ltr]': {
|
|
194
|
+
borderTopLeftRadius: 0,
|
|
195
|
+
borderBottomLeftRadius: 0,
|
|
196
|
+
borderLeft: 'none'
|
|
197
|
+
},
|
|
198
|
+
'&[dir=rtl]': {
|
|
199
|
+
borderTopRightRadius: 0,
|
|
200
|
+
borderBottomRightRadius: 0,
|
|
201
|
+
borderLeft: 'none'
|
|
202
|
+
}
|
|
203
|
+
}), "& > :not(:first-child):not(:last-child)".concat(bc('button'), ",& > :not(:first-child):not(:last-child) ").concat(bc('button')), {
|
|
204
|
+
borderRadius: 0,
|
|
205
|
+
borderLeft: 'none',
|
|
206
|
+
borderRight: 'none'
|
|
207
|
+
}), "& ".concat(bc('button'), ":not(").concat(bc('outline'), "):not(").concat(bc('text'), ")"), _defineProperty(_defineProperty(_defineProperty({
|
|
208
|
+
position: 'relative',
|
|
209
|
+
'&::before': {
|
|
210
|
+
transition: 'all 0.3s'
|
|
211
|
+
}
|
|
212
|
+
}, "&".concat(bc('secondary')), _objectSpread(_objectSpread({}, beforeLine()), {}, _defineProperty({
|
|
213
|
+
'&::before': {
|
|
214
|
+
position: 'absolute',
|
|
215
|
+
content: '" "',
|
|
216
|
+
height: 'calc(50% - 2px)',
|
|
217
|
+
top: 'calc(25% + 1px)',
|
|
218
|
+
width: 1,
|
|
219
|
+
background: Token.buttonSplitlineOutlineBackgroundColor,
|
|
220
|
+
transition: 'none'
|
|
221
|
+
},
|
|
222
|
+
'&[dir=ltr]::before': {
|
|
223
|
+
left: -1
|
|
224
|
+
},
|
|
225
|
+
'&[dir=rtl]::before': {
|
|
226
|
+
right: -1
|
|
227
|
+
}
|
|
228
|
+
}, "& + :not(&),& + * ".concat(bc('button'), ":not(&)"), {
|
|
229
|
+
'&::before': {
|
|
230
|
+
background: 'transparent'
|
|
231
|
+
}
|
|
232
|
+
}))), "&".concat(bc('primary'), ",&").concat(bc('success'), ",&").concat(bc('warning'), ",&").concat(bc('danger')), _objectSpread({}, beforeLine())), "&".concat(bc('primary'), ",&").concat(bc('success'), ",&").concat(bc('warning'), ",&").concat(bc('danger'), ",").concat(bc('secondary')), _defineProperty(_defineProperty({}, "& + :not(&),& + * ".concat(bc('button'), ":not(&)"), {
|
|
233
|
+
'&::before': {
|
|
234
|
+
background: 'transparent'
|
|
235
|
+
}
|
|
236
|
+
}), "& + ".concat(bc('button'), ":not(&)"), {
|
|
237
|
+
'&::before': {
|
|
238
|
+
background: 'transparent'
|
|
239
|
+
}
|
|
240
|
+
}))), "& ".concat(bc('outline')), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
241
|
+
position: 'relative',
|
|
242
|
+
'&::before': {
|
|
243
|
+
transition: 'all 0.3s'
|
|
244
|
+
}
|
|
245
|
+
}, "&".concat(bc('secondary')), _objectSpread(_objectSpread({}, outlineBeforeLine('Secondary', 'Outline')), {}, {
|
|
246
|
+
'&::before': {
|
|
247
|
+
position: 'absolute',
|
|
248
|
+
content: '" "',
|
|
249
|
+
height: 'calc(50% - 2px)',
|
|
250
|
+
top: 'calc(25% + 1px)',
|
|
251
|
+
width: 1,
|
|
252
|
+
background: Token.buttonSplitlineOutlineBackgroundColor // Neutral-border-1
|
|
253
|
+
},
|
|
254
|
+
'&[dir=ltr]::before': {
|
|
255
|
+
left: -1
|
|
256
|
+
},
|
|
257
|
+
'&[dir=rtl]::before': {
|
|
258
|
+
right: -1
|
|
259
|
+
}
|
|
260
|
+
})), "&".concat(bc('primary')), _objectSpread({}, outlineBeforeLine('Primary', 'Outline'))), "&".concat(bc('success')), _objectSpread({}, outlineBeforeLine('Success', 'Outline'))), "&".concat(bc('warning')), _objectSpread({}, outlineBeforeLine('Warning', 'Outline'))), "&".concat(bc('danger')), _objectSpread({}, outlineBeforeLine('Danger', 'Outline')))), "& ".concat(bc('text')), _objectSpread({
|
|
261
|
+
position: 'relative'
|
|
262
|
+
}, textBeforeLine())), "&".concat(bc('dashed')), {
|
|
263
|
+
position: 'relative',
|
|
264
|
+
borderStyle: 'none'
|
|
265
|
+
})
|
|
266
|
+
};
|
|
267
|
+
export default ButtonGroupStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AA8C7C,QAAA,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,aAAa,CAkP9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|