@team-monolith/cds 1.20.0 → 1.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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  export interface AccordionProps {
3
3
  className?: string;
4
- gap?: number;
4
+ wrapperClassName?: string;
5
5
  icon?: React.ReactNode;
6
6
  title: React.ReactNode;
7
7
  children: React.ReactNode;
@@ -5,12 +5,12 @@ import styled from "@emotion/styled";
5
5
  import { ArrowDownSLineIcon, ArrowUpSLineIcon } from "../icons";
6
6
  /** 배너같이 생겼으나 누를 때마다 하단내용이 접힘(보이지않음)/펼침(보임) 상태가 바뀌는 컴포넌트입니다. */
7
7
  export function Accordion(props) {
8
- const { className, icon, title, children, open = false, onClick, gap = 2, } = props;
8
+ const { className, icon, title, children, open = false, onClick, wrapperClassName, } = props;
9
9
  return (_jsxs("div", Object.assign({ css: css `
10
10
  display: flex;
11
11
  flex-direction: column;
12
- gap: ${gap}px;
13
- ` }, { children: [_jsxs(Container, Object.assign({ className: className, onClick: onClick }, { children: [_jsxs(Title, { children: [icon, title] }), open ? _jsx(ArrowUpSLineIcon, {}) : _jsx(ArrowDownSLineIcon, {})] })), open && children] })));
12
+ gap: 2px;
13
+ `, className: wrapperClassName }, { children: [_jsxs(Container, Object.assign({ className: className, onClick: onClick }, { children: [_jsxs(Title, { children: [icon, title] }), open ? _jsx(ArrowUpSLineIcon, {}) : _jsx(ArrowDownSLineIcon, {})] })), open && children] })));
14
14
  }
15
15
  const Title = styled.div(({ theme }) => css `
16
16
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,