@team-monolith/cds 0.20.0 → 0.21.0

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.
@@ -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 = { checked: checked, spacer: spacer, disabled: disabled, partial: partial, onChange: onChange, inputProps: inputProps };
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) {
@@ -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)
@@ -3,6 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { css } from "@emotion/react";
6
- export var TABLET = function (style) { return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media (max-width: 1279px) {\n ", "\n }\n"], ["\n @media (max-width: 1279px) {\n ", "\n }\n"])), style); };
6
+ export var TABLET = function (style) { return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @container layout-container (width < 1279px) {\n ", "\n }\n"], ["\n @container layout-container (width < 1279px) {\n ", "\n }\n"])), style); };
7
7
  export var MOBILE = function (style) { return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media (max-width: 719px) {\n ", "\n }\n"], ["\n @media (max-width: 719px) {\n ", "\n }\n"])), style); };
8
8
  var templateObject_1, templateObject_2;
@@ -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, } from "../..";
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 './SegmentedControlGroup';
2
- export * from './SegmentedControlButton';
3
- export * from './SegmentedControlSquareButton';
1
+ export * from "./SegmentedControlGroup";
2
+ export * from "./SegmentedControlButton";
3
+ export * from "./SegmentedControlSquareButton";
@@ -1,3 +1,3 @@
1
- export * from './SegmentedControlGroup';
2
- export * from './SegmentedControlButton';
3
- export * from './SegmentedControlSquareButton';
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.20.0",
3
+ "version": "0.21.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,