@smart-react-components/ui 2.0.0-alpha-105 → 2.0.0-alpha-107
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.
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const Div_1 = __importDefault(require("@smart-react-components/core/Element/Div"));
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const DropdownCategory = ({ children, hasHover, hasWaveEffect, isOutline, isSoft, label, palette, setStatus, waveEffectPalette }) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
9
|
-
react_1.default.createElement(Div_1.default, { fontWeight:
|
|
9
|
+
react_1.default.createElement(Div_1.default, { fontWeight: isSoft ? '$fontWeight.bold' : '$fontWeight.semibold' }, label),
|
|
10
10
|
(Array.isArray(children) ? children : [children]).map((item, idx) => {
|
|
11
11
|
var _a;
|
|
12
12
|
return react_1.default.cloneElement(item, {
|
|
@@ -18,6 +18,12 @@ exports.default = (0, styled_components_1.default)(Div_1.default)(({ theme, hasH
|
|
|
18
18
|
transition-property: fill, stroke;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
${isSoft
|
|
22
|
+
? `
|
|
23
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
24
|
+
`
|
|
25
|
+
: ''}
|
|
26
|
+
|
|
21
27
|
${!isActive
|
|
22
28
|
? `
|
|
23
29
|
${hasHover && !theme.$.vars.isMobile
|
|
@@ -35,6 +35,12 @@ exports.default = (0, styled_components_1.default)(Input_1.default).attrs(({ cla
|
|
|
35
35
|
-webkit-appearance: none;
|
|
36
36
|
-webkit-tap-highlight-color: transparent;
|
|
37
37
|
|
|
38
|
+
${(!isOutline && isSoft)
|
|
39
|
+
? `
|
|
40
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
41
|
+
`
|
|
42
|
+
: ''}
|
|
43
|
+
|
|
38
44
|
${!isOutline
|
|
39
45
|
? `
|
|
40
46
|
${!isSoft
|
|
@@ -86,6 +92,12 @@ exports.default = (0, styled_components_1.default)(Input_1.default).attrs(({ cla
|
|
|
86
92
|
color: ${theme.$.color.dynamic.accent};
|
|
87
93
|
`
|
|
88
94
|
: ''}
|
|
95
|
+
|
|
96
|
+
${(!isOutline && isSoft)
|
|
97
|
+
? `
|
|
98
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
99
|
+
`
|
|
100
|
+
: ''}
|
|
89
101
|
}
|
|
90
102
|
`).join(' ')}
|
|
91
103
|
`}
|
|
@@ -13,13 +13,19 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
border: solid 1px;
|
|
15
15
|
border-radius: ${shape === 'rounded' && isFixedSize ? '100%' : theme.$.radius.pagination[shape]};
|
|
16
|
-
cursor: ${!isDisabled ? theme.$.cursor.pagination : theme.$.cursor.paginationDisabled}
|
|
16
|
+
cursor: ${!isDisabled ? theme.$.cursor.pagination : theme.$.cursor.paginationDisabled};
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
justify-content: center;
|
|
19
19
|
text-decoration: none;
|
|
20
20
|
transition: 300ms 0s ease-in-out;
|
|
21
21
|
transition-property: background, border, color, fill;
|
|
22
22
|
|
|
23
|
+
${isSoft
|
|
24
|
+
? `
|
|
25
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
26
|
+
`
|
|
27
|
+
: ''}
|
|
28
|
+
|
|
23
29
|
${isFixedSize
|
|
24
30
|
? `
|
|
25
31
|
height: ${theme.$.length.pagination.fixedSize};
|
|
@@ -25,6 +25,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs({
|
|
|
25
25
|
background: ${theme.$.palette[palette].soft};
|
|
26
26
|
color: ${theme.$.palette[palette].softFont};
|
|
27
27
|
fill: ${theme.$.palette[palette].softFont};
|
|
28
|
+
font-weight: ${theme.$.fontWeight.bold};
|
|
28
29
|
|
|
29
30
|
${PopoverArrow_1.default} {
|
|
30
31
|
fill: ${theme.$.palette[palette].soft};
|