sellmate-design-system-react 7.0.0 → 8.0.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.cjs CHANGED
@@ -466,6 +466,27 @@ var Icon_arrowUp = (p) => {
466
466
  }
467
467
  );
468
468
  };
469
+ var Icon_asterisk = (p) => {
470
+ const { size = 24, ...rest } = p;
471
+ return /* @__PURE__ */ jsxRuntime.jsx(
472
+ "svg",
473
+ {
474
+ width: size,
475
+ height: size,
476
+ viewBox: "0 0 24 24",
477
+ fill: "none",
478
+ xmlns: "http://www.w3.org/2000/svg",
479
+ ...rest,
480
+ children: /* @__PURE__ */ jsxRuntime.jsx(
481
+ "path",
482
+ {
483
+ d: "M12.1736 2.91895C12.3072 2.91895 12.4174 3.02382 12.4236 3.15723L12.7644 10.6738L19.4461 7.21191C19.5647 7.15042 19.7112 7.19288 19.7781 7.30859L19.9519 7.61035C20.0184 7.72598 19.9822 7.87332 19.8699 7.94531L13.53 11.999L19.8699 16.0547C19.9822 16.1267 20.0184 16.274 19.9519 16.3896L19.7781 16.6914C19.7113 16.8071 19.5647 16.8496 19.4461 16.7881L12.7654 13.3252L12.4236 20.8428C12.4174 20.9762 12.3072 21.0811 12.1736 21.0811H11.8259C11.6925 21.0809 11.5831 20.9761 11.5769 20.8428L11.2341 13.3252L4.55445 16.7881C4.43582 16.8496 4.28927 16.8071 4.22242 16.6914L4.04859 16.3896C3.98202 16.2739 4.01814 16.1266 4.13063 16.0547L10.4695 12L4.13063 7.94531C4.01813 7.87336 3.98201 7.72606 4.04859 7.61035L4.22242 7.30859C4.28928 7.19292 4.43582 7.15043 4.55445 7.21191L11.2341 10.6738L11.5769 3.15723C11.5831 3.02392 11.6925 2.91909 11.8259 2.91895H12.1736Z",
484
+ fill: "currentColor"
485
+ }
486
+ )
487
+ }
488
+ );
489
+ };
469
490
  var Icon_attachFile = (p) => {
470
491
  const { size = 24, ...rest } = p;
471
492
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -547,7 +568,7 @@ var Icon_barcode = (p) => {
547
568
  };
548
569
  var Icon_bell = (p) => {
549
570
  const { size = 24, ...rest } = p;
550
- return /* @__PURE__ */ jsxRuntime.jsxs(
571
+ return /* @__PURE__ */ jsxRuntime.jsx(
551
572
  "svg",
552
573
  {
553
574
  width: size,
@@ -556,22 +577,15 @@ var Icon_bell = (p) => {
556
577
  fill: "none",
557
578
  xmlns: "http://www.w3.org/2000/svg",
558
579
  ...rest,
559
- children: [
560
- /* @__PURE__ */ jsxRuntime.jsx(
561
- "path",
562
- {
563
- d: "M14.8 18.8086C14.9105 18.8086 15.0008 18.8985 14.9944 19.0088C14.8972 20.6781 13.5938 22 12.0002 22C10.4066 22 9.10324 20.6781 9.00609 19.0088C8.99968 18.8985 9.08997 18.8086 9.20043 18.8086H14.8Z",
564
- fill: "currentColor"
565
- }
566
- ),
567
- /* @__PURE__ */ jsxRuntime.jsx(
568
- "path",
569
- {
570
- d: "M12.0002 2C12.5525 2.00002 13.0002 2.44772 13.0002 3V4.20898C15.9941 4.69573 18.2815 7.3314 18.2815 10.5107V14.1582C18.2815 15.0811 19.1207 15.8005 19.7629 16.4531C20.4046 17.1057 19.6388 17.957 18.7307 17.957H5.26976C4.36161 17.957 3.59581 17.1057 4.23754 16.4531C4.87979 15.8005 5.71898 15.0811 5.71898 14.1582V10.5107C5.71898 7.33139 8.00632 4.69572 11.0002 4.20898V3C11.0002 2.44772 11.4479 2 12.0002 2Z",
571
- fill: "currentColor"
572
- }
573
- )
574
- ]
580
+ children: /* @__PURE__ */ jsxRuntime.jsx(
581
+ "path",
582
+ {
583
+ fillRule: "evenodd",
584
+ clipRule: "evenodd",
585
+ d: "M11.9997 2C12.8281 2 13.4997 2.67157 13.4997 3.5V4.16504C16.4633 4.82344 18.6734 7.38936 18.6735 10.4561V14.1465L18.6843 14.3301C18.7846 15.2926 19.607 16.8595 20.2468 17.4785C20.9292 18.1386 20.1161 19 19.1511 19H14.9938C14.9938 19.0028 14.994 19.0059 14.9938 19.0088C14.8967 20.6781 13.5933 22 11.9997 22C10.4062 21.9998 9.10269 20.678 9.00556 19.0088C9.00539 19.0059 9.00559 19.0028 9.00556 19H4.84833L4.66962 18.9902C3.78764 18.8932 3.11313 18.0974 3.75263 17.4785C4.39237 16.8596 5.21478 15.2927 5.31513 14.3301L5.32587 14.1465V10.4561C5.32596 7.38957 7.53635 4.82365 10.4997 4.16504V3.5C10.4997 2.67167 11.1714 2.00016 11.9997 2ZM11.9997 5.5C9.0949 5.50016 6.82597 7.76554 6.82587 10.4561V14.1465C6.82577 14.9672 6.47479 15.89 6.14423 16.5703C5.99522 16.8769 5.81805 17.1956 5.6247 17.5H18.3747C18.1813 17.1956 18.0042 16.8769 17.8552 16.5703C17.5246 15.89 17.1736 14.9671 17.1735 14.1465V10.4561C17.1734 7.76545 14.9046 5.5 11.9997 5.5Z",
586
+ fill: "currentColor"
587
+ }
588
+ )
575
589
  }
576
590
  );
577
591
  };
@@ -1655,28 +1669,7 @@ var Icon_history = (p) => {
1655
1669
  }
1656
1670
  );
1657
1671
  };
1658
- var Icon_imageFill = (p) => {
1659
- const { size = 24, ...rest } = p;
1660
- return /* @__PURE__ */ jsxRuntime.jsx(
1661
- "svg",
1662
- {
1663
- width: size,
1664
- height: size,
1665
- viewBox: "0 0 24 24",
1666
- fill: "none",
1667
- xmlns: "http://www.w3.org/2000/svg",
1668
- ...rest,
1669
- children: /* @__PURE__ */ jsxRuntime.jsx(
1670
- "path",
1671
- {
1672
- d: "M7.34277 10.165C7.43716 10.078 7.58268 10.0769 7.67871 10.1621L15.3535 16.9844C16.0043 17.5629 16.9817 17.575 17.6465 17.0127L22 13.3281V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V15.0967L7.34277 10.165ZM20 2C21.1046 2 22 2.89543 22 4V11.3633L16.6777 15.8672C16.5828 15.9475 16.4426 15.9459 16.3496 15.8633L8.67578 9.04102C8.00336 8.44333 6.98628 8.45327 6.3252 9.06348L2 13.0557V4C2 2.89543 2.89543 2 4 2H20ZM16.25 6C15.0074 6 14 7.00736 14 8.25C14 9.49264 15.0074 10.5 16.25 10.5C17.4926 10.5 18.5 9.49264 18.5 8.25C18.5 7.00736 17.4926 6 16.25 6Z",
1673
- fill: "currentColor"
1674
- }
1675
- )
1676
- }
1677
- );
1678
- };
1679
- var Icon_imageOutline = (p) => {
1672
+ var Icon_image = (p) => {
1680
1673
  const { size = 24, ...rest } = p;
1681
1674
  return /* @__PURE__ */ jsxRuntime.jsxs(
1682
1675
  "svg",
@@ -1693,7 +1686,7 @@ var Icon_imageOutline = (p) => {
1693
1686
  {
1694
1687
  fillRule: "evenodd",
1695
1688
  clipRule: "evenodd",
1696
- d: "M15.5 6.25C16.7426 6.25 17.75 7.25736 17.75 8.5C17.75 9.74264 16.7426 10.75 15.5 10.75C14.2574 10.75 13.25 9.74264 13.25 8.5C13.25 7.25736 14.2574 6.25 15.5 6.25ZM15.5 7.75C15.0858 7.75 14.75 8.08579 14.75 8.5C14.75 8.91421 15.0858 9.25 15.5 9.25C15.9142 9.25 16.25 8.91421 16.25 8.5C16.25 8.08579 15.9142 7.75 15.5 7.75Z",
1689
+ d: "M16 5.25C17.5188 5.25 18.75 6.48122 18.75 8C18.75 9.51878 17.5188 10.75 16 10.75C14.4812 10.75 13.25 9.51878 13.25 8C13.25 6.48122 14.4812 5.25 16 5.25ZM16 6.75C15.3096 6.75 14.75 7.30964 14.75 8C14.75 8.69036 15.3096 9.25 16 9.25C16.6904 9.25 17.25 8.69036 17.25 8C17.25 7.30964 16.6904 6.75 16 6.75Z",
1697
1690
  fill: "currentColor"
1698
1691
  }
1699
1692
  ),
@@ -1702,7 +1695,7 @@ var Icon_imageOutline = (p) => {
1702
1695
  {
1703
1696
  fillRule: "evenodd",
1704
1697
  clipRule: "evenodd",
1705
- d: "M19.2002 2.0498C20.7187 2.05002 21.9501 3.28123 21.9502 4.7998V19.2002C21.95 20.7187 20.7187 21.95 19.2002 21.9502H4.7998C3.28124 21.9501 2.05001 20.7187 2.0498 19.2002V4.7998C2.0499 3.28117 3.28117 2.0499 4.7998 2.0498H19.2002ZM7.66602 10.1514C7.57129 10.0672 7.42871 10.0672 7.33398 10.1514L3.5498 13.5137V19.2002C3.55001 19.8903 4.10966 20.4501 4.7998 20.4502H19.2002C19.8902 20.45 20.45 19.8902 20.4502 19.2002V14.877L17.6172 17.0811C16.9513 17.599 16.0104 17.5683 15.3799 17.0078L7.66602 10.1514ZM4.7998 3.5498C4.1096 3.5499 3.5499 4.10959 3.5498 4.7998V11.5078L6.33691 9.03027C6.99996 8.4409 8.00004 8.4409 8.66309 9.03027L16.377 15.8867C16.467 15.9666 16.6012 15.9714 16.6963 15.8975L20.4502 12.9766V4.7998C20.4501 4.10966 19.8903 3.55002 19.2002 3.5498H4.7998Z",
1698
+ d: "M19.2002 2.0498C20.7187 2.05002 21.9501 3.28123 21.9502 4.7998V19.2002C21.95 20.7187 20.7187 21.95 19.2002 21.9502H4.7998C3.28124 21.9501 2.05001 20.7187 2.0498 19.2002V4.7998C2.0499 3.28117 3.28116 2.0499 4.7998 2.0498H19.2002ZM4.7998 3.5498C4.10959 3.5499 3.5499 4.10959 3.5498 4.7998V11.8037L6.76465 8.70801C7.1683 8.31972 7.81224 8.33867 8.19238 8.75L14.9121 16.0293C15.2496 16.3947 15.8042 16.457 16.2139 16.1748L19.4326 13.9561C19.7591 13.731 20.1435 13.7318 20.4502 13.8867V4.7998C20.4501 4.10966 19.8903 3.55002 19.2002 3.5498H4.7998Z",
1706
1699
  fill: "currentColor"
1707
1700
  }
1708
1701
  )
@@ -1821,6 +1814,36 @@ var Icon_launcher = (p) => {
1821
1814
  }
1822
1815
  );
1823
1816
  };
1817
+ var Icon_leftRight = (p) => {
1818
+ const { size = 24, ...rest } = p;
1819
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1820
+ "svg",
1821
+ {
1822
+ width: size,
1823
+ height: size,
1824
+ viewBox: "0 0 24 24",
1825
+ fill: "none",
1826
+ xmlns: "http://www.w3.org/2000/svg",
1827
+ ...rest,
1828
+ children: [
1829
+ /* @__PURE__ */ jsxRuntime.jsx(
1830
+ "path",
1831
+ {
1832
+ d: "M6.46594 12.5001C6.7421 12.1916 7.21587 12.1655 7.52454 12.4415C7.83288 12.7177 7.85911 13.1915 7.58313 13.5001L4.67688 16.7501H21.0001C21.4142 16.7502 21.7501 17.086 21.7501 17.5001C21.75 17.9142 21.4142 18.25 21.0001 18.2501H4.67688L7.58313 21.5001C7.859 21.8088 7.83295 22.2826 7.52454 22.5587C7.21592 22.8347 6.74212 22.8085 6.46594 22.5001L2.44153 18.0001C2.18693 17.7154 2.18693 17.2848 2.44153 17.0001L6.46594 12.5001Z",
1833
+ fill: "currentColor"
1834
+ }
1835
+ ),
1836
+ /* @__PURE__ */ jsxRuntime.jsx(
1837
+ "path",
1838
+ {
1839
+ d: "M16.4757 1.44153C16.7844 1.16552 17.2582 1.19163 17.5343 1.50013L21.5587 6.00013C21.8132 6.28481 21.8132 6.71549 21.5587 7.00013L17.5343 11.5001C17.2582 11.8086 16.7844 11.8346 16.4757 11.5587C16.1672 11.2826 16.1411 10.8088 16.4171 10.5001L19.3234 7.25013H3.00012C2.58596 7.25013 2.2502 6.91428 2.25012 6.50013C2.25012 6.08591 2.58591 5.75013 3.00012 5.75013H19.3234L16.4171 2.50013C16.1411 2.19146 16.1672 1.71769 16.4757 1.44153Z",
1840
+ fill: "currentColor"
1841
+ }
1842
+ )
1843
+ ]
1844
+ }
1845
+ );
1846
+ };
1824
1847
  var Icon_line = (p) => {
1825
1848
  const { size = 24, ...rest } = p;
1826
1849
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2439,6 +2462,27 @@ var Icon_search = (p) => {
2439
2462
  }
2440
2463
  );
2441
2464
  };
2465
+ var Icon_send = (p) => {
2466
+ const { size = 24, ...rest } = p;
2467
+ return /* @__PURE__ */ jsxRuntime.jsx(
2468
+ "svg",
2469
+ {
2470
+ width: size,
2471
+ height: size,
2472
+ viewBox: "0 0 24 24",
2473
+ fill: "none",
2474
+ xmlns: "http://www.w3.org/2000/svg",
2475
+ ...rest,
2476
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2477
+ "path",
2478
+ {
2479
+ d: "M19.8551 3.15204C20.1245 3.06242 20.4219 3.13291 20.6226 3.33368C20.8233 3.53455 20.8931 3.83186 20.8033 4.10126L15.3209 20.5485C14.8017 22.1061 12.6164 22.1561 12.0269 20.6237L9.61191 14.3434L3.33261 11.9284C1.80035 11.3391 1.84967 9.15489 3.40683 8.63544L19.8551 3.15204ZM11.067 13.9479L13.4273 20.0847C13.5115 20.3036 13.8239 20.2964 13.898 20.0739L18.3756 6.64032L11.067 13.9479ZM3.88144 10.0583C3.65915 10.1325 3.65209 10.4437 3.8707 10.528L10.0064 12.8874L17.3141 5.58075L3.88144 10.0583Z",
2480
+ fill: "currentColor"
2481
+ }
2482
+ )
2483
+ }
2484
+ );
2485
+ };
2442
2486
  var Icon_setting = (p) => {
2443
2487
  const { size = 24, ...rest } = p;
2444
2488
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2460,7 +2504,7 @@ var Icon_setting = (p) => {
2460
2504
  }
2461
2505
  );
2462
2506
  };
2463
- var Icon_shield = (p) => {
2507
+ var Icon_settingOutline = (p) => {
2464
2508
  const { size = 24, ...rest } = p;
2465
2509
  return /* @__PURE__ */ jsxRuntime.jsxs(
2466
2510
  "svg",
@@ -2475,7 +2519,9 @@ var Icon_shield = (p) => {
2475
2519
  /* @__PURE__ */ jsxRuntime.jsx(
2476
2520
  "path",
2477
2521
  {
2478
- d: "M16.2549 9.3486C16.5477 9.05582 17.0225 9.05602 17.3154 9.3486C17.6083 9.64149 17.6083 10.1163 17.3154 10.4091L12.0859 15.6386C11.6954 16.0291 11.0624 16.0291 10.6719 15.6386L7.46973 12.4365C7.17728 12.1436 7.17703 11.6687 7.46973 11.3759C7.76264 11.0833 8.23844 11.0831 8.53125 11.3759L11.3789 14.2246L16.2549 9.3486Z",
2522
+ fillRule: "evenodd",
2523
+ clipRule: "evenodd",
2524
+ d: "M11.9996 8C14.2087 8 15.9996 9.79086 15.9996 12C15.9996 14.2091 14.2087 16 11.9996 16C9.79065 15.9998 7.9996 14.209 7.9996 12C7.9996 9.791 9.79065 8.00022 11.9996 8ZM11.9996 9.5C10.6191 9.50022 9.4996 10.6194 9.4996 12C9.4996 13.3806 10.6191 14.4998 11.9996 14.5C13.3803 14.5 14.4996 13.3807 14.4996 12C14.4996 10.6193 13.3803 9.5 11.9996 9.5Z",
2479
2525
  fill: "currentColor"
2480
2526
  }
2481
2527
  ),
@@ -2484,7 +2530,7 @@ var Icon_shield = (p) => {
2484
2530
  {
2485
2531
  fillRule: "evenodd",
2486
2532
  clipRule: "evenodd",
2487
- d: "M11.501 1.4404C11.8718 1.27889 12.3024 1.30624 12.6533 1.52145L20.1533 6.12204C20.5238 6.34931 20.7499 6.75284 20.75 7.18747V10.5302C20.75 11.8881 20.6005 13.3051 20.0645 14.6425C19.5554 15.9124 18.7155 17.6378 17.4502 19.1894C16.1835 20.7426 14.4592 22.1581 12.1816 22.7275L12 22.7734L11.8184 22.7275C9.54076 22.1581 7.81646 20.7426 6.5498 19.1894C5.2845 17.6378 4.4446 15.9124 3.93555 14.6425C3.39949 13.3051 3.25 11.8881 3.25 10.5302V7.18747C3.25007 6.75284 3.47619 6.34931 3.84668 6.12204L11.3467 1.52145L11.501 1.4404ZM4.75 7.32712V10.5302C4.75 11.7887 4.89082 12.9929 5.32812 14.084C5.80497 15.2735 6.57635 16.8486 7.71191 18.2412C8.80911 19.5866 10.2182 20.7255 12 21.2216C13.7818 20.7255 15.1909 19.5866 16.2881 18.2412C17.4236 16.8486 18.195 15.2735 18.6719 14.084C19.1092 12.9929 19.25 11.7887 19.25 10.5302V7.32712L12 2.87985L4.75 7.32712Z",
2533
+ d: "M13.1851 1C13.5085 1 13.7979 1.20161 13.9068 1.50293L14.6832 3.65527C14.9613 3.72452 15.2006 3.79367 15.4029 3.86621C15.5134 3.90579 15.64 3.95628 15.7828 4.0166L16.2613 4.22949L18.0689 3.27246C18.2163 3.19438 18.3856 3.16661 18.5504 3.19238C18.7153 3.21835 18.8676 3.29735 18.984 3.41699L20.5748 5.06152C20.7859 5.28042 20.8459 5.60054 20.7271 5.87988L19.8785 7.86719C20.0192 8.12546 20.1316 8.34655 20.2174 8.53125C20.3097 8.73243 20.4239 9.01001 20.5601 9.36719L22.5377 10.2148L22.6432 10.2695C22.8771 10.4155 23.016 10.6779 22.9986 10.9561L22.8531 13.2383L22.8375 13.3486C22.8141 13.4565 22.7672 13.5589 22.6998 13.6475L22.6266 13.7305C22.5476 13.8076 22.4523 13.8674 22.3473 13.9043L20.4752 14.5693C20.4213 14.8278 20.3647 15.0493 20.3053 15.2363L20.1519 15.666C20.0973 15.8078 20.0394 15.9488 19.9781 16.0879L20.9185 18.166L20.9586 18.2793C20.9899 18.3941 20.9942 18.5153 20.9693 18.6328L20.9351 18.7471C20.8923 18.8584 20.823 18.959 20.733 19.0391L18.9449 20.6357L18.8512 20.707C18.753 20.7705 18.6411 20.812 18.524 20.8262L18.4059 20.8311C18.2889 20.8272 18.1732 20.7964 18.0689 20.7412L16.2262 19.7647C15.9378 19.9173 15.6394 20.0519 15.3346 20.168L14.5299 20.4697L13.815 22.4502L13.7672 22.5547C13.7121 22.6552 13.6346 22.7424 13.5406 22.8096L13.442 22.8701C13.3398 22.9219 13.2264 22.9498 13.1109 22.9522L11.0211 23C10.9023 23.0031 10.7841 22.9783 10.6773 22.9287L10.5748 22.8711C10.4431 22.7831 10.3415 22.6557 10.2848 22.5078L9.44198 20.2783C9.1547 20.1801 8.86973 20.0733 8.58847 19.959C8.35848 19.8594 8.13142 19.7518 7.90878 19.6367L5.81894 20.5303L5.71347 20.5664C5.64162 20.5854 5.56705 20.594 5.49276 20.5918L5.38241 20.5801C5.27208 20.5606 5.1671 20.5175 5.07577 20.4541L4.98886 20.3838L3.44198 18.9326C3.35574 18.8519 3.28988 18.7525 3.2496 18.6426L3.21737 18.5303C3.18685 18.376 3.20586 18.2154 3.27109 18.0723L4.1705 16.1143C4.05101 15.8824 3.93933 15.6454 3.83749 15.4053C3.71871 15.1116 3.60934 14.814 3.50839 14.5137L1.53866 13.9141C1.41879 13.8777 1.31002 13.8122 1.22226 13.7246L1.14218 13.6299C1.04481 13.4941 0.994151 13.3291 0.999601 13.1621L1.07675 11.0498C1.08222 10.9121 1.1259 10.7782 1.20175 10.6631C1.25874 10.5767 1.33262 10.5026 1.41855 10.4463L1.50839 10.3965L3.57382 9.4043C3.6695 9.05348 3.75306 8.78014 3.82675 8.58106C3.9305 8.31518 4.0461 8.05376 4.17245 7.79785L3.27694 5.90625C3.20906 5.76263 3.18873 5.6004 3.21835 5.44434C3.24057 5.3276 3.2899 5.21813 3.36191 5.125L3.44198 5.03711L4.98593 3.57813C5.09409 3.47611 5.23034 3.40784 5.37655 3.38086C5.52273 3.354 5.67376 3.37002 5.81112 3.42676L7.89901 4.28906C8.12988 4.13515 8.33881 4.01023 8.52792 3.91016C8.75326 3.79034 9.05504 3.66547 9.43417 3.53027L10.1607 1.50488C10.2143 1.35699 10.3122 1.22899 10.441 1.13867C10.57 1.04839 10.7249 0.999723 10.8824 1H13.1851ZM10.8463 4.03613C10.6946 4.45908 10.3613 4.79149 9.93808 4.94238C9.5875 5.06739 9.36381 5.16528 9.23202 5.23535L9.23007 5.23633C9.09075 5.31005 8.9247 5.40801 8.73105 5.53711C8.31531 5.81413 7.78855 5.86633 7.32675 5.67578L5.67343 4.99219L4.86484 5.75586L5.52792 7.15625C5.72387 7.57031 5.71997 8.05117 5.51718 8.46192C5.41394 8.67102 5.31944 8.88459 5.23398 9.10156L5.14218 9.37598C5.10686 9.491 5.06681 9.63118 5.02109 9.79883C4.90655 10.2184 4.6153 10.5675 4.22323 10.7559L2.55917 11.5547L2.51913 12.6436L3.94491 13.0781L4.11386 13.1416C4.49659 13.3106 4.79411 13.6335 4.92929 14.0352C5.01804 14.2992 5.11534 14.5609 5.21933 14.8193L5.35507 15.126C5.40249 15.2271 5.45233 15.3275 5.50351 15.4268C5.71457 15.8364 5.72588 16.3204 5.53378 16.7393L4.85898 18.2061L5.66659 18.9639L7.31894 18.2578L7.47616 18.2012C7.84698 18.0894 8.24932 18.125 8.59726 18.3047C8.78187 18.4001 8.97024 18.4892 9.16073 18.5723C9.28594 18.6231 9.41211 18.6724 9.53866 18.7197L9.92733 18.8594L10.0816 18.9219C10.4317 19.0869 10.7069 19.382 10.8453 19.748L11.5025 21.4883L12.5748 21.4639L13.1187 19.96L13.1832 19.8096C13.3508 19.4678 13.6433 19.2005 14.0035 19.0654L14.8004 18.7666L15.1676 18.6143C15.288 18.5597 15.4071 18.5013 15.524 18.4395L15.692 18.3623C16.0928 18.2097 16.5441 18.236 16.9283 18.4395L18.3238 19.1787L19.3248 18.2842L18.6109 16.7061C18.4355 16.318 18.4336 15.8732 18.6051 15.4834C18.7075 15.2508 18.7973 15.0126 18.8775 14.7715C18.9163 14.6479 18.9608 14.4825 19.0064 14.2637L19.0582 14.0762C19.2064 13.6503 19.5409 13.3098 19.9723 13.1563L21.3873 12.6523L21.4674 11.3877L19.9703 10.7461C19.5971 10.5861 19.3035 10.2817 19.1588 9.90234C19.0283 9.56034 18.9273 9.31663 18.8541 9.15723C18.7854 9.00988 18.689 8.81973 18.5611 8.58496C18.3418 8.18212 18.3187 7.70024 18.4986 7.27832L19.1519 5.74707L18.2867 4.85352L16.9625 5.55567C16.5475 5.77509 16.0531 5.78799 15.6275 5.58984C15.2974 5.43614 15.0582 5.33606 14.8971 5.27832C14.7581 5.22851 14.5701 5.17338 14.3209 5.11133C13.8356 4.99032 13.4418 4.63455 13.2721 4.16406L12.6715 2.5H11.3971L10.8463 4.03613Z",
2488
2534
  fill: "currentColor"
2489
2535
  }
2490
2536
  )
@@ -2492,9 +2538,9 @@ var Icon_shield = (p) => {
2492
2538
  }
2493
2539
  );
2494
2540
  };
2495
- var Icon_sidebar = (p) => {
2541
+ var Icon_shield = (p) => {
2496
2542
  const { size = 24, ...rest } = p;
2497
- return /* @__PURE__ */ jsxRuntime.jsx(
2543
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2498
2544
  "svg",
2499
2545
  {
2500
2546
  width: size,
@@ -2503,19 +2549,28 @@ var Icon_sidebar = (p) => {
2503
2549
  fill: "none",
2504
2550
  xmlns: "http://www.w3.org/2000/svg",
2505
2551
  ...rest,
2506
- children: /* @__PURE__ */ jsxRuntime.jsx(
2507
- "path",
2508
- {
2509
- fillRule: "evenodd",
2510
- clipRule: "evenodd",
2511
- d: "M19 3C20.6569 3 22 4.34315 22 6V18L21.9961 18.1543C21.9184 19.6883 20.6883 20.9184 19.1543 20.9961L19 21H5L4.8457 20.9961C3.31166 20.9184 2.08163 19.6883 2.00391 18.1543L2 18V6C2 4.34315 3.34315 3 5 3H19ZM5 4.5C4.17157 4.5 3.5 5.17157 3.5 6V18C3.5 18.8284 4.17157 19.5 5 19.5H8V4.5H5ZM9.5 19.5H19C19.8284 19.5 20.5 18.8284 20.5 18V6C20.5 5.17157 19.8284 4.5 19 4.5H9.5V19.5Z",
2512
- fill: "currentColor"
2513
- }
2514
- )
2552
+ children: [
2553
+ /* @__PURE__ */ jsxRuntime.jsx(
2554
+ "path",
2555
+ {
2556
+ d: "M16.2549 9.3486C16.5477 9.05582 17.0225 9.05602 17.3154 9.3486C17.6083 9.64149 17.6083 10.1163 17.3154 10.4091L12.0859 15.6386C11.6954 16.0291 11.0624 16.0291 10.6719 15.6386L7.46973 12.4365C7.17728 12.1436 7.17703 11.6687 7.46973 11.3759C7.76264 11.0833 8.23844 11.0831 8.53125 11.3759L11.3789 14.2246L16.2549 9.3486Z",
2557
+ fill: "currentColor"
2558
+ }
2559
+ ),
2560
+ /* @__PURE__ */ jsxRuntime.jsx(
2561
+ "path",
2562
+ {
2563
+ fillRule: "evenodd",
2564
+ clipRule: "evenodd",
2565
+ d: "M11.501 1.4404C11.8718 1.27889 12.3024 1.30624 12.6533 1.52145L20.1533 6.12204C20.5238 6.34931 20.7499 6.75284 20.75 7.18747V10.5302C20.75 11.8881 20.6005 13.3051 20.0645 14.6425C19.5554 15.9124 18.7155 17.6378 17.4502 19.1894C16.1835 20.7426 14.4592 22.1581 12.1816 22.7275L12 22.7734L11.8184 22.7275C9.54076 22.1581 7.81646 20.7426 6.5498 19.1894C5.2845 17.6378 4.4446 15.9124 3.93555 14.6425C3.39949 13.3051 3.25 11.8881 3.25 10.5302V7.18747C3.25007 6.75284 3.47619 6.34931 3.84668 6.12204L11.3467 1.52145L11.501 1.4404ZM4.75 7.32712V10.5302C4.75 11.7887 4.89082 12.9929 5.32812 14.084C5.80497 15.2735 6.57635 16.8486 7.71191 18.2412C8.80911 19.5866 10.2182 20.7255 12 21.2216C13.7818 20.7255 15.1909 19.5866 16.2881 18.2412C17.4236 16.8486 18.195 15.2735 18.6719 14.084C19.1092 12.9929 19.25 11.7887 19.25 10.5302V7.32712L12 2.87985L4.75 7.32712Z",
2566
+ fill: "currentColor"
2567
+ }
2568
+ )
2569
+ ]
2515
2570
  }
2516
2571
  );
2517
2572
  };
2518
- var Icon_star = (p) => {
2573
+ var Icon_sidebar = (p) => {
2519
2574
  const { size = 24, ...rest } = p;
2520
2575
  return /* @__PURE__ */ jsxRuntime.jsx(
2521
2576
  "svg",
@@ -2529,7 +2584,9 @@ var Icon_star = (p) => {
2529
2584
  children: /* @__PURE__ */ jsxRuntime.jsx(
2530
2585
  "path",
2531
2586
  {
2532
- d: "M12.1736 2.91895C12.3072 2.91895 12.4174 3.02382 12.4236 3.15723L12.7644 10.6738L19.4461 7.21191C19.5647 7.15042 19.7112 7.19288 19.7781 7.30859L19.9519 7.61035C20.0184 7.72598 19.9822 7.87332 19.8699 7.94531L13.53 11.999L19.8699 16.0547C19.9822 16.1267 20.0184 16.274 19.9519 16.3896L19.7781 16.6914C19.7113 16.8071 19.5647 16.8496 19.4461 16.7881L12.7654 13.3252L12.4236 20.8428C12.4174 20.9762 12.3072 21.0811 12.1736 21.0811H11.8259C11.6925 21.0809 11.5831 20.9761 11.5769 20.8428L11.2341 13.3252L4.55445 16.7881C4.43582 16.8496 4.28927 16.8071 4.22242 16.6914L4.04859 16.3896C3.98202 16.2739 4.01814 16.1266 4.13063 16.0547L10.4695 12L4.13063 7.94531C4.01813 7.87336 3.98201 7.72606 4.04859 7.61035L4.22242 7.30859C4.28928 7.19292 4.43582 7.15043 4.55445 7.21191L11.2341 10.6738L11.5769 3.15723C11.5831 3.02392 11.6925 2.91909 11.8259 2.91895H12.1736Z",
2587
+ fillRule: "evenodd",
2588
+ clipRule: "evenodd",
2589
+ d: "M19 3C20.6569 3 22 4.34315 22 6V18L21.9961 18.1543C21.9184 19.6883 20.6883 20.9184 19.1543 20.9961L19 21H5L4.8457 20.9961C3.31166 20.9184 2.08163 19.6883 2.00391 18.1543L2 18V6C2 4.34315 3.34315 3 5 3H19ZM5 4.5C4.17157 4.5 3.5 5.17157 3.5 6V18C3.5 18.8284 4.17157 19.5 5 19.5H8V4.5H5ZM9.5 19.5H19C19.8284 19.5 20.5 18.8284 20.5 18V6C20.5 5.17157 19.8284 4.5 19 4.5H9.5V19.5Z",
2533
2590
  fill: "currentColor"
2534
2591
  }
2535
2592
  )
@@ -2598,6 +2655,52 @@ var Icon_synchronize = (p) => {
2598
2655
  }
2599
2656
  );
2600
2657
  };
2658
+ var Icon_thumbsDown = (p) => {
2659
+ const { size = 24, ...rest } = p;
2660
+ return /* @__PURE__ */ jsxRuntime.jsx(
2661
+ "svg",
2662
+ {
2663
+ width: size,
2664
+ height: size,
2665
+ viewBox: "0 0 24 24",
2666
+ fill: "none",
2667
+ xmlns: "http://www.w3.org/2000/svg",
2668
+ ...rest,
2669
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2670
+ "path",
2671
+ {
2672
+ fillRule: "evenodd",
2673
+ clipRule: "evenodd",
2674
+ d: "M13.5 21.25C14.7426 21.25 15.75 20.2426 15.75 19V15.5C15.75 15.3619 15.8619 15.25 16 15.25H18.8936C20.7018 15.25 22.0178 13.5347 21.5498 11.7881L20.1484 6.55762C19.5504 4.3259 17.4329 2.84845 15.1318 3.05664L8.05371 3.69727C7.76261 3.13498 7.17686 2.75 6.5 2.75H4.5C3.25736 2.75 2.25 3.75736 2.25 5V13C2.25 14.2426 3.25736 15.25 4.5 15.25H8.25V15.1689C8.57271 15.4885 8.90914 15.8467 9.23438 16.2344C10.0174 17.1678 10.7037 18.2229 11.0371 19.2568C11.3509 20.2303 12.2316 21.25 13.5 21.25ZM13.5 19.75C13.1116 19.75 12.6594 19.4004 12.4648 18.7969C12.0481 17.5041 11.2278 16.2778 10.3828 15.2705C9.6516 14.3988 8.87296 13.658 8.25 13.1416V5.18555L15.2676 4.55078C16.8419 4.40844 18.2901 5.41938 18.6992 6.94629L20.1006 12.1768C20.3132 12.9706 19.7154 13.75 18.8936 13.75H16C15.0335 13.75 14.25 14.5335 14.25 15.5V19C14.25 19.4142 13.9142 19.75 13.5 19.75Z",
2675
+ fill: "currentColor"
2676
+ }
2677
+ )
2678
+ }
2679
+ );
2680
+ };
2681
+ var Icon_thumbsUp = (p) => {
2682
+ const { size = 24, ...rest } = p;
2683
+ return /* @__PURE__ */ jsxRuntime.jsx(
2684
+ "svg",
2685
+ {
2686
+ width: size,
2687
+ height: size,
2688
+ viewBox: "0 0 24 24",
2689
+ fill: "none",
2690
+ xmlns: "http://www.w3.org/2000/svg",
2691
+ ...rest,
2692
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2693
+ "path",
2694
+ {
2695
+ fillRule: "evenodd",
2696
+ clipRule: "evenodd",
2697
+ d: "M13.5 2.75C14.7426 2.75 15.75 3.75736 15.75 5V8.5C15.75 8.63807 15.8619 8.75 16 8.75H18.8936C20.7018 8.75 22.0178 10.4653 21.5498 12.2119L20.1484 17.4424C19.5504 19.6741 17.4329 21.1516 15.1318 20.9434L8.05371 20.3027C7.76261 20.865 7.17686 21.25 6.5 21.25H4.5C3.25736 21.25 2.25 20.2426 2.25 19V11C2.25 9.75736 3.25736 8.75 4.5 8.75H8.25V8.83105C8.57271 8.51149 8.90914 8.15334 9.23438 7.76562C10.0174 6.83217 10.7037 5.77712 11.0371 4.74316C11.3509 3.76975 12.2316 2.75 13.5 2.75ZM13.5 4.25C13.1116 4.25 12.6594 4.59961 12.4648 5.20312C12.0481 6.49588 11.2278 7.72217 10.3828 8.72949C9.6516 9.60115 8.87296 10.342 8.25 10.8584V18.8145L15.2676 19.4492C16.8419 19.5916 18.2901 18.5806 18.6992 17.0537L20.1006 11.8232C20.3132 11.0294 19.7154 10.25 18.8936 10.25H16C15.0335 10.25 14.25 9.4665 14.25 8.5V5C14.25 4.58579 13.9142 4.25 13.5 4.25Z",
2698
+ fill: "currentColor"
2699
+ }
2700
+ )
2701
+ }
2702
+ );
2703
+ };
2601
2704
  var Icon_updown = (p) => {
2602
2705
  const { size = 24, ...rest } = p;
2603
2706
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2649,6 +2752,50 @@ var Icon_user = (p) => {
2649
2752
  }
2650
2753
  );
2651
2754
  };
2755
+ var Icon_users = (p) => {
2756
+ const { size = 24, ...rest } = p;
2757
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2758
+ "svg",
2759
+ {
2760
+ width: size,
2761
+ height: size,
2762
+ viewBox: "0 0 24 24",
2763
+ fill: "none",
2764
+ xmlns: "http://www.w3.org/2000/svg",
2765
+ ...rest,
2766
+ children: [
2767
+ /* @__PURE__ */ jsxRuntime.jsx(
2768
+ "path",
2769
+ {
2770
+ d: "M11.4062 13.5C14.5 13.5 17 16 17 19.0938C17 19.5938 16.5625 20 16.0625 20H3.90625C3.40625 20 3 19.5938 3 19.0938C3 16 5.46875 13.5 8.5625 13.5H11.4062Z",
2771
+ fill: "currentColor"
2772
+ }
2773
+ ),
2774
+ /* @__PURE__ */ jsxRuntime.jsx(
2775
+ "path",
2776
+ {
2777
+ d: "M15.4189 13.5C18.8153 13.5001 21.5 16.4402 21.5 20H20.5C20.5 16.9999 18.3097 14.6219 15.626 14.5049C15.1851 14.0929 14.6769 13.7528 14.1201 13.5H15.4189Z",
2778
+ fill: "currentColor"
2779
+ }
2780
+ ),
2781
+ /* @__PURE__ */ jsxRuntime.jsx(
2782
+ "path",
2783
+ {
2784
+ d: "M10 4C12.1875 4 14 5.8125 14 8C14 10.2188 12.1875 12 10 12C7.78125 12 6 10.2188 6 8C6 5.8125 7.78125 4 10 4Z",
2785
+ fill: "currentColor"
2786
+ }
2787
+ ),
2788
+ /* @__PURE__ */ jsxRuntime.jsx(
2789
+ "path",
2790
+ {
2791
+ d: "M14 4C16.1902 4 18 5.8098 18 8C18 10.2201 16.1877 12 14 12V11C15.6405 11 17 9.66273 17 8C17 6.36208 15.6379 5 14 5V4Z",
2792
+ fill: "currentColor"
2793
+ }
2794
+ )
2795
+ ]
2796
+ }
2797
+ );
2798
+ };
2652
2799
  var Icon_visibilityOff = (p) => {
2653
2800
  const { size = 24, ...rest } = p;
2654
2801
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2868,6 +3015,7 @@ var ICONS = {
2868
3015
  arrowLeft: Icon_arrowLeft,
2869
3016
  arrowRight: Icon_arrowRight,
2870
3017
  arrowUp: Icon_arrowUp,
3018
+ asterisk: Icon_asterisk,
2871
3019
  attachFile: Icon_attachFile,
2872
3020
  barcode: Icon_barcode,
2873
3021
  bell: Icon_bell,
@@ -2910,10 +3058,10 @@ var ICONS = {
2910
3058
  helpFill: Icon_helpFill,
2911
3059
  helpOutline: Icon_helpOutline,
2912
3060
  history: Icon_history,
2913
- imageFill: Icon_imageFill,
2914
- imageOutline: Icon_imageOutline,
3061
+ image: Icon_image,
2915
3062
  inline: Icon_inline,
2916
3063
  launcher: Icon_launcher,
3064
+ leftRight: Icon_leftRight,
2917
3065
  line: Icon_line,
2918
3066
  location: Icon_location,
2919
3067
  logout: Icon_logout,
@@ -2934,14 +3082,18 @@ var ICONS = {
2934
3082
  row: Icon_row,
2935
3083
  save: Icon_save,
2936
3084
  search: Icon_search,
3085
+ send: Icon_send,
2937
3086
  setting: Icon_setting,
3087
+ settingOutline: Icon_settingOutline,
2938
3088
  shield: Icon_shield,
2939
3089
  sidebar: Icon_sidebar,
2940
- star: Icon_star,
2941
3090
  store: Icon_store,
2942
3091
  synchronize: Icon_synchronize,
3092
+ thumbsDown: Icon_thumbsDown,
3093
+ thumbsUp: Icon_thumbsUp,
2943
3094
  updown: Icon_updown,
2944
3095
  user: Icon_user,
3096
+ users: Icon_users,
2945
3097
  visibilityOff: Icon_visibilityOff,
2946
3098
  visibilityOn: Icon_visibilityOn,
2947
3099
  warehouseFill: Icon_warehouseFill,
@@ -4815,7 +4967,7 @@ var SSectionHeaderCardHeaderImpl = /* @__PURE__ */ react.forwardRef(
4815
4967
  required && /* @__PURE__ */ jsxRuntime.jsx(
4816
4968
  SIcon,
4817
4969
  {
4818
- name: "star",
4970
+ name: "asterisk",
4819
4971
  size: 16,
4820
4972
  color: "var(--sys-color-fg-accent)",
4821
4973
  className: "shrink-0"
@@ -4934,31 +5086,250 @@ var SScrollArea = /* @__PURE__ */ react.forwardRef(function SScrollArea2({
4934
5086
  // src/components/SScrollArea/scrollArea.config.ts
4935
5087
  var SCROLL_AREA_AXES = ["vertical", "horizontal", "both"];
4936
5088
 
4937
- // src/components/SButton/button.config.ts
4938
- var BUTTON_COLORS = ["primary", "secondary", "neutral", "danger"];
4939
- var BUTTON_SIZES = ["xs", "sm", "md", "lg"];
4940
- var V = (path) => `var(--cmp-button-${path})`;
4941
- function buttonPreset(color, outline) {
4942
- switch (color) {
4943
- case "primary":
4944
- return outline ? {
4945
- bg: V("brand-outline-bg-default"),
4946
- bgHover: V("brand-outline-bg-hover"),
4947
- text: V("brand-outline-content"),
4948
- icon: V("brand-outline-content"),
4949
- border: V("brand-outline-border")
4950
- } : {
4951
- bg: V("brand-strong-bg-default"),
4952
- bgHover: V("brand-strong-bg-hover"),
4953
- text: V("brand-strong-content"),
4954
- icon: V("brand-strong-content"),
4955
- border: "transparent"
4956
- };
4957
- case "secondary":
4958
- return {
4959
- bg: V("brand-subtle-bg-default"),
4960
- bgHover: V("brand-subtle-bg-hover"),
4961
- text: V("brand-subtle-content"),
5089
+ // src/components/SSplitter/splitter.config.ts
5090
+ var SSPLITTER_UNITS = ["%", "px"];
5091
+ var SSPLITTER_DEFAULT_LIMITS = {
5092
+ "%": [10, 90],
5093
+ "px": [50, Infinity]
5094
+ };
5095
+ var SSPLITTER_DEFAULT_VALUE = {
5096
+ "%": 50,
5097
+ "px": 240
5098
+ };
5099
+ var SSPLITTER_KEY_STEP = {
5100
+ "%": { normal: 1, large: 10 },
5101
+ "px": { normal: 10, large: 50 }
5102
+ };
5103
+ var LINE = "var(--cmp-splitter-border-width)";
5104
+ var PAD = "var(--cmp-splitter-border-padding)";
5105
+ var HIT = `calc(${LINE} + ${PAD} * 2)`;
5106
+ var HIT_END = `calc(0px - ${PAD})`;
5107
+ var SSplitterContext = /* @__PURE__ */ react.createContext(null);
5108
+ function useSSplitterContext(who) {
5109
+ const ctx = react.useContext(SSplitterContext);
5110
+ if (!ctx) throw new Error(`${who} \uC740 <SSplitter> \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`);
5111
+ return ctx;
5112
+ }
5113
+ var SSplitterRoot = /* @__PURE__ */ react.forwardRef(function SSplitter({
5114
+ value,
5115
+ defaultValue,
5116
+ onValueChange,
5117
+ unit = "%",
5118
+ limits,
5119
+ emitImmediately = false,
5120
+ vertical = false,
5121
+ disabled = false,
5122
+ dividerClassName,
5123
+ dividerStyle,
5124
+ className,
5125
+ style,
5126
+ children,
5127
+ ...rest
5128
+ }, ref) {
5129
+ const rootRef = react.useRef(null);
5130
+ const setRootRef = react.useCallback(
5131
+ (node) => {
5132
+ rootRef.current = node;
5133
+ if (typeof ref === "function") ref(node);
5134
+ else if (ref) ref.current = node;
5135
+ },
5136
+ [ref]
5137
+ );
5138
+ const [uncontrolledValue, setUncontrolledValue] = react.useState(
5139
+ () => defaultValue ?? SSPLITTER_DEFAULT_VALUE[unit]
5140
+ );
5141
+ const isControlled = value !== void 0;
5142
+ const committedValue = isControlled ? value : uncontrolledValue;
5143
+ const [dragValue, setDragValue] = react.useState(null);
5144
+ const currentValue = dragValue ?? committedValue;
5145
+ const [dragging, setDragging] = react.useState(false);
5146
+ const [minLimit, maxLimit] = limits ?? SSPLITTER_DEFAULT_LIMITS[unit];
5147
+ const stateRef = react.useRef({ committedValue, unit, vertical, minLimit, maxLimit });
5148
+ stateRef.current = { committedValue, unit, vertical, minLimit, maxLimit };
5149
+ const emitRef = react.useRef({ onValueChange, emitImmediately, isControlled });
5150
+ emitRef.current = { onValueChange, emitImmediately, isControlled };
5151
+ const measure = react.useCallback(() => {
5152
+ const el = rootRef.current;
5153
+ if (!el) return 0;
5154
+ return stateRef.current.vertical ? el.clientHeight : el.clientWidth;
5155
+ }, []);
5156
+ const clamp4 = react.useCallback((next, containerSize) => {
5157
+ const { unit: u, minLimit: lo, maxLimit: hi } = stateRef.current;
5158
+ const unitMax = u === "%" ? 100 : containerSize;
5159
+ return Math.min(unitMax, hi, Math.max(lo, next));
5160
+ }, []);
5161
+ const commit = react.useCallback((next) => {
5162
+ if (next === stateRef.current.committedValue) return;
5163
+ stateRef.current.committedValue = next;
5164
+ if (!emitRef.current.isControlled) setUncontrolledValue(next);
5165
+ emitRef.current.onValueChange?.(next);
5166
+ }, []);
5167
+ const endDragRef = react.useRef(null);
5168
+ react.useEffect(() => () => endDragRef.current?.(), []);
5169
+ const startResize = react.useCallback(
5170
+ (event) => {
5171
+ if (disabled || typeof document === "undefined") return;
5172
+ event.preventDefault();
5173
+ event.currentTarget.focus();
5174
+ const isVertical = stateRef.current.vertical;
5175
+ const containerSize = measure();
5176
+ const startPos = isVertical ? event.clientY : event.clientX;
5177
+ const startValue = clamp4(stateRef.current.committedValue, containerSize);
5178
+ const multiplier = stateRef.current.unit === "%" ? containerSize === 0 ? 0 : 100 / containerSize : 1;
5179
+ let latest = startValue;
5180
+ const { body } = document;
5181
+ const prevUserSelect = body.style.userSelect;
5182
+ const prevCursor = body.style.cursor;
5183
+ body.style.userSelect = "none";
5184
+ body.style.cursor = isVertical ? "row-resize" : "col-resize";
5185
+ const onMove = (moveEvent) => {
5186
+ const delta = (isVertical ? moveEvent.clientY : moveEvent.clientX) - startPos;
5187
+ latest = clamp4(startValue + multiplier * delta, containerSize);
5188
+ setDragValue(latest);
5189
+ if (emitRef.current.emitImmediately) commit(latest);
5190
+ };
5191
+ const endDrag = () => {
5192
+ document.removeEventListener("mousemove", onMove);
5193
+ document.removeEventListener("mouseup", endDrag);
5194
+ body.style.userSelect = prevUserSelect;
5195
+ body.style.cursor = prevCursor;
5196
+ endDragRef.current = null;
5197
+ setDragging(false);
5198
+ setDragValue(null);
5199
+ commit(latest);
5200
+ };
5201
+ document.addEventListener("mousemove", onMove);
5202
+ document.addEventListener("mouseup", endDrag);
5203
+ endDragRef.current = endDrag;
5204
+ setDragging(true);
5205
+ },
5206
+ [disabled, measure, clamp4, commit]
5207
+ );
5208
+ const handleKeyDown = react.useCallback(
5209
+ (event) => {
5210
+ if (disabled) return;
5211
+ const { unit: u, vertical: isVertical, minLimit: lo } = stateRef.current;
5212
+ const step = SSPLITTER_KEY_STEP[u][event.shiftKey ? "large" : "normal"];
5213
+ const decrease = isVertical ? "ArrowUp" : "ArrowLeft";
5214
+ const increase = isVertical ? "ArrowDown" : "ArrowRight";
5215
+ let next = null;
5216
+ if (event.key === decrease) next = stateRef.current.committedValue - step;
5217
+ else if (event.key === increase) next = stateRef.current.committedValue + step;
5218
+ else if (event.key === "Home") next = lo;
5219
+ else if (event.key === "End") next = Number.MAX_SAFE_INTEGER;
5220
+ if (next === null) return;
5221
+ event.preventDefault();
5222
+ commit(clamp4(next, measure()));
5223
+ },
5224
+ [disabled, measure, clamp4, commit]
5225
+ );
5226
+ const sizeCss = unit === "%" ? `${currentValue}%` : `${Math.round(currentValue)}px`;
5227
+ const divider = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative z-[1] shrink-0", style: { flexBasis: LINE }, children: /* @__PURE__ */ jsxRuntime.jsx(
5228
+ "div",
5229
+ {
5230
+ role: "separator",
5231
+ "aria-orientation": vertical ? "horizontal" : "vertical",
5232
+ "aria-valuenow": Math.round(currentValue),
5233
+ "aria-valuemin": Math.round(minLimit),
5234
+ "aria-valuemax": Number.isFinite(maxLimit) ? Math.round(maxLimit) : void 0,
5235
+ "aria-valuetext": sizeCss,
5236
+ "aria-disabled": disabled || void 0,
5237
+ tabIndex: disabled ? -1 : 0,
5238
+ onMouseDown: startResize,
5239
+ onKeyDown: handleKeyDown,
5240
+ className: cn(
5241
+ "group absolute flex outline-none",
5242
+ vertical ? "inset-x-0 flex-col justify-center" : "inset-y-0 justify-center",
5243
+ disabled ? "cursor-default" : vertical ? "cursor-row-resize" : "cursor-col-resize",
5244
+ dividerClassName
5245
+ ),
5246
+ style: {
5247
+ ...vertical ? { bottom: HIT_END, height: HIT } : { right: HIT_END, width: HIT },
5248
+ ...dividerStyle
5249
+ },
5250
+ children: /* @__PURE__ */ jsxRuntime.jsx(
5251
+ "span",
5252
+ {
5253
+ "aria-hidden": true,
5254
+ className: cn(
5255
+ // 평상시엔 자리만 잡고 칠하지 않는다 — 색이 붙는 것 자체가 조절 가능하다는 신호다.
5256
+ "transition-colors",
5257
+ vertical ? "h-(--cmp-splitter-border-width)" : "w-(--cmp-splitter-border-width)",
5258
+ !disabled && "group-hover:bg-(--cmp-splitter-border-color) group-focus-visible:bg-(--cmp-splitter-border-color)",
5259
+ !disabled && dragging && "bg-(--cmp-splitter-border-color)"
5260
+ )
5261
+ }
5262
+ )
5263
+ }
5264
+ ) });
5265
+ const ctx = { vertical, sizeCss, divider };
5266
+ return /* @__PURE__ */ jsxRuntime.jsx(SSplitterContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxRuntime.jsx(
5267
+ "div",
5268
+ {
5269
+ ref: setRootRef,
5270
+ className: cn("flex size-full", vertical ? "flex-col" : "flex-row", className),
5271
+ style,
5272
+ ...rest,
5273
+ children
5274
+ }
5275
+ ) });
5276
+ });
5277
+ function usePane(pane, className, style) {
5278
+ const ctx = useSSplitterContext(`SSplitter.${pane === "before" ? "Before" : "After"}`);
5279
+ const isSized = pane === "before";
5280
+ return {
5281
+ divider: ctx.divider,
5282
+ className: cn(
5283
+ "min-h-0 min-w-0 overflow-auto",
5284
+ isSized ? "shrink-0" : "flex-1 basis-0",
5285
+ className
5286
+ ),
5287
+ style: isSized ? { [ctx.vertical ? "height" : "width"]: ctx.sizeCss, ...style } : style
5288
+ };
5289
+ }
5290
+ var SSplitterBeforeImpl = /* @__PURE__ */ react.forwardRef(function SSplitterBefore({ className, style, children, ...rest }, ref) {
5291
+ const pane = usePane("before", className, style);
5292
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5293
+ /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: pane.className, style: pane.style, ...rest, children }),
5294
+ pane.divider
5295
+ ] });
5296
+ });
5297
+ var SSplitterAfterImpl = /* @__PURE__ */ react.forwardRef(function SSplitterAfter({ className, style, children, ...rest }, ref) {
5298
+ const pane = usePane("after", className, style);
5299
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: pane.className, style: pane.style, ...rest, children });
5300
+ });
5301
+ var SSplitterBefore2 = /* @__PURE__ */ withDisplayName(SSplitterBeforeImpl, "SSplitter.Before");
5302
+ var SSplitterAfter2 = /* @__PURE__ */ withDisplayName(SSplitterAfterImpl, "SSplitter.After");
5303
+ var SSplitter2 = /* @__PURE__ */ Object.assign(SSplitterRoot, {
5304
+ Before: SSplitterBefore2,
5305
+ After: SSplitterAfter2
5306
+ });
5307
+
5308
+ // src/components/SButton/button.config.ts
5309
+ var BUTTON_COLORS = ["primary", "secondary", "neutral", "danger"];
5310
+ var BUTTON_SIZES = ["xs", "sm", "md", "lg"];
5311
+ var V = (path) => `var(--cmp-button-${path})`;
5312
+ function buttonPreset(color, outline) {
5313
+ switch (color) {
5314
+ case "primary":
5315
+ return outline ? {
5316
+ bg: V("brand-outline-bg-default"),
5317
+ bgHover: V("brand-outline-bg-hover"),
5318
+ text: V("brand-outline-content"),
5319
+ icon: V("brand-outline-content"),
5320
+ border: V("brand-outline-border")
5321
+ } : {
5322
+ bg: V("brand-strong-bg-default"),
5323
+ bgHover: V("brand-strong-bg-hover"),
5324
+ text: V("brand-strong-content"),
5325
+ icon: V("brand-strong-content"),
5326
+ border: "transparent"
5327
+ };
5328
+ case "secondary":
5329
+ return {
5330
+ bg: V("brand-subtle-bg-default"),
5331
+ bgHover: V("brand-subtle-bg-hover"),
5332
+ text: V("brand-subtle-content"),
4962
5333
  icon: V("brand-subtle-content"),
4963
5334
  border: "transparent"
4964
5335
  };
@@ -6036,8 +6407,8 @@ function SFooter({
6036
6407
  "footer",
6037
6408
  {
6038
6409
  className: cn(
6039
- "relative flex w-full flex-shrink-0 items-center justify-end gap-[var(--cmp-overlay-footer-gap)] overflow-hidden px-[var(--cmp-overlay-footer-paddingX)] py-[var(--cmp-overlay-footer-paddingY)] shadow-[var(--shadow-spread-md)]",
6040
- isGrey ? "bg-[var(--cmp-overlay-footer-bg-neutral)]" : "bg-[var(--cmp-overlay-footer-bg-default)]",
6410
+ "relative flex w-full flex-shrink-0 items-center justify-end gap-[var(--cmp-overlay-footer-gap)] overflow-hidden px-[var(--cmp-overlay-footer-paddingX)] py-[var(--cmp-overlay-footer-paddingY)]",
6411
+ isGrey ? "bg-[var(--cmp-overlay-footer-bg-neutral)] border-t border-solid border-[color:var(--sys-color-border-default)]" : "bg-[var(--cmp-overlay-footer-bg-default)] shadow-[var(--shadow-spread-md)]",
6041
6412
  className
6042
6413
  ),
6043
6414
  style,
@@ -6922,6 +7293,72 @@ function SDrawer({
6922
7293
  )
6923
7294
  ] }) }) });
6924
7295
  }
7296
+
7297
+ // src/lib/is-dev.ts
7298
+ function isDev() {
7299
+ return typeof process === "undefined" || process?.env?.NODE_ENV !== "production";
7300
+ }
7301
+
7302
+ // src/lib/modal-outlet.ts
7303
+ var EMPTY = [];
7304
+ var entries2 = EMPTY;
7305
+ var listeners2 = /* @__PURE__ */ new Set();
7306
+ var outletRendered = false;
7307
+ var outletCount = 0;
7308
+ var nextId2 = 0;
7309
+ function emit2() {
7310
+ for (const listener of listeners2) listener();
7311
+ }
7312
+ function subscribeModalEntries(listener) {
7313
+ listeners2.add(listener);
7314
+ return () => {
7315
+ listeners2.delete(listener);
7316
+ };
7317
+ }
7318
+ function getModalEntries() {
7319
+ return entries2;
7320
+ }
7321
+ function getServerModalEntries() {
7322
+ return EMPTY;
7323
+ }
7324
+ function markModalOutletRendered() {
7325
+ outletRendered = true;
7326
+ }
7327
+ function registerModalOutlet() {
7328
+ outletCount += 1;
7329
+ outletRendered = true;
7330
+ return () => {
7331
+ outletCount -= 1;
7332
+ if (outletCount === 0) queueMicrotask(sweepOrphans);
7333
+ };
7334
+ }
7335
+ function sweepOrphans() {
7336
+ if (outletCount > 0) return;
7337
+ outletRendered = false;
7338
+ if (entries2 === EMPTY) return;
7339
+ const orphans = entries2;
7340
+ entries2 = EMPTY;
7341
+ emit2();
7342
+ for (const entry of orphans) entry.onOrphan();
7343
+ }
7344
+ function hasModalOutlet() {
7345
+ return outletRendered;
7346
+ }
7347
+ function isModalOutletMounted() {
7348
+ return outletCount > 0;
7349
+ }
7350
+ function addModalEntry(host, node, onOrphan) {
7351
+ const id = ++nextId2;
7352
+ entries2 = [...entries2, { id, host, node, onOrphan }];
7353
+ emit2();
7354
+ return id;
7355
+ }
7356
+ function removeModalEntry(id) {
7357
+ const next = entries2.filter((entry) => entry.id !== id);
7358
+ if (next.length === entries2.length) return;
7359
+ entries2 = next;
7360
+ emit2();
7361
+ }
6925
7362
  var EXIT_DURATION = 300;
6926
7363
  var EXIT_BUFFER = 100;
6927
7364
  var SModalRefImpl = class {
@@ -6929,6 +7366,7 @@ var SModalRefImpl = class {
6929
7366
  this.pendingClose = false;
6930
7367
  this.pendingPatches = [];
6931
7368
  this.dismissRequested = false;
7369
+ this.torndown = false;
6932
7370
  }
6933
7371
  onOk(fn) {
6934
7372
  this.okFn = fn;
@@ -6960,10 +7398,10 @@ var SModalRefImpl = class {
6960
7398
  return this;
6961
7399
  }
6962
7400
  // 닫힘 트리거 — 이미 닫힘이 시작됐으면 무시(중복 콜백 방지)
6963
- settle(emit2) {
7401
+ settle(emit3) {
6964
7402
  if (this.dismissRequested) return;
6965
7403
  this.dismissRequested = true;
6966
- emit2();
7404
+ emit3();
6967
7405
  if (this.closeBinding) this.closeBinding();
6968
7406
  else this.pendingClose = true;
6969
7407
  }
@@ -6996,11 +7434,18 @@ var SModalRefImpl = class {
6996
7434
  this.pendingPatches = [];
6997
7435
  }
6998
7436
  }
6999
- /** @internal 정리 대상(root·host) 주입 */
7000
- _setTeardown(root, host) {
7001
- this.root = root;
7437
+ /** @internal host 주입 — 렌더 전에 호출해야 마운트 검사(_getHost) 성립한다 */
7438
+ _setHost(host) {
7002
7439
  this.host = host;
7003
7440
  }
7441
+ /** @internal outlet 경로 정리 대상(스토어 엔트리) 주입 */
7442
+ _setEntry(id) {
7443
+ this.entryId = id;
7444
+ }
7445
+ /** @internal 폴백(createRoot) 경로 정리 대상 주입 */
7446
+ _setRoot(root) {
7447
+ this.root = root;
7448
+ }
7004
7449
  /** @internal create 의 마운트 검사용 host 조회 */
7005
7450
  _getHost() {
7006
7451
  return this.host;
@@ -7031,9 +7476,21 @@ var SModalRefImpl = class {
7031
7476
  }
7032
7477
  /** @internal 닫힘 애니메이션 종료 후 언마운트 */
7033
7478
  _teardown() {
7479
+ if (this.torndown) return;
7480
+ this.torndown = true;
7481
+ if (this.entryId !== void 0) {
7482
+ removeModalEntry(this.entryId);
7483
+ return;
7484
+ }
7034
7485
  this.root?.unmount();
7035
7486
  this.host?.remove();
7036
7487
  }
7488
+ /** @internal 렌더 실패·outlet 소멸로 모달이 사라졌을 때 — 콜백을 마무리하고 정리한다 */
7489
+ _fail() {
7490
+ this.dismissRequested = true;
7491
+ this._emitDismissed();
7492
+ this._teardown();
7493
+ }
7037
7494
  };
7038
7495
  function useExitTeardown(open, refImpl) {
7039
7496
  const dismissedRef = react.useRef(false);
@@ -7100,8 +7557,15 @@ function LoadingMount({ options, refImpl }) {
7100
7557
  }
7101
7558
  );
7102
7559
  }
7560
+ var outletWarned = false;
7561
+ var NO_OUTLET_CAUSE = "SModalOutlet \uC774 \uC571 \uD2B8\uB9AC\uC5D0 \uC5C6\uC5B4 \uC774 \uBAA8\uB2EC\uC740 \uBCC4\uB3C4 React \uB8E8\uD2B8(createRoot)\uB85C \uB9C8\uC6B4\uD2B8\uB429\uB2C8\uB2E4. React Context \uB294 DOM \uC774 \uC544\uB2C8\uB77C \uB80C\uB354 \uD2B8\uB9AC\uB97C \uD0C0\uBBC0\uB85C \uC571\uC758 Provider(QueryClient\xB7Router\xB7Theme \uB4F1)\uAC00 \uB2FF\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC571 \uBD80\uD2B8\uC2A4\uD2B8\uB7A9\uC5D0\uC11C Provider \uC548\uCABD\uC5D0 <SModalOutlet /> \uC744 \uD55C \uBC88 \uB80C\uB354\uD558\uC138\uC694.";
7562
+ function warnMissingOutlet() {
7563
+ if (!isDev() || outletWarned) return;
7564
+ outletWarned = true;
7565
+ console.warn(`[SModal] ${NO_OUTLET_CAUSE}`);
7566
+ }
7103
7567
  function warnIfNotModal(host, component) {
7104
- if (typeof process !== "undefined" && process?.env?.NODE_ENV === "production") return;
7568
+ if (!isDev()) return;
7105
7569
  if (!host || host.childElementCount === 0) return;
7106
7570
  const name = component?.name || "component";
7107
7571
  console.warn(
@@ -7109,14 +7573,14 @@ function warnIfNotModal(host, component) {
7109
7573
  );
7110
7574
  }
7111
7575
  function CreateMount({ options, refImpl }) {
7112
- const { component: Component, componentProps } = options;
7576
+ const { component: Component2, componentProps } = options;
7113
7577
  const [open, setOpen] = react.useState(true);
7114
7578
  react.useEffect(() => {
7115
7579
  refImpl._bindClose(() => setOpen(false));
7116
7580
  refImpl._bindUpdate(() => {
7117
7581
  });
7118
- warnIfNotModal(refImpl._getHost(), Component);
7119
- }, [refImpl, Component]);
7582
+ warnIfNotModal(refImpl._getHost(), Component2);
7583
+ }, [refImpl, Component2]);
7120
7584
  useExitTeardown(open, refImpl);
7121
7585
  const componentAllProps = {
7122
7586
  ...componentProps,
@@ -7128,15 +7592,42 @@ function CreateMount({ options, refImpl }) {
7128
7592
  onClose: () => refImpl._emitClose(),
7129
7593
  modalRef: refImpl
7130
7594
  };
7131
- return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...componentAllProps });
7595
+ return /* @__PURE__ */ jsxRuntime.jsx(Component2, { ...componentAllProps });
7132
7596
  }
7597
+ var ModalErrorBoundary = class extends react.Component {
7598
+ constructor() {
7599
+ super(...arguments);
7600
+ this.state = { failed: false };
7601
+ }
7602
+ static getDerivedStateFromError() {
7603
+ return { failed: true };
7604
+ }
7605
+ componentDidCatch(error) {
7606
+ console.error(
7607
+ this.props.standalone ? `[SModal] \uBAA8\uB2EC \uB80C\uB354\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. ${NO_OUTLET_CAUSE}` : "[SModal] \uBAA8\uB2EC \uB80C\uB354\uC5D0 \uC2E4\uD328\uD574 \uBAA8\uB2EC\uC744 \uB2EB\uC2B5\uB2C8\uB2E4.",
7608
+ error
7609
+ );
7610
+ setTimeout(() => this.props.onError(), 0);
7611
+ }
7612
+ render() {
7613
+ return this.state.failed ? null : this.props.children;
7614
+ }
7615
+ };
7133
7616
  function mount(render) {
7134
7617
  const host = document.createElement("div");
7135
7618
  document.body.appendChild(host);
7136
7619
  const refImpl = new SModalRefImpl();
7620
+ refImpl._setHost(host);
7621
+ const useOutlet = hasModalOutlet();
7622
+ const node = /* @__PURE__ */ jsxRuntime.jsx(ModalErrorBoundary, { standalone: !useOutlet, onError: () => refImpl._fail(), children: render(refImpl) });
7623
+ if (useOutlet) {
7624
+ refImpl._setEntry(addModalEntry(host, node, () => refImpl._fail()));
7625
+ return refImpl;
7626
+ }
7627
+ warnMissingOutlet();
7137
7628
  const root = client.createRoot(host);
7138
- refImpl._setTeardown(root, host);
7139
- root.render(render(refImpl));
7629
+ refImpl._setRoot(root);
7630
+ root.render(node);
7140
7631
  return refImpl;
7141
7632
  }
7142
7633
  var SModal = {
@@ -7160,8 +7651,32 @@ var SModal = {
7160
7651
  return mount((refImpl) => /* @__PURE__ */ jsxRuntime.jsx(CreateMount, { options, refImpl }));
7161
7652
  }
7162
7653
  };
7654
+ function SModalEntryPortal({ entry }) {
7655
+ react.useEffect(() => {
7656
+ if (!entry.host.isConnected) document.body.appendChild(entry.host);
7657
+ return () => entry.host.remove();
7658
+ }, [entry]);
7659
+ return reactDom.createPortal(entry.node, entry.host);
7660
+ }
7661
+ function SModalOutlet() {
7662
+ markModalOutletRendered();
7663
+ const entries3 = react.useSyncExternalStore(
7664
+ subscribeModalEntries,
7665
+ getModalEntries,
7666
+ getServerModalEntries
7667
+ );
7668
+ react.useEffect(() => {
7669
+ if (isDev() && isModalOutletMounted()) {
7670
+ console.warn(
7671
+ "[SModalOutlet] \uC774\uBBF8 \uB80C\uB354\uB41C SModalOutlet \uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC571 \uC804\uCCB4\uC5D0 \uD558\uB098\uB9CC \uB450\uC138\uC694 \u2014 \uB458 \uC774\uC0C1\uC774\uBA74 \uAC19\uC740 \uBAA8\uB2EC\uC774 \uC911\uBCF5\uC73C\uB85C \uADF8\uB824\uC9D1\uB2C8\uB2E4."
7672
+ );
7673
+ }
7674
+ return registerModalOutlet();
7675
+ }, []);
7676
+ return /* @__PURE__ */ jsxRuntime.jsx(PortalContainerProvider, { value: null, children: /* @__PURE__ */ jsxRuntime.jsx(InsideModalProvider, { value: false, children: entries3.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(SModalEntryPortal, { entry }, entry.id)) }) });
7677
+ }
7163
7678
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? react.useLayoutEffect : react.useEffect;
7164
- var isSameNav = (a, b) => a === b || !!a && !!b && a.columnWidth === b.columnWidth && a.topHeight === b.topHeight && a.foldMs === b.foldMs && a.requireFullHeader === b.requireFullHeader;
7679
+ var isSameNav = (a, b) => a === b || !!a && !!b && a.columnWidth === b.columnWidth && a.topHeight === b.topHeight && a.foldMs === b.foldMs && a.requireFullHeader === b.requireFullHeader && a.resizing === b.resizing;
7165
7680
  var SLayoutContext = /* @__PURE__ */ react.createContext(null);
7166
7681
  var SLAYOUT_MIN_WIDTH = 1366;
7167
7682
  var SLAYOUT_MIN_WIDTH_VAR = "--s-layout-min-width";
@@ -7221,7 +7736,8 @@ var SLayout = /* @__PURE__ */ react.forwardRef(function SLayout2({
7221
7736
  gridTemplateRows: `${nav?.topHeight ?? "0px"} 1fr`,
7222
7737
  // 메뉴가 미끄러지는 동안 페이지 열도 같은 길이로 따라와야 한 덩어리로 읽힌다.
7223
7738
  // (fix 는 SGnb 가 제 폭을 직접 전환하므로 프레임이 손댈 게 없다)
7224
- transition: `grid-template-columns ${nav?.foldMs ?? 0}ms ease-out`
7739
+ // 폭을 끄는 중에는 전환을 끈다 — 그러지 않으면 열이 손보다 늦게 따라온다.
7740
+ transition: nav?.resizing ? "none" : `grid-template-columns ${nav?.foldMs ?? 0}ms ease-out`
7225
7741
  } : void 0;
7226
7742
  return /* @__PURE__ */ jsxRuntime.jsx(SLayoutContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxRuntime.jsx(
7227
7743
  "div",
@@ -7364,6 +7880,10 @@ var GNB_RAIL_WIDTH = 68;
7364
7880
  var GNB_FOLD_MS = 200;
7365
7881
  var GNB_EXPAND_MS = 200;
7366
7882
  var GNB_MENU_WIDTH = 240;
7883
+ var GNB_MENU_MIN_WIDTH = 200;
7884
+ var GNB_MENU_MAX_WIDTH = 300;
7885
+ var GNB_MENU_RESIZE_KEY_STEP = { normal: 10, large: 50 };
7886
+ var clampGnbMenuWidth = (width) => Math.min(GNB_MENU_MAX_WIDTH, Math.max(GNB_MENU_MIN_WIDTH, Math.round(width)));
7367
7887
  var GNB_FULL_LOGO_WIDTH = 140;
7368
7888
  var GNB_TOP_ICON_GAP = 8;
7369
7889
  var GNB_TOP_ICON_SIZE = 24;
@@ -7400,6 +7920,7 @@ function findGnbAncestors(items, value) {
7400
7920
  };
7401
7921
  return walk(items, []) ?? [];
7402
7922
  }
7923
+ var LABEL_TIP_HIDE_DELAY_MS = 100;
7403
7924
  var DEPTH_PADDING_LEFT = (M, depth) => depth === 1 ? M.depth1PaddingLeft : depth === 2 ? M.depth2PaddingLeft : M.depth3PaddingLeft;
7404
7925
  var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7405
7926
  type: typeProp,
@@ -7418,6 +7939,10 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7418
7939
  railFooter,
7419
7940
  menuFooter,
7420
7941
  foldedFooter,
7942
+ resizable = false,
7943
+ menuWidth: menuWidthProp,
7944
+ defaultMenuWidth,
7945
+ onMenuWidthChange,
7421
7946
  ariaLabel = "global navigation",
7422
7947
  className,
7423
7948
  style,
@@ -7436,6 +7961,46 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7436
7961
  () => new Set(findGnbAncestors(items, value))
7437
7962
  );
7438
7963
  const [hoveredKey, setHoveredKey] = react.useState(null);
7964
+ const [labelTip, setLabelTip] = react.useState(null);
7965
+ const labelTipHideRef = react.useRef(null);
7966
+ const portalContainer = usePortalContainer();
7967
+ const labelTipAnchorRef = react.useMemo(
7968
+ () => ({
7969
+ current: {
7970
+ getBoundingClientRect: () => labelTip?.el.getBoundingClientRect() ?? new DOMRect()
7971
+ }
7972
+ }),
7973
+ [labelTip?.el]
7974
+ );
7975
+ const cancelLabelTipHide = () => {
7976
+ if (labelTipHideRef.current === null) return;
7977
+ clearTimeout(labelTipHideRef.current);
7978
+ labelTipHideRef.current = null;
7979
+ };
7980
+ const showLabelTipIfTruncated = (row, label) => {
7981
+ cancelLabelTipHide();
7982
+ const el = row.querySelector("[data-gnb-label]");
7983
+ if (!el || el.scrollWidth <= el.clientWidth) {
7984
+ setLabelTip(null);
7985
+ return;
7986
+ }
7987
+ setLabelTip((prev) => prev?.el === el && prev.label === label ? prev : { label, el });
7988
+ };
7989
+ const startLabelTipHide = () => {
7990
+ cancelLabelTipHide();
7991
+ labelTipHideRef.current = setTimeout(() => setLabelTip(null), LABEL_TIP_HIDE_DELAY_MS);
7992
+ };
7993
+ react.useEffect(() => cancelLabelTipHide, []);
7994
+ const rowHoverProps = (item) => ({
7995
+ onMouseEnter: (event) => {
7996
+ setHoveredKey(item.value);
7997
+ showLabelTipIfTruncated(event.currentTarget, item.label);
7998
+ },
7999
+ onMouseLeave: () => {
8000
+ setHoveredKey((prev) => prev === item.value ? null : prev);
8001
+ startLabelTipHide();
8002
+ }
8003
+ });
7439
8004
  const [activeRail, setActiveRail] = react.useState(
7440
8005
  () => findGnbRailValue(items, value) ?? items[0]?.value
7441
8006
  );
@@ -7515,11 +8080,17 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7515
8080
  cursor: item.disabled ? "not-allowed" : "pointer"
7516
8081
  },
7517
8082
  onClick: () => handleRailClick(item),
7518
- onMouseEnter: () => setHoveredKey(item.value),
7519
- onMouseLeave: () => setHoveredKey((prev) => prev === item.value ? null : prev),
8083
+ ...rowHoverProps(item),
7520
8084
  children: [
7521
8085
  item.icon && /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: item.icon, size: GNB_RAIL.itemIcon, className: "shrink-0" }),
7522
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-full overflow-hidden text-ellipsis whitespace-nowrap text-center", children: item.label })
8086
+ /* @__PURE__ */ jsxRuntime.jsx(
8087
+ "span",
8088
+ {
8089
+ "data-gnb-label": true,
8090
+ className: "w-full overflow-hidden text-ellipsis whitespace-nowrap text-center",
8091
+ children: item.label
8092
+ }
8093
+ )
7523
8094
  ]
7524
8095
  }
7525
8096
  ) }, item.value);
@@ -7563,8 +8134,7 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7563
8134
  className: "box-border flex select-none items-center border-none bg-transparent text-left transition-colors duration-150",
7564
8135
  style: itemStyle,
7565
8136
  onClick: () => handleItemClick(item),
7566
- onMouseEnter: () => setHoveredKey(item.value),
7567
- onMouseLeave: () => setHoveredKey((prev) => prev === item.value ? null : prev),
8137
+ ...rowHoverProps(item),
7568
8138
  children: [
7569
8139
  depth === 1 && item.icon && /* @__PURE__ */ jsxRuntime.jsx(
7570
8140
  SIcon,
@@ -7575,16 +8145,23 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7575
8145
  className: "shrink-0"
7576
8146
  }
7577
8147
  ),
7578
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap flex items-center", children: [
8148
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-1 items-center", children: [
7579
8149
  depth > 1 && iconBranch ? /* @__PURE__ */ jsxRuntime.jsx(
7580
8150
  "div",
7581
8151
  {
7582
- className: "w-[20px] flex items-center justify-center mr-[8px]",
8152
+ className: "mr-[8px] flex w-[20px] shrink-0 items-center justify-center",
7583
8153
  style: { height: M.itemLineHeight },
7584
8154
  children: "-"
7585
8155
  }
7586
8156
  ) : null,
7587
- item.label
8157
+ /* @__PURE__ */ jsxRuntime.jsx(
8158
+ "span",
8159
+ {
8160
+ "data-gnb-label": true,
8161
+ className: "min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",
8162
+ children: item.label
8163
+ }
8164
+ )
7588
8165
  ] }),
7589
8166
  item.tag !== void 0 && item.tag !== "" && /* @__PURE__ */ jsxRuntime.jsx(
7590
8167
  STag,
@@ -7636,7 +8213,14 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7636
8213
  const railItems = useRail ? items : [];
7637
8214
  const menuItems = useRail ? items.find((item) => item.value === activeRail)?.children ?? [] : items;
7638
8215
  const showMenu = !useRail || menuItems.length > 0;
7639
- const bodyWidth = (useRail ? GNB_RAIL_WIDTH : 0) + (showMenu ? GNB_MENU_WIDTH : 0);
8216
+ const [uncontrolledMenuWidth, setUncontrolledMenuWidth] = react.useState(
8217
+ () => defaultMenuWidth ?? GNB_MENU_WIDTH
8218
+ );
8219
+ const [dragMenuWidth, setDragMenuWidth] = react.useState(null);
8220
+ const committedMenuWidth = menuWidthProp ?? uncontrolledMenuWidth;
8221
+ const menuWidth = clampGnbMenuWidth(dragMenuWidth ?? committedMenuWidth);
8222
+ const [resizing, setResizing] = react.useState(false);
8223
+ const bodyWidth = (useRail ? GNB_RAIL_WIDTH : 0) + (showMenu ? menuWidth : 0);
7640
8224
  const registerNav = layout?.registerNav;
7641
8225
  useIsomorphicLayoutEffect(() => {
7642
8226
  if (!registerNav) return;
@@ -7644,21 +8228,109 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7644
8228
  columnWidth: bodyWidth,
7645
8229
  topHeight: H.topHeight,
7646
8230
  foldMs: GNB_FOLD_MS,
7647
- requireFullHeader: railHasLeaf
8231
+ requireFullHeader: railHasLeaf,
8232
+ resizing
7648
8233
  });
7649
8234
  return () => registerNav(null);
7650
- }, [registerNav, bodyWidth, H.topHeight, railHasLeaf]);
8235
+ }, [registerNav, bodyWidth, H.topHeight, railHasLeaf, resizing]);
8236
+ const canResize = resizable && showMenu && !folded;
8237
+ const menuWidthRef = react.useRef(menuWidth);
8238
+ menuWidthRef.current = menuWidth;
8239
+ const commitMenuWidth = (next) => {
8240
+ const clamped = clampGnbMenuWidth(next);
8241
+ setDragMenuWidth(null);
8242
+ if (menuWidthProp === void 0) setUncontrolledMenuWidth(clamped);
8243
+ if (clamped !== committedMenuWidth) onMenuWidthChange?.(clamped);
8244
+ };
8245
+ const endResizeRef = react.useRef(null);
8246
+ react.useEffect(() => () => endResizeRef.current?.(), []);
8247
+ const startMenuResize = (event) => {
8248
+ if (!canResize || typeof document === "undefined") return;
8249
+ event.preventDefault();
8250
+ event.currentTarget.focus();
8251
+ const startX = event.clientX;
8252
+ const startWidth = menuWidthRef.current;
8253
+ let latest = startWidth;
8254
+ const { body } = document;
8255
+ const prevUserSelect = body.style.userSelect;
8256
+ const prevCursor = body.style.cursor;
8257
+ body.style.userSelect = "none";
8258
+ body.style.cursor = "col-resize";
8259
+ const onMove = (moveEvent) => {
8260
+ latest = clampGnbMenuWidth(startWidth + (moveEvent.clientX - startX));
8261
+ setDragMenuWidth(latest);
8262
+ };
8263
+ const endResize = () => {
8264
+ document.removeEventListener("mousemove", onMove);
8265
+ document.removeEventListener("mouseup", endResize);
8266
+ body.style.userSelect = prevUserSelect;
8267
+ body.style.cursor = prevCursor;
8268
+ endResizeRef.current = null;
8269
+ setResizing(false);
8270
+ commitMenuWidth(latest);
8271
+ };
8272
+ document.addEventListener("mousemove", onMove);
8273
+ document.addEventListener("mouseup", endResize);
8274
+ endResizeRef.current = endResize;
8275
+ setResizing(true);
8276
+ };
8277
+ const handleMenuResizeKeyDown = (event) => {
8278
+ if (!canResize) return;
8279
+ const step = GNB_MENU_RESIZE_KEY_STEP[event.shiftKey ? "large" : "normal"];
8280
+ let next = null;
8281
+ if (event.key === "ArrowLeft") next = menuWidthRef.current - step;
8282
+ else if (event.key === "ArrowRight") next = menuWidthRef.current + step;
8283
+ else if (event.key === "Home") next = GNB_MENU_MIN_WIDTH;
8284
+ else if (event.key === "End") next = GNB_MENU_MAX_WIDTH;
8285
+ if (next === null) return;
8286
+ event.preventDefault();
8287
+ commitMenuWidth(next);
8288
+ };
7651
8289
  const railFolded = folded && header === "fix";
7652
8290
  const isFull = header === "full";
7653
8291
  const isFullFrame = isFull && !!layout;
7654
8292
  const rightBorder = color === "light" ? `1px solid ${C.topBorder}` : void 0;
8293
+ const resizeHitWidth = "calc(var(--cmp-splitter-border-width) + var(--cmp-splitter-border-padding) * 2)";
8294
+ const menuResizeHandle = canResize ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
8295
+ "div",
8296
+ {
8297
+ role: "separator",
8298
+ "aria-orientation": "vertical",
8299
+ "aria-label": `${ariaLabel} width`,
8300
+ "aria-valuenow": menuWidth,
8301
+ "aria-valuemin": GNB_MENU_MIN_WIDTH,
8302
+ "aria-valuemax": GNB_MENU_MAX_WIDTH,
8303
+ "aria-valuetext": `${menuWidth}px`,
8304
+ tabIndex: 0,
8305
+ onMouseDown: startMenuResize,
8306
+ onKeyDown: handleMenuResizeKeyDown,
8307
+ className: "group absolute inset-y-0 z-[1] flex cursor-col-resize justify-end outline-none",
8308
+ style: {
8309
+ width: resizeHitWidth,
8310
+ ...isFull && !isFullFrame ? { left: `calc(${bodyWidth}px - ${resizeHitWidth})` } : { right: 0 }
8311
+ },
8312
+ children: /* @__PURE__ */ jsxRuntime.jsx(
8313
+ "span",
8314
+ {
8315
+ "aria-hidden": true,
8316
+ className: cn(
8317
+ // 평상시엔 자리만 잡고 칠하지 않는다 — 색이 붙는 것 자체가 조절 가능하다는 신호다.
8318
+ "w-(--cmp-splitter-border-width) transition-colors",
8319
+ "group-hover:bg-(--cmp-splitter-border-color) group-focus-visible:bg-(--cmp-splitter-border-color)",
8320
+ resizing && "bg-(--cmp-splitter-border-color)"
8321
+ )
8322
+ }
8323
+ )
8324
+ }
8325
+ ) }) : null;
7655
8326
  const rootStyle = isFullFrame ? { display: "contents", ...style } : isFull ? (
7656
8327
  // 단독 full — 상단바가 전폭이어야 하므로 루트도 전폭이고, 배경·선은 상단바·메뉴가 각자 그린다.
7657
8328
  { width: "100%", ...style }
7658
8329
  ) : {
7659
8330
  // fix 를 닫으면 48px 레일로 좁혀진다.
7660
8331
  width: folded ? GNB_COMMON.foldWidth : bodyWidth,
7661
- transition: `width ${GNB_FOLD_MS}ms ease-out`,
8332
+ // 폭을 끄는 중에는 전환을 끈다 — 접힘용 전환이 걸려 있으면 컬럼이 손보다 늦게 따라온다.
8333
+ transition: resizing ? "none" : `width ${GNB_FOLD_MS}ms ease-out`,
7662
8334
  backgroundColor: C.panelBg,
7663
8335
  borderRight: rightBorder,
7664
8336
  ...style
@@ -7735,7 +8407,8 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7735
8407
  ref,
7736
8408
  className: cn(
7737
8409
  "box-border",
7738
- !isFullFrame && "flex h-full shrink-0 flex-col overflow-hidden",
8410
+ // relative: fix 조절선이 루트(=GNB 컬럼) 오른쪽 끝을 기준으로 서야 상단바까지 이어진다.
8411
+ !isFullFrame && "relative flex h-full shrink-0 flex-col overflow-hidden",
7739
8412
  className
7740
8413
  ),
7741
8414
  style: rootStyle,
@@ -7773,86 +8446,106 @@ var SGnb = /* @__PURE__ */ react.forwardRef(function SGnb2({
7773
8446
  ] })
7774
8447
  }
7775
8448
  ),
7776
- /* @__PURE__ */ jsxRuntime.jsx(
8449
+ /* @__PURE__ */ jsxRuntime.jsxs(
7777
8450
  "div",
7778
8451
  {
7779
- className: cn("overflow-hidden", !isFullFrame && "min-h-0 flex-1"),
8452
+ className: cn("relative overflow-hidden", !isFullFrame && "min-h-0 flex-1"),
7780
8453
  style: isFullFrame ? { gridArea: "nav" } : void 0,
7781
- children: /* @__PURE__ */ jsxRuntime.jsxs(
7782
- "div",
7783
- {
7784
- className: "flex h-full flex-row",
7785
- style: {
7786
- width: bodyWidth,
7787
- transform: folded ? "translateX(-100%)" : "none",
7788
- visibility: folded ? "hidden" : "visible",
7789
- transition: `transform ${GNB_FOLD_MS}ms ease-out, ${hideAfterSlide(folded)}`
7790
- },
7791
- children: [
7792
- useRail && // 레일 컬럼 — 스크롤되는 아이템 목록(nav)과 하단 고정 footer 를 한 컬럼에 담는다.
7793
- // footer 내비게이션이 아니므로 nav(landmark) 밖에 두고, 컬럼 폭·구분선·배경은 래퍼가
7794
- // 전체 높이에 걸쳐 책임진다(그래야 footer 자리까지 배경·오른쪽 선이 이어진다).
7795
- /* @__PURE__ */ jsxRuntime.jsxs(
7796
- "div",
7797
- {
7798
- className: "flex shrink-0 flex-col overflow-hidden",
7799
- style: {
7800
- width: GNB_RAIL_WIDTH,
7801
- borderRight: `1px solid ${C.topBorder}`,
7802
- backgroundColor: C.panelBg
7803
- },
7804
- children: [
7805
- /* @__PURE__ */ jsxRuntime.jsx(
7806
- "nav",
7807
- {
7808
- "aria-label": `${ariaLabel} rail`,
7809
- className: cn(
7810
- "flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
7811
- SCROLLBAR_HIDDEN_CLASS
7812
- ),
7813
- style: { padding: GNB_RAIL.padding },
7814
- children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-col p-0", style: { gap: GNB_RAIL.gap }, children: railItems.map(renderRailItem) })
7815
- }
7816
- ),
7817
- railFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: railFooter })
7818
- ]
7819
- }
7820
- ),
7821
- showMenu && /* @__PURE__ */ jsxRuntime.jsxs(
7822
- "div",
7823
- {
7824
- className: "flex shrink-0 flex-col overflow-hidden",
7825
- style: {
7826
- width: GNB_MENU_WIDTH,
7827
- backgroundColor: C.panelBg,
7828
- // full 은 루트가 오른쪽 선을 못 그리므로(전폭이거나 아예 없다) 메뉴 오른쪽(페이지 경계)이 대신 그린다.
7829
- borderRight: isFull ? rightBorder : void 0
7830
- },
7831
- children: [
7832
- /* @__PURE__ */ jsxRuntime.jsx(
7833
- "nav",
7834
- {
7835
- "aria-label": ariaLabel,
7836
- className: cn(
7837
- "flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
7838
- SCROLLBAR_HIDDEN_CLASS
7839
- ),
7840
- style: {
7841
- paddingTop: M.bodyPaddingY,
7842
- paddingBottom: M.bodyPaddingY
7843
- },
7844
- children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-col p-0", children: menuItems.map((item) => renderItem(item, 1)) })
7845
- }
7846
- ),
7847
- menuFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: menuFooter })
7848
- ]
7849
- }
7850
- )
7851
- ]
7852
- }
7853
- )
8454
+ children: [
8455
+ /* @__PURE__ */ jsxRuntime.jsxs(
8456
+ "div",
8457
+ {
8458
+ className: "flex h-full flex-row",
8459
+ style: {
8460
+ width: bodyWidth,
8461
+ transform: folded ? "translateX(-100%)" : "none",
8462
+ visibility: folded ? "hidden" : "visible",
8463
+ transition: `transform ${GNB_FOLD_MS}ms ease-out, ${hideAfterSlide(folded)}`
8464
+ },
8465
+ children: [
8466
+ useRail && // 레일 컬럼 스크롤되는 아이템 목록(nav) 하단 고정 footer 컬럼에 담는다.
8467
+ // footer 내비게이션이 아니므로 nav(landmark) 밖에 두고, 컬럼 폭·구분선·배경은 이 래퍼가
8468
+ // 전체 높이에 걸쳐 책임진다(그래야 footer 자리까지 배경·오른쪽 선이 이어진다).
8469
+ /* @__PURE__ */ jsxRuntime.jsxs(
8470
+ "div",
8471
+ {
8472
+ className: "flex shrink-0 flex-col overflow-hidden",
8473
+ style: {
8474
+ width: GNB_RAIL_WIDTH,
8475
+ borderRight: `1px solid ${C.topBorder}`,
8476
+ backgroundColor: C.panelBg
8477
+ },
8478
+ children: [
8479
+ /* @__PURE__ */ jsxRuntime.jsx(
8480
+ "nav",
8481
+ {
8482
+ "aria-label": `${ariaLabel} rail`,
8483
+ className: cn(
8484
+ "flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
8485
+ SCROLLBAR_HIDDEN_CLASS
8486
+ ),
8487
+ style: { padding: GNB_RAIL.padding },
8488
+ children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-col p-0", style: { gap: GNB_RAIL.gap }, children: railItems.map(renderRailItem) })
8489
+ }
8490
+ ),
8491
+ railFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: railFooter })
8492
+ ]
8493
+ }
8494
+ ),
8495
+ showMenu && /* @__PURE__ */ jsxRuntime.jsxs(
8496
+ "div",
8497
+ {
8498
+ className: "flex shrink-0 flex-col overflow-hidden",
8499
+ style: {
8500
+ width: menuWidth,
8501
+ backgroundColor: C.panelBg,
8502
+ // full 루트가 오른쪽 선을 못 그리므로(전폭이거나 아예 없다) 메뉴 오른쪽(페이지 경계)이 대신 그린다.
8503
+ borderRight: isFull ? rightBorder : void 0
8504
+ },
8505
+ children: [
8506
+ /* @__PURE__ */ jsxRuntime.jsx(
8507
+ "nav",
8508
+ {
8509
+ "aria-label": ariaLabel,
8510
+ className: cn(
8511
+ "flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
8512
+ SCROLLBAR_HIDDEN_CLASS
8513
+ ),
8514
+ style: {
8515
+ paddingTop: M.bodyPaddingY,
8516
+ paddingBottom: M.bodyPaddingY
8517
+ },
8518
+ children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "m-0 flex list-none flex-col p-0", children: menuItems.map((item) => renderItem(item, 1)) })
8519
+ }
8520
+ ),
8521
+ menuFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: menuFooter })
8522
+ ]
8523
+ }
8524
+ )
8525
+ ]
8526
+ }
8527
+ ),
8528
+ header === "full" && menuResizeHandle
8529
+ ]
7854
8530
  }
7855
8531
  ),
8532
+ header === "fix" && menuResizeHandle,
8533
+ /* @__PURE__ */ jsxRuntime.jsxs(RPopover2__namespace.Root, { open: labelTip !== null, onOpenChange: (open) => !open && setLabelTip(null), children: [
8534
+ /* @__PURE__ */ jsxRuntime.jsx(RPopover2__namespace.Anchor, { virtualRef: labelTipAnchorRef }),
8535
+ /* @__PURE__ */ jsxRuntime.jsx(RPopover2__namespace.Portal, { container: portalContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
8536
+ RPopover2__namespace.Content,
8537
+ {
8538
+ side: "right",
8539
+ sideOffset: 4,
8540
+ className: cn("z-50", FLOATING_SLIDE_ANIM),
8541
+ "aria-hidden": true,
8542
+ onOpenAutoFocus: (event) => event.preventDefault(),
8543
+ onMouseEnter: cancelLabelTipHide,
8544
+ onMouseLeave: startLabelTipHide,
8545
+ children: /* @__PURE__ */ jsxRuntime.jsx(STag, { shape: "square", size: "xs", color: "grey", label: labelTip?.label ?? "" })
8546
+ }
8547
+ ) })
8548
+ ] }),
7856
8549
  railFolded && foldedFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center justify-center mb-[24px]", children: foldedFooter })
7857
8550
  ]
7858
8551
  }
@@ -8121,6 +8814,7 @@ function SPagination({
8121
8814
  // src/components/SStepper/stepper.config.ts
8122
8815
  var STEPPER_SIZES = ["sm", "lg"];
8123
8816
  var V2 = (path) => `var(--cmp-stepper-${path})`;
8817
+ var VF = (path, fallback) => `var(--cmp-stepper-${path}, ${fallback})`;
8124
8818
  var STEPPER_SIZE_CONFIG = {
8125
8819
  sm: {
8126
8820
  sequenceSize: V2("sm-sequence-size"),
@@ -8150,16 +8844,17 @@ var STEPPER_COLORS = {
8150
8844
  sequenceBorder: {
8151
8845
  active: V2("sequence-border-active"),
8152
8846
  default: V2("sequence-border-default"),
8153
- completed: V2("sequence-border-completed")
8847
+ completed: VF("sequence-border-completed", "#93C4FF")
8154
8848
  },
8155
8849
  sequenceBg: {
8156
8850
  active: V2("sequence-bg-active"),
8157
8851
  default: V2("sequence-bg-default"),
8158
- completed: V2("sequence-bg-completed")
8852
+ completed: VF("sequence-bg-completed", "#EFF6FF")
8159
8853
  },
8160
8854
  sequenceText: {
8161
8855
  active: V2("sequence-text-active"),
8162
- default: V2("sequence-text-default")
8856
+ default: V2("sequence-text-default"),
8857
+ completed: VF("sequence-text-completed", "#0075FF")
8163
8858
  },
8164
8859
  text: {
8165
8860
  active: V2("text-active"),
@@ -8167,27 +8862,428 @@ var STEPPER_COLORS = {
8167
8862
  completed: V2("text-completed")
8168
8863
  }
8169
8864
  };
8865
+ var STEPPER_HORIZONTAL_COMPLETED_COLORS = {
8866
+ sequenceBorder: STEPPER_COLORS.sequenceBorder.completed,
8867
+ sequenceBg: STEPPER_COLORS.sequenceBg.completed,
8868
+ sequenceIcon: STEPPER_COLORS.sequenceText.completed,
8869
+ text: STEPPER_COLORS.text.completed
8870
+ };
8871
+ var STEPPER_VERTICAL_LAYOUT = {
8872
+ width: VF("vertical-width", "240px"),
8873
+ itemGap: VF("vertical-item-gap", "12px"),
8874
+ itemPaddingX: VF("vertical-item-paddingX", "16px"),
8875
+ itemPaddingY: VF("vertical-item-paddingY", "8px"),
8876
+ titlePaddingTop: VF("vertical-title-paddingTop", "12px"),
8877
+ titlePaddingBottom: VF("vertical-title-paddingBottom", "4px"),
8878
+ titleFontSize: VF("vertical-title-font-size", "11px"),
8879
+ titleLineHeight: VF("vertical-title-line-height", "18px"),
8880
+ accentStripeWidth: VF("vertical-item-accentStripe-width", "2px"),
8881
+ accentStripeColor: VF("vertical-item-accentStripe-color", "#64ABFF")
8882
+ };
8883
+ var STEPPER_VERTICAL_COLORS = {
8884
+ itemBg: {
8885
+ default: VF("vertical-item-bg-default", "#FFFFFF"),
8886
+ hover: VF("vertical-item-bg-hover", "#F6F6F6"),
8887
+ selected: VF("vertical-item-bg-selected", "#EFF6FF")
8888
+ },
8889
+ titleText: VF("vertical-title-text", "#004290"),
8890
+ textDefault: STEPPER_COLORS.text.default,
8891
+ textCompleted: STEPPER_COLORS.text.completed,
8892
+ sequenceBorderActive: STEPPER_COLORS.sequenceBorder.active,
8893
+ sequenceBgActive: STEPPER_COLORS.sequenceBg.active,
8894
+ sequenceTextActive: STEPPER_COLORS.sequenceText.active,
8895
+ sequenceTextDefault: STEPPER_COLORS.sequenceText.default,
8896
+ sequenceBorderCompleted: VF("vertical-sequence-border-completed", "#93C4FF"),
8897
+ sequenceBgCompleted: VF("vertical-sequence-bg-completed", "#EFF6FF"),
8898
+ sequenceIconCompleted: VF("vertical-sequence-icon-completed", "#0075FF"),
8899
+ errorBadge: "#FB4444"
8900
+ };
8901
+ var ERROR_TOOLTIP_MESSAGE = "\uD655\uC778\uC774 \uD544\uC694\uD55C \uD56D\uBAA9\uC774 \uC788\uC2B5\uB2C8\uB2E4.";
8170
8902
  function getItemValue(item, index) {
8171
8903
  return item.value ?? String(index + 1);
8172
8904
  }
8173
- function SStepper({
8905
+ function groupAdjacentItems(items) {
8906
+ return items.reduce(
8907
+ (groups, item, index) => {
8908
+ const currentGroup = item.group;
8909
+ const previous = groups[groups.length - 1];
8910
+ if (currentGroup && previous?.group === currentGroup) {
8911
+ previous.items.push(item);
8912
+ return groups;
8913
+ }
8914
+ groups.push({ group: currentGroup, startIndex: index, items: [item] });
8915
+ return groups;
8916
+ },
8917
+ []
8918
+ );
8919
+ }
8920
+ var SStepper = /* @__PURE__ */ react.forwardRef(function SStepper2({
8174
8921
  items,
8175
8922
  value,
8176
8923
  size = "sm",
8924
+ vertical = false,
8925
+ clickable,
8926
+ onValueChange,
8177
8927
  ariaLabel = "\uC9C4\uD589 \uB2E8\uACC4",
8178
8928
  className,
8179
8929
  style
8180
- }) {
8930
+ }, ref) {
8181
8931
  const config = STEPPER_SIZE_CONFIG[size];
8932
+ const isClickable = clickable ?? vertical;
8933
+ const [hoveredIndex, setHoveredIndex] = react.useState(null);
8934
+ const [tooltipHoverValue, setTooltipHoverValue] = react.useState(null);
8935
+ const [customTooltipOpen, setCustomTooltipOpen] = react.useState(false);
8936
+ const [verticalAccentStripeStyle, setVerticalAccentStripeStyle] = react.useState({
8937
+ height: 0,
8938
+ opacity: 0,
8939
+ transform: "translateY(0px)"
8940
+ });
8941
+ const verticalItemRefs = react.useRef([]);
8182
8942
  const activeIndex = Math.max(
8183
8943
  0,
8184
8944
  items.findIndex((item, index) => getItemValue(item, index) === value)
8185
8945
  );
8186
- const getState = (index) => {
8187
- if (index < activeIndex) return "completed";
8946
+ const lastCompletedIndex = items.reduce(
8947
+ (lastIndex, item, index) => item.completed === true ? index : lastIndex,
8948
+ -1
8949
+ );
8950
+ const resolvedClickableIndex = lastCompletedIndex + 1;
8951
+ const [visitedMaxIndex, setVisitedMaxIndex] = react.useState(activeIndex);
8952
+ const firstErrorIndex = items.findIndex((item) => item.error === true);
8953
+ react.useImperativeHandle(
8954
+ ref,
8955
+ () => ({
8956
+ showItemTooltip: () => setCustomTooltipOpen(true),
8957
+ hideItemTooltip: () => setCustomTooltipOpen(false)
8958
+ }),
8959
+ []
8960
+ );
8961
+ react.useLayoutEffect(() => {
8962
+ setVisitedMaxIndex((current) => Math.max(current, activeIndex));
8963
+ }, [activeIndex]);
8964
+ react.useLayoutEffect(() => {
8965
+ setCustomTooltipOpen(false);
8966
+ }, [activeIndex]);
8967
+ react.useLayoutEffect(() => {
8968
+ if (!vertical) return;
8969
+ const activeItem = verticalItemRefs.current[activeIndex];
8970
+ if (!activeItem) {
8971
+ setVerticalAccentStripeStyle((current) => ({ ...current, opacity: 0 }));
8972
+ return;
8973
+ }
8974
+ setVerticalAccentStripeStyle({
8975
+ height: activeItem.offsetHeight,
8976
+ opacity: 1,
8977
+ transform: `translateY(${activeItem.offsetTop}px)`
8978
+ });
8979
+ }, [activeIndex, vertical, items]);
8980
+ const getState = (item, index) => {
8188
8981
  if (index === activeIndex) return "active";
8982
+ if (item.completed != null) return item.completed ? "completed" : "default";
8189
8983
  return "default";
8190
8984
  };
8985
+ const emitValueChange = (item, index) => {
8986
+ onValueChange?.(getItemValue(item, index), item, index);
8987
+ };
8988
+ const isWithinClickableIndex = (index) => index <= resolvedClickableIndex;
8989
+ const renderStepContent = (item, index, options = {}) => {
8990
+ const { isVertical = false, roleListItem = true, hovered = false } = options;
8991
+ const state2 = getState(item, index);
8992
+ const isHorizontalCompleted = !isVertical && state2 === "completed";
8993
+ const isVerticalCompleted = isVertical && state2 === "completed";
8994
+ const isVerticalLastActive = isVertical && state2 === "default" && index === visitedMaxIndex;
8995
+ const showsCheckIcon = state2 === "completed";
8996
+ const itemColor = (() => {
8997
+ if (isHorizontalCompleted) return STEPPER_HORIZONTAL_COMPLETED_COLORS.text;
8998
+ if (!isVertical) return STEPPER_COLORS.text[state2];
8999
+ if (state2 === "active") return STEPPER_COLORS.text.active;
9000
+ if (isVerticalCompleted) return STEPPER_VERTICAL_COLORS.textCompleted;
9001
+ return STEPPER_VERTICAL_COLORS.textDefault;
9002
+ })();
9003
+ const sequenceBorderColor = (() => {
9004
+ if (isVerticalCompleted) {
9005
+ return STEPPER_VERTICAL_COLORS.sequenceBorderCompleted;
9006
+ }
9007
+ if (isVertical && (state2 === "active" || isVerticalLastActive)) {
9008
+ return STEPPER_VERTICAL_COLORS.sequenceBorderActive;
9009
+ }
9010
+ if (isHorizontalCompleted) return STEPPER_HORIZONTAL_COMPLETED_COLORS.sequenceBorder;
9011
+ return STEPPER_COLORS.sequenceBorder[state2];
9012
+ })();
9013
+ const sequenceBg = (() => {
9014
+ if (isVerticalCompleted) {
9015
+ return STEPPER_VERTICAL_COLORS.sequenceBgCompleted;
9016
+ }
9017
+ if (isVertical && (state2 === "active" || isVerticalLastActive)) {
9018
+ return STEPPER_VERTICAL_COLORS.sequenceBgActive;
9019
+ }
9020
+ if (isHorizontalCompleted) return STEPPER_HORIZONTAL_COMPLETED_COLORS.sequenceBg;
9021
+ return STEPPER_COLORS.sequenceBg[state2];
9022
+ })();
9023
+ const sequenceColor = (() => {
9024
+ if (isVerticalCompleted) {
9025
+ return STEPPER_VERTICAL_COLORS.sequenceIconCompleted;
9026
+ }
9027
+ if (isVertical && (state2 === "active" || isVerticalLastActive)) {
9028
+ return STEPPER_VERTICAL_COLORS.sequenceTextActive;
9029
+ }
9030
+ if (isVertical) return STEPPER_VERTICAL_COLORS.sequenceTextDefault;
9031
+ if (isHorizontalCompleted) return STEPPER_HORIZONTAL_COMPLETED_COLORS.sequenceIcon;
9032
+ return STEPPER_COLORS.sequenceText[state2];
9033
+ })();
9034
+ const itemStyle = {
9035
+ gap: STEPPER_LAYOUT.itemGap,
9036
+ color: itemColor,
9037
+ fontWeight: state2 === "active" || isVertical && hovered ? config.fontWeightActive : config.fontWeightDefault
9038
+ };
9039
+ const sequenceStyle = {
9040
+ width: config.sequenceSize,
9041
+ height: config.sequenceSize,
9042
+ flexBasis: config.sequenceSize,
9043
+ borderRadius: STEPPER_LAYOUT.sequenceRadius,
9044
+ borderWidth: STEPPER_LAYOUT.sequenceBorderWidth,
9045
+ borderColor: sequenceBorderColor,
9046
+ background: sequenceBg,
9047
+ color: sequenceColor
9048
+ };
9049
+ return /* @__PURE__ */ jsxRuntime.jsxs(
9050
+ "span",
9051
+ {
9052
+ role: roleListItem ? "listitem" : void 0,
9053
+ "aria-current": roleListItem && state2 === "active" ? "step" : void 0,
9054
+ className: "inline-flex items-center whitespace-nowrap",
9055
+ style: itemStyle,
9056
+ children: [
9057
+ /* @__PURE__ */ jsxRuntime.jsx(
9058
+ "span",
9059
+ {
9060
+ "aria-hidden": true,
9061
+ className: "box-border inline-flex shrink-0 items-center justify-center border border-solid font-bold",
9062
+ style: sequenceStyle,
9063
+ children: showsCheckIcon ? /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "check", size: STEPPER_LAYOUT.sequenceIcon, color: "currentColor" }) : index + 1
9064
+ }
9065
+ ),
9066
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
9067
+ ]
9068
+ }
9069
+ );
9070
+ };
9071
+ const renderClickableStepContent = (item, index, isVertical = false) => {
9072
+ const isDisabled = !isWithinClickableIndex(index);
9073
+ return /* @__PURE__ */ jsxRuntime.jsx(
9074
+ "button",
9075
+ {
9076
+ type: "button",
9077
+ disabled: isDisabled,
9078
+ className: cn(
9079
+ "m-0 inline-flex w-full items-center border-0 bg-transparent p-0 text-left",
9080
+ isDisabled ? "cursor-default" : "cursor-pointer"
9081
+ ),
9082
+ style: { font: "inherit", color: "inherit" },
9083
+ onClick: () => {
9084
+ if (!isDisabled) emitValueChange(item, index);
9085
+ },
9086
+ children: renderStepContent(item, index, { isVertical, roleListItem: false })
9087
+ }
9088
+ );
9089
+ };
9090
+ if (vertical) {
9091
+ const groups = groupAdjacentItems(items);
9092
+ return /* @__PURE__ */ jsxRuntime.jsxs(
9093
+ "div",
9094
+ {
9095
+ role: "list",
9096
+ "aria-label": ariaLabel,
9097
+ className: cn("relative inline-flex flex-col items-start", className),
9098
+ style: {
9099
+ width: STEPPER_VERTICAL_LAYOUT.width,
9100
+ fontSize: config.fontSize,
9101
+ lineHeight: config.lineHeight,
9102
+ ...style
9103
+ },
9104
+ children: [
9105
+ /* @__PURE__ */ jsxRuntime.jsx(
9106
+ "span",
9107
+ {
9108
+ "aria-hidden": "true",
9109
+ "data-stepper-accent-stripe": "true",
9110
+ className: "pointer-events-none absolute left-0 top-0 z-[1]",
9111
+ style: {
9112
+ width: STEPPER_VERTICAL_LAYOUT.accentStripeWidth,
9113
+ background: STEPPER_VERTICAL_LAYOUT.accentStripeColor,
9114
+ transition: "transform 160ms ease, height 160ms ease, opacity 120ms ease",
9115
+ ...verticalAccentStripeStyle
9116
+ }
9117
+ }
9118
+ ),
9119
+ groups.map((group) => {
9120
+ const groupKey = group.group ?? getItemValue(group.items[0], group.startIndex);
9121
+ return /* @__PURE__ */ jsxRuntime.jsxs(
9122
+ "div",
9123
+ {
9124
+ className: "flex w-full flex-col items-start",
9125
+ children: [
9126
+ group.group && /* @__PURE__ */ jsxRuntime.jsx(
9127
+ "div",
9128
+ {
9129
+ className: "flex w-full items-center overflow-hidden",
9130
+ style: {
9131
+ gap: STEPPER_VERTICAL_LAYOUT.itemGap,
9132
+ paddingLeft: STEPPER_VERTICAL_LAYOUT.itemPaddingX,
9133
+ paddingRight: STEPPER_VERTICAL_LAYOUT.itemPaddingX,
9134
+ paddingTop: STEPPER_VERTICAL_LAYOUT.titlePaddingTop,
9135
+ paddingBottom: STEPPER_VERTICAL_LAYOUT.titlePaddingBottom,
9136
+ background: STEPPER_VERTICAL_COLORS.itemBg.default,
9137
+ color: STEPPER_VERTICAL_COLORS.titleText,
9138
+ fontSize: STEPPER_VERTICAL_LAYOUT.titleFontSize,
9139
+ lineHeight: STEPPER_VERTICAL_LAYOUT.titleLineHeight,
9140
+ fontWeight: 700
9141
+ },
9142
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "whitespace-nowrap", children: group.group })
9143
+ }
9144
+ ),
9145
+ group.items.map((item, itemIndex) => {
9146
+ const index = group.startIndex + itemIndex;
9147
+ const state2 = getState(item, index);
9148
+ const itemValue = getItemValue(item, index);
9149
+ const canClickItem = isClickable && isWithinClickableIndex(index);
9150
+ const isDisabled = !canClickItem;
9151
+ const isHovered = hoveredIndex === index && canClickItem && state2 !== "active";
9152
+ const itemContainerStyle = {
9153
+ gap: STEPPER_VERTICAL_LAYOUT.itemGap,
9154
+ paddingLeft: STEPPER_VERTICAL_LAYOUT.itemPaddingX,
9155
+ paddingRight: STEPPER_VERTICAL_LAYOUT.itemPaddingX,
9156
+ paddingTop: STEPPER_VERTICAL_LAYOUT.itemPaddingY,
9157
+ paddingBottom: STEPPER_VERTICAL_LAYOUT.itemPaddingY,
9158
+ background: state2 === "active" ? STEPPER_VERTICAL_COLORS.itemBg.selected : isHovered ? STEPPER_VERTICAL_COLORS.itemBg.hover : STEPPER_VERTICAL_COLORS.itemBg.default
9159
+ };
9160
+ const handleMouseEnter = () => {
9161
+ if (canClickItem) setHoveredIndex(index);
9162
+ };
9163
+ const handleMouseLeave = () => {
9164
+ setHoveredIndex((current) => current === index ? null : current);
9165
+ };
9166
+ const stepContent = renderStepContent(item, index, {
9167
+ isVertical: true,
9168
+ roleListItem: false,
9169
+ hovered: isHovered
9170
+ });
9171
+ const errorBadge = item.error ? /* @__PURE__ */ jsxRuntime.jsx(
9172
+ "span",
9173
+ {
9174
+ "aria-hidden": "true",
9175
+ "data-stepper-error-badge": "true",
9176
+ className: "inline-flex shrink-0 overflow-hidden rounded-full",
9177
+ style: {
9178
+ width: 6,
9179
+ height: 6,
9180
+ background: STEPPER_VERTICAL_COLORS.errorBadge
9181
+ }
9182
+ }
9183
+ ) : null;
9184
+ const isTooltipHovered = tooltipHoverValue === itemValue;
9185
+ const isCustomTooltipOpen = customTooltipOpen && index === firstErrorIndex;
9186
+ const showTooltip = item.error === true && (isTooltipHovered || isCustomTooltipOpen);
9187
+ const handleTooltipMouseEnter = () => setTooltipHoverValue(itemValue);
9188
+ const handleTooltipMouseLeave = () => {
9189
+ setTooltipHoverValue((current) => current === itemValue ? null : current);
9190
+ };
9191
+ const labelBadge = /* @__PURE__ */ jsxRuntime.jsx(
9192
+ STooltip2,
9193
+ {
9194
+ trigger: "none",
9195
+ open: showTooltip,
9196
+ content: ERROR_TOOLTIP_MESSAGE,
9197
+ tooltipType: "danger",
9198
+ placement: "right",
9199
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
9200
+ "span",
9201
+ {
9202
+ className: cn(
9203
+ "relative z-[3] inline-flex items-center",
9204
+ isClickable && (isDisabled ? "cursor-default" : "cursor-pointer")
9205
+ ),
9206
+ style: { gap: STEPPER_VERTICAL_LAYOUT.itemGap },
9207
+ onMouseEnter: handleTooltipMouseEnter,
9208
+ onMouseLeave: handleTooltipMouseLeave,
9209
+ onClick: isClickable ? () => {
9210
+ if (!isDisabled) emitValueChange(item, index);
9211
+ } : void 0,
9212
+ children: [
9213
+ stepContent,
9214
+ errorBadge
9215
+ ]
9216
+ }
9217
+ )
9218
+ }
9219
+ );
9220
+ if (isClickable) {
9221
+ return /* @__PURE__ */ jsxRuntime.jsxs(
9222
+ "div",
9223
+ {
9224
+ ref: (node) => {
9225
+ verticalItemRefs.current[index] = node;
9226
+ },
9227
+ role: "listitem",
9228
+ "aria-current": state2 === "active" ? "step" : void 0,
9229
+ className: cn(
9230
+ "relative flex w-full items-center overflow-hidden",
9231
+ isDisabled ? "cursor-default" : "cursor-pointer"
9232
+ ),
9233
+ onMouseEnter: handleMouseEnter,
9234
+ onMouseLeave: handleMouseLeave,
9235
+ style: itemContainerStyle,
9236
+ children: [
9237
+ /* @__PURE__ */ jsxRuntime.jsx(
9238
+ "button",
9239
+ {
9240
+ type: "button",
9241
+ disabled: isDisabled,
9242
+ "aria-label": item.label,
9243
+ className: cn(
9244
+ "absolute inset-0 z-[2] m-0 border-0 bg-transparent p-0 text-left outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-(--sys-color-border-accent)",
9245
+ isDisabled ? "cursor-default" : "cursor-pointer"
9246
+ ),
9247
+ onClick: () => {
9248
+ if (!isDisabled) emitValueChange(item, index);
9249
+ }
9250
+ }
9251
+ ),
9252
+ labelBadge
9253
+ ]
9254
+ },
9255
+ itemValue
9256
+ );
9257
+ }
9258
+ return /* @__PURE__ */ jsxRuntime.jsx(
9259
+ "div",
9260
+ {
9261
+ ref: (node) => {
9262
+ verticalItemRefs.current[index] = node;
9263
+ },
9264
+ role: "listitem",
9265
+ "aria-current": state2 === "active" ? "step" : void 0,
9266
+ className: cn(
9267
+ "relative flex w-full items-center overflow-hidden",
9268
+ isClickable && (canClickItem ? "cursor-pointer" : "cursor-default")
9269
+ ),
9270
+ onMouseEnter: handleMouseEnter,
9271
+ onMouseLeave: handleMouseLeave,
9272
+ style: itemContainerStyle,
9273
+ children: labelBadge
9274
+ },
9275
+ itemValue
9276
+ );
9277
+ })
9278
+ ]
9279
+ },
9280
+ `${groupKey}-${group.startIndex}`
9281
+ );
9282
+ })
9283
+ ]
9284
+ }
9285
+ );
9286
+ }
8191
9287
  return /* @__PURE__ */ jsxRuntime.jsx(
8192
9288
  "div",
8193
9289
  {
@@ -8201,43 +9297,8 @@ function SStepper({
8201
9297
  ...style
8202
9298
  },
8203
9299
  children: items.map((item, index) => {
8204
- const state2 = getState(index);
8205
- const itemStyle = {
8206
- gap: STEPPER_LAYOUT.itemGap,
8207
- color: STEPPER_COLORS.text[state2],
8208
- fontWeight: state2 === "active" ? config.fontWeightActive : config.fontWeightDefault
8209
- };
8210
- const sequenceStyle = {
8211
- width: config.sequenceSize,
8212
- height: config.sequenceSize,
8213
- flexBasis: config.sequenceSize,
8214
- borderRadius: STEPPER_LAYOUT.sequenceRadius,
8215
- borderWidth: STEPPER_LAYOUT.sequenceBorderWidth,
8216
- borderColor: STEPPER_COLORS.sequenceBorder[state2],
8217
- background: STEPPER_COLORS.sequenceBg[state2],
8218
- color: state2 === "completed" ? STEPPER_COLORS.text.completed : STEPPER_COLORS.sequenceText[state2]
8219
- };
8220
- const content = /* @__PURE__ */ jsxRuntime.jsxs(
8221
- "span",
8222
- {
8223
- role: "listitem",
8224
- "aria-current": state2 === "active" ? "step" : void 0,
8225
- className: "inline-flex items-center whitespace-nowrap",
8226
- style: itemStyle,
8227
- children: [
8228
- /* @__PURE__ */ jsxRuntime.jsx(
8229
- "span",
8230
- {
8231
- "aria-hidden": true,
8232
- className: "box-border inline-flex shrink-0 items-center justify-center border border-solid font-bold",
8233
- style: sequenceStyle,
8234
- children: state2 === "completed" ? /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "check", size: STEPPER_LAYOUT.sequenceIcon, color: "currentColor" }) : index + 1
8235
- }
8236
- ),
8237
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: item.label })
8238
- ]
8239
- }
8240
- );
9300
+ const state2 = getState(item, index);
9301
+ const content = isClickable ? /* @__PURE__ */ jsxRuntime.jsx("span", { role: "listitem", "aria-current": state2 === "active" ? "step" : void 0, children: renderClickableStepContent(item, index) }) : renderStepContent(item, index);
8241
9302
  return /* @__PURE__ */ jsxRuntime.jsxs(
8242
9303
  "span",
8243
9304
  {
@@ -8276,7 +9337,7 @@ function SStepper({
8276
9337
  })
8277
9338
  }
8278
9339
  );
8279
- }
9340
+ });
8280
9341
  function runRules(value, rules) {
8281
9342
  if (!rules || rules.length === 0) return "";
8282
9343
  for (const rule of rules) {
@@ -8594,7 +9655,7 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
8594
9655
  }, [value]);
8595
9656
  const selectedRef = react.useRef(selected);
8596
9657
  selectedRef.current = selected;
8597
- const emit2 = (next) => {
9658
+ const emit3 = (next) => {
8598
9659
  if (!onValueChange) return;
8599
9660
  const mapped = next.map(
8600
9661
  (v) => emitValue ? rawByValue.get(v) ?? v : optionByValue.get(v) ?? { value: v, label: v }
@@ -8698,14 +9759,14 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
8698
9759
  const handleSelect = (nextValue) => {
8699
9760
  if (multi) {
8700
9761
  const next = selected.includes(nextValue) ? selected.filter((v) => v !== nextValue) : [...selected, nextValue];
8701
- emit2(next);
9762
+ emit3(next);
8702
9763
  return;
8703
9764
  }
8704
- emit2([nextValue]);
9765
+ emit3([nextValue]);
8705
9766
  commitOpen(false, [nextValue]);
8706
9767
  };
8707
9768
  const handleSelectAll = () => {
8708
- emit2(allSelected ? [] : allValues);
9769
+ emit3(allSelected ? [] : allValues);
8709
9770
  };
8710
9771
  const handleToggleGroup = (leafValues) => {
8711
9772
  if (leafValues.length === 0) return;
@@ -8713,9 +9774,9 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
8713
9774
  const allSelectedInGroup = leafValues.every((v) => selectedSet.has(v));
8714
9775
  if (allSelectedInGroup) {
8715
9776
  const remove = new Set(leafValues);
8716
- emit2(selected.filter((v) => !remove.has(v)));
9777
+ emit3(selected.filter((v) => !remove.has(v)));
8717
9778
  } else {
8718
- emit2([...selected, ...leafValues.filter((v) => !selectedSet.has(v))]);
9779
+ emit3([...selected, ...leafValues.filter((v) => !selectedSet.has(v))]);
8719
9780
  }
8720
9781
  };
8721
9782
  react.useEffect(() => {
@@ -9792,6 +10853,9 @@ var STableBar = /* @__PURE__ */ react.forwardRef(function STableBar2({ total, se
9792
10853
  }
9793
10854
  );
9794
10855
  });
10856
+
10857
+ // src/lib/autofill.ts
10858
+ var AUTOFILL_RESET_CLASS = "autofill:[-webkit-text-fill-color:currentColor] autofill:[box-shadow:0_0_0_1000px_var(--sys-color-field-bg-default)_inset] autofill:[transition:background-color_5000s_ease-in-out_0s] [&:-webkit-autofill]:[-webkit-text-fill-color:currentColor] [&:-webkit-autofill]:[box-shadow:0_0_0_1000px_var(--sys-color-field-bg-default)_inset] [&:-webkit-autofill]:[transition:background-color_5000s_ease-in-out_0s]";
9795
10859
  var FONT = {
9796
10860
  sm: { fontSize: 12, lineHeight: 20, paddingX: "var(--cmp-textinput-sm-paddingX)" },
9797
10861
  md: { fontSize: 14, lineHeight: 24, paddingX: "var(--cmp-textinput-md-paddingX)" }
@@ -9906,6 +10970,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
9906
10970
  },
9907
10971
  className: cn(
9908
10972
  "h-full min-w-0 flex-1 border-0 bg-transparent p-0 outline-none placeholder:text-[color:var(--sys-color-field-text-placeholder)] disabled:cursor-not-allowed",
10973
+ AUTOFILL_RESET_CLASS,
9909
10974
  inputClass
9910
10975
  ),
9911
10976
  style: {
@@ -9944,7 +11009,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
9944
11009
  }
9945
11010
  );
9946
11011
  });
9947
- var PAD = { fontSize: 12, paddingX: 12, paddingY: 4 };
11012
+ var PAD2 = { fontSize: 12, paddingX: 12, paddingY: 4 };
9948
11013
  var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
9949
11014
  value,
9950
11015
  onValueChange,
@@ -9976,7 +11041,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
9976
11041
  style,
9977
11042
  ...rest
9978
11043
  }, ref) {
9979
- const p = PAD;
11044
+ const p = PAD2;
9980
11045
  const [ruleError, setRuleError] = react.useState("");
9981
11046
  useFormField({
9982
11047
  name: rest.name,
@@ -10033,6 +11098,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
10033
11098
  },
10034
11099
  className: cn(
10035
11100
  "w-full resize-y border-0 bg-transparent outline-none placeholder:text-[color:var(--sys-color-field-text-placeholder)] disabled:cursor-not-allowed",
11101
+ AUTOFILL_RESET_CLASS,
10036
11102
  textareaClass
10037
11103
  ),
10038
11104
  style: {
@@ -10049,7 +11115,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
10049
11115
  }
10050
11116
  );
10051
11117
  });
10052
- var PAD2 = {
11118
+ var PAD3 = {
10053
11119
  sm: { fontSize: 12, lineHeight: 20, stepper: 20, icon: 12 },
10054
11120
  md: { fontSize: 14, lineHeight: 24, stepper: 24, icon: 14 }
10055
11121
  };
@@ -10141,7 +11207,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
10141
11207
  className,
10142
11208
  style
10143
11209
  }, ref) {
10144
- const p = PAD2[size];
11210
+ const p = PAD3[size];
10145
11211
  const padX = `var(--cmp-numberInput-${size}-paddingX)`;
10146
11212
  const decimalLimit = getDecimalLimit(useDecimal, maxDecimalLength);
10147
11213
  const numValue = applyDecimalLimit(toNumber(value), decimalLimit);
@@ -10185,7 +11251,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
10185
11251
  target.value = display;
10186
11252
  restoreCaret(display, Math.min(logicalCaret, display.replace(/,/g, "").length));
10187
11253
  };
10188
- const emit2 = (n, logicalCaret) => {
11254
+ const emit3 = (n, logicalCaret) => {
10189
11255
  const next = applyDecimalLimit(n, decimalLimit);
10190
11256
  const nextDisplay = formatWithCommas(next);
10191
11257
  setDisplayWithCaret(nextDisplay, logicalCaret);
@@ -10197,13 +11263,13 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
10197
11263
  if (incDisabled) return;
10198
11264
  const cur = numValue ?? (min === Number.NEGATIVE_INFINITY ? 0 : min);
10199
11265
  const next = applyDecimalLimit(Math.min(cur + step, max), decimalLimit);
10200
- if (next !== cur) emit2(next);
11266
+ if (next !== cur) emit3(next);
10201
11267
  };
10202
11268
  const decrement = () => {
10203
11269
  if (decDisabled) return;
10204
11270
  const cur = numValue ?? (min === Number.NEGATIVE_INFINITY ? 0 : min);
10205
11271
  const next = applyDecimalLimit(Math.max(cur - step, min), decimalLimit);
10206
- if (next !== cur) emit2(next);
11272
+ if (next !== cur) emit3(next);
10207
11273
  };
10208
11274
  const handleInput = (event) => {
10209
11275
  const target = event.currentTarget;
@@ -10346,7 +11412,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
10346
11412
  const cleaned = display.replace(/,/g, "");
10347
11413
  const n = toNumber(cleaned);
10348
11414
  const clamped = n === null ? null : Math.min(Math.max(n, min), max);
10349
- if (clamped !== n) emit2(clamped);
11415
+ if (clamped !== n) emit3(clamped);
10350
11416
  else setDisplay(n === null ? "" : formatInputWithCommas(cleaned));
10351
11417
  if (rules && rules.length > 0) setRuleError(runRules(clamped, rules));
10352
11418
  onBlur?.(e);
@@ -10355,6 +11421,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
10355
11421
  // h-full 대신 라인박스 높이 그대로 두어 prefix/suffix 와 동일하게 flex 로 수직 센터링
10356
11422
  // (h-full 이면 input 내부 텍스트 센터링을 브라우저가 수행해 1px 어긋날 수 있음)
10357
11423
  "min-w-0 flex-1 border-0 bg-transparent p-0 outline-none placeholder:text-[color:var(--cmp-numberInput-text-placeholder)] disabled:cursor-not-allowed",
11424
+ AUTOFILL_RESET_CLASS,
10358
11425
  inputClass
10359
11426
  ),
10360
11427
  style: {
@@ -10955,7 +12022,7 @@ function RangeCalendar({
10955
12022
  const inRange = (d) => !!(rStart && rEnd && d > rStart && d < rEnd);
10956
12023
  const RANGE_BG = "var(--cmp-datepicker-calendar-range-bg)";
10957
12024
  const pad = (v) => String(Number(v) || 0).padStart(2, "0");
10958
- const emit2 = (dateStart, dateEnd, time) => {
12025
+ const emit3 = (dateStart, dateEnd, time) => {
10959
12026
  const t = time ?? { sH, sM, eH, eM };
10960
12027
  const range = useTimePicker ? [`${dateStart} ${pad(t.sH)}:${pad(t.sM)}`, `${dateEnd} ${pad(t.eH)}:${pad(t.eM)}`] : [dateStart, dateEnd];
10961
12028
  lastEmitted.current = JSON.stringify(range);
@@ -10978,7 +12045,7 @@ function RangeCalendar({
10978
12045
  }
10979
12046
  setEnd(d);
10980
12047
  onPendingStartChange?.(null);
10981
- emit2(start, d, useTimePicker ? { sH, sM, eH: "23", eM: "59" } : void 0);
12048
+ emit3(start, d, useTimePicker ? { sH, sM, eH: "23", eM: "59" } : void 0);
10982
12049
  };
10983
12050
  const changeTime = (which, part, raw) => {
10984
12051
  const digits = raw.replace(/\D/g, "").slice(0, 2);
@@ -10991,7 +12058,7 @@ function RangeCalendar({
10991
12058
  setSM(nextTime.sM);
10992
12059
  setEH(nextTime.eH);
10993
12060
  setEM(nextTime.eM);
10994
- if (start && end) emit2(start, end, nextTime);
12061
+ if (start && end) emit3(start, end, nextTime);
10995
12062
  };
10996
12063
  const blurTime = (which, part) => {
10997
12064
  if (which === "start") {
@@ -11718,7 +12785,7 @@ function SKeyValueTable({
11718
12785
  style
11719
12786
  }) {
11720
12787
  if (fields.length === 0) return null;
11721
- const emit2 = (name, value) => onChange?.({
12788
+ const emit3 = (name, value) => onChange?.({
11722
12789
  name,
11723
12790
  value,
11724
12791
  values: { ...values, [name]: value }
@@ -11729,7 +12796,7 @@ function SKeyValueTable({
11729
12796
  if (f.render) return f.render;
11730
12797
  const opt = { ...f.options ?? {} };
11731
12798
  if (Object.prototype.hasOwnProperty.call(values, f.name)) opt.value = values[f.name];
11732
- const up = (v) => emit2(f.name, v);
12799
+ const up = (v) => emit3(f.name, v);
11733
12800
  switch (f.type) {
11734
12801
  case "input":
11735
12802
  return /* @__PURE__ */ jsxRuntime.jsx(SInput, { width: "100%", ...opt, onValueChange: up });
@@ -11818,7 +12885,7 @@ function SKeyValueTable({
11818
12885
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full items-center justify-between gap-[var(--cmp-table-header-gap)]", children: [
11819
12886
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-flex items-center gap-[8px]", children: [
11820
12887
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] font-bold leading-[20px] text-[color:var(--sys-color-fg-primary)]", children: f.label }),
11821
- f.required && /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "star", size: 12, color: "var(--sys-color-fg-accent)" })
12888
+ f.required && /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "asterisk", size: 12, color: "var(--sys-color-fg-accent)" })
11822
12889
  ] }),
11823
12890
  f.helpText && f.helpText.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
11824
12891
  STooltip2,
@@ -12583,6 +13650,7 @@ var SChipInput = /* @__PURE__ */ react.forwardRef(function SChipInput2({
12583
13650
  size: 1,
12584
13651
  className: cn(
12585
13652
  "s-chip-input__input col-start-1 row-start-1 w-full border-0 bg-transparent p-0 font-normal text-(--cmp-chip-content-focus) outline-none placeholder:text-(--cmp-chipInput-text-placeholder) disabled:cursor-not-allowed",
13653
+ AUTOFILL_RESET_CLASS,
12586
13654
  size === "md" ? "text-14 leading-sd-24" : "text-12 leading-sd-20"
12587
13655
  ),
12588
13656
  style: {
@@ -12875,6 +13943,7 @@ var SBarcodeInput = /* @__PURE__ */ react.forwardRef(
12875
13943
  },
12876
13944
  className: cn(
12877
13945
  "h-full min-w-0 flex-1 border-0 bg-transparent p-0 outline-none placeholder:text-[color:var(--cmp-textinput-text-placeholder)] disabled:cursor-not-allowed",
13946
+ AUTOFILL_RESET_CLASS,
12878
13947
  inputClass
12879
13948
  ),
12880
13949
  style: {
@@ -13861,6 +14930,7 @@ exports.SLoadingContainer = SLoadingContainer;
13861
14930
  exports.SLoadingModal = SLoadingModal;
13862
14931
  exports.SLoadingViewport = SLoadingViewport;
13863
14932
  exports.SModal = SModal;
14933
+ exports.SModalOutlet = SModalOutlet;
13864
14934
  exports.SNumberInput = SNumberInput;
13865
14935
  exports.SPage = SPage;
13866
14936
  exports.SPagination = SPagination;
@@ -13870,9 +14940,11 @@ exports.SPortal = SPortal;
13870
14940
  exports.SRadio = SRadio;
13871
14941
  exports.SRadioButton = SRadioButton;
13872
14942
  exports.SRadioGroup = SRadioGroup;
14943
+ exports.SSPLITTER_UNITS = SSPLITTER_UNITS;
13873
14944
  exports.SScrollArea = SScrollArea;
13874
14945
  exports.SSectionHeaderCard = SSectionHeaderCard2;
13875
14946
  exports.SSelect = SSelect2;
14947
+ exports.SSplitter = SSplitter2;
13876
14948
  exports.SStepper = SStepper;
13877
14949
  exports.SSwitch = SSwitch;
13878
14950
  exports.STEPPER_SIZES = STEPPER_SIZES;