@weing-dev/ui-kit-primitive 0.4.6 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +89 -46
  2. package/dist/{Icon-DExqF865.js → Icon-DEdvzMs-.js} +1 -1
  3. package/dist/{color-B71xRiyK.js → baseColor-DYa5_IOB.js} +3 -120
  4. package/dist/calendar.js +12 -12
  5. package/dist/chart.css +1 -0
  6. package/dist/chart.d.ts +7 -2
  7. package/dist/chart.js +703 -84
  8. package/dist/color-qJrSCDan.js +155 -0
  9. package/dist/components/Calendar/Calendar.d.ts +1 -55
  10. package/dist/components/Calendar/Calendar.type.d.ts +61 -0
  11. package/dist/components/Cascader/Cascader.d.ts +2 -36
  12. package/dist/components/Cascader/Cascader.type.d.ts +37 -0
  13. package/dist/components/Chart/Chart.context.d.ts +9 -0
  14. package/dist/components/Chart/Chart.gradient.d.ts +10 -0
  15. package/dist/components/Chart/Chart.hooks.d.ts +4 -0
  16. package/dist/components/Chart/Chart.options.d.ts +29 -0
  17. package/dist/components/Chart/Chart.palette.d.ts +20 -0
  18. package/dist/components/Chart/Chart.preset.d.ts +7 -0
  19. package/dist/components/Chart/Chart.register.d.ts +1 -0
  20. package/dist/components/Chart/Chart.style.d.ts +21 -0
  21. package/dist/components/Chart/Chart.theme.d.ts +9 -0
  22. package/dist/components/Chart/Chart.type.d.ts +161 -0
  23. package/dist/components/Chart/ChartFrame.d.ts +14 -0
  24. package/dist/components/Chart/ChartRenderer.d.ts +11 -0
  25. package/dist/components/Chart/charts/BarChart.d.ts +3 -0
  26. package/dist/components/Chart/charts/DoughnutChart.d.ts +3 -0
  27. package/dist/components/Chart/charts/LineChart.d.ts +3 -0
  28. package/dist/components/Chart/charts/PieChart.d.ts +3 -0
  29. package/dist/components/Chart/charts/RadarChart.d.ts +3 -0
  30. package/dist/components/Form/Dropdown/Dropdown.d.ts +1 -47
  31. package/dist/components/Form/Dropdown/Dropdown.type.d.ts +48 -0
  32. package/dist/components/Form/TextArea/TextArea.d.ts +1 -18
  33. package/dist/components/Form/TextArea/TextArea.type.d.ts +19 -0
  34. package/dist/components/Form/TextInput/TextInput.d.ts +1 -17
  35. package/dist/components/Form/TextInput/TextInput.type.d.ts +18 -0
  36. package/dist/components/TimeInput/TimeInput.d.ts +1 -27
  37. package/dist/components/TimeInput/TimeInput.type.d.ts +27 -0
  38. package/dist/display.js +23 -22
  39. package/dist/entry/chart.d.ts +7 -2
  40. package/dist/entry/components.d.ts +1 -2
  41. package/dist/feedback.js +2 -2
  42. package/dist/form.js +463 -462
  43. package/dist/icon.js +2 -2
  44. package/dist/index.js +3806 -3862
  45. package/dist/index.umd.cjs +24 -24
  46. package/dist/navigation.js +41 -40
  47. package/dist/styles/color.d.ts +30 -0
  48. package/dist/video-player.js +83 -83
  49. package/docs/subpath-imports.md +80 -0
  50. package/docs/ui-kit-agent-guide.md +574 -0
  51. package/package.json +4 -2
  52. package/dist/components/Chart/Chart.d.ts +0 -19
  53. /package/dist/components/Cascader/{Cacader.data.d.ts → Cascader.data.d.ts} +0 -0
@@ -3,8 +3,8 @@ import _ from "react";
3
3
  import { c as Q } from "./bind-D3ZJ5k4I.js";
4
4
  import { useStore as We, create as Ke } from "zustand";
5
5
  import Je from "video.js";
6
- import { a as Ge } from "./Icon-DExqF865.js";
7
- const ke = (t) => Symbol.iterator in t, xe = (t) => (
6
+ import { a as Ge } from "./Icon-DEdvzMs-.js";
7
+ const Ce = (t) => Symbol.iterator in t, xe = (t) => (
8
8
  // HACK: avoid checking entries type
9
9
  "entries" in t
10
10
  ), we = (t, e) => {
@@ -26,7 +26,7 @@ const ke = (t) => Symbol.iterator in t, xe = (t) => (
26
26
  return !!r.done && !!l.done;
27
27
  };
28
28
  function Qe(t, e) {
29
- return Object.is(t, e) ? !0 : typeof t != "object" || t === null || typeof e != "object" || e === null ? !1 : !ke(t) || !ke(e) ? we(
29
+ return Object.is(t, e) ? !0 : typeof t != "object" || t === null || typeof e != "object" || e === null ? !1 : !Ce(t) || !Ce(e) ? we(
30
30
  { entries: () => Object.entries(t) },
31
31
  { entries: () => Object.entries(e) }
32
32
  ) : xe(t) && xe(e) ? we(t, e) : Xe(t, e);
@@ -466,8 +466,8 @@ const F = {
466
466
  loadingText: V,
467
467
  errorTitle: N,
468
468
  errorDescription: w,
469
- errorRetry: k,
470
- controllerRef: C
469
+ errorRetry: C,
470
+ controllerRef: k
471
471
  } = t, x = _.useRef(null);
472
472
  x.current || (x.current = Ae(n, {
473
473
  width: s,
@@ -488,7 +488,7 @@ const F = {
488
488
  loadingText: V,
489
489
  errorTitle: N,
490
490
  errorDescription: w,
491
- errorRetry: k
491
+ errorRetry: C
492
492
  }));
493
493
  const L = _.useMemo(() => Object.fromEntries(Object.entries({
494
494
  width: s,
@@ -508,8 +508,8 @@ const F = {
508
508
  loadingText: V,
509
509
  errorTitle: N,
510
510
  errorDescription: w,
511
- errorRetry: k
512
- }).filter(([, S]) => S !== void 0)), [s, r, l, o, c, d, f, u, h, a, m, y, b, v, V, N, w, k]);
511
+ errorRetry: C
512
+ }).filter(([, S]) => S !== void 0)), [s, r, l, o, c, d, f, u, h, a, m, y, b, v, V, N, w, C]);
513
513
  return _.useLayoutEffect(() => {
514
514
  if (x.current && Object.keys(L).length > 0) {
515
515
  const T = x.current.getState(), S = Me({
@@ -529,7 +529,7 @@ const F = {
529
529
  });
530
530
  }
531
531
  }, [L]), _.useEffect(() => {
532
- if (!C || !x.current) return;
532
+ if (!k || !x.current) return;
533
533
  const T = x.current, S = {
534
534
  getPlayer: () => T.getState().player,
535
535
  isPlaying: () => T.getState().isPlaying,
@@ -559,10 +559,10 @@ const F = {
559
559
  T.getState().handleFullscreenToggle();
560
560
  }
561
561
  };
562
- return C.current = S, () => {
563
- C.current === S && (C.current = null);
562
+ return k.current = S, () => {
563
+ k.current === S && (k.current = null);
564
564
  };
565
- }, [C]), /* @__PURE__ */ p.jsx(me, { value: x.current, children: e });
565
+ }, [k]), /* @__PURE__ */ p.jsx(me, { value: x.current, children: e });
566
566
  }, lt = "_Overlay_1topf_1", ot = "_fullscreen_1topf_11", it = "_OverlayGrid_1topf_19", at = "_TopLeft_1topf_32", ct = "_TopCenter_1topf_38", ut = "_TopRight_1topf_44", ft = "_MiddleLeft_1topf_50", dt = "_MiddleCenter_1topf_56", mt = "_MiddleRight_1topf_62", yt = "_BottomLeft_1topf_68", gt = "_BottomCenter_1topf_74", ht = "_BottomRight_1topf_80", pt = "_ProgressContainer_1topf_86", _t = "_visible_1topf_98", bt = "_Content_1topf_102", St = "_hidden_1topf_111", vt = {
567
567
  Overlay: lt,
568
568
  fullscreen: ot,
@@ -597,7 +597,7 @@ const F = {
597
597
  }, e[6] = r, e[7] = o) : o = e[7];
598
598
  let c;
599
599
  return e[8] !== n || e[9] !== r || e[10] !== l || e[11] !== o ? (c = /* @__PURE__ */ p.jsx("div", { className: l, ...r, onClick: o, children: n }), e[8] = n, e[9] = r, e[10] = l, e[11] = o, e[12] = c) : c = e[12], c;
600
- }, Ct = (t) => {
600
+ }, kt = (t) => {
601
601
  const e = B.c(10);
602
602
  let n, s, r;
603
603
  e[0] !== t ? ({
@@ -609,7 +609,7 @@ const F = {
609
609
  e[4] !== s ? (l = G("TopLeft", s), e[4] = s, e[5] = l) : l = e[5];
610
610
  let o;
611
611
  return e[6] !== n || e[7] !== r || e[8] !== l ? (o = /* @__PURE__ */ p.jsx("div", { className: l, ...r, children: n }), e[6] = n, e[7] = r, e[8] = l, e[9] = o) : o = e[9], o;
612
- }, kt = (t) => {
612
+ }, Ct = (t) => {
613
613
  const e = B.c(10);
614
614
  let n, s, r;
615
615
  e[0] !== t ? ({
@@ -710,7 +710,7 @@ const F = {
710
710
  className: n,
711
711
  onOverlayClick: s,
712
712
  children: r
713
- } = t, l = n === void 0 ? "" : n, o = _.useContext(me);
713
+ } = t, l = n === void 0 ? "" : n, o = _.use(me);
714
714
  if (!o)
715
715
  throw new Error("VideoOverlay는 VideoPlayerProvider 내부에서만 사용해야 합니다.");
716
716
  let c;
@@ -744,23 +744,23 @@ const F = {
744
744
  isPictureInPicture: u
745
745
  }), e[8] = r, e[9] = b, e[10] = f, e[11] = u, e[12] = a, e[13] = m, e[14] = i, e[15] = N) : N = e[15];
746
746
  const w = N;
747
- let k;
748
- e[16] !== o ? (k = (S) => {
747
+ let C;
748
+ e[16] !== o ? (C = (S) => {
749
749
  S === null && o.getState().clearOverlayAutoHideTimer();
750
- }, e[16] = o, e[17] = k) : k = e[17];
751
- const C = !i;
750
+ }, e[16] = o, e[17] = C) : C = e[17];
751
+ const k = !i;
752
752
  let x;
753
- e[18] !== C ? (x = G("Content", {
754
- hidden: C
755
- }), e[18] = C, e[19] = x) : x = e[19];
753
+ e[18] !== k ? (x = G("Content", {
754
+ hidden: k
755
+ }), e[18] = k, e[19] = x) : x = e[19];
756
756
  let L;
757
757
  e[20] !== w || e[21] !== x ? (L = /* @__PURE__ */ p.jsx("div", { className: x, children: w }), e[20] = w, e[21] = x, e[22] = L) : L = e[22];
758
758
  let T;
759
- return e[23] !== V || e[24] !== b || e[25] !== a || e[26] !== m || e[27] !== k || e[28] !== L ? (T = /* @__PURE__ */ p.jsx("div", { className: V, onMouseMove: a, onMouseLeave: m, onClick: b, ref: k, role: "presentation", children: L }), e[23] = V, e[24] = b, e[25] = a, e[26] = m, e[27] = k, e[28] = L, e[29] = T) : T = e[29], T;
759
+ return e[23] !== V || e[24] !== b || e[25] !== a || e[26] !== m || e[27] !== C || e[28] !== L ? (T = /* @__PURE__ */ p.jsx("div", { className: V, onMouseMove: a, onMouseLeave: m, onClick: b, ref: C, role: "presentation", children: L }), e[23] = V, e[24] = b, e[25] = a, e[26] = m, e[27] = C, e[28] = L, e[29] = T) : T = e[29], T;
760
760
  }, It = Object.assign(Nt, {
761
761
  Grid: Tt,
762
- TopLeft: Ct,
763
- TopCenter: kt,
762
+ TopLeft: kt,
763
+ TopCenter: Ct,
764
764
  TopRight: xt,
765
765
  MiddleLeft: wt,
766
766
  MiddleCenter: Lt,
@@ -868,18 +868,18 @@ const F = {
868
868
  e[12] !== h ? (N = /* @__PURE__ */ p.jsx("h3", { className: V, children: h }), e[12] = h, e[13] = N) : N = e[13];
869
869
  let w;
870
870
  e[14] === Symbol.for("react.memo_cache_sentinel") ? (w = ge("ErrorDescription"), e[14] = w) : w = e[14];
871
- let k;
872
- e[15] !== i ? (k = /* @__PURE__ */ p.jsx("p", { className: w, children: i }), e[15] = i, e[16] = k) : k = e[16];
873
871
  let C;
874
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (C = ge("ErrorActionButton"), e[17] = C) : C = e[17];
872
+ e[15] !== i ? (C = /* @__PURE__ */ p.jsx("p", { className: w, children: i }), e[15] = i, e[16] = C) : C = e[16];
873
+ let k;
874
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (k = ge("ErrorActionButton"), e[17] = k) : k = e[17];
875
875
  let x;
876
- e[18] !== y || e[19] !== a ? (x = /* @__PURE__ */ p.jsx("button", { className: C, onClick: y, children: a }), e[18] = y, e[19] = a, e[20] = x) : x = e[20];
876
+ e[18] !== y || e[19] !== a ? (x = /* @__PURE__ */ p.jsx("button", { className: k, onClick: y, children: a }), e[18] = y, e[19] = a, e[20] = x) : x = e[20];
877
877
  let L;
878
- return e[21] !== b || e[22] !== N || e[23] !== k || e[24] !== x ? (L = /* @__PURE__ */ p.jsxs("div", { className: b, children: [
878
+ return e[21] !== b || e[22] !== N || e[23] !== C || e[24] !== x ? (L = /* @__PURE__ */ p.jsxs("div", { className: b, children: [
879
879
  N,
880
- k,
880
+ C,
881
881
  x
882
- ] }), e[21] = b, e[22] = N, e[23] = k, e[24] = x, e[25] = L) : L = e[25], L;
882
+ ] }), e[21] = b, e[22] = N, e[23] = C, e[24] = x, e[25] = L) : L = e[25], L;
883
883
  }, Wt = "_Frame_1y5ek_1", Kt = {
884
884
  Frame: Wt,
885
885
  "vjs-tech": "_vjs-tech_1y5ek_23",
@@ -952,7 +952,7 @@ const F = {
952
952
  setVolume: v,
953
953
  volume: V,
954
954
  playbackRate: N
955
- } = Y(["width", "height", "src", "sources", "speedOptions", "playerOptions", "events", "disableVideoJsStyles", "tracks", "player", "activeCaptionLang", "setState", "setPlayer", "setVolume", "volume", "playbackRate"]), w = _.useRef(null), k = _.useRef(null), C = _.useRef(null), x = _.useRef(0), L = _.useRef([]), T = _.useRef(null), S = _.useRef(null), j = _.useRef(V), E = _.useRef(N), D = _.useRef(m);
955
+ } = Y(["width", "height", "src", "sources", "speedOptions", "playerOptions", "events", "disableVideoJsStyles", "tracks", "player", "activeCaptionLang", "setState", "setPlayer", "setVolume", "volume", "playbackRate"]), w = _.useRef(null), C = _.useRef(null), k = _.useRef(null), x = _.useRef(0), L = _.useRef([]), T = _.useRef(null), S = _.useRef(null), j = _.useRef(V), E = _.useRef(N), D = _.useRef(m);
956
956
  D.current = m;
957
957
  const H = _.useMemo(() => zt({
958
958
  src: o ?? "",
@@ -974,18 +974,18 @@ const F = {
974
974
  }
975
975
  }, [a, m]), _.useLayoutEffect(() => () => {
976
976
  var I;
977
- x.current += 1, (I = C.current) == null || I.call(C), C.current = null, y({
977
+ x.current += 1, (I = k.current) == null || I.call(k), k.current = null, y({
978
978
  isPictureInPicture: !1
979
979
  });
980
- const A = k.current;
981
- A && (A.dispose(), k.current = null, b(null)), T.current = null, S.current = null, L.current.length > 0 && (L.current.forEach((q) => {
980
+ const A = C.current;
981
+ A && (A.dispose(), C.current = null, b(null)), T.current = null, S.current = null, L.current.length > 0 && (L.current.forEach((q) => {
982
982
  URL.revokeObjectURL(q);
983
983
  }), L.current = []);
984
984
  }, [b, y]), _.useLayoutEffect(() => {
985
985
  var U;
986
986
  if (!o)
987
987
  return;
988
- const A = JSON.stringify(H), I = k.current;
988
+ const A = JSON.stringify(H), I = C.current;
989
989
  if (I && T.current !== null && T.current === O) {
990
990
  S.current !== A && (I.src(H), I.load(), y({
991
991
  hasError: !1,
@@ -993,11 +993,11 @@ const F = {
993
993
  }), S.current = A);
994
994
  return;
995
995
  }
996
- if (I && T.current !== O && ((U = C.current) == null || U.call(C), C.current = null, y({
996
+ if (I && T.current !== O && ((U = k.current) == null || U.call(k), k.current = null, y({
997
997
  isPictureInPicture: !1
998
- }), I.dispose(), k.current = null, b(null), T.current = null, S.current = null, L.current.length > 0 && (L.current.forEach((te) => {
998
+ }), I.dispose(), C.current = null, b(null), T.current = null, S.current = null, L.current.length > 0 && (L.current.forEach((te) => {
999
999
  URL.revokeObjectURL(te);
1000
- }), L.current = [])), k.current)
1000
+ }), L.current = [])), C.current)
1001
1001
  return;
1002
1002
  (async () => {
1003
1003
  var ne, fe;
@@ -1024,7 +1024,7 @@ const F = {
1024
1024
  default: oe(D.current) !== "" && oe(P.srclang) === oe(D.current)
1025
1025
  };
1026
1026
  })) : void 0;
1027
- if (te !== x.current || !((fe = w.current) != null && fe.isConnected) || k.current)
1027
+ if (te !== x.current || !((fe = w.current) != null && fe.isConnected) || C.current)
1028
1028
  return;
1029
1029
  const ie = {
1030
1030
  ...{
@@ -1056,13 +1056,13 @@ const F = {
1056
1056
  };
1057
1057
  try {
1058
1058
  const P = Je(w.current, ie);
1059
- k.current = P, T.current = O, S.current = A, b(P), P.on("ready", () => {
1059
+ C.current = P, T.current = O, S.current = A, b(P), P.on("ready", () => {
1060
1060
  var W;
1061
1061
  y({
1062
1062
  isLoading: !1
1063
1063
  }), P.volume(j.current), P.playbackRate(E.current), v(j.current), y({
1064
1064
  playbackRate: E.current
1065
- }), (W = C.current) == null || W.call(C), C.current = null;
1065
+ }), (W = k.current) == null || W.call(k), k.current = null;
1066
1066
  const R = Oe(P);
1067
1067
  if (R) {
1068
1068
  const Z = () => {
@@ -1079,7 +1079,7 @@ const F = {
1079
1079
  isPictureInPicture: !1
1080
1080
  }), g != null && g.onPictureInPictureChange && g.onPictureInPictureChange(!1);
1081
1081
  };
1082
- R.addEventListener("enterpictureinpicture", z), R.addEventListener("leavepictureinpicture", ae), Z(), C.current = () => {
1082
+ R.addEventListener("enterpictureinpicture", z), R.addEventListener("leavepictureinpicture", ae), Z(), k.current = () => {
1083
1083
  R.removeEventListener("enterpictureinpicture", z), R.removeEventListener("leavepictureinpicture", ae);
1084
1084
  };
1085
1085
  }
@@ -1150,7 +1150,7 @@ const F = {
1150
1150
  }
1151
1151
  })();
1152
1152
  }, [o, r, l, O, b, y, v, H, $, f, g]), _.useLayoutEffect(() => {
1153
- const A = k.current;
1153
+ const A = C.current;
1154
1154
  A && (A.width(r), A.height(l));
1155
1155
  }, [r, l]), /* @__PURE__ */ p.jsx("video", { ref: w, className: Yt("VideoElement", "video-js", h ? "" : "vjs-default-skin", e), preload: n ?? "auto", ...s });
1156
1156
  }, nn = "_Thumbnail_1hgib_1", rn = "_ThumbnailImage_1hgib_11", sn = {
@@ -1184,7 +1184,7 @@ const F = {
1184
1184
  return e[13] !== n || e[14] !== i || e[15] !== m ? (y = /* @__PURE__ */ p.jsx("div", { className: i, ...n, children: m }), e[13] = n, e[14] = i, e[15] = m, e[16] = y) : y = e[16], y;
1185
1185
  }, on = "_WidgetButton_1g3p0_2", an = {
1186
1186
  WidgetButton: on
1187
- }, cn = Q.bind(an), Ce = (t) => {
1187
+ }, cn = Q.bind(an), ke = (t) => {
1188
1188
  const e = B.c(20);
1189
1189
  let n, s, r, l, o, c;
1190
1190
  e[0] !== t ? ({
@@ -1227,7 +1227,7 @@ const F = {
1227
1227
  buffered: h,
1228
1228
  currentTime: i,
1229
1229
  handleSeek: a
1230
- } = Y(c), m = _.useRef(i), y = _.useRef(null), [b, v] = _.useState(0), [V, N] = _.useState(0), [w, k] = _.useState(!1), [C, x] = _.useState(!1), L = _.useRef(void 0);
1230
+ } = Y(c), m = _.useRef(i), y = _.useRef(null), [b, v] = _.useState(0), [V, N] = _.useState(0), [w, C] = _.useState(!1), [k, x] = _.useState(!1), L = _.useRef(void 0);
1231
1231
  let T, S;
1232
1232
  e[1] !== h || e[2] !== u || e[3] !== d || e[4] !== f ? (T = () => {
1233
1233
  let M = Date.now();
@@ -1275,7 +1275,7 @@ const F = {
1275
1275
  const O = $;
1276
1276
  let K;
1277
1277
  e[18] !== O ? (K = (M) => {
1278
- M.preventDefault(), M.stopPropagation(), k(!0), O(M.clientX);
1278
+ M.preventDefault(), M.stopPropagation(), C(!0), O(M.clientX);
1279
1279
  }, e[18] = O, e[19] = K) : K = e[19];
1280
1280
  const g = K;
1281
1281
  let A, I;
@@ -1285,7 +1285,7 @@ const F = {
1285
1285
  const M = (X) => {
1286
1286
  O(X.clientX);
1287
1287
  }, J = () => {
1288
- k(!1);
1288
+ C(!1);
1289
1289
  };
1290
1290
  return window.addEventListener("pointermove", M), window.addEventListener("pointerup", J), () => {
1291
1291
  window.removeEventListener("pointermove", M), window.removeEventListener("pointerup", J);
@@ -1304,9 +1304,9 @@ const F = {
1304
1304
  }
1305
1305
  };
1306
1306
  let U, te;
1307
- e[24] !== w || e[25] !== C || e[26] !== s ? (U = () => {
1308
- s && s(w || C);
1309
- }, te = [w, C, s], e[24] = w, e[25] = C, e[26] = s, e[27] = U, e[28] = te) : (U = e[27], te = e[28]), _.useEffect(U, te);
1307
+ e[24] !== w || e[25] !== k || e[26] !== s ? (U = () => {
1308
+ s && s(w || k);
1309
+ }, te = [w, k, s], e[24] = w, e[25] = k, e[26] = s, e[27] = U, e[28] = te) : (U = e[27], te = e[28]), _.useEffect(U, te);
1310
1310
  let re, se;
1311
1311
  e[29] === Symbol.for("react.memo_cache_sentinel") ? (re = () => () => {
1312
1312
  L.current && window.clearTimeout(L.current);
@@ -1343,7 +1343,7 @@ const F = {
1343
1343
  ] }), e[38] = Z, e[39] = ee, e[40] = ce) : ce = e[40];
1344
1344
  let ye;
1345
1345
  return e[41] !== ue || e[42] !== q || e[43] !== g || e[44] !== ne || e[45] !== ie || e[46] !== ce ? (ye = /* @__PURE__ */ p.jsx("div", { className: ue, ref: y, onPointerDown: g, onKeyDown: q, role: "progressbar", tabIndex: 0, "aria-valuenow": ne, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": ie, children: ce }), e[41] = ue, e[42] = q, e[43] = g, e[44] = ne, e[45] = ie, e[46] = ce, e[47] = ye) : ye = e[47], ye;
1346
- }, hn = "_VolumeControl_cqcm4_1", pn = "_isActive_cqcm4_25", _n = "_VolumeSlider_cqcm4_30", bn = "_VolumeButton_cqcm4_35", Sn = "_InlineTrackWrapper_cqcm4_63", vn = "_InlineTrackBackground_cqcm4_78", Tn = "_InlineTrackProgress_cqcm4_88", Cn = "_InlineThumb_cqcm4_98", kn = "_VolumeValue_cqcm4_110", xn = {
1346
+ }, hn = "_VolumeControl_cqcm4_1", pn = "_isActive_cqcm4_25", _n = "_VolumeSlider_cqcm4_30", bn = "_VolumeButton_cqcm4_35", Sn = "_InlineTrackWrapper_cqcm4_63", vn = "_InlineTrackBackground_cqcm4_78", Tn = "_InlineTrackProgress_cqcm4_88", kn = "_InlineThumb_cqcm4_98", Cn = "_VolumeValue_cqcm4_110", xn = {
1347
1347
  VolumeControl: hn,
1348
1348
  isActive: pn,
1349
1349
  VolumeSlider: _n,
@@ -1351,8 +1351,8 @@ const F = {
1351
1351
  InlineTrackWrapper: Sn,
1352
1352
  InlineTrackBackground: vn,
1353
1353
  InlineTrackProgress: Tn,
1354
- InlineThumb: Cn,
1355
- VolumeValue: kn
1354
+ InlineThumb: kn,
1355
+ VolumeValue: Cn
1356
1356
  }, le = Q.bind(xn);
1357
1357
  function Re(t, e) {
1358
1358
  return t === void 0 ? {
@@ -1390,7 +1390,7 @@ const wn = (t) => {
1390
1390
  }), [v]), w = _.useCallback((S) => {
1391
1391
  const j = Math.min(Math.max(S, 0), 1);
1392
1392
  u(j);
1393
- }, [u]), k = _.useCallback((S) => {
1393
+ }, [u]), C = _.useCallback((S) => {
1394
1394
  const j = V.current;
1395
1395
  if (j === null)
1396
1396
  return;
@@ -1399,23 +1399,23 @@ const wn = (t) => {
1399
1399
  return;
1400
1400
  const D = (S - E.left) / E.width;
1401
1401
  w(D);
1402
- }, [w]), C = _.useCallback((S) => {
1403
- S.preventDefault(), a(!0), y(!0), k(S.clientX);
1404
- }, [k]);
1402
+ }, [w]), k = _.useCallback((S) => {
1403
+ S.preventDefault(), a(!0), y(!0), C(S.clientX);
1404
+ }, [C]);
1405
1405
  _.useEffect(() => {
1406
1406
  n && n(b || m);
1407
1407
  }, [m, n, b]), _.useEffect(() => {
1408
1408
  if (!m)
1409
1409
  return;
1410
1410
  const S = (E) => {
1411
- k(E.clientX);
1411
+ C(E.clientX);
1412
1412
  }, j = () => {
1413
1413
  y(!1), a(!1);
1414
1414
  };
1415
1415
  return window.addEventListener("pointermove", S), window.addEventListener("pointerup", j), () => {
1416
1416
  window.removeEventListener("pointermove", S), window.removeEventListener("pointerup", j);
1417
1417
  };
1418
- }, [m, k]);
1418
+ }, [m, C]);
1419
1419
  const x = _.useCallback((S) => {
1420
1420
  S.key === "ArrowRight" || S.key === "ArrowUp" ? (S.preventDefault(), w(v + 0.05), a(!0)) : (S.key === "ArrowLeft" || S.key === "ArrowDown") && (S.preventDefault(), w(v - 0.05), a(!0));
1421
1421
  }, [w, v]), L = le("VolumeControl", {
@@ -1434,12 +1434,12 @@ const wn = (t) => {
1434
1434
  sliderValue: v,
1435
1435
  onSliderFocus: a,
1436
1436
  onPointerDown: (S) => {
1437
- C(S);
1437
+ k(S);
1438
1438
  },
1439
1439
  trackRef: V
1440
1440
  }) }) : /* @__PURE__ */ p.jsxs("div", { className: L, children: [
1441
- /* @__PURE__ */ p.jsx(Ce, { className: le("VolumeButton"), icon: f ? o.volumeOff : o.volumeOn, onClick: h, ariaLabel: T }),
1442
- /* @__PURE__ */ p.jsx("div", { className: le("VolumeSlider"), "aria-hidden": !b, children: /* @__PURE__ */ p.jsxs("div", { className: le("InlineTrackWrapper"), ref: V, role: "slider", "aria-valuemin": 0, "aria-valuemax": 1, "aria-valuenow": Number(v.toFixed(2)), "aria-valuetext": `${Math.round(v * 100)}%`, tabIndex: 0, style: N, onPointerDown: C, onKeyDown: x, onFocus: () => a(!0), onBlur: () => a(!1), children: [
1441
+ /* @__PURE__ */ p.jsx(ke, { className: le("VolumeButton"), icon: f ? o.volumeOff : o.volumeOn, onClick: h, ariaLabel: T }),
1442
+ /* @__PURE__ */ p.jsx("div", { className: le("VolumeSlider"), "aria-hidden": !b, children: /* @__PURE__ */ p.jsxs("div", { className: le("InlineTrackWrapper"), ref: V, role: "slider", "aria-valuemin": 0, "aria-valuemax": 1, "aria-valuenow": Number(v.toFixed(2)), "aria-valuetext": `${Math.round(v * 100)}%`, tabIndex: 0, style: N, onPointerDown: k, onKeyDown: x, onFocus: () => a(!0), onBlur: () => a(!1), children: [
1443
1443
  /* @__PURE__ */ p.jsx("div", { className: le("InlineTrackBackground"), children: /* @__PURE__ */ p.jsx("div", { className: le("InlineTrackProgress") }) }),
1444
1444
  /* @__PURE__ */ p.jsx("div", { className: le("InlineThumb") })
1445
1445
  ] }) })
@@ -1482,23 +1482,23 @@ const wn = (t) => {
1482
1482
  c === "cycle" ? v() : a($n);
1483
1483
  }, e[7] = v, e[8] = c, e[9] = V) : V = e[9];
1484
1484
  const N = V;
1485
- let w, k, C;
1485
+ let w, C, k;
1486
1486
  if (e[10] !== r || e[11] !== l || e[12] !== o || e[13] !== N || e[14] !== y || e[15] !== i || e[16] !== f || e[17] !== u || e[18] !== c) {
1487
- C = Symbol.for("react.early_return_sentinel");
1487
+ k = Symbol.for("react.early_return_sentinel");
1488
1488
  e:
1489
- if (w = de("SpeedControl", o, c), k = r ?? F.aria.speed, l) {
1489
+ if (w = de("SpeedControl", o, c), C = r ?? F.aria.speed, l) {
1490
1490
  let $, O;
1491
1491
  e[22] !== c ? ($ = () => {
1492
1492
  c === "menu" && a(!0);
1493
1493
  }, O = () => {
1494
1494
  c === "menu" && a(!1);
1495
- }, e[22] = c, e[23] = $, e[24] = O) : ($ = e[23], O = e[24]), C = /* @__PURE__ */ p.jsx(p.Fragment, { children: l({
1495
+ }, e[22] = c, e[23] = $, e[24] = O) : ($ = e[23], O = e[24]), k = /* @__PURE__ */ p.jsx(p.Fragment, { children: l({
1496
1496
  defaultClassName: w,
1497
1497
  playbackRate: f,
1498
1498
  speedOptions: u,
1499
1499
  variant: c,
1500
1500
  isOpen: i,
1501
- ariaLabel: k,
1501
+ ariaLabel: C,
1502
1502
  onButtonClick: N,
1503
1503
  onSpeedSelect: y,
1504
1504
  onMouseEnter: $,
@@ -1506,11 +1506,11 @@ const wn = (t) => {
1506
1506
  }) });
1507
1507
  break e;
1508
1508
  }
1509
- e[10] = r, e[11] = l, e[12] = o, e[13] = N, e[14] = y, e[15] = i, e[16] = f, e[17] = u, e[18] = c, e[19] = w, e[20] = k, e[21] = C;
1509
+ e[10] = r, e[11] = l, e[12] = o, e[13] = N, e[14] = y, e[15] = i, e[16] = f, e[17] = u, e[18] = c, e[19] = w, e[20] = C, e[21] = k;
1510
1510
  } else
1511
- w = e[19], k = e[20], C = e[21];
1512
- if (C !== Symbol.for("react.early_return_sentinel"))
1513
- return C;
1511
+ w = e[19], C = e[20], k = e[21];
1512
+ if (k !== Symbol.for("react.early_return_sentinel"))
1513
+ return k;
1514
1514
  let x, L;
1515
1515
  e[25] !== c ? (x = () => {
1516
1516
  c === "menu" && a(!0);
@@ -1527,7 +1527,7 @@ const wn = (t) => {
1527
1527
  "x"
1528
1528
  ] }), e[30] = f, e[31] = j) : j = e[31];
1529
1529
  let E;
1530
- e[32] !== N || e[33] !== k || e[34] !== j ? (E = /* @__PURE__ */ p.jsx(Ce, { className: T, ariaLabel: k, onClick: N, children: j }), e[32] = N, e[33] = k, e[34] = j, e[35] = E) : E = e[35];
1530
+ e[32] !== N || e[33] !== C || e[34] !== j ? (E = /* @__PURE__ */ p.jsx(ke, { className: T, ariaLabel: C, onClick: N, children: j }), e[32] = N, e[33] = C, e[34] = j, e[35] = E) : E = e[35];
1531
1531
  let D;
1532
1532
  e[36] !== y || e[37] !== i || e[38] !== f || e[39] !== u || e[40] !== c ? (D = c === "menu" && i && /* @__PURE__ */ p.jsx("div", { className: de("SpeedMenu"), children: u.map(($) => /* @__PURE__ */ p.jsxs("button", { className: de("SpeedOption", {
1533
1533
  active: $ === f
@@ -1587,7 +1587,7 @@ const Mn = "_TimeDisplay_1m48s_2", Dn = {
1587
1587
  i
1588
1588
  ] }), e[10] = u, e[11] = h, e[12] = i, e[13] = m) : m = e[13], m;
1589
1589
  }, Hn = Object.assign({}, {
1590
- Button: Ce,
1590
+ Button: ke,
1591
1591
  ProgressBar: gn,
1592
1592
  VolumeControl: wn,
1593
1593
  SpeedControl: En,
@@ -1613,11 +1613,11 @@ const Mn = "_TimeDisplay_1m48s_2", Dn = {
1613
1613
  overlayClickAction: V,
1614
1614
  loadingText: N,
1615
1615
  errorTitle: w,
1616
- errorDescription: k,
1617
- errorRetry: C,
1616
+ errorDescription: C,
1617
+ errorRetry: k,
1618
1618
  controllerRef: x,
1619
1619
  children: L
1620
- } = t, T = _.useContext(me);
1620
+ } = t, T = _.use(me);
1621
1621
  let S, j;
1622
1622
  e[0] !== x || e[1] !== T ? (S = () => {
1623
1623
  if (!x)
@@ -1663,7 +1663,7 @@ const Mn = "_TimeDisplay_1m48s_2", Dn = {
1663
1663
  e[4] !== E || e[5] !== L ? (D = /* @__PURE__ */ p.jsx(Te, { value: E, children: L }), e[4] = E, e[5] = L, e[6] = D) : D = e[6];
1664
1664
  const H = D;
1665
1665
  let $;
1666
- e[7] !== m || e[8] !== b || e[9] !== v || e[10] !== h || e[11] !== k || e[12] !== C || e[13] !== w || e[14] !== u || e[15] !== l || e[16] !== N || e[17] !== y || e[18] !== V || e[19] !== f || e[20] !== c || e[21] !== d || e[22] !== o || e[23] !== i || e[24] !== r ? ($ = Object.fromEntries(Object.entries({
1666
+ e[7] !== m || e[8] !== b || e[9] !== v || e[10] !== h || e[11] !== C || e[12] !== k || e[13] !== w || e[14] !== u || e[15] !== l || e[16] !== N || e[17] !== y || e[18] !== V || e[19] !== f || e[20] !== c || e[21] !== d || e[22] !== o || e[23] !== i || e[24] !== r ? ($ = Object.fromEntries(Object.entries({
1667
1667
  width: r,
1668
1668
  height: l,
1669
1669
  src: o,
@@ -1680,9 +1680,9 @@ const Mn = "_TimeDisplay_1m48s_2", Dn = {
1680
1680
  overlayClickAction: V,
1681
1681
  loadingText: N,
1682
1682
  errorTitle: w,
1683
- errorDescription: k,
1684
- errorRetry: C
1685
- }).filter(Un)), e[7] = m, e[8] = b, e[9] = v, e[10] = h, e[11] = k, e[12] = C, e[13] = w, e[14] = u, e[15] = l, e[16] = N, e[17] = y, e[18] = V, e[19] = f, e[20] = c, e[21] = d, e[22] = o, e[23] = i, e[24] = r, e[25] = $) : $ = e[25];
1683
+ errorDescription: C,
1684
+ errorRetry: k
1685
+ }).filter(Un)), e[7] = m, e[8] = b, e[9] = v, e[10] = h, e[11] = C, e[12] = k, e[13] = w, e[14] = u, e[15] = l, e[16] = N, e[17] = y, e[18] = V, e[19] = f, e[20] = c, e[21] = d, e[22] = o, e[23] = i, e[24] = r, e[25] = $) : $ = e[25];
1686
1686
  const O = $;
1687
1687
  let K, g;
1688
1688
  if (e[26] !== O || e[27] !== T ? (K = () => {
@@ -1706,7 +1706,7 @@ const Mn = "_TimeDisplay_1m48s_2", Dn = {
1706
1706
  }, g = [T, O], e[26] = O, e[27] = T, e[28] = K, e[29] = g) : (K = e[28], g = e[29]), _.useLayoutEffect(K, g), T)
1707
1707
  return H;
1708
1708
  let A;
1709
- return e[30] !== m || e[31] !== b || e[32] !== v || e[33] !== H || e[34] !== x || e[35] !== h || e[36] !== k || e[37] !== C || e[38] !== w || e[39] !== u || e[40] !== l || e[41] !== a || e[42] !== N || e[43] !== y || e[44] !== V || e[45] !== f || e[46] !== c || e[47] !== d || e[48] !== o || e[49] !== n || e[50] !== i || e[51] !== r ? (A = /* @__PURE__ */ p.jsx(Be, { storeConfig: n, width: r, height: l, src: o, sources: c, speedOptions: d, playerOptions: f, events: u, disableVideoJsStyles: h, tracks: i, initialActiveCaptionLang: a, activeCaptionLang: m, onCaptionLangChange: y, autoHide: b, autoHideDelayMs: v, overlayClickAction: V, loadingText: N, errorTitle: w, errorDescription: k, errorRetry: C, controllerRef: x, children: H }), e[30] = m, e[31] = b, e[32] = v, e[33] = H, e[34] = x, e[35] = h, e[36] = k, e[37] = C, e[38] = w, e[39] = u, e[40] = l, e[41] = a, e[42] = N, e[43] = y, e[44] = V, e[45] = f, e[46] = c, e[47] = d, e[48] = o, e[49] = n, e[50] = i, e[51] = r, e[52] = A) : A = e[52], A;
1709
+ return e[30] !== m || e[31] !== b || e[32] !== v || e[33] !== H || e[34] !== x || e[35] !== h || e[36] !== C || e[37] !== k || e[38] !== w || e[39] !== u || e[40] !== l || e[41] !== a || e[42] !== N || e[43] !== y || e[44] !== V || e[45] !== f || e[46] !== c || e[47] !== d || e[48] !== o || e[49] !== n || e[50] !== i || e[51] !== r ? (A = /* @__PURE__ */ p.jsx(Be, { storeConfig: n, width: r, height: l, src: o, sources: c, speedOptions: d, playerOptions: f, events: u, disableVideoJsStyles: h, tracks: i, initialActiveCaptionLang: a, activeCaptionLang: m, onCaptionLangChange: y, autoHide: b, autoHideDelayMs: v, overlayClickAction: V, loadingText: N, errorTitle: w, errorDescription: C, errorRetry: k, controllerRef: x, children: H }), e[30] = m, e[31] = b, e[32] = v, e[33] = H, e[34] = x, e[35] = h, e[36] = C, e[37] = k, e[38] = w, e[39] = u, e[40] = l, e[41] = a, e[42] = N, e[43] = y, e[44] = V, e[45] = f, e[46] = c, e[47] = d, e[48] = o, e[49] = n, e[50] = i, e[51] = r, e[52] = A) : A = e[52], A;
1710
1710
  };
1711
1711
  Fe.displayName = "VideoPlayer.Root";
1712
1712
  const Qn = Object.assign({
@@ -0,0 +1,80 @@
1
+ # `@weing-dev/ui-kit-primitive` 서브패스 import 가이드
2
+
3
+ 외부 프로젝트에서 **번들 크기와 의존성 로딩**을 줄이려면, 가능하면 루트 엔트리(`@weing-dev/ui-kit-primitive`) 대신 **`package.json`의 `exports`에 정의된 서브패스**로 import 하는 것을 권장합니다. 서브패스별로 별도의 JS 번들이 만들어져, 번들러가 사용하는 경로만 당기게 할 수 있습니다.
4
+
5
+ ## 요약표: 컴포넌트 · 심벌 → 권장 서브패스
6
+
7
+ | 권장 import 경로 | 포함 컴포넌트 / 주요 심벌 |
8
+ | --- | --- |
9
+ | `@weing-dev/ui-kit-primitive/icon` | `Icon`, `IconProvider`, `ICON_NAMES`, 아이콘 관련 타입 |
10
+ | `@weing-dev/ui-kit-primitive/chart` | `Chart` |
11
+ | `@weing-dev/ui-kit-primitive/editor` | `Editor` 및 Editor 관련 타입 (`EditorProps`, 툴바 타입 등) |
12
+ | `@weing-dev/ui-kit-primitive/video-player` | `VideoPlayer`, 자막·유틸 심벌(`convertSrtToVtt` 등), VideoPlayer 관련 타입 |
13
+ | `@weing-dev/ui-kit-primitive/table` | `Table`, `TableRootProps` |
14
+ | `@weing-dev/ui-kit-primitive/calendar` | `Calendar`, `CalendarContext`, `ScrollCalendar`, `ScrollCalendarContext`, `WeeklyCalendar`, `WeeklyCalendarContext` 및 해당 컨텍스트 타입 |
15
+ | `@weing-dev/ui-kit-primitive/form` | `Button`, `HelperText`, `Cascader`, `CheckBox`, `Dropdown`, `OTPInput`, `Switch`, `Radio`, `TextInput`, `TextArea`, `MobilePicker`, `Slider`, `Stepper`, `TimeInput` 및 `CascaderOption`, `StepperProviderProps` |
16
+ | `@weing-dev/ui-kit-primitive/navigation` | `Accordion`, `Breadcrumb`, `List`, `LNB`, `makeNavigation`, `Pagination`, `ScrollSpy`, `Tab` 및 `LNB` 관련 타입 |
17
+ | `@weing-dev/ui-kit-primitive/feedback` | `Modal`, `Popup`, `Sheet` 및 `PopupRootProps`, `SheetRootProps` |
18
+ | `@weing-dev/ui-kit-primitive/display` | `Avatar`, `Badge`, `BarCode`, `Chips`, `Comment`, `Divider`, `Label`, `LazyImage`, `QRCode`, `Thumbnail` 및 해당 타입 |
19
+
20
+ ## 루트 엔트리 `@weing-dev/ui-kit-primitive`
21
+
22
+ - **역할**: `src/index.ts` → `entry/components` 및 `entry/types`의 **전체 재수출**(글로벌 SCSS 포함).
23
+ - **언제 쓰나**: 빠른 프로토타입, 내부 앱처럼 전체를 통째로 써도 될 때.
24
+ - **주의**: 차트·에디터·비디오·테이블 등 무거운 peer dependency가 필요한 코드까지 한 줄로 끌어올 가능성이 있어, 프로덕션 외부 연동에서는 **위 서브패스를 우선**하는 편이 안전합니다.
25
+
26
+ ## 스타일(CSS) 서브패스
27
+
28
+ | 경로 | 용도 |
29
+ | --- | --- |
30
+ | `@weing-dev/ui-kit-primitive/index.css` | 킷 기본 번들 스타일(메인 라이브러리 빌드 산출물) |
31
+ | `@weing-dev/ui-kit-primitive/editor/style.css` | Quill 에디터(`Editor`)용 — **별도 로드**(peer: `quill` 등과 함께) |
32
+ | `@weing-dev/ui-kit-primitive/video-player/style.css` | Video.js 플레이어용 — **별도 로드**(peer: `video.js`) |
33
+
34
+ 에디터/비디오를 쓰는 화면에서는 대응하는 JS 서브패스(`./editor`, `./video-player`)와 함께 위 CSS도 import 해야 레이아웃이 깨지지 않습니다.
35
+
36
+ ## 타입 및 augmentation
37
+
38
+ - 공통 타입: 루트에서 `export * from "./entry/types"` 로 노출됩니다. 서브패스 엔트리 파일(`src/entry/*.ts`)에서 `export type` 한 항목은 해당 서브패스에서도 이용할 수 있습니다.
39
+ - `__UiKitAugmentations`: 루트에서 타입만 export — styled-components 등 **모듈 보강**이 필요하면 루트에서 타입 import 를 유지하면 됩니다(런타임 코드는 해당 서브패스에서).
40
+
41
+ ## `ICON_NAMES`만 있는 경우
42
+
43
+ - `ICON_NAMES`와 `IconName` 등 **아이콘 이름/레지스트리 타입**은 **`@weing-dev/ui-kit-primitive/icon`** 에서만 정식으로 재수출합니다. 루트 `entry/components.ts` 에는 포함되어 있지 않습니다.
44
+
45
+ ## 모노레포 내 다른 패키지 exports
46
+
47
+ 현재 레포 기준으로 **서브패스가 풍부한 공개 패키지는 `@weing-dev/ui-kit-primitive` 뿐**입니다.
48
+
49
+ | 패키지 | exports |
50
+ | --- | --- |
51
+ | `@weing-dev/ui-kit` | `.`, `./index.css` |
52
+ | `@weing-dev/ui-kit-extension` | `.`, `./index.css` |
53
+ | `@weing-dev/shell-router` | `.` |
54
+
55
+ 외부에서 “경로별로 나눠 쓰기”가 필요하면 **primitive의 위 표**를 기준으로 하면 됩니다.
56
+
57
+ ## import 예시
58
+
59
+ ```ts
60
+ // 아이콘만 — Chart/Editor 번들 미포함 권장
61
+ import { Icon, ICON_NAMES } from "@weing-dev/ui-kit-primitive/icon";
62
+
63
+ // 폼 위주 화면
64
+ import { Button, TextInput } from "@weing-dev/ui-kit-primitive/form";
65
+
66
+ // 차트만 (named export)
67
+ import { Chart } from "@weing-dev/ui-kit-primitive/chart";
68
+
69
+ // 에디터 + 스타일
70
+ import { Editor } from "@weing-dev/ui-kit-primitive/editor";
71
+ import "@weing-dev/ui-kit-primitive/editor/style.css";
72
+
73
+ // 동일 카테고리는 한 서브패스로 통일하면 중복 청크를 줄이기 쉽습니다.
74
+ ```
75
+
76
+ ## 참조
77
+
78
+ - 서브패스 목록 및 해상도: 패키지 루트의 `package.json` → 필드 **`exports`**.
79
+ - 각 서브패스가 무엇을 내보내는지: `packages/ui-kit-primitive/src/entry/*.ts`.
80
+ - 빌드 분할: 메인 라이브러리는 `vite.config.ts`, 서브패스 청크는 `vite.icon.config.ts`(이름만 icon이지만 chart·form 등 전 엔트리 포함).