@team-monolith/cds 0.19.5 → 0.20.1
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/dist/components/Banner.js +1 -1
- package/dist/components/CheckboxInput.js +8 -1
- package/dist/components/Input.js +1 -1
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +1 -1
- package/dist/patterns/SegmentedControl/index.d.ts +3 -3
- package/dist/patterns/SegmentedControl/index.js +3 -3
- package/package.json +1 -2
|
@@ -39,7 +39,7 @@ var COLOR_TO_STYLE = function (theme, color) {
|
|
|
39
39
|
blue: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.primaryContainer, theme.color.container.primaryOnContainer),
|
|
40
40
|
green: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.successContainer, theme.color.container.successOnContainer),
|
|
41
41
|
yellow: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.warningContainer, theme.color.container.warningOnContainer),
|
|
42
|
-
}[color]
|
|
42
|
+
})[color];
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=44-2847&t=bhnL1ombbddld3RQ-0)
|
|
@@ -48,7 +48,14 @@ var CheckboxInput = React.forwardRef(function (props, ref) {
|
|
|
48
48
|
if (!label) {
|
|
49
49
|
return _jsx(Checkbox, __assign({}, props, { ref: ref }));
|
|
50
50
|
}
|
|
51
|
-
var checkboxProps = {
|
|
51
|
+
var checkboxProps = {
|
|
52
|
+
checked: checked,
|
|
53
|
+
spacer: spacer,
|
|
54
|
+
disabled: disabled,
|
|
55
|
+
partial: partial,
|
|
56
|
+
onChange: onChange,
|
|
57
|
+
inputProps: inputProps,
|
|
58
|
+
};
|
|
52
59
|
return (_jsxs(Label, __assign({ className: className, ref: ref }, other, { children: [_jsx(Checkbox, __assign({}, checkboxProps)), _jsx("span", __assign({ css: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n margin-left: 8px;\n "], ["\n margin-left: 8px;\n "]))) }, { children: label }))] })));
|
|
53
60
|
});
|
|
54
61
|
var Checkbox = React.forwardRef(function (props, ref) {
|
package/dist/components/Input.js
CHANGED
|
@@ -45,7 +45,7 @@ var SIZE_TO_FONT_STYLES = function (size) {
|
|
|
45
45
|
small: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: 14px;\n line-height: 20px;\n svg {\n width: 16px;\n height: 16px;\n }\n "], ["\n font-size: 14px;\n line-height: 20px;\n svg {\n width: 16px;\n height: 16px;\n }\n "]))),
|
|
46
46
|
medium: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: 16px;\n line-height: 24px;\n svg {\n width: 16px;\n height: 16px;\n }\n "], ["\n font-size: 16px;\n line-height: 24px;\n svg {\n width: 16px;\n height: 16px;\n }\n "]))),
|
|
47
47
|
large: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 18px;\n line-height: 28px;\n svg {\n width: 18px;\n height: 18px;\n }\n "], ["\n font-size: 18px;\n line-height: 28px;\n svg {\n width: 18px;\n height: 18px;\n }\n "]))),
|
|
48
|
-
}[size]
|
|
48
|
+
})[size];
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-10284&t=HnIfxpf8uR6WmzMW-0)
|
|
@@ -17,7 +17,7 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
|
17
17
|
/** @jsxImportSource @emotion/react */
|
|
18
18
|
import styled from "@emotion/styled";
|
|
19
19
|
import { useContext } from "react";
|
|
20
|
-
import { shadows, SquareButton
|
|
20
|
+
import { shadows, SquareButton } from "../..";
|
|
21
21
|
import { SegmentedControlGroupPropsContext } from "./SegmentedControlGroupPropsContext";
|
|
22
22
|
/**
|
|
23
23
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?node-id=181%3A89883)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./SegmentedControlGroup";
|
|
2
|
+
export * from "./SegmentedControlButton";
|
|
3
|
+
export * from "./SegmentedControlSquareButton";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./SegmentedControlGroup";
|
|
2
|
+
export * from "./SegmentedControlButton";
|
|
3
|
+
export * from "./SegmentedControlSquareButton";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-monolith/cds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"@emotion/react": "^11.8.2",
|
|
9
9
|
"@emotion/styled": "^11.8.1",
|
|
10
10
|
"@mui/material": "^5.13.6",
|
|
11
|
-
"@types/node": "^16.11.26",
|
|
12
11
|
"@types/react": "^17.0.39",
|
|
13
12
|
"@types/react-dom": "^17.0.11",
|
|
14
13
|
"react": "^17.0.2",
|