orcs-design-system 3.2.23 → 3.2.24
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import styled, { keyframes, ThemeProvider } from "styled-components";
|
|
4
|
-
import { space, layout } from "styled-system";
|
|
4
|
+
import { space, layout, typography } from "styled-system";
|
|
5
5
|
import { themeGet } from "@styled-system/theme-get";
|
|
6
6
|
|
|
7
7
|
/* Animations */
|
|
@@ -35,7 +35,7 @@ const Check = styled.div.withConfig({
|
|
|
35
35
|
const Text = styled.div.withConfig({
|
|
36
36
|
displayName: "Checkbox__Text",
|
|
37
37
|
componentId: "sc-p4d19b-5"
|
|
38
|
-
})(["font-size:", ";padding-left:8px;"], props => themeGet("fontSizes.2")(props));
|
|
38
|
+
})(["font-size:", ";padding-left:8px;", ""], props => themeGet("fontSizes.2")(props), typography);
|
|
39
39
|
/**
|
|
40
40
|
* The default checkbox (or inverted if on dark background) should be used for the majority of the UI; however, the coloured ones can be used in situations where the colour corresponds with some indication of status, e.g. in a task list, green could denote task completed, red could denote task overdue.
|
|
41
41
|
*/
|
|
@@ -85,6 +85,7 @@ export default function Checkbox(_ref) {
|
|
|
85
85
|
onClick: onClick,
|
|
86
86
|
children: /*#__PURE__*/_jsx(Check, {})
|
|
87
87
|
}), /*#__PURE__*/_jsx(Text, {
|
|
88
|
+
...props,
|
|
88
89
|
children: label
|
|
89
90
|
})]
|
|
90
91
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import styled, { ThemeProvider } from "styled-components";
|
|
4
|
-
import { space, layout, compose, variant } from "styled-system";
|
|
4
|
+
import { space, layout, compose, variant, typography } from "styled-system";
|
|
5
5
|
import { css } from "@styled-system/css";
|
|
6
6
|
import { themeGet } from "@styled-system/theme-get";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -154,7 +154,7 @@ const RadioButtonText = styled("div").withConfig({
|
|
|
154
154
|
paddingLeft: "s",
|
|
155
155
|
fontSize: themeGet("fontSizes.2")(props),
|
|
156
156
|
fontWeight: themeGet("fontWeights.1")(props)
|
|
157
|
-
}));
|
|
157
|
+
}), typography);
|
|
158
158
|
export default function RadioButton(_ref) {
|
|
159
159
|
let {
|
|
160
160
|
name,
|
|
@@ -187,6 +187,7 @@ export default function RadioButton(_ref) {
|
|
|
187
187
|
variant: variant
|
|
188
188
|
})
|
|
189
189
|
}), /*#__PURE__*/_jsx(RadioButtonText, {
|
|
190
|
+
...props,
|
|
190
191
|
children: label
|
|
191
192
|
})]
|
|
192
193
|
})
|