@nurihaus/web-design-system 3.2.0 → 3.4.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 +36 -0
- package/dist/ai/components.md +123 -12
- package/dist/ai/tokens.md +2 -0
- package/dist/avatar.js +5 -5
- package/dist/bottom-nav.js +22 -8
- package/dist/breadcrumb.js +25 -10
- package/dist/check-box.js +24 -8
- package/dist/chip-group.js +21 -7
- package/dist/{chunk-563.js → chunk-1563.js} +26 -13
- package/dist/{chunk-657.js → chunk-1657.js} +2 -2
- package/dist/{chunk-777.js → chunk-2777.js} +2 -2
- package/dist/{chunk-558.js → chunk-4558.js} +2 -2
- package/dist/chunk-4560.js +77 -0
- package/dist/{chunk-917.js → chunk-4917.js} +2 -2
- package/dist/{chunk-77.js → chunk-5077.js} +2 -2
- package/dist/{chunk-149.js → chunk-6149.js} +2 -2
- package/dist/{chunk-302.js → chunk-6302.js} +2 -2
- package/dist/{chunk-364.js → chunk-6364.js} +2 -2
- package/dist/{chunk-713.js → chunk-6713.js} +2 -2
- package/dist/{chunk-298.js → chunk-7298.js} +2 -2
- package/dist/{chunk-653.js → chunk-7653.js} +7 -3
- package/dist/{chunk-739.js → chunk-7739.js} +2 -2
- package/dist/{chunk-309.js → chunk-8690.js} +2 -2
- package/dist/{chunk-933.js → chunk-8933.js} +2 -2
- package/dist/chunk-910.js +23 -10
- package/dist/{chunk-387.js → chunk-9387.js} +2 -2
- package/dist/{chunk-436.js → chunk-9436.js} +2 -2
- package/dist/{chunk-976.js → chunk-9976.js} +3 -3
- package/dist/collapsible-menu.js +25 -12
- package/dist/components/badge/badge-props.d.ts +4 -4
- package/dist/components/badge/badge.stories.d.ts +1 -1
- package/dist/components/bottom-nav/bottom-nav-type.d.ts +5 -2
- package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
- package/dist/components/button/button-props.d.ts +2 -2
- package/dist/components/button/button-type.d.ts +2 -1
- package/dist/components/button/button.stories.d.ts +1 -1
- package/dist/components/check-box/check-box-type.d.ts +2 -1
- package/dist/components/chip-group/chip-group-type.d.ts +2 -1
- package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +2 -1
- package/dist/components/drawer/drawer-type.d.ts +2 -1
- package/dist/components/drop-down/drop-down-type.d.ts +2 -1
- package/dist/components/icon/icon-paths.d.ts +4 -0
- package/dist/components/icon/icon-props.d.ts +2 -2
- package/dist/components/icon/icon.stories.d.ts +2 -2
- package/dist/components/logging/log-context.d.ts +9 -0
- package/dist/components/logging/logging-type.d.ts +25 -0
- package/dist/components/logging/logging.d.ts +5 -0
- package/dist/components/logging/logging.stories.d.ts +18 -0
- package/dist/components/modal/modal-type.d.ts +2 -1
- package/dist/components/pagination/pagination-type.d.ts +2 -1
- package/dist/components/radio/radio-type.d.ts +3 -1
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.stories.d.ts +1 -1
- package/dist/components/switch/switch-type.d.ts +2 -1
- package/dist/components/table/table-type.d.ts +2 -1
- package/dist/components/tabs/tabs-type.d.ts +2 -1
- package/dist/components/text-area/text-area-type.d.ts +2 -1
- package/dist/components/text-field/text-field-type.d.ts +2 -1
- package/dist/components/toast/toast-type.d.ts +2 -1
- package/dist/components/toast/toast.stories.d.ts +3 -1
- package/dist/components/tooltip/tooltip-type.d.ts +2 -1
- package/dist/components.css +48 -0
- package/dist/cta-button.js +35 -20
- package/dist/data-table.js +19 -7
- package/dist/drawer.js +23 -9
- package/dist/drop-down.js +25 -9
- package/dist/helpers/hooks/useTrack.d.ts +3 -0
- package/dist/icon-text-badge.js +12 -10
- package/dist/icon-text-option-badge.js +6 -6
- package/dist/icon.js +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +438 -81
- package/dist/loading.js +6 -6
- package/dist/logging.js +147 -0
- package/dist/modal-with-double-button.js +14 -12
- package/dist/modal.js +39 -26
- package/dist/option-badge.js +12 -10
- package/dist/pagination.js +23 -9
- package/dist/radio.js +24 -10
- package/dist/skeleton.js +4 -4
- package/dist/step-progress.js +3 -3
- package/dist/styles.css +42 -0
- package/dist/switch.js +24 -8
- package/dist/tabs.js +22 -6
- package/dist/text-area.js +30 -8
- package/dist/text-field.js +31 -9
- package/dist/text.js +5 -5
- package/dist/toast.js +32 -15
- package/dist/tokens.css +2 -0
- package/dist/tooltip.js +33 -18
- package/package.json +5 -1
|
@@ -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__ = 9976;
|
|
3
|
+
export const __webpack_esm_ids__ = [9976];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
6
|
/***/ 9976
|
|
@@ -12,7 +12,7 @@ export const __webpack_esm_modules__ = {
|
|
|
12
12
|
/* unused harmony exports variant, sizes */
|
|
13
13
|
/* harmony import */ var _helpers_props_common_props__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(7298);
|
|
14
14
|
|
|
15
|
-
var variant = ['primary', 'secondary', 'ghost', 'neutral', 'confirm', 'outlined'];
|
|
15
|
+
var variant = ['primary', 'secondary', 'ghost', 'neutral', 'confirm', 'outlined', 'social'];
|
|
16
16
|
var sizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
17
17
|
var ctaButtonProps = {
|
|
18
18
|
variant: {
|
package/dist/collapsible-menu.js
CHANGED
|
@@ -17,6 +17,8 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
17
17
|
var jsx_runtime_ = __nuri_require__(612);
|
|
18
18
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
19
19
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
20
|
+
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
21
|
+
var useTrack = __nuri_require__(4560);
|
|
20
22
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
21
23
|
var classNames = __nuri_require__(3274);
|
|
22
24
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
@@ -117,6 +119,7 @@ var collapsible_menu_assign = undefined && undefined.__assign || function () {
|
|
|
117
119
|
|
|
118
120
|
|
|
119
121
|
|
|
122
|
+
|
|
120
123
|
var Anchor = function Anchor(props) {
|
|
121
124
|
return (0,jsx_runtime_.jsx)("a", collapsible_menu_assign({}, props));
|
|
122
125
|
};
|
|
@@ -130,7 +133,13 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
130
133
|
onActiveKeyChange = _a.onActiveKeyChange,
|
|
131
134
|
_b = _a.indent,
|
|
132
135
|
indent = _b === void 0 ? 12 : _b,
|
|
133
|
-
linkComponent = _a.linkComponent
|
|
136
|
+
linkComponent = _a.linkComponent,
|
|
137
|
+
track = _a.track,
|
|
138
|
+
trackProps = _a.trackProps;
|
|
139
|
+
var emit = (0,useTrack/* useTrack */.n)('CollapsibleMenu', {
|
|
140
|
+
track: track,
|
|
141
|
+
trackProps: trackProps
|
|
142
|
+
});
|
|
134
143
|
var Link = linkComponent !== null && linkComponent !== void 0 ? linkComponent : Anchor;
|
|
135
144
|
var rootClassName = (0,classNames/* classNames */.x)(className, 'collapsible-menu');
|
|
136
145
|
var _hasActiveDescendant = function hasActiveDescendant(item) {
|
|
@@ -139,6 +148,12 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
139
148
|
if (item.key === activeKey) return true;
|
|
140
149
|
return (_b = (_a = item.children) === null || _a === void 0 ? void 0 : _a.some(_hasActiveDescendant)) !== null && _b !== void 0 ? _b : false;
|
|
141
150
|
};
|
|
151
|
+
var selectItem = function selectItem(item) {
|
|
152
|
+
var _a;
|
|
153
|
+
emit('navigate', item.key);
|
|
154
|
+
onActiveKeyChange === null || onActiveKeyChange === void 0 ? void 0 : onActiveKeyChange(item.key);
|
|
155
|
+
(_a = item.onSelect) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
156
|
+
};
|
|
142
157
|
var _renderItems = function renderItems(targetItems, depth) {
|
|
143
158
|
var indentStyle = {
|
|
144
159
|
paddingLeft: "".concat(depth * indent, "px")
|
|
@@ -179,13 +194,11 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
179
194
|
"aria-current": isActive ? 'page' : undefined,
|
|
180
195
|
"aria-disabled": item.disabled ? 'true' : undefined,
|
|
181
196
|
onClick: function onClick(e) {
|
|
182
|
-
var _a;
|
|
183
197
|
if (item.disabled) {
|
|
184
198
|
e.preventDefault();
|
|
185
199
|
return;
|
|
186
200
|
}
|
|
187
|
-
|
|
188
|
-
(_a = item.onSelect) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
201
|
+
selectItem(item);
|
|
189
202
|
},
|
|
190
203
|
children: left
|
|
191
204
|
}, item.key);
|
|
@@ -195,9 +208,7 @@ var CollapsibleMenu = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
195
208
|
className: itemClassName,
|
|
196
209
|
disabled: item.disabled,
|
|
197
210
|
onClick: function onClick() {
|
|
198
|
-
|
|
199
|
-
onActiveKeyChange === null || onActiveKeyChange === void 0 ? void 0 : onActiveKeyChange(item.key);
|
|
200
|
-
(_a = item.onSelect) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
211
|
+
return selectItem(item);
|
|
201
212
|
},
|
|
202
213
|
children: left
|
|
203
214
|
}, item.key);
|
|
@@ -234,7 +245,7 @@ var x = (y) => {
|
|
|
234
245
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
235
246
|
}
|
|
236
247
|
var y = (x) => (() => (x))
|
|
237
|
-
module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
|
|
248
|
+
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });
|
|
238
249
|
|
|
239
250
|
/***/ },
|
|
240
251
|
|
|
@@ -339,7 +350,7 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
339
350
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
340
351
|
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
341
352
|
/******/ var installedChunks = {
|
|
342
|
-
/******/
|
|
353
|
+
/******/ 6311: 0
|
|
343
354
|
/******/ };
|
|
344
355
|
/******/
|
|
345
356
|
/******/ var installChunk = (data) => {
|
|
@@ -379,15 +390,17 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
379
390
|
/******/
|
|
380
391
|
/************************************************************************/
|
|
381
392
|
/******/
|
|
382
|
-
/******/ import * as __webpack_chunk_1__ from "./chunk-
|
|
393
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-6364.js";
|
|
383
394
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
384
|
-
/******/ import * as __webpack_chunk_2__ from "./chunk-
|
|
395
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-4560.js";
|
|
385
396
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
397
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-4917.js";
|
|
398
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
386
399
|
/******/
|
|
387
400
|
/******/ // startup
|
|
388
401
|
/******/ // Load entry module and return exports
|
|
389
402
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
390
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [
|
|
403
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [6364,4560,4917], () => (__nuri_require__(5932)))
|
|
391
404
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
392
405
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
393
406
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const variant: readonly ["neutral", "primary", "danger", "outlined"];
|
|
1
|
+
export declare const variant: readonly ["neutral", "primary", "danger", "outlined", "callout"];
|
|
2
2
|
export declare const sizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
3
3
|
export declare const iconTextBadgeProps: {
|
|
4
4
|
variant: {
|
|
5
5
|
type: "className";
|
|
6
6
|
className: string;
|
|
7
|
-
values: readonly ["neutral", "primary", "danger", "outlined"];
|
|
7
|
+
values: readonly ["neutral", "primary", "danger", "outlined", "callout"];
|
|
8
8
|
default: "neutral";
|
|
9
9
|
};
|
|
10
10
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
|
|
@@ -14,7 +14,7 @@ export declare const iconTextOptionBadgeProps: {
|
|
|
14
14
|
variant: {
|
|
15
15
|
type: "className";
|
|
16
16
|
className: string;
|
|
17
|
-
values: readonly ["neutral", "primary", "danger", "outlined"];
|
|
17
|
+
values: readonly ["neutral", "primary", "danger", "outlined", "callout"];
|
|
18
18
|
default: "neutral";
|
|
19
19
|
};
|
|
20
20
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
|
|
@@ -24,7 +24,7 @@ export declare const optionBadgeProps: {
|
|
|
24
24
|
variant: {
|
|
25
25
|
type: "className";
|
|
26
26
|
className: string;
|
|
27
|
-
values: readonly ["neutral", "primary", "danger", "outlined"];
|
|
27
|
+
values: readonly ["neutral", "primary", "danger", "outlined", "callout"];
|
|
28
28
|
default: "neutral";
|
|
29
29
|
};
|
|
30
30
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef, ComponentType, ReactNode } from 'react';
|
|
1
|
+
import type { ComponentPropsWithRef, ComponentType, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import { StyleProps } from '../../helpers/types/common-props';
|
|
3
3
|
import { IconName } from '../icon/icon-type';
|
|
4
|
+
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
export interface BottomNavBadge {
|
|
5
6
|
/** 숫자. 없으면 점으로 그린다. 99 를 넘으면 99+ */
|
|
6
7
|
count?: number;
|
|
@@ -21,8 +22,10 @@ export interface BottomNavLinkProps {
|
|
|
21
22
|
className: string;
|
|
22
23
|
children: ReactNode;
|
|
23
24
|
'aria-current'?: 'page';
|
|
25
|
+
/** `track` 을 주면 누를 때 로그를 보낸다. 직접 만든 `linkComponent` 는 이 값을 `<a>` 에 넘긴다 */
|
|
26
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
24
27
|
}
|
|
25
|
-
export interface BottomNavProps extends StyleProps {
|
|
28
|
+
export interface BottomNavProps extends StyleProps, TrackProps {
|
|
26
29
|
items: BottomNavItem[];
|
|
27
30
|
/** 지금 화면의 탭 id. 주소에서 정하므로 탭 바가 스스로 바꾸지 않는다 */
|
|
28
31
|
value?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes } from './breadcrumb-props';
|
|
4
5
|
export type BreadcrumbRootProps = ComponentPropsWithRef<'nav'>;
|
|
5
6
|
export type BreadcrumbListProps = ComponentPropsWithRef<'ol'>;
|
|
@@ -17,7 +18,7 @@ export interface BreadcrumbItem {
|
|
|
17
18
|
/** 없으면 링크가 아닌 글자로 그린다. 마지막 항목은 href 가 있어도 현재 위치로 그린다. */
|
|
18
19
|
href?: string;
|
|
19
20
|
}
|
|
20
|
-
export interface BreadcrumbProps extends StyleProps {
|
|
21
|
+
export interface BreadcrumbProps extends StyleProps, TrackProps {
|
|
21
22
|
items: BreadcrumbItem[];
|
|
22
23
|
size?: (typeof sizes)[number];
|
|
23
24
|
/** 마지막(현재 위치) 항목이 아닌 항목을 클릭하면 그 id 로 불린다. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const variant: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
|
|
1
|
+
export declare const variant: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined", "social"];
|
|
2
2
|
export declare const sizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
3
3
|
export declare const ctaButtonProps: {
|
|
4
4
|
variant: {
|
|
5
5
|
type: "className";
|
|
6
6
|
className: string;
|
|
7
|
-
values: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
|
|
7
|
+
values: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined", "social"];
|
|
8
8
|
default: "primary";
|
|
9
9
|
};
|
|
10
10
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes, variant } from './button-props';
|
|
4
5
|
export interface CommonButtonProps {
|
|
5
6
|
loading?: boolean;
|
|
@@ -8,7 +9,7 @@ export interface BaseButtonProps extends ComponentPropsWithRef<'button'>, Common
|
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
loadingComponent?: ReactNode;
|
|
10
11
|
}
|
|
11
|
-
export interface CTAButtonProps extends ComponentPropsWithRef<'button'>, CommonButtonProps {
|
|
12
|
+
export interface CTAButtonProps extends ComponentPropsWithRef<'button'>, CommonButtonProps, TrackProps {
|
|
12
13
|
variant?: (typeof variant)[number];
|
|
13
14
|
size?: (typeof sizes)[number];
|
|
14
15
|
text: string | ReactNode;
|
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
control: {
|
|
8
8
|
type: "select";
|
|
9
9
|
};
|
|
10
|
-
options: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
|
|
10
|
+
options: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined", "social"];
|
|
11
11
|
};
|
|
12
12
|
size: {
|
|
13
13
|
control: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes } from './check-box-props';
|
|
4
5
|
export interface CheckBoxRootProps {
|
|
5
6
|
checked?: boolean;
|
|
@@ -15,7 +16,7 @@ export interface CheckBoxLabelProps extends AsChildProps {
|
|
|
15
16
|
preventChangeOnClick?: boolean;
|
|
16
17
|
className?: string;
|
|
17
18
|
}
|
|
18
|
-
export interface CheckBoxProps extends CheckBoxRootProps {
|
|
19
|
+
export interface CheckBoxProps extends CheckBoxRootProps, TrackProps {
|
|
19
20
|
label: string | ReactNode;
|
|
20
21
|
size?: (typeof sizes)[number];
|
|
21
22
|
className?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
export interface ChipGroupItem {
|
|
4
5
|
id: string;
|
|
5
6
|
label: ReactNode;
|
|
@@ -7,7 +8,7 @@ export interface ChipGroupItem {
|
|
|
7
8
|
count?: number;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export interface ChipGroupProps extends StyleProps {
|
|
11
|
+
export interface ChipGroupProps extends StyleProps, TrackProps {
|
|
11
12
|
items: ChipGroupItem[];
|
|
12
13
|
value?: string;
|
|
13
14
|
defaultValue?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes } from './collapsible-menu-props';
|
|
4
5
|
export interface CollapsibleMenuRootProps {
|
|
5
6
|
defaultOpen?: boolean;
|
|
@@ -30,7 +31,7 @@ export interface CollapsibleMenuLinkProps {
|
|
|
30
31
|
'aria-current'?: 'page';
|
|
31
32
|
'aria-disabled'?: 'true';
|
|
32
33
|
}
|
|
33
|
-
export interface CollapsibleMenuProps extends StyleProps {
|
|
34
|
+
export interface CollapsibleMenuProps extends StyleProps, TrackProps {
|
|
34
35
|
size?: (typeof sizes)[number];
|
|
35
36
|
items: CollapsibleMenuItem[];
|
|
36
37
|
activeKey?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sides, sizes } from './drawer-props';
|
|
4
5
|
export interface DrawerRootProps {
|
|
5
6
|
open?: boolean;
|
|
@@ -15,7 +16,7 @@ export interface DrawerDescriptionProps extends ComponentPropsWithRef<'p'>, AsCh
|
|
|
15
16
|
}
|
|
16
17
|
export interface DrawerCloseProps extends ComponentPropsWithRef<'button'>, AsChildProps {
|
|
17
18
|
}
|
|
18
|
-
export interface DrawerProps extends DrawerRootProps, StyleProps {
|
|
19
|
+
export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps {
|
|
19
20
|
/** asChild 로 감싸 클릭하면 열리는 요소. 없으면 open·defaultOpen 으로만 연다 */
|
|
20
21
|
trigger?: ReactElement;
|
|
21
22
|
title: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes } from './drop-down-props';
|
|
4
5
|
export interface DropDownRootProps {
|
|
5
6
|
defaultOpen?: boolean;
|
|
@@ -27,7 +28,7 @@ export interface DropDownItemProps extends AsChildProps {
|
|
|
27
28
|
disabled?: boolean;
|
|
28
29
|
onClick?: () => void;
|
|
29
30
|
}
|
|
30
|
-
export interface DropDownProps extends StyleProps {
|
|
31
|
+
export interface DropDownProps extends StyleProps, TrackProps {
|
|
31
32
|
size?: (typeof sizes)[number];
|
|
32
33
|
defaultValue?: string;
|
|
33
34
|
value?: string;
|
|
@@ -63,6 +63,10 @@ export declare const iconPaths: {
|
|
|
63
63
|
readonly regular: readonly ["M251.77,73a8,8,0,0,0-8.21.39L208,97.05V72a16,16,0,0,0-16-16H32A16,16,0,0,0,16,72V184a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V159l35.56,23.71A8,8,0,0,0,248,184a8,8,0,0,0,8-8V80A8,8,0,0,0,251.77,73ZM192,184H32V72H192V184Zm48-22.95-32-21.33V116.28L240,95Z"];
|
|
64
64
|
readonly fill: readonly ["M192,72V184a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V72A16,16,0,0,1,32,56H176A16,16,0,0,1,192,72Zm58,.25a8.23,8.23,0,0,0-6.63,1.22L209.78,95.86A4,4,0,0,0,208,99.19v57.62a4,4,0,0,0,1.78,3.33l33.78,22.52a8,8,0,0,0,8.58.19,8.33,8.33,0,0,0,3.86-7.17V80A8,8,0,0,0,250,72.25Z"];
|
|
65
65
|
};
|
|
66
|
+
readonly play: {
|
|
67
|
+
readonly regular: readonly ["M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"];
|
|
68
|
+
readonly fill: readonly ["M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"];
|
|
69
|
+
};
|
|
66
70
|
readonly link: {
|
|
67
71
|
readonly regular: readonly ["M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"];
|
|
68
72
|
readonly fill: readonly ["M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** 꺼짐은 선(regular), 켜짐·강조는 채움(fill) */
|
|
2
2
|
export declare const weight: readonly ["regular", "fill"];
|
|
3
|
-
export declare const sizes: readonly ["s", "m", "l"];
|
|
3
|
+
export declare const sizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
4
4
|
export declare const iconProps: {
|
|
5
|
-
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
|
|
5
|
+
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["xs", "s", "m", "l", "xl"]>;
|
|
6
6
|
};
|
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
control: {
|
|
8
8
|
type: "select";
|
|
9
9
|
};
|
|
10
|
-
options: ("link" | "image" | "x" | "copy" | "warning" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "camera" | "video-camera" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "arrow-right" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
|
|
10
|
+
options: ("link" | "image" | "x" | "copy" | "warning" | "play" | "house" | "megaphone-simple" | "chats-circle" | "user-circle" | "bell" | "caret-left" | "magnifying-glass" | "dots-three" | "gear-six" | "chat-circle" | "paper-plane-tilt" | "plus" | "camera" | "video-camera" | "upload-simple" | "calendar-blank" | "clock" | "map-pin" | "truck" | "ticket" | "qr-code" | "sparkle" | "gift" | "wallet" | "bank" | "credit-card" | "check-circle" | "check" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "arrow-right" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
|
|
11
11
|
};
|
|
12
12
|
weight: {
|
|
13
13
|
control: {
|
|
@@ -19,7 +19,7 @@ declare const meta: {
|
|
|
19
19
|
control: {
|
|
20
20
|
type: "inline-radio";
|
|
21
21
|
};
|
|
22
|
-
options: readonly ["s", "m", "l"];
|
|
22
|
+
options: readonly ["xs", "s", "m", "l", "xl"];
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
args: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LogEvent, LogProviderProps } from './logging-type';
|
|
2
|
+
type Emit = (event: LogEvent) => void;
|
|
3
|
+
export declare const LogProvider: {
|
|
4
|
+
(props: LogProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
/** LogProvider 가 둔 emit 함수. Provider 밖이면 null 이다. */
|
|
8
|
+
export declare const useLogEmitter: () => Emit | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** 디자인시스템 컴포넌트가 내보내는 행동 이름. 수동 로그(useLog)는 다른 문자열도 쓸 수 있다. */
|
|
3
|
+
export type LogAction = 'click' | 'open' | 'close' | 'change' | 'show' | 'navigate';
|
|
4
|
+
export interface LogEvent {
|
|
5
|
+
/** 컴포넌트 displayName. 수동 로그는 화면·모듈 이름 */
|
|
6
|
+
component: string;
|
|
7
|
+
action: LogAction | (string & {});
|
|
8
|
+
/** 쓰는 쪽이 준 식별자. 예: 'report/download' */
|
|
9
|
+
track: string;
|
|
10
|
+
/** 개발자가 정한 id 만 (탭 id, 칩 id, 옵션 value, 탭 바 id). 사용자가 입력한 글자는 절대 넣지 않는다 */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** 쓰는 쪽이 trackProps 로 명시한 값 */
|
|
13
|
+
props?: Record<string, string | number | boolean>;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
}
|
|
16
|
+
/** 상호작용 컴포넌트가 공개 Props 에 extends 하는 두 prop */
|
|
17
|
+
export interface TrackProps {
|
|
18
|
+
/** 주면 이 컴포넌트의 상호작용이 LogProvider.onEvent 로 간다. 없으면 아무것도 보내지 않는다 */
|
|
19
|
+
track?: string;
|
|
20
|
+
trackProps?: LogEvent['props'];
|
|
21
|
+
}
|
|
22
|
+
export interface LogProviderProps {
|
|
23
|
+
onEvent: (event: LogEvent) => void;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LogEvent } from './logging-type';
|
|
2
|
+
export { LogProvider } from './log-context';
|
|
3
|
+
/** 컴포넌트 밖의 사용 로그를 남긴다. LogProvider 밖이면 아무것도 하지 않는다. */
|
|
4
|
+
export declare const useLog: () => ((event: Omit<LogEvent, "timestamp">) => void);
|
|
5
|
+
export type { LogEvent, LogAction, LogProviderProps, TrackProps } from './logging-type';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
(props: import("./logging-type").LogProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
};
|
|
11
|
+
args: {
|
|
12
|
+
onEvent: () => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
/** 버튼을 누르거나 탭을 바꾸면 onEvent 가 받은 이벤트가 아래 목록 맨 위에 쌓인다. */
|
|
18
|
+
export declare const Default: Story;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
3
|
import { CTAButtonProps } from '../button/button-type';
|
|
4
|
+
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
import { sizes } from './modal-props';
|
|
5
6
|
export interface ModalRootProps {
|
|
6
7
|
open?: boolean;
|
|
@@ -36,7 +37,7 @@ export interface ModalWithDoubleButtonProps {
|
|
|
36
37
|
right: CTAButtonProps;
|
|
37
38
|
size?: (typeof sizes)[number];
|
|
38
39
|
}
|
|
39
|
-
export interface ModalProps extends ModalRootProps, StyleProps {
|
|
40
|
+
export interface ModalProps extends ModalRootProps, StyleProps, TrackProps {
|
|
40
41
|
/** 있으면 `Modal.Trigger asChild` 로 감싸 클릭하면 열리는 요소가 된다. */
|
|
41
42
|
trigger?: ReactElement;
|
|
42
43
|
title: ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { TrackProps } from '../logging/logging-type';
|
|
2
3
|
import { sizes } from './pagination-props';
|
|
3
4
|
export interface PaginationRootProps extends ComponentPropsWithRef<'nav'> {
|
|
4
5
|
disabled?: boolean;
|
|
@@ -9,7 +10,7 @@ export interface PaginationItemProps extends ComponentPropsWithRef<'button'> {
|
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type PaginationEllipsisProps = ComponentPropsWithRef<'span'>;
|
|
12
|
-
export interface PaginationProps extends PaginationRootProps {
|
|
13
|
+
export interface PaginationProps extends PaginationRootProps, TrackProps {
|
|
13
14
|
totalPages: number;
|
|
14
15
|
page?: number;
|
|
15
16
|
defaultPage?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ComponentPropsWithRef } from 'react';
|
|
3
3
|
import { AsChildProps } from '../../helpers/types/common-props';
|
|
4
|
+
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
export interface RadioRootProps {
|
|
5
6
|
options: {
|
|
6
7
|
id: string;
|
|
@@ -22,4 +23,5 @@ export interface RadioButtonProps extends ComponentPropsWithRef<'button'>, AsChi
|
|
|
22
23
|
export interface RadioIndicatorProps extends HTMLAttributes<HTMLDivElement>, AsChildProps {
|
|
23
24
|
id: string;
|
|
24
25
|
}
|
|
25
|
-
export
|
|
26
|
+
export interface RadioProps extends RadioRootProps, TrackProps {
|
|
27
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RadioProps } from './radio-type';
|
|
2
|
+
declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
2
3
|
export default Radio;
|
|
3
4
|
export type { RadioProps } from './radio-type';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("react").ForwardRefExoticComponent<import("./radio-type").
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<import("./radio-type").RadioProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
5
5
|
args: {
|
|
6
6
|
options: {
|
|
7
7
|
id: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { sizes } from './switch-props';
|
|
4
5
|
export interface SwitchRootProps extends Omit<ComponentPropsWithRef<'button'>, 'id' | 'onChange' | 'value'> {
|
|
5
6
|
id: string;
|
|
@@ -13,7 +14,7 @@ export type SwitchThumbProps = ComponentPropsWithRef<'span'>;
|
|
|
13
14
|
export interface SwitchLabelProps extends AsChildProps {
|
|
14
15
|
className?: string;
|
|
15
16
|
}
|
|
16
|
-
export interface SwitchProps extends SwitchRootProps {
|
|
17
|
+
export interface SwitchProps extends SwitchRootProps, TrackProps {
|
|
17
18
|
label?: ReactNode;
|
|
18
19
|
size?: (typeof sizes)[number];
|
|
19
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { TrackProps } from '../logging/logging-type';
|
|
2
3
|
export interface TableProps {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
}
|
|
@@ -23,7 +24,7 @@ type ColumnsType<T extends readonly RowItem[]> = Array<{
|
|
|
23
24
|
onClickCell?: () => void;
|
|
24
25
|
};
|
|
25
26
|
}>;
|
|
26
|
-
export interface DataTableProps<T extends readonly RowItem[]> {
|
|
27
|
+
export interface DataTableProps<T extends readonly RowItem[]> extends TrackProps {
|
|
27
28
|
rows: T;
|
|
28
29
|
columns: ColumnsType<T>;
|
|
29
30
|
fixedRowsIndex?: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { variant } from './tabs-props';
|
|
4
5
|
export type TabsValue = string | null;
|
|
5
6
|
export type TabsVariant = (typeof variant)[number];
|
|
@@ -10,7 +11,7 @@ export interface TabsItem {
|
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
leftIcon?: ReactNode;
|
|
12
13
|
}
|
|
13
|
-
export interface TabsProps extends StyleProps {
|
|
14
|
+
export interface TabsProps extends StyleProps, TrackProps {
|
|
14
15
|
items: TabsItem[];
|
|
15
16
|
variant?: TabsVariant;
|
|
16
17
|
value?: TabsValue;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { TrackProps } from '../logging/logging-type';
|
|
2
3
|
import { resize, sizes } from './text-area-props';
|
|
3
4
|
export interface TextAreaRootProps {
|
|
4
5
|
children: ReactNode;
|
|
@@ -20,7 +21,7 @@ export interface TextAreaHelperTextProps {
|
|
|
20
21
|
text: ReactNode;
|
|
21
22
|
className?: string;
|
|
22
23
|
}
|
|
23
|
-
export interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'title'
|
|
24
|
+
export interface TextAreaProps extends Omit<ComponentPropsWithRef<'textarea'>, 'title'>, TrackProps {
|
|
24
25
|
size?: (typeof sizes)[number];
|
|
25
26
|
width?: number | string;
|
|
26
27
|
resize?: (typeof resize)[number];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { TrackProps } from '../logging/logging-type';
|
|
2
3
|
import { sizes } from './text-field-props';
|
|
3
4
|
export interface TextFieldRootProps {
|
|
4
5
|
children: React.ReactNode;
|
|
@@ -20,7 +21,7 @@ export interface TextFieldHelperTextProps {
|
|
|
20
21
|
text: ReactNode;
|
|
21
22
|
className?: string;
|
|
22
23
|
}
|
|
23
|
-
export interface TextFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'title' | 'size'
|
|
24
|
+
export interface TextFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'title' | 'size'>, TrackProps {
|
|
24
25
|
size: (typeof sizes)[number];
|
|
25
26
|
width: number | string;
|
|
26
27
|
leftIcon?: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
3
4
|
import { positions, variants } from './toast-props';
|
|
4
5
|
export interface ToastProviderProps {
|
|
5
6
|
children: ReactNode;
|
|
@@ -36,7 +37,7 @@ export interface ToastAction {
|
|
|
36
37
|
onClick: () => void;
|
|
37
38
|
altText: string;
|
|
38
39
|
}
|
|
39
|
-
export interface ToastProps extends Omit<ToastRootProps, 'children' | keyof StyleProps>, StyleProps {
|
|
40
|
+
export interface ToastProps extends Omit<ToastRootProps, 'children' | keyof StyleProps>, StyleProps, TrackProps {
|
|
40
41
|
title: ReactNode;
|
|
41
42
|
description?: ReactNode;
|
|
42
43
|
variant?: (typeof variants)[number];
|