@kjun-ui/react 0.4.2 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +368 -356
- package/dist/index.js +368 -356
- package/dist/styles.css +2057 -2133
- package/dist/types/packages/react/src/actions.d.cts +13 -13
- package/dist/types/packages/react/src/actions.d.ts +13 -13
- package/dist/types/packages/react/src/app-navigation.d.cts +6 -6
- package/dist/types/packages/react/src/app-navigation.d.ts +6 -6
- package/dist/types/packages/react/src/button.d.cts +4 -4
- package/dist/types/packages/react/src/button.d.ts +4 -4
- package/dist/types/packages/react/src/card.d.cts +2 -2
- package/dist/types/packages/react/src/card.d.ts +2 -2
- package/dist/types/packages/react/src/chip.d.cts +2 -2
- package/dist/types/packages/react/src/chip.d.ts +2 -2
- package/dist/types/packages/react/src/combobox.d.cts +2 -2
- package/dist/types/packages/react/src/combobox.d.ts +2 -2
- package/dist/types/packages/react/src/controls.d.cts +14 -14
- package/dist/types/packages/react/src/controls.d.ts +14 -14
- package/dist/types/packages/react/src/data-state.d.cts +6 -6
- package/dist/types/packages/react/src/data-state.d.ts +6 -6
- package/dist/types/packages/react/src/date-picker.d.cts +2 -2
- package/dist/types/packages/react/src/date-picker.d.ts +2 -2
- package/dist/types/packages/react/src/display.d.cts +15 -15
- package/dist/types/packages/react/src/display.d.ts +15 -15
- package/dist/types/packages/react/src/drawer.d.cts +2 -2
- package/dist/types/packages/react/src/drawer.d.ts +2 -2
- package/dist/types/packages/react/src/dropdown.d.cts +12 -12
- package/dist/types/packages/react/src/dropdown.d.ts +12 -12
- package/dist/types/packages/react/src/financial-display.d.cts +12 -12
- package/dist/types/packages/react/src/financial-display.d.ts +12 -12
- package/dist/types/packages/react/src/financial.d.cts +4 -4
- package/dist/types/packages/react/src/financial.d.ts +4 -4
- package/dist/types/packages/react/src/index.d.cts +22 -22
- package/dist/types/packages/react/src/index.d.ts +22 -22
- package/dist/types/packages/react/src/input.d.cts +4 -4
- package/dist/types/packages/react/src/input.d.ts +4 -4
- package/dist/types/packages/react/src/kpi.d.cts +4 -4
- package/dist/types/packages/react/src/kpi.d.ts +4 -4
- package/dist/types/packages/react/src/layers.d.cts +3 -3
- package/dist/types/packages/react/src/layers.d.ts +3 -3
- package/dist/types/packages/react/src/list.d.cts +4 -4
- package/dist/types/packages/react/src/list.d.ts +4 -4
- package/dist/types/packages/react/src/market-cards.d.cts +2 -2
- package/dist/types/packages/react/src/market-cards.d.ts +2 -2
- package/dist/types/packages/react/src/market-list.d.cts +2 -2
- package/dist/types/packages/react/src/market-list.d.ts +2 -2
- package/dist/types/packages/react/src/market-model.d.cts +4 -4
- package/dist/types/packages/react/src/market-model.d.ts +4 -4
- package/dist/types/packages/react/src/market-panel.d.cts +1 -1
- package/dist/types/packages/react/src/market-panel.d.ts +1 -1
- package/dist/types/packages/react/src/market-skeleton.d.cts +2 -2
- package/dist/types/packages/react/src/market-skeleton.d.ts +2 -2
- package/dist/types/packages/react/src/market-table.d.cts +2 -2
- package/dist/types/packages/react/src/market-table.d.ts +2 -2
- package/dist/types/packages/react/src/market.d.cts +5 -5
- package/dist/types/packages/react/src/market.d.ts +5 -5
- package/dist/types/packages/react/src/media.d.cts +4 -4
- package/dist/types/packages/react/src/media.d.ts +4 -4
- package/dist/types/packages/react/src/modal.d.cts +4 -4
- package/dist/types/packages/react/src/modal.d.ts +4 -4
- package/dist/types/packages/react/src/navigation.d.cts +12 -12
- package/dist/types/packages/react/src/navigation.d.ts +12 -12
- package/dist/types/packages/react/src/number-display.d.cts +8 -8
- package/dist/types/packages/react/src/number-display.d.ts +8 -8
- package/dist/types/packages/react/src/popover.d.cts +4 -4
- package/dist/types/packages/react/src/popover.d.ts +4 -4
- package/dist/types/packages/react/src/quantity-stepper.d.cts +2 -2
- package/dist/types/packages/react/src/quantity-stepper.d.ts +2 -2
- package/dist/types/packages/react/src/range-input.d.cts +4 -4
- package/dist/types/packages/react/src/range-input.d.ts +4 -4
- package/dist/types/packages/react/src/search-input.d.cts +2 -2
- package/dist/types/packages/react/src/search-input.d.ts +2 -2
- package/dist/types/packages/react/src/select-control.d.cts +2 -2
- package/dist/types/packages/react/src/select-control.d.ts +2 -2
- package/dist/types/packages/react/src/select.d.cts +8 -8
- package/dist/types/packages/react/src/select.d.ts +8 -8
- package/dist/types/packages/react/src/skeletons.d.cts +8 -8
- package/dist/types/packages/react/src/skeletons.d.ts +8 -8
- package/dist/types/packages/react/src/table-check.d.cts +1 -1
- package/dist/types/packages/react/src/table-check.d.ts +1 -1
- package/dist/types/packages/react/src/table-model.d.cts +2 -2
- package/dist/types/packages/react/src/table-model.d.ts +2 -2
- package/dist/types/packages/react/src/table-view.d.cts +2 -2
- package/dist/types/packages/react/src/table-view.d.ts +2 -2
- package/dist/types/packages/react/src/table.d.cts +2 -2
- package/dist/types/packages/react/src/table.d.ts +2 -2
- package/dist/types/packages/react/src/time-picker.d.cts +2 -2
- package/dist/types/packages/react/src/time-picker.d.ts +2 -2
- package/dist/types/packages/react/src/typography.d.cts +1 -19
- package/dist/types/packages/react/src/typography.d.ts +1 -19
- package/dist/types/shared/package-runtime/table-model.d.cts +15 -0
- package/dist/types/shared/package-runtime/table-model.d.ts +15 -0
- package/dist/types/shared/package-runtime/table.d.cts +1 -1
- package/dist/types/shared/package-runtime/table.d.ts +1 -1
- package/dist/types/shared/package-runtime/typography.d.cts +19 -0
- package/dist/types/shared/package-runtime/typography.d.ts +19 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -455,7 +455,7 @@ function KjunProvider({
|
|
|
455
455
|
] }) }) }) });
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
//
|
|
458
|
+
// shared/package-runtime/typography.ts
|
|
459
459
|
import { tokens as tokens2 } from "@kjun-ui/tokens";
|
|
460
460
|
function typeStyle(role2) {
|
|
461
461
|
const t = typeof role2 === "string" ? tokens2.typography[role2] : role2;
|
|
@@ -506,7 +506,7 @@ import {
|
|
|
506
506
|
useState as useState3
|
|
507
507
|
} from "react";
|
|
508
508
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
509
|
-
function
|
|
509
|
+
function KjunIcon({
|
|
510
510
|
name,
|
|
511
511
|
size = "1em",
|
|
512
512
|
spin = false,
|
|
@@ -552,8 +552,8 @@ function useMinimumLoading(loading) {
|
|
|
552
552
|
}, [loading]);
|
|
553
553
|
return loading || active;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
function
|
|
555
|
+
var KjunButton = forwardRef(
|
|
556
|
+
function KjunButton2(props, ref) {
|
|
557
557
|
var _a, _b;
|
|
558
558
|
const {
|
|
559
559
|
variant = "primary",
|
|
@@ -626,7 +626,7 @@ var DsButton = forwardRef(
|
|
|
626
626
|
},
|
|
627
627
|
children: [
|
|
628
628
|
before && /* @__PURE__ */ jsx4(
|
|
629
|
-
|
|
629
|
+
KjunIcon,
|
|
630
630
|
{
|
|
631
631
|
name: before,
|
|
632
632
|
filled: !busy && prefixIconFilled,
|
|
@@ -636,7 +636,7 @@ var DsButton = forwardRef(
|
|
|
636
636
|
),
|
|
637
637
|
/* @__PURE__ */ jsx4("span", { className: "kjun-button-label", style: { opacity: overlayLoading ? 0 : 1 }, children }),
|
|
638
638
|
suffixIcon && /* @__PURE__ */ jsx4(
|
|
639
|
-
|
|
639
|
+
KjunIcon,
|
|
640
640
|
{
|
|
641
641
|
name: busy && !prefixIcon ? "loader-2" : suffixIcon,
|
|
642
642
|
filled: !busy && suffixIconFilled,
|
|
@@ -645,7 +645,7 @@ var DsButton = forwardRef(
|
|
|
645
645
|
size: iconSize
|
|
646
646
|
}
|
|
647
647
|
),
|
|
648
|
-
overlayLoading && /* @__PURE__ */ jsx4("span", { className: "kjun-button-loader", "aria-hidden": "true", children: /* @__PURE__ */ jsx4(
|
|
648
|
+
overlayLoading && /* @__PURE__ */ jsx4("span", { className: "kjun-button-loader", "aria-hidden": "true", children: /* @__PURE__ */ jsx4(KjunIcon, { name: "loader-2", spin: true, size: iconSize }) })
|
|
649
649
|
]
|
|
650
650
|
}
|
|
651
651
|
);
|
|
@@ -685,7 +685,7 @@ function useCompositionGuard() {
|
|
|
685
685
|
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
686
686
|
var FieldContext = createContext6(null);
|
|
687
687
|
var useKjunField = () => useContext6(FieldContext);
|
|
688
|
-
function
|
|
688
|
+
function KjunFormGroup({
|
|
689
689
|
label,
|
|
690
690
|
id,
|
|
691
691
|
required = false,
|
|
@@ -708,15 +708,15 @@ function DsFormGroup({
|
|
|
708
708
|
] }),
|
|
709
709
|
children,
|
|
710
710
|
error ? /* @__PURE__ */ jsxs3("p", { id: describedBy, className: "kjun-form-error", role: "alert", children: [
|
|
711
|
-
/* @__PURE__ */ jsx5(
|
|
711
|
+
/* @__PURE__ */ jsx5(KjunIcon, { name: "alert-circle", size: tokens4.extensions.form.messageIconSize }),
|
|
712
712
|
error
|
|
713
713
|
] }) : hint ? /* @__PURE__ */ jsx5("p", { id: describedBy, className: "kjun-form-hint", children: hint }) : null
|
|
714
714
|
] })
|
|
715
715
|
}
|
|
716
716
|
);
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
718
|
+
var KjunInput = forwardRef2(
|
|
719
|
+
function KjunInput2({
|
|
720
720
|
size = "md",
|
|
721
721
|
value,
|
|
722
722
|
error = false,
|
|
@@ -743,7 +743,7 @@ var DsInput = forwardRef2(
|
|
|
743
743
|
...props
|
|
744
744
|
}, ref) {
|
|
745
745
|
const field = useContext6(FieldContext);
|
|
746
|
-
const uid = useId2().replace(/:/g, "");
|
|
746
|
+
const uid = "kjun-" + useId2().replace(/:/g, "");
|
|
747
747
|
const input = useRef4(null);
|
|
748
748
|
const composition = useCompositionGuard();
|
|
749
749
|
const before = useRef4(null);
|
|
@@ -781,7 +781,7 @@ var DsInput = forwardRef2(
|
|
|
781
781
|
ref: before,
|
|
782
782
|
className: "kjun-input-affix",
|
|
783
783
|
style: { left: spec.padding, pointerEvents: "none" },
|
|
784
|
-
children: prefix || /* @__PURE__ */ jsx5(
|
|
784
|
+
children: prefix || /* @__PURE__ */ jsx5(KjunIcon, { name: prefixIcon, size: spec.iconSize })
|
|
785
785
|
}
|
|
786
786
|
),
|
|
787
787
|
/* @__PURE__ */ jsx5(
|
|
@@ -806,7 +806,7 @@ var DsInput = forwardRef2(
|
|
|
806
806
|
borderRadius: spec.radius,
|
|
807
807
|
paddingLeft: widths.before ? spec.padding + widths.before + spec.affixGap - tokens4.border.controlWidth : spec.padding - tokens4.border.controlWidth,
|
|
808
808
|
paddingRight: widths.after ? spec.padding + widths.after + spec.affixGap - tokens4.border.controlWidth : spec.padding - tokens4.border.controlWidth,
|
|
809
|
-
"--placeholder-size": spec.placeholderSize / 16 + "rem",
|
|
809
|
+
"--_kjun-placeholder-size": spec.placeholderSize / 16 + "rem",
|
|
810
810
|
...style
|
|
811
811
|
},
|
|
812
812
|
onChange: (e) => {
|
|
@@ -836,7 +836,7 @@ var DsInput = forwardRef2(
|
|
|
836
836
|
style: { right: spec.padding },
|
|
837
837
|
children: [
|
|
838
838
|
clearable && !!value && /* @__PURE__ */ jsx5(
|
|
839
|
-
|
|
839
|
+
KjunButton,
|
|
840
840
|
{
|
|
841
841
|
variant: "ghost",
|
|
842
842
|
size: "sm",
|
|
@@ -862,10 +862,10 @@ var DsInput = forwardRef2(
|
|
|
862
862
|
onClear == null ? void 0 : onClear();
|
|
863
863
|
el.focus();
|
|
864
864
|
},
|
|
865
|
-
children: /* @__PURE__ */ jsx5(
|
|
865
|
+
children: /* @__PURE__ */ jsx5(KjunIcon, { name: "x", size: spec.iconSize })
|
|
866
866
|
}
|
|
867
867
|
),
|
|
868
|
-
suffix || suffixIcon && /* @__PURE__ */ jsx5(
|
|
868
|
+
suffix || suffixIcon && /* @__PURE__ */ jsx5(KjunIcon, { name: suffixIcon, size: spec.iconSize })
|
|
869
869
|
]
|
|
870
870
|
}
|
|
871
871
|
)
|
|
@@ -990,14 +990,14 @@ function FeedbackLayerOutlet() {
|
|
|
990
990
|
const layers = useLayerState(), scope = useContext7(LayerScope);
|
|
991
991
|
const entry = scope ? layers.entries.get(scope) : void 0;
|
|
992
992
|
const active = !!entry && layers.isActive(entry.id), order = (_a = entry == null ? void 0 : entry.order) != null ? _a : 0;
|
|
993
|
-
const host = useContext7(FeedbackOverlayContext), id = useId3(), register = host == null ? void 0 : host.register;
|
|
993
|
+
const host = useContext7(FeedbackOverlayContext), id = "kjun-" + useId3(), register = host == null ? void 0 : host.register;
|
|
994
994
|
useLayoutEffect5(() => active ? register == null ? void 0 : register(id, order) : void 0, [register, id, active, order]);
|
|
995
995
|
return (host == null ? void 0 : host.top) === id ? host.render() : null;
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
// packages/react/src/modal.tsx
|
|
999
999
|
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1000
|
-
function
|
|
1000
|
+
function KjunFormActions({
|
|
1001
1001
|
size = "lg",
|
|
1002
1002
|
cancelText = "\uCDE8\uC18C",
|
|
1003
1003
|
confirmText = "\uC800\uC7A5",
|
|
@@ -1015,7 +1015,7 @@ function DsFormActions({
|
|
|
1015
1015
|
useLayoutEffect6(() => observeFormActions(ref.current), []);
|
|
1016
1016
|
return /* @__PURE__ */ jsxs4("div", { className: "kjun-form-actions", ref, children: [
|
|
1017
1017
|
showCancel && /* @__PURE__ */ jsx6(
|
|
1018
|
-
|
|
1018
|
+
KjunButton,
|
|
1019
1019
|
{
|
|
1020
1020
|
size,
|
|
1021
1021
|
variant: cancelVariant,
|
|
@@ -1025,7 +1025,7 @@ function DsFormActions({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
),
|
|
1027
1027
|
showConfirm && /* @__PURE__ */ jsx6(
|
|
1028
|
-
|
|
1028
|
+
KjunButton,
|
|
1029
1029
|
{
|
|
1030
1030
|
size,
|
|
1031
1031
|
variant,
|
|
@@ -1037,7 +1037,7 @@ function DsFormActions({
|
|
|
1037
1037
|
)
|
|
1038
1038
|
] });
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function KjunModal({
|
|
1041
1041
|
open,
|
|
1042
1042
|
onOpenChange,
|
|
1043
1043
|
onClose,
|
|
@@ -1067,7 +1067,7 @@ function DsModal({
|
|
|
1067
1067
|
}) {
|
|
1068
1068
|
const motion = usePresence(open, useReducedMotion());
|
|
1069
1069
|
const portalContainer = useKjunPortalContainer();
|
|
1070
|
-
const id = useId4();
|
|
1070
|
+
const id = "kjun-" + useId4();
|
|
1071
1071
|
const explicitLabel = ariaLabel == null ? void 0 : ariaLabel.trim();
|
|
1072
1072
|
const heading = header || title;
|
|
1073
1073
|
const labelledByHeading = showHeader && !explicitLabel && (typeof heading === "string" ? !!heading.trim() : !!heading);
|
|
@@ -1128,7 +1128,7 @@ function DsModal({
|
|
|
1128
1128
|
className: "kjun-modal-close",
|
|
1129
1129
|
"aria-label": "\uB2EB\uAE30",
|
|
1130
1130
|
onClick: close,
|
|
1131
|
-
children: /* @__PURE__ */ jsx6(
|
|
1131
|
+
children: /* @__PURE__ */ jsx6(KjunIcon, { name: "x", size: tokens6.modal.closeIconSize })
|
|
1132
1132
|
}
|
|
1133
1133
|
)
|
|
1134
1134
|
] }),
|
|
@@ -1141,7 +1141,7 @@ function DsModal({
|
|
|
1141
1141
|
}
|
|
1142
1142
|
),
|
|
1143
1143
|
(showFooter || footer) && /* @__PURE__ */ jsx6("div", { className: "kjun-modal-footer", children: footer || /* @__PURE__ */ jsx6(
|
|
1144
|
-
|
|
1144
|
+
KjunFormActions,
|
|
1145
1145
|
{
|
|
1146
1146
|
size: footerSize,
|
|
1147
1147
|
cancelVariant: "secondary",
|
|
@@ -1188,7 +1188,7 @@ import {
|
|
|
1188
1188
|
|
|
1189
1189
|
// packages/react/src/card.tsx
|
|
1190
1190
|
import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1191
|
-
function
|
|
1191
|
+
function KjunCard({
|
|
1192
1192
|
title,
|
|
1193
1193
|
subtitle,
|
|
1194
1194
|
header,
|
|
@@ -1246,7 +1246,7 @@ function DsCard({
|
|
|
1246
1246
|
// packages/react/src/display.tsx
|
|
1247
1247
|
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1248
1248
|
var role = (name) => `var(--_kjun-color-${name})`;
|
|
1249
|
-
function
|
|
1249
|
+
function KjunBadge({
|
|
1250
1250
|
variant = "default",
|
|
1251
1251
|
size = "sm",
|
|
1252
1252
|
dot = false,
|
|
@@ -1280,20 +1280,20 @@ function DsBadge({
|
|
|
1280
1280
|
}
|
|
1281
1281
|
);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function KjunEmpty({
|
|
1284
1284
|
text = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
1285
1285
|
description,
|
|
1286
1286
|
icon,
|
|
1287
1287
|
children
|
|
1288
1288
|
}) {
|
|
1289
1289
|
return /* @__PURE__ */ jsxs6("div", { className: "kjun-empty", children: [
|
|
1290
|
-
icon && /* @__PURE__ */ jsx8(
|
|
1290
|
+
icon && /* @__PURE__ */ jsx8(KjunIcon, { name: icon, size: tokens7.extensions.empty.iconSize }),
|
|
1291
1291
|
/* @__PURE__ */ jsx8("p", { children: text }),
|
|
1292
1292
|
description && /* @__PURE__ */ jsx8("small", { children: description }),
|
|
1293
1293
|
children && /* @__PURE__ */ jsx8("div", { children })
|
|
1294
1294
|
] });
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function KjunSpinner({ size = "md", text }) {
|
|
1297
1297
|
const stroke = tokens7.extensions.spinner.strokeWidths[size] * 24 / tokens7.extensions.spinner.sizes[size];
|
|
1298
1298
|
return /* @__PURE__ */ jsxs6("span", { role: "status", "aria-label": text || "\uB85C\uB529 \uC911", className: "kjun-spinner", children: [
|
|
1299
1299
|
/* @__PURE__ */ jsxs6(
|
|
@@ -1331,7 +1331,7 @@ function DsSpinner({ size = "md", text }) {
|
|
|
1331
1331
|
text && /* @__PURE__ */ jsx8("span", { children: text })
|
|
1332
1332
|
] });
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function KjunAlert({
|
|
1335
1335
|
type = "info",
|
|
1336
1336
|
variant,
|
|
1337
1337
|
size = "md",
|
|
@@ -1356,7 +1356,7 @@ function DsAlert({
|
|
|
1356
1356
|
},
|
|
1357
1357
|
children: [
|
|
1358
1358
|
/* @__PURE__ */ jsx8("span", { className: "kjun-alert-icon", style: { color: role(tone === "primary" ? "brand" : tone + "-accent") }, children: /* @__PURE__ */ jsx8(
|
|
1359
|
-
|
|
1359
|
+
KjunIcon,
|
|
1360
1360
|
{
|
|
1361
1361
|
name: {
|
|
1362
1362
|
info: "info-circle",
|
|
@@ -1383,14 +1383,14 @@ function DsAlert({
|
|
|
1383
1383
|
setVisible(false);
|
|
1384
1384
|
onClose == null ? void 0 : onClose();
|
|
1385
1385
|
},
|
|
1386
|
-
children: /* @__PURE__ */ jsx8(
|
|
1386
|
+
children: /* @__PURE__ */ jsx8(KjunIcon, { name: "x", size: tokens7.extensions.alert.closeIconSize })
|
|
1387
1387
|
}
|
|
1388
1388
|
)
|
|
1389
1389
|
]
|
|
1390
1390
|
}
|
|
1391
1391
|
);
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function KjunProgress({
|
|
1394
1394
|
value = 0,
|
|
1395
1395
|
max = 100,
|
|
1396
1396
|
size = "md",
|
|
@@ -1432,7 +1432,7 @@ function DsProgress({
|
|
|
1432
1432
|
subLabel && /* @__PURE__ */ jsx8("div", { className: "kjun-progress-sub", children: subLabel })
|
|
1433
1433
|
] });
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function KjunSkeleton({
|
|
1436
1436
|
type = "text",
|
|
1437
1437
|
rows = 3,
|
|
1438
1438
|
columns = 4,
|
|
@@ -1746,7 +1746,7 @@ function ToastView({
|
|
|
1746
1746
|
{
|
|
1747
1747
|
className: "kjun-toast-icon",
|
|
1748
1748
|
style: { color: `var(--_kjun-color-${tone}-accent)` },
|
|
1749
|
-
children: /* @__PURE__ */ jsx9(
|
|
1749
|
+
children: /* @__PURE__ */ jsx9(KjunIcon, { name: icon })
|
|
1750
1750
|
}
|
|
1751
1751
|
),
|
|
1752
1752
|
/* @__PURE__ */ jsxs7("div", { className: "kjun-toast-content", children: [
|
|
@@ -1776,7 +1776,7 @@ function ToastView({
|
|
|
1776
1776
|
className: "kjun-toast-close",
|
|
1777
1777
|
"aria-label": "\uC54C\uB9BC \uB2EB\uAE30",
|
|
1778
1778
|
onClick: () => dismiss(),
|
|
1779
|
-
children: /* @__PURE__ */ jsx9(
|
|
1779
|
+
children: /* @__PURE__ */ jsx9(KjunIcon, { name: "x" })
|
|
1780
1780
|
}
|
|
1781
1781
|
),
|
|
1782
1782
|
toast.showProgress !== false && !!toast.duration && /* @__PURE__ */ jsx9(
|
|
@@ -1785,7 +1785,7 @@ function ToastView({
|
|
|
1785
1785
|
"aria-hidden": "true",
|
|
1786
1786
|
className: "kjun-toast-progress",
|
|
1787
1787
|
style: {
|
|
1788
|
-
"--toast-start": `${toast.remaining / toast.duration * 100}%`,
|
|
1788
|
+
"--_kjun-toast-start": `${toast.remaining / toast.duration * 100}%`,
|
|
1789
1789
|
animationDuration: `${toast.remaining}ms`,
|
|
1790
1790
|
animationPlayState: toast.paused ? "paused" : "running",
|
|
1791
1791
|
background: `var(--_kjun-color-${tone})`
|
|
@@ -1880,7 +1880,7 @@ function FeedbackDialog({
|
|
|
1880
1880
|
}) {
|
|
1881
1881
|
const { options, value, error, busy, edit, cancel, submit } = useFeedbackDialog(controller, request);
|
|
1882
1882
|
return /* @__PURE__ */ jsxs8(
|
|
1883
|
-
|
|
1883
|
+
KjunModal,
|
|
1884
1884
|
{
|
|
1885
1885
|
open,
|
|
1886
1886
|
onOpenChange: (open2) => {
|
|
@@ -1899,7 +1899,7 @@ function FeedbackDialog({
|
|
|
1899
1899
|
children: [
|
|
1900
1900
|
options.message && /* @__PURE__ */ jsx11("p", { children: options.message }),
|
|
1901
1901
|
request.kind === "prompt" && /* @__PURE__ */ jsx11(
|
|
1902
|
-
|
|
1902
|
+
KjunInput,
|
|
1903
1903
|
{
|
|
1904
1904
|
autoFocus: true,
|
|
1905
1905
|
value,
|
|
@@ -2061,7 +2061,7 @@ function useSelectionIndicator(tabs = false) {
|
|
|
2061
2061
|
|
|
2062
2062
|
// packages/react/src/controls.tsx
|
|
2063
2063
|
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2064
|
-
function
|
|
2064
|
+
function KjunCheckbox({
|
|
2065
2065
|
value,
|
|
2066
2066
|
val,
|
|
2067
2067
|
label,
|
|
@@ -2079,7 +2079,7 @@ function DsCheckbox({
|
|
|
2079
2079
|
isSelected: checked,
|
|
2080
2080
|
isDisabled: disabled,
|
|
2081
2081
|
"aria-label": ariaLabel,
|
|
2082
|
-
className: "kjun-choice
|
|
2082
|
+
className: "kjun-choice" + (disabled ? " kjun-choice--disabled" : ""),
|
|
2083
2083
|
onChange: (next) => {
|
|
2084
2084
|
const result = Array.isArray(value) ? next ? [...value, val] : value.filter((v) => v !== val) : next;
|
|
2085
2085
|
onValueChange == null ? void 0 : onValueChange(result);
|
|
@@ -2089,16 +2089,16 @@ function DsCheckbox({
|
|
|
2089
2089
|
/* @__PURE__ */ jsx12(
|
|
2090
2090
|
"span",
|
|
2091
2091
|
{
|
|
2092
|
-
className: `
|
|
2093
|
-
children: checked && /* @__PURE__ */ jsx12(
|
|
2092
|
+
className: `kjun-choice-control kjun-checkbox kjun-checkbox--${size}${checked ? " kjun-checkbox--checked" : ""}`,
|
|
2093
|
+
children: checked && /* @__PURE__ */ jsx12(KjunIcon, { name: "check", size: tokens12.extensions.checkbox.iconSizes[size] })
|
|
2094
2094
|
}
|
|
2095
2095
|
),
|
|
2096
|
-
(children || label) && /* @__PURE__ */ jsx12("span", { className: "
|
|
2096
|
+
(children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
|
|
2097
2097
|
]
|
|
2098
2098
|
}
|
|
2099
2099
|
);
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function KjunSwitch({
|
|
2102
2102
|
value,
|
|
2103
2103
|
label,
|
|
2104
2104
|
ariaLabel,
|
|
@@ -2114,7 +2114,7 @@ function DsSwitch({
|
|
|
2114
2114
|
isSelected: value,
|
|
2115
2115
|
isDisabled: disabled,
|
|
2116
2116
|
"aria-label": ariaLabel || label,
|
|
2117
|
-
className: "kjun-choice
|
|
2117
|
+
className: "kjun-choice" + (disabled ? " kjun-choice--disabled" : ""),
|
|
2118
2118
|
onChange: (next) => {
|
|
2119
2119
|
onValueChange == null ? void 0 : onValueChange(next);
|
|
2120
2120
|
onChange == null ? void 0 : onChange(next);
|
|
@@ -2123,17 +2123,17 @@ function DsSwitch({
|
|
|
2123
2123
|
/* @__PURE__ */ jsx12(
|
|
2124
2124
|
"span",
|
|
2125
2125
|
{
|
|
2126
|
-
className: `
|
|
2127
|
-
children: /* @__PURE__ */ jsx12("span", { className: "
|
|
2126
|
+
className: `kjun-switch kjun-switch--${size}${value ? " kjun-switch--on" : ""}`,
|
|
2127
|
+
children: /* @__PURE__ */ jsx12("span", { className: "kjun-switch-thumb" })
|
|
2128
2128
|
}
|
|
2129
2129
|
),
|
|
2130
|
-
(children || label) && /* @__PURE__ */ jsx12("span", { className: "
|
|
2130
|
+
(children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
|
|
2131
2131
|
]
|
|
2132
2132
|
}
|
|
2133
2133
|
);
|
|
2134
2134
|
}
|
|
2135
2135
|
var RadioContext = createContext9(null);
|
|
2136
|
-
function
|
|
2136
|
+
function KjunRadio({
|
|
2137
2137
|
value,
|
|
2138
2138
|
val,
|
|
2139
2139
|
label,
|
|
@@ -2145,7 +2145,7 @@ function DsRadio({
|
|
|
2145
2145
|
onChange
|
|
2146
2146
|
}) {
|
|
2147
2147
|
const group = useContext9(RadioContext), selected = (group ? group.value : value) === val;
|
|
2148
|
-
return /* @__PURE__ */ jsxs9("label", { className: "kjun-choice
|
|
2148
|
+
return /* @__PURE__ */ jsxs9("label", { className: "kjun-choice" + (disabled ? " kjun-choice--disabled" : ""), children: [
|
|
2149
2149
|
/* @__PURE__ */ jsx12(
|
|
2150
2150
|
"input",
|
|
2151
2151
|
{
|
|
@@ -2167,14 +2167,14 @@ function DsRadio({
|
|
|
2167
2167
|
/* @__PURE__ */ jsx12(
|
|
2168
2168
|
"span",
|
|
2169
2169
|
{
|
|
2170
|
-
className: "
|
|
2171
|
-
children: selected && /* @__PURE__ */ jsx12("span", { className: "
|
|
2170
|
+
className: "kjun-choice-control kjun-radio" + (selected ? " kjun-radio--checked" : ""),
|
|
2171
|
+
children: selected && /* @__PURE__ */ jsx12("span", { className: "kjun-radio-dot" })
|
|
2172
2172
|
}
|
|
2173
2173
|
),
|
|
2174
|
-
(children || label) && /* @__PURE__ */ jsx12("span", { className: "
|
|
2174
|
+
(children || label) && /* @__PURE__ */ jsx12("span", { className: "kjun-choice-label", children: children || label })
|
|
2175
2175
|
] });
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function KjunRadioGroup({
|
|
2178
2178
|
value,
|
|
2179
2179
|
options = [],
|
|
2180
2180
|
direction = "horizontal",
|
|
@@ -2183,7 +2183,7 @@ function DsRadioGroup({
|
|
|
2183
2183
|
onValueChange,
|
|
2184
2184
|
onChange
|
|
2185
2185
|
}) {
|
|
2186
|
-
const name = useId5();
|
|
2186
|
+
const name = "kjun-" + useId5();
|
|
2187
2187
|
return /* @__PURE__ */ jsx12(
|
|
2188
2188
|
RadioContext.Provider,
|
|
2189
2189
|
{
|
|
@@ -2207,7 +2207,7 @@ function DsRadioGroup({
|
|
|
2207
2207
|
gap: direction === "vertical" ? tokens12.dimension.value8 : tokens12.dimension.value16
|
|
2208
2208
|
},
|
|
2209
2209
|
children: children || options.map((option) => /* @__PURE__ */ jsx12(
|
|
2210
|
-
|
|
2210
|
+
KjunRadio,
|
|
2211
2211
|
{
|
|
2212
2212
|
val: option.value,
|
|
2213
2213
|
label: option.label,
|
|
@@ -2220,8 +2220,8 @@ function DsRadioGroup({
|
|
|
2220
2220
|
}
|
|
2221
2221
|
);
|
|
2222
2222
|
}
|
|
2223
|
-
var
|
|
2224
|
-
function
|
|
2223
|
+
var KjunTextarea = forwardRef3(
|
|
2224
|
+
function KjunTextarea2({
|
|
2225
2225
|
value,
|
|
2226
2226
|
size = "md",
|
|
2227
2227
|
error = false,
|
|
@@ -2283,7 +2283,7 @@ function groupKeydown(event) {
|
|
|
2283
2283
|
const next = event.key === "Home" ? 0 : event.key === "End" ? buttons.length - 1 : (current + (event.key === "ArrowRight" ? direction : -direction) + buttons.length) % buttons.length;
|
|
2284
2284
|
(_a = buttons[next]) == null ? void 0 : _a.focus();
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function KjunButtonGroup({
|
|
2287
2287
|
value,
|
|
2288
2288
|
options,
|
|
2289
2289
|
size = "md",
|
|
@@ -2336,7 +2336,7 @@ function DsButtonGroup({
|
|
|
2336
2336
|
onChange == null ? void 0 : onChange(option.value);
|
|
2337
2337
|
},
|
|
2338
2338
|
children: [
|
|
2339
|
-
option.icon && /* @__PURE__ */ jsx12(
|
|
2339
|
+
option.icon && /* @__PURE__ */ jsx12(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
|
|
2340
2340
|
/* @__PURE__ */ jsxs9("span", { className: "kjun-button-group-label", children: [
|
|
2341
2341
|
/* @__PURE__ */ jsx12("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
|
|
2342
2342
|
/* @__PURE__ */ jsx12("span", { children: option.label })
|
|
@@ -2349,7 +2349,7 @@ function DsButtonGroup({
|
|
|
2349
2349
|
}
|
|
2350
2350
|
);
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function KjunFilterGroup({
|
|
2353
2353
|
value,
|
|
2354
2354
|
options,
|
|
2355
2355
|
size = "sm",
|
|
@@ -2392,7 +2392,7 @@ function DsFilterGroup({
|
|
|
2392
2392
|
},
|
|
2393
2393
|
children: [
|
|
2394
2394
|
option.dot && /* @__PURE__ */ jsx12("i", { style: { background: option.dot } }),
|
|
2395
|
-
option.icon && /* @__PURE__ */ jsx12(
|
|
2395
|
+
option.icon && /* @__PURE__ */ jsx12(KjunIcon, { name: option.icon, size: tokens12.extensions.selection.iconSize }),
|
|
2396
2396
|
/* @__PURE__ */ jsxs9("span", { className: "kjun-filter-label", children: [
|
|
2397
2397
|
/* @__PURE__ */ jsx12("span", { "aria-hidden": "true", style: typeStyle(tokens12.button.typography[size]), children: option.label }),
|
|
2398
2398
|
/* @__PURE__ */ jsx12("span", { children: option.label })
|
|
@@ -2480,7 +2480,7 @@ import { tokens as tokens14 } from "@kjun-ui/tokens";
|
|
|
2480
2480
|
import { useCallback as useCallback2, useId as useId6, useRef as useRef14, useState as useState10 } from "react";
|
|
2481
2481
|
import { Dialog as Dialog2, Focusable, OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
2482
2482
|
import { Fragment as Fragment3, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2483
|
-
function
|
|
2483
|
+
function KjunPopover({
|
|
2484
2484
|
noPadding = false,
|
|
2485
2485
|
open: controlled,
|
|
2486
2486
|
onOpenChange,
|
|
@@ -2494,7 +2494,7 @@ function DsPopover({
|
|
|
2494
2494
|
trigger,
|
|
2495
2495
|
children
|
|
2496
2496
|
}) {
|
|
2497
|
-
const [internal, setInternal] = useState10(false), open = controlled != null ? controlled : internal, ref = useRef14(null), id = useId6();
|
|
2497
|
+
const [internal, setInternal] = useState10(false), open = controlled != null ? controlled : internal, ref = useRef14(null), id = "kjun-" + useId6();
|
|
2498
2498
|
const expanded = usePopupExpanded(open, ref);
|
|
2499
2499
|
const focusOnMount = useRef14(focusOnOpen);
|
|
2500
2500
|
focusOnMount.current = focusOnOpen;
|
|
@@ -2555,7 +2555,7 @@ function DsPopover({
|
|
|
2555
2555
|
)
|
|
2556
2556
|
] });
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2558
|
+
function KjunTooltip({
|
|
2559
2559
|
content = "",
|
|
2560
2560
|
placement = "top",
|
|
2561
2561
|
delay = 0,
|
|
@@ -2589,7 +2589,7 @@ import { cloneElement, createContext as createContext10, isValidElement as isVal
|
|
|
2589
2589
|
import { Menu, MenuItem, Separator } from "react-aria-components";
|
|
2590
2590
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2591
2591
|
var DropdownContext = createContext10(null);
|
|
2592
|
-
function
|
|
2592
|
+
function KjunDropdown({
|
|
2593
2593
|
disabled = false,
|
|
2594
2594
|
placement = "bottom-start",
|
|
2595
2595
|
menuId,
|
|
@@ -2600,7 +2600,7 @@ function DsDropdown({
|
|
|
2600
2600
|
onOpen,
|
|
2601
2601
|
onClose
|
|
2602
2602
|
}) {
|
|
2603
|
-
const [open, setOpen] = useState11(false), currentOpen = useRef15(false), ref = useRef15(null), id = useId7();
|
|
2603
|
+
const [open, setOpen] = useState11(false), currentOpen = useRef15(false), ref = useRef15(null), id = "kjun-" + useId7();
|
|
2604
2604
|
const menuFocusCleanup = useRef15(() => {
|
|
2605
2605
|
});
|
|
2606
2606
|
const bindMenu = useCallback3((menu) => {
|
|
@@ -2625,14 +2625,14 @@ function DsDropdown({
|
|
|
2625
2625
|
};
|
|
2626
2626
|
}, []);
|
|
2627
2627
|
let control = trigger;
|
|
2628
|
-
while (isValidElement2(control) && control.type ===
|
|
2628
|
+
while (isValidElement2(control) && control.type === KjunTooltip)
|
|
2629
2629
|
control = control.props.children;
|
|
2630
2630
|
const unavailable = disabled || isValidElement2(control) && !!(control.props.disabled || control.props.loading);
|
|
2631
2631
|
const controlId = triggerId || isValidElement2(control) && control.props.id || id;
|
|
2632
2632
|
const popupId = menuId || id + "-menu";
|
|
2633
2633
|
const bindTrigger = (node) => {
|
|
2634
2634
|
if (!isValidElement2(node)) return node;
|
|
2635
|
-
if (node.type ===
|
|
2635
|
+
if (node.type === KjunTooltip) {
|
|
2636
2636
|
const tooltip = node;
|
|
2637
2637
|
return cloneElement(tooltip, {}, bindTrigger(tooltip.props.children));
|
|
2638
2638
|
}
|
|
@@ -2697,7 +2697,7 @@ function DsDropdown({
|
|
|
2697
2697
|
)
|
|
2698
2698
|
] });
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function KjunDropdownItem({
|
|
2701
2701
|
id,
|
|
2702
2702
|
variant = "default",
|
|
2703
2703
|
icon,
|
|
@@ -2722,10 +2722,10 @@ function DsDropdownItem({
|
|
|
2722
2722
|
close == null ? void 0 : close();
|
|
2723
2723
|
},
|
|
2724
2724
|
children: [
|
|
2725
|
-
icon && /* @__PURE__ */ jsx15(
|
|
2725
|
+
icon && /* @__PURE__ */ jsx15(KjunIcon, { name: icon, className: "kjun-menu-icon", size: tokens15.extensions.menu.iconSize }),
|
|
2726
2726
|
/* @__PURE__ */ jsx15("span", { children }),
|
|
2727
2727
|
selected !== null && /* @__PURE__ */ jsx15(
|
|
2728
|
-
|
|
2728
|
+
KjunIcon,
|
|
2729
2729
|
{
|
|
2730
2730
|
name: "check",
|
|
2731
2731
|
className: "kjun-menu-check",
|
|
@@ -2737,10 +2737,10 @@ function DsDropdownItem({
|
|
|
2737
2737
|
}
|
|
2738
2738
|
);
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function KjunDropdownDivider() {
|
|
2741
2741
|
return /* @__PURE__ */ jsx15(Separator, { className: "kjun-menu-divider" });
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function KjunMenuButton({
|
|
2744
2744
|
label,
|
|
2745
2745
|
size = "md",
|
|
2746
2746
|
variant = "secondary",
|
|
@@ -2756,7 +2756,7 @@ function DsMenuButton({
|
|
|
2756
2756
|
}) {
|
|
2757
2757
|
const [open, setOpen] = useState11(false);
|
|
2758
2758
|
const button = /* @__PURE__ */ jsx15(
|
|
2759
|
-
|
|
2759
|
+
KjunButton,
|
|
2760
2760
|
{
|
|
2761
2761
|
className: "kjun-menu-button",
|
|
2762
2762
|
size,
|
|
@@ -2770,7 +2770,7 @@ function DsMenuButton({
|
|
|
2770
2770
|
}
|
|
2771
2771
|
);
|
|
2772
2772
|
return /* @__PURE__ */ jsx15(
|
|
2773
|
-
|
|
2773
|
+
KjunDropdown,
|
|
2774
2774
|
{
|
|
2775
2775
|
...props,
|
|
2776
2776
|
onOpen: () => {
|
|
@@ -2782,7 +2782,7 @@ function DsMenuButton({
|
|
|
2782
2782
|
onClose == null ? void 0 : onClose();
|
|
2783
2783
|
},
|
|
2784
2784
|
trigger: tooltip ? /* @__PURE__ */ jsx15(
|
|
2785
|
-
|
|
2785
|
+
KjunTooltip,
|
|
2786
2786
|
{
|
|
2787
2787
|
content: open ? "" : tooltip,
|
|
2788
2788
|
placement: tooltipPlacement,
|
|
@@ -2798,7 +2798,7 @@ function DsMenuButton({
|
|
|
2798
2798
|
import { tokens as tokens16 } from "@kjun-ui/tokens";
|
|
2799
2799
|
import { Dialog as Dialog3, Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
|
|
2800
2800
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2801
|
-
function
|
|
2801
|
+
function KjunDrawer({
|
|
2802
2802
|
open,
|
|
2803
2803
|
onOpenChange,
|
|
2804
2804
|
title,
|
|
@@ -2863,14 +2863,14 @@ function DsDrawer({
|
|
|
2863
2863
|
(title || header || closable) && /* @__PURE__ */ jsxs12("div", { className: "kjun-drawer-header", children: [
|
|
2864
2864
|
/* @__PURE__ */ jsx16("div", { children: header || /* @__PURE__ */ jsx16("h2", { children: title }) }),
|
|
2865
2865
|
closable && /* @__PURE__ */ jsx16(
|
|
2866
|
-
|
|
2866
|
+
KjunButton,
|
|
2867
2867
|
{
|
|
2868
2868
|
size: "sm",
|
|
2869
2869
|
variant: "ghost",
|
|
2870
2870
|
ariaLabel: "\uB2EB\uAE30",
|
|
2871
2871
|
onClick: close,
|
|
2872
2872
|
style: { borderRadius: tokens16.extensions.drawer.closeRadius, width: tokens16.extensions.drawer.closeSize, height: tokens16.extensions.drawer.closeSize, padding: 0 },
|
|
2873
|
-
children: /* @__PURE__ */ jsx16(
|
|
2873
|
+
children: /* @__PURE__ */ jsx16(KjunIcon, { name: "x", size: tokens16.extensions.drawer.closeIconSize })
|
|
2874
2874
|
}
|
|
2875
2875
|
)
|
|
2876
2876
|
] }),
|
|
@@ -3000,7 +3000,7 @@ import {
|
|
|
3000
3000
|
useState as useState13
|
|
3001
3001
|
} from "react";
|
|
3002
3002
|
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3003
|
-
function
|
|
3003
|
+
function KjunCombobox({
|
|
3004
3004
|
value,
|
|
3005
3005
|
options = [],
|
|
3006
3006
|
placeholder = "\uAC80\uC0C9 \uB610\uB294 \uC120\uD0DD",
|
|
@@ -3079,7 +3079,7 @@ function SearchField({
|
|
|
3079
3079
|
}) {
|
|
3080
3080
|
const composition = useCompositionGuard();
|
|
3081
3081
|
const clearing = useRef16(false);
|
|
3082
|
-
const ref = useRef16(null), [highlighted, setActive] = useState13(-1), id = useId8();
|
|
3082
|
+
const ref = useRef16(null), [highlighted, setActive] = useState13(-1), id = "kjun-" + useId8();
|
|
3083
3083
|
const focusGuard = usePopupFocusGuard(ref);
|
|
3084
3084
|
const active = !disabled && !loading && highlighted >= 0 && highlighted < options.length && !optionDisabled(options[highlighted]) ? highlighted : -1;
|
|
3085
3085
|
useEffect8(() => setActive(-1), [value, options.length]);
|
|
@@ -3106,7 +3106,7 @@ function SearchField({
|
|
|
3106
3106
|
};
|
|
3107
3107
|
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
3108
3108
|
/* @__PURE__ */ jsx17(
|
|
3109
|
-
|
|
3109
|
+
KjunInput,
|
|
3110
3110
|
{
|
|
3111
3111
|
error,
|
|
3112
3112
|
ref,
|
|
@@ -3198,7 +3198,7 @@ function SearchField({
|
|
|
3198
3198
|
role: "listbox",
|
|
3199
3199
|
"aria-label": ariaLabel || placeholder,
|
|
3200
3200
|
onMouseDown: (e) => e.preventDefault(),
|
|
3201
|
-
children: loading ? /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx17(
|
|
3201
|
+
children: loading ? /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx17(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }) : failed ? /* @__PURE__ */ jsx17("div", { className: "kjun-select-empty", role: "alert", children: errorText }) : options.length ? options.map((o, i) => /* @__PURE__ */ jsx17(
|
|
3202
3202
|
"div",
|
|
3203
3203
|
{
|
|
3204
3204
|
id: id + "-" + i,
|
|
@@ -3230,7 +3230,7 @@ import {
|
|
|
3230
3230
|
useState as useState14
|
|
3231
3231
|
} from "react";
|
|
3232
3232
|
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3233
|
-
function
|
|
3233
|
+
function KjunDatePicker({
|
|
3234
3234
|
value,
|
|
3235
3235
|
size = "md",
|
|
3236
3236
|
placeholder = "\uB0A0\uC9DC \uC120\uD0DD",
|
|
@@ -3251,7 +3251,7 @@ function DsDatePicker({
|
|
|
3251
3251
|
["--_kjun-date-icon-size"]: tokens17.input[size].iconSize + "px"
|
|
3252
3252
|
}, children: [
|
|
3253
3253
|
/* @__PURE__ */ jsx18(
|
|
3254
|
-
|
|
3254
|
+
KjunInput,
|
|
3255
3255
|
{
|
|
3256
3256
|
...props,
|
|
3257
3257
|
value,
|
|
@@ -3382,7 +3382,7 @@ function useSearchInputModel({
|
|
|
3382
3382
|
|
|
3383
3383
|
// packages/react/src/search-input.tsx
|
|
3384
3384
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3385
|
-
function
|
|
3385
|
+
function KjunSearchInput({
|
|
3386
3386
|
value,
|
|
3387
3387
|
placeholder = "\uAC80\uC0C9...",
|
|
3388
3388
|
ariaLabel,
|
|
@@ -3418,7 +3418,7 @@ function DsSearchInput({
|
|
|
3418
3418
|
};
|
|
3419
3419
|
if (!loadOptions)
|
|
3420
3420
|
return /* @__PURE__ */ jsx19(
|
|
3421
|
-
|
|
3421
|
+
KjunInput,
|
|
3422
3422
|
{
|
|
3423
3423
|
error,
|
|
3424
3424
|
value: query2,
|
|
@@ -3515,7 +3515,7 @@ var CompoundControlContext = createContext11(null);
|
|
|
3515
3515
|
|
|
3516
3516
|
// packages/react/src/select-control.tsx
|
|
3517
3517
|
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3518
|
-
function
|
|
3518
|
+
function KjunSelect({
|
|
3519
3519
|
value,
|
|
3520
3520
|
options = [],
|
|
3521
3521
|
placeholder = "\uC120\uD0DD",
|
|
@@ -3543,7 +3543,7 @@ function DsSelect({
|
|
|
3543
3543
|
}) {
|
|
3544
3544
|
const { open, query: query2, limit, session, changeOpen, search, showMore } = useSelectState(controlled, disabled, optionPageSize, onOpenChange);
|
|
3545
3545
|
const composition = useCompositionGuard();
|
|
3546
|
-
const ref = useRef19(null), menu = useRef19(null), field = useKjunField(), id = useId9();
|
|
3546
|
+
const ref = useRef19(null), menu = useRef19(null), field = useKjunField(), id = "kjun-" + useId9();
|
|
3547
3547
|
const segment = useContext11(CompoundControlContext) !== null;
|
|
3548
3548
|
const spec = tokens18.input[size];
|
|
3549
3549
|
const expanded = usePopupExpanded(open, ref);
|
|
@@ -3601,12 +3601,12 @@ function DsSelect({
|
|
|
3601
3601
|
},
|
|
3602
3602
|
children: [
|
|
3603
3603
|
/* @__PURE__ */ jsx20("span", { className: !label ? "kjun-placeholder" : void 0, style: { flex: 1, paddingRight: clearable && label ? spec.clearSize + spec.affixGap : void 0 }, children: (renderSelected == null ? void 0 : renderSelected(selectedOption)) || label || placeholder }),
|
|
3604
|
-
/* @__PURE__ */ jsx20(
|
|
3604
|
+
/* @__PURE__ */ jsx20(KjunIcon, { name: "chevron-down", className: "kjun-select-indicator", "data-open": expanded || void 0, size: segment ? tokens18.extensions.timePicker.iconSize : spec.iconSize, style: { flexShrink: 0, color: disabled ? "var(--_kjun-color-text-disabled)" : "var(--_kjun-color-text-tertiary)" } })
|
|
3605
3605
|
]
|
|
3606
3606
|
}
|
|
3607
3607
|
),
|
|
3608
3608
|
clearable && !!label && /* @__PURE__ */ jsx20(
|
|
3609
|
-
|
|
3609
|
+
KjunButton,
|
|
3610
3610
|
{
|
|
3611
3611
|
size: "sm",
|
|
3612
3612
|
variant: "ghost",
|
|
@@ -3627,7 +3627,7 @@ function DsSelect({
|
|
|
3627
3627
|
onClear == null ? void 0 : onClear();
|
|
3628
3628
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
3629
3629
|
},
|
|
3630
|
-
children: /* @__PURE__ */ jsx20(
|
|
3630
|
+
children: /* @__PURE__ */ jsx20(KjunIcon, { name: "x", size: spec.iconSize })
|
|
3631
3631
|
}
|
|
3632
3632
|
)
|
|
3633
3633
|
] }),
|
|
@@ -3644,7 +3644,7 @@ function DsSelect({
|
|
|
3644
3644
|
children: /* @__PURE__ */ jsx20(FieldContext.Provider, { value: null, children: /* @__PURE__ */ jsxs15("div", { ref: menu, className: "kjun-select-content", children: [
|
|
3645
3645
|
menuHeader && /* @__PURE__ */ jsx20("div", { className: "kjun-select-header", children: menuHeader }),
|
|
3646
3646
|
searchable && /* @__PURE__ */ jsx20("div", { className: "kjun-select-search", children: /* @__PURE__ */ jsx20(
|
|
3647
|
-
|
|
3647
|
+
KjunInput,
|
|
3648
3648
|
{
|
|
3649
3649
|
autoFocus: true,
|
|
3650
3650
|
value: query2,
|
|
@@ -3674,7 +3674,7 @@ function DsSelect({
|
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
3676
|
) }),
|
|
3677
|
-
loading && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx20(
|
|
3677
|
+
loading && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: /* @__PURE__ */ jsx20(KjunSpinner, { size: "sm", text: "\uAC80\uC0C9 \uC911..." }) }),
|
|
3678
3678
|
/* @__PURE__ */ jsx20(
|
|
3679
3679
|
ListBox,
|
|
3680
3680
|
{
|
|
@@ -3705,7 +3705,7 @@ function DsSelect({
|
|
|
3705
3705
|
className: "kjun-option",
|
|
3706
3706
|
children: [
|
|
3707
3707
|
(renderOption == null ? void 0 : renderOption(o, selected(o))) || /* @__PURE__ */ jsx20("span", { children: optionLabel(o, labelKey) }),
|
|
3708
|
-
selected(o) && /* @__PURE__ */ jsx20(
|
|
3708
|
+
selected(o) && /* @__PURE__ */ jsx20(KjunIcon, { name: "check", size: tokens18.extensions.menu.iconSize })
|
|
3709
3709
|
]
|
|
3710
3710
|
},
|
|
3711
3711
|
key
|
|
@@ -3715,7 +3715,7 @@ function DsSelect({
|
|
|
3715
3715
|
),
|
|
3716
3716
|
!loading && !matching.length && /* @__PURE__ */ jsx20("div", { className: "kjun-select-empty", children: "\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
3717
3717
|
!loading && visible.length < matching.length && /* @__PURE__ */ jsx20(
|
|
3718
|
-
|
|
3718
|
+
KjunButton,
|
|
3719
3719
|
{
|
|
3720
3720
|
size: "sm",
|
|
3721
3721
|
variant: "ghost",
|
|
@@ -3913,7 +3913,7 @@ import {
|
|
|
3913
3913
|
} from "react";
|
|
3914
3914
|
import { Tab, TabList, TabPanel, Tabs } from "react-aria-components";
|
|
3915
3915
|
import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3916
|
-
function
|
|
3916
|
+
function KjunTabs({
|
|
3917
3917
|
value,
|
|
3918
3918
|
items = [],
|
|
3919
3919
|
density = "comfortable",
|
|
@@ -3930,7 +3930,7 @@ function DsTabs({
|
|
|
3930
3930
|
const panes = Children.toArray(children).filter(
|
|
3931
3931
|
isValidElement3
|
|
3932
3932
|
);
|
|
3933
|
-
const tabs = items.length ? items : panes.filter((child) => child.type ===
|
|
3933
|
+
const tabs = items.length ? items : panes.filter((child) => child.type === KjunTabPane).map((child) => child.props);
|
|
3934
3934
|
useLayoutEffect12(() => {
|
|
3935
3935
|
var _a2;
|
|
3936
3936
|
const list = (_a2 = group.current) == null ? void 0 : _a2.querySelector('[role="tablist"]');
|
|
@@ -3939,7 +3939,7 @@ function DsTabs({
|
|
|
3939
3939
|
}, [group]);
|
|
3940
3940
|
useLayoutEffect12(() => {
|
|
3941
3941
|
var _a2;
|
|
3942
|
-
const panelNames = new Set(panes.filter((child) => child.type ===
|
|
3942
|
+
const panelNames = new Set(panes.filter((child) => child.type === KjunTabPane).map((child) => child.props.name));
|
|
3943
3943
|
for (const tab of ((_a2 = group.current) == null ? void 0 : _a2.querySelectorAll('[role="tab"]')) || []) {
|
|
3944
3944
|
if (!panelNames.has(tab.dataset.tabName)) tab.removeAttribute("aria-controls");
|
|
3945
3945
|
}
|
|
@@ -4012,7 +4012,7 @@ function DsTabs({
|
|
|
4012
4012
|
onTouchEnd: clear,
|
|
4013
4013
|
onTouchCancel: clear,
|
|
4014
4014
|
children: [
|
|
4015
|
-
tab.icon && /* @__PURE__ */ jsx22(
|
|
4015
|
+
tab.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: tab.icon, size: tokens20.extensions.tabs.iconSize }),
|
|
4016
4016
|
" ",
|
|
4017
4017
|
/* @__PURE__ */ jsx22("span", { className: "kjun-motion-label", "data-label": tab.label, children: /* @__PURE__ */ jsx22("span", { children: tab.label }) }),
|
|
4018
4018
|
tab.badge != null && /* @__PURE__ */ jsx22(
|
|
@@ -4038,7 +4038,7 @@ function DsTabs({
|
|
|
4038
4038
|
}
|
|
4039
4039
|
);
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function KjunTabPane({ name, children }) {
|
|
4042
4042
|
return /* @__PURE__ */ jsx22(
|
|
4043
4043
|
TabPanel,
|
|
4044
4044
|
{
|
|
@@ -4051,7 +4051,7 @@ function DsTabPane({ name, children }) {
|
|
|
4051
4051
|
);
|
|
4052
4052
|
}
|
|
4053
4053
|
var AccordionContext = createContext12(null);
|
|
4054
|
-
function
|
|
4054
|
+
function KjunAccordion({
|
|
4055
4055
|
multiple = false,
|
|
4056
4056
|
tone = "card",
|
|
4057
4057
|
children
|
|
@@ -4065,14 +4065,14 @@ function DsAccordion({
|
|
|
4065
4065
|
}
|
|
4066
4066
|
);
|
|
4067
4067
|
}
|
|
4068
|
-
function
|
|
4068
|
+
function KjunAccordionItem({
|
|
4069
4069
|
title = "",
|
|
4070
4070
|
defaultOpen = false,
|
|
4071
4071
|
disabled = false,
|
|
4072
4072
|
header,
|
|
4073
4073
|
children
|
|
4074
4074
|
}) {
|
|
4075
|
-
const group = useContext12(AccordionContext), id = useId10(), [own, setOwn] = useState20(defaultOpen), open = group ? group.opened.has(id) : own;
|
|
4075
|
+
const group = useContext12(AccordionContext), id = "kjun-" + useId10(), [own, setOwn] = useState20(defaultOpen), open = group ? group.opened.has(id) : own;
|
|
4076
4076
|
useEffect13(() => {
|
|
4077
4077
|
return group == null ? void 0 : group.register(id, defaultOpen);
|
|
4078
4078
|
}, []);
|
|
@@ -4090,7 +4090,7 @@ function DsAccordionItem({
|
|
|
4090
4090
|
children: [
|
|
4091
4091
|
/* @__PURE__ */ jsx22("span", { className: "kjun-accordion-heading", children: header || title }),
|
|
4092
4092
|
/* @__PURE__ */ jsx22(
|
|
4093
|
-
|
|
4093
|
+
KjunIcon,
|
|
4094
4094
|
{
|
|
4095
4095
|
name: "chevron-down",
|
|
4096
4096
|
className: "kjun-accordion-chevron",
|
|
@@ -4113,25 +4113,25 @@ function DsAccordionItem({
|
|
|
4113
4113
|
) })
|
|
4114
4114
|
] });
|
|
4115
4115
|
}
|
|
4116
|
-
function
|
|
4116
|
+
function KjunBreadcrumb({
|
|
4117
4117
|
items,
|
|
4118
4118
|
renderLink,
|
|
4119
4119
|
ariaLabel = "\uD604\uC7AC \uC704\uCE58"
|
|
4120
4120
|
}) {
|
|
4121
4121
|
return /* @__PURE__ */ jsx22("nav", { "aria-label": ariaLabel, className: "kjun-breadcrumb", children: items.map((item, i) => {
|
|
4122
4122
|
const label = /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
4123
|
-
item.icon && /* @__PURE__ */ jsx22(
|
|
4123
|
+
item.icon && /* @__PURE__ */ jsx22(KjunIcon, { name: item.icon, size: tokens20.extensions.breadcrumb.iconSize }),
|
|
4124
4124
|
" ",
|
|
4125
4125
|
item.label
|
|
4126
4126
|
] });
|
|
4127
4127
|
return /* @__PURE__ */ jsxs16(Fragment6, { children: [
|
|
4128
|
-
i > 0 && /* @__PURE__ */ jsx22(
|
|
4128
|
+
i > 0 && /* @__PURE__ */ jsx22(KjunIcon, { name: "chevron-right", size: tokens20.extensions.breadcrumb.separatorSize }),
|
|
4129
4129
|
" ",
|
|
4130
4130
|
item.to && i < items.length - 1 ? (renderLink == null ? void 0 : renderLink(item, label)) || /* @__PURE__ */ jsx22("a", { href: item.to, children: label }) : /* @__PURE__ */ jsx22("span", { "aria-current": i === items.length - 1 ? "page" : void 0, children: label })
|
|
4131
4131
|
] }, i);
|
|
4132
4132
|
}) });
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4134
|
+
function KjunPagination({
|
|
4135
4135
|
currentPage,
|
|
4136
4136
|
page,
|
|
4137
4137
|
totalPages,
|
|
@@ -4171,7 +4171,7 @@ function DsPagination({
|
|
|
4171
4171
|
"aria-label": label,
|
|
4172
4172
|
disabled: target < 1 || target > totalPages || target === current,
|
|
4173
4173
|
onClick: () => change(target),
|
|
4174
|
-
children: /* @__PURE__ */ jsx22(
|
|
4174
|
+
children: /* @__PURE__ */ jsx22(KjunIcon, { name: icon, size: tokens20.extensions.pagination.iconSize })
|
|
4175
4175
|
}
|
|
4176
4176
|
);
|
|
4177
4177
|
return /* @__PURE__ */ jsxs16("nav", { "aria-label": "\uD398\uC774\uC9C0 \uD0D0\uC0C9", className: "kjun-pagination", children: [
|
|
@@ -4186,7 +4186,7 @@ function DsPagination({
|
|
|
4186
4186
|
] }) : /* @__PURE__ */ jsx22("span", {}),
|
|
4187
4187
|
/* @__PURE__ */ jsxs16("div", { className: "kjun-pagination-controls", children: [
|
|
4188
4188
|
showSizeSelector && /* @__PURE__ */ jsx22("div", { className: "kjun-pagination-size", children: /* @__PURE__ */ jsx22(
|
|
4189
|
-
|
|
4189
|
+
KjunSelect,
|
|
4190
4190
|
{
|
|
4191
4191
|
size: "sm",
|
|
4192
4192
|
ariaLabel: "\uD398\uC774\uC9C0\uB2F9 \uD56D\uBAA9 \uC218",
|
|
@@ -4240,7 +4240,7 @@ import {
|
|
|
4240
4240
|
useState as useState21
|
|
4241
4241
|
} from "react";
|
|
4242
4242
|
import { Fragment as Fragment8, jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4243
|
-
function
|
|
4243
|
+
function KjunIconToggle({
|
|
4244
4244
|
active = false,
|
|
4245
4245
|
activeIcon,
|
|
4246
4246
|
inactiveIcon,
|
|
@@ -4259,7 +4259,7 @@ function DsIconToggle({
|
|
|
4259
4259
|
}) {
|
|
4260
4260
|
var _a;
|
|
4261
4261
|
const navigation = useContext13(TopNavigationContext);
|
|
4262
|
-
return /* @__PURE__ */ jsx23(
|
|
4262
|
+
return /* @__PURE__ */ jsx23(KjunTooltip, { content: disabled || loading ? "" : tooltip != null ? tooltip : ariaLabel, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
|
|
4263
4263
|
"button",
|
|
4264
4264
|
{
|
|
4265
4265
|
type: "button",
|
|
@@ -4274,8 +4274,8 @@ function DsIconToggle({
|
|
|
4274
4274
|
e.stopPropagation();
|
|
4275
4275
|
onToggle == null ? void 0 : onToggle();
|
|
4276
4276
|
},
|
|
4277
|
-
children: loading ? navigation ? /* @__PURE__ */ jsx23(
|
|
4278
|
-
|
|
4277
|
+
children: loading ? navigation ? /* @__PURE__ */ jsx23(KjunIcon, { name: "loader-2", spin: true, size: navigation.iconSize }) : /* @__PURE__ */ jsx23(KjunSpinner, { size: "sm" }) : /* @__PURE__ */ jsx23(
|
|
4278
|
+
KjunIcon,
|
|
4279
4279
|
{
|
|
4280
4280
|
name: active ? activeIcon : inactiveIcon || activeIcon,
|
|
4281
4281
|
filled: active,
|
|
@@ -4304,7 +4304,7 @@ async function browserCopy(value) {
|
|
|
4304
4304
|
previous == null ? void 0 : previous.focus();
|
|
4305
4305
|
}
|
|
4306
4306
|
}
|
|
4307
|
-
function
|
|
4307
|
+
function KjunCopyButton({
|
|
4308
4308
|
value,
|
|
4309
4309
|
ariaLabel,
|
|
4310
4310
|
text,
|
|
@@ -4365,7 +4365,7 @@ function DsCopyButton({
|
|
|
4365
4365
|
},
|
|
4366
4366
|
children: [
|
|
4367
4367
|
/* @__PURE__ */ jsx23(
|
|
4368
|
-
|
|
4368
|
+
KjunIcon,
|
|
4369
4369
|
{
|
|
4370
4370
|
name: copied ? "check" : "copy",
|
|
4371
4371
|
size: tokens21.button.iconSizes[size],
|
|
@@ -4379,7 +4379,7 @@ function DsCopyButton({
|
|
|
4379
4379
|
/* @__PURE__ */ jsx23("span", { role: feedback ? void 0 : "status", "aria-hidden": feedback ? true : void 0, className: "kjun-sr-only", children: copied ? successText : failed ? "\uBCF5\uC0AC \uC2E4\uD328" : "" })
|
|
4380
4380
|
] });
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4382
|
+
function KjunRefreshButton({
|
|
4383
4383
|
targetName = "",
|
|
4384
4384
|
mode = "icon",
|
|
4385
4385
|
text = "\uC0C8\uB85C\uACE0\uCE68",
|
|
@@ -4398,8 +4398,8 @@ function DsRefreshButton({
|
|
|
4398
4398
|
const reduced = useReducedMotion();
|
|
4399
4399
|
const label = ariaLabel || [targetName, "\uC0C8\uB85C\uACE0\uCE68"].filter(Boolean).join(" ");
|
|
4400
4400
|
const hint = (_a = tooltip != null ? tooltip : title) != null ? _a : mode === "icon" ? label : "";
|
|
4401
|
-
return /* @__PURE__ */ jsx23(
|
|
4402
|
-
|
|
4401
|
+
return /* @__PURE__ */ jsx23(KjunTooltip, { content: props.disabled || props.loading ? "" : hint, placement: tooltipPlacement, delay: tooltipDelay, children: /* @__PURE__ */ jsx23(
|
|
4402
|
+
KjunButton,
|
|
4403
4403
|
{
|
|
4404
4404
|
...props,
|
|
4405
4405
|
size,
|
|
@@ -4420,13 +4420,13 @@ function safeExternalUrl(href) {
|
|
|
4420
4420
|
return "";
|
|
4421
4421
|
}
|
|
4422
4422
|
}
|
|
4423
|
-
function
|
|
4423
|
+
function KjunExternalLink({
|
|
4424
4424
|
href = "",
|
|
4425
4425
|
mode = "text",
|
|
4426
4426
|
label,
|
|
4427
4427
|
children
|
|
4428
4428
|
}) {
|
|
4429
|
-
const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx23(
|
|
4429
|
+
const url = safeExternalUrl(href), name = label || (mode === "icon" ? "\uC678\uBD80 \uB9C1\uD06C" : void 0), body = mode === "icon" ? /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link" }) : children;
|
|
4430
4430
|
return url ? /* @__PURE__ */ jsxs17(
|
|
4431
4431
|
"a",
|
|
4432
4432
|
{
|
|
@@ -4439,13 +4439,13 @@ function DsExternalLink({
|
|
|
4439
4439
|
onClick: (e) => e.stopPropagation(),
|
|
4440
4440
|
children: [
|
|
4441
4441
|
body,
|
|
4442
|
-
mode === "text" && /* @__PURE__ */ jsx23(
|
|
4442
|
+
mode === "text" && /* @__PURE__ */ jsx23(KjunIcon, { name: "external-link", size: tokens21.iconSizes.small, className: "kjun-external-link-icon" }),
|
|
4443
4443
|
!name && /* @__PURE__ */ jsx23("span", { className: "kjun-sr-only", children: " (\uC0C8 \uCC3D)" })
|
|
4444
4444
|
]
|
|
4445
4445
|
}
|
|
4446
4446
|
) : /* @__PURE__ */ jsx23("span", { "aria-label": name, children: body });
|
|
4447
4447
|
}
|
|
4448
|
-
function
|
|
4448
|
+
function KjunScrollFade({ children }) {
|
|
4449
4449
|
const ref = useRef23(null), [edges, setEdges] = useState21({ left: false, right: false });
|
|
4450
4450
|
const update = () => {
|
|
4451
4451
|
const el = ref.current;
|
|
@@ -4499,7 +4499,7 @@ function useQueryDisplay(props) {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
return queryDisplayStatus(next, props);
|
|
4501
4501
|
}
|
|
4502
|
-
function
|
|
4502
|
+
function KjunDataState({
|
|
4503
4503
|
preserveContent = false,
|
|
4504
4504
|
refreshing = false,
|
|
4505
4505
|
refreshError,
|
|
@@ -4526,7 +4526,7 @@ function DsDataState({
|
|
|
4526
4526
|
const state = useQueryDisplay(query2), blockingError = query2.error && !(state.usesQueryState && state.hasCurrentResult), visibleRefreshError = refreshError || (state.usesQueryState && state.hasCurrentResult ? query2.error : null), concealed = state.initialLoading || !!blockingError || empty, padding = tokens22.extensions.state.padding[size];
|
|
4527
4527
|
return /* @__PURE__ */ jsxs18("div", { className: "kjun-data-state", "aria-busy": !!query2.loading || refreshing, children: [
|
|
4528
4528
|
/* @__PURE__ */ jsx24("div", { children: (refreshing || state.queryRefreshing) && /* @__PURE__ */ jsxs18("div", { className: "kjun-data-status", role: "status", children: [
|
|
4529
|
-
/* @__PURE__ */ jsx24(
|
|
4529
|
+
/* @__PURE__ */ jsx24(KjunSpinner, { size: "xs" }),
|
|
4530
4530
|
/* @__PURE__ */ jsx24("span", { children: refreshingText })
|
|
4531
4531
|
] }) }),
|
|
4532
4532
|
state.initialLoading ? /* @__PURE__ */ jsx24(
|
|
@@ -4535,12 +4535,12 @@ function DsDataState({
|
|
|
4535
4535
|
role: "status",
|
|
4536
4536
|
"aria-label": loadingText,
|
|
4537
4537
|
style: { paddingBlock: loadingPadding === "none" ? 0 : padding },
|
|
4538
|
-
children: loadingContent || (skeleton ? /* @__PURE__ */ jsx24("div", { style: { display: "grid", gap: tokens22.dimension.value12 }, children: Array.from({ length: skeletonCount }, (_, i) => /* @__PURE__ */ jsx24(
|
|
4539
|
-
/* @__PURE__ */ jsx24(
|
|
4538
|
+
children: loadingContent || (skeleton ? /* @__PURE__ */ jsx24("div", { style: { display: "grid", gap: tokens22.dimension.value12 }, children: Array.from({ length: skeletonCount }, (_, i) => /* @__PURE__ */ jsx24(KjunSkeleton, { type: skeletonType }, i)) }) : /* @__PURE__ */ jsxs18("div", { className: "kjun-data-loading", children: [
|
|
4539
|
+
/* @__PURE__ */ jsx24(KjunSpinner, { size: "md" }),
|
|
4540
4540
|
/* @__PURE__ */ jsx24("p", { children: loadingText })
|
|
4541
4541
|
] }))
|
|
4542
4542
|
}
|
|
4543
|
-
) : blockingError ? /* @__PURE__ */ jsx24("div", { className: "kjun-state-actions", style: { paddingBlock: padding }, children: errorContent || /* @__PURE__ */ jsx24(
|
|
4543
|
+
) : blockingError ? /* @__PURE__ */ jsx24("div", { className: "kjun-state-actions", style: { paddingBlock: padding }, children: errorContent || /* @__PURE__ */ jsx24(KjunAlert, { type: "danger", title: "\uC624\uB958 \uBC1C\uC0DD", actions: onRetry && /* @__PURE__ */ jsx24(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: query2.error }) }) : empty ? /* @__PURE__ */ jsx24("div", { className: "kjun-data-empty kjun-state-actions", style: { paddingBlock: padding }, children: emptyContent || /* @__PURE__ */ jsx24(KjunEmpty, { text: emptyText, icon: emptyIcon, children: emptyActionText && /* @__PURE__ */ jsx24(KjunButton, { onClick: onEmptyAction, children: emptyActionText }) }) }) : null,
|
|
4544
4544
|
(!concealed || preserveContent && state.hasQueryResult) && /* @__PURE__ */ jsx24(
|
|
4545
4545
|
"div",
|
|
4546
4546
|
{
|
|
@@ -4554,13 +4554,13 @@ function DsDataState({
|
|
|
4554
4554
|
},
|
|
4555
4555
|
"content"
|
|
4556
4556
|
),
|
|
4557
|
-
visibleRefreshError && !state.initialLoading && /* @__PURE__ */ jsx24("div", { className: "kjun-data-warning kjun-state-actions", children: /* @__PURE__ */ jsxs18(
|
|
4557
|
+
visibleRefreshError && !state.initialLoading && /* @__PURE__ */ jsx24("div", { className: "kjun-data-warning kjun-state-actions", children: /* @__PURE__ */ jsxs18(KjunAlert, { type: "warning", size: "sm", actions: onRetry && /* @__PURE__ */ jsx24(KjunButton, { variant: "secondary", onClick: onRetry, children: retryText }), children: [
|
|
4558
4558
|
visibleRefreshError,
|
|
4559
4559
|
" \xB7 \uC774\uC804 \uC870\uD68C \uACB0\uACFC\uB97C \uD45C\uC2DC\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4."
|
|
4560
4560
|
] }) })
|
|
4561
4561
|
] });
|
|
4562
4562
|
}
|
|
4563
|
-
var
|
|
4563
|
+
var KjunErrorBoundary = class extends Component {
|
|
4564
4564
|
constructor() {
|
|
4565
4565
|
super(...arguments);
|
|
4566
4566
|
this.state = { error: false };
|
|
@@ -4577,7 +4577,7 @@ var DsErrorBoundary = class extends Component {
|
|
|
4577
4577
|
/* @__PURE__ */ jsx24("h3", { children: this.props.fallbackMessage || "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
4578
4578
|
/* @__PURE__ */ jsx24("p", { children: "\uB2E4\uC2DC \uC2DC\uB3C4\uD558\uBA74 \uBB38\uC81C\uAC00 \uD574\uACB0\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }),
|
|
4579
4579
|
/* @__PURE__ */ jsx24(
|
|
4580
|
-
|
|
4580
|
+
KjunButton,
|
|
4581
4581
|
{
|
|
4582
4582
|
onClick: () => {
|
|
4583
4583
|
var _a, _b;
|
|
@@ -4636,27 +4636,27 @@ function MarketColumns({ columns, showActions, widthClass }) {
|
|
|
4636
4636
|
|
|
4637
4637
|
// packages/react/src/market-skeleton.tsx
|
|
4638
4638
|
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4639
|
-
function
|
|
4639
|
+
function KjunMarketTableSkeleton({ columns = [], rows = 8, showActions = false, alignClass, widthClass }) {
|
|
4640
4640
|
const cols = normalizeMarketColumns(columns);
|
|
4641
4641
|
return /* @__PURE__ */ jsx26("div", { "aria-hidden": "true", className: "kjun-table-scroll", children: /* @__PURE__ */ jsxs20("table", { className: "kjun-market-table-grid", style: webMarketLayout(cols, showActions, widthClass).tableStyle, children: [
|
|
4642
4642
|
/* @__PURE__ */ jsx26(MarketColumns, { columns: cols, showActions, widthClass }),
|
|
4643
4643
|
/* @__PURE__ */ jsx26("thead", { children: /* @__PURE__ */ jsxs20("tr", { children: [
|
|
4644
|
-
showActions && /* @__PURE__ */ jsx26("th", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(
|
|
4644
|
+
showActions && /* @__PURE__ */ jsx26("th", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.marketTable.headerSkeletonHeight }) }) }),
|
|
4645
4645
|
cols.map((col, i) => /* @__PURE__ */ jsx26("th", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: col.label }, col.key || i))
|
|
4646
4646
|
] }) }),
|
|
4647
4647
|
/* @__PURE__ */ jsx26("tbody", { children: Array.from({ length: Math.max(0, rows) }, (_, row) => /* @__PURE__ */ jsxs20("tr", { children: [
|
|
4648
|
-
showActions && /* @__PURE__ */ jsx26("td", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(
|
|
4648
|
+
showActions && /* @__PURE__ */ jsx26("td", { className: "kjun-market-actions", children: /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.marketTable.actionSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }),
|
|
4649
4649
|
cols.map((col, i) => /* @__PURE__ */ jsx26("td", { className: alignClass == null ? void 0 : alignClass(col.align), style: { textAlign: col.align }, children: isMarketIdentity(col.key) ? /* @__PURE__ */ jsxs20("div", { className: "kjun-market-skeleton-identity", children: [
|
|
4650
|
-
/* @__PURE__ */ jsx26(
|
|
4651
|
-
/* @__PURE__ */ jsx26(
|
|
4652
|
-
] }) : /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(
|
|
4650
|
+
/* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "80%", height: tokens24.extensions.skeleton.lineHeights.md }),
|
|
4651
|
+
/* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: "60%", height: tokens24.extensions.skeleton.lineHeights.sm })
|
|
4652
|
+
] }) : /* @__PURE__ */ jsx26("span", { className: "kjun-market-skeleton-value", children: /* @__PURE__ */ jsx26(KjunSkeleton, { type: "block", width: tokens24.extensions.financial.priceSkeletonWidth, height: tokens24.extensions.financial.priceSkeletonHeight }) }) }, col.key || i))
|
|
4653
4653
|
] }, row)) })
|
|
4654
4654
|
] }) });
|
|
4655
4655
|
}
|
|
4656
4656
|
|
|
4657
4657
|
// packages/react/src/skeletons.tsx
|
|
4658
4658
|
import { jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4659
|
-
function
|
|
4659
|
+
function KjunListSkeleton({
|
|
4660
4660
|
rows = 8,
|
|
4661
4661
|
variant = "market",
|
|
4662
4662
|
avatar = true,
|
|
@@ -4664,25 +4664,25 @@ function DsListSkeleton({
|
|
|
4664
4664
|
quote = true
|
|
4665
4665
|
}) {
|
|
4666
4666
|
return /* @__PURE__ */ jsx27("div", { "aria-hidden": "true", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-row", "data-variant": variant, children: [
|
|
4667
|
-
avatar && /* @__PURE__ */ jsx27(
|
|
4667
|
+
avatar && /* @__PURE__ */ jsx27(KjunSkeleton, { type: "avatar", width: avatarSize, height: avatarSize }),
|
|
4668
4668
|
/* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-label", children: [
|
|
4669
4669
|
/* @__PURE__ */ jsx27(
|
|
4670
|
-
|
|
4670
|
+
KjunSkeleton,
|
|
4671
4671
|
{
|
|
4672
4672
|
type: "block",
|
|
4673
4673
|
height: tokens25.extensions.skeleton.lineHeights.md,
|
|
4674
4674
|
width: i % 2 ? "80%" : "65%"
|
|
4675
4675
|
}
|
|
4676
4676
|
),
|
|
4677
|
-
/* @__PURE__ */ jsx27(
|
|
4677
|
+
/* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: "50%" })
|
|
4678
4678
|
] }),
|
|
4679
4679
|
quote && /* @__PURE__ */ jsxs21("div", { className: "kjun-list-skeleton-quote", children: [
|
|
4680
|
-
/* @__PURE__ */ jsx27(
|
|
4681
|
-
/* @__PURE__ */ jsx27(
|
|
4680
|
+
/* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.quoteHeight, width: tokens25.extensions.skeleton.quoteWidth }),
|
|
4681
|
+
/* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.lineHeights.sm, width: tokens25.extensions.skeleton.detailWidth })
|
|
4682
4682
|
] })
|
|
4683
4683
|
] }, i)) });
|
|
4684
4684
|
}
|
|
4685
|
-
function
|
|
4685
|
+
function KjunFormSkeleton({
|
|
4686
4686
|
fields = ["", "", "", ""],
|
|
4687
4687
|
columns = 1,
|
|
4688
4688
|
multiline = false,
|
|
@@ -4694,14 +4694,14 @@ function DsFormSkeleton({
|
|
|
4694
4694
|
"aria-hidden": "true",
|
|
4695
4695
|
className: "kjun-form-skeleton",
|
|
4696
4696
|
"data-columns": columns,
|
|
4697
|
-
style: { "--form-skeleton-radius": `${tokens25.input[size].radius}px` },
|
|
4697
|
+
style: { "--_kjun-form-skeleton-radius": `${tokens25.input[size].radius}px` },
|
|
4698
4698
|
children: fields.map((field, i) => /* @__PURE__ */ jsxs21("div", { children: [
|
|
4699
4699
|
field ? /* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label", children: typeof field === "string" ? field : field.label }) : (
|
|
4700
4700
|
// The bar sits in a label-line slot so the field starts where the real input will.
|
|
4701
|
-
/* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label-slot", children: /* @__PURE__ */ jsx27(
|
|
4701
|
+
/* @__PURE__ */ jsx27("div", { className: "kjun-form-skeleton-label-slot", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", height: tokens25.extensions.skeleton.formLabelHeight, width: tokens25.extensions.skeleton.formLabelWidth }) })
|
|
4702
4702
|
),
|
|
4703
4703
|
/* @__PURE__ */ jsx27(
|
|
4704
|
-
|
|
4704
|
+
KjunSkeleton,
|
|
4705
4705
|
{
|
|
4706
4706
|
type: "block",
|
|
4707
4707
|
height: typeof field === "object" && field.height != null ? field.height : multiline ? tokens25.input[size].lineHeight * 3 + tokens25.input[size].textareaPaddingY * 2 + 2 * tokens25.border.controlWidth : tokens25.input[size].height
|
|
@@ -4711,14 +4711,14 @@ function DsFormSkeleton({
|
|
|
4711
4711
|
}
|
|
4712
4712
|
);
|
|
4713
4713
|
}
|
|
4714
|
-
function
|
|
4714
|
+
function KjunChartSkeleton({
|
|
4715
4715
|
loadingText = "\uCC28\uD2B8\uB97C \uBD88\uB7EC\uC624\uB294 \uC911",
|
|
4716
4716
|
kind = "line",
|
|
4717
4717
|
height = tokens25.extensions.chartSkeleton.height
|
|
4718
4718
|
}) {
|
|
4719
4719
|
return /* @__PURE__ */ jsxs21("div", { className: "kjun-chart-skeleton", style: { height }, "aria-hidden": "true", children: [
|
|
4720
4720
|
/* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-status", children: loadingText && /* @__PURE__ */ jsx27("span", { children: loadingText }) }),
|
|
4721
|
-
kind === "donut" ? /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-donut", children: /* @__PURE__ */ jsx27(
|
|
4721
|
+
kind === "donut" ? /* @__PURE__ */ jsx27("div", { className: "kjun-chart-skeleton-donut", children: /* @__PURE__ */ jsx27(KjunSkeleton, { type: "block", width: tokens25.extensions.chartSkeleton.donutLabelWidth, height: tokens25.extensions.chartSkeleton.donutLabelHeight }) }) : /* @__PURE__ */ jsxs21(
|
|
4722
4722
|
"svg",
|
|
4723
4723
|
{
|
|
4724
4724
|
viewBox: "0 0 600 240",
|
|
@@ -4877,7 +4877,7 @@ var format = (value, decimals = 0) => new Intl.NumberFormat(void 0, {
|
|
|
4877
4877
|
function useCountUp(value, animated, fromPrevious) {
|
|
4878
4878
|
return useNumberMotion(value, animated, fromPrevious, useReducedMotion());
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function KjunAnimatedNumber({
|
|
4881
4881
|
value,
|
|
4882
4882
|
decimals = 0,
|
|
4883
4883
|
prefix = "",
|
|
@@ -4894,21 +4894,21 @@ function DsAnimatedNumber({
|
|
|
4894
4894
|
suffix && /* @__PURE__ */ jsx28("span", { className: "kjun-number-affix", "data-side": "suffix", children: suffix })
|
|
4895
4895
|
] });
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4897
|
+
function KjunFreshness({
|
|
4898
4898
|
stale = false,
|
|
4899
4899
|
source,
|
|
4900
4900
|
fetchedAt,
|
|
4901
4901
|
formatter
|
|
4902
4902
|
}) {
|
|
4903
4903
|
return stale ? /* @__PURE__ */ jsx28(
|
|
4904
|
-
|
|
4904
|
+
KjunTooltip,
|
|
4905
4905
|
{
|
|
4906
4906
|
content: (source === "close" ? "\uC2E4\uC2DC\uAC04 \uC2DC\uC138 \uC5C6\uC74C \xB7 \uCD5C\uADFC \uC885\uAC00 \uD45C\uC2DC" : "\uC2E4\uC2DC\uAC04 \uC2DC\uC138 \uC9C0\uC5F0") + (fetchedAt ? " \xB7 " + ((formatter == null ? void 0 : formatter(fetchedAt)) || formatRelativeTime(fetchedAt)) : ""),
|
|
4907
|
-
children: /* @__PURE__ */ jsx28("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx28(
|
|
4907
|
+
children: /* @__PURE__ */ jsx28("span", { tabIndex: 0, className: "kjun-freshness", children: /* @__PURE__ */ jsx28(KjunBadge, { variant: "warning", size: "xs", children: source === "close" ? "\uC885\uAC00" : "\uC9C0\uC5F0" }) })
|
|
4908
4908
|
}
|
|
4909
4909
|
) : null;
|
|
4910
4910
|
}
|
|
4911
|
-
function
|
|
4911
|
+
function KjunPriceCell({
|
|
4912
4912
|
value,
|
|
4913
4913
|
formatter,
|
|
4914
4914
|
stale = false,
|
|
@@ -4918,15 +4918,15 @@ function DsPriceCell({
|
|
|
4918
4918
|
flashClass = "",
|
|
4919
4919
|
fromPrevious = true
|
|
4920
4920
|
}) {
|
|
4921
|
-
return value == null ? /* @__PURE__ */ jsx28(
|
|
4921
|
+
return value == null ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", height: tokens27.extensions.financial.priceSkeletonHeight, width: tokens27.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs22(Fragment10, { children: [
|
|
4922
4922
|
/* @__PURE__ */ jsx28(
|
|
4923
4923
|
"span",
|
|
4924
4924
|
{
|
|
4925
4925
|
className: "kjun-price-cell " + flashClass,
|
|
4926
|
-
ref: domainColorRef(/\
|
|
4926
|
+
ref: domainColorRef(/\bkjun-price-flash-(up|down)/.test(flashClass)),
|
|
4927
4927
|
style: { color: stale ? "var(--_kjun-color-text-tertiary)" : void 0 },
|
|
4928
4928
|
children: /* @__PURE__ */ jsx28(
|
|
4929
|
-
|
|
4929
|
+
KjunAnimatedNumber,
|
|
4930
4930
|
{
|
|
4931
4931
|
value,
|
|
4932
4932
|
formatter,
|
|
@@ -4935,10 +4935,10 @@ function DsPriceCell({
|
|
|
4935
4935
|
)
|
|
4936
4936
|
}
|
|
4937
4937
|
),
|
|
4938
|
-
showFreshness && /* @__PURE__ */ jsx28(
|
|
4938
|
+
showFreshness && /* @__PURE__ */ jsx28(KjunFreshness, { stale, source, fetchedAt })
|
|
4939
4939
|
] });
|
|
4940
4940
|
}
|
|
4941
|
-
function
|
|
4941
|
+
function KjunSignedValue({
|
|
4942
4942
|
value,
|
|
4943
4943
|
format: kind = "number",
|
|
4944
4944
|
isRaw = false,
|
|
@@ -4966,8 +4966,8 @@ function DsSignedValue({
|
|
|
4966
4966
|
background: tone === "pill" && !stale && n !== null ? `var(--_kjun-color-${role2}-bg)` : void 0
|
|
4967
4967
|
},
|
|
4968
4968
|
children: [
|
|
4969
|
-
loading ? /* @__PURE__ */ jsx28(
|
|
4970
|
-
!loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx28(
|
|
4969
|
+
loading ? /* @__PURE__ */ jsx28(KjunSkeleton, { type: "block", width: tokens27.extensions.financial.signedSkeletonWidth, height: "1lh" }) : display,
|
|
4970
|
+
!loading && showFreshness && stale && n !== null && /* @__PURE__ */ jsx28(KjunFreshness, { stale: true })
|
|
4971
4971
|
]
|
|
4972
4972
|
}
|
|
4973
4973
|
);
|
|
@@ -4975,7 +4975,7 @@ function DsSignedValue({
|
|
|
4975
4975
|
|
|
4976
4976
|
// packages/react/src/financial-display.tsx
|
|
4977
4977
|
import { Fragment as Fragment11, jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4978
|
-
function
|
|
4978
|
+
function KjunDeviation({
|
|
4979
4979
|
value,
|
|
4980
4980
|
variant = "pill",
|
|
4981
4981
|
signalThreshold = 1,
|
|
@@ -4989,7 +4989,7 @@ function DsDeviation({
|
|
|
4989
4989
|
if (variant === "badge")
|
|
4990
4990
|
return /* @__PURE__ */ jsxs23("span", { className: "kjun-deviation-badge", children: [
|
|
4991
4991
|
/* @__PURE__ */ jsx29(
|
|
4992
|
-
|
|
4992
|
+
KjunBadge,
|
|
4993
4993
|
{
|
|
4994
4994
|
variant: neutral ? "secondary" : n > 0 ? "price-up" : "price-down",
|
|
4995
4995
|
size: "sm",
|
|
@@ -4998,11 +4998,11 @@ function DsDeviation({
|
|
|
4998
4998
|
}
|
|
4999
4999
|
),
|
|
5000
5000
|
!signal ? /* @__PURE__ */ jsx29("span", { className: "kjun-deviation-signal-slot", "aria-hidden": "true" }) : /* @__PURE__ */ jsx29(
|
|
5001
|
-
|
|
5001
|
+
KjunTooltip,
|
|
5002
5002
|
{
|
|
5003
5003
|
content: `\uAD34\uB9AC\uC728 ${signalThreshold}% \uCD08\uACFC \u2014 \uCC28\uC775\uAC70\uB798 \uAE30\uD68C \uAC00\uB2A5`,
|
|
5004
5004
|
children: /* @__PURE__ */ jsx29("span", { tabIndex: 0, role: "img", "aria-label": "\uCC28\uC775\uAC70\uB798 \uAE30\uD68C", className: "kjun-deviation-signal", children: /* @__PURE__ */ jsx29(
|
|
5005
|
-
|
|
5005
|
+
KjunIcon,
|
|
5006
5006
|
{
|
|
5007
5007
|
name: "alert-triangle",
|
|
5008
5008
|
size: tokens28.extensions.financial.warningIconSize,
|
|
@@ -5036,7 +5036,7 @@ function DsDeviation({
|
|
|
5036
5036
|
}
|
|
5037
5037
|
);
|
|
5038
5038
|
}
|
|
5039
|
-
function
|
|
5039
|
+
function KjunHeatmapCell({
|
|
5040
5040
|
value = 0,
|
|
5041
5041
|
min = 0,
|
|
5042
5042
|
max = 1,
|
|
@@ -5059,7 +5059,7 @@ function DsHeatmapCell({
|
|
|
5059
5059
|
/* @__PURE__ */ jsx29("span", { children: children != null ? children : value })
|
|
5060
5060
|
] });
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function KjunProgressCell({
|
|
5063
5063
|
value = 0,
|
|
5064
5064
|
max = 100,
|
|
5065
5065
|
showLabel = true,
|
|
@@ -5084,14 +5084,14 @@ function DsProgressCell({
|
|
|
5084
5084
|
] })
|
|
5085
5085
|
] });
|
|
5086
5086
|
}
|
|
5087
|
-
function
|
|
5087
|
+
function KjunCollectionMark({
|
|
5088
5088
|
kind,
|
|
5089
5089
|
active = false,
|
|
5090
5090
|
size = "md"
|
|
5091
5091
|
}) {
|
|
5092
5092
|
const box = tokens28.extensions.financial.markSizes[size], glyph = kind === "interest" ? tokens28.extensions.financial.heartMarkSizes[size] : box;
|
|
5093
5093
|
return /* @__PURE__ */ jsx29(
|
|
5094
|
-
|
|
5094
|
+
KjunIcon,
|
|
5095
5095
|
{
|
|
5096
5096
|
ref: domainColorRef(active),
|
|
5097
5097
|
name: kind === "favorite" ? "star" : "heart",
|
|
@@ -5114,15 +5114,15 @@ var executionStates = {
|
|
|
5114
5114
|
completed_with_errors: ["warning", "\uC644\uB8CC (\uC624\uB958)"],
|
|
5115
5115
|
failed: ["danger", "\uC2E4\uD328"]
|
|
5116
5116
|
};
|
|
5117
|
-
function
|
|
5117
|
+
function KjunExecutionStatusBadge({
|
|
5118
5118
|
status,
|
|
5119
5119
|
label,
|
|
5120
5120
|
size = "md"
|
|
5121
5121
|
}) {
|
|
5122
5122
|
const state = status ? executionStates[status] : void 0;
|
|
5123
|
-
return /* @__PURE__ */ jsx29(
|
|
5123
|
+
return /* @__PURE__ */ jsx29(KjunBadge, { variant: (state == null ? void 0 : state[0]) || "secondary", size, dot: status === "running", children: label || (state == null ? void 0 : state[1]) || (status ? "\uC54C \uC218 \uC5C6\uC74C" : "\uC2E4\uD589 \uC774\uB825 \uC5C6\uC74C") });
|
|
5124
5124
|
}
|
|
5125
|
-
function
|
|
5125
|
+
function KjunSparkline({
|
|
5126
5126
|
data = [],
|
|
5127
5127
|
width = tokens28.extensions.financial.sparklineWidth,
|
|
5128
5128
|
height = tokens28.extensions.financial.sparklineHeight,
|
|
@@ -5133,7 +5133,7 @@ function DsSparkline({
|
|
|
5133
5133
|
stretch = false,
|
|
5134
5134
|
ariaLabel
|
|
5135
5135
|
}) {
|
|
5136
|
-
const id = useId11().replace(/:/g, ""), values = data.filter(Number.isFinite), min = Math.min(...values), max = Math.max(...values), range = max - min || 1, points = values.map(
|
|
5136
|
+
const id = "kjun-" + useId11().replace(/:/g, ""), values = data.filter(Number.isFinite), min = Math.min(...values), max = Math.max(...values), range = max - min || 1, points = values.map(
|
|
5137
5137
|
(v, i) => `${2 + i / Math.max(1, values.length - 1) * (width - 4)},${2 + height - 4 - (v - min) / range * (height - 4)}`
|
|
5138
5138
|
).join(" "), change = values.length > 1 ? values[values.length - 1] - values[0] : 0, line = color || `var(--_kjun-color-${change === 0 ? "text-tertiary" : semantic === "status" ? change > 0 ? "success" : "danger" : change > 0 ? "price-up" : "price-down"})`;
|
|
5139
5139
|
return /* @__PURE__ */ jsxs23(
|
|
@@ -5182,12 +5182,36 @@ function DsSparkline({
|
|
|
5182
5182
|
// shared/package-runtime/table.ts
|
|
5183
5183
|
import { nextTableSort } from "@kjun-ui/tokens";
|
|
5184
5184
|
import { useEffect as useEffect15, useRef as useRef25, useState as useState24 } from "react";
|
|
5185
|
+
|
|
5186
|
+
// shared/package-runtime/table-model.ts
|
|
5185
5187
|
function getValue(row, key) {
|
|
5186
5188
|
return key.split(".").reduce(
|
|
5187
5189
|
(value, part) => value != null && typeof value === "object" ? value[part] : void 0,
|
|
5188
5190
|
row
|
|
5189
5191
|
);
|
|
5190
5192
|
}
|
|
5193
|
+
function sortTableRows(data, sort, { sortable = true, sortMode = "client" }) {
|
|
5194
|
+
if (!sortable || sortMode === "server" || !sort.key) return data;
|
|
5195
|
+
return [...data].sort((a, b) => {
|
|
5196
|
+
const x = getValue(a, sort.key), y = getValue(b, sort.key);
|
|
5197
|
+
const order = x === y ? 0 : typeof x === "number" && typeof y === "number" ? x > y ? 1 : -1 : String(x) > String(y) ? 1 : -1;
|
|
5198
|
+
return sort.order === "asc" ? order : -order;
|
|
5199
|
+
});
|
|
5200
|
+
}
|
|
5201
|
+
var tableRowKey = (row, rowKey, index = 0) => {
|
|
5202
|
+
var _a;
|
|
5203
|
+
return (_a = getValue(row, rowKey)) != null ? _a : index;
|
|
5204
|
+
};
|
|
5205
|
+
function tableSelection(rows, selected, rowKey) {
|
|
5206
|
+
const isSelected = (row) => selected.some((r) => getValue(r, rowKey) === getValue(row, rowKey));
|
|
5207
|
+
const all = rows.length > 0 && rows.every(isSelected);
|
|
5208
|
+
return { isSelected, all, some: rows.some(isSelected) && !all };
|
|
5209
|
+
}
|
|
5210
|
+
var toggleSelectedRow = (selected, row, rowKey) => selected.some((r) => getValue(r, rowKey) === getValue(row, rowKey)) ? selected.filter((r) => getValue(r, rowKey) !== getValue(row, rowKey)) : [...selected, row];
|
|
5211
|
+
var toggleAllRows = (rows, all) => all ? [] : [...rows];
|
|
5212
|
+
var toggleExpandedRow = (expanded, id, single) => expanded.includes(id) ? expanded.filter((v) => v !== id) : [...single ? [] : expanded, id];
|
|
5213
|
+
|
|
5214
|
+
// shared/package-runtime/table.ts
|
|
5191
5215
|
function useTableModel(props) {
|
|
5192
5216
|
var _a;
|
|
5193
5217
|
const {
|
|
@@ -5207,17 +5231,9 @@ function useTableModel(props) {
|
|
|
5207
5231
|
}), [internalExpanded, setExpanded] = useState24([]), [search, setSearch] = useState24(""), timer = useRef25(void 0);
|
|
5208
5232
|
useEffect15(() => () => clearTimeout(timer.current), []);
|
|
5209
5233
|
const sort = props.sort === void 0 ? internalSort : (_a = props.sort) != null ? _a : { key: "", order: "asc" };
|
|
5210
|
-
const rows =
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
return sort.order === "asc" ? order : -order;
|
|
5214
|
-
}) : data;
|
|
5215
|
-
const key = (row, index = 0) => {
|
|
5216
|
-
var _a2;
|
|
5217
|
-
return (_a2 = getValue(row, rowKey)) != null ? _a2 : index;
|
|
5218
|
-
};
|
|
5219
|
-
const selectedRow = (row) => selected.some((r) => getValue(r, rowKey) === getValue(row, rowKey));
|
|
5220
|
-
const all = rows.length > 0 && rows.every(selectedRow), some = rows.some(selectedRow) && !all, expanded = expandedRows != null ? expandedRows : internalExpanded;
|
|
5234
|
+
const rows = sortTableRows(data, sort, { sortable, sortMode });
|
|
5235
|
+
const key = (row, index = 0) => tableRowKey(row, rowKey, index);
|
|
5236
|
+
const { isSelected: selectedRow, all, some } = tableSelection(rows, selected, rowKey), expanded = expandedRows != null ? expandedRows : internalExpanded;
|
|
5221
5237
|
return {
|
|
5222
5238
|
rows,
|
|
5223
5239
|
key,
|
|
@@ -5242,14 +5258,10 @@ function useTableModel(props) {
|
|
|
5242
5258
|
if (props.sort === void 0) setSort(next);
|
|
5243
5259
|
(_a2 = props.onSortChange) == null ? void 0 : _a2.call(props, next);
|
|
5244
5260
|
},
|
|
5245
|
-
toggleRow: (row) => onSelectionChange == null ? void 0 : onSelectionChange(
|
|
5246
|
-
|
|
5247
|
-
(r) => getValue(r, rowKey) !== getValue(row, rowKey)
|
|
5248
|
-
) : [...selected, row]
|
|
5249
|
-
),
|
|
5250
|
-
toggleAll: () => onSelectionChange == null ? void 0 : onSelectionChange(all ? [] : [...rows]),
|
|
5261
|
+
toggleRow: (row) => onSelectionChange == null ? void 0 : onSelectionChange(toggleSelectedRow(selected, row, rowKey)),
|
|
5262
|
+
toggleAll: () => onSelectionChange == null ? void 0 : onSelectionChange(toggleAllRows(rows, all)),
|
|
5251
5263
|
toggleExpand: (row, index) => {
|
|
5252
|
-
const
|
|
5264
|
+
const next = toggleExpandedRow(expanded, key(row, index), expandSingle);
|
|
5253
5265
|
setExpanded(next);
|
|
5254
5266
|
onExpandedRowsChange == null ? void 0 : onExpandedRowsChange(next);
|
|
5255
5267
|
}
|
|
@@ -5323,9 +5335,9 @@ function TableToolbar({
|
|
|
5323
5335
|
selected.length,
|
|
5324
5336
|
"\uAC1C \uC120\uD0DD"
|
|
5325
5337
|
] }),
|
|
5326
|
-
/* @__PURE__ */ jsx30(
|
|
5338
|
+
/* @__PURE__ */ jsx30(KjunButton, { size: "xs", variant: "ghost", onClick: toggleAll, children: "\uC804\uCCB4 \uC120\uD0DD" }),
|
|
5327
5339
|
/* @__PURE__ */ jsx30(
|
|
5328
|
-
|
|
5340
|
+
KjunButton,
|
|
5329
5341
|
{
|
|
5330
5342
|
size: "xs",
|
|
5331
5343
|
variant: "ghost",
|
|
@@ -5339,7 +5351,7 @@ function TableToolbar({
|
|
|
5339
5351
|
),
|
|
5340
5352
|
(searchable || toolbar) && /* @__PURE__ */ jsxs24("div", { className: "kjun-table-toolbar", children: [
|
|
5341
5353
|
searchable && /* @__PURE__ */ jsx30(
|
|
5342
|
-
|
|
5354
|
+
KjunInput,
|
|
5343
5355
|
{
|
|
5344
5356
|
size: "sm",
|
|
5345
5357
|
style: { width: tokens29.table.searchWidth, maxWidth: "100%" },
|
|
@@ -5376,8 +5388,8 @@ var TableCheck = forwardRef4(
|
|
|
5376
5388
|
const size = tokens30.extensions.checkbox.iconSizes.sm;
|
|
5377
5389
|
return /* @__PURE__ */ jsx31(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs25("span", { className: "kjun-table-check", children: [
|
|
5378
5390
|
/* @__PURE__ */ jsx31("input", { ...props, ref, type: "checkbox" }),
|
|
5379
|
-
/* @__PURE__ */ jsx31(
|
|
5380
|
-
/* @__PURE__ */ jsx31(
|
|
5391
|
+
/* @__PURE__ */ jsx31(KjunIcon, { name: "check", size, className: "kjun-table-check-mark" }),
|
|
5392
|
+
/* @__PURE__ */ jsx31(KjunIcon, { name: "minus", size, className: "kjun-table-check-dash" })
|
|
5381
5393
|
] }) });
|
|
5382
5394
|
}
|
|
5383
5395
|
);
|
|
@@ -5426,7 +5438,7 @@ function TableGrid({ initialLoading, skeletonRows, state, onRowClick, selectable
|
|
|
5426
5438
|
children: [
|
|
5427
5439
|
col.label,
|
|
5428
5440
|
state.sort.key === col.key && /* @__PURE__ */ jsx32(
|
|
5429
|
-
|
|
5441
|
+
KjunIcon,
|
|
5430
5442
|
{
|
|
5431
5443
|
name: state.sort.order === "asc" ? "sort-ascending" : "sort-descending",
|
|
5432
5444
|
size: tokens31.table.sortIconSize
|
|
@@ -5442,10 +5454,10 @@ function TableGrid({ initialLoading, skeletonRows, state, onRowClick, selectable
|
|
|
5442
5454
|
}
|
|
5443
5455
|
),
|
|
5444
5456
|
/* @__PURE__ */ jsx32("tbody", { children: initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsxs26("tr", { "aria-hidden": "true", children: [
|
|
5445
|
-
selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(
|
|
5457
|
+
selectable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell", children: /* @__PURE__ */ jsx32(KjunSkeleton, { type: "block", height: tokens31.table.selectionSize, width: tokens31.table.selectionSize }) }),
|
|
5446
5458
|
expandable && /* @__PURE__ */ jsx32("td", { className: "kjun-table-action-cell" }),
|
|
5447
5459
|
visible.map((col) => /* @__PURE__ */ jsx32("td", { children: /* @__PURE__ */ jsx32(
|
|
5448
|
-
|
|
5460
|
+
KjunSkeleton,
|
|
5449
5461
|
{
|
|
5450
5462
|
type: "block",
|
|
5451
5463
|
height: tokens31.table.skeletonHeight,
|
|
@@ -5519,7 +5531,7 @@ function TableCards({
|
|
|
5519
5531
|
}) {
|
|
5520
5532
|
const { title, subtitle, badges, inline, sections, actions, columnsForSection } = layout;
|
|
5521
5533
|
return /* @__PURE__ */ jsxs27("div", { className: "kjun-table-cards", role: "list", "aria-label": ariaLabel, children: [
|
|
5522
|
-
initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsx33("div", { className: "kjun-table-card", children: /* @__PURE__ */ jsx33(
|
|
5534
|
+
initialLoading ? Array.from({ length: skeletonRows }, (_, i) => /* @__PURE__ */ jsx33("div", { className: "kjun-table-card", children: /* @__PURE__ */ jsx33(KjunSkeleton, { type: "card" }) }, i)) : state.rows.map((row, i) => /* @__PURE__ */ jsxs27(
|
|
5523
5535
|
"div",
|
|
5524
5536
|
{
|
|
5525
5537
|
role: "listitem",
|
|
@@ -5595,7 +5607,7 @@ function TableCards({
|
|
|
5595
5607
|
import { useEffect as useEffect16, useState as useState25 } from "react";
|
|
5596
5608
|
import { isComposingKey as isComposingKey4, tokens as tokens32 } from "@kjun-ui/tokens";
|
|
5597
5609
|
import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5598
|
-
function
|
|
5610
|
+
function KjunTable(props) {
|
|
5599
5611
|
const {
|
|
5600
5612
|
skeletonRows = 8,
|
|
5601
5613
|
emptyText = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
@@ -5657,7 +5669,7 @@ function DsTable(props) {
|
|
|
5657
5669
|
}
|
|
5658
5670
|
);
|
|
5659
5671
|
const expand = (row, i) => /* @__PURE__ */ jsx34(
|
|
5660
|
-
|
|
5672
|
+
KjunButton,
|
|
5661
5673
|
{
|
|
5662
5674
|
variant: "ghost",
|
|
5663
5675
|
size: "xs",
|
|
@@ -5689,7 +5701,7 @@ function DsTable(props) {
|
|
|
5689
5701
|
}
|
|
5690
5702
|
),
|
|
5691
5703
|
/* @__PURE__ */ jsxs28(
|
|
5692
|
-
|
|
5704
|
+
KjunDataState,
|
|
5693
5705
|
{
|
|
5694
5706
|
queryKey: props.queryKey,
|
|
5695
5707
|
resultKey: query2.usesQueryState ? query2.hasCurrentResult ? props.queryKey : null : void 0,
|
|
@@ -5701,7 +5713,7 @@ function DsTable(props) {
|
|
|
5701
5713
|
children: [
|
|
5702
5714
|
card ? /* @__PURE__ */ jsx34(TableCards, { ...{ initialLoading: query2.initialLoading, skeletonRows, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, layout, ariaLabel, customClass, rowKeyDown } }) : /* @__PURE__ */ jsx34(TableGrid, { ...{ initialLoading: query2.initialLoading, skeletonRows, state, onRowClick, selectable, checkbox, cell, expandable, expand, renderExpand, emptyContent, emptyText, visible, maxHeight, stickyHeader, compact, striped, hoverable, ariaLabel, customClass, rowKeyDown }, sortable: props.sortable }),
|
|
5703
5715
|
pagination && /* @__PURE__ */ jsx34(
|
|
5704
|
-
|
|
5716
|
+
KjunPagination,
|
|
5705
5717
|
{
|
|
5706
5718
|
currentPage: pagination.page,
|
|
5707
5719
|
totalPages: Math.ceil(
|
|
@@ -5732,7 +5744,7 @@ var kpiFormat = (item, value = item.value) => {
|
|
|
5732
5744
|
}).format(item.semantic === "price" ? Math.abs(value) : value);
|
|
5733
5745
|
};
|
|
5734
5746
|
var kpiColor = (value, semantic, neutral = "text") => semantic === "price" && Number(value) !== 0 ? `var(--_kjun-color-price-${Number(value) > 0 ? "up" : "down"})` : `var(--_kjun-color-${neutral})`;
|
|
5735
|
-
function
|
|
5747
|
+
function KjunKpiHero(props) {
|
|
5736
5748
|
const {
|
|
5737
5749
|
loading = false,
|
|
5738
5750
|
label,
|
|
@@ -5773,10 +5785,10 @@ function DsKpiHero(props) {
|
|
|
5773
5785
|
/* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__layout", children: [
|
|
5774
5786
|
/* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-hero__main", children: [
|
|
5775
5787
|
/* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__label", children: label }),
|
|
5776
|
-
/* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx35(
|
|
5788
|
+
/* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__value", children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
|
|
5777
5789
|
prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__affix", children: prefix }),
|
|
5778
5790
|
/* @__PURE__ */ jsx35(
|
|
5779
|
-
|
|
5791
|
+
KjunAnimatedNumber,
|
|
5780
5792
|
{
|
|
5781
5793
|
value,
|
|
5782
5794
|
decimals,
|
|
@@ -5788,7 +5800,7 @@ function DsKpiHero(props) {
|
|
|
5788
5800
|
] }) }),
|
|
5789
5801
|
showDelta && /* @__PURE__ */ jsx35("div", { className: "kjun-kpi-hero__delta-line", children: loading ? (
|
|
5790
5802
|
// The placeholder takes the delta numbers' line height, like Vue, so the hero keeps its loaded height.
|
|
5791
|
-
/* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx35(
|
|
5803
|
+
/* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__delta-abs", children: /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: tokens33.extensions.kpiHero.deltaSkeletonWidth }) })
|
|
5792
5804
|
) : /* @__PURE__ */ jsxs29(Fragment14, { children: [
|
|
5793
5805
|
deltaAbsolute !== null && /* @__PURE__ */ jsx35(
|
|
5794
5806
|
"span",
|
|
@@ -5826,7 +5838,7 @@ function DsKpiHero(props) {
|
|
|
5826
5838
|
{
|
|
5827
5839
|
className: "kjun-kpi-hero__sec-value",
|
|
5828
5840
|
style: { color: kpiColor(item.value, item.semantic) },
|
|
5829
|
-
children: loading ? /* @__PURE__ */ jsx35(
|
|
5841
|
+
children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderSecondary == null ? void 0 : renderSecondary(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
|
|
5830
5842
|
item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.prefix }),
|
|
5831
5843
|
/* @__PURE__ */ jsx35("span", { children: kpiFormat(item) }),
|
|
5832
5844
|
item.suffix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-hero__sec-affix", children: item.suffix })
|
|
@@ -5838,7 +5850,7 @@ function DsKpiHero(props) {
|
|
|
5838
5850
|
{
|
|
5839
5851
|
className: "kjun-kpi-hero__sec-desc " + (item.descClass || ""),
|
|
5840
5852
|
style: { color: "var(--_kjun-color-text-tertiary)" },
|
|
5841
|
-
children: loading ? /* @__PURE__ */ jsx35(
|
|
5853
|
+
children: loading ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", width: "7ch", height: "1lh" }) : item.desc
|
|
5842
5854
|
}
|
|
5843
5855
|
)
|
|
5844
5856
|
] }, i)) })
|
|
@@ -5846,7 +5858,7 @@ function DsKpiHero(props) {
|
|
|
5846
5858
|
}
|
|
5847
5859
|
);
|
|
5848
5860
|
}
|
|
5849
|
-
function
|
|
5861
|
+
function KjunKpiRow({
|
|
5850
5862
|
loading = false,
|
|
5851
5863
|
items,
|
|
5852
5864
|
size = "md",
|
|
@@ -5918,7 +5930,7 @@ function DsKpiRow({
|
|
|
5918
5930
|
},
|
|
5919
5931
|
children: [
|
|
5920
5932
|
/* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__label-row", children: [
|
|
5921
|
-
/* @__PURE__ */ jsx35("div", { className: "kjun-kpi-row__label", children: busy && !item.label ? /* @__PURE__ */ jsx35(
|
|
5933
|
+
/* @__PURE__ */ jsx35("div", { className: "kjun-kpi-row__label", children: busy && !item.label ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", width: tokens33.extensions.kpiRow.labelSkeletonWidth, height: tokens33.extensions.kpiRow.labelSkeletonHeight }) : item.label }),
|
|
5922
5934
|
!busy && item.badgePlacement !== "value" && badge(item)
|
|
5923
5935
|
] }),
|
|
5924
5936
|
/* @__PURE__ */ jsxs29("div", { className: "kjun-kpi-row__value-row", children: [
|
|
@@ -5936,14 +5948,14 @@ function DsKpiRow({
|
|
|
5936
5948
|
className: (seg.class || "") + (seg.label ? " kjun-kpi-row__segment--labeled" : "") + (seg.separator ? " kjun-kpi-row__segment--separator" : ""),
|
|
5937
5949
|
children: [
|
|
5938
5950
|
seg.label && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__segment-label", children: seg.label }),
|
|
5939
|
-
busy && !seg.separator ? /* @__PURE__ */ jsx35(
|
|
5951
|
+
busy && !seg.separator ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "3ch" }) : seg.text
|
|
5940
5952
|
]
|
|
5941
5953
|
},
|
|
5942
5954
|
j
|
|
5943
|
-
)) : busy ? /* @__PURE__ */ jsx35(
|
|
5955
|
+
)) : busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "5ch" }) : (renderValue == null ? void 0 : renderValue(item, i)) || /* @__PURE__ */ jsxs29(Fragment14, { children: [
|
|
5944
5956
|
item.prefix && /* @__PURE__ */ jsx35("span", { className: "kjun-kpi-row__affix", children: item.prefix }),
|
|
5945
5957
|
item.animated && typeof item.value === "number" ? /* @__PURE__ */ jsx35(
|
|
5946
|
-
|
|
5958
|
+
KjunAnimatedNumber,
|
|
5947
5959
|
{
|
|
5948
5960
|
fromPrevious: true,
|
|
5949
5961
|
value: item.value,
|
|
@@ -5963,7 +5975,7 @@ function DsKpiRow({
|
|
|
5963
5975
|
style: {
|
|
5964
5976
|
color: item.descClass ? void 0 : kpiColor(item.value, item.semantic, "text-secondary")
|
|
5965
5977
|
},
|
|
5966
|
-
children: busy ? /* @__PURE__ */ jsx35(
|
|
5978
|
+
children: busy ? /* @__PURE__ */ jsx35(KjunSkeleton, { type: "block", height: "1lh", width: "7ch" }) : item.desc
|
|
5967
5979
|
}
|
|
5968
5980
|
)
|
|
5969
5981
|
]
|
|
@@ -6053,8 +6065,8 @@ function MarketIdentity({
|
|
|
6053
6065
|
/* @__PURE__ */ jsxs30("div", { className: "kjun-market-identity-text", children: [
|
|
6054
6066
|
/* @__PURE__ */ jsxs30("div", { className: "kjun-market-name", children: [
|
|
6055
6067
|
/* @__PURE__ */ jsx36("span", { title: label, children: label }),
|
|
6056
|
-
((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx36(
|
|
6057
|
-
((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx36(
|
|
6068
|
+
((_f = props.interestKeys) == null ? void 0 : _f.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "interest", size: "sm", active: true }),
|
|
6069
|
+
((_g = props.favoriteKeys) == null ? void 0 : _g.has(id)) && /* @__PURE__ */ jsx36(KjunCollectionMark, { kind: "favorite", size: "sm", active: true }),
|
|
6058
6070
|
(_h = props.renderNameSuffix) == null ? void 0 : _h.call(props, row)
|
|
6059
6071
|
] }),
|
|
6060
6072
|
(meta || props.renderSubMeta) && /* @__PURE__ */ jsx36("div", { className: "kjun-market-meta", children: ((_i = props.renderSubMeta) == null ? void 0 : _i.call(props, row)) || meta })
|
|
@@ -6077,7 +6089,7 @@ function MarketFooter({
|
|
|
6077
6089
|
} = props;
|
|
6078
6090
|
return /* @__PURE__ */ jsxs30(Fragment15, { children: [
|
|
6079
6091
|
pagination && /* @__PURE__ */ jsx36(
|
|
6080
|
-
|
|
6092
|
+
KjunPagination,
|
|
6081
6093
|
{
|
|
6082
6094
|
currentPage: pagination.page,
|
|
6083
6095
|
totalPages: Math.ceil(pagination.total / pagination.size),
|
|
@@ -6101,7 +6113,7 @@ function MarketFooter({
|
|
|
6101
6113
|
|
|
6102
6114
|
// packages/react/src/market-cards.tsx
|
|
6103
6115
|
import { Fragment as Fragment16, jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6104
|
-
function
|
|
6116
|
+
function KjunMarketCards(props) {
|
|
6105
6117
|
const {
|
|
6106
6118
|
rows = [],
|
|
6107
6119
|
rowKey = "id",
|
|
@@ -6152,13 +6164,13 @@ function DsMarketCards(props) {
|
|
|
6152
6164
|
metricDisplay: display
|
|
6153
6165
|
}) : /* @__PURE__ */ jsxs31(Fragment16, { children: [
|
|
6154
6166
|
/* @__PURE__ */ jsx37(
|
|
6155
|
-
|
|
6167
|
+
KjunDataState,
|
|
6156
6168
|
{
|
|
6157
6169
|
...props,
|
|
6158
6170
|
loadingPadding: "none",
|
|
6159
6171
|
empty: !rows.length,
|
|
6160
|
-
loadingContent: /* @__PURE__ */ jsx37(
|
|
6161
|
-
emptyContent: /* @__PURE__ */ jsx37(
|
|
6172
|
+
loadingContent: /* @__PURE__ */ jsx37(KjunListSkeleton, { variant: "compact" }),
|
|
6173
|
+
emptyContent: /* @__PURE__ */ jsx37(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
|
|
6162
6174
|
children: /* @__PURE__ */ jsxs31("div", { children: [
|
|
6163
6175
|
state.pill && /* @__PURE__ */ jsx37("div", { className: "kjun-market-column-label", children: state.pill.label }),
|
|
6164
6176
|
rows.map((row, i) => {
|
|
@@ -6183,21 +6195,21 @@ function DsMarketCards(props) {
|
|
|
6183
6195
|
children: [
|
|
6184
6196
|
/* @__PURE__ */ jsx37(MarketIdentity, { row, props }),
|
|
6185
6197
|
/* @__PURE__ */ jsx37("div", { className: "kjun-market-quote", children: ((_b = state.pill) == null ? void 0 : _b.format) === "sparkline" ? /* @__PURE__ */ jsx37(
|
|
6186
|
-
|
|
6198
|
+
KjunSparkline,
|
|
6187
6199
|
{
|
|
6188
6200
|
data: getValue(row, state.key) || [],
|
|
6189
6201
|
width: tokens34.extensions.marketTable.sparklineWidth,
|
|
6190
6202
|
height: tokens34.extensions.marketTable.sparklineHeight
|
|
6191
6203
|
}
|
|
6192
|
-
) : state.pill ? /* @__PURE__ */ jsx37(Fragment16, { children: metricLoading(row, state.key) ? /* @__PURE__ */ jsx37(
|
|
6193
|
-
|
|
6204
|
+
) : state.pill ? /* @__PURE__ */ jsx37(Fragment16, { children: metricLoading(row, state.key) ? /* @__PURE__ */ jsx37(KjunSkeleton, { type: "block", height: tokens34.extensions.marketTable.valueSkeletonHeight, width: tokens34.extensions.marketTable.valueSkeletonWidth }) : isChange && getValue(row, state.key) != null ? /* @__PURE__ */ jsx37(
|
|
6205
|
+
KjunSignedValue,
|
|
6194
6206
|
{
|
|
6195
6207
|
value: finiteNumber(getValue(row, state.key)),
|
|
6196
6208
|
formatter: () => display(row),
|
|
6197
6209
|
stale: !!getValue(row, "stale"),
|
|
6198
6210
|
tone: "pill"
|
|
6199
6211
|
}
|
|
6200
|
-
) : isPrice && getValue(row, state.key) == null ? /* @__PURE__ */ jsx37(
|
|
6212
|
+
) : isPrice && getValue(row, state.key) == null ? /* @__PURE__ */ jsx37(KjunSkeleton, { type: "block", height: tokens34.extensions.financial.priceSkeletonHeight, width: tokens34.extensions.financial.priceSkeletonWidth }) : /* @__PURE__ */ jsxs31("div", { className: "kjun-market-metric", children: [
|
|
6201
6213
|
(_c = props.renderMetricPrefix) == null ? void 0 : _c.call(
|
|
6202
6214
|
props,
|
|
6203
6215
|
row,
|
|
@@ -6222,7 +6234,7 @@ function DsMarketCards(props) {
|
|
|
6222
6234
|
// packages/react/src/market-list.tsx
|
|
6223
6235
|
import { tokens as tokens35 } from "@kjun-ui/tokens";
|
|
6224
6236
|
import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6225
|
-
function
|
|
6237
|
+
function KjunMarketSimpleList(props) {
|
|
6226
6238
|
const {
|
|
6227
6239
|
rows = [],
|
|
6228
6240
|
rowKey = "id",
|
|
@@ -6236,14 +6248,14 @@ function DsMarketSimpleList(props) {
|
|
|
6236
6248
|
} = props;
|
|
6237
6249
|
return /* @__PURE__ */ jsxs32("div", { className: "kjun-market-simple-list", children: [
|
|
6238
6250
|
/* @__PURE__ */ jsx38(
|
|
6239
|
-
|
|
6251
|
+
KjunDataState,
|
|
6240
6252
|
{
|
|
6241
6253
|
...props,
|
|
6242
6254
|
loadingPadding: "none",
|
|
6243
6255
|
empty: !rows.length,
|
|
6244
6256
|
emptyText: emptyMessage,
|
|
6245
|
-
loadingContent: /* @__PURE__ */ jsx38(
|
|
6246
|
-
emptyContent: /* @__PURE__ */ jsx38(
|
|
6257
|
+
loadingContent: /* @__PURE__ */ jsx38(KjunListSkeleton, {}),
|
|
6258
|
+
emptyContent: /* @__PURE__ */ jsx38(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
|
|
6247
6259
|
children: /* @__PURE__ */ jsx38("div", { children: rows.map((row, i) => {
|
|
6248
6260
|
var _a, _b;
|
|
6249
6261
|
const price = priceValue(row), change = changeValue(row), stale = !!getValue(row, "stale"), source = String(getValue(row, "source") || ""), fetchedAt = String(getValue(row, "fetched_at") || "");
|
|
@@ -6268,7 +6280,7 @@ function DsMarketSimpleList(props) {
|
|
|
6268
6280
|
/* @__PURE__ */ jsx38(MarketIdentity, { row, props }),
|
|
6269
6281
|
/* @__PURE__ */ jsxs32("div", { className: "kjun-market-quote", children: [
|
|
6270
6282
|
/* @__PURE__ */ jsx38("div", { className: "kjun-market-price", children: /* @__PURE__ */ jsx38(
|
|
6271
|
-
|
|
6283
|
+
KjunPriceCell,
|
|
6272
6284
|
{
|
|
6273
6285
|
value: price,
|
|
6274
6286
|
formatter: priceFormatter,
|
|
@@ -6278,16 +6290,16 @@ function DsMarketSimpleList(props) {
|
|
|
6278
6290
|
) }),
|
|
6279
6291
|
/* @__PURE__ */ jsxs32("div", { className: "kjun-market-change", children: [
|
|
6280
6292
|
price !== null && ((_b = props.renderPricePrefix) == null ? void 0 : _b.call(props, row)),
|
|
6281
|
-
(finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx38(
|
|
6282
|
-
|
|
6293
|
+
(finiteNumber(price) !== null || !changeLoading(row) && finiteNumber(change) !== null) && (closingPrice && !stale ? /* @__PURE__ */ jsx38(KjunBadge, { variant: "secondary", size: "xs", children: "\uC885\uAC00" }) : /* @__PURE__ */ jsx38(
|
|
6294
|
+
KjunFreshness,
|
|
6283
6295
|
{
|
|
6284
6296
|
stale,
|
|
6285
6297
|
source: closingPrice ? "close" : source,
|
|
6286
6298
|
fetchedAt
|
|
6287
6299
|
}
|
|
6288
6300
|
)),
|
|
6289
|
-
changeLoading(row) ? /* @__PURE__ */ jsx38(
|
|
6290
|
-
|
|
6301
|
+
changeLoading(row) ? /* @__PURE__ */ jsx38(KjunSkeleton, { type: "block", height: tokens35.extensions.marketList.changeSkeletonHeight, width: tokens35.extensions.marketList.changeSkeletonWidth }) : change !== null ? /* @__PURE__ */ jsx38(
|
|
6302
|
+
KjunSignedValue,
|
|
6291
6303
|
{
|
|
6292
6304
|
value: change,
|
|
6293
6305
|
stale,
|
|
@@ -6312,11 +6324,11 @@ function DsMarketSimpleList(props) {
|
|
|
6312
6324
|
// packages/react/src/market-panel.tsx
|
|
6313
6325
|
import { tokens as tokens36 } from "@kjun-ui/tokens";
|
|
6314
6326
|
import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6315
|
-
function
|
|
6327
|
+
function KjunMarketListPanel({
|
|
6316
6328
|
controls,
|
|
6317
6329
|
children
|
|
6318
6330
|
}) {
|
|
6319
|
-
return /* @__PURE__ */ jsxs33(
|
|
6331
|
+
return /* @__PURE__ */ jsxs33(KjunCard, { children: [
|
|
6320
6332
|
/* @__PURE__ */ jsx39("div", { children: controls }),
|
|
6321
6333
|
/* @__PURE__ */ jsx39("div", { style: { marginTop: tokens36.dimension.value16, borderTop: `${tokens36.border.defaultWidth}px solid var(--_kjun-color-border)` }, children })
|
|
6322
6334
|
] });
|
|
@@ -6342,7 +6354,7 @@ function watchTrailingOverflow(element, onChange) {
|
|
|
6342
6354
|
// packages/react/src/market-table.tsx
|
|
6343
6355
|
import { useEffect as useEffect18, useRef as useRef27, useState as useState27 } from "react";
|
|
6344
6356
|
import { jsx as jsx40, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6345
|
-
function
|
|
6357
|
+
function KjunMarketTable(props) {
|
|
6346
6358
|
const {
|
|
6347
6359
|
rows = [],
|
|
6348
6360
|
columns,
|
|
@@ -6366,13 +6378,13 @@ function DsMarketTable(props) {
|
|
|
6366
6378
|
const render = (row, col) => {
|
|
6367
6379
|
const value = getValue(row, col.key), stale = !!getValue(row, "stale");
|
|
6368
6380
|
if (cellLoading(row, col))
|
|
6369
|
-
return /* @__PURE__ */ jsx40(
|
|
6381
|
+
return /* @__PURE__ */ jsx40(KjunSkeleton, { type: "block", height: tokens37.extensions.marketTable.valueSkeletonHeight, width: tokens37.extensions.marketTable.valueSkeletonWidth });
|
|
6370
6382
|
if (renderCell) return renderCell(row, col);
|
|
6371
6383
|
if (["stock_name", "name", "symbol"].includes(col.key))
|
|
6372
6384
|
return /* @__PURE__ */ jsx40(MarketIdentity, { row, props });
|
|
6373
6385
|
if (col.type === "sparkline")
|
|
6374
6386
|
return /* @__PURE__ */ jsx40(
|
|
6375
|
-
|
|
6387
|
+
KjunSparkline,
|
|
6376
6388
|
{
|
|
6377
6389
|
data: Array.isArray(value) ? value : [],
|
|
6378
6390
|
width: tokens37.extensions.marketTable.sparklineWidth,
|
|
@@ -6381,7 +6393,7 @@ function DsMarketTable(props) {
|
|
|
6381
6393
|
);
|
|
6382
6394
|
if (col.type === "price")
|
|
6383
6395
|
return /* @__PURE__ */ jsx40(
|
|
6384
|
-
|
|
6396
|
+
KjunPriceCell,
|
|
6385
6397
|
{
|
|
6386
6398
|
value: finiteNumber(value),
|
|
6387
6399
|
formatter: priceFormatter,
|
|
@@ -6391,7 +6403,7 @@ function DsMarketTable(props) {
|
|
|
6391
6403
|
);
|
|
6392
6404
|
if (col.type === "percent")
|
|
6393
6405
|
return value == null ? "-" : /* @__PURE__ */ jsx40(
|
|
6394
|
-
|
|
6406
|
+
KjunSignedValue,
|
|
6395
6407
|
{
|
|
6396
6408
|
value: finiteNumber(value),
|
|
6397
6409
|
format: "percent",
|
|
@@ -6407,7 +6419,7 @@ function DsMarketTable(props) {
|
|
|
6407
6419
|
);
|
|
6408
6420
|
const text = formatMetric ? formatMetric(value, col.type || "text", { currency, row, column: col }) : value == null ? "-" : String(value);
|
|
6409
6421
|
return ["investor", "net_amount", "net_volume"].includes(col.type || "") ? /* @__PURE__ */ jsx40(
|
|
6410
|
-
|
|
6422
|
+
KjunSignedValue,
|
|
6411
6423
|
{
|
|
6412
6424
|
value: finiteNumber(value),
|
|
6413
6425
|
formatter: () => text,
|
|
@@ -6424,20 +6436,20 @@ function DsMarketTable(props) {
|
|
|
6424
6436
|
ref: domainColorRef(showActions && rows.length > 0 && !props.loading),
|
|
6425
6437
|
children: [
|
|
6426
6438
|
/* @__PURE__ */ jsx40(
|
|
6427
|
-
|
|
6439
|
+
KjunDataState,
|
|
6428
6440
|
{
|
|
6429
6441
|
...props,
|
|
6430
6442
|
loadingPadding: "none",
|
|
6431
6443
|
empty: !rows.length,
|
|
6432
6444
|
emptyText: emptyMessage,
|
|
6433
|
-
loadingContent: /* @__PURE__ */ jsx40(
|
|
6434
|
-
emptyContent: /* @__PURE__ */ jsx40(
|
|
6445
|
+
loadingContent: /* @__PURE__ */ jsx40(KjunMarketTableSkeleton, { columns, showActions }),
|
|
6446
|
+
emptyContent: /* @__PURE__ */ jsx40(KjunEmpty, { text: emptyMessage, description: emptySubMessage }),
|
|
6435
6447
|
children: /* @__PURE__ */ jsx40("div", { className: "kjun-table-scroll", ref: scroller, "data-fade-end": fadeEnd || void 0, children: /* @__PURE__ */ jsxs34("table", { "aria-label": "\uC2DC\uC7A5 \uB370\uC774\uD130", className: "kjun-market-table-grid", style: webMarketLayout(columns, showActions).tableStyle, children: [
|
|
6436
6448
|
/* @__PURE__ */ jsx40(MarketColumns, { columns, showActions }),
|
|
6437
6449
|
/* @__PURE__ */ jsx40("thead", { children: /* @__PURE__ */ jsxs34("tr", { children: [
|
|
6438
6450
|
showActions && /* @__PURE__ */ jsxs34("th", { className: "kjun-market-actions", children: [
|
|
6439
|
-
/* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(
|
|
6440
|
-
/* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(
|
|
6451
|
+
/* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "interest", size: "md" }) }),
|
|
6452
|
+
/* @__PURE__ */ jsx40("span", { className: "kjun-market-actions-mark", children: /* @__PURE__ */ jsx40(KjunCollectionMark, { kind: "favorite", size: "md" }) })
|
|
6441
6453
|
] }),
|
|
6442
6454
|
columns.map((col) => /* @__PURE__ */ jsx40(
|
|
6443
6455
|
"th",
|
|
@@ -6455,7 +6467,7 @@ function DsMarketTable(props) {
|
|
|
6455
6467
|
children: [
|
|
6456
6468
|
col.label,
|
|
6457
6469
|
/* @__PURE__ */ jsx40(
|
|
6458
|
-
|
|
6470
|
+
KjunIcon,
|
|
6459
6471
|
{
|
|
6460
6472
|
name: sortKey === col.key ? sortOrder === "asc" ? "sort-ascending" : "sort-descending" : "arrows-sort",
|
|
6461
6473
|
size: tokens37.extensions.marketTable.sortIconSize
|
|
@@ -6483,7 +6495,7 @@ function DsMarketTable(props) {
|
|
|
6483
6495
|
children: [
|
|
6484
6496
|
showActions && /* @__PURE__ */ jsxs34("td", { className: "kjun-market-actions", children: [
|
|
6485
6497
|
/* @__PURE__ */ jsx40(
|
|
6486
|
-
|
|
6498
|
+
KjunIconToggle,
|
|
6487
6499
|
{
|
|
6488
6500
|
size: "xs",
|
|
6489
6501
|
active: (_a = props.interestKeys) == null ? void 0 : _a.has(id),
|
|
@@ -6502,7 +6514,7 @@ function DsMarketTable(props) {
|
|
|
6502
6514
|
}
|
|
6503
6515
|
),
|
|
6504
6516
|
/* @__PURE__ */ jsx40(
|
|
6505
|
-
|
|
6517
|
+
KjunIconToggle,
|
|
6506
6518
|
{
|
|
6507
6519
|
size: "xs",
|
|
6508
6520
|
active: (_d = props.favoriteKeys) == null ? void 0 : _d.has(id),
|
|
@@ -6531,7 +6543,7 @@ function DsMarketTable(props) {
|
|
|
6531
6543
|
children: [
|
|
6532
6544
|
render(row, col),
|
|
6533
6545
|
col.key === (priceCol == null ? void 0 : priceCol.key) && /* @__PURE__ */ jsx40(
|
|
6534
|
-
|
|
6546
|
+
KjunFreshness,
|
|
6535
6547
|
{
|
|
6536
6548
|
stale: !!getValue(row, "stale"),
|
|
6537
6549
|
source: String(getValue(row, "source") || ""),
|
|
@@ -6561,7 +6573,7 @@ function DsMarketTable(props) {
|
|
|
6561
6573
|
// packages/react/src/list.tsx
|
|
6562
6574
|
import { useId as useId12 } from "react";
|
|
6563
6575
|
import { Fragment as Fragment17, jsx as jsx41, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6564
|
-
function
|
|
6576
|
+
function KjunListRow({ title, description, leading, trailing, actions, href, disabled = false, onClick }) {
|
|
6565
6577
|
const contents = /* @__PURE__ */ jsxs35(Fragment17, { children: [
|
|
6566
6578
|
leading && /* @__PURE__ */ jsx41("span", { className: "kjun-list-leading", children: leading }),
|
|
6567
6579
|
/* @__PURE__ */ jsxs35("span", { className: "kjun-list-body", children: [
|
|
@@ -6576,8 +6588,8 @@ function DsListRow({ title, description, leading, trailing, actions, href, disab
|
|
|
6576
6588
|
actions && /* @__PURE__ */ jsx41("div", { className: "kjun-list-actions", "data-disabled": disabled || void 0, inert: disabled || void 0, children: actions })
|
|
6577
6589
|
] });
|
|
6578
6590
|
}
|
|
6579
|
-
function
|
|
6580
|
-
const id = useId12();
|
|
6591
|
+
function KjunListSection({ title, description, actions, children, ariaLabel }) {
|
|
6592
|
+
const id = "kjun-" + useId12();
|
|
6581
6593
|
return /* @__PURE__ */ jsxs35("section", { className: "kjun-list-section", "aria-labelledby": title ? id : void 0, "aria-label": title ? void 0 : ariaLabel, children: [
|
|
6582
6594
|
(title || description || actions) && /* @__PURE__ */ jsxs35("div", { className: "kjun-list-heading", children: [
|
|
6583
6595
|
/* @__PURE__ */ jsxs35("div", { children: [
|
|
@@ -6593,7 +6605,7 @@ function DsListSection({ title, description, actions, children, ariaLabel }) {
|
|
|
6593
6605
|
// packages/react/src/app-navigation.tsx
|
|
6594
6606
|
import { tokens as tokens38 } from "@kjun-ui/tokens";
|
|
6595
6607
|
import { jsx as jsx42, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6596
|
-
function
|
|
6608
|
+
function KjunTopNavigation({ title, description, leading, actions, safeAreaTop = 0 }) {
|
|
6597
6609
|
return /* @__PURE__ */ jsx42(TopNavigationContext.Provider, { value: tokens38.extensions.topNavigation, children: /* @__PURE__ */ jsx42("header", { className: "kjun-top-navigation", style: { paddingTop: Math.max(0, safeAreaTop) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-content", children: [
|
|
6598
6610
|
leading && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-leading", children: leading }),
|
|
6599
6611
|
/* @__PURE__ */ jsxs36("div", { className: "kjun-navigation-title", children: [
|
|
@@ -6603,7 +6615,7 @@ function DsTopNavigation({ title, description, leading, actions, safeAreaTop = 0
|
|
|
6603
6615
|
actions && /* @__PURE__ */ jsx42("div", { className: "kjun-navigation-actions", children: actions })
|
|
6604
6616
|
] }) }) });
|
|
6605
6617
|
}
|
|
6606
|
-
function
|
|
6618
|
+
function KjunBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\uC0C9", safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = true, onNavigate }) {
|
|
6607
6619
|
const hasIcons = items.some((item) => item.icon);
|
|
6608
6620
|
if (keyboardVisible && hideOnKeyboard) return null;
|
|
6609
6621
|
return /* @__PURE__ */ jsx42("nav", { className: "kjun-bottom-navigation", "data-icons": hasIcons || void 0, "aria-label": ariaLabel, style: { paddingBottom: Math.max(0, safeAreaBottom) }, children: items.map((item) => {
|
|
@@ -6613,7 +6625,7 @@ function DsBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\uC0
|
|
|
6613
6625
|
else onNavigate == null ? void 0 : onNavigate(item.key, event);
|
|
6614
6626
|
}, children: [
|
|
6615
6627
|
hasIcons && /* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-icon", children: [
|
|
6616
|
-
item.icon && /* @__PURE__ */ jsx42(
|
|
6628
|
+
item.icon && /* @__PURE__ */ jsx42(KjunIcon, { name: item.icon, size: tokens38.extensions.bottomNavigation.iconSize }),
|
|
6617
6629
|
badge
|
|
6618
6630
|
] }),
|
|
6619
6631
|
/* @__PURE__ */ jsxs36("span", { className: "kjun-navigation-label", children: [
|
|
@@ -6623,7 +6635,7 @@ function DsBottomNavigation({ items, value, ariaLabel = "\uC8FC\uC694 \uD0D0\uC0
|
|
|
6623
6635
|
] }, item.key);
|
|
6624
6636
|
}) });
|
|
6625
6637
|
}
|
|
6626
|
-
function
|
|
6638
|
+
function KjunBottomActionBar({ description, children, safeAreaBottom = 0, keyboardVisible = false, hideOnKeyboard = false }) {
|
|
6627
6639
|
if (keyboardVisible && hideOnKeyboard) return null;
|
|
6628
6640
|
return /* @__PURE__ */ jsx42("div", { className: "kjun-bottom-action-bar", style: { paddingBottom: tokens38.extensions.navigation.padding + Math.max(0, safeAreaBottom) }, children: /* @__PURE__ */ jsxs36("div", { className: "kjun-bottom-action-content", children: [
|
|
6629
6641
|
description && /* @__PURE__ */ jsx42("p", { children: description }),
|
|
@@ -6635,7 +6647,7 @@ function DsBottomActionBar({ description, children, safeAreaBottom = 0, keyboard
|
|
|
6635
6647
|
import { useRef as useRef28, useState as useState28 } from "react";
|
|
6636
6648
|
import { tokens as tokens39 } from "@kjun-ui/tokens";
|
|
6637
6649
|
import { jsx as jsx43, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6638
|
-
function
|
|
6650
|
+
function KjunImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover", fallback: fallback2, lazy = true, onLoad, onError }) {
|
|
6639
6651
|
const current = useRef28({ src, version: 0 });
|
|
6640
6652
|
if (current.current.src !== src) current.current = { src, version: current.current.version + 1 };
|
|
6641
6653
|
const version = current.current.version;
|
|
@@ -6652,21 +6664,21 @@ function DsImage({ src, alt, decorative = false, aspectRatio = 1, fit = "cover",
|
|
|
6652
6664
|
setResult({ version, state: "error" });
|
|
6653
6665
|
onError == null ? void 0 : onError();
|
|
6654
6666
|
} }, version),
|
|
6655
|
-
failed && /* @__PURE__ */ jsx43("span", { className: "kjun-image-fallback", role: decorative ? void 0 : "img", "aria-label": decorative ? void 0 : alt, "aria-hidden": decorative || void 0, children: fallback2 != null ? fallback2 : /* @__PURE__ */ jsx43(
|
|
6667
|
+
failed && /* @__PURE__ */ jsx43("span", { className: "kjun-image-fallback", role: decorative ? void 0 : "img", "aria-label": decorative ? void 0 : alt, "aria-hidden": decorative || void 0, children: fallback2 != null ? fallback2 : /* @__PURE__ */ jsx43(KjunIcon, { name: "image", size: tokens39.extensions.image.fallbackIconSize }) })
|
|
6656
6668
|
] });
|
|
6657
6669
|
}
|
|
6658
|
-
function
|
|
6659
|
-
return /* @__PURE__ */ jsx43("span", { className: "kjun-avatar", "data-shape": shape, "data-size": size, style: { width: tokens39.extensions.avatar[size], height: tokens39.extensions.avatar[size] }, children: /* @__PURE__ */ jsx43(
|
|
6670
|
+
function KjunAvatar({ src, name = "", alt, decorative = false, size = "md", shape = "circle", fallback: fallback2, onLoad, onError }) {
|
|
6671
|
+
return /* @__PURE__ */ jsx43("span", { className: "kjun-avatar", "data-shape": shape, "data-size": size, style: { width: tokens39.extensions.avatar[size], height: tokens39.extensions.avatar[size] }, children: /* @__PURE__ */ jsx43(KjunImage, { src, alt: alt || name || "\uC0AC\uC6A9\uC790", decorative, fallback: fallback2 != null ? fallback2 : Array.from(name.trim())[0] || /* @__PURE__ */ jsx43(KjunIcon, { name: "user", size: tokens39.extensions.avatar.fallbackIconSizes[size] }), onLoad, onError }) });
|
|
6660
6672
|
}
|
|
6661
6673
|
|
|
6662
6674
|
// packages/react/src/chip.tsx
|
|
6663
6675
|
import { tokens as tokens40 } from "@kjun-ui/tokens";
|
|
6664
6676
|
import { jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6665
|
-
function
|
|
6677
|
+
function KjunChip({ label, icon, removable = false, disabled = false, size = "md", removeLabel, onRemove }) {
|
|
6666
6678
|
return /* @__PURE__ */ jsxs38("span", { className: "kjun-chip", "data-size": size, "data-disabled": disabled, "data-removable": removable, children: [
|
|
6667
|
-
icon && /* @__PURE__ */ jsx44(
|
|
6679
|
+
icon && /* @__PURE__ */ jsx44(KjunIcon, { name: icon, size: tokens40.extensions.chip.iconSizes[size] }),
|
|
6668
6680
|
/* @__PURE__ */ jsx44("span", { children: label }),
|
|
6669
|
-
removable && /* @__PURE__ */ jsx44("button", { type: "button", "aria-label": removeLabel || label + " \uC0AD\uC81C", disabled, onClick: onRemove, children: /* @__PURE__ */ jsx44(
|
|
6681
|
+
removable && /* @__PURE__ */ jsx44("button", { type: "button", "aria-label": removeLabel || label + " \uC0AD\uC81C", disabled, onClick: onRemove, children: /* @__PURE__ */ jsx44(KjunIcon, { name: "x", size: tokens40.extensions.chip.removeIconSizes[size] }) })
|
|
6670
6682
|
] });
|
|
6671
6683
|
}
|
|
6672
6684
|
|
|
@@ -6712,10 +6724,10 @@ function RangeInput({ value, min = 0, max = 100, step = 1, disabled = false, lab
|
|
|
6712
6724
|
] }) })
|
|
6713
6725
|
] });
|
|
6714
6726
|
}
|
|
6715
|
-
function
|
|
6727
|
+
function KjunSlider(props) {
|
|
6716
6728
|
return /* @__PURE__ */ jsx45(RangeInput, { ...props });
|
|
6717
6729
|
}
|
|
6718
|
-
function
|
|
6730
|
+
function KjunRangeSlider(props) {
|
|
6719
6731
|
return /* @__PURE__ */ jsx45(RangeInput, { ...props });
|
|
6720
6732
|
}
|
|
6721
6733
|
|
|
@@ -6723,7 +6735,7 @@ function DsRangeSlider(props) {
|
|
|
6723
6735
|
import { useEffect as useEffect20, useRef as useRef30, useState as useState29 } from "react";
|
|
6724
6736
|
import { createNumberDomain, quantityKeyAction, tokens as tokens41 } from "@kjun-ui/tokens";
|
|
6725
6737
|
import { jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6726
|
-
function
|
|
6738
|
+
function KjunQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disabled = false, error = false, size = "md", block = false, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }) {
|
|
6727
6739
|
const geometry = tokens41.extensions.compound;
|
|
6728
6740
|
const buttonStyle = { width: tokens41.input[size].height, padding: 0 };
|
|
6729
6741
|
const domain = createNumberDomain({ min, max, step, precision });
|
|
@@ -6771,7 +6783,7 @@ function DsQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disab
|
|
|
6771
6783
|
else move(action === "increment" ? 1 : -1);
|
|
6772
6784
|
};
|
|
6773
6785
|
return /* @__PURE__ */ jsx46(IconFallbacks, { icons: componentIcons, children: /* @__PURE__ */ jsxs40("div", { className: "kjun-quantity", "data-size": size, "data-block": block, "data-error": error || !!(field == null ? void 0 : field.error), children: [
|
|
6774
|
-
/* @__PURE__ */ jsx46(
|
|
6786
|
+
/* @__PURE__ */ jsx46(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uC904\uC774\uAE30", disabled: blocked || value <= min, onMouseDown: (e) => e.preventDefault(), onClick: () => move(-1), prefixIcon: "minus" }),
|
|
6775
6787
|
/* @__PURE__ */ jsx46(
|
|
6776
6788
|
"input",
|
|
6777
6789
|
{
|
|
@@ -6806,7 +6818,7 @@ function DsQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disab
|
|
|
6806
6818
|
"aria-required": (field == null ? void 0 : field.required) || void 0
|
|
6807
6819
|
}
|
|
6808
6820
|
),
|
|
6809
|
-
/* @__PURE__ */ jsx46(
|
|
6821
|
+
/* @__PURE__ */ jsx46(KjunButton, { size, style: buttonStyle, variant: "ghost", ariaLabel: "\uC218\uB7C9 \uB298\uB9AC\uAE30", disabled: blocked || max !== void 0 && value >= max, onMouseDown: (e) => e.preventDefault(), onClick: () => move(1), prefixIcon: "plus" })
|
|
6810
6822
|
] }) });
|
|
6811
6823
|
}
|
|
6812
6824
|
|
|
@@ -6814,7 +6826,7 @@ function DsQuantityStepper({ value, min = 0, max, step = 1, precision = 0, disab
|
|
|
6814
6826
|
import { Fragment as Fragment19, useEffect as useEffect21, useId as useId13, useMemo as useMemo2, useRef as useRef31 } from "react";
|
|
6815
6827
|
import { createTimeDomain } from "@kjun-ui/tokens";
|
|
6816
6828
|
import { jsx as jsx47, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6817
|
-
function
|
|
6829
|
+
function KjunTimePicker({ value, precision = "minute", min, max, minuteStep = 1, secondStep = 1, disabled = false, error = false, clearable = true, size = "md", ariaLabel = "\uC2DC\uAC04", onValueChange, onChangeCommit }) {
|
|
6818
6830
|
const root = useRef31(null);
|
|
6819
6831
|
const field = useKjunField(), uid = useId13();
|
|
6820
6832
|
const fieldId = (field == null ? void 0 : field.id) || `kjun-time-${uid}`;
|
|
@@ -6839,7 +6851,7 @@ function DsTimePicker({ value, precision = "minute", min, max, minuteStep = 1, s
|
|
|
6839
6851
|
/* @__PURE__ */ jsx47(FieldContext.Provider, { value: { ...field, id: segmentId, labelId: (field == null ? void 0 : field.labelId) ? `${field.labelId} ${labelId}` : void 0 }, children: /* @__PURE__ */ jsxs41("div", { className: "kjun-time-segment", children: [
|
|
6840
6852
|
/* @__PURE__ */ jsx47("span", { id: labelId, className: "kjun-sr-only", "aria-hidden": true, children: label }),
|
|
6841
6853
|
/* @__PURE__ */ jsx47(
|
|
6842
|
-
|
|
6854
|
+
KjunSelect,
|
|
6843
6855
|
{
|
|
6844
6856
|
value: time === null ? null : domain.part(time, index),
|
|
6845
6857
|
options: domain.options(value, index).map((n) => ({ value: n, label: String(n).padStart(2, "0") })),
|
|
@@ -6858,7 +6870,7 @@ function DsTimePicker({ value, precision = "minute", min, max, minuteStep = 1, s
|
|
|
6858
6870
|
] }) })
|
|
6859
6871
|
] }, label);
|
|
6860
6872
|
}) }) }),
|
|
6861
|
-
clearable && value !== null && /* @__PURE__ */ jsx47(
|
|
6873
|
+
clearable && value !== null && /* @__PURE__ */ jsx47(KjunButton, { className: "kjun-time-clear", size, variant: "ghost", prefixIcon: "x", ariaLabel: ariaLabel + " \uC9C0\uC6B0\uAE30", disabled: disabled || !valid, onClick: () => {
|
|
6862
6874
|
var _a, _b;
|
|
6863
6875
|
change(null);
|
|
6864
6876
|
(_b = (_a = root.current) == null ? void 0 : _a.querySelector(".kjun-select-trigger")) == null ? void 0 : _b.focus();
|
|
@@ -6866,85 +6878,85 @@ function DsTimePicker({ value, precision = "minute", min, max, minuteStep = 1, s
|
|
|
6866
6878
|
] });
|
|
6867
6879
|
}
|
|
6868
6880
|
export {
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
DsFilterGroup,
|
|
6899
|
-
DsFormActions,
|
|
6900
|
-
DsFormGroup,
|
|
6901
|
-
DsFormSkeleton,
|
|
6902
|
-
DsFreshness,
|
|
6903
|
-
DsHeatmapCell,
|
|
6904
|
-
DsIcon,
|
|
6905
|
-
DsIconToggle,
|
|
6906
|
-
DsImage,
|
|
6907
|
-
DsInput,
|
|
6908
|
-
DsKpiHero,
|
|
6909
|
-
DsKpiRow,
|
|
6910
|
-
DsListRow,
|
|
6911
|
-
DsListSection,
|
|
6912
|
-
DsListSkeleton,
|
|
6913
|
-
DsMarketCards,
|
|
6914
|
-
DsMarketListPanel,
|
|
6915
|
-
DsMarketSimpleList,
|
|
6916
|
-
DsMarketTable,
|
|
6917
|
-
DsMarketTableSkeleton,
|
|
6918
|
-
DsMenuButton,
|
|
6919
|
-
DsModal,
|
|
6920
|
-
DsPagination,
|
|
6921
|
-
DsPopover,
|
|
6922
|
-
DsPriceCell,
|
|
6923
|
-
DsProgress,
|
|
6924
|
-
DsProgressCell,
|
|
6925
|
-
DsQuantityStepper,
|
|
6926
|
-
DsRadio,
|
|
6927
|
-
DsRadioGroup,
|
|
6928
|
-
DsRangeSlider,
|
|
6929
|
-
DsRefreshButton,
|
|
6930
|
-
DsScrollFade,
|
|
6931
|
-
DsSearchInput,
|
|
6932
|
-
DsSelect,
|
|
6933
|
-
DsSignedValue,
|
|
6934
|
-
DsSkeleton,
|
|
6935
|
-
DsSlider,
|
|
6936
|
-
DsSparkline,
|
|
6937
|
-
DsSpinner,
|
|
6938
|
-
DsSwitch,
|
|
6939
|
-
DsTabPane,
|
|
6940
|
-
DsTable,
|
|
6941
|
-
DsTabs,
|
|
6942
|
-
DsTextarea,
|
|
6943
|
-
DsTimePicker,
|
|
6944
|
-
DsTooltip,
|
|
6945
|
-
DsTopNavigation,
|
|
6881
|
+
KjunAccordion,
|
|
6882
|
+
KjunAccordionItem,
|
|
6883
|
+
KjunAlert,
|
|
6884
|
+
KjunAnimatedNumber,
|
|
6885
|
+
KjunAvatar,
|
|
6886
|
+
KjunBadge,
|
|
6887
|
+
KjunBottomActionBar,
|
|
6888
|
+
KjunBottomNavigation,
|
|
6889
|
+
KjunBreadcrumb,
|
|
6890
|
+
KjunButton,
|
|
6891
|
+
KjunButtonGroup,
|
|
6892
|
+
KjunCard,
|
|
6893
|
+
KjunChartSkeleton,
|
|
6894
|
+
KjunCheckbox,
|
|
6895
|
+
KjunChip,
|
|
6896
|
+
KjunCollectionMark,
|
|
6897
|
+
KjunCombobox,
|
|
6898
|
+
KjunCopyButton,
|
|
6899
|
+
KjunDataState,
|
|
6900
|
+
KjunDatePicker,
|
|
6901
|
+
KjunDeviation,
|
|
6902
|
+
KjunDrawer,
|
|
6903
|
+
KjunDropdown,
|
|
6904
|
+
KjunDropdownDivider,
|
|
6905
|
+
KjunDropdownItem,
|
|
6906
|
+
KjunEmpty,
|
|
6907
|
+
KjunErrorBoundary,
|
|
6908
|
+
KjunExecutionStatusBadge,
|
|
6909
|
+
KjunExternalLink,
|
|
6946
6910
|
KjunFeedbackProvider,
|
|
6911
|
+
KjunFilterGroup,
|
|
6912
|
+
KjunFormActions,
|
|
6913
|
+
KjunFormGroup,
|
|
6914
|
+
KjunFormSkeleton,
|
|
6915
|
+
KjunFreshness,
|
|
6916
|
+
KjunHeatmapCell,
|
|
6917
|
+
KjunIcon,
|
|
6918
|
+
KjunIconToggle,
|
|
6919
|
+
KjunImage,
|
|
6920
|
+
KjunInput,
|
|
6921
|
+
KjunKpiHero,
|
|
6922
|
+
KjunKpiRow,
|
|
6923
|
+
KjunListRow,
|
|
6924
|
+
KjunListSection,
|
|
6925
|
+
KjunListSkeleton,
|
|
6926
|
+
KjunMarketCards,
|
|
6927
|
+
KjunMarketListPanel,
|
|
6928
|
+
KjunMarketSimpleList,
|
|
6929
|
+
KjunMarketTable,
|
|
6930
|
+
KjunMarketTableSkeleton,
|
|
6931
|
+
KjunMenuButton,
|
|
6932
|
+
KjunModal,
|
|
6933
|
+
KjunPagination,
|
|
6934
|
+
KjunPopover,
|
|
6935
|
+
KjunPriceCell,
|
|
6936
|
+
KjunProgress,
|
|
6937
|
+
KjunProgressCell,
|
|
6947
6938
|
KjunProvider,
|
|
6939
|
+
KjunQuantityStepper,
|
|
6940
|
+
KjunRadio,
|
|
6941
|
+
KjunRadioGroup,
|
|
6942
|
+
KjunRangeSlider,
|
|
6943
|
+
KjunRefreshButton,
|
|
6944
|
+
KjunScrollFade,
|
|
6945
|
+
KjunSearchInput,
|
|
6946
|
+
KjunSelect,
|
|
6947
|
+
KjunSignedValue,
|
|
6948
|
+
KjunSkeleton,
|
|
6949
|
+
KjunSlider,
|
|
6950
|
+
KjunSparkline,
|
|
6951
|
+
KjunSpinner,
|
|
6952
|
+
KjunSwitch,
|
|
6953
|
+
KjunTabPane,
|
|
6954
|
+
KjunTable,
|
|
6955
|
+
KjunTabs,
|
|
6956
|
+
KjunTextarea,
|
|
6957
|
+
KjunTimePicker,
|
|
6958
|
+
KjunTooltip,
|
|
6959
|
+
KjunTopNavigation,
|
|
6948
6960
|
groupKeydown,
|
|
6949
6961
|
useKjunFeedback
|
|
6950
6962
|
};
|