@ihabdevteam/core 0.457.0 → 0.459.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components.cjs.js +183 -183
  3. package/dist/components.esm.css +2 -2
  4. package/dist/hooks.cjs.js +1 -1
  5. package/dist/i18n.cjs.js +1 -1
  6. package/dist/ihabdevteam-core.cjs.js +188 -188
  7. package/dist/ihabdevteam-core.d.ts +63 -9
  8. package/dist/packages/core/src/components/BarChart.js +1 -1
  9. package/dist/packages/core/src/components/BottomNav.js +4 -3
  10. package/dist/packages/core/src/components/ChartSection.js +3 -2
  11. package/dist/packages/core/src/components/Header.js +3 -2
  12. package/dist/packages/core/src/components/Landing/Landing.css +29 -0
  13. package/dist/packages/core/src/components/Landing/LandingButton.d.ts +8 -1
  14. package/dist/packages/core/src/components/Landing/LandingButton.js +2 -2
  15. package/dist/packages/core/src/components/Landing/LandingMenuLink.d.ts +22 -0
  16. package/dist/packages/core/src/components/Landing/LandingMenuLink.js +17 -0
  17. package/dist/packages/core/src/components/LandingHeader.css +3 -26
  18. package/dist/packages/core/src/components/LandingHeader.js +8 -1
  19. package/dist/packages/core/src/components/PassCard/PassCard.js +3 -3
  20. package/dist/packages/core/src/components/Popup/Popup.css +7 -0
  21. package/dist/packages/core/src/components/Tooltip/MenuTooltip.d.ts +25 -7
  22. package/dist/packages/core/src/components/Tooltip/MenuTooltip.js +36 -0
  23. package/dist/packages/core/src/components/Training/TrainingCard.d.ts +2 -0
  24. package/dist/packages/core/src/components/Training/TrainingCard.js +2 -2
  25. package/dist/packages/core/src/components.d.ts +2 -0
  26. package/dist/packages/core/src/components.js +1 -0
  27. package/dist/packages/core/src/utils/folderMenu.d.ts +1 -0
  28. package/dist/packages/core/src/utils/folderMenu.js +6 -5
  29. package/dist/packages/core/src/version.d.ts +1 -1
  30. package/dist/packages/core/src/version.js +1 -1
  31. package/dist/utils.cjs.js +2 -2
  32. package/package.json +1 -1
@@ -14,6 +14,7 @@ import { JSX } from 'react';
14
14
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
15
15
  import { LazyExoticComponent } from 'react';
16
16
  import { MouseEvent as MouseEvent_2 } from 'react';
17
+ import type { MouseEventHandler } from 'react';
17
18
  import { default as React_2 } from 'react';
18
19
  import * as React_3 from 'react';
19
20
  import { ReactElement } from 'react';
@@ -2245,7 +2246,7 @@ export declare function copyText(text: string): Promise<boolean>;
2245
2246
  *
2246
2247
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
2247
2248
  */
2248
- export declare const CORE_VERSION = "0.457.0";
2249
+ export declare const CORE_VERSION = "0.459.0";
2249
2250
 
2250
2251
  /** @public */
2251
2252
  declare const coreDefault: Record<string, unknown>;
@@ -3236,6 +3237,12 @@ declare interface FilterSectionInfoProps {
3236
3237
  /** 종성 글자 → 음소(대표음) 변환. 매핑에 없으면 원본 유지. */
3237
3238
  export declare function finalToPhoneme(jong: string): string;
3238
3239
 
3240
+ /**
3241
+ * **한 목록 안에서 겹친 단축키**(청 (447)) — 꺼지지 않은 줄끼리 같은 자판 자리면 그 키를 돌려준다(`'E'`). 시험에서 메뉴마다 불러 겹침을 잡는다.
3242
+ * @public
3243
+ */
3244
+ export declare function findDuplicateShortcuts(columns: TooltipMenuColumn[]): string[];
3245
+
3239
3246
  /** @public 단어의 초성 자모 ('가구' → 'ㄱ') */
3240
3247
  export declare function firstChoseongOf(word: string): string;
3241
3248
 
@@ -3472,6 +3479,7 @@ export declare function folderMenuItems(lines: {
3472
3479
  }): {
3473
3480
  label: string;
3474
3481
  icon: string;
3482
+ shortcut: string;
3475
3483
  onClick: () => void;
3476
3484
  closeOnSelect: true;
3477
3485
  }[];
@@ -4818,7 +4826,7 @@ export declare interface LandingBottomStickyProps {
4818
4826
  *
4819
4827
  * @public
4820
4828
  */
4821
- export declare function LandingButton({ href, tone, arrow, className, children }: LandingButtonProps): JSX.Element;
4829
+ export declare function LandingButton({ href, tone, arrow, align, className, children }: LandingButtonProps): JSX.Element;
4822
4830
 
4823
4831
  /** @public */
4824
4832
  export declare interface LandingButtonProps {
@@ -4833,6 +4841,13 @@ export declare interface LandingButtonProps {
4833
4841
  tone?: 'dark' | 'main' | 'sub' | 'line';
4834
4842
  /** 뒤에 화살표(루시드 `chevron-right`)를 붙인다 */
4835
4843
  arrow?: boolean;
4844
+ /**
4845
+ * 글과 화살표를 어디에 둘까(말귀 청 (451))
4846
+ * · `center` — 둘을 붙여 가운데에(기본)
4847
+ * · `between` — 글은 왼쪽, 화살표는 오른쪽 끝에. 폭이 다른 단추 여럿을 **같은 폭으로 세울 때** 쓴다 —
4848
+ * 가운데에 두면 글이 짧은 단추만 글과 화살표가 안쪽으로 몰려, 줄마다 글 머리와 화살표 자리가 어긋난다.
4849
+ */
4850
+ align?: 'center' | 'between';
4836
4851
  className?: string;
4837
4852
  children: ReactNode;
4838
4853
  }
@@ -4944,6 +4959,28 @@ export declare interface LandingHeaderProps {
4944
4959
  };
4945
4960
  }
4946
4961
 
4962
+ /**
4963
+ * **랜딩의 메뉴 고리** — 글자만 서고, 올리면 주색으로 바뀌며 아래에 밑줄이 왼쪽에서 차오른다(말귀 청 (452)).
4964
+ *
4965
+ * 그 꼴은 `LandingHeader` 의 가운데 메뉴에만 있었다(`.landing-header__links a`). 띠 밖에서 같은 꼴을 쓰려면 그 클래스를
4966
+ * 빌리거나 베껴야 했다 — 말귀 랜딩이 들머리에 구획 고리 줄을 세우며 생긴 일이다. 이제 조각 하나가 그 꼴을 쥐고,
4967
+ * 띠의 메뉴도 이것을 쓴다(한 꼴이 두 곳에 산다).
4968
+ *
4969
+ * 글 크기 · 굵기 · 색은 **부모의 것을 받는다**(`inherit`) — 띠는 15px · 500 · 제 변수 색을 준다. 바꿀 색은 변수로 연다:
4970
+ * `--landing-menu-link-hover`(올렸을 때 · 기본 주색). 띠는 제 옛 변수(`--landing-header-link-hover`)를 여기로 이어 준다.
4971
+ */
4972
+ export declare function LandingMenuLink({ href, current, onClick, className, children }: LandingMenuLinkProps): JSX.Element;
4973
+
4974
+ /** @public */
4975
+ export declare interface LandingMenuLinkProps {
4976
+ href: string;
4977
+ /** 지금 선 자리 — `aria-current="page"` 로 알린다 */
4978
+ current?: boolean;
4979
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
4980
+ className?: string;
4981
+ children: ReactNode;
4982
+ }
4983
+
4947
4984
  /**
4948
4985
  * **랜딩 구획 하나** — 위아래 여백과 안쪽 틀을 한 자리에 둔다.
4949
4986
  *
@@ -5845,6 +5882,9 @@ export declare const ORDER_SETS: unknown[];
5845
5882
  /** @public */
5846
5883
  export declare function OrderListStep({ _stepIndex, _totalSteps, ...rest }: StepWrapperProps): JSX.Element;
5847
5884
 
5885
+ /** 차례 단축키 — 0 번째 → `'1'` … 8 번째 → `'9'`, 그 뒤는 `null`(청 (447)) */
5886
+ export declare function orderShortcut(index: number): string | null;
5887
+
5848
5888
  /** @public */
5849
5889
  export declare function Page(_props: PageProps): null;
5850
5890
 
@@ -8623,7 +8663,7 @@ export declare interface ShortcutBadgeProps {
8623
8663
  }
8624
8664
 
8625
8665
  /** 단축키 글자 → 자판 자리(`KeyE` · `Digit1`). 글자 · 숫자 하나가 아니면 `null` */
8626
- export declare function shortcutCode(shortcut: string | undefined): string | null;
8666
+ export declare function shortcutCode(shortcut: string | null | undefined): string | null;
8627
8667
 
8628
8668
  /**
8629
8669
  * 채점 화면을 떠나려 할 때 **물어봐야 하는가.**
@@ -10300,14 +10340,17 @@ export declare type TooltipMenuColumnItem = {
10300
10340
  * Badge type="dot"으로 표시한다 — 두 메뉴가 같은 항목을 다르게 보여주지 않도록. */
10301
10341
  badgeCount?: number;
10302
10342
  /**
10303
- * **단축키**(말귀 청 (447), 사장님 지시 2026-11-16 *"버튼 단축키 가능한가? · 쇼컷을 이름에 붙이지 말고 우측에 보이도록"*) — 글자 하나
10304
- * (`'E'`) 또는 숫자 하나(`'1'`).
10305
- * · 보이기: 항목 오른쪽 끝에 키캡으로 따로 선다. 이름이 길면 이름이 줄고 키캡은 안 잘린다. 하위 메뉴(`children`) · 배지가 있으면 그쪽이 선다.
10306
- * · 누르기: 메뉴가 떠 있는 동안 그 키를 누르면 이 항목을 누른 것과 같다(`closeOnSelect` 그대로). **자판 자리(`event.code`)로 맞춰**
10307
- * 한글 입력 상태에서도 먹는다. 꺼진 항목 · 입력칸에 초점이 있을 때 · Ctrl/⌘/Alt 와 함께 누를 때는 안 먹는다. 지금 보이는 목록만 본다.
10343
+ * **단축키 — 필수**(말귀 청 (447), 사장님 지시 2026-11-16 *"쇼컷을 이름에 붙이지 말고 우측에 보이도록"* → *"tooltip menu 는 단축키를
10344
+ * 전체적으로 필수로 받아서 모두 사용할 수 있도록"*). 글자 하나(`'E'`) 또는 숫자 하나(`'1'`). 빠뜨리면 tsc 가 운다.
10345
+ * 앱 자료로 짓는 긴 목록처럼 키를 정할 수 없는 줄은 **`null` 로 밝힌다**(아홉째까지는 `withOrderShortcuts` 가 1~9 를 준다).
10346
+ * · 보이기: 항목 오른쪽 끝에 키캡으로 따로 선다. 이름이 길면 이름이 줄고 키캡은 안 잘린다. 하위 메뉴(`children`) · 배지가 있으면 그쪽이 선다
10347
+ * (누르는 것은 된다).
10348
+ * · 누르기: 메뉴가 떠 있는 동안 그 키를 누르면 이 항목을 누른 것과 같다(하위 메뉴면 들어간다, `closeOnSelect` 그대로). **자판 자리(`event.code`)로
10349
+ * 맞춰** 한글 입력 상태에서도 먹는다. 꺼진 항목 · 입력칸에 초점이 있을 때 · Ctrl/⌘/Alt 와 함께 누를 때는 안 먹는다. 지금 보이는 목록만 본다.
10350
+ * · 한 목록 안에서 겹치면 개발 중 콘솔에 한 번 알린다(`findDuplicateShortcuts`). 겹치면 앞의 것이 먹는다.
10308
10351
  * · 낭독기: `aria-keyshortcuts` 로 알린다.
10309
10352
  */
10310
- shortcut?: string;
10353
+ shortcut: string | null;
10311
10354
  };
10312
10355
 
10313
10356
  /** @public */
@@ -10720,6 +10763,8 @@ declare type TrainingCardAction = {
10720
10763
  disabled?: boolean;
10721
10764
  /** 단추 하나일 때의 색 꼴 — 기본 `default`(테두리 있음, 청 (443) ㉪). 좋아요가 켜졌을 때 `danger` 처럼 바꾼다(메뉴 꼴에서는 안 쓴다). */
10722
10765
  variant?: ButtonProps['variant'];
10766
+ /** 둘 이상이라 ⋯ 메뉴로 설 때의 단축키(말귀 청 (447)) — 안 주면 차례대로 1~9. 하나뿐이라 단추로 설 때는 안 쓴다 */
10767
+ shortcut?: string | null;
10723
10768
  };
10724
10769
 
10725
10770
  /** @public */
@@ -12975,6 +13020,15 @@ export declare function withEuRo(text: string): string;
12975
13020
  /** text 뒤에 문맥에 맞는 이/가를 붙여 반환한다. */
12976
13021
  export declare function withIga(text: string): string;
12977
13022
 
13023
+ /**
13024
+ * **앱 자료로 짓는 줄에 차례 단축키를 준다**(청 (447)) — 위에서부터 1~9, 열째부터는 `null`. 키를 이미 쥔 줄은 그대로 둔다.
13025
+ * 코어 안에서는 내비 더보기 · 차트 고르개처럼 무엇이 몇 개 올지 모르는 목록에 쓴다.
13026
+ * @public
13027
+ */
13028
+ export declare function withOrderShortcuts<T extends object>(items: T[]): (T & {
13029
+ shortcut: string | null;
13030
+ })[];
13031
+
12978
13032
  /**
12979
13033
  * @public 스텝 payload 에 **때 둘을 얹는다** — 보인 때 · 답한 때(말귀 요청 (68) 후속, 2026-10-02).
12980
13034
  *
@@ -506,7 +506,7 @@ export default function BarChart({ canvasHeight, fitHeight, focusableBars, size
506
506
  : t('trainingStatus.detail', '상세보기');
507
507
  return (_jsx(ChartSection, { className: sectionClassName, size: sectionSize, inGrid: inGrid, icon: icon, disc: disc, onClick: onClick, ariaLabel: cardAriaLabel, tooltip: cardTooltip, headSegment: headSegment,
508
508
  /* 좁아 고르개가 '⋯' 로 접히면 상세보기도 그 메뉴로 들어간다 — 머리에 단추 둘이 남지 않게 */
509
- headMenuItems: onDetail ? [{ label: detailTitle, icon: 'list', onClick: onDetail, closeOnSelect: true }] : undefined, title: t(titleKey), titleLevel: titleLevel, headRight: isSmall ? (headExtra ?? undefined) : ({ collapsed }) => _jsxs(_Fragment, { children: [!hideControls && _jsx(BarChartControls, { control: control }), headExtra, onDetail && !collapsed && (_jsx("span", { className: withLegacy("bar-chart__detail-btn"), children: _jsx(Button, { htmlType: "button", size: detailSize, type: "dot", icon: "list", ariaLabel: detailTitle, showTooltipInfo: detailTitle, onClick: onDetail }) }))] }),
509
+ headMenuItems: onDetail ? [{ label: detailTitle, icon: 'list', shortcut: 'D', onClick: onDetail, closeOnSelect: true }] : undefined, title: t(titleKey), titleLevel: titleLevel, headRight: isSmall ? (headExtra ?? undefined) : ({ collapsed }) => _jsxs(_Fragment, { children: [!hideControls && _jsx(BarChartControls, { control: control }), headExtra, onDetail && !collapsed && (_jsx("span", { className: withLegacy("bar-chart__detail-btn"), children: _jsx(Button, { htmlType: "button", size: detailSize, type: "dot", icon: "list", ariaLabel: detailTitle, showTooltipInfo: detailTitle, onClick: onDetail }) }))] }),
510
510
  /* 범례는 서브로우 밖 제 자리(`legend`)에 — 사장님 지시 2026-11-02, 수의 줄상자에서 푼다 */
511
511
  legend: _jsx(ChartLegend, { items: legendItems, className: "caption-1" }),
512
512
  /* 속을 카드 키에 맞출 때만 카드가 키를 박는다 — 안 맞추는 카드를 박으면 x축이 흘러나온다 */
@@ -5,7 +5,7 @@ import { createPortal } from 'react-dom';
5
5
  import './BottomNav.css';
6
6
  import Button from './Button';
7
7
  import CircleBadge from './CircleBadge';
8
- import MenuTooltip from './Tooltip/MenuTooltip';
8
+ import MenuTooltip, { withOrderShortcuts } from './Tooltip/MenuTooltip';
9
9
  // .tooltip__content(메뉴 표면)를 직접 쓰므로 정의 파일을 명시적으로 가져온다.
10
10
  // Tooltip.tsx만 이 CSS를 import하는데 BottomNav는 그 컴포넌트를 거치지 않아,
11
11
  // 프로덕션에서 청크가 갈리면 스타일 없이 렌더될 수 있다.
@@ -113,7 +113,8 @@ export default function BottomNav({ items = [], activeKey, onChange, appMode, on
113
113
  const activeMore = useMemo(() => hiddenItems.find(it => !!it.key && it.key === activeKey) ?? moreItems.find(it => it.selected || (it.key && it.key === activeKey)), [hiddenItems, activeKey, moreItems]);
114
114
  // 넘친 nav 항목 + 유틸 항목을 한 컬럼으로 합쳐 더보기 메뉴에 노출(각자 아이콘으로 구분)
115
115
  const moreColumns = useMemo(() => [{
116
- items: [
116
+ /* 단축키는 위에서부터 1~9(청 (447)) — 넘친 항목 · 유틸 항목은 앱 자료라 키를 정할 수 없다 */
117
+ items: withOrderShortcuts([
117
118
  ...hiddenItems.map(it => ({
118
119
  label: it.label,
119
120
  icon: it.icon,
@@ -143,7 +144,7 @@ export default function BottomNav({ items = [], activeKey, onChange, appMode, on
143
144
  handleCloseMore();
144
145
  },
145
146
  })),
146
- ]
147
+ ]),
147
148
  }], [hiddenItems, moreItems, activeKey, onChange, handleCloseMore]);
148
149
  // "…" 단추 배지 — 메뉴 안에서만 보이는 개수(넘친 항목 + 유틸)를 닫힌 채로도 알린다.
149
150
  const moreBadge = [...hiddenItems, ...moreItems].reduce((sum, it) => sum + badgeOf(it.badgeCount), 0);
@@ -11,7 +11,7 @@ import Tooltip from './Tooltip/Tooltip';
11
11
  import TooltipInfo from './Tooltip/InfoTooltip';
12
12
  import { useHoverAnchor } from '../hooks/useHoverAnchor';
13
13
  import { useIsoLayoutEffect } from '../hooks/useIsoLayoutEffect';
14
- import MenuTooltip from './Tooltip/MenuTooltip';
14
+ import MenuTooltip, { orderShortcut } from './Tooltip/MenuTooltip';
15
15
  import { CHART_HEAD_SIZE } from './controlSize';
16
16
  import { withLegacy } from '../utils/legacyBlocks';
17
17
  /** 차트 범례 — 색상 점 + 라벨 목록. BarChart/RingChart 섹션이 공유. @public */
@@ -188,8 +188,9 @@ export default function ChartSection({ type = 'chart', title, titleClassName, ti
188
188
  setMenuRect(null); }, [collapsed]);
189
189
  const menuItems = headSegment
190
190
  ? [
191
- ...headSegment.options.map(o => ({
191
+ ...headSegment.options.map((o, i) => ({
192
192
  label: o.label,
193
+ shortcut: orderShortcut(i),
193
194
  icon: o.icon,
194
195
  selected: o.key === headSegment.value,
195
196
  disabled: o.disabled,
@@ -6,7 +6,7 @@ import { useMediaQuery } from '../hooks';
6
6
  import BottomNav from './BottomNav';
7
7
  import Button from './Button';
8
8
  import CircleBadge from './CircleBadge';
9
- import MenuTooltip from './Tooltip/MenuTooltip';
9
+ import MenuTooltip, { orderShortcut } from './Tooltip/MenuTooltip';
10
10
  import { useAnchoredMenu, anchoredMenuZIndex } from '../hooks/useAnchoredMenu';
11
11
  import { createPortal } from 'react-dom';
12
12
  // 메뉴 표면(.tooltip__content) 정의 — Tooltip.tsx를 거치지 않고 클래스만 쓰므로 명시적으로.
@@ -117,8 +117,9 @@ export default function Header({ activeKey, onChange, items, malgwiItems: _malgw
117
117
  const utilMenuId = useId();
118
118
  const { open: utilOpen, toggle: toggleUtilMenu, close: closeUtilMenu, style: utilMenuStyle, triggerRef: utilTriggerRef, menuRef: utilMenuRef } = useAnchoredMenu({ computeStyle: computeUtilMenuStyle, onScroll: 'ignore', onResize: 'reposition' /* 회전하면 옛 좌표에 남았다 — 다시 잰다 */ });
119
119
  const utilColumns = useMemo(() => [{
120
- items: bottomMoreItems.map(it => ({
120
+ items: bottomMoreItems.map((it, i) => ({
121
121
  label: it.label,
122
+ shortcut: orderShortcut(i),
122
123
  icon: it.icon,
123
124
  badgeCount: it.badgeCount,
124
125
  selected: it.selected ?? (!!it.key && it.key === activeKey),
@@ -147,6 +147,35 @@
147
147
  .landing-button--line { background: var(--color-pureWhite); border-color: var(--color-whiteLine); color: var(--color-black); }
148
148
  .landing-button--line:hover { background: var(--color-pureWhite); color: var(--color-black); }
149
149
 
150
+ /* **메뉴 고리**(`LandingMenuLink`, 말귀 청 (452)) — 글자만, 올리면 주색 · 밑줄이 왼쪽에서 차오른다.
151
+ 글 크기 · 굵기 · 색은 부모의 것을 받는다. `LandingHeader` 의 가운데 메뉴가 쓰던 꼴을 옮겨 왔다 */
152
+ .landing-menu-link {
153
+ color: inherit;
154
+ text-decoration: none;
155
+ position: relative;
156
+ padding: 6px 0;
157
+ transition: color .2s;
158
+ }
159
+ .landing-menu-link:hover { color: var(--landing-menu-link-hover, var(--color-main)); }
160
+ .landing-menu-link::after {
161
+ content: "";
162
+ position: absolute;
163
+ left: 0;
164
+ right: 100%;
165
+ bottom: 0;
166
+ height: 2px;
167
+ background: linear-gradient(90deg, var(--color-main), var(--color-sub));
168
+ border-radius: 1px;
169
+ transition: right .35s cubic-bezier(.2, .7, .2, 1);
170
+ }
171
+ .landing-menu-link:hover::after { right: 0; }
172
+ @media (prefers-reduced-motion: reduce) {
173
+ .landing-menu-link, .landing-menu-link::after { transition: none; }
174
+ }
175
+
176
+ /* 글은 왼쪽, 화살표는 오른쪽 끝(`align="between"`, 말귀 청 (451)) — 같은 폭으로 세운 단추들의 글 머리와 화살표가 줄마다 맞는다 */
177
+ .landing-button--between { justify-content: space-between; }
178
+
150
179
  /* 수 띠 — 겉틀이 **그라데이션 그림자**를 쥔다.
151
180
 
152
181
  `box-shadow` 는 한 색뿐이라 띠처럼 두 색으로 번지게 둘 수 없다(사장님 물음 2026-11-06).
@@ -13,6 +13,13 @@ export interface LandingButtonProps {
13
13
  tone?: 'dark' | 'main' | 'sub' | 'line';
14
14
  /** 뒤에 화살표(루시드 `chevron-right`)를 붙인다 */
15
15
  arrow?: boolean;
16
+ /**
17
+ * 글과 화살표를 어디에 둘까(말귀 청 (451))
18
+ * · `center` — 둘을 붙여 가운데에(기본)
19
+ * · `between` — 글은 왼쪽, 화살표는 오른쪽 끝에. 폭이 다른 단추 여럿을 **같은 폭으로 세울 때** 쓴다 —
20
+ * 가운데에 두면 글이 짧은 단추만 글과 화살표가 안쪽으로 몰려, 줄마다 글 머리와 화살표 자리가 어긋난다.
21
+ */
22
+ align?: 'center' | 'between';
16
23
  className?: string;
17
24
  children: ReactNode;
18
25
  }
@@ -28,4 +35,4 @@ export interface LandingButtonProps {
28
35
  *
29
36
  * @public
30
37
  */
31
- export default function LandingButton({ href, tone, arrow, className, children }: LandingButtonProps): import("react").JSX.Element;
38
+ export default function LandingButton({ href, tone, arrow, align, className, children }: LandingButtonProps): import("react").JSX.Element;
@@ -14,6 +14,6 @@ import './Landing.css';
14
14
  *
15
15
  * @public
16
16
  */
17
- export default function LandingButton({ href, tone = 'dark', arrow = false, className, children }) {
18
- return (_jsxs("a", { className: cx('landing-button', tone !== 'dark' && `landing-button--${tone}`, className), href: href, children: [children, arrow ? (_jsx("svg", { "aria-hidden": "true", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flex: 'none' }, children: _jsx("path", { d: "m9 18 6-6-6-6" }) })) : null] }));
17
+ export default function LandingButton({ href, tone = 'dark', arrow = false, align = 'center', className, children }) {
18
+ return (_jsxs("a", { className: cx('landing-button', tone !== 'dark' && `landing-button--${tone}`, align === 'between' && 'landing-button--between', className), href: href, children: [children, arrow ? (_jsx("svg", { "aria-hidden": "true", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flex: 'none' }, children: _jsx("path", { d: "m9 18 6-6-6-6" }) })) : null] }));
19
19
  }
@@ -0,0 +1,22 @@
1
+ import type { ReactNode, MouseEventHandler } from 'react';
2
+ import './Landing.css';
3
+ /** @public */
4
+ export interface LandingMenuLinkProps {
5
+ href: string;
6
+ /** 지금 선 자리 — `aria-current="page"` 로 알린다 */
7
+ current?: boolean;
8
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
9
+ className?: string;
10
+ children: ReactNode;
11
+ }
12
+ /**
13
+ * **랜딩의 메뉴 고리** — 글자만 서고, 올리면 주색으로 바뀌며 아래에 밑줄이 왼쪽에서 차오른다(말귀 청 (452)).
14
+ *
15
+ * 그 꼴은 `LandingHeader` 의 가운데 메뉴에만 있었다(`.landing-header__links a`). 띠 밖에서 같은 꼴을 쓰려면 그 클래스를
16
+ * 빌리거나 베껴야 했다 — 말귀 랜딩이 들머리에 구획 고리 줄을 세우며 생긴 일이다. 이제 조각 하나가 그 꼴을 쥐고,
17
+ * 띠의 메뉴도 이것을 쓴다(한 꼴이 두 곳에 산다).
18
+ *
19
+ * 글 크기 · 굵기 · 색은 **부모의 것을 받는다**(`inherit`) — 띠는 15px · 500 · 제 변수 색을 준다. 바꿀 색은 변수로 연다:
20
+ * `--landing-menu-link-hover`(올렸을 때 · 기본 주색). 띠는 제 옛 변수(`--landing-header-link-hover`)를 여기로 이어 준다.
21
+ */
22
+ export default function LandingMenuLink({ href, current, onClick, className, children }: LandingMenuLinkProps): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cx } from '../../utils/cx';
4
+ import './Landing.css';
5
+ /**
6
+ * **랜딩의 메뉴 고리** — 글자만 서고, 올리면 주색으로 바뀌며 아래에 밑줄이 왼쪽에서 차오른다(말귀 청 (452)).
7
+ *
8
+ * 그 꼴은 `LandingHeader` 의 가운데 메뉴에만 있었다(`.landing-header__links a`). 띠 밖에서 같은 꼴을 쓰려면 그 클래스를
9
+ * 빌리거나 베껴야 했다 — 말귀 랜딩이 들머리에 구획 고리 줄을 세우며 생긴 일이다. 이제 조각 하나가 그 꼴을 쥐고,
10
+ * 띠의 메뉴도 이것을 쓴다(한 꼴이 두 곳에 산다).
11
+ *
12
+ * 글 크기 · 굵기 · 색은 **부모의 것을 받는다**(`inherit`) — 띠는 15px · 500 · 제 변수 색을 준다. 바꿀 색은 변수로 연다:
13
+ * `--landing-menu-link-hover`(올렸을 때 · 기본 주색). 띠는 제 옛 변수(`--landing-header-link-hover`)를 여기로 이어 준다.
14
+ */
15
+ export default function LandingMenuLink({ href, current, onClick, className, children }) {
16
+ return (_jsx("a", { href: href, onClick: onClick, "aria-current": current ? 'page' : undefined, className: cx('landing-menu-link', className), children: children }));
17
+ }
@@ -73,32 +73,9 @@
73
73
  transform: translateX(-50%);
74
74
  }
75
75
 
76
- .landing-header__links a {
77
- color: inherit;
78
- text-decoration: none;
79
- position: relative;
80
- padding: 6px 0;
81
- transition: color .2s;
82
- }
83
-
84
- .landing-header__links a:hover {
85
- color: var(--landing-header-link-hover, var(--color-main));
86
- }
87
-
88
- /* hover 시 왼쪽에서 오른쪽으로 차오르는 밑줄 */
89
- .landing-header__links a::after {
90
- content: "";
91
- position: absolute;
92
- left: 0;
93
- right: 100%;
94
- bottom: 0;
95
- height: 2px;
96
- background: linear-gradient(90deg, var(--color-main), var(--color-sub));
97
- border-radius: 1px;
98
- transition: right .35s cubic-bezier(.2, .7, .2, 1);
99
- }
100
-
101
- .landing-header__links a:hover::after { right: 0; }
76
+ /* 고리의 꼴(글자 · 올렸을 때 주색 · 차오르는 밑줄)은 조각이 쥔다(`LandingMenuLink`, 말귀 청 (452)) — 띠는 제 옛 변수를
77
+ 그 조각의 변수로 이어 준다(쓰던 쪽이 준 `--landing-header-link-hover` 가 그대로 먹게) */
78
+ .landing-header__links { --landing-menu-link-hover: var(--landing-header-link-hover, var(--color-main)); }
102
79
 
103
80
  .landing-header__actions {
104
81
  display: flex;
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useId, useRef, useState } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { pushEsc } from '../hooks/escStack';
6
+ import LandingMenuLink from './Landing/LandingMenuLink';
6
7
  import './LandingHeader.css';
7
8
  /**
8
9
  * 랜딩/마케팅 페이지용 상단 고정 헤더.
@@ -58,6 +59,12 @@ export default function LandingHeader({ logo, logoAlt = '', logoHref, links = []
58
59
  return renderLink(item, { onClick });
59
60
  return (_jsx("a", { href: item.href, onClick: onClick, "aria-current": item.current ? 'page' : undefined, children: item.label }));
60
61
  };
62
+ /* 가운데 메뉴는 **랜딩 메뉴 고리**다(`LandingMenuLink`) — 꼴을 그 조각이 쥔다. 서랍은 손가락 크기의 제 꼴이라 맨 고리다 */
63
+ const menuLink = (item) => {
64
+ if (renderLink)
65
+ return renderLink(item, {});
66
+ return _jsx(LandingMenuLink, { href: item.href, current: item.current, children: item.label });
67
+ };
61
68
  return (_jsxs("header", { className: className ? `landing-header ${className}` : 'landing-header', children: [_jsxs("div", { className: innerClass, children: [logo != null && (() => {
62
69
  const brand = typeof logo === 'string'
63
70
  ? _jsx("img", { src: logo, alt: logoAlt, className: "landing-header__logo" })
@@ -65,7 +72,7 @@ export default function LandingHeader({ logo, logoAlt = '', logoHref, links = []
65
72
  return logoHref
66
73
  ? _jsx("a", { href: logoHref, className: "landing-header__brand", children: brand })
67
74
  : _jsx("div", { className: "landing-header__brand", children: brand });
68
- })(), links.length > 0 && (_jsx("nav", { className: "landing-header__links", children: links.map((item, i) => (_jsx("span", { children: link(item) }, `${i}:${item.href}`))) })), _jsxs("div", { className: "landing-header__actions", children: [actions, links.length > 0 && (_jsx("button", { ref: toggleRef, type: "button", onClick: () => setOpen(v => !v), "aria-expanded": open, "aria-controls": drawerId, "aria-label": open ? menuLabel.close : menuLabel.open, className: open
75
+ })(), links.length > 0 && (_jsx("nav", { className: "landing-header__links", children: links.map((item, i) => (_jsx("span", { children: menuLink(item) }, `${i}:${item.href}`))) })), _jsxs("div", { className: "landing-header__actions", children: [actions, links.length > 0 && (_jsx("button", { ref: toggleRef, type: "button", onClick: () => setOpen(v => !v), "aria-expanded": open, "aria-controls": drawerId, "aria-label": open ? menuLabel.close : menuLabel.open, className: open
69
76
  ? 'landing-header__toggle landing-header__toggle--open'
70
77
  : 'landing-header__toggle', children: _jsxs("span", { className: "landing-header__burger", children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] }) }))] })] }), links.length > 0 && (_jsx("nav", { id: drawerId, hidden: !open, className: "landing-header__drawer", children: _jsx("div", { className: containerClassName ?? undefined, children: links.map((item, i) => (_jsx("span", { className: "landing-header__drawer-item", children: link(item, () => setOpen(false)) }, `${i}:${item.href}`))) }) }))] }));
71
78
  }
@@ -352,9 +352,9 @@ export default function PassCard({ ariaLabel, product, showPrice = false, plan,
352
352
  }, [hasMenu, handleCardClick]);
353
353
  const menuColumns = [{
354
354
  items: [
355
- ...(onUse ? [{ label: t('passCard.menu.use', '사용하기'), icon: 'play', onClick: () => { onUse(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
356
- ...(onRefund ? [{ label: t('passCard.menu.refund', '환불하기'), icon: 'rotate-ccw', onClick: () => { onRefund(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
357
- ...(onDelete ? [{ label: t('passCard.menu.delete', '삭제하기'), icon: 'trash-2', onClick: () => { onDelete(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
355
+ ...(onUse ? [{ label: t('passCard.menu.use', '사용하기'), icon: 'play', shortcut: 'U', onClick: () => { onUse(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
356
+ ...(onRefund ? [{ label: t('passCard.menu.refund', '환불하기'), icon: 'rotate-ccw', shortcut: 'R', onClick: () => { onRefund(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
357
+ ...(onDelete ? [{ label: t('passCard.menu.delete', '삭제하기'), icon: 'trash-2', shortcut: 'D', onClick: () => { onDelete(); setMenuAnchor(null); }, closeOnSelect: true }] : []),
358
358
  ],
359
359
  }];
360
360
  return (_jsxs(_Fragment, { children: [_jsx("div", { className: "pass-card-frame", children: _jsxs("div", { ref: cardRef, className: `pass-card pass-card--${state}${hasMenu ? ' pass-card--clickable' : ''}`, style: cardStyle, onMouseEnter: handleMouseEnter, onMouseMove: handleMouseMove, onMouseLeave: handleMouseLeave,
@@ -57,6 +57,13 @@
57
57
  min-width: min(480px, calc(100% - 40px));
58
58
  max-width: min(1140px, calc(100% - 40px));
59
59
  }
60
+ /* **내용에 맞춘 창은 막대 자리를 미리 안 잡는다**(말귀 청 (453)) — 창 폭을 정하는 셈(`fit-content`)이 `scrollbar-gutter: stable` 의
61
+ 자리(6px)를 안 셈해, 속이 그만큼 모자랐다. 카드 셋(200 × 3 + 틈 10 × 2 = 620)에 맞춰 선 창의 속이 614 가 되어 그리드가 둘 + 하나로
62
+ 접혔다(말귀 랜딩 실측). 이 창은 내용에 맞춰 서므로 대개 구르지 않는다 — 막대 자리는 구를 때만 생기고, 좌우 여백은 그대로 20 이다. */
63
+ .popup-panel--fit > .popup-content {
64
+ scrollbar-gutter: auto;
65
+ padding-inline-end: var(--spacing-l);
66
+ }
60
67
  /* 층 — 훈련 페이지 팝업 바로 아래(그 창이 이 창을 덮는다). inline 은 제 자리 규칙을 따른다 */
61
68
  .popup.popup--below-page-popup:not(.popup--inline) { z-index: calc(var(--z-page-popup) - 1); }
62
69
  .popup-close-float {
@@ -20,17 +20,35 @@ export type TooltipMenuColumnItem = {
20
20
  * Badge type="dot"으로 표시한다 — 두 메뉴가 같은 항목을 다르게 보여주지 않도록. */
21
21
  badgeCount?: number;
22
22
  /**
23
- * **단축키**(말귀 청 (447), 사장님 지시 2026-11-16 *"버튼 단축키 가능한가? · 쇼컷을 이름에 붙이지 말고 우측에 보이도록"*) — 글자 하나
24
- * (`'E'`) 또는 숫자 하나(`'1'`).
25
- * · 보이기: 항목 오른쪽 끝에 키캡으로 따로 선다. 이름이 길면 이름이 줄고 키캡은 안 잘린다. 하위 메뉴(`children`) · 배지가 있으면 그쪽이 선다.
26
- * · 누르기: 메뉴가 떠 있는 동안 그 키를 누르면 이 항목을 누른 것과 같다(`closeOnSelect` 그대로). **자판 자리(`event.code`)로 맞춰**
27
- * 한글 입력 상태에서도 먹는다. 꺼진 항목 · 입력칸에 초점이 있을 때 · Ctrl/⌘/Alt 와 함께 누를 때는 안 먹는다. 지금 보이는 목록만 본다.
23
+ * **단축키 — 필수**(말귀 청 (447), 사장님 지시 2026-11-16 *"쇼컷을 이름에 붙이지 말고 우측에 보이도록"* → *"tooltip menu 는 단축키를
24
+ * 전체적으로 필수로 받아서 모두 사용할 수 있도록"*). 글자 하나(`'E'`) 또는 숫자 하나(`'1'`). 빠뜨리면 tsc 가 운다.
25
+ * 앱 자료로 짓는 긴 목록처럼 키를 정할 수 없는 줄은 **`null` 로 밝힌다**(아홉째까지는 `withOrderShortcuts` 가 1~9 를 준다).
26
+ * · 보이기: 항목 오른쪽 끝에 키캡으로 따로 선다. 이름이 길면 이름이 줄고 키캡은 안 잘린다. 하위 메뉴(`children`) · 배지가 있으면 그쪽이 선다
27
+ * (누르는 것은 된다).
28
+ * · 누르기: 메뉴가 떠 있는 동안 그 키를 누르면 이 항목을 누른 것과 같다(하위 메뉴면 들어간다, `closeOnSelect` 그대로). **자판 자리(`event.code`)로
29
+ * 맞춰** 한글 입력 상태에서도 먹는다. 꺼진 항목 · 입력칸에 초점이 있을 때 · Ctrl/⌘/Alt 와 함께 누를 때는 안 먹는다. 지금 보이는 목록만 본다.
30
+ * · 한 목록 안에서 겹치면 개발 중 콘솔에 한 번 알린다(`findDuplicateShortcuts`). 겹치면 앞의 것이 먹는다.
28
31
  * · 낭독기: `aria-keyshortcuts` 로 알린다.
29
32
  */
30
- shortcut?: string;
33
+ shortcut: string | null;
31
34
  };
32
35
  /** 단축키 글자 → 자판 자리(`KeyE` · `Digit1`). 글자 · 숫자 하나가 아니면 `null` */
33
- export declare function shortcutCode(shortcut: string | undefined): string | null;
36
+ export declare function shortcutCode(shortcut: string | null | undefined): string | null;
37
+ /** 차례 단축키 — 0 번째 → `'1'` … 8 번째 → `'9'`, 그 뒤는 `null`(청 (447)) */
38
+ export declare function orderShortcut(index: number): string | null;
39
+ /**
40
+ * **앱 자료로 짓는 줄에 차례 단축키를 준다**(청 (447)) — 위에서부터 1~9, 열째부터는 `null`. 키를 이미 쥔 줄은 그대로 둔다.
41
+ * 코어 안에서는 내비 더보기 · 차트 고르개처럼 무엇이 몇 개 올지 모르는 목록에 쓴다.
42
+ * @public
43
+ */
44
+ export declare function withOrderShortcuts<T extends object>(items: T[]): (T & {
45
+ shortcut: string | null;
46
+ })[];
47
+ /**
48
+ * **한 목록 안에서 겹친 단축키**(청 (447)) — 꺼지지 않은 줄끼리 같은 자판 자리면 그 키를 돌려준다(`'E'`). 시험에서 메뉴마다 불러 겹침을 잡는다.
49
+ * @public
50
+ */
51
+ export declare function findDuplicateShortcuts(columns: TooltipMenuColumn[]): string[];
34
52
  /** @public */
35
53
  export type TooltipMenuColumn = {
36
54
  /**
@@ -6,6 +6,7 @@ import Button from '../Button';
6
6
  import CircleBadge from '../CircleBadge';
7
7
  import './MenuTooltip.css';
8
8
  import { withLegacy } from '../../utils/legacyBlocks';
9
+ import { devWarnOnce } from '../../utils/devWarn';
9
10
  /** 단축키 글자 → 자판 자리(`KeyE` · `Digit1`). 글자 · 숫자 하나가 아니면 `null` */
10
11
  export function shortcutCode(shortcut) {
11
12
  const k = (shortcut ?? '').trim().toUpperCase();
@@ -15,6 +16,35 @@ export function shortcutCode(shortcut) {
15
16
  return `Digit${k}`;
16
17
  return null;
17
18
  }
19
+ /** 차례 단축키 — 0 번째 → `'1'` … 8 번째 → `'9'`, 그 뒤는 `null`(청 (447)) */
20
+ export function orderShortcut(index) {
21
+ return index >= 0 && index < 9 ? String(index + 1) : null;
22
+ }
23
+ /**
24
+ * **앱 자료로 짓는 줄에 차례 단축키를 준다**(청 (447)) — 위에서부터 1~9, 열째부터는 `null`. 키를 이미 쥔 줄은 그대로 둔다.
25
+ * 코어 안에서는 내비 더보기 · 차트 고르개처럼 무엇이 몇 개 올지 모르는 목록에 쓴다.
26
+ * @public
27
+ */
28
+ export function withOrderShortcuts(items) {
29
+ return items.map((it, i) => {
30
+ const own = it.shortcut;
31
+ return { ...it, shortcut: own !== undefined ? own : orderShortcut(i) };
32
+ });
33
+ }
34
+ /**
35
+ * **한 목록 안에서 겹친 단축키**(청 (447)) — 꺼지지 않은 줄끼리 같은 자판 자리면 그 키를 돌려준다(`'E'`). 시험에서 메뉴마다 불러 겹침을 잡는다.
36
+ * @public
37
+ */
38
+ export function findDuplicateShortcuts(columns) {
39
+ const seen = new Map();
40
+ for (const col of columns ?? [])
41
+ for (const it of col?.items ?? []) {
42
+ const code = it && !it.disabled ? shortcutCode(it.shortcut) : null;
43
+ if (code)
44
+ seen.set(code, (seen.get(code) ?? 0) + 1);
45
+ }
46
+ return [...seen].filter(([, n]) => n > 1).map(([code]) => code.replace(/^Key|^Digit/, ''));
47
+ }
18
48
  /** @public */
19
49
  export default function MenuTooltip({ columns = [], onClose, className = '', size = 'medium' }) {
20
50
  const { t } = useTranslation();
@@ -91,6 +121,12 @@ export default function MenuTooltip({ columns = [], onClose, className = '', siz
91
121
  }
92
122
  catch (err) { }
93
123
  }, [onClose, visibleDepth]);
124
+ /* 한 목록 안에서 키가 겹치면 개발 중 한 번 알린다(청 (447)) */
125
+ useEffect(() => {
126
+ const dup = findDuplicateShortcuts(current.columns);
127
+ if (dup.length)
128
+ devWarnOnce(`menu-shortcut-dup:${dup.join(',')}:${current.columns.flatMap(c => c.items.map(i => i.label)).join('|')}`, `[MenuTooltip] 한 메뉴 안에서 단축키가 겹칩니다: ${dup.join(', ')} — 앞의 항목만 먹습니다.`);
129
+ }, [current.columns]);
94
130
  /* **단축키**(청 (447)) — 떠 있는 동안 지금 보이는 목록의 항목을 자판 자리로 누른다. 최신 목록 · 손은 ref 로 읽어 듣개를 한 번만 건다 */
95
131
  const shortcutRef = useRef({ columns: current.columns, handleClick });
96
132
  shortcutRef.current = { columns: current.columns, handleClick };
@@ -13,6 +13,8 @@ export type TrainingCardAction = {
13
13
  disabled?: boolean;
14
14
  /** 단추 하나일 때의 색 꼴 — 기본 `default`(테두리 있음, 청 (443) ㉪). 좋아요가 켜졌을 때 `danger` 처럼 바꾼다(메뉴 꼴에서는 안 쓴다). */
15
15
  variant?: ButtonProps['variant'];
16
+ /** 둘 이상이라 ⋯ 메뉴로 설 때의 단축키(말귀 청 (447)) — 안 주면 차례대로 1~9. 하나뿐이라 단추로 설 때는 안 쓴다 */
17
+ shortcut?: string | null;
16
18
  };
17
19
  /** @public */
18
20
  export type TrainingCardProps = {
@@ -6,7 +6,7 @@ import { useCallback, useState } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import Button from '../Button';
8
8
  import Tooltip from '../Tooltip/Tooltip';
9
- import MenuTooltip from '../Tooltip/MenuTooltip';
9
+ import MenuTooltip, { withOrderShortcuts } from '../Tooltip/MenuTooltip';
10
10
  /** @public */
11
11
  export default function TrainingCard({ title, titleLevel = 3, category, categoryVariant = 'main', description, topActions, actions, children, footerLeft, footerRight, ariaLabel, onClick, draggable, onDragStart, onDragEnd, className, }) {
12
12
  const TitleTag = titleLevel ? `h${titleLevel}` : 'div';
@@ -50,5 +50,5 @@ export default function TrainingCard({ title, titleLevel = 3, category, category
50
50
  ? _jsx("div", { className: "training-card__body", children: children })
51
51
  : _jsx("div", { className: "training-card__body training-card__body--empty", "aria-hidden": "true" }), hasFooter ? (_jsxs("div", { className: "training-card__footer", children: [footerLeft != null && _jsx("div", { className: "training-card__footer-left", children: footerLeft }), footerRight != null && _jsx("div", { className: "training-card__meta", children: footerRight })] })) : _jsx("div", { className: "training-card__footer training-card__footer--empty", "aria-hidden": "true" }), menuRect && actionList.length > 1 && (
52
52
  /* 메뉴의 누름은 카드로 올라가지 않는다 — 고르는 것이 카드를 여는 것이 되면 안 된다 */
53
- _jsx("div", { className: "training-card__menu-host", onClick: (e) => e.stopPropagation(), children: _jsx(Tooltip, { anchorRect: menuRect, onClose: closeMenu, ariaLabel: t('tooltip.menu', '메뉴'), children: _jsx(MenuTooltip, { columns: [{ items: actionList.map(a => ({ label: a.label, icon: a.icon, selected: a.selected, disabled: a.disabled, onClick: a.onClick })) }], onClose: closeMenu, size: "small" }) }) }))] }));
53
+ _jsx("div", { className: "training-card__menu-host", onClick: (e) => e.stopPropagation(), children: _jsx(Tooltip, { anchorRect: menuRect, onClose: closeMenu, ariaLabel: t('tooltip.menu', '메뉴'), children: _jsx(MenuTooltip, { columns: [{ items: withOrderShortcuts(actionList.map(a => ({ label: a.label, icon: a.icon, selected: a.selected, disabled: a.disabled, onClick: a.onClick, shortcut: a.shortcut }))) }], onClose: closeMenu, size: "small" }) }) }))] }));
54
54
  }
@@ -76,6 +76,8 @@ export { default as LandingCard } from './components/Landing/LandingCard';
76
76
  export type { LandingCardProps } from './components/Landing/LandingCard';
77
77
  export { default as LandingButton } from './components/Landing/LandingButton';
78
78
  export type { LandingButtonProps } from './components/Landing/LandingButton';
79
+ export { default as LandingMenuLink } from './components/Landing/LandingMenuLink';
80
+ export type { LandingMenuLinkProps } from './components/Landing/LandingMenuLink';
79
81
  export { default as LandingStatBand } from './components/Landing/LandingStatBand';
80
82
  export type { LandingStatBandProps, LandingStat } from './components/Landing/LandingStatBand';
81
83
  export { default as Badge } from './components/Badge';
@@ -57,6 +57,7 @@ export { default as LandingSection } from './components/Landing/LandingSection';
57
57
  export { default as LandingTitle } from './components/Landing/LandingTitle';
58
58
  export { default as LandingCard } from './components/Landing/LandingCard';
59
59
  export { default as LandingButton } from './components/Landing/LandingButton';
60
+ export { default as LandingMenuLink } from './components/Landing/LandingMenuLink';
60
61
  export { default as LandingStatBand } from './components/Landing/LandingStatBand';
61
62
  export { default as Badge } from './components/Badge';
62
63
  export { default as CircleBadge } from './components/CircleBadge';
@@ -22,6 +22,7 @@ export declare function folderMenuItems(lines: {
22
22
  }): {
23
23
  label: string;
24
24
  icon: string;
25
+ shortcut: string;
25
26
  onClick: () => void;
26
27
  closeOnSelect: true;
27
28
  }[];