@kjun-ui/react 0.11.0 → 0.12.1

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/index.js CHANGED
@@ -315,19 +315,25 @@ function usePopupFocusGuard(trigger) {
315
315
  function currentFocus() {
316
316
  return typeof document === "undefined" ? null : document.activeElement;
317
317
  }
318
+ function domElement(target) {
319
+ const node = target;
320
+ return typeof (node == null ? void 0 : node.matches) === "function" && typeof node.closest === "function" && typeof node.querySelector === "function";
321
+ }
318
322
  function focusTrigger(target) {
319
- if (typeof HTMLElement !== "undefined" && target instanceof HTMLElement) {
323
+ if (domElement(target)) {
320
324
  return target.matches("button,input,[href],[tabindex]") ? target : target.querySelector("button,input,[href],[tabindex]") || target;
321
325
  }
322
326
  return target;
323
327
  }
328
+ function isRestorableFocus(item) {
329
+ return (item == null ? void 0 : item.isConnected) !== false && !(domElement(item) && item.closest("[inert]"));
330
+ }
324
331
  function restoreFocus(target, state, id, fallback2) {
325
- const usable = (item) => (item == null ? void 0 : item.isConnected) !== false && !(typeof HTMLElement !== "undefined" && item instanceof HTMLElement && item.closest("[inert]"));
326
332
  const restore = () => {
327
333
  var _a, _b, _c, _d, _e;
328
334
  if (state.entries.has(id)) return;
329
- if (usable(target)) (_a = target == null ? void 0 : target.focus) == null ? void 0 : _a.call(target, { preventScroll: true });
330
- else if (fallback2 && fallback2 !== target && usable(fallback2)) (_b = fallback2.focus) == null ? void 0 : _b.call(fallback2, { preventScroll: true });
335
+ if (isRestorableFocus(target)) (_a = target == null ? void 0 : target.focus) == null ? void 0 : _a.call(target, { preventScroll: true });
336
+ else if (fallback2 && fallback2 !== target && isRestorableFocus(fallback2)) (_b = fallback2.focus) == null ? void 0 : _b.call(fallback2, { preventScroll: true });
331
337
  else (_e = (_d = (_c = state.topWindow()) == null ? void 0 : _c.root) == null ? void 0 : _d.focus) == null ? void 0 : _e.call(_d, { preventScroll: true });
332
338
  };
333
339
  if (typeof requestAnimationFrame !== "undefined") requestAnimationFrame(restore);
@@ -1569,6 +1575,57 @@ function KjunSkeleton({
1569
1575
  );
1570
1576
  }
1571
1577
 
1578
+ // packages/react/src/layout-primitives.tsx
1579
+ import { createElement as createElement2 } from "react";
1580
+
1581
+ // shared/package-runtime/layout-primitives.ts
1582
+ var numeric = /^(number|display)/;
1583
+ var textTypeClass = (variant) => "kjun-type-" + variant.replace(/[A-Z]/g, (letter) => "-" + letter.toLowerCase());
1584
+ var defaultTextTag = (variant) => variant === "pageTitle" ? "h1" : variant === "sectionTitle" ? "h2" : variant === "cardTitle" ? "h3" : numeric.test(variant) ? "span" : "p";
1585
+
1586
+ // packages/react/src/layout-primitives.tsx
1587
+ import { jsx as jsx9 } from "react/jsx-runtime";
1588
+ var join = (...names) => names.filter(Boolean).join(" ");
1589
+ function KjunText({ variant = "body", tone = "default", as, align, maxLines, className, style, children, ...rest }) {
1590
+ const lines = maxLines && maxLines > 0 ? Math.floor(maxLines) : void 0;
1591
+ return createElement2(as != null ? as : defaultTextTag(variant), {
1592
+ ...rest,
1593
+ className: join("kjun-text", textTypeClass(variant), className),
1594
+ // 안에 넣은 링크·강조 같은 앱 요소는 KJUN 리셋을 받지 않는다.
1595
+ "data-kjun-content": "",
1596
+ "data-tone": tone === "default" ? void 0 : tone,
1597
+ "data-align": align,
1598
+ "data-max-lines": lines,
1599
+ style: lines ? { ...style, ["--_kjun-text-lines"]: lines } : style
1600
+ }, children);
1601
+ }
1602
+ function KjunStack({ gap = "md", align = "stretch", as = "div", className, style, children, ...rest }) {
1603
+ return createElement2(as, {
1604
+ ...rest,
1605
+ className: className || void 0,
1606
+ style,
1607
+ "data-kjun-stack": "",
1608
+ "data-gap": gap,
1609
+ "data-align": align
1610
+ }, children);
1611
+ }
1612
+ function KjunInline({ gap = "sm", align = "center", justify = "start", wrap = true, className, style, children, ...rest }) {
1613
+ return /* @__PURE__ */ jsx9(
1614
+ "div",
1615
+ {
1616
+ ...rest,
1617
+ className: className || void 0,
1618
+ style,
1619
+ "data-kjun-inline": "",
1620
+ "data-gap": gap,
1621
+ "data-align": align,
1622
+ "data-justify": justify,
1623
+ "data-wrap": wrap ? void 0 : "false",
1624
+ children
1625
+ }
1626
+ );
1627
+ }
1628
+
1572
1629
  // shared/package-runtime/feedback-dialog.ts
1573
1630
  import { useRef as useRef7, useState as useState7 } from "react";
1574
1631
  function useFeedbackDialog(controller, request) {
@@ -1736,7 +1793,7 @@ function createToastLayout() {
1736
1793
 
1737
1794
  // packages/react/src/toast.tsx
1738
1795
  import { useEffect as useEffect3, useRef as useRef9 } from "react";
1739
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1796
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
1740
1797
  function ToastView({
1741
1798
  toast,
1742
1799
  controller
@@ -1778,18 +1835,18 @@ function ToastView({
1778
1835
  controller.resumeToast(toast.id, reasons.focus);
1779
1836
  },
1780
1837
  children: [
1781
- /* @__PURE__ */ jsx9(
1838
+ /* @__PURE__ */ jsx10(
1782
1839
  "span",
1783
1840
  {
1784
1841
  className: "kjun-toast-icon",
1785
1842
  style: { color: `var(--_kjun-color-${tone}-accent)` },
1786
- children: /* @__PURE__ */ jsx9(KjunIcon, { name: icon })
1843
+ children: /* @__PURE__ */ jsx10(KjunIcon, { name: icon })
1787
1844
  }
1788
1845
  ),
1789
1846
  /* @__PURE__ */ jsxs7("div", { className: "kjun-toast-content", children: [
1790
- toast.title && /* @__PURE__ */ jsx9("strong", { children: toast.title }),
1791
- /* @__PURE__ */ jsx9("span", { className: "kjun-toast-message", children: toast.message }),
1792
- toast.action && /* @__PURE__ */ jsx9(
1847
+ toast.title && /* @__PURE__ */ jsx10("strong", { children: toast.title }),
1848
+ /* @__PURE__ */ jsx10("span", { className: "kjun-toast-message", children: toast.message }),
1849
+ toast.action && /* @__PURE__ */ jsx10(
1793
1850
  "button",
1794
1851
  {
1795
1852
  type: "button",
@@ -1806,17 +1863,17 @@ function ToastView({
1806
1863
  }
1807
1864
  )
1808
1865
  ] }),
1809
- toast.closable !== false && /* @__PURE__ */ jsx9(
1866
+ toast.closable !== false && /* @__PURE__ */ jsx10(
1810
1867
  "button",
1811
1868
  {
1812
1869
  type: "button",
1813
1870
  className: "kjun-toast-close",
1814
1871
  "aria-label": "\uC54C\uB9BC \uB2EB\uAE30",
1815
1872
  onClick: () => dismiss(),
1816
- children: /* @__PURE__ */ jsx9(KjunIcon, { name: "x" })
1873
+ children: /* @__PURE__ */ jsx10(KjunIcon, { name: "x" })
1817
1874
  }
1818
1875
  ),
1819
- toast.showProgress !== false && !!toast.duration && /* @__PURE__ */ jsx9(
1876
+ toast.showProgress !== false && !!toast.duration && /* @__PURE__ */ jsx10(
1820
1877
  "div",
1821
1878
  {
1822
1879
  "aria-hidden": "true",
@@ -1836,7 +1893,7 @@ function ToastView({
1836
1893
  }
1837
1894
 
1838
1895
  // packages/react/src/toast-stack.tsx
1839
- import { jsx as jsx10 } from "react/jsx-runtime";
1896
+ import { jsx as jsx11 } from "react/jsx-runtime";
1840
1897
  function ToastSurface({ item, controller }) {
1841
1898
  const ref = useRef10(null), reduced = useReducedMotion();
1842
1899
  const current = useRef10(null);
@@ -1870,7 +1927,7 @@ function ToastSurface({ item, controller }) {
1870
1927
  for (const animation of animations) animation.cancel();
1871
1928
  };
1872
1929
  }, [item.exiting, item.born, reduced]);
1873
- return /* @__PURE__ */ jsx10("div", { ref, inert: item.exiting, "aria-hidden": item.exiting || void 0, children: /* @__PURE__ */ jsx10(ToastView, { toast: item.toast, controller }) });
1930
+ return /* @__PURE__ */ jsx11("div", { ref, inert: item.exiting, "aria-hidden": item.exiting || void 0, children: /* @__PURE__ */ jsx11(ToastView, { toast: item.toast, controller }) });
1874
1931
  }
1875
1932
  function ToastStack({ items, controller }) {
1876
1933
  var _a;
@@ -1881,13 +1938,13 @@ function ToastStack({ items, controller }) {
1881
1938
  if (root.current) layout.current.update(root.current, reduced);
1882
1939
  });
1883
1940
  useLayoutEffect8(() => () => layout.current.destroy(), []);
1884
- return /* @__PURE__ */ jsx10("div", { ref: root, className: "kjun-toast-stack", style: { zIndex: layers.zIndex((_a = layers.topWindow()) == null ? void 0 : _a.id, "toast") }, children: items.map((item) => /* @__PURE__ */ jsx10(
1941
+ return /* @__PURE__ */ jsx11("div", { ref: root, className: "kjun-toast-stack", style: { zIndex: layers.zIndex((_a = layers.topWindow()) == null ? void 0 : _a.id, "toast") }, children: items.map((item) => /* @__PURE__ */ jsx11(
1885
1942
  "div",
1886
1943
  {
1887
1944
  "data-toast-id": item.toast.id,
1888
1945
  "data-exiting": item.exiting,
1889
1946
  className: "kjun-toast-slot",
1890
- children: /* @__PURE__ */ jsx10(ToastSurface, { item, controller })
1947
+ children: /* @__PURE__ */ jsx11(ToastSurface, { item, controller })
1891
1948
  },
1892
1949
  item.toast.id
1893
1950
  )) });
@@ -1904,7 +1961,7 @@ import {
1904
1961
  useState as useState9,
1905
1962
  useSyncExternalStore as useSyncExternalStore3
1906
1963
  } from "react";
1907
- import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
1964
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
1908
1965
  function useKjunFeedback() {
1909
1966
  const value = useOptionalKjunFeedback();
1910
1967
  if (!value) throw Error("useKjunFeedback requires KjunFeedbackProvider.");
@@ -1934,8 +1991,8 @@ function FeedbackDialog({
1934
1991
  onConfirm: submit,
1935
1992
  confirmVariant: options.type === "danger" ? "danger" : "primary",
1936
1993
  children: [
1937
- options.message && /* @__PURE__ */ jsx11("p", { children: options.message }),
1938
- request.kind === "prompt" && /* @__PURE__ */ jsx11(
1994
+ options.message && /* @__PURE__ */ jsx12("p", { children: options.message }),
1995
+ request.kind === "prompt" && /* @__PURE__ */ jsx12(
1939
1996
  KjunInput,
1940
1997
  {
1941
1998
  autoFocus: true,
@@ -1977,15 +2034,15 @@ function KjunFeedbackProvider({ children }) {
1977
2034
  return () => setLayers((current) => current.filter((value) => value.id !== id));
1978
2035
  }, []);
1979
2036
  const top = (_a = [...layers].sort((a, b) => a.order - b.order).at(-1)) == null ? void 0 : _a.id;
1980
- const renderToasts = () => /* @__PURE__ */ jsx11(ToastStack, { items: toasts, controller });
1981
- return /* @__PURE__ */ jsx11(KjunFeedbackContext.Provider, { value: controller.api, children: /* @__PURE__ */ jsxs8(
2037
+ const renderToasts = () => /* @__PURE__ */ jsx12(ToastStack, { items: toasts, controller });
2038
+ return /* @__PURE__ */ jsx12(KjunFeedbackContext.Provider, { value: controller.api, children: /* @__PURE__ */ jsxs8(
1982
2039
  FeedbackOverlayContext.Provider,
1983
2040
  {
1984
2041
  value: { top, register, render: renderToasts },
1985
2042
  children: [
1986
2043
  children,
1987
2044
  !layers.length && renderToasts(),
1988
- dialog.request && /* @__PURE__ */ jsx11(
2045
+ dialog.request && /* @__PURE__ */ jsx12(
1989
2046
  FeedbackDialog,
1990
2047
  {
1991
2048
  request: dialog.request,
@@ -2120,7 +2177,7 @@ function groupKeydown(event) {
2120
2177
  }
2121
2178
 
2122
2179
  // packages/react/src/controls.tsx
2123
- import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
2180
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
2124
2181
  function KjunCheckbox({
2125
2182
  value,
2126
2183
  val,
@@ -2151,14 +2208,14 @@ function KjunCheckbox({
2151
2208
  onChange == null ? void 0 : onChange(result);
2152
2209
  },
2153
2210
  children: [
2154
- /* @__PURE__ */ jsx12(
2211
+ /* @__PURE__ */ jsx13(
2155
2212
  "span",
2156
2213
  {
2157
2214
  className: `kjun-choice-control kjun-checkbox kjun-checkbox--${size}${checked ? " kjun-checkbox--checked" : ""}`,
2158
- children: checked && /* @__PURE__ */ jsx12(KjunIcon, { name: "check", size: tokens12.extensions.checkbox.iconSizes[size] })
2215
+ children: checked && /* @__PURE__ */ jsx13(KjunIcon, { name: "check", size: tokens12.extensions.checkbox.iconSizes[size] })
2159
2216
  }
2160
2217
  ),
2161
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2218
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2162
2219
  ]
2163
2220
  }
2164
2221
  );
@@ -2196,14 +2253,14 @@ function KjunSwitch({
2196
2253
  onChange == null ? void 0 : onChange(next);
2197
2254
  },
2198
2255
  children: [
2199
- /* @__PURE__ */ jsx12(
2256
+ /* @__PURE__ */ jsx13(
2200
2257
  "span",
2201
2258
  {
2202
2259
  className: `kjun-switch kjun-switch--${size}${value ? " kjun-switch--on" : ""}`,
2203
- children: /* @__PURE__ */ jsx12("span", { className: "kjun-switch-thumb" })
2260
+ children: /* @__PURE__ */ jsx13("span", { className: "kjun-switch-thumb" })
2204
2261
  }
2205
2262
  ),
2206
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2263
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2207
2264
  ]
2208
2265
  }
2209
2266
  );
@@ -2222,7 +2279,7 @@ function KjunRadio({
2222
2279
  }) {
2223
2280
  const group = useContext9(RadioContext), selected = (group ? group.value : value) === val;
2224
2281
  return /* @__PURE__ */ jsxs9("label", { className: "kjun-choice" + (disabled ? " kjun-choice--disabled" : ""), children: [
2225
- /* @__PURE__ */ jsx12(
2282
+ /* @__PURE__ */ jsx13(
2226
2283
  "input",
2227
2284
  {
2228
2285
  type: "radio",
@@ -2240,14 +2297,14 @@ function KjunRadio({
2240
2297
  }
2241
2298
  }
2242
2299
  ),
2243
- /* @__PURE__ */ jsx12(
2300
+ /* @__PURE__ */ jsx13(
2244
2301
  "span",
2245
2302
  {
2246
2303
  className: "kjun-choice-control kjun-radio" + (selected ? " kjun-radio--checked" : ""),
2247
- children: selected && /* @__PURE__ */ jsx12("span", { className: "kjun-radio-dot" })
2304
+ children: selected && /* @__PURE__ */ jsx13("span", { className: "kjun-radio-dot" })
2248
2305
  }
2249
2306
  ),
2250
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2307
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2251
2308
  ] });
2252
2309
  }
2253
2310
  function KjunRadioGroup({
@@ -2260,7 +2317,7 @@ function KjunRadioGroup({
2260
2317
  onChange
2261
2318
  }) {
2262
2319
  const name = "kjun-" + useId5();
2263
- return /* @__PURE__ */ jsx12(
2320
+ return /* @__PURE__ */ jsx13(
2264
2321
  RadioContext.Provider,
2265
2322
  {
2266
2323
  value: {
@@ -2271,7 +2328,7 @@ function KjunRadioGroup({
2271
2328
  onChange == null ? void 0 : onChange(next);
2272
2329
  }
2273
2330
  },
2274
- children: /* @__PURE__ */ jsx12(
2331
+ children: /* @__PURE__ */ jsx13(
2275
2332
  "div",
2276
2333
  {
2277
2334
  role: "radiogroup",
@@ -2283,7 +2340,7 @@ function KjunRadioGroup({
2283
2340
  flexWrap: direction === "vertical" ? "nowrap" : "wrap",
2284
2341
  gap: direction === "vertical" ? tokens12.dimension.value8 : tokens12.dimension.value16
2285
2342
  },
2286
- children: children || options.map((option) => /* @__PURE__ */ jsx12(
2343
+ children: children || options.map((option) => /* @__PURE__ */ jsx13(
2287
2344
  KjunRadio,
2288
2345
  {
2289
2346
  val: option.value,
@@ -2314,7 +2371,7 @@ var KjunTextarea = forwardRef3(
2314
2371
  var _a;
2315
2372
  const field = useKjunField();
2316
2373
  const spec = tokens12.input[size];
2317
- return /* @__PURE__ */ jsx12(
2374
+ return /* @__PURE__ */ jsx13(
2318
2375
  "textarea",
2319
2376
  {
2320
2377
  ...props,
@@ -2371,7 +2428,7 @@ function KjunButtonGroup({
2371
2428
  width: fullWidth ? "100%" : "fit-content"
2372
2429
  },
2373
2430
  children: [
2374
- /* @__PURE__ */ jsx12(
2431
+ /* @__PURE__ */ jsx13(
2375
2432
  "span",
2376
2433
  {
2377
2434
  ref: indicator,
@@ -2398,10 +2455,10 @@ function KjunButtonGroup({
2398
2455
  onChange == null ? void 0 : onChange(option.value);
2399
2456
  },
2400
2457
  children: [
2401
- option.icon && /* @__PURE__ */ jsx12(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2458
+ option.icon && /* @__PURE__ */ jsx13(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2402
2459
  /* @__PURE__ */ jsxs9("span", { className: "kjun-button-group-label", children: [
2403
- /* @__PURE__ */ jsx12("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2404
- /* @__PURE__ */ jsx12("span", { children: option.label })
2460
+ /* @__PURE__ */ jsx13("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2461
+ /* @__PURE__ */ jsx13("span", { children: option.label })
2405
2462
  ] })
2406
2463
  ]
2407
2464
  },
@@ -2423,7 +2480,7 @@ function KjunFilterGroup({
2423
2480
  onChange
2424
2481
  }) {
2425
2482
  const selected = (v) => multiple ? Array.isArray(value) && (v === null ? value.length === 0 : value.includes(v)) : value === v;
2426
- return /* @__PURE__ */ jsx12(
2483
+ return /* @__PURE__ */ jsx13(
2427
2484
  "div",
2428
2485
  {
2429
2486
  role: "group",
@@ -2431,7 +2488,7 @@ function KjunFilterGroup({
2431
2488
  className: "kjun-filter-group",
2432
2489
  "data-scroll": scroll,
2433
2490
  onKeyDown: groupKeydown,
2434
- children: options.map((option) => /* @__PURE__ */ jsx12(
2491
+ children: options.map((option) => /* @__PURE__ */ jsx13(
2435
2492
  "button",
2436
2493
  {
2437
2494
  type: "button",
@@ -2453,11 +2510,11 @@ function KjunFilterGroup({
2453
2510
  ...selectionTypeStyle(size, selected(option.value))
2454
2511
  },
2455
2512
  children: [
2456
- option.dot && /* @__PURE__ */ jsx12("i", { style: { background: option.dot } }),
2457
- option.icon && /* @__PURE__ */ jsx12(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2513
+ option.dot && /* @__PURE__ */ jsx13("i", { style: { background: option.dot } }),
2514
+ option.icon && /* @__PURE__ */ jsx13(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2458
2515
  /* @__PURE__ */ jsxs9("span", { className: "kjun-filter-label", children: [
2459
- /* @__PURE__ */ jsx12("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2460
- /* @__PURE__ */ jsx12("span", { children: option.label })
2516
+ /* @__PURE__ */ jsx13("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2517
+ /* @__PURE__ */ jsx13("span", { children: option.label })
2461
2518
  ] })
2462
2519
  ]
2463
2520
  }
@@ -2473,7 +2530,7 @@ function KjunFilterGroup({
2473
2530
  import { isComposingKey as isComposingKey3, tokens as tokens13 } from "@kjun-ui/tokens";
2474
2531
  import { useEffect as useEffect5, useRef as useRef13 } from "react";
2475
2532
  import { Popover as AriaPopover } from "react-aria-components";
2476
- import { jsx as jsx13 } from "react/jsx-runtime";
2533
+ import { jsx as jsx14 } from "react/jsx-runtime";
2477
2534
  function FloatingPanel({
2478
2535
  open,
2479
2536
  onOpenChange,
@@ -2511,7 +2568,7 @@ function FloatingPanel({
2511
2568
  return () => document2.removeEventListener("keydown", dismissBeforeFocus, true);
2512
2569
  }, [open, nonModal, triggerRef, onOpenChange, layer.keyboardManaged]);
2513
2570
  if (container === null || layer.blocked) return null;
2514
- return /* @__PURE__ */ jsx13(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx13(
2571
+ return /* @__PURE__ */ jsx14(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx14(
2515
2572
  AriaPopover,
2516
2573
  {
2517
2574
  ref: panel,
@@ -2606,7 +2663,7 @@ function installNonModalPopover({ panel, trigger, close }) {
2606
2663
  }
2607
2664
 
2608
2665
  // packages/react/src/popover.tsx
2609
- import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
2666
+ import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2610
2667
  function KjunPopover({
2611
2668
  noPadding = false,
2612
2669
  open: controlled,
@@ -2652,9 +2709,9 @@ function KjunPopover({
2652
2709
  }
2653
2710
  });
2654
2711
  });
2655
- const content = /* @__PURE__ */ jsx14("div", { className: "kjun-popover-content", "data-no-padding": noPadding, children: typeof children === "function" ? children(() => change(false)) : children });
2712
+ const content = /* @__PURE__ */ jsx15("div", { className: "kjun-popover-content", "data-no-padding": noPadding, children: typeof children === "function" ? children(() => change(false)) : children });
2656
2713
  return /* @__PURE__ */ jsxs10(Fragment3, { children: [
2657
- /* @__PURE__ */ jsx14(
2714
+ /* @__PURE__ */ jsx15(
2658
2715
  "div",
2659
2716
  {
2660
2717
  ref,
@@ -2674,7 +2731,7 @@ function KjunPopover({
2674
2731
  children: typeof trigger === "function" ? trigger(open) : trigger
2675
2732
  }
2676
2733
  ),
2677
- /* @__PURE__ */ jsx14(
2734
+ /* @__PURE__ */ jsx15(
2678
2735
  FloatingPanel,
2679
2736
  {
2680
2737
  open,
@@ -2697,11 +2754,11 @@ function KjunPopover({
2697
2754
  style: { maxHeight: maxHeight != null ? maxHeight : `min(60vh, ${tokens14.extensions.floating.maxHeight}px)`, overflowY: header != null ? void 0 : "auto" }
2698
2755
  };
2699
2756
  const body = /* @__PURE__ */ jsxs10(Fragment3, { children: [
2700
- header != null && /* @__PURE__ */ jsx14("div", { id: id + "-header", className: "kjun-popover-header", children: header }),
2701
- header != null ? /* @__PURE__ */ jsx14("div", { className: "kjun-popover-body", children: content }) : content,
2702
- /* @__PURE__ */ jsx14(FeedbackLayerOutlet, {})
2757
+ header != null && /* @__PURE__ */ jsx15("div", { id: id + "-header", className: "kjun-popover-header", children: header }),
2758
+ header != null ? /* @__PURE__ */ jsx15("div", { className: "kjun-popover-body", children: content }) : content,
2759
+ /* @__PURE__ */ jsx15(FeedbackLayerOutlet, {})
2703
2760
  ] });
2704
- return modal ? /* @__PURE__ */ jsx14(Dialog2, { ...dialogProps, ref: focusContent, children: body }) : /* @__PURE__ */ jsx14("section", { ...dialogProps, role: "dialog", tabIndex: -1, ref: focusContent, children: body });
2761
+ return modal ? /* @__PURE__ */ jsx15(Dialog2, { ...dialogProps, ref: focusContent, children: body }) : /* @__PURE__ */ jsx15("section", { ...dialogProps, role: "dialog", tabIndex: -1, ref: focusContent, children: body });
2705
2762
  })()
2706
2763
  }
2707
2764
  )
@@ -2723,7 +2780,7 @@ function KjunTooltip({
2723
2780
  };
2724
2781
  const layer = useLayer(open, open, "tooltip", () => setOpen(false));
2725
2782
  return /* @__PURE__ */ jsxs10(TooltipTrigger, { isOpen: open && !layer.blocked, onOpenChange: setOpen, delay, closeDelay: 0, isDisabled: !content || !layer.scopeActive, children: [
2726
- /* @__PURE__ */ jsx14(Focusable, { children }),
2783
+ /* @__PURE__ */ jsx15(Focusable, { children }),
2727
2784
  container !== null && /* @__PURE__ */ jsxs10(
2728
2785
  Tooltip,
2729
2786
  {
@@ -2733,7 +2790,7 @@ function KjunTooltip({
2733
2790
  offset: tokens14.extensions.floating.anchorGap,
2734
2791
  className: "kjun-scope kjun-tooltip",
2735
2792
  children: [
2736
- /* @__PURE__ */ jsx14(OverlayArrow, { children: /* @__PURE__ */ jsx14("svg", { width: tokens14.extensions.tooltip.arrowSize, height: tokens14.extensions.tooltip.arrowSize, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx14("path", { d: "M0 0L4 4L8 0", fill: "currentColor" }) }) }),
2793
+ /* @__PURE__ */ jsx15(OverlayArrow, { children: /* @__PURE__ */ jsx15("svg", { width: tokens14.extensions.tooltip.arrowSize, height: tokens14.extensions.tooltip.arrowSize, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx15("path", { d: "M0 0L4 4L8 0", fill: "currentColor" }) }) }),
2737
2794
  content
2738
2795
  ]
2739
2796
  }
@@ -2745,7 +2802,7 @@ function KjunTooltip({
2745
2802
  import { tokens as tokens15 } from "@kjun-ui/tokens";
2746
2803
  import { cloneElement, createContext as createContext10, isValidElement as isValidElement2, useCallback as useCallback4, useContext as useContext10, useEffect as useEffect7, useId as useId7, useRef as useRef15, useState as useState11 } from "react";
2747
2804
  import { Menu, MenuItem, Separator } from "react-aria-components";
2748
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
2805
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
2749
2806
  var DropdownContext = createContext10(null);
2750
2807
  function KjunDropdown({
2751
2808
  disabled = false,
@@ -2816,7 +2873,7 @@ function KjunDropdown({
2816
2873
  if (unavailable) change(false);
2817
2874
  }, [unavailable]);
2818
2875
  return /* @__PURE__ */ jsxs11(DropdownContext.Provider, { value: () => change(false), children: [
2819
- /* @__PURE__ */ jsx15(
2876
+ /* @__PURE__ */ jsx16(
2820
2877
  "div",
2821
2878
  {
2822
2879
  ref,
@@ -2828,10 +2885,10 @@ function KjunDropdown({
2828
2885
  change(true);
2829
2886
  }
2830
2887
  },
2831
- children: /* @__PURE__ */ jsx15("span", { children: bindTrigger(trigger) })
2888
+ children: /* @__PURE__ */ jsx16("span", { children: bindTrigger(trigger) })
2832
2889
  }
2833
2890
  ),
2834
- /* @__PURE__ */ jsx15(
2891
+ /* @__PURE__ */ jsx16(
2835
2892
  FloatingPanel,
2836
2893
  {
2837
2894
  open,
@@ -2839,7 +2896,7 @@ function KjunDropdown({
2839
2896
  triggerRef: ref,
2840
2897
  placement,
2841
2898
  className: "kjun-dropdown",
2842
- children: /* @__PURE__ */ jsx15(
2899
+ children: /* @__PURE__ */ jsx16(
2843
2900
  Menu,
2844
2901
  {
2845
2902
  ref: bindMenu,
@@ -2891,9 +2948,9 @@ function KjunDropdownItem({
2891
2948
  close == null ? void 0 : close();
2892
2949
  },
2893
2950
  children: [
2894
- icon && /* @__PURE__ */ jsx15(KjunIcon, { name: icon, className: "kjun-menu-icon", size: tokens15.extensions.menu.iconSize }),
2895
- /* @__PURE__ */ jsx15("span", { children }),
2896
- selected !== null && /* @__PURE__ */ jsx15(
2951
+ icon && /* @__PURE__ */ jsx16(KjunIcon, { name: icon, className: "kjun-menu-icon", size: tokens15.extensions.menu.iconSize }),
2952
+ /* @__PURE__ */ jsx16("span", { children }),
2953
+ selected !== null && /* @__PURE__ */ jsx16(
2897
2954
  KjunIcon,
2898
2955
  {
2899
2956
  name: "check",
@@ -2907,7 +2964,7 @@ function KjunDropdownItem({
2907
2964
  );
2908
2965
  }
2909
2966
  function KjunDropdownDivider() {
2910
- return /* @__PURE__ */ jsx15(Separator, { className: "kjun-menu-divider" });
2967
+ return /* @__PURE__ */ jsx16(Separator, { className: "kjun-menu-divider" });
2911
2968
  }
2912
2969
  function KjunMenuButton({
2913
2970
  label,
@@ -2924,7 +2981,7 @@ function KjunMenuButton({
2924
2981
  ...props
2925
2982
  }) {
2926
2983
  const [open, setOpen] = useState11(false);
2927
- const button = /* @__PURE__ */ jsx15(
2984
+ const button = /* @__PURE__ */ jsx16(
2928
2985
  KjunButton,
2929
2986
  {
2930
2987
  className: "kjun-menu-button",
@@ -2938,7 +2995,7 @@ function KjunMenuButton({
2938
2995
  children: compact ? void 0 : label
2939
2996
  }
2940
2997
  );
2941
- return /* @__PURE__ */ jsx15(
2998
+ return /* @__PURE__ */ jsx16(
2942
2999
  KjunDropdown,
2943
3000
  {
2944
3001
  ...props,
@@ -2950,7 +3007,7 @@ function KjunMenuButton({
2950
3007
  setOpen(false);
2951
3008
  onClose == null ? void 0 : onClose();
2952
3009
  },
2953
- trigger: tooltip ? /* @__PURE__ */ jsx15(
3010
+ trigger: tooltip ? /* @__PURE__ */ jsx16(
2954
3011
  KjunTooltip,
2955
3012
  {
2956
3013
  content: open ? "" : tooltip,
@@ -2977,7 +3034,7 @@ function drawerOverlayVars({ safeAreaTop = 0, safeAreaBottom = 0, maxHeight }) {
2977
3034
 
2978
3035
  // packages/react/src/drawer.tsx
2979
3036
  import { Dialog as Dialog3, Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
2980
- import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
3037
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
2981
3038
  function KjunDrawer({
2982
3039
  open,
2983
3040
  onOpenChange,
@@ -3008,7 +3065,7 @@ function KjunDrawer({
3008
3065
  if (closeOnEsc) close();
3009
3066
  });
3010
3067
  if (container === null) return null;
3011
- return /* @__PURE__ */ jsx16(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx16(
3068
+ return /* @__PURE__ */ jsx17(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx17(
3012
3069
  ModalOverlay2,
3013
3070
  {
3014
3071
  style: { zIndex: layer.zIndex, ...drawerOverlayVars({ safeAreaTop, safeAreaBottom, maxHeight }) },
@@ -3025,7 +3082,7 @@ function KjunDrawer({
3025
3082
  "data-motion-open": String(motion.active),
3026
3083
  inert: !open || !layer.active,
3027
3084
  "data-position": position,
3028
- children: /* @__PURE__ */ jsx16(
3085
+ children: /* @__PURE__ */ jsx17(
3029
3086
  Modal2,
3030
3087
  {
3031
3088
  className: "kjun-drawer",
@@ -3044,8 +3101,8 @@ function KjunDrawer({
3044
3101
  },
3045
3102
  children: [
3046
3103
  (title || header || closable) && /* @__PURE__ */ jsxs12("div", { className: "kjun-drawer-header", children: [
3047
- /* @__PURE__ */ jsx16("div", { children: header || /* @__PURE__ */ jsx16("h2", { children: title }) }),
3048
- closable && /* @__PURE__ */ jsx16(
3104
+ /* @__PURE__ */ jsx17("div", { children: header || /* @__PURE__ */ jsx17("h2", { children: title }) }),
3105
+ closable && /* @__PURE__ */ jsx17(
3049
3106
  KjunButton,
3050
3107
  {
3051
3108
  size: "sm",
@@ -3053,11 +3110,11 @@ function KjunDrawer({
3053
3110
  ariaLabel: "\uB2EB\uAE30",
3054
3111
  onClick: close,
3055
3112
  style: { borderRadius: tokens16.extensions.drawer.closeRadius, width: tokens16.extensions.drawer.closeSize, height: tokens16.extensions.drawer.closeSize, padding: 0 },
3056
- children: /* @__PURE__ */ jsx16(KjunIcon, { name: "x", size: tokens16.extensions.drawer.closeIconSize })
3113
+ children: /* @__PURE__ */ jsx17(KjunIcon, { name: "x", size: tokens16.extensions.drawer.closeIconSize })
3057
3114
  }
3058
3115
  )
3059
3116
  ] }),
3060
- /* @__PURE__ */ jsx16(
3117
+ /* @__PURE__ */ jsx17(
3061
3118
  "div",
3062
3119
  {
3063
3120
  className: "kjun-drawer-body",
@@ -3065,8 +3122,8 @@ function KjunDrawer({
3065
3122
  children
3066
3123
  }
3067
3124
  ),
3068
- footer && /* @__PURE__ */ jsx16("div", { className: "kjun-drawer-footer", children: footer }),
3069
- /* @__PURE__ */ jsx16(FeedbackLayerOutlet, {})
3125
+ footer && /* @__PURE__ */ jsx17("div", { className: "kjun-drawer-footer", children: footer }),
3126
+ /* @__PURE__ */ jsx17(FeedbackLayerOutlet, {})
3070
3127
  ]
3071
3128
  }
3072
3129
  )
@@ -3196,7 +3253,7 @@ import {
3196
3253
  useRef as useRef16,
3197
3254
  useState as useState13
3198
3255
  } from "react";
3199
- import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
3256
+ import { Fragment as Fragment4, jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
3200
3257
  function KjunCombobox({
3201
3258
  value,
3202
3259
  options = [],
@@ -3228,7 +3285,7 @@ function KjunCombobox({
3228
3285
  onSearch,
3229
3286
  onClear
3230
3287
  });
3231
- return /* @__PURE__ */ jsx17(
3288
+ return /* @__PURE__ */ jsx18(
3232
3289
  SearchField,
3233
3290
  {
3234
3291
  error,
@@ -3302,7 +3359,7 @@ function SearchField({
3302
3359
  (_a = ref.current) == null ? void 0 : _a.focus();
3303
3360
  };
3304
3361
  return /* @__PURE__ */ jsxs13(Fragment4, { children: [
3305
- /* @__PURE__ */ jsx17(
3362
+ /* @__PURE__ */ jsx18(
3306
3363
  KjunInput,
3307
3364
  {
3308
3365
  error,
@@ -3377,7 +3434,7 @@ function SearchField({
3377
3434
  }
3378
3435
  }
3379
3436
  ),
3380
- /* @__PURE__ */ jsx17(
3437
+ /* @__PURE__ */ jsx18(
3381
3438
  FloatingPanel,
3382
3439
  {
3383
3440
  field: true,
@@ -3388,14 +3445,14 @@ function SearchField({
3388
3445
  placement: "bottom-start",
3389
3446
  matchTriggerWidth: true,
3390
3447
  className: "kjun-select-panel",
3391
- children: /* @__PURE__ */ jsx17(
3448
+ children: /* @__PURE__ */ jsx18(
3392
3449
  "div",
3393
3450
  {
3394
3451
  id,
3395
3452
  role: "listbox",
3396
3453
  "aria-label": ariaLabel || placeholder,
3397
3454
  onMouseDown: (e) => e.preventDefault(),
3398
- children: loading ? /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx17(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }) : failed ? /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", role: "alert", children: errorText }) : options.length ? options.map((o, i) => /* @__PURE__ */ jsx17(
3455
+ children: loading ? /* @__PURE__ */ jsx18("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx18(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }) : failed ? /* @__PURE__ */ jsx18("div", { className: "kjun-select-empty", role: "alert", children: errorText }) : options.length ? options.map((o, i) => /* @__PURE__ */ jsx18(
3399
3456
  "div",
3400
3457
  {
3401
3458
  id: id + "-" + i,
@@ -3413,7 +3470,7 @@ function SearchField({
3413
3470
  children: (renderOption == null ? void 0 : renderOption(o)) || optionLabel(o, labelKey)
3414
3471
  },
3415
3472
  optionKey(o, itemKey, i)
3416
- )) : /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", children: emptyText })
3473
+ )) : /* @__PURE__ */ jsx18("div", { className: "kjun-select-empty", children: emptyText })
3417
3474
  }
3418
3475
  )
3419
3476
  }
@@ -3426,7 +3483,7 @@ import { tokens as tokens17 } from "@kjun-ui/tokens";
3426
3483
  import {
3427
3484
  useState as useState14
3428
3485
  } from "react";
3429
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
3486
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
3430
3487
  function KjunDatePicker({
3431
3488
  value,
3432
3489
  size = "md",
@@ -3447,7 +3504,7 @@ function KjunDatePicker({
3447
3504
  ["--_kjun-date-icon-inset"]: tokens17.input[size].padding + "px",
3448
3505
  ["--_kjun-date-icon-size"]: tokens17.input[size].iconSize + "px"
3449
3506
  }, children: [
3450
- /* @__PURE__ */ jsx18(
3507
+ /* @__PURE__ */ jsx19(
3451
3508
  KjunInput,
3452
3509
  {
3453
3510
  ...props,
@@ -3469,7 +3526,7 @@ function KjunDatePicker({
3469
3526
  }
3470
3527
  }
3471
3528
  ),
3472
- !focus && /* @__PURE__ */ jsx18(
3529
+ !focus && /* @__PURE__ */ jsx19(
3473
3530
  "span",
3474
3531
  {
3475
3532
  "aria-hidden": "true",
@@ -3578,7 +3635,7 @@ function useSearchInputModel({
3578
3635
  }
3579
3636
 
3580
3637
  // packages/react/src/search-input.tsx
3581
- import { jsx as jsx19 } from "react/jsx-runtime";
3638
+ import { jsx as jsx20 } from "react/jsx-runtime";
3582
3639
  function KjunSearchInput({
3583
3640
  value,
3584
3641
  placeholder = "\uAC80\uC0C9...",
@@ -3614,7 +3671,7 @@ function KjunSearchInput({
3614
3671
  onClear == null ? void 0 : onClear();
3615
3672
  };
3616
3673
  if (!loadOptions)
3617
- return /* @__PURE__ */ jsx19(
3674
+ return /* @__PURE__ */ jsx20(
3618
3675
  KjunInput,
3619
3676
  {
3620
3677
  error,
@@ -3630,7 +3687,7 @@ function KjunSearchInput({
3630
3687
  onEnter
3631
3688
  }
3632
3689
  );
3633
- return /* @__PURE__ */ jsx19(
3690
+ return /* @__PURE__ */ jsx20(
3634
3691
  SearchField,
3635
3692
  {
3636
3693
  error,
@@ -3711,7 +3768,7 @@ import { createContext as createContext11 } from "react";
3711
3768
  var CompoundControlContext = createContext11(null);
3712
3769
 
3713
3770
  // packages/react/src/select-control.tsx
3714
- import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
3771
+ import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
3715
3772
  function KjunSelect({
3716
3773
  value,
3717
3774
  options = [],
@@ -3809,12 +3866,12 @@ function KjunSelect({
3809
3866
  }
3810
3867
  },
3811
3868
  children: [
3812
- /* @__PURE__ */ jsx20("span", { className: !label ? "kjun-placeholder" : void 0, style: { flex: 1, paddingRight: clearable && label ? spec.clearSize + spec.affixGap : void 0 }, children: (renderSelected == null ? void 0 : renderSelected(selectedOption)) || label || placeholder }),
3813
- /* @__PURE__ */ jsx20(KjunIcon, { name: "chevron-down", className: "kjun-select-indicator", "data-open": expanded || void 0, size: segment ? tokens18.extensions.timePicker.iconSize : spec.iconSize, style: { flexShrink: 0, color: disabled ? "var(--_kjun-color-text-disabled)" : "var(--_kjun-color-text-tertiary)" } })
3869
+ /* @__PURE__ */ jsx21("span", { className: !label ? "kjun-placeholder" : void 0, style: { flex: 1, paddingRight: clearable && label ? spec.clearSize + spec.affixGap : void 0 }, children: (renderSelected == null ? void 0 : renderSelected(selectedOption)) || label || placeholder }),
3870
+ /* @__PURE__ */ jsx21(KjunIcon, { name: "chevron-down", className: "kjun-select-indicator", "data-open": expanded || void 0, size: segment ? tokens18.extensions.timePicker.iconSize : spec.iconSize, style: { flexShrink: 0, color: disabled ? "var(--_kjun-color-text-disabled)" : "var(--_kjun-color-text-tertiary)" } })
3814
3871
  ]
3815
3872
  }
3816
3873
  ),
3817
- clearable && !!label && /* @__PURE__ */ jsx20(
3874
+ clearable && !!label && /* @__PURE__ */ jsx21(
3818
3875
  KjunButton,
3819
3876
  {
3820
3877
  size: "sm",
@@ -3836,11 +3893,11 @@ function KjunSelect({
3836
3893
  onClear == null ? void 0 : onClear();
3837
3894
  (_a = ref.current) == null ? void 0 : _a.focus();
3838
3895
  },
3839
- children: /* @__PURE__ */ jsx20(KjunIcon, { name: "x", size: spec.iconSize })
3896
+ children: /* @__PURE__ */ jsx21(KjunIcon, { name: "x", size: spec.iconSize })
3840
3897
  }
3841
3898
  )
3842
3899
  ] }),
3843
- /* @__PURE__ */ jsx20(
3900
+ /* @__PURE__ */ jsx21(
3844
3901
  FloatingPanel,
3845
3902
  {
3846
3903
  field: true,
@@ -3850,9 +3907,9 @@ function KjunSelect({
3850
3907
  placement: "bottom-start",
3851
3908
  matchTriggerWidth: true,
3852
3909
  className: "kjun-select-panel kjun-select-options-panel",
3853
- children: /* @__PURE__ */ jsx20(FieldContext.Provider, { value: null, children: /* @__PURE__ */ jsxs15("div", { ref: menu, className: "kjun-select-content", children: [
3854
- menuHeader && /* @__PURE__ */ jsx20("div", { className: "kjun-select-header", children: menuHeader }),
3855
- searchable && /* @__PURE__ */ jsx20("div", { className: "kjun-select-search", children: /* @__PURE__ */ jsx20(
3910
+ children: /* @__PURE__ */ jsx21(FieldContext.Provider, { value: null, children: /* @__PURE__ */ jsxs15("div", { ref: menu, className: "kjun-select-content", children: [
3911
+ menuHeader && /* @__PURE__ */ jsx21("div", { className: "kjun-select-header", children: menuHeader }),
3912
+ searchable && /* @__PURE__ */ jsx21("div", { className: "kjun-select-search", children: /* @__PURE__ */ jsx21(
3856
3913
  KjunInput,
3857
3914
  {
3858
3915
  autoFocus: true,
@@ -3883,8 +3940,8 @@ function KjunSelect({
3883
3940
  }
3884
3941
  }
3885
3942
  ) }),
3886
- loading && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx20(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }),
3887
- /* @__PURE__ */ jsx20(
3943
+ loading && /* @__PURE__ */ jsx21("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx21(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }),
3944
+ /* @__PURE__ */ jsx21(
3888
3945
  ListBox,
3889
3946
  {
3890
3947
  id,
@@ -3913,8 +3970,8 @@ function KjunSelect({
3913
3970
  textValue: optionLabel(o, labelKey),
3914
3971
  className: "kjun-option",
3915
3972
  children: [
3916
- (renderOption == null ? void 0 : renderOption(o, selected(o))) || /* @__PURE__ */ jsx20("span", { children: optionLabel(o, labelKey) }),
3917
- selected(o) && /* @__PURE__ */ jsx20(KjunIcon, { name: "check", size: tokens18.extensions.menu.iconSize })
3973
+ (renderOption == null ? void 0 : renderOption(o, selected(o))) || /* @__PURE__ */ jsx21("span", { children: optionLabel(o, labelKey) }),
3974
+ selected(o) && /* @__PURE__ */ jsx21(KjunIcon, { name: "check", size: tokens18.extensions.menu.iconSize })
3918
3975
  ]
3919
3976
  },
3920
3977
  key
@@ -3922,8 +3979,8 @@ function KjunSelect({
3922
3979
  },
3923
3980
  session
3924
3981
  ),
3925
- !loading && !matching.length && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: "\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }),
3926
- !loading && visible.length < matching.length && /* @__PURE__ */ jsx20(
3982
+ !loading && !matching.length && /* @__PURE__ */ jsx21("div", { className: "kjun-select-empty", children: "\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }),
3983
+ !loading && visible.length < matching.length && /* @__PURE__ */ jsx21(
3927
3984
  KjunButton,
3928
3985
  {
3929
3986
  size: "sm",
@@ -3945,7 +4002,7 @@ import { tokens as tokens20 } from "@kjun-ui/tokens";
3945
4002
  // packages/react/src/collapse.tsx
3946
4003
  import { tokens as tokens19 } from "@kjun-ui/tokens";
3947
4004
  import { useLayoutEffect as useLayoutEffect11, useRef as useRef20, useState as useState18 } from "react";
3948
- import { jsx as jsx21 } from "react/jsx-runtime";
4005
+ import { jsx as jsx22 } from "react/jsx-runtime";
3949
4006
  function Collapse({ open, children }) {
3950
4007
  const reduced = useReducedMotion();
3951
4008
  const [retained, setRetained] = useState18(open);
@@ -4005,7 +4062,7 @@ function Collapse({ open, children }) {
4005
4062
  }
4006
4063
  };
4007
4064
  }, [open, reduced, present]);
4008
- return present ? /* @__PURE__ */ jsx21("div", { ref: root, className: "kjun-motion-collapse", inert: !open, "aria-hidden": !open || void 0, children: /* @__PURE__ */ jsx21("div", { ref: body, children }) }) : null;
4065
+ return present ? /* @__PURE__ */ jsx22("div", { ref: root, className: "kjun-motion-collapse", inert: !open, "aria-hidden": !open || void 0, children: /* @__PURE__ */ jsx22("div", { ref: body, children }) }) : null;
4009
4066
  }
4010
4067
 
4011
4068
  // shared/package-runtime/navigation.ts
@@ -4121,7 +4178,7 @@ import {
4121
4178
  useState as useState20
4122
4179
  } from "react";
4123
4180
  import { Tab, TabList, TabPanel, Tabs } from "react-aria-components";
4124
- import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
4181
+ import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
4125
4182
  function KjunTabs({
4126
4183
  value,
4127
4184
  items = [],
@@ -4181,7 +4238,7 @@ function KjunTabs({
4181
4238
  children: [
4182
4239
  /* @__PURE__ */ jsxs16("div", { className: "kjun-tabs-header", children: [
4183
4240
  /* @__PURE__ */ jsxs16("div", { className: "kjun-tabs-track", ref: group, tabIndex: -1, children: [
4184
- /* @__PURE__ */ jsx22(TabList, { "aria-label": ariaLabel, className: "kjun-tabs-list", children: tabs.map((tab) => /* @__PURE__ */ jsxs16(
4241
+ /* @__PURE__ */ jsx23(TabList, { "aria-label": ariaLabel, className: "kjun-tabs-list", children: tabs.map((tab) => /* @__PURE__ */ jsxs16(
4185
4242
  Tab,
4186
4243
  {
4187
4244
  id: tab.name,
@@ -4221,10 +4278,10 @@ function KjunTabs({
4221
4278
  onTouchEnd: clear,
4222
4279
  onTouchCancel: clear,
4223
4280
  children: [
4224
- tab.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: tab.icon, size: tokens20.extensions.tabs.iconSize }),
4281
+ tab.icon && /* @__PURE__ */ jsx23(KjunIcon, { name: tab.icon, size: tokens20.extensions.tabs.iconSize }),
4225
4282
  " ",
4226
- /* @__PURE__ */ jsx22("span", { className: "kjun-motion-label", "data-label": tab.label, children: /* @__PURE__ */ jsx22("span", { children: tab.label }) }),
4227
- tab.badge != null && /* @__PURE__ */ jsx22(
4283
+ /* @__PURE__ */ jsx23("span", { className: "kjun-motion-label", "data-label": tab.label, children: /* @__PURE__ */ jsx23("span", { children: tab.label }) }),
4284
+ tab.badge != null && /* @__PURE__ */ jsx23(
4228
4285
  "span",
4229
4286
  {
4230
4287
  className: "kjun-tab-badge",
@@ -4238,17 +4295,17 @@ function KjunTabs({
4238
4295
  },
4239
4296
  tab.name
4240
4297
  )) }),
4241
- /* @__PURE__ */ jsx22("span", { ref: indicator, className: "kjun-tab-indicator", "aria-hidden": "true", hidden: true })
4298
+ /* @__PURE__ */ jsx23("span", { ref: indicator, className: "kjun-tab-indicator", "aria-hidden": "true", hidden: true })
4242
4299
  ] }),
4243
4300
  actions
4244
4301
  ] }),
4245
- children && /* @__PURE__ */ jsx22("div", { className: "kjun-tab-content", children })
4302
+ children && /* @__PURE__ */ jsx23("div", { className: "kjun-tab-content", children })
4246
4303
  ]
4247
4304
  }
4248
4305
  );
4249
4306
  }
4250
4307
  function KjunTabPane({ name, children }) {
4251
- return /* @__PURE__ */ jsx22(
4308
+ return /* @__PURE__ */ jsx23(
4252
4309
  TabPanel,
4253
4310
  {
4254
4311
  id: name,
@@ -4266,11 +4323,11 @@ function KjunAccordion({
4266
4323
  children
4267
4324
  }) {
4268
4325
  const state = useAccordionState(multiple);
4269
- return /* @__PURE__ */ jsx22(
4326
+ return /* @__PURE__ */ jsx23(
4270
4327
  AccordionContext.Provider,
4271
4328
  {
4272
4329
  value: state,
4273
- children: /* @__PURE__ */ jsx22("div", { className: "kjun-accordion", "data-tone": tone, children })
4330
+ children: /* @__PURE__ */ jsx23("div", { className: "kjun-accordion", "data-tone": tone, children })
4274
4331
  }
4275
4332
  );
4276
4333
  }
@@ -4297,8 +4354,8 @@ function KjunAccordionItem({
4297
4354
  className: "kjun-accordion-trigger",
4298
4355
  onClick: () => group ? group.toggle(id) : setOwn(!own),
4299
4356
  children: [
4300
- /* @__PURE__ */ jsx22("span", { className: "kjun-accordion-heading", children: header || title }),
4301
- /* @__PURE__ */ jsx22(
4357
+ /* @__PURE__ */ jsx23("span", { className: "kjun-accordion-heading", children: header || title }),
4358
+ /* @__PURE__ */ jsx23(
4302
4359
  KjunIcon,
4303
4360
  {
4304
4361
  name: "chevron-down",
@@ -4310,7 +4367,7 @@ function KjunAccordionItem({
4310
4367
  ]
4311
4368
  }
4312
4369
  ),
4313
- /* @__PURE__ */ jsx22(Collapse, { open, children: /* @__PURE__ */ jsx22(
4370
+ /* @__PURE__ */ jsx23(Collapse, { open, children: /* @__PURE__ */ jsx23(
4314
4371
  "div",
4315
4372
  {
4316
4373
  role: "region",
@@ -4327,16 +4384,16 @@ function KjunBreadcrumb({
4327
4384
  renderLink,
4328
4385
  ariaLabel = "\uD604\uC7AC \uC704\uCE58"
4329
4386
  }) {
4330
- return /* @__PURE__ */ jsx22("nav", { "aria-label": ariaLabel, className: "kjun-breadcrumb", children: items.map((item, i) => {
4387
+ return /* @__PURE__ */ jsx23("nav", { "aria-label": ariaLabel, className: "kjun-breadcrumb", children: items.map((item, i) => {
4331
4388
  const label = /* @__PURE__ */ jsxs16(Fragment7, { children: [
4332
- item.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: item.icon, size: tokens20.extensions.breadcrumb.iconSize }),
4389
+ item.icon && /* @__PURE__ */ jsx23(KjunIcon, { name: item.icon, size: tokens20.extensions.breadcrumb.iconSize }),
4333
4390
  " ",
4334
4391
  item.label
4335
4392
  ] });
4336
4393
  return /* @__PURE__ */ jsxs16(Fragment6, { children: [
4337
- i > 0 && /* @__PURE__ */ jsx22(KjunIcon, { name: "chevron-right", size: tokens20.extensions.breadcrumb.separatorSize }),
4394
+ i > 0 && /* @__PURE__ */ jsx23(KjunIcon, { name: "chevron-right", size: tokens20.extensions.breadcrumb.separatorSize }),
4338
4395
  " ",
4339
- item.to && i < items.length - 1 ? (renderLink == null ? void 0 : renderLink(item, label)) || /* @__PURE__ */ jsx22("a", { href: item.to, children: label }) : /* @__PURE__ */ jsx22("span", { "aria-current": i === items.length - 1 ? "page" : void 0, children: label })
4396
+ item.to && i < items.length - 1 ? (renderLink == null ? void 0 : renderLink(item, label)) || /* @__PURE__ */ jsx23("a", { href: item.to, children: label }) : /* @__PURE__ */ jsx23("span", { "aria-current": i === items.length - 1 ? "page" : void 0, children: label })
4340
4397
  ] }, i);
4341
4398
  }) });
4342
4399
  }
@@ -4373,14 +4430,14 @@ function KjunPagination({
4373
4430
  ).filter((v) => v >= 1 && v <= totalPages)
4374
4431
  ]);
4375
4432
  const pages = [...visible].sort((a, b) => a - b).flatMap((v, i, all) => i && v - all[i - 1] > 1 ? ["...", v] : [v]);
4376
- const button = (target, label, icon) => /* @__PURE__ */ jsx22(
4433
+ const button = (target, label, icon) => /* @__PURE__ */ jsx23(
4377
4434
  "button",
4378
4435
  {
4379
4436
  type: "button",
4380
4437
  "aria-label": label,
4381
4438
  disabled: target < 1 || target > totalPages || target === current,
4382
4439
  onClick: () => change(target),
4383
- children: /* @__PURE__ */ jsx22(KjunIcon, { name: icon, size: tokens20.extensions.pagination.iconSize })
4440
+ children: /* @__PURE__ */ jsx23(KjunIcon, { name: icon, size: tokens20.extensions.pagination.iconSize })
4384
4441
  }
4385
4442
  );
4386
4443
  return /* @__PURE__ */ jsxs16("nav", { "aria-label": "\uD398\uC774\uC9C0 \uD0D0\uC0C9", className: "kjun-pagination", children: [
@@ -4392,9 +4449,9 @@ function KjunPagination({
4392
4449
  " / ",
4393
4450
  formatter(totalRows),
4394
4451
  "\uAC1C"
4395
- ] }) : /* @__PURE__ */ jsx22("span", {}),
4452
+ ] }) : /* @__PURE__ */ jsx23("span", {}),
4396
4453
  /* @__PURE__ */ jsxs16("div", { className: "kjun-pagination-controls", children: [
4397
- showSizeSelector && /* @__PURE__ */ jsx22("div", { className: "kjun-pagination-size", children: /* @__PURE__ */ jsx22(
4454
+ showSizeSelector && /* @__PURE__ */ jsx23("div", { className: "kjun-pagination-size", children: /* @__PURE__ */ jsx23(
4398
4455
  KjunSelect,
4399
4456
  {
4400
4457
  size: "sm",
@@ -4411,7 +4468,7 @@ function KjunPagination({
4411
4468
  totalPages > 1 && /* @__PURE__ */ jsxs16("div", { className: "kjun-pagination-mobile", children: [
4412
4469
  button(current - 1, "\uC774\uC804 \uD398\uC774\uC9C0", "chevron-left"),
4413
4470
  /* @__PURE__ */ jsxs16("span", { children: [
4414
- /* @__PURE__ */ jsx22("strong", { children: current }),
4471
+ /* @__PURE__ */ jsx23("strong", { children: current }),
4415
4472
  " / ",
4416
4473
  totalPages
4417
4474
  ] }),
@@ -4421,7 +4478,7 @@ function KjunPagination({
4421
4478
  showFirstLast && button(1, "\uCCAB \uD398\uC774\uC9C0", "chevrons-left"),
4422
4479
  button(current - 1, "\uC774\uC804 \uD398\uC774\uC9C0", "chevron-left"),
4423
4480
  pages.map(
4424
- (n, i) => typeof n === "string" ? /* @__PURE__ */ jsx22("span", { children: "..." }, "dots" + i) : /* @__PURE__ */ jsx22(
4481
+ (n, i) => typeof n === "string" ? /* @__PURE__ */ jsx23("span", { children: "..." }, "dots" + i) : /* @__PURE__ */ jsx23(
4425
4482
  "button",
4426
4483
  {
4427
4484
  type: "button",
@@ -4448,7 +4505,7 @@ import {
4448
4505
  useRef as useRef23,
4449
4506
  useState as useState21
4450
4507
  } from "react";
4451
- import { Fragment as Fragment8, jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
4508
+ import { Fragment as Fragment8, jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
4452
4509
  function KjunIconToggle({
4453
4510
  active = false,
4454
4511
  activeIcon,
@@ -4468,7 +4525,7 @@ function KjunIconToggle({
4468
4525
  }) {
4469
4526
  var _a;
4470
4527
  const navigation = useContext13(TopNavigationContext);
4471
- return /* @__PURE__ */ jsx23(KjunTooltip, { content: disabled || loading ? "" : tooltip != null ? tooltip : ariaLabel, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
4528
+ return /* @__PURE__ */ jsx24(KjunTooltip, { content: disabled || loading ? "" : tooltip != null ? tooltip : ariaLabel, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx24(
4472
4529
  "button",
4473
4530
  {
4474
4531
  type: "button",
@@ -4483,7 +4540,7 @@ function KjunIconToggle({
4483
4540
  e.stopPropagation();
4484
4541
  onToggle == null ? void 0 : onToggle();
4485
4542
  },
4486
- children: loading ? navigation ? /* @__PURE__ */ jsx23(KjunIcon, { name: "loader-2", spin: true, size: navigation.iconSize }) : /* @__PURE__ */ jsx23(KjunSpinner, { size: "sm" }) : /* @__PURE__ */ jsx23(
4543
+ children: loading ? navigation ? /* @__PURE__ */ jsx24(KjunIcon, { name: "loader-2", spin: true, size: navigation.iconSize }) : /* @__PURE__ */ jsx24(KjunSpinner, { size: "sm" }) : /* @__PURE__ */ jsx24(
4487
4544
  KjunIcon,
4488
4545
  {
4489
4546
  name: active ? activeIcon : inactiveIcon || activeIcon,
@@ -4574,7 +4631,7 @@ function KjunCopyButton({
4574
4631
  }
4575
4632
  },
4576
4633
  children: [
4577
- /* @__PURE__ */ jsx23(
4634
+ /* @__PURE__ */ jsx24(
4578
4635
  KjunIcon,
4579
4636
  {
4580
4637
  name: copied ? "check" : "copy",
@@ -4582,11 +4639,11 @@ function KjunCopyButton({
4582
4639
  style: { color: copied ? "var(--_kjun-color-success)" : void 0 }
4583
4640
  }
4584
4641
  ),
4585
- text && !inline && /* @__PURE__ */ jsx23("span", { children: copied ? successText : text })
4642
+ text && !inline && /* @__PURE__ */ jsx24("span", { children: copied ? successText : text })
4586
4643
  ]
4587
4644
  }
4588
4645
  ),
4589
- /* @__PURE__ */ jsx23("span", { role: feedback ? void 0 : "status", "aria-hidden": feedback ? true : void 0, className: "kjun-sr-only", children: copied ? successText : failed ? "\uBCF5\uC0AC \uC2E4\uD328" : "" })
4646
+ /* @__PURE__ */ jsx24("span", { role: feedback ? void 0 : "status", "aria-hidden": feedback ? true : void 0, className: "kjun-sr-only", children: copied ? successText : failed ? "\uBCF5\uC0AC \uC2E4\uD328" : "" })
4590
4647
  ] });
4591
4648
  }
4592
4649
  function KjunRefreshButton({
@@ -4608,7 +4665,7 @@ function KjunRefreshButton({
4608
4665
  const reduced = useReducedMotion();
4609
4666
  const label = ariaLabel || [targetName, mode === "text" ? text : "\uC0C8\uB85C\uACE0\uCE68"].filter(Boolean).join(" ");
4610
4667
  const hint = (_a = tooltip != null ? tooltip : title) != null ? _a : mode === "icon" ? label : "";
4611
- return /* @__PURE__ */ jsx23(KjunTooltip, { content: props.disabled || props.loading ? "" : hint, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
4668
+ return /* @__PURE__ */ jsx24(KjunTooltip, { content: props.disabled || props.loading ? "" : hint, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx24(
4612
4669
  KjunButton,
4613
4670
  {
4614
4671
  ...props,
@@ -4636,7 +4693,7 @@ function KjunExternalLink({
4636
4693
  label,
4637
4694
  children
4638
4695
  }) {
4639
- const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link" }) : children;
4696
+ const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx24(KjunIcon, { name: "external-link" }) : children;
4640
4697
  return url ? /* @__PURE__ */ jsxs17(
4641
4698
  "a",
4642
4699
  {
@@ -4649,11 +4706,11 @@ function KjunExternalLink({
4649
4706
  onClick: (e) => e.stopPropagation(),
4650
4707
  children: [
4651
4708
  body,
4652
- mode === "text" && /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link", size: tokens21.iconSizes.small, className: "kjun-external-link-icon" }),
4653
- !name && /* @__PURE__ */ jsx23("span", { className: "kjun-sr-only", children: " (\uC0C8 \uCC3D)" })
4709
+ mode === "text" && /* @__PURE__ */ jsx24(KjunIcon, { name: "external-link", size: tokens21.iconSizes.small, className: "kjun-external-link-icon" }),
4710
+ !name && /* @__PURE__ */ jsx24("span", { className: "kjun-sr-only", children: " (\uC0C8 \uCC3D)" })
4654
4711
  ]
4655
4712
  }
4656
- ) : /* @__PURE__ */ jsx23("span", { "aria-label": name, children: body });
4713
+ ) : /* @__PURE__ */ jsx24("span", { "aria-label": name, children: body });
4657
4714
  }
4658
4715
  function KjunScrollFade({ children }) {
4659
4716
  const ref = useRef23(null), [edges, setEdges] = useState21({ left: false, right: false });
@@ -4678,7 +4735,7 @@ function KjunScrollFade({ children }) {
4678
4735
  return () => observer.disconnect();
4679
4736
  }, [children]);
4680
4737
  const mask = edges.left || edges.right ? `linear-gradient(to right, ${edges.left ? `transparent, currentColor ${tokens21.extensions.scrollFade.width}px` : "currentColor"}, ${edges.right ? `currentColor calc(100% - ${tokens21.extensions.scrollFade.width}px), transparent` : "currentColor"})` : void 0;
4681
- return /* @__PURE__ */ jsx23(
4738
+ return /* @__PURE__ */ jsx24(
4682
4739
  "div",
4683
4740
  {
4684
4741
  ref,
@@ -4713,7 +4770,7 @@ function useLoadingReveal(active, delay = 0) {
4713
4770
  }
4714
4771
 
4715
4772
  // packages/react/src/data-state.tsx
4716
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
4773
+ import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
4717
4774
  function useQueryDisplay(props) {
4718
4775
  var _a;
4719
4776
  const [state, setState] = useState23(() => initialQueryDisplay(props));
@@ -4751,11 +4808,11 @@ function KjunDataState({
4751
4808
  }) {
4752
4809
  const state = useQueryDisplay(query2), blockingError = query2.error && !(state.usesQueryState && state.hasCurrentResult), visibleRefreshError = refreshError || (state.usesQueryState && state.hasCurrentResult ? query2.error : null), concealed = state.initialLoading || !!blockingError || empty, padding = tokens22.extensions.state.padding[size], revealed = useLoadingReveal(state.initialLoading, loadingDelay);
4753
4810
  return /* @__PURE__ */ jsxs18("div", { className: "kjun-data-state", "aria-busy": !!query2.loading || refreshing, children: [
4754
- /* @__PURE__ */ jsx24("div", { className: "kjun-data-status-slot", children: (refreshing || state.queryRefreshing) && /* @__PURE__ */ jsxs18("div", { className: "kjun-data-status", role: "status", children: [
4755
- /* @__PURE__ */ jsx24(KjunSpinner, { size: "xs" }),
4756
- /* @__PURE__ */ jsx24("span", { children: refreshingText })
4811
+ /* @__PURE__ */ jsx25("div", { className: "kjun-data-status-slot", children: (refreshing || state.queryRefreshing) && /* @__PURE__ */ jsxs18("div", { className: "kjun-data-status", role: "status", children: [
4812
+ /* @__PURE__ */ jsx25(KjunSpinner, { size: "xs" }),
4813
+ /* @__PURE__ */ jsx25("span", { children: refreshingText })
4757
4814
  ] }) }),
4758
- state.initialLoading ? /* @__PURE__ */ jsx24(
4815
+ state.initialLoading ? /* @__PURE__ */ jsx25(
4759
4816
  "div",
4760
4817
  {
4761
4818
  className: "kjun-data-loading-block",
@@ -4763,13 +4820,13 @@ function KjunDataState({
4763
4820
  "aria-label": revealed ? loadingText : void 0,
4764
4821
  "aria-hidden": revealed ? void 0 : true,
4765
4822
  style: { paddingBlock: loadingPadding === "none" ? 0 : padding, visibility: revealed ? void 0 : "hidden" },
4766
- children: loadingContent || (skeleton ? /* @__PURE__ */ jsx24("div", { style: { display: "grid", gap: tokens22.dimension.value12 }, children: Array.from({ length: skeletonCount }, (_, i) => /* @__PURE__ */ jsx24(KjunSkeleton, { type: skeletonType }, i)) }) : /* @__PURE__ */ jsxs18("div", { className: "kjun-data-loading", children: [
4767
- /* @__PURE__ */ jsx24(KjunSpinner, { size: "md" }),
4768
- /* @__PURE__ */ jsx24("p", { children: loadingText })
4823
+ children: loadingContent || (skeleton ? /* @__PURE__ */ jsx25("div", { style: { display: "grid", gap: tokens22.dimension.value12 }, children: Array.from({ length: skeletonCount }, (_, i) => /* @__PURE__ */ jsx25(KjunSkeleton, { type: skeletonType }, i)) }) : /* @__PURE__ */ jsxs18("div", { className: "kjun-data-loading", children: [
4824
+ /* @__PURE__ */ jsx25(KjunSpinner, { size: "md" }),
4825
+ /* @__PURE__ */ jsx25("p", { children: loadingText })
4769
4826
  ] }))
4770
4827
  }
4771
- ) : blockingError ? /* @__PURE__ */ jsx24("div", { className: "kjun-data-error kjun-state-actions", style: { paddingBlock: padding }, children: errorContent || /* @__PURE__ */ jsx24(KjunAlert, { type: "danger", title: "\uC624\uB958 \uBC1C\uC0DD", actions: onRetry && /* @__PURE__ */ jsx24(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: query2.error }) }) : empty ? /* @__PURE__ */ jsx24("div", { className: "kjun-data-empty kjun-state-actions", style: { paddingBlock: padding }, children: emptyContent || /* @__PURE__ */ jsx24(KjunEmpty, { text: emptyText, icon: emptyIcon, children: emptyActionText && /* @__PURE__ */ jsx24(KjunButton, { onClick: onEmptyAction, children: emptyActionText }) }) }) : null,
4772
- (!concealed || preserveContent && state.hasQueryResult) && /* @__PURE__ */ jsx24(
4828
+ ) : blockingError ? /* @__PURE__ */ jsx25("div", { className: "kjun-data-error kjun-state-actions", style: { paddingBlock: padding }, children: errorContent || /* @__PURE__ */ jsx25(KjunAlert, { type: "danger", title: "\uC624\uB958 \uBC1C\uC0DD", actions: onRetry && /* @__PURE__ */ jsx25(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: query2.error }) }) : empty ? /* @__PURE__ */ jsx25("div", { className: "kjun-data-empty kjun-state-actions", style: { paddingBlock: padding }, children: emptyContent || /* @__PURE__ */ jsx25(KjunEmpty, { text: emptyText, icon: emptyIcon, children: emptyActionText && /* @__PURE__ */ jsx25(KjunButton, { onClick: onEmptyAction, children: emptyActionText }) }) }) : null,
4829
+ (!concealed || preserveContent && state.hasQueryResult) && /* @__PURE__ */ jsx25(
4773
4830
  "div",
4774
4831
  {
4775
4832
  className: "kjun-data-content" + (concealed ? " kjun-data-concealed" : ""),
@@ -4782,7 +4839,7 @@ function KjunDataState({
4782
4839
  },
4783
4840
  "content"
4784
4841
  ),
4785
- visibleRefreshError && !state.initialLoading && /* @__PURE__ */ jsx24("div", { className: "kjun-data-warning kjun-state-actions", children: /* @__PURE__ */ jsxs18(KjunAlert, { type: "warning", size: "sm", actions: onRetry && /* @__PURE__ */ jsx24(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: [
4842
+ visibleRefreshError && !state.initialLoading && /* @__PURE__ */ jsx25("div", { className: "kjun-data-warning kjun-state-actions", children: /* @__PURE__ */ jsxs18(KjunAlert, { type: "warning", size: "sm", actions: onRetry && /* @__PURE__ */ jsx25(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: [
4786
4843
  visibleRefreshError,
4787
4844
  " \xB7 \uC774\uC804 \uC870\uD68C \uACB0\uACFC\uB97C \uD45C\uC2DC\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4."
4788
4845
  ] }) })
@@ -4802,9 +4859,9 @@ var KjunErrorBoundary = class extends Component {
4802
4859
  }
4803
4860
  render() {
4804
4861
  return this.state.error ? this.props.fallback || /* @__PURE__ */ jsxs18("div", { className: "kjun-error-fallback", children: [
4805
- /* @__PURE__ */ jsx24("h3", { children: this.props.fallbackMessage || "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4" }),
4806
- /* @__PURE__ */ jsx24("p", { children: "\uB2E4\uC2DC \uC2DC\uB3C4\uD558\uBA74 \uBB38\uC81C\uAC00 \uD574\uACB0\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }),
4807
- /* @__PURE__ */ jsx24(
4862
+ /* @__PURE__ */ jsx25("h3", { children: this.props.fallbackMessage || "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4" }),
4863
+ /* @__PURE__ */ jsx25("p", { children: "\uB2E4\uC2DC \uC2DC\uB3C4\uD558\uBA74 \uBB38\uC81C\uAC00 \uD574\uACB0\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }),
4864
+ /* @__PURE__ */ jsx25(
4808
4865
  KjunButton,
4809
4866
  {
4810
4867
  onClick: () => {
@@ -4866,37 +4923,37 @@ function webMarketLayout(columns, showActions, widthClass) {
4866
4923
  }
4867
4924
 
4868
4925
  // packages/react/src/market-layout.tsx
4869
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
4926
+ import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
4870
4927
  function MarketColumns({ columns, showActions, widthClass }) {
4871
4928
  const layout = webMarketLayout(columns, showActions, widthClass);
4872
4929
  return /* @__PURE__ */ jsxs19("colgroup", { children: [
4873
- showActions && /* @__PURE__ */ jsx25("col", { style: { width: marketGeometry.actionsWidth } }),
4874
- layout.columns.map((column, index) => /* @__PURE__ */ jsx25("col", { ...column }, columns[index].key || index))
4930
+ showActions && /* @__PURE__ */ jsx26("col", { style: { width: marketGeometry.actionsWidth } }),
4931
+ layout.columns.map((column, index) => /* @__PURE__ */ jsx26("col", { ...column }, columns[index].key || index))
4875
4932
  ] });
4876
4933
  }
4877
4934
 
4878
4935
  // packages/react/src/market-skeleton.tsx
4879
- import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
4936
+ import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
4880
4937
  function KjunMarketTableSkeleton({ columns = [], rows = 8, showActions = false, alignClass, widthClass }) {
4881
4938
  const cols = normalizeMarketColumns(columns);
4882
- return /* @__PURE__ */ jsx26("div", { "aria-hidden": "true", className: "kjun-table-scroll", children: /* @__PURE__ */ jsxs20("table", { className: "kjun-market-table-grid", style: webMarketLayout(cols, showActions, widthClass).tableStyle, children: [
4883
- /* @__PURE__ */ jsx26(MarketColumns, { columns: cols, showActions, widthClass }),
4884
- /* @__PURE__ */ jsx26("thead", { children: /* @__PURE__ */ jsxs20("tr", { children: [
4885
- showActions && /* @__PURE__ */ jsx26("th", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.marketTable.headerSkeletonHeight }) }) }),
4886
- cols.map((col, i) => /* @__PURE__ */ jsx26("th", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: col.label }, col.key || i))
4939
+ return /* @__PURE__ */ jsx27("div", { "aria-hidden": "true", className: "kjun-table-scroll", children: /* @__PURE__ */ jsxs20("table", { className: "kjun-market-table-grid", style: webMarketLayout(cols, showActions, widthClass).tableStyle, children: [
4940
+ /* @__PURE__ */ jsx27(MarketColumns, { columns: cols, showActions, widthClass }),
4941
+ /* @__PURE__ */ jsx27("thead", { children: /* @__PURE__ */ jsxs20("tr", { children: [
4942
+ showActions && /* @__PURE__ */ jsx27("th", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx27("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.marketTable.headerSkeletonHeight }) }) }),
4943
+ cols.map((col, i) => /* @__PURE__ */ jsx27("th", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: col.label }, col.key || i))
4887
4944
  ] }) }),
4888
- /* @__PURE__ */ jsx26("tbody", { children: Array.from({ length: Math.max(0, rows) }, (_, row) => /* @__PURE__ */ jsxs20("tr", { children: [
4889
- showActions && /* @__PURE__ */ jsx26("td", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }),
4890
- cols.map((col, i) => /* @__PURE__ */ jsx26("td", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: isMarketIdentity(col.key) ? /* @__PURE__ */ jsxs20("div", { className: "kjun-market-skeleton-identity", children: [
4891
- /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "80%", height: tokens24.extensions.skeleton.lineHeights.md }),
4892
- /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "60%", height: tokens24.extensions.skeleton.lineHeights.sm })
4893
- ] }) : /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.financial.priceSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }, col.key || i))
4945
+ /* @__PURE__ */ jsx27("tbody", { children: Array.from({ length: Math.max(0, rows) }, (_, row) => /* @__PURE__ */ jsxs20("tr", { children: [
4946
+ showActions && /* @__PURE__ */ jsx27("td", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx27("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }),
4947
+ cols.map((col, i) => /* @__PURE__ */ jsx27("td", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: isMarketIdentity(col.key) ? /* @__PURE__ */ jsxs20("div", { className: "kjun-market-skeleton-identity", children: [
4948
+ /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: "80%", height: tokens24.extensions.skeleton.lineHeights.md }),
4949
+ /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: "60%", height: tokens24.extensions.skeleton.lineHeights.sm })
4950
+ ] }) : /* @__PURE__ */ jsx27("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: tokens24.extensions.financial.priceSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }, col.key || i))
4894
4951
  ] }, row)) })
4895
4952
  ] }) });
4896
4953
  }
4897
4954
 
4898
4955
  // packages/react/src/skeletons.tsx
4899
- import { Fragment as Fragment9, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
4956
+ import { Fragment as Fragment9, jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
4900
4957
  function KjunListSkeleton({
4901
4958
  rows = 8,
4902
4959
  variant = "market",
@@ -4904,10 +4961,10 @@ function KjunListSkeleton({
4904
4961
  avatarSize = tokens25.extensions.skeleton.listAvatarSize,
4905
4962
  quote = true
4906
4963
  }) {
4907
- return /* @__PURE__ */ jsx27("div", { "aria-hidden": "true", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-row", "data-variant": variant, children: [
4908
- avatar && /* @__PURE__ */ jsx27(KjunSkeleton, { type: "avatar", width: avatarSize, height: avatarSize }),
4964
+ return /* @__PURE__ */ jsx28("div", { "aria-hidden": "true", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-row", "data-variant": variant, children: [
4965
+ avatar && /* @__PURE__ */ jsx28(KjunSkeleton, { type: "avatar", width: avatarSize, height: avatarSize }),
4909
4966
  /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-label", children: [
4910
- /* @__PURE__ */ jsx27(
4967
+ /* @__PURE__ */ jsx28(
4911
4968
  KjunSkeleton,
4912
4969
  {
4913
4970
  type: "block",
@@ -4915,11 +4972,11 @@ function KjunListSkeleton({
4915
4972
  width: i % 2 ? "80%" : "65%"
4916
4973
  }
4917
4974
  ),
4918
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: "50%" })
4975
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: "50%" })
4919
4976
  ] }),
4920
4977
  quote && /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-quote", children: [
4921
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.quoteHeight, width: tokens25.extensions.skeleton.quoteWidth }),
4922
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: tokens25.extensions.skeleton.detailWidth })
4978
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.quoteHeight, width: tokens25.extensions.skeleton.quoteWidth }),
4979
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: tokens25.extensions.skeleton.detailWidth })
4923
4980
  ] })
4924
4981
  ] }, i)) });
4925
4982
  }
@@ -4929,7 +4986,7 @@ function KjunFormSkeleton({
4929
4986
  multiline = false,
4930
4987
  size = "md"
4931
4988
  }) {
4932
- return /* @__PURE__ */ jsx27(
4989
+ return /* @__PURE__ */ jsx28(
4933
4990
  "div",
4934
4991
  {
4935
4992
  "aria-hidden": "true",
@@ -4937,11 +4994,11 @@ function KjunFormSkeleton({
4937
4994
  "data-columns": columns,
4938
4995
  style: { "--_kjun-form-skeleton-radius": `${tokens25.input[size].radius}px` },
4939
4996
  children: fields.map((field, i) => /* @__PURE__ */ jsxs21("div", { children: [
4940
- field ? /* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label", children: typeof field === "string" ? field : field.label }) : (
4997
+ field ? /* @__PURE__ */ jsx28("div", { className: "kjun-form-skeleton-label", children: typeof field === "string" ? field : field.label }) : (
4941
4998
  // The bar sits in a label-line slot so the field starts where the real input will.
4942
- /* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label-slot", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.formLabelHeight, width: tokens25.extensions.skeleton.formLabelWidth }) })
4999
+ /* @__PURE__ */ jsx28("div", { className: "kjun-form-skeleton-label-slot", children: /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.formLabelHeight, width: tokens25.extensions.skeleton.formLabelWidth }) })
4943
5000
  ),
4944
- /* @__PURE__ */ jsx27(
5001
+ /* @__PURE__ */ jsx28(
4945
5002
  KjunSkeleton,
4946
5003
  {
4947
5004
  type: "block",
@@ -4962,7 +5019,7 @@ function KjunChartSkeleton({
4962
5019
  columns = 14
4963
5020
  }) {
4964
5021
  const kind = chartSkeletonKind(requestedKind), revealed = useLoadingReveal(true, loadingDelay), status = revealed && loadingText ? "status" : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns);
4965
- return /* @__PURE__ */ jsx27(
5022
+ return /* @__PURE__ */ jsx28(
4966
5023
  "div",
4967
5024
  {
4968
5025
  className: "kjun-chart-skeleton",
@@ -4971,10 +5028,10 @@ function KjunChartSkeleton({
4971
5028
  "aria-hidden": revealed ? void 0 : true,
4972
5029
  style: { height, visibility: revealed ? void 0 : "hidden" },
4973
5030
  children: !skeleton ? /* @__PURE__ */ jsxs21("div", { className: "kjun-data-loading", "data-kjun-chart-part": "loading", role: status, children: [
4974
- /* @__PURE__ */ jsx27("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx27(KjunSpinner, { size: "md" }) }),
4975
- loadingText && /* @__PURE__ */ jsx27("p", { children: loadingText })
5031
+ /* @__PURE__ */ jsx28("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx28(KjunSpinner, { size: "md" }) }),
5032
+ loadingText && /* @__PURE__ */ jsx28("p", { children: loadingText })
4976
5033
  ] }) : /* @__PURE__ */ jsxs21(Fragment9, { children: [
4977
- kind === "donut" ? /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-donut", "data-kjun-chart-part": "donut", "aria-hidden": "true" }) : kind === "matrix" ? /* @__PURE__ */ jsx27(
5034
+ kind === "donut" ? /* @__PURE__ */ jsx28("div", { className: "kjun-chart-skeleton-donut", "data-kjun-chart-part": "donut", "aria-hidden": "true" }) : kind === "matrix" ? /* @__PURE__ */ jsx28(
4978
5035
  "div",
4979
5036
  {
4980
5037
  className: "kjun-chart-skeleton-matrix",
@@ -4984,7 +5041,7 @@ function KjunChartSkeleton({
4984
5041
  gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
4985
5042
  gridTemplateRows: `repeat(${rowCount}, minmax(0, 1fr))`
4986
5043
  },
4987
- children: Array.from({ length: rowCount * columnCount }, (_, i) => /* @__PURE__ */ jsx27(
5044
+ children: Array.from({ length: rowCount * columnCount }, (_, i) => /* @__PURE__ */ jsx28(
4988
5045
  "div",
4989
5046
  {
4990
5047
  className: "kjun-chart-skeleton-cell",
@@ -4994,7 +5051,7 @@ function KjunChartSkeleton({
4994
5051
  i
4995
5052
  ))
4996
5053
  }
4997
- ) : /* @__PURE__ */ jsx27(
5054
+ ) : /* @__PURE__ */ jsx28(
4998
5055
  "svg",
4999
5056
  {
5000
5057
  viewBox: chartFrameViewBox,
@@ -5002,7 +5059,7 @@ function KjunChartSkeleton({
5002
5059
  className: "kjun-chart-skeleton-plot",
5003
5060
  "data-kjun-chart-part": "plot",
5004
5061
  "aria-hidden": "true",
5005
- children: /* @__PURE__ */ jsx27(
5062
+ children: /* @__PURE__ */ jsx28(
5006
5063
  "path",
5007
5064
  {
5008
5065
  d: chartFramePath,
@@ -5014,7 +5071,7 @@ function KjunChartSkeleton({
5014
5071
  )
5015
5072
  }
5016
5073
  ),
5017
- loadingText && /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-status", "data-kjun-chart-part": "status", role: status, children: /* @__PURE__ */ jsx27("span", { children: loadingText }) })
5074
+ loadingText && /* @__PURE__ */ jsx28("div", { className: "kjun-chart-skeleton-status", "data-kjun-chart-part": "status", role: status, children: /* @__PURE__ */ jsx28("span", { children: loadingText }) })
5018
5075
  ] })
5019
5076
  }
5020
5077
  );
@@ -5113,7 +5170,7 @@ function formatRelativeTime(value, now = Date.now()) {
5113
5170
  }
5114
5171
 
5115
5172
  // packages/react/src/number-display.tsx
5116
- import { Fragment as Fragment10, jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
5173
+ import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
5117
5174
  var finiteNumber = (value) => value == null || typeof value === "boolean" || typeof value === "string" && !value.trim() || !["number", "string"].includes(typeof value) || !Number.isFinite(Number(value)) ? null : Number(value) || 0;
5118
5175
  var format = (value, decimals = 0) => new Intl.NumberFormat(void 0, {
5119
5176
  minimumFractionDigits: Math.max(0, Math.min(20, decimals)),
@@ -5134,9 +5191,9 @@ function KjunAnimatedNumber({
5134
5191
  }) {
5135
5192
  const n = useCountUp(value, animated, fromPrevious);
5136
5193
  return /* @__PURE__ */ jsxs22("span", { className: "kjun-animated-number " + className, children: [
5137
- prefix && /* @__PURE__ */ jsx28("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
5138
- /* @__PURE__ */ jsx28("span", { children: typeof n === "string" ? n : formatter ? formatter(n) : format(n, decimals) }),
5139
- suffix && /* @__PURE__ */ jsx28("span", { className: "kjun-number-affix", "data-side": "suffix", children: suffix })
5194
+ prefix && /* @__PURE__ */ jsx29("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
5195
+ /* @__PURE__ */ jsx29("span", { children: typeof n === "string" ? n : formatter ? formatter(n) : format(n, decimals) }),
5196
+ suffix && /* @__PURE__ */ jsx29("span", { className: "kjun-number-affix", "data-side": "suffix", children: suffix })
5140
5197
  ] });
5141
5198
  }
5142
5199
  function KjunFreshness({
@@ -5145,11 +5202,11 @@ function KjunFreshness({
5145
5202
  fetchedAt,
5146
5203
  formatter
5147
5204
  }) {
5148
- return stale ? /* @__PURE__ */ jsx28(
5205
+ return stale ? /* @__PURE__ */ jsx29(
5149
5206
  KjunTooltip,
5150
5207
  {
5151
5208
  content: (source === "close" ? "\uC2E4\uC2DC\uAC04 \uC2DC\uC138 \uC5C6\uC74C \xB7 \uCD5C\uADFC \uC885\uAC00 \uD45C\uC2DC" : "\uC2E4\uC2DC\uAC04 \uC2DC\uC138 \uC9C0\uC5F0") + (fetchedAt ? " \xB7 " + ((formatter == null ? void 0 : formatter(fetchedAt)) || formatRelativeTime(fetchedAt)) : ""),
5152
- children: /* @__PURE__ */ jsx28("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx28(KjunBadge, { variant: "warning", size: "xs", children: source === "close" ? "\uC885\uAC00" : "\uC9C0\uC5F0" }) })
5209
+ children: /* @__PURE__ */ jsx29("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx29(KjunBadge, { variant: "warning", size: "xs", children: source === "close" ? "\uC885\uAC00" : "\uC9C0\uC5F0" }) })
5153
5210
  }
5154
5211
  ) : null;
5155
5212
  }
@@ -5163,14 +5220,14 @@ function KjunPriceCell({
5163
5220
  flashClass = "",
5164
5221
  fromPrevious = true
5165
5222
  }) {
5166
- return value == null ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens27.extensions.financial.priceSkeletonHeight, width: tokens27.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs22(Fragment10, { children: [
5167
- /* @__PURE__ */ jsx28(
5223
+ return value == null ? /* @__PURE__ */ jsx29(KjunSkeleton, { type: "block", height: tokens27.extensions.financial.priceSkeletonHeight, width: tokens27.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs22(Fragment10, { children: [
5224
+ /* @__PURE__ */ jsx29(
5168
5225
  "span",
5169
5226
  {
5170
5227
  className: "kjun-price-cell " + flashClass,
5171
5228
  ref: domainColorRef(/\bkjun-price-flash-(up|down)/.test(flashClass)),
5172
5229
  style: { color: stale ? "var(--_kjun-color-text-tertiary)" : void 0 },
5173
- children: /* @__PURE__ */ jsx28(
5230
+ children: /* @__PURE__ */ jsx29(
5174
5231
  KjunAnimatedNumber,
5175
5232
  {
5176
5233
  value,
@@ -5180,7 +5237,7 @@ function KjunPriceCell({
5180
5237
  )
5181
5238
  }
5182
5239
  ),
5183
- showFreshness && /* @__PURE__ */ jsx28(KjunFreshness, { stale, source, fetchedAt })
5240
+ showFreshness && /* @__PURE__ */ jsx29(KjunFreshness, { stale, source, fetchedAt })
5184
5241
  ] });
5185
5242
  }
5186
5243
  function KjunSignedValue({
@@ -5211,15 +5268,15 @@ function KjunSignedValue({
5211
5268
  background: tone === "pill" && !stale && n !== null ? `var(--_kjun-color-${role2}-bg)` : void 0
5212
5269
  },
5213
5270
  children: [
5214
- loading ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", width: tokens27.extensions.financial.signedSkeletonWidth, height: "1lh" }) : display,
5215
- !loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx28(KjunFreshness, { stale: true })
5271
+ loading ? /* @__PURE__ */ jsx29(KjunSkeleton, { type: "block", width: tokens27.extensions.financial.signedSkeletonWidth, height: "1lh" }) : display,
5272
+ !loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx29(KjunFreshness, { stale: true })
5216
5273
  ]
5217
5274
  }
5218
5275
  );
5219
5276
  }
5220
5277
 
5221
5278
  // packages/react/src/financial-display.tsx
5222
- import { Fragment as Fragment11, jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
5279
+ import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
5223
5280
  var deviationFill = { neutral: 1, low: tokens28.states.opacity.deviationLow, medium: tokens28.states.opacity.deviationMedium, strong: tokens28.states.opacity.deviationStrong };
5224
5281
  function KjunDeviation({
5225
5282
  value,
@@ -5230,11 +5287,11 @@ function KjunDeviation({
5230
5287
  }) {
5231
5288
  const n = finiteNumber(value);
5232
5289
  if (n === null)
5233
- return /* @__PURE__ */ jsx29("span", { style: { color: "var(--_kjun-color-text-disabled)" }, children: "-" });
5290
+ return /* @__PURE__ */ jsx30("span", { style: { color: "var(--_kjun-color-text-disabled)" }, children: "-" });
5234
5291
  const abs = Math.abs(n), signal = abs >= signalThreshold, level = deviationLevel(n), neutral = level === "neutral", role2 = neutral ? "text-secondary" : n > 0 ? "price-up" : "price-down", label = formatter ? formatter(n) : (n > 0 ? "+" : "") + format(n, decimals) + "%";
5235
5292
  if (variant === "badge")
5236
5293
  return /* @__PURE__ */ jsxs23("span", { className: "kjun-deviation-badge", children: [
5237
- /* @__PURE__ */ jsx29(
5294
+ /* @__PURE__ */ jsx30(
5238
5295
  KjunBadge,
5239
5296
  {
5240
5297
  variant: neutral ? "secondary" : n > 0 ? "price-up" : "price-down",
@@ -5243,11 +5300,11 @@ function KjunDeviation({
5243
5300
  children: label
5244
5301
  }
5245
5302
  ),
5246
- !signal ? /* @__PURE__ */ jsx29("span", { className: "kjun-deviation-signal-slot", "aria-hidden": "true" }) : /* @__PURE__ */ jsx29(
5303
+ !signal ? /* @__PURE__ */ jsx30("span", { className: "kjun-deviation-signal-slot", "aria-hidden": "true" }) : /* @__PURE__ */ jsx30(
5247
5304
  KjunTooltip,
5248
5305
  {
5249
5306
  content: `\uAD34\uB9AC\uC728 ${signalThreshold}% \uCD08\uACFC \u2014 \uCC28\uC775\uAC70\uB798 \uAE30\uD68C \uAC00\uB2A5`,
5250
- children: /* @__PURE__ */ jsx29("span", { tabIndex: 0, role: "img", "aria-label": "\uCC28\uC775\uAC70\uB798 \uAE30\uD68C", className: "kjun-deviation-signal", children: /* @__PURE__ */ jsx29(
5307
+ children: /* @__PURE__ */ jsx30("span", { tabIndex: 0, role: "img", "aria-label": "\uCC28\uC775\uAC70\uB798 \uAE30\uD68C", className: "kjun-deviation-signal", children: /* @__PURE__ */ jsx30(
5251
5308
  KjunIcon,
5252
5309
  {
5253
5310
  name: "alert-triangle",
@@ -5266,7 +5323,7 @@ function KjunDeviation({
5266
5323
  "data-variant": variant,
5267
5324
  style: { color: `var(--_kjun-color-${role2})`, fontWeight: level === "strong" ? tokens28.typography.numberLg.fontWeight : tokens28.typography.control.fontWeight },
5268
5325
  children: [
5269
- variant === "pill" && /* @__PURE__ */ jsx29(
5326
+ variant === "pill" && /* @__PURE__ */ jsx30(
5270
5327
  "span",
5271
5328
  {
5272
5329
  "aria-hidden": "true",
@@ -5277,7 +5334,7 @@ function KjunDeviation({
5277
5334
  }
5278
5335
  }
5279
5336
  ),
5280
- /* @__PURE__ */ jsx29("span", { children: label })
5337
+ /* @__PURE__ */ jsx30("span", { children: label })
5281
5338
  ]
5282
5339
  }
5283
5340
  );
@@ -5294,7 +5351,7 @@ function KjunHeatmapCell({
5294
5351
  const role2 = mode === "price" ? ratio >= 0.5 ? "price-up" : "price-down" : mode === "diverging" ? ratio >= 0.5 ? "success" : "danger" : color;
5295
5352
  const magnitude = mode === "sequential" ? ratio : Math.abs(ratio - 0.5) * 2, { heatMinimum, heatMaximum } = tokens28.states.opacity;
5296
5353
  return /* @__PURE__ */ jsxs23("span", { className: "kjun-heat-cell", ref: domainColorRef(mode === "price"), children: [
5297
- /* @__PURE__ */ jsx29(
5354
+ /* @__PURE__ */ jsx30(
5298
5355
  "span",
5299
5356
  {
5300
5357
  "aria-hidden": "true",
@@ -5302,7 +5359,7 @@ function KjunHeatmapCell({
5302
5359
  style: magnitude ? { background: `var(--_kjun-color-${role2})`, opacity: heatMinimum + (heatMaximum - heatMinimum) * magnitude } : { background: "var(--_kjun-color-secondary)" }
5303
5360
  }
5304
5361
  ),
5305
- /* @__PURE__ */ jsx29("span", { children: children != null ? children : value })
5362
+ /* @__PURE__ */ jsx30("span", { children: children != null ? children : value })
5306
5363
  ] });
5307
5364
  }
5308
5365
  function KjunProgressCell({
@@ -5315,7 +5372,7 @@ function KjunProgressCell({
5315
5372
  }) {
5316
5373
  const percent = max > 0 && Number.isFinite(value) ? Math.min(100, Math.max(0, value / max * 100)) : 0, role2 = color === "auto" ? percent < 30 ? "danger" : percent < 70 ? "warning" : "success" : color;
5317
5374
  return /* @__PURE__ */ jsxs23("div", { className: "kjun-progress-cell", children: [
5318
- /* @__PURE__ */ jsx29("div", { style: { height }, children: /* @__PURE__ */ jsx29(
5375
+ /* @__PURE__ */ jsx30("div", { style: { height }, children: /* @__PURE__ */ jsx30(
5319
5376
  "span",
5320
5377
  {
5321
5378
  style: {
@@ -5336,7 +5393,7 @@ function KjunCollectionMark({
5336
5393
  size = "md"
5337
5394
  }) {
5338
5395
  const box = tokens28.extensions.financial.markSizes[size], glyph = kind === "interest" ? tokens28.extensions.financial.heartMarkSizes[size] : box;
5339
- return /* @__PURE__ */ jsx29(
5396
+ return /* @__PURE__ */ jsx30(
5340
5397
  KjunIcon,
5341
5398
  {
5342
5399
  ref: domainColorRef(active),
@@ -5366,7 +5423,7 @@ function KjunExecutionStatusBadge({
5366
5423
  size = "md"
5367
5424
  }) {
5368
5425
  const state = status ? executionStates[status] : void 0;
5369
- return /* @__PURE__ */ jsx29(KjunBadge, { variant: (state == null ? void 0 : state[0]) || "secondary", size, dot: status === "running", children: label || (state == null ? void 0 : state[1]) || (status ? "\uC54C \uC218 \uC5C6\uC74C" : "\uC2E4\uD589 \uC774\uB825 \uC5C6\uC74C") });
5426
+ return /* @__PURE__ */ jsx30(KjunBadge, { variant: (state == null ? void 0 : state[0]) || "secondary", size, dot: status === "running", children: label || (state == null ? void 0 : state[1]) || (status ? "\uC54C \uC218 \uC5C6\uC74C" : "\uC2E4\uD589 \uC774\uB825 \uC5C6\uC74C") });
5370
5427
  }
5371
5428
  function KjunSparkline({
5372
5429
  data = [],
@@ -5396,11 +5453,11 @@ function KjunSparkline({
5396
5453
  className: "kjun-sparkline",
5397
5454
  children: [
5398
5455
  fill && values.length > 1 && /* @__PURE__ */ jsxs23(Fragment11, { children: [
5399
- /* @__PURE__ */ jsx29("defs", { children: /* @__PURE__ */ jsxs23("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5400
- /* @__PURE__ */ jsx29("stop", { offset: "0%", stopColor: line, stopOpacity: 0.3 }),
5401
- /* @__PURE__ */ jsx29("stop", { offset: "100%", stopColor: line, stopOpacity: 0.05 })
5456
+ /* @__PURE__ */ jsx30("defs", { children: /* @__PURE__ */ jsxs23("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5457
+ /* @__PURE__ */ jsx30("stop", { offset: "0%", stopColor: line, stopOpacity: 0.3 }),
5458
+ /* @__PURE__ */ jsx30("stop", { offset: "100%", stopColor: line, stopOpacity: 0.05 })
5402
5459
  ] }) }),
5403
- /* @__PURE__ */ jsx29(
5460
+ /* @__PURE__ */ jsx30(
5404
5461
  "polygon",
5405
5462
  {
5406
5463
  points: `2,${height - 2} ${points} ${width - 2},${height - 2}`,
@@ -5408,7 +5465,7 @@ function KjunSparkline({
5408
5465
  }
5409
5466
  )
5410
5467
  ] }),
5411
- values.length > 1 ? /* @__PURE__ */ jsx29(
5468
+ values.length > 1 ? /* @__PURE__ */ jsx30(
5412
5469
  "polyline",
5413
5470
  {
5414
5471
  points,
@@ -5419,7 +5476,7 @@ function KjunSparkline({
5419
5476
  strokeLinejoin: "round",
5420
5477
  vectorEffect: stretch ? "non-scaling-stroke" : void 0
5421
5478
  }
5422
- ) : values.length === 1 ? /* @__PURE__ */ jsx29("circle", { cx: width / 2, cy: height / 2, r: 2, fill: line }) : null
5479
+ ) : values.length === 1 ? /* @__PURE__ */ jsx30("circle", { cx: width / 2, cy: height / 2, r: 2, fill: line }) : null
5423
5480
  ]
5424
5481
  }
5425
5482
  );
@@ -5565,7 +5622,7 @@ function tableCellValue(props, column, row, index) {
5565
5622
 
5566
5623
  // packages/react/src/table-toolbar.tsx
5567
5624
  import { tokens as tokens29 } from "@kjun-ui/tokens";
5568
- import { Fragment as Fragment12, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
5625
+ import { Fragment as Fragment12, jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
5569
5626
  function TableToolbar({
5570
5627
  selectable,
5571
5628
  selected,
@@ -5590,8 +5647,8 @@ function TableToolbar({
5590
5647
  selected.length,
5591
5648
  "\uAC1C \uC120\uD0DD"
5592
5649
  ] }),
5593
- /* @__PURE__ */ jsx30(KjunButton, { size: "xs", variant: "ghost", onClick: toggleAll, children: "\uC804\uCCB4 \uC120\uD0DD" }),
5594
- /* @__PURE__ */ jsx30(
5650
+ /* @__PURE__ */ jsx31(KjunButton, { size: "xs", variant: "ghost", onClick: toggleAll, children: "\uC804\uCCB4 \uC120\uD0DD" }),
5651
+ /* @__PURE__ */ jsx31(
5595
5652
  KjunButton,
5596
5653
  {
5597
5654
  size: "xs",
@@ -5605,7 +5662,7 @@ function TableToolbar({
5605
5662
  }
5606
5663
  ),
5607
5664
  (searchable || toolbar) && /* @__PURE__ */ jsxs24("div", { className: "kjun-table-toolbar", children: [
5608
- searchable && /* @__PURE__ */ jsx30(
5665
+ searchable && /* @__PURE__ */ jsx31(
5609
5666
  KjunInput,
5610
5667
  {
5611
5668
  size: "sm",
@@ -5637,22 +5694,22 @@ var componentIcons = { minus };
5637
5694
 
5638
5695
  // packages/react/src/table-check.tsx
5639
5696
  import { tokens as tokens30 } from "@kjun-ui/tokens";
5640
- import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
5697
+ import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
5641
5698
  var TableCheck = forwardRef4(
5642
5699
  function TableCheck2(props, ref) {
5643
5700
  const size = tokens30.extensions.checkbox.iconSizes.sm;
5644
- return /* @__PURE__ */ jsx31(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs25("span", { className: "kjun-table-check", children: [
5645
- /* @__PURE__ */ jsx31("input", { ...props, ref, type: "checkbox" }),
5646
- /* @__PURE__ */ jsx31(KjunIcon, { name: "check", size, className: "kjun-table-check-mark" }),
5647
- /* @__PURE__ */ jsx31(KjunIcon, { name: "minus", size, className: "kjun-table-check-dash" })
5701
+ return /* @__PURE__ */ jsx32(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs25("span", { className: "kjun-table-check", children: [
5702
+ /* @__PURE__ */ jsx32("input", { ...props, ref, type: "checkbox" }),
5703
+ /* @__PURE__ */ jsx32(KjunIcon, { name: "check", size, className: "kjun-table-check-mark" }),
5704
+ /* @__PURE__ */ jsx32(KjunIcon, { name: "minus", size, className: "kjun-table-check-dash" })
5648
5705
  ] }) });
5649
5706
  }
5650
5707
  );
5651
5708
 
5652
5709
  // packages/react/src/table-grid.tsx
5653
- import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
5710
+ import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
5654
5711
  function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, sortable, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown }) {
5655
- return /* @__PURE__ */ jsx32("div", { className: "kjun-table-scroll", style: { maxHeight, visibility: skeletonHidden ? "hidden" : void 0 }, "aria-hidden": skeletonHidden || void 0, children: /* @__PURE__ */ jsxs26(
5712
+ return /* @__PURE__ */ jsx33("div", { className: "kjun-table-scroll", style: { maxHeight, visibility: skeletonHidden ? "hidden" : void 0 }, "aria-hidden": skeletonHidden || void 0, children: /* @__PURE__ */ jsxs26(
5656
5713
  "table",
5657
5714
  {
5658
5715
  className: "kjun-table",
@@ -5661,12 +5718,12 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5661
5718
  "data-hoverable": hoverable,
5662
5719
  "data-striped": striped,
5663
5720
  children: [
5664
- /* @__PURE__ */ jsx32(
5721
+ /* @__PURE__ */ jsx33(
5665
5722
  "thead",
5666
5723
  {
5667
5724
  style: stickyHeader ? { position: "sticky", top: 0, zIndex: 2 } : void 0,
5668
5725
  children: /* @__PURE__ */ jsxs26("tr", { children: [
5669
- selectable && /* @__PURE__ */ jsx32("th", { scope: "col", className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(
5726
+ selectable && /* @__PURE__ */ jsx33("th", { scope: "col", className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx33(
5670
5727
  TableCheck,
5671
5728
  {
5672
5729
  "aria-label": "\uC804\uCCB4 \uC120\uD0DD",
@@ -5677,8 +5734,8 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5677
5734
  onChange: state.toggleAll
5678
5735
  }
5679
5736
  ) }),
5680
- expandable && /* @__PURE__ */ jsx32("th", { scope: "col", className: "kjun-table-action-cell" }),
5681
- visible.map((col) => /* @__PURE__ */ jsx32(
5737
+ expandable && /* @__PURE__ */ jsx33("th", { scope: "col", className: "kjun-table-action-cell" }),
5738
+ visible.map((col) => /* @__PURE__ */ jsx33(
5682
5739
  "th",
5683
5740
  {
5684
5741
  scope: "col",
@@ -5692,7 +5749,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5692
5749
  onClick: () => state.sortColumn(col),
5693
5750
  children: [
5694
5751
  col.label,
5695
- state.sort.key === col.key && /* @__PURE__ */ jsx32(
5752
+ state.sort.key === col.key && /* @__PURE__ */ jsx33(
5696
5753
  KjunIcon,
5697
5754
  {
5698
5755
  name: state.sort.order === "asc" ? "sort-ascending" : "sort-descending",
@@ -5708,10 +5765,10 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5708
5765
  ] })
5709
5766
  }
5710
5767
  ),
5711
- /* @__PURE__ */ jsx32("tbody", { children: initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsxs26("tr", { "aria-hidden": "true", children: [
5712
- selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(KjunSkeleton, { type: "block", height: tokens31.table.selectionSize, width: tokens31.table.selectionSize }) }),
5713
- expandable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell" }),
5714
- visible.map((col) => /* @__PURE__ */ jsx32("td", { children: /* @__PURE__ */ jsx32(
5768
+ /* @__PURE__ */ jsx33("tbody", { children: initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsxs26("tr", { "aria-hidden": "true", children: [
5769
+ selectable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx33(KjunSkeleton, { type: "block", height: tokens31.table.selectionSize, width: tokens31.table.selectionSize }) }),
5770
+ expandable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell" }),
5771
+ visible.map((col) => /* @__PURE__ */ jsx33("td", { children: /* @__PURE__ */ jsx33(
5715
5772
  KjunSkeleton,
5716
5773
  {
5717
5774
  type: "block",
@@ -5719,7 +5776,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5719
5776
  width: col.key === "actions" ? tokens31.table.actionColumnWidth : "75%"
5720
5777
  }
5721
5778
  ) }, col.key))
5722
- ] }, i)) : !state.rows.length ? /* @__PURE__ */ jsx32("tr", { children: /* @__PURE__ */ jsx32(
5779
+ ] }, i)) : !state.rows.length ? /* @__PURE__ */ jsx33("tr", { children: /* @__PURE__ */ jsx33(
5723
5780
  "td",
5724
5781
  {
5725
5782
  colSpan: visible.length + Number(selectable) + Number(expandable),
@@ -5736,9 +5793,9 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5736
5793
  "data-selected": state.selectedRow(row) || void 0,
5737
5794
  onClick: () => onRowClick == null ? void 0 : onRowClick(row, i),
5738
5795
  children: [
5739
- selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: checkbox(row, i) }),
5740
- expandable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: expand(row, i) }),
5741
- visible.map((col) => /* @__PURE__ */ jsx32(
5796
+ selectable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: checkbox(row, i) }),
5797
+ expandable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: expand(row, i) }),
5798
+ visible.map((col) => /* @__PURE__ */ jsx33(
5742
5799
  "td",
5743
5800
  {
5744
5801
  style: { textAlign: col.align },
@@ -5751,7 +5808,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5751
5808
  ]
5752
5809
  }
5753
5810
  ),
5754
- expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx32("tr", { className: "kjun-table-expanded", children: /* @__PURE__ */ jsx32(
5811
+ expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx33("tr", { className: "kjun-table-expanded", children: /* @__PURE__ */ jsx33(
5755
5812
  "td",
5756
5813
  {
5757
5814
  colSpan: visible.length + Number(selectable) + 1,
@@ -5765,7 +5822,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5765
5822
  }
5766
5823
 
5767
5824
  // packages/react/src/table-cards.tsx
5768
- import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
5825
+ import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
5769
5826
  function TableCards({
5770
5827
  initialLoading,
5771
5828
  skeletonRows,
@@ -5795,7 +5852,7 @@ function TableCards({
5795
5852
  style: skeletonHidden ? { visibility: "hidden" } : void 0,
5796
5853
  "aria-hidden": skeletonHidden || void 0,
5797
5854
  children: [
5798
- initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsx33("div", { className: "kjun-table-card", children: /* @__PURE__ */ jsx33(KjunSkeleton, { type: "card" }) }, i)) : state.rows.map((row, i) => /* @__PURE__ */ jsxs27(
5855
+ initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsx34("div", { className: "kjun-table-card", children: /* @__PURE__ */ jsx34(KjunSkeleton, { type: "card" }) }, i)) : state.rows.map((row, i) => /* @__PURE__ */ jsxs27(
5799
5856
  "div",
5800
5857
  {
5801
5858
  role: "listitem",
@@ -5807,15 +5864,15 @@ function TableCards({
5807
5864
  /* @__PURE__ */ jsxs27("div", { className: "kjun-table-card-header", children: [
5808
5865
  /* @__PURE__ */ jsxs27("div", { className: "kjun-table-card-header-left", children: [
5809
5866
  selectable && checkbox(row, i),
5810
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-title", children: title && cell(title, row, i) })
5867
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-title", children: title && cell(title, row, i) })
5811
5868
  ] }),
5812
- badges.length ? /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-badges", children: badges.map((col) => /* @__PURE__ */ jsx33("span", { children: cell(col, row, i) }, col.key)) }) : subtitle ? /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-subtitle", children: cell(subtitle, row, i) }) : null,
5813
- inline.length > 0 && /* @__PURE__ */ jsx33(
5869
+ badges.length ? /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-badges", children: badges.map((col) => /* @__PURE__ */ jsx34("span", { children: cell(col, row, i) }, col.key)) }) : subtitle ? /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-subtitle", children: cell(subtitle, row, i) }) : null,
5870
+ inline.length > 0 && /* @__PURE__ */ jsx34(
5814
5871
  "div",
5815
5872
  {
5816
5873
  className: "kjun-table-card-header-actions",
5817
5874
  onClick: (e) => e.stopPropagation(),
5818
- children: inline.map((col) => /* @__PURE__ */ jsx33("span", { children: cell(col, row, i) }, col.key))
5875
+ children: inline.map((col) => /* @__PURE__ */ jsx34("span", { children: cell(col, row, i) }, col.key))
5819
5876
  }
5820
5877
  )
5821
5878
  ] }),
@@ -5826,8 +5883,8 @@ function TableCards({
5826
5883
  {
5827
5884
  className: "kjun-table-card-section",
5828
5885
  children: [
5829
- section.label && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-section-label", children: section.label }),
5830
- /* @__PURE__ */ jsx33(
5886
+ section.label && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-section-label", children: section.label }),
5887
+ /* @__PURE__ */ jsx34(
5831
5888
  "div",
5832
5889
  {
5833
5890
  className: "kjun-table-card-body kjun-table-card-body--" + (section.layout || "grid"),
@@ -5836,8 +5893,8 @@ function TableCards({
5836
5893
  {
5837
5894
  className: "kjun-table-card-field" + (col.fullWidthInCard ? " kjun-table-card-field--full" : "") + (section.labelAlign === "right" ? " kjun-table-card-field--label-right" : ""),
5838
5895
  children: [
5839
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-label", children: col.label }),
5840
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-value", children: cell(col, row, i) })
5896
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-label", children: col.label }),
5897
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-value", children: cell(col, row, i) })
5841
5898
  ]
5842
5899
  },
5843
5900
  col.key
@@ -5849,9 +5906,9 @@ function TableCards({
5849
5906
  section.key || index
5850
5907
  ) : null;
5851
5908
  }),
5852
- expandable && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-expand-toggle", children: expand(row, i) }),
5853
- expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-expand-content", children: renderExpand == null ? void 0 : renderExpand(row, i) }),
5854
- actions && !actions.inlineInCard && /* @__PURE__ */ jsx33(
5909
+ expandable && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-expand-toggle", children: expand(row, i) }),
5910
+ expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-expand-content", children: renderExpand == null ? void 0 : renderExpand(row, i) }),
5911
+ actions && !actions.inlineInCard && /* @__PURE__ */ jsx34(
5855
5912
  "div",
5856
5913
  {
5857
5914
  className: "kjun-table-card-actions",
@@ -5863,7 +5920,7 @@ function TableCards({
5863
5920
  },
5864
5921
  state.key(row, i)
5865
5922
  )),
5866
- !initialLoading && !state.rows.length && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-empty", children: emptyContent || emptyText })
5923
+ !initialLoading && !state.rows.length && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-empty", children: emptyContent || emptyText })
5867
5924
  ]
5868
5925
  }
5869
5926
  );
@@ -5872,7 +5929,7 @@ function TableCards({
5872
5929
  // packages/react/src/table-view.tsx
5873
5930
  import { useEffect as useEffect18, useState as useState26 } from "react";
5874
5931
  import { isComposingKey as isComposingKey4, tokens as tokens32 } from "@kjun-ui/tokens";
5875
- import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
5932
+ import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
5876
5933
  function KjunTable(props) {
5877
5934
  const {
5878
5935
  skeletonRows = 8,
@@ -5912,7 +5969,7 @@ function KjunTable(props) {
5912
5969
  const { card, visible } = layout;
5913
5970
  const cell = (col, row, index) => {
5914
5971
  const { value, body } = tableCellValue(props, col, row, index);
5915
- return col.pill ? /* @__PURE__ */ jsx34(
5972
+ return col.pill ? /* @__PURE__ */ jsx35(
5916
5973
  "span",
5917
5974
  {
5918
5975
  className: "kjun-table-pill " + (Number(value) > 0 ? "kjun-table-pill-up" : Number(value) < 0 ? "kjun-table-pill-down" : ""),
@@ -5928,7 +5985,7 @@ function KjunTable(props) {
5928
5985
  onRowClick(row, index);
5929
5986
  }
5930
5987
  };
5931
- const checkbox = (row, i) => /* @__PURE__ */ jsx34(
5988
+ const checkbox = (row, i) => /* @__PURE__ */ jsx35(
5932
5989
  TableCheck,
5933
5990
  {
5934
5991
  "aria-label": `\uD589 \uC120\uD0DD ${i + 1}`,
@@ -5937,7 +5994,7 @@ function KjunTable(props) {
5937
5994
  onChange: () => state.toggleRow(row)
5938
5995
  }
5939
5996
  );
5940
- const expand = (row, i) => /* @__PURE__ */ jsx34(
5997
+ const expand = (row, i) => /* @__PURE__ */ jsx35(
5941
5998
  KjunButton,
5942
5999
  {
5943
6000
  variant: "ghost",
@@ -5956,7 +6013,7 @@ function KjunTable(props) {
5956
6013
  "aria-busy": !!props.loading,
5957
6014
  ref: domainColorRef(!query2.initialLoading && state.rows.length > 0 && props.columns.some((column) => column.pill)),
5958
6015
  children: [
5959
- /* @__PURE__ */ jsx34(
6016
+ /* @__PURE__ */ jsx35(
5960
6017
  TableToolbar,
5961
6018
  {
5962
6019
  ...{ selectable, selected, renderSelectionToolbar, searchable, searchPlaceholder, toolbar },
@@ -5983,8 +6040,8 @@ function KjunTable(props) {
5983
6040
  loadingText,
5984
6041
  loadingDelay: skeleton ? 0 : loadingDelay,
5985
6042
  children: [
5986
- card ? /* @__PURE__ */ jsx34(TableCards, { ...{ initialLoading: query2.initialLoading, skeletonRows, skeletonHidden: query2.initialLoading && !revealed, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, layout, ariaLabel, customClass, rowKeyDown } }) : /* @__PURE__ */ jsx34(TableGrid, { ...{ initialLoading: query2.initialLoading, skeletonRows, skeletonHidden: query2.initialLoading && !revealed, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown }, sortable: props.sortable }),
5987
- pagination && /* @__PURE__ */ jsx34(
6043
+ card ? /* @__PURE__ */ jsx35(TableCards, { ...{ initialLoading: query2.initialLoading, skeletonRows, skeletonHidden: query2.initialLoading && !revealed, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, layout, ariaLabel, customClass, rowKeyDown } }) : /* @__PURE__ */ jsx35(TableGrid, { ...{ initialLoading: query2.initialLoading, skeletonRows, skeletonHidden: query2.initialLoading && !revealed, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown }, sortable: props.sortable }),
6044
+ pagination && /* @__PURE__ */ jsx35(
5988
6045
  KjunPagination,
5989
6046
  {
5990
6047
  currentPage: pagination.page,
@@ -6007,7 +6064,7 @@ function KjunTable(props) {
6007
6064
 
6008
6065
  // packages/react/src/kpi.tsx
6009
6066
  import { tokens as tokens33 } from "@kjun-ui/tokens";
6010
- import { Fragment as Fragment14, jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
6067
+ import { Fragment as Fragment14, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
6011
6068
  var kpiFormat = (item, value = item.value) => {
6012
6069
  var _a, _b;
6013
6070
  return typeof value === "string" ? value : item.formatter ? item.formatter(value) : (item.showSign && value > 0 ? "+" : item.semantic === "price" && value < 0 ? "\u2212" : "") + new Intl.NumberFormat(void 0, {
@@ -6041,12 +6098,12 @@ function KjunKpiHero(props) {
6041
6098
  );
6042
6099
  const delta = (v, kind) => deltaFormatter ? deltaFormatter(v, kind) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6043
6100
  v > 0 ? "+" : v < 0 ? "\u2212" : "",
6044
- kind === "absolute" && prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
6101
+ kind === "absolute" && prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
6045
6102
  new Intl.NumberFormat(void 0, {
6046
6103
  minimumFractionDigits: kind === "absolute" ? decimals : 1,
6047
6104
  maximumFractionDigits: kind === "absolute" ? decimals : 1
6048
6105
  }).format(Math.abs(v)),
6049
- kind === "percent" && /* @__PURE__ */ jsx35("span", { className: "kjun-number-affix", "data-side": "suffix", children: "%" })
6106
+ kind === "percent" && /* @__PURE__ */ jsx36("span", { className: "kjun-number-affix", "data-side": "suffix", children: "%" })
6050
6107
  ] });
6051
6108
  return /* @__PURE__ */ jsxs29(
6052
6109
  "div",
@@ -6058,10 +6115,10 @@ function KjunKpiHero(props) {
6058
6115
  children: [
6059
6116
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__layout", children: [
6060
6117
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__main", children: [
6061
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__label", children: label }),
6062
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6063
- prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__affix", children: prefix }),
6064
- /* @__PURE__ */ jsx35(
6118
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__label", children: label }),
6119
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6120
+ prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__affix", children: prefix }),
6121
+ /* @__PURE__ */ jsx36(
6065
6122
  KjunAnimatedNumber,
6066
6123
  {
6067
6124
  value,
@@ -6070,13 +6127,13 @@ function KjunKpiHero(props) {
6070
6127
  formatter
6071
6128
  }
6072
6129
  ),
6073
- suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__affix", children: suffix })
6130
+ suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__affix", children: suffix })
6074
6131
  ] }) }),
6075
- showDelta && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__delta-line", children: loading ? (
6132
+ showDelta && /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__delta-line", children: loading ? (
6076
6133
  // The placeholder takes the delta numbers' line height, like Vue, so the hero keeps its loaded height.
6077
- /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: tokens33.extensions.kpiHero.deltaSkeletonWidth }) })
6134
+ /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: tokens33.extensions.kpiHero.deltaSkeletonWidth }) })
6078
6135
  ) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6079
- deltaAbsolute !== null && /* @__PURE__ */ jsx35(
6136
+ deltaAbsolute !== null && /* @__PURE__ */ jsx36(
6080
6137
  "span",
6081
6138
  {
6082
6139
  className: "kjun-kpi-hero__delta-abs",
@@ -6090,7 +6147,7 @@ function KjunKpiHero(props) {
6090
6147
  children: delta(deltaAbsolute, "absolute")
6091
6148
  }
6092
6149
  ),
6093
- deltaPercent !== null && /* @__PURE__ */ jsx35(
6150
+ deltaPercent !== null && /* @__PURE__ */ jsx36(
6094
6151
  "span",
6095
6152
  {
6096
6153
  className: "kjun-kpi-hero__delta-pct",
@@ -6100,31 +6157,31 @@ function KjunKpiHero(props) {
6100
6157
  children: delta(deltaPercent, "percent")
6101
6158
  }
6102
6159
  ),
6103
- deltaDescription && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-desc", children: deltaDescription })
6160
+ deltaDescription && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__delta-desc", children: deltaDescription })
6104
6161
  ] }) })
6105
6162
  ] }),
6106
- aside && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__aside", children: aside })
6163
+ aside && /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__aside", children: aside })
6107
6164
  ] }),
6108
- secondary.length > 0 && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__secondary", children: secondary.map((item, i) => /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__sec-item", children: [
6109
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__sec-label", children: item.label }),
6110
- /* @__PURE__ */ jsx35(
6165
+ secondary.length > 0 && /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__secondary", children: secondary.map((item, i) => /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__sec-item", children: [
6166
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__sec-label", children: item.label }),
6167
+ /* @__PURE__ */ jsx36(
6111
6168
  "div",
6112
6169
  {
6113
6170
  className: "kjun-kpi-hero__sec-value",
6114
6171
  style: { color: kpiColor(item.value, item.semantic) },
6115
- children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderSecondary == null ? void 0 : renderSecondary(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6116
- item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.prefix }),
6117
- /* @__PURE__ */ jsx35("span", { children: kpiFormat(item) }),
6118
- item.suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.suffix })
6172
+ children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderSecondary == null ? void 0 : renderSecondary(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6173
+ item.prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__sec-affix", children: item.prefix }),
6174
+ /* @__PURE__ */ jsx36("span", { children: kpiFormat(item) }),
6175
+ item.suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__sec-affix", children: item.suffix })
6119
6176
  ] })
6120
6177
  }
6121
6178
  ),
6122
- item.desc && /* @__PURE__ */ jsx35(
6179
+ item.desc && /* @__PURE__ */ jsx36(
6123
6180
  "div",
6124
6181
  {
6125
6182
  className: "kjun-kpi-hero__sec-desc " + (item.descClass || ""),
6126
6183
  style: { color: "var(--_kjun-color-text-tertiary)" },
6127
- children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", width: "7ch", height: "1lh" }) : item.desc
6184
+ children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", width: "7ch", height: "1lh" }) : item.desc
6128
6185
  }
6129
6186
  )
6130
6187
  ] }, i)) })
@@ -6163,7 +6220,7 @@ function KjunKpiRow({
6163
6220
  background: `var(--_kjun-color-${v === "neutral" ? "secondary" : v === "info" ? "info-bg" : v + "-bg"})`
6164
6221
  },
6165
6222
  children: [
6166
- dot && /* @__PURE__ */ jsx35(
6223
+ dot && /* @__PURE__ */ jsx36(
6167
6224
  "span",
6168
6225
  {
6169
6226
  className: "kjun-kpi-row__badge-dot",
@@ -6175,7 +6232,7 @@ function KjunKpiRow({
6175
6232
  }
6176
6233
  );
6177
6234
  };
6178
- return /* @__PURE__ */ jsx35(
6235
+ return /* @__PURE__ */ jsx36(
6179
6236
  "div",
6180
6237
  {
6181
6238
  className: "kjun-kpi-row" + (size === "sm" ? " kjun-kpi-row--sm" : "") + (((_a = items[0]) == null ? void 0 : _a.mobileFull) ? " kjun-kpi-row--hero-first" : "") + (mobileSummary && size !== "sm" ? " kjun-kpi-row--mobile-summary" : ""),
@@ -6206,11 +6263,11 @@ function KjunKpiRow({
6206
6263
  },
6207
6264
  children: [
6208
6265
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__label-row", children: [
6209
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-row__label", children: busy && !item.label ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", width: tokens33.extensions.kpiRow.labelSkeletonWidth, height: tokens33.extensions.kpiRow.labelSkeletonHeight }) : item.label }),
6266
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-row__label", children: busy && !item.label ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", width: tokens33.extensions.kpiRow.labelSkeletonWidth, height: tokens33.extensions.kpiRow.labelSkeletonHeight }) : item.label }),
6210
6267
  !busy && item.badgePlacement !== "value" && badge(item)
6211
6268
  ] }),
6212
6269
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__value-row", children: [
6213
- /* @__PURE__ */ jsx35(
6270
+ /* @__PURE__ */ jsx36(
6214
6271
  "div",
6215
6272
  {
6216
6273
  className: "kjun-kpi-row__value " + (item.valueClass || "") + (item.valueKind === "text" ? " kjun-kpi-row__value--text" : "") + (item.mobileNeutral ? " kjun-kpi-row__value--mobile-neutral" : ""),
@@ -6223,14 +6280,14 @@ function KjunKpiRow({
6223
6280
  {
6224
6281
  className: (seg.class || "") + (seg.label ? " kjun-kpi-row__segment--labeled" : "") + (seg.separator ? " kjun-kpi-row__segment--separator" : ""),
6225
6282
  children: [
6226
- seg.label && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__segment-label", children: seg.label }),
6227
- busy && !seg.separator ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "3ch" }) : seg.text
6283
+ seg.label && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__segment-label", children: seg.label }),
6284
+ busy && !seg.separator ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "3ch" }) : seg.text
6228
6285
  ]
6229
6286
  },
6230
6287
  j
6231
- )) : busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderValue == null ? void 0 : renderValue(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6232
- item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__affix", children: item.prefix }),
6233
- item.animated && typeof item.value === "number" ? /* @__PURE__ */ jsx35(
6288
+ )) : busy ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderValue == null ? void 0 : renderValue(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6289
+ item.prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__affix", children: item.prefix }),
6290
+ item.animated && typeof item.value === "number" ? /* @__PURE__ */ jsx36(
6234
6291
  KjunAnimatedNumber,
6235
6292
  {
6236
6293
  fromPrevious: true,
@@ -6238,20 +6295,20 @@ function KjunKpiRow({
6238
6295
  formatter: (v) => kpiFormat(item, v)
6239
6296
  }
6240
6297
  ) : kpiFormat(item),
6241
- item.suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__affix", children: item.suffix })
6298
+ item.suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__affix", children: item.suffix })
6242
6299
  ] })
6243
6300
  }
6244
6301
  ),
6245
6302
  !busy && item.badgePlacement === "value" && badge(item)
6246
6303
  ] }),
6247
- item.desc && /* @__PURE__ */ jsx35(
6304
+ item.desc && /* @__PURE__ */ jsx36(
6248
6305
  "div",
6249
6306
  {
6250
6307
  className: "kjun-kpi-row__desc " + (item.descClass || ""),
6251
6308
  style: {
6252
6309
  color: item.descClass ? void 0 : kpiColor(item.value, item.semantic, "text-secondary")
6253
6310
  },
6254
- children: busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : item.desc
6311
+ children: busy ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : item.desc
6255
6312
  }
6256
6313
  )
6257
6314
  ]
@@ -6329,7 +6386,7 @@ function useMarketCards(props) {
6329
6386
  }
6330
6387
 
6331
6388
  // packages/react/src/market-parts.tsx
6332
- import { Fragment as Fragment15, jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
6389
+ import { Fragment as Fragment15, jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
6333
6390
  function MarketIdentity({
6334
6391
  row,
6335
6392
  props
@@ -6340,15 +6397,15 @@ function MarketIdentity({
6340
6397
  (_e = props.renderNamePrefix) == null ? void 0 : _e.call(props, row),
6341
6398
  /* @__PURE__ */ jsxs30("div", { className: "kjun-market-identity-text", children: [
6342
6399
  /* @__PURE__ */ jsxs30("div", { className: "kjun-market-name", children: [
6343
- /* @__PURE__ */ jsx36("span", { title: label, children: label }),
6344
- ((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "interest", size: "sm", active: true }),
6345
- ((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "favorite", size: "sm", active: true }),
6400
+ /* @__PURE__ */ jsx37("span", { title: label, children: label }),
6401
+ ((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx37(KjunCollectionMark, { kind: "interest", size: "sm", active: true }),
6402
+ ((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx37(KjunCollectionMark, { kind: "favorite", size: "sm", active: true }),
6346
6403
  (_h = props.renderNameSuffix) == null ? void 0 : _h.call(props, row)
6347
6404
  ] }),
6348
- (meta || props.renderSubMeta) && /* @__PURE__ */ jsx36("div", { className: "kjun-market-meta", children: ((_i = props.renderSubMeta) == null ? void 0 : _i.call(props, row)) || meta })
6405
+ (meta || props.renderSubMeta) && /* @__PURE__ */ jsx37("div", { className: "kjun-market-meta", children: ((_i = props.renderSubMeta) == null ? void 0 : _i.call(props, row)) || meta })
6349
6406
  ] })
6350
6407
  ] });
6351
- return /* @__PURE__ */ jsx36("div", { className: "kjun-market-identity", children: ((_j = props.renderIdentity) == null ? void 0 : _j.call(props, row, body)) || body });
6408
+ return /* @__PURE__ */ jsx37("div", { className: "kjun-market-identity", children: ((_j = props.renderIdentity) == null ? void 0 : _j.call(props, row, body)) || body });
6352
6409
  }
6353
6410
  function MarketFooter({
6354
6411
  props
@@ -6364,7 +6421,7 @@ function MarketFooter({
6364
6421
  unitLabel = "\uAC1C"
6365
6422
  } = props;
6366
6423
  return /* @__PURE__ */ jsxs30(Fragment15, { children: [
6367
- pagination && /* @__PURE__ */ jsx36(
6424
+ pagination && /* @__PURE__ */ jsx37(
6368
6425
  KjunPagination,
6369
6426
  {
6370
6427
  currentPage: pagination.page,
@@ -6377,7 +6434,7 @@ function MarketFooter({
6377
6434
  ),
6378
6435
  " ",
6379
6436
  showFooter && !state.initialLoading && rows.length > 0 && /* @__PURE__ */ jsxs30("div", { className: "kjun-market-footer", children: [
6380
- /* @__PURE__ */ jsx36("span", { children: calculatedAt ? "\uB9C8\uC9C0\uB9C9 \uC5C5\uB370\uC774\uD2B8: " + (((_a = props.formatDate) == null ? void 0 : _a.call(props, calculatedAt)) || calculatedAt) : footerNote }),
6437
+ /* @__PURE__ */ jsx37("span", { children: calculatedAt ? "\uB9C8\uC9C0\uB9C9 \uC5C5\uB370\uC774\uD2B8: " + (((_a = props.formatDate) == null ? void 0 : _a.call(props, calculatedAt)) || calculatedAt) : footerNote }),
6381
6438
  /* @__PURE__ */ jsxs30("span", { children: [
6382
6439
  "\uCD1D ",
6383
6440
  totalCount,
@@ -6388,7 +6445,7 @@ function MarketFooter({
6388
6445
  }
6389
6446
 
6390
6447
  // packages/react/src/market-cards.tsx
6391
- import { Fragment as Fragment16, jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
6448
+ import { Fragment as Fragment16, jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
6392
6449
  function KjunMarketCards(props) {
6393
6450
  const {
6394
6451
  rows = [],
@@ -6414,7 +6471,7 @@ function KjunMarketCards(props) {
6414
6471
  }) : value == null ? "-" : String(value);
6415
6472
  };
6416
6473
  return /* @__PURE__ */ jsxs31("div", { className: "kjun-market-cards", children: [
6417
- /* @__PURE__ */ jsx37("div", { className: "kjun-metric-pills", role: "group", "aria-label": "\uD45C\uC2DC \uC9C0\uD45C", children: state.pills.map((pill) => /* @__PURE__ */ jsxs31(
6474
+ /* @__PURE__ */ jsx38("div", { className: "kjun-metric-pills", role: "group", "aria-label": "\uD45C\uC2DC \uC9C0\uD45C", children: state.pills.map((pill) => /* @__PURE__ */ jsxs31(
6418
6475
  "button",
6419
6476
  {
6420
6477
  type: "button",
@@ -6429,7 +6486,7 @@ function KjunMarketCards(props) {
6429
6486
  },
6430
6487
  children: [
6431
6488
  pill.label,
6432
- state.key === pill.key && pill.sortKey && (emitSortOnMount || pill.sortKey === sortKey) && /* @__PURE__ */ jsx37("span", { children: sortOrder === "desc" ? "\u2193" : "\u2191" })
6489
+ state.key === pill.key && pill.sortKey && (emitSortOnMount || pill.sortKey === sortKey) && /* @__PURE__ */ jsx38("span", { children: sortOrder === "desc" ? "\u2193" : "\u2191" })
6433
6490
  ]
6434
6491
  },
6435
6492
  pill.key
@@ -6439,16 +6496,16 @@ function KjunMarketCards(props) {
6439
6496
  selectedPill: state.pill,
6440
6497
  metricDisplay: display
6441
6498
  }) : /* @__PURE__ */ jsxs31(Fragment16, { children: [
6442
- /* @__PURE__ */ jsx37(
6499
+ /* @__PURE__ */ jsx38(
6443
6500
  KjunDataState,
6444
6501
  {
6445
6502
  ...props,
6446
6503
  loadingPadding: "none",
6447
6504
  empty: !rows.length,
6448
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx37(KjunListSkeleton, { variant: "compact" }),
6449
- emptyContent: /* @__PURE__ */ jsx37(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6505
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx38(KjunListSkeleton, { variant: "compact" }),
6506
+ emptyContent: /* @__PURE__ */ jsx38(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6450
6507
  children: /* @__PURE__ */ jsxs31("div", { children: [
6451
- state.pill && /* @__PURE__ */ jsx37("div", { className: "kjun-market-column-label", children: state.pill.label }),
6508
+ state.pill && /* @__PURE__ */ jsx38("div", { className: "kjun-market-column-label", children: state.pill.label }),
6452
6509
  rows.map((row, i) => {
6453
6510
  var _a, _b, _c;
6454
6511
  return /* @__PURE__ */ jsxs31(
@@ -6469,15 +6526,15 @@ function KjunMarketCards(props) {
6469
6526
  }
6470
6527
  },
6471
6528
  children: [
6472
- /* @__PURE__ */ jsx37(MarketIdentity, { row, props }),
6473
- /* @__PURE__ */ jsx37("div", { className: "kjun-market-quote", children: ((_b = state.pill) == null ? void 0 : _b.format) === "sparkline" ? /* @__PURE__ */ jsx37(
6529
+ /* @__PURE__ */ jsx38(MarketIdentity, { row, props }),
6530
+ /* @__PURE__ */ jsx38("div", { className: "kjun-market-quote", children: ((_b = state.pill) == null ? void 0 : _b.format) === "sparkline" ? /* @__PURE__ */ jsx38(
6474
6531
  KjunSparkline,
6475
6532
  {
6476
6533
  data: getValue(row, state.key) || [],
6477
6534
  width: tokens34.extensions.marketTable.sparklineWidth,
6478
6535
  height: tokens34.extensions.marketTable.sparklineHeight
6479
6536
  }
6480
- ) : state.pill ? /* @__PURE__ */ jsx37(Fragment16, { children: metricLoading(row, state.key) ? /* @__PURE__ */ jsx37(KjunSkeleton, { type: "block", height: tokens34.extensions.marketTable.valueSkeletonHeight, width: tokens34.extensions.marketTable.valueSkeletonWidth }) : isChange && getValue(row, state.key) != null ? /* @__PURE__ */ jsx37(
6537
+ ) : state.pill ? /* @__PURE__ */ jsx38(Fragment16, { children: metricLoading(row, state.key) ? /* @__PURE__ */ jsx38(KjunSkeleton, { type: "block", height: tokens34.extensions.marketTable.valueSkeletonHeight, width: tokens34.extensions.marketTable.valueSkeletonWidth }) : isChange && getValue(row, state.key) != null ? /* @__PURE__ */ jsx38(
6481
6538
  KjunSignedValue,
6482
6539
  {
6483
6540
  value: finiteNumber(getValue(row, state.key)),
@@ -6485,7 +6542,7 @@ function KjunMarketCards(props) {
6485
6542
  stale: !!getValue(row, "stale"),
6486
6543
  tone: "pill"
6487
6544
  }
6488
- ) : isPrice && getValue(row, state.key) == null ? /* @__PURE__ */ jsx37(KjunSkeleton, { type: "block", height: tokens34.extensions.financial.priceSkeletonHeight, width: tokens34.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs31("div", { className: "kjun-market-metric", children: [
6545
+ ) : isPrice && getValue(row, state.key) == null ? /* @__PURE__ */ jsx38(KjunSkeleton, { type: "block", height: tokens34.extensions.financial.priceSkeletonHeight, width: tokens34.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs31("div", { className: "kjun-market-metric", children: [
6489
6546
  (_c = props.renderMetricPrefix) == null ? void 0 : _c.call(
6490
6547
  props,
6491
6548
  row,
@@ -6502,14 +6559,14 @@ function KjunMarketCards(props) {
6502
6559
  ] })
6503
6560
  }
6504
6561
  ),
6505
- /* @__PURE__ */ jsx37(MarketFooter, { props })
6562
+ /* @__PURE__ */ jsx38(MarketFooter, { props })
6506
6563
  ] })
6507
6564
  ] });
6508
6565
  }
6509
6566
 
6510
6567
  // packages/react/src/market-list.tsx
6511
6568
  import { tokens as tokens35 } from "@kjun-ui/tokens";
6512
- import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
6569
+ import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
6513
6570
  function KjunMarketSimpleList(props) {
6514
6571
  const {
6515
6572
  rows = [],
@@ -6523,16 +6580,16 @@ function KjunMarketSimpleList(props) {
6523
6580
  emptySubMessage = ""
6524
6581
  } = props;
6525
6582
  return /* @__PURE__ */ jsxs32("div", { className: "kjun-market-simple-list", children: [
6526
- /* @__PURE__ */ jsx38(
6583
+ /* @__PURE__ */ jsx39(
6527
6584
  KjunDataState,
6528
6585
  {
6529
6586
  ...props,
6530
6587
  loadingPadding: "none",
6531
6588
  empty: !rows.length,
6532
6589
  emptyText: emptyMessage,
6533
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx38(KjunListSkeleton, {}),
6534
- emptyContent: /* @__PURE__ */ jsx38(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6535
- children: /* @__PURE__ */ jsx38("div", { children: rows.map((row, i) => {
6590
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx39(KjunListSkeleton, {}),
6591
+ emptyContent: /* @__PURE__ */ jsx39(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6592
+ children: /* @__PURE__ */ jsx39("div", { children: rows.map((row, i) => {
6536
6593
  var _a, _b;
6537
6594
  const price = priceValue(row), change = changeValue(row), stale = !!getValue(row, "stale"), source = String(getValue(row, "source") || ""), fetchedAt = String(getValue(row, "fetched_at") || "");
6538
6595
  return /* @__PURE__ */ jsxs32(
@@ -6553,9 +6610,9 @@ function KjunMarketSimpleList(props) {
6553
6610
  }
6554
6611
  },
6555
6612
  children: [
6556
- /* @__PURE__ */ jsx38(MarketIdentity, { row, props }),
6613
+ /* @__PURE__ */ jsx39(MarketIdentity, { row, props }),
6557
6614
  /* @__PURE__ */ jsxs32("div", { className: "kjun-market-quote", children: [
6558
- /* @__PURE__ */ jsx38("div", { className: "kjun-market-price", children: /* @__PURE__ */ jsx38(
6615
+ /* @__PURE__ */ jsx39("div", { className: "kjun-market-price", children: /* @__PURE__ */ jsx39(
6559
6616
  KjunPriceCell,
6560
6617
  {
6561
6618
  value: price,
@@ -6566,7 +6623,7 @@ function KjunMarketSimpleList(props) {
6566
6623
  ) }),
6567
6624
  /* @__PURE__ */ jsxs32("div", { className: "kjun-market-change", children: [
6568
6625
  price !== null && ((_b = props.renderPricePrefix) == null ? void 0 : _b.call(props, row)),
6569
- (finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx38(KjunBadge, { variant: "secondary", size: "xs", children: "\uC885\uAC00" }) : /* @__PURE__ */ jsx38(
6626
+ (finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx39(KjunBadge, { variant: "secondary", size: "xs", children: "\uC885\uAC00" }) : /* @__PURE__ */ jsx39(
6570
6627
  KjunFreshness,
6571
6628
  {
6572
6629
  stale,
@@ -6574,7 +6631,7 @@ function KjunMarketSimpleList(props) {
6574
6631
  fetchedAt
6575
6632
  }
6576
6633
  )),
6577
- changeLoading(row) ? /* @__PURE__ */ jsx38(KjunSkeleton, { type: "block", height: tokens35.extensions.marketList.changeSkeletonHeight, width: tokens35.extensions.marketList.changeSkeletonWidth }) : change !== null ? /* @__PURE__ */ jsx38(
6634
+ changeLoading(row) ? /* @__PURE__ */ jsx39(KjunSkeleton, { type: "block", height: tokens35.extensions.marketList.changeSkeletonHeight, width: tokens35.extensions.marketList.changeSkeletonWidth }) : change !== null ? /* @__PURE__ */ jsx39(
6578
6635
  KjunSignedValue,
6579
6636
  {
6580
6637
  value: change,
@@ -6583,7 +6640,7 @@ function KjunMarketSimpleList(props) {
6583
6640
  format: "percent",
6584
6641
  isRaw: true
6585
6642
  }
6586
- ) : /* @__PURE__ */ jsx38("span", { children: "-" })
6643
+ ) : /* @__PURE__ */ jsx39("span", { children: "-" })
6587
6644
  ] })
6588
6645
  ] })
6589
6646
  ]
@@ -6593,20 +6650,20 @@ function KjunMarketSimpleList(props) {
6593
6650
  }) })
6594
6651
  }
6595
6652
  ),
6596
- /* @__PURE__ */ jsx38(MarketFooter, { props })
6653
+ /* @__PURE__ */ jsx39(MarketFooter, { props })
6597
6654
  ] });
6598
6655
  }
6599
6656
 
6600
6657
  // packages/react/src/market-panel.tsx
6601
6658
  import { tokens as tokens36 } from "@kjun-ui/tokens";
6602
- import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
6659
+ import { jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
6603
6660
  function KjunMarketListPanel({
6604
6661
  controls,
6605
6662
  children
6606
6663
  }) {
6607
6664
  return /* @__PURE__ */ jsxs33(KjunCard, { children: [
6608
- /* @__PURE__ */ jsx39("div", { children: controls }),
6609
- /* @__PURE__ */ jsx39("div", { style: { marginTop: tokens36.dimension.value16, borderTop: `${tokens36.border.defaultWidth}px solid var(--_kjun-color-border)` }, children })
6665
+ /* @__PURE__ */ jsx40("div", { children: controls }),
6666
+ /* @__PURE__ */ jsx40("div", { style: { marginTop: tokens36.dimension.value16, borderTop: `${tokens36.border.defaultWidth}px solid var(--_kjun-color-border)` }, children })
6610
6667
  ] });
6611
6668
  }
6612
6669
 
@@ -6629,7 +6686,7 @@ function watchTrailingOverflow(element, onChange) {
6629
6686
 
6630
6687
  // packages/react/src/market-table.tsx
6631
6688
  import { useEffect as useEffect20, useRef as useRef27, useState as useState28 } from "react";
6632
- import { jsx as jsx40, jsxs as jsxs34 } from "react/jsx-runtime";
6689
+ import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
6633
6690
  function KjunMarketTable(props) {
6634
6691
  const {
6635
6692
  rows = [],
@@ -6654,12 +6711,12 @@ function KjunMarketTable(props) {
6654
6711
  const render = (row, col) => {
6655
6712
  const value = getValue(row, col.key), stale = !!getValue(row, "stale");
6656
6713
  if (cellLoading(row, col))
6657
- return /* @__PURE__ */ jsx40(KjunSkeleton, { type: "block", height: tokens37.extensions.marketTable.valueSkeletonHeight, width: tokens37.extensions.marketTable.valueSkeletonWidth });
6714
+ return /* @__PURE__ */ jsx41(KjunSkeleton, { type: "block", height: tokens37.extensions.marketTable.valueSkeletonHeight, width: tokens37.extensions.marketTable.valueSkeletonWidth });
6658
6715
  if (renderCell) return renderCell(row, col);
6659
6716
  if (["stock_name", "name", "symbol"].includes(col.key))
6660
- return /* @__PURE__ */ jsx40(MarketIdentity, { row, props });
6717
+ return /* @__PURE__ */ jsx41(MarketIdentity, { row, props });
6661
6718
  if (col.type === "sparkline")
6662
- return /* @__PURE__ */ jsx40(
6719
+ return /* @__PURE__ */ jsx41(
6663
6720
  KjunSparkline,
6664
6721
  {
6665
6722
  data: Array.isArray(value) ? value : [],
@@ -6668,7 +6725,7 @@ function KjunMarketTable(props) {
6668
6725
  }
6669
6726
  );
6670
6727
  if (col.type === "price")
6671
- return /* @__PURE__ */ jsx40(
6728
+ return /* @__PURE__ */ jsx41(
6672
6729
  KjunPriceCell,
6673
6730
  {
6674
6731
  value: finiteNumber(value),
@@ -6678,7 +6735,7 @@ function KjunMarketTable(props) {
6678
6735
  }
6679
6736
  );
6680
6737
  if (col.type === "percent")
6681
- return value == null ? "-" : /* @__PURE__ */ jsx40(
6738
+ return value == null ? "-" : /* @__PURE__ */ jsx41(
6682
6739
  KjunSignedValue,
6683
6740
  {
6684
6741
  value: finiteNumber(value),
@@ -6694,7 +6751,7 @@ function KjunMarketTable(props) {
6694
6751
  }
6695
6752
  );
6696
6753
  const text = formatMetric ? formatMetric(value, col.type || "text", { currency, row, column: col }) : value == null ? "-" : String(value);
6697
- return ["investor", "net_amount", "net_volume"].includes(col.type || "") ? /* @__PURE__ */ jsx40(
6754
+ return ["investor", "net_amount", "net_volume"].includes(col.type || "") ? /* @__PURE__ */ jsx41(
6698
6755
  KjunSignedValue,
6699
6756
  {
6700
6757
  value: finiteNumber(value),
@@ -6711,23 +6768,23 @@ function KjunMarketTable(props) {
6711
6768
  "data-embedded": embedded,
6712
6769
  ref: domainColorRef(showActions && rows.length > 0 && !props.loading),
6713
6770
  children: [
6714
- /* @__PURE__ */ jsx40(
6771
+ /* @__PURE__ */ jsx41(
6715
6772
  KjunDataState,
6716
6773
  {
6717
6774
  ...props,
6718
6775
  loadingPadding: "none",
6719
6776
  empty: !rows.length,
6720
6777
  emptyText: emptyMessage,
6721
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx40(KjunMarketTableSkeleton, { columns, showActions }),
6722
- emptyContent: /* @__PURE__ */ jsx40(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6723
- children: /* @__PURE__ */ jsx40("div", { className: "kjun-table-scroll", ref: scroller, "data-fade-end": fadeEnd || void 0, children: /* @__PURE__ */ jsxs34("table", { "aria-label": "\uC2DC\uC7A5 \uB370\uC774\uD130", className: "kjun-market-table-grid", style: webMarketLayout(columns, showActions).tableStyle, children: [
6724
- /* @__PURE__ */ jsx40(MarketColumns, { columns, showActions }),
6725
- /* @__PURE__ */ jsx40("thead", { children: /* @__PURE__ */ jsxs34("tr", { children: [
6778
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx41(KjunMarketTableSkeleton, { columns, showActions }),
6779
+ emptyContent: /* @__PURE__ */ jsx41(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6780
+ children: /* @__PURE__ */ jsx41("div", { className: "kjun-table-scroll", ref: scroller, "data-fade-end": fadeEnd || void 0, children: /* @__PURE__ */ jsxs34("table", { "aria-label": "\uC2DC\uC7A5 \uB370\uC774\uD130", className: "kjun-market-table-grid", style: webMarketLayout(columns, showActions).tableStyle, children: [
6781
+ /* @__PURE__ */ jsx41(MarketColumns, { columns, showActions }),
6782
+ /* @__PURE__ */ jsx41("thead", { children: /* @__PURE__ */ jsxs34("tr", { children: [
6726
6783
  showActions && /* @__PURE__ */ jsxs34("th", { className: "kjun-market-actions", children: [
6727
- /* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "interest", size: "md" }) }),
6728
- /* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "favorite", size: "md" }) })
6784
+ /* @__PURE__ */ jsx41("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx41(KjunCollectionMark, { kind: "interest", size: "md" }) }),
6785
+ /* @__PURE__ */ jsx41("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx41(KjunCollectionMark, { kind: "favorite", size: "md" }) })
6729
6786
  ] }),
6730
- columns.map((col) => /* @__PURE__ */ jsx40(
6787
+ columns.map((col) => /* @__PURE__ */ jsx41(
6731
6788
  "th",
6732
6789
  {
6733
6790
  style: { textAlign: col.align },
@@ -6742,7 +6799,7 @@ function KjunMarketTable(props) {
6742
6799
  },
6743
6800
  children: [
6744
6801
  col.label,
6745
- /* @__PURE__ */ jsx40(
6802
+ /* @__PURE__ */ jsx41(
6746
6803
  KjunIcon,
6747
6804
  {
6748
6805
  name: sortKey === col.key ? sortOrder === "asc" ? "sort-ascending" : "sort-descending" : "arrows-sort",
@@ -6756,7 +6813,7 @@ function KjunMarketTable(props) {
6756
6813
  col.key
6757
6814
  ))
6758
6815
  ] }) }),
6759
- /* @__PURE__ */ jsx40("tbody", { children: rows.map((row, i) => {
6816
+ /* @__PURE__ */ jsx41("tbody", { children: rows.map((row, i) => {
6760
6817
  var _a, _b, _c, _d, _e, _f;
6761
6818
  const id = getValue(row, rowKey), priceCol = columns.find(
6762
6819
  (c) => c.type === "price" && !cellLoading(row, c) && getValue(row, c.key) != null
@@ -6770,7 +6827,7 @@ function KjunMarketTable(props) {
6770
6827
  },
6771
6828
  children: [
6772
6829
  showActions && /* @__PURE__ */ jsxs34("td", { className: "kjun-market-actions", children: [
6773
- /* @__PURE__ */ jsx40(
6830
+ /* @__PURE__ */ jsx41(
6774
6831
  KjunIconToggle,
6775
6832
  {
6776
6833
  size: "xs",
@@ -6789,7 +6846,7 @@ function KjunMarketTable(props) {
6789
6846
  }
6790
6847
  }
6791
6848
  ),
6792
- /* @__PURE__ */ jsx40(
6849
+ /* @__PURE__ */ jsx41(
6793
6850
  KjunIconToggle,
6794
6851
  {
6795
6852
  size: "xs",
@@ -6818,7 +6875,7 @@ function KjunMarketTable(props) {
6818
6875
  },
6819
6876
  children: [
6820
6877
  render(row, col),
6821
- col.key === (priceCol == null ? void 0 : priceCol.key) && /* @__PURE__ */ jsx40(
6878
+ col.key === (priceCol == null ? void 0 : priceCol.key) && /* @__PURE__ */ jsx41(
6822
6879
  KjunFreshness,
6823
6880
  {
6824
6881
  stale: !!getValue(row, "stale"),
@@ -6840,7 +6897,7 @@ function KjunMarketTable(props) {
6840
6897
  ] }) })
6841
6898
  }
6842
6899
  ),
6843
- /* @__PURE__ */ jsx40(MarketFooter, { props })
6900
+ /* @__PURE__ */ jsx41(MarketFooter, { props })
6844
6901
  ]
6845
6902
  }
6846
6903
  );
@@ -6848,20 +6905,20 @@ function KjunMarketTable(props) {
6848
6905
 
6849
6906
  // packages/react/src/list.tsx
6850
6907
  import { useId as useId12 } from "react";
6851
- import { Fragment as Fragment17, jsx as jsx41, jsxs as jsxs35 } from "react/jsx-runtime";
6908
+ import { Fragment as Fragment17, jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
6852
6909
  function KjunListRow({ title, description, leading, trailing, actions, href, disabled = false, onClick }) {
6853
6910
  const contents = /* @__PURE__ */ jsxs35(Fragment17, { children: [
6854
- leading && /* @__PURE__ */ jsx41("span", { className: "kjun-list-leading", children: leading }),
6911
+ leading && /* @__PURE__ */ jsx42("span", { className: "kjun-list-leading", children: leading }),
6855
6912
  /* @__PURE__ */ jsxs35("span", { className: "kjun-list-body", children: [
6856
- /* @__PURE__ */ jsx41("span", { className: "kjun-list-title", children: title }),
6857
- description && /* @__PURE__ */ jsx41("span", { className: "kjun-list-description", children: description })
6913
+ /* @__PURE__ */ jsx42("span", { className: "kjun-list-title", children: title }),
6914
+ description && /* @__PURE__ */ jsx42("span", { className: "kjun-list-description", children: description })
6858
6915
  ] }),
6859
- trailing && /* @__PURE__ */ jsx41("span", { className: "kjun-list-trailing", children: trailing })
6916
+ trailing && /* @__PURE__ */ jsx42("span", { className: "kjun-list-trailing", children: trailing })
6860
6917
  ] });
6861
- const main = href ? /* @__PURE__ */ jsx41("a", { className: "kjun-list-main", href: disabled ? void 0 : href, "aria-disabled": disabled || void 0, onClick: disabled ? (e) => e.preventDefault() : onClick, children: contents }) : onClick ? /* @__PURE__ */ jsx41("button", { className: "kjun-list-main", type: "button", disabled, onClick, children: contents }) : /* @__PURE__ */ jsx41("div", { className: "kjun-list-main", children: contents });
6918
+ const main = href ? /* @__PURE__ */ jsx42("a", { className: "kjun-list-main", href: disabled ? void 0 : href, "aria-disabled": disabled || void 0, onClick: disabled ? (e) => e.preventDefault() : onClick, children: contents }) : onClick ? /* @__PURE__ */ jsx42("button", { className: "kjun-list-main", type: "button", disabled, onClick, children: contents }) : /* @__PURE__ */ jsx42("div", { className: "kjun-list-main", children: contents });
6862
6919
  return /* @__PURE__ */ jsxs35("li", { className: "kjun-list-row", children: [
6863
6920
  main,
6864
- actions && /* @__PURE__ */ jsx41("div", { className: "kjun-list-actions", "data-disabled": disabled || void 0, inert: disabled || void 0, children: actions })
6921
+ actions && /* @__PURE__ */ jsx42("div", { className: "kjun-list-actions", "data-disabled": disabled || void 0, inert: disabled || void 0, children: actions })
6865
6922
  ] });
6866
6923
  }
6867
6924
  function KjunListSection({ title, description, actions, children, ariaLabel }) {
@@ -6869,39 +6926,39 @@ function KjunListSection({ title, description, actions, children, ariaLabel }) {
6869
6926
  return /* @__PURE__ */ jsxs35("section", { className: "kjun-list-section", "aria-labelledby": title ? id : void 0, "aria-label": title ? void 0 : ariaLabel, children: [
6870
6927
  (title || description || actions) && /* @__PURE__ */ jsxs35("div", { className: "kjun-list-heading", children: [
6871
6928
  /* @__PURE__ */ jsxs35("div", { children: [
6872
- title && /* @__PURE__ */ jsx41("h3", { id, children: title }),
6873
- description && /* @__PURE__ */ jsx41("p", { children: description })
6929
+ title && /* @__PURE__ */ jsx42("h3", { id, children: title }),
6930
+ description && /* @__PURE__ */ jsx42("p", { children: description })
6874
6931
  ] }),
6875
6932
  actions
6876
6933
  ] }),
6877
- /* @__PURE__ */ jsx41("ul", { className: "kjun-list", "aria-label": ariaLabel || title, children })
6934
+ /* @__PURE__ */ jsx42("ul", { className: "kjun-list", "aria-label": ariaLabel || title, children })
6878
6935
  ] });
6879
6936
  }
6880
6937
 
6881
6938
  // packages/react/src/app-navigation.tsx
6882
6939
  import { tokens as tokens38 } from "@kjun-ui/tokens";
6883
- import { jsx as jsx42, jsxs as jsxs36 } from "react/jsx-runtime";
6940
+ import { jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
6884
6941
  function KjunTopNavigation({ title, description, leading, actions, safeAreaTop = 0 }) {
6885
- return /* @__PURE__ */ jsx42(TopNavigationContext.Provider, { value: tokens38.extensions.topNavigation, children: /* @__PURE__ */ jsx42("header", { className: "kjun-top-navigation", style: { paddingTop: Math.max(0, safeAreaTop) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-content", children: [
6886
- leading && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-leading", children: leading }),
6942
+ return /* @__PURE__ */ jsx43(TopNavigationContext.Provider, { value: tokens38.extensions.topNavigation, children: /* @__PURE__ */ jsx43("header", { className: "kjun-top-navigation", style: { paddingTop: Math.max(0, safeAreaTop) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-content", children: [
6943
+ leading && /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-leading", children: leading }),
6887
6944
  /* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-title", children: [
6888
- /* @__PURE__ */ jsx42("strong", { children: title }),
6889
- description && /* @__PURE__ */ jsx42("p", { children: description })
6945
+ /* @__PURE__ */ jsx43("strong", { children: title }),
6946
+ description && /* @__PURE__ */ jsx43("p", { children: description })
6890
6947
  ] }),
6891
- actions && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-actions", children: actions })
6948
+ actions && /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-actions", children: actions })
6892
6949
  ] }) }) });
6893
6950
  }
6894
6951
  function KjunBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\uC0C9", safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = true, onNavigate }) {
6895
6952
  const hasIcons = items.some((item) => item.icon);
6896
6953
  if (keyboardVisible && hideOnKeyboard) return null;
6897
- return /* @__PURE__ */ jsx42("nav", { className: "kjun-bottom-navigation", "data-icons": hasIcons || void 0, "aria-label": ariaLabel, style: { paddingBottom: Math.max(0, safeAreaBottom) }, children: items.map((item) => {
6898
- const badge = item.badge != null && /* @__PURE__ */ jsx42("span", { className: "kjun-navigation-badge", "aria-hidden": "true", children: item.badge });
6954
+ return /* @__PURE__ */ jsx43("nav", { className: "kjun-bottom-navigation", "data-icons": hasIcons || void 0, "aria-label": ariaLabel, style: { paddingBottom: Math.max(0, safeAreaBottom) }, children: items.map((item) => {
6955
+ const badge = item.badge != null && /* @__PURE__ */ jsx43("span", { className: "kjun-navigation-badge", "aria-hidden": "true", children: item.badge });
6899
6956
  return /* @__PURE__ */ jsxs36("a", { href: item.disabled ? void 0 : item.href, "aria-label": item.label + (item.badge != null ? ", " + item.badge : ""), "aria-disabled": item.disabled || void 0, "aria-current": value === item.key ? "page" : void 0, onClick: (event) => {
6900
6957
  if (item.disabled) event.preventDefault();
6901
6958
  else onNavigate == null ? void 0 : onNavigate(item.key, event);
6902
6959
  }, children: [
6903
6960
  hasIcons && /* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-icon", children: [
6904
- item.icon && /* @__PURE__ */ jsx42(KjunIcon, { name: item.icon, size: tokens38.extensions.bottomNavigation.iconSize }),
6961
+ item.icon && /* @__PURE__ */ jsx43(KjunIcon, { name: item.icon, size: tokens38.extensions.bottomNavigation.iconSize }),
6905
6962
  badge
6906
6963
  ] }),
6907
6964
  /* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-label", children: [
@@ -6913,16 +6970,16 @@ function KjunBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\u
6913
6970
  }
6914
6971
  function KjunBottomActionBar({ description, children, safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = false }) {
6915
6972
  if (keyboardVisible && hideOnKeyboard) return null;
6916
- return /* @__PURE__ */ jsx42("div", { className: "kjun-bottom-action-bar", style: { paddingBottom: tokens38.extensions.navigation.padding + Math.max(0, safeAreaBottom) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-bottom-action-content", children: [
6917
- description && /* @__PURE__ */ jsx42("p", { children: description }),
6918
- /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-actions", children })
6973
+ return /* @__PURE__ */ jsx43("div", { className: "kjun-bottom-action-bar", style: { paddingBottom: tokens38.extensions.navigation.padding + Math.max(0, safeAreaBottom) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-bottom-action-content", children: [
6974
+ description && /* @__PURE__ */ jsx43("p", { children: description }),
6975
+ /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-actions", children })
6919
6976
  ] }) });
6920
6977
  }
6921
6978
 
6922
6979
  // packages/react/src/media.tsx
6923
6980
  import { useRef as useRef28, useState as useState29 } from "react";
6924
6981
  import { tokens as tokens39 } from "@kjun-ui/tokens";
6925
- import { jsx as jsx43, jsxs as jsxs37 } from "react/jsx-runtime";
6982
+ import { jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
6926
6983
  function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover", fallback: fallback2, lazy = true, onLoad, onError }) {
6927
6984
  const current = useRef28({ src, version: 0 });
6928
6985
  if (current.current.src !== src) current.current = { src, version: current.current.version + 1 };
@@ -6931,7 +6988,7 @@ function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover
6931
6988
  const state = result.version === version ? result.state : "loading";
6932
6989
  const failed = !src || state === "error";
6933
6990
  return /* @__PURE__ */ jsxs37("span", { className: "kjun-image", style: { aspectRatio: aspectRatio > 0 ? aspectRatio : 1 }, "data-state": failed ? "error" : state, children: [
6934
- !failed && /* @__PURE__ */ jsx43("img", { src, alt: decorative ? "" : alt, loading: lazy ? "lazy" : "eager", style: { objectFit: fit }, onLoad: () => {
6991
+ !failed && /* @__PURE__ */ jsx44("img", { src, alt: decorative ? "" : alt, loading: lazy ? "lazy" : "eager", style: { objectFit: fit }, onLoad: () => {
6935
6992
  if (current.current.version !== version) return;
6936
6993
  setResult({ version, state: "loaded" });
6937
6994
  onLoad == null ? void 0 : onLoad();
@@ -6940,21 +6997,21 @@ function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover
6940
6997
  setResult({ version, state: "error" });
6941
6998
  onError == null ? void 0 : onError();
6942
6999
  } }, version),
6943
- failed && /* @__PURE__ */ jsx43("span", { className: "kjun-image-fallback", role: decorative ? void 0 : "img", "aria-label": decorative ? void 0 : alt, "aria-hidden": decorative || void 0, children: fallback2 != null ? fallback2 : /* @__PURE__ */ jsx43(KjunIcon, { name: "image", size: tokens39.extensions.image.fallbackIconSize }) })
7000
+ failed && /* @__PURE__ */ jsx44("span", { className: "kjun-image-fallback", role: decorative ? void 0 : "img", "aria-label": decorative ? void 0 : alt, "aria-hidden": decorative || void 0, children: fallback2 != null ? fallback2 : /* @__PURE__ */ jsx44(KjunIcon, { name: "image", size: tokens39.extensions.image.fallbackIconSize }) })
6944
7001
  ] });
6945
7002
  }
6946
7003
  function KjunAvatar({ src, name = "", alt, decorative = false, size = "md", shape = "circle", fallback: fallback2, onLoad, onError }) {
6947
- return /* @__PURE__ */ jsx43("span", { className: "kjun-avatar", "data-shape": shape, "data-size": size, style: { width: tokens39.extensions.avatar[size], height: tokens39.extensions.avatar[size] }, children: /* @__PURE__ */ jsx43(KjunImage, { src, alt: alt || name || "\uC0AC\uC6A9\uC790", decorative, fallback: fallback2 != null ? fallback2 : Array.from(name.trim())[0] || /* @__PURE__ */ jsx43(KjunIcon, { name: "user", size: tokens39.extensions.avatar.fallbackIconSizes[size] }), onLoad, onError }) });
7004
+ return /* @__PURE__ */ jsx44("span", { className: "kjun-avatar", "data-shape": shape, "data-size": size, style: { width: tokens39.extensions.avatar[size], height: tokens39.extensions.avatar[size] }, children: /* @__PURE__ */ jsx44(KjunImage, { src, alt: alt || name || "\uC0AC\uC6A9\uC790", decorative, fallback: fallback2 != null ? fallback2 : Array.from(name.trim())[0] || /* @__PURE__ */ jsx44(KjunIcon, { name: "user", size: tokens39.extensions.avatar.fallbackIconSizes[size] }), onLoad, onError }) });
6948
7005
  }
6949
7006
 
6950
7007
  // packages/react/src/chip.tsx
6951
7008
  import { tokens as tokens40 } from "@kjun-ui/tokens";
6952
- import { jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
7009
+ import { jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
6953
7010
  function KjunChip({ label, icon, removable = false, disabled = false, size = "md", removeLabel, onRemove }) {
6954
7011
  return /* @__PURE__ */ jsxs38("span", { className: "kjun-chip", "data-size": size, "data-disabled": disabled, "data-removable": removable, children: [
6955
- icon && /* @__PURE__ */ jsx44(KjunIcon, { name: icon, size: tokens40.extensions.chip.iconSizes[size] }),
6956
- /* @__PURE__ */ jsx44("span", { children: label }),
6957
- removable && /* @__PURE__ */ jsx44("button", { type: "button", "aria-label": removeLabel || label + " \uC0AD\uC81C", disabled, onClick: onRemove, children: /* @__PURE__ */ jsx44(KjunIcon, { name: "x", size: tokens40.extensions.chip.removeIconSizes[size] }) })
7012
+ icon && /* @__PURE__ */ jsx45(KjunIcon, { name: icon, size: tokens40.extensions.chip.iconSizes[size] }),
7013
+ /* @__PURE__ */ jsx45("span", { children: label }),
7014
+ removable && /* @__PURE__ */ jsx45("button", { type: "button", "aria-label": removeLabel || label + " \uC0AD\uC81C", disabled, onClick: onRemove, children: /* @__PURE__ */ jsx45(KjunIcon, { name: "x", size: tokens40.extensions.chip.removeIconSizes[size] }) })
6958
7015
  ] });
6959
7016
  }
6960
7017
 
@@ -6962,7 +7019,7 @@ function KjunChip({ label, icon, removable = false, disabled = false, size = "md
6962
7019
  import { useEffect as useEffect21, useRef as useRef29 } from "react";
6963
7020
  import { Slider, SliderTrack, SliderThumb, Label, SliderOutput } from "react-aria-components";
6964
7021
  import { createSliderDomain } from "@kjun-ui/tokens";
6965
- import { Fragment as Fragment18, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
7022
+ import { Fragment as Fragment18, jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
6966
7023
  function RangeInput({ value, min = 0, max = 100, step = 1, disabled = false, label, ariaLabel, onValueChange, onChangeCommit, ...rest }) {
6967
7024
  const thumbLabels = "thumbLabels" in rest ? rest.thumbLabels || ["\uCD5C\uC19F\uAC12", "\uCD5C\uB313\uAC12"] : ["\uCD5C\uC19F\uAC12", "\uCD5C\uB313\uAC12"];
6968
7025
  const domain = createSliderDomain(min, max, step);
@@ -6990,27 +7047,27 @@ function RangeInput({ value, min = 0, max = 100, step = 1, disabled = false, lab
6990
7047
  }
6991
7048
  }, children: [
6992
7049
  /* @__PURE__ */ jsxs39("div", { className: "kjun-slider-caption", children: [
6993
- label && /* @__PURE__ */ jsx45(Label, { className: "kjun-slider-label", children: label }),
6994
- /* @__PURE__ */ jsx45(SliderOutput, { className: "kjun-slider-value", children: ({ state }) => state.values.join(" \u2013 ") })
7050
+ label && /* @__PURE__ */ jsx46(Label, { className: "kjun-slider-label", children: label }),
7051
+ /* @__PURE__ */ jsx46(SliderOutput, { className: "kjun-slider-value", children: ({ state }) => state.values.join(" \u2013 ") })
6995
7052
  ] }),
6996
- /* @__PURE__ */ jsx45(SliderTrack, { className: "kjun-slider-track", children: ({ state }) => /* @__PURE__ */ jsxs39(Fragment18, { children: [
6997
- /* @__PURE__ */ jsx45("div", { className: "kjun-slider-rail" }),
6998
- /* @__PURE__ */ jsx45("div", { className: "kjun-slider-fill", style: { left: (list.length === 2 ? state.getThumbPercent(0) * 100 : 0) + "%", width: (state.getThumbPercent(list.length - 1) - (list.length === 2 ? state.getThumbPercent(0) : 0)) * 100 + "%" } }),
6999
- list.map((_, i) => /* @__PURE__ */ jsx45(SliderThumb, { index: i, className: "kjun-slider-thumb", "aria-label": list.length === 2 ? thumbLabels[i] : ariaLabel || label || "\uAC12" }, i))
7053
+ /* @__PURE__ */ jsx46(SliderTrack, { className: "kjun-slider-track", children: ({ state }) => /* @__PURE__ */ jsxs39(Fragment18, { children: [
7054
+ /* @__PURE__ */ jsx46("div", { className: "kjun-slider-rail" }),
7055
+ /* @__PURE__ */ jsx46("div", { className: "kjun-slider-fill", style: { left: (list.length === 2 ? state.getThumbPercent(0) * 100 : 0) + "%", width: (state.getThumbPercent(list.length - 1) - (list.length === 2 ? state.getThumbPercent(0) : 0)) * 100 + "%" } }),
7056
+ list.map((_, i) => /* @__PURE__ */ jsx46(SliderThumb, { index: i, className: "kjun-slider-thumb", "aria-label": list.length === 2 ? thumbLabels[i] : ariaLabel || label || "\uAC12" }, i))
7000
7057
  ] }) })
7001
7058
  ] });
7002
7059
  }
7003
7060
  function KjunSlider(props) {
7004
- return /* @__PURE__ */ jsx45(RangeInput, { ...props });
7061
+ return /* @__PURE__ */ jsx46(RangeInput, { ...props });
7005
7062
  }
7006
7063
  function KjunRangeSlider(props) {
7007
- return /* @__PURE__ */ jsx45(RangeInput, { ...props });
7064
+ return /* @__PURE__ */ jsx46(RangeInput, { ...props });
7008
7065
  }
7009
7066
 
7010
7067
  // packages/react/src/quantity-stepper.tsx
7011
7068
  import { useEffect as useEffect22, useRef as useRef30, useState as useState30 } from "react";
7012
7069
  import { createNumberDomain, quantityKeyAction, tokens as tokens41 } from "@kjun-ui/tokens";
7013
- import { jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
7070
+ import { jsx as jsx47, jsxs as jsxs40 } from "react/jsx-runtime";
7014
7071
  function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disabled = false, error = false, size = "md", block = false, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }) {
7015
7072
  const geometry = tokens41.extensions.compound;
7016
7073
  const buttonStyle = { width: tokens41.input[size].height, padding: 0 };
@@ -7058,9 +7115,9 @@ function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, dis
7058
7115
  } else if (action === "commit") commit();
7059
7116
  else move(action === "increment" ? 1 : -1);
7060
7117
  };
7061
- return /* @__PURE__ */ jsx46(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs40("div", { className: "kjun-quantity", "data-size": size, "data-block": block, "data-error": error || !!(field == null ? void 0 : field.error), children: [
7062
- /* @__PURE__ */ jsx46(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uC904\uC774\uAE30", disabled: blocked || value <= min, onMouseDown: (e) => e.preventDefault(), onClick: () => move(-1), prefixIcon: "minus" }),
7063
- /* @__PURE__ */ jsx46(
7118
+ return /* @__PURE__ */ jsx47(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs40("div", { className: "kjun-quantity", "data-size": size, "data-block": block, "data-error": error || !!(field == null ? void 0 : field.error), children: [
7119
+ /* @__PURE__ */ jsx47(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uC904\uC774\uAE30", disabled: blocked || value <= min, onMouseDown: (e) => e.preventDefault(), onClick: () => move(-1), prefixIcon: "minus" }),
7120
+ /* @__PURE__ */ jsx47(
7064
7121
  "input",
7065
7122
  {
7066
7123
  className: "kjun-input",
@@ -7094,14 +7151,14 @@ function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, dis
7094
7151
  "aria-required": (field == null ? void 0 : field.required) || void 0
7095
7152
  }
7096
7153
  ),
7097
- /* @__PURE__ */ jsx46(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uB298\uB9AC\uAE30", disabled: blocked || max !== void 0 && value >= max, onMouseDown: (e) => e.preventDefault(), onClick: () => move(1), prefixIcon: "plus" })
7154
+ /* @__PURE__ */ jsx47(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uB298\uB9AC\uAE30", disabled: blocked || max !== void 0 && value >= max, onMouseDown: (e) => e.preventDefault(), onClick: () => move(1), prefixIcon: "plus" })
7098
7155
  ] }) });
7099
7156
  }
7100
7157
 
7101
7158
  // packages/react/src/time-picker.tsx
7102
7159
  import { Fragment as Fragment19, useEffect as useEffect23, useId as useId13, useMemo as useMemo2, useRef as useRef31 } from "react";
7103
7160
  import { createTimeDomain } from "@kjun-ui/tokens";
7104
- import { jsx as jsx47, jsxs as jsxs41 } from "react/jsx-runtime";
7161
+ import { jsx as jsx48, jsxs as jsxs41 } from "react/jsx-runtime";
7105
7162
  function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1, secondStep = 1, disabled = false, error = false, clearable = true, size = "md", ariaLabel = "\uC2DC\uAC04", onValueChange, onChangeCommit }) {
7106
7163
  const root = useRef31(null);
7107
7164
  const field = useKjunField(), uid = useId13();
@@ -7119,14 +7176,14 @@ function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1,
7119
7176
  };
7120
7177
  const time = value === null ? null : domain.parse(value);
7121
7178
  return /* @__PURE__ */ jsxs41("div", { ref: root, className: "kjun-time-picker", "data-size": size, "data-error": error || !!(field == null ? void 0 : field.error), "data-disabled": disabled || !valid, role: "group", "aria-label": ariaLabel, "aria-labelledby": field == null ? void 0 : field.labelId, "aria-describedby": field == null ? void 0 : field.describedBy, children: [
7122
- /* @__PURE__ */ jsx47(CompoundControlContext.Provider, { value: size, children: /* @__PURE__ */ jsx47("div", { className: "kjun-time-segments", children: ["\uC2DC", "\uBD84", "\uCD08"].slice(0, precision === "second" ? 3 : 2).map((label, index) => {
7179
+ /* @__PURE__ */ jsx48(CompoundControlContext.Provider, { value: size, children: /* @__PURE__ */ jsx48("div", { className: "kjun-time-segments", children: ["\uC2DC", "\uBD84", "\uCD08"].slice(0, precision === "second" ? 3 : 2).map((label, index) => {
7123
7180
  const segmentId = index === 0 ? fieldId : `${fieldId}-${index}`;
7124
7181
  const labelId = `${fieldId}-segment-${index}`;
7125
7182
  return /* @__PURE__ */ jsxs41(Fragment19, { children: [
7126
- index > 0 && /* @__PURE__ */ jsx47("span", { className: "kjun-time-separator", "aria-hidden": true, children: ":" }),
7127
- /* @__PURE__ */ jsx47(FieldContext.Provider, { value: { ...field, id: segmentId, labelId: (field == null ? void 0 : field.labelId) ? `${field.labelId} ${labelId}` : void 0 }, children: /* @__PURE__ */ jsxs41("div", { className: "kjun-time-segment", children: [
7128
- /* @__PURE__ */ jsx47("span", { id: labelId, className: "kjun-sr-only", "aria-hidden": true, children: label }),
7129
- /* @__PURE__ */ jsx47(
7183
+ index > 0 && /* @__PURE__ */ jsx48("span", { className: "kjun-time-separator", "aria-hidden": true, children: ":" }),
7184
+ /* @__PURE__ */ jsx48(FieldContext.Provider, { value: { ...field, id: segmentId, labelId: (field == null ? void 0 : field.labelId) ? `${field.labelId} ${labelId}` : void 0 }, children: /* @__PURE__ */ jsxs41("div", { className: "kjun-time-segment", children: [
7185
+ /* @__PURE__ */ jsx48("span", { id: labelId, className: "kjun-sr-only", "aria-hidden": true, children: label }),
7186
+ /* @__PURE__ */ jsx48(
7130
7187
  KjunSelect,
7131
7188
  {
7132
7189
  value: time === null ? null : domain.part(time, index),
@@ -7146,7 +7203,7 @@ function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1,
7146
7203
  ] }) })
7147
7204
  ] }, label);
7148
7205
  }) }) }),
7149
- clearable && value !== null && /* @__PURE__ */ jsx47(KjunButton, { className: "kjun-time-clear", size, variant: "ghost", prefixIcon: "x", ariaLabel: ariaLabel + " \uC9C0\uC6B0\uAE30", disabled: disabled || !valid, onClick: () => {
7206
+ clearable && value !== null && /* @__PURE__ */ jsx48(KjunButton, { className: "kjun-time-clear", size, variant: "ghost", prefixIcon: "x", ariaLabel: ariaLabel + " \uC9C0\uC6B0\uAE30", disabled: disabled || !valid, onClick: () => {
7150
7207
  var _a, _b;
7151
7208
  change(null);
7152
7209
  (_b = (_a = root.current) == null ? void 0 : _a.querySelector(".kjun-select-trigger")) == null ? void 0 : _b.focus();
@@ -7193,6 +7250,7 @@ export {
7193
7250
  KjunIcon,
7194
7251
  KjunIconToggle,
7195
7252
  KjunImage,
7253
+ KjunInline,
7196
7254
  KjunInput,
7197
7255
  KjunKpiHero,
7198
7256
  KjunKpiRow,
@@ -7225,10 +7283,12 @@ export {
7225
7283
  KjunSlider,
7226
7284
  KjunSparkline,
7227
7285
  KjunSpinner,
7286
+ KjunStack,
7228
7287
  KjunSwitch,
7229
7288
  KjunTabPane,
7230
7289
  KjunTable,
7231
7290
  KjunTabs,
7291
+ KjunText,
7232
7292
  KjunTextarea,
7233
7293
  KjunTimePicker,
7234
7294
  KjunTooltip,