@stn-uiux/pub-ui-react 0.1.78 → 0.1.79
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.d.ts +61 -1
- package/dist/index.js +677 -626
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3591,13 +3591,62 @@ function StnChip(props) {
|
|
|
3591
3591
|
] });
|
|
3592
3592
|
}
|
|
3593
3593
|
|
|
3594
|
+
// src/components/StnDivider.tsx
|
|
3595
|
+
import {
|
|
3596
|
+
createElement as createElement2,
|
|
3597
|
+
forwardRef as forwardRef22
|
|
3598
|
+
} from "react";
|
|
3599
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3600
|
+
var StnDivider = forwardRef22(function StnDivider2({
|
|
3601
|
+
orientation = "horizontal",
|
|
3602
|
+
variant = "fullWidth",
|
|
3603
|
+
flexItem = false,
|
|
3604
|
+
textAlign = "center",
|
|
3605
|
+
component,
|
|
3606
|
+
as,
|
|
3607
|
+
className,
|
|
3608
|
+
children,
|
|
3609
|
+
role,
|
|
3610
|
+
...rest
|
|
3611
|
+
}, ref) {
|
|
3612
|
+
const hasChildren = Boolean(children);
|
|
3613
|
+
const isVertical = orientation === "vertical";
|
|
3614
|
+
const Tag = component ?? as ?? (hasChildren ? "div" : isVertical ? "div" : "hr");
|
|
3615
|
+
const isHr = Tag === "hr";
|
|
3616
|
+
const computedRole = isHr ? role : role ?? "separator";
|
|
3617
|
+
const computedAriaOrientation = isVertical ? "vertical" : void 0;
|
|
3618
|
+
const classes = cn(
|
|
3619
|
+
"stn-divider",
|
|
3620
|
+
isVertical ? "stn-divider--vertical" : "stn-divider--horizontal",
|
|
3621
|
+
variant === "inset" && "stn-divider--inset",
|
|
3622
|
+
variant === "middle" && "stn-divider--middle",
|
|
3623
|
+
variant === "fullWidth" && "stn-divider--full-width",
|
|
3624
|
+
flexItem && "stn-divider--flex-item",
|
|
3625
|
+
hasChildren && "stn-divider--with-children",
|
|
3626
|
+
hasChildren && `stn-divider--text-${textAlign}`,
|
|
3627
|
+
className
|
|
3628
|
+
);
|
|
3629
|
+
return createElement2(
|
|
3630
|
+
Tag,
|
|
3631
|
+
{
|
|
3632
|
+
ref,
|
|
3633
|
+
className: classes,
|
|
3634
|
+
role: computedRole,
|
|
3635
|
+
"aria-orientation": computedAriaOrientation,
|
|
3636
|
+
...rest
|
|
3637
|
+
},
|
|
3638
|
+
hasChildren ? /* @__PURE__ */ jsx28("span", { className: "stn-divider__wrapper", children }) : null
|
|
3639
|
+
);
|
|
3640
|
+
});
|
|
3641
|
+
var Divider = StnDivider;
|
|
3642
|
+
|
|
3594
3643
|
// src/components/StnToggleButton.tsx
|
|
3595
3644
|
import {
|
|
3596
|
-
forwardRef as
|
|
3645
|
+
forwardRef as forwardRef23,
|
|
3597
3646
|
useState as useState8
|
|
3598
3647
|
} from "react";
|
|
3599
|
-
import { Fragment as Fragment3, jsx as
|
|
3600
|
-
var StnToggleButton =
|
|
3648
|
+
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3649
|
+
var StnToggleButton = forwardRef23(
|
|
3601
3650
|
function StnToggleButton2({
|
|
3602
3651
|
pressed: pressedProp,
|
|
3603
3652
|
defaultPressed = false,
|
|
@@ -3651,7 +3700,7 @@ var StnToggleButton = forwardRef22(
|
|
|
3651
3700
|
} : void 0;
|
|
3652
3701
|
const isIconOnly = iconOnlyProp !== void 0 ? iconOnlyProp : Boolean(icon && !children);
|
|
3653
3702
|
const iconPx = size === "sm" ? 14 : size === "lg" ? 18 : 16;
|
|
3654
|
-
const renderedIcon = typeof icon === "string" ? /* @__PURE__ */
|
|
3703
|
+
const renderedIcon = typeof icon === "string" ? /* @__PURE__ */ jsx29(StnIcon, { name: icon, size: iconPx, color: "currentColor" }) : icon;
|
|
3655
3704
|
const handleClick = (e) => {
|
|
3656
3705
|
if (disabled) return;
|
|
3657
3706
|
onClick?.(e);
|
|
@@ -3661,7 +3710,7 @@ var StnToggleButton = forwardRef22(
|
|
|
3661
3710
|
}
|
|
3662
3711
|
onChange?.(nextPressed);
|
|
3663
3712
|
};
|
|
3664
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ jsx29(
|
|
3665
3714
|
"button",
|
|
3666
3715
|
{
|
|
3667
3716
|
ref,
|
|
@@ -3696,9 +3745,9 @@ var StnToggleButton = forwardRef22(
|
|
|
3696
3745
|
);
|
|
3697
3746
|
|
|
3698
3747
|
// src/components/StnSwitch.tsx
|
|
3699
|
-
import { forwardRef as
|
|
3700
|
-
import { jsx as
|
|
3701
|
-
var StnSwitch =
|
|
3748
|
+
import { forwardRef as forwardRef24, useId as useId6 } from "react";
|
|
3749
|
+
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3750
|
+
var StnSwitch = forwardRef24(function StnSwitch2({
|
|
3702
3751
|
label,
|
|
3703
3752
|
size = "md",
|
|
3704
3753
|
color,
|
|
@@ -3765,7 +3814,7 @@ var StnSwitch = forwardRef23(function StnSwitch2({
|
|
|
3765
3814
|
style: inlineStyle,
|
|
3766
3815
|
htmlFor: id,
|
|
3767
3816
|
children: [
|
|
3768
|
-
/* @__PURE__ */
|
|
3817
|
+
/* @__PURE__ */ jsx30(
|
|
3769
3818
|
"input",
|
|
3770
3819
|
{
|
|
3771
3820
|
ref,
|
|
@@ -3778,10 +3827,10 @@ var StnSwitch = forwardRef23(function StnSwitch2({
|
|
|
3778
3827
|
...rest
|
|
3779
3828
|
}
|
|
3780
3829
|
),
|
|
3781
|
-
/* @__PURE__ */
|
|
3830
|
+
/* @__PURE__ */ jsx30("span", { className: "stn-switch__control", "aria-hidden": "true", children: /* @__PURE__ */ jsx30("span", { className: "stn-switch__thumb" }) }),
|
|
3782
3831
|
label != null && label !== "" ? /* @__PURE__ */ jsxs23("span", { className: "stn-switch__label", children: [
|
|
3783
3832
|
label,
|
|
3784
|
-
required && /* @__PURE__ */
|
|
3833
|
+
required && /* @__PURE__ */ jsx30("span", { className: "stn-switch__required", "aria-hidden": "true", children: "*" })
|
|
3785
3834
|
] }) : null
|
|
3786
3835
|
]
|
|
3787
3836
|
}
|
|
@@ -3789,9 +3838,9 @@ var StnSwitch = forwardRef23(function StnSwitch2({
|
|
|
3789
3838
|
});
|
|
3790
3839
|
|
|
3791
3840
|
// src/components/StnRadio.tsx
|
|
3792
|
-
import { forwardRef as
|
|
3793
|
-
import { jsx as
|
|
3794
|
-
var StnRadio =
|
|
3841
|
+
import { forwardRef as forwardRef25, useId as useId7 } from "react";
|
|
3842
|
+
import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3843
|
+
var StnRadio = forwardRef25(function StnRadio2({
|
|
3795
3844
|
label,
|
|
3796
3845
|
size = "md",
|
|
3797
3846
|
color,
|
|
@@ -3837,10 +3886,10 @@ var StnRadio = forwardRef24(function StnRadio2({
|
|
|
3837
3886
|
),
|
|
3838
3887
|
style: inlineStyle,
|
|
3839
3888
|
children: [
|
|
3840
|
-
/* @__PURE__ */
|
|
3889
|
+
/* @__PURE__ */ jsx31("input", { ref, type: "radio", id, disabled, required, ...rest }),
|
|
3841
3890
|
/* @__PURE__ */ jsxs24("label", { htmlFor: id, "aria-hidden": isControlOnly ? true : void 0, children: [
|
|
3842
3891
|
label,
|
|
3843
|
-
required && !isControlOnly && /* @__PURE__ */
|
|
3892
|
+
required && !isControlOnly && /* @__PURE__ */ jsx31("span", { className: "stn-radio__required", "aria-hidden": "true", children: "*" })
|
|
3844
3893
|
] })
|
|
3845
3894
|
]
|
|
3846
3895
|
}
|
|
@@ -3849,7 +3898,7 @@ var StnRadio = forwardRef24(function StnRadio2({
|
|
|
3849
3898
|
|
|
3850
3899
|
// src/components/StnRadioGroup.tsx
|
|
3851
3900
|
import { useId as useId8 } from "react";
|
|
3852
|
-
import { jsx as
|
|
3901
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3853
3902
|
function StnRadioGroup({
|
|
3854
3903
|
name: nameProp,
|
|
3855
3904
|
value,
|
|
@@ -3867,7 +3916,7 @@ function StnRadioGroup({
|
|
|
3867
3916
|
const autoName = useId8().replace(/:/g, "");
|
|
3868
3917
|
const name = nameProp ?? `stn-radio-${autoName}`;
|
|
3869
3918
|
const isRow = orientation === "horizontal" || layout === "row";
|
|
3870
|
-
const items = options.map((opt) => /* @__PURE__ */
|
|
3919
|
+
const items = options.map((opt) => /* @__PURE__ */ jsx32(
|
|
3871
3920
|
StnRadio,
|
|
3872
3921
|
{
|
|
3873
3922
|
name,
|
|
@@ -3882,7 +3931,7 @@ function StnRadioGroup({
|
|
|
3882
3931
|
},
|
|
3883
3932
|
opt.value
|
|
3884
3933
|
));
|
|
3885
|
-
return /* @__PURE__ */
|
|
3934
|
+
return /* @__PURE__ */ jsx32(
|
|
3886
3935
|
"div",
|
|
3887
3936
|
{
|
|
3888
3937
|
className: cn(
|
|
@@ -3900,12 +3949,12 @@ function StnRadioGroup({
|
|
|
3900
3949
|
|
|
3901
3950
|
// src/components/StnSegmented.tsx
|
|
3902
3951
|
import { useId as useId9 } from "react";
|
|
3903
|
-
import { jsx as
|
|
3952
|
+
import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3904
3953
|
function renderSegmentedIcon(icon, size) {
|
|
3905
3954
|
if (!icon) return null;
|
|
3906
3955
|
if (typeof icon === "string") {
|
|
3907
3956
|
const iconPx = size === "sm" ? 14 : size === "lg" ? 18 : 16;
|
|
3908
|
-
return /* @__PURE__ */
|
|
3957
|
+
return /* @__PURE__ */ jsx33(StnIcon, { name: icon, size: iconPx, color: "currentColor" });
|
|
3909
3958
|
}
|
|
3910
3959
|
return icon;
|
|
3911
3960
|
}
|
|
@@ -3942,7 +3991,7 @@ function StnSegmented(props) {
|
|
|
3942
3991
|
}
|
|
3943
3992
|
props.onChange(optionValue);
|
|
3944
3993
|
}
|
|
3945
|
-
return /* @__PURE__ */
|
|
3994
|
+
return /* @__PURE__ */ jsx33(
|
|
3946
3995
|
"div",
|
|
3947
3996
|
{
|
|
3948
3997
|
className: cn(
|
|
@@ -3983,7 +4032,7 @@ function StnSegmented(props) {
|
|
|
3983
4032
|
},
|
|
3984
4033
|
children: [
|
|
3985
4034
|
renderSegmentedIcon(opt.icon, size),
|
|
3986
|
-
opt.label && /* @__PURE__ */
|
|
4035
|
+
opt.label && /* @__PURE__ */ jsx33("span", { children: opt.label })
|
|
3987
4036
|
]
|
|
3988
4037
|
},
|
|
3989
4038
|
opt.value
|
|
@@ -3995,7 +4044,7 @@ function StnSegmented(props) {
|
|
|
3995
4044
|
|
|
3996
4045
|
// src/components/tabs/StnTabs.tsx
|
|
3997
4046
|
import {
|
|
3998
|
-
forwardRef as
|
|
4047
|
+
forwardRef as forwardRef28,
|
|
3999
4048
|
useState as useState9,
|
|
4000
4049
|
useRef as useRef5,
|
|
4001
4050
|
useEffect as useEffect8,
|
|
@@ -4005,7 +4054,7 @@ import {
|
|
|
4005
4054
|
|
|
4006
4055
|
// src/components/tabs/StnTabContext.tsx
|
|
4007
4056
|
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
4008
|
-
import { jsx as
|
|
4057
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
4009
4058
|
var StnTabsContext = createContext3(null);
|
|
4010
4059
|
function useStnTabsContext() {
|
|
4011
4060
|
return useContext3(StnTabsContext);
|
|
@@ -4017,13 +4066,13 @@ function StnTabContextProvider({
|
|
|
4017
4066
|
variant = "line",
|
|
4018
4067
|
children
|
|
4019
4068
|
}) {
|
|
4020
|
-
return /* @__PURE__ */
|
|
4069
|
+
return /* @__PURE__ */ jsx34(StnTabsContext.Provider, { value: { value, onChange, size, variant }, children });
|
|
4021
4070
|
}
|
|
4022
4071
|
|
|
4023
4072
|
// src/components/tabs/StnTab.tsx
|
|
4024
|
-
import { forwardRef as
|
|
4025
|
-
import { jsx as
|
|
4026
|
-
var StnTab =
|
|
4073
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
4074
|
+
import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4075
|
+
var StnTab = forwardRef26(function StnTab2({
|
|
4027
4076
|
value,
|
|
4028
4077
|
label,
|
|
4029
4078
|
icon,
|
|
@@ -4060,7 +4109,7 @@ var StnTab = forwardRef25(function StnTab2({
|
|
|
4060
4109
|
].filter(Boolean).join(" ");
|
|
4061
4110
|
const iconSizeClass = typeof iconSize === "string" ? `icon-${iconSize}` : void 0;
|
|
4062
4111
|
const iconStyle = typeof iconSize === "number" ? { width: `${iconSize}px`, height: `${iconSize}px` } : void 0;
|
|
4063
|
-
const renderedIcon = icon ? /* @__PURE__ */
|
|
4112
|
+
const renderedIcon = icon ? /* @__PURE__ */ jsx35(
|
|
4064
4113
|
"span",
|
|
4065
4114
|
{
|
|
4066
4115
|
className: ["stn-tab__icon", iconSizeClass].filter(Boolean).join(" "),
|
|
@@ -4085,19 +4134,19 @@ var StnTab = forwardRef25(function StnTab2({
|
|
|
4085
4134
|
...rest,
|
|
4086
4135
|
children: [
|
|
4087
4136
|
iconPosition !== "end" && iconPosition !== "bottom" && renderedIcon,
|
|
4088
|
-
content && /* @__PURE__ */
|
|
4137
|
+
content && /* @__PURE__ */ jsx35("span", { className: "stn-tab__label", children: content }),
|
|
4089
4138
|
(iconPosition === "end" || iconPosition === "bottom") && renderedIcon,
|
|
4090
|
-
count !== void 0 && /* @__PURE__ */
|
|
4091
|
-
badge && /* @__PURE__ */
|
|
4139
|
+
count !== void 0 && /* @__PURE__ */ jsx35("span", { className: "stn-tab__badge", children: count }),
|
|
4140
|
+
badge && /* @__PURE__ */ jsx35("span", { className: "stn-tab__extra", children: badge })
|
|
4092
4141
|
]
|
|
4093
4142
|
}
|
|
4094
4143
|
);
|
|
4095
4144
|
});
|
|
4096
4145
|
|
|
4097
4146
|
// src/components/tabs/StnTabPanel.tsx
|
|
4098
|
-
import { forwardRef as
|
|
4099
|
-
import { jsx as
|
|
4100
|
-
var StnTabPanel =
|
|
4147
|
+
import { forwardRef as forwardRef27 } from "react";
|
|
4148
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4149
|
+
var StnTabPanel = forwardRef27(function StnTabPanel2({
|
|
4101
4150
|
value,
|
|
4102
4151
|
current,
|
|
4103
4152
|
padding = "md",
|
|
@@ -4117,7 +4166,7 @@ var StnTabPanel = forwardRef26(function StnTabPanel2({
|
|
|
4117
4166
|
padding && `padding-${padding}`,
|
|
4118
4167
|
className
|
|
4119
4168
|
].filter(Boolean).join(" ");
|
|
4120
|
-
return /* @__PURE__ */
|
|
4169
|
+
return /* @__PURE__ */ jsx36(
|
|
4121
4170
|
"div",
|
|
4122
4171
|
{
|
|
4123
4172
|
ref,
|
|
@@ -4132,9 +4181,9 @@ var StnTabPanel = forwardRef26(function StnTabPanel2({
|
|
|
4132
4181
|
});
|
|
4133
4182
|
|
|
4134
4183
|
// src/components/tabs/StnTabs.tsx
|
|
4135
|
-
import { jsx as
|
|
4184
|
+
import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4136
4185
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect8;
|
|
4137
|
-
var StnTabsRoot =
|
|
4186
|
+
var StnTabsRoot = forwardRef28(function StnTabs({
|
|
4138
4187
|
value: controlledValue,
|
|
4139
4188
|
defaultValue,
|
|
4140
4189
|
onChange,
|
|
@@ -4257,7 +4306,7 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4257
4306
|
className
|
|
4258
4307
|
].filter(Boolean).join(" ");
|
|
4259
4308
|
const content = /* @__PURE__ */ jsxs27("div", { ref, className: classList, ...rest, children: [
|
|
4260
|
-
showScrollButtons && /* @__PURE__ */
|
|
4309
|
+
showScrollButtons && /* @__PURE__ */ jsx37(
|
|
4261
4310
|
"button",
|
|
4262
4311
|
{
|
|
4263
4312
|
type: "button",
|
|
@@ -4265,7 +4314,7 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4265
4314
|
disabled: !canScrollStart,
|
|
4266
4315
|
className: "stn-tabs__scroll-button start",
|
|
4267
4316
|
onClick: handleScrollLeft,
|
|
4268
|
-
children: /* @__PURE__ */
|
|
4317
|
+
children: /* @__PURE__ */ jsx37(
|
|
4269
4318
|
"svg",
|
|
4270
4319
|
{
|
|
4271
4320
|
width: "16",
|
|
@@ -4276,19 +4325,19 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4276
4325
|
strokeWidth: "2",
|
|
4277
4326
|
strokeLinecap: "round",
|
|
4278
4327
|
strokeLinejoin: "round",
|
|
4279
|
-
children: /* @__PURE__ */
|
|
4328
|
+
children: /* @__PURE__ */ jsx37("polyline", { points: "15 18 9 12 15 6" })
|
|
4280
4329
|
}
|
|
4281
4330
|
)
|
|
4282
4331
|
}
|
|
4283
4332
|
),
|
|
4284
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ jsx37(
|
|
4285
4334
|
"div",
|
|
4286
4335
|
{
|
|
4287
4336
|
ref: scrollerRef,
|
|
4288
4337
|
className: "stn-tabs__scroller",
|
|
4289
4338
|
onScroll: updateScrollState,
|
|
4290
4339
|
children: /* @__PURE__ */ jsxs27("ul", { ref: listRef, role: "tablist", className: "stn-tabs__list", children: [
|
|
4291
|
-
/* @__PURE__ */
|
|
4340
|
+
/* @__PURE__ */ jsx37(
|
|
4292
4341
|
"div",
|
|
4293
4342
|
{
|
|
4294
4343
|
className: "stn-tabs__indicator",
|
|
@@ -4299,7 +4348,7 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4299
4348
|
}
|
|
4300
4349
|
}
|
|
4301
4350
|
),
|
|
4302
|
-
items && items.length > 0 ? items.map((item) => /* @__PURE__ */
|
|
4351
|
+
items && items.length > 0 ? items.map((item) => /* @__PURE__ */ jsx37(
|
|
4303
4352
|
StnTab,
|
|
4304
4353
|
{
|
|
4305
4354
|
value: item.value,
|
|
@@ -4317,7 +4366,7 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4317
4366
|
] })
|
|
4318
4367
|
}
|
|
4319
4368
|
),
|
|
4320
|
-
showScrollButtons && /* @__PURE__ */
|
|
4369
|
+
showScrollButtons && /* @__PURE__ */ jsx37(
|
|
4321
4370
|
"button",
|
|
4322
4371
|
{
|
|
4323
4372
|
type: "button",
|
|
@@ -4325,7 +4374,7 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4325
4374
|
disabled: !canScrollEnd,
|
|
4326
4375
|
className: "stn-tabs__scroll-button end",
|
|
4327
4376
|
onClick: handleScrollRight,
|
|
4328
|
-
children: /* @__PURE__ */
|
|
4377
|
+
children: /* @__PURE__ */ jsx37(
|
|
4329
4378
|
"svg",
|
|
4330
4379
|
{
|
|
4331
4380
|
width: "16",
|
|
@@ -4336,14 +4385,14 @@ var StnTabsRoot = forwardRef27(function StnTabs({
|
|
|
4336
4385
|
strokeWidth: "2",
|
|
4337
4386
|
strokeLinecap: "round",
|
|
4338
4387
|
strokeLinejoin: "round",
|
|
4339
|
-
children: /* @__PURE__ */
|
|
4388
|
+
children: /* @__PURE__ */ jsx37("polyline", { points: "9 18 15 12 9 6" })
|
|
4340
4389
|
}
|
|
4341
4390
|
)
|
|
4342
4391
|
}
|
|
4343
4392
|
)
|
|
4344
4393
|
] });
|
|
4345
4394
|
if (!context) {
|
|
4346
|
-
return /* @__PURE__ */
|
|
4395
|
+
return /* @__PURE__ */ jsx37(
|
|
4347
4396
|
StnTabContextProvider,
|
|
4348
4397
|
{
|
|
4349
4398
|
value: activeValue,
|
|
@@ -4370,9 +4419,9 @@ import {
|
|
|
4370
4419
|
useRef as useRef6,
|
|
4371
4420
|
useState as useState10
|
|
4372
4421
|
} from "react";
|
|
4373
|
-
import { jsx as
|
|
4422
|
+
import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4374
4423
|
function resolveGlyph(node) {
|
|
4375
|
-
if (typeof node === "string") return /* @__PURE__ */
|
|
4424
|
+
if (typeof node === "string") return /* @__PURE__ */ jsx38(StnIcon, { name: node, size: 16, color: "currentColor" });
|
|
4376
4425
|
return node;
|
|
4377
4426
|
}
|
|
4378
4427
|
function modifierClass(modifier) {
|
|
@@ -4526,7 +4575,7 @@ function StnDropdown({
|
|
|
4526
4575
|
"aria-invalid": error || void 0,
|
|
4527
4576
|
...!hasHelper ? divRest : {},
|
|
4528
4577
|
children: [
|
|
4529
|
-
/* @__PURE__ */
|
|
4578
|
+
/* @__PURE__ */ jsx38(
|
|
4530
4579
|
"div",
|
|
4531
4580
|
{
|
|
4532
4581
|
className: cn("selected", !hasValue && placeholder && "is-placeholder"),
|
|
@@ -4543,7 +4592,7 @@ function StnDropdown({
|
|
|
4543
4592
|
children: displayLabel
|
|
4544
4593
|
}
|
|
4545
4594
|
),
|
|
4546
|
-
/* @__PURE__ */
|
|
4595
|
+
/* @__PURE__ */ jsx38(
|
|
4547
4596
|
"ul",
|
|
4548
4597
|
{
|
|
4549
4598
|
className: cn("select_option", "stn-scroll", "vertical", "thin"),
|
|
@@ -4566,15 +4615,15 @@ function StnDropdown({
|
|
|
4566
4615
|
if (e.key === "Enter" && !opt.disabled) pick(opt.value);
|
|
4567
4616
|
},
|
|
4568
4617
|
children: [
|
|
4569
|
-
/* @__PURE__ */
|
|
4618
|
+
/* @__PURE__ */ jsx38(
|
|
4570
4619
|
"span",
|
|
4571
4620
|
{
|
|
4572
4621
|
className: cn("stn-dropdown__check", isSelected && "is-checked"),
|
|
4573
4622
|
"aria-hidden": "true",
|
|
4574
|
-
children: isSelected ? /* @__PURE__ */
|
|
4623
|
+
children: isSelected ? /* @__PURE__ */ jsx38(StnIcon, { name: "line/check", size: 14, color: "currentColor" }) : null
|
|
4575
4624
|
}
|
|
4576
4625
|
),
|
|
4577
|
-
/* @__PURE__ */
|
|
4626
|
+
/* @__PURE__ */ jsx38("span", { className: "stn-dropdown__item-label", children: opt.label })
|
|
4578
4627
|
]
|
|
4579
4628
|
},
|
|
4580
4629
|
opt.value
|
|
@@ -4590,9 +4639,9 @@ function StnDropdown({
|
|
|
4590
4639
|
if (!hasWrap) return dropdownNode;
|
|
4591
4640
|
const resolvedLabelIcon = labelIcon ?? icon;
|
|
4592
4641
|
const labelElement = hasLabel ? /* @__PURE__ */ jsxs28("label", { htmlFor: rootId, className: "stn-dropdown__label", children: [
|
|
4593
|
-
resolvedLabelIcon ? /* @__PURE__ */
|
|
4594
|
-
/* @__PURE__ */
|
|
4595
|
-
required && /* @__PURE__ */
|
|
4642
|
+
resolvedLabelIcon ? /* @__PURE__ */ jsx38("span", { className: "stn-dropdown__label-icon", "aria-hidden": "true", children: resolveGlyph(resolvedLabelIcon) }) : null,
|
|
4643
|
+
/* @__PURE__ */ jsx38("span", { className: "stn-dropdown__label-text", children: label }),
|
|
4644
|
+
required && /* @__PURE__ */ jsx38("span", { className: "stn-dropdown__required", "aria-hidden": "true", children: "*" })
|
|
4596
4645
|
] }) : null;
|
|
4597
4646
|
const isRow = labelPosition === "left" || labelPosition === "right";
|
|
4598
4647
|
return /* @__PURE__ */ jsxs28(
|
|
@@ -4615,7 +4664,7 @@ function StnDropdown({
|
|
|
4615
4664
|
hasLabel && (labelPosition === "left" || labelPosition === "top") ? labelElement : null,
|
|
4616
4665
|
/* @__PURE__ */ jsxs28("div", { className: "stn-dropdown-wrap__body", children: [
|
|
4617
4666
|
dropdownNode,
|
|
4618
|
-
hasHelper && /* @__PURE__ */
|
|
4667
|
+
hasHelper && /* @__PURE__ */ jsx38(
|
|
4619
4668
|
"span",
|
|
4620
4669
|
{
|
|
4621
4670
|
id: helperId,
|
|
@@ -4631,12 +4680,12 @@ function StnDropdown({
|
|
|
4631
4680
|
}
|
|
4632
4681
|
|
|
4633
4682
|
// src/components/StnDropdownMenu.tsx
|
|
4634
|
-
import { jsx as
|
|
4683
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
4635
4684
|
function StnDropdownMenu({
|
|
4636
4685
|
className,
|
|
4637
4686
|
...rest
|
|
4638
4687
|
}) {
|
|
4639
|
-
return /* @__PURE__ */
|
|
4688
|
+
return /* @__PURE__ */ jsx39(
|
|
4640
4689
|
StnDropdown,
|
|
4641
4690
|
{
|
|
4642
4691
|
size: "xl",
|
|
@@ -4647,8 +4696,8 @@ function StnDropdownMenu({
|
|
|
4647
4696
|
}
|
|
4648
4697
|
|
|
4649
4698
|
// src/components/StnTextField.tsx
|
|
4650
|
-
import { forwardRef as
|
|
4651
|
-
import { jsx as
|
|
4699
|
+
import { forwardRef as forwardRef29, useId as useId11 } from "react";
|
|
4700
|
+
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4652
4701
|
function normalizeSize(size) {
|
|
4653
4702
|
if (!size) return "md";
|
|
4654
4703
|
const l = String(size).toLowerCase();
|
|
@@ -4672,10 +4721,10 @@ function colorClass(color) {
|
|
|
4672
4721
|
return color;
|
|
4673
4722
|
}
|
|
4674
4723
|
function resolveGlyph2(node) {
|
|
4675
|
-
if (typeof node === "string") return /* @__PURE__ */
|
|
4724
|
+
if (typeof node === "string") return /* @__PURE__ */ jsx40(StnIcon, { name: node, size: 16, color: "currentColor" });
|
|
4676
4725
|
return node;
|
|
4677
4726
|
}
|
|
4678
|
-
var StnTextField =
|
|
4727
|
+
var StnTextField = forwardRef29(function StnTextField2({
|
|
4679
4728
|
size = "M",
|
|
4680
4729
|
variant = "outlined",
|
|
4681
4730
|
color,
|
|
@@ -4721,7 +4770,7 @@ var StnTextField = forwardRef28(function StnTextField2({
|
|
|
4721
4770
|
hasSlot && "with-icon",
|
|
4722
4771
|
className
|
|
4723
4772
|
);
|
|
4724
|
-
const input = /* @__PURE__ */
|
|
4773
|
+
const input = /* @__PURE__ */ jsx40(
|
|
4725
4774
|
"input",
|
|
4726
4775
|
{
|
|
4727
4776
|
ref,
|
|
@@ -4737,15 +4786,15 @@ var StnTextField = forwardRef28(function StnTextField2({
|
|
|
4737
4786
|
}
|
|
4738
4787
|
);
|
|
4739
4788
|
const field = hasSlot ? /* @__PURE__ */ jsxs29("div", { className: fieldClass, style: hasWrap ? void 0 : widthProps.style, children: [
|
|
4740
|
-
hasLeft ? /* @__PURE__ */
|
|
4789
|
+
hasLeft ? /* @__PURE__ */ jsx40("span", { className: "stn-text-field__icon-left", "aria-hidden": true, children: /* @__PURE__ */ jsx40("span", { className: "stn-text-field__icon-box", children: resolveGlyph2(leftNode) }) }) : null,
|
|
4741
4790
|
input,
|
|
4742
|
-
hasRight ? /* @__PURE__ */
|
|
4791
|
+
hasRight ? /* @__PURE__ */ jsx40("span", { className: "stn-text-field__icon-right", "aria-hidden": true, children: /* @__PURE__ */ jsx40("span", { className: "stn-text-field__icon-box", children: resolveGlyph2(rightNode) }) }) : null
|
|
4743
4792
|
] }) : input;
|
|
4744
4793
|
if (!hasWrap) return field;
|
|
4745
4794
|
const labelElement = hasLabel ? /* @__PURE__ */ jsxs29("label", { htmlFor: id, className: "stn-text-field__label", children: [
|
|
4746
|
-
labelIcon ? /* @__PURE__ */
|
|
4747
|
-
/* @__PURE__ */
|
|
4748
|
-
required && /* @__PURE__ */
|
|
4795
|
+
labelIcon ? /* @__PURE__ */ jsx40("span", { className: "stn-text-field__label-icon", "aria-hidden": "true", children: resolveGlyph2(labelIcon) }) : null,
|
|
4796
|
+
/* @__PURE__ */ jsx40("span", { className: "stn-text-field__label-text", children: label }),
|
|
4797
|
+
required && /* @__PURE__ */ jsx40("span", { className: "stn-text-field__required", "aria-hidden": "true", children: "*" })
|
|
4749
4798
|
] }) : null;
|
|
4750
4799
|
const isRow = labelPosition === "left" || labelPosition === "right";
|
|
4751
4800
|
return /* @__PURE__ */ jsxs29(
|
|
@@ -4764,7 +4813,7 @@ var StnTextField = forwardRef28(function StnTextField2({
|
|
|
4764
4813
|
hasLabel && (labelPosition === "left" || labelPosition === "top") ? labelElement : null,
|
|
4765
4814
|
/* @__PURE__ */ jsxs29("div", { className: "stn-text-field-wrap__body", children: [
|
|
4766
4815
|
field,
|
|
4767
|
-
hasHelper && /* @__PURE__ */
|
|
4816
|
+
hasHelper && /* @__PURE__ */ jsx40(
|
|
4768
4817
|
"p",
|
|
4769
4818
|
{
|
|
4770
4819
|
id: helperId,
|
|
@@ -4781,11 +4830,11 @@ var StnTextField = forwardRef28(function StnTextField2({
|
|
|
4781
4830
|
|
|
4782
4831
|
// src/components/StnTextArea.tsx
|
|
4783
4832
|
import {
|
|
4784
|
-
forwardRef as
|
|
4833
|
+
forwardRef as forwardRef30,
|
|
4785
4834
|
useId as useId12,
|
|
4786
4835
|
useState as useState11
|
|
4787
4836
|
} from "react";
|
|
4788
|
-
import { jsx as
|
|
4837
|
+
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4789
4838
|
function normalizeSize2(size) {
|
|
4790
4839
|
return size ?? "md";
|
|
4791
4840
|
}
|
|
@@ -4806,10 +4855,10 @@ function resizeClass(resize) {
|
|
|
4806
4855
|
return "resize-vertical";
|
|
4807
4856
|
}
|
|
4808
4857
|
function resolveGlyph3(node) {
|
|
4809
|
-
if (typeof node === "string") return /* @__PURE__ */
|
|
4858
|
+
if (typeof node === "string") return /* @__PURE__ */ jsx41(StnIcon, { name: node, size: 16, color: "currentColor" });
|
|
4810
4859
|
return node;
|
|
4811
4860
|
}
|
|
4812
|
-
var StnTextArea =
|
|
4861
|
+
var StnTextArea = forwardRef30(function StnTextArea2({
|
|
4813
4862
|
size = "md",
|
|
4814
4863
|
variant = "outlined",
|
|
4815
4864
|
color,
|
|
@@ -4866,7 +4915,7 @@ var StnTextArea = forwardRef29(function StnTextArea2({
|
|
|
4866
4915
|
invalid && "invalid",
|
|
4867
4916
|
className
|
|
4868
4917
|
);
|
|
4869
|
-
const textareaElement = /* @__PURE__ */
|
|
4918
|
+
const textareaElement = /* @__PURE__ */ jsx41(
|
|
4870
4919
|
"textarea",
|
|
4871
4920
|
{
|
|
4872
4921
|
ref,
|
|
@@ -4889,9 +4938,9 @@ var StnTextArea = forwardRef29(function StnTextArea2({
|
|
|
4889
4938
|
return textareaElement;
|
|
4890
4939
|
}
|
|
4891
4940
|
const labelElement = hasLabel ? /* @__PURE__ */ jsxs30("label", { htmlFor: id, className: "stn-text-area__label", children: [
|
|
4892
|
-
labelIcon ? /* @__PURE__ */
|
|
4893
|
-
/* @__PURE__ */
|
|
4894
|
-
required && /* @__PURE__ */
|
|
4941
|
+
labelIcon ? /* @__PURE__ */ jsx41("span", { className: "stn-text-area__label-icon", "aria-hidden": "true", children: resolveGlyph3(labelIcon) }) : null,
|
|
4942
|
+
/* @__PURE__ */ jsx41("span", { className: "stn-text-area__label-text", children: label }),
|
|
4943
|
+
required && /* @__PURE__ */ jsx41("span", { className: "stn-text-area__required", "aria-hidden": "true", children: "*" })
|
|
4895
4944
|
] }) : null;
|
|
4896
4945
|
const isRow = labelPosition === "left" || labelPosition === "right";
|
|
4897
4946
|
return /* @__PURE__ */ jsxs30(
|
|
@@ -4911,14 +4960,14 @@ var StnTextArea = forwardRef29(function StnTextArea2({
|
|
|
4911
4960
|
/* @__PURE__ */ jsxs30("div", { className: "stn-text-area-wrap__body", children: [
|
|
4912
4961
|
textareaElement,
|
|
4913
4962
|
hasFooter && /* @__PURE__ */ jsxs30("div", { className: "stn-text-area__footer", children: [
|
|
4914
|
-
hasHelper ? /* @__PURE__ */
|
|
4963
|
+
hasHelper ? /* @__PURE__ */ jsx41(
|
|
4915
4964
|
"p",
|
|
4916
4965
|
{
|
|
4917
4966
|
id: helperId,
|
|
4918
4967
|
className: cn("stn-text-area__helper", invalid && "stn-text-area__helper--error"),
|
|
4919
4968
|
children: helperText
|
|
4920
4969
|
}
|
|
4921
|
-
) : /* @__PURE__ */
|
|
4970
|
+
) : /* @__PURE__ */ jsx41("span", {}),
|
|
4922
4971
|
showCount && /* @__PURE__ */ jsxs30("span", { className: "stn-text-area__count", children: [
|
|
4923
4972
|
currentLength,
|
|
4924
4973
|
maxLength != null ? ` / ${maxLength}` : ""
|
|
@@ -4933,13 +4982,13 @@ var StnTextArea = forwardRef29(function StnTextArea2({
|
|
|
4933
4982
|
StnTextArea.displayName = "StnTextArea";
|
|
4934
4983
|
|
|
4935
4984
|
// src/components/StnDateRangeField.tsx
|
|
4936
|
-
import { forwardRef as
|
|
4985
|
+
import { forwardRef as forwardRef31, useId as useId13 } from "react";
|
|
4937
4986
|
import {
|
|
4938
4987
|
formatStnDateRangeFieldValue
|
|
4939
4988
|
} from "@stn-uiux/pub-ui/data/stnDateRangeField";
|
|
4940
|
-
import { jsx as
|
|
4989
|
+
import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4941
4990
|
function resolveGlyph4(node) {
|
|
4942
|
-
if (typeof node === "string") return /* @__PURE__ */
|
|
4991
|
+
if (typeof node === "string") return /* @__PURE__ */ jsx42(StnIcon, { name: node, size: 16, color: "currentColor" });
|
|
4943
4992
|
return node;
|
|
4944
4993
|
}
|
|
4945
4994
|
function normalizeSize3(size) {
|
|
@@ -4963,7 +5012,7 @@ function resolveValue(value, format) {
|
|
|
4963
5012
|
const trimmed = value.trim();
|
|
4964
5013
|
return trimmed || null;
|
|
4965
5014
|
}
|
|
4966
|
-
var StnDateRangeField =
|
|
5015
|
+
var StnDateRangeField = forwardRef31(function StnDateRangeField2({
|
|
4967
5016
|
size = "md",
|
|
4968
5017
|
variant = "outline",
|
|
4969
5018
|
start,
|
|
@@ -4997,7 +5046,7 @@ var StnDateRangeField = forwardRef30(function StnDateRangeField2({
|
|
|
4997
5046
|
const hasLabel = label != null && label !== "";
|
|
4998
5047
|
const hasHelper = helperText != null && helperText !== "";
|
|
4999
5048
|
const hasWrap = hasLabel || hasHelper;
|
|
5000
|
-
const buttonNode = /* @__PURE__ */
|
|
5049
|
+
const buttonNode = /* @__PURE__ */ jsx42(
|
|
5001
5050
|
"button",
|
|
5002
5051
|
{
|
|
5003
5052
|
ref,
|
|
@@ -5019,20 +5068,20 @@ var StnDateRangeField = forwardRef30(function StnDateRangeField2({
|
|
|
5019
5068
|
...rest,
|
|
5020
5069
|
children: /* @__PURE__ */ jsxs31("span", { className: "stn-date-range-field__inner", children: [
|
|
5021
5070
|
/* @__PURE__ */ jsxs31("span", { className: "stn-date-range-field__text", children: [
|
|
5022
|
-
/* @__PURE__ */
|
|
5023
|
-
/* @__PURE__ */
|
|
5024
|
-
/* @__PURE__ */
|
|
5071
|
+
/* @__PURE__ */ jsx42("span", { className: cn("stn-date-range-field__value", !startText && "is-placeholder"), children: startText ?? startPlaceholder }),
|
|
5072
|
+
/* @__PURE__ */ jsx42("span", { className: "stn-date-range-field__sep", "aria-hidden": "true", children: "~" }),
|
|
5073
|
+
/* @__PURE__ */ jsx42("span", { className: cn("stn-date-range-field__value", !endText && "is-placeholder"), children: endText ?? endPlaceholder })
|
|
5025
5074
|
] }),
|
|
5026
|
-
/* @__PURE__ */
|
|
5075
|
+
/* @__PURE__ */ jsx42("span", { className: "stn-date-range-field__icon", "aria-hidden": "true" })
|
|
5027
5076
|
] })
|
|
5028
5077
|
}
|
|
5029
5078
|
);
|
|
5030
5079
|
if (!hasWrap) return buttonNode;
|
|
5031
5080
|
const resolvedLabelIcon = labelIcon ?? icon;
|
|
5032
5081
|
const labelElement = hasLabel ? /* @__PURE__ */ jsxs31("label", { htmlFor: rootId, className: "stn-date-range-field__label", children: [
|
|
5033
|
-
resolvedLabelIcon ? /* @__PURE__ */
|
|
5034
|
-
/* @__PURE__ */
|
|
5035
|
-
required && /* @__PURE__ */
|
|
5082
|
+
resolvedLabelIcon ? /* @__PURE__ */ jsx42("span", { className: "stn-date-range-field__label-icon", "aria-hidden": "true", children: resolveGlyph4(resolvedLabelIcon) }) : null,
|
|
5083
|
+
/* @__PURE__ */ jsx42("span", { className: "stn-date-range-field__label-text", children: label }),
|
|
5084
|
+
required && /* @__PURE__ */ jsx42("span", { className: "stn-date-range-field__required", "aria-hidden": "true", children: "*" })
|
|
5036
5085
|
] }) : null;
|
|
5037
5086
|
const isRow = labelPosition === "left" || labelPosition === "right";
|
|
5038
5087
|
return /* @__PURE__ */ jsxs31(
|
|
@@ -5053,7 +5102,7 @@ var StnDateRangeField = forwardRef30(function StnDateRangeField2({
|
|
|
5053
5102
|
hasLabel && (labelPosition === "left" || labelPosition === "top") ? labelElement : null,
|
|
5054
5103
|
/* @__PURE__ */ jsxs31("div", { className: "stn-date-range-field-wrap__body", children: [
|
|
5055
5104
|
buttonNode,
|
|
5056
|
-
hasHelper && /* @__PURE__ */
|
|
5105
|
+
hasHelper && /* @__PURE__ */ jsx42(
|
|
5057
5106
|
"span",
|
|
5058
5107
|
{
|
|
5059
5108
|
id: `${rootId}-helper`,
|
|
@@ -5078,7 +5127,7 @@ import {
|
|
|
5078
5127
|
isValidElement as isValidElement4,
|
|
5079
5128
|
cloneElement as cloneElement4
|
|
5080
5129
|
} from "react";
|
|
5081
|
-
import { jsx as
|
|
5130
|
+
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5082
5131
|
function sizeClass4(size) {
|
|
5083
5132
|
return size;
|
|
5084
5133
|
}
|
|
@@ -5143,7 +5192,7 @@ function StnLabelPrefix({
|
|
|
5143
5192
|
);
|
|
5144
5193
|
const defaultCheckboxSize = size === "lg" ? "md" : "sm";
|
|
5145
5194
|
const resolvedCheckboxSize = checkboxSize ?? defaultCheckboxSize;
|
|
5146
|
-
const checkboxNode = checkboxSlot ?? (checkbox ? /* @__PURE__ */
|
|
5195
|
+
const checkboxNode = checkboxSlot ?? (checkbox ? /* @__PURE__ */ jsx43("span", { className: "stn-label-prefix__checkbox", children: /* @__PURE__ */ jsx43(
|
|
5147
5196
|
StnCheckbox,
|
|
5148
5197
|
{
|
|
5149
5198
|
size: resolvedCheckboxSize,
|
|
@@ -5157,12 +5206,12 @@ function StnLabelPrefix({
|
|
|
5157
5206
|
) }) : null);
|
|
5158
5207
|
const labelSection = /* @__PURE__ */ jsxs32("span", { className: "stn-label-prefix__label", children: [
|
|
5159
5208
|
checkboxNode,
|
|
5160
|
-
labelIcon != null && /* @__PURE__ */
|
|
5209
|
+
labelIcon != null && /* @__PURE__ */ jsx43("span", { className: "stn-label-prefix__icon", "aria-hidden": "true", children: labelIcon }),
|
|
5161
5210
|
/* @__PURE__ */ jsxs32("span", { className: "stn-label-prefix__text", children: [
|
|
5162
5211
|
label,
|
|
5163
|
-
required && /* @__PURE__ */
|
|
5212
|
+
required && /* @__PURE__ */ jsx43("span", { className: "stn-label-prefix__required", "aria-hidden": "true", children: "*" })
|
|
5164
5213
|
] }),
|
|
5165
|
-
/* @__PURE__ */
|
|
5214
|
+
/* @__PURE__ */ jsx43("span", { className: "stn-label-prefix__divider", "aria-hidden": "true" })
|
|
5166
5215
|
] });
|
|
5167
5216
|
let renderedControl = children;
|
|
5168
5217
|
if (isControlDisabled && isValidElement4(children) && typeof children.type !== "string") {
|
|
@@ -5182,7 +5231,7 @@ function StnLabelPrefix({
|
|
|
5182
5231
|
...!hasHelper ? rest : {},
|
|
5183
5232
|
children: [
|
|
5184
5233
|
labelSection,
|
|
5185
|
-
/* @__PURE__ */
|
|
5234
|
+
/* @__PURE__ */ jsx43("span", { className: "stn-label-prefix__control", children: renderedControl })
|
|
5186
5235
|
]
|
|
5187
5236
|
}
|
|
5188
5237
|
);
|
|
@@ -5203,7 +5252,7 @@ function StnLabelPrefix({
|
|
|
5203
5252
|
...rest,
|
|
5204
5253
|
children: [
|
|
5205
5254
|
prefixNode,
|
|
5206
|
-
/* @__PURE__ */
|
|
5255
|
+
/* @__PURE__ */ jsx43(
|
|
5207
5256
|
"p",
|
|
5208
5257
|
{
|
|
5209
5258
|
id: helperId,
|
|
@@ -5269,14 +5318,14 @@ import {
|
|
|
5269
5318
|
} from "@stn-uiux/pub-ui/data/stnSearchRequirement";
|
|
5270
5319
|
|
|
5271
5320
|
// src/patterns/search/StnSearchRequirementBar.tsx
|
|
5272
|
-
import { jsx as
|
|
5321
|
+
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5273
5322
|
function StnSearchRequirementBar({
|
|
5274
5323
|
children,
|
|
5275
5324
|
className,
|
|
5276
5325
|
density = "default",
|
|
5277
5326
|
...rest
|
|
5278
5327
|
}) {
|
|
5279
|
-
return /* @__PURE__ */
|
|
5328
|
+
return /* @__PURE__ */ jsx44(
|
|
5280
5329
|
"div",
|
|
5281
5330
|
{
|
|
5282
5331
|
className: cn(
|
|
@@ -5292,7 +5341,7 @@ function StnSearchRequirementBar({
|
|
|
5292
5341
|
);
|
|
5293
5342
|
}
|
|
5294
5343
|
function StnSearchRequirementBarFields({ children, className, ...rest }) {
|
|
5295
|
-
return /* @__PURE__ */
|
|
5344
|
+
return /* @__PURE__ */ jsx44("div", { className: cn("stn-search-requirement__fields", className), "data-stn-search-requirement": "fields", ...rest, children });
|
|
5296
5345
|
}
|
|
5297
5346
|
function StnSearchRequirementBarField({
|
|
5298
5347
|
label,
|
|
@@ -5303,19 +5352,19 @@ function StnSearchRequirementBarField({
|
|
|
5303
5352
|
...rest
|
|
5304
5353
|
}) {
|
|
5305
5354
|
return /* @__PURE__ */ jsxs33("div", { className: cn("stn-search-requirement__field", className), "data-stn-search-requirement": "field", ...rest, children: [
|
|
5306
|
-
/* @__PURE__ */
|
|
5307
|
-
/* @__PURE__ */
|
|
5355
|
+
/* @__PURE__ */ jsx44("span", { className: cn("stn-search-requirement__label", labelClassName), children: label }),
|
|
5356
|
+
/* @__PURE__ */ jsx44("div", { className: cn("stn-search-requirement__control", controlClassName), children })
|
|
5308
5357
|
] });
|
|
5309
5358
|
}
|
|
5310
5359
|
function StnSearchRequirementBarSearchButton({
|
|
5311
5360
|
children = "\uAC80\uC0C9",
|
|
5312
5361
|
size = "md",
|
|
5313
5362
|
variant = "outlined",
|
|
5314
|
-
icon = /* @__PURE__ */
|
|
5363
|
+
icon = /* @__PURE__ */ jsx44(StnIcon, { name: "line/search", size: 16, color: "currentColor" }),
|
|
5315
5364
|
className,
|
|
5316
5365
|
...rest
|
|
5317
5366
|
}) {
|
|
5318
|
-
return /* @__PURE__ */
|
|
5367
|
+
return /* @__PURE__ */ jsx44(
|
|
5319
5368
|
StnButton,
|
|
5320
5369
|
{
|
|
5321
5370
|
size,
|
|
@@ -5337,10 +5386,10 @@ function StnSearchRequirementBarExport({
|
|
|
5337
5386
|
"aria-label": ariaLabel = "Excel\uBCF4\uB0B4\uAE30",
|
|
5338
5387
|
...rest
|
|
5339
5388
|
}) {
|
|
5340
|
-
return /* @__PURE__ */
|
|
5389
|
+
return /* @__PURE__ */ jsx44(
|
|
5341
5390
|
StnButton,
|
|
5342
5391
|
{
|
|
5343
|
-
icon: icon ?? /* @__PURE__ */
|
|
5392
|
+
icon: icon ?? /* @__PURE__ */ jsx44(StnIcon, { name, size: 24, color: "currentColor" }),
|
|
5344
5393
|
variant,
|
|
5345
5394
|
size,
|
|
5346
5395
|
"aria-label": ariaLabel,
|
|
@@ -5351,7 +5400,7 @@ function StnSearchRequirementBarExport({
|
|
|
5351
5400
|
);
|
|
5352
5401
|
}
|
|
5353
5402
|
function StnSearchRequirementBarDivider({ className, ...rest }) {
|
|
5354
|
-
return /* @__PURE__ */
|
|
5403
|
+
return /* @__PURE__ */ jsx44(
|
|
5355
5404
|
"span",
|
|
5356
5405
|
{
|
|
5357
5406
|
className: cn("stn-search-requirement__divider", className),
|
|
@@ -5443,7 +5492,7 @@ function normalizeRange(start, end) {
|
|
|
5443
5492
|
}
|
|
5444
5493
|
|
|
5445
5494
|
// src/components/datePicker/StnDateRangePicker.tsx
|
|
5446
|
-
import { jsx as
|
|
5495
|
+
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5447
5496
|
function useDraftRange(value, open) {
|
|
5448
5497
|
const [draft, setDraft] = useState13(value);
|
|
5449
5498
|
useEffect10(() => {
|
|
@@ -5456,17 +5505,17 @@ function CalendarPanel({ month, range, onPick, onPrev, onNext, showPrev = true,
|
|
|
5456
5505
|
const { start, end } = range;
|
|
5457
5506
|
return /* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-panel", children: [
|
|
5458
5507
|
/* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-panel__header", children: [
|
|
5459
|
-
showPrev ? /* @__PURE__ */
|
|
5460
|
-
/* @__PURE__ */
|
|
5461
|
-
showNext ? /* @__PURE__ */
|
|
5508
|
+
showPrev ? /* @__PURE__ */ jsx45("button", { type: "button", className: "stn-date-picker-panel__nav", onClick: onPrev, "aria-label": "Previous month", children: "\u2039" }) : /* @__PURE__ */ jsx45("span", { className: "stn-date-picker-panel__nav", "aria-hidden": "true" }),
|
|
5509
|
+
/* @__PURE__ */ jsx45("p", { className: "stn-date-picker-panel__title", children: formatMonthTitle(month) }),
|
|
5510
|
+
showNext ? /* @__PURE__ */ jsx45("button", { type: "button", className: "stn-date-picker-panel__nav", onClick: onNext, "aria-label": "Next month", children: "\u203A" }) : /* @__PURE__ */ jsx45("span", { className: "stn-date-picker-panel__nav", "aria-hidden": "true" })
|
|
5462
5511
|
] }),
|
|
5463
5512
|
/* @__PURE__ */ jsxs34("table", { className: "stn-date-picker-content", children: [
|
|
5464
|
-
/* @__PURE__ */
|
|
5465
|
-
/* @__PURE__ */
|
|
5513
|
+
/* @__PURE__ */ jsx45("thead", { children: /* @__PURE__ */ jsx45("tr", { children: STN_DATE_PICKER_WEEKDAYS.map((label) => /* @__PURE__ */ jsx45("th", { scope: "col", children: label }, label)) }) }),
|
|
5514
|
+
/* @__PURE__ */ jsx45("tbody", { children: Array.from({ length: 6 }, (_, row) => /* @__PURE__ */ jsx45("tr", { children: days.slice(row * 7, row * 7 + 7).map((cell) => {
|
|
5466
5515
|
const inRange = start && end && isBetweenDays(cell.date, start, end);
|
|
5467
5516
|
const isStart = start ? isSameDay(cell.date, start) : false;
|
|
5468
5517
|
const isEnd = end ? isSameDay(cell.date, end) : false;
|
|
5469
|
-
return /* @__PURE__ */
|
|
5518
|
+
return /* @__PURE__ */ jsx45(
|
|
5470
5519
|
"td",
|
|
5471
5520
|
{
|
|
5472
5521
|
className: cn(
|
|
@@ -5476,7 +5525,7 @@ function CalendarPanel({ month, range, onPick, onPrev, onNext, showPrev = true,
|
|
|
5476
5525
|
isStart && "stn-date-picker-cell--range-start",
|
|
5477
5526
|
isEnd && "stn-date-picker-cell--range-end"
|
|
5478
5527
|
),
|
|
5479
|
-
children: /* @__PURE__ */
|
|
5528
|
+
children: /* @__PURE__ */ jsx45(
|
|
5480
5529
|
"button",
|
|
5481
5530
|
{
|
|
5482
5531
|
type: "button",
|
|
@@ -5499,15 +5548,15 @@ function TimeColumns({ label, value, onChange }) {
|
|
|
5499
5548
|
const base = value ?? /* @__PURE__ */ new Date();
|
|
5500
5549
|
const patch = (h, m, s) => onChange(setTimePart(base, h, m, s));
|
|
5501
5550
|
return /* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-time__side", children: [
|
|
5502
|
-
/* @__PURE__ */
|
|
5551
|
+
/* @__PURE__ */ jsx45("span", { className: "stn-date-picker-time__label", children: label }),
|
|
5503
5552
|
/* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-time__columns", children: [
|
|
5504
|
-
/* @__PURE__ */
|
|
5553
|
+
/* @__PURE__ */ jsx45(
|
|
5505
5554
|
StnScroll,
|
|
5506
5555
|
{
|
|
5507
5556
|
variant: "arrows",
|
|
5508
5557
|
size: "thin",
|
|
5509
5558
|
className: "stn-date-picker-time__scroll",
|
|
5510
|
-
children: /* @__PURE__ */
|
|
5559
|
+
children: /* @__PURE__ */ jsx45("ul", { className: "stn-date-picker-time__column", "aria-label": `${label} hour`, children: Array.from({ length: 24 }, (_, h) => /* @__PURE__ */ jsx45("li", { children: /* @__PURE__ */ jsx45(
|
|
5511
5560
|
"button",
|
|
5512
5561
|
{
|
|
5513
5562
|
type: "button",
|
|
@@ -5518,13 +5567,13 @@ function TimeColumns({ label, value, onChange }) {
|
|
|
5518
5567
|
) }, h)) })
|
|
5519
5568
|
}
|
|
5520
5569
|
),
|
|
5521
|
-
/* @__PURE__ */
|
|
5570
|
+
/* @__PURE__ */ jsx45(
|
|
5522
5571
|
StnScroll,
|
|
5523
5572
|
{
|
|
5524
5573
|
variant: "arrows",
|
|
5525
5574
|
size: "thin",
|
|
5526
5575
|
className: "stn-date-picker-time__scroll",
|
|
5527
|
-
children: /* @__PURE__ */
|
|
5576
|
+
children: /* @__PURE__ */ jsx45("ul", { className: "stn-date-picker-time__column", "aria-label": `${label} minute`, children: Array.from({ length: 60 }, (_, m) => /* @__PURE__ */ jsx45("li", { children: /* @__PURE__ */ jsx45(
|
|
5528
5577
|
"button",
|
|
5529
5578
|
{
|
|
5530
5579
|
type: "button",
|
|
@@ -5535,13 +5584,13 @@ function TimeColumns({ label, value, onChange }) {
|
|
|
5535
5584
|
) }, m)) })
|
|
5536
5585
|
}
|
|
5537
5586
|
),
|
|
5538
|
-
/* @__PURE__ */
|
|
5587
|
+
/* @__PURE__ */ jsx45(
|
|
5539
5588
|
StnScroll,
|
|
5540
5589
|
{
|
|
5541
5590
|
variant: "arrows",
|
|
5542
5591
|
size: "thin",
|
|
5543
5592
|
className: "stn-date-picker-time__scroll",
|
|
5544
|
-
children: /* @__PURE__ */
|
|
5593
|
+
children: /* @__PURE__ */ jsx45("ul", { className: "stn-date-picker-time__column", "aria-label": `${label} second`, children: Array.from({ length: 60 }, (_, s) => /* @__PURE__ */ jsx45("li", { children: /* @__PURE__ */ jsx45(
|
|
5545
5594
|
"button",
|
|
5546
5595
|
{
|
|
5547
5596
|
type: "button",
|
|
@@ -5620,7 +5669,7 @@ function StnDateRangePicker({
|
|
|
5620
5669
|
left: anchorRect.left,
|
|
5621
5670
|
...style
|
|
5622
5671
|
} : style ?? {};
|
|
5623
|
-
return /* @__PURE__ */
|
|
5672
|
+
return /* @__PURE__ */ jsx45(
|
|
5624
5673
|
"div",
|
|
5625
5674
|
{
|
|
5626
5675
|
className: cn("stn-date-picker-dropdown", className),
|
|
@@ -5629,9 +5678,9 @@ function StnDateRangePicker({
|
|
|
5629
5678
|
"aria-modal": "false",
|
|
5630
5679
|
"aria-labelledby": titleId,
|
|
5631
5680
|
children: /* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-dropdown__body", children: [
|
|
5632
|
-
/* @__PURE__ */
|
|
5681
|
+
/* @__PURE__ */ jsx45("span", { id: titleId, className: "stn-sf__visually-hidden", children: "Date range picker" }),
|
|
5633
5682
|
/* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-dropdown__panels", children: [
|
|
5634
|
-
/* @__PURE__ */
|
|
5683
|
+
/* @__PURE__ */ jsx45(
|
|
5635
5684
|
CalendarPanel,
|
|
5636
5685
|
{
|
|
5637
5686
|
month: leftMonth,
|
|
@@ -5642,7 +5691,7 @@ function StnDateRangePicker({
|
|
|
5642
5691
|
showNext: false
|
|
5643
5692
|
}
|
|
5644
5693
|
),
|
|
5645
|
-
/* @__PURE__ */
|
|
5694
|
+
/* @__PURE__ */ jsx45(
|
|
5646
5695
|
CalendarPanel,
|
|
5647
5696
|
{
|
|
5648
5697
|
month: rightMonth,
|
|
@@ -5655,7 +5704,7 @@ function StnDateRangePicker({
|
|
|
5655
5704
|
)
|
|
5656
5705
|
] }),
|
|
5657
5706
|
showTime ? /* @__PURE__ */ jsxs34("div", { className: "stn-date-picker-time", children: [
|
|
5658
|
-
/* @__PURE__ */
|
|
5707
|
+
/* @__PURE__ */ jsx45(
|
|
5659
5708
|
TimeColumns,
|
|
5660
5709
|
{
|
|
5661
5710
|
label: "\uC2DC\uC791",
|
|
@@ -5663,7 +5712,7 @@ function StnDateRangePicker({
|
|
|
5663
5712
|
onChange: (start) => updateDraft({ ...draft, start })
|
|
5664
5713
|
}
|
|
5665
5714
|
),
|
|
5666
|
-
/* @__PURE__ */
|
|
5715
|
+
/* @__PURE__ */ jsx45(
|
|
5667
5716
|
TimeColumns,
|
|
5668
5717
|
{
|
|
5669
5718
|
label: "\uC885\uB8CC",
|
|
@@ -5672,14 +5721,14 @@ function StnDateRangePicker({
|
|
|
5672
5721
|
}
|
|
5673
5722
|
)
|
|
5674
5723
|
] }) : null,
|
|
5675
|
-
/* @__PURE__ */
|
|
5724
|
+
/* @__PURE__ */ jsx45("div", { className: "stn-date-picker-footer", children: /* @__PURE__ */ jsx45(StnButton, { size: "md", variant: "contained", onClick: handleApply, disabled: !draft.start || !draft.end, children: "\uD655\uC778" }) })
|
|
5676
5725
|
] })
|
|
5677
5726
|
}
|
|
5678
5727
|
);
|
|
5679
5728
|
}
|
|
5680
5729
|
|
|
5681
5730
|
// src/components/datePicker/StnDateRangePickerField.tsx
|
|
5682
|
-
import { jsx as
|
|
5731
|
+
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
5683
5732
|
function useControllableRange(controlled, defaultValue, onChange) {
|
|
5684
5733
|
const [internal, setInternal] = useState14(defaultValue);
|
|
5685
5734
|
const value = controlled ?? internal;
|
|
@@ -5752,7 +5801,7 @@ function StnDateRangePickerField({
|
|
|
5752
5801
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
5753
5802
|
}, [open]);
|
|
5754
5803
|
return /* @__PURE__ */ jsxs35("div", { ref: rootRef, className: cn("stn-date-picker-field", className), children: [
|
|
5755
|
-
/* @__PURE__ */
|
|
5804
|
+
/* @__PURE__ */ jsx46(
|
|
5756
5805
|
StnDateRangeField,
|
|
5757
5806
|
{
|
|
5758
5807
|
ref: triggerRef,
|
|
@@ -5772,7 +5821,7 @@ function StnDateRangePickerField({
|
|
|
5772
5821
|
}
|
|
5773
5822
|
),
|
|
5774
5823
|
open && typeof document !== "undefined" ? createPortal3(
|
|
5775
|
-
/* @__PURE__ */
|
|
5824
|
+
/* @__PURE__ */ jsx46("div", { ref: panelRef, children: /* @__PURE__ */ jsx46(
|
|
5776
5825
|
StnDateRangePicker,
|
|
5777
5826
|
{
|
|
5778
5827
|
open: true,
|
|
@@ -5791,13 +5840,13 @@ function StnDateRangePickerField({
|
|
|
5791
5840
|
}
|
|
5792
5841
|
|
|
5793
5842
|
// src/patterns/search/StnSearchRequirementBarDemo.tsx
|
|
5794
|
-
import { jsx as
|
|
5843
|
+
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
5795
5844
|
var ALL_OPTIONS = [{ value: "", label: "\uC804\uCCB4" }];
|
|
5796
5845
|
function StnSearchRequirementBarDemo({ onSearch, onExport, className }) {
|
|
5797
5846
|
const demo = STN_SEARCH_REQUIREMENT_DEMO_FIELDS;
|
|
5798
5847
|
return /* @__PURE__ */ jsxs36(StnSearchRequirementBar, { className, children: [
|
|
5799
5848
|
/* @__PURE__ */ jsxs36(StnSearchRequirementBar.Fields, { children: [
|
|
5800
|
-
/* @__PURE__ */
|
|
5849
|
+
/* @__PURE__ */ jsx47(
|
|
5801
5850
|
StnTextField,
|
|
5802
5851
|
{
|
|
5803
5852
|
label: demo.reportTypeText.label,
|
|
@@ -5807,7 +5856,7 @@ function StnSearchRequirementBarDemo({ onSearch, onExport, className }) {
|
|
|
5807
5856
|
"aria-label": demo.reportTypeText.label
|
|
5808
5857
|
}
|
|
5809
5858
|
),
|
|
5810
|
-
/* @__PURE__ */
|
|
5859
|
+
/* @__PURE__ */ jsx47(
|
|
5811
5860
|
StnDropdown,
|
|
5812
5861
|
{
|
|
5813
5862
|
label: demo.reportTypeSelect.label,
|
|
@@ -5818,7 +5867,7 @@ function StnSearchRequirementBarDemo({ onSearch, onExport, className }) {
|
|
|
5818
5867
|
"aria-label": demo.reportTypeSelect.label
|
|
5819
5868
|
}
|
|
5820
5869
|
),
|
|
5821
|
-
/* @__PURE__ */
|
|
5870
|
+
/* @__PURE__ */ jsx47(
|
|
5822
5871
|
StnDropdown,
|
|
5823
5872
|
{
|
|
5824
5873
|
label: demo.periodType.label,
|
|
@@ -5829,7 +5878,7 @@ function StnSearchRequirementBarDemo({ onSearch, onExport, className }) {
|
|
|
5829
5878
|
"aria-label": demo.periodType.label
|
|
5830
5879
|
}
|
|
5831
5880
|
),
|
|
5832
|
-
/* @__PURE__ */
|
|
5881
|
+
/* @__PURE__ */ jsx47(
|
|
5833
5882
|
StnDateRangePickerField,
|
|
5834
5883
|
{
|
|
5835
5884
|
label: demo.period.label,
|
|
@@ -5843,8 +5892,8 @@ function StnSearchRequirementBarDemo({ onSearch, onExport, className }) {
|
|
|
5843
5892
|
}
|
|
5844
5893
|
)
|
|
5845
5894
|
] }),
|
|
5846
|
-
/* @__PURE__ */
|
|
5847
|
-
/* @__PURE__ */
|
|
5895
|
+
/* @__PURE__ */ jsx47(StnSearchRequirementBar.SearchButton, { onClick: onSearch }),
|
|
5896
|
+
/* @__PURE__ */ jsx47(StnSearchRequirementBar.Export, { onClick: onExport })
|
|
5848
5897
|
] });
|
|
5849
5898
|
}
|
|
5850
5899
|
|
|
@@ -5858,7 +5907,7 @@ import {
|
|
|
5858
5907
|
} from "@stn-uiux/pub-ui/data/stnHeader";
|
|
5859
5908
|
|
|
5860
5909
|
// src/patterns/header/StnHeader.tsx
|
|
5861
|
-
import { jsx as
|
|
5910
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
5862
5911
|
function variantClass6(variant) {
|
|
5863
5912
|
if (variant === "page") return "stn-header--page";
|
|
5864
5913
|
return void 0;
|
|
@@ -5885,7 +5934,7 @@ function StnHeader({
|
|
|
5885
5934
|
...dynamicStyles,
|
|
5886
5935
|
...style
|
|
5887
5936
|
};
|
|
5888
|
-
return /* @__PURE__ */
|
|
5937
|
+
return /* @__PURE__ */ jsx48(
|
|
5889
5938
|
"header",
|
|
5890
5939
|
{
|
|
5891
5940
|
className: cn(
|
|
@@ -5903,20 +5952,20 @@ function StnHeader({
|
|
|
5903
5952
|
);
|
|
5904
5953
|
}
|
|
5905
5954
|
function StnHeaderLeft({ children, className, ...rest }) {
|
|
5906
|
-
return /* @__PURE__ */
|
|
5955
|
+
return /* @__PURE__ */ jsx48("div", { className: cn("stn-header__left", className), "data-stn-header-region": "left", ...rest, children });
|
|
5907
5956
|
}
|
|
5908
5957
|
function StnHeaderCenter({ children, className, ...rest }) {
|
|
5909
|
-
return /* @__PURE__ */
|
|
5958
|
+
return /* @__PURE__ */ jsx48("div", { className: cn("stn-header__center", className), "data-stn-header-region": "center", ...rest, children });
|
|
5910
5959
|
}
|
|
5911
5960
|
function StnHeaderRight({ children, className, ...rest }) {
|
|
5912
|
-
return /* @__PURE__ */
|
|
5961
|
+
return /* @__PURE__ */ jsx48("div", { className: cn("stn-header__right", className), "data-stn-header-region": "right", ...rest, children });
|
|
5913
5962
|
}
|
|
5914
5963
|
StnHeader.Left = StnHeaderLeft;
|
|
5915
5964
|
StnHeader.Center = StnHeaderCenter;
|
|
5916
5965
|
StnHeader.Right = StnHeaderRight;
|
|
5917
5966
|
function StnHeaderPageTitle({ children, className, title, ...rest }) {
|
|
5918
5967
|
const autoTitle = typeof children === "string" ? children : void 0;
|
|
5919
|
-
return /* @__PURE__ */
|
|
5968
|
+
return /* @__PURE__ */ jsx48(
|
|
5920
5969
|
"h1",
|
|
5921
5970
|
{
|
|
5922
5971
|
className: cn("stn-header__page-title", className),
|
|
@@ -5928,7 +5977,7 @@ function StnHeaderPageTitle({ children, className, title, ...rest }) {
|
|
|
5928
5977
|
}
|
|
5929
5978
|
function StnHeaderSubTitle({ children, className, title, ...rest }) {
|
|
5930
5979
|
const autoTitle = typeof children === "string" ? children : void 0;
|
|
5931
|
-
return /* @__PURE__ */
|
|
5980
|
+
return /* @__PURE__ */ jsx48(
|
|
5932
5981
|
"span",
|
|
5933
5982
|
{
|
|
5934
5983
|
className: cn("stn-header__subtitle", className),
|
|
@@ -5940,7 +5989,7 @@ function StnHeaderSubTitle({ children, className, title, ...rest }) {
|
|
|
5940
5989
|
}
|
|
5941
5990
|
function StnHeaderContextTitle({ children, className, title, ...rest }) {
|
|
5942
5991
|
const autoTitle = typeof children === "string" ? children : void 0;
|
|
5943
|
-
return /* @__PURE__ */
|
|
5992
|
+
return /* @__PURE__ */ jsx48(
|
|
5944
5993
|
"span",
|
|
5945
5994
|
{
|
|
5946
5995
|
className: cn("stn-header__context-title", className),
|
|
@@ -5951,7 +6000,7 @@ function StnHeaderContextTitle({ children, className, title, ...rest }) {
|
|
|
5951
6000
|
);
|
|
5952
6001
|
}
|
|
5953
6002
|
function StnHeaderToolbar({ children, className, ...rest }) {
|
|
5954
|
-
return /* @__PURE__ */
|
|
6003
|
+
return /* @__PURE__ */ jsx48("div", { className: cn("stn-header-toolbar", className), "data-stn-header-toolbar": true, ...rest, children });
|
|
5955
6004
|
}
|
|
5956
6005
|
|
|
5957
6006
|
// src/index.ts
|
|
@@ -5967,7 +6016,7 @@ import {
|
|
|
5967
6016
|
import {
|
|
5968
6017
|
STN_LAYER0_MAP_LIGHT_OVERLAY
|
|
5969
6018
|
} from "@stn-uiux/pub-ui/data/stnLayer0Background";
|
|
5970
|
-
import { jsx as
|
|
6019
|
+
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
5971
6020
|
function overlayStyle(overlay) {
|
|
5972
6021
|
if (overlay == null || overlay <= 0) return void 0;
|
|
5973
6022
|
const pct = `${Math.min(100, Math.max(0, overlay * 100))}%`;
|
|
@@ -6001,7 +6050,7 @@ function StnLayer0Background({
|
|
|
6001
6050
|
return null;
|
|
6002
6051
|
}
|
|
6003
6052
|
if (variant === "color" || kindProp === "color") {
|
|
6004
|
-
return /* @__PURE__ */
|
|
6053
|
+
return /* @__PURE__ */ jsx49(
|
|
6005
6054
|
"div",
|
|
6006
6055
|
{
|
|
6007
6056
|
className: cn("stn-layer0-bg", "color", color, className),
|
|
@@ -6012,7 +6061,7 @@ function StnLayer0Background({
|
|
|
6012
6061
|
);
|
|
6013
6062
|
}
|
|
6014
6063
|
if (variant === "gradient" || kindProp === "gradient") {
|
|
6015
|
-
return /* @__PURE__ */
|
|
6064
|
+
return /* @__PURE__ */ jsx49(
|
|
6016
6065
|
"div",
|
|
6017
6066
|
{
|
|
6018
6067
|
className: cn("stn-layer0-bg", "gradient", className),
|
|
@@ -6033,7 +6082,7 @@ function StnLayer0Background({
|
|
|
6033
6082
|
...rest,
|
|
6034
6083
|
children: [
|
|
6035
6084
|
/* @__PURE__ */ jsxs37("div", { className: "stn-layer0-bg__media", children: [
|
|
6036
|
-
src ? /* @__PURE__ */
|
|
6085
|
+
src ? /* @__PURE__ */ jsx49(
|
|
6037
6086
|
"img",
|
|
6038
6087
|
{
|
|
6039
6088
|
className: cn("stn-layer0-bg__img", paired && "light"),
|
|
@@ -6043,7 +6092,7 @@ function StnLayer0Background({
|
|
|
6043
6092
|
onError: handleImageError
|
|
6044
6093
|
}
|
|
6045
6094
|
) : null,
|
|
6046
|
-
srcDark ? /* @__PURE__ */
|
|
6095
|
+
srcDark ? /* @__PURE__ */ jsx49(
|
|
6047
6096
|
"img",
|
|
6048
6097
|
{
|
|
6049
6098
|
className: cn("stn-layer0-bg__img", paired ? "dark" : void 0),
|
|
@@ -6054,8 +6103,8 @@ function StnLayer0Background({
|
|
|
6054
6103
|
}
|
|
6055
6104
|
) : null
|
|
6056
6105
|
] }),
|
|
6057
|
-
overlay != null && overlay > 0 ? /* @__PURE__ */
|
|
6058
|
-
overlayDarkRadial ? /* @__PURE__ */
|
|
6106
|
+
overlay != null && overlay > 0 ? /* @__PURE__ */ jsx49("div", { className: "stn-layer0-bg__overlay", "aria-hidden": "true" }) : null,
|
|
6107
|
+
overlayDarkRadial ? /* @__PURE__ */ jsx49("div", { className: "stn-layer0-bg__overlay radial", "aria-hidden": "true" }) : null
|
|
6059
6108
|
]
|
|
6060
6109
|
}
|
|
6061
6110
|
);
|
|
@@ -6074,8 +6123,8 @@ function StnLayer0Background({
|
|
|
6074
6123
|
style: { ...overlayStyle(overlay), ...style },
|
|
6075
6124
|
...rest,
|
|
6076
6125
|
children: [
|
|
6077
|
-
overlay != null && overlay > 0 ? /* @__PURE__ */
|
|
6078
|
-
overlayDarkRadial ? /* @__PURE__ */
|
|
6126
|
+
overlay != null && overlay > 0 ? /* @__PURE__ */ jsx49("div", { className: "stn-layer0-bg__overlay", "aria-hidden": "true" }) : null,
|
|
6127
|
+
overlayDarkRadial ? /* @__PURE__ */ jsx49("div", { className: "stn-layer0-bg__overlay radial", "aria-hidden": "true" }) : null
|
|
6079
6128
|
]
|
|
6080
6129
|
}
|
|
6081
6130
|
);
|
|
@@ -6107,7 +6156,7 @@ import {
|
|
|
6107
6156
|
|
|
6108
6157
|
// src/components/StnEventBanner.tsx
|
|
6109
6158
|
import React2 from "react";
|
|
6110
|
-
import { jsx as
|
|
6159
|
+
import { jsx as jsx50, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6111
6160
|
var SEVERITY_ICONS2 = {
|
|
6112
6161
|
critical: "fill/alert4",
|
|
6113
6162
|
major: "fill/alert3",
|
|
@@ -6125,7 +6174,7 @@ function DefaultTriangleIcon() {
|
|
|
6125
6174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6126
6175
|
"aria-hidden": "true",
|
|
6127
6176
|
children: [
|
|
6128
|
-
/* @__PURE__ */
|
|
6177
|
+
/* @__PURE__ */ jsx50(
|
|
6129
6178
|
"path",
|
|
6130
6179
|
{
|
|
6131
6180
|
d: "M10.29 3.86L1.82 18A2 2 0 0 0 3.54 21H20.46A2 2 0 0 0 22.18 18L13.71 3.86A2 2 0 0 0 10.29 3.86Z",
|
|
@@ -6135,17 +6184,17 @@ function DefaultTriangleIcon() {
|
|
|
6135
6184
|
strokeLinejoin: "round"
|
|
6136
6185
|
}
|
|
6137
6186
|
),
|
|
6138
|
-
/* @__PURE__ */
|
|
6139
|
-
/* @__PURE__ */
|
|
6187
|
+
/* @__PURE__ */ jsx50("line", { x1: "12", y1: "9", x2: "12", y2: "13", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
|
|
6188
|
+
/* @__PURE__ */ jsx50("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor" })
|
|
6140
6189
|
]
|
|
6141
6190
|
}
|
|
6142
6191
|
);
|
|
6143
6192
|
}
|
|
6144
6193
|
function resolveDefaultIcon(severity) {
|
|
6145
6194
|
if (severity === "critical") {
|
|
6146
|
-
return /* @__PURE__ */
|
|
6195
|
+
return /* @__PURE__ */ jsx50(DefaultTriangleIcon, {});
|
|
6147
6196
|
}
|
|
6148
|
-
return /* @__PURE__ */
|
|
6197
|
+
return /* @__PURE__ */ jsx50(StnIcon, { name: SEVERITY_ICONS2[severity] || "fill/alert4", size: 20 });
|
|
6149
6198
|
}
|
|
6150
6199
|
var StnEventBanner = React2.forwardRef(
|
|
6151
6200
|
({
|
|
@@ -6182,15 +6231,15 @@ var StnEventBanner = React2.forwardRef(
|
|
|
6182
6231
|
...restProps,
|
|
6183
6232
|
children: [
|
|
6184
6233
|
/* @__PURE__ */ jsxs38("div", { className: "stn-event-banner__left", children: [
|
|
6185
|
-
/* @__PURE__ */
|
|
6234
|
+
/* @__PURE__ */ jsx50("div", { className: "stn-event-banner__icon-wrap", children: icon ?? resolveDefaultIcon(severity) }),
|
|
6186
6235
|
/* @__PURE__ */ jsxs38("div", { className: "stn-event-banner__text", children: [
|
|
6187
|
-
title && /* @__PURE__ */
|
|
6188
|
-
time && /* @__PURE__ */
|
|
6236
|
+
title && /* @__PURE__ */ jsx50("span", { className: "stn-event-banner__title", title: typeof title === "string" ? title : void 0, children: title }),
|
|
6237
|
+
time && /* @__PURE__ */ jsx50("span", { className: "stn-event-banner__time", title: typeof time === "string" ? time : void 0, children: time })
|
|
6189
6238
|
] })
|
|
6190
6239
|
] }),
|
|
6191
6240
|
/* @__PURE__ */ jsxs38("div", { className: "stn-event-banner__actions", children: [
|
|
6192
6241
|
actions,
|
|
6193
|
-
actionText && /* @__PURE__ */
|
|
6242
|
+
actionText && /* @__PURE__ */ jsx50(
|
|
6194
6243
|
"button",
|
|
6195
6244
|
{
|
|
6196
6245
|
type: "button",
|
|
@@ -6199,7 +6248,7 @@ var StnEventBanner = React2.forwardRef(
|
|
|
6199
6248
|
children: actionText
|
|
6200
6249
|
}
|
|
6201
6250
|
),
|
|
6202
|
-
onClose && /* @__PURE__ */
|
|
6251
|
+
onClose && /* @__PURE__ */ jsx50(
|
|
6203
6252
|
"button",
|
|
6204
6253
|
{
|
|
6205
6254
|
type: "button",
|
|
@@ -6218,9 +6267,9 @@ var StnEventBanner = React2.forwardRef(
|
|
|
6218
6267
|
StnEventBanner.displayName = "StnEventBanner";
|
|
6219
6268
|
|
|
6220
6269
|
// src/patterns/scaffold/StnLoadingSkeleton.tsx
|
|
6221
|
-
import { jsx as
|
|
6270
|
+
import { jsx as jsx51, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6222
6271
|
function StnLoadingSkeletonLine({ width = "full", className, style, ...rest }) {
|
|
6223
|
-
return /* @__PURE__ */
|
|
6272
|
+
return /* @__PURE__ */ jsx51(
|
|
6224
6273
|
"div",
|
|
6225
6274
|
{
|
|
6226
6275
|
className: cn(
|
|
@@ -6236,7 +6285,7 @@ function StnLoadingSkeletonLine({ width = "full", className, style, ...rest }) {
|
|
|
6236
6285
|
);
|
|
6237
6286
|
}
|
|
6238
6287
|
function StnLoadingSkeletonBlock({ minHeight = 48, className, style, ...rest }) {
|
|
6239
|
-
return /* @__PURE__ */
|
|
6288
|
+
return /* @__PURE__ */ jsx51(
|
|
6240
6289
|
"div",
|
|
6241
6290
|
{
|
|
6242
6291
|
className: cn("stn-loading-skeleton__block", className),
|
|
@@ -6247,7 +6296,7 @@ function StnLoadingSkeletonBlock({ minHeight = 48, className, style, ...rest })
|
|
|
6247
6296
|
);
|
|
6248
6297
|
}
|
|
6249
6298
|
function StnLoadingSkeletonCircle({ size = 40, className, style, ...rest }) {
|
|
6250
|
-
return /* @__PURE__ */
|
|
6299
|
+
return /* @__PURE__ */ jsx51(
|
|
6251
6300
|
"div",
|
|
6252
6301
|
{
|
|
6253
6302
|
className: cn("stn-loading-skeleton__circle", className),
|
|
@@ -6267,17 +6316,17 @@ function StnLoadingSkeletonProfile({ avatarSize = 40, className, style, ...rest
|
|
|
6267
6316
|
"aria-label": "\uD504\uB85C\uD544 \uB85C\uB529 \uC911",
|
|
6268
6317
|
...rest,
|
|
6269
6318
|
children: [
|
|
6270
|
-
/* @__PURE__ */
|
|
6319
|
+
/* @__PURE__ */ jsx51(StnLoadingSkeletonCircle, { size: avatarSize }),
|
|
6271
6320
|
/* @__PURE__ */ jsxs39("div", { className: "stn-loading-skeleton__profile-content", children: [
|
|
6272
|
-
/* @__PURE__ */
|
|
6273
|
-
/* @__PURE__ */
|
|
6321
|
+
/* @__PURE__ */ jsx51(StnLoadingSkeletonLine, { width: "medium" }),
|
|
6322
|
+
/* @__PURE__ */ jsx51(StnLoadingSkeletonLine, { width: "short" })
|
|
6274
6323
|
] })
|
|
6275
6324
|
]
|
|
6276
6325
|
}
|
|
6277
6326
|
);
|
|
6278
6327
|
}
|
|
6279
6328
|
function StnLoadingSkeletonWidget({ lines = 4, className, style, ...rest }) {
|
|
6280
|
-
return /* @__PURE__ */
|
|
6329
|
+
return /* @__PURE__ */ jsx51(
|
|
6281
6330
|
"div",
|
|
6282
6331
|
{
|
|
6283
6332
|
className: cn("stn-loading-skeleton", "stn-loading-skeleton--widget", className),
|
|
@@ -6285,12 +6334,12 @@ function StnLoadingSkeletonWidget({ lines = 4, className, style, ...rest }) {
|
|
|
6285
6334
|
"aria-busy": "true",
|
|
6286
6335
|
"aria-label": "\uB85C\uB529 \uC911",
|
|
6287
6336
|
...rest,
|
|
6288
|
-
children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */
|
|
6337
|
+
children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsx51(StnLoadingSkeletonLine, { width: i % 3 === 0 ? "short" : i % 2 === 0 ? "medium" : "full" }, i))
|
|
6289
6338
|
}
|
|
6290
6339
|
);
|
|
6291
6340
|
}
|
|
6292
6341
|
function StnLoadingSkeletonTable({ rows = 5, cols = 4, className, style, ...rest }) {
|
|
6293
|
-
return /* @__PURE__ */
|
|
6342
|
+
return /* @__PURE__ */ jsx51(
|
|
6294
6343
|
"div",
|
|
6295
6344
|
{
|
|
6296
6345
|
className: cn("stn-loading-skeleton", "stn-loading-skeleton--table", className),
|
|
@@ -6298,7 +6347,7 @@ function StnLoadingSkeletonTable({ rows = 5, cols = 4, className, style, ...rest
|
|
|
6298
6347
|
"aria-busy": "true",
|
|
6299
6348
|
"aria-label": "\uD14C\uC774\uBE14 \uB85C\uB529 \uC911",
|
|
6300
6349
|
...rest,
|
|
6301
|
-
children: Array.from({ length: rows }, (_, row) => /* @__PURE__ */
|
|
6350
|
+
children: Array.from({ length: rows }, (_, row) => /* @__PURE__ */ jsx51("div", { className: "stn-loading-skeleton__table-row", children: Array.from({ length: cols }, (_2, col) => /* @__PURE__ */ jsx51(StnLoadingSkeletonLine, {}, col)) }, row))
|
|
6302
6351
|
}
|
|
6303
6352
|
);
|
|
6304
6353
|
}
|
|
@@ -6317,23 +6366,23 @@ function StnLoadingSkeletonRoot({
|
|
|
6317
6366
|
...rest
|
|
6318
6367
|
}) {
|
|
6319
6368
|
if (children != null) {
|
|
6320
|
-
return /* @__PURE__ */
|
|
6369
|
+
return /* @__PURE__ */ jsx51("div", { className: cn("stn-loading-skeleton", className), style, "aria-busy": "true", ...rest, children });
|
|
6321
6370
|
}
|
|
6322
6371
|
const resolvedVariant = variant ?? "line";
|
|
6323
6372
|
switch (resolvedVariant) {
|
|
6324
6373
|
case "circle":
|
|
6325
|
-
return /* @__PURE__ */
|
|
6374
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonCircle, { size, className, style, ...rest });
|
|
6326
6375
|
case "block":
|
|
6327
|
-
return /* @__PURE__ */
|
|
6376
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonBlock, { minHeight, className, style, ...rest });
|
|
6328
6377
|
case "profile":
|
|
6329
|
-
return /* @__PURE__ */
|
|
6378
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonProfile, { avatarSize: avatarSize ?? size, className, style, ...rest });
|
|
6330
6379
|
case "widget":
|
|
6331
|
-
return /* @__PURE__ */
|
|
6380
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonWidget, { lines, className, style, ...rest });
|
|
6332
6381
|
case "table":
|
|
6333
|
-
return /* @__PURE__ */
|
|
6382
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonTable, { rows, cols, className, style, ...rest });
|
|
6334
6383
|
case "line":
|
|
6335
6384
|
default:
|
|
6336
|
-
return /* @__PURE__ */
|
|
6385
|
+
return /* @__PURE__ */ jsx51(StnLoadingSkeletonLine, { width, className, style, ...rest });
|
|
6337
6386
|
}
|
|
6338
6387
|
}
|
|
6339
6388
|
var StnLoadingSkeleton = Object.assign(StnLoadingSkeletonRoot, {
|
|
@@ -6454,7 +6503,7 @@ function ringOrbitRadius(orbit, ringCount, baseRadius, gap = 36) {
|
|
|
6454
6503
|
}
|
|
6455
6504
|
|
|
6456
6505
|
// src/components/topology/StnTopologyNodeMark.tsx
|
|
6457
|
-
import { jsx as
|
|
6506
|
+
import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6458
6507
|
function renderTopologyIcon(icon, color, px) {
|
|
6459
6508
|
if (!icon) return null;
|
|
6460
6509
|
if (typeof icon !== "string") return icon;
|
|
@@ -6471,55 +6520,55 @@ function renderTopologyIcon(icon, color, px) {
|
|
|
6471
6520
|
switch (icon) {
|
|
6472
6521
|
case "server":
|
|
6473
6522
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6474
|
-
/* @__PURE__ */
|
|
6475
|
-
/* @__PURE__ */
|
|
6476
|
-
/* @__PURE__ */
|
|
6477
|
-
/* @__PURE__ */
|
|
6523
|
+
/* @__PURE__ */ jsx52("rect", { x: "2", y: "2", width: "20", height: "8", rx: "2", ry: "2" }),
|
|
6524
|
+
/* @__PURE__ */ jsx52("rect", { x: "2", y: "14", width: "20", height: "8", rx: "2", ry: "2" }),
|
|
6525
|
+
/* @__PURE__ */ jsx52("line", { x1: "6", y1: "6", x2: "6.01", y2: "6" }),
|
|
6526
|
+
/* @__PURE__ */ jsx52("line", { x1: "6", y1: "18", x2: "6.01", y2: "18" })
|
|
6478
6527
|
] });
|
|
6479
6528
|
case "cloud":
|
|
6480
|
-
return /* @__PURE__ */
|
|
6529
|
+
return /* @__PURE__ */ jsx52("svg", { ...iconProps, children: /* @__PURE__ */ jsx52("path", { d: "M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z" }) });
|
|
6481
6530
|
case "ai":
|
|
6482
6531
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6483
|
-
/* @__PURE__ */
|
|
6484
|
-
/* @__PURE__ */
|
|
6485
|
-
/* @__PURE__ */
|
|
6486
|
-
/* @__PURE__ */
|
|
6487
|
-
/* @__PURE__ */
|
|
6488
|
-
/* @__PURE__ */
|
|
6489
|
-
/* @__PURE__ */
|
|
6490
|
-
/* @__PURE__ */
|
|
6491
|
-
/* @__PURE__ */
|
|
6492
|
-
/* @__PURE__ */
|
|
6532
|
+
/* @__PURE__ */ jsx52("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2" }),
|
|
6533
|
+
/* @__PURE__ */ jsx52("rect", { x: "9", y: "9", width: "6", height: "6" }),
|
|
6534
|
+
/* @__PURE__ */ jsx52("line", { x1: "9", y1: "1", x2: "9", y2: "4" }),
|
|
6535
|
+
/* @__PURE__ */ jsx52("line", { x1: "15", y1: "1", x2: "15", y2: "4" }),
|
|
6536
|
+
/* @__PURE__ */ jsx52("line", { x1: "9", y1: "20", x2: "9", y2: "23" }),
|
|
6537
|
+
/* @__PURE__ */ jsx52("line", { x1: "15", y1: "20", x2: "15", y2: "23" }),
|
|
6538
|
+
/* @__PURE__ */ jsx52("line", { x1: "20", y1: "9", x2: "23", y2: "9" }),
|
|
6539
|
+
/* @__PURE__ */ jsx52("line", { x1: "20", y1: "14", x2: "23", y2: "14" }),
|
|
6540
|
+
/* @__PURE__ */ jsx52("line", { x1: "1", y1: "9", x2: "4", y2: "9" }),
|
|
6541
|
+
/* @__PURE__ */ jsx52("line", { x1: "1", y1: "14", x2: "4", y2: "14" })
|
|
6493
6542
|
] });
|
|
6494
6543
|
case "network":
|
|
6495
6544
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6496
|
-
/* @__PURE__ */
|
|
6497
|
-
/* @__PURE__ */
|
|
6498
|
-
/* @__PURE__ */
|
|
6499
|
-
/* @__PURE__ */
|
|
6500
|
-
/* @__PURE__ */
|
|
6501
|
-
/* @__PURE__ */
|
|
6502
|
-
/* @__PURE__ */
|
|
6545
|
+
/* @__PURE__ */ jsx52("rect", { x: "2", y: "2", width: "6", height: "6", rx: "1" }),
|
|
6546
|
+
/* @__PURE__ */ jsx52("rect", { x: "16", y: "2", width: "6", height: "6", rx: "1" }),
|
|
6547
|
+
/* @__PURE__ */ jsx52("rect", { x: "9", y: "16", width: "6", height: "6", rx: "1" }),
|
|
6548
|
+
/* @__PURE__ */ jsx52("line", { x1: "5", y1: "8", x2: "5", y2: "12" }),
|
|
6549
|
+
/* @__PURE__ */ jsx52("line", { x1: "19", y1: "8", x2: "19", y2: "12" }),
|
|
6550
|
+
/* @__PURE__ */ jsx52("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
|
|
6551
|
+
/* @__PURE__ */ jsx52("line", { x1: "12", y1: "12", x2: "12", y2: "16" })
|
|
6503
6552
|
] });
|
|
6504
6553
|
case "shield":
|
|
6505
|
-
return /* @__PURE__ */
|
|
6554
|
+
return /* @__PURE__ */ jsx52("svg", { ...iconProps, children: /* @__PURE__ */ jsx52("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) });
|
|
6506
6555
|
case "user":
|
|
6507
6556
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6508
|
-
/* @__PURE__ */
|
|
6509
|
-
/* @__PURE__ */
|
|
6557
|
+
/* @__PURE__ */ jsx52("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
6558
|
+
/* @__PURE__ */ jsx52("circle", { cx: "12", cy: "7", r: "4" })
|
|
6510
6559
|
] });
|
|
6511
6560
|
case "database":
|
|
6512
6561
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6513
|
-
/* @__PURE__ */
|
|
6514
|
-
/* @__PURE__ */
|
|
6515
|
-
/* @__PURE__ */
|
|
6562
|
+
/* @__PURE__ */ jsx52("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
|
|
6563
|
+
/* @__PURE__ */ jsx52("path", { d: "M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" }),
|
|
6564
|
+
/* @__PURE__ */ jsx52("path", { d: "M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" })
|
|
6516
6565
|
] });
|
|
6517
6566
|
case "wifi":
|
|
6518
6567
|
return /* @__PURE__ */ jsxs40("svg", { ...iconProps, children: [
|
|
6519
|
-
/* @__PURE__ */
|
|
6520
|
-
/* @__PURE__ */
|
|
6521
|
-
/* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6568
|
+
/* @__PURE__ */ jsx52("path", { d: "M5 12.55a11 11 0 0 1 14.08 0" }),
|
|
6569
|
+
/* @__PURE__ */ jsx52("path", { d: "M1.42 9a16 16 0 0 1 21.16 0" }),
|
|
6570
|
+
/* @__PURE__ */ jsx52("path", { d: "M8.53 16.11a6 6 0 0 1 6.95 0" }),
|
|
6571
|
+
/* @__PURE__ */ jsx52("line", { x1: "12", y1: "20", x2: "12.01", y2: "20" })
|
|
6523
6572
|
] });
|
|
6524
6573
|
default:
|
|
6525
6574
|
return null;
|
|
@@ -6537,11 +6586,11 @@ function NodeShape({
|
|
|
6537
6586
|
}) {
|
|
6538
6587
|
const filter = glow ? `drop-shadow(0 0 8px ${glow})` : "drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))";
|
|
6539
6588
|
if (shape === "circle") {
|
|
6540
|
-
return /* @__PURE__ */
|
|
6589
|
+
return /* @__PURE__ */ jsx52("circle", { cx: x, cy: y, r, fill, stroke, strokeWidth, style: { filter } });
|
|
6541
6590
|
}
|
|
6542
6591
|
if (shape === "square") {
|
|
6543
6592
|
const size = r * 2;
|
|
6544
|
-
return /* @__PURE__ */
|
|
6593
|
+
return /* @__PURE__ */ jsx52(
|
|
6545
6594
|
"rect",
|
|
6546
6595
|
{
|
|
6547
6596
|
x: x - r,
|
|
@@ -6556,7 +6605,7 @@ function NodeShape({
|
|
|
6556
6605
|
}
|
|
6557
6606
|
);
|
|
6558
6607
|
}
|
|
6559
|
-
return /* @__PURE__ */
|
|
6608
|
+
return /* @__PURE__ */ jsx52(
|
|
6560
6609
|
"polygon",
|
|
6561
6610
|
{
|
|
6562
6611
|
points: topologyShapePoints(shape, x, y, r),
|
|
@@ -6623,13 +6672,13 @@ function StnTopologyNodeMark({
|
|
|
6623
6672
|
strokeWidth: "1.5",
|
|
6624
6673
|
opacity: "0.55",
|
|
6625
6674
|
children: [
|
|
6626
|
-
/* @__PURE__ */
|
|
6627
|
-
/* @__PURE__ */
|
|
6675
|
+
/* @__PURE__ */ jsx52("animate", { attributeName: "r", values: `${r + 4};${r + 12};${r + 4}`, dur: "2s", repeatCount: "indefinite" }),
|
|
6676
|
+
/* @__PURE__ */ jsx52("animate", { attributeName: "opacity", values: "0.75;0.15;0.75", dur: "2s", repeatCount: "indefinite" })
|
|
6628
6677
|
]
|
|
6629
6678
|
}
|
|
6630
6679
|
),
|
|
6631
|
-
selected && /* @__PURE__ */
|
|
6632
|
-
/* @__PURE__ */
|
|
6680
|
+
selected && /* @__PURE__ */ jsx52("circle", { cx: x, cy: y, r: r + 6, fill: "none", stroke: "#00e5ff", strokeWidth: "1.5", strokeDasharray: "3 3" }),
|
|
6681
|
+
/* @__PURE__ */ jsx52(
|
|
6633
6682
|
NodeShape,
|
|
6634
6683
|
{
|
|
6635
6684
|
shape,
|
|
@@ -6642,7 +6691,7 @@ function StnTopologyNodeMark({
|
|
|
6642
6691
|
glow: isAlert || isCount ? tone.glow : ""
|
|
6643
6692
|
}
|
|
6644
6693
|
),
|
|
6645
|
-
isCount ? /* @__PURE__ */
|
|
6694
|
+
isCount ? /* @__PURE__ */ jsx52(
|
|
6646
6695
|
"text",
|
|
6647
6696
|
{
|
|
6648
6697
|
x,
|
|
@@ -6655,10 +6704,10 @@ function StnTopologyNodeMark({
|
|
|
6655
6704
|
style: { textShadow: "0 1px 2px rgba(0, 0, 0, 0.85)" },
|
|
6656
6705
|
children: countText
|
|
6657
6706
|
}
|
|
6658
|
-
) : /* @__PURE__ */
|
|
6707
|
+
) : /* @__PURE__ */ jsx52("g", { transform: `translate(${x - iconPx / 2}, ${y - iconPx / 2})`, children: renderTopologyIcon(icon, stroke, iconPx) }),
|
|
6659
6708
|
showCornerBadge && /* @__PURE__ */ jsxs40("g", { className: "stn-topology-node__badge", children: [
|
|
6660
|
-
/* @__PURE__ */
|
|
6661
|
-
/* @__PURE__ */
|
|
6709
|
+
/* @__PURE__ */ jsx52("circle", { cx: x + r * 0.72, cy: y - r * 0.72, r: Math.max(6, r * 0.38), fill: stroke, stroke: "rgba(6,7,15,0.9)", strokeWidth: "1" }),
|
|
6710
|
+
/* @__PURE__ */ jsx52(
|
|
6662
6711
|
"text",
|
|
6663
6712
|
{
|
|
6664
6713
|
x: x + r * 0.72,
|
|
@@ -6672,7 +6721,7 @@ function StnTopologyNodeMark({
|
|
|
6672
6721
|
}
|
|
6673
6722
|
)
|
|
6674
6723
|
] }),
|
|
6675
|
-
showLabel && label && /* @__PURE__ */
|
|
6724
|
+
showLabel && label && /* @__PURE__ */ jsx52(
|
|
6676
6725
|
"text",
|
|
6677
6726
|
{
|
|
6678
6727
|
x,
|
|
@@ -6716,11 +6765,11 @@ function StnTopologyNodePreview({
|
|
|
6716
6765
|
const r = STN_TOPOLOGY_NODE_SIZE[size].r;
|
|
6717
6766
|
const w = width ?? r * 2 + (showLabel ? 88 : 28);
|
|
6718
6767
|
const h = height ?? r * 2 + (showLabel || showStatus ? 56 : 28);
|
|
6719
|
-
return /* @__PURE__ */
|
|
6768
|
+
return /* @__PURE__ */ jsx52("svg", { className: "stn-topology-node-preview", width: w, height: h, viewBox: `0 0 ${w} ${h}`, overflow: "visible", children: /* @__PURE__ */ jsx52(StnTopologyNodeMark, { x: w / 2, y: h / 2, size, showLabel, showStatus, ...rest }) });
|
|
6720
6769
|
}
|
|
6721
6770
|
|
|
6722
6771
|
// src/components/topology/StnTopologyRing.tsx
|
|
6723
|
-
import { jsx as
|
|
6772
|
+
import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6724
6773
|
function StnTopologyRing({
|
|
6725
6774
|
core = {
|
|
6726
6775
|
title: "\uC5D0\uC2A4\uD2F0\uC5D4\uC778\uD3EC\uD14D",
|
|
@@ -6779,17 +6828,17 @@ function StnTopologyRing({
|
|
|
6779
6828
|
};
|
|
6780
6829
|
});
|
|
6781
6830
|
if (loading) {
|
|
6782
|
-
return /* @__PURE__ */
|
|
6831
|
+
return /* @__PURE__ */ jsx53(
|
|
6783
6832
|
"div",
|
|
6784
6833
|
{
|
|
6785
6834
|
className: cn("stn-topology-ring", "stn-topology-ring--loading", className),
|
|
6786
6835
|
style,
|
|
6787
6836
|
...rest,
|
|
6788
|
-
children: /* @__PURE__ */
|
|
6837
|
+
children: /* @__PURE__ */ jsx53("div", { className: "stn-topology-ring__loading-label", children: "\uD1A0\uD3F4\uB85C\uC9C0 \uB9C1 \uB370\uC774\uD130\uB97C \uBD88\uB7EC\uC624\uB294 \uC911..." })
|
|
6789
6838
|
}
|
|
6790
6839
|
);
|
|
6791
6840
|
}
|
|
6792
|
-
return /* @__PURE__ */
|
|
6841
|
+
return /* @__PURE__ */ jsx53(
|
|
6793
6842
|
"div",
|
|
6794
6843
|
{
|
|
6795
6844
|
className: cn("stn-topology-ring", className),
|
|
@@ -6808,17 +6857,17 @@ function StnTopologyRing({
|
|
|
6808
6857
|
children: [
|
|
6809
6858
|
/* @__PURE__ */ jsxs41("defs", { children: [
|
|
6810
6859
|
/* @__PURE__ */ jsxs41("radialGradient", { id: coreGlowId, cx: "50%", cy: "50%", r: "50%", children: [
|
|
6811
|
-
/* @__PURE__ */
|
|
6812
|
-
/* @__PURE__ */
|
|
6860
|
+
/* @__PURE__ */ jsx53("stop", { offset: "0%", stopColor: "#722ed1", stopOpacity: "0.8" }),
|
|
6861
|
+
/* @__PURE__ */ jsx53("stop", { offset: "100%", stopColor: "#120338", stopOpacity: "0" })
|
|
6813
6862
|
] }),
|
|
6814
6863
|
/* @__PURE__ */ jsxs41("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
6815
|
-
/* @__PURE__ */
|
|
6816
|
-
/* @__PURE__ */
|
|
6864
|
+
/* @__PURE__ */ jsx53("stop", { offset: "0%", stopColor: "#00e5ff", stopOpacity: "0.4" }),
|
|
6865
|
+
/* @__PURE__ */ jsx53("stop", { offset: "100%", stopColor: "#722ed1", stopOpacity: "0.4" })
|
|
6817
6866
|
] })
|
|
6818
6867
|
] }),
|
|
6819
6868
|
radii.map((r, idx) => {
|
|
6820
6869
|
const isMain = idx + 1 === mainOrbit;
|
|
6821
|
-
return /* @__PURE__ */
|
|
6870
|
+
return /* @__PURE__ */ jsx53(
|
|
6822
6871
|
"circle",
|
|
6823
6872
|
{
|
|
6824
6873
|
cx: centerX,
|
|
@@ -6832,7 +6881,7 @@ function StnTopologyRing({
|
|
|
6832
6881
|
`orbit-${idx}`
|
|
6833
6882
|
);
|
|
6834
6883
|
}),
|
|
6835
|
-
connectionLineStyle !== "none" && calculatedNodes.map((node) => /* @__PURE__ */
|
|
6884
|
+
connectionLineStyle !== "none" && calculatedNodes.map((node) => /* @__PURE__ */ jsx53(
|
|
6836
6885
|
"line",
|
|
6837
6886
|
{
|
|
6838
6887
|
x1: centerX,
|
|
@@ -6846,8 +6895,8 @@ function StnTopologyRing({
|
|
|
6846
6895
|
`line-${node.id}`
|
|
6847
6896
|
)),
|
|
6848
6897
|
/* @__PURE__ */ jsxs41("g", { className: "stn-topology-ring__core", children: [
|
|
6849
|
-
/* @__PURE__ */
|
|
6850
|
-
/* @__PURE__ */
|
|
6898
|
+
/* @__PURE__ */ jsx53("circle", { cx: centerX, cy: centerY, r: 54, fill: `url(#${coreGlowId})` }),
|
|
6899
|
+
/* @__PURE__ */ jsx53(
|
|
6851
6900
|
"circle",
|
|
6852
6901
|
{
|
|
6853
6902
|
cx: centerX,
|
|
@@ -6859,7 +6908,7 @@ function StnTopologyRing({
|
|
|
6859
6908
|
style: { filter: "drop-shadow(0 0 12px rgba(114, 46, 209, 0.6))" }
|
|
6860
6909
|
}
|
|
6861
6910
|
),
|
|
6862
|
-
core.subTitle && /* @__PURE__ */
|
|
6911
|
+
core.subTitle && /* @__PURE__ */ jsx53(
|
|
6863
6912
|
"text",
|
|
6864
6913
|
{
|
|
6865
6914
|
x: centerX,
|
|
@@ -6872,13 +6921,13 @@ function StnTopologyRing({
|
|
|
6872
6921
|
children: core.subTitle
|
|
6873
6922
|
}
|
|
6874
6923
|
),
|
|
6875
|
-
core.title && /* @__PURE__ */
|
|
6924
|
+
core.title && /* @__PURE__ */ jsx53("text", { x: centerX, y: centerY + 8, textAnchor: "middle", fill: "#f0f2f5", fontSize: "10", fontWeight: "600", children: core.title }),
|
|
6876
6925
|
/* @__PURE__ */ jsxs41("text", { x: centerX, y: centerY + 22, textAnchor: "middle", fill: coreColor, fontSize: "9", fontWeight: "500", children: [
|
|
6877
6926
|
"\u25CF ",
|
|
6878
6927
|
coreStatusLabel
|
|
6879
6928
|
] })
|
|
6880
6929
|
] }),
|
|
6881
|
-
calculatedNodes.map((node) => /* @__PURE__ */
|
|
6930
|
+
calculatedNodes.map((node) => /* @__PURE__ */ jsx53(
|
|
6882
6931
|
StnTopologyNodeMark,
|
|
6883
6932
|
{
|
|
6884
6933
|
x: node.x,
|
|
@@ -6907,7 +6956,7 @@ function StnTopologyRing({
|
|
|
6907
6956
|
|
|
6908
6957
|
// src/components/topology/StnTopologyGraph.tsx
|
|
6909
6958
|
import { useState as useState15 } from "react";
|
|
6910
|
-
import { jsx as
|
|
6959
|
+
import { jsx as jsx54, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6911
6960
|
var DEFAULT_GRAPH_NODES = [
|
|
6912
6961
|
{ id: "n1", x: 200, y: 58, status: "minor", label: "GW-01", shape: "circle", content: "icon", icon: "wifi" },
|
|
6913
6962
|
{ id: "n2", x: 118, y: 118, status: "critical", label: "BACKUP", shape: "hexagon", content: "count", count: 4, pulse: true },
|
|
@@ -6943,7 +6992,7 @@ function StnTopologyGraph({
|
|
|
6943
6992
|
}) {
|
|
6944
6993
|
const [viewMode, setViewMode] = useState15(defaultMode);
|
|
6945
6994
|
if (loading) {
|
|
6946
|
-
return /* @__PURE__ */
|
|
6995
|
+
return /* @__PURE__ */ jsx54("div", { className: cn("stn-topology-graph", "stn-topology-graph--loading", className), style, ...rest, children: /* @__PURE__ */ jsx54("div", { className: "stn-topology-graph__loading-label", children: "\uD1A0\uD3F4\uB85C\uC9C0 \uCE94\uBC84\uC2A4 \uB370\uC774\uD130\uB97C \uBD88\uB7EC\uC624\uB294 \uC911..." }) });
|
|
6947
6996
|
}
|
|
6948
6997
|
const nodeMap = new Map(nodes.map((n) => [n.id, n]));
|
|
6949
6998
|
return /* @__PURE__ */ jsxs42(
|
|
@@ -6955,7 +7004,7 @@ function StnTopologyGraph({
|
|
|
6955
7004
|
"data-view-mode": viewMode,
|
|
6956
7005
|
...rest,
|
|
6957
7006
|
children: [
|
|
6958
|
-
showModeToggle && /* @__PURE__ */
|
|
7007
|
+
showModeToggle && /* @__PURE__ */ jsx54("div", { className: "stn-topology-graph__mode", children: /* @__PURE__ */ jsx54(
|
|
6959
7008
|
StnSegmented,
|
|
6960
7009
|
{
|
|
6961
7010
|
size: "sm",
|
|
@@ -6969,21 +7018,21 @@ function StnTopologyGraph({
|
|
|
6969
7018
|
) }),
|
|
6970
7019
|
/* @__PURE__ */ jsxs42("svg", { className: "stn-topology-graph__svg", width: "100%", height: "100%", viewBox: "0 0 400 300", overflow: "visible", children: [
|
|
6971
7020
|
viewMode === "3D" ? /* @__PURE__ */ jsxs42("g", { opacity: "0.6", children: [
|
|
6972
|
-
/* @__PURE__ */
|
|
6973
|
-
/* @__PURE__ */
|
|
6974
|
-
/* @__PURE__ */
|
|
6975
|
-
/* @__PURE__ */
|
|
6976
|
-
/* @__PURE__ */
|
|
6977
|
-
/* @__PURE__ */
|
|
6978
|
-
/* @__PURE__ */
|
|
6979
|
-
/* @__PURE__ */
|
|
7021
|
+
/* @__PURE__ */ jsx54("line", { x1: "60", y1: "260", x2: "200", y2: "80", stroke: "rgba(255,255,255,0.06)", strokeDasharray: "3 3" }),
|
|
7022
|
+
/* @__PURE__ */ jsx54("line", { x1: "130", y1: "260", x2: "200", y2: "80", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "3 3" }),
|
|
7023
|
+
/* @__PURE__ */ jsx54("line", { x1: "200", y1: "260", x2: "200", y2: "80", stroke: "rgba(255,255,255,0.14)", strokeDasharray: "3 3" }),
|
|
7024
|
+
/* @__PURE__ */ jsx54("line", { x1: "270", y1: "260", x2: "200", y2: "80", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "3 3" }),
|
|
7025
|
+
/* @__PURE__ */ jsx54("line", { x1: "340", y1: "260", x2: "200", y2: "80", stroke: "rgba(255,255,255,0.06)", strokeDasharray: "3 3" }),
|
|
7026
|
+
/* @__PURE__ */ jsx54("line", { x1: "100", y1: "230", x2: "300", y2: "230", stroke: "rgba(255,255,255,0.06)" }),
|
|
7027
|
+
/* @__PURE__ */ jsx54("line", { x1: "130", y1: "190", x2: "270", y2: "190", stroke: "rgba(255,255,255,0.06)" }),
|
|
7028
|
+
/* @__PURE__ */ jsx54("line", { x1: "160", y1: "140", x2: "240", y2: "140", stroke: "rgba(255,255,255,0.06)" })
|
|
6980
7029
|
] }) : /* @__PURE__ */ jsxs42("g", { opacity: "0.3", children: [
|
|
6981
|
-
/* @__PURE__ */
|
|
6982
|
-
/* @__PURE__ */
|
|
6983
|
-
/* @__PURE__ */
|
|
6984
|
-
/* @__PURE__ */
|
|
6985
|
-
/* @__PURE__ */
|
|
6986
|
-
/* @__PURE__ */
|
|
7030
|
+
/* @__PURE__ */ jsx54("line", { x1: "40", y1: "60", x2: "360", y2: "60", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" }),
|
|
7031
|
+
/* @__PURE__ */ jsx54("line", { x1: "40", y1: "150", x2: "360", y2: "150", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" }),
|
|
7032
|
+
/* @__PURE__ */ jsx54("line", { x1: "40", y1: "240", x2: "360", y2: "240", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" }),
|
|
7033
|
+
/* @__PURE__ */ jsx54("line", { x1: "100", y1: "20", x2: "100", y2: "280", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" }),
|
|
7034
|
+
/* @__PURE__ */ jsx54("line", { x1: "200", y1: "20", x2: "200", y2: "280", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" }),
|
|
7035
|
+
/* @__PURE__ */ jsx54("line", { x1: "300", y1: "20", x2: "300", y2: "280", stroke: "rgba(255,255,255,0.08)", strokeDasharray: "4 4" })
|
|
6987
7036
|
] }),
|
|
6988
7037
|
links.map((link, idx) => {
|
|
6989
7038
|
const s = nodeMap.get(link.source);
|
|
@@ -6991,7 +7040,7 @@ function StnTopologyGraph({
|
|
|
6991
7040
|
if (!s || !t) return null;
|
|
6992
7041
|
const isAlert = s.status === "critical" || t.status === "critical" || link.status === "critical";
|
|
6993
7042
|
const strokeColor = isAlert ? "rgba(255, 77, 79, 0.65)" : "rgba(255, 255, 255, 0.2)";
|
|
6994
|
-
return /* @__PURE__ */
|
|
7043
|
+
return /* @__PURE__ */ jsx54(
|
|
6995
7044
|
"line",
|
|
6996
7045
|
{
|
|
6997
7046
|
x1: s.x,
|
|
@@ -7008,7 +7057,7 @@ function StnTopologyGraph({
|
|
|
7008
7057
|
nodes.map((node) => {
|
|
7009
7058
|
const status = node.status ?? "normal";
|
|
7010
7059
|
const isCore = Boolean(node.isCore);
|
|
7011
|
-
return /* @__PURE__ */
|
|
7060
|
+
return /* @__PURE__ */ jsx54(
|
|
7012
7061
|
StnTopologyNodeMark,
|
|
7013
7062
|
{
|
|
7014
7063
|
x: node.x,
|
|
@@ -7033,15 +7082,15 @@ function StnTopologyGraph({
|
|
|
7033
7082
|
] }),
|
|
7034
7083
|
showMinimap && /* @__PURE__ */ jsxs42("div", { className: "stn-topology-graph__minimap", children: [
|
|
7035
7084
|
/* @__PURE__ */ jsxs42("div", { className: "stn-topology-graph__minimap-head", children: [
|
|
7036
|
-
/* @__PURE__ */
|
|
7037
|
-
/* @__PURE__ */
|
|
7085
|
+
/* @__PURE__ */ jsx54("span", { children: "\uBBF8\uB9AC\uBCF4\uAE30" }),
|
|
7086
|
+
/* @__PURE__ */ jsx54("span", { children: "\u2014" })
|
|
7038
7087
|
] }),
|
|
7039
7088
|
/* @__PURE__ */ jsxs42("svg", { width: "100%", height: "40", viewBox: "0 0 100 50", children: [
|
|
7040
|
-
/* @__PURE__ */
|
|
7041
|
-
/* @__PURE__ */
|
|
7042
|
-
/* @__PURE__ */
|
|
7043
|
-
/* @__PURE__ */
|
|
7044
|
-
/* @__PURE__ */
|
|
7089
|
+
/* @__PURE__ */ jsx54("polyline", { points: "50,10 40,25 50,40 60,30", fill: "none", stroke: "rgba(255,77,79,0.5)", strokeWidth: "1" }),
|
|
7090
|
+
/* @__PURE__ */ jsx54("circle", { cx: "50", cy: "10", r: "2", fill: STN_TOPOLOGY_STATUS_COLORS.critical.main }),
|
|
7091
|
+
/* @__PURE__ */ jsx54("circle", { cx: "40", cy: "25", r: "2.5", fill: STN_TOPOLOGY_STATUS_COLORS.critical.main }),
|
|
7092
|
+
/* @__PURE__ */ jsx54("circle", { cx: "50", cy: "40", r: "2", fill: "#00e5ff" }),
|
|
7093
|
+
/* @__PURE__ */ jsx54("circle", { cx: "60", cy: "30", r: "2", fill: STN_TOPOLOGY_STATUS_COLORS.normal.main })
|
|
7045
7094
|
] })
|
|
7046
7095
|
] })
|
|
7047
7096
|
]
|
|
@@ -7050,7 +7099,7 @@ function StnTopologyGraph({
|
|
|
7050
7099
|
}
|
|
7051
7100
|
|
|
7052
7101
|
// src/components/StnWidget.tsx
|
|
7053
|
-
import { Fragment as Fragment5, jsx as
|
|
7102
|
+
import { Fragment as Fragment5, jsx as jsx55, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7054
7103
|
var SHELL_PUB_CLASS = {
|
|
7055
7104
|
card: "",
|
|
7056
7105
|
"fault-panel": "",
|
|
@@ -7133,20 +7182,20 @@ function StnWidgetPeriodText({
|
|
|
7133
7182
|
className,
|
|
7134
7183
|
...rest
|
|
7135
7184
|
}) {
|
|
7136
|
-
return /* @__PURE__ */
|
|
7185
|
+
return /* @__PURE__ */ jsx55("span", { className: cn("stn-widget__period-text", className), ...rest, children });
|
|
7137
7186
|
}
|
|
7138
7187
|
function StnWidgetPeriodSelect({
|
|
7139
7188
|
label,
|
|
7140
7189
|
className,
|
|
7141
7190
|
...rest
|
|
7142
7191
|
}) {
|
|
7143
|
-
return /* @__PURE__ */
|
|
7192
|
+
return /* @__PURE__ */ jsx55(
|
|
7144
7193
|
StnButton,
|
|
7145
7194
|
{
|
|
7146
7195
|
variant: "ghost",
|
|
7147
7196
|
size: "sm",
|
|
7148
7197
|
shape: "square",
|
|
7149
|
-
icon: /* @__PURE__ */
|
|
7198
|
+
icon: /* @__PURE__ */ jsx55(StnIcon, { name: "line/chevron-down" }),
|
|
7150
7199
|
iconPosition: "right",
|
|
7151
7200
|
className,
|
|
7152
7201
|
...rest,
|
|
@@ -7164,25 +7213,25 @@ function StnWidgetPeriodPager({
|
|
|
7164
7213
|
...rest
|
|
7165
7214
|
}) {
|
|
7166
7215
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__period-pager", className), ...rest, children: [
|
|
7167
|
-
/* @__PURE__ */
|
|
7216
|
+
/* @__PURE__ */ jsx55(
|
|
7168
7217
|
StnButton,
|
|
7169
7218
|
{
|
|
7170
7219
|
variant: "ghost",
|
|
7171
7220
|
size: "sm",
|
|
7172
7221
|
shape: "square",
|
|
7173
|
-
icon: /* @__PURE__ */
|
|
7222
|
+
icon: /* @__PURE__ */ jsx55(StnIcon, { name: "line/arrow-narrow-left" }),
|
|
7174
7223
|
onClick: onPrev,
|
|
7175
7224
|
"aria-label": prevLabel
|
|
7176
7225
|
}
|
|
7177
7226
|
),
|
|
7178
|
-
/* @__PURE__ */
|
|
7179
|
-
/* @__PURE__ */
|
|
7227
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__period-pager-label", children: label }),
|
|
7228
|
+
/* @__PURE__ */ jsx55(
|
|
7180
7229
|
StnButton,
|
|
7181
7230
|
{
|
|
7182
7231
|
variant: "ghost",
|
|
7183
7232
|
size: "sm",
|
|
7184
7233
|
shape: "square",
|
|
7185
|
-
icon: /* @__PURE__ */
|
|
7234
|
+
icon: /* @__PURE__ */ jsx55(StnIcon, { name: "line/arrow-narrow-right" }),
|
|
7186
7235
|
onClick: onNext,
|
|
7187
7236
|
"aria-label": nextLabel
|
|
7188
7237
|
}
|
|
@@ -7211,16 +7260,16 @@ function StnWidgetHeaderInner({
|
|
|
7211
7260
|
const resolvedIconName = headerIconName ?? defaultHeaderIconName(appearance);
|
|
7212
7261
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__head", wrapActions && "stn-widget__head--wrap"), children: [
|
|
7213
7262
|
/* @__PURE__ */ jsxs43("div", { className: "stn-widget__head-start", children: [
|
|
7214
|
-
showHeaderIcon ? headerIcon != null ? /* @__PURE__ */
|
|
7263
|
+
showHeaderIcon ? headerIcon != null ? /* @__PURE__ */ jsx55(StnWidgetInsetIcon, { size: "sm", children: headerIcon }) : resolvedIconName ? /* @__PURE__ */ jsx55(StnWidgetInsetIcon, { size: "sm", icon: resolvedIconName }) : null : null,
|
|
7215
7264
|
title != null || badge != null ? typeof title === "string" || title == null ? /* @__PURE__ */ jsxs43("div", { className: "stn-widget__title-wrap", children: [
|
|
7216
|
-
typeof title === "string" ? /* @__PURE__ */
|
|
7265
|
+
typeof title === "string" ? /* @__PURE__ */ jsx55("p", { className: cn("stn-widget__title", titleSize, titleWeight), title, children: title }) : null,
|
|
7217
7266
|
badge
|
|
7218
7267
|
] }) : /* @__PURE__ */ jsxs43(Fragment5, { children: [
|
|
7219
7268
|
title,
|
|
7220
7269
|
badge
|
|
7221
7270
|
] }) : null
|
|
7222
7271
|
] }),
|
|
7223
|
-
titleActions != null || periodActions != null || periodLabel != null && periodLabel !== "" ? /* @__PURE__ */
|
|
7272
|
+
titleActions != null || periodActions != null || periodLabel != null && periodLabel !== "" ? /* @__PURE__ */ jsx55("div", { className: "stn-widget__head-end", children: titleActions ?? (periodActions != null ? periodActions : periodLabel != null && periodLabel !== "" ? /* @__PURE__ */ jsx55(StnWidgetPeriodText, { children: periodLabel }) : null) }) : null
|
|
7224
7273
|
] });
|
|
7225
7274
|
}
|
|
7226
7275
|
function StnWidgetRoot({
|
|
@@ -7304,9 +7353,9 @@ function StnWidgetRoot({
|
|
|
7304
7353
|
};
|
|
7305
7354
|
const slots = partitionWidgetChildren(children);
|
|
7306
7355
|
const propHead = shell === "fault-panel" && !isFigmaShell ? title != null || titleActions ? /* @__PURE__ */ jsxs43("div", { className: "app_bar", children: [
|
|
7307
|
-
/* @__PURE__ */
|
|
7356
|
+
/* @__PURE__ */ jsx55("div", { className: "fault_title_box", children: typeof title === "string" ? /* @__PURE__ */ jsx55("span", { children: title }) : title }),
|
|
7308
7357
|
titleActions
|
|
7309
|
-
] }) : null : shell === "board" || shell === "board-item" ? title != null ? /* @__PURE__ */
|
|
7358
|
+
] }) : null : shell === "board" || shell === "board-item" ? title != null ? /* @__PURE__ */ jsx55("div", { className: "stn-widget__head", children: typeof title === "string" ? /* @__PURE__ */ jsx55("p", { children: title }) : title }) : null : isFigmaShell ? /* @__PURE__ */ jsx55(
|
|
7310
7359
|
StnWidgetHeaderInner,
|
|
7311
7360
|
{
|
|
7312
7361
|
appearance,
|
|
@@ -7324,26 +7373,26 @@ function StnWidgetRoot({
|
|
|
7324
7373
|
}
|
|
7325
7374
|
) : title != null || badge != null || titleActions ? /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__head", wrapActions && "stn-widget__head--wrap"), children: [
|
|
7326
7375
|
/* @__PURE__ */ jsxs43("div", { className: "stn-widget__head-start", children: [
|
|
7327
|
-
title != null ? typeof title === "string" ? /* @__PURE__ */
|
|
7376
|
+
title != null ? typeof title === "string" ? /* @__PURE__ */ jsx55("p", { className: cn("stn-widget__title", titleSize, titleWeight), title, children: title }) : title : null,
|
|
7328
7377
|
badge
|
|
7329
7378
|
] }),
|
|
7330
|
-
titleActions ? /* @__PURE__ */
|
|
7379
|
+
titleActions ? /* @__PURE__ */ jsx55("div", { className: "stn-widget__head-end", children: titleActions }) : null
|
|
7331
7380
|
] }) : null;
|
|
7332
7381
|
const head = slots.headers.length > 0 ? slots.headers : propHead;
|
|
7333
7382
|
const autoBodyClass = shell === "fault-panel" && !isFigmaShell ? "table_area" : void 0;
|
|
7334
7383
|
let body;
|
|
7335
7384
|
if (loading) {
|
|
7336
|
-
body = /* @__PURE__ */
|
|
7385
|
+
body = /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__body", autoBodyClass, contentClassName), children: /* @__PURE__ */ jsx55(StnWidgetLoading, {}) });
|
|
7337
7386
|
} else if (slots.bodies.length > 0) {
|
|
7338
7387
|
body = slots.bodies.map(
|
|
7339
7388
|
(slot, index) => mergeBodySlot(slot, index === 0 ? slots.rest : [], contentClassName, isEmptyState, emptyStyle)
|
|
7340
7389
|
);
|
|
7341
7390
|
} else {
|
|
7342
|
-
body = /* @__PURE__ */
|
|
7391
|
+
body = /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__body", autoBodyClass, isEmptyState && "empty", contentClassName), style: emptyStyle, children: slots.rest });
|
|
7343
7392
|
}
|
|
7344
|
-
const footerNode = slots.footers.length > 0 ? slots.footers : footer ? /* @__PURE__ */
|
|
7393
|
+
const footerNode = slots.footers.length > 0 ? slots.footers : footer ? /* @__PURE__ */ jsx55("div", { className: "stn-widget__footer", children: footer }) : null;
|
|
7345
7394
|
const card = /* @__PURE__ */ jsxs43("div", { ...rootProps, children: [
|
|
7346
|
-
isFigmaShell && appearanceShell === "overlay" ? /* @__PURE__ */
|
|
7395
|
+
isFigmaShell && appearanceShell === "overlay" ? /* @__PURE__ */ jsx55("div", { className: "stn-widget__map-deco", "aria-hidden": true }) : null,
|
|
7347
7396
|
head,
|
|
7348
7397
|
body,
|
|
7349
7398
|
footerNode
|
|
@@ -7355,7 +7404,7 @@ function StnWidgetRoot({
|
|
|
7355
7404
|
] });
|
|
7356
7405
|
}
|
|
7357
7406
|
function StnWidgetHeader({ className, wrap = false, children, ...rest }) {
|
|
7358
|
-
return /* @__PURE__ */
|
|
7407
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__head", wrap && "stn-widget__head--wrap", className), ...rest, children });
|
|
7359
7408
|
}
|
|
7360
7409
|
markWidgetSlot(StnWidgetHeader, "header");
|
|
7361
7410
|
function StnWidgetTitle({
|
|
@@ -7367,10 +7416,10 @@ function StnWidgetTitle({
|
|
|
7367
7416
|
...rest
|
|
7368
7417
|
}) {
|
|
7369
7418
|
const titleAttr = title ?? (typeof children === "string" ? children : void 0);
|
|
7370
|
-
return /* @__PURE__ */
|
|
7419
|
+
return /* @__PURE__ */ jsx55("p", { className: cn("stn-widget__title", size, weight, className), title: titleAttr, ...rest, children });
|
|
7371
7420
|
}
|
|
7372
7421
|
function StnWidgetActions({ className, children, ...rest }) {
|
|
7373
|
-
return /* @__PURE__ */
|
|
7422
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__head-end", className), ...rest, children });
|
|
7374
7423
|
}
|
|
7375
7424
|
function StnWidgetBody({
|
|
7376
7425
|
padding,
|
|
@@ -7384,7 +7433,7 @@ function StnWidgetBody({
|
|
|
7384
7433
|
}) {
|
|
7385
7434
|
const emptyText = typeof empty === "string" ? empty : void 0;
|
|
7386
7435
|
const mergedStyle = emptyText ? { ["--stn-widget-empty-text"]: `"${emptyText}"`, ...style } : style;
|
|
7387
|
-
return /* @__PURE__ */
|
|
7436
|
+
return /* @__PURE__ */ jsx55(
|
|
7388
7437
|
"div",
|
|
7389
7438
|
{
|
|
7390
7439
|
className: cn(
|
|
@@ -7406,7 +7455,7 @@ function StnWidgetBody({
|
|
|
7406
7455
|
}
|
|
7407
7456
|
markWidgetSlot(StnWidgetBody, "body");
|
|
7408
7457
|
function StnWidgetChartSlot({ label = "select chart", className, children, ...rest }) {
|
|
7409
|
-
return /* @__PURE__ */
|
|
7458
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__chart-slot", className), "data-stn-widget-chart-slot": true, ...rest, children: children ?? /* @__PURE__ */ jsx55("span", { className: "stn-widget__chart-slot-label", children: label }) });
|
|
7410
7459
|
}
|
|
7411
7460
|
function StnWidgetStatusItem({
|
|
7412
7461
|
label,
|
|
@@ -7420,7 +7469,7 @@ function StnWidgetStatusItem({
|
|
|
7420
7469
|
const grade = gradeProp ?? (status === "warning" ? "minor" : status) ?? "normal";
|
|
7421
7470
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__status-item", className), ...rest, children: [
|
|
7422
7471
|
/* @__PURE__ */ jsxs43("span", { className: "stn-widget__status-label", children: [
|
|
7423
|
-
showDot ? /* @__PURE__ */
|
|
7472
|
+
showDot ? /* @__PURE__ */ jsx55(
|
|
7424
7473
|
"span",
|
|
7425
7474
|
{
|
|
7426
7475
|
className: cn("stn-widget__status-dot", `stn-widget__status-dot--${grade}`),
|
|
@@ -7429,23 +7478,23 @@ function StnWidgetStatusItem({
|
|
|
7429
7478
|
) : null,
|
|
7430
7479
|
label
|
|
7431
7480
|
] }),
|
|
7432
|
-
/* @__PURE__ */
|
|
7481
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__status-val", children: value })
|
|
7433
7482
|
] });
|
|
7434
7483
|
}
|
|
7435
7484
|
function StnWidgetStatusList({ className, children, ...rest }) {
|
|
7436
|
-
return /* @__PURE__ */
|
|
7485
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__status-list", className), ...rest, children });
|
|
7437
7486
|
}
|
|
7438
7487
|
function StnWidgetStatGroup({ className, children, ...rest }) {
|
|
7439
|
-
return /* @__PURE__ */
|
|
7488
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__stat-group", className), ...rest, children });
|
|
7440
7489
|
}
|
|
7441
7490
|
function StnWidgetStatCard({ label, count, className, ...rest }) {
|
|
7442
7491
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__stat-card", className), ...rest, children: [
|
|
7443
|
-
/* @__PURE__ */
|
|
7444
|
-
/* @__PURE__ */
|
|
7492
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__stat-label", children: label }),
|
|
7493
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__stat-count", children: count })
|
|
7445
7494
|
] });
|
|
7446
7495
|
}
|
|
7447
7496
|
function StnWidgetPlaceholder({ label = "\uCF58\uD150\uCE20 \uC601\uC5ED" }) {
|
|
7448
|
-
return /* @__PURE__ */
|
|
7497
|
+
return /* @__PURE__ */ jsx55("div", { className: "stn-widget__placeholder", children: label });
|
|
7449
7498
|
}
|
|
7450
7499
|
var GRADE_ROW_ICON = {
|
|
7451
7500
|
critical: "fill/alert4",
|
|
@@ -7471,39 +7520,39 @@ function StnWidgetGradeRow({
|
|
|
7471
7520
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__grade-row", `stn-widget__grade-row--${grade}`, className), ...rest, children: [
|
|
7472
7521
|
/* @__PURE__ */ jsxs43("div", { className: "stn-widget__grade-row-left", children: [
|
|
7473
7522
|
/* @__PURE__ */ jsxs43("span", { className: "stn-widget__grade-row-label", children: [
|
|
7474
|
-
/* @__PURE__ */
|
|
7523
|
+
/* @__PURE__ */ jsx55(StnIcon, { name: GRADE_ROW_ICON[grade], size: 20, className: "stn-widget__grade-row-icon", "aria-hidden": true }),
|
|
7475
7524
|
label
|
|
7476
7525
|
] }),
|
|
7477
|
-
/* @__PURE__ */
|
|
7526
|
+
/* @__PURE__ */ jsx55("div", { className: "stn-widget__grade-row-track", "aria-hidden": true, children: /* @__PURE__ */ jsx55("span", { className: "stn-widget__grade-row-fill", style: { width: `${clamped}%` } }) })
|
|
7478
7527
|
] }),
|
|
7479
7528
|
/* @__PURE__ */ jsxs43("div", { className: "stn-widget__grade-row-right", children: [
|
|
7480
|
-
/* @__PURE__ */
|
|
7481
|
-
/* @__PURE__ */
|
|
7529
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__grade-row-value", children: value }),
|
|
7530
|
+
/* @__PURE__ */ jsx55("span", { className: "stn-widget__grade-row-percent", children: resolvedPercentLabel })
|
|
7482
7531
|
] })
|
|
7483
7532
|
] });
|
|
7484
7533
|
}
|
|
7485
7534
|
function StnWidgetGradeRowList({ className, children, ...rest }) {
|
|
7486
|
-
return /* @__PURE__ */
|
|
7535
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__grade-row-list", className), ...rest, children });
|
|
7487
7536
|
}
|
|
7488
7537
|
function StnWidgetFooter({ className, children, ...rest }) {
|
|
7489
|
-
return /* @__PURE__ */
|
|
7538
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__footer", className), ...rest, children });
|
|
7490
7539
|
}
|
|
7491
7540
|
markWidgetSlot(StnWidgetFooter, "footer");
|
|
7492
7541
|
function StnWidgetEmpty({ className, children, ...rest }) {
|
|
7493
7542
|
return /* @__PURE__ */ jsxs43("div", { className: cn("stn-widget__empty", className), ...rest, children: [
|
|
7494
7543
|
/* @__PURE__ */ jsxs43("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", style: { opacity: 0.6 }, children: [
|
|
7495
|
-
/* @__PURE__ */
|
|
7496
|
-
/* @__PURE__ */
|
|
7497
|
-
/* @__PURE__ */
|
|
7544
|
+
/* @__PURE__ */ jsx55("circle", { cx: "12", cy: "12", r: "10" }),
|
|
7545
|
+
/* @__PURE__ */ jsx55("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
|
|
7546
|
+
/* @__PURE__ */ jsx55("line", { x1: "12", y1: "16", x2: "12.01", y2: "16" })
|
|
7498
7547
|
] }),
|
|
7499
|
-
/* @__PURE__ */
|
|
7548
|
+
/* @__PURE__ */ jsx55("div", { children: children ?? "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." })
|
|
7500
7549
|
] });
|
|
7501
7550
|
}
|
|
7502
7551
|
function StnWidgetLoading({ lines = 3, className, children, ...rest }) {
|
|
7503
|
-
return /* @__PURE__ */
|
|
7552
|
+
return /* @__PURE__ */ jsx55("div", { className: cn("stn-widget__loading", className), ...rest, children: children ?? /* @__PURE__ */ jsx55(StnLoadingSkeleton.Widget, { lines }) });
|
|
7504
7553
|
}
|
|
7505
7554
|
function StnWidgetInsetIcon({ className, size = "sm", ...rest }) {
|
|
7506
|
-
return /* @__PURE__ */
|
|
7555
|
+
return /* @__PURE__ */ jsx55(StnIconBox, { size, className: cn("stn-widget__inset-icon", className), ...rest });
|
|
7507
7556
|
}
|
|
7508
7557
|
var StnWidget = Object.assign(StnWidgetRoot, {
|
|
7509
7558
|
Header: StnWidgetHeader,
|
|
@@ -7550,11 +7599,11 @@ import {
|
|
|
7550
7599
|
// src/layouts/StnStack.tsx
|
|
7551
7600
|
import {
|
|
7552
7601
|
Children as Children3,
|
|
7553
|
-
forwardRef as
|
|
7602
|
+
forwardRef as forwardRef32,
|
|
7554
7603
|
Fragment as Fragment6,
|
|
7555
7604
|
isValidElement as isValidElement6
|
|
7556
7605
|
} from "react";
|
|
7557
|
-
import { jsx as
|
|
7606
|
+
import { jsx as jsx56, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7558
7607
|
var BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"];
|
|
7559
7608
|
var DIRECTION_CLASS = /* @__PURE__ */ new Set(["row", "row-reverse", "column", "column-reverse"]);
|
|
7560
7609
|
var STACK_SPACE_TOKENS = /* @__PURE__ */ new Set([2, 4, 6, 8, 10, 12, 14, 16, 20, 24, 32, 36, 40, 44, 48, 56, 64, 80, 84]);
|
|
@@ -7647,7 +7696,7 @@ function spacingClassesAndStyle(spacing) {
|
|
|
7647
7696
|
}
|
|
7648
7697
|
return { classes, inlineGap };
|
|
7649
7698
|
}
|
|
7650
|
-
var StnStack =
|
|
7699
|
+
var StnStack = forwardRef32(function StnStack2({
|
|
7651
7700
|
component,
|
|
7652
7701
|
as,
|
|
7653
7702
|
direction = "column",
|
|
@@ -7682,7 +7731,7 @@ var StnStack = forwardRef31(function StnStack2({
|
|
|
7682
7731
|
child
|
|
7683
7732
|
] }, key);
|
|
7684
7733
|
}) : children;
|
|
7685
|
-
return /* @__PURE__ */
|
|
7734
|
+
return /* @__PURE__ */ jsx56(
|
|
7686
7735
|
Component,
|
|
7687
7736
|
{
|
|
7688
7737
|
ref,
|
|
@@ -7706,7 +7755,7 @@ var StnStack = forwardRef31(function StnStack2({
|
|
|
7706
7755
|
});
|
|
7707
7756
|
|
|
7708
7757
|
// src/patterns/dashboard/AlertCenterDashboard.tsx
|
|
7709
|
-
import { jsx as
|
|
7758
|
+
import { jsx as jsx57, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7710
7759
|
var TOP5_ROWS = [
|
|
7711
7760
|
{ label: "\uADF8\uB791\uC2DC\uC544", percent: 80, value: "80\uAC74", grade: "critical" },
|
|
7712
7761
|
{ label: "\uC5F0\uB9BD\uC8FC\uD0DD 15\uC138\uB300", percent: 74, value: "74\uAC74", grade: "major" },
|
|
@@ -7724,17 +7773,17 @@ function AlertCenterDashboard({ className, appearance = "translucent", loading =
|
|
|
7724
7773
|
style: { flex: "1 1 0%", minHeight: 0, height: "100%", width: "100%" },
|
|
7725
7774
|
"data-stn-dashboard": "alert-widgets",
|
|
7726
7775
|
children: [
|
|
7727
|
-
/* @__PURE__ */
|
|
7728
|
-
/* @__PURE__ */
|
|
7729
|
-
/* @__PURE__ */
|
|
7730
|
-
/* @__PURE__ */
|
|
7776
|
+
/* @__PURE__ */ jsx57(StnWidget, { title: "\uC2DC\uC124 \uD604\uD669", appearance, interactive: true, children: loading ? /* @__PURE__ */ jsx57(StnLoadingSkeleton.Widget, { lines: 3 }) : /* @__PURE__ */ jsxs45(StnWidget.StatusList, { children: [
|
|
7777
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "PTN", value: "179", showDot: false }),
|
|
7778
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "MSPP", value: "63", showDot: false }),
|
|
7779
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "L3\uC2A4\uC704\uCE58", value: "27", showDot: false })
|
|
7731
7780
|
] }) }),
|
|
7732
|
-
/* @__PURE__ */
|
|
7733
|
-
/* @__PURE__ */
|
|
7734
|
-
/* @__PURE__ */
|
|
7735
|
-
/* @__PURE__ */
|
|
7781
|
+
/* @__PURE__ */ jsx57(StnWidget, { title: "\uC7A5\uC560 \uD604\uD669", appearance, interactive: true, children: loading ? /* @__PURE__ */ jsx57(StnLoadingSkeleton.Widget, { lines: 3 }) : /* @__PURE__ */ jsxs45(StnWidget.StatusList, { children: [
|
|
7782
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "Critical", value: "43", grade: "critical" }),
|
|
7783
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "Major", value: "79", grade: "major" }),
|
|
7784
|
+
/* @__PURE__ */ jsx57(StnWidget.StatusItem, { label: "Minor", value: "3", grade: "minor" })
|
|
7736
7785
|
] }) }),
|
|
7737
|
-
/* @__PURE__ */
|
|
7786
|
+
/* @__PURE__ */ jsx57(StnWidget, { title: "\uC77C\uC77C \uC7A5\uBE44\uBCC4 \uC7A5\uC560 TOP5", appearance, interactive: true, children: loading ? /* @__PURE__ */ jsx57(StnLoadingSkeleton.Widget, { lines: 4 }) : /* @__PURE__ */ jsx57(StnWidget.GradeRowList, { children: TOP5_ROWS.map((row) => /* @__PURE__ */ jsx57(
|
|
7738
7787
|
StnWidget.GradeRow,
|
|
7739
7788
|
{
|
|
7740
7789
|
grade: row.grade,
|
|
@@ -7744,50 +7793,50 @@ function AlertCenterDashboard({ className, appearance = "translucent", loading =
|
|
|
7744
7793
|
},
|
|
7745
7794
|
row.label
|
|
7746
7795
|
)) }) }),
|
|
7747
|
-
/* @__PURE__ */
|
|
7796
|
+
/* @__PURE__ */ jsx57(StnWidget, { title: "\uC77C\uC77C \uC7A5\uC560 \uD1B5\uACC4", appearance, interactive: true, children: loading ? /* @__PURE__ */ jsx57(StnLoadingSkeleton.Widget, { lines: 3 }) : /* @__PURE__ */ jsx57(StnWidget.ChartSlot, { label: "\uC77C\uC77C \uC7A5\uC560 \uD1B5\uACC4 \uCC28\uD2B8" }) })
|
|
7748
7797
|
]
|
|
7749
7798
|
}
|
|
7750
7799
|
);
|
|
7751
7800
|
}
|
|
7752
7801
|
|
|
7753
7802
|
// src/patterns/dashboard/PubDashboardWidgetBodies.tsx
|
|
7754
|
-
import { jsx as
|
|
7803
|
+
import { jsx as jsx58, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7755
7804
|
function PubDisabilityStatusList({ items, summary }) {
|
|
7756
7805
|
return /* @__PURE__ */ jsxs46("div", { className: "ds-disability-status", children: [
|
|
7757
|
-
/* @__PURE__ */
|
|
7806
|
+
/* @__PURE__ */ jsx58("ul", { className: "ds-disability-status__list", children: items.map((item, i) => /* @__PURE__ */ jsxs46(
|
|
7758
7807
|
"li",
|
|
7759
7808
|
{
|
|
7760
7809
|
className: ["ds-disability-status__item", item.grade].filter(Boolean).join(" "),
|
|
7761
7810
|
children: [
|
|
7762
7811
|
/* @__PURE__ */ jsxs46("span", { children: [
|
|
7763
|
-
item.showDot !== false && item.grade ? /* @__PURE__ */
|
|
7812
|
+
item.showDot !== false && item.grade ? /* @__PURE__ */ jsx58("span", { className: "dot", "aria-hidden": true }) : null,
|
|
7764
7813
|
item.label
|
|
7765
7814
|
] }),
|
|
7766
|
-
/* @__PURE__ */
|
|
7815
|
+
/* @__PURE__ */ jsx58("p", { children: item.value })
|
|
7767
7816
|
]
|
|
7768
7817
|
},
|
|
7769
7818
|
i
|
|
7770
7819
|
)) }),
|
|
7771
|
-
summary && summary.length > 0 ? /* @__PURE__ */
|
|
7820
|
+
summary && summary.length > 0 ? /* @__PURE__ */ jsx58("div", { className: "ds-disability-status__summary", children: summary.map((row, i) => /* @__PURE__ */ jsxs46("p", { className: "ds-disability-status__value", children: [
|
|
7772
7821
|
row.label,
|
|
7773
|
-
/* @__PURE__ */
|
|
7822
|
+
/* @__PURE__ */ jsx58("span", { children: row.value })
|
|
7774
7823
|
] }, i)) }) : null
|
|
7775
7824
|
] });
|
|
7776
7825
|
}
|
|
7777
7826
|
function PubTrafficTop5Bars({ rows }) {
|
|
7778
7827
|
const maxPercent = Math.max(...rows.map((row) => row.percent), 0);
|
|
7779
|
-
return /* @__PURE__ */
|
|
7780
|
-
/* @__PURE__ */
|
|
7781
|
-
/* @__PURE__ */
|
|
7782
|
-
/* @__PURE__ */
|
|
7828
|
+
return /* @__PURE__ */ jsx58("div", { className: "ds-bar-group", children: rows.map((row) => /* @__PURE__ */ jsxs46("div", { className: ["ds-bar", row.percent === maxPercent ? "max" : ""].filter(Boolean).join(" "), children: [
|
|
7829
|
+
/* @__PURE__ */ jsx58("p", { className: "ds-bar-name", title: row.label, children: row.label }),
|
|
7830
|
+
/* @__PURE__ */ jsx58("div", { className: "ds-bar-con", title: `${row.percent}%`, children: /* @__PURE__ */ jsx58("span", { className: "ds-bar-gauge", style: { "--percent": `${row.percent}%` } }) }),
|
|
7831
|
+
/* @__PURE__ */ jsx58("p", { className: "ds-bar-value", title: row.value, children: row.value })
|
|
7783
7832
|
] }, row.label)) });
|
|
7784
7833
|
}
|
|
7785
7834
|
function PubTop5EquipmentBars({ rows }) {
|
|
7786
7835
|
return /* @__PURE__ */ jsxs46("div", { className: "ds-group", children: [
|
|
7787
|
-
/* @__PURE__ */
|
|
7788
|
-
/* @__PURE__ */
|
|
7789
|
-
/* @__PURE__ */
|
|
7790
|
-
/* @__PURE__ */
|
|
7836
|
+
/* @__PURE__ */ jsx58("div", { className: "ds-group-box", children: /* @__PURE__ */ jsx58("div", { className: "ds-equipment-ico", children: /* @__PURE__ */ jsx58("span", { className: "blind", children: "\uC7A5\uBE44 \uC774\uBBF8\uC9C0" }) }) }),
|
|
7837
|
+
/* @__PURE__ */ jsx58("div", { className: "ds-group-box", children: /* @__PURE__ */ jsx58("div", { className: "ds-bar-group", children: rows.map((row) => /* @__PURE__ */ jsx58("div", { className: "ds-bar type-2", children: /* @__PURE__ */ jsxs46("div", { className: "ds-bar-con", title: `${row.percent}%`, children: [
|
|
7838
|
+
/* @__PURE__ */ jsx58("span", { className: "ds-bar-gauge", style: { "--percent": `${row.percent}%` } }),
|
|
7839
|
+
/* @__PURE__ */ jsx58("div", { className: "ds-bar-status", children: row.status })
|
|
7791
7840
|
] }) }, row.label)) }) })
|
|
7792
7841
|
] });
|
|
7793
7842
|
}
|
|
@@ -7796,7 +7845,7 @@ function PubChartSample({
|
|
|
7796
7845
|
alt = "\uCC28\uD2B8",
|
|
7797
7846
|
onError
|
|
7798
7847
|
}) {
|
|
7799
|
-
return /* @__PURE__ */
|
|
7848
|
+
return /* @__PURE__ */ jsx58("div", { className: "ds-chart", children: /* @__PURE__ */ jsx58("img", { src, alt, className: "chart_sample", onError }) });
|
|
7800
7849
|
}
|
|
7801
7850
|
|
|
7802
7851
|
// src/patterns/alertCenter/StnAlertCenterPanel.tsx
|
|
@@ -7804,7 +7853,7 @@ import { useState as useState16 } from "react";
|
|
|
7804
7853
|
import {
|
|
7805
7854
|
STN_ALERT_CENTER_TABS
|
|
7806
7855
|
} from "@stn-uiux/pub-ui/data/stnAlertCenter";
|
|
7807
|
-
import { jsx as
|
|
7856
|
+
import { jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7808
7857
|
function resolveAlertIcon(item) {
|
|
7809
7858
|
if (item.icon) {
|
|
7810
7859
|
if (item.icon === "line/arrow-down") return "line/arrow-narrow-down";
|
|
@@ -7831,7 +7880,7 @@ function StnAlertCard({
|
|
|
7831
7880
|
}) {
|
|
7832
7881
|
const iconNode = resolveAlertIcon(item);
|
|
7833
7882
|
const gradeLabel = resolveGradeLabel(item.grade);
|
|
7834
|
-
return /* @__PURE__ */
|
|
7883
|
+
return /* @__PURE__ */ jsx59(
|
|
7835
7884
|
StnCard,
|
|
7836
7885
|
{
|
|
7837
7886
|
variant: "elevated",
|
|
@@ -7841,7 +7890,7 @@ function StnAlertCard({
|
|
|
7841
7890
|
className: cn("stn-alert-card", className),
|
|
7842
7891
|
onClick,
|
|
7843
7892
|
children: /* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__row", children: [
|
|
7844
|
-
/* @__PURE__ */
|
|
7893
|
+
/* @__PURE__ */ jsx59(
|
|
7845
7894
|
StnIcon,
|
|
7846
7895
|
{
|
|
7847
7896
|
name: iconNode,
|
|
@@ -7852,7 +7901,7 @@ function StnAlertCard({
|
|
|
7852
7901
|
),
|
|
7853
7902
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__body", children: [
|
|
7854
7903
|
/* @__PURE__ */ jsxs47(StnStack, { direction: "row", alignItems: "center", spacing: 1, className: "stn-alert-card__header-line", children: [
|
|
7855
|
-
/* @__PURE__ */
|
|
7904
|
+
/* @__PURE__ */ jsx59(
|
|
7856
7905
|
StnChip,
|
|
7857
7906
|
{
|
|
7858
7907
|
shape: "pill",
|
|
@@ -7862,22 +7911,22 @@ function StnAlertCard({
|
|
|
7862
7911
|
children: gradeLabel
|
|
7863
7912
|
}
|
|
7864
7913
|
),
|
|
7865
|
-
/* @__PURE__ */
|
|
7914
|
+
/* @__PURE__ */ jsx59(
|
|
7866
7915
|
"span",
|
|
7867
7916
|
{
|
|
7868
7917
|
className: cn("stn-alert-card__title", titleOverflow),
|
|
7869
7918
|
title: item.title,
|
|
7870
|
-
children: /* @__PURE__ */
|
|
7919
|
+
children: /* @__PURE__ */ jsx59("span", { className: "stn-alert-card__text-inner", children: item.title })
|
|
7871
7920
|
}
|
|
7872
7921
|
)
|
|
7873
7922
|
] }),
|
|
7874
7923
|
/* @__PURE__ */ jsxs47(StnStack, { direction: "row", alignItems: "center", spacing: 2, wrap: "wrap", className: "stn-alert-card__desc-line", children: [
|
|
7875
|
-
/* @__PURE__ */
|
|
7924
|
+
/* @__PURE__ */ jsx59(
|
|
7876
7925
|
"span",
|
|
7877
7926
|
{
|
|
7878
7927
|
className: cn("stn-alert-card__desc", descOverflow),
|
|
7879
7928
|
title: item.description,
|
|
7880
|
-
children: /* @__PURE__ */
|
|
7929
|
+
children: /* @__PURE__ */ jsx59("span", { className: "stn-alert-card__text-inner", children: item.description })
|
|
7881
7930
|
}
|
|
7882
7931
|
),
|
|
7883
7932
|
item.occurredAt && /* @__PURE__ */ jsxs47(
|
|
@@ -7897,8 +7946,8 @@ function StnAlertCard({
|
|
|
7897
7946
|
] })
|
|
7898
7947
|
] }),
|
|
7899
7948
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__meta", children: [
|
|
7900
|
-
/* @__PURE__ */
|
|
7901
|
-
item.unread !== false && /* @__PURE__ */
|
|
7949
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-card__time", children: item.time }),
|
|
7950
|
+
item.unread !== false && /* @__PURE__ */ jsx59(
|
|
7902
7951
|
"span",
|
|
7903
7952
|
{
|
|
7904
7953
|
className: cn(
|
|
@@ -7950,11 +7999,11 @@ function StnAlertCenterPanel({
|
|
|
7950
7999
|
children: [
|
|
7951
8000
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-center__header", children: [
|
|
7952
8001
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-center__header-left", children: [
|
|
7953
|
-
/* @__PURE__ */
|
|
7954
|
-
/* @__PURE__ */
|
|
7955
|
-
alertCount > 0 && /* @__PURE__ */
|
|
8002
|
+
/* @__PURE__ */ jsx59(StnIcon, { name: "line/bell", size: 20, color: "var(--stn-primary)" }),
|
|
8003
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-center__title", children: title }),
|
|
8004
|
+
alertCount > 0 && /* @__PURE__ */ jsx59(StnChip, { shape: "pill", size: "sm", variant: "subtle", color: "primary", children: alertCount })
|
|
7956
8005
|
] }),
|
|
7957
|
-
/* @__PURE__ */
|
|
8006
|
+
/* @__PURE__ */ jsx59(
|
|
7958
8007
|
StnSegmented,
|
|
7959
8008
|
{
|
|
7960
8009
|
size: "md",
|
|
@@ -7968,7 +8017,7 @@ function StnAlertCenterPanel({
|
|
|
7968
8017
|
}
|
|
7969
8018
|
),
|
|
7970
8019
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-center__header-right", children: [
|
|
7971
|
-
/* @__PURE__ */
|
|
8020
|
+
/* @__PURE__ */ jsx59(
|
|
7972
8021
|
StnButton,
|
|
7973
8022
|
{
|
|
7974
8023
|
variant: "text",
|
|
@@ -7978,8 +8027,8 @@ function StnAlertCenterPanel({
|
|
|
7978
8027
|
children: "\uBAA8\uB450 \uC77D\uC74C"
|
|
7979
8028
|
}
|
|
7980
8029
|
),
|
|
7981
|
-
/* @__PURE__ */
|
|
7982
|
-
/* @__PURE__ */
|
|
8030
|
+
/* @__PURE__ */ jsx59("div", { className: "stn-alert-center__divider", "aria-hidden": true }),
|
|
8031
|
+
/* @__PURE__ */ jsx59(
|
|
7983
8032
|
StnButton,
|
|
7984
8033
|
{
|
|
7985
8034
|
icon: "line/x",
|
|
@@ -7998,7 +8047,7 @@ function StnAlertCenterPanel({
|
|
|
7998
8047
|
size: "thin",
|
|
7999
8048
|
className: "stn-alert-center__list-wrap",
|
|
8000
8049
|
children: [
|
|
8001
|
-
activeTab === "error" && /* @__PURE__ */
|
|
8050
|
+
activeTab === "error" && /* @__PURE__ */ jsx59("ul", { className: "stn-alert-center__list", children: alerts.map((item) => /* @__PURE__ */ jsx59("li", { children: /* @__PURE__ */ jsx59(
|
|
8002
8051
|
StnAlertCard,
|
|
8003
8052
|
{
|
|
8004
8053
|
item,
|
|
@@ -8007,35 +8056,35 @@ function StnAlertCenterPanel({
|
|
|
8007
8056
|
onClick: () => onItemClick?.(item)
|
|
8008
8057
|
}
|
|
8009
8058
|
) }, item.id ?? item.title)) }),
|
|
8010
|
-
activeTab === "work" && /* @__PURE__ */
|
|
8011
|
-
/* @__PURE__ */
|
|
8059
|
+
activeTab === "work" && /* @__PURE__ */ jsx59("ul", { className: "stn-alert-center__list", children: workItems.map((row) => /* @__PURE__ */ jsx59("li", { children: /* @__PURE__ */ jsx59(StnCard, { variant: "elevated", radius: "md", padding: "md", interactive: true, className: "stn-alert-card", children: /* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__row", children: [
|
|
8060
|
+
/* @__PURE__ */ jsx59(StnIcon, { name: "line/clock", size: 24, color: "var(--stn-text-secondary)", className: "stn-alert-card__icon" }),
|
|
8012
8061
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__body", children: [
|
|
8013
|
-
/* @__PURE__ */
|
|
8014
|
-
/* @__PURE__ */
|
|
8062
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-card__type-label work", children: row.typeLabel }),
|
|
8063
|
+
/* @__PURE__ */ jsx59("span", { className: cn("stn-alert-card__desc", resolvedDescOverflow), title: row.text, children: /* @__PURE__ */ jsx59("span", { className: "stn-alert-card__text-inner", children: row.text }) })
|
|
8015
8064
|
] }),
|
|
8016
|
-
/* @__PURE__ */
|
|
8065
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-card__time", children: row.time })
|
|
8017
8066
|
] }) }) }, row.id ?? row.text)) }),
|
|
8018
|
-
activeTab === "deploy" && /* @__PURE__ */
|
|
8019
|
-
/* @__PURE__ */
|
|
8067
|
+
activeTab === "deploy" && /* @__PURE__ */ jsx59("ul", { className: "stn-alert-center__list", children: deployItems.map((row) => /* @__PURE__ */ jsx59("li", { children: /* @__PURE__ */ jsx59(StnCard, { variant: "elevated", radius: "md", padding: "md", interactive: true, className: "stn-alert-card", children: /* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__row", children: [
|
|
8068
|
+
/* @__PURE__ */ jsx59(StnIcon, { name: "line/settings", size: 24, color: "var(--stn-secondary)", className: "stn-alert-card__icon" }),
|
|
8020
8069
|
/* @__PURE__ */ jsxs47("div", { className: "stn-alert-card__body", children: [
|
|
8021
|
-
/* @__PURE__ */
|
|
8022
|
-
/* @__PURE__ */
|
|
8070
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-card__type-label stn-alert-card__type-label--deploy", children: row.typeLabel }),
|
|
8071
|
+
/* @__PURE__ */ jsx59("span", { className: cn("stn-alert-card__desc", resolvedDescOverflow), title: row.text, children: /* @__PURE__ */ jsx59("span", { className: "stn-alert-card__text-inner", children: row.text }) })
|
|
8023
8072
|
] }),
|
|
8024
|
-
/* @__PURE__ */
|
|
8073
|
+
/* @__PURE__ */ jsx59("span", { className: "stn-alert-card__time", children: row.time })
|
|
8025
8074
|
] }) }) }, row.id ?? row.text)) })
|
|
8026
8075
|
]
|
|
8027
8076
|
}
|
|
8028
8077
|
),
|
|
8029
|
-
/* @__PURE__ */
|
|
8078
|
+
/* @__PURE__ */ jsx59("div", { className: "stn-alert-center__footer", children: /* @__PURE__ */ jsxs47(
|
|
8030
8079
|
"button",
|
|
8031
8080
|
{
|
|
8032
8081
|
type: "button",
|
|
8033
8082
|
className: "stn-alert-center__footer-link",
|
|
8034
8083
|
onClick: onManageSettings,
|
|
8035
8084
|
children: [
|
|
8036
|
-
/* @__PURE__ */
|
|
8037
|
-
/* @__PURE__ */
|
|
8038
|
-
/* @__PURE__ */
|
|
8085
|
+
/* @__PURE__ */ jsx59("span", { children: "\uC54C\uB9BC \uC124\uC815 \uAD00\uB9AC" }),
|
|
8086
|
+
/* @__PURE__ */ jsx59(StnIcon, { name: "line/settings", size: 14 }),
|
|
8087
|
+
/* @__PURE__ */ jsx59(StnIcon, { name: "line/chevron-right", size: 14 })
|
|
8039
8088
|
]
|
|
8040
8089
|
}
|
|
8041
8090
|
) })
|
|
@@ -8045,7 +8094,7 @@ function StnAlertCenterPanel({
|
|
|
8045
8094
|
}
|
|
8046
8095
|
|
|
8047
8096
|
// src/patterns/alertCenter/StnAlertCenterDocPreview.tsx
|
|
8048
|
-
import { jsx as
|
|
8097
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
8049
8098
|
function StnAlertCenterDocPreview({
|
|
8050
8099
|
mode = "light",
|
|
8051
8100
|
theme,
|
|
@@ -8053,11 +8102,11 @@ function StnAlertCenterDocPreview({
|
|
|
8053
8102
|
children,
|
|
8054
8103
|
...panelProps
|
|
8055
8104
|
}) {
|
|
8056
|
-
const panel = children ?? /* @__PURE__ */
|
|
8105
|
+
const panel = children ?? /* @__PURE__ */ jsx60(StnAlertCenterPanel, { ...panelProps });
|
|
8057
8106
|
if (!withDocChrome) {
|
|
8058
|
-
return /* @__PURE__ */
|
|
8107
|
+
return /* @__PURE__ */ jsx60(StnProvider, { mode, theme, applyModeToDocument: false, children: panel });
|
|
8059
8108
|
}
|
|
8060
|
-
return /* @__PURE__ */
|
|
8109
|
+
return /* @__PURE__ */ jsx60("div", { className: "stn-doc-frame stn-doc-frame--alert-center", "data-mode": mode, "data-theme": theme, children: /* @__PURE__ */ jsx60("div", { className: "stn-alert-center-preview-shell", children: panel }) });
|
|
8061
8110
|
}
|
|
8062
8111
|
|
|
8063
8112
|
// src/index.ts
|
|
@@ -8082,13 +8131,13 @@ var SideNavContext = createContext4({
|
|
|
8082
8131
|
var useSideNav = () => useContext4(SideNavContext);
|
|
8083
8132
|
|
|
8084
8133
|
// src/components/sideNav/StnSideNavItem.tsx
|
|
8085
|
-
import { forwardRef as
|
|
8134
|
+
import { forwardRef as forwardRef33 } from "react";
|
|
8086
8135
|
import { STN_NAV_MENU_SUB_ICON } from "@stn-uiux/pub-ui/data/stnSideNavItem";
|
|
8087
|
-
import { jsx as
|
|
8136
|
+
import { jsx as jsx61, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8088
8137
|
function maskStyle2(src) {
|
|
8089
8138
|
return { maskImage: `url('${src}')`, WebkitMaskImage: `url('${src}')` };
|
|
8090
8139
|
}
|
|
8091
|
-
var StnSideNavItem =
|
|
8140
|
+
var StnSideNavItem = forwardRef33(function StnSideNavItem2({
|
|
8092
8141
|
label,
|
|
8093
8142
|
id,
|
|
8094
8143
|
iconSrc,
|
|
@@ -8132,12 +8181,12 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8132
8181
|
}
|
|
8133
8182
|
};
|
|
8134
8183
|
const iconElement = hasIcon && !isSub ? /* @__PURE__ */ jsxs48("span", { className: "stn-side-nav-item__icon-wrap", children: [
|
|
8135
|
-
/* @__PURE__ */
|
|
8136
|
-
showDot ? /* @__PURE__ */
|
|
8184
|
+
/* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__icon", "aria-hidden": "true", children: icon ?? (resolvedIconSrc ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__icon-glyph", style: maskStyle2(resolvedIconSrc) }) : null) }),
|
|
8185
|
+
showDot ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__dot-wrap", "aria-hidden": "true", children: /* @__PURE__ */ jsx61(StnBadge, { variant: "dot", color: "error" }) }) : null
|
|
8137
8186
|
] }) : null;
|
|
8138
|
-
const subIconElement = hasIcon && isSub ? /* @__PURE__ */
|
|
8187
|
+
const subIconElement = hasIcon && isSub ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__sub-icon", "aria-hidden": "true", children: icon ?? (resolvedIconSrc ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__icon-glyph", style: maskStyle2(resolvedIconSrc) }) : null) }) : null;
|
|
8139
8188
|
const activeIconElement = isSub ? subIconElement : iconElement;
|
|
8140
|
-
return /* @__PURE__ */
|
|
8189
|
+
return /* @__PURE__ */ jsx61(
|
|
8141
8190
|
"button",
|
|
8142
8191
|
{
|
|
8143
8192
|
ref,
|
|
@@ -8158,8 +8207,8 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8158
8207
|
...rest,
|
|
8159
8208
|
children: /* @__PURE__ */ jsxs48("span", { className: cn("stn-side-nav-item__inner", spreadTrail && "spread"), children: [
|
|
8160
8209
|
/* @__PURE__ */ jsxs48("span", { className: "stn-side-nav-item__lead", children: [
|
|
8161
|
-
isSub && showSubIndent ? /* @__PURE__ */
|
|
8162
|
-
shouldShowSubDot ? /* @__PURE__ */
|
|
8210
|
+
isSub && showSubIndent ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__sub-indent", "aria-hidden": "true" }) : null,
|
|
8211
|
+
shouldShowSubDot ? /* @__PURE__ */ jsx61(
|
|
8163
8212
|
"span",
|
|
8164
8213
|
{
|
|
8165
8214
|
className: cn(
|
|
@@ -8167,14 +8216,14 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8167
8216
|
hasIcon && iconPosition === "left" && "compact"
|
|
8168
8217
|
),
|
|
8169
8218
|
"aria-hidden": "true",
|
|
8170
|
-
children: /* @__PURE__ */
|
|
8219
|
+
children: /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__sub-dot-glyph", style: maskStyle2(STN_NAV_MENU_SUB_ICON) })
|
|
8171
8220
|
}
|
|
8172
8221
|
) : null,
|
|
8173
8222
|
iconPosition === "left" ? activeIconElement : null,
|
|
8174
|
-
/* @__PURE__ */
|
|
8223
|
+
/* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__label", children: label })
|
|
8175
8224
|
] }),
|
|
8176
8225
|
iconPosition === "right" ? activeIconElement : null,
|
|
8177
|
-
renderBadge ? typeof badge === "string" || typeof badge === "number" ? /* @__PURE__ */
|
|
8226
|
+
renderBadge ? typeof badge === "string" || typeof badge === "number" ? /* @__PURE__ */ jsx61(
|
|
8178
8227
|
StnBadge,
|
|
8179
8228
|
{
|
|
8180
8229
|
badgeContent: badge,
|
|
@@ -8182,7 +8231,7 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8182
8231
|
appearance: "subtle",
|
|
8183
8232
|
className: "stn-side-nav-item__badge"
|
|
8184
8233
|
}
|
|
8185
|
-
) : badge ? /* @__PURE__ */
|
|
8234
|
+
) : badge ? /* @__PURE__ */ jsx61("span", { className: "stn-side-nav-item__badge", children: badge }) : showBadgeDot ? /* @__PURE__ */ jsx61(
|
|
8186
8235
|
StnBadge,
|
|
8187
8236
|
{
|
|
8188
8237
|
variant: "dot",
|
|
@@ -8190,7 +8239,7 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8190
8239
|
className: "stn-side-nav-item__badge"
|
|
8191
8240
|
}
|
|
8192
8241
|
) : null : null,
|
|
8193
|
-
!isSub && showChevron && !collapsed ? /* @__PURE__ */
|
|
8242
|
+
!isSub && showChevron && !collapsed ? /* @__PURE__ */ jsx61(
|
|
8194
8243
|
"span",
|
|
8195
8244
|
{
|
|
8196
8245
|
className: cn(
|
|
@@ -8207,15 +8256,15 @@ var StnSideNavItem = forwardRef32(function StnSideNavItem2({
|
|
|
8207
8256
|
});
|
|
8208
8257
|
|
|
8209
8258
|
// src/components/sideNav/StnSideNavHeader.tsx
|
|
8210
|
-
import { forwardRef as
|
|
8259
|
+
import { forwardRef as forwardRef35 } from "react";
|
|
8211
8260
|
|
|
8212
8261
|
// src/components/sideNav/StnSideNavLogo.tsx
|
|
8213
|
-
import { forwardRef as
|
|
8214
|
-
import { jsx as
|
|
8215
|
-
var StnSideNavLogo =
|
|
8262
|
+
import { forwardRef as forwardRef34 } from "react";
|
|
8263
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
8264
|
+
var StnSideNavLogo = forwardRef34(
|
|
8216
8265
|
function StnSideNavLogo2({ className, logoProps, ...rest }, ref) {
|
|
8217
8266
|
const { collapsed } = useSideNav();
|
|
8218
|
-
return /* @__PURE__ */
|
|
8267
|
+
return /* @__PURE__ */ jsx62(
|
|
8219
8268
|
"div",
|
|
8220
8269
|
{
|
|
8221
8270
|
ref,
|
|
@@ -8226,7 +8275,7 @@ var StnSideNavLogo = forwardRef33(
|
|
|
8226
8275
|
),
|
|
8227
8276
|
title: "InfoMap",
|
|
8228
8277
|
...rest,
|
|
8229
|
-
children: /* @__PURE__ */
|
|
8278
|
+
children: /* @__PURE__ */ jsx62(
|
|
8230
8279
|
StnLogo,
|
|
8231
8280
|
{
|
|
8232
8281
|
variant: collapsed ? "onlyimg" : "horizontal",
|
|
@@ -8240,8 +8289,8 @@ var StnSideNavLogo = forwardRef33(
|
|
|
8240
8289
|
);
|
|
8241
8290
|
|
|
8242
8291
|
// src/components/sideNav/StnSideNavHeader.tsx
|
|
8243
|
-
import { Fragment as Fragment7, jsx as
|
|
8244
|
-
var StnSideNavHeader =
|
|
8292
|
+
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8293
|
+
var StnSideNavHeader = forwardRef35(function StnSideNavHeader2({
|
|
8245
8294
|
children,
|
|
8246
8295
|
border = false,
|
|
8247
8296
|
hasBorder = false,
|
|
@@ -8253,7 +8302,7 @@ var StnSideNavHeader = forwardRef34(function StnSideNavHeader2({
|
|
|
8253
8302
|
const { collapsed, onToggleCollapse, isDrawer, setMobileOpen } = useSideNav();
|
|
8254
8303
|
const withBorder = Boolean(border || hasBorder);
|
|
8255
8304
|
const shouldShowClose = showClose ?? Boolean(isDrawer);
|
|
8256
|
-
return /* @__PURE__ */
|
|
8305
|
+
return /* @__PURE__ */ jsx63(
|
|
8257
8306
|
"div",
|
|
8258
8307
|
{
|
|
8259
8308
|
ref,
|
|
@@ -8265,8 +8314,8 @@ var StnSideNavHeader = forwardRef34(function StnSideNavHeader2({
|
|
|
8265
8314
|
),
|
|
8266
8315
|
...rest,
|
|
8267
8316
|
children: children ?? /* @__PURE__ */ jsxs49(Fragment7, { children: [
|
|
8268
|
-
/* @__PURE__ */
|
|
8269
|
-
shouldShowClose ? /* @__PURE__ */
|
|
8317
|
+
/* @__PURE__ */ jsx63(StnSideNavLogo, {}),
|
|
8318
|
+
shouldShowClose ? /* @__PURE__ */ jsx63(
|
|
8270
8319
|
StnButton,
|
|
8271
8320
|
{
|
|
8272
8321
|
size: "sm",
|
|
@@ -8278,7 +8327,7 @@ var StnSideNavHeader = forwardRef34(function StnSideNavHeader2({
|
|
|
8278
8327
|
className: "stn-side-nav__collapse-btn",
|
|
8279
8328
|
onClick: () => setMobileOpen?.(false)
|
|
8280
8329
|
}
|
|
8281
|
-
) : showToggle ? /* @__PURE__ */
|
|
8330
|
+
) : showToggle ? /* @__PURE__ */ jsx63(
|
|
8282
8331
|
StnButton,
|
|
8283
8332
|
{
|
|
8284
8333
|
size: "sm",
|
|
@@ -8297,16 +8346,16 @@ var StnSideNavHeader = forwardRef34(function StnSideNavHeader2({
|
|
|
8297
8346
|
});
|
|
8298
8347
|
|
|
8299
8348
|
// src/components/sideNav/StnSideNavMenu.tsx
|
|
8300
|
-
import { forwardRef as
|
|
8301
|
-
import { jsx as
|
|
8302
|
-
var StnSideNavMenu =
|
|
8349
|
+
import { forwardRef as forwardRef36 } from "react";
|
|
8350
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
8351
|
+
var StnSideNavMenu = forwardRef36(function StnSideNavMenu2({
|
|
8303
8352
|
children,
|
|
8304
8353
|
className,
|
|
8305
8354
|
scrollSize = "thin",
|
|
8306
8355
|
scrollColor = "fade",
|
|
8307
8356
|
...rest
|
|
8308
8357
|
}, ref) {
|
|
8309
|
-
return /* @__PURE__ */
|
|
8358
|
+
return /* @__PURE__ */ jsx64(
|
|
8310
8359
|
"nav",
|
|
8311
8360
|
{
|
|
8312
8361
|
ref,
|
|
@@ -8327,13 +8376,13 @@ var StnSideNavMenu = forwardRef35(function StnSideNavMenu2({
|
|
|
8327
8376
|
|
|
8328
8377
|
// src/components/sideNav/StnSideNavGroup.tsx
|
|
8329
8378
|
import {
|
|
8330
|
-
forwardRef as
|
|
8379
|
+
forwardRef as forwardRef37,
|
|
8331
8380
|
useEffect as useEffect12,
|
|
8332
8381
|
useRef as useRef8,
|
|
8333
8382
|
useState as useState17
|
|
8334
8383
|
} from "react";
|
|
8335
|
-
import { jsx as
|
|
8336
|
-
var StnSideNavGroup =
|
|
8384
|
+
import { jsx as jsx65, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8385
|
+
var StnSideNavGroup = forwardRef37(function StnSideNavGroup2({
|
|
8337
8386
|
label,
|
|
8338
8387
|
parent,
|
|
8339
8388
|
direction = "down",
|
|
@@ -8377,7 +8426,7 @@ var StnSideNavGroup = forwardRef36(function StnSideNavGroup2({
|
|
|
8377
8426
|
}
|
|
8378
8427
|
onOpenChange?.(next);
|
|
8379
8428
|
};
|
|
8380
|
-
const subnavNode = children && (!collapsed && isOpen) ? /* @__PURE__ */
|
|
8429
|
+
const subnavNode = children && (!collapsed && isOpen) ? /* @__PURE__ */ jsx65(
|
|
8381
8430
|
"div",
|
|
8382
8431
|
{
|
|
8383
8432
|
className: cn(
|
|
@@ -8413,7 +8462,7 @@ var StnSideNavGroup = forwardRef36(function StnSideNavGroup2({
|
|
|
8413
8462
|
"aria-label": typeof label === "string" ? label : void 0,
|
|
8414
8463
|
...rest,
|
|
8415
8464
|
children: [
|
|
8416
|
-
label && !collapsed ? /* @__PURE__ */
|
|
8465
|
+
label && !collapsed ? /* @__PURE__ */ jsx65("span", { className: "stn-side-nav__group-label", onClick: handleToggle, children: label }) : null,
|
|
8417
8466
|
isUp ? subnavNode : null,
|
|
8418
8467
|
parent,
|
|
8419
8468
|
!isUp ? subnavNode : null
|
|
@@ -8423,10 +8472,10 @@ var StnSideNavGroup = forwardRef36(function StnSideNavGroup2({
|
|
|
8423
8472
|
});
|
|
8424
8473
|
|
|
8425
8474
|
// src/components/sideNav/StnSideNavSpacer.tsx
|
|
8426
|
-
import { forwardRef as
|
|
8427
|
-
import { jsx as
|
|
8428
|
-
var StnSideNavSpacer =
|
|
8429
|
-
return /* @__PURE__ */
|
|
8475
|
+
import { forwardRef as forwardRef38 } from "react";
|
|
8476
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
8477
|
+
var StnSideNavSpacer = forwardRef38(function StnSideNavSpacer2({ className, style, ...rest }, ref) {
|
|
8478
|
+
return /* @__PURE__ */ jsx66(
|
|
8430
8479
|
"div",
|
|
8431
8480
|
{
|
|
8432
8481
|
ref,
|
|
@@ -8439,10 +8488,10 @@ var StnSideNavSpacer = forwardRef37(function StnSideNavSpacer2({ className, styl
|
|
|
8439
8488
|
});
|
|
8440
8489
|
|
|
8441
8490
|
// src/components/sideNav/StnSideNavFooter.tsx
|
|
8442
|
-
import { forwardRef as
|
|
8443
|
-
import { jsx as
|
|
8444
|
-
var StnSideNavFooter =
|
|
8445
|
-
return /* @__PURE__ */
|
|
8491
|
+
import { forwardRef as forwardRef39 } from "react";
|
|
8492
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
8493
|
+
var StnSideNavFooter = forwardRef39(function StnSideNavFooter2({ curved = false, children, className, ...rest }, ref) {
|
|
8494
|
+
return /* @__PURE__ */ jsx67(
|
|
8446
8495
|
"nav",
|
|
8447
8496
|
{
|
|
8448
8497
|
ref,
|
|
@@ -8455,12 +8504,12 @@ var StnSideNavFooter = forwardRef38(function StnSideNavFooter2({ curved = false,
|
|
|
8455
8504
|
});
|
|
8456
8505
|
|
|
8457
8506
|
// src/components/sideNav/StnSideNavToggle.tsx
|
|
8458
|
-
import { forwardRef as
|
|
8459
|
-
import { jsx as
|
|
8460
|
-
var StnSideNavToggle =
|
|
8507
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
8508
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
8509
|
+
var StnSideNavToggle = forwardRef40(
|
|
8461
8510
|
function StnSideNavToggle2({ className, onClick, ...rest }, ref) {
|
|
8462
8511
|
const { collapsed, onToggleCollapse } = useSideNav();
|
|
8463
|
-
return /* @__PURE__ */
|
|
8512
|
+
return /* @__PURE__ */ jsx68(
|
|
8464
8513
|
"button",
|
|
8465
8514
|
{
|
|
8466
8515
|
ref,
|
|
@@ -8473,7 +8522,7 @@ var StnSideNavToggle = forwardRef39(
|
|
|
8473
8522
|
"aria-label": collapsed ? "\uC0AC\uC774\uB4DC\uBC14 \uD3BC\uCE58\uAE30" : "\uC0AC\uC774\uB4DC\uBC14 \uC811\uAE30",
|
|
8474
8523
|
title: collapsed ? "\uC0AC\uC774\uB4DC\uBC14 \uD3BC\uCE58\uAE30" : "\uC0AC\uC774\uB4DC\uBC14 \uC811\uAE30",
|
|
8475
8524
|
...rest,
|
|
8476
|
-
children: /* @__PURE__ */
|
|
8525
|
+
children: /* @__PURE__ */ jsx68(
|
|
8477
8526
|
"svg",
|
|
8478
8527
|
{
|
|
8479
8528
|
width: "12",
|
|
@@ -8484,7 +8533,7 @@ var StnSideNavToggle = forwardRef39(
|
|
|
8484
8533
|
strokeWidth: "2.5",
|
|
8485
8534
|
strokeLinecap: "round",
|
|
8486
8535
|
strokeLinejoin: "round",
|
|
8487
|
-
children: /* @__PURE__ */
|
|
8536
|
+
children: /* @__PURE__ */ jsx68("path", { d: "M9 18l6-6-6-6" })
|
|
8488
8537
|
}
|
|
8489
8538
|
)
|
|
8490
8539
|
}
|
|
@@ -8493,27 +8542,27 @@ var StnSideNavToggle = forwardRef39(
|
|
|
8493
8542
|
);
|
|
8494
8543
|
|
|
8495
8544
|
// src/components/sideNav/StnSideNavWatermark.tsx
|
|
8496
|
-
import { forwardRef as
|
|
8497
|
-
import { jsx as
|
|
8498
|
-
var StnSideNavWatermark =
|
|
8545
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
8546
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
8547
|
+
var StnSideNavWatermark = forwardRef41(
|
|
8499
8548
|
function StnSideNavWatermark2({ size = "xl", mode, theme, className, ...rest }, ref) {
|
|
8500
|
-
return /* @__PURE__ */
|
|
8549
|
+
return /* @__PURE__ */ jsx69(
|
|
8501
8550
|
"div",
|
|
8502
8551
|
{
|
|
8503
8552
|
ref,
|
|
8504
8553
|
className: cn("stn-side-nav__watermark", className),
|
|
8505
8554
|
"aria-hidden": "true",
|
|
8506
8555
|
...rest,
|
|
8507
|
-
children: /* @__PURE__ */
|
|
8556
|
+
children: /* @__PURE__ */ jsx69(StnLogo, { variant: "watermark", size, mode: mode ?? theme })
|
|
8508
8557
|
}
|
|
8509
8558
|
);
|
|
8510
8559
|
}
|
|
8511
8560
|
);
|
|
8512
8561
|
|
|
8513
8562
|
// src/components/sideNav/StnSideNavMobileTrigger.tsx
|
|
8514
|
-
import { forwardRef as
|
|
8515
|
-
import { jsx as
|
|
8516
|
-
var StnSideNavMobileTrigger =
|
|
8563
|
+
import { forwardRef as forwardRef42, useEffect as useEffect13, useState as useState18 } from "react";
|
|
8564
|
+
import { jsx as jsx70, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8565
|
+
var StnSideNavMobileTrigger = forwardRef42(
|
|
8517
8566
|
function StnSideNavMobileTrigger2({ floating = false, className, children, onClick, ...rest }, ref) {
|
|
8518
8567
|
const { onToggleMobileOpen, mobileOpen: contextMobileOpen } = useSideNav();
|
|
8519
8568
|
const [fallbackMobileOpen, setFallbackMobileOpen] = useState18(false);
|
|
@@ -8531,7 +8580,7 @@ var StnSideNavMobileTrigger = forwardRef41(
|
|
|
8531
8580
|
};
|
|
8532
8581
|
}, [onToggleMobileOpen]);
|
|
8533
8582
|
const isMobileOpen = onToggleMobileOpen ? contextMobileOpen : fallbackMobileOpen;
|
|
8534
|
-
return /* @__PURE__ */
|
|
8583
|
+
return /* @__PURE__ */ jsx70(
|
|
8535
8584
|
"button",
|
|
8536
8585
|
{
|
|
8537
8586
|
ref,
|
|
@@ -8554,9 +8603,9 @@ var StnSideNavMobileTrigger = forwardRef41(
|
|
|
8554
8603
|
},
|
|
8555
8604
|
...rest,
|
|
8556
8605
|
children: children ?? /* @__PURE__ */ jsxs51("span", { className: "stn-side-nav__hamburger-bars", "aria-hidden": "true", children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
/* @__PURE__ */
|
|
8559
|
-
/* @__PURE__ */
|
|
8606
|
+
/* @__PURE__ */ jsx70("span", {}),
|
|
8607
|
+
/* @__PURE__ */ jsx70("span", {}),
|
|
8608
|
+
/* @__PURE__ */ jsx70("span", {})
|
|
8560
8609
|
] })
|
|
8561
8610
|
}
|
|
8562
8611
|
);
|
|
@@ -8565,12 +8614,12 @@ var StnSideNavMobileTrigger = forwardRef41(
|
|
|
8565
8614
|
|
|
8566
8615
|
// src/components/sideNav/StnSideNavSub.tsx
|
|
8567
8616
|
import {
|
|
8568
|
-
forwardRef as
|
|
8617
|
+
forwardRef as forwardRef43
|
|
8569
8618
|
} from "react";
|
|
8570
|
-
import { jsx as
|
|
8571
|
-
var StnSideNavSub =
|
|
8619
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
8620
|
+
var StnSideNavSub = forwardRef43(
|
|
8572
8621
|
function StnSideNavSub2({ children, className, ...rest }, ref) {
|
|
8573
|
-
return /* @__PURE__ */
|
|
8622
|
+
return /* @__PURE__ */ jsx71(
|
|
8574
8623
|
"div",
|
|
8575
8624
|
{
|
|
8576
8625
|
ref,
|
|
@@ -8583,7 +8632,7 @@ var StnSideNavSub = forwardRef42(
|
|
|
8583
8632
|
);
|
|
8584
8633
|
}
|
|
8585
8634
|
);
|
|
8586
|
-
var StnSideNavSubItem =
|
|
8635
|
+
var StnSideNavSubItem = forwardRef43(
|
|
8587
8636
|
function StnSideNavSubItem2({
|
|
8588
8637
|
variant = "ghost",
|
|
8589
8638
|
size = "md",
|
|
@@ -8599,14 +8648,14 @@ var StnSideNavSubItem = forwardRef42(
|
|
|
8599
8648
|
const { collapsed } = useSideNav();
|
|
8600
8649
|
const content = children ?? label;
|
|
8601
8650
|
const computedTitle = title ?? (typeof content === "string" ? content : void 0);
|
|
8602
|
-
const resolvedIcon = icon ?? (iconSrc ? /* @__PURE__ */
|
|
8651
|
+
const resolvedIcon = icon ?? (iconSrc ? /* @__PURE__ */ jsx71("span", { className: "stn-side-nav__sub-icon", children: /* @__PURE__ */ jsx71(
|
|
8603
8652
|
"span",
|
|
8604
8653
|
{
|
|
8605
8654
|
className: "stn-side-nav__sub-glyph",
|
|
8606
8655
|
style: { maskImage: `url('${iconSrc}')`, WebkitMaskImage: `url('${iconSrc}')` }
|
|
8607
8656
|
}
|
|
8608
8657
|
) }) : null);
|
|
8609
|
-
return /* @__PURE__ */
|
|
8658
|
+
return /* @__PURE__ */ jsx71(
|
|
8610
8659
|
StnButton,
|
|
8611
8660
|
{
|
|
8612
8661
|
ref,
|
|
@@ -8625,9 +8674,9 @@ var StnSideNavSubItem = forwardRef42(
|
|
|
8625
8674
|
);
|
|
8626
8675
|
|
|
8627
8676
|
// src/components/sideNav/StnSideNavSubNav.tsx
|
|
8628
|
-
import { forwardRef as
|
|
8629
|
-
import { jsx as
|
|
8630
|
-
var StnSideNavSubNav =
|
|
8677
|
+
import { forwardRef as forwardRef44 } from "react";
|
|
8678
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
8679
|
+
var StnSideNavSubNav = forwardRef44(
|
|
8631
8680
|
function StnSideNavSubNav2({
|
|
8632
8681
|
dropdown = false,
|
|
8633
8682
|
direction = "down",
|
|
@@ -8639,7 +8688,7 @@ var StnSideNavSubNav = forwardRef43(
|
|
|
8639
8688
|
}, ref) {
|
|
8640
8689
|
const isUp = direction === "up";
|
|
8641
8690
|
const isTransparent = variant === "transparent" || background === false;
|
|
8642
|
-
return /* @__PURE__ */
|
|
8691
|
+
return /* @__PURE__ */ jsx72(
|
|
8643
8692
|
"div",
|
|
8644
8693
|
{
|
|
8645
8694
|
ref,
|
|
@@ -8662,13 +8711,13 @@ var StnSideNavSubNav = forwardRef43(
|
|
|
8662
8711
|
|
|
8663
8712
|
// src/patterns/sideNav/StnSideNavigation.tsx
|
|
8664
8713
|
import {
|
|
8665
|
-
forwardRef as
|
|
8714
|
+
forwardRef as forwardRef45,
|
|
8666
8715
|
useCallback as useCallback9,
|
|
8667
8716
|
useEffect as useEffect14,
|
|
8668
8717
|
useMemo as useMemo4,
|
|
8669
8718
|
useState as useState19
|
|
8670
8719
|
} from "react";
|
|
8671
|
-
import { jsx as
|
|
8720
|
+
import { jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8672
8721
|
function useControllableState(controlledValue, defaultValue, onChange) {
|
|
8673
8722
|
const [internalState, setInternalState] = useState19(defaultValue);
|
|
8674
8723
|
const isControlled = controlledValue !== void 0;
|
|
@@ -8684,7 +8733,7 @@ function useControllableState(controlledValue, defaultValue, onChange) {
|
|
|
8684
8733
|
);
|
|
8685
8734
|
return [value, setValue];
|
|
8686
8735
|
}
|
|
8687
|
-
var StnSideNavigationRoot =
|
|
8736
|
+
var StnSideNavigationRoot = forwardRef45(function StnSideNavigationRoot2({
|
|
8688
8737
|
variant: variantProp,
|
|
8689
8738
|
appearance,
|
|
8690
8739
|
drawerVariant: drawerVariantProp,
|
|
@@ -8762,8 +8811,8 @@ var StnSideNavigationRoot = forwardRef44(function StnSideNavigationRoot2({
|
|
|
8762
8811
|
[isEffectiveCollapsed, activeId, setActiveId, handleToggleCollapse, mobileOpen, handleToggleMobileOpen, setMobileOpen, isDrawerMode]
|
|
8763
8812
|
);
|
|
8764
8813
|
return /* @__PURE__ */ jsxs52(SideNavContext.Provider, { value: contextValue, children: [
|
|
8765
|
-
showMobileTrigger && /* @__PURE__ */
|
|
8766
|
-
(drawer || responsiveDrawer) && /* @__PURE__ */
|
|
8814
|
+
showMobileTrigger && /* @__PURE__ */ jsx73(StnSideNavMobileTrigger, { floating: true }),
|
|
8815
|
+
(drawer || responsiveDrawer) && /* @__PURE__ */ jsx73(
|
|
8767
8816
|
"div",
|
|
8768
8817
|
{
|
|
8769
8818
|
className: cn("stn-side-nav__backdrop", mobileOpen && "is-open"),
|
|
@@ -8771,7 +8820,7 @@ var StnSideNavigationRoot = forwardRef44(function StnSideNavigationRoot2({
|
|
|
8771
8820
|
"aria-hidden": !mobileOpen
|
|
8772
8821
|
}
|
|
8773
8822
|
),
|
|
8774
|
-
/* @__PURE__ */
|
|
8823
|
+
/* @__PURE__ */ jsx73(
|
|
8775
8824
|
"aside",
|
|
8776
8825
|
{
|
|
8777
8826
|
ref,
|
|
@@ -8820,7 +8869,7 @@ import {
|
|
|
8820
8869
|
import {
|
|
8821
8870
|
STN_BREADCRUMB_ICON_SRC
|
|
8822
8871
|
} from "@stn-uiux/pub-ui/data/stnBreadcrumb";
|
|
8823
|
-
import { Fragment as Fragment9, jsx as
|
|
8872
|
+
import { Fragment as Fragment9, jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8824
8873
|
function maskStyle3(src) {
|
|
8825
8874
|
return { maskImage: `url('${src}')`, WebkitMaskImage: `url('${src}')` };
|
|
8826
8875
|
}
|
|
@@ -8833,13 +8882,13 @@ function hasSegmentMenu(item) {
|
|
|
8833
8882
|
return Boolean(item.menu || item.menuItems && item.menuItems.length > 0);
|
|
8834
8883
|
}
|
|
8835
8884
|
function BreadcrumbSeparator() {
|
|
8836
|
-
return /* @__PURE__ */
|
|
8885
|
+
return /* @__PURE__ */ jsx74("li", { className: "separator", "aria-hidden": "true", children: /* @__PURE__ */ jsx74("span", { style: maskStyle3(STN_BREADCRUMB_ICON_SRC.separator) }) });
|
|
8837
8886
|
}
|
|
8838
8887
|
function BreadcrumbIcon({ src }) {
|
|
8839
|
-
return /* @__PURE__ */
|
|
8888
|
+
return /* @__PURE__ */ jsx74("span", { className: "stn-breadcrumb__icon-glyph", style: maskStyle3(src), "aria-hidden": "true" });
|
|
8840
8889
|
}
|
|
8841
8890
|
function BreadcrumbCaret() {
|
|
8842
|
-
return /* @__PURE__ */
|
|
8891
|
+
return /* @__PURE__ */ jsx74(
|
|
8843
8892
|
"span",
|
|
8844
8893
|
{
|
|
8845
8894
|
className: "stn-breadcrumb__caret",
|
|
@@ -8854,9 +8903,9 @@ function SegmentContent({
|
|
|
8854
8903
|
menu
|
|
8855
8904
|
}) {
|
|
8856
8905
|
return /* @__PURE__ */ jsxs53(Fragment9, { children: [
|
|
8857
|
-
iconSrc ? /* @__PURE__ */
|
|
8858
|
-
/* @__PURE__ */
|
|
8859
|
-
menu ? /* @__PURE__ */
|
|
8906
|
+
iconSrc ? /* @__PURE__ */ jsx74(BreadcrumbIcon, { src: iconSrc }) : null,
|
|
8907
|
+
/* @__PURE__ */ jsx74("span", { className: "stn-breadcrumb__label", children: label }),
|
|
8908
|
+
menu ? /* @__PURE__ */ jsx74(BreadcrumbCaret, {}) : null
|
|
8860
8909
|
] });
|
|
8861
8910
|
}
|
|
8862
8911
|
function BreadcrumbMenuList({
|
|
@@ -8864,7 +8913,7 @@ function BreadcrumbMenuList({
|
|
|
8864
8913
|
items,
|
|
8865
8914
|
onPick
|
|
8866
8915
|
}) {
|
|
8867
|
-
return /* @__PURE__ */
|
|
8916
|
+
return /* @__PURE__ */ jsx74("ul", { id, className: "stn-breadcrumb__menu", role: "menu", children: items.map((option) => /* @__PURE__ */ jsx74("li", { role: "none", children: option.href ? /* @__PURE__ */ jsx74(
|
|
8868
8917
|
"a",
|
|
8869
8918
|
{
|
|
8870
8919
|
role: "menuitem",
|
|
@@ -8876,7 +8925,7 @@ function BreadcrumbMenuList({
|
|
|
8876
8925
|
},
|
|
8877
8926
|
children: option.label
|
|
8878
8927
|
}
|
|
8879
|
-
) : /* @__PURE__ */
|
|
8928
|
+
) : /* @__PURE__ */ jsx74(
|
|
8880
8929
|
"button",
|
|
8881
8930
|
{
|
|
8882
8931
|
type: "button",
|
|
@@ -8920,13 +8969,13 @@ function BreadcrumbSegment({
|
|
|
8920
8969
|
const canOpenMenu = showMenu && menuItems.length > 0;
|
|
8921
8970
|
const rootRef = useDismissibleMenu(open, () => setOpen(false));
|
|
8922
8971
|
const iconSrc = resolveIconSrc(item);
|
|
8923
|
-
const content = /* @__PURE__ */
|
|
8972
|
+
const content = /* @__PURE__ */ jsx74(SegmentContent, { iconSrc, label: item.label, menu: showMenu });
|
|
8924
8973
|
if (isCurrent) {
|
|
8925
|
-
return /* @__PURE__ */
|
|
8974
|
+
return /* @__PURE__ */ jsx74("span", { className: "stn-breadcrumb__segment", "aria-current": "page", "aria-label": item.label, children: content });
|
|
8926
8975
|
}
|
|
8927
8976
|
if (canOpenMenu) {
|
|
8928
8977
|
return /* @__PURE__ */ jsxs53("span", { ref: rootRef, className: "stn-breadcrumb__segment-wrap", children: [
|
|
8929
|
-
/* @__PURE__ */
|
|
8978
|
+
/* @__PURE__ */ jsx74(
|
|
8930
8979
|
"button",
|
|
8931
8980
|
{
|
|
8932
8981
|
type: "button",
|
|
@@ -8942,7 +8991,7 @@ function BreadcrumbSegment({
|
|
|
8942
8991
|
children: content
|
|
8943
8992
|
}
|
|
8944
8993
|
),
|
|
8945
|
-
open ? /* @__PURE__ */
|
|
8994
|
+
open ? /* @__PURE__ */ jsx74(BreadcrumbMenuList, { id: menuId, items: menuItems, onPick: () => setOpen(false) }) : null
|
|
8946
8995
|
] });
|
|
8947
8996
|
}
|
|
8948
8997
|
if (item.menu || item.onClick) {
|
|
@@ -8954,7 +9003,7 @@ function BreadcrumbSegment({
|
|
|
8954
9003
|
"aria-haspopup": item.menu ? "menu" : void 0,
|
|
8955
9004
|
"aria-expanded": item.menu ? false : void 0
|
|
8956
9005
|
};
|
|
8957
|
-
return /* @__PURE__ */
|
|
9006
|
+
return /* @__PURE__ */ jsx74("button", { ...buttonProps, children: content });
|
|
8958
9007
|
}
|
|
8959
9008
|
if (item.href) {
|
|
8960
9009
|
const linkProps = {
|
|
@@ -8963,9 +9012,9 @@ function BreadcrumbSegment({
|
|
|
8963
9012
|
onClick: item.onClick,
|
|
8964
9013
|
"aria-label": item.label
|
|
8965
9014
|
};
|
|
8966
|
-
return /* @__PURE__ */
|
|
9015
|
+
return /* @__PURE__ */ jsx74("a", { ...linkProps, children: content });
|
|
8967
9016
|
}
|
|
8968
|
-
return /* @__PURE__ */
|
|
9017
|
+
return /* @__PURE__ */ jsx74("span", { className: "stn-breadcrumb__segment", "aria-label": item.label, children: content });
|
|
8969
9018
|
}
|
|
8970
9019
|
function BreadcrumbBack({
|
|
8971
9020
|
label,
|
|
@@ -8973,7 +9022,7 @@ function BreadcrumbBack({
|
|
|
8973
9022
|
onClick
|
|
8974
9023
|
}) {
|
|
8975
9024
|
const content = /* @__PURE__ */ jsxs53(Fragment9, { children: [
|
|
8976
|
-
/* @__PURE__ */
|
|
9025
|
+
/* @__PURE__ */ jsx74(
|
|
8977
9026
|
"span",
|
|
8978
9027
|
{
|
|
8979
9028
|
className: "stn-breadcrumb__back-glyph",
|
|
@@ -8981,12 +9030,12 @@ function BreadcrumbBack({
|
|
|
8981
9030
|
"aria-hidden": "true"
|
|
8982
9031
|
}
|
|
8983
9032
|
),
|
|
8984
|
-
/* @__PURE__ */
|
|
9033
|
+
/* @__PURE__ */ jsx74("span", { className: "stn-breadcrumb__label", children: label })
|
|
8985
9034
|
] });
|
|
8986
9035
|
if (href) {
|
|
8987
|
-
return /* @__PURE__ */
|
|
9036
|
+
return /* @__PURE__ */ jsx74("a", { className: "stn-breadcrumb__back", href, onClick, "aria-label": `\uB4A4\uB85C: ${label}`, children: content });
|
|
8988
9037
|
}
|
|
8989
|
-
return /* @__PURE__ */
|
|
9038
|
+
return /* @__PURE__ */ jsx74("button", { type: "button", className: "stn-breadcrumb__back", onClick, "aria-label": `\uB4A4\uB85C: ${label}`, children: content });
|
|
8990
9039
|
}
|
|
8991
9040
|
function splitCollapsedItems(items, maxItems, itemsBeforeCollapse, itemsAfterCollapse) {
|
|
8992
9041
|
if (!maxItems || items.length <= maxItems) {
|
|
@@ -9018,7 +9067,7 @@ function BreadcrumbCollapsed({
|
|
|
9018
9067
|
current: item.current
|
|
9019
9068
|
}));
|
|
9020
9069
|
return /* @__PURE__ */ jsxs53("li", { className: "stn-breadcrumb__item", ref: rootRef, children: [
|
|
9021
|
-
/* @__PURE__ */
|
|
9070
|
+
/* @__PURE__ */ jsx74(
|
|
9022
9071
|
"button",
|
|
9023
9072
|
{
|
|
9024
9073
|
type: "button",
|
|
@@ -9031,7 +9080,7 @@ function BreadcrumbCollapsed({
|
|
|
9031
9080
|
children: "\u22EF"
|
|
9032
9081
|
}
|
|
9033
9082
|
),
|
|
9034
|
-
open ? /* @__PURE__ */
|
|
9083
|
+
open ? /* @__PURE__ */ jsx74(BreadcrumbMenuList, { id: menuId, items: menuItems, onPick: () => setOpen(false) }) : null
|
|
9035
9084
|
] });
|
|
9036
9085
|
}
|
|
9037
9086
|
function StnBreadcrumb({
|
|
@@ -9063,8 +9112,8 @@ function StnBreadcrumb({
|
|
|
9063
9112
|
const lastId = items[items.length - 1]?.id;
|
|
9064
9113
|
const renderTrailItem = (item) => {
|
|
9065
9114
|
const isCurrent = Boolean(item.current) || item.id === lastId;
|
|
9066
|
-
const segment = /* @__PURE__ */
|
|
9067
|
-
return /* @__PURE__ */
|
|
9115
|
+
const segment = /* @__PURE__ */ jsx74(BreadcrumbSegment, { item, isCurrent });
|
|
9116
|
+
return /* @__PURE__ */ jsx74(
|
|
9068
9117
|
"li",
|
|
9069
9118
|
{
|
|
9070
9119
|
className: cn(
|
|
@@ -9075,27 +9124,27 @@ function StnBreadcrumb({
|
|
|
9075
9124
|
}
|
|
9076
9125
|
);
|
|
9077
9126
|
};
|
|
9078
|
-
return /* @__PURE__ */
|
|
9127
|
+
return /* @__PURE__ */ jsx74(
|
|
9079
9128
|
"nav",
|
|
9080
9129
|
{
|
|
9081
9130
|
className: cn("stn-breadcrumb", size, variant === "chip" && "chip", className),
|
|
9082
9131
|
"aria-label": "Breadcrumb",
|
|
9083
9132
|
children: /* @__PURE__ */ jsxs53("ol", { className: "stn-breadcrumb__list", children: [
|
|
9084
|
-
currentItem ? /* @__PURE__ */
|
|
9085
|
-
showHome ? /* @__PURE__ */
|
|
9086
|
-
/* @__PURE__ */
|
|
9087
|
-
/* @__PURE__ */
|
|
9133
|
+
currentItem ? /* @__PURE__ */ jsx74("li", { className: "stn-breadcrumb__item stn-breadcrumb__item--back", children: /* @__PURE__ */ jsx74(BreadcrumbBack, { label: currentItem.label, href: backHref, onClick: backOnClick }) }) : null,
|
|
9134
|
+
showHome ? /* @__PURE__ */ jsx74("li", { className: "stn-breadcrumb__item stn-breadcrumb__item--home", children: /* @__PURE__ */ jsxs53("a", { className: "stn-breadcrumb__home", href: homeHref, onClick: onHomeClick, children: [
|
|
9135
|
+
/* @__PURE__ */ jsx74(BreadcrumbIcon, { src: STN_BREADCRUMB_ICON_SRC.home }),
|
|
9136
|
+
/* @__PURE__ */ jsx74("span", { className: "blind", children: homeLabel })
|
|
9088
9137
|
] }) }) : null,
|
|
9089
9138
|
head.map((item, index) => /* @__PURE__ */ jsxs53(Fragment8, { children: [
|
|
9090
|
-
showHome || index > 0 ? /* @__PURE__ */
|
|
9139
|
+
showHome || index > 0 ? /* @__PURE__ */ jsx74(BreadcrumbSeparator, {}) : null,
|
|
9091
9140
|
renderTrailItem(item)
|
|
9092
9141
|
] }, item.id)),
|
|
9093
9142
|
hidden.length > 0 ? /* @__PURE__ */ jsxs53(Fragment9, { children: [
|
|
9094
|
-
/* @__PURE__ */
|
|
9095
|
-
/* @__PURE__ */
|
|
9143
|
+
/* @__PURE__ */ jsx74(BreadcrumbSeparator, {}),
|
|
9144
|
+
/* @__PURE__ */ jsx74(BreadcrumbCollapsed, { items: hidden, menuId })
|
|
9096
9145
|
] }) : null,
|
|
9097
9146
|
tail.map((item) => /* @__PURE__ */ jsxs53(Fragment8, { children: [
|
|
9098
|
-
/* @__PURE__ */
|
|
9147
|
+
/* @__PURE__ */ jsx74(BreadcrumbSeparator, {}),
|
|
9099
9148
|
renderTrailItem(item)
|
|
9100
9149
|
] }, item.id))
|
|
9101
9150
|
] })
|
|
@@ -9106,7 +9155,7 @@ function StnBreadcrumb({
|
|
|
9106
9155
|
// src/components/StnHeaderTitle.tsx
|
|
9107
9156
|
import { useEffect as useEffect16, useState as useState21 } from "react";
|
|
9108
9157
|
import { STN_HEADER_TITLE_FRAME } from "@stn-uiux/pub-ui/data/stnHeaderTitle";
|
|
9109
|
-
import { jsx as
|
|
9158
|
+
import { jsx as jsx75, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
9110
9159
|
var KO_WEEKDAY_SHORT = ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"];
|
|
9111
9160
|
var KO_WEEKDAY_LONG = [
|
|
9112
9161
|
"\uC77C\uC694\uC77C",
|
|
@@ -9146,7 +9195,7 @@ function formatStnHeaderTitleTime(date, options) {
|
|
|
9146
9195
|
function HeaderTitleFrame({ preview = false }) {
|
|
9147
9196
|
const frameClass = preview ? "stn-header-title__frame-preview" : "stn-header-title__frame";
|
|
9148
9197
|
return /* @__PURE__ */ jsxs54("div", { className: frameClass, "aria-hidden": "true", children: [
|
|
9149
|
-
/* @__PURE__ */
|
|
9198
|
+
/* @__PURE__ */ jsx75("div", { className: "stn-header-title__frame-bleed stn-header-title__frame-bleed--outer", children: /* @__PURE__ */ jsx75(
|
|
9150
9199
|
"img",
|
|
9151
9200
|
{
|
|
9152
9201
|
className: "stn-header-title__frame-img",
|
|
@@ -9156,7 +9205,7 @@ function HeaderTitleFrame({ preview = false }) {
|
|
|
9156
9205
|
}
|
|
9157
9206
|
) }),
|
|
9158
9207
|
/* @__PURE__ */ jsxs54("div", { className: "stn-header-title__frame-bleed stn-header-title__frame-bleed--inner", children: [
|
|
9159
|
-
/* @__PURE__ */
|
|
9208
|
+
/* @__PURE__ */ jsx75(
|
|
9160
9209
|
"img",
|
|
9161
9210
|
{
|
|
9162
9211
|
className: "stn-header-title__frame-img stn-header-title__frame-img--dark",
|
|
@@ -9165,7 +9214,7 @@ function HeaderTitleFrame({ preview = false }) {
|
|
|
9165
9214
|
draggable: false
|
|
9166
9215
|
}
|
|
9167
9216
|
),
|
|
9168
|
-
/* @__PURE__ */
|
|
9217
|
+
/* @__PURE__ */ jsx75(
|
|
9169
9218
|
"img",
|
|
9170
9219
|
{
|
|
9171
9220
|
className: "stn-header-title__frame-img stn-header-title__frame-img--light",
|
|
@@ -9178,7 +9227,7 @@ function HeaderTitleFrame({ preview = false }) {
|
|
|
9178
9227
|
] });
|
|
9179
9228
|
}
|
|
9180
9229
|
function StnHeaderTitleFramePreview({ className }) {
|
|
9181
|
-
return /* @__PURE__ */
|
|
9230
|
+
return /* @__PURE__ */ jsx75("div", { className: cn("stn-header-title__frame-only", className), children: /* @__PURE__ */ jsx75(HeaderTitleFrame, { preview: true }) });
|
|
9182
9231
|
}
|
|
9183
9232
|
function useLiveClock(enabled) {
|
|
9184
9233
|
const [now, setNow] = useState21(() => /* @__PURE__ */ new Date());
|
|
@@ -9194,35 +9243,35 @@ function StnHeaderTitleMainText({
|
|
|
9194
9243
|
children,
|
|
9195
9244
|
...rest
|
|
9196
9245
|
}) {
|
|
9197
|
-
return /* @__PURE__ */
|
|
9246
|
+
return /* @__PURE__ */ jsx75("h1", { className: cn("stn-header-title__text", className), ...rest, children });
|
|
9198
9247
|
}
|
|
9199
9248
|
function StnHeaderTitleSubText({
|
|
9200
9249
|
className,
|
|
9201
9250
|
children,
|
|
9202
9251
|
...rest
|
|
9203
9252
|
}) {
|
|
9204
|
-
return /* @__PURE__ */
|
|
9253
|
+
return /* @__PURE__ */ jsx75("span", { className: cn("stn-header-title__sub-text", className), ...rest, children });
|
|
9205
9254
|
}
|
|
9206
9255
|
function StnHeaderTitleDate({
|
|
9207
9256
|
className,
|
|
9208
9257
|
children,
|
|
9209
9258
|
...rest
|
|
9210
9259
|
}) {
|
|
9211
|
-
return /* @__PURE__ */
|
|
9260
|
+
return /* @__PURE__ */ jsx75("time", { className: cn("stn-header-title__date", className), ...rest, children });
|
|
9212
9261
|
}
|
|
9213
9262
|
function StnHeaderTitleWeekday({
|
|
9214
9263
|
className,
|
|
9215
9264
|
children,
|
|
9216
9265
|
...rest
|
|
9217
9266
|
}) {
|
|
9218
|
-
return /* @__PURE__ */
|
|
9267
|
+
return /* @__PURE__ */ jsx75("span", { className: cn("stn-header-title__weekday", className), ...rest, children });
|
|
9219
9268
|
}
|
|
9220
9269
|
function StnHeaderTitleTime({
|
|
9221
9270
|
className,
|
|
9222
9271
|
children,
|
|
9223
9272
|
...rest
|
|
9224
9273
|
}) {
|
|
9225
|
-
return /* @__PURE__ */
|
|
9274
|
+
return /* @__PURE__ */ jsx75("span", { className: cn("stn-header-title__time", className), "aria-label": "\uD604\uC7AC \uC2DC\uAC01", ...rest, children });
|
|
9226
9275
|
}
|
|
9227
9276
|
function StnHeaderTitleClock({
|
|
9228
9277
|
className,
|
|
@@ -9257,8 +9306,8 @@ function StnHeaderTitleClock({
|
|
|
9257
9306
|
),
|
|
9258
9307
|
...rest,
|
|
9259
9308
|
children: [
|
|
9260
|
-
framed ? /* @__PURE__ */
|
|
9261
|
-
/* @__PURE__ */
|
|
9309
|
+
framed ? /* @__PURE__ */ jsx75(HeaderTitleFrame, {}) : null,
|
|
9310
|
+
/* @__PURE__ */ jsx75("div", { className: "stn-header-title__content", children })
|
|
9262
9311
|
]
|
|
9263
9312
|
}
|
|
9264
9313
|
);
|
|
@@ -9300,11 +9349,11 @@ function StnHeaderTitleClock({
|
|
|
9300
9349
|
),
|
|
9301
9350
|
...rest,
|
|
9302
9351
|
children: [
|
|
9303
|
-
framed ? /* @__PURE__ */
|
|
9352
|
+
framed ? /* @__PURE__ */ jsx75(HeaderTitleFrame, {}) : null,
|
|
9304
9353
|
/* @__PURE__ */ jsxs54("div", { className: "stn-header-title__content", children: [
|
|
9305
|
-
resolvedDate ? /* @__PURE__ */
|
|
9306
|
-
showWeekdayOnly ? /* @__PURE__ */
|
|
9307
|
-
resolvedTime ? /* @__PURE__ */
|
|
9354
|
+
resolvedDate ? /* @__PURE__ */ jsx75("time", { className: "stn-header-title__date", dateTime: resolvedDate, children: resolvedDate }) : null,
|
|
9355
|
+
showWeekdayOnly ? /* @__PURE__ */ jsx75("span", { className: "stn-header-title__weekday", children: resolvedWeekday }) : null,
|
|
9356
|
+
resolvedTime ? /* @__PURE__ */ jsx75("span", { className: "stn-header-title__time", "aria-label": "\uD604\uC7AC \uC2DC\uAC01", children: resolvedTime }) : null
|
|
9308
9357
|
] })
|
|
9309
9358
|
]
|
|
9310
9359
|
}
|
|
@@ -9333,10 +9382,10 @@ function StnHeaderTitleDual({
|
|
|
9333
9382
|
),
|
|
9334
9383
|
...rest,
|
|
9335
9384
|
children: [
|
|
9336
|
-
framed ? /* @__PURE__ */
|
|
9385
|
+
framed ? /* @__PURE__ */ jsx75(HeaderTitleFrame, {}) : null,
|
|
9337
9386
|
/* @__PURE__ */ jsxs54("div", { className: "stn-header-title__content", children: [
|
|
9338
|
-
subText != null ? /* @__PURE__ */
|
|
9339
|
-
resolvedMain != null ? typeof resolvedMain === "string" || typeof resolvedMain === "number" ? /* @__PURE__ */
|
|
9387
|
+
subText != null ? /* @__PURE__ */ jsx75("span", { className: "stn-header-title__sub-text", children: subText }) : null,
|
|
9388
|
+
resolvedMain != null ? typeof resolvedMain === "string" || typeof resolvedMain === "number" ? /* @__PURE__ */ jsx75("h1", { className: "stn-header-title__text", children: resolvedMain }) : resolvedMain : null
|
|
9340
9389
|
] })
|
|
9341
9390
|
]
|
|
9342
9391
|
}
|
|
@@ -9363,20 +9412,20 @@ function StnHeaderTitleText({
|
|
|
9363
9412
|
),
|
|
9364
9413
|
...rest,
|
|
9365
9414
|
children: [
|
|
9366
|
-
framed ? /* @__PURE__ */
|
|
9367
|
-
/* @__PURE__ */
|
|
9415
|
+
framed ? /* @__PURE__ */ jsx75(HeaderTitleFrame, {}) : null,
|
|
9416
|
+
/* @__PURE__ */ jsx75("div", { className: "stn-header-title__content", children: typeof resolved === "string" || typeof resolved === "number" ? /* @__PURE__ */ jsx75("h1", { className: "stn-header-title__text", children: resolved }) : resolved })
|
|
9368
9417
|
]
|
|
9369
9418
|
}
|
|
9370
9419
|
);
|
|
9371
9420
|
}
|
|
9372
9421
|
function StnHeaderTitleRoot(props) {
|
|
9373
9422
|
if (props.variant === "clock") {
|
|
9374
|
-
return /* @__PURE__ */
|
|
9423
|
+
return /* @__PURE__ */ jsx75(StnHeaderTitleClock, { ...props });
|
|
9375
9424
|
}
|
|
9376
9425
|
if (props.variant === "dual" || "subText" in props && props.subText != null) {
|
|
9377
|
-
return /* @__PURE__ */
|
|
9426
|
+
return /* @__PURE__ */ jsx75(StnHeaderTitleDual, { ...props });
|
|
9378
9427
|
}
|
|
9379
|
-
return /* @__PURE__ */
|
|
9428
|
+
return /* @__PURE__ */ jsx75(StnHeaderTitleText, { ...props });
|
|
9380
9429
|
}
|
|
9381
9430
|
var StnHeaderTitle = Object.assign(StnHeaderTitleRoot, {
|
|
9382
9431
|
Text: StnHeaderTitleMainText,
|
|
@@ -9389,10 +9438,10 @@ var StnHeaderTitle = Object.assign(StnHeaderTitleRoot, {
|
|
|
9389
9438
|
|
|
9390
9439
|
// src/layouts/StnContainer.tsx
|
|
9391
9440
|
import {
|
|
9392
|
-
forwardRef as
|
|
9441
|
+
forwardRef as forwardRef46
|
|
9393
9442
|
} from "react";
|
|
9394
|
-
import { jsx as
|
|
9395
|
-
var StnContainer =
|
|
9443
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
9444
|
+
var StnContainer = forwardRef46(function StnContainer2({
|
|
9396
9445
|
component,
|
|
9397
9446
|
as,
|
|
9398
9447
|
maxWidth = "lg",
|
|
@@ -9407,7 +9456,7 @@ var StnContainer = forwardRef45(function StnContainer2({
|
|
|
9407
9456
|
const Component = component ?? as ?? "div";
|
|
9408
9457
|
const maxWidthClass = maxWidth ? `stn-container--${maxWidth} stn-container--max-width-${maxWidth}` : "stn-container--fluid stn-container--max-width-false";
|
|
9409
9458
|
const classKey = maxWidth ? `maxWidth${maxWidth.charAt(0).toUpperCase() + maxWidth.slice(1)}` : "maxWidthFalse";
|
|
9410
|
-
return /* @__PURE__ */
|
|
9459
|
+
return /* @__PURE__ */ jsx76(
|
|
9411
9460
|
Component,
|
|
9412
9461
|
{
|
|
9413
9462
|
ref,
|
|
@@ -9430,8 +9479,8 @@ var StnContainer = forwardRef45(function StnContainer2({
|
|
|
9430
9479
|
});
|
|
9431
9480
|
|
|
9432
9481
|
// src/layouts/StnGrid.tsx
|
|
9433
|
-
import { forwardRef as
|
|
9434
|
-
import { jsx as
|
|
9482
|
+
import { forwardRef as forwardRef47 } from "react";
|
|
9483
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
9435
9484
|
var BREAKPOINTS2 = ["xs", "sm", "md", "lg", "xl"];
|
|
9436
9485
|
var SPACING_CLASS = {
|
|
9437
9486
|
"0": "0",
|
|
@@ -9497,7 +9546,7 @@ function sizeClasses(size) {
|
|
|
9497
9546
|
}
|
|
9498
9547
|
return classes;
|
|
9499
9548
|
}
|
|
9500
|
-
var StnGrid =
|
|
9549
|
+
var StnGrid = forwardRef47(function StnGrid2({
|
|
9501
9550
|
component,
|
|
9502
9551
|
as,
|
|
9503
9552
|
container = false,
|
|
@@ -9517,7 +9566,7 @@ var StnGrid = forwardRef46(function StnGrid2({
|
|
|
9517
9566
|
const Component = component ?? as ?? "div";
|
|
9518
9567
|
const justify = typeof justifyContent === "string" && JUSTIFY_CLASS2.has(justifyContent) ? justifyContent : void 0;
|
|
9519
9568
|
const align = typeof alignItems === "string" && ALIGN_CLASS2.has(alignItems) ? alignItems : void 0;
|
|
9520
|
-
return /* @__PURE__ */
|
|
9569
|
+
return /* @__PURE__ */ jsx77(
|
|
9521
9570
|
Component,
|
|
9522
9571
|
{
|
|
9523
9572
|
ref,
|
|
@@ -9541,7 +9590,7 @@ var StnGrid = forwardRef46(function StnGrid2({
|
|
|
9541
9590
|
});
|
|
9542
9591
|
|
|
9543
9592
|
// src/layouts/StnLayerShell.tsx
|
|
9544
|
-
import { jsx as
|
|
9593
|
+
import { jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
9545
9594
|
function StnLayerShell({
|
|
9546
9595
|
gnb,
|
|
9547
9596
|
gnbSide = "left",
|
|
@@ -9570,7 +9619,7 @@ function StnLayerShell({
|
|
|
9570
9619
|
className: cn("stn-wrap", isGnbRight && "stn-wrap--gnb-right", wrapClassName),
|
|
9571
9620
|
children: [
|
|
9572
9621
|
layer0,
|
|
9573
|
-
utilities ? /* @__PURE__ */
|
|
9622
|
+
utilities ? /* @__PURE__ */ jsx78("div", { className: "stn-page-utilities", "data-stn-layer-role": "utility", children: utilities }) : null,
|
|
9574
9623
|
/* @__PURE__ */ jsxs55(
|
|
9575
9624
|
"main",
|
|
9576
9625
|
{
|
|
@@ -9581,8 +9630,8 @@ function StnLayerShell({
|
|
|
9581
9630
|
children: [
|
|
9582
9631
|
!isGnbRight && gnb,
|
|
9583
9632
|
/* @__PURE__ */ jsxs55("div", { className: "stn-layer-1__main", children: [
|
|
9584
|
-
header ? /* @__PURE__ */
|
|
9585
|
-
/* @__PURE__ */
|
|
9633
|
+
header ? /* @__PURE__ */ jsx78("header", { className: "stn-layer-1__header", children: header }) : null,
|
|
9634
|
+
/* @__PURE__ */ jsx78("div", { className: cn("stn-layer-1__body", scrollable && "stn-scroll", contentClassName), children: resolvedMainContent })
|
|
9586
9635
|
] }),
|
|
9587
9636
|
isGnbRight && gnb
|
|
9588
9637
|
]
|
|
@@ -9595,7 +9644,7 @@ function StnLayerShell({
|
|
|
9595
9644
|
}
|
|
9596
9645
|
|
|
9597
9646
|
// src/layouts/StnListViewLayout.tsx
|
|
9598
|
-
import { jsx as
|
|
9647
|
+
import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
9599
9648
|
function StnListViewLayoutBody({
|
|
9600
9649
|
search,
|
|
9601
9650
|
sidebar,
|
|
@@ -9606,8 +9655,8 @@ function StnListViewLayoutBody({
|
|
|
9606
9655
|
className
|
|
9607
9656
|
}) {
|
|
9608
9657
|
const lnbClass = lnbSide === "right" ? "stn-page-scaffold__lnb lnb_box lnb_box_right" : "stn-page-scaffold__lnb lnb_box";
|
|
9609
|
-
const sidebarAside = sidebar ? /* @__PURE__ */
|
|
9610
|
-
return /* @__PURE__ */
|
|
9658
|
+
const sidebarAside = sidebar ? /* @__PURE__ */ jsx79("aside", { className: lnbClass, children: sidebar }) : null;
|
|
9659
|
+
return /* @__PURE__ */ jsx79(
|
|
9611
9660
|
StnContainer,
|
|
9612
9661
|
{
|
|
9613
9662
|
maxWidth: false,
|
|
@@ -9627,8 +9676,8 @@ function StnListViewLayoutBody({
|
|
|
9627
9676
|
spacing: 2,
|
|
9628
9677
|
className: "stn-list-view__content-stack",
|
|
9629
9678
|
children: [
|
|
9630
|
-
search ? /* @__PURE__ */
|
|
9631
|
-
/* @__PURE__ */
|
|
9679
|
+
search ? /* @__PURE__ */ jsx79("div", { className: "stn-page-scaffold__search search_area", children: search }) : null,
|
|
9680
|
+
/* @__PURE__ */ jsx79(
|
|
9632
9681
|
"div",
|
|
9633
9682
|
{
|
|
9634
9683
|
className: "stn-page-scaffold__content content_box",
|
|
@@ -9664,7 +9713,7 @@ function StnListViewLayoutRoot({
|
|
|
9664
9713
|
}) {
|
|
9665
9714
|
const bare = bareProp ?? noShell ?? false;
|
|
9666
9715
|
const hasLnbClass = lnbSide === "right" ? "has_lnb_right" : "has_lnb";
|
|
9667
|
-
const body = /* @__PURE__ */
|
|
9716
|
+
const body = /* @__PURE__ */ jsx79(
|
|
9668
9717
|
StnListViewLayoutBody,
|
|
9669
9718
|
{
|
|
9670
9719
|
search,
|
|
@@ -9679,10 +9728,10 @@ function StnListViewLayoutRoot({
|
|
|
9679
9728
|
if (bare) {
|
|
9680
9729
|
return body;
|
|
9681
9730
|
}
|
|
9682
|
-
const renderedHeader = header === null ? null : header !== void 0 ? header : /* @__PURE__ */
|
|
9731
|
+
const renderedHeader = header === null ? null : header !== void 0 ? header : /* @__PURE__ */ jsx79("div", { className: "stn-layer-1__header", children: /* @__PURE__ */ jsx79(StnHeader, { variant: "page", children: /* @__PURE__ */ jsx79(StnHeader.Left, { children: /* @__PURE__ */ jsx79(StnHeaderPageTitle, { children: title }) }) }) });
|
|
9683
9732
|
return /* @__PURE__ */ jsxs56("div", { className: cn("stn-list-view-layout", "stn-layer-1", className), ...rest, children: [
|
|
9684
9733
|
renderedHeader,
|
|
9685
|
-
/* @__PURE__ */
|
|
9734
|
+
/* @__PURE__ */ jsx79(
|
|
9686
9735
|
"div",
|
|
9687
9736
|
{
|
|
9688
9737
|
className: cn("stn-content-area", sidebar ? hasLnbClass : null, search ? "has_sch" : null),
|
|
@@ -9692,10 +9741,10 @@ function StnListViewLayoutRoot({
|
|
|
9692
9741
|
] });
|
|
9693
9742
|
}
|
|
9694
9743
|
function StnListViewLayoutHeader({ className, children, ...rest }) {
|
|
9695
|
-
return /* @__PURE__ */
|
|
9744
|
+
return /* @__PURE__ */ jsx79("div", { className: cn("stn-layer-1__header", className), ...rest, children });
|
|
9696
9745
|
}
|
|
9697
9746
|
function StnListViewLayoutSearch({ className, children, ...rest }) {
|
|
9698
|
-
return /* @__PURE__ */
|
|
9747
|
+
return /* @__PURE__ */ jsx79("div", { className: cn("search_area", className), ...rest, children });
|
|
9699
9748
|
}
|
|
9700
9749
|
function StnListViewLayoutSidebar({
|
|
9701
9750
|
side = "left",
|
|
@@ -9704,16 +9753,16 @@ function StnListViewLayoutSidebar({
|
|
|
9704
9753
|
...rest
|
|
9705
9754
|
}) {
|
|
9706
9755
|
const lnbClass = side === "right" ? "lnb_box_right" : "lnb_box";
|
|
9707
|
-
return /* @__PURE__ */
|
|
9756
|
+
return /* @__PURE__ */ jsx79("aside", { className: cn(lnbClass, className), ...rest, children });
|
|
9708
9757
|
}
|
|
9709
9758
|
function StnListViewLayoutContent({ className, children, ...rest }) {
|
|
9710
|
-
return /* @__PURE__ */
|
|
9759
|
+
return /* @__PURE__ */ jsx79("div", { className: cn("content_box", className), ...rest, children });
|
|
9711
9760
|
}
|
|
9712
9761
|
function StnListViewLayoutTable({ className, children, ...rest }) {
|
|
9713
|
-
return /* @__PURE__ */
|
|
9762
|
+
return /* @__PURE__ */ jsx79("div", { className: cn("stn-table", className), ...rest, children });
|
|
9714
9763
|
}
|
|
9715
9764
|
function StnListViewLayoutPagination({ className, children, ...rest }) {
|
|
9716
|
-
return /* @__PURE__ */
|
|
9765
|
+
return /* @__PURE__ */ jsx79("div", { className: cn("stn-list-view-layout__pagination-wrap", className), ...rest, children });
|
|
9717
9766
|
}
|
|
9718
9767
|
var StnListViewLayout = Object.assign(StnListViewLayoutRoot, {
|
|
9719
9768
|
Body: StnListViewLayoutBody,
|
|
@@ -9747,13 +9796,13 @@ import {
|
|
|
9747
9796
|
} from "@stn-uiux/pub-ui/data/stnLayout";
|
|
9748
9797
|
|
|
9749
9798
|
// src/patterns/dashboard/StnMapCanvas.tsx
|
|
9750
|
-
import { jsx as
|
|
9799
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
9751
9800
|
function StnMapCanvas({
|
|
9752
9801
|
children,
|
|
9753
9802
|
className,
|
|
9754
9803
|
...rest
|
|
9755
9804
|
}) {
|
|
9756
|
-
return /* @__PURE__ */
|
|
9805
|
+
return /* @__PURE__ */ jsx80(
|
|
9757
9806
|
"div",
|
|
9758
9807
|
{
|
|
9759
9808
|
className: cn("stn-map-canvas", className),
|
|
@@ -9765,7 +9814,7 @@ function StnMapCanvas({
|
|
|
9765
9814
|
}
|
|
9766
9815
|
|
|
9767
9816
|
// src/patterns/dashboard/StnDashboard.tsx
|
|
9768
|
-
import { jsx as
|
|
9817
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
9769
9818
|
var fillStyle = {
|
|
9770
9819
|
flex: "1 1 0%",
|
|
9771
9820
|
minHeight: 0,
|
|
@@ -9784,7 +9833,7 @@ function StnDashboardRoot({
|
|
|
9784
9833
|
}) {
|
|
9785
9834
|
const isLeft = widgetPosition === "left";
|
|
9786
9835
|
const isBoth = widgetPosition === "both";
|
|
9787
|
-
return /* @__PURE__ */
|
|
9836
|
+
return /* @__PURE__ */ jsx81(
|
|
9788
9837
|
"div",
|
|
9789
9838
|
{
|
|
9790
9839
|
className: cn(
|
|
@@ -9813,7 +9862,7 @@ function StnDashboardLeft({
|
|
|
9813
9862
|
style,
|
|
9814
9863
|
...rest
|
|
9815
9864
|
}) {
|
|
9816
|
-
return /* @__PURE__ */
|
|
9865
|
+
return /* @__PURE__ */ jsx81(
|
|
9817
9866
|
"div",
|
|
9818
9867
|
{
|
|
9819
9868
|
className: cn("stn-dashboard__left", className),
|
|
@@ -9839,7 +9888,7 @@ function StnDashboardRight({
|
|
|
9839
9888
|
style,
|
|
9840
9889
|
...rest
|
|
9841
9890
|
}) {
|
|
9842
|
-
return /* @__PURE__ */
|
|
9891
|
+
return /* @__PURE__ */ jsx81(
|
|
9843
9892
|
"div",
|
|
9844
9893
|
{
|
|
9845
9894
|
className: cn("stn-dashboard__right", className),
|
|
@@ -9867,7 +9916,7 @@ function StnDashboardTopRight({
|
|
|
9867
9916
|
className,
|
|
9868
9917
|
...rest
|
|
9869
9918
|
}) {
|
|
9870
|
-
return /* @__PURE__ */
|
|
9919
|
+
return /* @__PURE__ */ jsx81(
|
|
9871
9920
|
"div",
|
|
9872
9921
|
{
|
|
9873
9922
|
className: cn("stn-dashboard__top-right", className),
|
|
@@ -9886,9 +9935,9 @@ var StnDashboard = Object.assign(StnDashboardRoot, {
|
|
|
9886
9935
|
});
|
|
9887
9936
|
|
|
9888
9937
|
// src/patterns/scaffold/StnPageScaffold.tsx
|
|
9889
|
-
import { jsx as
|
|
9938
|
+
import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9890
9939
|
function StnPageScaffoldRoot({ children, className, ...rest }) {
|
|
9891
|
-
return /* @__PURE__ */
|
|
9940
|
+
return /* @__PURE__ */ jsx82(
|
|
9892
9941
|
"div",
|
|
9893
9942
|
{
|
|
9894
9943
|
className: cn("stn-page-scaffold", className),
|
|
@@ -9906,8 +9955,8 @@ function StnPageScaffoldRegion({
|
|
|
9906
9955
|
...rest
|
|
9907
9956
|
}) {
|
|
9908
9957
|
return /* @__PURE__ */ jsxs57("div", { className: cn("stn-page-scaffold__region", className), "data-stn-page-scaffold": "region", ...rest, children: [
|
|
9909
|
-
/* @__PURE__ */
|
|
9910
|
-
hint ? /* @__PURE__ */
|
|
9958
|
+
/* @__PURE__ */ jsx82("span", { className: "stn-page-scaffold__region-label", children: label }),
|
|
9959
|
+
hint ? /* @__PURE__ */ jsx82("span", { className: "stn-page-scaffold__region-hint", children: hint }) : null,
|
|
9911
9960
|
children
|
|
9912
9961
|
] });
|
|
9913
9962
|
}
|
|
@@ -9918,7 +9967,7 @@ function StnPageScaffoldMapPlaceholder({
|
|
|
9918
9967
|
children,
|
|
9919
9968
|
...rest
|
|
9920
9969
|
}) {
|
|
9921
|
-
return /* @__PURE__ */
|
|
9970
|
+
return /* @__PURE__ */ jsx82("div", { className: "stn-widget shell-canvas stn-map-canvas", "data-stn-dashboard": "canvas", children: /* @__PURE__ */ jsxs57(
|
|
9922
9971
|
"div",
|
|
9923
9972
|
{
|
|
9924
9973
|
className: cn("stn-page-scaffold__canvas-placeholder", className),
|
|
@@ -9926,8 +9975,8 @@ function StnPageScaffoldMapPlaceholder({
|
|
|
9926
9975
|
role: "status",
|
|
9927
9976
|
...rest,
|
|
9928
9977
|
children: [
|
|
9929
|
-
/* @__PURE__ */
|
|
9930
|
-
note ? /* @__PURE__ */
|
|
9978
|
+
/* @__PURE__ */ jsx82("p", { className: "stn-page-scaffold__canvas-placeholder-title", children: message }),
|
|
9979
|
+
note ? /* @__PURE__ */ jsx82("p", { className: "stn-page-scaffold__canvas-placeholder-note", children: note }) : null,
|
|
9931
9980
|
children
|
|
9932
9981
|
]
|
|
9933
9982
|
}
|
|
@@ -9938,7 +9987,7 @@ function StnPageScaffoldMapCanvas({
|
|
|
9938
9987
|
children,
|
|
9939
9988
|
...rest
|
|
9940
9989
|
}) {
|
|
9941
|
-
return /* @__PURE__ */
|
|
9990
|
+
return /* @__PURE__ */ jsx82(
|
|
9942
9991
|
"div",
|
|
9943
9992
|
{
|
|
9944
9993
|
className: cn("stn-widget", "shell-canvas", "stn-map-canvas", "stn-page-scaffold__canvas", className),
|
|
@@ -9951,7 +10000,7 @@ function StnPageScaffoldMapCanvas({
|
|
|
9951
10000
|
}
|
|
9952
10001
|
function StnPageScaffoldLayer({ label, hint, children, className, ...layerProps }) {
|
|
9953
10002
|
const labelText = label ? hint ? `${label} \xB7 ${hint}` : label : void 0;
|
|
9954
|
-
return /* @__PURE__ */
|
|
10003
|
+
return /* @__PURE__ */ jsx82(
|
|
9955
10004
|
StnLayer2,
|
|
9956
10005
|
{
|
|
9957
10006
|
className: cn(
|
|
@@ -9999,24 +10048,24 @@ function DashboardPageScaffold({
|
|
|
9999
10048
|
const isBoth = widgetPosition === "both";
|
|
10000
10049
|
const isNone = widgetPosition === "none" || !showRightRegion;
|
|
10001
10050
|
const mapColumn = /* @__PURE__ */ jsxs57(StnDashboard.Left, { children: [
|
|
10002
|
-
/* @__PURE__ */
|
|
10051
|
+
/* @__PURE__ */ jsx82(StnPageScaffold.MapPlaceholder, { message: finalMapMessage, note: finalMapNote }),
|
|
10003
10052
|
faultPanel
|
|
10004
10053
|
] });
|
|
10005
|
-
const rightWidgets = right ?? /* @__PURE__ */
|
|
10006
|
-
const leftWidgets = left ?? right ?? /* @__PURE__ */
|
|
10007
|
-
const dashboardGrid = bodyEmpty ? /* @__PURE__ */
|
|
10008
|
-
/* @__PURE__ */
|
|
10054
|
+
const rightWidgets = right ?? /* @__PURE__ */ jsx82(StnPageScaffold.Region, { label: "dashboard_right", hint: "\uC704\uC82F\xB7\uC7A5\uC560 \uD328\uB110" });
|
|
10055
|
+
const leftWidgets = left ?? right ?? /* @__PURE__ */ jsx82(StnPageScaffold.Region, { label: "dashboard_right", hint: "\uC88C\uCE21 \uC704\uC82F\xB7\uC7A5\uC560 \uD328\uB110" });
|
|
10056
|
+
const dashboardGrid = bodyEmpty ? /* @__PURE__ */ jsx82(StnDashboard, { empty: true, widgetPosition, "data-stn-page-scaffold": "dashboard-empty" }) : isBoth ? /* @__PURE__ */ jsxs57(StnDashboard, { widgetPosition: "both", children: [
|
|
10057
|
+
/* @__PURE__ */ jsx82(StnDashboard.Right, { children: leftWidgets }),
|
|
10009
10058
|
mapColumn,
|
|
10010
|
-
/* @__PURE__ */
|
|
10059
|
+
/* @__PURE__ */ jsx82(StnDashboard.Right, { children: rightWidgets })
|
|
10011
10060
|
] }) : isLeft ? /* @__PURE__ */ jsxs57(StnDashboard, { widgetPosition: "left", children: [
|
|
10012
|
-
/* @__PURE__ */
|
|
10061
|
+
/* @__PURE__ */ jsx82(StnDashboard.Right, { children: leftWidgets }),
|
|
10013
10062
|
mapColumn
|
|
10014
10063
|
] }) : /* @__PURE__ */ jsxs57(StnDashboard, { widgetPosition: isNone ? "none" : "right", children: [
|
|
10015
10064
|
mapColumn,
|
|
10016
|
-
!isNone ? /* @__PURE__ */
|
|
10065
|
+
!isNone ? /* @__PURE__ */ jsx82(StnDashboard.Right, { children: rightWidgets }) : null
|
|
10017
10066
|
] });
|
|
10018
10067
|
const contentNode = children ?? dashboardGrid;
|
|
10019
|
-
return /* @__PURE__ */
|
|
10068
|
+
return /* @__PURE__ */ jsx82(
|
|
10020
10069
|
StnLayerShell,
|
|
10021
10070
|
{
|
|
10022
10071
|
gnb,
|
|
@@ -10025,7 +10074,7 @@ function DashboardPageScaffold({
|
|
|
10025
10074
|
layer0,
|
|
10026
10075
|
layer2,
|
|
10027
10076
|
...shellProps,
|
|
10028
|
-
children: /* @__PURE__ */
|
|
10077
|
+
children: /* @__PURE__ */ jsx82(
|
|
10029
10078
|
StnContainer,
|
|
10030
10079
|
{
|
|
10031
10080
|
maxWidth: false,
|
|
@@ -10046,9 +10095,9 @@ import {
|
|
|
10046
10095
|
STN_ALERT_CENTER_DEMO_WORK
|
|
10047
10096
|
} from "@stn-uiux/pub-ui/data/stnAlertCenter";
|
|
10048
10097
|
import { systemIconSrc } from "@stn-uiux/pub-ui/data/stnSystemIcons";
|
|
10049
|
-
import { Fragment as Fragment10, jsx as
|
|
10098
|
+
import { Fragment as Fragment10, jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
10050
10099
|
function defaultTopologyHeader(_clock) {
|
|
10051
|
-
return /* @__PURE__ */
|
|
10100
|
+
return /* @__PURE__ */ jsx83(StnHeader, { variant: "widget" });
|
|
10052
10101
|
}
|
|
10053
10102
|
function AlertCenterPageScaffold({
|
|
10054
10103
|
gnbAlertPanel,
|
|
@@ -10067,7 +10116,7 @@ function AlertCenterPageScaffold({
|
|
|
10067
10116
|
}) {
|
|
10068
10117
|
const [gnbOpen, setGnbOpen] = useState22(defaultGnbOpen);
|
|
10069
10118
|
const panel = useMemo5(
|
|
10070
|
-
() => gnbAlertPanel ?? /* @__PURE__ */
|
|
10119
|
+
() => gnbAlertPanel ?? /* @__PURE__ */ jsx83(
|
|
10071
10120
|
StnAlertCenterPanel,
|
|
10072
10121
|
{
|
|
10073
10122
|
alerts: STN_ALERT_CENTER_DEMO_ALERTS,
|
|
@@ -10086,18 +10135,18 @@ function AlertCenterPageScaffold({
|
|
|
10086
10135
|
onCollapseChange: (col) => setGnbOpen(!col),
|
|
10087
10136
|
children: [
|
|
10088
10137
|
/* @__PURE__ */ jsxs58(StnSideNavigation.Header, { children: [
|
|
10089
|
-
/* @__PURE__ */
|
|
10090
|
-
/* @__PURE__ */
|
|
10138
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Logo, {}),
|
|
10139
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Toggle, {})
|
|
10091
10140
|
] }),
|
|
10092
10141
|
/* @__PURE__ */ jsxs58(StnSideNavigation.Menu, { children: [
|
|
10093
|
-
/* @__PURE__ */
|
|
10094
|
-
/* @__PURE__ */
|
|
10095
|
-
/* @__PURE__ */
|
|
10142
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Item, { iconSrc: systemIconSrc("line/layout-grid"), label: "\uBA54\uC778 \uB300\uC2DC\uBCF4\uB4DC", active: true }),
|
|
10143
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Item, { iconSrc: systemIconSrc("line/server_2"), label: "\uC11C\uBC84 \uBAA8\uB2C8\uD130\uB9C1" }),
|
|
10144
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Item, { iconSrc: systemIconSrc("line/activity"), label: "\uB124\uD2B8\uC6CC\uD06C \uBD84\uC11D" })
|
|
10096
10145
|
] }),
|
|
10097
|
-
/* @__PURE__ */
|
|
10146
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Spacer, {}),
|
|
10098
10147
|
/* @__PURE__ */ jsxs58(StnSideNavigation.Footer, { curved: true, children: [
|
|
10099
|
-
/* @__PURE__ */
|
|
10100
|
-
/* @__PURE__ */
|
|
10148
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Watermark, {}),
|
|
10149
|
+
/* @__PURE__ */ jsx83(
|
|
10101
10150
|
StnSideNavigation.Item,
|
|
10102
10151
|
{
|
|
10103
10152
|
iconSrc: systemIconSrc("line/bell"),
|
|
@@ -10106,7 +10155,7 @@ function AlertCenterPageScaffold({
|
|
|
10106
10155
|
onClick: void 0
|
|
10107
10156
|
}
|
|
10108
10157
|
),
|
|
10109
|
-
/* @__PURE__ */
|
|
10158
|
+
/* @__PURE__ */ jsx83(StnSideNavigation.Item, { iconSrc: systemIconSrc("line/settings"), label: "\uC124\uC815" })
|
|
10110
10159
|
] })
|
|
10111
10160
|
]
|
|
10112
10161
|
}
|
|
@@ -10115,8 +10164,8 @@ function AlertCenterPageScaffold({
|
|
|
10115
10164
|
] }),
|
|
10116
10165
|
[gnbProp, gnbOpen, panel]
|
|
10117
10166
|
);
|
|
10118
|
-
const faultSlot = faultPanel ?? (showFaultPanelPlaceholder ? /* @__PURE__ */
|
|
10119
|
-
return /* @__PURE__ */
|
|
10167
|
+
const faultSlot = faultPanel ?? (showFaultPanelPlaceholder ? /* @__PURE__ */ jsx83("div", { className: "wrap_real_time stn-page-scaffold__fault-ph", children: /* @__PURE__ */ jsx83(StnPageScaffold.Region, { label: "\uC2E4\uC2DC\uAC04 \uC7A5\uC560 \uD604\uD669", hint: "StnWidget shell=fault-panel \xB7 \uC120\uD0DD" }) }) : null);
|
|
10168
|
+
return /* @__PURE__ */ jsx83(
|
|
10120
10169
|
DashboardPageScaffold,
|
|
10121
10170
|
{
|
|
10122
10171
|
gnb: sideNav,
|
|
@@ -10124,7 +10173,7 @@ function AlertCenterPageScaffold({
|
|
|
10124
10173
|
mapMessage,
|
|
10125
10174
|
mapNote,
|
|
10126
10175
|
faultPanel: faultSlot,
|
|
10127
|
-
right: right ?? /* @__PURE__ */
|
|
10176
|
+
right: right ?? /* @__PURE__ */ jsx83(AlertCenterDashboard, {}),
|
|
10128
10177
|
wrapId,
|
|
10129
10178
|
wrapClassName: "stn-page--map-bg",
|
|
10130
10179
|
...shellProps
|
|
@@ -10134,7 +10183,7 @@ function AlertCenterPageScaffold({
|
|
|
10134
10183
|
|
|
10135
10184
|
// src/patterns/scaffold/LoginPageScaffold.tsx
|
|
10136
10185
|
import { useState as useState23 } from "react";
|
|
10137
|
-
import { jsx as
|
|
10186
|
+
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
10138
10187
|
var LOGIN_TABS = [
|
|
10139
10188
|
{ value: "normal", label: "\uC77C\uBC18 \uB85C\uADF8\uC778" },
|
|
10140
10189
|
{ value: "social", label: "\uC18C\uC15C \uB85C\uADF8\uC778" }
|
|
@@ -10153,7 +10202,7 @@ function DefaultLoginForm({
|
|
|
10153
10202
|
onLogin?.(userId, password);
|
|
10154
10203
|
}
|
|
10155
10204
|
return /* @__PURE__ */ jsxs59(StnLoginFormStack, { onSubmit: handleSubmit, children: [
|
|
10156
|
-
/* @__PURE__ */
|
|
10205
|
+
/* @__PURE__ */ jsx84(
|
|
10157
10206
|
StnSegmented,
|
|
10158
10207
|
{
|
|
10159
10208
|
"aria-label": "\uB85C\uADF8\uC778 \uBC29\uC2DD",
|
|
@@ -10163,7 +10212,7 @@ function DefaultLoginForm({
|
|
|
10163
10212
|
}
|
|
10164
10213
|
),
|
|
10165
10214
|
mode === "normal" ? /* @__PURE__ */ jsxs59(StnLoginFormFields, { children: [
|
|
10166
|
-
/* @__PURE__ */
|
|
10215
|
+
/* @__PURE__ */ jsx84(
|
|
10167
10216
|
StnLoginTextField,
|
|
10168
10217
|
{
|
|
10169
10218
|
icon: "line/user",
|
|
@@ -10175,7 +10224,7 @@ function DefaultLoginForm({
|
|
|
10175
10224
|
"aria-label": "\uC544\uC774\uB514"
|
|
10176
10225
|
}
|
|
10177
10226
|
),
|
|
10178
|
-
/* @__PURE__ */
|
|
10227
|
+
/* @__PURE__ */ jsx84(
|
|
10179
10228
|
StnLoginTextField,
|
|
10180
10229
|
{
|
|
10181
10230
|
icon: "line/lock",
|
|
@@ -10188,11 +10237,11 @@ function DefaultLoginForm({
|
|
|
10188
10237
|
"aria-label": "\uBE44\uBC00\uBC88\uD638"
|
|
10189
10238
|
}
|
|
10190
10239
|
)
|
|
10191
|
-
] }) : socialContent ?? /* @__PURE__ */
|
|
10192
|
-
/* @__PURE__ */
|
|
10240
|
+
] }) : socialContent ?? /* @__PURE__ */ jsx84(StnLoginPlaceholder, {}),
|
|
10241
|
+
/* @__PURE__ */ jsx84(StnButton, { type: "submit", size: "xl", fullWidth: true, children: "\uB85C\uADF8\uC778" }),
|
|
10193
10242
|
/* @__PURE__ */ jsxs59(StnLoginFormLinks, { children: [
|
|
10194
|
-
/* @__PURE__ */
|
|
10195
|
-
/* @__PURE__ */
|
|
10243
|
+
/* @__PURE__ */ jsx84("a", { href: signUpHref, children: "\uD68C\uC6D0\uAC00\uC785" }),
|
|
10244
|
+
/* @__PURE__ */ jsx84("a", { href: recoverHref, children: "\uC544\uC774\uB514 / \uBE44\uBC00\uBC88\uD638 \uCC3E\uAE30" })
|
|
10196
10245
|
] })
|
|
10197
10246
|
] });
|
|
10198
10247
|
}
|
|
@@ -10206,16 +10255,16 @@ function DefaultLoginCard({
|
|
|
10206
10255
|
signUpHref,
|
|
10207
10256
|
recoverHref
|
|
10208
10257
|
}) {
|
|
10209
|
-
return /* @__PURE__ */
|
|
10258
|
+
return /* @__PURE__ */ jsx84(
|
|
10210
10259
|
StnLoginCard,
|
|
10211
10260
|
{
|
|
10212
10261
|
glow,
|
|
10213
10262
|
variant,
|
|
10214
10263
|
brand: /* @__PURE__ */ jsxs59(StnLoginBrandStack, { children: [
|
|
10215
|
-
logo ?? /* @__PURE__ */
|
|
10216
|
-
/* @__PURE__ */
|
|
10264
|
+
logo ?? /* @__PURE__ */ jsx84(StnLogo, { variant: "vertical", size: "xl" }),
|
|
10265
|
+
/* @__PURE__ */ jsx84("p", { className: "stn-login-card__caption", children: productCaption })
|
|
10217
10266
|
] }),
|
|
10218
|
-
children: /* @__PURE__ */
|
|
10267
|
+
children: /* @__PURE__ */ jsx84(
|
|
10219
10268
|
DefaultLoginForm,
|
|
10220
10269
|
{
|
|
10221
10270
|
onLogin,
|
|
@@ -10241,8 +10290,8 @@ function LoginPageScaffold({
|
|
|
10241
10290
|
recoverHref,
|
|
10242
10291
|
...shellProps
|
|
10243
10292
|
}) {
|
|
10244
|
-
const resolvedLayer0 = layer0 ?? /* @__PURE__ */
|
|
10245
|
-
const resolvedCard = children ?? /* @__PURE__ */
|
|
10293
|
+
const resolvedLayer0 = layer0 ?? /* @__PURE__ */ jsx84(StnLayer0Background, { variant: "login" });
|
|
10294
|
+
const resolvedCard = children ?? /* @__PURE__ */ jsx84(
|
|
10246
10295
|
DefaultLoginCard,
|
|
10247
10296
|
{
|
|
10248
10297
|
logo,
|
|
@@ -10262,7 +10311,7 @@ function LoginPageScaffold({
|
|
|
10262
10311
|
...shellProps,
|
|
10263
10312
|
children: [
|
|
10264
10313
|
resolvedLayer0,
|
|
10265
|
-
/* @__PURE__ */
|
|
10314
|
+
/* @__PURE__ */ jsx84("div", { className: "stn-login", children: resolvedCard })
|
|
10266
10315
|
]
|
|
10267
10316
|
}
|
|
10268
10317
|
);
|
|
@@ -10291,7 +10340,7 @@ import {
|
|
|
10291
10340
|
|
|
10292
10341
|
// src/patterns/toolbar/StnFloatingToolbar.tsx
|
|
10293
10342
|
import React3 from "react";
|
|
10294
|
-
import { jsx as
|
|
10343
|
+
import { jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
10295
10344
|
var DEFAULT_MAP_MODES = [
|
|
10296
10345
|
{ value: "sphere", label: "\uAD6C\uBA74" },
|
|
10297
10346
|
{ value: "plane", label: "\uD3C9\uBA74" },
|
|
@@ -10301,7 +10350,7 @@ var StnFloatingToolbar = React3.forwardRef(
|
|
|
10301
10350
|
({ placement = "none", orientation = "horizontal", className, children, ...restProps }, ref) => {
|
|
10302
10351
|
const placementClass = placement !== "none" ? `stn-floating-toolbar--${placement}` : "";
|
|
10303
10352
|
const orientationClass = orientation === "vertical" ? "stn-floating-toolbar--vertical" : "";
|
|
10304
|
-
return /* @__PURE__ */
|
|
10353
|
+
return /* @__PURE__ */ jsx85(
|
|
10305
10354
|
"div",
|
|
10306
10355
|
{
|
|
10307
10356
|
ref,
|
|
@@ -10344,7 +10393,7 @@ var StnMapToolbar = React3.forwardRef(
|
|
|
10344
10393
|
"aria-label": "\uC9C0\uB3C4 \uBC0F \uD1A0\uD3F4\uB85C\uC9C0 \uB3C4\uAD6C \uBAA8\uC74C",
|
|
10345
10394
|
...restProps,
|
|
10346
10395
|
children: [
|
|
10347
|
-
modeOptions && modeOptions.length > 0 && /* @__PURE__ */
|
|
10396
|
+
modeOptions && modeOptions.length > 0 && /* @__PURE__ */ jsx85(
|
|
10348
10397
|
StnDropdown,
|
|
10349
10398
|
{
|
|
10350
10399
|
size: "md",
|
|
@@ -10355,75 +10404,75 @@ var StnMapToolbar = React3.forwardRef(
|
|
|
10355
10404
|
"aria-label": "\uD22C\uC601 \uBAA8\uB4DC \uC120\uD0DD"
|
|
10356
10405
|
}
|
|
10357
10406
|
),
|
|
10358
|
-
onRestore && /* @__PURE__ */
|
|
10407
|
+
onRestore && /* @__PURE__ */ jsx85(
|
|
10359
10408
|
StnButton,
|
|
10360
10409
|
{
|
|
10361
10410
|
variant: buttonVariant,
|
|
10362
10411
|
size: "md",
|
|
10363
10412
|
shape: "square",
|
|
10364
10413
|
icon: /* @__PURE__ */ jsxs60("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
10365
|
-
/* @__PURE__ */
|
|
10366
|
-
/* @__PURE__ */
|
|
10367
|
-
/* @__PURE__ */
|
|
10414
|
+
/* @__PURE__ */ jsx85("path", { d: "M3.06006 13C3.30547 15.1939 4.34865 17.221 5.9912 18.696C7.63374 20.1709 9.76108 20.9907 11.9686 20.9994C14.1762 21.0081 16.3099 20.2052 17.9641 18.7434C19.6183 17.2815 20.6775 15.2627 20.9403 13.0708C21.2031 10.879 20.6511 8.66696 19.3894 6.85551C18.1276 5.04406 16.2441 3.75951 14.0971 3.24618C11.95 2.73284 9.68922 3.02652 7.74457 4.07135C5.79993 5.11619 4.30712 6.83931 3.55006 8.913" }),
|
|
10415
|
+
/* @__PURE__ */ jsx85("path", { d: "M3 4.00098V9.00098H8" }),
|
|
10416
|
+
/* @__PURE__ */ jsx85("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor" })
|
|
10368
10417
|
] }),
|
|
10369
10418
|
"aria-label": "\uCD08\uAE30\uD654 (Restore)",
|
|
10370
10419
|
title: "\uCD08\uAE30\uD654 (Restore)",
|
|
10371
10420
|
onClick: onRestore
|
|
10372
10421
|
}
|
|
10373
10422
|
),
|
|
10374
|
-
onFullscreen && /* @__PURE__ */
|
|
10423
|
+
onFullscreen && /* @__PURE__ */ jsx85(
|
|
10375
10424
|
StnButton,
|
|
10376
10425
|
{
|
|
10377
10426
|
variant: buttonVariant,
|
|
10378
10427
|
size: "md",
|
|
10379
10428
|
shape: "square",
|
|
10380
10429
|
icon: /* @__PURE__ */ jsxs60("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
10381
|
-
/* @__PURE__ */
|
|
10382
|
-
/* @__PURE__ */
|
|
10383
|
-
/* @__PURE__ */
|
|
10384
|
-
/* @__PURE__ */
|
|
10430
|
+
/* @__PURE__ */ jsx85("path", { d: "M16 4H20V8" }),
|
|
10431
|
+
/* @__PURE__ */ jsx85("path", { d: "M14 10L20 4" }),
|
|
10432
|
+
/* @__PURE__ */ jsx85("path", { d: "M8 20H4V16" }),
|
|
10433
|
+
/* @__PURE__ */ jsx85("path", { d: "M4 20L10 14" })
|
|
10385
10434
|
] }),
|
|
10386
10435
|
"aria-label": "\uC804\uCCB4\uD654\uBA74",
|
|
10387
10436
|
title: "\uC804\uCCB4\uD654\uBA74",
|
|
10388
10437
|
onClick: onFullscreen
|
|
10389
10438
|
}
|
|
10390
10439
|
),
|
|
10391
|
-
onZoomIn && /* @__PURE__ */
|
|
10440
|
+
onZoomIn && /* @__PURE__ */ jsx85(
|
|
10392
10441
|
StnButton,
|
|
10393
10442
|
{
|
|
10394
10443
|
variant: buttonVariant,
|
|
10395
10444
|
size: "md",
|
|
10396
10445
|
shape: "square",
|
|
10397
10446
|
icon: /* @__PURE__ */ jsxs60("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
10398
|
-
/* @__PURE__ */
|
|
10399
|
-
/* @__PURE__ */
|
|
10447
|
+
/* @__PURE__ */ jsx85("path", { d: "M12 5V19" }),
|
|
10448
|
+
/* @__PURE__ */ jsx85("path", { d: "M5 12H19" })
|
|
10400
10449
|
] }),
|
|
10401
10450
|
"aria-label": "\uD655\uB300",
|
|
10402
10451
|
title: "\uD655\uB300",
|
|
10403
10452
|
onClick: onZoomIn
|
|
10404
10453
|
}
|
|
10405
10454
|
),
|
|
10406
|
-
onZoomOut && /* @__PURE__ */
|
|
10455
|
+
onZoomOut && /* @__PURE__ */ jsx85(
|
|
10407
10456
|
StnButton,
|
|
10408
10457
|
{
|
|
10409
10458
|
variant: buttonVariant,
|
|
10410
10459
|
size: "md",
|
|
10411
10460
|
shape: "square",
|
|
10412
|
-
icon: /* @__PURE__ */
|
|
10461
|
+
icon: /* @__PURE__ */ jsx85("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx85("path", { d: "M5 12H19" }) }),
|
|
10413
10462
|
"aria-label": "\uCD95\uC18C",
|
|
10414
10463
|
title: "\uCD95\uC18C",
|
|
10415
10464
|
onClick: onZoomOut
|
|
10416
10465
|
}
|
|
10417
10466
|
),
|
|
10418
|
-
onRefresh && /* @__PURE__ */
|
|
10467
|
+
onRefresh && /* @__PURE__ */ jsx85(
|
|
10419
10468
|
StnButton,
|
|
10420
10469
|
{
|
|
10421
10470
|
variant: buttonVariant,
|
|
10422
10471
|
size: "md",
|
|
10423
10472
|
shape: "square",
|
|
10424
10473
|
icon: /* @__PURE__ */ jsxs60("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
10425
|
-
/* @__PURE__ */
|
|
10426
|
-
/* @__PURE__ */
|
|
10474
|
+
/* @__PURE__ */ jsx85("path", { d: "M20 11C19.7554 9.24023 18.9391 7.60967 17.6766 6.35951C16.4142 5.10934 14.7758 4.30893 13.0137 4.08156C11.2516 3.8542 9.46362 4.21249 7.9252 5.10126C6.38678 5.99002 5.18325 7.35995 4.5 9.00001M4 5.00001V9.00001H8" }),
|
|
10475
|
+
/* @__PURE__ */ jsx85("path", { d: "M4 13C4.24456 14.7598 5.06093 16.3903 6.32336 17.6405C7.58579 18.8907 9.22424 19.6911 10.9863 19.9184C12.7484 20.1458 14.5364 19.7875 16.0748 18.8988C17.6132 18.01 18.8168 16.6401 19.5 15M20 19V15H16" })
|
|
10427
10476
|
] }),
|
|
10428
10477
|
"aria-label": "\uC0C8\uB85C\uACE0\uCE68",
|
|
10429
10478
|
title: "\uC0C8\uB85C\uACE0\uCE68",
|
|
@@ -10443,6 +10492,7 @@ export {
|
|
|
10443
10492
|
AlertCenterDashboard,
|
|
10444
10493
|
AlertCenterPageScaffold,
|
|
10445
10494
|
DashboardPageScaffold,
|
|
10495
|
+
Divider,
|
|
10446
10496
|
LoginPageScaffold,
|
|
10447
10497
|
PubChartSample,
|
|
10448
10498
|
PubDisabilityStatusList,
|
|
@@ -10582,6 +10632,7 @@ export {
|
|
|
10582
10632
|
StnDateRangeField,
|
|
10583
10633
|
StnDateRangePicker,
|
|
10584
10634
|
StnDateRangePickerField,
|
|
10635
|
+
StnDivider,
|
|
10585
10636
|
StnDrawer2 as StnDrawer,
|
|
10586
10637
|
StnDrawerBody,
|
|
10587
10638
|
StnDrawerFooter,
|