sellmate-design-system-react 7.1.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/AGENTS.md +68 -3
- package/README.md +16 -1
- package/dist/components/SGnb/README.md +4 -0
- package/dist/components/SGnb/SGnb.d.ts +12 -0
- package/dist/components/SGnb/gnb.config.d.ts +13 -0
- package/dist/components/SIcon/SIcon.d.ts +1 -1
- package/dist/components/SIcon/icons.gen.d.ts +8 -3
- package/dist/components/SLayout/SLayout.d.ts +6 -0
- package/dist/components/SModal/README.md +41 -6
- package/dist/components/SModal/SModalOutlet.d.ts +18 -0
- package/dist/components/SModal/index.d.ts +1 -0
- package/dist/components/SSplitter/README.md +27 -0
- package/dist/components/SSplitter/SSplitter.d.ts +32 -0
- package/dist/components/SSplitter/index.d.ts +2 -0
- package/dist/components/SSplitter/splitter.config.d.ts +15 -0
- package/dist/components/STooltip/README.md +2 -0
- package/dist/index.cjs +889 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +888 -187
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts +29 -0
- package/dist/lib/is-dev.d.ts +2 -0
- package/dist/lib/modal-outlet.d.ts +53 -0
- package/dist/llms-full.txt +143 -9
- package/dist/llms.txt +70 -5
- package/dist/styles.css +102 -0
- package/dist/theme.css +4 -0
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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
|
|
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: "
|
|
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.
|
|
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
|
|
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
|
-
|
|
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: "
|
|
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
|
|
2541
|
+
var Icon_shield = (p) => {
|
|
2496
2542
|
const { size = 24, ...rest } = p;
|
|
2497
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
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:
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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: "
|
|
4970
|
+
name: "asterisk",
|
|
4819
4971
|
size: 16,
|
|
4820
4972
|
color: "var(--sys-color-fg-accent)",
|
|
4821
4973
|
className: "shrink-0"
|
|
@@ -4934,6 +5086,225 @@ 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
|
|
|
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
|
+
|
|
4937
5308
|
// src/components/SButton/button.config.ts
|
|
4938
5309
|
var BUTTON_COLORS = ["primary", "secondary", "neutral", "danger"];
|
|
4939
5310
|
var BUTTON_SIZES = ["xs", "sm", "md", "lg"];
|
|
@@ -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)]
|
|
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(
|
|
7401
|
+
settle(emit3) {
|
|
6964
7402
|
if (this.dismissRequested) return;
|
|
6965
7403
|
this.dismissRequested = true;
|
|
6966
|
-
|
|
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
|
|
7000
|
-
|
|
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 (
|
|
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:
|
|
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(),
|
|
7119
|
-
}, [refImpl,
|
|
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(
|
|
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.
|
|
7139
|
-
root.render(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
|
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]
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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:
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
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
|
}
|
|
@@ -8962,7 +9655,7 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
|
|
|
8962
9655
|
}, [value]);
|
|
8963
9656
|
const selectedRef = react.useRef(selected);
|
|
8964
9657
|
selectedRef.current = selected;
|
|
8965
|
-
const
|
|
9658
|
+
const emit3 = (next) => {
|
|
8966
9659
|
if (!onValueChange) return;
|
|
8967
9660
|
const mapped = next.map(
|
|
8968
9661
|
(v) => emitValue ? rawByValue.get(v) ?? v : optionByValue.get(v) ?? { value: v, label: v }
|
|
@@ -9066,14 +9759,14 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
|
|
|
9066
9759
|
const handleSelect = (nextValue) => {
|
|
9067
9760
|
if (multi) {
|
|
9068
9761
|
const next = selected.includes(nextValue) ? selected.filter((v) => v !== nextValue) : [...selected, nextValue];
|
|
9069
|
-
|
|
9762
|
+
emit3(next);
|
|
9070
9763
|
return;
|
|
9071
9764
|
}
|
|
9072
|
-
|
|
9765
|
+
emit3([nextValue]);
|
|
9073
9766
|
commitOpen(false, [nextValue]);
|
|
9074
9767
|
};
|
|
9075
9768
|
const handleSelectAll = () => {
|
|
9076
|
-
|
|
9769
|
+
emit3(allSelected ? [] : allValues);
|
|
9077
9770
|
};
|
|
9078
9771
|
const handleToggleGroup = (leafValues) => {
|
|
9079
9772
|
if (leafValues.length === 0) return;
|
|
@@ -9081,9 +9774,9 @@ var SSelectImpl = /* @__PURE__ */ react.forwardRef(function SSelect({
|
|
|
9081
9774
|
const allSelectedInGroup = leafValues.every((v) => selectedSet.has(v));
|
|
9082
9775
|
if (allSelectedInGroup) {
|
|
9083
9776
|
const remove = new Set(leafValues);
|
|
9084
|
-
|
|
9777
|
+
emit3(selected.filter((v) => !remove.has(v)));
|
|
9085
9778
|
} else {
|
|
9086
|
-
|
|
9779
|
+
emit3([...selected, ...leafValues.filter((v) => !selectedSet.has(v))]);
|
|
9087
9780
|
}
|
|
9088
9781
|
};
|
|
9089
9782
|
react.useEffect(() => {
|
|
@@ -10160,6 +10853,9 @@ var STableBar = /* @__PURE__ */ react.forwardRef(function STableBar2({ total, se
|
|
|
10160
10853
|
}
|
|
10161
10854
|
);
|
|
10162
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]";
|
|
10163
10859
|
var FONT = {
|
|
10164
10860
|
sm: { fontSize: 12, lineHeight: 20, paddingX: "var(--cmp-textinput-sm-paddingX)" },
|
|
10165
10861
|
md: { fontSize: 14, lineHeight: 24, paddingX: "var(--cmp-textinput-md-paddingX)" }
|
|
@@ -10274,6 +10970,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
|
|
|
10274
10970
|
},
|
|
10275
10971
|
className: cn(
|
|
10276
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,
|
|
10277
10974
|
inputClass
|
|
10278
10975
|
),
|
|
10279
10976
|
style: {
|
|
@@ -10312,7 +11009,7 @@ var SInput = /* @__PURE__ */ react.forwardRef(function SInput2({
|
|
|
10312
11009
|
}
|
|
10313
11010
|
);
|
|
10314
11011
|
});
|
|
10315
|
-
var
|
|
11012
|
+
var PAD2 = { fontSize: 12, paddingX: 12, paddingY: 4 };
|
|
10316
11013
|
var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
10317
11014
|
value,
|
|
10318
11015
|
onValueChange,
|
|
@@ -10344,7 +11041,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
|
10344
11041
|
style,
|
|
10345
11042
|
...rest
|
|
10346
11043
|
}, ref) {
|
|
10347
|
-
const p =
|
|
11044
|
+
const p = PAD2;
|
|
10348
11045
|
const [ruleError, setRuleError] = react.useState("");
|
|
10349
11046
|
useFormField({
|
|
10350
11047
|
name: rest.name,
|
|
@@ -10401,6 +11098,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
|
10401
11098
|
},
|
|
10402
11099
|
className: cn(
|
|
10403
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,
|
|
10404
11102
|
textareaClass
|
|
10405
11103
|
),
|
|
10406
11104
|
style: {
|
|
@@ -10417,7 +11115,7 @@ var STextarea = /* @__PURE__ */ react.forwardRef(function STextarea2({
|
|
|
10417
11115
|
}
|
|
10418
11116
|
);
|
|
10419
11117
|
});
|
|
10420
|
-
var
|
|
11118
|
+
var PAD3 = {
|
|
10421
11119
|
sm: { fontSize: 12, lineHeight: 20, stepper: 20, icon: 12 },
|
|
10422
11120
|
md: { fontSize: 14, lineHeight: 24, stepper: 24, icon: 14 }
|
|
10423
11121
|
};
|
|
@@ -10509,7 +11207,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
10509
11207
|
className,
|
|
10510
11208
|
style
|
|
10511
11209
|
}, ref) {
|
|
10512
|
-
const p =
|
|
11210
|
+
const p = PAD3[size];
|
|
10513
11211
|
const padX = `var(--cmp-numberInput-${size}-paddingX)`;
|
|
10514
11212
|
const decimalLimit = getDecimalLimit(useDecimal, maxDecimalLength);
|
|
10515
11213
|
const numValue = applyDecimalLimit(toNumber(value), decimalLimit);
|
|
@@ -10553,7 +11251,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
10553
11251
|
target.value = display;
|
|
10554
11252
|
restoreCaret(display, Math.min(logicalCaret, display.replace(/,/g, "").length));
|
|
10555
11253
|
};
|
|
10556
|
-
const
|
|
11254
|
+
const emit3 = (n, logicalCaret) => {
|
|
10557
11255
|
const next = applyDecimalLimit(n, decimalLimit);
|
|
10558
11256
|
const nextDisplay = formatWithCommas(next);
|
|
10559
11257
|
setDisplayWithCaret(nextDisplay, logicalCaret);
|
|
@@ -10565,13 +11263,13 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
10565
11263
|
if (incDisabled) return;
|
|
10566
11264
|
const cur = numValue ?? (min === Number.NEGATIVE_INFINITY ? 0 : min);
|
|
10567
11265
|
const next = applyDecimalLimit(Math.min(cur + step, max), decimalLimit);
|
|
10568
|
-
if (next !== cur)
|
|
11266
|
+
if (next !== cur) emit3(next);
|
|
10569
11267
|
};
|
|
10570
11268
|
const decrement = () => {
|
|
10571
11269
|
if (decDisabled) return;
|
|
10572
11270
|
const cur = numValue ?? (min === Number.NEGATIVE_INFINITY ? 0 : min);
|
|
10573
11271
|
const next = applyDecimalLimit(Math.max(cur - step, min), decimalLimit);
|
|
10574
|
-
if (next !== cur)
|
|
11272
|
+
if (next !== cur) emit3(next);
|
|
10575
11273
|
};
|
|
10576
11274
|
const handleInput = (event) => {
|
|
10577
11275
|
const target = event.currentTarget;
|
|
@@ -10714,7 +11412,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
10714
11412
|
const cleaned = display.replace(/,/g, "");
|
|
10715
11413
|
const n = toNumber(cleaned);
|
|
10716
11414
|
const clamped = n === null ? null : Math.min(Math.max(n, min), max);
|
|
10717
|
-
if (clamped !== n)
|
|
11415
|
+
if (clamped !== n) emit3(clamped);
|
|
10718
11416
|
else setDisplay(n === null ? "" : formatInputWithCommas(cleaned));
|
|
10719
11417
|
if (rules && rules.length > 0) setRuleError(runRules(clamped, rules));
|
|
10720
11418
|
onBlur?.(e);
|
|
@@ -10723,6 +11421,7 @@ var SNumberInput = /* @__PURE__ */ react.forwardRef(function SNumberInput2({
|
|
|
10723
11421
|
// h-full 대신 라인박스 높이 그대로 두어 prefix/suffix 와 동일하게 flex 로 수직 센터링
|
|
10724
11422
|
// (h-full 이면 input 내부 텍스트 센터링을 브라우저가 수행해 1px 어긋날 수 있음)
|
|
10725
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,
|
|
10726
11425
|
inputClass
|
|
10727
11426
|
),
|
|
10728
11427
|
style: {
|
|
@@ -11323,7 +12022,7 @@ function RangeCalendar({
|
|
|
11323
12022
|
const inRange = (d) => !!(rStart && rEnd && d > rStart && d < rEnd);
|
|
11324
12023
|
const RANGE_BG = "var(--cmp-datepicker-calendar-range-bg)";
|
|
11325
12024
|
const pad = (v) => String(Number(v) || 0).padStart(2, "0");
|
|
11326
|
-
const
|
|
12025
|
+
const emit3 = (dateStart, dateEnd, time) => {
|
|
11327
12026
|
const t = time ?? { sH, sM, eH, eM };
|
|
11328
12027
|
const range = useTimePicker ? [`${dateStart} ${pad(t.sH)}:${pad(t.sM)}`, `${dateEnd} ${pad(t.eH)}:${pad(t.eM)}`] : [dateStart, dateEnd];
|
|
11329
12028
|
lastEmitted.current = JSON.stringify(range);
|
|
@@ -11346,7 +12045,7 @@ function RangeCalendar({
|
|
|
11346
12045
|
}
|
|
11347
12046
|
setEnd(d);
|
|
11348
12047
|
onPendingStartChange?.(null);
|
|
11349
|
-
|
|
12048
|
+
emit3(start, d, useTimePicker ? { sH, sM, eH: "23", eM: "59" } : void 0);
|
|
11350
12049
|
};
|
|
11351
12050
|
const changeTime = (which, part, raw) => {
|
|
11352
12051
|
const digits = raw.replace(/\D/g, "").slice(0, 2);
|
|
@@ -11359,7 +12058,7 @@ function RangeCalendar({
|
|
|
11359
12058
|
setSM(nextTime.sM);
|
|
11360
12059
|
setEH(nextTime.eH);
|
|
11361
12060
|
setEM(nextTime.eM);
|
|
11362
|
-
if (start && end)
|
|
12061
|
+
if (start && end) emit3(start, end, nextTime);
|
|
11363
12062
|
};
|
|
11364
12063
|
const blurTime = (which, part) => {
|
|
11365
12064
|
if (which === "start") {
|
|
@@ -12086,7 +12785,7 @@ function SKeyValueTable({
|
|
|
12086
12785
|
style
|
|
12087
12786
|
}) {
|
|
12088
12787
|
if (fields.length === 0) return null;
|
|
12089
|
-
const
|
|
12788
|
+
const emit3 = (name, value) => onChange?.({
|
|
12090
12789
|
name,
|
|
12091
12790
|
value,
|
|
12092
12791
|
values: { ...values, [name]: value }
|
|
@@ -12097,7 +12796,7 @@ function SKeyValueTable({
|
|
|
12097
12796
|
if (f.render) return f.render;
|
|
12098
12797
|
const opt = { ...f.options ?? {} };
|
|
12099
12798
|
if (Object.prototype.hasOwnProperty.call(values, f.name)) opt.value = values[f.name];
|
|
12100
|
-
const up = (v) =>
|
|
12799
|
+
const up = (v) => emit3(f.name, v);
|
|
12101
12800
|
switch (f.type) {
|
|
12102
12801
|
case "input":
|
|
12103
12802
|
return /* @__PURE__ */ jsxRuntime.jsx(SInput, { width: "100%", ...opt, onValueChange: up });
|
|
@@ -12186,7 +12885,7 @@ function SKeyValueTable({
|
|
|
12186
12885
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full items-center justify-between gap-[var(--cmp-table-header-gap)]", children: [
|
|
12187
12886
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-flex items-center gap-[8px]", children: [
|
|
12188
12887
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] font-bold leading-[20px] text-[color:var(--sys-color-fg-primary)]", children: f.label }),
|
|
12189
|
-
f.required && /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "
|
|
12888
|
+
f.required && /* @__PURE__ */ jsxRuntime.jsx(SIcon, { name: "asterisk", size: 12, color: "var(--sys-color-fg-accent)" })
|
|
12190
12889
|
] }),
|
|
12191
12890
|
f.helpText && f.helpText.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12192
12891
|
STooltip2,
|
|
@@ -12951,6 +13650,7 @@ var SChipInput = /* @__PURE__ */ react.forwardRef(function SChipInput2({
|
|
|
12951
13650
|
size: 1,
|
|
12952
13651
|
className: cn(
|
|
12953
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,
|
|
12954
13654
|
size === "md" ? "text-14 leading-sd-24" : "text-12 leading-sd-20"
|
|
12955
13655
|
),
|
|
12956
13656
|
style: {
|
|
@@ -13243,6 +13943,7 @@ var SBarcodeInput = /* @__PURE__ */ react.forwardRef(
|
|
|
13243
13943
|
},
|
|
13244
13944
|
className: cn(
|
|
13245
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,
|
|
13246
13947
|
inputClass
|
|
13247
13948
|
),
|
|
13248
13949
|
style: {
|
|
@@ -14229,6 +14930,7 @@ exports.SLoadingContainer = SLoadingContainer;
|
|
|
14229
14930
|
exports.SLoadingModal = SLoadingModal;
|
|
14230
14931
|
exports.SLoadingViewport = SLoadingViewport;
|
|
14231
14932
|
exports.SModal = SModal;
|
|
14933
|
+
exports.SModalOutlet = SModalOutlet;
|
|
14232
14934
|
exports.SNumberInput = SNumberInput;
|
|
14233
14935
|
exports.SPage = SPage;
|
|
14234
14936
|
exports.SPagination = SPagination;
|
|
@@ -14238,9 +14940,11 @@ exports.SPortal = SPortal;
|
|
|
14238
14940
|
exports.SRadio = SRadio;
|
|
14239
14941
|
exports.SRadioButton = SRadioButton;
|
|
14240
14942
|
exports.SRadioGroup = SRadioGroup;
|
|
14943
|
+
exports.SSPLITTER_UNITS = SSPLITTER_UNITS;
|
|
14241
14944
|
exports.SScrollArea = SScrollArea;
|
|
14242
14945
|
exports.SSectionHeaderCard = SSectionHeaderCard2;
|
|
14243
14946
|
exports.SSelect = SSelect2;
|
|
14947
|
+
exports.SSplitter = SSplitter2;
|
|
14244
14948
|
exports.SStepper = SStepper;
|
|
14245
14949
|
exports.SSwitch = SSwitch;
|
|
14246
14950
|
exports.STEPPER_SIZES = STEPPER_SIZES;
|