flufi-ui 0.1.0 → 0.1.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/{chunk-PGRDIABO.js → chunk-GEOGVOJN.js} +57 -44
- package/dist/components/index.css +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +3 -1
- package/dist/index.css +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/style.css +3 -3
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ function TextIconLinkButton(props) {
|
|
|
91
91
|
|
|
92
92
|
// src/components/CalendarInput/CalendarInput.tsx
|
|
93
93
|
import { useSignal as useSignal3 } from "@preact/signals";
|
|
94
|
-
import { useEffect
|
|
94
|
+
import { useEffect, useState } from "preact/hooks";
|
|
95
95
|
import { Calendar, ChevronLeft, ChevronRight } from "lucide-preact";
|
|
96
96
|
|
|
97
97
|
// src/components/Container/Container.tsx
|
|
@@ -121,22 +121,41 @@ function HeaderContainer(props) {
|
|
|
121
121
|
function FooterContainer(props) {
|
|
122
122
|
return /* @__PURE__ */ jsx3("footer", { class: getClasses(props), ...props.other, children: props.children });
|
|
123
123
|
}
|
|
124
|
+
function AsideContainer(props) {
|
|
125
|
+
return /* @__PURE__ */ jsx3("aside", { class: getClasses(props), ...props.other, children: props.children });
|
|
126
|
+
}
|
|
124
127
|
|
|
125
128
|
// src/components/Popout/Popout.tsx
|
|
126
129
|
import { useSignal } from "@preact/signals";
|
|
127
|
-
import {
|
|
130
|
+
import { useLayoutEffect, useRef } from "preact/hooks";
|
|
128
131
|
import { createPortal } from "preact/compat";
|
|
132
|
+
|
|
133
|
+
// src/components/Popout/position.ts
|
|
134
|
+
function getPopoutTop(anchor, height, viewportHeight) {
|
|
135
|
+
const gap = 5;
|
|
136
|
+
const below = anchor.bottom + gap;
|
|
137
|
+
return viewportHeight - (below + height) <= 10 ? anchor.top - height - gap : below;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// src/components/Popout/Popout.tsx
|
|
129
141
|
import { jsx as jsx4, jsxs } from "preact/jsx-runtime";
|
|
130
142
|
function PopoutContainer(props) {
|
|
131
143
|
const open = props.open ?? useSignal(false);
|
|
132
|
-
const [rect, setRect] = useState(null);
|
|
133
144
|
const anchorRef = useRef(null);
|
|
134
145
|
const popoutRef = useRef(null);
|
|
135
|
-
|
|
136
|
-
if (!open)
|
|
146
|
+
useLayoutEffect(() => {
|
|
147
|
+
if (!open.value)
|
|
137
148
|
return;
|
|
149
|
+
const popout = popoutRef.current;
|
|
138
150
|
function updateRect() {
|
|
139
|
-
|
|
151
|
+
const rect = anchorRef.current?.getBoundingClientRect();
|
|
152
|
+
if (!rect)
|
|
153
|
+
return;
|
|
154
|
+
popout.style.left = `${rect.left}px`;
|
|
155
|
+
popout.style.width = `${Math.max(0, rect.width - 2)}px`;
|
|
156
|
+
const height = popout.getBoundingClientRect().height;
|
|
157
|
+
popout.style.top = `${getPopoutTop(rect, height, window.innerHeight)}px`;
|
|
158
|
+
popout.style.visibility = "visible";
|
|
140
159
|
}
|
|
141
160
|
function onPointerDown(e) {
|
|
142
161
|
const target = e.target;
|
|
@@ -151,24 +170,28 @@ function PopoutContainer(props) {
|
|
|
151
170
|
open.value = false;
|
|
152
171
|
}
|
|
153
172
|
updateRect();
|
|
173
|
+
const observer = new ResizeObserver(updateRect);
|
|
174
|
+
observer.observe(popout);
|
|
175
|
+
observer.observe(anchorRef.current);
|
|
154
176
|
document.addEventListener("mousedown", onPointerDown);
|
|
155
177
|
document.addEventListener("keydown", onKeyDown);
|
|
156
178
|
window.addEventListener("resize", updateRect);
|
|
157
179
|
window.addEventListener("scroll", updateRect, true);
|
|
158
180
|
return () => {
|
|
181
|
+
observer.disconnect();
|
|
159
182
|
document.removeEventListener("mousedown", onPointerDown);
|
|
160
183
|
document.removeEventListener("keydown", onKeyDown);
|
|
161
184
|
window.removeEventListener("resize", updateRect);
|
|
162
185
|
window.removeEventListener("scroll", updateRect, true);
|
|
163
186
|
};
|
|
164
|
-
}, [open]);
|
|
187
|
+
}, [open.value]);
|
|
165
188
|
return /* @__PURE__ */ jsxs("div", { ref: anchorRef, class: addClass(
|
|
166
189
|
"popout-container",
|
|
167
190
|
open.value && "open",
|
|
168
191
|
props.class
|
|
169
192
|
), children: [
|
|
170
193
|
props.children,
|
|
171
|
-
open.value &&
|
|
194
|
+
open.value && createPortal(
|
|
172
195
|
/* @__PURE__ */ jsx4(
|
|
173
196
|
"div",
|
|
174
197
|
{
|
|
@@ -178,18 +201,7 @@ function PopoutContainer(props) {
|
|
|
178
201
|
MOBILE.value && "mobile-popout",
|
|
179
202
|
props.popoutClass
|
|
180
203
|
),
|
|
181
|
-
style: {
|
|
182
|
-
top: (() => {
|
|
183
|
-
const popoutHeight = popoutRef.current?.getBoundingClientRect().height ?? 0;
|
|
184
|
-
const spaceBelow = window.innerHeight - rect.bottom;
|
|
185
|
-
const spaceAbove = rect.top;
|
|
186
|
-
if (spaceBelow >= popoutHeight + 5 || spaceBelow >= spaceAbove)
|
|
187
|
-
return rect.bottom + 5;
|
|
188
|
-
return rect.top - popoutHeight - 5;
|
|
189
|
-
})(),
|
|
190
|
-
left: rect.left,
|
|
191
|
-
width: rect.width - 2
|
|
192
|
-
},
|
|
204
|
+
style: { visibility: "hidden" },
|
|
193
205
|
children: props.popout()
|
|
194
206
|
}
|
|
195
207
|
),
|
|
@@ -321,15 +333,15 @@ function CalendarInput(props) {
|
|
|
321
333
|
const popoutOpen = useSignal3(false);
|
|
322
334
|
const now = /* @__PURE__ */ new Date();
|
|
323
335
|
const initial = value.peek();
|
|
324
|
-
const [viewYear, setViewYear] =
|
|
325
|
-
const [viewMonth, setViewMonth] =
|
|
336
|
+
const [viewYear, setViewYear] = useState(initial?.year ?? now.getFullYear());
|
|
337
|
+
const [viewMonth, setViewMonth] = useState(initial?.month ?? now.getMonth() + 1);
|
|
326
338
|
const inputText = useSignal3(value.value?.toString() ?? "");
|
|
327
339
|
function updateView() {
|
|
328
340
|
const parts = (value.peek() ?? CalendarDate.now()).parts;
|
|
329
341
|
setViewYear(parts.year);
|
|
330
342
|
setViewMonth(parts.month);
|
|
331
343
|
}
|
|
332
|
-
|
|
344
|
+
useEffect(() => {
|
|
333
345
|
updateView();
|
|
334
346
|
}, [popoutOpen.value]);
|
|
335
347
|
function commit(next, dontClose, dontSetInput) {
|
|
@@ -518,7 +530,7 @@ function Content(props) {
|
|
|
518
530
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
519
531
|
import { render } from "preact";
|
|
520
532
|
import { createPortal as createPortal2 } from "preact/compat";
|
|
521
|
-
import { useLayoutEffect, useRef as useRef3 } from "preact/hooks";
|
|
533
|
+
import { useLayoutEffect as useLayoutEffect2, useRef as useRef3 } from "preact/hooks";
|
|
522
534
|
|
|
523
535
|
// src/components/Text/Text.tsx
|
|
524
536
|
import { jsx as jsx9 } from "preact/jsx-runtime";
|
|
@@ -537,7 +549,7 @@ function Text(props) {
|
|
|
537
549
|
|
|
538
550
|
// src/components/ContextMenu/position.ts
|
|
539
551
|
function getContextMenuPlacement(target, size, viewport) {
|
|
540
|
-
const margin =
|
|
552
|
+
const margin = 10;
|
|
541
553
|
const gap = 6;
|
|
542
554
|
const maxWidth = Math.max(0, viewport.width - margin * 2);
|
|
543
555
|
const maxHeight = Math.max(0, viewport.height - margin * 2);
|
|
@@ -547,12 +559,12 @@ function getContextMenuPlacement(target, size, viewport) {
|
|
|
547
559
|
const clampY = (y, h = height) => Math.max(margin, Math.min(y, viewport.height - margin - h));
|
|
548
560
|
if (!("bottom" in target)) {
|
|
549
561
|
const left = target.x + width > viewport.width - margin ? target.x - width : target.x;
|
|
550
|
-
const top = target.y + height
|
|
562
|
+
const top = target.y + height >= viewport.height - margin ? target.y - height : target.y;
|
|
551
563
|
return { left: clampX(left), top: clampY(top), maxHeight };
|
|
552
564
|
}
|
|
553
565
|
const below = Math.max(0, viewport.height - margin - target.bottom - gap);
|
|
554
566
|
const above = Math.max(0, target.top - margin - gap);
|
|
555
|
-
if (height
|
|
567
|
+
if (height < below)
|
|
556
568
|
return { left: clampX(target.left), top: clampY(target.bottom + gap), maxHeight: below };
|
|
557
569
|
if (height <= above)
|
|
558
570
|
return { left: clampX(target.left), top: clampY(target.top - gap - height), maxHeight: above };
|
|
@@ -617,7 +629,7 @@ function openContextMenuOn(items, element) {
|
|
|
617
629
|
}
|
|
618
630
|
function ContextMenu(props) {
|
|
619
631
|
const menuRef = useRef3(null);
|
|
620
|
-
|
|
632
|
+
useLayoutEffect2(() => {
|
|
621
633
|
const menu = menuRef.current;
|
|
622
634
|
const anchor = props.target instanceof Element ? props.target : void 0;
|
|
623
635
|
const getButtons = () => [...menu.querySelectorAll("button:not(:disabled)")];
|
|
@@ -917,12 +929,12 @@ function MiniHeader(props) {
|
|
|
917
929
|
}
|
|
918
930
|
|
|
919
931
|
// src/components/Image/Image.tsx
|
|
920
|
-
import { useEffect as
|
|
932
|
+
import { useEffect as useEffect2, useRef as useRef4, useState as useState2 } from "preact/hooks";
|
|
921
933
|
import { jsx as jsx17 } from "preact/jsx-runtime";
|
|
922
934
|
function Image2(props) {
|
|
923
|
-
const [src, setSrc] =
|
|
935
|
+
const [src, setSrc] = useState2();
|
|
924
936
|
const lastSrc = useRef4();
|
|
925
|
-
|
|
937
|
+
useEffect2(() => {
|
|
926
938
|
if (lastSrc.current)
|
|
927
939
|
URL.revokeObjectURL(lastSrc.current);
|
|
928
940
|
const newSrc = resolveSignalish(props.src);
|
|
@@ -1052,7 +1064,7 @@ function Textarea(props) {
|
|
|
1052
1064
|
}
|
|
1053
1065
|
|
|
1054
1066
|
// src/components/Loading/Loading.tsx
|
|
1055
|
-
import { useEffect as
|
|
1067
|
+
import { useEffect as useEffect3, useState as useState3 } from "preact/hooks";
|
|
1056
1068
|
|
|
1057
1069
|
// src/components/Throbber/Throbber.tsx
|
|
1058
1070
|
import { Loader2 } from "lucide-preact";
|
|
@@ -1064,14 +1076,14 @@ function Throbber(props) {
|
|
|
1064
1076
|
// src/components/Loading/Loading.tsx
|
|
1065
1077
|
import { jsx as jsx21, jsxs as jsxs8 } from "preact/jsx-runtime";
|
|
1066
1078
|
function Loading(props) {
|
|
1067
|
-
const [loaded, setLoaded] =
|
|
1079
|
+
const [loaded, setLoaded] = useState3(false);
|
|
1068
1080
|
{
|
|
1069
1081
|
const out = resolveMaybeFunc(props.loaded);
|
|
1070
1082
|
if (!(out instanceof Promise)) {
|
|
1071
1083
|
setLoaded(resolveSignalish(out));
|
|
1072
1084
|
}
|
|
1073
1085
|
}
|
|
1074
|
-
|
|
1086
|
+
useEffect3(syncWrap(async () => {
|
|
1075
1087
|
let data = resolveSignalish(await resolveMaybeAsyncFunc(props.loaded));
|
|
1076
1088
|
setLoaded(data);
|
|
1077
1089
|
}), [props.loaded]);
|
|
@@ -1084,7 +1096,7 @@ function Loading(props) {
|
|
|
1084
1096
|
// src/components/PathInput/PathInput.tsx
|
|
1085
1097
|
import { useSignal as useSignal7 } from "@preact/signals";
|
|
1086
1098
|
import { Fragment as Fragment2 } from "preact";
|
|
1087
|
-
import { useEffect as
|
|
1099
|
+
import { useEffect as useEffect4, useRef as useRef7 } from "preact/hooks";
|
|
1088
1100
|
import { ChevronRight as ChevronRight2 } from "lucide-preact";
|
|
1089
1101
|
import { jsx as jsx22, jsxs as jsxs9 } from "preact/jsx-runtime";
|
|
1090
1102
|
function PathInput(props) {
|
|
@@ -1115,13 +1127,13 @@ function PathInput(props) {
|
|
|
1115
1127
|
const end = combined.peek().length;
|
|
1116
1128
|
inputRef.current?.setSelectionRange(end, end);
|
|
1117
1129
|
}
|
|
1118
|
-
|
|
1130
|
+
useEffect4(() => {
|
|
1119
1131
|
if (!isSignal(props.value)) return;
|
|
1120
1132
|
return props.value.subscribe((val) => {
|
|
1121
1133
|
if (!editing.peek()) parts.value = splitPath(val);
|
|
1122
1134
|
});
|
|
1123
1135
|
}, [props.value]);
|
|
1124
|
-
|
|
1136
|
+
useEffect4(() => {
|
|
1125
1137
|
const el = pathRef.current;
|
|
1126
1138
|
if (!el) return;
|
|
1127
1139
|
requestAnimationFrame(() => {
|
|
@@ -1240,7 +1252,7 @@ function Seperator() {
|
|
|
1240
1252
|
|
|
1241
1253
|
// src/components/Slider/Slider.tsx
|
|
1242
1254
|
import { useSignal as useSignal9 } from "@preact/signals";
|
|
1243
|
-
import { useEffect as
|
|
1255
|
+
import { useEffect as useEffect5, useRef as useRef8 } from "preact/hooks";
|
|
1244
1256
|
import { jsx as jsx25, jsxs as jsxs11 } from "preact/jsx-runtime";
|
|
1245
1257
|
function Slider(props) {
|
|
1246
1258
|
let start = props.start ?? 0;
|
|
@@ -1254,7 +1266,7 @@ function Slider(props) {
|
|
|
1254
1266
|
value = useSignal9(props.value);
|
|
1255
1267
|
const ref = useRef8(null);
|
|
1256
1268
|
const dragging = props.dragging ?? useSignal9(false);
|
|
1257
|
-
|
|
1269
|
+
useEffect5(() => {
|
|
1258
1270
|
dragging.subscribe((d) => {
|
|
1259
1271
|
if (d)
|
|
1260
1272
|
document.addEventListener("pointermove", updateFromEvent);
|
|
@@ -1415,7 +1427,7 @@ function Tag(props) {
|
|
|
1415
1427
|
|
|
1416
1428
|
// src/components/TagList/TagListInput.tsx
|
|
1417
1429
|
import { useSignal as useSignal11 } from "@preact/signals";
|
|
1418
|
-
import { useRef as useRef9, useState as
|
|
1430
|
+
import { useRef as useRef9, useState as useState4 } from "preact/hooks";
|
|
1419
1431
|
import { jsx as jsx29, jsxs as jsxs14 } from "preact/jsx-runtime";
|
|
1420
1432
|
function TagListInput(props) {
|
|
1421
1433
|
let value;
|
|
@@ -1426,7 +1438,7 @@ function TagListInput(props) {
|
|
|
1426
1438
|
else
|
|
1427
1439
|
value = useSignal11(props.value);
|
|
1428
1440
|
const inputRef = useRef9();
|
|
1429
|
-
const [inputValue, setInputValue] =
|
|
1441
|
+
const [inputValue, setInputValue] = useState4("");
|
|
1430
1442
|
return /* @__PURE__ */ jsxs14("div", { class: "tag-list", children: [
|
|
1431
1443
|
value.value.map((t, i) => /* @__PURE__ */ jsx29(
|
|
1432
1444
|
Tag,
|
|
@@ -1473,11 +1485,11 @@ function TagListInput(props) {
|
|
|
1473
1485
|
}
|
|
1474
1486
|
|
|
1475
1487
|
// src/components/UploadBox/UploadBox.tsx
|
|
1476
|
-
import { useEffect as
|
|
1488
|
+
import { useEffect as useEffect6, useRef as useRef10, useState as useState5 } from "preact/hooks";
|
|
1477
1489
|
import { jsx as jsx30, jsxs as jsxs15 } from "preact/jsx-runtime";
|
|
1478
1490
|
function UploadBox(props) {
|
|
1479
1491
|
const inputRef = useRef10(null);
|
|
1480
|
-
const [dragging, setDragging] =
|
|
1492
|
+
const [dragging, setDragging] = useState5(false);
|
|
1481
1493
|
function handleFiles(files) {
|
|
1482
1494
|
files = Array.from(files);
|
|
1483
1495
|
if (!props.addFile)
|
|
@@ -1487,7 +1499,7 @@ function UploadBox(props) {
|
|
|
1487
1499
|
;
|
|
1488
1500
|
}
|
|
1489
1501
|
}
|
|
1490
|
-
|
|
1502
|
+
useEffect6(() => {
|
|
1491
1503
|
const onPaste = (e) => {
|
|
1492
1504
|
const files = e.clipboardData?.files;
|
|
1493
1505
|
if (files && files.length > 0)
|
|
@@ -1577,6 +1589,7 @@ export {
|
|
|
1577
1589
|
MainContainer,
|
|
1578
1590
|
HeaderContainer,
|
|
1579
1591
|
FooterContainer,
|
|
1592
|
+
AsideContainer,
|
|
1580
1593
|
PopoutContainer,
|
|
1581
1594
|
PopoutTextButton,
|
|
1582
1595
|
PopoutIconButton,
|
|
@@ -366,9 +366,9 @@ a.button {
|
|
|
366
366
|
visibility: hidden;
|
|
367
367
|
box-sizing: border-box;
|
|
368
368
|
width: max-content;
|
|
369
|
-
min-width: min(180px, calc(100vw -
|
|
370
|
-
max-width: calc(100vw -
|
|
371
|
-
max-height: calc(100vh -
|
|
369
|
+
min-width: min(180px, calc(100vw - 20px));
|
|
370
|
+
max-width: calc(100vw - 20px);
|
|
371
|
+
max-height: calc(100vh - 20px);
|
|
372
372
|
overflow: auto;
|
|
373
373
|
overscroll-behavior: contain;
|
|
374
374
|
padding: 5px;
|
|
@@ -102,6 +102,7 @@ declare function Container(props: ContainerProps): preact.JSX.Element;
|
|
|
102
102
|
declare function MainContainer(props: ContainerProps): preact.JSX.Element;
|
|
103
103
|
declare function HeaderContainer(props: ContainerProps): preact.JSX.Element;
|
|
104
104
|
declare function FooterContainer(props: ContainerProps): preact.JSX.Element;
|
|
105
|
+
declare function AsideContainer(props: ContainerProps): preact.JSX.Element;
|
|
105
106
|
|
|
106
107
|
declare function Content(props: {
|
|
107
108
|
class?: string;
|
|
@@ -365,4 +366,4 @@ declare function WrapList(props: {
|
|
|
365
366
|
min_size?: number;
|
|
366
367
|
}): preact.JSX.Element;
|
|
367
368
|
|
|
368
|
-
export { Branch, Button, type ButtonProps, type ButtonVariant, CalendarInput, Case, ClickFade, Container, type ContainerProps, Content, type ContextMenuItem, type ContextMenuPosition, DotSeperator, Else, FileIcon, FilePath, FooterContainer, FormalInput, Header1, Header2, Header3, HeaderContainer, IconButton, IconLinkButton, If, Image, ImageInput, Input, Label, LinkButton, type LinkButtonProps, type Loaded, Loading, MainContainer, MiniHeader, PathInput, type PopoutButtonProps, PopoutContainer, PopoutIconButton, type PopoutProps, PopoutTextButton, PopoutTextIconButton, SelectBox, Seperator, Slider, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Tag, TagList, TagListInput, Text, TextButton, TextIconButton, TextIconLinkButton, TextLinkButton, Textarea, Then, Throbber, UploadBox, WrapList, closeContextMenu, getFileIcon, openContextMenu, openContextMenuOn };
|
|
369
|
+
export { AsideContainer, Branch, Button, type ButtonProps, type ButtonVariant, CalendarInput, Case, ClickFade, Container, type ContainerProps, Content, type ContextMenuItem, type ContextMenuPosition, DotSeperator, Else, FileIcon, FilePath, FooterContainer, FormalInput, Header1, Header2, Header3, HeaderContainer, IconButton, IconLinkButton, If, Image, ImageInput, Input, Label, LinkButton, type LinkButtonProps, type Loaded, Loading, MainContainer, MiniHeader, PathInput, type PopoutButtonProps, PopoutContainer, PopoutIconButton, type PopoutProps, PopoutTextButton, PopoutTextIconButton, SelectBox, Seperator, Slider, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Tag, TagList, TagListInput, Text, TextButton, TextIconButton, TextIconLinkButton, TextLinkButton, Textarea, Then, Throbber, UploadBox, WrapList, closeContextMenu, getFileIcon, openContextMenu, openContextMenuOn };
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AsideContainer,
|
|
2
3
|
Branch,
|
|
3
4
|
Button,
|
|
4
5
|
CalendarInput,
|
|
@@ -60,10 +61,11 @@ import {
|
|
|
60
61
|
getFileIcon,
|
|
61
62
|
openContextMenu,
|
|
62
63
|
openContextMenuOn
|
|
63
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-GEOGVOJN.js";
|
|
64
65
|
import "../chunk-CE4YXNWV.js";
|
|
65
66
|
import "../chunk-6G3G7N5D.js";
|
|
66
67
|
export {
|
|
68
|
+
AsideContainer,
|
|
67
69
|
Branch,
|
|
68
70
|
Button,
|
|
69
71
|
CalendarInput,
|
package/dist/index.css
CHANGED
|
@@ -474,9 +474,9 @@ a.button {
|
|
|
474
474
|
visibility: hidden;
|
|
475
475
|
box-sizing: border-box;
|
|
476
476
|
width: max-content;
|
|
477
|
-
min-width: min(180px, calc(100vw -
|
|
478
|
-
max-width: calc(100vw -
|
|
479
|
-
max-height: calc(100vh -
|
|
477
|
+
min-width: min(180px, calc(100vw - 20px));
|
|
478
|
+
max-width: calc(100vw - 20px);
|
|
479
|
+
max-height: calc(100vh - 20px);
|
|
480
480
|
overflow: auto;
|
|
481
481
|
overscroll-behavior: contain;
|
|
482
482
|
padding: 5px;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Branch, Button, ButtonProps, ButtonVariant, CalendarInput, Case, ClickFade, Container, ContainerProps, Content, ContextMenuItem, ContextMenuPosition, DotSeperator, Else, FileIcon, FilePath, FooterContainer, FormalInput, Header1, Header2, Header3, HeaderContainer, IconButton, IconLinkButton, If, Image, ImageInput, Input, Label, LinkButton, LinkButtonProps, Loaded, Loading, MainContainer, MiniHeader, PathInput, PopoutButtonProps, PopoutContainer, PopoutIconButton, PopoutProps, PopoutTextButton, PopoutTextIconButton, SelectBox, Seperator, Slider, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Tag, TagList, TagListInput, Text, TextButton, TextIconButton, TextIconLinkButton, TextLinkButton, Textarea, Then, Throbber, UploadBox, WrapList, closeContextMenu, getFileIcon, openContextMenu, openContextMenuOn } from './components/index.js';
|
|
1
|
+
export { AsideContainer, Branch, Button, ButtonProps, ButtonVariant, CalendarInput, Case, ClickFade, Container, ContainerProps, Content, ContextMenuItem, ContextMenuPosition, DotSeperator, Else, FileIcon, FilePath, FooterContainer, FormalInput, Header1, Header2, Header3, HeaderContainer, IconButton, IconLinkButton, If, Image, ImageInput, Input, Label, LinkButton, LinkButtonProps, Loaded, Loading, MainContainer, MiniHeader, PathInput, PopoutButtonProps, PopoutContainer, PopoutIconButton, PopoutProps, PopoutTextButton, PopoutTextIconButton, SelectBox, Seperator, Slider, Switch, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, Tag, TagList, TagListInput, Text, TextButton, TextIconButton, TextIconLinkButton, TextLinkButton, Textarea, Then, Throbber, UploadBox, WrapList, closeContextMenu, getFileIcon, openContextMenu, openContextMenuOn } from './components/index.js';
|
|
2
2
|
export { C as CalendarDate, F as FileCategory, M as MaybeAsyncFunc, a as MaybeFunc, b as MaybeLoaded, c as MimeType, O as Option, S as Signalish, d as audioMimeTypes, e as convertPossibleNullishSignalToMaybeLoaded, f as convertPossibleNullishToMaybeLoaded, i as imageMimeTypes, g as isMaybeLoaded, h as isMime, j as isSignal, l as loaded, m as maybeLoadedIsLoaded, k as maybeLoadedIsNotLoaded, n as maybeLoadedMap, o as maybeLoadedUnwrap, p as notLoaded, q as peekSignalish, r as resolveMaybeAsyncFunc, s as resolveMaybeFunc, t as resolveSignalish } from './mime-rhdyiokw.js';
|
|
3
3
|
export { C as Comparable, n as nullish } from './misc-BNzd_rCz.js';
|
|
4
4
|
export { Result, Uuid, err, generateUuid, isResult, isUuid, ok, resultEqual, resultIsErr, resultIsOk, resultMap, resultMapErr, resultUnwrap, resultUnwrapErr } from './types/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./chunk-TUAWAX6H.js";
|
|
2
2
|
import {
|
|
3
|
+
AsideContainer,
|
|
3
4
|
Branch,
|
|
4
5
|
Button,
|
|
5
6
|
CalendarInput,
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
getFileIcon,
|
|
62
63
|
openContextMenu,
|
|
63
64
|
openContextMenuOn
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-GEOGVOJN.js";
|
|
65
66
|
import {
|
|
66
67
|
MOBILE,
|
|
67
68
|
addClass,
|
|
@@ -117,6 +118,7 @@ import {
|
|
|
117
118
|
resolveSignalish
|
|
118
119
|
} from "./chunk-6G3G7N5D.js";
|
|
119
120
|
export {
|
|
121
|
+
AsideContainer,
|
|
120
122
|
Branch,
|
|
121
123
|
Button,
|
|
122
124
|
CalendarDate,
|
package/dist/style.css
CHANGED
|
@@ -474,9 +474,9 @@ a.button {
|
|
|
474
474
|
visibility: hidden;
|
|
475
475
|
box-sizing: border-box;
|
|
476
476
|
width: max-content;
|
|
477
|
-
min-width: min(180px, calc(100vw -
|
|
478
|
-
max-width: calc(100vw -
|
|
479
|
-
max-height: calc(100vh -
|
|
477
|
+
min-width: min(180px, calc(100vw - 20px));
|
|
478
|
+
max-width: calc(100vw - 20px);
|
|
479
|
+
max-height: calc(100vh - 20px);
|
|
480
480
|
overflow: auto;
|
|
481
481
|
overscroll-behavior: contain;
|
|
482
482
|
padding: 5px;
|