@nurihaus/web-design-system 3.26.0 → 3.27.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/dist/agreement.js +6 -198
- package/dist/ai/components.md +696 -77
- package/dist/ai/migration.md +25 -0
- package/dist/ai/motion.md +10 -4
- package/dist/ai/patterns.md +1631 -663
- package/dist/ai/tokens.md +14 -8
- package/dist/check-box.js +24 -14
- package/dist/chip-group.js +23 -7
- package/dist/chunk-244.js +31 -0
- package/dist/chunk-2735.js +123 -0
- package/dist/chunk-4359.js +96 -0
- package/dist/{chunk-6096.js → chunk-4709.js} +17 -33
- package/dist/chunk-4955.js +115 -0
- package/dist/chunk-7024.js +3 -1
- package/dist/chunk-7187.js +35 -0
- package/dist/chunk-7829.js +10 -2
- package/dist/chunk-8144.js +106 -0
- package/dist/chunk-9350.js +23 -0
- package/dist/components/check-box/check-box-type.d.ts +2 -0
- package/dist/components/check-box/check-box.stories.d.ts +2 -0
- package/dist/components/chip-group/chip-group-props.d.ts +6 -3
- package/dist/components/chip-group/chip-group-type.d.ts +4 -1
- package/dist/components/chip-group/chip-group.stories.d.ts +6 -2
- package/dist/components/description-list/description-list-props.d.ts +15 -1
- package/dist/components/description-list/description-list-type.d.ts +11 -1
- package/dist/components/description-list/description-list.d.ts +1 -1
- package/dist/components/description-list/description-list.stories.d.ts +7 -0
- package/dist/components/drop-down/drop-down-type.d.ts +14 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +3 -1
- package/dist/components/empty-state/empty-state-props.d.ts +3 -0
- package/dist/components/empty-state/empty-state-type.d.ts +8 -2
- package/dist/components/empty-state/empty-state.d.ts +3 -0
- package/dist/components/empty-state/empty-state.stories.d.ts +296 -4
- package/dist/components/form-field/base-form-field.d.ts +13 -0
- package/dist/components/form-field/form-field-context.d.ts +7 -0
- package/dist/components/form-field/form-field-props.d.ts +21 -0
- package/dist/components/form-field/form-field-type.d.ts +51 -0
- package/dist/components/form-field/form-field.d.ts +9 -0
- package/dist/components/form-field/form-field.stories.d.ts +335 -0
- package/dist/components/form-section/base-form-section.d.ts +4 -0
- package/dist/components/form-section/form-section-props.d.ts +2 -0
- package/dist/components/form-section/form-section-type.d.ts +16 -0
- package/dist/components/form-section/form-section.d.ts +5 -0
- package/dist/components/form-section/form-section.stories.d.ts +308 -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 +1 -1
- package/dist/components/member-card/member-card-type.d.ts +2 -0
- package/dist/components/member-card/member-card.stories.d.ts +1 -1
- package/dist/components/message/message.stories.d.ts +3 -3
- package/dist/components/modal/modal-props.d.ts +10 -3
- package/dist/components/modal/modal-type.d.ts +22 -4
- package/dist/components/modal/modal-with-double-button.stories.d.ts +16 -1
- package/dist/components/modal/modal.stories.d.ts +5 -1
- package/dist/components/notice/notice-type.d.ts +3 -0
- package/dist/components/notice/notice.stories.d.ts +279 -0
- package/dist/components/overlay/overlay-type.d.ts +1 -1
- package/dist/components/pagination/pagination-type.d.ts +10 -0
- package/dist/components/pagination/pagination.stories.d.ts +7 -1
- package/dist/components/radio/base-radio.d.ts +2 -2
- package/dist/components/radio/radio-props.d.ts +8 -2
- package/dist/components/radio/radio-type.d.ts +14 -3
- package/dist/components/radio/radio.stories.d.ts +11 -1
- package/dist/components/search-field/search-field-type.d.ts +19 -3
- package/dist/components/search-field/search-field.d.ts +1 -1
- package/dist/components/search-field/search-field.stories.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control-props.d.ts +8 -0
- package/dist/components/segmented-control/segmented-control-type.d.ts +3 -1
- package/dist/components/segmented-control/segmented-control.stories.d.ts +8 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +3 -3
- package/dist/components/stat/base-stat.d.ts +13 -4
- package/dist/components/stat/stat-group.d.ts +8 -0
- package/dist/components/stat/stat-group.stories.d.ts +27 -0
- package/dist/components/stat/stat-props.d.ts +5 -3
- package/dist/components/stat/stat-type.d.ts +40 -2
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/stat/stat.stories.d.ts +3 -1
- package/dist/components/table/base-table.d.ts +5 -1
- package/dist/components/table/data-table.d.ts +6 -1
- package/dist/components/table/table-props.d.ts +10 -0
- package/dist/components/table/table-type.d.ts +42 -6
- package/dist/components/table/table.stories.d.ts +101 -2
- package/dist/components/text-area/base-text-area.d.ts +2 -2
- package/dist/components/text-area/text-area-props.d.ts +8 -0
- package/dist/components/text-area/text-area-type.d.ts +12 -1
- package/dist/components/text-area/text-area.stories.d.ts +11 -1
- package/dist/components/text-button/text-button-type.d.ts +5 -0
- package/dist/components/text-button/text-button.stories.d.ts +2 -0
- package/dist/components/text-field/base-text-field.d.ts +2 -2
- package/dist/components/text-field/text-field-props.d.ts +8 -0
- package/dist/components/text-field/text-field-type.d.ts +13 -1
- package/dist/components/text-field/text-field.stories.d.ts +10 -2
- package/dist/components/toast/toast-props.d.ts +10 -2
- package/dist/components/toast/toast-type.d.ts +3 -1
- package/dist/components/toast/toast.stories.d.ts +18 -3
- package/dist/components.css +1598 -142
- package/dist/data-table.js +301 -50
- package/dist/description-list.js +221 -6
- package/dist/docs/patterns/desktop/admin-apply.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +7 -4
- package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +4 -2
- package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +5 -0
- package/dist/docs/patterns/desktop/admin-feature-intro.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-form.stories.d.ts +4 -2
- package/dist/docs/patterns/desktop/admin-list.stories.d.ts +5 -0
- package/dist/docs/patterns/desktop/admin-picker.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-queue.stories.d.ts +23 -0
- package/dist/docs/patterns/desktop/admin-report.stories.d.ts +3 -2
- package/dist/docs/patterns/desktop/admin-review.stories.d.ts +6 -2
- package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +6 -2
- package/dist/docs/patterns/desktop/admin-split.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-states.stories.d.ts +5 -3
- package/dist/docs/patterns/desktop/admin-upload.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wallet.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +6 -3
- package/dist/docs/patterns/mobile/form.stories.d.ts +1 -0
- package/dist/drop-down.js +64 -155
- package/dist/empty-state.js +26 -14
- package/dist/form-field.js +511 -0
- package/dist/form-section.js +298 -0
- package/dist/full-secure-keypad.js +4 -4
- package/dist/helpers/motion/use-attention-handle.d.ts +1 -1
- package/dist/helpers/motion/use-effect-trigger.d.ts +1 -1
- package/dist/icon-button.js +2 -1
- package/dist/icon-text-badge.js +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2213 -636
- package/dist/loading.js +6 -6
- package/dist/member-card.js +18 -13
- package/dist/modal-with-double-button.js +95 -44
- package/dist/modal.js +24 -6
- package/dist/notice.js +5 -4
- package/dist/option-badge.js +4 -4
- package/dist/overlay.js +134 -61
- package/dist/pagination.js +291 -57
- package/dist/radio.js +165 -37
- package/dist/search-field.js +188 -77
- package/dist/section-header.js +14 -7
- package/dist/segmented-control.js +9 -1
- package/dist/split-text-field.js +16 -14
- package/dist/stat-group.js +441 -0
- package/dist/stat.js +90 -75
- package/dist/styles.css +1357 -164
- package/dist/text-area.js +90 -53
- package/dist/text-button.js +14 -7
- package/dist/text-field.js +94 -62
- package/dist/toast.js +27 -15
- package/dist/tokens/generated/semantic-admin.d.ts +1 -0
- package/dist/tokens/generated/semantic-app.d.ts +2 -4
- package/dist/tokens.css +24 -9
- package/dist/tokens.js +3 -4
- package/package.json +13 -1
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__ from "radix-ui";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
5
|
+
/******/ var __webpack_modules__ = ({
|
|
6
|
+
|
|
7
|
+
/***/ 7187
|
|
8
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
9
|
+
|
|
10
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
11
|
+
/* harmony export */ wh: () => (/* binding */ FormFieldContext)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* unused harmony exports useFormFieldControl, joinIds */
|
|
14
|
+
/* unused harmony import specifier */ var useContext;
|
|
15
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
16
|
+
|
|
17
|
+
/** FormField 가 안의 컨트롤에 내려 주는 라벨·도움말 연결 값. FormField 밖에서는 null */
|
|
18
|
+
var FormFieldContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);
|
|
19
|
+
/** TextField·TextArea·DropDown 이 FormField 안에 놓였을 때 라벨·도움말·오류에 스스로 잇는 데 쓴다 */
|
|
20
|
+
var useFormFieldControl = function useFormFieldControl() {
|
|
21
|
+
return useContext(FormFieldContext);
|
|
22
|
+
};
|
|
23
|
+
/** 공백으로 나뉜 id 목록을 겹치지 않게 잇는다. 쓰는 쪽이 같은 id 를 또 넘겨도 한 번만 남는다 */
|
|
24
|
+
var joinIds = function joinIds() {
|
|
25
|
+
var ids = [];
|
|
26
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
27
|
+
ids[_i] = arguments[_i];
|
|
28
|
+
}
|
|
29
|
+
return Array.from(new Set(ids.flatMap(function (id) {
|
|
30
|
+
return id ? id.split(' ') : [];
|
|
31
|
+
}))).join(' ') || undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/***/ },
|
|
35
|
+
|
|
36
|
+
/***/ 581
|
|
37
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// EXPORTS
|
|
41
|
+
__nuri_require__.d(__webpack_exports__, {
|
|
42
|
+
A: () => (/* binding */ form_field)
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
46
|
+
var jsx_runtime_ = __nuri_require__(612);
|
|
47
|
+
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
48
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
49
|
+
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
50
|
+
var classNames = __nuri_require__(3274);
|
|
51
|
+
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
52
|
+
var getMergedProps = __nuri_require__(7335);
|
|
53
|
+
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
54
|
+
var icon = __nuri_require__(3547);
|
|
55
|
+
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
56
|
+
var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
|
|
57
|
+
;// ./components/form-field/base-form-field.tsx
|
|
58
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
59
|
+
__assign = Object.assign || function (t) {
|
|
60
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61
|
+
s = arguments[i];
|
|
62
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
63
|
+
}
|
|
64
|
+
return t;
|
|
65
|
+
};
|
|
66
|
+
return __assign.apply(this, arguments);
|
|
67
|
+
};
|
|
68
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
69
|
+
var t = {};
|
|
70
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
71
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
72
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
73
|
+
}
|
|
74
|
+
return t;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
var FormFieldRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
81
|
+
var className = props.className,
|
|
82
|
+
restProps = __rest(props, ["className"]);
|
|
83
|
+
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
84
|
+
ref: ref,
|
|
85
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-form-field root', className)
|
|
86
|
+
}, restProps));
|
|
87
|
+
});
|
|
88
|
+
FormFieldRootBase.displayName = 'FormFieldRoot';
|
|
89
|
+
var FormFieldLabel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
90
|
+
var className = props.className,
|
|
91
|
+
htmlFor = props.htmlFor,
|
|
92
|
+
required = props.required,
|
|
93
|
+
children = props.children,
|
|
94
|
+
restProps = __rest(props, ["className", "htmlFor", "required", "children"]);
|
|
95
|
+
var mergedClassName = (0,classNames/* classNames */.x)('nuri-theme base-form-field label', className);
|
|
96
|
+
var content = (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
97
|
+
children: [children, required ? (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
98
|
+
children: [(0,jsx_runtime_.jsx)("span", {
|
|
99
|
+
className: 'form-field-required nuri-required-dot',
|
|
100
|
+
"aria-hidden": 'true'
|
|
101
|
+
}), (0,jsx_runtime_.jsx)(external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_.VisuallyHidden.Root, {
|
|
102
|
+
children: "\uD544\uC218"
|
|
103
|
+
})]
|
|
104
|
+
}) : null]
|
|
105
|
+
});
|
|
106
|
+
if (htmlFor) {
|
|
107
|
+
return (0,jsx_runtime_.jsx)("label", __assign({
|
|
108
|
+
ref: ref,
|
|
109
|
+
className: mergedClassName,
|
|
110
|
+
htmlFor: htmlFor
|
|
111
|
+
}, restProps, {
|
|
112
|
+
children: content
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
return (0,jsx_runtime_.jsx)("span", __assign({
|
|
116
|
+
ref: ref,
|
|
117
|
+
className: mergedClassName
|
|
118
|
+
}, restProps, {
|
|
119
|
+
children: content
|
|
120
|
+
}));
|
|
121
|
+
});
|
|
122
|
+
FormFieldLabel.displayName = 'FormFieldLabel';
|
|
123
|
+
var FormFieldPanel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
124
|
+
var className = props.className,
|
|
125
|
+
restProps = __rest(props, ["className"]);
|
|
126
|
+
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
127
|
+
ref: ref,
|
|
128
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-form-field panel', className)
|
|
129
|
+
}, restProps));
|
|
130
|
+
});
|
|
131
|
+
FormFieldPanel.displayName = 'FormFieldPanel';
|
|
132
|
+
var FormFieldColumns = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
133
|
+
var className = props.className,
|
|
134
|
+
restProps = __rest(props, ["className"]);
|
|
135
|
+
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
136
|
+
ref: ref,
|
|
137
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-form-field columns', className)
|
|
138
|
+
}, restProps));
|
|
139
|
+
});
|
|
140
|
+
FormFieldColumns.displayName = 'FormFieldColumns';
|
|
141
|
+
var FormFieldRoot = Object.assign(FormFieldRootBase, {
|
|
142
|
+
Label: FormFieldLabel,
|
|
143
|
+
Panel: FormFieldPanel,
|
|
144
|
+
Columns: FormFieldColumns
|
|
145
|
+
});
|
|
146
|
+
/* harmony default export */ const base_form_field = (FormFieldRoot);
|
|
147
|
+
// EXTERNAL MODULE: ./components/form-field/form-field-context.ts
|
|
148
|
+
var form_field_context = __nuri_require__(7187);
|
|
149
|
+
;// ./components/form-field/form-field-props.ts
|
|
150
|
+
/** 라벨 자리. top 은 컨트롤 위, side 는 왼쪽 고정 폭 칸 */
|
|
151
|
+
var layout = ['top', 'side'];
|
|
152
|
+
/** FormField.Columns 한 줄의 칸 수 */
|
|
153
|
+
var columns = [2, 3];
|
|
154
|
+
var formFieldProps = {
|
|
155
|
+
layout: {
|
|
156
|
+
type: 'className',
|
|
157
|
+
className: 'layout',
|
|
158
|
+
values: layout,
|
|
159
|
+
"default": 'top'
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var formFieldPanelProps = {};
|
|
163
|
+
var formFieldColumnsProps = {
|
|
164
|
+
columns: {
|
|
165
|
+
type: 'css',
|
|
166
|
+
key: '--form-field-columns',
|
|
167
|
+
values: columns,
|
|
168
|
+
"default": 2
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
;// ./components/form-field/form-field.tsx
|
|
172
|
+
var form_field_assign = undefined && undefined.__assign || function () {
|
|
173
|
+
form_field_assign = Object.assign || function (t) {
|
|
174
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
175
|
+
s = arguments[i];
|
|
176
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
177
|
+
}
|
|
178
|
+
return t;
|
|
179
|
+
};
|
|
180
|
+
return form_field_assign.apply(this, arguments);
|
|
181
|
+
};
|
|
182
|
+
var form_field_rest = undefined && undefined.__rest || function (s, e) {
|
|
183
|
+
var t = {};
|
|
184
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
185
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
186
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
187
|
+
}
|
|
188
|
+
return t;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
var isShown = function isShown(node) {
|
|
199
|
+
return node !== undefined && node !== null && node !== false && node !== '';
|
|
200
|
+
};
|
|
201
|
+
/** 컨트롤 하나(또는 한 묶음)에 라벨·필수 표시·힌트·도움말·오류를 붙이는 행 */
|
|
202
|
+
var FormFieldBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
203
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, formFieldProps),
|
|
204
|
+
className = _a.className,
|
|
205
|
+
style = _a.style,
|
|
206
|
+
label = _a.label,
|
|
207
|
+
labelWidth = _a.labelWidth,
|
|
208
|
+
required = _a.required,
|
|
209
|
+
hint = _a.hint,
|
|
210
|
+
labelAction = _a.labelAction,
|
|
211
|
+
helperText = _a.helperText,
|
|
212
|
+
errorText = _a.errorText,
|
|
213
|
+
note = _a.note,
|
|
214
|
+
htmlFor = _a.htmlFor,
|
|
215
|
+
children = _a.children,
|
|
216
|
+
restProps = form_field_rest(_a, ["className", "style", "label", "labelWidth", "required", "hint", "labelAction", "helperText", "errorText", "note", "htmlFor", "children"]);
|
|
217
|
+
var baseId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useId)();
|
|
218
|
+
var labelId = "".concat(baseId, "-label");
|
|
219
|
+
var messageId = "".concat(baseId, "-message");
|
|
220
|
+
var noteId = "".concat(baseId, "-note");
|
|
221
|
+
var invalid = isShown(errorText);
|
|
222
|
+
var message = invalid ? errorText : helperText;
|
|
223
|
+
var hasMessage = isShown(message);
|
|
224
|
+
var hasNote = isShown(note);
|
|
225
|
+
var describedBy = [hasMessage && messageId, hasNote && noteId].filter(Boolean).join(' ') || undefined;
|
|
226
|
+
var field = {
|
|
227
|
+
id: htmlFor !== null && htmlFor !== void 0 ? htmlFor : "".concat(baseId, "-control"),
|
|
228
|
+
labelId: labelId,
|
|
229
|
+
describedBy: describedBy,
|
|
230
|
+
invalid: invalid,
|
|
231
|
+
required: Boolean(required)
|
|
232
|
+
};
|
|
233
|
+
// 안의 TextField·TextArea·DropDown 은 이 값을 읽어 스스로 잇는다. 겹친 FormField 는 제 값으로 덮는다
|
|
234
|
+
var control = (0,jsx_runtime_.jsx)(form_field_context/* FormFieldContext */.wh.Provider, {
|
|
235
|
+
value: field,
|
|
236
|
+
children: typeof children === 'function' ? children(field) : children
|
|
237
|
+
});
|
|
238
|
+
// 숫자 px 은 React 가 사용자 변수에 단위를 붙이지 않아 여기서 붙인다
|
|
239
|
+
var mergedStyle = labelWidth === undefined ? style : form_field_assign(form_field_assign({}, style), {
|
|
240
|
+
'--form-field-label-width': typeof labelWidth === 'number' ? "".concat(labelWidth, "px") : labelWidth
|
|
241
|
+
});
|
|
242
|
+
return (0,jsx_runtime_.jsxs)(base_form_field, form_field_assign({
|
|
243
|
+
ref: ref,
|
|
244
|
+
className: (0,classNames/* classNames */.x)(className, 'form-field'),
|
|
245
|
+
style: mergedStyle,
|
|
246
|
+
role: 'group',
|
|
247
|
+
"aria-labelledby": labelId,
|
|
248
|
+
"aria-describedby": describedBy
|
|
249
|
+
}, restProps, {
|
|
250
|
+
children: [(0,jsx_runtime_.jsxs)("div", {
|
|
251
|
+
className: 'form-field-head',
|
|
252
|
+
children: [(0,jsx_runtime_.jsx)(base_form_field.Label, {
|
|
253
|
+
id: labelId,
|
|
254
|
+
className: 'form-field-label',
|
|
255
|
+
htmlFor: field.id,
|
|
256
|
+
required: required,
|
|
257
|
+
children: label
|
|
258
|
+
}), isShown(hint) ? (0,jsx_runtime_.jsx)("span", {
|
|
259
|
+
className: 'form-field-hint',
|
|
260
|
+
children: hint
|
|
261
|
+
}) : null, isShown(labelAction) ? (0,jsx_runtime_.jsx)("span", {
|
|
262
|
+
className: 'form-field-label-action',
|
|
263
|
+
children: labelAction
|
|
264
|
+
}) : null]
|
|
265
|
+
}), (0,jsx_runtime_.jsxs)("div", {
|
|
266
|
+
className: 'form-field-body',
|
|
267
|
+
children: [hasNote ? (0,jsx_runtime_.jsxs)("div", {
|
|
268
|
+
className: 'form-field-control-row',
|
|
269
|
+
children: [(0,jsx_runtime_.jsx)("div", {
|
|
270
|
+
className: 'form-field-control',
|
|
271
|
+
children: control
|
|
272
|
+
}), (0,jsx_runtime_.jsxs)("p", {
|
|
273
|
+
id: noteId,
|
|
274
|
+
className: 'form-field-note',
|
|
275
|
+
children: [(0,jsx_runtime_.jsx)(icon/* default */.A, {
|
|
276
|
+
className: 'form-field-note-icon',
|
|
277
|
+
name: 'info',
|
|
278
|
+
size: 'xs'
|
|
279
|
+
}), (0,jsx_runtime_.jsx)("span", {
|
|
280
|
+
children: note
|
|
281
|
+
})]
|
|
282
|
+
})]
|
|
283
|
+
}) : (0,jsx_runtime_.jsx)("div", {
|
|
284
|
+
className: 'form-field-control',
|
|
285
|
+
children: control
|
|
286
|
+
}), (0,jsx_runtime_.jsx)("div", {
|
|
287
|
+
className: 'form-field-message',
|
|
288
|
+
"aria-live": 'polite',
|
|
289
|
+
children: hasMessage ? (0,jsx_runtime_.jsx)("p", {
|
|
290
|
+
id: messageId,
|
|
291
|
+
className: (0,classNames/* classNames */.x)('form-field-message-text', invalid && 'error'),
|
|
292
|
+
children: message
|
|
293
|
+
}) : null
|
|
294
|
+
})]
|
|
295
|
+
})]
|
|
296
|
+
}));
|
|
297
|
+
});
|
|
298
|
+
FormFieldBase.displayName = 'FormField';
|
|
299
|
+
/** 조건부 하위 필드를 담는 연회색 면. 안에서도 FormField 를 그대로 쓴다 */
|
|
300
|
+
var form_field_FormFieldPanel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
301
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, formFieldPanelProps),
|
|
302
|
+
className = _a.className,
|
|
303
|
+
restProps = form_field_rest(_a, ["className"]);
|
|
304
|
+
return (0,jsx_runtime_.jsx)(base_form_field.Panel, form_field_assign({
|
|
305
|
+
ref: ref,
|
|
306
|
+
className: (0,classNames/* classNames */.x)(className, 'form-field-panel')
|
|
307
|
+
}, restProps));
|
|
308
|
+
});
|
|
309
|
+
form_field_FormFieldPanel.displayName = 'FormFieldPanel';
|
|
310
|
+
/** 짝인 값을 한 줄에 나란히 놓는 격자. 768px 미만에서는 한 열 */
|
|
311
|
+
var form_field_FormFieldColumns = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
312
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, formFieldColumnsProps),
|
|
313
|
+
className = _a.className,
|
|
314
|
+
restProps = form_field_rest(_a, ["className"]);
|
|
315
|
+
return (0,jsx_runtime_.jsx)(base_form_field.Columns, form_field_assign({
|
|
316
|
+
ref: ref,
|
|
317
|
+
className: (0,classNames/* classNames */.x)(className, 'form-field-columns')
|
|
318
|
+
}, restProps));
|
|
319
|
+
});
|
|
320
|
+
form_field_FormFieldColumns.displayName = 'FormFieldColumns';
|
|
321
|
+
var FormField = Object.assign(FormFieldBase, {
|
|
322
|
+
Panel: form_field_FormFieldPanel,
|
|
323
|
+
Columns: form_field_FormFieldColumns
|
|
324
|
+
});
|
|
325
|
+
/* harmony default export */ const form_field = (FormField);
|
|
326
|
+
|
|
327
|
+
/***/ },
|
|
328
|
+
|
|
329
|
+
/***/ 0
|
|
330
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
331
|
+
|
|
332
|
+
var x = (y) => {
|
|
333
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
334
|
+
}
|
|
335
|
+
var y = (x) => (() => (x))
|
|
336
|
+
module.exports = x({ ["VisuallyHidden"]: () => (__WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__.VisuallyHidden) });
|
|
337
|
+
|
|
338
|
+
/***/ },
|
|
339
|
+
|
|
340
|
+
/***/ 1041
|
|
341
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
342
|
+
|
|
343
|
+
var x = (y) => {
|
|
344
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
345
|
+
}
|
|
346
|
+
var y = (x) => (() => (x))
|
|
347
|
+
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useId"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useId) });
|
|
348
|
+
|
|
349
|
+
/***/ },
|
|
350
|
+
|
|
351
|
+
/***/ 612
|
|
352
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
353
|
+
|
|
354
|
+
var x = (y) => {
|
|
355
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
356
|
+
}
|
|
357
|
+
var y = (x) => (() => (x))
|
|
358
|
+
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) });
|
|
359
|
+
|
|
360
|
+
/***/ }
|
|
361
|
+
|
|
362
|
+
/******/ });
|
|
363
|
+
/************************************************************************/
|
|
364
|
+
/******/ // The module cache
|
|
365
|
+
/******/ var __webpack_module_cache__ = {};
|
|
366
|
+
/******/
|
|
367
|
+
/******/ // The require function
|
|
368
|
+
/******/ function __nuri_require__(moduleId) {
|
|
369
|
+
/******/ // Check if module is in cache
|
|
370
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
371
|
+
/******/ if (cachedModule !== undefined) {
|
|
372
|
+
/******/ return cachedModule.exports;
|
|
373
|
+
/******/ }
|
|
374
|
+
/******/ // Create a new module (and put it into the cache)
|
|
375
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
376
|
+
/******/ // no module.id needed
|
|
377
|
+
/******/ // no module.loaded needed
|
|
378
|
+
/******/ exports: {}
|
|
379
|
+
/******/ };
|
|
380
|
+
/******/
|
|
381
|
+
/******/ // Execute the module function
|
|
382
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
|
|
383
|
+
/******/
|
|
384
|
+
/******/ // Return the exports of the module
|
|
385
|
+
/******/ return module.exports;
|
|
386
|
+
/******/ }
|
|
387
|
+
/******/
|
|
388
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
389
|
+
/******/ __nuri_require__.m = __webpack_modules__;
|
|
390
|
+
/******/
|
|
391
|
+
/************************************************************************/
|
|
392
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
393
|
+
/******/ (() => {
|
|
394
|
+
/******/ var deferred = [];
|
|
395
|
+
/******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
|
|
396
|
+
/******/ if(chunkIds) {
|
|
397
|
+
/******/ priority = priority || 0;
|
|
398
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
399
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
400
|
+
/******/ return;
|
|
401
|
+
/******/ }
|
|
402
|
+
/******/ var notFulfilled = Infinity;
|
|
403
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
404
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
405
|
+
/******/ var fulfilled = true;
|
|
406
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
407
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
|
|
408
|
+
/******/ chunkIds.splice(j--, 1);
|
|
409
|
+
/******/ } else {
|
|
410
|
+
/******/ fulfilled = false;
|
|
411
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
412
|
+
/******/ }
|
|
413
|
+
/******/ }
|
|
414
|
+
/******/ if(fulfilled) {
|
|
415
|
+
/******/ deferred.splice(i--, 1)
|
|
416
|
+
/******/ var r = fn();
|
|
417
|
+
/******/ if (r !== undefined) result = r;
|
|
418
|
+
/******/ }
|
|
419
|
+
/******/ }
|
|
420
|
+
/******/ return result;
|
|
421
|
+
/******/ };
|
|
422
|
+
/******/ })();
|
|
423
|
+
/******/
|
|
424
|
+
/******/ /* webpack/runtime/define property getters */
|
|
425
|
+
/******/ (() => {
|
|
426
|
+
/******/ // define getter functions for harmony exports
|
|
427
|
+
/******/ __nuri_require__.d = (exports, definition) => {
|
|
428
|
+
/******/ for(var key in definition) {
|
|
429
|
+
/******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
|
|
430
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
431
|
+
/******/ }
|
|
432
|
+
/******/ }
|
|
433
|
+
/******/ };
|
|
434
|
+
/******/ })();
|
|
435
|
+
/******/
|
|
436
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
437
|
+
/******/ (() => {
|
|
438
|
+
/******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
439
|
+
/******/ })();
|
|
440
|
+
/******/
|
|
441
|
+
/******/ /* webpack/runtime/export webpack runtime */
|
|
442
|
+
/******/ export { __nuri_require__ };
|
|
443
|
+
/******/
|
|
444
|
+
/******/ /* webpack/runtime/import chunk loading */
|
|
445
|
+
/******/ (() => {
|
|
446
|
+
/******/ // no baseURI
|
|
447
|
+
/******/
|
|
448
|
+
/******/ // object to store loaded and loading chunks
|
|
449
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
450
|
+
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
451
|
+
/******/ var installedChunks = {
|
|
452
|
+
/******/ 3102: 0,
|
|
453
|
+
/******/ 7187: 0
|
|
454
|
+
/******/ };
|
|
455
|
+
/******/
|
|
456
|
+
/******/ var installChunk = (data) => {
|
|
457
|
+
/******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
|
|
458
|
+
/******/ // add "modules" to the modules object,
|
|
459
|
+
/******/ // then flag all "ids" as loaded and fire callback
|
|
460
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
461
|
+
/******/ for(moduleId in __webpack_esm_modules__) {
|
|
462
|
+
/******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
|
|
463
|
+
/******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
|
|
464
|
+
/******/ }
|
|
465
|
+
/******/ }
|
|
466
|
+
/******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
|
|
467
|
+
/******/ for(;i < __webpack_esm_ids__.length; i++) {
|
|
468
|
+
/******/ chunkId = __webpack_esm_ids__[i];
|
|
469
|
+
/******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
470
|
+
/******/ installedChunks[chunkId][0]();
|
|
471
|
+
/******/ }
|
|
472
|
+
/******/ installedChunks[__webpack_esm_ids__[i]] = 0;
|
|
473
|
+
/******/ }
|
|
474
|
+
/******/ __nuri_require__.O();
|
|
475
|
+
/******/ }
|
|
476
|
+
/******/
|
|
477
|
+
/******/ // no chunk on demand loading
|
|
478
|
+
/******/
|
|
479
|
+
/******/ // no prefetching
|
|
480
|
+
/******/
|
|
481
|
+
/******/ // no preloaded
|
|
482
|
+
/******/
|
|
483
|
+
/******/ __nuri_require__.C = installChunk;
|
|
484
|
+
/******/
|
|
485
|
+
/******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
486
|
+
/******/ // no HMR
|
|
487
|
+
/******/
|
|
488
|
+
/******/ // no HMR manifest
|
|
489
|
+
/******/ })();
|
|
490
|
+
/******/
|
|
491
|
+
/************************************************************************/
|
|
492
|
+
/******/
|
|
493
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
|
|
494
|
+
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
495
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
496
|
+
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
497
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-7298.js";
|
|
498
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
499
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
|
|
500
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
501
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
502
|
+
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
503
|
+
/******/
|
|
504
|
+
/******/ // startup
|
|
505
|
+
/******/ // Load entry module and return exports
|
|
506
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
507
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7298,7653,3547], () => (__nuri_require__(581)))
|
|
508
|
+
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
509
|
+
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
510
|
+
/******/ export { __webpack_exports__default as default };
|
|
511
|
+
/******/
|