@lucian-seo/lucian-ui 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/{Input-DzJm1Kv4.js → Input-Bv2FRGIe.js} +2 -2
- package/dist/lib/{Input-DzJm1Kv4.js.map → Input-Bv2FRGIe.js.map} +1 -1
- package/dist/lib/{Pagination-AWL5k5zG.js → Popover-Cq6yhJaK.js} +193 -132
- package/dist/lib/Popover-Cq6yhJaK.js.map +1 -0
- package/dist/lib/{Switch-DyKAqvde.js → Switch-DmKcoBT0.js} +3 -3
- package/dist/lib/Switch-DmKcoBT0.js.map +1 -0
- package/dist/lib/{Tag-Z8PjnJFt.js → Tag-CnNuj4nV.js} +2 -2
- package/dist/lib/{Tag-Z8PjnJFt.js.map → Tag-CnNuj4nV.js.map} +1 -1
- package/dist/lib/{TagInput-CeA0n7ax.js → TagInput-BcSSnJY_.js} +4 -4
- package/dist/lib/{TagInput-CeA0n7ax.js.map → TagInput-BcSSnJY_.js.map} +1 -1
- package/dist/lib/{ToggleButton-r73bokux.js → ToggleButton-CcST9ch9.js} +3 -3
- package/dist/lib/{ToggleButton-r73bokux.js.map → ToggleButton-CcST9ch9.js.map} +1 -1
- package/dist/lib/{Toolbar-DDOaxG3B.js → Toolbar-Cq2wF4Yg.js} +67 -127
- package/dist/lib/Toolbar-Cq2wF4Yg.js.map +1 -0
- package/dist/lib/{Tooltip-BW1-aVDg.js → Tooltip-1flxtzgM.js} +2 -2
- package/dist/lib/{Tooltip-BW1-aVDg.js.map → Tooltip-1flxtzgM.js.map} +1 -1
- package/dist/lib/{VisuallyHidden-DcE0EFpo.js → VisuallyHidden-Bht2-rdy.js} +16 -14
- package/dist/lib/VisuallyHidden-Bht2-rdy.js.map +1 -0
- package/dist/lib/{VoiceControlBar-Bx016mmz.js → VoiceControlBar-iWzq7jiw.js} +1754 -1494
- package/dist/lib/VoiceControlBar-iWzq7jiw.js.map +1 -0
- package/dist/lib/{Waveform-EahaE6uD.js → Waveform-CtI9GetQ.js} +3 -3
- package/dist/lib/Waveform-CtI9GetQ.js.map +1 -0
- package/dist/lib/components/common/Badge/Badge.d.ts +1 -9
- package/dist/lib/components/common/Glass/Glass.d.ts +1 -3
- package/dist/lib/components/common/index.js +5 -5
- package/dist/lib/components/composed/index.js +3 -3
- package/dist/lib/components/derived/index.js +3 -3
- package/dist/lib/components/extended/DataGrid/DataGrid.clipboard.d.ts +2 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +6 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.features.d.ts +2 -0
- package/dist/lib/components/extended/index.js +1 -1
- package/dist/lib/index.js +12 -12
- package/dist/lib/styles.css +1 -1
- package/dist/lib/tokens.css +29 -34
- package/docs/DATAGRID.md +106 -0
- package/package.json +1 -1
- package/dist/lib/Pagination-AWL5k5zG.js.map +0 -1
- package/dist/lib/Switch-DyKAqvde.js.map +0 -1
- package/dist/lib/Toolbar-DDOaxG3B.js.map +0 -1
- package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +0 -1
- package/dist/lib/VoiceControlBar-Bx016mmz.js.map +0 -1
- package/dist/lib/Waveform-EahaE6uD.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, r, s as i, t as a } from "./VisuallyHidden-
|
|
2
|
-
import { i as o, n as s, r as c, t as l } from "./Tooltip-
|
|
1
|
+
import { a as e, n as t, o as n, r, s as i, t as a } from "./VisuallyHidden-Bht2-rdy.js";
|
|
2
|
+
import { i as o, n as s, r as c, t as l } from "./Tooltip-1flxtzgM.js";
|
|
3
3
|
import { t as u } from "./Text-D7hoYpuZ.js";
|
|
4
|
-
import { t as d } from "./Tag-
|
|
5
|
-
import {
|
|
4
|
+
import { t as d } from "./Tag-CnNuj4nV.js";
|
|
5
|
+
import { h as f } from "./Popover-Cq6yhJaK.js";
|
|
6
6
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
7
|
import { Children as g, createContext as _, forwardRef as v, useCallback as y, useContext as b, useEffect as x, useId as S, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
8
8
|
import { AlertTriangle as D, ArrowDown as O, ArrowUp as k, CalendarDays as A, CalendarRange as j, Check as M, CheckCircle2 as N, ChevronDown as P, ChevronLeft as F, ChevronRight as I, ChevronsUpDown as L, Info as R, Menu as z, Plus as B, Search as V, X as H, XCircle as U } from "lucide-react";
|
|
@@ -1911,68 +1911,8 @@ function He({ title: e, breadcrumb: n, description: r, status: i, actions: a, on
|
|
|
1911
1911
|
});
|
|
1912
1912
|
}
|
|
1913
1913
|
//#endregion
|
|
1914
|
-
//#region src/components/composed/Popover/Popover.tsx
|
|
1915
|
-
function Ue({ children: e, content: n, title: r, titleHidden: i, description: a, side: o = "bottom", align: s = "center", width: c = "md", arrow: l = !0, dismissible: u, open: d, defaultOpen: f, onOpenChange: p, className: g, ..._ }) {
|
|
1916
|
-
let v = S();
|
|
1917
|
-
return /* @__PURE__ */ h(W.Root, {
|
|
1918
|
-
open: d,
|
|
1919
|
-
defaultOpen: f,
|
|
1920
|
-
onOpenChange: p,
|
|
1921
|
-
children: [/* @__PURE__ */ m(W.Trigger, {
|
|
1922
|
-
asChild: !0,
|
|
1923
|
-
children: e
|
|
1924
|
-
}), /* @__PURE__ */ m(W.Portal, { children: /* @__PURE__ */ h(W.Content, {
|
|
1925
|
-
..._,
|
|
1926
|
-
className: `popover ${g ?? ""}`.trim(),
|
|
1927
|
-
side: o,
|
|
1928
|
-
align: s,
|
|
1929
|
-
sideOffset: 8,
|
|
1930
|
-
collisionPadding: 12,
|
|
1931
|
-
"data-width": c,
|
|
1932
|
-
"aria-labelledby": `${v}-title`,
|
|
1933
|
-
"aria-describedby": a ? `${v}-description` : void 0,
|
|
1934
|
-
children: [
|
|
1935
|
-
/* @__PURE__ */ h("div", {
|
|
1936
|
-
className: "popover__head",
|
|
1937
|
-
"data-empty": i && !u ? "" : void 0,
|
|
1938
|
-
children: [/* @__PURE__ */ m("h2", {
|
|
1939
|
-
className: "popover__title",
|
|
1940
|
-
id: `${v}-title`,
|
|
1941
|
-
"data-hidden": i ? "" : void 0,
|
|
1942
|
-
children: r
|
|
1943
|
-
}), u ? /* @__PURE__ */ m(W.Close, {
|
|
1944
|
-
asChild: !0,
|
|
1945
|
-
children: /* @__PURE__ */ m(t, {
|
|
1946
|
-
icon: H,
|
|
1947
|
-
label: `${r} 닫기`,
|
|
1948
|
-
size: "sm",
|
|
1949
|
-
variant: "ghost",
|
|
1950
|
-
tone: "neutral",
|
|
1951
|
-
"data-part": "close"
|
|
1952
|
-
})
|
|
1953
|
-
}) : null]
|
|
1954
|
-
}),
|
|
1955
|
-
a ? /* @__PURE__ */ m("p", {
|
|
1956
|
-
className: "popover__description",
|
|
1957
|
-
id: `${v}-description`,
|
|
1958
|
-
children: a
|
|
1959
|
-
}) : null,
|
|
1960
|
-
/* @__PURE__ */ m("div", {
|
|
1961
|
-
className: "popover__body",
|
|
1962
|
-
children: n
|
|
1963
|
-
}),
|
|
1964
|
-
l ? /* @__PURE__ */ m(W.Arrow, {
|
|
1965
|
-
className: "popover__arrow",
|
|
1966
|
-
width: 12,
|
|
1967
|
-
height: 6
|
|
1968
|
-
}) : null
|
|
1969
|
-
]
|
|
1970
|
-
}) })]
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
//#endregion
|
|
1974
1914
|
//#region src/components/composed/PreferenceRow/PreferenceRow.tsx
|
|
1975
|
-
function
|
|
1915
|
+
function Ue({ title: e, control: t, description: n, children: r, icon: i, lead: a, stacked: o, disabled: s, className: c, ...l }) {
|
|
1976
1916
|
let u = S(), d = `${u}-title`, f = `${u}-description`;
|
|
1977
1917
|
return /* @__PURE__ */ h("div", {
|
|
1978
1918
|
...l,
|
|
@@ -2015,7 +1955,7 @@ function We({ title: e, control: t, description: n, children: r, icon: i, lead:
|
|
|
2015
1955
|
}
|
|
2016
1956
|
//#endregion
|
|
2017
1957
|
//#region src/components/composed/SidePanel/SidePanel.tsx
|
|
2018
|
-
function
|
|
1958
|
+
function We({ title: e, meta: n, children: r, footer: i, onClose: a, className: o, ...s }) {
|
|
2019
1959
|
return /* @__PURE__ */ h("section", {
|
|
2020
1960
|
className: `side-panel ${o ?? ""}`.trim(),
|
|
2021
1961
|
"aria-label": e,
|
|
@@ -2058,10 +1998,10 @@ function Ge({ title: e, meta: n, children: r, footer: i, onClose: a, className:
|
|
|
2058
1998
|
}
|
|
2059
1999
|
//#endregion
|
|
2060
2000
|
//#region src/components/composed/SidebarNav/SidebarNav.tsx
|
|
2061
|
-
function
|
|
2001
|
+
function Ge(e) {
|
|
2062
2002
|
return `${e.title ?? ""}::${e.items.map((e) => e.value).join("|")}`;
|
|
2063
2003
|
}
|
|
2064
|
-
function
|
|
2004
|
+
function Ke({ groups: e, value: t, label: n, collapsed: r, emphasis: o = "soft", icons: s = "bare", variant: c = "plain", className: u, ...d }) {
|
|
2065
2005
|
let f = S(), [g, _] = E({});
|
|
2066
2006
|
return /* @__PURE__ */ m("nav", {
|
|
2067
2007
|
...d,
|
|
@@ -2072,7 +2012,7 @@ function qe({ groups: e, value: t, label: n, collapsed: r, emphasis: o = "soft",
|
|
|
2072
2012
|
"data-icons": s,
|
|
2073
2013
|
"data-variant": c,
|
|
2074
2014
|
children: e.map((e, n) => {
|
|
2075
|
-
let o =
|
|
2015
|
+
let o = Ge(e), s = g[o] ?? (e.collapsible ? e.defaultOpen === !1 : !1), c = `${f}-group-${n}`;
|
|
2076
2016
|
return /* @__PURE__ */ h("div", {
|
|
2077
2017
|
className: "sidebar-nav__group",
|
|
2078
2018
|
"data-collapsible": e.collapsible && !r ? "" : void 0,
|
|
@@ -2167,8 +2107,8 @@ function qe({ groups: e, value: t, label: n, collapsed: r, emphasis: o = "soft",
|
|
|
2167
2107
|
}
|
|
2168
2108
|
//#endregion
|
|
2169
2109
|
//#region src/components/composed/Sheet/Sheet.tsx
|
|
2170
|
-
var
|
|
2171
|
-
function
|
|
2110
|
+
var qe = 6, Je = .5;
|
|
2111
|
+
function Ye({ title: e, children: t, detents: n = ["peek", "full"], detent: r, onDetentChange: i, fit: a = "viewport", footer: o, className: s, ...c }) {
|
|
2172
2112
|
let l = T(null), u = T(null), [d, f] = E(0), [p, g] = E(!1), _ = T(!1), v = n.length ? n : ["peek", "full"], y = Math.max(0, v.indexOf(r)), b = v[(y + 1) % v.length], x = (e) => {
|
|
2173
2113
|
let t = v[Math.min(v.length - 1, Math.max(0, y + e))];
|
|
2174
2114
|
t !== r && i(t);
|
|
@@ -2190,7 +2130,7 @@ function Xe({ title: e, children: t, detents: n = ["peek", "full"], detent: r, o
|
|
|
2190
2130
|
if (!t) return;
|
|
2191
2131
|
let n = e.clientY - t.y;
|
|
2192
2132
|
if (!t.axis) {
|
|
2193
|
-
if (Math.abs(n) <
|
|
2133
|
+
if (Math.abs(n) < qe) return;
|
|
2194
2134
|
t.axis = !0, g(!0);
|
|
2195
2135
|
}
|
|
2196
2136
|
t.last = t.at, t.at = e.clientY, t.before = t.time, t.time = e.timeStamp;
|
|
@@ -2200,7 +2140,7 @@ function Xe({ title: e, children: t, detents: n = ["peek", "full"], detent: r, o
|
|
|
2200
2140
|
let t = u.current;
|
|
2201
2141
|
if (u.current = null, g(!1), f(0), !t || !t.axis) return;
|
|
2202
2142
|
e.type === "pointerup" && (_.current = !0);
|
|
2203
|
-
let n = e.clientY - t.y, r = l.current?.offsetHeight ?? 0, i = Math.max(1, t.time - t.before), a = (t.at - t.last) / i, o = Math.abs(n) > r / 4, s = Math.abs(a) >
|
|
2143
|
+
let n = e.clientY - t.y, r = l.current?.offsetHeight ?? 0, i = Math.max(1, t.time - t.before), a = (t.at - t.last) / i, o = Math.abs(n) > r / 4, s = Math.abs(a) > Je;
|
|
2204
2144
|
!o && !s || x((s ? a : n) > 0 ? -1 : 1);
|
|
2205
2145
|
};
|
|
2206
2146
|
return /* @__PURE__ */ h("section", {
|
|
@@ -2233,7 +2173,7 @@ function Xe({ title: e, children: t, detents: n = ["peek", "full"], detent: r, o
|
|
|
2233
2173
|
"aria-hidden": "true"
|
|
2234
2174
|
}), /* @__PURE__ */ m("span", {
|
|
2235
2175
|
className: "sheet__handle-label",
|
|
2236
|
-
children: `${e} — ${
|
|
2176
|
+
children: `${e} — ${Xe[b]}`
|
|
2237
2177
|
})]
|
|
2238
2178
|
}),
|
|
2239
2179
|
/* @__PURE__ */ m("div", {
|
|
@@ -2255,12 +2195,12 @@ function Xe({ title: e, children: t, detents: n = ["peek", "full"], detent: r, o
|
|
|
2255
2195
|
]
|
|
2256
2196
|
});
|
|
2257
2197
|
}
|
|
2258
|
-
var
|
|
2198
|
+
var Xe = {
|
|
2259
2199
|
peek: "살짝 열기",
|
|
2260
2200
|
half: "반쯤 열기",
|
|
2261
2201
|
full: "끝까지 열기"
|
|
2262
|
-
},
|
|
2263
|
-
function
|
|
2202
|
+
}, Ze = "a[href], button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
|
|
2203
|
+
function Qe({ steps: e, step: t, onStepChange: n, label: i, finishLabel: a = "완료", className: o, ...s }) {
|
|
2264
2204
|
let c = t === null ? null : e[t], [l, u] = E(null), [d, f] = E(0), p = T(null), g = T(null), _ = t !== null, v = y(() => {
|
|
2265
2205
|
if (!c) return;
|
|
2266
2206
|
let e = document.querySelector(`[data-spotlight="${CSS.escape(c.target)}"]`);
|
|
@@ -2314,7 +2254,7 @@ function $e({ steps: e, step: t, onStepChange: n, label: i, finishLabel: a = "
|
|
|
2314
2254
|
if (e.key !== "Tab") return;
|
|
2315
2255
|
let t = p.current;
|
|
2316
2256
|
if (!t) return;
|
|
2317
|
-
let r = Array.from(t.querySelectorAll(
|
|
2257
|
+
let r = Array.from(t.querySelectorAll(Ze)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true");
|
|
2318
2258
|
if (r.length === 0) {
|
|
2319
2259
|
e.preventDefault(), t.focus();
|
|
2320
2260
|
return;
|
|
@@ -2396,7 +2336,7 @@ function $e({ steps: e, step: t, onStepChange: n, label: i, finishLabel: a = "
|
|
|
2396
2336
|
}
|
|
2397
2337
|
//#endregion
|
|
2398
2338
|
//#region src/components/composed/Stepper/Stepper.tsx
|
|
2399
|
-
function
|
|
2339
|
+
function $e({ steps: e, current: t, errors: n = [], label: r, orientation: o = "horizontal", size: s = "md", className: c, ...l }) {
|
|
2400
2340
|
let u = e.findIndex((e) => e.value === t), d = (e, t) => n.includes(e.value) ? "error" : t < u ? "done" : t === u ? "current" : "upcoming", f = {
|
|
2401
2341
|
done: "완료",
|
|
2402
2342
|
current: "진행 중",
|
|
@@ -2451,7 +2391,7 @@ function et({ steps: e, current: t, errors: n = [], label: r, orientation: o = "
|
|
|
2451
2391
|
}
|
|
2452
2392
|
//#endregion
|
|
2453
2393
|
//#region src/components/composed/Table/Table.tsx
|
|
2454
|
-
function
|
|
2394
|
+
function et({ columns: e, rows: t, rowKey: n, caption: r, captionHidden: c, sort: l, onSortChange: u, selectedKeys: d, onSelectionChange: f, rowLabel: p, stickyHeader: g, rowProps: _, density: v = "comfortable", changed: y, empty: b, loading: x, loadingRows: S = 3, error: C, className: w, ...T }) {
|
|
2455
2395
|
let D = !!f, A = new Set(d ?? []), j = t.map(n), M = j.length > 0 && j.every((e) => A.has(e)), N = j.some((e) => A.has(e)), P = !!C, F = P && t.length === 0 ? "error" : x ? "loading" : t.length === 0 ? "empty" : "rows", [I, R] = E(!1), z = P && F === "rows", B = () => {
|
|
2456
2396
|
let e = new Set(A);
|
|
2457
2397
|
for (let t of j) M ? e.delete(t) : e.add(t);
|
|
@@ -2604,7 +2544,7 @@ function tt({ columns: e, rows: t, rowKey: n, caption: r, captionHidden: c, sort
|
|
|
2604
2544
|
}
|
|
2605
2545
|
//#endregion
|
|
2606
2546
|
//#region src/components/composed/Tabs/Tabs.tsx
|
|
2607
|
-
var
|
|
2547
|
+
var tt = {
|
|
2608
2548
|
xs: "xs",
|
|
2609
2549
|
sm: "sm",
|
|
2610
2550
|
md: "sm",
|
|
@@ -2612,7 +2552,7 @@ var nt = {
|
|
|
2612
2552
|
xl: "lg",
|
|
2613
2553
|
xxl: "lg"
|
|
2614
2554
|
};
|
|
2615
|
-
function
|
|
2555
|
+
function nt({ tabs: e, value: t, onValueChange: n, label: r, children: a, activation: o = "automatic", variant: s = "underline", size: c = "md", level: l = 1, fitted: u, className: d, ...f }) {
|
|
2616
2556
|
let p = S(), g = T(null), [_, v] = E(null), [y, b] = E(!1);
|
|
2617
2557
|
C(() => {
|
|
2618
2558
|
if (s !== "underline") return;
|
|
@@ -2689,7 +2629,7 @@ function rt({ tabs: e, value: t, onValueChange: n, label: r, children: a, activa
|
|
|
2689
2629
|
children: [
|
|
2690
2630
|
e.icon ? /* @__PURE__ */ m(i, {
|
|
2691
2631
|
icon: e.icon,
|
|
2692
|
-
size:
|
|
2632
|
+
size: tt[c]
|
|
2693
2633
|
}) : null,
|
|
2694
2634
|
/* @__PURE__ */ m("span", {
|
|
2695
2635
|
className: "tabs__label",
|
|
@@ -2717,58 +2657,58 @@ function rt({ tabs: e, value: t, onValueChange: n, label: r, children: a, activa
|
|
|
2717
2657
|
}
|
|
2718
2658
|
//#endregion
|
|
2719
2659
|
//#region src/components/composed/TimeInput/times.ts
|
|
2720
|
-
var
|
|
2721
|
-
function
|
|
2722
|
-
let t = (Math.round(e) %
|
|
2660
|
+
var rt = 1440;
|
|
2661
|
+
function it(e) {
|
|
2662
|
+
let t = (Math.round(e) % rt + rt) % rt;
|
|
2723
2663
|
return `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}`;
|
|
2724
2664
|
}
|
|
2725
|
-
function
|
|
2665
|
+
function at(e) {
|
|
2726
2666
|
if (!e) return null;
|
|
2727
2667
|
let t = /^(\d{2}):(\d{2})$/.exec(e.trim());
|
|
2728
2668
|
if (!t) return null;
|
|
2729
2669
|
let n = Number(t[1]), r = Number(t[2]);
|
|
2730
2670
|
return n > 23 || r > 59 ? null : n * 60 + r;
|
|
2731
2671
|
}
|
|
2732
|
-
function
|
|
2733
|
-
return [
|
|
2672
|
+
function ot(e, t) {
|
|
2673
|
+
return [at(e) ?? 0, at(t) ?? 1439];
|
|
2734
2674
|
}
|
|
2735
|
-
var
|
|
2736
|
-
function
|
|
2675
|
+
var st = (e, t, n) => Math.min(Math.max(e, t), n);
|
|
2676
|
+
function ct(e, t, n) {
|
|
2737
2677
|
if (t <= 1) return Math.round(e);
|
|
2738
2678
|
let r = e - n, i = Math.floor(r / t) * t, a = i + t;
|
|
2739
2679
|
return n + (r - i <= a - r ? i : a);
|
|
2740
2680
|
}
|
|
2741
|
-
function
|
|
2681
|
+
function lt(e, t, n, r) {
|
|
2742
2682
|
let i = Math.max(1, Math.round(t)), a = e - n;
|
|
2743
2683
|
return n + (r === 1 ? Math.floor(a / i) * i + i : Math.ceil(a / i) * i - i);
|
|
2744
2684
|
}
|
|
2745
|
-
var
|
|
2746
|
-
function
|
|
2685
|
+
var ut = (e, t, n) => t <= 1 || ((e - n) % t + t) % t === 0;
|
|
2686
|
+
function dt(e) {
|
|
2747
2687
|
let t = Math.floor(e / 60);
|
|
2748
2688
|
return `${t < 12 ? "오전" : "오후"} ${t % 12 == 0 ? 12 : t % 12}:${String(e % 60).padStart(2, "0")}`;
|
|
2749
2689
|
}
|
|
2750
|
-
function
|
|
2690
|
+
function ft(e) {
|
|
2751
2691
|
let t = Math.floor(e / 60), n = t < 12 ? "오전" : "오후", r = t % 12 == 0 ? 12 : t % 12;
|
|
2752
2692
|
return `${t}시 ${e % 60}분, ${n} ${r}시 ${e % 60}분`;
|
|
2753
2693
|
}
|
|
2754
2694
|
//#endregion
|
|
2755
2695
|
//#region src/components/composed/TimeInput/TimeInput.tsx
|
|
2756
|
-
var
|
|
2696
|
+
var pt = {
|
|
2757
2697
|
hour: 23,
|
|
2758
2698
|
minute: 59
|
|
2759
|
-
},
|
|
2760
|
-
function
|
|
2699
|
+
}, mt = (e) => String(e).padStart(2, "0");
|
|
2700
|
+
function ht({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1, size: s = "md", disabled: c, invalid: l, id: u, name: d, "aria-describedby": f, "aria-labelledby": p, required: g, className: _, ...v }) {
|
|
2761
2701
|
let y = S(), b = u ?? `${y}-hour`, x = `${y}-minute`, C = `${y}-label`, w = `${y}-note`, D = {
|
|
2762
2702
|
hour: `${y}-hour-word`,
|
|
2763
2703
|
minute: `${y}-minute-word`
|
|
2764
|
-
}, O = Math.max(1, Math.round(o)), [k, A] =
|
|
2704
|
+
}, O = Math.max(1, Math.round(o)), [k, A] = ot(r, i), j = k, M = at(e), [N, P] = E(null), [F, I] = E("hour"), L = T({
|
|
2765
2705
|
hour: null,
|
|
2766
2706
|
minute: null
|
|
2767
2707
|
}), R = N ?? {
|
|
2768
2708
|
hour: M === null ? null : Math.floor(M / 60),
|
|
2769
2709
|
minute: M === null ? null : M % 60
|
|
2770
2710
|
}, z = (n) => {
|
|
2771
|
-
let r =
|
|
2711
|
+
let r = it(n);
|
|
2772
2712
|
r !== e && t(r);
|
|
2773
2713
|
}, B = (n, r) => {
|
|
2774
2714
|
let i = n === "hour" ? r : R.hour, a = n === "minute" ? r : R.minute;
|
|
@@ -2784,16 +2724,16 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2784
2724
|
return;
|
|
2785
2725
|
}
|
|
2786
2726
|
P(null), z(i * 60 + a);
|
|
2787
|
-
}, V = () => R.hour !== null && R.minute !== null ? R.hour * 60 + R.minute :
|
|
2788
|
-
let e =
|
|
2727
|
+
}, V = () => R.hour !== null && R.minute !== null ? R.hour * 60 + R.minute : ct(st(M ?? k, k, A), O, j), H = () => {
|
|
2728
|
+
let e = ct(A, O, j);
|
|
2789
2729
|
return e > A ? e - O : e;
|
|
2790
2730
|
}, U = (e) => {
|
|
2791
|
-
let t =
|
|
2731
|
+
let t = st(e, k, A);
|
|
2792
2732
|
P(null), z(t);
|
|
2793
2733
|
}, W = (e) => (t) => {
|
|
2794
2734
|
let n = V(), r = {
|
|
2795
|
-
ArrowUp: () => U(e === "hour" ? n + 60 :
|
|
2796
|
-
ArrowDown: () => U(e === "hour" ? n - 60 :
|
|
2735
|
+
ArrowUp: () => U(e === "hour" ? n + 60 : lt(n, O, j, 1)),
|
|
2736
|
+
ArrowDown: () => U(e === "hour" ? n - 60 : lt(n, O, j, -1)),
|
|
2797
2737
|
Home: () => U(k),
|
|
2798
2738
|
End: () => U(H()),
|
|
2799
2739
|
ArrowRight: () => L.current.minute?.focus(),
|
|
@@ -2808,7 +2748,7 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2808
2748
|
B(e, null);
|
|
2809
2749
|
return;
|
|
2810
2750
|
}
|
|
2811
|
-
let r = Number(n.slice(-2)), i = Number(n.slice(-1)), a = r <=
|
|
2751
|
+
let r = Number(n.slice(-2)), i = Number(n.slice(-1)), a = r <= pt[e] && n.length > 1 ? r : i;
|
|
2812
2752
|
B(e, a), e === "hour" && (a > 2 || n.length > 1) && L.current.minute?.focus();
|
|
2813
2753
|
}, K = (e) => {
|
|
2814
2754
|
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
@@ -2816,10 +2756,10 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2816
2756
|
P(null);
|
|
2817
2757
|
return;
|
|
2818
2758
|
}
|
|
2819
|
-
let t = ct(
|
|
2759
|
+
let t = st(ct(st(R.hour * 60 + R.minute, k, A), O, j), k, A);
|
|
2820
2760
|
P(null), z(t);
|
|
2821
2761
|
}, ee = (e) => {
|
|
2822
|
-
let t = R[e], n = R.hour !== null && R.minute !== null, r = t === null ? "비어 있음" : e === "hour" && n ?
|
|
2762
|
+
let t = R[e], n = R.hour !== null && R.minute !== null, r = t === null ? "비어 있음" : e === "hour" && n ? ft(R.hour * 60 + R.minute) : e === "hour" ? `${t}시` : `${t}분`;
|
|
2823
2763
|
return {
|
|
2824
2764
|
id: e === "hour" ? b : x,
|
|
2825
2765
|
ref: (t) => {
|
|
@@ -2835,13 +2775,13 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2835
2775
|
"aria-describedby": [f, w].filter(Boolean).join(" "),
|
|
2836
2776
|
"aria-valuenow": t ?? void 0,
|
|
2837
2777
|
"aria-valuemin": 0,
|
|
2838
|
-
"aria-valuemax":
|
|
2778
|
+
"aria-valuemax": pt[e],
|
|
2839
2779
|
"aria-valuetext": r,
|
|
2840
2780
|
"aria-invalid": l || void 0,
|
|
2841
2781
|
required: g,
|
|
2842
2782
|
disabled: c,
|
|
2843
2783
|
placeholder: "--",
|
|
2844
|
-
value: t === null ? "" :
|
|
2784
|
+
value: t === null ? "" : mt(t),
|
|
2845
2785
|
onChange: G(e),
|
|
2846
2786
|
onKeyDown: W(e),
|
|
2847
2787
|
onFocus: (t) => {
|
|
@@ -2896,7 +2836,7 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2896
2836
|
className: "time-input__meridiem",
|
|
2897
2837
|
"aria-hidden": "true",
|
|
2898
2838
|
"data-part": "meridiem",
|
|
2899
|
-
children: q === null ? "" :
|
|
2839
|
+
children: q === null ? "" : dt(q)
|
|
2900
2840
|
})
|
|
2901
2841
|
]
|
|
2902
2842
|
}),
|
|
@@ -2909,20 +2849,20 @@ function gt({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1,
|
|
|
2909
2849
|
/* @__PURE__ */ m(a, { children: /* @__PURE__ */ m("span", {
|
|
2910
2850
|
"aria-live": "polite",
|
|
2911
2851
|
"data-part": "off-grid",
|
|
2912
|
-
children: q !== null && !
|
|
2852
|
+
children: q !== null && !ut(q, O, j) ? `${O}분 간격이 아닙니다` : ""
|
|
2913
2853
|
}) })
|
|
2914
2854
|
]
|
|
2915
2855
|
});
|
|
2916
2856
|
}
|
|
2917
2857
|
//#endregion
|
|
2918
2858
|
//#region src/components/composed/Toast/Toast.tsx
|
|
2919
|
-
var
|
|
2859
|
+
var gt = {
|
|
2920
2860
|
neutral: R,
|
|
2921
2861
|
success: N,
|
|
2922
2862
|
warning: D,
|
|
2923
2863
|
danger: U
|
|
2924
2864
|
};
|
|
2925
|
-
function
|
|
2865
|
+
function _t({ toasts: e, onDismiss: t, label: n = "알림", placement: r = "bottom", className: i, ...a }) {
|
|
2926
2866
|
let [o, s] = E(!1);
|
|
2927
2867
|
return /* @__PURE__ */ m("div", {
|
|
2928
2868
|
...a,
|
|
@@ -2937,14 +2877,14 @@ function vt({ toasts: e, onDismiss: t, label: n = "알림", placement: r = "bott
|
|
|
2937
2877
|
e.currentTarget.contains(e.relatedTarget) || s(!1);
|
|
2938
2878
|
},
|
|
2939
2879
|
"data-held": o ? "" : void 0,
|
|
2940
|
-
children: e.map((e) => /* @__PURE__ */ m(
|
|
2880
|
+
children: e.map((e) => /* @__PURE__ */ m(vt, {
|
|
2941
2881
|
toast: e,
|
|
2942
2882
|
held: o,
|
|
2943
2883
|
onDismiss: t
|
|
2944
2884
|
}, e.id))
|
|
2945
2885
|
});
|
|
2946
2886
|
}
|
|
2947
|
-
function
|
|
2887
|
+
function vt({ toast: e, held: n, onDismiss: r }) {
|
|
2948
2888
|
let a = e.tone ?? "neutral", o = e.duration === void 0 ? 6e3 : e.duration, s = T(o ?? 0), c = T(null), l = T(o);
|
|
2949
2889
|
return x(() => {
|
|
2950
2890
|
if (l.current !== o && (l.current = o, s.current = o ?? 0, c.current = null), o === null || n) {
|
|
@@ -2975,7 +2915,7 @@ function yt({ toast: e, held: n, onDismiss: r }) {
|
|
|
2975
2915
|
"aria-hidden": "true"
|
|
2976
2916
|
}, o),
|
|
2977
2917
|
/* @__PURE__ */ m(i, {
|
|
2978
|
-
icon:
|
|
2918
|
+
icon: gt[a],
|
|
2979
2919
|
size: "sm",
|
|
2980
2920
|
className: "toast__glyph"
|
|
2981
2921
|
}),
|
|
@@ -3007,7 +2947,7 @@ function yt({ toast: e, held: n, onDismiss: r }) {
|
|
|
3007
2947
|
}
|
|
3008
2948
|
//#endregion
|
|
3009
2949
|
//#region src/components/composed/Toolbar/Toolbar.tsx
|
|
3010
|
-
var
|
|
2950
|
+
var yt = "button, [href], input, select, textarea, [tabindex]", bt = [
|
|
3011
2951
|
"input",
|
|
3012
2952
|
"textarea",
|
|
3013
2953
|
"select",
|
|
@@ -3016,9 +2956,9 @@ var bt = "button, [href], input, select, textarea, [tabindex]", xt = [
|
|
|
3016
2956
|
"[role=\"searchbox\"]",
|
|
3017
2957
|
"[role=\"spinbutton\"]",
|
|
3018
2958
|
"[role=\"textbox\"]"
|
|
3019
|
-
].join(", "),
|
|
3020
|
-
function
|
|
3021
|
-
let a = T(null), [o, s] = E(0), c = T(/* @__PURE__ */ new WeakSet()), l = y(() => Array.from(a.current?.querySelectorAll(
|
|
2959
|
+
].join(", "), xt = _("horizontal");
|
|
2960
|
+
function St({ children: e, label: t, orientation: n = "horizontal", className: r, ...i }) {
|
|
2961
|
+
let a = T(null), [o, s] = E(0), c = T(/* @__PURE__ */ new WeakSet()), l = y(() => Array.from(a.current?.querySelectorAll(yt) ?? []).filter((e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.closest("[aria-hidden=\"true\"]") ? !1 : e.getAttribute("tabindex") !== "-1" || c.current.has(e)), []);
|
|
3022
2962
|
x(() => {
|
|
3023
2963
|
let e = l();
|
|
3024
2964
|
if (e.length === 0) return;
|
|
@@ -3038,7 +2978,7 @@ function Ct({ children: e, label: t, orientation: n = "horizontal", className: r
|
|
|
3038
2978
|
let n = e === "first" ? 0 : t.length - 1;
|
|
3039
2979
|
s(n), t[n].focus();
|
|
3040
2980
|
}, f = n === "horizontal" ? "ArrowRight" : "ArrowDown", p = n === "horizontal" ? "ArrowLeft" : "ArrowUp", h = (e) => {
|
|
3041
|
-
if (e.target.matches(
|
|
2981
|
+
if (e.target.matches(bt)) return;
|
|
3042
2982
|
let t = {
|
|
3043
2983
|
[f]: () => u(1),
|
|
3044
2984
|
[p]: () => u(-1),
|
|
@@ -3047,7 +2987,7 @@ function Ct({ children: e, label: t, orientation: n = "horizontal", className: r
|
|
|
3047
2987
|
}[e.key];
|
|
3048
2988
|
t && (e.preventDefault(), t());
|
|
3049
2989
|
};
|
|
3050
|
-
return /* @__PURE__ */ m(
|
|
2990
|
+
return /* @__PURE__ */ m(xt.Provider, {
|
|
3051
2991
|
value: n,
|
|
3052
2992
|
children: /* @__PURE__ */ m("div", {
|
|
3053
2993
|
...i,
|
|
@@ -3066,8 +3006,8 @@ function Ct({ children: e, label: t, orientation: n = "horizontal", className: r
|
|
|
3066
3006
|
})
|
|
3067
3007
|
});
|
|
3068
3008
|
}
|
|
3069
|
-
function
|
|
3070
|
-
let n = b(
|
|
3009
|
+
function Ct({ className: e, ...t }) {
|
|
3010
|
+
let n = b(xt);
|
|
3071
3011
|
return /* @__PURE__ */ m("span", {
|
|
3072
3012
|
...t,
|
|
3073
3013
|
className: `toolbar__separator ${e ?? ""}`.trim(),
|
|
@@ -3076,6 +3016,6 @@ function wt({ className: e, ...t }) {
|
|
|
3076
3016
|
});
|
|
3077
3017
|
}
|
|
3078
3018
|
//#endregion
|
|
3079
|
-
export {
|
|
3019
|
+
export { ae as A, ke as C, me as D, xe as E, ne as F, te as I, q as L, re as M, ie as N, le as O, X as P, ee as R, Me as S, $ as T, Le as _, nt as a, Pe as b, Qe as c, We as d, Ue as f, Be as g, ze as h, ht as i, Y as j, se as k, Ye as l, Ve as m, Ct as n, et as o, He as p, _t as r, $e as s, St as t, Ke as u, Fe as v, ye as w, Ne as x, Ie as y, K as z };
|
|
3080
3020
|
|
|
3081
|
-
//# sourceMappingURL=Toolbar-
|
|
3021
|
+
//# sourceMappingURL=Toolbar-Cq2wF4Yg.js.map
|