@smart-react-components/ui 2.0.0-alpha-80 → 2.0.0-alpha-82
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/Table/Th.d.ts +3 -2
- package/Table/Th.js +2 -1
- package/components/Switch/SwitchElement.js +4 -2
- package/package.json +1 -1
package/Table/Th.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { StyledProps } from '@smart-react-components/core/styled-props';
|
|
2
|
+
declare const _default: import("styled-components").StyledComponent<"th", any, StyledProps, never>;
|
|
3
|
+
export default _default;
|
package/Table/Th.js
CHANGED
|
@@ -4,4 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const Th_1 = __importDefault(require("@smart-react-components/core/Element/Th"));
|
|
7
|
-
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
exports.default = (0, styled_components_1.default)(Th_1.default).attrs(({ textAlign = 'left' }) => ({ textAlign })) ``;
|
|
@@ -7,7 +7,9 @@ const Div_1 = __importDefault(require("@smart-react-components/core/Element/Div"
|
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const css_1 = require("../../util/css");
|
|
10
|
-
const Slider = styled_components_1.default.div(
|
|
10
|
+
const Slider = styled_components_1.default.div.attrs({
|
|
11
|
+
className: 'switch-slider',
|
|
12
|
+
})(({ theme }) => `
|
|
11
13
|
background: ${theme.$.color.dynamic.background};
|
|
12
14
|
border-radius: 100%;
|
|
13
15
|
box-shadow: 0 1px 3px rgba(0,0,0,.4);
|
|
@@ -25,7 +27,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ child
|
|
|
25
27
|
height: ${t.$.size.switch[v].height};
|
|
26
28
|
width: ${t.$.size.switch[v].width};
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
.switch-slider {
|
|
29
31
|
height: ${t.$.size.switch[v].slider};
|
|
30
32
|
width: ${t.$.size.switch[v].slider};
|
|
31
33
|
|