@luokuiai/lumen-ui 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/lumen-ui.css +1 -1
- package/dist/types/components/{Modal.d.ts → Dialog.d.ts} +4 -4
- package/dist/types/components/Dialog.d.ts.map +1 -0
- package/dist/types/components/{mobilePickerModal.d.ts → mobilePickerDialog.d.ts} +4 -4
- package/dist/types/components/mobilePickerDialog.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/components/Modal.d.ts.map +0 -1
- package/dist/types/components/mobilePickerModal.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3041,7 +3041,7 @@ const ma = "fixed inset-0 z-[100] flex items-center justify-center overflow-y-au
|
|
|
3041
3041
|
children: o,
|
|
3042
3042
|
title: a,
|
|
3043
3043
|
description: l,
|
|
3044
|
-
|
|
3044
|
+
dialogId: s,
|
|
3045
3045
|
overlayId: d,
|
|
3046
3046
|
overlayClassName: m = "",
|
|
3047
3047
|
panelClassName: h = "",
|
|
@@ -3082,7 +3082,7 @@ const ma = "fixed inset-0 z-[100] flex items-center justify-center overflow-y-au
|
|
|
3082
3082
|
/* @__PURE__ */ e.jsx(Ot.Provider, { value: q, children: /* @__PURE__ */ e.jsx(
|
|
3083
3083
|
"div",
|
|
3084
3084
|
{
|
|
3085
|
-
"data-
|
|
3085
|
+
"data-dialog-overlay": d || s,
|
|
3086
3086
|
"data-lumen-motion": !0,
|
|
3087
3087
|
className: `${ma} ${E ? "animate-[lumen-page-fade-out_150ms_ease-in_forwards]" : "animate-[lumen-page-fade-in_200ms_ease-out]"} ${m}`.trim(),
|
|
3088
3088
|
style: { ...F, zIndex: v },
|
|
@@ -3104,17 +3104,17 @@ const ma = "fixed inset-0 z-[100] flex items-center justify-center overflow-y-au
|
|
|
3104
3104
|
"aria-labelledby": de,
|
|
3105
3105
|
"aria-describedby": U,
|
|
3106
3106
|
tabIndex: -1,
|
|
3107
|
-
"data-
|
|
3107
|
+
"data-dialog": s,
|
|
3108
3108
|
"data-lumen-motion": !0,
|
|
3109
3109
|
className: `max-h-[calc(100dvh-1.5rem)] ${E ? "animate-[lumen-modal-out_150ms_ease-in_forwards]" : "animate-[lumen-modal-in_200ms_ease-out]"} ${h}`.trim(),
|
|
3110
3110
|
onClick: (W) => W.stopPropagation(),
|
|
3111
3111
|
children: [
|
|
3112
|
-
Q || X ? /* @__PURE__ */ e.jsxs("div", { "data-
|
|
3112
|
+
Q || X ? /* @__PURE__ */ e.jsxs("div", { "data-dialog-header": !0, children: [
|
|
3113
3113
|
Q ? /* @__PURE__ */ e.jsx(
|
|
3114
3114
|
"div",
|
|
3115
3115
|
{
|
|
3116
3116
|
id: p,
|
|
3117
|
-
"data-
|
|
3117
|
+
"data-dialog-title": !0,
|
|
3118
3118
|
className: "text-[16px] font-semibold leading-6 text-[var(--lumen-color-text)]",
|
|
3119
3119
|
children: _
|
|
3120
3120
|
}
|
|
@@ -3123,7 +3123,7 @@ const ma = "fixed inset-0 z-[100] flex items-center justify-center overflow-y-au
|
|
|
3123
3123
|
"div",
|
|
3124
3124
|
{
|
|
3125
3125
|
id: x,
|
|
3126
|
-
"data-
|
|
3126
|
+
"data-dialog-description": !0,
|
|
3127
3127
|
className: "mt-2 text-[14px] leading-6 text-[var(--lumen-color-text-secondary)]",
|
|
3128
3128
|
children: B
|
|
3129
3129
|
}
|
|
@@ -3223,7 +3223,7 @@ const ma = "fixed inset-0 z-[100] flex items-center justify-center overflow-y-au
|
|
|
3223
3223
|
{
|
|
3224
3224
|
open: t,
|
|
3225
3225
|
onRequestClose: () => r(!1),
|
|
3226
|
-
|
|
3226
|
+
dialogId: "command-palette",
|
|
3227
3227
|
"aria-label": S,
|
|
3228
3228
|
initialFocusRef: b,
|
|
3229
3229
|
overlayClassName: "items-start pt-[max(12vh,3rem)]",
|
|
@@ -3708,7 +3708,7 @@ const Bs = Nn, Os = ({
|
|
|
3708
3708
|
{
|
|
3709
3709
|
open: t,
|
|
3710
3710
|
onRequestClose: c,
|
|
3711
|
-
|
|
3711
|
+
dialogId: "confirm-dialog",
|
|
3712
3712
|
overlayId: "confirm-dialog-overlay",
|
|
3713
3713
|
closeOnOverlayClick: h,
|
|
3714
3714
|
role: "alertdialog",
|
|
@@ -3893,7 +3893,7 @@ const Bs = Nn, Os = ({
|
|
|
3893
3893
|
open: r,
|
|
3894
3894
|
onRequestClose: n,
|
|
3895
3895
|
label: o,
|
|
3896
|
-
|
|
3896
|
+
dialogId: a,
|
|
3897
3897
|
maxWidth: l,
|
|
3898
3898
|
children: s
|
|
3899
3899
|
}) => t ? /* @__PURE__ */ e.jsx(
|
|
@@ -3902,7 +3902,7 @@ const Bs = Nn, Os = ({
|
|
|
3902
3902
|
open: r,
|
|
3903
3903
|
onRequestClose: n,
|
|
3904
3904
|
"aria-label": o,
|
|
3905
|
-
|
|
3905
|
+
dialogId: a,
|
|
3906
3906
|
overlayClassName: "backdrop-blur-none",
|
|
3907
3907
|
panelClassName: g(
|
|
3908
3908
|
"w-full overflow-hidden border border-[var(--lumen-color-border)] bg-[var(--lumen-color-surface)] shadow-[0_18px_46px_var(--lumen-color-shadow)]",
|
|
@@ -4180,7 +4180,7 @@ const Bs = Nn, Os = ({
|
|
|
4180
4180
|
open: $,
|
|
4181
4181
|
onRequestClose: G,
|
|
4182
4182
|
label: T,
|
|
4183
|
-
|
|
4183
|
+
dialogId: "date-picker-panel",
|
|
4184
4184
|
maxWidth: "max-w-[320px]",
|
|
4185
4185
|
children: /* @__PURE__ */ e.jsxs(
|
|
4186
4186
|
"div",
|
|
@@ -5095,7 +5095,7 @@ const Bs = Nn, Os = ({
|
|
|
5095
5095
|
open: k,
|
|
5096
5096
|
onRequestClose: ve,
|
|
5097
5097
|
label: n,
|
|
5098
|
-
|
|
5098
|
+
dialogId: "date-time-picker-panel",
|
|
5099
5099
|
maxWidth: "max-w-[360px]",
|
|
5100
5100
|
children: /* @__PURE__ */ e.jsxs(
|
|
5101
5101
|
"div",
|
|
@@ -5331,7 +5331,7 @@ function Xs({
|
|
|
5331
5331
|
className: D,
|
|
5332
5332
|
tableClassName: $
|
|
5333
5333
|
}) {
|
|
5334
|
-
const P = Me(), I = ye.useRef(null), j = ye.useRef(null), Y = i === void 0 ? P.dataTable.emptyText : i, A = !!(f && y), b = new Set(f ?? []), k = r.filter((_) => (T == null ? void 0 : T(_)) ?? !0).map(n), N = k.filter((_) => b.has(_)).length, O = k.length > 0 && N === k.length, L = N > 0 && !O, M = a === "compact" ? "px-3 py-2 mobile:px-2.5" : "px-4 py-
|
|
5334
|
+
const P = Me(), I = ye.useRef(null), j = ye.useRef(null), Y = i === void 0 ? P.dataTable.emptyText : i, A = !!(f && y), b = new Set(f ?? []), k = r.filter((_) => (T == null ? void 0 : T(_)) ?? !0).map(n), N = k.filter((_) => b.has(_)).length, O = k.length > 0 && N === k.length, L = N > 0 && !O, M = a === "compact" ? "px-3 py-2 mobile:px-2.5" : "px-4 py-2.5 mobile:px-3", p = a === "compact" ? "text-[13px]" : "text-[14px]", x = a === "compact" ? "text-[13px]" : "text-[14px]", E = d ?? (s ? 400 : void 0), H = s && E !== void 0 ? `calc(${et(E)} - var(--lumen-data-table-header-height, 44px))` : void 0;
|
|
5335
5335
|
ye.useLayoutEffect(() => {
|
|
5336
5336
|
if (!s) return;
|
|
5337
5337
|
const _ = I.current, B = j.current;
|
|
@@ -9790,7 +9790,7 @@ const as = /^((?:[01]\d|2[0-3])):([0-5]\d)(?::([0-5]\d))?$/, ls = 220, ss = 326,
|
|
|
9790
9790
|
open: I,
|
|
9791
9791
|
onRequestClose: R,
|
|
9792
9792
|
label: c,
|
|
9793
|
-
|
|
9793
|
+
dialogId: "time-picker-panel",
|
|
9794
9794
|
maxWidth: "max-w-[344px]",
|
|
9795
9795
|
children: /* @__PURE__ */ e.jsxs(
|
|
9796
9796
|
"div",
|
|
@@ -10070,7 +10070,7 @@ const bt = /* @__PURE__ */ new Set(), jr = [], Et = /* @__PURE__ */ new Set(), f
|
|
|
10070
10070
|
}, [l]), t.length === 0 ? null : /* @__PURE__ */ e.jsx(
|
|
10071
10071
|
"div",
|
|
10072
10072
|
{
|
|
10073
|
-
className: "pointer-events-none fixed right-3 top-3 z-[120] flex w-[calc(100vw-1.5rem)] flex-col items-end gap-2 pad:right-4 pad:top-4 pad:w-[
|
|
10073
|
+
className: "pointer-events-none fixed right-3 top-3 z-[120] flex w-[calc(100vw-1.5rem)] flex-col items-end gap-2 pad:right-4 pad:top-4 pad:w-[304px] pad:gap-3 l:w-[320px] xl:right-6 xl:top-6",
|
|
10074
10074
|
"data-toast-container": !0,
|
|
10075
10075
|
children: t.map((h) => /* @__PURE__ */ e.jsx(
|
|
10076
10076
|
vs,
|
|
@@ -11250,6 +11250,7 @@ export {
|
|
|
11250
11250
|
Xs as DataTable,
|
|
11251
11251
|
Us as DatePicker,
|
|
11252
11252
|
qs as DateTimePicker,
|
|
11253
|
+
vr as Dialog,
|
|
11253
11254
|
_a as Divider,
|
|
11254
11255
|
Ha as DragHandle,
|
|
11255
11256
|
Gs as Drawer,
|
|
@@ -11267,7 +11268,6 @@ export {
|
|
|
11267
11268
|
hl as List,
|
|
11268
11269
|
vl as ListItem,
|
|
11269
11270
|
Qs as LumenProvider,
|
|
11270
|
-
vr as Modal,
|
|
11271
11271
|
bl as NumberInput,
|
|
11272
11272
|
yl as OtpInput,
|
|
11273
11273
|
ei as Pagination,
|