@nurihaus/web-design-system 3.9.5 → 3.11.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.
- package/README.md +4 -4
- package/dist/ai/components.md +88 -19
- package/dist/ai/tokens.md +35 -33
- package/dist/chip-group.js +110 -24
- package/dist/chunk-7232.js +2 -2
- package/dist/chunk-7653.js +20 -0
- package/dist/{chunk-674.js → chunk-7687.js} +2 -56
- package/dist/{chunk-7460.js → chunk-7829.js} +39 -2
- package/dist/components/chip-group/base-chip-group.d.ts +2 -2
- package/dist/components/chip-group/chip-group-type.d.ts +29 -5
- package/dist/components/chip-group/chip-group.stories.d.ts +4 -1
- package/dist/components/drawer/drawer-props.d.ts +7 -0
- package/dist/components/drawer/drawer-type.d.ts +6 -1
- package/dist/components/drawer/drawer.stories.d.ts +8 -0
- package/dist/components/icon/icon-paths.d.ts +20 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +1 -1
- package/dist/components/list/list-row.stories.d.ts +9 -2
- package/dist/components/list/list-type.d.ts +10 -0
- package/dist/components/message/message.stories.d.ts +3 -3
- package/dist/components/notice/notice-props.d.ts +8 -0
- package/dist/components/notice/notice-type.d.ts +4 -2
- package/dist/components/notice/notice.stories.d.ts +11 -2
- package/dist/components/skeleton/skeleton-group-type.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +1 -1
- package/dist/components.css +96 -2
- package/dist/drawer.js +7 -0
- package/dist/index.js +346 -133
- package/dist/list-row.js +78 -175
- package/dist/notice.js +8 -0
- package/dist/overlay.js +28 -26
- package/dist/radio.js +2 -0
- package/dist/skeleton-group.js +78 -25
- package/dist/skeleton.js +2 -1
- package/dist/styles/token/colors.d.ts +1 -1
- package/dist/styles.css +111 -34
- package/dist/toast.js +29 -27
- package/dist/tokens/generated/colors.d.ts +1 -1
- package/dist/tokens/generated/primitive.d.ts +3 -1
- package/dist/tokens/generated/semantic-app.d.ts +19 -19
- package/dist/tokens.css +34 -32
- package/dist/tokens.js +28 -26
- package/package.json +1 -1
package/dist/chip-group.js
CHANGED
|
@@ -53,12 +53,25 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
53
53
|
var ChipGroupRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
54
54
|
var children = props.children,
|
|
55
55
|
className = props.className,
|
|
56
|
+
type = props.type,
|
|
56
57
|
value = props.value,
|
|
57
58
|
_onValueChange = props.onValueChange,
|
|
58
|
-
restProps = __rest(props, ["children", "className", "value", "onValueChange"]);
|
|
59
|
+
restProps = __rest(props, ["children", "className", "type", "value", "onValueChange"]);
|
|
60
|
+
var rootClassName = (0,classNames/* classNames */.x)('nuri-theme base-chip-group root', type, className);
|
|
61
|
+
if (type === 'multiple') {
|
|
62
|
+
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.ToggleGroup.Root, __assign({
|
|
63
|
+
ref: ref,
|
|
64
|
+
className: rootClassName,
|
|
65
|
+
type: 'multiple',
|
|
66
|
+
value: value,
|
|
67
|
+
onValueChange: _onValueChange
|
|
68
|
+
}, restProps, {
|
|
69
|
+
children: children
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
59
72
|
return (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.ToggleGroup.Root, __assign({
|
|
60
73
|
ref: ref,
|
|
61
|
-
className:
|
|
74
|
+
className: rootClassName,
|
|
62
75
|
type: 'single',
|
|
63
76
|
value: value,
|
|
64
77
|
// 고른 칩을 다시 눌러도 풀리지 않는다 — 필터는 늘 하나가 골라져 있다
|
|
@@ -116,14 +129,6 @@ var chip_group_assign = undefined && undefined.__assign || function () {
|
|
|
116
129
|
};
|
|
117
130
|
return chip_group_assign.apply(this, arguments);
|
|
118
131
|
};
|
|
119
|
-
var chip_group_rest = undefined && undefined.__rest || function (s, e) {
|
|
120
|
-
var t = {};
|
|
121
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
122
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
123
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
124
|
-
}
|
|
125
|
-
return t;
|
|
126
|
-
};
|
|
127
132
|
|
|
128
133
|
|
|
129
134
|
|
|
@@ -132,7 +137,21 @@ var chip_group_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
132
137
|
|
|
133
138
|
|
|
134
139
|
|
|
135
|
-
var
|
|
140
|
+
var chipClassName = function chipClassName(pressEffect) {
|
|
141
|
+
return (0,classNames/* classNames */.x)('chip-group-chip', pressEffect && 'motion-press motion-press-dim');
|
|
142
|
+
};
|
|
143
|
+
var ChipLabel = function ChipLabel(props) {
|
|
144
|
+
var item = props.item;
|
|
145
|
+
return (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
146
|
+
children: [item.label, item.count !== undefined && (0,jsx_runtime_.jsx)("span", {
|
|
147
|
+
className: 'chip-group-count',
|
|
148
|
+
children: item.count
|
|
149
|
+
})]
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
ChipLabel.displayName = 'ChipLabel';
|
|
153
|
+
/** 하나를 골라 목록을 거르는 필터. 늘 하나가 골라져 있다 */
|
|
154
|
+
var SingleChipGroup = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
136
155
|
var _a, _b;
|
|
137
156
|
var _c = (0,getMergedProps/* getMergedProps */.p)(props, chipGroupProps),
|
|
138
157
|
className = _c.className,
|
|
@@ -145,8 +164,7 @@ var ChipGroup = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
145
164
|
track = _c.track,
|
|
146
165
|
trackProps = _c.trackProps,
|
|
147
166
|
_d = _c.pressEffect,
|
|
148
|
-
pressEffect = _d === void 0 ? true : _d
|
|
149
|
-
restProps = chip_group_rest(_c, ["className", "style", "items", "value", "defaultValue", "onValueChange", "label", "track", "trackProps", "pressEffect"]);
|
|
167
|
+
pressEffect = _d === void 0 ? true : _d;
|
|
150
168
|
var emit = (0,useTrack/* useTrack */.n)('ChipGroup', {
|
|
151
169
|
track: track,
|
|
152
170
|
trackProps: trackProps
|
|
@@ -161,26 +179,94 @@ var ChipGroup = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
161
179
|
}),
|
|
162
180
|
selected = _e[0],
|
|
163
181
|
setSelected = _e[1];
|
|
164
|
-
return (0,jsx_runtime_.jsx)(base_chip_group,
|
|
182
|
+
return (0,jsx_runtime_.jsx)(base_chip_group, {
|
|
165
183
|
ref: ref,
|
|
166
184
|
className: (0,classNames/* classNames */.x)(className, 'chip-group'),
|
|
167
185
|
style: style,
|
|
168
186
|
value: selected,
|
|
169
187
|
onValueChange: setSelected,
|
|
170
|
-
"aria-label": label
|
|
171
|
-
}, restProps, {
|
|
188
|
+
"aria-label": label,
|
|
172
189
|
children: items.map(function (item) {
|
|
173
|
-
return (0,jsx_runtime_.
|
|
174
|
-
className: (
|
|
190
|
+
return (0,jsx_runtime_.jsx)(base_chip_group.Chip, {
|
|
191
|
+
className: chipClassName(pressEffect),
|
|
175
192
|
value: item.id,
|
|
176
193
|
disabled: item.disabled,
|
|
177
|
-
children:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
})]
|
|
194
|
+
children: (0,jsx_runtime_.jsx)(ChipLabel, {
|
|
195
|
+
item: item
|
|
196
|
+
})
|
|
181
197
|
}, item.id);
|
|
182
198
|
})
|
|
183
|
-
})
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
SingleChipGroup.displayName = 'SingleChipGroup';
|
|
202
|
+
/** 여러 개를 고르는 입력. max 가 차면 안 고른 칩을 잠근다 */
|
|
203
|
+
var MultipleChipGroup = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
204
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, chipGroupProps),
|
|
205
|
+
className = _a.className,
|
|
206
|
+
style = _a.style,
|
|
207
|
+
items = _a.items,
|
|
208
|
+
value = _a.value,
|
|
209
|
+
defaultValue = _a.defaultValue,
|
|
210
|
+
onValueChange = _a.onValueChange,
|
|
211
|
+
label = _a.label,
|
|
212
|
+
max = _a.max,
|
|
213
|
+
track = _a.track,
|
|
214
|
+
trackProps = _a.trackProps,
|
|
215
|
+
_b = _a.pressEffect,
|
|
216
|
+
pressEffect = _b === void 0 ? true : _b;
|
|
217
|
+
var emit = (0,useTrack/* useTrack */.n)('ChipGroup', {
|
|
218
|
+
track: track,
|
|
219
|
+
trackProps: trackProps
|
|
220
|
+
});
|
|
221
|
+
var _c = (0,useExternalState/* useExternalState */.C)({
|
|
222
|
+
prop: value,
|
|
223
|
+
handler: function handler(ids) {
|
|
224
|
+
return onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(ids);
|
|
225
|
+
},
|
|
226
|
+
defaultProp: defaultValue !== null && defaultValue !== void 0 ? defaultValue : []
|
|
227
|
+
}),
|
|
228
|
+
selected = _c[0],
|
|
229
|
+
setSelected = _c[1];
|
|
230
|
+
var full = max !== undefined && selected.length >= max;
|
|
231
|
+
var toggle = function toggle(next) {
|
|
232
|
+
// 로그는 이번에 누른 칩 하나 — 더해졌으면 그 id, 빠졌으면 빠진 id
|
|
233
|
+
var added = next.find(function (id) {
|
|
234
|
+
return !selected.includes(id);
|
|
235
|
+
});
|
|
236
|
+
var removed = selected.find(function (id) {
|
|
237
|
+
return !next.includes(id);
|
|
238
|
+
});
|
|
239
|
+
var pressed = added !== null && added !== void 0 ? added : removed;
|
|
240
|
+
if (pressed) emit('change', pressed);
|
|
241
|
+
setSelected(next);
|
|
242
|
+
};
|
|
243
|
+
return (0,jsx_runtime_.jsx)(base_chip_group, {
|
|
244
|
+
ref: ref,
|
|
245
|
+
className: (0,classNames/* classNames */.x)(className, 'chip-group'),
|
|
246
|
+
style: style,
|
|
247
|
+
type: 'multiple',
|
|
248
|
+
value: selected,
|
|
249
|
+
onValueChange: toggle,
|
|
250
|
+
"aria-label": label,
|
|
251
|
+
children: items.map(function (item) {
|
|
252
|
+
return (0,jsx_runtime_.jsx)(base_chip_group.Chip, {
|
|
253
|
+
className: chipClassName(pressEffect),
|
|
254
|
+
value: item.id,
|
|
255
|
+
disabled: item.disabled || full && !selected.includes(item.id),
|
|
256
|
+
children: (0,jsx_runtime_.jsx)(ChipLabel, {
|
|
257
|
+
item: item
|
|
258
|
+
})
|
|
259
|
+
}, item.id);
|
|
260
|
+
})
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
MultipleChipGroup.displayName = 'MultipleChipGroup';
|
|
264
|
+
var ChipGroup = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
265
|
+
return props.multiple ? (0,jsx_runtime_.jsx)(MultipleChipGroup, chip_group_assign({
|
|
266
|
+
ref: ref
|
|
267
|
+
}, props)) : (0,jsx_runtime_.jsx)(SingleChipGroup, chip_group_assign({
|
|
268
|
+
ref: ref
|
|
269
|
+
}, props));
|
|
184
270
|
});
|
|
185
271
|
ChipGroup.displayName = 'ChipGroup';
|
|
186
272
|
/* harmony default export */ const chip_group = (ChipGroup);
|
|
@@ -216,7 +302,7 @@ var x = (y) => {
|
|
|
216
302
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
217
303
|
}
|
|
218
304
|
var y = (x) => (() => (x))
|
|
219
|
-
module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
|
|
305
|
+
module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.Fragment), ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
|
|
220
306
|
|
|
221
307
|
/***/ }
|
|
222
308
|
|
package/dist/chunk-7232.js
CHANGED
|
@@ -9,7 +9,7 @@ export const __webpack_esm_modules__ = {
|
|
|
9
9
|
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
10
|
/* harmony export */ T: () => (/* binding */ colors)
|
|
11
11
|
/* harmony export */ });
|
|
12
|
-
// tokens/
|
|
12
|
+
// tokens/tokens.json 에서 생성됨 — 손으로 고치지 않는다. `npm run tokens`
|
|
13
13
|
/** @deprecated `primitive` 를 쓴다. 2.x 호환으로 남겨둔 평평한 색상 맵. */
|
|
14
14
|
var colors = {
|
|
15
15
|
"transparent": "transparent",
|
|
@@ -28,7 +28,7 @@ var colors = {
|
|
|
28
28
|
"grey-scale-200": "#E4E4E7",
|
|
29
29
|
"grey-scale-300": "#D4D4D8",
|
|
30
30
|
"grey-scale-400": "#A1A1AA",
|
|
31
|
-
"grey-scale-500": "#
|
|
31
|
+
"grey-scale-500": "#6D6D76",
|
|
32
32
|
"grey-scale-600": "#52525B",
|
|
33
33
|
"grey-scale-700": "#3F3F46",
|
|
34
34
|
"grey-scale-800": "#27272A",
|
package/dist/chunk-7653.js
CHANGED
|
@@ -226,6 +226,18 @@ var iconPaths = {
|
|
|
226
226
|
regular: ['M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'],
|
|
227
227
|
fill: ['M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z']
|
|
228
228
|
},
|
|
229
|
+
'dots-six-vertical': {
|
|
230
|
+
regular: ['M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z'],
|
|
231
|
+
fill: ['M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z']
|
|
232
|
+
},
|
|
233
|
+
'envelope-simple': {
|
|
234
|
+
regular: ['M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z'],
|
|
235
|
+
fill: ['M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z']
|
|
236
|
+
},
|
|
237
|
+
phone: {
|
|
238
|
+
regular: ['M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z'],
|
|
239
|
+
fill: ['M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z']
|
|
240
|
+
},
|
|
229
241
|
backspace: {
|
|
230
242
|
regular: ['M216,40H68.53a16.08,16.08,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11A16.08,16.08,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM61.67,204.12,68.53,200h0ZM216,200H68.53l-43.2-72,43.2-72H216ZM106.34,146.34,124.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128l18.35,18.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32Z'],
|
|
231
243
|
fill: ['M216,40H68.53a16.12,16.12,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11h0A16.11,16.11,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM165.66,146.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.35,18.35a8,8,0,0,1-11.31-11.32L124.69,128l-18.35-18.34a8,8,0,1,1,11.31-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128Z']
|
|
@@ -245,6 +257,14 @@ var iconPaths = {
|
|
|
245
257
|
'youtube-logo': {
|
|
246
258
|
regular: ['M164.44,121.34l-48-32A8,8,0,0,0,104,96v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,145.05V111l25.58,17ZM234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-15.49,113a8,8,0,0,1-4.77,5.49c-31.65,12.22-85.48,12-86,12H128c-.54,0-54.33.2-86-12a8,8,0,0,1-4.77-5.49C34.8,173.39,32,156.57,32,128s2.8-45.39,5.16-54.47A8,8,0,0,1,41.93,68c30.52-11.79,81.66-12,85.85-12h.27c.54,0,54.38-.18,86,12a8,8,0,0,1,4.77,5.49C221.2,82.61,224,99.43,224,128S221.2,173.39,218.84,182.47Z'],
|
|
247
259
|
fill: ['M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z']
|
|
260
|
+
},
|
|
261
|
+
'whatsapp-logo': {
|
|
262
|
+
regular: ['M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z'],
|
|
263
|
+
fill: ['M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z']
|
|
264
|
+
},
|
|
265
|
+
'telegram-logo': {
|
|
266
|
+
regular: ['M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19Zm-61.14,36L78.15,126.35l-49.6-9.73ZM88,200V152.52l24.79,21.74Zm87.53,8L92.85,135.5l119-85.29Z'],
|
|
267
|
+
fill: ['M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19ZM175.53,208,92.85,135.5l119-85.29Z']
|
|
248
268
|
}
|
|
249
269
|
};
|
|
250
270
|
;// ./components/icon/base-icon.tsx
|
|
@@ -1,62 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export const __webpack_esm_id__ =
|
|
3
|
-
export const __webpack_esm_ids__ = [
|
|
2
|
+
export const __webpack_esm_id__ = 7687;
|
|
3
|
+
export const __webpack_esm_ids__ = [7687];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
|
-
/***/ 3008
|
|
7
|
-
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
-
|
|
9
|
-
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
-
/* harmony export */ G: () => (/* binding */ PATTERNS)
|
|
11
|
-
/* harmony export */ });
|
|
12
|
-
/* unused harmony export patterns */
|
|
13
|
-
var patterns = (/* unused pure expression or super */ null && (['list', 'listWithIcon', 'titleList', 'card', 'table']));
|
|
14
|
-
var tableRow = {
|
|
15
|
-
kind: 'row',
|
|
16
|
-
items: [{
|
|
17
|
-
kind: 'rect'
|
|
18
|
-
}, {
|
|
19
|
-
kind: 'rect'
|
|
20
|
-
}, {
|
|
21
|
-
kind: 'rect'
|
|
22
|
-
}, {
|
|
23
|
-
kind: 'rect'
|
|
24
|
-
}]
|
|
25
|
-
};
|
|
26
|
-
/** 패턴마다 위에서부터 그릴 블록. repeat 은 마지막 블록을 되풀이한다 */
|
|
27
|
-
var PATTERNS = {
|
|
28
|
-
list: [{
|
|
29
|
-
kind: 'text',
|
|
30
|
-
lines: 1
|
|
31
|
-
}],
|
|
32
|
-
listWithIcon: [{
|
|
33
|
-
kind: 'row',
|
|
34
|
-
items: [{
|
|
35
|
-
kind: 'circle'
|
|
36
|
-
}, {
|
|
37
|
-
kind: 'text',
|
|
38
|
-
lines: 2
|
|
39
|
-
}]
|
|
40
|
-
}],
|
|
41
|
-
titleList: [{
|
|
42
|
-
kind: 'title'
|
|
43
|
-
}, {
|
|
44
|
-
kind: 'text',
|
|
45
|
-
lines: 1
|
|
46
|
-
}],
|
|
47
|
-
card: [{
|
|
48
|
-
kind: 'card'
|
|
49
|
-
}, {
|
|
50
|
-
kind: 'title'
|
|
51
|
-
}, {
|
|
52
|
-
kind: 'text',
|
|
53
|
-
lines: 1
|
|
54
|
-
}],
|
|
55
|
-
table: [tableRow, tableRow]
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/***/ },
|
|
59
|
-
|
|
60
6
|
/***/ 7687
|
|
61
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
62
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export const __webpack_esm_id__ =
|
|
3
|
-
export const __webpack_esm_ids__ = [
|
|
2
|
+
export const __webpack_esm_id__ = 7829;
|
|
3
|
+
export const __webpack_esm_ids__ = [7829];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
6
|
/***/ 6386
|
|
@@ -36,6 +36,43 @@ var SvgExclamation = function SvgExclamation(props) {
|
|
|
36
36
|
|
|
37
37
|
/***/ },
|
|
38
38
|
|
|
39
|
+
/***/ 7050
|
|
40
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
41
|
+
|
|
42
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
43
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
44
|
+
/* harmony export */ });
|
|
45
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
46
|
+
var _path, _path2, _path3;
|
|
47
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48
|
+
|
|
49
|
+
var SvgExclamationCircle = function SvgExclamationCircle(props) {
|
|
50
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
+
width: 16,
|
|
53
|
+
height: 16,
|
|
54
|
+
fill: "none",
|
|
55
|
+
viewBox: "0 0 16 16"
|
|
56
|
+
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
57
|
+
stroke: "#fff",
|
|
58
|
+
strokeWidth: 1.5,
|
|
59
|
+
d: "M14.25 8a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"
|
|
60
|
+
})), _path2 || (_path2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
61
|
+
stroke: "#fff",
|
|
62
|
+
strokeLinecap: "round",
|
|
63
|
+
strokeWidth: 1.5,
|
|
64
|
+
d: "M8 5v3.5"
|
|
65
|
+
})), _path3 || (_path3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
66
|
+
stroke: "#fff",
|
|
67
|
+
strokeLinecap: "round",
|
|
68
|
+
strokeWidth: 2,
|
|
69
|
+
d: "M8 11h.01"
|
|
70
|
+
})));
|
|
71
|
+
};
|
|
72
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgExclamationCircle);
|
|
73
|
+
|
|
74
|
+
/***/ },
|
|
75
|
+
|
|
39
76
|
/***/ 7413
|
|
40
77
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
41
78
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChipGroupChipProps
|
|
2
|
-
declare const ChipGroupRoot: import("react").ForwardRefExoticComponent<Omit<
|
|
1
|
+
import { ChipGroupChipProps } from './chip-group-type';
|
|
2
|
+
declare const ChipGroupRoot: import("react").ForwardRefExoticComponent<(Omit<import("./chip-group-type").ChipGroupSingleRootProps, "ref"> | Omit<import("./chip-group-type").ChipGroupMultipleRootProps, "ref">) & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
3
|
Chip: import("react").ForwardRefExoticComponent<Omit<ChipGroupChipProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
};
|
|
5
5
|
export default ChipGroupRoot;
|
|
@@ -10,21 +10,45 @@ export interface ChipGroupItem {
|
|
|
10
10
|
count?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface ChipGroupCommonProps extends StyleProps, TrackProps, PressEffectProps {
|
|
14
14
|
items: ChipGroupItem[];
|
|
15
|
-
value?: string;
|
|
16
|
-
defaultValue?: string;
|
|
17
|
-
onValueChange?: (id: string) => void;
|
|
18
15
|
/** 'aria-label' 로 붙는다 (예: '캠페인 종류') */
|
|
19
16
|
label: string;
|
|
20
17
|
variant?: (typeof variant)[number];
|
|
21
18
|
size?: (typeof sizes)[number];
|
|
22
19
|
}
|
|
23
|
-
|
|
20
|
+
/** 하나를 골라 목록을 거르는 필터 (기본). 늘 하나가 골라져 있다 */
|
|
21
|
+
export interface ChipGroupSingleProps extends ChipGroupCommonProps {
|
|
22
|
+
multiple?: false;
|
|
23
|
+
value?: string;
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
onValueChange?: (id: string) => void;
|
|
26
|
+
max?: never;
|
|
27
|
+
}
|
|
28
|
+
/** 여러 개를 고르는 입력. 고른 칩을 다시 누르면 풀린다. 칩은 줄을 바꿔 늘어놓는다 */
|
|
29
|
+
export interface ChipGroupMultipleProps extends ChipGroupCommonProps {
|
|
30
|
+
multiple: true;
|
|
31
|
+
value?: string[];
|
|
32
|
+
defaultValue?: string[];
|
|
33
|
+
onValueChange?: (ids: string[]) => void;
|
|
34
|
+
/** 고를 수 있는 최대 개수. 다 차면 안 고른 칩을 잠근다 */
|
|
35
|
+
max?: number;
|
|
36
|
+
}
|
|
37
|
+
export type ChipGroupProps = ChipGroupSingleProps | ChipGroupMultipleProps;
|
|
38
|
+
type ChipGroupRootCommonProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'dir'>;
|
|
39
|
+
export interface ChipGroupSingleRootProps extends ChipGroupRootCommonProps {
|
|
40
|
+
type?: 'single';
|
|
24
41
|
value: string;
|
|
25
42
|
onValueChange: (id: string) => void;
|
|
26
43
|
}
|
|
44
|
+
export interface ChipGroupMultipleRootProps extends ChipGroupRootCommonProps {
|
|
45
|
+
type: 'multiple';
|
|
46
|
+
value: string[];
|
|
47
|
+
onValueChange: (ids: string[]) => void;
|
|
48
|
+
}
|
|
49
|
+
export type ChipGroupRootProps = ChipGroupSingleRootProps | ChipGroupMultipleRootProps;
|
|
27
50
|
export interface ChipGroupChipProps extends Omit<ComponentPropsWithRef<'button'>, 'value'> {
|
|
28
51
|
value: string;
|
|
29
52
|
disabled?: boolean;
|
|
30
53
|
}
|
|
54
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import type { ChipGroupProps } from './chip-group-type';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
parameters: {
|
|
@@ -8,7 +9,7 @@ declare const meta: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
|
-
component: import("react").ForwardRefExoticComponent<
|
|
12
|
+
component: import("react").ForwardRefExoticComponent<ChipGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
13
|
argTypes: {
|
|
13
14
|
variant: {
|
|
14
15
|
control: {
|
|
@@ -55,3 +56,5 @@ export declare const Sizes: Story;
|
|
|
55
56
|
export declare const InCard: Story;
|
|
56
57
|
/** 칩을 누르고 있으면 줄어들고 어두워진다. 아래는 pressEffect={false} */
|
|
57
58
|
export declare const MotionPress: Story;
|
|
59
|
+
/** 여러 개 고르기(multiple). 프로필 카테고리처럼 3개까지 고르는 시트 안 입력이다. 다 차면 안 고른 칩이 잠기고, 고른 칩을 다시 누르면 풀린다. 칩은 줄을 바꿔 늘어놓는다. */
|
|
60
|
+
export declare const Multiple: Story;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const sizes: readonly ["s", "m", "l"];
|
|
2
2
|
export declare const sides: readonly ["right", "left", "bottom"];
|
|
3
|
+
export declare const fits: readonly ["size", "content", "screen"];
|
|
3
4
|
export declare const drawerContentProps: {
|
|
4
5
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
|
|
5
6
|
side: {
|
|
@@ -8,4 +9,10 @@ export declare const drawerContentProps: {
|
|
|
8
9
|
values: readonly ["right", "left", "bottom"];
|
|
9
10
|
default: "right";
|
|
10
11
|
};
|
|
12
|
+
fit: {
|
|
13
|
+
type: "className";
|
|
14
|
+
className: string;
|
|
15
|
+
values: readonly ["size", "content", "screen"];
|
|
16
|
+
default: "size";
|
|
17
|
+
};
|
|
11
18
|
};
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import { EnterMotionProps, PresenceCallbackProps } from '../../helpers/motion/motion-props';
|
|
3
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
4
4
|
import { TrackProps } from '../logging/logging-type';
|
|
5
|
-
import { sides, sizes } from './drawer-props';
|
|
5
|
+
import { fits, sides, sizes } from './drawer-props';
|
|
6
6
|
export interface DrawerRootProps {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
defaultOpen?: boolean;
|
|
@@ -32,6 +32,11 @@ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps, En
|
|
|
32
32
|
footer?: ReactNode;
|
|
33
33
|
side?: (typeof sides)[number];
|
|
34
34
|
size?: (typeof sizes)[number];
|
|
35
|
+
/** side="bottom" 의 높이를 정하는 법. 기본 'size'. right·left 는 이미 화면 높이라 효과가 없다.
|
|
36
|
+
* 'size' — size(s 320 · m 400 · l 520) 고정 높이
|
|
37
|
+
* 'content' — 내용 높이. --sheet-max-height(92dvh)를 넘으면 본문만 스크롤하고 footer 는 아래에 남는다
|
|
38
|
+
* 'screen' — --sheet-max-height(92dvh) 고정. 본문이 높이를 다 써야 할 때 */
|
|
39
|
+
fit?: (typeof fits)[number];
|
|
35
40
|
showCloseIcon?: boolean;
|
|
36
41
|
/** false 면 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. 기본 true */
|
|
37
42
|
closeOnOverlayClick?: boolean;
|
|
@@ -22,6 +22,12 @@ declare const meta: {
|
|
|
22
22
|
};
|
|
23
23
|
options: readonly ["s", "m", "l"];
|
|
24
24
|
};
|
|
25
|
+
fit: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select";
|
|
28
|
+
};
|
|
29
|
+
options: readonly ["size", "content", "screen"];
|
|
30
|
+
};
|
|
25
31
|
};
|
|
26
32
|
args: {
|
|
27
33
|
title: string;
|
|
@@ -37,6 +43,8 @@ export declare const Default: Story;
|
|
|
37
43
|
export declare const Sides: Story;
|
|
38
44
|
/** 크기별 열기 버튼이다. 서랍 폭 차이를 본다. */
|
|
39
45
|
export declare const Sizes: Story;
|
|
46
|
+
/** 아래 서랍의 높이 맞추기다. content 는 짧은 본문에 맞춰 낮고, screen 은 화면의 92% 를 쓴다. 버튼 줄은 늘 아래에 있다. */
|
|
47
|
+
export declare const Fits: Story;
|
|
40
48
|
/** 화면 아래에서 올라오는 서랍이다. */
|
|
41
49
|
export declare const Bottom: Story;
|
|
42
50
|
/** 설명 문구와 취소·저장 버튼 줄을 단 서랍이다. 제목 아래 설명과 아래쪽 버튼 줄 배치를 본다. */
|
|
@@ -203,6 +203,18 @@ export declare const iconPaths: {
|
|
|
203
203
|
readonly regular: readonly ["M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
204
204
|
readonly fill: readonly ["M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
205
205
|
};
|
|
206
|
+
readonly 'dots-six-vertical': {
|
|
207
|
+
readonly regular: readonly ["M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"];
|
|
208
|
+
readonly fill: readonly ["M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"];
|
|
209
|
+
};
|
|
210
|
+
readonly 'envelope-simple': {
|
|
211
|
+
readonly regular: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
212
|
+
readonly fill: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
213
|
+
};
|
|
214
|
+
readonly phone: {
|
|
215
|
+
readonly regular: readonly ["M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"];
|
|
216
|
+
readonly fill: readonly ["M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"];
|
|
217
|
+
};
|
|
206
218
|
readonly backspace: {
|
|
207
219
|
readonly regular: readonly ["M216,40H68.53a16.08,16.08,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11A16.08,16.08,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM61.67,204.12,68.53,200h0ZM216,200H68.53l-43.2-72,43.2-72H216ZM106.34,146.34,124.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128l18.35,18.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32Z"];
|
|
208
220
|
readonly fill: readonly ["M216,40H68.53a16.12,16.12,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11h0A16.11,16.11,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM165.66,146.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.35,18.35a8,8,0,0,1-11.31-11.32L124.69,128l-18.35-18.34a8,8,0,1,1,11.31-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128Z"];
|
|
@@ -223,4 +235,12 @@ export declare const iconPaths: {
|
|
|
223
235
|
readonly regular: readonly ["M164.44,121.34l-48-32A8,8,0,0,0,104,96v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,145.05V111l25.58,17ZM234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-15.49,113a8,8,0,0,1-4.77,5.49c-31.65,12.22-85.48,12-86,12H128c-.54,0-54.33.2-86-12a8,8,0,0,1-4.77-5.49C34.8,173.39,32,156.57,32,128s2.8-45.39,5.16-54.47A8,8,0,0,1,41.93,68c30.52-11.79,81.66-12,85.85-12h.27c.54,0,54.38-.18,86,12a8,8,0,0,1,4.77,5.49C221.2,82.61,224,99.43,224,128S221.2,173.39,218.84,182.47Z"];
|
|
224
236
|
readonly fill: readonly ["M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z"];
|
|
225
237
|
};
|
|
238
|
+
readonly 'whatsapp-logo': {
|
|
239
|
+
readonly regular: readonly ["M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"];
|
|
240
|
+
readonly fill: readonly ["M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z"];
|
|
241
|
+
};
|
|
242
|
+
readonly 'telegram-logo': {
|
|
243
|
+
readonly regular: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19Zm-61.14,36L78.15,126.35l-49.6-9.73ZM88,200V152.52l24.79,21.74Zm87.53,8L92.85,135.5l119-85.29Z"];
|
|
244
|
+
readonly fill: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19ZM175.53,208,92.85,135.5l119-85.29Z"];
|
|
245
|
+
};
|
|
226
246
|
};
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
control: {
|
|
15
15
|
type: "select";
|
|
16
16
|
};
|
|
17
|
-
options: ("circle" | "link" | "image" | "x" | "copy" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "minus" | "camera" | "video-camera" | "play" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "caret-down" | "arrow-right" | "backspace" | "arrow-fat-up" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
|
|
17
|
+
options: ("circle" | "link" | "image" | "x" | "copy" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "minus" | "camera" | "video-camera" | "play" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "caret-down" | "arrow-right" | "dots-six-vertical" | "envelope-simple" | "phone" | "backspace" | "arrow-fat-up" | "instagram-logo" | "tiktok-logo" | "youtube-logo" | "whatsapp-logo" | "telegram-logo")[];
|
|
18
18
|
};
|
|
19
19
|
weight: {
|
|
20
20
|
control: {
|
|
@@ -284,10 +284,10 @@ declare const meta: {
|
|
|
284
284
|
track?: string | undefined;
|
|
285
285
|
key?: import("react").Key | null | undefined;
|
|
286
286
|
loading?: boolean | undefined;
|
|
287
|
+
border?: (typeof footerBorder)[number] | undefined;
|
|
287
288
|
asChild?: boolean | undefined;
|
|
288
289
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
289
290
|
pressEffect?: boolean | undefined;
|
|
290
|
-
border?: (typeof footerBorder)[number] | undefined;
|
|
291
291
|
icon?: import("../..").IconName | undefined;
|
|
292
292
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
293
293
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -286,15 +286,18 @@ declare const meta: {
|
|
|
286
286
|
label: import("react").ReactNode;
|
|
287
287
|
track?: string | undefined;
|
|
288
288
|
key?: import("react").Key | null | undefined;
|
|
289
|
+
border?: import("./list-type").ListRowBorder | undefined;
|
|
289
290
|
asChild?: boolean | undefined;
|
|
290
291
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
291
292
|
pressEffect?: boolean | undefined;
|
|
292
|
-
border?: import("./list-type").ListRowBorder | undefined;
|
|
293
293
|
effectRef?: import("react").Ref<AttentionHandle> | undefined;
|
|
294
294
|
description?: import("react").ReactNode;
|
|
295
295
|
chevron?: boolean | undefined;
|
|
296
296
|
leading?: import("react").ReactNode;
|
|
297
297
|
trailing?: import("react").ReactNode;
|
|
298
|
+
handle?: import("react").ReactNode;
|
|
299
|
+
highlighted?: boolean | undefined;
|
|
300
|
+
dragging?: boolean | undefined;
|
|
298
301
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
299
302
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
300
303
|
};
|
|
@@ -322,7 +325,11 @@ export declare const MotionPress: Story;
|
|
|
322
325
|
export declare const Sizes: Story;
|
|
323
326
|
/** border 는 이 줄과 다음 줄 사이의 선이다. 마지막 줄의 값은 보이지 않는다 */
|
|
324
327
|
export declare const Borders: Story;
|
|
325
|
-
/**
|
|
328
|
+
/** 끌기 핸들·강조·끄는 중. 첫 줄은 대표(highlighted), 둘째 줄은 끄는 중(dragging). 끌기 동작은 쓰는 쪽이 한다 */
|
|
329
|
+
export declare const Reorderable: Story;
|
|
330
|
+
/** ListRow.Loader 는 원과 두 줄 글의 스켈레톤을 행 자리에 그린다. 원·두 번째 줄은 끌 수 있다 */
|
|
326
331
|
export declare const Loader: Story;
|
|
332
|
+
/** 아이콘 없는 줄이면 leading={false}, label 만 있는 줄이면 description={false} */
|
|
333
|
+
export declare const LoaderWithoutLeading: Story;
|
|
327
334
|
/** effectRef 의 shine·blink 로 방금 바뀐 줄을 짚는다 */
|
|
328
335
|
export declare const MotionAttention: Story;
|
|
@@ -38,10 +38,20 @@ export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClic
|
|
|
38
38
|
border?: ListRowBorder;
|
|
39
39
|
/** shine·blink 를 부르는 ref. 방금 바뀐 행을 쓰는 쪽이 짚는다 */
|
|
40
40
|
effectRef?: Ref<AttentionHandle>;
|
|
41
|
+
/** 줄 왼쪽 끝 끌기 핸들 칸. 누르는 영역(button·링크) 밖이라 안에 버튼을 둔다. 보통 `<IconButton icon='dots-six-vertical' size='s' label='순서 바꾸기' />`. 끌기 동작은 쓰는 쪽이 한다 */
|
|
42
|
+
handle?: ReactNode;
|
|
43
|
+
/** 강조 테두리. 대표 연락처·기본 배송지처럼 하나만 다른 줄. 이 줄 위·아래 구분선은 그리지 않는다. 기본 false */
|
|
44
|
+
highlighted?: boolean;
|
|
45
|
+
/** 끄는 중 모양(배경 surface-muted, 핸들 커서 grabbing). 기본 false */
|
|
46
|
+
dragging?: boolean;
|
|
41
47
|
}
|
|
42
48
|
export interface ListRowLoaderProps extends StyleProps, Pick<SkeletonGroupProps, 'animated' | 'aria-label'> {
|
|
43
49
|
size?: ListRowSize;
|
|
44
50
|
border?: ListRowBorder;
|
|
51
|
+
/** 앞 원(아이콘·아바타 자리). 아이콘 없는 줄이면 false. 기본 true */
|
|
52
|
+
leading?: boolean;
|
|
53
|
+
/** 두 번째 줄(description 자리). label 만 있는 줄이면 false 로 한 줄. 기본 true */
|
|
54
|
+
description?: boolean;
|
|
45
55
|
}
|
|
46
56
|
export interface ListHeaderProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
47
57
|
/** 글자면 base semibold 로 그린다 */
|