framepexls-ui-lib 0.2.8 → 0.2.9
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/AppTopbar.js +1 -1
- package/dist/AppTopbar.mjs +1 -1
- package/dist/BadgeCluster.js +1 -1
- package/dist/BadgeCluster.mjs +1 -1
- package/dist/ColumnSelector.js +1 -1
- package/dist/ColumnSelector.mjs +1 -1
- package/dist/ComboSelect.js +1 -1
- package/dist/ComboSelect.mjs +1 -1
- package/dist/DateTimeField.js +1 -1
- package/dist/DateTimeField.mjs +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Dialog.mjs +2 -2
- package/dist/Drawer.js +2 -2
- package/dist/Drawer.mjs +2 -2
- package/dist/Dropdown.js +1 -1
- package/dist/Dropdown.mjs +1 -1
- package/dist/FiltersMultiSelect.js +1 -1
- package/dist/FiltersMultiSelect.mjs +1 -1
- package/dist/Select.js +2 -2
- package/dist/Select.mjs +2 -2
- package/dist/Sidebar.js +3 -3
- package/dist/Sidebar.mjs +3 -3
- package/dist/TimePanel.js +1 -1
- package/dist/TimePanel.mjs +1 -1
- package/dist/TimePopover.js +3 -3
- package/dist/TimePopover.mjs +3 -3
- package/dist/TimeRangeField.js +1 -1
- package/dist/TimeRangeField.mjs +1 -1
- package/dist/Toast.js +1 -1
- package/dist/Toast.mjs +1 -1
- package/package.json +4 -4
package/dist/AppTopbar.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(AppTopbar_exports);
|
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var import_Button = __toESM(require("./Button"));
|
|
37
37
|
function AppTopbar({ title, subtitle, secondary, primary, actions, color }) {
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "sticky top-0 z-30 border-b border-black/5 bg-white backdrop-blur-xl dark:bg-[
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "sticky top-0 z-30 border-b border-black/5 bg-white backdrop-blur-xl dark:bg-[var(--fx-surface)]/60", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "px-4 sm:px-6 xl:px-8 xl:pl-20", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex h-16 items-center justify-between", children: [
|
|
39
39
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
40
40
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-lg font-semibold tracking-tight", children: title }),
|
|
41
41
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: subtitle })
|
package/dist/AppTopbar.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Button from "./Button";
|
|
4
4
|
function AppTopbar({ title, subtitle, secondary, primary, actions, color }) {
|
|
5
|
-
return /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-30 border-b border-black/5 bg-white backdrop-blur-xl dark:bg-[
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-30 border-b border-black/5 bg-white backdrop-blur-xl dark:bg-[var(--fx-surface)]/60", children: /* @__PURE__ */ jsx("div", { className: "px-4 sm:px-6 xl:px-8 xl:pl-20", children: /* @__PURE__ */ jsxs("div", { className: "flex h-16 items-center justify-between", children: [
|
|
6
6
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
7
7
|
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold tracking-tight", children: title }),
|
|
8
8
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-xs text-slate-500 dark:text-slate-400", children: subtitle })
|
package/dist/BadgeCluster.js
CHANGED
|
@@ -89,7 +89,7 @@ function BadgeCluster({
|
|
|
89
89
|
transition: { duration: 0.16, ease: "easeOut" },
|
|
90
90
|
className: [
|
|
91
91
|
"z-[9999] w-64 max-w-[80vw] rounded-xl border border-slate-200 bg-white p-2 shadow-lg ring-1 ring-black/5",
|
|
92
|
-
"dark:border-white/10 dark:bg-[
|
|
92
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
93
93
|
usePortal ? "fixed" : "absolute",
|
|
94
94
|
align === "right" ? "right-0" : "left-0"
|
|
95
95
|
].join(" "),
|
package/dist/BadgeCluster.mjs
CHANGED
|
@@ -56,7 +56,7 @@ function BadgeCluster({
|
|
|
56
56
|
transition: { duration: 0.16, ease: "easeOut" },
|
|
57
57
|
className: [
|
|
58
58
|
"z-[9999] w-64 max-w-[80vw] rounded-xl border border-slate-200 bg-white p-2 shadow-lg ring-1 ring-black/5",
|
|
59
|
-
"dark:border-white/10 dark:bg-[
|
|
59
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
60
60
|
usePortal ? "fixed" : "absolute",
|
|
61
61
|
align === "right" ? "right-0" : "left-0"
|
|
62
62
|
].join(" "),
|
package/dist/ColumnSelector.js
CHANGED
|
@@ -61,7 +61,7 @@ function ColumnSelector({
|
|
|
61
61
|
initial: { opacity: 0, y: 6 },
|
|
62
62
|
animate: { opacity: 1, y: 0 },
|
|
63
63
|
exit: { opacity: 0, y: -6 },
|
|
64
|
-
className: "absolute right-0 z-20 mt-2 w-64 overflow-hidden rounded-2xl border border-slate-200 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-[
|
|
64
|
+
className: "absolute right-0 z-20 mt-2 w-64 overflow-hidden rounded-2xl border border-slate-200 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
65
65
|
children: items.map(({ key, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
66
66
|
"label",
|
|
67
67
|
{
|
package/dist/ColumnSelector.mjs
CHANGED
|
@@ -28,7 +28,7 @@ function ColumnSelector({
|
|
|
28
28
|
initial: { opacity: 0, y: 6 },
|
|
29
29
|
animate: { opacity: 1, y: 0 },
|
|
30
30
|
exit: { opacity: 0, y: -6 },
|
|
31
|
-
className: "absolute right-0 z-20 mt-2 w-64 overflow-hidden rounded-2xl border border-slate-200 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-[
|
|
31
|
+
className: "absolute right-0 z-20 mt-2 w-64 overflow-hidden rounded-2xl border border-slate-200 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
32
32
|
children: items.map(({ key, label }) => /* @__PURE__ */ jsxs(
|
|
33
33
|
"label",
|
|
34
34
|
{
|
package/dist/ComboSelect.js
CHANGED
|
@@ -301,7 +301,7 @@ function ComboSelect({
|
|
|
301
301
|
role: "listbox",
|
|
302
302
|
id: listId,
|
|
303
303
|
style: dropStyle,
|
|
304
|
-
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
304
|
+
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
305
305
|
children: filteredRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "px-3 py-2 text-sm text-slate-500 dark:text-slate-400", children: noResultsText }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "max-h-[inherit] overflow-auto py-1 text-sm", children: filteredRows.map((row, i) => {
|
|
306
306
|
if (row.kind === "section") {
|
|
307
307
|
const Header = renderSectionHeader != null ? renderSectionHeader : DefaultSectionHeader;
|
package/dist/ComboSelect.mjs
CHANGED
|
@@ -268,7 +268,7 @@ function ComboSelect({
|
|
|
268
268
|
role: "listbox",
|
|
269
269
|
id: listId,
|
|
270
270
|
style: dropStyle,
|
|
271
|
-
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
271
|
+
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
272
272
|
children: filteredRows.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-3 py-2 text-sm text-slate-500 dark:text-slate-400", children: noResultsText }) : /* @__PURE__ */ jsx("ul", { className: "max-h-[inherit] overflow-auto py-1 text-sm", children: filteredRows.map((row, i) => {
|
|
273
273
|
if (row.kind === "section") {
|
|
274
274
|
const Header = renderSectionHeader != null ? renderSectionHeader : DefaultSectionHeader;
|
package/dist/DateTimeField.js
CHANGED
|
@@ -250,7 +250,7 @@ function DateTimeField({
|
|
|
250
250
|
ref: popRef,
|
|
251
251
|
style: stylePop,
|
|
252
252
|
"data-dtf-pop": true,
|
|
253
|
-
className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
253
|
+
className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
254
254
|
children: [
|
|
255
255
|
type !== "time" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
256
256
|
import_CalendarPanel.default,
|
package/dist/DateTimeField.mjs
CHANGED
|
@@ -217,7 +217,7 @@ function DateTimeField({
|
|
|
217
217
|
ref: popRef,
|
|
218
218
|
style: stylePop,
|
|
219
219
|
"data-dtf-pop": true,
|
|
220
|
-
className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
220
|
+
className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
221
221
|
children: [
|
|
222
222
|
type !== "time" && /* @__PURE__ */ jsx(
|
|
223
223
|
CalendarPanel,
|
package/dist/Dialog.js
CHANGED
|
@@ -170,7 +170,7 @@ function DialogBase({
|
|
|
170
170
|
ref: containerRef,
|
|
171
171
|
className: cx(
|
|
172
172
|
"w-full overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-xl",
|
|
173
|
-
"dark:border-white/10 dark:bg-[
|
|
173
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
174
174
|
size === "full" ? "flex h-[calc(100vh-2rem)] flex-col" : "flex max-h-[88vh] flex-col",
|
|
175
175
|
sizeToMaxW[size],
|
|
176
176
|
className
|
|
@@ -249,7 +249,7 @@ function DialogFooter({
|
|
|
249
249
|
"sticky bottom-0 z-10 flex items-center gap-2 rounded-b-3xl border-t border-slate-200",
|
|
250
250
|
"bg-white px-6 py-4 text-sm",
|
|
251
251
|
"[box-shadow:inset_0_8px_10px_-8px_rgba(2,6,23,0.10)]",
|
|
252
|
-
"dark:border-white/10 dark:bg-[
|
|
252
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)] dark:[box-shadow:inset_0_8px_10px_-8px_rgba(255,255,255,0.08)]",
|
|
253
253
|
map[align]
|
|
254
254
|
),
|
|
255
255
|
children
|
package/dist/Dialog.mjs
CHANGED
|
@@ -130,7 +130,7 @@ function DialogBase({
|
|
|
130
130
|
ref: containerRef,
|
|
131
131
|
className: cx(
|
|
132
132
|
"w-full overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-xl",
|
|
133
|
-
"dark:border-white/10 dark:bg-[
|
|
133
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
134
134
|
size === "full" ? "flex h-[calc(100vh-2rem)] flex-col" : "flex max-h-[88vh] flex-col",
|
|
135
135
|
sizeToMaxW[size],
|
|
136
136
|
className
|
|
@@ -209,7 +209,7 @@ function DialogFooter({
|
|
|
209
209
|
"sticky bottom-0 z-10 flex items-center gap-2 rounded-b-3xl border-t border-slate-200",
|
|
210
210
|
"bg-white px-6 py-4 text-sm",
|
|
211
211
|
"[box-shadow:inset_0_8px_10px_-8px_rgba(2,6,23,0.10)]",
|
|
212
|
-
"dark:border-white/10 dark:bg-[
|
|
212
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)] dark:[box-shadow:inset_0_8px_10px_-8px_rgba(255,255,255,0.08)]",
|
|
213
213
|
map[align]
|
|
214
214
|
),
|
|
215
215
|
children
|
package/dist/Drawer.js
CHANGED
|
@@ -83,7 +83,7 @@ function Root({
|
|
|
83
83
|
"aria-modal": "true",
|
|
84
84
|
"aria-labelledby": labelId,
|
|
85
85
|
className: [
|
|
86
|
-
"absolute right-0 top-0 h-full bg-white shadow-2xl dark:bg-[
|
|
86
|
+
"absolute right-0 top-0 h-full bg-white shadow-2xl dark:bg-[var(--fx-surface)]",
|
|
87
87
|
widthClass,
|
|
88
88
|
"flex flex-col",
|
|
89
89
|
className != null ? className : ""
|
|
@@ -121,7 +121,7 @@ function Footer({ className, children, sticky }) {
|
|
|
121
121
|
{
|
|
122
122
|
className: [
|
|
123
123
|
"border-t border-slate-200/70 px-5 py-4 dark:border-white/10",
|
|
124
|
-
sticky ? "backdrop-blur supports-[backdrop-filter]:bg-white/60 dark:supports-[backdrop-filter]:bg-[
|
|
124
|
+
sticky ? "backdrop-blur supports-[backdrop-filter]:bg-white/60 dark:supports-[backdrop-filter]:bg-[var(--fx-surface)]/60" : "",
|
|
125
125
|
className != null ? className : ""
|
|
126
126
|
].join(" "),
|
|
127
127
|
children
|
package/dist/Drawer.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function Root({
|
|
|
46
46
|
"aria-modal": "true",
|
|
47
47
|
"aria-labelledby": labelId,
|
|
48
48
|
className: [
|
|
49
|
-
"absolute right-0 top-0 h-full bg-white shadow-2xl dark:bg-[
|
|
49
|
+
"absolute right-0 top-0 h-full bg-white shadow-2xl dark:bg-[var(--fx-surface)]",
|
|
50
50
|
widthClass,
|
|
51
51
|
"flex flex-col",
|
|
52
52
|
className != null ? className : ""
|
|
@@ -84,7 +84,7 @@ function Footer({ className, children, sticky }) {
|
|
|
84
84
|
{
|
|
85
85
|
className: [
|
|
86
86
|
"border-t border-slate-200/70 px-5 py-4 dark:border-white/10",
|
|
87
|
-
sticky ? "backdrop-blur supports-[backdrop-filter]:bg-white/60 dark:supports-[backdrop-filter]:bg-[
|
|
87
|
+
sticky ? "backdrop-blur supports-[backdrop-filter]:bg-white/60 dark:supports-[backdrop-filter]:bg-[var(--fx-surface)]/60" : "",
|
|
88
88
|
className != null ? className : ""
|
|
89
89
|
].join(" "),
|
|
90
90
|
children
|
package/dist/Dropdown.js
CHANGED
|
@@ -285,7 +285,7 @@ function Content({
|
|
|
285
285
|
"data-[open=false]:pointer-events-none data-[open=false]:opacity-0 data-[open=false]:scale-95",
|
|
286
286
|
"data-[open=true]:opacity-100 data-[open=true]:scale-100 transition",
|
|
287
287
|
pos.origin === "top-right" ? "origin-top-right" : "origin-top-left",
|
|
288
|
-
"dark:border-white/10 dark:bg-[
|
|
288
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
289
289
|
className
|
|
290
290
|
].join(" "),
|
|
291
291
|
"data-open": "true",
|
package/dist/Dropdown.mjs
CHANGED
|
@@ -255,7 +255,7 @@ function Content({
|
|
|
255
255
|
"data-[open=false]:pointer-events-none data-[open=false]:opacity-0 data-[open=false]:scale-95",
|
|
256
256
|
"data-[open=true]:opacity-100 data-[open=true]:scale-100 transition",
|
|
257
257
|
pos.origin === "top-right" ? "origin-top-right" : "origin-top-left",
|
|
258
|
-
"dark:border-white/10 dark:bg-[
|
|
258
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
259
259
|
className
|
|
260
260
|
].join(" "),
|
|
261
261
|
"data-open": "true",
|
|
@@ -109,7 +109,7 @@ function FiltersMultiSelect({
|
|
|
109
109
|
animate: { opacity: 1, y: 0 },
|
|
110
110
|
exit: { opacity: 0, y: -6 },
|
|
111
111
|
className: clsx(
|
|
112
|
-
"absolute z-20 mt-2 w-[min(96vw,720px)] overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
112
|
+
"absolute z-20 mt-2 w-[min(96vw,720px)] overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
113
113
|
align === "end" ? "right-0" : "left-0"
|
|
114
114
|
),
|
|
115
115
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap", style: panelStyle, children: groups.map((g) => {
|
|
@@ -76,7 +76,7 @@ function FiltersMultiSelect({
|
|
|
76
76
|
animate: { opacity: 1, y: 0 },
|
|
77
77
|
exit: { opacity: 0, y: -6 },
|
|
78
78
|
className: clsx(
|
|
79
|
-
"absolute z-20 mt-2 w-[min(96vw,720px)] overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
79
|
+
"absolute z-20 mt-2 w-[min(96vw,720px)] overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
80
80
|
align === "end" ? "right-0" : "left-0"
|
|
81
81
|
),
|
|
82
82
|
children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap", style: panelStyle, children: groups.map((g) => {
|
package/dist/Select.js
CHANGED
|
@@ -235,7 +235,7 @@ function ModernSelect({
|
|
|
235
235
|
className: [
|
|
236
236
|
"fixed z-[1000] max-h-72 overflow-auto",
|
|
237
237
|
"rounded-2xl border border-slate-200/80 bg-white/90 backdrop-blur-md shadow-2xl ring-1 ring-black/5",
|
|
238
|
-
"dark:border-white/10 dark:bg-[
|
|
238
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]/90 dark:ring-white/10"
|
|
239
239
|
].join(" "),
|
|
240
240
|
style: {
|
|
241
241
|
top: menuPos.top,
|
|
@@ -248,7 +248,7 @@ function ModernSelect({
|
|
|
248
248
|
"li",
|
|
249
249
|
{
|
|
250
250
|
role: "presentation",
|
|
251
|
-
className: `${S[size].itemPad} sticky top-0 bg-white/90 dark:bg-[
|
|
251
|
+
className: `${S[size].itemPad} sticky top-0 bg-white/90 dark:bg-[var(--fx-surface)]/90 backdrop-blur-md text-slate-400 select-none`,
|
|
252
252
|
children: placeholder
|
|
253
253
|
}
|
|
254
254
|
),
|
package/dist/Select.mjs
CHANGED
|
@@ -202,7 +202,7 @@ function ModernSelect({
|
|
|
202
202
|
className: [
|
|
203
203
|
"fixed z-[1000] max-h-72 overflow-auto",
|
|
204
204
|
"rounded-2xl border border-slate-200/80 bg-white/90 backdrop-blur-md shadow-2xl ring-1 ring-black/5",
|
|
205
|
-
"dark:border-white/10 dark:bg-[
|
|
205
|
+
"dark:border-white/10 dark:bg-[var(--fx-surface)]/90 dark:ring-white/10"
|
|
206
206
|
].join(" "),
|
|
207
207
|
style: {
|
|
208
208
|
top: menuPos.top,
|
|
@@ -215,7 +215,7 @@ function ModernSelect({
|
|
|
215
215
|
"li",
|
|
216
216
|
{
|
|
217
217
|
role: "presentation",
|
|
218
|
-
className: `${S[size].itemPad} sticky top-0 bg-white/90 dark:bg-[
|
|
218
|
+
className: `${S[size].itemPad} sticky top-0 bg-white/90 dark:bg-[var(--fx-surface)]/90 backdrop-blur-md text-slate-400 select-none`,
|
|
219
219
|
children: placeholder
|
|
220
220
|
}
|
|
221
221
|
),
|
package/dist/Sidebar.js
CHANGED
|
@@ -200,7 +200,7 @@ function Sidebar({
|
|
|
200
200
|
setDrawerOpen(false);
|
|
201
201
|
};
|
|
202
202
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
203
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sticky top-0 z-40 flex h-14 items-center gap-2 border-b border-black/5 bg-white/80 px-3 backdrop-blur shadow-sm xl:hidden dark:bg-[
|
|
203
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sticky top-0 z-40 flex h-14 items-center gap-2 border-b border-black/5 bg-white/80 px-3 backdrop-blur shadow-sm xl:hidden dark:bg-[var(--fx-surface)]", children: [
|
|
204
204
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
205
205
|
import_Button.default,
|
|
206
206
|
{
|
|
@@ -225,7 +225,7 @@ function Sidebar({
|
|
|
225
225
|
"aside",
|
|
226
226
|
{
|
|
227
227
|
className: [
|
|
228
|
-
"hidden xl:fixed xl:inset-y-0 xl:flex xl:flex-col xl:border-r xl:border-black/5 bg-white xl:py-6 dark:bg-[
|
|
228
|
+
"hidden xl:fixed xl:inset-y-0 xl:flex xl:flex-col xl:border-r xl:border-black/5 bg-white xl:py-6 dark:bg-[var(--fx-surface)] z-40",
|
|
229
229
|
"transition-[width] duration-200",
|
|
230
230
|
collapsed ? "xl:w-28 xl:px-3" : "xl:w-72 xl:px-4"
|
|
231
231
|
].join(" "),
|
|
@@ -259,7 +259,7 @@ function Sidebar({
|
|
|
259
259
|
animate: { x: 0 },
|
|
260
260
|
exit: { x: -340 },
|
|
261
261
|
transition: { type: "spring", stiffness: 260, damping: 28 },
|
|
262
|
-
className: "relative h-full w-[88%] max-w-80 bg-white px-5 py-6 shadow-2xl dark:bg-[
|
|
262
|
+
className: "relative h-full w-[88%] max-w-80 bg-white px-5 py-6 shadow-2xl dark:bg-[var(--fx-surface)]",
|
|
263
263
|
children: [
|
|
264
264
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
265
265
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/dist/Sidebar.mjs
CHANGED
|
@@ -167,7 +167,7 @@ function Sidebar({
|
|
|
167
167
|
setDrawerOpen(false);
|
|
168
168
|
};
|
|
169
169
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
170
|
-
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-40 flex h-14 items-center gap-2 border-b border-black/5 bg-white/80 px-3 backdrop-blur shadow-sm xl:hidden dark:bg-[
|
|
170
|
+
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-40 flex h-14 items-center gap-2 border-b border-black/5 bg-white/80 px-3 backdrop-blur shadow-sm xl:hidden dark:bg-[var(--fx-surface)]", children: [
|
|
171
171
|
/* @__PURE__ */ jsx(
|
|
172
172
|
Button,
|
|
173
173
|
{
|
|
@@ -192,7 +192,7 @@ function Sidebar({
|
|
|
192
192
|
"aside",
|
|
193
193
|
{
|
|
194
194
|
className: [
|
|
195
|
-
"hidden xl:fixed xl:inset-y-0 xl:flex xl:flex-col xl:border-r xl:border-black/5 bg-white xl:py-6 dark:bg-[
|
|
195
|
+
"hidden xl:fixed xl:inset-y-0 xl:flex xl:flex-col xl:border-r xl:border-black/5 bg-white xl:py-6 dark:bg-[var(--fx-surface)] z-40",
|
|
196
196
|
"transition-[width] duration-200",
|
|
197
197
|
collapsed ? "xl:w-28 xl:px-3" : "xl:w-72 xl:px-4"
|
|
198
198
|
].join(" "),
|
|
@@ -226,7 +226,7 @@ function Sidebar({
|
|
|
226
226
|
animate: { x: 0 },
|
|
227
227
|
exit: { x: -340 },
|
|
228
228
|
transition: { type: "spring", stiffness: 260, damping: 28 },
|
|
229
|
-
className: "relative h-full w-[88%] max-w-80 bg-white px-5 py-6 shadow-2xl dark:bg-[
|
|
229
|
+
className: "relative h-full w-[88%] max-w-80 bg-white px-5 py-6 shadow-2xl dark:bg-[var(--fx-surface)]",
|
|
230
230
|
children: [
|
|
231
231
|
/* @__PURE__ */ jsxs("div", { className: "mb-4 flex items-center justify-between", children: [
|
|
232
232
|
/* @__PURE__ */ jsx(
|
package/dist/TimePanel.js
CHANGED
|
@@ -93,7 +93,7 @@ function TimePopover({
|
|
|
93
93
|
ref: popRef,
|
|
94
94
|
style: stylePop,
|
|
95
95
|
"data-dtf-pop": true,
|
|
96
|
-
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
96
|
+
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
97
97
|
children: [
|
|
98
98
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-2 text-sm font-medium text-slate-600 dark:text-slate-300", children: "Selecciona hora" }),
|
|
99
99
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-2 gap-3", children: [
|
package/dist/TimePanel.mjs
CHANGED
|
@@ -60,7 +60,7 @@ function TimePopover({
|
|
|
60
60
|
ref: popRef,
|
|
61
61
|
style: stylePop,
|
|
62
62
|
"data-dtf-pop": true,
|
|
63
|
-
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
63
|
+
className: "overflow-hidden rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
64
64
|
children: [
|
|
65
65
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-sm font-medium text-slate-600 dark:text-slate-300", children: "Selecciona hora" }),
|
|
66
66
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
|
package/dist/TimePopover.js
CHANGED
|
@@ -136,7 +136,7 @@ function TimePopover({
|
|
|
136
136
|
onPointerDownCapture: (e) => e.stopPropagation(),
|
|
137
137
|
onKeyDown,
|
|
138
138
|
style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 },
|
|
139
|
-
className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
139
|
+
className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-2 text-sm font-medium text-slate-700 dark:text-slate-200", children: "Selecciona hora" }),
|
|
142
142
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-2 text-xs text-slate-500 dark:text-slate-300", children: [
|
|
@@ -350,7 +350,7 @@ function WeekPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
|
|
|
350
350
|
}
|
|
351
351
|
const selFrom = (_a = value == null ? void 0 : value.from) != null ? _a : null;
|
|
352
352
|
const selTo = (_b = value == null ? void 0 : value.to) != null ? _b : null;
|
|
353
|
-
const body = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[340px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
353
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[340px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
354
354
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
355
355
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
356
356
|
import_Button.default,
|
|
@@ -456,7 +456,7 @@ function MonthPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
|
|
|
456
456
|
selMonthIdx = ((_a = parts[1]) != null ? _a : 1) - 1;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const body = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[300px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
459
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[300px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
460
460
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
461
461
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
462
462
|
import_Button.default,
|
package/dist/TimePopover.mjs
CHANGED
|
@@ -101,7 +101,7 @@ function TimePopover({
|
|
|
101
101
|
onPointerDownCapture: (e) => e.stopPropagation(),
|
|
102
102
|
onKeyDown,
|
|
103
103
|
style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 },
|
|
104
|
-
className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
104
|
+
className: "w-64 rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]",
|
|
105
105
|
children: [
|
|
106
106
|
/* @__PURE__ */ jsx("div", { className: "mb-2 text-sm font-medium text-slate-700 dark:text-slate-200", children: "Selecciona hora" }),
|
|
107
107
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 text-xs text-slate-500 dark:text-slate-300", children: [
|
|
@@ -315,7 +315,7 @@ function WeekPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
|
|
|
315
315
|
}
|
|
316
316
|
const selFrom = (_a = value == null ? void 0 : value.from) != null ? _a : null;
|
|
317
317
|
const selTo = (_b = value == null ? void 0 : value.to) != null ? _b : null;
|
|
318
|
-
const body = /* @__PURE__ */ jsxs("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[340px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
318
|
+
const body = /* @__PURE__ */ jsxs("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[340px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
319
319
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
320
320
|
/* @__PURE__ */ jsx(
|
|
321
321
|
Button,
|
|
@@ -421,7 +421,7 @@ function MonthPopover({ anchorEl, cursor, value, onCursorChange, onPick, onClose
|
|
|
421
421
|
selMonthIdx = ((_a = parts[1]) != null ? _a : 1) - 1;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
const body = /* @__PURE__ */ jsxs("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[300px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[
|
|
424
|
+
const body = /* @__PURE__ */ jsxs("div", { ref: popRef, style: { position: "fixed", top: pos.top, left: pos.left, zIndex: 1e5 }, className: "w-[300px] rounded-2xl border border-slate-200 bg-white p-3 shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
425
425
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
426
426
|
/* @__PURE__ */ jsx(
|
|
427
427
|
Button,
|
package/dist/TimeRangeField.js
CHANGED
|
@@ -146,7 +146,7 @@ function TimeRangeField({ value, onValueChange, portal = true, portalId, clearab
|
|
|
146
146
|
setTo(t2);
|
|
147
147
|
onValueChange == null ? void 0 : onValueChange({ from: f2 ? fmtHHmm(f2.hh, f2.mm) : null, to: t2 ? fmtHHmm(t2.hh, t2.mm) : null });
|
|
148
148
|
};
|
|
149
|
-
const popover = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-trf-pop": true, style: stylePop, className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
149
|
+
const popover = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { "data-trf-pop": true, style: stylePop, className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
150
150
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between gap-2 px-3 py-2 text-sm", children: [
|
|
151
151
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "font-medium", children: "Selecciona horario" }),
|
|
152
152
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/dist/TimeRangeField.mjs
CHANGED
|
@@ -113,7 +113,7 @@ function TimeRangeField({ value, onValueChange, portal = true, portalId, clearab
|
|
|
113
113
|
setTo(t2);
|
|
114
114
|
onValueChange == null ? void 0 : onValueChange({ from: f2 ? fmtHHmm(f2.hh, f2.mm) : null, to: t2 ? fmtHHmm(t2.hh, t2.mm) : null });
|
|
115
115
|
};
|
|
116
|
-
const popover = /* @__PURE__ */ jsxs("div", { "data-trf-pop": true, style: stylePop, className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[
|
|
116
|
+
const popover = /* @__PURE__ */ jsxs("div", { "data-trf-pop": true, style: stylePop, className: "w-1/3 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-xl dark:border-white/10 dark:bg-[var(--fx-surface)]", children: [
|
|
117
117
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 px-3 py-2 text-sm", children: [
|
|
118
118
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: "Selecciona horario" }),
|
|
119
119
|
/* @__PURE__ */ jsx(
|
package/dist/Toast.js
CHANGED
|
@@ -132,7 +132,7 @@ function ToastView({ item, onClose, placement }) {
|
|
|
132
132
|
onMouseEnter,
|
|
133
133
|
onMouseLeave,
|
|
134
134
|
className: [
|
|
135
|
-
"pointer-events-auto relative w-[380px] max-w-[92vw] overflow-hidden rounded-xl border bg-white p-3 pr-10 shadow-lg dark:bg-[
|
|
135
|
+
"pointer-events-auto relative w-[380px] max-w-[92vw] overflow-hidden rounded-xl border bg-white p-3 pr-10 shadow-lg dark:bg-[var(--fx-surface)]",
|
|
136
136
|
accent.border
|
|
137
137
|
].join(" "),
|
|
138
138
|
children: [
|
package/dist/Toast.mjs
CHANGED
|
@@ -97,7 +97,7 @@ function ToastView({ item, onClose, placement }) {
|
|
|
97
97
|
onMouseEnter,
|
|
98
98
|
onMouseLeave,
|
|
99
99
|
className: [
|
|
100
|
-
"pointer-events-auto relative w-[380px] max-w-[92vw] overflow-hidden rounded-xl border bg-white p-3 pr-10 shadow-lg dark:bg-[
|
|
100
|
+
"pointer-events-auto relative w-[380px] max-w-[92vw] overflow-hidden rounded-xl border bg-white p-3 pr-10 shadow-lg dark:bg-[var(--fx-surface)]",
|
|
101
101
|
accent.border
|
|
102
102
|
].join(" "),
|
|
103
103
|
children: [
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framepexls-ui-lib",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Componentes UI de Framepexls para React/Next.",
|
|
7
|
-
"main": "dist/index.
|
|
7
|
+
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.mjs",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.mjs",
|
|
14
|
-
"require": "./dist/index.
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"url": "https://github.com/cponce-framepexls/ui-lib/issues"
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://github.com/cponce-framepexls/ui-lib#readme"
|
|
64
|
-
}
|
|
64
|
+
}
|