linkup-lib 0.1.13 → 0.1.14
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.
|
@@ -12,6 +12,20 @@ const lu_1 = require("react-icons/lu");
|
|
|
12
12
|
const Component = ({ title, defaultOpen = false, children, required = false }) => {
|
|
13
13
|
// 열림 여부
|
|
14
14
|
const [open, setOpen] = react_1.default.useState(defaultOpen);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("div", {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
16
|
+
border: '1px solid #e4e4e7',
|
|
17
|
+
}, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
|
|
18
|
+
background: "white",
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
padding: '16px 28px'
|
|
23
|
+
}, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
}, children: [(0, jsx_runtime_1.jsx)("p", { style: { fontWeight: 'bold', fontSize: '1rem', lineHeight: '1.5rem' }, children: title }), required && ((0, jsx_runtime_1.jsx)(lu_1.LuAsterisk, { style: { color: "#ef4444", fontSize: '0.75rem', marginBottom: '0.5rem' } }))] }), (0, jsx_runtime_1.jsx)(antd_1.Button, { size: "middle", icon: open ? (0, jsx_runtime_1.jsx)(bs_1.BsChevronUp, {}) : (0, jsx_runtime_1.jsx)(bs_1.BsChevronDown, {}), onClick: () => setOpen(!open) })] }), open && ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
27
|
+
borderTop: '1px solid #e4e4e7',
|
|
28
|
+
background: 'white',
|
|
29
|
+
}, children: children }))] }));
|
|
16
30
|
};
|
|
17
31
|
exports.default = Component;
|
|
@@ -4,10 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const lu_1 = require("react-icons/lu");
|
|
6
6
|
const Component = ({ title, children, required = false, bordered = false }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsxs)("div", {
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
8
|
+
display: 'flex',
|
|
8
9
|
borderBottom: bordered ? '1px solid #E5E5E5' : 'none',
|
|
9
10
|
paddingBottom: bordered ? '16px' : '0px',
|
|
10
11
|
marginBottom: bordered ? '16px' : '0px',
|
|
11
|
-
}, children: [(0, jsx_runtime_1.jsxs)("div", {
|
|
12
|
+
}, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', width: '10rem', paddingTop: '0.25rem' }, children: [(0, jsx_runtime_1.jsx)("p", { children: title }), required && ((0, jsx_runtime_1.jsx)(lu_1.LuAsterisk, { style: { color: "#ef4444", fontSize: '0.75rem', marginBottom: '0.5rem' } }))] }), (0, jsx_runtime_1.jsx)("div", { style: { flex: 1 }, children: children })] }));
|
|
12
13
|
};
|
|
13
14
|
exports.default = Component;
|