@kjun-ui/react 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1569,6 +1569,57 @@ function KjunSkeleton({
1569
1569
  );
1570
1570
  }
1571
1571
 
1572
+ // packages/react/src/layout-primitives.tsx
1573
+ import { createElement as createElement2 } from "react";
1574
+
1575
+ // shared/package-runtime/layout-primitives.ts
1576
+ var numeric = /^(number|display)/;
1577
+ var textTypeClass = (variant) => "kjun-type-" + variant.replace(/[A-Z]/g, (letter) => "-" + letter.toLowerCase());
1578
+ var defaultTextTag = (variant) => variant === "pageTitle" ? "h1" : variant === "sectionTitle" ? "h2" : variant === "cardTitle" ? "h3" : numeric.test(variant) ? "span" : "p";
1579
+
1580
+ // packages/react/src/layout-primitives.tsx
1581
+ import { jsx as jsx9 } from "react/jsx-runtime";
1582
+ var join = (...names) => names.filter(Boolean).join(" ");
1583
+ function KjunText({ variant = "body", tone = "default", as, align, maxLines, className, style, children, ...rest }) {
1584
+ const lines = maxLines && maxLines > 0 ? Math.floor(maxLines) : void 0;
1585
+ return createElement2(as != null ? as : defaultTextTag(variant), {
1586
+ ...rest,
1587
+ className: join("kjun-text", textTypeClass(variant), className),
1588
+ // 안에 넣은 링크·강조 같은 앱 요소는 KJUN 리셋을 받지 않는다.
1589
+ "data-kjun-content": "",
1590
+ "data-tone": tone === "default" ? void 0 : tone,
1591
+ "data-align": align,
1592
+ "data-max-lines": lines,
1593
+ style: lines ? { ...style, ["--_kjun-text-lines"]: lines } : style
1594
+ }, children);
1595
+ }
1596
+ function KjunStack({ gap = "md", align = "stretch", as = "div", className, style, children, ...rest }) {
1597
+ return createElement2(as, {
1598
+ ...rest,
1599
+ className: className || void 0,
1600
+ style,
1601
+ "data-kjun-stack": "",
1602
+ "data-gap": gap,
1603
+ "data-align": align
1604
+ }, children);
1605
+ }
1606
+ function KjunInline({ gap = "sm", align = "center", justify = "start", wrap = true, className, style, children, ...rest }) {
1607
+ return /* @__PURE__ */ jsx9(
1608
+ "div",
1609
+ {
1610
+ ...rest,
1611
+ className: className || void 0,
1612
+ style,
1613
+ "data-kjun-inline": "",
1614
+ "data-gap": gap,
1615
+ "data-align": align,
1616
+ "data-justify": justify,
1617
+ "data-wrap": wrap ? void 0 : "false",
1618
+ children
1619
+ }
1620
+ );
1621
+ }
1622
+
1572
1623
  // shared/package-runtime/feedback-dialog.ts
1573
1624
  import { useRef as useRef7, useState as useState7 } from "react";
1574
1625
  function useFeedbackDialog(controller, request) {
@@ -1736,7 +1787,7 @@ function createToastLayout() {
1736
1787
 
1737
1788
  // packages/react/src/toast.tsx
1738
1789
  import { useEffect as useEffect3, useRef as useRef9 } from "react";
1739
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1790
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
1740
1791
  function ToastView({
1741
1792
  toast,
1742
1793
  controller
@@ -1778,18 +1829,18 @@ function ToastView({
1778
1829
  controller.resumeToast(toast.id, reasons.focus);
1779
1830
  },
1780
1831
  children: [
1781
- /* @__PURE__ */ jsx9(
1832
+ /* @__PURE__ */ jsx10(
1782
1833
  "span",
1783
1834
  {
1784
1835
  className: "kjun-toast-icon",
1785
1836
  style: { color: `var(--_kjun-color-${tone}-accent)` },
1786
- children: /* @__PURE__ */ jsx9(KjunIcon, { name: icon })
1837
+ children: /* @__PURE__ */ jsx10(KjunIcon, { name: icon })
1787
1838
  }
1788
1839
  ),
1789
1840
  /* @__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(
1841
+ toast.title && /* @__PURE__ */ jsx10("strong", { children: toast.title }),
1842
+ /* @__PURE__ */ jsx10("span", { className: "kjun-toast-message", children: toast.message }),
1843
+ toast.action && /* @__PURE__ */ jsx10(
1793
1844
  "button",
1794
1845
  {
1795
1846
  type: "button",
@@ -1806,17 +1857,17 @@ function ToastView({
1806
1857
  }
1807
1858
  )
1808
1859
  ] }),
1809
- toast.closable !== false && /* @__PURE__ */ jsx9(
1860
+ toast.closable !== false && /* @__PURE__ */ jsx10(
1810
1861
  "button",
1811
1862
  {
1812
1863
  type: "button",
1813
1864
  className: "kjun-toast-close",
1814
1865
  "aria-label": "\uC54C\uB9BC \uB2EB\uAE30",
1815
1866
  onClick: () => dismiss(),
1816
- children: /* @__PURE__ */ jsx9(KjunIcon, { name: "x" })
1867
+ children: /* @__PURE__ */ jsx10(KjunIcon, { name: "x" })
1817
1868
  }
1818
1869
  ),
1819
- toast.showProgress !== false && !!toast.duration && /* @__PURE__ */ jsx9(
1870
+ toast.showProgress !== false && !!toast.duration && /* @__PURE__ */ jsx10(
1820
1871
  "div",
1821
1872
  {
1822
1873
  "aria-hidden": "true",
@@ -1836,7 +1887,7 @@ function ToastView({
1836
1887
  }
1837
1888
 
1838
1889
  // packages/react/src/toast-stack.tsx
1839
- import { jsx as jsx10 } from "react/jsx-runtime";
1890
+ import { jsx as jsx11 } from "react/jsx-runtime";
1840
1891
  function ToastSurface({ item, controller }) {
1841
1892
  const ref = useRef10(null), reduced = useReducedMotion();
1842
1893
  const current = useRef10(null);
@@ -1870,7 +1921,7 @@ function ToastSurface({ item, controller }) {
1870
1921
  for (const animation of animations) animation.cancel();
1871
1922
  };
1872
1923
  }, [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 }) });
1924
+ return /* @__PURE__ */ jsx11("div", { ref, inert: item.exiting, "aria-hidden": item.exiting || void 0, children: /* @__PURE__ */ jsx11(ToastView, { toast: item.toast, controller }) });
1874
1925
  }
1875
1926
  function ToastStack({ items, controller }) {
1876
1927
  var _a;
@@ -1881,13 +1932,13 @@ function ToastStack({ items, controller }) {
1881
1932
  if (root.current) layout.current.update(root.current, reduced);
1882
1933
  });
1883
1934
  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(
1935
+ 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
1936
  "div",
1886
1937
  {
1887
1938
  "data-toast-id": item.toast.id,
1888
1939
  "data-exiting": item.exiting,
1889
1940
  className: "kjun-toast-slot",
1890
- children: /* @__PURE__ */ jsx10(ToastSurface, { item, controller })
1941
+ children: /* @__PURE__ */ jsx11(ToastSurface, { item, controller })
1891
1942
  },
1892
1943
  item.toast.id
1893
1944
  )) });
@@ -1904,7 +1955,7 @@ import {
1904
1955
  useState as useState9,
1905
1956
  useSyncExternalStore as useSyncExternalStore3
1906
1957
  } from "react";
1907
- import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
1958
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
1908
1959
  function useKjunFeedback() {
1909
1960
  const value = useOptionalKjunFeedback();
1910
1961
  if (!value) throw Error("useKjunFeedback requires KjunFeedbackProvider.");
@@ -1934,8 +1985,8 @@ function FeedbackDialog({
1934
1985
  onConfirm: submit,
1935
1986
  confirmVariant: options.type === "danger" ? "danger" : "primary",
1936
1987
  children: [
1937
- options.message && /* @__PURE__ */ jsx11("p", { children: options.message }),
1938
- request.kind === "prompt" && /* @__PURE__ */ jsx11(
1988
+ options.message && /* @__PURE__ */ jsx12("p", { children: options.message }),
1989
+ request.kind === "prompt" && /* @__PURE__ */ jsx12(
1939
1990
  KjunInput,
1940
1991
  {
1941
1992
  autoFocus: true,
@@ -1977,15 +2028,15 @@ function KjunFeedbackProvider({ children }) {
1977
2028
  return () => setLayers((current) => current.filter((value) => value.id !== id));
1978
2029
  }, []);
1979
2030
  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(
2031
+ const renderToasts = () => /* @__PURE__ */ jsx12(ToastStack, { items: toasts, controller });
2032
+ return /* @__PURE__ */ jsx12(KjunFeedbackContext.Provider, { value: controller.api, children: /* @__PURE__ */ jsxs8(
1982
2033
  FeedbackOverlayContext.Provider,
1983
2034
  {
1984
2035
  value: { top, register, render: renderToasts },
1985
2036
  children: [
1986
2037
  children,
1987
2038
  !layers.length && renderToasts(),
1988
- dialog.request && /* @__PURE__ */ jsx11(
2039
+ dialog.request && /* @__PURE__ */ jsx12(
1989
2040
  FeedbackDialog,
1990
2041
  {
1991
2042
  request: dialog.request,
@@ -2120,7 +2171,7 @@ function groupKeydown(event) {
2120
2171
  }
2121
2172
 
2122
2173
  // packages/react/src/controls.tsx
2123
- import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
2174
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
2124
2175
  function KjunCheckbox({
2125
2176
  value,
2126
2177
  val,
@@ -2151,14 +2202,14 @@ function KjunCheckbox({
2151
2202
  onChange == null ? void 0 : onChange(result);
2152
2203
  },
2153
2204
  children: [
2154
- /* @__PURE__ */ jsx12(
2205
+ /* @__PURE__ */ jsx13(
2155
2206
  "span",
2156
2207
  {
2157
2208
  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] })
2209
+ children: checked && /* @__PURE__ */ jsx13(KjunIcon, { name: "check", size: tokens12.extensions.checkbox.iconSizes[size] })
2159
2210
  }
2160
2211
  ),
2161
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2212
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2162
2213
  ]
2163
2214
  }
2164
2215
  );
@@ -2196,14 +2247,14 @@ function KjunSwitch({
2196
2247
  onChange == null ? void 0 : onChange(next);
2197
2248
  },
2198
2249
  children: [
2199
- /* @__PURE__ */ jsx12(
2250
+ /* @__PURE__ */ jsx13(
2200
2251
  "span",
2201
2252
  {
2202
2253
  className: `kjun-switch kjun-switch--${size}${value ? " kjun-switch--on" : ""}`,
2203
- children: /* @__PURE__ */ jsx12("span", { className: "kjun-switch-thumb" })
2254
+ children: /* @__PURE__ */ jsx13("span", { className: "kjun-switch-thumb" })
2204
2255
  }
2205
2256
  ),
2206
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2257
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2207
2258
  ]
2208
2259
  }
2209
2260
  );
@@ -2222,7 +2273,7 @@ function KjunRadio({
2222
2273
  }) {
2223
2274
  const group = useContext9(RadioContext), selected = (group ? group.value : value) === val;
2224
2275
  return /* @__PURE__ */ jsxs9("label", { className: "kjun-choice" + (disabled ? " kjun-choice--disabled" : ""), children: [
2225
- /* @__PURE__ */ jsx12(
2276
+ /* @__PURE__ */ jsx13(
2226
2277
  "input",
2227
2278
  {
2228
2279
  type: "radio",
@@ -2240,14 +2291,14 @@ function KjunRadio({
2240
2291
  }
2241
2292
  }
2242
2293
  ),
2243
- /* @__PURE__ */ jsx12(
2294
+ /* @__PURE__ */ jsx13(
2244
2295
  "span",
2245
2296
  {
2246
2297
  className: "kjun-choice-control kjun-radio" + (selected ? " kjun-radio--checked" : ""),
2247
- children: selected && /* @__PURE__ */ jsx12("span", { className: "kjun-radio-dot" })
2298
+ children: selected && /* @__PURE__ */ jsx13("span", { className: "kjun-radio-dot" })
2248
2299
  }
2249
2300
  ),
2250
- (children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
2301
+ (children || label) && /* @__PURE__ */ jsx13("span", { className: "kjun-choice-label", children: children || label })
2251
2302
  ] });
2252
2303
  }
2253
2304
  function KjunRadioGroup({
@@ -2260,7 +2311,7 @@ function KjunRadioGroup({
2260
2311
  onChange
2261
2312
  }) {
2262
2313
  const name = "kjun-" + useId5();
2263
- return /* @__PURE__ */ jsx12(
2314
+ return /* @__PURE__ */ jsx13(
2264
2315
  RadioContext.Provider,
2265
2316
  {
2266
2317
  value: {
@@ -2271,7 +2322,7 @@ function KjunRadioGroup({
2271
2322
  onChange == null ? void 0 : onChange(next);
2272
2323
  }
2273
2324
  },
2274
- children: /* @__PURE__ */ jsx12(
2325
+ children: /* @__PURE__ */ jsx13(
2275
2326
  "div",
2276
2327
  {
2277
2328
  role: "radiogroup",
@@ -2283,7 +2334,7 @@ function KjunRadioGroup({
2283
2334
  flexWrap: direction === "vertical" ? "nowrap" : "wrap",
2284
2335
  gap: direction === "vertical" ? tokens12.dimension.value8 : tokens12.dimension.value16
2285
2336
  },
2286
- children: children || options.map((option) => /* @__PURE__ */ jsx12(
2337
+ children: children || options.map((option) => /* @__PURE__ */ jsx13(
2287
2338
  KjunRadio,
2288
2339
  {
2289
2340
  val: option.value,
@@ -2314,7 +2365,7 @@ var KjunTextarea = forwardRef3(
2314
2365
  var _a;
2315
2366
  const field = useKjunField();
2316
2367
  const spec = tokens12.input[size];
2317
- return /* @__PURE__ */ jsx12(
2368
+ return /* @__PURE__ */ jsx13(
2318
2369
  "textarea",
2319
2370
  {
2320
2371
  ...props,
@@ -2371,7 +2422,7 @@ function KjunButtonGroup({
2371
2422
  width: fullWidth ? "100%" : "fit-content"
2372
2423
  },
2373
2424
  children: [
2374
- /* @__PURE__ */ jsx12(
2425
+ /* @__PURE__ */ jsx13(
2375
2426
  "span",
2376
2427
  {
2377
2428
  ref: indicator,
@@ -2398,10 +2449,10 @@ function KjunButtonGroup({
2398
2449
  onChange == null ? void 0 : onChange(option.value);
2399
2450
  },
2400
2451
  children: [
2401
- option.icon && /* @__PURE__ */ jsx12(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2452
+ option.icon && /* @__PURE__ */ jsx13(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2402
2453
  /* @__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 })
2454
+ /* @__PURE__ */ jsx13("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2455
+ /* @__PURE__ */ jsx13("span", { children: option.label })
2405
2456
  ] })
2406
2457
  ]
2407
2458
  },
@@ -2423,7 +2474,7 @@ function KjunFilterGroup({
2423
2474
  onChange
2424
2475
  }) {
2425
2476
  const selected = (v) => multiple ? Array.isArray(value) && (v === null ? value.length === 0 : value.includes(v)) : value === v;
2426
- return /* @__PURE__ */ jsx12(
2477
+ return /* @__PURE__ */ jsx13(
2427
2478
  "div",
2428
2479
  {
2429
2480
  role: "group",
@@ -2431,7 +2482,7 @@ function KjunFilterGroup({
2431
2482
  className: "kjun-filter-group",
2432
2483
  "data-scroll": scroll,
2433
2484
  onKeyDown: groupKeydown,
2434
- children: options.map((option) => /* @__PURE__ */ jsx12(
2485
+ children: options.map((option) => /* @__PURE__ */ jsx13(
2435
2486
  "button",
2436
2487
  {
2437
2488
  type: "button",
@@ -2453,11 +2504,11 @@ function KjunFilterGroup({
2453
2504
  ...selectionTypeStyle(size, selected(option.value))
2454
2505
  },
2455
2506
  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 }),
2507
+ option.dot && /* @__PURE__ */ jsx13("i", { style: { background: option.dot } }),
2508
+ option.icon && /* @__PURE__ */ jsx13(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
2458
2509
  /* @__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 })
2510
+ /* @__PURE__ */ jsx13("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
2511
+ /* @__PURE__ */ jsx13("span", { children: option.label })
2461
2512
  ] })
2462
2513
  ]
2463
2514
  }
@@ -2473,7 +2524,7 @@ function KjunFilterGroup({
2473
2524
  import { isComposingKey as isComposingKey3, tokens as tokens13 } from "@kjun-ui/tokens";
2474
2525
  import { useEffect as useEffect5, useRef as useRef13 } from "react";
2475
2526
  import { Popover as AriaPopover } from "react-aria-components";
2476
- import { jsx as jsx13 } from "react/jsx-runtime";
2527
+ import { jsx as jsx14 } from "react/jsx-runtime";
2477
2528
  function FloatingPanel({
2478
2529
  open,
2479
2530
  onOpenChange,
@@ -2511,7 +2562,7 @@ function FloatingPanel({
2511
2562
  return () => document2.removeEventListener("keydown", dismissBeforeFocus, true);
2512
2563
  }, [open, nonModal, triggerRef, onOpenChange, layer.keyboardManaged]);
2513
2564
  if (container === null || layer.blocked) return null;
2514
- return /* @__PURE__ */ jsx13(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx13(
2565
+ return /* @__PURE__ */ jsx14(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx14(
2515
2566
  AriaPopover,
2516
2567
  {
2517
2568
  ref: panel,
@@ -2606,7 +2657,7 @@ function installNonModalPopover({ panel, trigger, close }) {
2606
2657
  }
2607
2658
 
2608
2659
  // packages/react/src/popover.tsx
2609
- import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
2660
+ import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2610
2661
  function KjunPopover({
2611
2662
  noPadding = false,
2612
2663
  open: controlled,
@@ -2652,9 +2703,9 @@ function KjunPopover({
2652
2703
  }
2653
2704
  });
2654
2705
  });
2655
- const content = /* @__PURE__ */ jsx14("div", { className: "kjun-popover-content", "data-no-padding": noPadding, children: typeof children === "function" ? children(() => change(false)) : children });
2706
+ const content = /* @__PURE__ */ jsx15("div", { className: "kjun-popover-content", "data-no-padding": noPadding, children: typeof children === "function" ? children(() => change(false)) : children });
2656
2707
  return /* @__PURE__ */ jsxs10(Fragment3, { children: [
2657
- /* @__PURE__ */ jsx14(
2708
+ /* @__PURE__ */ jsx15(
2658
2709
  "div",
2659
2710
  {
2660
2711
  ref,
@@ -2674,7 +2725,7 @@ function KjunPopover({
2674
2725
  children: typeof trigger === "function" ? trigger(open) : trigger
2675
2726
  }
2676
2727
  ),
2677
- /* @__PURE__ */ jsx14(
2728
+ /* @__PURE__ */ jsx15(
2678
2729
  FloatingPanel,
2679
2730
  {
2680
2731
  open,
@@ -2697,11 +2748,11 @@ function KjunPopover({
2697
2748
  style: { maxHeight: maxHeight != null ? maxHeight : `min(60vh, ${tokens14.extensions.floating.maxHeight}px)`, overflowY: header != null ? void 0 : "auto" }
2698
2749
  };
2699
2750
  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, {})
2751
+ header != null && /* @__PURE__ */ jsx15("div", { id: id + "-header", className: "kjun-popover-header", children: header }),
2752
+ header != null ? /* @__PURE__ */ jsx15("div", { className: "kjun-popover-body", children: content }) : content,
2753
+ /* @__PURE__ */ jsx15(FeedbackLayerOutlet, {})
2703
2754
  ] });
2704
- return modal ? /* @__PURE__ */ jsx14(Dialog2, { ...dialogProps, ref: focusContent, children: body }) : /* @__PURE__ */ jsx14("section", { ...dialogProps, role: "dialog", tabIndex: -1, ref: focusContent, children: body });
2755
+ return modal ? /* @__PURE__ */ jsx15(Dialog2, { ...dialogProps, ref: focusContent, children: body }) : /* @__PURE__ */ jsx15("section", { ...dialogProps, role: "dialog", tabIndex: -1, ref: focusContent, children: body });
2705
2756
  })()
2706
2757
  }
2707
2758
  )
@@ -2723,7 +2774,7 @@ function KjunTooltip({
2723
2774
  };
2724
2775
  const layer = useLayer(open, open, "tooltip", () => setOpen(false));
2725
2776
  return /* @__PURE__ */ jsxs10(TooltipTrigger, { isOpen: open && !layer.blocked, onOpenChange: setOpen, delay, closeDelay: 0, isDisabled: !content || !layer.scopeActive, children: [
2726
- /* @__PURE__ */ jsx14(Focusable, { children }),
2777
+ /* @__PURE__ */ jsx15(Focusable, { children }),
2727
2778
  container !== null && /* @__PURE__ */ jsxs10(
2728
2779
  Tooltip,
2729
2780
  {
@@ -2733,7 +2784,7 @@ function KjunTooltip({
2733
2784
  offset: tokens14.extensions.floating.anchorGap,
2734
2785
  className: "kjun-scope kjun-tooltip",
2735
2786
  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" }) }) }),
2787
+ /* @__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
2788
  content
2738
2789
  ]
2739
2790
  }
@@ -2745,7 +2796,7 @@ function KjunTooltip({
2745
2796
  import { tokens as tokens15 } from "@kjun-ui/tokens";
2746
2797
  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
2798
  import { Menu, MenuItem, Separator } from "react-aria-components";
2748
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
2799
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
2749
2800
  var DropdownContext = createContext10(null);
2750
2801
  function KjunDropdown({
2751
2802
  disabled = false,
@@ -2816,7 +2867,7 @@ function KjunDropdown({
2816
2867
  if (unavailable) change(false);
2817
2868
  }, [unavailable]);
2818
2869
  return /* @__PURE__ */ jsxs11(DropdownContext.Provider, { value: () => change(false), children: [
2819
- /* @__PURE__ */ jsx15(
2870
+ /* @__PURE__ */ jsx16(
2820
2871
  "div",
2821
2872
  {
2822
2873
  ref,
@@ -2828,10 +2879,10 @@ function KjunDropdown({
2828
2879
  change(true);
2829
2880
  }
2830
2881
  },
2831
- children: /* @__PURE__ */ jsx15("span", { children: bindTrigger(trigger) })
2882
+ children: /* @__PURE__ */ jsx16("span", { children: bindTrigger(trigger) })
2832
2883
  }
2833
2884
  ),
2834
- /* @__PURE__ */ jsx15(
2885
+ /* @__PURE__ */ jsx16(
2835
2886
  FloatingPanel,
2836
2887
  {
2837
2888
  open,
@@ -2839,7 +2890,7 @@ function KjunDropdown({
2839
2890
  triggerRef: ref,
2840
2891
  placement,
2841
2892
  className: "kjun-dropdown",
2842
- children: /* @__PURE__ */ jsx15(
2893
+ children: /* @__PURE__ */ jsx16(
2843
2894
  Menu,
2844
2895
  {
2845
2896
  ref: bindMenu,
@@ -2891,9 +2942,9 @@ function KjunDropdownItem({
2891
2942
  close == null ? void 0 : close();
2892
2943
  },
2893
2944
  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(
2945
+ icon && /* @__PURE__ */ jsx16(KjunIcon, { name: icon, className: "kjun-menu-icon", size: tokens15.extensions.menu.iconSize }),
2946
+ /* @__PURE__ */ jsx16("span", { children }),
2947
+ selected !== null && /* @__PURE__ */ jsx16(
2897
2948
  KjunIcon,
2898
2949
  {
2899
2950
  name: "check",
@@ -2907,7 +2958,7 @@ function KjunDropdownItem({
2907
2958
  );
2908
2959
  }
2909
2960
  function KjunDropdownDivider() {
2910
- return /* @__PURE__ */ jsx15(Separator, { className: "kjun-menu-divider" });
2961
+ return /* @__PURE__ */ jsx16(Separator, { className: "kjun-menu-divider" });
2911
2962
  }
2912
2963
  function KjunMenuButton({
2913
2964
  label,
@@ -2924,7 +2975,7 @@ function KjunMenuButton({
2924
2975
  ...props
2925
2976
  }) {
2926
2977
  const [open, setOpen] = useState11(false);
2927
- const button = /* @__PURE__ */ jsx15(
2978
+ const button = /* @__PURE__ */ jsx16(
2928
2979
  KjunButton,
2929
2980
  {
2930
2981
  className: "kjun-menu-button",
@@ -2938,7 +2989,7 @@ function KjunMenuButton({
2938
2989
  children: compact ? void 0 : label
2939
2990
  }
2940
2991
  );
2941
- return /* @__PURE__ */ jsx15(
2992
+ return /* @__PURE__ */ jsx16(
2942
2993
  KjunDropdown,
2943
2994
  {
2944
2995
  ...props,
@@ -2950,7 +3001,7 @@ function KjunMenuButton({
2950
3001
  setOpen(false);
2951
3002
  onClose == null ? void 0 : onClose();
2952
3003
  },
2953
- trigger: tooltip ? /* @__PURE__ */ jsx15(
3004
+ trigger: tooltip ? /* @__PURE__ */ jsx16(
2954
3005
  KjunTooltip,
2955
3006
  {
2956
3007
  content: open ? "" : tooltip,
@@ -2965,8 +3016,19 @@ function KjunMenuButton({
2965
3016
 
2966
3017
  // packages/react/src/drawer.tsx
2967
3018
  import { tokens as tokens16 } from "@kjun-ui/tokens";
3019
+
3020
+ // shared/package-runtime/drawer-geometry.ts
3021
+ function drawerOverlayVars({ safeAreaTop = 0, safeAreaBottom = 0, maxHeight }) {
3022
+ return {
3023
+ "--_kjun-drawer-safe-top": Math.max(0, safeAreaTop) + "px",
3024
+ "--_kjun-drawer-safe-bottom": Math.max(0, safeAreaBottom) + "px",
3025
+ ...maxHeight === void 0 ? {} : { "--_kjun-drawer-max-height": `min(${maxHeight}px, 100dvh)` }
3026
+ };
3027
+ }
3028
+
3029
+ // packages/react/src/drawer.tsx
2968
3030
  import { Dialog as Dialog3, Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
2969
- import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
3031
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
2970
3032
  function KjunDrawer({
2971
3033
  open,
2972
3034
  onOpenChange,
@@ -2981,7 +3043,10 @@ function KjunDrawer({
2981
3043
  footer,
2982
3044
  children,
2983
3045
  onClose,
2984
- ariaLabel
3046
+ ariaLabel,
3047
+ safeAreaTop = 0,
3048
+ safeAreaBottom = 0,
3049
+ maxHeight
2985
3050
  }) {
2986
3051
  const motion = usePresence(open, useReducedMotion(), tokens16.motion.layerExit);
2987
3052
  const container = useKjunPortalContainer();
@@ -2994,10 +3059,10 @@ function KjunDrawer({
2994
3059
  if (closeOnEsc) close();
2995
3060
  });
2996
3061
  if (container === null) return null;
2997
- return /* @__PURE__ */ jsx16(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx16(
3062
+ return /* @__PURE__ */ jsx17(LayerScope.Provider, { value: layer.id, children: /* @__PURE__ */ jsx17(
2998
3063
  ModalOverlay2,
2999
3064
  {
3000
- style: { zIndex: layer.zIndex },
3065
+ style: { zIndex: layer.zIndex, ...drawerOverlayVars({ safeAreaTop, safeAreaBottom, maxHeight }) },
3001
3066
  isOpen: motion.present && layer.active,
3002
3067
  isExiting: motion.present && !layer.active,
3003
3068
  onOpenChange: (v) => {
@@ -3011,7 +3076,7 @@ function KjunDrawer({
3011
3076
  "data-motion-open": String(motion.active),
3012
3077
  inert: !open || !layer.active,
3013
3078
  "data-position": position,
3014
- children: /* @__PURE__ */ jsx16(
3079
+ children: /* @__PURE__ */ jsx17(
3015
3080
  Modal2,
3016
3081
  {
3017
3082
  className: "kjun-drawer",
@@ -3030,8 +3095,8 @@ function KjunDrawer({
3030
3095
  },
3031
3096
  children: [
3032
3097
  (title || header || closable) && /* @__PURE__ */ jsxs12("div", { className: "kjun-drawer-header", children: [
3033
- /* @__PURE__ */ jsx16("div", { children: header || /* @__PURE__ */ jsx16("h2", { children: title }) }),
3034
- closable && /* @__PURE__ */ jsx16(
3098
+ /* @__PURE__ */ jsx17("div", { children: header || /* @__PURE__ */ jsx17("h2", { children: title }) }),
3099
+ closable && /* @__PURE__ */ jsx17(
3035
3100
  KjunButton,
3036
3101
  {
3037
3102
  size: "sm",
@@ -3039,11 +3104,11 @@ function KjunDrawer({
3039
3104
  ariaLabel: "\uB2EB\uAE30",
3040
3105
  onClick: close,
3041
3106
  style: { borderRadius: tokens16.extensions.drawer.closeRadius, width: tokens16.extensions.drawer.closeSize, height: tokens16.extensions.drawer.closeSize, padding: 0 },
3042
- children: /* @__PURE__ */ jsx16(KjunIcon, { name: "x", size: tokens16.extensions.drawer.closeIconSize })
3107
+ children: /* @__PURE__ */ jsx17(KjunIcon, { name: "x", size: tokens16.extensions.drawer.closeIconSize })
3043
3108
  }
3044
3109
  )
3045
3110
  ] }),
3046
- /* @__PURE__ */ jsx16(
3111
+ /* @__PURE__ */ jsx17(
3047
3112
  "div",
3048
3113
  {
3049
3114
  className: "kjun-drawer-body",
@@ -3051,8 +3116,8 @@ function KjunDrawer({
3051
3116
  children
3052
3117
  }
3053
3118
  ),
3054
- footer && /* @__PURE__ */ jsx16("div", { className: "kjun-drawer-footer", children: footer }),
3055
- /* @__PURE__ */ jsx16(FeedbackLayerOutlet, {})
3119
+ footer && /* @__PURE__ */ jsx17("div", { className: "kjun-drawer-footer", children: footer }),
3120
+ /* @__PURE__ */ jsx17(FeedbackLayerOutlet, {})
3056
3121
  ]
3057
3122
  }
3058
3123
  )
@@ -3182,7 +3247,7 @@ import {
3182
3247
  useRef as useRef16,
3183
3248
  useState as useState13
3184
3249
  } from "react";
3185
- import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
3250
+ import { Fragment as Fragment4, jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
3186
3251
  function KjunCombobox({
3187
3252
  value,
3188
3253
  options = [],
@@ -3214,7 +3279,7 @@ function KjunCombobox({
3214
3279
  onSearch,
3215
3280
  onClear
3216
3281
  });
3217
- return /* @__PURE__ */ jsx17(
3282
+ return /* @__PURE__ */ jsx18(
3218
3283
  SearchField,
3219
3284
  {
3220
3285
  error,
@@ -3288,7 +3353,7 @@ function SearchField({
3288
3353
  (_a = ref.current) == null ? void 0 : _a.focus();
3289
3354
  };
3290
3355
  return /* @__PURE__ */ jsxs13(Fragment4, { children: [
3291
- /* @__PURE__ */ jsx17(
3356
+ /* @__PURE__ */ jsx18(
3292
3357
  KjunInput,
3293
3358
  {
3294
3359
  error,
@@ -3363,7 +3428,7 @@ function SearchField({
3363
3428
  }
3364
3429
  }
3365
3430
  ),
3366
- /* @__PURE__ */ jsx17(
3431
+ /* @__PURE__ */ jsx18(
3367
3432
  FloatingPanel,
3368
3433
  {
3369
3434
  field: true,
@@ -3374,14 +3439,14 @@ function SearchField({
3374
3439
  placement: "bottom-start",
3375
3440
  matchTriggerWidth: true,
3376
3441
  className: "kjun-select-panel",
3377
- children: /* @__PURE__ */ jsx17(
3442
+ children: /* @__PURE__ */ jsx18(
3378
3443
  "div",
3379
3444
  {
3380
3445
  id,
3381
3446
  role: "listbox",
3382
3447
  "aria-label": ariaLabel || placeholder,
3383
3448
  onMouseDown: (e) => e.preventDefault(),
3384
- 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(
3449
+ 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(
3385
3450
  "div",
3386
3451
  {
3387
3452
  id: id + "-" + i,
@@ -3399,7 +3464,7 @@ function SearchField({
3399
3464
  children: (renderOption == null ? void 0 : renderOption(o)) || optionLabel(o, labelKey)
3400
3465
  },
3401
3466
  optionKey(o, itemKey, i)
3402
- )) : /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", children: emptyText })
3467
+ )) : /* @__PURE__ */ jsx18("div", { className: "kjun-select-empty", children: emptyText })
3403
3468
  }
3404
3469
  )
3405
3470
  }
@@ -3412,7 +3477,7 @@ import { tokens as tokens17 } from "@kjun-ui/tokens";
3412
3477
  import {
3413
3478
  useState as useState14
3414
3479
  } from "react";
3415
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
3480
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
3416
3481
  function KjunDatePicker({
3417
3482
  value,
3418
3483
  size = "md",
@@ -3433,7 +3498,7 @@ function KjunDatePicker({
3433
3498
  ["--_kjun-date-icon-inset"]: tokens17.input[size].padding + "px",
3434
3499
  ["--_kjun-date-icon-size"]: tokens17.input[size].iconSize + "px"
3435
3500
  }, children: [
3436
- /* @__PURE__ */ jsx18(
3501
+ /* @__PURE__ */ jsx19(
3437
3502
  KjunInput,
3438
3503
  {
3439
3504
  ...props,
@@ -3455,7 +3520,7 @@ function KjunDatePicker({
3455
3520
  }
3456
3521
  }
3457
3522
  ),
3458
- !focus && /* @__PURE__ */ jsx18(
3523
+ !focus && /* @__PURE__ */ jsx19(
3459
3524
  "span",
3460
3525
  {
3461
3526
  "aria-hidden": "true",
@@ -3564,7 +3629,7 @@ function useSearchInputModel({
3564
3629
  }
3565
3630
 
3566
3631
  // packages/react/src/search-input.tsx
3567
- import { jsx as jsx19 } from "react/jsx-runtime";
3632
+ import { jsx as jsx20 } from "react/jsx-runtime";
3568
3633
  function KjunSearchInput({
3569
3634
  value,
3570
3635
  placeholder = "\uAC80\uC0C9...",
@@ -3600,7 +3665,7 @@ function KjunSearchInput({
3600
3665
  onClear == null ? void 0 : onClear();
3601
3666
  };
3602
3667
  if (!loadOptions)
3603
- return /* @__PURE__ */ jsx19(
3668
+ return /* @__PURE__ */ jsx20(
3604
3669
  KjunInput,
3605
3670
  {
3606
3671
  error,
@@ -3616,7 +3681,7 @@ function KjunSearchInput({
3616
3681
  onEnter
3617
3682
  }
3618
3683
  );
3619
- return /* @__PURE__ */ jsx19(
3684
+ return /* @__PURE__ */ jsx20(
3620
3685
  SearchField,
3621
3686
  {
3622
3687
  error,
@@ -3697,7 +3762,7 @@ import { createContext as createContext11 } from "react";
3697
3762
  var CompoundControlContext = createContext11(null);
3698
3763
 
3699
3764
  // packages/react/src/select-control.tsx
3700
- import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
3765
+ import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
3701
3766
  function KjunSelect({
3702
3767
  value,
3703
3768
  options = [],
@@ -3795,12 +3860,12 @@ function KjunSelect({
3795
3860
  }
3796
3861
  },
3797
3862
  children: [
3798
- /* @__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 }),
3799
- /* @__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)" } })
3863
+ /* @__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 }),
3864
+ /* @__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)" } })
3800
3865
  ]
3801
3866
  }
3802
3867
  ),
3803
- clearable && !!label && /* @__PURE__ */ jsx20(
3868
+ clearable && !!label && /* @__PURE__ */ jsx21(
3804
3869
  KjunButton,
3805
3870
  {
3806
3871
  size: "sm",
@@ -3822,11 +3887,11 @@ function KjunSelect({
3822
3887
  onClear == null ? void 0 : onClear();
3823
3888
  (_a = ref.current) == null ? void 0 : _a.focus();
3824
3889
  },
3825
- children: /* @__PURE__ */ jsx20(KjunIcon, { name: "x", size: spec.iconSize })
3890
+ children: /* @__PURE__ */ jsx21(KjunIcon, { name: "x", size: spec.iconSize })
3826
3891
  }
3827
3892
  )
3828
3893
  ] }),
3829
- /* @__PURE__ */ jsx20(
3894
+ /* @__PURE__ */ jsx21(
3830
3895
  FloatingPanel,
3831
3896
  {
3832
3897
  field: true,
@@ -3836,9 +3901,9 @@ function KjunSelect({
3836
3901
  placement: "bottom-start",
3837
3902
  matchTriggerWidth: true,
3838
3903
  className: "kjun-select-panel kjun-select-options-panel",
3839
- children: /* @__PURE__ */ jsx20(FieldContext.Provider, { value: null, children: /* @__PURE__ */ jsxs15("div", { ref: menu, className: "kjun-select-content", children: [
3840
- menuHeader && /* @__PURE__ */ jsx20("div", { className: "kjun-select-header", children: menuHeader }),
3841
- searchable && /* @__PURE__ */ jsx20("div", { className: "kjun-select-search", children: /* @__PURE__ */ jsx20(
3904
+ children: /* @__PURE__ */ jsx21(FieldContext.Provider, { value: null, children: /* @__PURE__ */ jsxs15("div", { ref: menu, className: "kjun-select-content", children: [
3905
+ menuHeader && /* @__PURE__ */ jsx21("div", { className: "kjun-select-header", children: menuHeader }),
3906
+ searchable && /* @__PURE__ */ jsx21("div", { className: "kjun-select-search", children: /* @__PURE__ */ jsx21(
3842
3907
  KjunInput,
3843
3908
  {
3844
3909
  autoFocus: true,
@@ -3869,8 +3934,8 @@ function KjunSelect({
3869
3934
  }
3870
3935
  }
3871
3936
  ) }),
3872
- loading && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx20(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }),
3873
- /* @__PURE__ */ jsx20(
3937
+ loading && /* @__PURE__ */ jsx21("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx21(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }),
3938
+ /* @__PURE__ */ jsx21(
3874
3939
  ListBox,
3875
3940
  {
3876
3941
  id,
@@ -3899,8 +3964,8 @@ function KjunSelect({
3899
3964
  textValue: optionLabel(o, labelKey),
3900
3965
  className: "kjun-option",
3901
3966
  children: [
3902
- (renderOption == null ? void 0 : renderOption(o, selected(o))) || /* @__PURE__ */ jsx20("span", { children: optionLabel(o, labelKey) }),
3903
- selected(o) && /* @__PURE__ */ jsx20(KjunIcon, { name: "check", size: tokens18.extensions.menu.iconSize })
3967
+ (renderOption == null ? void 0 : renderOption(o, selected(o))) || /* @__PURE__ */ jsx21("span", { children: optionLabel(o, labelKey) }),
3968
+ selected(o) && /* @__PURE__ */ jsx21(KjunIcon, { name: "check", size: tokens18.extensions.menu.iconSize })
3904
3969
  ]
3905
3970
  },
3906
3971
  key
@@ -3908,8 +3973,8 @@ function KjunSelect({
3908
3973
  },
3909
3974
  session
3910
3975
  ),
3911
- !loading && !matching.length && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: "\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }),
3912
- !loading && visible.length < matching.length && /* @__PURE__ */ jsx20(
3976
+ !loading && !matching.length && /* @__PURE__ */ jsx21("div", { className: "kjun-select-empty", children: "\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }),
3977
+ !loading && visible.length < matching.length && /* @__PURE__ */ jsx21(
3913
3978
  KjunButton,
3914
3979
  {
3915
3980
  size: "sm",
@@ -3931,7 +3996,7 @@ import { tokens as tokens20 } from "@kjun-ui/tokens";
3931
3996
  // packages/react/src/collapse.tsx
3932
3997
  import { tokens as tokens19 } from "@kjun-ui/tokens";
3933
3998
  import { useLayoutEffect as useLayoutEffect11, useRef as useRef20, useState as useState18 } from "react";
3934
- import { jsx as jsx21 } from "react/jsx-runtime";
3999
+ import { jsx as jsx22 } from "react/jsx-runtime";
3935
4000
  function Collapse({ open, children }) {
3936
4001
  const reduced = useReducedMotion();
3937
4002
  const [retained, setRetained] = useState18(open);
@@ -3991,7 +4056,7 @@ function Collapse({ open, children }) {
3991
4056
  }
3992
4057
  };
3993
4058
  }, [open, reduced, present]);
3994
- 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;
4059
+ 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;
3995
4060
  }
3996
4061
 
3997
4062
  // shared/package-runtime/navigation.ts
@@ -4107,7 +4172,7 @@ import {
4107
4172
  useState as useState20
4108
4173
  } from "react";
4109
4174
  import { Tab, TabList, TabPanel, Tabs } from "react-aria-components";
4110
- import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
4175
+ import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
4111
4176
  function KjunTabs({
4112
4177
  value,
4113
4178
  items = [],
@@ -4167,7 +4232,7 @@ function KjunTabs({
4167
4232
  children: [
4168
4233
  /* @__PURE__ */ jsxs16("div", { className: "kjun-tabs-header", children: [
4169
4234
  /* @__PURE__ */ jsxs16("div", { className: "kjun-tabs-track", ref: group, tabIndex: -1, children: [
4170
- /* @__PURE__ */ jsx22(TabList, { "aria-label": ariaLabel, className: "kjun-tabs-list", children: tabs.map((tab) => /* @__PURE__ */ jsxs16(
4235
+ /* @__PURE__ */ jsx23(TabList, { "aria-label": ariaLabel, className: "kjun-tabs-list", children: tabs.map((tab) => /* @__PURE__ */ jsxs16(
4171
4236
  Tab,
4172
4237
  {
4173
4238
  id: tab.name,
@@ -4207,10 +4272,10 @@ function KjunTabs({
4207
4272
  onTouchEnd: clear,
4208
4273
  onTouchCancel: clear,
4209
4274
  children: [
4210
- tab.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: tab.icon, size: tokens20.extensions.tabs.iconSize }),
4275
+ tab.icon && /* @__PURE__ */ jsx23(KjunIcon, { name: tab.icon, size: tokens20.extensions.tabs.iconSize }),
4211
4276
  " ",
4212
- /* @__PURE__ */ jsx22("span", { className: "kjun-motion-label", "data-label": tab.label, children: /* @__PURE__ */ jsx22("span", { children: tab.label }) }),
4213
- tab.badge != null && /* @__PURE__ */ jsx22(
4277
+ /* @__PURE__ */ jsx23("span", { className: "kjun-motion-label", "data-label": tab.label, children: /* @__PURE__ */ jsx23("span", { children: tab.label }) }),
4278
+ tab.badge != null && /* @__PURE__ */ jsx23(
4214
4279
  "span",
4215
4280
  {
4216
4281
  className: "kjun-tab-badge",
@@ -4224,17 +4289,17 @@ function KjunTabs({
4224
4289
  },
4225
4290
  tab.name
4226
4291
  )) }),
4227
- /* @__PURE__ */ jsx22("span", { ref: indicator, className: "kjun-tab-indicator", "aria-hidden": "true", hidden: true })
4292
+ /* @__PURE__ */ jsx23("span", { ref: indicator, className: "kjun-tab-indicator", "aria-hidden": "true", hidden: true })
4228
4293
  ] }),
4229
4294
  actions
4230
4295
  ] }),
4231
- children && /* @__PURE__ */ jsx22("div", { className: "kjun-tab-content", children })
4296
+ children && /* @__PURE__ */ jsx23("div", { className: "kjun-tab-content", children })
4232
4297
  ]
4233
4298
  }
4234
4299
  );
4235
4300
  }
4236
4301
  function KjunTabPane({ name, children }) {
4237
- return /* @__PURE__ */ jsx22(
4302
+ return /* @__PURE__ */ jsx23(
4238
4303
  TabPanel,
4239
4304
  {
4240
4305
  id: name,
@@ -4252,11 +4317,11 @@ function KjunAccordion({
4252
4317
  children
4253
4318
  }) {
4254
4319
  const state = useAccordionState(multiple);
4255
- return /* @__PURE__ */ jsx22(
4320
+ return /* @__PURE__ */ jsx23(
4256
4321
  AccordionContext.Provider,
4257
4322
  {
4258
4323
  value: state,
4259
- children: /* @__PURE__ */ jsx22("div", { className: "kjun-accordion", "data-tone": tone, children })
4324
+ children: /* @__PURE__ */ jsx23("div", { className: "kjun-accordion", "data-tone": tone, children })
4260
4325
  }
4261
4326
  );
4262
4327
  }
@@ -4283,8 +4348,8 @@ function KjunAccordionItem({
4283
4348
  className: "kjun-accordion-trigger",
4284
4349
  onClick: () => group ? group.toggle(id) : setOwn(!own),
4285
4350
  children: [
4286
- /* @__PURE__ */ jsx22("span", { className: "kjun-accordion-heading", children: header || title }),
4287
- /* @__PURE__ */ jsx22(
4351
+ /* @__PURE__ */ jsx23("span", { className: "kjun-accordion-heading", children: header || title }),
4352
+ /* @__PURE__ */ jsx23(
4288
4353
  KjunIcon,
4289
4354
  {
4290
4355
  name: "chevron-down",
@@ -4296,7 +4361,7 @@ function KjunAccordionItem({
4296
4361
  ]
4297
4362
  }
4298
4363
  ),
4299
- /* @__PURE__ */ jsx22(Collapse, { open, children: /* @__PURE__ */ jsx22(
4364
+ /* @__PURE__ */ jsx23(Collapse, { open, children: /* @__PURE__ */ jsx23(
4300
4365
  "div",
4301
4366
  {
4302
4367
  role: "region",
@@ -4313,16 +4378,16 @@ function KjunBreadcrumb({
4313
4378
  renderLink,
4314
4379
  ariaLabel = "\uD604\uC7AC \uC704\uCE58"
4315
4380
  }) {
4316
- return /* @__PURE__ */ jsx22("nav", { "aria-label": ariaLabel, className: "kjun-breadcrumb", children: items.map((item, i) => {
4381
+ return /* @__PURE__ */ jsx23("nav", { "aria-label": ariaLabel, className: "kjun-breadcrumb", children: items.map((item, i) => {
4317
4382
  const label = /* @__PURE__ */ jsxs16(Fragment7, { children: [
4318
- item.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: item.icon, size: tokens20.extensions.breadcrumb.iconSize }),
4383
+ item.icon && /* @__PURE__ */ jsx23(KjunIcon, { name: item.icon, size: tokens20.extensions.breadcrumb.iconSize }),
4319
4384
  " ",
4320
4385
  item.label
4321
4386
  ] });
4322
4387
  return /* @__PURE__ */ jsxs16(Fragment6, { children: [
4323
- i > 0 && /* @__PURE__ */ jsx22(KjunIcon, { name: "chevron-right", size: tokens20.extensions.breadcrumb.separatorSize }),
4388
+ i > 0 && /* @__PURE__ */ jsx23(KjunIcon, { name: "chevron-right", size: tokens20.extensions.breadcrumb.separatorSize }),
4324
4389
  " ",
4325
- 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 })
4390
+ 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 })
4326
4391
  ] }, i);
4327
4392
  }) });
4328
4393
  }
@@ -4359,14 +4424,14 @@ function KjunPagination({
4359
4424
  ).filter((v) => v >= 1 && v <= totalPages)
4360
4425
  ]);
4361
4426
  const pages = [...visible].sort((a, b) => a - b).flatMap((v, i, all) => i && v - all[i - 1] > 1 ? ["...", v] : [v]);
4362
- const button = (target, label, icon) => /* @__PURE__ */ jsx22(
4427
+ const button = (target, label, icon) => /* @__PURE__ */ jsx23(
4363
4428
  "button",
4364
4429
  {
4365
4430
  type: "button",
4366
4431
  "aria-label": label,
4367
4432
  disabled: target < 1 || target > totalPages || target === current,
4368
4433
  onClick: () => change(target),
4369
- children: /* @__PURE__ */ jsx22(KjunIcon, { name: icon, size: tokens20.extensions.pagination.iconSize })
4434
+ children: /* @__PURE__ */ jsx23(KjunIcon, { name: icon, size: tokens20.extensions.pagination.iconSize })
4370
4435
  }
4371
4436
  );
4372
4437
  return /* @__PURE__ */ jsxs16("nav", { "aria-label": "\uD398\uC774\uC9C0 \uD0D0\uC0C9", className: "kjun-pagination", children: [
@@ -4378,9 +4443,9 @@ function KjunPagination({
4378
4443
  " / ",
4379
4444
  formatter(totalRows),
4380
4445
  "\uAC1C"
4381
- ] }) : /* @__PURE__ */ jsx22("span", {}),
4446
+ ] }) : /* @__PURE__ */ jsx23("span", {}),
4382
4447
  /* @__PURE__ */ jsxs16("div", { className: "kjun-pagination-controls", children: [
4383
- showSizeSelector && /* @__PURE__ */ jsx22("div", { className: "kjun-pagination-size", children: /* @__PURE__ */ jsx22(
4448
+ showSizeSelector && /* @__PURE__ */ jsx23("div", { className: "kjun-pagination-size", children: /* @__PURE__ */ jsx23(
4384
4449
  KjunSelect,
4385
4450
  {
4386
4451
  size: "sm",
@@ -4397,7 +4462,7 @@ function KjunPagination({
4397
4462
  totalPages > 1 && /* @__PURE__ */ jsxs16("div", { className: "kjun-pagination-mobile", children: [
4398
4463
  button(current - 1, "\uC774\uC804 \uD398\uC774\uC9C0", "chevron-left"),
4399
4464
  /* @__PURE__ */ jsxs16("span", { children: [
4400
- /* @__PURE__ */ jsx22("strong", { children: current }),
4465
+ /* @__PURE__ */ jsx23("strong", { children: current }),
4401
4466
  " / ",
4402
4467
  totalPages
4403
4468
  ] }),
@@ -4407,7 +4472,7 @@ function KjunPagination({
4407
4472
  showFirstLast && button(1, "\uCCAB \uD398\uC774\uC9C0", "chevrons-left"),
4408
4473
  button(current - 1, "\uC774\uC804 \uD398\uC774\uC9C0", "chevron-left"),
4409
4474
  pages.map(
4410
- (n, i) => typeof n === "string" ? /* @__PURE__ */ jsx22("span", { children: "..." }, "dots" + i) : /* @__PURE__ */ jsx22(
4475
+ (n, i) => typeof n === "string" ? /* @__PURE__ */ jsx23("span", { children: "..." }, "dots" + i) : /* @__PURE__ */ jsx23(
4411
4476
  "button",
4412
4477
  {
4413
4478
  type: "button",
@@ -4434,7 +4499,7 @@ import {
4434
4499
  useRef as useRef23,
4435
4500
  useState as useState21
4436
4501
  } from "react";
4437
- import { Fragment as Fragment8, jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
4502
+ import { Fragment as Fragment8, jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
4438
4503
  function KjunIconToggle({
4439
4504
  active = false,
4440
4505
  activeIcon,
@@ -4454,7 +4519,7 @@ function KjunIconToggle({
4454
4519
  }) {
4455
4520
  var _a;
4456
4521
  const navigation = useContext13(TopNavigationContext);
4457
- return /* @__PURE__ */ jsx23(KjunTooltip, { content: disabled || loading ? "" : tooltip != null ? tooltip : ariaLabel, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
4522
+ return /* @__PURE__ */ jsx24(KjunTooltip, { content: disabled || loading ? "" : tooltip != null ? tooltip : ariaLabel, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx24(
4458
4523
  "button",
4459
4524
  {
4460
4525
  type: "button",
@@ -4469,7 +4534,7 @@ function KjunIconToggle({
4469
4534
  e.stopPropagation();
4470
4535
  onToggle == null ? void 0 : onToggle();
4471
4536
  },
4472
- children: loading ? navigation ? /* @__PURE__ */ jsx23(KjunIcon, { name: "loader-2", spin: true, size: navigation.iconSize }) : /* @__PURE__ */ jsx23(KjunSpinner, { size: "sm" }) : /* @__PURE__ */ jsx23(
4537
+ children: loading ? navigation ? /* @__PURE__ */ jsx24(KjunIcon, { name: "loader-2", spin: true, size: navigation.iconSize }) : /* @__PURE__ */ jsx24(KjunSpinner, { size: "sm" }) : /* @__PURE__ */ jsx24(
4473
4538
  KjunIcon,
4474
4539
  {
4475
4540
  name: active ? activeIcon : inactiveIcon || activeIcon,
@@ -4560,7 +4625,7 @@ function KjunCopyButton({
4560
4625
  }
4561
4626
  },
4562
4627
  children: [
4563
- /* @__PURE__ */ jsx23(
4628
+ /* @__PURE__ */ jsx24(
4564
4629
  KjunIcon,
4565
4630
  {
4566
4631
  name: copied ? "check" : "copy",
@@ -4568,11 +4633,11 @@ function KjunCopyButton({
4568
4633
  style: { color: copied ? "var(--_kjun-color-success)" : void 0 }
4569
4634
  }
4570
4635
  ),
4571
- text && !inline && /* @__PURE__ */ jsx23("span", { children: copied ? successText : text })
4636
+ text && !inline && /* @__PURE__ */ jsx24("span", { children: copied ? successText : text })
4572
4637
  ]
4573
4638
  }
4574
4639
  ),
4575
- /* @__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" : "" })
4640
+ /* @__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" : "" })
4576
4641
  ] });
4577
4642
  }
4578
4643
  function KjunRefreshButton({
@@ -4594,7 +4659,7 @@ function KjunRefreshButton({
4594
4659
  const reduced = useReducedMotion();
4595
4660
  const label = ariaLabel || [targetName, mode === "text" ? text : "\uC0C8\uB85C\uACE0\uCE68"].filter(Boolean).join(" ");
4596
4661
  const hint = (_a = tooltip != null ? tooltip : title) != null ? _a : mode === "icon" ? label : "";
4597
- return /* @__PURE__ */ jsx23(KjunTooltip, { content: props.disabled || props.loading ? "" : hint, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
4662
+ return /* @__PURE__ */ jsx24(KjunTooltip, { content: props.disabled || props.loading ? "" : hint, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx24(
4598
4663
  KjunButton,
4599
4664
  {
4600
4665
  ...props,
@@ -4622,7 +4687,7 @@ function KjunExternalLink({
4622
4687
  label,
4623
4688
  children
4624
4689
  }) {
4625
- const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link" }) : children;
4690
+ const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx24(KjunIcon, { name: "external-link" }) : children;
4626
4691
  return url ? /* @__PURE__ */ jsxs17(
4627
4692
  "a",
4628
4693
  {
@@ -4635,11 +4700,11 @@ function KjunExternalLink({
4635
4700
  onClick: (e) => e.stopPropagation(),
4636
4701
  children: [
4637
4702
  body,
4638
- mode === "text" && /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link", size: tokens21.iconSizes.small, className: "kjun-external-link-icon" }),
4639
- !name && /* @__PURE__ */ jsx23("span", { className: "kjun-sr-only", children: " (\uC0C8 \uCC3D)" })
4703
+ mode === "text" && /* @__PURE__ */ jsx24(KjunIcon, { name: "external-link", size: tokens21.iconSizes.small, className: "kjun-external-link-icon" }),
4704
+ !name && /* @__PURE__ */ jsx24("span", { className: "kjun-sr-only", children: " (\uC0C8 \uCC3D)" })
4640
4705
  ]
4641
4706
  }
4642
- ) : /* @__PURE__ */ jsx23("span", { "aria-label": name, children: body });
4707
+ ) : /* @__PURE__ */ jsx24("span", { "aria-label": name, children: body });
4643
4708
  }
4644
4709
  function KjunScrollFade({ children }) {
4645
4710
  const ref = useRef23(null), [edges, setEdges] = useState21({ left: false, right: false });
@@ -4664,7 +4729,7 @@ function KjunScrollFade({ children }) {
4664
4729
  return () => observer.disconnect();
4665
4730
  }, [children]);
4666
4731
  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;
4667
- return /* @__PURE__ */ jsx23(
4732
+ return /* @__PURE__ */ jsx24(
4668
4733
  "div",
4669
4734
  {
4670
4735
  ref,
@@ -4699,7 +4764,7 @@ function useLoadingReveal(active, delay = 0) {
4699
4764
  }
4700
4765
 
4701
4766
  // packages/react/src/data-state.tsx
4702
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
4767
+ import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
4703
4768
  function useQueryDisplay(props) {
4704
4769
  var _a;
4705
4770
  const [state, setState] = useState23(() => initialQueryDisplay(props));
@@ -4737,11 +4802,11 @@ function KjunDataState({
4737
4802
  }) {
4738
4803
  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);
4739
4804
  return /* @__PURE__ */ jsxs18("div", { className: "kjun-data-state", "aria-busy": !!query2.loading || refreshing, children: [
4740
- /* @__PURE__ */ jsx24("div", { className: "kjun-data-status-slot", children: (refreshing || state.queryRefreshing) && /* @__PURE__ */ jsxs18("div", { className: "kjun-data-status", role: "status", children: [
4741
- /* @__PURE__ */ jsx24(KjunSpinner, { size: "xs" }),
4742
- /* @__PURE__ */ jsx24("span", { children: refreshingText })
4805
+ /* @__PURE__ */ jsx25("div", { className: "kjun-data-status-slot", children: (refreshing || state.queryRefreshing) && /* @__PURE__ */ jsxs18("div", { className: "kjun-data-status", role: "status", children: [
4806
+ /* @__PURE__ */ jsx25(KjunSpinner, { size: "xs" }),
4807
+ /* @__PURE__ */ jsx25("span", { children: refreshingText })
4743
4808
  ] }) }),
4744
- state.initialLoading ? /* @__PURE__ */ jsx24(
4809
+ state.initialLoading ? /* @__PURE__ */ jsx25(
4745
4810
  "div",
4746
4811
  {
4747
4812
  className: "kjun-data-loading-block",
@@ -4749,13 +4814,13 @@ function KjunDataState({
4749
4814
  "aria-label": revealed ? loadingText : void 0,
4750
4815
  "aria-hidden": revealed ? void 0 : true,
4751
4816
  style: { paddingBlock: loadingPadding === "none" ? 0 : padding, visibility: revealed ? void 0 : "hidden" },
4752
- 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: [
4753
- /* @__PURE__ */ jsx24(KjunSpinner, { size: "md" }),
4754
- /* @__PURE__ */ jsx24("p", { children: loadingText })
4817
+ 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: [
4818
+ /* @__PURE__ */ jsx25(KjunSpinner, { size: "md" }),
4819
+ /* @__PURE__ */ jsx25("p", { children: loadingText })
4755
4820
  ] }))
4756
4821
  }
4757
- ) : 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,
4758
- (!concealed || preserveContent && state.hasQueryResult) && /* @__PURE__ */ jsx24(
4822
+ ) : 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,
4823
+ (!concealed || preserveContent && state.hasQueryResult) && /* @__PURE__ */ jsx25(
4759
4824
  "div",
4760
4825
  {
4761
4826
  className: "kjun-data-content" + (concealed ? " kjun-data-concealed" : ""),
@@ -4768,7 +4833,7 @@ function KjunDataState({
4768
4833
  },
4769
4834
  "content"
4770
4835
  ),
4771
- 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: [
4836
+ 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: [
4772
4837
  visibleRefreshError,
4773
4838
  " \xB7 \uC774\uC804 \uC870\uD68C \uACB0\uACFC\uB97C \uD45C\uC2DC\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4."
4774
4839
  ] }) })
@@ -4788,9 +4853,9 @@ var KjunErrorBoundary = class extends Component {
4788
4853
  }
4789
4854
  render() {
4790
4855
  return this.state.error ? this.props.fallback || /* @__PURE__ */ jsxs18("div", { className: "kjun-error-fallback", children: [
4791
- /* @__PURE__ */ jsx24("h3", { children: this.props.fallbackMessage || "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4" }),
4792
- /* @__PURE__ */ jsx24("p", { children: "\uB2E4\uC2DC \uC2DC\uB3C4\uD558\uBA74 \uBB38\uC81C\uAC00 \uD574\uACB0\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }),
4793
- /* @__PURE__ */ jsx24(
4856
+ /* @__PURE__ */ jsx25("h3", { children: this.props.fallbackMessage || "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4" }),
4857
+ /* @__PURE__ */ jsx25("p", { children: "\uB2E4\uC2DC \uC2DC\uB3C4\uD558\uBA74 \uBB38\uC81C\uAC00 \uD574\uACB0\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }),
4858
+ /* @__PURE__ */ jsx25(
4794
4859
  KjunButton,
4795
4860
  {
4796
4861
  onClick: () => {
@@ -4852,37 +4917,37 @@ function webMarketLayout(columns, showActions, widthClass) {
4852
4917
  }
4853
4918
 
4854
4919
  // packages/react/src/market-layout.tsx
4855
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
4920
+ import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
4856
4921
  function MarketColumns({ columns, showActions, widthClass }) {
4857
4922
  const layout = webMarketLayout(columns, showActions, widthClass);
4858
4923
  return /* @__PURE__ */ jsxs19("colgroup", { children: [
4859
- showActions && /* @__PURE__ */ jsx25("col", { style: { width: marketGeometry.actionsWidth } }),
4860
- layout.columns.map((column, index) => /* @__PURE__ */ jsx25("col", { ...column }, columns[index].key || index))
4924
+ showActions && /* @__PURE__ */ jsx26("col", { style: { width: marketGeometry.actionsWidth } }),
4925
+ layout.columns.map((column, index) => /* @__PURE__ */ jsx26("col", { ...column }, columns[index].key || index))
4861
4926
  ] });
4862
4927
  }
4863
4928
 
4864
4929
  // packages/react/src/market-skeleton.tsx
4865
- import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
4930
+ import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
4866
4931
  function KjunMarketTableSkeleton({ columns = [], rows = 8, showActions = false, alignClass, widthClass }) {
4867
4932
  const cols = normalizeMarketColumns(columns);
4868
- 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: [
4869
- /* @__PURE__ */ jsx26(MarketColumns, { columns: cols, showActions, widthClass }),
4870
- /* @__PURE__ */ jsx26("thead", { children: /* @__PURE__ */ jsxs20("tr", { children: [
4871
- 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 }) }) }),
4872
- 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))
4933
+ 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: [
4934
+ /* @__PURE__ */ jsx27(MarketColumns, { columns: cols, showActions, widthClass }),
4935
+ /* @__PURE__ */ jsx27("thead", { children: /* @__PURE__ */ jsxs20("tr", { children: [
4936
+ 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 }) }) }),
4937
+ 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))
4873
4938
  ] }) }),
4874
- /* @__PURE__ */ jsx26("tbody", { children: Array.from({ length: Math.max(0, rows) }, (_, row) => /* @__PURE__ */ jsxs20("tr", { children: [
4875
- 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 }) }) }),
4876
- 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: [
4877
- /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "80%", height: tokens24.extensions.skeleton.lineHeights.md }),
4878
- /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "60%", height: tokens24.extensions.skeleton.lineHeights.sm })
4879
- ] }) : /* @__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))
4939
+ /* @__PURE__ */ jsx27("tbody", { children: Array.from({ length: Math.max(0, rows) }, (_, row) => /* @__PURE__ */ jsxs20("tr", { children: [
4940
+ 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 }) }) }),
4941
+ 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: [
4942
+ /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: "80%", height: tokens24.extensions.skeleton.lineHeights.md }),
4943
+ /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: "60%", height: tokens24.extensions.skeleton.lineHeights.sm })
4944
+ ] }) : /* @__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))
4880
4945
  ] }, row)) })
4881
4946
  ] }) });
4882
4947
  }
4883
4948
 
4884
4949
  // packages/react/src/skeletons.tsx
4885
- import { Fragment as Fragment9, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
4950
+ import { Fragment as Fragment9, jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
4886
4951
  function KjunListSkeleton({
4887
4952
  rows = 8,
4888
4953
  variant = "market",
@@ -4890,10 +4955,10 @@ function KjunListSkeleton({
4890
4955
  avatarSize = tokens25.extensions.skeleton.listAvatarSize,
4891
4956
  quote = true
4892
4957
  }) {
4893
- 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: [
4894
- avatar && /* @__PURE__ */ jsx27(KjunSkeleton, { type: "avatar", width: avatarSize, height: avatarSize }),
4958
+ 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: [
4959
+ avatar && /* @__PURE__ */ jsx28(KjunSkeleton, { type: "avatar", width: avatarSize, height: avatarSize }),
4895
4960
  /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-label", children: [
4896
- /* @__PURE__ */ jsx27(
4961
+ /* @__PURE__ */ jsx28(
4897
4962
  KjunSkeleton,
4898
4963
  {
4899
4964
  type: "block",
@@ -4901,11 +4966,11 @@ function KjunListSkeleton({
4901
4966
  width: i % 2 ? "80%" : "65%"
4902
4967
  }
4903
4968
  ),
4904
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: "50%" })
4969
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: "50%" })
4905
4970
  ] }),
4906
4971
  quote && /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-quote", children: [
4907
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.quoteHeight, width: tokens25.extensions.skeleton.quoteWidth }),
4908
- /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: tokens25.extensions.skeleton.detailWidth })
4972
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.quoteHeight, width: tokens25.extensions.skeleton.quoteWidth }),
4973
+ /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: tokens25.extensions.skeleton.detailWidth })
4909
4974
  ] })
4910
4975
  ] }, i)) });
4911
4976
  }
@@ -4915,7 +4980,7 @@ function KjunFormSkeleton({
4915
4980
  multiline = false,
4916
4981
  size = "md"
4917
4982
  }) {
4918
- return /* @__PURE__ */ jsx27(
4983
+ return /* @__PURE__ */ jsx28(
4919
4984
  "div",
4920
4985
  {
4921
4986
  "aria-hidden": "true",
@@ -4923,11 +4988,11 @@ function KjunFormSkeleton({
4923
4988
  "data-columns": columns,
4924
4989
  style: { "--_kjun-form-skeleton-radius": `${tokens25.input[size].radius}px` },
4925
4990
  children: fields.map((field, i) => /* @__PURE__ */ jsxs21("div", { children: [
4926
- field ? /* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label", children: typeof field === "string" ? field : field.label }) : (
4991
+ field ? /* @__PURE__ */ jsx28("div", { className: "kjun-form-skeleton-label", children: typeof field === "string" ? field : field.label }) : (
4927
4992
  // The bar sits in a label-line slot so the field starts where the real input will.
4928
- /* @__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 }) })
4993
+ /* @__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 }) })
4929
4994
  ),
4930
- /* @__PURE__ */ jsx27(
4995
+ /* @__PURE__ */ jsx28(
4931
4996
  KjunSkeleton,
4932
4997
  {
4933
4998
  type: "block",
@@ -4948,7 +5013,7 @@ function KjunChartSkeleton({
4948
5013
  columns = 14
4949
5014
  }) {
4950
5015
  const kind = chartSkeletonKind(requestedKind), revealed = useLoadingReveal(true, loadingDelay), status = revealed && loadingText ? "status" : void 0, rowCount = chartSkeletonCount(rows), columnCount = chartSkeletonCount(columns);
4951
- return /* @__PURE__ */ jsx27(
5016
+ return /* @__PURE__ */ jsx28(
4952
5017
  "div",
4953
5018
  {
4954
5019
  className: "kjun-chart-skeleton",
@@ -4957,10 +5022,10 @@ function KjunChartSkeleton({
4957
5022
  "aria-hidden": revealed ? void 0 : true,
4958
5023
  style: { height, visibility: revealed ? void 0 : "hidden" },
4959
5024
  children: !skeleton ? /* @__PURE__ */ jsxs21("div", { className: "kjun-data-loading", "data-kjun-chart-part": "loading", role: status, children: [
4960
- /* @__PURE__ */ jsx27("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx27(KjunSpinner, { size: "md" }) }),
4961
- loadingText && /* @__PURE__ */ jsx27("p", { children: loadingText })
5025
+ /* @__PURE__ */ jsx28("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx28(KjunSpinner, { size: "md" }) }),
5026
+ loadingText && /* @__PURE__ */ jsx28("p", { children: loadingText })
4962
5027
  ] }) : /* @__PURE__ */ jsxs21(Fragment9, { children: [
4963
- kind === "donut" ? /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-donut", "data-kjun-chart-part": "donut", "aria-hidden": "true" }) : kind === "matrix" ? /* @__PURE__ */ jsx27(
5028
+ kind === "donut" ? /* @__PURE__ */ jsx28("div", { className: "kjun-chart-skeleton-donut", "data-kjun-chart-part": "donut", "aria-hidden": "true" }) : kind === "matrix" ? /* @__PURE__ */ jsx28(
4964
5029
  "div",
4965
5030
  {
4966
5031
  className: "kjun-chart-skeleton-matrix",
@@ -4970,7 +5035,7 @@ function KjunChartSkeleton({
4970
5035
  gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
4971
5036
  gridTemplateRows: `repeat(${rowCount}, minmax(0, 1fr))`
4972
5037
  },
4973
- children: Array.from({ length: rowCount * columnCount }, (_, i) => /* @__PURE__ */ jsx27(
5038
+ children: Array.from({ length: rowCount * columnCount }, (_, i) => /* @__PURE__ */ jsx28(
4974
5039
  "div",
4975
5040
  {
4976
5041
  className: "kjun-chart-skeleton-cell",
@@ -4980,7 +5045,7 @@ function KjunChartSkeleton({
4980
5045
  i
4981
5046
  ))
4982
5047
  }
4983
- ) : /* @__PURE__ */ jsx27(
5048
+ ) : /* @__PURE__ */ jsx28(
4984
5049
  "svg",
4985
5050
  {
4986
5051
  viewBox: chartFrameViewBox,
@@ -4988,7 +5053,7 @@ function KjunChartSkeleton({
4988
5053
  className: "kjun-chart-skeleton-plot",
4989
5054
  "data-kjun-chart-part": "plot",
4990
5055
  "aria-hidden": "true",
4991
- children: /* @__PURE__ */ jsx27(
5056
+ children: /* @__PURE__ */ jsx28(
4992
5057
  "path",
4993
5058
  {
4994
5059
  d: chartFramePath,
@@ -5000,7 +5065,7 @@ function KjunChartSkeleton({
5000
5065
  )
5001
5066
  }
5002
5067
  ),
5003
- loadingText && /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-status", "data-kjun-chart-part": "status", role: status, children: /* @__PURE__ */ jsx27("span", { children: loadingText }) })
5068
+ loadingText && /* @__PURE__ */ jsx28("div", { className: "kjun-chart-skeleton-status", "data-kjun-chart-part": "status", role: status, children: /* @__PURE__ */ jsx28("span", { children: loadingText }) })
5004
5069
  ] })
5005
5070
  }
5006
5071
  );
@@ -5099,7 +5164,7 @@ function formatRelativeTime(value, now = Date.now()) {
5099
5164
  }
5100
5165
 
5101
5166
  // packages/react/src/number-display.tsx
5102
- import { Fragment as Fragment10, jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
5167
+ import { Fragment as Fragment10, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
5103
5168
  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;
5104
5169
  var format = (value, decimals = 0) => new Intl.NumberFormat(void 0, {
5105
5170
  minimumFractionDigits: Math.max(0, Math.min(20, decimals)),
@@ -5120,9 +5185,9 @@ function KjunAnimatedNumber({
5120
5185
  }) {
5121
5186
  const n = useCountUp(value, animated, fromPrevious);
5122
5187
  return /* @__PURE__ */ jsxs22("span", { className: "kjun-animated-number " + className, children: [
5123
- prefix && /* @__PURE__ */ jsx28("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
5124
- /* @__PURE__ */ jsx28("span", { children: typeof n === "string" ? n : formatter ? formatter(n) : format(n, decimals) }),
5125
- suffix && /* @__PURE__ */ jsx28("span", { className: "kjun-number-affix", "data-side": "suffix", children: suffix })
5188
+ prefix && /* @__PURE__ */ jsx29("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
5189
+ /* @__PURE__ */ jsx29("span", { children: typeof n === "string" ? n : formatter ? formatter(n) : format(n, decimals) }),
5190
+ suffix && /* @__PURE__ */ jsx29("span", { className: "kjun-number-affix", "data-side": "suffix", children: suffix })
5126
5191
  ] });
5127
5192
  }
5128
5193
  function KjunFreshness({
@@ -5131,11 +5196,11 @@ function KjunFreshness({
5131
5196
  fetchedAt,
5132
5197
  formatter
5133
5198
  }) {
5134
- return stale ? /* @__PURE__ */ jsx28(
5199
+ return stale ? /* @__PURE__ */ jsx29(
5135
5200
  KjunTooltip,
5136
5201
  {
5137
5202
  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)) : ""),
5138
- children: /* @__PURE__ */ jsx28("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx28(KjunBadge, { variant: "warning", size: "xs", children: source === "close" ? "\uC885\uAC00" : "\uC9C0\uC5F0" }) })
5203
+ children: /* @__PURE__ */ jsx29("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx29(KjunBadge, { variant: "warning", size: "xs", children: source === "close" ? "\uC885\uAC00" : "\uC9C0\uC5F0" }) })
5139
5204
  }
5140
5205
  ) : null;
5141
5206
  }
@@ -5149,14 +5214,14 @@ function KjunPriceCell({
5149
5214
  flashClass = "",
5150
5215
  fromPrevious = true
5151
5216
  }) {
5152
- return value == null ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens27.extensions.financial.priceSkeletonHeight, width: tokens27.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs22(Fragment10, { children: [
5153
- /* @__PURE__ */ jsx28(
5217
+ return value == null ? /* @__PURE__ */ jsx29(KjunSkeleton, { type: "block", height: tokens27.extensions.financial.priceSkeletonHeight, width: tokens27.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs22(Fragment10, { children: [
5218
+ /* @__PURE__ */ jsx29(
5154
5219
  "span",
5155
5220
  {
5156
5221
  className: "kjun-price-cell " + flashClass,
5157
5222
  ref: domainColorRef(/\bkjun-price-flash-(up|down)/.test(flashClass)),
5158
5223
  style: { color: stale ? "var(--_kjun-color-text-tertiary)" : void 0 },
5159
- children: /* @__PURE__ */ jsx28(
5224
+ children: /* @__PURE__ */ jsx29(
5160
5225
  KjunAnimatedNumber,
5161
5226
  {
5162
5227
  value,
@@ -5166,7 +5231,7 @@ function KjunPriceCell({
5166
5231
  )
5167
5232
  }
5168
5233
  ),
5169
- showFreshness && /* @__PURE__ */ jsx28(KjunFreshness, { stale, source, fetchedAt })
5234
+ showFreshness && /* @__PURE__ */ jsx29(KjunFreshness, { stale, source, fetchedAt })
5170
5235
  ] });
5171
5236
  }
5172
5237
  function KjunSignedValue({
@@ -5197,15 +5262,15 @@ function KjunSignedValue({
5197
5262
  background: tone === "pill" && !stale && n !== null ? `var(--_kjun-color-${role2}-bg)` : void 0
5198
5263
  },
5199
5264
  children: [
5200
- loading ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", width: tokens27.extensions.financial.signedSkeletonWidth, height: "1lh" }) : display,
5201
- !loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx28(KjunFreshness, { stale: true })
5265
+ loading ? /* @__PURE__ */ jsx29(KjunSkeleton, { type: "block", width: tokens27.extensions.financial.signedSkeletonWidth, height: "1lh" }) : display,
5266
+ !loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx29(KjunFreshness, { stale: true })
5202
5267
  ]
5203
5268
  }
5204
5269
  );
5205
5270
  }
5206
5271
 
5207
5272
  // packages/react/src/financial-display.tsx
5208
- import { Fragment as Fragment11, jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
5273
+ import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
5209
5274
  var deviationFill = { neutral: 1, low: tokens28.states.opacity.deviationLow, medium: tokens28.states.opacity.deviationMedium, strong: tokens28.states.opacity.deviationStrong };
5210
5275
  function KjunDeviation({
5211
5276
  value,
@@ -5216,11 +5281,11 @@ function KjunDeviation({
5216
5281
  }) {
5217
5282
  const n = finiteNumber(value);
5218
5283
  if (n === null)
5219
- return /* @__PURE__ */ jsx29("span", { style: { color: "var(--_kjun-color-text-disabled)" }, children: "-" });
5284
+ return /* @__PURE__ */ jsx30("span", { style: { color: "var(--_kjun-color-text-disabled)" }, children: "-" });
5220
5285
  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) + "%";
5221
5286
  if (variant === "badge")
5222
5287
  return /* @__PURE__ */ jsxs23("span", { className: "kjun-deviation-badge", children: [
5223
- /* @__PURE__ */ jsx29(
5288
+ /* @__PURE__ */ jsx30(
5224
5289
  KjunBadge,
5225
5290
  {
5226
5291
  variant: neutral ? "secondary" : n > 0 ? "price-up" : "price-down",
@@ -5229,11 +5294,11 @@ function KjunDeviation({
5229
5294
  children: label
5230
5295
  }
5231
5296
  ),
5232
- !signal ? /* @__PURE__ */ jsx29("span", { className: "kjun-deviation-signal-slot", "aria-hidden": "true" }) : /* @__PURE__ */ jsx29(
5297
+ !signal ? /* @__PURE__ */ jsx30("span", { className: "kjun-deviation-signal-slot", "aria-hidden": "true" }) : /* @__PURE__ */ jsx30(
5233
5298
  KjunTooltip,
5234
5299
  {
5235
5300
  content: `\uAD34\uB9AC\uC728 ${signalThreshold}% \uCD08\uACFC \u2014 \uCC28\uC775\uAC70\uB798 \uAE30\uD68C \uAC00\uB2A5`,
5236
- children: /* @__PURE__ */ jsx29("span", { tabIndex: 0, role: "img", "aria-label": "\uCC28\uC775\uAC70\uB798 \uAE30\uD68C", className: "kjun-deviation-signal", children: /* @__PURE__ */ jsx29(
5301
+ children: /* @__PURE__ */ jsx30("span", { tabIndex: 0, role: "img", "aria-label": "\uCC28\uC775\uAC70\uB798 \uAE30\uD68C", className: "kjun-deviation-signal", children: /* @__PURE__ */ jsx30(
5237
5302
  KjunIcon,
5238
5303
  {
5239
5304
  name: "alert-triangle",
@@ -5252,7 +5317,7 @@ function KjunDeviation({
5252
5317
  "data-variant": variant,
5253
5318
  style: { color: `var(--_kjun-color-${role2})`, fontWeight: level === "strong" ? tokens28.typography.numberLg.fontWeight : tokens28.typography.control.fontWeight },
5254
5319
  children: [
5255
- variant === "pill" && /* @__PURE__ */ jsx29(
5320
+ variant === "pill" && /* @__PURE__ */ jsx30(
5256
5321
  "span",
5257
5322
  {
5258
5323
  "aria-hidden": "true",
@@ -5263,7 +5328,7 @@ function KjunDeviation({
5263
5328
  }
5264
5329
  }
5265
5330
  ),
5266
- /* @__PURE__ */ jsx29("span", { children: label })
5331
+ /* @__PURE__ */ jsx30("span", { children: label })
5267
5332
  ]
5268
5333
  }
5269
5334
  );
@@ -5280,7 +5345,7 @@ function KjunHeatmapCell({
5280
5345
  const role2 = mode === "price" ? ratio >= 0.5 ? "price-up" : "price-down" : mode === "diverging" ? ratio >= 0.5 ? "success" : "danger" : color;
5281
5346
  const magnitude = mode === "sequential" ? ratio : Math.abs(ratio - 0.5) * 2, { heatMinimum, heatMaximum } = tokens28.states.opacity;
5282
5347
  return /* @__PURE__ */ jsxs23("span", { className: "kjun-heat-cell", ref: domainColorRef(mode === "price"), children: [
5283
- /* @__PURE__ */ jsx29(
5348
+ /* @__PURE__ */ jsx30(
5284
5349
  "span",
5285
5350
  {
5286
5351
  "aria-hidden": "true",
@@ -5288,7 +5353,7 @@ function KjunHeatmapCell({
5288
5353
  style: magnitude ? { background: `var(--_kjun-color-${role2})`, opacity: heatMinimum + (heatMaximum - heatMinimum) * magnitude } : { background: "var(--_kjun-color-secondary)" }
5289
5354
  }
5290
5355
  ),
5291
- /* @__PURE__ */ jsx29("span", { children: children != null ? children : value })
5356
+ /* @__PURE__ */ jsx30("span", { children: children != null ? children : value })
5292
5357
  ] });
5293
5358
  }
5294
5359
  function KjunProgressCell({
@@ -5301,7 +5366,7 @@ function KjunProgressCell({
5301
5366
  }) {
5302
5367
  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;
5303
5368
  return /* @__PURE__ */ jsxs23("div", { className: "kjun-progress-cell", children: [
5304
- /* @__PURE__ */ jsx29("div", { style: { height }, children: /* @__PURE__ */ jsx29(
5369
+ /* @__PURE__ */ jsx30("div", { style: { height }, children: /* @__PURE__ */ jsx30(
5305
5370
  "span",
5306
5371
  {
5307
5372
  style: {
@@ -5322,7 +5387,7 @@ function KjunCollectionMark({
5322
5387
  size = "md"
5323
5388
  }) {
5324
5389
  const box = tokens28.extensions.financial.markSizes[size], glyph = kind === "interest" ? tokens28.extensions.financial.heartMarkSizes[size] : box;
5325
- return /* @__PURE__ */ jsx29(
5390
+ return /* @__PURE__ */ jsx30(
5326
5391
  KjunIcon,
5327
5392
  {
5328
5393
  ref: domainColorRef(active),
@@ -5352,7 +5417,7 @@ function KjunExecutionStatusBadge({
5352
5417
  size = "md"
5353
5418
  }) {
5354
5419
  const state = status ? executionStates[status] : void 0;
5355
- 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") });
5420
+ 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") });
5356
5421
  }
5357
5422
  function KjunSparkline({
5358
5423
  data = [],
@@ -5382,11 +5447,11 @@ function KjunSparkline({
5382
5447
  className: "kjun-sparkline",
5383
5448
  children: [
5384
5449
  fill && values.length > 1 && /* @__PURE__ */ jsxs23(Fragment11, { children: [
5385
- /* @__PURE__ */ jsx29("defs", { children: /* @__PURE__ */ jsxs23("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5386
- /* @__PURE__ */ jsx29("stop", { offset: "0%", stopColor: line, stopOpacity: 0.3 }),
5387
- /* @__PURE__ */ jsx29("stop", { offset: "100%", stopColor: line, stopOpacity: 0.05 })
5450
+ /* @__PURE__ */ jsx30("defs", { children: /* @__PURE__ */ jsxs23("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
5451
+ /* @__PURE__ */ jsx30("stop", { offset: "0%", stopColor: line, stopOpacity: 0.3 }),
5452
+ /* @__PURE__ */ jsx30("stop", { offset: "100%", stopColor: line, stopOpacity: 0.05 })
5388
5453
  ] }) }),
5389
- /* @__PURE__ */ jsx29(
5454
+ /* @__PURE__ */ jsx30(
5390
5455
  "polygon",
5391
5456
  {
5392
5457
  points: `2,${height - 2} ${points} ${width - 2},${height - 2}`,
@@ -5394,7 +5459,7 @@ function KjunSparkline({
5394
5459
  }
5395
5460
  )
5396
5461
  ] }),
5397
- values.length > 1 ? /* @__PURE__ */ jsx29(
5462
+ values.length > 1 ? /* @__PURE__ */ jsx30(
5398
5463
  "polyline",
5399
5464
  {
5400
5465
  points,
@@ -5405,7 +5470,7 @@ function KjunSparkline({
5405
5470
  strokeLinejoin: "round",
5406
5471
  vectorEffect: stretch ? "non-scaling-stroke" : void 0
5407
5472
  }
5408
- ) : values.length === 1 ? /* @__PURE__ */ jsx29("circle", { cx: width / 2, cy: height / 2, r: 2, fill: line }) : null
5473
+ ) : values.length === 1 ? /* @__PURE__ */ jsx30("circle", { cx: width / 2, cy: height / 2, r: 2, fill: line }) : null
5409
5474
  ]
5410
5475
  }
5411
5476
  );
@@ -5551,7 +5616,7 @@ function tableCellValue(props, column, row, index) {
5551
5616
 
5552
5617
  // packages/react/src/table-toolbar.tsx
5553
5618
  import { tokens as tokens29 } from "@kjun-ui/tokens";
5554
- import { Fragment as Fragment12, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
5619
+ import { Fragment as Fragment12, jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
5555
5620
  function TableToolbar({
5556
5621
  selectable,
5557
5622
  selected,
@@ -5576,8 +5641,8 @@ function TableToolbar({
5576
5641
  selected.length,
5577
5642
  "\uAC1C \uC120\uD0DD"
5578
5643
  ] }),
5579
- /* @__PURE__ */ jsx30(KjunButton, { size: "xs", variant: "ghost", onClick: toggleAll, children: "\uC804\uCCB4 \uC120\uD0DD" }),
5580
- /* @__PURE__ */ jsx30(
5644
+ /* @__PURE__ */ jsx31(KjunButton, { size: "xs", variant: "ghost", onClick: toggleAll, children: "\uC804\uCCB4 \uC120\uD0DD" }),
5645
+ /* @__PURE__ */ jsx31(
5581
5646
  KjunButton,
5582
5647
  {
5583
5648
  size: "xs",
@@ -5591,7 +5656,7 @@ function TableToolbar({
5591
5656
  }
5592
5657
  ),
5593
5658
  (searchable || toolbar) && /* @__PURE__ */ jsxs24("div", { className: "kjun-table-toolbar", children: [
5594
- searchable && /* @__PURE__ */ jsx30(
5659
+ searchable && /* @__PURE__ */ jsx31(
5595
5660
  KjunInput,
5596
5661
  {
5597
5662
  size: "sm",
@@ -5623,22 +5688,22 @@ var componentIcons = { minus };
5623
5688
 
5624
5689
  // packages/react/src/table-check.tsx
5625
5690
  import { tokens as tokens30 } from "@kjun-ui/tokens";
5626
- import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
5691
+ import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
5627
5692
  var TableCheck = forwardRef4(
5628
5693
  function TableCheck2(props, ref) {
5629
5694
  const size = tokens30.extensions.checkbox.iconSizes.sm;
5630
- return /* @__PURE__ */ jsx31(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs25("span", { className: "kjun-table-check", children: [
5631
- /* @__PURE__ */ jsx31("input", { ...props, ref, type: "checkbox" }),
5632
- /* @__PURE__ */ jsx31(KjunIcon, { name: "check", size, className: "kjun-table-check-mark" }),
5633
- /* @__PURE__ */ jsx31(KjunIcon, { name: "minus", size, className: "kjun-table-check-dash" })
5695
+ return /* @__PURE__ */ jsx32(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs25("span", { className: "kjun-table-check", children: [
5696
+ /* @__PURE__ */ jsx32("input", { ...props, ref, type: "checkbox" }),
5697
+ /* @__PURE__ */ jsx32(KjunIcon, { name: "check", size, className: "kjun-table-check-mark" }),
5698
+ /* @__PURE__ */ jsx32(KjunIcon, { name: "minus", size, className: "kjun-table-check-dash" })
5634
5699
  ] }) });
5635
5700
  }
5636
5701
  );
5637
5702
 
5638
5703
  // packages/react/src/table-grid.tsx
5639
- import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
5704
+ import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
5640
5705
  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 }) {
5641
- return /* @__PURE__ */ jsx32("div", { className: "kjun-table-scroll", style: { maxHeight, visibility: skeletonHidden ? "hidden" : void 0 }, "aria-hidden": skeletonHidden || void 0, children: /* @__PURE__ */ jsxs26(
5706
+ return /* @__PURE__ */ jsx33("div", { className: "kjun-table-scroll", style: { maxHeight, visibility: skeletonHidden ? "hidden" : void 0 }, "aria-hidden": skeletonHidden || void 0, children: /* @__PURE__ */ jsxs26(
5642
5707
  "table",
5643
5708
  {
5644
5709
  className: "kjun-table",
@@ -5647,12 +5712,12 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5647
5712
  "data-hoverable": hoverable,
5648
5713
  "data-striped": striped,
5649
5714
  children: [
5650
- /* @__PURE__ */ jsx32(
5715
+ /* @__PURE__ */ jsx33(
5651
5716
  "thead",
5652
5717
  {
5653
5718
  style: stickyHeader ? { position: "sticky", top: 0, zIndex: 2 } : void 0,
5654
5719
  children: /* @__PURE__ */ jsxs26("tr", { children: [
5655
- selectable && /* @__PURE__ */ jsx32("th", { scope: "col", className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(
5720
+ selectable && /* @__PURE__ */ jsx33("th", { scope: "col", className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx33(
5656
5721
  TableCheck,
5657
5722
  {
5658
5723
  "aria-label": "\uC804\uCCB4 \uC120\uD0DD",
@@ -5663,8 +5728,8 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5663
5728
  onChange: state.toggleAll
5664
5729
  }
5665
5730
  ) }),
5666
- expandable && /* @__PURE__ */ jsx32("th", { scope: "col", className: "kjun-table-action-cell" }),
5667
- visible.map((col) => /* @__PURE__ */ jsx32(
5731
+ expandable && /* @__PURE__ */ jsx33("th", { scope: "col", className: "kjun-table-action-cell" }),
5732
+ visible.map((col) => /* @__PURE__ */ jsx33(
5668
5733
  "th",
5669
5734
  {
5670
5735
  scope: "col",
@@ -5678,7 +5743,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5678
5743
  onClick: () => state.sortColumn(col),
5679
5744
  children: [
5680
5745
  col.label,
5681
- state.sort.key === col.key && /* @__PURE__ */ jsx32(
5746
+ state.sort.key === col.key && /* @__PURE__ */ jsx33(
5682
5747
  KjunIcon,
5683
5748
  {
5684
5749
  name: state.sort.order === "asc" ? "sort-ascending" : "sort-descending",
@@ -5694,10 +5759,10 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5694
5759
  ] })
5695
5760
  }
5696
5761
  ),
5697
- /* @__PURE__ */ jsx32("tbody", { children: initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsxs26("tr", { "aria-hidden": "true", children: [
5698
- selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(KjunSkeleton, { type: "block", height: tokens31.table.selectionSize, width: tokens31.table.selectionSize }) }),
5699
- expandable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell" }),
5700
- visible.map((col) => /* @__PURE__ */ jsx32("td", { children: /* @__PURE__ */ jsx32(
5762
+ /* @__PURE__ */ jsx33("tbody", { children: initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsxs26("tr", { "aria-hidden": "true", children: [
5763
+ selectable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx33(KjunSkeleton, { type: "block", height: tokens31.table.selectionSize, width: tokens31.table.selectionSize }) }),
5764
+ expandable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell" }),
5765
+ visible.map((col) => /* @__PURE__ */ jsx33("td", { children: /* @__PURE__ */ jsx33(
5701
5766
  KjunSkeleton,
5702
5767
  {
5703
5768
  type: "block",
@@ -5705,7 +5770,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5705
5770
  width: col.key === "actions" ? tokens31.table.actionColumnWidth : "75%"
5706
5771
  }
5707
5772
  ) }, col.key))
5708
- ] }, i)) : !state.rows.length ? /* @__PURE__ */ jsx32("tr", { children: /* @__PURE__ */ jsx32(
5773
+ ] }, i)) : !state.rows.length ? /* @__PURE__ */ jsx33("tr", { children: /* @__PURE__ */ jsx33(
5709
5774
  "td",
5710
5775
  {
5711
5776
  colSpan: visible.length + Number(selectable) + Number(expandable),
@@ -5722,9 +5787,9 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5722
5787
  "data-selected": state.selectedRow(row) || void 0,
5723
5788
  onClick: () => onRowClick == null ? void 0 : onRowClick(row, i),
5724
5789
  children: [
5725
- selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: checkbox(row, i) }),
5726
- expandable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: expand(row, i) }),
5727
- visible.map((col) => /* @__PURE__ */ jsx32(
5790
+ selectable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: checkbox(row, i) }),
5791
+ expandable && /* @__PURE__ */ jsx33("td", { className: "kjun-table-action-cell", children: expand(row, i) }),
5792
+ visible.map((col) => /* @__PURE__ */ jsx33(
5728
5793
  "td",
5729
5794
  {
5730
5795
  style: { textAlign: col.align },
@@ -5737,7 +5802,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5737
5802
  ]
5738
5803
  }
5739
5804
  ),
5740
- expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx32("tr", { className: "kjun-table-expanded", children: /* @__PURE__ */ jsx32(
5805
+ expandable && state.expanded.includes(state.key(row, i)) && /* @__PURE__ */ jsx33("tr", { className: "kjun-table-expanded", children: /* @__PURE__ */ jsx33(
5741
5806
  "td",
5742
5807
  {
5743
5808
  colSpan: visible.length + Number(selectable) + 1,
@@ -5751,7 +5816,7 @@ function TableGrid({ initialLoading, skeletonRows, skeletonHidden, state, onRowC
5751
5816
  }
5752
5817
 
5753
5818
  // packages/react/src/table-cards.tsx
5754
- import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
5819
+ import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
5755
5820
  function TableCards({
5756
5821
  initialLoading,
5757
5822
  skeletonRows,
@@ -5781,7 +5846,7 @@ function TableCards({
5781
5846
  style: skeletonHidden ? { visibility: "hidden" } : void 0,
5782
5847
  "aria-hidden": skeletonHidden || void 0,
5783
5848
  children: [
5784
- 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(
5849
+ 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(
5785
5850
  "div",
5786
5851
  {
5787
5852
  role: "listitem",
@@ -5793,15 +5858,15 @@ function TableCards({
5793
5858
  /* @__PURE__ */ jsxs27("div", { className: "kjun-table-card-header", children: [
5794
5859
  /* @__PURE__ */ jsxs27("div", { className: "kjun-table-card-header-left", children: [
5795
5860
  selectable && checkbox(row, i),
5796
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-title", children: title && cell(title, row, i) })
5861
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-title", children: title && cell(title, row, i) })
5797
5862
  ] }),
5798
- 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,
5799
- inline.length > 0 && /* @__PURE__ */ jsx33(
5863
+ 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,
5864
+ inline.length > 0 && /* @__PURE__ */ jsx34(
5800
5865
  "div",
5801
5866
  {
5802
5867
  className: "kjun-table-card-header-actions",
5803
5868
  onClick: (e) => e.stopPropagation(),
5804
- children: inline.map((col) => /* @__PURE__ */ jsx33("span", { children: cell(col, row, i) }, col.key))
5869
+ children: inline.map((col) => /* @__PURE__ */ jsx34("span", { children: cell(col, row, i) }, col.key))
5805
5870
  }
5806
5871
  )
5807
5872
  ] }),
@@ -5812,8 +5877,8 @@ function TableCards({
5812
5877
  {
5813
5878
  className: "kjun-table-card-section",
5814
5879
  children: [
5815
- section.label && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-section-label", children: section.label }),
5816
- /* @__PURE__ */ jsx33(
5880
+ section.label && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-section-label", children: section.label }),
5881
+ /* @__PURE__ */ jsx34(
5817
5882
  "div",
5818
5883
  {
5819
5884
  className: "kjun-table-card-body kjun-table-card-body--" + (section.layout || "grid"),
@@ -5822,8 +5887,8 @@ function TableCards({
5822
5887
  {
5823
5888
  className: "kjun-table-card-field" + (col.fullWidthInCard ? " kjun-table-card-field--full" : "") + (section.labelAlign === "right" ? " kjun-table-card-field--label-right" : ""),
5824
5889
  children: [
5825
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-label", children: col.label }),
5826
- /* @__PURE__ */ jsx33("span", { className: "kjun-table-card-value", children: cell(col, row, i) })
5890
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-label", children: col.label }),
5891
+ /* @__PURE__ */ jsx34("span", { className: "kjun-table-card-value", children: cell(col, row, i) })
5827
5892
  ]
5828
5893
  },
5829
5894
  col.key
@@ -5835,9 +5900,9 @@ function TableCards({
5835
5900
  section.key || index
5836
5901
  ) : null;
5837
5902
  }),
5838
- expandable && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-expand-toggle", children: expand(row, i) }),
5839
- 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) }),
5840
- actions && !actions.inlineInCard && /* @__PURE__ */ jsx33(
5903
+ expandable && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-expand-toggle", children: expand(row, i) }),
5904
+ 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) }),
5905
+ actions && !actions.inlineInCard && /* @__PURE__ */ jsx34(
5841
5906
  "div",
5842
5907
  {
5843
5908
  className: "kjun-table-card-actions",
@@ -5849,7 +5914,7 @@ function TableCards({
5849
5914
  },
5850
5915
  state.key(row, i)
5851
5916
  )),
5852
- !initialLoading && !state.rows.length && /* @__PURE__ */ jsx33("div", { className: "kjun-table-card-empty", children: emptyContent || emptyText })
5917
+ !initialLoading && !state.rows.length && /* @__PURE__ */ jsx34("div", { className: "kjun-table-card-empty", children: emptyContent || emptyText })
5853
5918
  ]
5854
5919
  }
5855
5920
  );
@@ -5858,7 +5923,7 @@ function TableCards({
5858
5923
  // packages/react/src/table-view.tsx
5859
5924
  import { useEffect as useEffect18, useState as useState26 } from "react";
5860
5925
  import { isComposingKey as isComposingKey4, tokens as tokens32 } from "@kjun-ui/tokens";
5861
- import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
5926
+ import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
5862
5927
  function KjunTable(props) {
5863
5928
  const {
5864
5929
  skeletonRows = 8,
@@ -5898,7 +5963,7 @@ function KjunTable(props) {
5898
5963
  const { card, visible } = layout;
5899
5964
  const cell = (col, row, index) => {
5900
5965
  const { value, body } = tableCellValue(props, col, row, index);
5901
- return col.pill ? /* @__PURE__ */ jsx34(
5966
+ return col.pill ? /* @__PURE__ */ jsx35(
5902
5967
  "span",
5903
5968
  {
5904
5969
  className: "kjun-table-pill " + (Number(value) > 0 ? "kjun-table-pill-up" : Number(value) < 0 ? "kjun-table-pill-down" : ""),
@@ -5914,7 +5979,7 @@ function KjunTable(props) {
5914
5979
  onRowClick(row, index);
5915
5980
  }
5916
5981
  };
5917
- const checkbox = (row, i) => /* @__PURE__ */ jsx34(
5982
+ const checkbox = (row, i) => /* @__PURE__ */ jsx35(
5918
5983
  TableCheck,
5919
5984
  {
5920
5985
  "aria-label": `\uD589 \uC120\uD0DD ${i + 1}`,
@@ -5923,7 +5988,7 @@ function KjunTable(props) {
5923
5988
  onChange: () => state.toggleRow(row)
5924
5989
  }
5925
5990
  );
5926
- const expand = (row, i) => /* @__PURE__ */ jsx34(
5991
+ const expand = (row, i) => /* @__PURE__ */ jsx35(
5927
5992
  KjunButton,
5928
5993
  {
5929
5994
  variant: "ghost",
@@ -5942,7 +6007,7 @@ function KjunTable(props) {
5942
6007
  "aria-busy": !!props.loading,
5943
6008
  ref: domainColorRef(!query2.initialLoading && state.rows.length > 0 && props.columns.some((column) => column.pill)),
5944
6009
  children: [
5945
- /* @__PURE__ */ jsx34(
6010
+ /* @__PURE__ */ jsx35(
5946
6011
  TableToolbar,
5947
6012
  {
5948
6013
  ...{ selectable, selected, renderSelectionToolbar, searchable, searchPlaceholder, toolbar },
@@ -5969,8 +6034,8 @@ function KjunTable(props) {
5969
6034
  loadingText,
5970
6035
  loadingDelay: skeleton ? 0 : loadingDelay,
5971
6036
  children: [
5972
- 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 }),
5973
- pagination && /* @__PURE__ */ jsx34(
6037
+ 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 }),
6038
+ pagination && /* @__PURE__ */ jsx35(
5974
6039
  KjunPagination,
5975
6040
  {
5976
6041
  currentPage: pagination.page,
@@ -5993,7 +6058,7 @@ function KjunTable(props) {
5993
6058
 
5994
6059
  // packages/react/src/kpi.tsx
5995
6060
  import { tokens as tokens33 } from "@kjun-ui/tokens";
5996
- import { Fragment as Fragment14, jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
6061
+ import { Fragment as Fragment14, jsx as jsx36, jsxs as jsxs29 } from "react/jsx-runtime";
5997
6062
  var kpiFormat = (item, value = item.value) => {
5998
6063
  var _a, _b;
5999
6064
  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, {
@@ -6027,12 +6092,12 @@ function KjunKpiHero(props) {
6027
6092
  );
6028
6093
  const delta = (v, kind) => deltaFormatter ? deltaFormatter(v, kind) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6029
6094
  v > 0 ? "+" : v < 0 ? "\u2212" : "",
6030
- kind === "absolute" && prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
6095
+ kind === "absolute" && prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-number-affix", "data-side": "prefix", children: prefix }),
6031
6096
  new Intl.NumberFormat(void 0, {
6032
6097
  minimumFractionDigits: kind === "absolute" ? decimals : 1,
6033
6098
  maximumFractionDigits: kind === "absolute" ? decimals : 1
6034
6099
  }).format(Math.abs(v)),
6035
- kind === "percent" && /* @__PURE__ */ jsx35("span", { className: "kjun-number-affix", "data-side": "suffix", children: "%" })
6100
+ kind === "percent" && /* @__PURE__ */ jsx36("span", { className: "kjun-number-affix", "data-side": "suffix", children: "%" })
6036
6101
  ] });
6037
6102
  return /* @__PURE__ */ jsxs29(
6038
6103
  "div",
@@ -6044,10 +6109,10 @@ function KjunKpiHero(props) {
6044
6109
  children: [
6045
6110
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__layout", children: [
6046
6111
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__main", children: [
6047
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__label", children: label }),
6048
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6049
- prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__affix", children: prefix }),
6050
- /* @__PURE__ */ jsx35(
6112
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__label", children: label }),
6113
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6114
+ prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__affix", children: prefix }),
6115
+ /* @__PURE__ */ jsx36(
6051
6116
  KjunAnimatedNumber,
6052
6117
  {
6053
6118
  value,
@@ -6056,13 +6121,13 @@ function KjunKpiHero(props) {
6056
6121
  formatter
6057
6122
  }
6058
6123
  ),
6059
- suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__affix", children: suffix })
6124
+ suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__affix", children: suffix })
6060
6125
  ] }) }),
6061
- showDelta && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__delta-line", children: loading ? (
6126
+ showDelta && /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__delta-line", children: loading ? (
6062
6127
  // The placeholder takes the delta numbers' line height, like Vue, so the hero keeps its loaded height.
6063
- /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: tokens33.extensions.kpiHero.deltaSkeletonWidth }) })
6128
+ /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: tokens33.extensions.kpiHero.deltaSkeletonWidth }) })
6064
6129
  ) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
6065
- deltaAbsolute !== null && /* @__PURE__ */ jsx35(
6130
+ deltaAbsolute !== null && /* @__PURE__ */ jsx36(
6066
6131
  "span",
6067
6132
  {
6068
6133
  className: "kjun-kpi-hero__delta-abs",
@@ -6076,7 +6141,7 @@ function KjunKpiHero(props) {
6076
6141
  children: delta(deltaAbsolute, "absolute")
6077
6142
  }
6078
6143
  ),
6079
- deltaPercent !== null && /* @__PURE__ */ jsx35(
6144
+ deltaPercent !== null && /* @__PURE__ */ jsx36(
6080
6145
  "span",
6081
6146
  {
6082
6147
  className: "kjun-kpi-hero__delta-pct",
@@ -6086,31 +6151,31 @@ function KjunKpiHero(props) {
6086
6151
  children: delta(deltaPercent, "percent")
6087
6152
  }
6088
6153
  ),
6089
- deltaDescription && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-desc", children: deltaDescription })
6154
+ deltaDescription && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__delta-desc", children: deltaDescription })
6090
6155
  ] }) })
6091
6156
  ] }),
6092
- aside && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__aside", children: aside })
6157
+ aside && /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__aside", children: aside })
6093
6158
  ] }),
6094
- 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: [
6095
- /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__sec-label", children: item.label }),
6096
- /* @__PURE__ */ jsx35(
6159
+ 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: [
6160
+ /* @__PURE__ */ jsx36("div", { className: "kjun-kpi-hero__sec-label", children: item.label }),
6161
+ /* @__PURE__ */ jsx36(
6097
6162
  "div",
6098
6163
  {
6099
6164
  className: "kjun-kpi-hero__sec-value",
6100
6165
  style: { color: kpiColor(item.value, item.semantic) },
6101
- children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderSecondary == null ? void 0 : renderSecondary(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6102
- item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.prefix }),
6103
- /* @__PURE__ */ jsx35("span", { children: kpiFormat(item) }),
6104
- item.suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.suffix })
6166
+ children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderSecondary == null ? void 0 : renderSecondary(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6167
+ item.prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__sec-affix", children: item.prefix }),
6168
+ /* @__PURE__ */ jsx36("span", { children: kpiFormat(item) }),
6169
+ item.suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-hero__sec-affix", children: item.suffix })
6105
6170
  ] })
6106
6171
  }
6107
6172
  ),
6108
- item.desc && /* @__PURE__ */ jsx35(
6173
+ item.desc && /* @__PURE__ */ jsx36(
6109
6174
  "div",
6110
6175
  {
6111
6176
  className: "kjun-kpi-hero__sec-desc " + (item.descClass || ""),
6112
6177
  style: { color: "var(--_kjun-color-text-tertiary)" },
6113
- children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", width: "7ch", height: "1lh" }) : item.desc
6178
+ children: loading ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", width: "7ch", height: "1lh" }) : item.desc
6114
6179
  }
6115
6180
  )
6116
6181
  ] }, i)) })
@@ -6149,7 +6214,7 @@ function KjunKpiRow({
6149
6214
  background: `var(--_kjun-color-${v === "neutral" ? "secondary" : v === "info" ? "info-bg" : v + "-bg"})`
6150
6215
  },
6151
6216
  children: [
6152
- dot && /* @__PURE__ */ jsx35(
6217
+ dot && /* @__PURE__ */ jsx36(
6153
6218
  "span",
6154
6219
  {
6155
6220
  className: "kjun-kpi-row__badge-dot",
@@ -6161,7 +6226,7 @@ function KjunKpiRow({
6161
6226
  }
6162
6227
  );
6163
6228
  };
6164
- return /* @__PURE__ */ jsx35(
6229
+ return /* @__PURE__ */ jsx36(
6165
6230
  "div",
6166
6231
  {
6167
6232
  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" : ""),
@@ -6192,11 +6257,11 @@ function KjunKpiRow({
6192
6257
  },
6193
6258
  children: [
6194
6259
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__label-row", children: [
6195
- /* @__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 }),
6260
+ /* @__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 }),
6196
6261
  !busy && item.badgePlacement !== "value" && badge(item)
6197
6262
  ] }),
6198
6263
  /* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__value-row", children: [
6199
- /* @__PURE__ */ jsx35(
6264
+ /* @__PURE__ */ jsx36(
6200
6265
  "div",
6201
6266
  {
6202
6267
  className: "kjun-kpi-row__value " + (item.valueClass || "") + (item.valueKind === "text" ? " kjun-kpi-row__value--text" : "") + (item.mobileNeutral ? " kjun-kpi-row__value--mobile-neutral" : ""),
@@ -6209,14 +6274,14 @@ function KjunKpiRow({
6209
6274
  {
6210
6275
  className: (seg.class || "") + (seg.label ? " kjun-kpi-row__segment--labeled" : "") + (seg.separator ? " kjun-kpi-row__segment--separator" : ""),
6211
6276
  children: [
6212
- seg.label && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__segment-label", children: seg.label }),
6213
- busy && !seg.separator ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "3ch" }) : seg.text
6277
+ seg.label && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__segment-label", children: seg.label }),
6278
+ busy && !seg.separator ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "3ch" }) : seg.text
6214
6279
  ]
6215
6280
  },
6216
6281
  j
6217
- )) : busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderValue == null ? void 0 : renderValue(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6218
- item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__affix", children: item.prefix }),
6219
- item.animated && typeof item.value === "number" ? /* @__PURE__ */ jsx35(
6282
+ )) : busy ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderValue == null ? void 0 : renderValue(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
6283
+ item.prefix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__affix", children: item.prefix }),
6284
+ item.animated && typeof item.value === "number" ? /* @__PURE__ */ jsx36(
6220
6285
  KjunAnimatedNumber,
6221
6286
  {
6222
6287
  fromPrevious: true,
@@ -6224,20 +6289,20 @@ function KjunKpiRow({
6224
6289
  formatter: (v) => kpiFormat(item, v)
6225
6290
  }
6226
6291
  ) : kpiFormat(item),
6227
- item.suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__affix", children: item.suffix })
6292
+ item.suffix && /* @__PURE__ */ jsx36("span", { className: "kjun-kpi-row__affix", children: item.suffix })
6228
6293
  ] })
6229
6294
  }
6230
6295
  ),
6231
6296
  !busy && item.badgePlacement === "value" && badge(item)
6232
6297
  ] }),
6233
- item.desc && /* @__PURE__ */ jsx35(
6298
+ item.desc && /* @__PURE__ */ jsx36(
6234
6299
  "div",
6235
6300
  {
6236
6301
  className: "kjun-kpi-row__desc " + (item.descClass || ""),
6237
6302
  style: {
6238
6303
  color: item.descClass ? void 0 : kpiColor(item.value, item.semantic, "text-secondary")
6239
6304
  },
6240
- children: busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : item.desc
6305
+ children: busy ? /* @__PURE__ */ jsx36(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : item.desc
6241
6306
  }
6242
6307
  )
6243
6308
  ]
@@ -6315,7 +6380,7 @@ function useMarketCards(props) {
6315
6380
  }
6316
6381
 
6317
6382
  // packages/react/src/market-parts.tsx
6318
- import { Fragment as Fragment15, jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
6383
+ import { Fragment as Fragment15, jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
6319
6384
  function MarketIdentity({
6320
6385
  row,
6321
6386
  props
@@ -6326,15 +6391,15 @@ function MarketIdentity({
6326
6391
  (_e = props.renderNamePrefix) == null ? void 0 : _e.call(props, row),
6327
6392
  /* @__PURE__ */ jsxs30("div", { className: "kjun-market-identity-text", children: [
6328
6393
  /* @__PURE__ */ jsxs30("div", { className: "kjun-market-name", children: [
6329
- /* @__PURE__ */ jsx36("span", { title: label, children: label }),
6330
- ((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "interest", size: "sm", active: true }),
6331
- ((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "favorite", size: "sm", active: true }),
6394
+ /* @__PURE__ */ jsx37("span", { title: label, children: label }),
6395
+ ((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx37(KjunCollectionMark, { kind: "interest", size: "sm", active: true }),
6396
+ ((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx37(KjunCollectionMark, { kind: "favorite", size: "sm", active: true }),
6332
6397
  (_h = props.renderNameSuffix) == null ? void 0 : _h.call(props, row)
6333
6398
  ] }),
6334
- (meta || props.renderSubMeta) && /* @__PURE__ */ jsx36("div", { className: "kjun-market-meta", children: ((_i = props.renderSubMeta) == null ? void 0 : _i.call(props, row)) || meta })
6399
+ (meta || props.renderSubMeta) && /* @__PURE__ */ jsx37("div", { className: "kjun-market-meta", children: ((_i = props.renderSubMeta) == null ? void 0 : _i.call(props, row)) || meta })
6335
6400
  ] })
6336
6401
  ] });
6337
- return /* @__PURE__ */ jsx36("div", { className: "kjun-market-identity", children: ((_j = props.renderIdentity) == null ? void 0 : _j.call(props, row, body)) || body });
6402
+ return /* @__PURE__ */ jsx37("div", { className: "kjun-market-identity", children: ((_j = props.renderIdentity) == null ? void 0 : _j.call(props, row, body)) || body });
6338
6403
  }
6339
6404
  function MarketFooter({
6340
6405
  props
@@ -6350,7 +6415,7 @@ function MarketFooter({
6350
6415
  unitLabel = "\uAC1C"
6351
6416
  } = props;
6352
6417
  return /* @__PURE__ */ jsxs30(Fragment15, { children: [
6353
- pagination && /* @__PURE__ */ jsx36(
6418
+ pagination && /* @__PURE__ */ jsx37(
6354
6419
  KjunPagination,
6355
6420
  {
6356
6421
  currentPage: pagination.page,
@@ -6363,7 +6428,7 @@ function MarketFooter({
6363
6428
  ),
6364
6429
  " ",
6365
6430
  showFooter && !state.initialLoading && rows.length > 0 && /* @__PURE__ */ jsxs30("div", { className: "kjun-market-footer", children: [
6366
- /* @__PURE__ */ jsx36("span", { children: calculatedAt ? "\uB9C8\uC9C0\uB9C9 \uC5C5\uB370\uC774\uD2B8: " + (((_a = props.formatDate) == null ? void 0 : _a.call(props, calculatedAt)) || calculatedAt) : footerNote }),
6431
+ /* @__PURE__ */ jsx37("span", { children: calculatedAt ? "\uB9C8\uC9C0\uB9C9 \uC5C5\uB370\uC774\uD2B8: " + (((_a = props.formatDate) == null ? void 0 : _a.call(props, calculatedAt)) || calculatedAt) : footerNote }),
6367
6432
  /* @__PURE__ */ jsxs30("span", { children: [
6368
6433
  "\uCD1D ",
6369
6434
  totalCount,
@@ -6374,7 +6439,7 @@ function MarketFooter({
6374
6439
  }
6375
6440
 
6376
6441
  // packages/react/src/market-cards.tsx
6377
- import { Fragment as Fragment16, jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
6442
+ import { Fragment as Fragment16, jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
6378
6443
  function KjunMarketCards(props) {
6379
6444
  const {
6380
6445
  rows = [],
@@ -6400,7 +6465,7 @@ function KjunMarketCards(props) {
6400
6465
  }) : value == null ? "-" : String(value);
6401
6466
  };
6402
6467
  return /* @__PURE__ */ jsxs31("div", { className: "kjun-market-cards", children: [
6403
- /* @__PURE__ */ jsx37("div", { className: "kjun-metric-pills", role: "group", "aria-label": "\uD45C\uC2DC \uC9C0\uD45C", children: state.pills.map((pill) => /* @__PURE__ */ jsxs31(
6468
+ /* @__PURE__ */ jsx38("div", { className: "kjun-metric-pills", role: "group", "aria-label": "\uD45C\uC2DC \uC9C0\uD45C", children: state.pills.map((pill) => /* @__PURE__ */ jsxs31(
6404
6469
  "button",
6405
6470
  {
6406
6471
  type: "button",
@@ -6415,7 +6480,7 @@ function KjunMarketCards(props) {
6415
6480
  },
6416
6481
  children: [
6417
6482
  pill.label,
6418
- state.key === pill.key && pill.sortKey && (emitSortOnMount || pill.sortKey === sortKey) && /* @__PURE__ */ jsx37("span", { children: sortOrder === "desc" ? "\u2193" : "\u2191" })
6483
+ state.key === pill.key && pill.sortKey && (emitSortOnMount || pill.sortKey === sortKey) && /* @__PURE__ */ jsx38("span", { children: sortOrder === "desc" ? "\u2193" : "\u2191" })
6419
6484
  ]
6420
6485
  },
6421
6486
  pill.key
@@ -6425,16 +6490,16 @@ function KjunMarketCards(props) {
6425
6490
  selectedPill: state.pill,
6426
6491
  metricDisplay: display
6427
6492
  }) : /* @__PURE__ */ jsxs31(Fragment16, { children: [
6428
- /* @__PURE__ */ jsx37(
6493
+ /* @__PURE__ */ jsx38(
6429
6494
  KjunDataState,
6430
6495
  {
6431
6496
  ...props,
6432
6497
  loadingPadding: "none",
6433
6498
  empty: !rows.length,
6434
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx37(KjunListSkeleton, { variant: "compact" }),
6435
- emptyContent: /* @__PURE__ */ jsx37(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6499
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx38(KjunListSkeleton, { variant: "compact" }),
6500
+ emptyContent: /* @__PURE__ */ jsx38(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6436
6501
  children: /* @__PURE__ */ jsxs31("div", { children: [
6437
- state.pill && /* @__PURE__ */ jsx37("div", { className: "kjun-market-column-label", children: state.pill.label }),
6502
+ state.pill && /* @__PURE__ */ jsx38("div", { className: "kjun-market-column-label", children: state.pill.label }),
6438
6503
  rows.map((row, i) => {
6439
6504
  var _a, _b, _c;
6440
6505
  return /* @__PURE__ */ jsxs31(
@@ -6455,15 +6520,15 @@ function KjunMarketCards(props) {
6455
6520
  }
6456
6521
  },
6457
6522
  children: [
6458
- /* @__PURE__ */ jsx37(MarketIdentity, { row, props }),
6459
- /* @__PURE__ */ jsx37("div", { className: "kjun-market-quote", children: ((_b = state.pill) == null ? void 0 : _b.format) === "sparkline" ? /* @__PURE__ */ jsx37(
6523
+ /* @__PURE__ */ jsx38(MarketIdentity, { row, props }),
6524
+ /* @__PURE__ */ jsx38("div", { className: "kjun-market-quote", children: ((_b = state.pill) == null ? void 0 : _b.format) === "sparkline" ? /* @__PURE__ */ jsx38(
6460
6525
  KjunSparkline,
6461
6526
  {
6462
6527
  data: getValue(row, state.key) || [],
6463
6528
  width: tokens34.extensions.marketTable.sparklineWidth,
6464
6529
  height: tokens34.extensions.marketTable.sparklineHeight
6465
6530
  }
6466
- ) : 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(
6531
+ ) : 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(
6467
6532
  KjunSignedValue,
6468
6533
  {
6469
6534
  value: finiteNumber(getValue(row, state.key)),
@@ -6471,7 +6536,7 @@ function KjunMarketCards(props) {
6471
6536
  stale: !!getValue(row, "stale"),
6472
6537
  tone: "pill"
6473
6538
  }
6474
- ) : 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: [
6539
+ ) : 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: [
6475
6540
  (_c = props.renderMetricPrefix) == null ? void 0 : _c.call(
6476
6541
  props,
6477
6542
  row,
@@ -6488,14 +6553,14 @@ function KjunMarketCards(props) {
6488
6553
  ] })
6489
6554
  }
6490
6555
  ),
6491
- /* @__PURE__ */ jsx37(MarketFooter, { props })
6556
+ /* @__PURE__ */ jsx38(MarketFooter, { props })
6492
6557
  ] })
6493
6558
  ] });
6494
6559
  }
6495
6560
 
6496
6561
  // packages/react/src/market-list.tsx
6497
6562
  import { tokens as tokens35 } from "@kjun-ui/tokens";
6498
- import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
6563
+ import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
6499
6564
  function KjunMarketSimpleList(props) {
6500
6565
  const {
6501
6566
  rows = [],
@@ -6509,16 +6574,16 @@ function KjunMarketSimpleList(props) {
6509
6574
  emptySubMessage = ""
6510
6575
  } = props;
6511
6576
  return /* @__PURE__ */ jsxs32("div", { className: "kjun-market-simple-list", children: [
6512
- /* @__PURE__ */ jsx38(
6577
+ /* @__PURE__ */ jsx39(
6513
6578
  KjunDataState,
6514
6579
  {
6515
6580
  ...props,
6516
6581
  loadingPadding: "none",
6517
6582
  empty: !rows.length,
6518
6583
  emptyText: emptyMessage,
6519
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx38(KjunListSkeleton, {}),
6520
- emptyContent: /* @__PURE__ */ jsx38(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6521
- children: /* @__PURE__ */ jsx38("div", { children: rows.map((row, i) => {
6584
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx39(KjunListSkeleton, {}),
6585
+ emptyContent: /* @__PURE__ */ jsx39(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6586
+ children: /* @__PURE__ */ jsx39("div", { children: rows.map((row, i) => {
6522
6587
  var _a, _b;
6523
6588
  const price = priceValue(row), change = changeValue(row), stale = !!getValue(row, "stale"), source = String(getValue(row, "source") || ""), fetchedAt = String(getValue(row, "fetched_at") || "");
6524
6589
  return /* @__PURE__ */ jsxs32(
@@ -6539,9 +6604,9 @@ function KjunMarketSimpleList(props) {
6539
6604
  }
6540
6605
  },
6541
6606
  children: [
6542
- /* @__PURE__ */ jsx38(MarketIdentity, { row, props }),
6607
+ /* @__PURE__ */ jsx39(MarketIdentity, { row, props }),
6543
6608
  /* @__PURE__ */ jsxs32("div", { className: "kjun-market-quote", children: [
6544
- /* @__PURE__ */ jsx38("div", { className: "kjun-market-price", children: /* @__PURE__ */ jsx38(
6609
+ /* @__PURE__ */ jsx39("div", { className: "kjun-market-price", children: /* @__PURE__ */ jsx39(
6545
6610
  KjunPriceCell,
6546
6611
  {
6547
6612
  value: price,
@@ -6552,7 +6617,7 @@ function KjunMarketSimpleList(props) {
6552
6617
  ) }),
6553
6618
  /* @__PURE__ */ jsxs32("div", { className: "kjun-market-change", children: [
6554
6619
  price !== null && ((_b = props.renderPricePrefix) == null ? void 0 : _b.call(props, row)),
6555
- (finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx38(KjunBadge, { variant: "secondary", size: "xs", children: "\uC885\uAC00" }) : /* @__PURE__ */ jsx38(
6620
+ (finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx39(KjunBadge, { variant: "secondary", size: "xs", children: "\uC885\uAC00" }) : /* @__PURE__ */ jsx39(
6556
6621
  KjunFreshness,
6557
6622
  {
6558
6623
  stale,
@@ -6560,7 +6625,7 @@ function KjunMarketSimpleList(props) {
6560
6625
  fetchedAt
6561
6626
  }
6562
6627
  )),
6563
- changeLoading(row) ? /* @__PURE__ */ jsx38(KjunSkeleton, { type: "block", height: tokens35.extensions.marketList.changeSkeletonHeight, width: tokens35.extensions.marketList.changeSkeletonWidth }) : change !== null ? /* @__PURE__ */ jsx38(
6628
+ changeLoading(row) ? /* @__PURE__ */ jsx39(KjunSkeleton, { type: "block", height: tokens35.extensions.marketList.changeSkeletonHeight, width: tokens35.extensions.marketList.changeSkeletonWidth }) : change !== null ? /* @__PURE__ */ jsx39(
6564
6629
  KjunSignedValue,
6565
6630
  {
6566
6631
  value: change,
@@ -6569,7 +6634,7 @@ function KjunMarketSimpleList(props) {
6569
6634
  format: "percent",
6570
6635
  isRaw: true
6571
6636
  }
6572
- ) : /* @__PURE__ */ jsx38("span", { children: "-" })
6637
+ ) : /* @__PURE__ */ jsx39("span", { children: "-" })
6573
6638
  ] })
6574
6639
  ] })
6575
6640
  ]
@@ -6579,20 +6644,20 @@ function KjunMarketSimpleList(props) {
6579
6644
  }) })
6580
6645
  }
6581
6646
  ),
6582
- /* @__PURE__ */ jsx38(MarketFooter, { props })
6647
+ /* @__PURE__ */ jsx39(MarketFooter, { props })
6583
6648
  ] });
6584
6649
  }
6585
6650
 
6586
6651
  // packages/react/src/market-panel.tsx
6587
6652
  import { tokens as tokens36 } from "@kjun-ui/tokens";
6588
- import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
6653
+ import { jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
6589
6654
  function KjunMarketListPanel({
6590
6655
  controls,
6591
6656
  children
6592
6657
  }) {
6593
6658
  return /* @__PURE__ */ jsxs33(KjunCard, { children: [
6594
- /* @__PURE__ */ jsx39("div", { children: controls }),
6595
- /* @__PURE__ */ jsx39("div", { style: { marginTop: tokens36.dimension.value16, borderTop: `${tokens36.border.defaultWidth}px solid var(--_kjun-color-border)` }, children })
6659
+ /* @__PURE__ */ jsx40("div", { children: controls }),
6660
+ /* @__PURE__ */ jsx40("div", { style: { marginTop: tokens36.dimension.value16, borderTop: `${tokens36.border.defaultWidth}px solid var(--_kjun-color-border)` }, children })
6596
6661
  ] });
6597
6662
  }
6598
6663
 
@@ -6615,7 +6680,7 @@ function watchTrailingOverflow(element, onChange) {
6615
6680
 
6616
6681
  // packages/react/src/market-table.tsx
6617
6682
  import { useEffect as useEffect20, useRef as useRef27, useState as useState28 } from "react";
6618
- import { jsx as jsx40, jsxs as jsxs34 } from "react/jsx-runtime";
6683
+ import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
6619
6684
  function KjunMarketTable(props) {
6620
6685
  const {
6621
6686
  rows = [],
@@ -6640,12 +6705,12 @@ function KjunMarketTable(props) {
6640
6705
  const render = (row, col) => {
6641
6706
  const value = getValue(row, col.key), stale = !!getValue(row, "stale");
6642
6707
  if (cellLoading(row, col))
6643
- return /* @__PURE__ */ jsx40(KjunSkeleton, { type: "block", height: tokens37.extensions.marketTable.valueSkeletonHeight, width: tokens37.extensions.marketTable.valueSkeletonWidth });
6708
+ return /* @__PURE__ */ jsx41(KjunSkeleton, { type: "block", height: tokens37.extensions.marketTable.valueSkeletonHeight, width: tokens37.extensions.marketTable.valueSkeletonWidth });
6644
6709
  if (renderCell) return renderCell(row, col);
6645
6710
  if (["stock_name", "name", "symbol"].includes(col.key))
6646
- return /* @__PURE__ */ jsx40(MarketIdentity, { row, props });
6711
+ return /* @__PURE__ */ jsx41(MarketIdentity, { row, props });
6647
6712
  if (col.type === "sparkline")
6648
- return /* @__PURE__ */ jsx40(
6713
+ return /* @__PURE__ */ jsx41(
6649
6714
  KjunSparkline,
6650
6715
  {
6651
6716
  data: Array.isArray(value) ? value : [],
@@ -6654,7 +6719,7 @@ function KjunMarketTable(props) {
6654
6719
  }
6655
6720
  );
6656
6721
  if (col.type === "price")
6657
- return /* @__PURE__ */ jsx40(
6722
+ return /* @__PURE__ */ jsx41(
6658
6723
  KjunPriceCell,
6659
6724
  {
6660
6725
  value: finiteNumber(value),
@@ -6664,7 +6729,7 @@ function KjunMarketTable(props) {
6664
6729
  }
6665
6730
  );
6666
6731
  if (col.type === "percent")
6667
- return value == null ? "-" : /* @__PURE__ */ jsx40(
6732
+ return value == null ? "-" : /* @__PURE__ */ jsx41(
6668
6733
  KjunSignedValue,
6669
6734
  {
6670
6735
  value: finiteNumber(value),
@@ -6680,7 +6745,7 @@ function KjunMarketTable(props) {
6680
6745
  }
6681
6746
  );
6682
6747
  const text = formatMetric ? formatMetric(value, col.type || "text", { currency, row, column: col }) : value == null ? "-" : String(value);
6683
- return ["investor", "net_amount", "net_volume"].includes(col.type || "") ? /* @__PURE__ */ jsx40(
6748
+ return ["investor", "net_amount", "net_volume"].includes(col.type || "") ? /* @__PURE__ */ jsx41(
6684
6749
  KjunSignedValue,
6685
6750
  {
6686
6751
  value: finiteNumber(value),
@@ -6697,23 +6762,23 @@ function KjunMarketTable(props) {
6697
6762
  "data-embedded": embedded,
6698
6763
  ref: domainColorRef(showActions && rows.length > 0 && !props.loading),
6699
6764
  children: [
6700
- /* @__PURE__ */ jsx40(
6765
+ /* @__PURE__ */ jsx41(
6701
6766
  KjunDataState,
6702
6767
  {
6703
6768
  ...props,
6704
6769
  loadingPadding: "none",
6705
6770
  empty: !rows.length,
6706
6771
  emptyText: emptyMessage,
6707
- loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx40(KjunMarketTableSkeleton, { columns, showActions }),
6708
- emptyContent: /* @__PURE__ */ jsx40(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6709
- 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: [
6710
- /* @__PURE__ */ jsx40(MarketColumns, { columns, showActions }),
6711
- /* @__PURE__ */ jsx40("thead", { children: /* @__PURE__ */ jsxs34("tr", { children: [
6772
+ loadingContent: props.skeleton === false ? void 0 : /* @__PURE__ */ jsx41(KjunMarketTableSkeleton, { columns, showActions }),
6773
+ emptyContent: /* @__PURE__ */ jsx41(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
6774
+ 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: [
6775
+ /* @__PURE__ */ jsx41(MarketColumns, { columns, showActions }),
6776
+ /* @__PURE__ */ jsx41("thead", { children: /* @__PURE__ */ jsxs34("tr", { children: [
6712
6777
  showActions && /* @__PURE__ */ jsxs34("th", { className: "kjun-market-actions", children: [
6713
- /* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "interest", size: "md" }) }),
6714
- /* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "favorite", size: "md" }) })
6778
+ /* @__PURE__ */ jsx41("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx41(KjunCollectionMark, { kind: "interest", size: "md" }) }),
6779
+ /* @__PURE__ */ jsx41("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx41(KjunCollectionMark, { kind: "favorite", size: "md" }) })
6715
6780
  ] }),
6716
- columns.map((col) => /* @__PURE__ */ jsx40(
6781
+ columns.map((col) => /* @__PURE__ */ jsx41(
6717
6782
  "th",
6718
6783
  {
6719
6784
  style: { textAlign: col.align },
@@ -6728,7 +6793,7 @@ function KjunMarketTable(props) {
6728
6793
  },
6729
6794
  children: [
6730
6795
  col.label,
6731
- /* @__PURE__ */ jsx40(
6796
+ /* @__PURE__ */ jsx41(
6732
6797
  KjunIcon,
6733
6798
  {
6734
6799
  name: sortKey === col.key ? sortOrder === "asc" ? "sort-ascending" : "sort-descending" : "arrows-sort",
@@ -6742,7 +6807,7 @@ function KjunMarketTable(props) {
6742
6807
  col.key
6743
6808
  ))
6744
6809
  ] }) }),
6745
- /* @__PURE__ */ jsx40("tbody", { children: rows.map((row, i) => {
6810
+ /* @__PURE__ */ jsx41("tbody", { children: rows.map((row, i) => {
6746
6811
  var _a, _b, _c, _d, _e, _f;
6747
6812
  const id = getValue(row, rowKey), priceCol = columns.find(
6748
6813
  (c) => c.type === "price" && !cellLoading(row, c) && getValue(row, c.key) != null
@@ -6756,7 +6821,7 @@ function KjunMarketTable(props) {
6756
6821
  },
6757
6822
  children: [
6758
6823
  showActions && /* @__PURE__ */ jsxs34("td", { className: "kjun-market-actions", children: [
6759
- /* @__PURE__ */ jsx40(
6824
+ /* @__PURE__ */ jsx41(
6760
6825
  KjunIconToggle,
6761
6826
  {
6762
6827
  size: "xs",
@@ -6775,7 +6840,7 @@ function KjunMarketTable(props) {
6775
6840
  }
6776
6841
  }
6777
6842
  ),
6778
- /* @__PURE__ */ jsx40(
6843
+ /* @__PURE__ */ jsx41(
6779
6844
  KjunIconToggle,
6780
6845
  {
6781
6846
  size: "xs",
@@ -6804,7 +6869,7 @@ function KjunMarketTable(props) {
6804
6869
  },
6805
6870
  children: [
6806
6871
  render(row, col),
6807
- col.key === (priceCol == null ? void 0 : priceCol.key) && /* @__PURE__ */ jsx40(
6872
+ col.key === (priceCol == null ? void 0 : priceCol.key) && /* @__PURE__ */ jsx41(
6808
6873
  KjunFreshness,
6809
6874
  {
6810
6875
  stale: !!getValue(row, "stale"),
@@ -6826,7 +6891,7 @@ function KjunMarketTable(props) {
6826
6891
  ] }) })
6827
6892
  }
6828
6893
  ),
6829
- /* @__PURE__ */ jsx40(MarketFooter, { props })
6894
+ /* @__PURE__ */ jsx41(MarketFooter, { props })
6830
6895
  ]
6831
6896
  }
6832
6897
  );
@@ -6834,20 +6899,20 @@ function KjunMarketTable(props) {
6834
6899
 
6835
6900
  // packages/react/src/list.tsx
6836
6901
  import { useId as useId12 } from "react";
6837
- import { Fragment as Fragment17, jsx as jsx41, jsxs as jsxs35 } from "react/jsx-runtime";
6902
+ import { Fragment as Fragment17, jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
6838
6903
  function KjunListRow({ title, description, leading, trailing, actions, href, disabled = false, onClick }) {
6839
6904
  const contents = /* @__PURE__ */ jsxs35(Fragment17, { children: [
6840
- leading && /* @__PURE__ */ jsx41("span", { className: "kjun-list-leading", children: leading }),
6905
+ leading && /* @__PURE__ */ jsx42("span", { className: "kjun-list-leading", children: leading }),
6841
6906
  /* @__PURE__ */ jsxs35("span", { className: "kjun-list-body", children: [
6842
- /* @__PURE__ */ jsx41("span", { className: "kjun-list-title", children: title }),
6843
- description && /* @__PURE__ */ jsx41("span", { className: "kjun-list-description", children: description })
6907
+ /* @__PURE__ */ jsx42("span", { className: "kjun-list-title", children: title }),
6908
+ description && /* @__PURE__ */ jsx42("span", { className: "kjun-list-description", children: description })
6844
6909
  ] }),
6845
- trailing && /* @__PURE__ */ jsx41("span", { className: "kjun-list-trailing", children: trailing })
6910
+ trailing && /* @__PURE__ */ jsx42("span", { className: "kjun-list-trailing", children: trailing })
6846
6911
  ] });
6847
- 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 });
6912
+ 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 });
6848
6913
  return /* @__PURE__ */ jsxs35("li", { className: "kjun-list-row", children: [
6849
6914
  main,
6850
- actions && /* @__PURE__ */ jsx41("div", { className: "kjun-list-actions", "data-disabled": disabled || void 0, inert: disabled || void 0, children: actions })
6915
+ actions && /* @__PURE__ */ jsx42("div", { className: "kjun-list-actions", "data-disabled": disabled || void 0, inert: disabled || void 0, children: actions })
6851
6916
  ] });
6852
6917
  }
6853
6918
  function KjunListSection({ title, description, actions, children, ariaLabel }) {
@@ -6855,39 +6920,39 @@ function KjunListSection({ title, description, actions, children, ariaLabel }) {
6855
6920
  return /* @__PURE__ */ jsxs35("section", { className: "kjun-list-section", "aria-labelledby": title ? id : void 0, "aria-label": title ? void 0 : ariaLabel, children: [
6856
6921
  (title || description || actions) && /* @__PURE__ */ jsxs35("div", { className: "kjun-list-heading", children: [
6857
6922
  /* @__PURE__ */ jsxs35("div", { children: [
6858
- title && /* @__PURE__ */ jsx41("h3", { id, children: title }),
6859
- description && /* @__PURE__ */ jsx41("p", { children: description })
6923
+ title && /* @__PURE__ */ jsx42("h3", { id, children: title }),
6924
+ description && /* @__PURE__ */ jsx42("p", { children: description })
6860
6925
  ] }),
6861
6926
  actions
6862
6927
  ] }),
6863
- /* @__PURE__ */ jsx41("ul", { className: "kjun-list", "aria-label": ariaLabel || title, children })
6928
+ /* @__PURE__ */ jsx42("ul", { className: "kjun-list", "aria-label": ariaLabel || title, children })
6864
6929
  ] });
6865
6930
  }
6866
6931
 
6867
6932
  // packages/react/src/app-navigation.tsx
6868
6933
  import { tokens as tokens38 } from "@kjun-ui/tokens";
6869
- import { jsx as jsx42, jsxs as jsxs36 } from "react/jsx-runtime";
6934
+ import { jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
6870
6935
  function KjunTopNavigation({ title, description, leading, actions, safeAreaTop = 0 }) {
6871
- 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: [
6872
- leading && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-leading", children: leading }),
6936
+ 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: [
6937
+ leading && /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-leading", children: leading }),
6873
6938
  /* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-title", children: [
6874
- /* @__PURE__ */ jsx42("strong", { children: title }),
6875
- description && /* @__PURE__ */ jsx42("p", { children: description })
6939
+ /* @__PURE__ */ jsx43("strong", { children: title }),
6940
+ description && /* @__PURE__ */ jsx43("p", { children: description })
6876
6941
  ] }),
6877
- actions && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-actions", children: actions })
6942
+ actions && /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-actions", children: actions })
6878
6943
  ] }) }) });
6879
6944
  }
6880
6945
  function KjunBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\uC0C9", safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = true, onNavigate }) {
6881
6946
  const hasIcons = items.some((item) => item.icon);
6882
6947
  if (keyboardVisible && hideOnKeyboard) return null;
6883
- 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) => {
6884
- const badge = item.badge != null && /* @__PURE__ */ jsx42("span", { className: "kjun-navigation-badge", "aria-hidden": "true", children: item.badge });
6948
+ 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) => {
6949
+ const badge = item.badge != null && /* @__PURE__ */ jsx43("span", { className: "kjun-navigation-badge", "aria-hidden": "true", children: item.badge });
6885
6950
  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) => {
6886
6951
  if (item.disabled) event.preventDefault();
6887
6952
  else onNavigate == null ? void 0 : onNavigate(item.key, event);
6888
6953
  }, children: [
6889
6954
  hasIcons && /* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-icon", children: [
6890
- item.icon && /* @__PURE__ */ jsx42(KjunIcon, { name: item.icon, size: tokens38.extensions.bottomNavigation.iconSize }),
6955
+ item.icon && /* @__PURE__ */ jsx43(KjunIcon, { name: item.icon, size: tokens38.extensions.bottomNavigation.iconSize }),
6891
6956
  badge
6892
6957
  ] }),
6893
6958
  /* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-label", children: [
@@ -6899,16 +6964,16 @@ function KjunBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\u
6899
6964
  }
6900
6965
  function KjunBottomActionBar({ description, children, safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = false }) {
6901
6966
  if (keyboardVisible && hideOnKeyboard) return null;
6902
- 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: [
6903
- description && /* @__PURE__ */ jsx42("p", { children: description }),
6904
- /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-actions", children })
6967
+ 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: [
6968
+ description && /* @__PURE__ */ jsx43("p", { children: description }),
6969
+ /* @__PURE__ */ jsx43("div", { className: "kjun-navigation-actions", children })
6905
6970
  ] }) });
6906
6971
  }
6907
6972
 
6908
6973
  // packages/react/src/media.tsx
6909
6974
  import { useRef as useRef28, useState as useState29 } from "react";
6910
6975
  import { tokens as tokens39 } from "@kjun-ui/tokens";
6911
- import { jsx as jsx43, jsxs as jsxs37 } from "react/jsx-runtime";
6976
+ import { jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
6912
6977
  function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover", fallback: fallback2, lazy = true, onLoad, onError }) {
6913
6978
  const current = useRef28({ src, version: 0 });
6914
6979
  if (current.current.src !== src) current.current = { src, version: current.current.version + 1 };
@@ -6917,7 +6982,7 @@ function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover
6917
6982
  const state = result.version === version ? result.state : "loading";
6918
6983
  const failed = !src || state === "error";
6919
6984
  return /* @__PURE__ */ jsxs37("span", { className: "kjun-image", style: { aspectRatio: aspectRatio > 0 ? aspectRatio : 1 }, "data-state": failed ? "error" : state, children: [
6920
- !failed && /* @__PURE__ */ jsx43("img", { src, alt: decorative ? "" : alt, loading: lazy ? "lazy" : "eager", style: { objectFit: fit }, onLoad: () => {
6985
+ !failed && /* @__PURE__ */ jsx44("img", { src, alt: decorative ? "" : alt, loading: lazy ? "lazy" : "eager", style: { objectFit: fit }, onLoad: () => {
6921
6986
  if (current.current.version !== version) return;
6922
6987
  setResult({ version, state: "loaded" });
6923
6988
  onLoad == null ? void 0 : onLoad();
@@ -6926,21 +6991,21 @@ function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover
6926
6991
  setResult({ version, state: "error" });
6927
6992
  onError == null ? void 0 : onError();
6928
6993
  } }, version),
6929
- 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 }) })
6994
+ 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 }) })
6930
6995
  ] });
6931
6996
  }
6932
6997
  function KjunAvatar({ src, name = "", alt, decorative = false, size = "md", shape = "circle", fallback: fallback2, onLoad, onError }) {
6933
- 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 }) });
6998
+ 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 }) });
6934
6999
  }
6935
7000
 
6936
7001
  // packages/react/src/chip.tsx
6937
7002
  import { tokens as tokens40 } from "@kjun-ui/tokens";
6938
- import { jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
7003
+ import { jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
6939
7004
  function KjunChip({ label, icon, removable = false, disabled = false, size = "md", removeLabel, onRemove }) {
6940
7005
  return /* @__PURE__ */ jsxs38("span", { className: "kjun-chip", "data-size": size, "data-disabled": disabled, "data-removable": removable, children: [
6941
- icon && /* @__PURE__ */ jsx44(KjunIcon, { name: icon, size: tokens40.extensions.chip.iconSizes[size] }),
6942
- /* @__PURE__ */ jsx44("span", { children: label }),
6943
- 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] }) })
7006
+ icon && /* @__PURE__ */ jsx45(KjunIcon, { name: icon, size: tokens40.extensions.chip.iconSizes[size] }),
7007
+ /* @__PURE__ */ jsx45("span", { children: label }),
7008
+ 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] }) })
6944
7009
  ] });
6945
7010
  }
6946
7011
 
@@ -6948,7 +7013,7 @@ function KjunChip({ label, icon, removable = false, disabled = false, size = "md
6948
7013
  import { useEffect as useEffect21, useRef as useRef29 } from "react";
6949
7014
  import { Slider, SliderTrack, SliderThumb, Label, SliderOutput } from "react-aria-components";
6950
7015
  import { createSliderDomain } from "@kjun-ui/tokens";
6951
- import { Fragment as Fragment18, jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
7016
+ import { Fragment as Fragment18, jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
6952
7017
  function RangeInput({ value, min = 0, max = 100, step = 1, disabled = false, label, ariaLabel, onValueChange, onChangeCommit, ...rest }) {
6953
7018
  const thumbLabels = "thumbLabels" in rest ? rest.thumbLabels || ["\uCD5C\uC19F\uAC12", "\uCD5C\uB313\uAC12"] : ["\uCD5C\uC19F\uAC12", "\uCD5C\uB313\uAC12"];
6954
7019
  const domain = createSliderDomain(min, max, step);
@@ -6976,27 +7041,27 @@ function RangeInput({ value, min = 0, max = 100, step = 1, disabled = false, lab
6976
7041
  }
6977
7042
  }, children: [
6978
7043
  /* @__PURE__ */ jsxs39("div", { className: "kjun-slider-caption", children: [
6979
- label && /* @__PURE__ */ jsx45(Label, { className: "kjun-slider-label", children: label }),
6980
- /* @__PURE__ */ jsx45(SliderOutput, { className: "kjun-slider-value", children: ({ state }) => state.values.join(" \u2013 ") })
7044
+ label && /* @__PURE__ */ jsx46(Label, { className: "kjun-slider-label", children: label }),
7045
+ /* @__PURE__ */ jsx46(SliderOutput, { className: "kjun-slider-value", children: ({ state }) => state.values.join(" \u2013 ") })
6981
7046
  ] }),
6982
- /* @__PURE__ */ jsx45(SliderTrack, { className: "kjun-slider-track", children: ({ state }) => /* @__PURE__ */ jsxs39(Fragment18, { children: [
6983
- /* @__PURE__ */ jsx45("div", { className: "kjun-slider-rail" }),
6984
- /* @__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 + "%" } }),
6985
- list.map((_, i) => /* @__PURE__ */ jsx45(SliderThumb, { index: i, className: "kjun-slider-thumb", "aria-label": list.length === 2 ? thumbLabels[i] : ariaLabel || label || "\uAC12" }, i))
7047
+ /* @__PURE__ */ jsx46(SliderTrack, { className: "kjun-slider-track", children: ({ state }) => /* @__PURE__ */ jsxs39(Fragment18, { children: [
7048
+ /* @__PURE__ */ jsx46("div", { className: "kjun-slider-rail" }),
7049
+ /* @__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 + "%" } }),
7050
+ list.map((_, i) => /* @__PURE__ */ jsx46(SliderThumb, { index: i, className: "kjun-slider-thumb", "aria-label": list.length === 2 ? thumbLabels[i] : ariaLabel || label || "\uAC12" }, i))
6986
7051
  ] }) })
6987
7052
  ] });
6988
7053
  }
6989
7054
  function KjunSlider(props) {
6990
- return /* @__PURE__ */ jsx45(RangeInput, { ...props });
7055
+ return /* @__PURE__ */ jsx46(RangeInput, { ...props });
6991
7056
  }
6992
7057
  function KjunRangeSlider(props) {
6993
- return /* @__PURE__ */ jsx45(RangeInput, { ...props });
7058
+ return /* @__PURE__ */ jsx46(RangeInput, { ...props });
6994
7059
  }
6995
7060
 
6996
7061
  // packages/react/src/quantity-stepper.tsx
6997
7062
  import { useEffect as useEffect22, useRef as useRef30, useState as useState30 } from "react";
6998
7063
  import { createNumberDomain, quantityKeyAction, tokens as tokens41 } from "@kjun-ui/tokens";
6999
- import { jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
7064
+ import { jsx as jsx47, jsxs as jsxs40 } from "react/jsx-runtime";
7000
7065
  function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disabled = false, error = false, size = "md", block = false, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }) {
7001
7066
  const geometry = tokens41.extensions.compound;
7002
7067
  const buttonStyle = { width: tokens41.input[size].height, padding: 0 };
@@ -7044,9 +7109,9 @@ function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, dis
7044
7109
  } else if (action === "commit") commit();
7045
7110
  else move(action === "increment" ? 1 : -1);
7046
7111
  };
7047
- 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: [
7048
- /* @__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" }),
7049
- /* @__PURE__ */ jsx46(
7112
+ 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: [
7113
+ /* @__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" }),
7114
+ /* @__PURE__ */ jsx47(
7050
7115
  "input",
7051
7116
  {
7052
7117
  className: "kjun-input",
@@ -7080,14 +7145,14 @@ function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, dis
7080
7145
  "aria-required": (field == null ? void 0 : field.required) || void 0
7081
7146
  }
7082
7147
  ),
7083
- /* @__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" })
7148
+ /* @__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" })
7084
7149
  ] }) });
7085
7150
  }
7086
7151
 
7087
7152
  // packages/react/src/time-picker.tsx
7088
7153
  import { Fragment as Fragment19, useEffect as useEffect23, useId as useId13, useMemo as useMemo2, useRef as useRef31 } from "react";
7089
7154
  import { createTimeDomain } from "@kjun-ui/tokens";
7090
- import { jsx as jsx47, jsxs as jsxs41 } from "react/jsx-runtime";
7155
+ import { jsx as jsx48, jsxs as jsxs41 } from "react/jsx-runtime";
7091
7156
  function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1, secondStep = 1, disabled = false, error = false, clearable = true, size = "md", ariaLabel = "\uC2DC\uAC04", onValueChange, onChangeCommit }) {
7092
7157
  const root = useRef31(null);
7093
7158
  const field = useKjunField(), uid = useId13();
@@ -7105,14 +7170,14 @@ function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1,
7105
7170
  };
7106
7171
  const time = value === null ? null : domain.parse(value);
7107
7172
  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: [
7108
- /* @__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) => {
7173
+ /* @__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) => {
7109
7174
  const segmentId = index === 0 ? fieldId : `${fieldId}-${index}`;
7110
7175
  const labelId = `${fieldId}-segment-${index}`;
7111
7176
  return /* @__PURE__ */ jsxs41(Fragment19, { children: [
7112
- index > 0 && /* @__PURE__ */ jsx47("span", { className: "kjun-time-separator", "aria-hidden": true, children: ":" }),
7113
- /* @__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: [
7114
- /* @__PURE__ */ jsx47("span", { id: labelId, className: "kjun-sr-only", "aria-hidden": true, children: label }),
7115
- /* @__PURE__ */ jsx47(
7177
+ index > 0 && /* @__PURE__ */ jsx48("span", { className: "kjun-time-separator", "aria-hidden": true, children: ":" }),
7178
+ /* @__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: [
7179
+ /* @__PURE__ */ jsx48("span", { id: labelId, className: "kjun-sr-only", "aria-hidden": true, children: label }),
7180
+ /* @__PURE__ */ jsx48(
7116
7181
  KjunSelect,
7117
7182
  {
7118
7183
  value: time === null ? null : domain.part(time, index),
@@ -7132,7 +7197,7 @@ function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1,
7132
7197
  ] }) })
7133
7198
  ] }, label);
7134
7199
  }) }) }),
7135
- clearable && value !== null && /* @__PURE__ */ jsx47(KjunButton, { className: "kjun-time-clear", size, variant: "ghost", prefixIcon: "x", ariaLabel: ariaLabel + " \uC9C0\uC6B0\uAE30", disabled: disabled || !valid, onClick: () => {
7200
+ clearable && value !== null && /* @__PURE__ */ jsx48(KjunButton, { className: "kjun-time-clear", size, variant: "ghost", prefixIcon: "x", ariaLabel: ariaLabel + " \uC9C0\uC6B0\uAE30", disabled: disabled || !valid, onClick: () => {
7136
7201
  var _a, _b;
7137
7202
  change(null);
7138
7203
  (_b = (_a = root.current) == null ? void 0 : _a.querySelector(".kjun-select-trigger")) == null ? void 0 : _b.focus();
@@ -7179,6 +7244,7 @@ export {
7179
7244
  KjunIcon,
7180
7245
  KjunIconToggle,
7181
7246
  KjunImage,
7247
+ KjunInline,
7182
7248
  KjunInput,
7183
7249
  KjunKpiHero,
7184
7250
  KjunKpiRow,
@@ -7211,10 +7277,12 @@ export {
7211
7277
  KjunSlider,
7212
7278
  KjunSparkline,
7213
7279
  KjunSpinner,
7280
+ KjunStack,
7214
7281
  KjunSwitch,
7215
7282
  KjunTabPane,
7216
7283
  KjunTable,
7217
7284
  KjunTabs,
7285
+ KjunText,
7218
7286
  KjunTextarea,
7219
7287
  KjunTimePicker,
7220
7288
  KjunTooltip,