@team-monolith/cds 1.55.0 → 1.55.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.
@@ -11,6 +11,7 @@ export interface SettingFormData {
11
11
  }
12
12
  /** 자기평가 edit의 설정 컴포넌트입니다. */
13
13
  export declare function SettingForm(props: {
14
+ className?: string;
14
15
  iconType: IconType;
15
16
  labels: string[];
16
17
  descriptions: string[];
@@ -7,12 +7,11 @@ import { useFieldArray, useForm } from "react-hook-form";
7
7
  import styled from "@emotion/styled";
8
8
  import { css } from "@emotion/react";
9
9
  import { AddFillIcon, Button, EmojiStickerLineIcon, shadows, } from "../../../../../../..";
10
- import { EVALUATION_EDIT_WIDTH } from "../../EvaluationComponent";
11
10
  import { FormIconAndLabel } from "./FormIconAndLabel";
12
11
  import { FormDescription } from "./FormDescription";
13
12
  /** 자기평가 edit의 설정 컴포넌트입니다. */
14
13
  export function SettingForm(props) {
15
- const { iconType, labels, descriptions, nodeKey, onClose } = props;
14
+ const { className, iconType, labels, descriptions, nodeKey, onClose } = props;
16
15
  const [editor] = useLexicalComposerContext();
17
16
  const { control, handleSubmit } = useForm({
18
17
  mode: "all",
@@ -39,7 +38,7 @@ export function SettingForm(props) {
39
38
  });
40
39
  onClose();
41
40
  };
42
- return (_jsxs(Form, Object.assign({ onSubmit: handleSubmit(onSubmit) }, { children: [_jsxs(Title, { children: [_jsx(EmojiStickerLineIcon, { css: css `
41
+ return (_jsxs(Form, Object.assign({ className: className, onSubmit: handleSubmit(onSubmit) }, { children: [_jsxs(Title, { children: [_jsx(EmojiStickerLineIcon, { css: css `
43
42
  width: 12px;
44
43
  height: 12px;
45
44
  ` }), "3\uB2E8\uACC4 \uD3C9\uAC00"] }), _jsxs(Content, { children: [_jsxs(Left, { children: [_jsx(Label, { children: "\uD3C9\uAC00 \uD56D\uBAA9" }), fields.map((field, index) => (_jsx(FormDescription, { index: index, control: control, rules: {
@@ -54,7 +53,6 @@ export function SettingForm(props) {
54
53
  }
55
54
  const Form = styled.form(({ theme }) => css `
56
55
  display: flex;
57
- width: ${EVALUATION_EDIT_WIDTH}px;
58
56
  flex-direction: column;
59
57
  border-radius: 6px;
60
58
  border: 1px solid ${theme.color.background.neutralAltActive};
@@ -1,7 +1,6 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { NodeKey } from "lexical";
3
3
  import { IconType } from "../SelfEvaluationNode";
4
- export declare const EVALUATION_EDIT_WIDTH = 620;
5
4
  /** SelfEvaluationNode를 그리는 컴포넌트입니다. */
6
5
  export declare function EvaluationComponent(props: {
7
6
  iconType: IconType;
@@ -11,7 +11,7 @@ import { ICON_DATA } from "../iconData";
11
11
  import { css, useTheme } from "@emotion/react";
12
12
  import SquareButton from "../../../../../components/SquareButton";
13
13
  import { Settings3FillIcon } from "../../../../../icons";
14
- export const EVALUATION_EDIT_WIDTH = 620;
14
+ const EVALUATION_EDIT_WIDTH = 620;
15
15
  /** SelfEvaluationNode를 그리는 컴포넌트입니다. */
16
16
  export function EvaluationComponent(props) {
17
17
  const { iconType, labels, descriptions, selectedLabelIndexes, nodeKey } = props;
@@ -43,5 +43,7 @@ export function EvaluationComponent(props) {
43
43
  width: ${EVALUATION_EDIT_WIDTH}px;
44
44
  `, icons: icons, labels: labels, descriptions: descriptions, selectedLabelIndexes: selectedLabelIndexes, onClick: () => setSettingOpen((open) => !open) }), _jsx(SquareButton, { size: "small", color: "icon", icon: _jsx(Settings3FillIcon, {}), onClick: () => {
45
45
  setSettingOpen((open) => !open);
46
- } })] })), settingOpen && (_jsx(SettingForm, { iconType: iconType, labels: labels, descriptions: descriptions, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
46
+ } })] })), settingOpen && (_jsx(SettingForm, { css: css `
47
+ width: ${EVALUATION_EDIT_WIDTH}px;
48
+ `, iconType: iconType, labels: labels, descriptions: descriptions, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
47
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,