@team-monolith/cds 1.26.0 → 1.26.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/patterns/Dropdown/{DropdownV2.d.ts → Dropdown.d.ts} +1 -1
- package/dist/patterns/Dropdown/{DropdownV2.js → Dropdown.js} +1 -1
- package/dist/patterns/Dropdown/DropdownContext.d.ts +1 -1
- package/dist/patterns/Dropdown/{DropdownItemV2/DropdownItemV2.d.ts → DropdownItem/DropdownItem.d.ts} +1 -1
- package/dist/patterns/Dropdown/{DropdownItemV2/DropdownItemV2.js → DropdownItem/DropdownItem.js} +1 -1
- package/dist/patterns/Dropdown/DropdownItem/index.d.ts +1 -0
- package/dist/patterns/Dropdown/DropdownItem/index.js +1 -0
- package/dist/patterns/Dropdown/{DropdownItemV2 → DropdownItem}/selected.d.ts +1 -1
- package/dist/patterns/Dropdown/{DropdownMenuV2/DropdownMenuV2.d.ts → DropdownMenu/DropdownMenu.d.ts} +1 -1
- package/dist/patterns/Dropdown/DropdownMenu/index.d.ts +1 -0
- package/dist/patterns/Dropdown/DropdownMenu/index.js +1 -0
- package/dist/patterns/Dropdown/{DropdownMenuV2 → DropdownMenu}/style.js +1 -1
- package/dist/patterns/Dropdown/index.d.ts +3 -3
- package/dist/patterns/Dropdown/index.js +3 -3
- package/package.json +1 -1
- package/dist/patterns/Dropdown/DropdownItemV2/index.d.ts +0 -1
- package/dist/patterns/Dropdown/DropdownItemV2/index.js +0 -1
- package/dist/patterns/Dropdown/DropdownMenuV2/index.d.ts +0 -1
- package/dist/patterns/Dropdown/DropdownMenuV2/index.js +0 -1
- /package/dist/patterns/Dropdown/{DropdownItemV2 → DropdownItem}/selected.js +0 -0
- /package/dist/patterns/Dropdown/{DropdownMenuV2/DropdownMenuV2.js → DropdownMenu/DropdownMenu.js} +0 -0
- /package/dist/patterns/Dropdown/{DropdownMenuV2 → DropdownMenu}/style.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ButtonColor, ButtonSize } from "../..";
|
|
4
|
-
import { DropdownMenuProps } from "./
|
|
4
|
+
import { DropdownMenuProps } from "./DropdownMenu";
|
|
5
5
|
import { SerializedStyles } from "@emotion/react";
|
|
6
6
|
export interface DropdownProps {
|
|
7
7
|
className?: string;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import { forwardRef, useRef, useState } from "react";
|
|
4
4
|
import { Button, ArrowDropDownFillIcon } from "../..";
|
|
5
|
-
import { DropdownMenu } from "./
|
|
5
|
+
import { DropdownMenu } from "./DropdownMenu";
|
|
6
6
|
/**
|
|
7
7
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?type=design&node-id=203-95329&t=FwczLZ1IVvskUVbT-0)
|
|
8
8
|
*/
|
package/dist/patterns/Dropdown/{DropdownItemV2/DropdownItemV2.d.ts → DropdownItem/DropdownItem.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { SerializedStyles } from "@emotion/react";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { CheckboxInputProps } from "../../..";
|
|
5
|
-
import { DropdownMenuProps } from "../
|
|
5
|
+
import { DropdownMenuProps } from "../DropdownMenu";
|
|
6
6
|
export type DropdownItemType = "default" | "danger";
|
|
7
7
|
export type ItemState = Map<string, {
|
|
8
8
|
open: boolean;
|
package/dist/patterns/Dropdown/{DropdownItemV2/DropdownItemV2.js → DropdownItem/DropdownItem.js}
RENAMED
|
@@ -16,7 +16,7 @@ import * as React from "react";
|
|
|
16
16
|
import styled from "@emotion/styled";
|
|
17
17
|
import { CheckboxInput, ArrowRightSLineIcon, HOVER, } from "../../..";
|
|
18
18
|
import { useContext, useRef } from "react";
|
|
19
|
-
import { DropdownMenu } from "../
|
|
19
|
+
import { DropdownMenu } from "../DropdownMenu";
|
|
20
20
|
import DropdownContext from "../DropdownContext";
|
|
21
21
|
import { getSelected, setSelected } from "./selected";
|
|
22
22
|
const TYPE_TO_COLOR = (theme, type) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropdownItem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropdownItem";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ItemState } from "./
|
|
2
|
+
import { ItemState } from "./DropdownItem";
|
|
3
3
|
/** index에 해당하는 아이템의 open state를 리턴합니다. */
|
|
4
4
|
export declare function getSelected(state: ItemState, index: string): boolean;
|
|
5
5
|
/** index에 해당하는 아이템의 open state를 true로 업데이트합니다.
|
package/dist/patterns/Dropdown/{DropdownMenuV2/DropdownMenuV2.d.ts → DropdownMenu/DropdownMenu.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { SerializedStyles } from "@emotion/react";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ModalProps } from "@mui/material";
|
|
4
4
|
import { OriginProps } from "./style";
|
|
5
|
-
import { ItemState } from "../
|
|
5
|
+
import { ItemState } from "../DropdownItem";
|
|
6
6
|
export declare const DROPDOWN_MENU_WIDTH = 124;
|
|
7
7
|
export declare const DROPDOWN_MENU_MAX_HEIGHT = 160;
|
|
8
8
|
export interface DropdownMenuProps extends Omit<ModalProps, "open" | "onClose" | "children"> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropdownMenu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropdownMenu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
|
-
import { DROPDOWN_MENU_WIDTH } from "./
|
|
2
|
+
import { DROPDOWN_MENU_WIDTH } from "./DropdownMenu";
|
|
3
3
|
/** anchor를 기준으로 드롭다운 메뉴 원점 위치 스타일을 리턴합니다. */
|
|
4
4
|
export const ORIGIN_PROPS_TO_POSITION = (anchorOrigin, anchorRect, nested) => {
|
|
5
5
|
const { vertical, horizontal } = anchorOrigin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./Dropdown";
|
|
2
|
+
export * from "./DropdownItem";
|
|
3
|
+
export * from "./DropdownMenu";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./Dropdown";
|
|
2
|
+
export * from "./DropdownItem";
|
|
3
|
+
export * from "./DropdownMenu";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DropdownItemV2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DropdownItemV2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DropdownMenuV2";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DropdownMenuV2";
|
|
File without changes
|
/package/dist/patterns/Dropdown/{DropdownMenuV2/DropdownMenuV2.js → DropdownMenu/DropdownMenu.js}
RENAMED
|
File without changes
|
|
File without changes
|