@nurihaus/web-design-system 3.9.1 → 3.9.3
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 +1 -1
- package/dist/.storybook/preview.d.ts +49 -0
- package/dist/ai/components.md +721 -111
- package/dist/ai/motion.md +156 -134
- package/dist/ai/tokens.md +295 -137
- package/dist/asset.js +328 -0
- package/dist/avatar.js +208 -33
- package/dist/bottom-nav.js +86 -6
- package/dist/breadcrumb.js +6 -3
- package/dist/card.js +5 -2
- package/dist/check-box.js +81 -45
- package/dist/chip-group.js +50 -12
- package/dist/chunk-1563.js +42 -18
- package/dist/chunk-1983.js +100 -0
- package/dist/chunk-3297.js +130 -0
- package/dist/chunk-3640.js +94 -0
- package/dist/chunk-3839.js +54 -0
- package/dist/chunk-4558.js +13 -2
- package/dist/chunk-4577.js +35 -0
- package/dist/chunk-5302.js +111 -0
- package/dist/{chunk-1657.js → chunk-5589.js} +41 -5
- package/dist/chunk-5670.js +122 -0
- package/dist/chunk-6302.js +10 -10
- package/dist/chunk-6706.js +64 -0
- package/dist/chunk-7302.js +66 -0
- package/dist/chunk-7460.js +204 -0
- package/dist/{chunk-6149.js → chunk-8377.js} +36 -2
- package/dist/chunk-8734.js +33 -0
- package/dist/chunk-8787.js +260 -0
- package/dist/chunk-8933.js +14 -2
- package/dist/chunk-910.js +82 -27
- package/dist/chunk-948.js +166 -0
- package/dist/collapsible-menu.js +109 -55
- package/dist/components/asset/asset-props.d.ts +43 -0
- package/dist/components/asset/asset-type.d.ts +38 -0
- package/dist/components/asset/asset.d.ts +21 -0
- package/dist/components/asset/asset.stories.d.ts +65 -0
- package/dist/components/asset/base-asset.d.ts +7 -0
- package/dist/components/avatar/avatar-props.d.ts +1 -0
- package/dist/components/avatar/avatar-type.d.ts +6 -4
- package/dist/components/avatar/avatar.stories.d.ts +10 -0
- package/dist/components/badge/badge-type.d.ts +10 -4
- package/dist/components/badge/badge.stories.d.ts +15 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +14 -7
- package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -1
- package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
- package/dist/components/breadcrumb/breadcrumb-type.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
- package/dist/components/button/button-appearance.d.ts +50 -0
- package/dist/components/button/button-props.d.ts +12 -3
- package/dist/components/button/button-type.d.ts +14 -4
- package/dist/components/button/button.stories.d.ts +34 -3
- package/dist/components/button/cta-button.d.ts +1 -1
- package/dist/components/callout/callout.stories.d.ts +11 -0
- package/dist/components/card/card-type.d.ts +2 -1
- package/dist/components/card/card.stories.d.ts +9 -0
- package/dist/components/check-box/check-box-props.d.ts +8 -0
- package/dist/components/check-box/check-box-type.d.ts +7 -3
- package/dist/components/check-box/check-box.stories.d.ts +32 -1
- package/dist/components/chip-group/chip-group-props.d.ts +13 -1
- package/dist/components/chip-group/chip-group-type.d.ts +5 -1
- package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
- package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +28 -2
- package/dist/components/collapsible-menu/collapsible-menu.d.ts +1 -1
- package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +14 -0
- package/dist/components/description-list/description-list.stories.d.ts +7 -0
- package/dist/components/drawer/base-drawer.d.ts +2 -4
- package/dist/components/drawer/drawer-type.d.ts +17 -2
- package/dist/components/drawer/drawer.stories.d.ts +21 -0
- package/dist/components/drop-down/drop-down-type.d.ts +4 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
- package/dist/components/elements/text/text-props.d.ts +3 -3
- package/dist/components/elements/text/text-type.d.ts +3 -2
- package/dist/components/elements/text/text.stories.d.ts +13 -1
- package/dist/components/empty-state/empty-state.stories.d.ts +37 -12
- package/dist/components/icon/icon.stories.d.ts +11 -1
- package/dist/components/icon-button/icon-button-type.d.ts +2 -1
- package/dist/components/icon-button/icon-button.stories.d.ts +9 -0
- package/dist/components/list/list-group.stories.d.ts +7 -0
- package/dist/components/list/list-row.stories.d.ts +20 -10
- package/dist/components/list/list-type.d.ts +2 -1
- package/dist/components/loading/index.d.ts +4 -0
- package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
- package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
- package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
- package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
- package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
- package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
- package/dist/components/loading/loading-props.d.ts +9 -0
- package/dist/components/loading/loading-type.d.ts +9 -0
- package/dist/components/loading/loading.stories.d.ts +15 -0
- package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
- package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
- package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
- package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
- package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
- package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
- package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
- package/dist/components/loading/spinner/spinner.d.ts +2 -1
- package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
- package/dist/components/logging/logging.stories.d.ts +5 -0
- package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
- package/dist/components/media/media-type.d.ts +2 -1
- package/dist/components/media/media-viewer.stories.d.ts +7 -0
- package/dist/components/message/message.stories.d.ts +19 -12
- package/dist/components/message-composer/message-composer-type.d.ts +2 -1
- package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
- package/dist/components/modal/modal-type.d.ts +22 -3
- package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
- package/dist/components/modal/modal.stories.d.ts +16 -0
- package/dist/components/motion/motion.stories.d.ts +7 -0
- package/dist/components/notice/notice-type.d.ts +1 -1
- package/dist/components/notice/notice.stories.d.ts +16 -9
- package/dist/components/overlay/overlay-context.d.ts +34 -0
- package/dist/components/overlay/overlay-provider.d.ts +6 -0
- package/dist/components/overlay/overlay-type.d.ts +45 -0
- package/dist/components/overlay/overlay.d.ts +4 -0
- package/dist/components/overlay/overlay.stories.d.ts +34 -0
- package/dist/components/overlay/use-dialog.d.ts +3 -0
- package/dist/components/overlay/use-toast.d.ts +3 -0
- package/dist/components/pagination/pagination-type.d.ts +2 -1
- package/dist/components/pagination/pagination.stories.d.ts +15 -0
- package/dist/components/radio/base-radio.d.ts +5 -2
- package/dist/components/radio/radio-type.d.ts +11 -3
- package/dist/components/radio/radio.stories.d.ts +20 -2
- package/dist/components/skeleton/base-skeleton.d.ts +7 -3
- package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
- package/dist/components/skeleton/skeleton-group.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
- package/dist/components/skeleton/skeleton-type.d.ts +1 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +20 -9
- package/dist/components/step-progress/step-progress-props.d.ts +10 -0
- package/dist/components/step-progress/step-progress-type.d.ts +22 -3
- package/dist/components/step-progress/step-progress.d.ts +1 -1
- package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
- package/dist/components/switch/base-switch.d.ts +2 -4
- package/dist/components/switch/switch-type.d.ts +5 -2
- package/dist/components/switch/switch.stories.d.ts +22 -0
- package/dist/components/table/table-props.d.ts +9 -0
- package/dist/components/table/table-type.d.ts +7 -1
- package/dist/components/table/table.stories.d.ts +46 -0
- package/dist/components/tabs/tabs-type.d.ts +4 -1
- package/dist/components/tabs/tabs.stories.d.ts +17 -0
- package/dist/components/tag/tag-type.d.ts +2 -1
- package/dist/components/tag/tag.stories.d.ts +9 -0
- package/dist/components/text-area/base-text-area.d.ts +2 -1
- package/dist/components/text-area/text-area-type.d.ts +11 -3
- package/dist/components/text-area/text-area.stories.d.ts +15 -0
- package/dist/components/text-field/base-text-field.d.ts +12 -6
- package/dist/components/text-field/text-field-type.d.ts +37 -6
- package/dist/components/text-field/text-field.stories.d.ts +32 -5
- package/dist/components/toast/toast-type.d.ts +4 -1
- package/dist/components/toast/toast.stories.d.ts +28 -13
- package/dist/components/tooltip/tooltip-type.d.ts +4 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/components.css +2005 -672
- package/dist/cta-button.js +94 -33
- package/dist/data-table.js +38 -5
- package/dist/drawer.js +79 -13
- package/dist/drop-down.js +18 -10
- package/dist/helpers/hooks/useCloseOnBackEvent.d.ts +12 -0
- package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
- package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
- package/dist/helpers/motion/appear.d.ts +3 -0
- package/dist/helpers/motion/effects.d.ts +9 -0
- package/dist/helpers/motion/motion-props.d.ts +35 -0
- package/dist/helpers/motion/stagger.d.ts +3 -0
- package/dist/helpers/motion/use-appear.d.ts +12 -0
- package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
- package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
- package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
- package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
- package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -0
- package/dist/icon-button.js +4 -2
- package/dist/icon-text-badge.js +27 -17
- package/dist/icon-text-option-badge.js +19 -13
- package/dist/index.d.ts +11 -4
- package/dist/index.js +4074 -989
- package/dist/list-row.js +5 -2
- package/dist/loading.js +200 -39
- package/dist/media-thumbnail.js +9 -5
- package/dist/message-composer.js +15 -11
- package/dist/modal-with-double-button.js +71 -53
- package/dist/modal.js +95 -29
- package/dist/notice.js +14 -8
- package/dist/option-badge.js +27 -17
- package/dist/overlay.js +1213 -0
- package/dist/pagination.js +11 -7
- package/dist/radio.js +117 -21
- package/dist/reset.css +4 -0
- package/dist/skeleton-group.js +445 -0
- package/dist/skeleton.js +24 -112
- package/dist/step-progress.js +125 -16
- package/dist/styles.css +2309 -756
- package/dist/switch.js +89 -17
- package/dist/tabs.js +77 -23
- package/dist/tag.js +4 -2
- package/dist/text-area.js +81 -31
- package/dist/text-field.js +160 -33
- package/dist/toast.js +98 -241
- package/dist/tokens/generated/motion.d.ts +21 -4
- package/dist/tokens/generated/semantic-admin.d.ts +103 -46
- package/dist/tokens/generated/semantic-app.d.ts +164 -16
- package/dist/tokens.css +578 -103
- package/dist/tokens.js +293 -71
- package/dist/tooltip.js +50 -22
- package/package.json +14 -1
- package/dist/chunk-5226.js +0 -79
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConfirmMotionProps } from './motion-props';
|
|
2
|
+
/**
|
|
3
|
+
* 켜짐(0·1)을 따라가는 스프링의 남은 거리. CSS 가 data-state 로 켜짐을 그리고 `켜짐 - lag` 을 쓴다.
|
|
4
|
+
* 쉴 때 lag 은 0 이라 MotionProvider 가 없어 m.* 가 값을 못 그려도 CSS 만으로 맞는 상태가 보인다.
|
|
5
|
+
* 바뀔 때마다 지금 보이는 위치·속도를 그대로 잇고 0 으로 돌아가므로 연타해도 끊기지 않는다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useConfirmSpring: (on: boolean, options: ConfirmMotionProps) => import("motion-dom").MotionValue<number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnimationEvent } from 'react';
|
|
2
|
+
import type { EffectName } from './effects';
|
|
3
|
+
/**
|
|
4
|
+
* data-effect 로 거는 1회짜리 CSS 효과. 요소에 data-effect={effect} 와 onAnimationEnd 를 단다.
|
|
5
|
+
* trigger(name, times) 는 재생 중이어도 처음부터 다시 times 번 재생한다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useEffectTrigger: () => {
|
|
8
|
+
effect: "blink" | "shake" | "wiggle" | "shine" | undefined;
|
|
9
|
+
trigger: (name: EffectName, times?: number) => void;
|
|
10
|
+
onAnimationEnd: (event: AnimationEvent<Element>) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
type ScrollTarget = Window | HTMLElement;
|
|
3
|
+
interface HideOnScrollOptions {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
/** px. 이만큼 같은 방향으로 움직여야 바뀐다 */
|
|
6
|
+
threshold?: number;
|
|
7
|
+
/** 기본 window */
|
|
8
|
+
target?: ScrollTarget | RefObject<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
/** 아래로 스크롤하면 true(숨김), 위로 스크롤하거나 꼭대기면 false */
|
|
11
|
+
export declare const useHideOnScroll: ({ enabled, threshold, target, }?: HideOnScrollOptions) => boolean;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnimationEvent } from 'react';
|
|
2
|
+
import type { PresenceCallbackProps } from './motion-props';
|
|
3
|
+
interface PresenceCallbacksOptions extends PresenceCallbackProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Radix Content 에 onAnimationEnd 를 달면 motion-enter-* 가 끝날 때 onEntered, motion-exit-* 가 끝날 때 onExited 를 부른다.
|
|
8
|
+
* 열고 닫을 때마다 한 번씩만 부른다.
|
|
9
|
+
*/
|
|
10
|
+
export declare const usePresenceCallbacks: ({ open, onEntered, onExited }: PresenceCallbacksOptions) => {
|
|
11
|
+
onAnimationEnd: (event: AnimationEvent<Element>) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
package/dist/icon-button.js
CHANGED
|
@@ -129,9 +129,11 @@ var IconButton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_re
|
|
|
129
129
|
asChild = _b.asChild,
|
|
130
130
|
children = _b.children,
|
|
131
131
|
_onClick = _b.onClick,
|
|
132
|
+
_c = _b.pressEffect,
|
|
133
|
+
pressEffect = _c === void 0 ? true : _c,
|
|
132
134
|
track = _b.track,
|
|
133
135
|
trackProps = _b.trackProps,
|
|
134
|
-
restProps = icon_button_rest(_b, ["className", "icon", "label", "asChild", "children", "onClick", "track", "trackProps"]);
|
|
136
|
+
restProps = icon_button_rest(_b, ["className", "icon", "label", "asChild", "children", "onClick", "pressEffect", "track", "trackProps"]);
|
|
135
137
|
var emit = (0,useTrack/* useTrack */.n)('IconButton', {
|
|
136
138
|
track: track,
|
|
137
139
|
trackProps: trackProps
|
|
@@ -143,7 +145,7 @@ var IconButton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_re
|
|
|
143
145
|
var link = (0,fillLinkChild/* fillLinkChild */.Q)(asChild, children, content);
|
|
144
146
|
return (0,jsx_runtime_.jsx)(base_icon_button, icon_button_assign({
|
|
145
147
|
ref: ref,
|
|
146
|
-
className: (0,classNames/* classNames */.x)(className, 'icon-button'),
|
|
148
|
+
className: (0,classNames/* classNames */.x)(className, 'icon-button', pressEffect && 'motion-press'),
|
|
147
149
|
"aria-label": label,
|
|
148
150
|
asChild: link !== null,
|
|
149
151
|
onClick: function onClick(event) {
|
package/dist/icon-text-badge.js
CHANGED
|
@@ -49,11 +49,12 @@ var optionBadgeProps = __assign({}, commonBadgeProps);
|
|
|
49
49
|
/* harmony export */ });
|
|
50
50
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
51
51
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
52
|
-
/* harmony import */ var
|
|
53
|
-
/* harmony import */ var
|
|
54
|
-
/* harmony import */ var
|
|
55
|
-
/* harmony import */ var
|
|
56
|
-
/* harmony import */ var
|
|
52
|
+
/* harmony import */ var _helpers_motion_use_attention_handle__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(7589);
|
|
53
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(3274);
|
|
54
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(7335);
|
|
55
|
+
/* harmony import */ var _tooltip_tooltip__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(1563);
|
|
56
|
+
/* harmony import */ var _badge_props__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(1538);
|
|
57
|
+
/* harmony import */ var _base_badge__WEBPACK_IMPORTED_MODULE_7__ = __nuri_require__(6149);
|
|
57
58
|
var __assign = undefined && undefined.__assign || function () {
|
|
58
59
|
__assign = Object.assign || function (t) {
|
|
59
60
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -79,22 +80,25 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
|
|
83
|
+
|
|
82
84
|
var IconTextBadge = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
83
|
-
var _a = (0,
|
|
85
|
+
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_4__/* .getMergedProps */ .p)(props, _badge_props__WEBPACK_IMPORTED_MODULE_6__/* .iconTextBadgeProps */ .wf),
|
|
84
86
|
className = _a.className,
|
|
85
87
|
icon = _a.icon,
|
|
86
88
|
text = _a.text,
|
|
87
89
|
tooltip = _a.tooltip,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
effectRef = _a.effectRef,
|
|
91
|
+
restProps = __rest(_a, ["className", "icon", "text", "tooltip", "effectRef"]);
|
|
92
|
+
var effectProps = (0,_helpers_motion_use_attention_handle__WEBPACK_IMPORTED_MODULE_2__/* .useAttentionHandle */ ._)(effectRef);
|
|
93
|
+
var badge = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_badge__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, __assign({
|
|
90
94
|
ref: ref,
|
|
91
|
-
className: (0,
|
|
92
|
-
}, restProps, {
|
|
95
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)(className, 'icon-text')
|
|
96
|
+
}, effectProps, restProps, {
|
|
93
97
|
children: [icon, (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
|
|
94
98
|
children: text
|
|
95
99
|
})]
|
|
96
100
|
}));
|
|
97
|
-
return tooltip ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
|
|
101
|
+
return tooltip ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tooltip_tooltip__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A, {
|
|
98
102
|
trigger: badge,
|
|
99
103
|
content: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
|
|
100
104
|
children: tooltip.content
|
|
@@ -126,7 +130,7 @@ var x = (y) => {
|
|
|
126
130
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
127
131
|
}
|
|
128
132
|
var y = (x) => (() => (x))
|
|
129
|
-
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });
|
|
133
|
+
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useImperativeHandle"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
130
134
|
|
|
131
135
|
/***/ },
|
|
132
136
|
|
|
@@ -279,19 +283,25 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
279
283
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
280
284
|
/******/ import * as __webpack_chunk_4__ from "./chunk-2777.js";
|
|
281
285
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
282
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
286
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-9387.js";
|
|
283
287
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
284
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
288
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-3640.js";
|
|
285
289
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
286
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
290
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-6706.js";
|
|
287
291
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
288
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
292
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-4917.js";
|
|
289
293
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
294
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-8377.js";
|
|
295
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
296
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-8690.js";
|
|
297
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
298
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-1563.js";
|
|
299
|
+
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
290
300
|
/******/
|
|
291
301
|
/******/ // startup
|
|
292
302
|
/******/ // Load entry module and return exports
|
|
293
303
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
294
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,4917,
|
|
304
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,9387,3640,6706,4917,8377,8690,1563], () => (__nuri_require__(6477)))
|
|
295
305
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
296
306
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
297
307
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -48,10 +48,11 @@ var optionBadgeProps = __assign({}, commonBadgeProps);
|
|
|
48
48
|
/* harmony export */ });
|
|
49
49
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
50
50
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
51
|
-
/* harmony import */ var
|
|
52
|
-
/* harmony import */ var
|
|
53
|
-
/* harmony import */ var
|
|
54
|
-
/* harmony import */ var
|
|
51
|
+
/* harmony import */ var _helpers_motion_use_attention_handle__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(7589);
|
|
52
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(3274);
|
|
53
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(7335);
|
|
54
|
+
/* harmony import */ var _badge_props__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(1538);
|
|
55
|
+
/* harmony import */ var _base_badge__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(6149);
|
|
55
56
|
var __assign = undefined && undefined.__assign || function () {
|
|
56
57
|
__assign = Object.assign || function (t) {
|
|
57
58
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -76,17 +77,20 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
76
77
|
|
|
77
78
|
|
|
78
79
|
|
|
80
|
+
|
|
79
81
|
var IconTextOptionBadge = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
80
|
-
var _a = (0,
|
|
82
|
+
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_4__/* .getMergedProps */ .p)(props, _badge_props__WEBPACK_IMPORTED_MODULE_5__/* .iconTextOptionBadgeProps */ .V4),
|
|
81
83
|
className = _a.className,
|
|
82
84
|
icon = _a.icon,
|
|
83
85
|
text = _a.text,
|
|
84
86
|
option = _a.option,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
effectRef = _a.effectRef,
|
|
88
|
+
restProps = __rest(_a, ["className", "icon", "text", "option", "effectRef"]);
|
|
89
|
+
var effectProps = (0,_helpers_motion_use_attention_handle__WEBPACK_IMPORTED_MODULE_2__/* .useAttentionHandle */ ._)(effectRef);
|
|
90
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_badge__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, __assign({
|
|
87
91
|
ref: ref,
|
|
88
|
-
className: (0,
|
|
89
|
-
}, restProps, {
|
|
92
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)(className, 'icon-text-option')
|
|
93
|
+
}, effectProps, restProps, {
|
|
90
94
|
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
|
|
91
95
|
children: [icon, (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
|
|
92
96
|
children: text
|
|
@@ -106,7 +110,7 @@ var x = (y) => {
|
|
|
106
110
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
107
111
|
}
|
|
108
112
|
var y = (x) => (() => (x))
|
|
109
|
-
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement) });
|
|
113
|
+
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useImperativeHandle"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
110
114
|
|
|
111
115
|
/***/ },
|
|
112
116
|
|
|
@@ -257,15 +261,17 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
257
261
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
258
262
|
/******/ import * as __webpack_chunk_3__ from "./chunk-2777.js";
|
|
259
263
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
260
|
-
/******/ import * as __webpack_chunk_4__ from "./chunk-
|
|
264
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-3640.js";
|
|
261
265
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
262
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
266
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-4917.js";
|
|
263
267
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
268
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-8377.js";
|
|
269
|
+
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
264
270
|
/******/
|
|
265
271
|
/******/ // startup
|
|
266
272
|
/******/ // Load entry module and return exports
|
|
267
273
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
268
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,2777,4917,
|
|
274
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,2777,3640,4917,8377], () => (__nuri_require__(9891)))
|
|
269
275
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
270
276
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
271
277
|
/******/ export { __webpack_exports__default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as Asset } from './components/asset/asset';
|
|
1
2
|
export { default as Avatar } from './components/avatar/avatar';
|
|
2
3
|
export { default as CTAButton } from './components/button/cta-button';
|
|
3
4
|
export { default as IconButton } from './components/icon-button/icon-button';
|
|
@@ -16,6 +17,7 @@ export { default as Pagination } from './components/pagination/pagination';
|
|
|
16
17
|
export { default as Modal } from './components/modal/modal';
|
|
17
18
|
export { default as Drawer } from './components/drawer/drawer';
|
|
18
19
|
export { default as Skeleton } from './components/skeleton/skeleton';
|
|
20
|
+
export { default as SkeletonGroup } from './components/skeleton/skeleton-group';
|
|
19
21
|
export { default as Breadcrumb } from './components/breadcrumb/breadcrumb';
|
|
20
22
|
export { default as DropDown } from './components/drop-down/drop-down';
|
|
21
23
|
export { default as CollapsibleMenu } from './components/collapsible-menu/collapsible-menu';
|
|
@@ -23,7 +25,7 @@ export { default as Text } from './components/elements/text/text';
|
|
|
23
25
|
export { default as Tooltip, TooltipProvider } from './components/tooltip/tooltip';
|
|
24
26
|
export { default as Tabs } from './components/tabs/tabs';
|
|
25
27
|
export { default as ModalWithDoubleButton } from './components/modal/modal-with-double-button';
|
|
26
|
-
export { Spinner, InlineLoading, OverlayLoading } from './components/loading';
|
|
28
|
+
export { Spinner, InlineLoading, OverlayLoading, ProgressBar, LoadingDots, } from './components/loading';
|
|
27
29
|
export { default as Icon } from './components/icon/icon';
|
|
28
30
|
export { default as BottomNav } from './components/bottom-nav/bottom-nav';
|
|
29
31
|
export { default as StepProgress } from './components/step-progress/step-progress';
|
|
@@ -44,8 +46,10 @@ export { default as MediaThumbnail } from './components/media/media-thumbnail';
|
|
|
44
46
|
export { default as MediaViewer } from './components/media/media-viewer';
|
|
45
47
|
export { LogProvider, useLog } from './components/logging/logging';
|
|
46
48
|
export { MotionProvider } from './components/motion/motion';
|
|
49
|
+
export { OverlayProvider, useDialog, useToast } from './components/overlay/overlay';
|
|
50
|
+
export type { AssetFrameProps, AssetFrameSize, AssetIconProps, AssetImageProps, AssetShape, AssetTextProps, } from './components/asset/asset-type';
|
|
47
51
|
export type { AvatarProps } from './components/avatar/avatar-type';
|
|
48
|
-
export type { CTAButtonProps } from './components/button/button-type';
|
|
52
|
+
export type { CTAButtonProps, Color as CTAButtonColor, Variant as CTAButtonVariant, } from './components/button/button-type';
|
|
49
53
|
export type { IconButtonProps } from './components/icon-button/icon-button-type';
|
|
50
54
|
export type { CalloutProps } from './components/callout/callout-type';
|
|
51
55
|
export type { OptionBadgeProps, IconTextBadgeProps, IconTextOptionBadgeProps, } from './components/badge/badge-type';
|
|
@@ -60,6 +64,7 @@ export type { PaginationProps } from './components/pagination/pagination-type';
|
|
|
60
64
|
export type { ModalProps } from './components/modal/modal-type';
|
|
61
65
|
export type { DrawerProps } from './components/drawer/drawer-type';
|
|
62
66
|
export type { SkeletonProps } from './components/skeleton/skeleton-type';
|
|
67
|
+
export type { SkeletonBlock, SkeletonCustomToken, SkeletonGroupProps, SkeletonPattern, SpacingToken, } from './components/skeleton/skeleton-group-type';
|
|
63
68
|
export type { BreadcrumbProps, BreadcrumbItem } from './components/breadcrumb/breadcrumb-type';
|
|
64
69
|
export type { DropDownProps } from './components/drop-down/drop-down-type';
|
|
65
70
|
export type { CollapsibleMenuProps, CollapsibleMenuItem, CollapsibleMenuLinkProps, } from './components/collapsible-menu/collapsible-menu-type';
|
|
@@ -67,10 +72,10 @@ export type { TextProps } from './components/elements/text/text-type';
|
|
|
67
72
|
export type { TooltipProps, TooltipProviderProps } from './components/tooltip/tooltip-type';
|
|
68
73
|
export type { TabsProps } from './components/tabs/tabs-type';
|
|
69
74
|
export type { ModalWithDoubleButtonProps } from './components/modal/modal-type';
|
|
70
|
-
export type { SpinnerProps, InlineLoadingProps, OverlayLoadingProps } from './components/loading';
|
|
75
|
+
export type { SpinnerProps, InlineLoadingProps, OverlayLoadingProps, ProgressBarProps, LoadingDotsProps, } from './components/loading';
|
|
71
76
|
export type { IconName, IconProps, IconWeight } from './components/icon/icon-type';
|
|
72
77
|
export type { BottomNavProps, BottomNavItem, BottomNavLinkProps, BottomNavBadge, } from './components/bottom-nav/bottom-nav-type';
|
|
73
|
-
export type { StepProgressProps } from './components/step-progress/step-progress-type';
|
|
78
|
+
export type { StepItem, StepProgressProps } from './components/step-progress/step-progress-type';
|
|
74
79
|
export type { ChipGroupProps, ChipGroupItem } from './components/chip-group/chip-group-type';
|
|
75
80
|
export type { CardProps } from './components/card/card-type';
|
|
76
81
|
export type { ListGroupProps, ListRowProps } from './components/list/list-type';
|
|
@@ -84,6 +89,8 @@ export type { BottomBarProps } from './components/bottom-bar/bottom-bar-type';
|
|
|
84
89
|
export type { MediaThumbnailProps, MediaViewerProps } from './components/media/media-type';
|
|
85
90
|
export type { LogEvent, LogAction, LogProviderProps, TrackProps, } from './components/logging/logging-type';
|
|
86
91
|
export type { MotionProviderProps } from './components/motion/motion-type';
|
|
92
|
+
export type { OverlayProviderProps, ConfirmResult, DialogAlertOptions, DialogConfirmOptions, UseDialogReturn, ToastShowOptions, UseToastReturn, } from './components/overlay/overlay-type';
|
|
93
|
+
export type { MotionStrength, AppearAnimation, AttentionHandle, } from './helpers/motion/motion-props';
|
|
87
94
|
export type { Size } from './helpers/props/common-props';
|
|
88
95
|
export { colors, primitive, semanticApp, semanticAdmin, motionTokens, motionPresets, } from './tokens/generated';
|
|
89
96
|
export type { PrimitiveTokens, SemanticAppTokens, SemanticAdminTokens, MotionToken, } from './tokens/generated';
|