@x-plat/design-system 0.17.0 → 0.19.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
@@ -6818,9 +6818,9 @@ var ChartTooltip = ({ x, y, containerWidth, containerHeight, tooltipType, childr
6818
6818
  }
6819
6819
  );
6820
6820
  };
6821
- var ChartLegend = ({ data, labels, type }) => {
6821
+ var ChartLegend = ({ data, labels, shape }) => {
6822
6822
  const entries = Object.entries(data);
6823
- if (type === "pie" || type === "doughnut") {
6823
+ if (shape === "pie" || shape === "doughnut") {
6824
6824
  const values = entries.flatMap(([, v]) => v);
6825
6825
  const total = values.reduce((a, b) => a + b, 0) || 1;
6826
6826
  const firstKey = entries[0]?.[0] ?? "";
@@ -6857,8 +6857,9 @@ var ChartLegend = ({ data, labels, type }) => {
6857
6857
  }) });
6858
6858
  };
6859
6859
  var Chart = React6.memo((props) => {
6860
- const { variant, type, data, labels, tooltip: showTooltip = true, tooltipType = "light" } = props;
6860
+ const { variant, type, data, labels, legend, tooltip: showTooltip = true, tooltipType = "light" } = props;
6861
6861
  const shape = variant ?? type ?? "line";
6862
+ const showLegend = legend ?? (shape === "pie" || shape === "doughnut");
6862
6863
  const { tooltip, show, hide, move, containerRef } = useChartTooltip(showTooltip);
6863
6864
  const { width, height } = useChartSize(containerRef);
6864
6865
  const stableData = React6.useMemo(() => data, [JSON.stringify(data)]);
@@ -6872,7 +6873,7 @@ var Chart = React6.memo((props) => {
6872
6873
  ready && shape === "bar" && /* @__PURE__ */ jsx306(BarChart, { data: stableData, labels: stableLabels, width, height, animate, onHover: show, onMove: move, onLeave: hide }),
6873
6874
  ready && shape === "pie" && /* @__PURE__ */ jsx306(PieDonutChart, { data: stableData, labels: stableLabels, width, height, animate, onHover: show, onMove: move, onLeave: hide }),
6874
6875
  ready && shape === "doughnut" && /* @__PURE__ */ jsx306(PieDonutChart, { data: stableData, labels: stableLabels, width, height, animate, isDoughnut: true, onHover: show, onMove: move, onLeave: hide }),
6875
- ready && (type === "pie" || type === "doughnut") && /* @__PURE__ */ jsx306(ChartLegend, { data: stableData, labels: stableLabels, type }),
6876
+ ready && showLegend && /* @__PURE__ */ jsx306(ChartLegend, { data: stableData, labels: stableLabels, shape }),
6876
6877
  tooltip.visible && tooltip.content && /* @__PURE__ */ jsx306(ChartTooltip, { x: tooltip.x, y: tooltip.y, containerWidth: width, containerHeight: height, tooltipType, children: tooltip.content })
6877
6878
  ] });
6878
6879
  });
@@ -11041,6 +11042,9 @@ var Switch = (props) => {
11041
11042
  Switch.displayName = "Switch";
11042
11043
  var Switch_default = Switch;
11043
11044
 
11045
+ // src/components/Table/Table.tsx
11046
+ import React36 from "react";
11047
+
11044
11048
  // src/components/Table/TableContext.tsx
11045
11049
  import React35 from "react";
11046
11050
  var TableContext = React35.createContext(null);
@@ -11052,7 +11056,36 @@ var useTableContext = () => {
11052
11056
  var TableContext_default = TableContext;
11053
11057
 
11054
11058
  // src/components/Table/Table.tsx
11055
- import { jsx as jsx344 } from "react/jsx-runtime";
11059
+ import { jsx as jsx344, jsxs as jsxs221 } from "react/jsx-runtime";
11060
+ var useScrollExtent = (scrollerRef, thumbRef) => {
11061
+ const [scrollable, setScrollable] = React36.useState(false);
11062
+ React36.useEffect(() => {
11063
+ const el = scrollerRef.current;
11064
+ if (!el) return;
11065
+ const update = () => {
11066
+ const max = el.scrollWidth - el.clientWidth;
11067
+ const can = max > 1;
11068
+ setScrollable(can);
11069
+ const thumb = thumbRef.current;
11070
+ if (!thumb) return;
11071
+ const ratio = can ? el.clientWidth / el.scrollWidth : 1;
11072
+ const w = Math.max(ratio * 100, 8);
11073
+ thumb.style.width = `${w.toFixed(2)}%`;
11074
+ thumb.style.left = can ? `${(el.scrollLeft / max * (100 - w)).toFixed(2)}%` : "0%";
11075
+ };
11076
+ update();
11077
+ el.addEventListener("scroll", update, { passive: true });
11078
+ const ro = new ResizeObserver(update);
11079
+ ro.observe(el);
11080
+ const table = el.firstElementChild;
11081
+ if (table) ro.observe(table);
11082
+ return () => {
11083
+ el.removeEventListener("scroll", update);
11084
+ ro.disconnect();
11085
+ };
11086
+ }, [scrollerRef, thumbRef]);
11087
+ return scrollable;
11088
+ };
11056
11089
  var Table = (props) => {
11057
11090
  const {
11058
11091
  children,
@@ -11063,27 +11096,46 @@ var Table = (props) => {
11063
11096
  stickyShadow = true,
11064
11097
  minWidth
11065
11098
  } = props;
11066
- return /* @__PURE__ */ jsx344(
11067
- "div",
11068
- {
11069
- className: `lib-xplat-table-wrapper ${size}`,
11070
- "data-xplat-overlay-escape": "",
11071
- style: minWidth === void 0 ? void 0 : {
11072
- "--table-min-width": typeof minWidth === "number" ? `${minWidth}px` : minWidth
11073
- },
11074
- children: /* @__PURE__ */ jsx344(
11075
- TableContext_default.Provider,
11076
- {
11077
- value: {
11078
- rowBorderUse,
11079
- colBorderUse,
11080
- headerSticky,
11081
- stickyShadow
11082
- },
11083
- children: /* @__PURE__ */ jsx344("table", { className: "lib-xplat-table", children })
11084
- }
11085
- )
11086
- }
11099
+ const scrollerRef = React36.useRef(null);
11100
+ const thumbRef = React36.useRef(null);
11101
+ const scrollable = useScrollExtent(scrollerRef, thumbRef);
11102
+ return (
11103
+ /**
11104
+ * 바깥 이름(`lib-xplat-table-wrapper`)을 그대로 둔다 — 소비처가 이 클래스를
11105
+ * 자리 잡는 데 쓰고 있을 수 있어서다. 스크롤은 안쪽 `-scroller` 가 맡는다.
11106
+ */
11107
+ /* @__PURE__ */ jsxs221(
11108
+ "div",
11109
+ {
11110
+ className: `lib-xplat-table-wrapper ${size}`,
11111
+ style: minWidth === void 0 ? void 0 : {
11112
+ "--table-min-width": typeof minWidth === "number" ? `${minWidth}px` : minWidth
11113
+ },
11114
+ children: [
11115
+ /* @__PURE__ */ jsx344(
11116
+ "div",
11117
+ {
11118
+ ref: scrollerRef,
11119
+ className: "lib-xplat-table-scroller",
11120
+ "data-xplat-overlay-escape": "",
11121
+ children: /* @__PURE__ */ jsx344(
11122
+ TableContext_default.Provider,
11123
+ {
11124
+ value: {
11125
+ rowBorderUse,
11126
+ colBorderUse,
11127
+ headerSticky,
11128
+ stickyShadow
11129
+ },
11130
+ children: /* @__PURE__ */ jsx344("table", { className: "lib-xplat-table", children })
11131
+ }
11132
+ )
11133
+ }
11134
+ ),
11135
+ /* @__PURE__ */ jsx344("div", { className: `lib-xplat-table-scrollbar${scrollable ? " scrollable" : ""}`, "aria-hidden": true, children: /* @__PURE__ */ jsx344("div", { ref: thumbRef, className: "table-scrollbar-thumb" }) })
11136
+ ]
11137
+ }
11138
+ )
11087
11139
  );
11088
11140
  };
11089
11141
  Table.displayName = "Table";
@@ -11099,24 +11151,24 @@ TableBody.displayName = "TableBody";
11099
11151
  var TableBody_default = TableBody;
11100
11152
 
11101
11153
  // src/components/Table/TableCell.tsx
11102
- import React38 from "react";
11154
+ import React39 from "react";
11103
11155
 
11104
11156
  // src/components/Table/TableHeadContext.tsx
11105
- import React36 from "react";
11106
- var TableHeadContext = React36.createContext(
11157
+ import React37 from "react";
11158
+ var TableHeadContext = React37.createContext(
11107
11159
  null
11108
11160
  );
11109
11161
  var useTableHeadContext = () => {
11110
- const ctx = React36.useContext(TableHeadContext);
11162
+ const ctx = React37.useContext(TableHeadContext);
11111
11163
  return ctx;
11112
11164
  };
11113
11165
  var TableHeadContext_default = TableHeadContext;
11114
11166
 
11115
11167
  // src/components/Table/TableRowContext.tsx
11116
- import React37 from "react";
11117
- var TableRowContext = React37.createContext(null);
11168
+ import React38 from "react";
11169
+ var TableRowContext = React38.createContext(null);
11118
11170
  var useTableRowContext = () => {
11119
- const ctx = React37.useContext(TableRowContext);
11171
+ const ctx = React38.useContext(TableRowContext);
11120
11172
  if (!ctx) throw new Error("Table components must be used inside <Table>");
11121
11173
  return ctx;
11122
11174
  };
@@ -11124,7 +11176,7 @@ var TableRowContext_default = TableRowContext;
11124
11176
 
11125
11177
  // src/components/Table/TableCell.tsx
11126
11178
  import { jsx as jsx346 } from "react/jsx-runtime";
11127
- var TableCell = React38.memo((props) => {
11179
+ var TableCell = React39.memo((props) => {
11128
11180
  const {
11129
11181
  children,
11130
11182
  align = "center",
@@ -11138,9 +11190,9 @@ var TableCell = React38.memo((props) => {
11138
11190
  const { registerStickyCell, stickyCells } = useTableRowContext();
11139
11191
  const { stickyShadow } = useTableContext();
11140
11192
  const headContext = useTableHeadContext();
11141
- const [left, setLeft] = React38.useState(0);
11142
- const cellRef = React38.useRef(null);
11143
- const calculateLeft = React38.useCallback(() => {
11193
+ const [left, setLeft] = React39.useState(0);
11194
+ const cellRef = React39.useRef(null);
11195
+ const calculateLeft = React39.useCallback(() => {
11144
11196
  if (!cellRef.current) return 0;
11145
11197
  let totalLeft = 0;
11146
11198
  for (const ref of stickyCells) {
@@ -11149,7 +11201,7 @@ var TableCell = React38.memo((props) => {
11149
11201
  }
11150
11202
  return totalLeft;
11151
11203
  }, [stickyCells]);
11152
- React38.useEffect(() => {
11204
+ React39.useEffect(() => {
11153
11205
  if (!isSticky || !cellRef.current) return;
11154
11206
  registerStickyCell(cellRef);
11155
11207
  setLeft(calculateLeft());
@@ -11207,9 +11259,9 @@ TableHead.displayName = "TableHead";
11207
11259
  var TableHead_default = TableHead;
11208
11260
 
11209
11261
  // src/components/Table/TableRow.tsx
11210
- import React39 from "react";
11262
+ import React40 from "react";
11211
11263
  import { jsx as jsx348 } from "react/jsx-runtime";
11212
- var TableRow = React39.memo((props) => {
11264
+ var TableRow = React40.memo((props) => {
11213
11265
  const {
11214
11266
  children,
11215
11267
  type = "secondary",
@@ -11218,7 +11270,7 @@ var TableRow = React39.memo((props) => {
11218
11270
  onClick
11219
11271
  } = props;
11220
11272
  const { rowBorderUse } = useTableContext();
11221
- const [stickyCells, setStickyCells] = React39.useState([]);
11273
+ const [stickyCells, setStickyCells] = React40.useState([]);
11222
11274
  const registerStickyCell = (ref) => {
11223
11275
  setStickyCells((prev) => {
11224
11276
  if (prev.includes(ref)) return prev;
@@ -11249,7 +11301,7 @@ TableRow.displayName = "TableRow";
11249
11301
  var TableRow_default = TableRow;
11250
11302
 
11251
11303
  // src/components/Tag/Tag.tsx
11252
- import { jsx as jsx349, jsxs as jsxs221 } from "react/jsx-runtime";
11304
+ import { jsx as jsx349, jsxs as jsxs222 } from "react/jsx-runtime";
11253
11305
  var Tag = (props) => {
11254
11306
  const {
11255
11307
  children,
@@ -11261,7 +11313,7 @@ var Tag = (props) => {
11261
11313
  colorIndex
11262
11314
  } = props;
11263
11315
  const shape = variant ?? type ?? "neutral";
11264
- return /* @__PURE__ */ jsxs221(
11316
+ return /* @__PURE__ */ jsxs222(
11265
11317
  "span",
11266
11318
  {
11267
11319
  className: clsx_default(
@@ -11282,9 +11334,9 @@ Tag.displayName = "Tag";
11282
11334
  var Tag_default = Tag;
11283
11335
 
11284
11336
  // src/components/TextArea/TextArea.tsx
11285
- import React40 from "react";
11337
+ import React41 from "react";
11286
11338
  import { jsx as jsx350 } from "react/jsx-runtime";
11287
- var TextArea = React40.forwardRef(
11339
+ var TextArea = React41.forwardRef(
11288
11340
  (props, ref) => {
11289
11341
  const {
11290
11342
  className,
@@ -11297,7 +11349,7 @@ var TextArea = React40.forwardRef(
11297
11349
  disabled,
11298
11350
  ...textareaProps
11299
11351
  } = props;
11300
- const autoId = React40.useId();
11352
+ const autoId = React41.useId();
11301
11353
  const fieldId = props.id ?? autoId;
11302
11354
  const control = /* @__PURE__ */ jsx350("div", { className: clsx_default("lib-xplat-textarea-wrap", className), children: /* @__PURE__ */ jsx350(
11303
11355
  "textarea",
@@ -11319,8 +11371,8 @@ TextArea.displayName = "TextArea";
11319
11371
  var TextArea_default = TextArea;
11320
11372
 
11321
11373
  // src/components/TimePicker/TimePicker.tsx
11322
- import React41 from "react";
11323
- import { jsx as jsx351, jsxs as jsxs222 } from "react/jsx-runtime";
11374
+ import React42 from "react";
11375
+ import { jsx as jsx351, jsxs as jsxs223 } from "react/jsx-runtime";
11324
11376
  var ANIMATION_DURATION_MS4 = 200;
11325
11377
  var toMinutes = (hhmm) => {
11326
11378
  if (!hhmm) return null;
@@ -11357,13 +11409,13 @@ var TimePicker = (props) => {
11357
11409
  required,
11358
11410
  validations
11359
11411
  } = props;
11360
- const fieldId = React41.useId();
11361
- const triggerRef = React41.useRef(null);
11362
- const contentRef = React41.useRef(null);
11363
- const [isOpen, setOpen] = React41.useState(false);
11364
- const [mounted, setMounted] = React41.useState(false);
11365
- const [visible, setVisible] = React41.useState(false);
11366
- const options = React41.useMemo(() => {
11412
+ const fieldId = React42.useId();
11413
+ const triggerRef = React42.useRef(null);
11414
+ const contentRef = React42.useRef(null);
11415
+ const [isOpen, setOpen] = React42.useState(false);
11416
+ const [mounted, setMounted] = React42.useState(false);
11417
+ const [visible, setVisible] = React42.useState(false);
11418
+ const options = React42.useMemo(() => {
11367
11419
  const safeStep = step > 0 && step <= 720 ? step : 30;
11368
11420
  const lo = toMinutes(min) ?? 0;
11369
11421
  const hi = toMinutes(max) ?? 24 * 60 - 1;
@@ -11371,7 +11423,7 @@ var TimePicker = (props) => {
11371
11423
  for (let t = lo; t <= hi; t += safeStep) out.push(toHHmm(t));
11372
11424
  return out;
11373
11425
  }, [step, min, max]);
11374
- const close = React41.useCallback(() => setOpen(false), []);
11426
+ const close = React42.useCallback(() => setOpen(false), []);
11375
11427
  useClickOutside_default([triggerRef, contentRef], close, isOpen);
11376
11428
  useCloseWhenFocusHidden(isOpen, triggerRef, contentRef, close);
11377
11429
  useEscapeKey(isOpen, () => {
@@ -11380,10 +11432,10 @@ var TimePicker = (props) => {
11380
11432
  });
11381
11433
  const host = useOverlayHost_default(triggerRef, mounted);
11382
11434
  useAutoPosition_default(triggerRef, contentRef, mounted);
11383
- React41.useEffect(() => {
11435
+ React42.useEffect(() => {
11384
11436
  if (disabled && isOpen) setOpen(false);
11385
11437
  }, [disabled, isOpen]);
11386
- React41.useEffect(() => {
11438
+ React42.useEffect(() => {
11387
11439
  if (isOpen) {
11388
11440
  setMounted(true);
11389
11441
  const t2 = setTimeout(() => setVisible(true), 1);
@@ -11398,7 +11450,7 @@ var TimePicker = (props) => {
11398
11450
  close();
11399
11451
  triggerRef.current?.focus({ preventScroll: true });
11400
11452
  };
11401
- const control = /* @__PURE__ */ jsxs222("div", { className: clsx_default("lib-xplat-time-picker", size, disabled && "disabled"), children: [
11453
+ const control = /* @__PURE__ */ jsxs223("div", { className: clsx_default("lib-xplat-time-picker", size, disabled && "disabled"), children: [
11402
11454
  /* @__PURE__ */ jsx351(
11403
11455
  "div",
11404
11456
  {
@@ -11455,20 +11507,20 @@ TimePicker.displayName = "TimePicker";
11455
11507
  var TimePicker_default = TimePicker;
11456
11508
 
11457
11509
  // src/components/Toast/Toast.tsx
11458
- import React42 from "react";
11510
+ import React43 from "react";
11459
11511
  import { createPortal as createPortal3 } from "react-dom";
11460
- import { jsx as jsx352, jsxs as jsxs223 } from "react/jsx-runtime";
11461
- var ToastContext = React42.createContext(null);
11512
+ import { jsx as jsx352, jsxs as jsxs224 } from "react/jsx-runtime";
11513
+ var ToastContext = React43.createContext(null);
11462
11514
  var useToast = () => {
11463
- const ctx = React42.useContext(ToastContext);
11515
+ const ctx = React43.useContext(ToastContext);
11464
11516
  if (!ctx) throw new Error("useToast must be used within ToastProvider");
11465
11517
  return ctx;
11466
11518
  };
11467
11519
  var EXIT_DURATION = 300;
11468
11520
  var ToastItemComponent = ({ item, isExiting, onClose }) => {
11469
- const ref = React42.useRef(null);
11470
- const [height, setHeight] = React42.useState(void 0);
11471
- React42.useEffect(() => {
11521
+ const ref = React43.useRef(null);
11522
+ const [height, setHeight] = React43.useState(void 0);
11523
+ React43.useEffect(() => {
11472
11524
  if (ref.current && !isExiting) {
11473
11525
  setHeight(ref.current.offsetHeight);
11474
11526
  }
@@ -11481,7 +11533,7 @@ var ToastItemComponent = ({ item, isExiting, onClose }) => {
11481
11533
  maxHeight: isExiting ? 0 : height ?? "none",
11482
11534
  marginBottom: isExiting ? 0 : void 0
11483
11535
  },
11484
- children: /* @__PURE__ */ jsxs223(
11536
+ children: /* @__PURE__ */ jsxs224(
11485
11537
  "div",
11486
11538
  {
11487
11539
  ref,
@@ -11500,13 +11552,13 @@ var ToastProvider = ({
11500
11552
  children,
11501
11553
  position = "top-right"
11502
11554
  }) => {
11503
- const [toasts, setToasts] = React42.useState([]);
11504
- const [removing, setRemoving] = React42.useState(/* @__PURE__ */ new Set());
11505
- const [mounted, setMounted] = React42.useState(false);
11506
- React42.useEffect(() => {
11555
+ const [toasts, setToasts] = React43.useState([]);
11556
+ const [removing, setRemoving] = React43.useState(/* @__PURE__ */ new Set());
11557
+ const [mounted, setMounted] = React43.useState(false);
11558
+ React43.useEffect(() => {
11507
11559
  setMounted(true);
11508
11560
  }, []);
11509
- const remove = React42.useCallback((id) => {
11561
+ const remove = React43.useCallback((id) => {
11510
11562
  setRemoving((prev) => new Set(prev).add(id));
11511
11563
  setTimeout(() => {
11512
11564
  setToasts((prev) => prev.filter((t) => t.id !== id));
@@ -11517,7 +11569,7 @@ var ToastProvider = ({
11517
11569
  });
11518
11570
  }, EXIT_DURATION);
11519
11571
  }, []);
11520
- const toast = React42.useCallback(
11572
+ const toast = React43.useCallback(
11521
11573
  (type, message, duration = 3e3) => {
11522
11574
  const id = `${Date.now()}-${Math.random()}`;
11523
11575
  setToasts((prev) => [...prev, { id, type, message }]);
@@ -11527,7 +11579,7 @@ var ToastProvider = ({
11527
11579
  },
11528
11580
  [remove]
11529
11581
  );
11530
- return /* @__PURE__ */ jsxs223(ToastContext.Provider, { value: { toast }, children: [
11582
+ return /* @__PURE__ */ jsxs224(ToastContext.Provider, { value: { toast }, children: [
11531
11583
  children,
11532
11584
  mounted && createPortal3(
11533
11585
  /* @__PURE__ */ jsx352("div", { className: clsx_default("lib-xplat-toast-container", position), children: toasts.map((t) => /* @__PURE__ */ jsx352(
@@ -11570,8 +11622,8 @@ ToggleChip.displayName = "ToggleChip";
11570
11622
  var ToggleChip_default = ToggleChip;
11571
11623
 
11572
11624
  // src/components/Tooltip/Tooltip.tsx
11573
- import React43 from "react";
11574
- import { Fragment as Fragment6, jsx as jsx354, jsxs as jsxs224 } from "react/jsx-runtime";
11625
+ import React44 from "react";
11626
+ import { Fragment as Fragment6, jsx as jsx354, jsxs as jsxs225 } from "react/jsx-runtime";
11575
11627
  var OFFSET = 12;
11576
11628
  var GAP = 8;
11577
11629
  var SHOW_DELAY = 300;
@@ -11586,14 +11638,14 @@ var Tooltip = (props) => {
11586
11638
  disabled = false
11587
11639
  } = props;
11588
11640
  const shape = variant ?? type ?? "dark";
11589
- const triggerRef = React43.useRef(null);
11590
- const tooltipRef = React43.useRef(null);
11591
- const [visible, setVisible] = React43.useState(false);
11592
- const [pos, setPos] = React43.useState({ left: 0, top: 0 });
11593
- const delayTimer = React43.useRef(0);
11594
- const rafRef = React43.useRef(0);
11595
- const cursor = React43.useRef(null);
11596
- const clamp2 = React43.useCallback((left, top, w, h) => {
11641
+ const triggerRef = React44.useRef(null);
11642
+ const tooltipRef = React44.useRef(null);
11643
+ const [visible, setVisible] = React44.useState(false);
11644
+ const [pos, setPos] = React44.useState({ left: 0, top: 0 });
11645
+ const delayTimer = React44.useRef(0);
11646
+ const rafRef = React44.useRef(0);
11647
+ const cursor = React44.useRef(null);
11648
+ const clamp2 = React44.useCallback((left, top, w, h) => {
11597
11649
  const vw = window.innerWidth;
11598
11650
  const vh = window.innerHeight;
11599
11651
  return {
@@ -11601,7 +11653,7 @@ var Tooltip = (props) => {
11601
11653
  top: Math.min(Math.max(GAP, top), Math.max(GAP, vh - h - GAP))
11602
11654
  };
11603
11655
  }, []);
11604
- const placeAtCursor = React43.useCallback((x, y) => {
11656
+ const placeAtCursor = React44.useCallback((x, y) => {
11605
11657
  const el = tooltipRef.current;
11606
11658
  if (!el) return;
11607
11659
  const w = el.offsetWidth;
@@ -11612,7 +11664,7 @@ var Tooltip = (props) => {
11612
11664
  if (top < GAP) top = y + OFFSET;
11613
11665
  setPos(clamp2(left, top, w, h));
11614
11666
  }, [clamp2]);
11615
- const placeAtTrigger = React43.useCallback(() => {
11667
+ const placeAtTrigger = React44.useCallback(() => {
11616
11668
  const el = tooltipRef.current;
11617
11669
  const trigger = triggerRef.current;
11618
11670
  if (!el || !trigger) return;
@@ -11624,19 +11676,19 @@ var Tooltip = (props) => {
11624
11676
  const left = rect.left + rect.width / 2 - w / 2;
11625
11677
  setPos(clamp2(left, top, w, h));
11626
11678
  }, [clamp2]);
11627
- const reposition = React43.useCallback(() => {
11679
+ const reposition = React44.useCallback(() => {
11628
11680
  if (follow && cursor.current) {
11629
11681
  placeAtCursor(cursor.current.x, cursor.current.y);
11630
11682
  } else {
11631
11683
  placeAtTrigger();
11632
11684
  }
11633
11685
  }, [follow, placeAtCursor, placeAtTrigger]);
11634
- const handleMouseEnter = React43.useCallback((e) => {
11686
+ const handleMouseEnter = React44.useCallback((e) => {
11635
11687
  if (disabled) return;
11636
11688
  cursor.current = { x: e.clientX, y: e.clientY };
11637
11689
  delayTimer.current = window.setTimeout(() => setVisible(true), SHOW_DELAY);
11638
11690
  }, [disabled]);
11639
- const handleMouseMove = React43.useCallback((e) => {
11691
+ const handleMouseMove = React44.useCallback((e) => {
11640
11692
  cursor.current = { x: e.clientX, y: e.clientY };
11641
11693
  if (!visible || !follow) return;
11642
11694
  cancelAnimationFrame(rafRef.current);
@@ -11644,25 +11696,25 @@ var Tooltip = (props) => {
11644
11696
  if (cursor.current) placeAtCursor(cursor.current.x, cursor.current.y);
11645
11697
  });
11646
11698
  }, [visible, follow, placeAtCursor]);
11647
- const close = React43.useCallback(() => {
11699
+ const close = React44.useCallback(() => {
11648
11700
  window.clearTimeout(delayTimer.current);
11649
11701
  cancelAnimationFrame(rafRef.current);
11650
11702
  setVisible(false);
11651
11703
  }, []);
11652
- const handleMouseLeave = React43.useCallback(() => {
11704
+ const handleMouseLeave = React44.useCallback(() => {
11653
11705
  cursor.current = null;
11654
11706
  close();
11655
11707
  }, [close]);
11656
- const handleFocus = React43.useCallback(() => {
11708
+ const handleFocus = React44.useCallback(() => {
11657
11709
  if (disabled) return;
11658
11710
  cursor.current = null;
11659
11711
  setVisible(true);
11660
11712
  }, [disabled]);
11661
- React43.useLayoutEffect(() => {
11713
+ React44.useLayoutEffect(() => {
11662
11714
  if (!visible) return;
11663
11715
  reposition();
11664
11716
  }, [visible, reposition]);
11665
- React43.useEffect(() => {
11717
+ React44.useEffect(() => {
11666
11718
  if (!visible || follow) return;
11667
11719
  const onChange = () => placeAtTrigger();
11668
11720
  window.addEventListener("scroll", onChange, true);
@@ -11672,12 +11724,12 @@ var Tooltip = (props) => {
11672
11724
  window.removeEventListener("resize", onChange);
11673
11725
  };
11674
11726
  }, [visible, follow, placeAtTrigger]);
11675
- React43.useEffect(() => () => {
11727
+ React44.useEffect(() => () => {
11676
11728
  window.clearTimeout(delayTimer.current);
11677
11729
  cancelAnimationFrame(rafRef.current);
11678
11730
  }, []);
11679
11731
  if (!title && !description) return /* @__PURE__ */ jsx354(Fragment6, { children });
11680
- return /* @__PURE__ */ jsxs224(
11732
+ return /* @__PURE__ */ jsxs225(
11681
11733
  "div",
11682
11734
  {
11683
11735
  ref: triggerRef,
@@ -11690,7 +11742,7 @@ var Tooltip = (props) => {
11690
11742
  onBlur: close,
11691
11743
  children: [
11692
11744
  children,
11693
- visible && /* @__PURE__ */ jsx354(Portal_default, { children: /* @__PURE__ */ jsxs224(
11745
+ visible && /* @__PURE__ */ jsx354(Portal_default, { children: /* @__PURE__ */ jsxs225(
11694
11746
  "div",
11695
11747
  {
11696
11748
  ref: tooltipRef,
@@ -11711,10 +11763,10 @@ Tooltip.displayName = "Tooltip";
11711
11763
  var Tooltip_default = Tooltip;
11712
11764
 
11713
11765
  // src/components/Tour/Tour.tsx
11714
- import React45 from "react";
11766
+ import React46 from "react";
11715
11767
 
11716
11768
  // src/tokens/hooks/useScrollLock.ts
11717
- import React44 from "react";
11769
+ import React45 from "react";
11718
11770
  var SCROLL_KEYS = /* @__PURE__ */ new Set([
11719
11771
  " ",
11720
11772
  "PageUp",
@@ -11727,7 +11779,7 @@ var SCROLL_KEYS = /* @__PURE__ */ new Set([
11727
11779
  "ArrowRight"
11728
11780
  ]);
11729
11781
  var useScrollLock = (enabled, allowRef) => {
11730
- React44.useEffect(() => {
11782
+ React45.useEffect(() => {
11731
11783
  if (!enabled) return;
11732
11784
  const allowed = (target) => target instanceof Node && !!allowRef?.current?.contains(target);
11733
11785
  const block = (e) => {
@@ -11756,7 +11808,7 @@ var useScrollLock = (enabled, allowRef) => {
11756
11808
  var useScrollLock_default = useScrollLock;
11757
11809
 
11758
11810
  // src/components/Tour/Tour.tsx
11759
- import { jsx as jsx355, jsxs as jsxs225 } from "react/jsx-runtime";
11811
+ import { jsx as jsx355, jsxs as jsxs226 } from "react/jsx-runtime";
11760
11812
  var VIEWPORT_MARGIN = 16;
11761
11813
  var DEFAULT_PADDING = 8;
11762
11814
  var clamp = (v, min, max) => Math.max(min, Math.min(v, max));
@@ -11777,14 +11829,14 @@ var Tour = (props) => {
11777
11829
  skipLabel = "\uAC74\uB108\uB6F0\uAE30",
11778
11830
  doneLabel = "\uB2E4 \uBD24\uC5B4\uC694"
11779
11831
  } = props;
11780
- const [uncontrolled, setUncontrolled] = React45.useState(0);
11832
+ const [uncontrolled, setUncontrolled] = React46.useState(0);
11781
11833
  const index = current ?? uncontrolled;
11782
11834
  const step = steps[index];
11783
11835
  const isLast = index === steps.length - 1;
11784
- const spotRef = React45.useRef(null);
11785
- const cardRef = React45.useRef(null);
11786
- const [targetFound, setTargetFound] = React45.useState(true);
11787
- const goTo = React45.useCallback(
11836
+ const spotRef = React46.useRef(null);
11837
+ const cardRef = React46.useRef(null);
11838
+ const [targetFound, setTargetFound] = React46.useState(true);
11839
+ const goTo = React46.useCallback(
11788
11840
  (next) => {
11789
11841
  if (current === void 0) setUncontrolled(next);
11790
11842
  onStepChange?.(next);
@@ -11794,9 +11846,9 @@ var Tour = (props) => {
11794
11846
  useEscapeKey(open, () => onClose("skip"));
11795
11847
  useFocusTrap(cardRef, open, { trap: true });
11796
11848
  useScrollLock_default(open, cardRef);
11797
- const stepsRef = React45.useRef(steps);
11849
+ const stepsRef = React46.useRef(steps);
11798
11850
  stepsRef.current = steps;
11799
- React45.useEffect(() => {
11851
+ React46.useEffect(() => {
11800
11852
  if (!open) return;
11801
11853
  const target = stepsRef.current[index]?.target;
11802
11854
  if (!target) return;
@@ -11821,7 +11873,7 @@ var Tour = (props) => {
11821
11873
  stop = true;
11822
11874
  };
11823
11875
  }, [open, index]);
11824
- const place = React45.useCallback(() => {
11876
+ const place = React46.useCallback(() => {
11825
11877
  const spot = spotRef.current;
11826
11878
  const card = cardRef.current;
11827
11879
  if (!spot || !card || !step) return;
@@ -11868,7 +11920,7 @@ var Tour = (props) => {
11868
11920
  card.style.top = `${clamp(placed.top, VIEWPORT_MARGIN, window.innerHeight - VIEWPORT_MARGIN - cardH)}px`;
11869
11921
  card.style.left = `${clamp(placed.left, VIEWPORT_MARGIN, window.innerWidth - VIEWPORT_MARGIN - cardW)}px`;
11870
11922
  }, [step]);
11871
- React45.useLayoutEffect(() => {
11923
+ React46.useLayoutEffect(() => {
11872
11924
  if (!open) return;
11873
11925
  place();
11874
11926
  let raf = 0;
@@ -11885,7 +11937,7 @@ var Tour = (props) => {
11885
11937
  raf = requestAnimationFrame(follow);
11886
11938
  return () => cancelAnimationFrame(raf);
11887
11939
  }, [open, index, place]);
11888
- React45.useEffect(() => {
11940
+ React46.useEffect(() => {
11889
11941
  if (!open) return;
11890
11942
  const onMove = () => place();
11891
11943
  window.addEventListener("scroll", onMove, { passive: true, capture: true });
@@ -11896,10 +11948,10 @@ var Tour = (props) => {
11896
11948
  };
11897
11949
  }, [open, place]);
11898
11950
  if (!open || !step) return null;
11899
- return /* @__PURE__ */ jsx355(Portal_default, { children: /* @__PURE__ */ jsxs225("div", { className: "lib-xplat-tour", role: "presentation", children: [
11951
+ return /* @__PURE__ */ jsx355(Portal_default, { children: /* @__PURE__ */ jsxs226("div", { className: "lib-xplat-tour", role: "presentation", children: [
11900
11952
  !targetFound && /* @__PURE__ */ jsx355("div", { className: "lib-xplat-tour-dim" }),
11901
11953
  /* @__PURE__ */ jsx355("div", { ref: spotRef, className: "lib-xplat-tour-spotlight", "aria-hidden": true }),
11902
- /* @__PURE__ */ jsxs225(
11954
+ /* @__PURE__ */ jsxs226(
11903
11955
  "div",
11904
11956
  {
11905
11957
  ref: cardRef,
@@ -11909,8 +11961,8 @@ var Tour = (props) => {
11909
11961
  "aria-modal": "true",
11910
11962
  "aria-label": typeof step.title === "string" ? step.title : "\uD654\uBA74 \uC548\uB0B4",
11911
11963
  children: [
11912
- /* @__PURE__ */ jsxs225("div", { className: "tour-card-head", children: [
11913
- /* @__PURE__ */ jsxs225("div", { className: "tour-card-progress", "aria-hidden": true, children: [
11964
+ /* @__PURE__ */ jsxs226("div", { className: "tour-card-head", children: [
11965
+ /* @__PURE__ */ jsxs226("div", { className: "tour-card-progress", "aria-hidden": true, children: [
11914
11966
  index + 1,
11915
11967
  " / ",
11916
11968
  steps.length
@@ -11918,9 +11970,9 @@ var Tour = (props) => {
11918
11970
  step.title && /* @__PURE__ */ jsx355("div", { className: "tour-card-title", children: step.title })
11919
11971
  ] }),
11920
11972
  /* @__PURE__ */ jsx355("div", { className: "tour-card-body", children: step.description && /* @__PURE__ */ jsx355("div", { className: "tour-card-description", children: step.description }) }),
11921
- /* @__PURE__ */ jsxs225("div", { className: "tour-card-actions", children: [
11973
+ /* @__PURE__ */ jsxs226("div", { className: "tour-card-actions", children: [
11922
11974
  /* @__PURE__ */ jsx355("button", { type: "button", className: "tour-skip", onClick: () => onClose("skip"), children: skipLabel }),
11923
- /* @__PURE__ */ jsxs225("div", { className: "tour-card-nav", children: [
11975
+ /* @__PURE__ */ jsxs226("div", { className: "tour-card-nav", children: [
11924
11976
  index > 0 && /* @__PURE__ */ jsx355(
11925
11977
  "button",
11926
11978
  {
@@ -11950,9 +12002,9 @@ Tour.displayName = "Tour";
11950
12002
  var Tour_default = Tour;
11951
12003
 
11952
12004
  // src/components/Video/Video.tsx
11953
- import React46 from "react";
11954
- import { jsx as jsx356, jsxs as jsxs226 } from "react/jsx-runtime";
11955
- var PipIcon = () => /* @__PURE__ */ jsxs226("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
12005
+ import React47 from "react";
12006
+ import { jsx as jsx356, jsxs as jsxs227 } from "react/jsx-runtime";
12007
+ var PipIcon = () => /* @__PURE__ */ jsxs227("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
11956
12008
  /* @__PURE__ */ jsx356("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
11957
12009
  /* @__PURE__ */ jsx356("rect", { x: "12", y: "11", width: "7", height: "6", rx: "1", fill: "currentColor" })
11958
12010
  ] });
@@ -11962,7 +12014,7 @@ var formatTime = (sec) => {
11962
12014
  const s = Math.floor(sec % 60);
11963
12015
  return `${m}:${s.toString().padStart(2, "0")}`;
11964
12016
  };
11965
- var Video = React46.forwardRef((props, ref) => {
12017
+ var Video = React47.forwardRef((props, ref) => {
11966
12018
  const {
11967
12019
  src,
11968
12020
  poster,
@@ -11986,21 +12038,21 @@ var Video = React46.forwardRef((props, ref) => {
11986
12038
  children,
11987
12039
  ...rest
11988
12040
  } = props;
11989
- const containerRef = React46.useRef(null);
11990
- const videoRef = React46.useRef(null);
11991
- const [isPlaying, setIsPlaying] = React46.useState(Boolean(autoPlay));
11992
- const [isLoaded, setIsLoaded] = React46.useState(false);
11993
- const [currentTime, setCurrentTime] = React46.useState(0);
11994
- const [duration, setDuration] = React46.useState(0);
11995
- const [buffered, setBuffered] = React46.useState(0);
11996
- const [volume, setVolume] = React46.useState(1);
11997
- const [isMuted, setIsMuted] = React46.useState(Boolean(muted));
11998
- const [isFullscreen, setIsFullscreen] = React46.useState(false);
11999
- const [playbackRate, setPlaybackRate] = React46.useState(1);
12000
- const [rateMenuOpen, setRateMenuOpen] = React46.useState(false);
12001
- const [captionsOn, setCaptionsOn] = React46.useState(false);
12002
- const [isPip, setIsPip] = React46.useState(false);
12003
- const setRefs = React46.useCallback(
12041
+ const containerRef = React47.useRef(null);
12042
+ const videoRef = React47.useRef(null);
12043
+ const [isPlaying, setIsPlaying] = React47.useState(Boolean(autoPlay));
12044
+ const [isLoaded, setIsLoaded] = React47.useState(false);
12045
+ const [currentTime, setCurrentTime] = React47.useState(0);
12046
+ const [duration, setDuration] = React47.useState(0);
12047
+ const [buffered, setBuffered] = React47.useState(0);
12048
+ const [volume, setVolume] = React47.useState(1);
12049
+ const [isMuted, setIsMuted] = React47.useState(Boolean(muted));
12050
+ const [isFullscreen, setIsFullscreen] = React47.useState(false);
12051
+ const [playbackRate, setPlaybackRate] = React47.useState(1);
12052
+ const [rateMenuOpen, setRateMenuOpen] = React47.useState(false);
12053
+ const [captionsOn, setCaptionsOn] = React47.useState(false);
12054
+ const [isPip, setIsPip] = React47.useState(false);
12055
+ const setRefs = React47.useCallback(
12004
12056
  (el) => {
12005
12057
  videoRef.current = el;
12006
12058
  if (typeof ref === "function") ref(el);
@@ -12008,14 +12060,14 @@ var Video = React46.forwardRef((props, ref) => {
12008
12060
  },
12009
12061
  [ref]
12010
12062
  );
12011
- React46.useEffect(() => {
12063
+ React47.useEffect(() => {
12012
12064
  const onFsChange = () => {
12013
12065
  setIsFullscreen(document.fullscreenElement === containerRef.current);
12014
12066
  };
12015
12067
  document.addEventListener("fullscreenchange", onFsChange);
12016
12068
  return () => document.removeEventListener("fullscreenchange", onFsChange);
12017
12069
  }, []);
12018
- React46.useEffect(() => {
12070
+ React47.useEffect(() => {
12019
12071
  const v = videoRef.current;
12020
12072
  if (!v) return;
12021
12073
  const onEnter = () => setIsPip(true);
@@ -12129,7 +12181,7 @@ var Video = React46.forwardRef((props, ref) => {
12129
12181
  const volumePct = (isMuted ? 0 : volume) * 100;
12130
12182
  const VolumeGlyph = isMuted || volume === 0 ? VolumeXIcon_default : volume < 0.5 ? VolumeIcon_default : Volume2Icon_default;
12131
12183
  const pipSupported = typeof document !== "undefined" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled;
12132
- return /* @__PURE__ */ jsxs226(
12184
+ return /* @__PURE__ */ jsxs227(
12133
12185
  "div",
12134
12186
  {
12135
12187
  ref: containerRef,
@@ -12171,7 +12223,7 @@ var Video = React46.forwardRef((props, ref) => {
12171
12223
  children: /* @__PURE__ */ jsx356("span", { className: "center-play-icon", children: /* @__PURE__ */ jsx356(PlayCircleIcon_default, {}) })
12172
12224
  }
12173
12225
  ),
12174
- showControls && /* @__PURE__ */ jsxs226("div", { className: "controls", onClick: (e) => e.stopPropagation(), children: [
12226
+ showControls && /* @__PURE__ */ jsxs227("div", { className: "controls", onClick: (e) => e.stopPropagation(), children: [
12175
12227
  /* @__PURE__ */ jsx356(
12176
12228
  "input",
12177
12229
  {
@@ -12189,7 +12241,7 @@ var Video = React46.forwardRef((props, ref) => {
12189
12241
  }
12190
12242
  }
12191
12243
  ),
12192
- /* @__PURE__ */ jsxs226("div", { className: "controls-row", children: [
12244
+ /* @__PURE__ */ jsxs227("div", { className: "controls-row", children: [
12193
12245
  /* @__PURE__ */ jsx356(
12194
12246
  "button",
12195
12247
  {
@@ -12200,7 +12252,7 @@ var Video = React46.forwardRef((props, ref) => {
12200
12252
  children: isPlaying ? /* @__PURE__ */ jsx356(PauseIcon_default, {}) : /* @__PURE__ */ jsx356(PlayIcon_default, {})
12201
12253
  }
12202
12254
  ),
12203
- /* @__PURE__ */ jsxs226("div", { className: "volume-group", children: [
12255
+ /* @__PURE__ */ jsxs227("div", { className: "volume-group", children: [
12204
12256
  /* @__PURE__ */ jsx356(
12205
12257
  "button",
12206
12258
  {
@@ -12226,14 +12278,14 @@ var Video = React46.forwardRef((props, ref) => {
12226
12278
  }
12227
12279
  )
12228
12280
  ] }),
12229
- /* @__PURE__ */ jsxs226("span", { className: "time", children: [
12281
+ /* @__PURE__ */ jsxs227("span", { className: "time", children: [
12230
12282
  formatTime(currentTime),
12231
12283
  " / ",
12232
12284
  formatTime(duration)
12233
12285
  ] }),
12234
12286
  /* @__PURE__ */ jsx356("div", { className: "controls-spacer" }),
12235
- playbackRates && playbackRates.length > 0 && /* @__PURE__ */ jsxs226("div", { className: clsx_default("rate-group", rateMenuOpen && "is-open"), children: [
12236
- /* @__PURE__ */ jsxs226(
12287
+ playbackRates && playbackRates.length > 0 && /* @__PURE__ */ jsxs227("div", { className: clsx_default("rate-group", rateMenuOpen && "is-open"), children: [
12288
+ /* @__PURE__ */ jsxs227(
12237
12289
  "button",
12238
12290
  {
12239
12291
  type: "button",
@@ -12247,7 +12299,7 @@ var Video = React46.forwardRef((props, ref) => {
12247
12299
  ]
12248
12300
  }
12249
12301
  ),
12250
- rateMenuOpen && /* @__PURE__ */ jsx356("ul", { className: "rate-menu", role: "menu", children: playbackRates.map((r2) => /* @__PURE__ */ jsx356("li", { children: /* @__PURE__ */ jsxs226(
12302
+ rateMenuOpen && /* @__PURE__ */ jsx356("ul", { className: "rate-menu", role: "menu", children: playbackRates.map((r2) => /* @__PURE__ */ jsx356("li", { children: /* @__PURE__ */ jsxs227(
12251
12303
  "button",
12252
12304
  {
12253
12305
  type: "button",
@@ -12373,14 +12425,14 @@ GridItem.displayName = "GridItem";
12373
12425
  var Item_default = GridItem;
12374
12426
 
12375
12427
  // src/layout/Header/Header.tsx
12376
- import { jsx as jsx360, jsxs as jsxs227 } from "react/jsx-runtime";
12428
+ import { jsx as jsx360, jsxs as jsxs228 } from "react/jsx-runtime";
12377
12429
  var Header = ({
12378
12430
  leftContent,
12379
12431
  logo,
12380
12432
  centerContent,
12381
12433
  rightContent
12382
12434
  }) => {
12383
- return /* @__PURE__ */ jsxs227("div", { className: "lib-xplat-layout-header", children: [
12435
+ return /* @__PURE__ */ jsxs228("div", { className: "lib-xplat-layout-header", children: [
12384
12436
  /* @__PURE__ */ jsx360("div", { children: leftContent ?? logo }),
12385
12437
  /* @__PURE__ */ jsx360("div", { children: centerContent }),
12386
12438
  /* @__PURE__ */ jsx360("div", { children: rightContent })
@@ -12390,12 +12442,12 @@ Header.displayName = "Header";
12390
12442
  var Header_default = Header;
12391
12443
 
12392
12444
  // src/layout/Layout/Layout.tsx
12393
- import { Fragment as Fragment7, jsx as jsx361, jsxs as jsxs228 } from "react/jsx-runtime";
12445
+ import { Fragment as Fragment7, jsx as jsx361, jsxs as jsxs229 } from "react/jsx-runtime";
12394
12446
  var Layout = (props) => {
12395
12447
  const { header, sideBar, children } = props;
12396
- return /* @__PURE__ */ jsx361("div", { className: "lib-xplat-layout", children: /* @__PURE__ */ jsxs228("div", { className: "lib-xplat-layout-content-wrapper", children: [
12448
+ return /* @__PURE__ */ jsx361("div", { className: "lib-xplat-layout", children: /* @__PURE__ */ jsxs229("div", { className: "lib-xplat-layout-content-wrapper", children: [
12397
12449
  sideBar && /* @__PURE__ */ jsx361(Fragment7, { children: sideBar }),
12398
- /* @__PURE__ */ jsxs228("div", { className: "lib-xplat-layout-content", children: [
12450
+ /* @__PURE__ */ jsxs229("div", { className: "lib-xplat-layout-content", children: [
12399
12451
  header && /* @__PURE__ */ jsx361("div", { className: "lib-xplat-layout-content-header", children: header }),
12400
12452
  children
12401
12453
  ] })
@@ -12405,13 +12457,13 @@ Layout.displayName = "Layout";
12405
12457
  var Layout_default = Layout;
12406
12458
 
12407
12459
  // src/layout/SideBar/SideBar.tsx
12408
- import React48 from "react";
12460
+ import React49 from "react";
12409
12461
 
12410
12462
  // src/layout/SideBar/SideBarContext.tsx
12411
- import React47 from "react";
12412
- var SideBarContext = React47.createContext(null);
12463
+ import React48 from "react";
12464
+ var SideBarContext = React48.createContext(null);
12413
12465
  var useSideBarContext = () => {
12414
- const ctx = React47.useContext(SideBarContext);
12466
+ const ctx = React48.useContext(SideBarContext);
12415
12467
  if (!ctx) throw new Error("Error");
12416
12468
  return ctx;
12417
12469
  };
@@ -12421,7 +12473,7 @@ var SideBarContext_default = SideBarContext;
12421
12473
  import { jsx as jsx362 } from "react/jsx-runtime";
12422
12474
  var SideBar = (props) => {
12423
12475
  const { children, className } = props;
12424
- const [isOpen, setIsOpen] = React48.useState(true);
12476
+ const [isOpen, setIsOpen] = React49.useState(true);
12425
12477
  const handleSwitchSideBar = () => {
12426
12478
  setIsOpen((prev) => !prev);
12427
12479
  };