@smart-react-components/ui 2.0.0-alpha-106 → 2.0.0-alpha-108

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: "$fontWeight.dropdownCategory" }, label),
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
  `}
@@ -20,6 +20,12 @@ exports.default = (0, styled_components_1.default)(Li_1.default)(({ theme, isAct
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.0.0-alpha-106",
3
+ "version": "2.0.0-alpha-108",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
@@ -64,9 +64,9 @@
64
64
  "test": "jest"
65
65
  },
66
66
  "devDependencies": {
67
- "@smart-react-components/core": "2.0.0-alpha-37",
68
- "@smart-react-components/router": "2.0.0-alpha-34",
69
- "@smart-react-components/transition": "2.0.0-alpha-31",
67
+ "@smart-react-components/core": "2.0.0-alpha-38",
68
+ "@smart-react-components/router": "2.0.0-alpha-35",
69
+ "@smart-react-components/transition": "2.0.0-alpha-32",
70
70
  "@testing-library/react": "13.4.0",
71
71
  "@types/jest": "29.0.1",
72
72
  "@types/react": "18.0.19",
@@ -83,9 +83,9 @@
83
83
  "typescript": "4.8.3"
84
84
  },
85
85
  "peerDependencies": {
86
- "@smart-react-components/core": "^2.0.0-alpha-37",
87
- "@smart-react-components/router": "^2.0.0-alpha-34",
88
- "@smart-react-components/transition": "^2.0.0-alpha-31",
86
+ "@smart-react-components/core": "^2.0.0-alpha-38",
87
+ "@smart-react-components/router": "^2.0.0-alpha-35",
88
+ "@smart-react-components/transition": "^2.0.0-alpha-32",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",
91
91
  "styled-components": "^5.3.5"