@nurihaus/web-design-system 3.19.0 → 3.21.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/ai/components.md +75 -1
- package/dist/ai/motion.md +114 -89
- package/dist/ai/tokens.md +15 -0
- package/dist/bottom-nav.js +29 -4
- package/dist/chunk-8982.js +10 -1
- package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -0
- package/dist/components/bottom-nav/bottom-nav.stories.d.ts +2 -0
- package/dist/components/nudge/base-nudge.d.ts +4 -0
- package/dist/components/nudge/nudge-props.d.ts +4 -0
- package/dist/components/nudge/nudge-type.d.ts +36 -0
- package/dist/components/nudge/nudge.d.ts +5 -0
- package/dist/components/nudge/nudge.stories.d.ts +308 -0
- package/dist/components.css +271 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +336 -5
- package/dist/nudge.js +471 -0
- package/dist/styles.css +250 -0
- package/dist/tokens/generated/motion.d.ts +9 -0
- package/dist/tokens/generated/semantic-app.d.ts +2 -0
- package/dist/tokens.css +18 -0
- package/dist/tokens.js +12 -1
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -2627,7 +2627,7 @@ var classNames = __nuri_require__(3274);
|
|
|
2627
2627
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
2628
2628
|
var getMergedProps = __nuri_require__(7335);
|
|
2629
2629
|
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
2630
|
-
var
|
|
2630
|
+
var icon_icon = __nuri_require__(3547);
|
|
2631
2631
|
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
2632
2632
|
var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
|
|
2633
2633
|
;// ./components/bottom-nav/base-bottom-nav.tsx
|
|
@@ -2718,6 +2718,30 @@ var Anchor = function Anchor(props) {
|
|
|
2718
2718
|
return (0,jsx_runtime_.jsx)("a", bottom_nav_assign({}, props));
|
|
2719
2719
|
};
|
|
2720
2720
|
Anchor.displayName = 'BottomNavAnchor';
|
|
2721
|
+
// 사진이 있으면 사진, 없거나 못 불러오면 아이콘. 실패한 주소를 기억해 주소가 바뀌면 다시 시도한다
|
|
2722
|
+
var ItemGlyph = function ItemGlyph(_a) {
|
|
2723
|
+
var icon = _a.icon,
|
|
2724
|
+
image = _a.image,
|
|
2725
|
+
isActive = _a.isActive;
|
|
2726
|
+
var _b = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(),
|
|
2727
|
+
failedImage = _b[0],
|
|
2728
|
+
setFailedImage = _b[1];
|
|
2729
|
+
if (image && image !== failedImage) {
|
|
2730
|
+
// 이름은 탭 라벨이 읽는다
|
|
2731
|
+
return (0,jsx_runtime_.jsx)("img", {
|
|
2732
|
+
className: 'bottom-nav-image',
|
|
2733
|
+
src: image,
|
|
2734
|
+
alt: '',
|
|
2735
|
+
onError: function onError() {
|
|
2736
|
+
return setFailedImage(image);
|
|
2737
|
+
}
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
return (0,jsx_runtime_.jsx)(icon_icon/* default */.A, {
|
|
2741
|
+
name: icon,
|
|
2742
|
+
weight: isActive ? 'fill' : 'regular'
|
|
2743
|
+
});
|
|
2744
|
+
};
|
|
2721
2745
|
var BottomNav = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
2722
2746
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, bottomNavProps),
|
|
2723
2747
|
className = _a.className,
|
|
@@ -2770,9 +2794,10 @@ var BottomNav = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
2770
2794
|
children: item.label
|
|
2771
2795
|
}), (0,jsx_runtime_.jsxs)("span", {
|
|
2772
2796
|
className: 'bottom-nav-icon',
|
|
2773
|
-
children: [(0,jsx_runtime_.jsx)(
|
|
2774
|
-
|
|
2775
|
-
|
|
2797
|
+
children: [(0,jsx_runtime_.jsx)(ItemGlyph, {
|
|
2798
|
+
icon: item.icon,
|
|
2799
|
+
image: item.image,
|
|
2800
|
+
isActive: isActive
|
|
2776
2801
|
}), item.badge && (0,jsx_runtime_.jsx)(base_bottom_nav.Badge, {
|
|
2777
2802
|
className: 'bottom-nav-badge',
|
|
2778
2803
|
count: item.badge.count,
|
|
@@ -10826,6 +10851,297 @@ Notice.displayName = 'Notice';
|
|
|
10826
10851
|
|
|
10827
10852
|
/***/ },
|
|
10828
10853
|
|
|
10854
|
+
/***/ 7838
|
|
10855
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
10856
|
+
|
|
10857
|
+
|
|
10858
|
+
// EXPORTS
|
|
10859
|
+
__nuri_require__.d(__webpack_exports__, {
|
|
10860
|
+
A: () => (/* binding */ nudge)
|
|
10861
|
+
});
|
|
10862
|
+
|
|
10863
|
+
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
10864
|
+
var jsx_runtime_ = __nuri_require__(612);
|
|
10865
|
+
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
10866
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
10867
|
+
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
10868
|
+
var useTrack = __nuri_require__(4560);
|
|
10869
|
+
// EXTERNAL MODULE: ./helpers/motion/prefers-reduced-motion.ts
|
|
10870
|
+
var prefers_reduced_motion = __nuri_require__(9717);
|
|
10871
|
+
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
10872
|
+
var classNames = __nuri_require__(3274);
|
|
10873
|
+
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
10874
|
+
var icon = __nuri_require__(3547);
|
|
10875
|
+
;// ./components/nudge/base-nudge.tsx
|
|
10876
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
10877
|
+
__assign = Object.assign || function (t) {
|
|
10878
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10879
|
+
s = arguments[i];
|
|
10880
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10881
|
+
}
|
|
10882
|
+
return t;
|
|
10883
|
+
};
|
|
10884
|
+
return __assign.apply(this, arguments);
|
|
10885
|
+
};
|
|
10886
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
10887
|
+
var t = {};
|
|
10888
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10889
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10890
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10891
|
+
}
|
|
10892
|
+
return t;
|
|
10893
|
+
};
|
|
10894
|
+
|
|
10895
|
+
|
|
10896
|
+
|
|
10897
|
+
var BaseNudge = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
10898
|
+
var className = props.className,
|
|
10899
|
+
restProps = __rest(props, ["className"]);
|
|
10900
|
+
return (0,jsx_runtime_.jsx)("section", __assign({
|
|
10901
|
+
ref: ref,
|
|
10902
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-nudge', className)
|
|
10903
|
+
}, restProps));
|
|
10904
|
+
});
|
|
10905
|
+
BaseNudge.displayName = 'BaseNudge';
|
|
10906
|
+
/* harmony default export */ const base_nudge = (BaseNudge);
|
|
10907
|
+
;// ./components/nudge/nudge.tsx
|
|
10908
|
+
var nudge_assign = undefined && undefined.__assign || function () {
|
|
10909
|
+
nudge_assign = Object.assign || function (t) {
|
|
10910
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10911
|
+
s = arguments[i];
|
|
10912
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10913
|
+
}
|
|
10914
|
+
return t;
|
|
10915
|
+
};
|
|
10916
|
+
return nudge_assign.apply(this, arguments);
|
|
10917
|
+
};
|
|
10918
|
+
var nudge_rest = undefined && undefined.__rest || function (s, e) {
|
|
10919
|
+
var t = {};
|
|
10920
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10921
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10922
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10923
|
+
}
|
|
10924
|
+
return t;
|
|
10925
|
+
};
|
|
10926
|
+
|
|
10927
|
+
|
|
10928
|
+
|
|
10929
|
+
|
|
10930
|
+
|
|
10931
|
+
|
|
10932
|
+
|
|
10933
|
+
/** 이만큼(px) 옆으로 밀면 다음·이전 항목 */
|
|
10934
|
+
var SWIPE_DISTANCE = 40;
|
|
10935
|
+
/** 한 줄 높이 자리에서 항목을 차례로 돌려 보여 준다. 손을 대거나 포커스·호버 중에는 멈춘다 */
|
|
10936
|
+
var Nudge = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
10937
|
+
var className = props.className,
|
|
10938
|
+
items = props.items,
|
|
10939
|
+
onDismiss = props.onDismiss,
|
|
10940
|
+
_a = props.interval,
|
|
10941
|
+
interval = _a === void 0 ? 3000 : _a,
|
|
10942
|
+
_b = props.dismissLabel,
|
|
10943
|
+
dismissLabel = _b === void 0 ? '닫기' : _b,
|
|
10944
|
+
track = props.track,
|
|
10945
|
+
trackProps = props.trackProps,
|
|
10946
|
+
restProps = nudge_rest(props, ["className", "items", "onDismiss", "interval", "dismissLabel", "track", "trackProps"]);
|
|
10947
|
+
var emit = (0,useTrack/* useTrack */.n)('Nudge', {
|
|
10948
|
+
track: track,
|
|
10949
|
+
trackProps: trackProps
|
|
10950
|
+
});
|
|
10951
|
+
var _c = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(0),
|
|
10952
|
+
index = _c[0],
|
|
10953
|
+
setIndex = _c[1];
|
|
10954
|
+
var _d = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(null),
|
|
10955
|
+
leaving = _d[0],
|
|
10956
|
+
setLeaving = _d[1];
|
|
10957
|
+
var _e = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
|
|
10958
|
+
hovered = _e[0],
|
|
10959
|
+
setHovered = _e[1];
|
|
10960
|
+
var _f = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
|
|
10961
|
+
focused = _f[0],
|
|
10962
|
+
setFocused = _f[1];
|
|
10963
|
+
var _g = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
|
|
10964
|
+
held = _g[0],
|
|
10965
|
+
setHeld = _g[1];
|
|
10966
|
+
var viewportRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
10967
|
+
var swipeStartX = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
10968
|
+
var swiped = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(false);
|
|
10969
|
+
var refocus = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(false);
|
|
10970
|
+
var count = items.length;
|
|
10971
|
+
// 항목이 빠져도 같은 자리 숫자를 쓰면 다음 항목이 그 자리에 온다. 마지막이 빠지면 처음으로 돈다
|
|
10972
|
+
var position = count ? index % count : 0;
|
|
10973
|
+
var current = count ? items[position] : undefined;
|
|
10974
|
+
var paused = hovered || focused || held;
|
|
10975
|
+
var go = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useCallback)(function (step) {
|
|
10976
|
+
if (!current || count < 2) return;
|
|
10977
|
+
setLeaving({
|
|
10978
|
+
item: current,
|
|
10979
|
+
reason: 'cycle'
|
|
10980
|
+
});
|
|
10981
|
+
setIndex((position + step + count) % count);
|
|
10982
|
+
}, [current, count, position]);
|
|
10983
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
|
|
10984
|
+
// 움직임 줄이기면 넘기지 않고 첫 항목만 둔다
|
|
10985
|
+
if (paused || count < 2 || (0,prefers_reduced_motion/* prefersReducedMotion */.O)()) return undefined;
|
|
10986
|
+
var timer = window.setTimeout(function () {
|
|
10987
|
+
return go(1);
|
|
10988
|
+
}, interval);
|
|
10989
|
+
return function () {
|
|
10990
|
+
return window.clearTimeout(timer);
|
|
10991
|
+
};
|
|
10992
|
+
}, [paused, count, interval, go]);
|
|
10993
|
+
// 키보드로 넘기거나 닫으면 바뀐 항목의 버튼으로 포커스를 옮긴다. 빠진 버튼에 포커스가 남지 않게
|
|
10994
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
|
|
10995
|
+
var _a, _b;
|
|
10996
|
+
if (!refocus.current) return;
|
|
10997
|
+
refocus.current = false;
|
|
10998
|
+
(_b = (_a = viewportRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('.nudge-item:not([data-leaving]) .nudge-action')) === null || _b === void 0 ? void 0 : _b.focus();
|
|
10999
|
+
}, [current === null || current === void 0 ? void 0 : current.id]);
|
|
11000
|
+
if (!current && !leaving) return null;
|
|
11001
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
11002
|
+
if (count < 2 || event.key !== 'ArrowRight' && event.key !== 'ArrowLeft') return;
|
|
11003
|
+
event.preventDefault();
|
|
11004
|
+
refocus.current = true;
|
|
11005
|
+
go(event.key === 'ArrowRight' ? 1 : -1);
|
|
11006
|
+
};
|
|
11007
|
+
var handlePointerDown = function handlePointerDown(event) {
|
|
11008
|
+
setHeld(true);
|
|
11009
|
+
swipeStartX.current = event.clientX;
|
|
11010
|
+
};
|
|
11011
|
+
var handlePointerUp = function handlePointerUp(event) {
|
|
11012
|
+
setHeld(false);
|
|
11013
|
+
if (swipeStartX.current === null) return;
|
|
11014
|
+
var distance = event.clientX - swipeStartX.current;
|
|
11015
|
+
swipeStartX.current = null;
|
|
11016
|
+
if (Math.abs(distance) < SWIPE_DISTANCE) return;
|
|
11017
|
+
swiped.current = true;
|
|
11018
|
+
// 밀기 뒤에 click 이 오지 않으면(터치) 다음 진짜 탭을 삼키지 않게 바로 푼다
|
|
11019
|
+
window.setTimeout(function () {
|
|
11020
|
+
swiped.current = false;
|
|
11021
|
+
});
|
|
11022
|
+
go(distance < 0 ? 1 : -1);
|
|
11023
|
+
};
|
|
11024
|
+
var handlePointerCancel = function handlePointerCancel() {
|
|
11025
|
+
setHeld(false);
|
|
11026
|
+
swipeStartX.current = null;
|
|
11027
|
+
};
|
|
11028
|
+
// 밀어서 넘긴 손가락이 버튼 위에서 떨어져도 그 버튼을 누른 것으로 치지 않는다
|
|
11029
|
+
var handleClickCapture = function handleClickCapture(event) {
|
|
11030
|
+
if (!swiped.current) return;
|
|
11031
|
+
swiped.current = false;
|
|
11032
|
+
event.preventDefault();
|
|
11033
|
+
event.stopPropagation();
|
|
11034
|
+
};
|
|
11035
|
+
var handleBlur = function handleBlur(event) {
|
|
11036
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setFocused(false);
|
|
11037
|
+
};
|
|
11038
|
+
// 나가는 항목은 들어오는 항목이 다 나타난 뒤에 뗀다. 먼저 떼면 들어오는 항목의 지연이 사라져 끝 모습으로 튄다
|
|
11039
|
+
var handleAnimationEnd = function handleAnimationEnd(event) {
|
|
11040
|
+
if (event.animationName === 'motion-cycle-in' || !current) setLeaving(null);
|
|
11041
|
+
};
|
|
11042
|
+
var handleDismiss = function handleDismiss(item) {
|
|
11043
|
+
emit('close', item.id);
|
|
11044
|
+
setLeaving({
|
|
11045
|
+
item: item,
|
|
11046
|
+
reason: 'dismiss'
|
|
11047
|
+
});
|
|
11048
|
+
refocus.current = true;
|
|
11049
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(item.id);
|
|
11050
|
+
};
|
|
11051
|
+
var renderItem = function renderItem(item, leavingReason) {
|
|
11052
|
+
var _a, _b;
|
|
11053
|
+
var tone = (_a = item.tone) !== null && _a !== void 0 ? _a : 'neutral';
|
|
11054
|
+
var handleAction = function handleAction() {
|
|
11055
|
+
var _a, _b;
|
|
11056
|
+
emit('click', item.id);
|
|
11057
|
+
(_b = (_a = item.action).onClick) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
11058
|
+
};
|
|
11059
|
+
return (0,jsx_runtime_.jsxs)("div", {
|
|
11060
|
+
className: 'nudge-item',
|
|
11061
|
+
role: 'group',
|
|
11062
|
+
"aria-label": leavingReason ? undefined : "".concat(position + 1, " / ").concat(count),
|
|
11063
|
+
"aria-hidden": leavingReason ? true : undefined,
|
|
11064
|
+
"data-tone": tone,
|
|
11065
|
+
"data-leaving": leavingReason,
|
|
11066
|
+
children: [(0,jsx_runtime_.jsxs)("span", {
|
|
11067
|
+
className: 'nudge-tile',
|
|
11068
|
+
"data-tone": (_b = item.tileTone) !== null && _b !== void 0 ? _b : tone,
|
|
11069
|
+
"aria-hidden": true,
|
|
11070
|
+
children: [item.tile, item.tileBadge !== undefined && (0,jsx_runtime_.jsx)("span", {
|
|
11071
|
+
className: 'nudge-tile-badge',
|
|
11072
|
+
children: item.tileBadge
|
|
11073
|
+
})]
|
|
11074
|
+
}), (0,jsx_runtime_.jsxs)("div", {
|
|
11075
|
+
className: 'nudge-text',
|
|
11076
|
+
children: [(0,jsx_runtime_.jsx)("span", {
|
|
11077
|
+
className: 'nudge-title',
|
|
11078
|
+
children: item.title
|
|
11079
|
+
}), item.description && (0,jsx_runtime_.jsx)("span", {
|
|
11080
|
+
className: 'nudge-description',
|
|
11081
|
+
children: item.description
|
|
11082
|
+
})]
|
|
11083
|
+
}), item.action.href ? (0,jsx_runtime_.jsx)("a", {
|
|
11084
|
+
className: 'nudge-action motion-press',
|
|
11085
|
+
href: item.action.href,
|
|
11086
|
+
tabIndex: leavingReason ? -1 : undefined,
|
|
11087
|
+
onClick: handleAction,
|
|
11088
|
+
children: item.action.label
|
|
11089
|
+
}) : (0,jsx_runtime_.jsx)("button", {
|
|
11090
|
+
className: 'nudge-action motion-press',
|
|
11091
|
+
type: 'button',
|
|
11092
|
+
tabIndex: leavingReason ? -1 : undefined,
|
|
11093
|
+
onClick: handleAction,
|
|
11094
|
+
children: item.action.label
|
|
11095
|
+
}), onDismiss && (0,jsx_runtime_.jsx)("button", {
|
|
11096
|
+
className: 'nudge-dismiss',
|
|
11097
|
+
type: 'button',
|
|
11098
|
+
"aria-label": dismissLabel,
|
|
11099
|
+
tabIndex: leavingReason ? -1 : undefined,
|
|
11100
|
+
onClick: function onClick() {
|
|
11101
|
+
return handleDismiss(item);
|
|
11102
|
+
},
|
|
11103
|
+
children: (0,jsx_runtime_.jsx)(icon/* default */.A, {
|
|
11104
|
+
name: 'x',
|
|
11105
|
+
size: 'xs'
|
|
11106
|
+
})
|
|
11107
|
+
})]
|
|
11108
|
+
}, leavingReason ? 'leaving' : item.id);
|
|
11109
|
+
};
|
|
11110
|
+
return (0,jsx_runtime_.jsx)(base_nudge, nudge_assign({
|
|
11111
|
+
ref: ref,
|
|
11112
|
+
className: (0,classNames/* classNames */.x)(className, 'nudge'),
|
|
11113
|
+
"data-state": current ? 'open' : 'closed'
|
|
11114
|
+
}, restProps, {
|
|
11115
|
+
children: (0,jsx_runtime_.jsxs)("div", {
|
|
11116
|
+
ref: viewportRef,
|
|
11117
|
+
className: 'nudge-viewport',
|
|
11118
|
+
"aria-live": paused ? 'polite' : 'off',
|
|
11119
|
+
onKeyDown: handleKeyDown,
|
|
11120
|
+
onPointerDown: handlePointerDown,
|
|
11121
|
+
onPointerUp: handlePointerUp,
|
|
11122
|
+
onPointerCancel: handlePointerCancel,
|
|
11123
|
+
onPointerLeave: handlePointerCancel,
|
|
11124
|
+
onClickCapture: handleClickCapture,
|
|
11125
|
+
onMouseEnter: function onMouseEnter() {
|
|
11126
|
+
return setHovered(true);
|
|
11127
|
+
},
|
|
11128
|
+
onMouseLeave: function onMouseLeave() {
|
|
11129
|
+
return setHovered(false);
|
|
11130
|
+
},
|
|
11131
|
+
onFocus: function onFocus() {
|
|
11132
|
+
return setFocused(true);
|
|
11133
|
+
},
|
|
11134
|
+
onBlur: handleBlur,
|
|
11135
|
+
onAnimationEnd: handleAnimationEnd,
|
|
11136
|
+
children: [leaving && renderItem(leaving.item, leaving.reason), current && renderItem(current)]
|
|
11137
|
+
})
|
|
11138
|
+
}));
|
|
11139
|
+
});
|
|
11140
|
+
Nudge.displayName = 'Nudge';
|
|
11141
|
+
/* harmony default export */ const nudge = (Nudge);
|
|
11142
|
+
|
|
11143
|
+
/***/ },
|
|
11144
|
+
|
|
10829
11145
|
/***/ 7740
|
|
10830
11146
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
10831
11147
|
|
|
@@ -18261,7 +18577,8 @@ var motionPresets = {
|
|
|
18261
18577
|
"in-out": [0.4, 0, 0.1, 1],
|
|
18262
18578
|
"back": [0.34, 1.56, 0.64, 1],
|
|
18263
18579
|
"symmetric": [0.5, 0, 0.5, 1],
|
|
18264
|
-
"linear": "linear"
|
|
18580
|
+
"linear": "linear",
|
|
18581
|
+
"decelerate": [0.2, 0.8, 0.2, 1]
|
|
18265
18582
|
},
|
|
18266
18583
|
"spring": {
|
|
18267
18584
|
"rapid": {
|
|
@@ -18452,6 +18769,14 @@ var motionTokens = {
|
|
|
18452
18769
|
"pop-scale": 0.4,
|
|
18453
18770
|
"latch-offset": "-6px",
|
|
18454
18771
|
"latch-angle": "-28deg"
|
|
18772
|
+
},
|
|
18773
|
+
"cycle": {
|
|
18774
|
+
"duration": 0.4,
|
|
18775
|
+
"ease": [0.2, 0.8, 0.2, 1],
|
|
18776
|
+
"exit-duration": 0.3,
|
|
18777
|
+
"offset": "-6px",
|
|
18778
|
+
"scale-from": 0.94,
|
|
18779
|
+
"blur": "4px"
|
|
18455
18780
|
}
|
|
18456
18781
|
};
|
|
18457
18782
|
|
|
@@ -19038,6 +19363,8 @@ var border = __nuri_require__(3821);
|
|
|
19038
19363
|
var table_row = __nuri_require__(3811);
|
|
19039
19364
|
// EXTERNAL MODULE: ./components/notice/notice.tsx + 2 modules
|
|
19040
19365
|
var notice = __nuri_require__(2980);
|
|
19366
|
+
// EXTERNAL MODULE: ./components/nudge/nudge.tsx + 1 modules
|
|
19367
|
+
var nudge = __nuri_require__(7838);
|
|
19041
19368
|
// EXTERNAL MODULE: ./components/empty-state/empty-state.tsx + 2 modules
|
|
19042
19369
|
var empty_state = __nuri_require__(5589);
|
|
19043
19370
|
// EXTERNAL MODULE: ./components/result-screen/result-screen.tsx + 2 modules
|
|
@@ -20079,6 +20406,8 @@ var semanticApp = {
|
|
|
20079
20406
|
"danger-subtle": "#FFF5F6",
|
|
20080
20407
|
"success-subtle": "#ECFDF3",
|
|
20081
20408
|
"warning-subtle": "#FFF7ED",
|
|
20409
|
+
"warning": "#C2410C",
|
|
20410
|
+
"success": "#166534",
|
|
20082
20411
|
"member-card": "#000000",
|
|
20083
20412
|
"aurora-grey": "#A1A1AA",
|
|
20084
20413
|
"aurora-grey-light": "#D4D4D8",
|
|
@@ -20393,6 +20722,7 @@ var motion = __nuri_require__(8982);
|
|
|
20393
20722
|
|
|
20394
20723
|
|
|
20395
20724
|
|
|
20725
|
+
|
|
20396
20726
|
|
|
20397
20727
|
|
|
20398
20728
|
const __webpack_exports__colors = colors/* colors */.T;
|
|
@@ -20445,6 +20775,7 @@ export const MessageThread = message_thread/* default */.A;
|
|
|
20445
20775
|
export const Modal = modal/* default */.A;
|
|
20446
20776
|
export const ModalWithDoubleButton = modal_with_double_button/* default */.A;
|
|
20447
20777
|
export const Notice = notice/* default */.A;
|
|
20778
|
+
export const Nudge = nudge/* default */.A;
|
|
20448
20779
|
export const NumberKeypad = number_keypad/* default */.A;
|
|
20449
20780
|
export const NumericSpinner = numeric_spinner/* default */.A;
|
|
20450
20781
|
export const OptionBadge = option_badge/* default */.A;
|