flufi-ui 0.0.0-stage → 0.1.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.
@@ -0,0 +1,8 @@
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
+ 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
+ export { C as Comparable, n as nullish } from './misc-BNzd_rCz.js';
4
+ export { Result, Uuid, err, generateUuid, isResult, isUuid, ok, resultEqual, resultIsErr, resultIsOk, resultMap, resultMapErr, resultUnwrap, resultUnwrapErr } from './types/index.js';
5
+ export { MOBILE, QueryAttributeValue, QueryAttributes, addClass, addExt, addStyles, addTitle, calcHeight, createQuery, isNearBottom, isNearTop, iterate, joinPath, joinPathParts, removeDuplicates, removeIndent, splitFilePath, splitPath, syncWrap, tryExtractName } from './common/index.js';
6
+ import 'preact';
7
+ import '@preact/signals';
8
+ import 'lucide-preact';
package/dist/index.js ADDED
@@ -0,0 +1,231 @@
1
+ import "./chunk-TUAWAX6H.js";
2
+ import {
3
+ AsideContainer,
4
+ Branch,
5
+ Button,
6
+ CalendarInput,
7
+ Case,
8
+ ClickFade,
9
+ Container,
10
+ Content,
11
+ DotSeperator,
12
+ Else,
13
+ FileIcon,
14
+ FilePath,
15
+ FooterContainer,
16
+ FormalInput,
17
+ Header1,
18
+ Header2,
19
+ Header3,
20
+ HeaderContainer,
21
+ IconButton,
22
+ IconLinkButton,
23
+ If,
24
+ Image,
25
+ ImageInput,
26
+ Input,
27
+ Label,
28
+ LinkButton,
29
+ Loading,
30
+ MainContainer,
31
+ MiniHeader,
32
+ PathInput,
33
+ PopoutContainer,
34
+ PopoutIconButton,
35
+ PopoutTextButton,
36
+ PopoutTextIconButton,
37
+ SelectBox,
38
+ Seperator,
39
+ Slider,
40
+ Switch,
41
+ Table,
42
+ TableBody,
43
+ TableCell,
44
+ TableHead,
45
+ TableHeader,
46
+ TableRow,
47
+ Tabs,
48
+ Tag,
49
+ TagList,
50
+ TagListInput,
51
+ Text,
52
+ TextButton,
53
+ TextIconButton,
54
+ TextIconLinkButton,
55
+ TextLinkButton,
56
+ Textarea,
57
+ Then,
58
+ Throbber,
59
+ UploadBox,
60
+ WrapList,
61
+ closeContextMenu,
62
+ getFileIcon,
63
+ openContextMenu,
64
+ openContextMenuOn
65
+ } from "./chunk-M6LQH7LY.js";
66
+ import {
67
+ MOBILE,
68
+ addClass,
69
+ addExt,
70
+ addStyles,
71
+ addTitle,
72
+ calcHeight,
73
+ createQuery,
74
+ isNearBottom,
75
+ isNearTop,
76
+ iterate,
77
+ joinPath,
78
+ joinPathParts,
79
+ removeDuplicates,
80
+ removeIndent,
81
+ splitFilePath,
82
+ splitPath,
83
+ syncWrap,
84
+ tryExtractName
85
+ } from "./chunk-CE4YXNWV.js";
86
+ import {
87
+ audioMimeTypes,
88
+ err,
89
+ generateUuid,
90
+ imageMimeTypes,
91
+ isMime,
92
+ isResult,
93
+ isUuid,
94
+ ok,
95
+ resultEqual,
96
+ resultIsErr,
97
+ resultIsOk,
98
+ resultMap,
99
+ resultMapErr,
100
+ resultUnwrap,
101
+ resultUnwrapErr
102
+ } from "./chunk-EIYU7IQC.js";
103
+ import {
104
+ CalendarDate,
105
+ convertPossibleNullishSignalToMaybeLoaded,
106
+ convertPossibleNullishToMaybeLoaded,
107
+ isMaybeLoaded,
108
+ isSignal,
109
+ loaded,
110
+ maybeLoadedIsLoaded,
111
+ maybeLoadedIsNotLoaded,
112
+ maybeLoadedMap,
113
+ maybeLoadedUnwrap,
114
+ notLoaded,
115
+ peekSignalish,
116
+ resolveMaybeAsyncFunc,
117
+ resolveMaybeFunc,
118
+ resolveSignalish
119
+ } from "./chunk-6G3G7N5D.js";
120
+ export {
121
+ AsideContainer,
122
+ Branch,
123
+ Button,
124
+ CalendarDate,
125
+ CalendarInput,
126
+ Case,
127
+ ClickFade,
128
+ Container,
129
+ Content,
130
+ DotSeperator,
131
+ Else,
132
+ FileIcon,
133
+ FilePath,
134
+ FooterContainer,
135
+ FormalInput,
136
+ Header1,
137
+ Header2,
138
+ Header3,
139
+ HeaderContainer,
140
+ IconButton,
141
+ IconLinkButton,
142
+ If,
143
+ Image,
144
+ ImageInput,
145
+ Input,
146
+ Label,
147
+ LinkButton,
148
+ Loading,
149
+ MOBILE,
150
+ MainContainer,
151
+ MiniHeader,
152
+ PathInput,
153
+ PopoutContainer,
154
+ PopoutIconButton,
155
+ PopoutTextButton,
156
+ PopoutTextIconButton,
157
+ SelectBox,
158
+ Seperator,
159
+ Slider,
160
+ Switch,
161
+ Table,
162
+ TableBody,
163
+ TableCell,
164
+ TableHead,
165
+ TableHeader,
166
+ TableRow,
167
+ Tabs,
168
+ Tag,
169
+ TagList,
170
+ TagListInput,
171
+ Text,
172
+ TextButton,
173
+ TextIconButton,
174
+ TextIconLinkButton,
175
+ TextLinkButton,
176
+ Textarea,
177
+ Then,
178
+ Throbber,
179
+ UploadBox,
180
+ WrapList,
181
+ addClass,
182
+ addExt,
183
+ addStyles,
184
+ addTitle,
185
+ audioMimeTypes,
186
+ calcHeight,
187
+ closeContextMenu,
188
+ convertPossibleNullishSignalToMaybeLoaded,
189
+ convertPossibleNullishToMaybeLoaded,
190
+ createQuery,
191
+ err,
192
+ generateUuid,
193
+ getFileIcon,
194
+ imageMimeTypes,
195
+ isMaybeLoaded,
196
+ isMime,
197
+ isNearBottom,
198
+ isNearTop,
199
+ isResult,
200
+ isSignal,
201
+ isUuid,
202
+ iterate,
203
+ joinPath,
204
+ joinPathParts,
205
+ loaded,
206
+ maybeLoadedIsLoaded,
207
+ maybeLoadedIsNotLoaded,
208
+ maybeLoadedMap,
209
+ maybeLoadedUnwrap,
210
+ notLoaded,
211
+ ok,
212
+ openContextMenu,
213
+ openContextMenuOn,
214
+ peekSignalish,
215
+ removeDuplicates,
216
+ removeIndent,
217
+ resolveMaybeAsyncFunc,
218
+ resolveMaybeFunc,
219
+ resolveSignalish,
220
+ resultEqual,
221
+ resultIsErr,
222
+ resultIsOk,
223
+ resultMap,
224
+ resultMapErr,
225
+ resultUnwrap,
226
+ resultUnwrapErr,
227
+ splitFilePath,
228
+ splitPath,
229
+ syncWrap,
230
+ tryExtractName
231
+ };
@@ -0,0 +1,60 @@
1
+ import { Signal } from '@preact/signals';
2
+
3
+ type Signalish<T> = Signal<T> | T;
4
+ declare function isSignal(value: unknown): value is Signal;
5
+ declare function resolveSignalish<T>(signalish: Signalish<T>): T;
6
+ declare function peekSignalish<T>(signalish: Signalish<T>): T;
7
+
8
+ type Option<T> = T | null;
9
+
10
+ declare class CalendarDate {
11
+ private readonly date;
12
+ private constructor();
13
+ static now(): CalendarDate;
14
+ static fromString(value: string): CalendarDate;
15
+ static fromParts(year: number, month: number, day: number): CalendarDate;
16
+ static fromDate(date: Date): CalendarDate;
17
+ static parseDateInput(input: string): CalendarDate | null;
18
+ toString(): string;
19
+ toDisplayString(): string;
20
+ toDate(): Date;
21
+ compare(other: CalendarDate): number;
22
+ isBefore(other: CalendarDate): boolean;
23
+ isAfter(other: CalendarDate): boolean;
24
+ isSame(other: CalendarDate): boolean;
25
+ isBeforeOrEqual(other: CalendarDate): boolean;
26
+ isAfterOrEqual(other: CalendarDate): boolean;
27
+ get year(): number;
28
+ get month(): number;
29
+ get day(): number;
30
+ get parts(): {
31
+ year: number;
32
+ month: number;
33
+ day: number;
34
+ };
35
+ }
36
+
37
+ type MaybeFunc<T> = (() => T) | T;
38
+ declare function resolveMaybeFunc<T>(maybe_func: MaybeFunc<T>): T;
39
+ type MaybeAsyncFunc<T> = (() => Promise<T>) | (() => T) | T;
40
+ declare function resolveMaybeAsyncFunc<T>(maybe_func: MaybeAsyncFunc<T>): Promise<T>;
41
+
42
+ type FileCategory = "directory" | "symlink" | "bash" | "image" | "video" | "audio" | "json" | "code" | "config" | "markdown" | "text" | "document" | "archive" | "font" | "database" | "binary" | "other";
43
+
44
+ type MaybeLoaded<T> = ["maybeloaded", false] | ["maybeloaded", true, T];
45
+ declare const loaded: <T>(val: T) => MaybeLoaded<T>;
46
+ declare const notLoaded: <T>() => MaybeLoaded<T>;
47
+ declare const maybeLoadedIsLoaded: (value: MaybeLoaded<any>) => boolean;
48
+ declare const maybeLoadedIsNotLoaded: (value: MaybeLoaded<any>) => boolean;
49
+ declare const maybeLoadedUnwrap: <T>(value: MaybeLoaded<T>) => T;
50
+ declare const maybeLoadedMap: <T, U>(value: MaybeLoaded<T>, fn: (value: T) => U) => MaybeLoaded<U>;
51
+ declare const convertPossibleNullishToMaybeLoaded: <T>(value: Signalish<T>) => MaybeLoaded<NonNullable<T>>;
52
+ declare const convertPossibleNullishSignalToMaybeLoaded: <T>(value: Signal<T | null>) => Signal<MaybeLoaded<NonNullable<T>>>;
53
+ declare const isMaybeLoaded: <T>(value: any) => value is MaybeLoaded<T>;
54
+
55
+ type MimeType = `${string}/${string}`;
56
+ declare const isMime: (value: string) => value is MimeType;
57
+ declare const imageMimeTypes: string[];
58
+ declare const audioMimeTypes: string[];
59
+
60
+ export { CalendarDate as C, type FileCategory as F, type MaybeAsyncFunc as M, type Option as O, type Signalish as S, type MaybeFunc as a, type MaybeLoaded as b, type MimeType as c, audioMimeTypes as d, convertPossibleNullishSignalToMaybeLoaded as e, convertPossibleNullishToMaybeLoaded as f, isMaybeLoaded as g, isMime as h, imageMimeTypes as i, isSignal as j, maybeLoadedIsNotLoaded as k, loaded as l, maybeLoadedIsLoaded as m, maybeLoadedMap as n, maybeLoadedUnwrap as o, notLoaded as p, peekSignalish as q, resolveMaybeAsyncFunc as r, resolveMaybeFunc as s, resolveSignalish as t };
@@ -0,0 +1,4 @@
1
+ type nullish = null | undefined | void;
2
+ type Comparable = number | string | bigint | Date | nullish;
3
+
4
+ export type { Comparable as C, nullish as n };