@floegence/floe-webapp-core 0.35.23 → 0.35.25
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/components/editor/languages.js +37 -19
- package/dist/components/index.d.ts +1 -0
- package/dist/components/ui/Tag.d.ts +14 -0
- package/dist/components/ui/Tag.js +35 -0
- package/dist/components/ui/index.d.ts +3 -2
- package/dist/full.d.ts +1 -0
- package/dist/full.js +486 -485
- package/dist/styles.css +1 -1
- package/dist/ui.css +430 -122
- package/dist/ui.js +9 -7
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
function r(...p) {
|
|
2
|
+
return () => Promise.all(p.map((t) => t()));
|
|
3
|
+
}
|
|
4
|
+
const n = {
|
|
2
5
|
"": "plaintext",
|
|
3
6
|
text: "plaintext",
|
|
4
7
|
plaintext: "plaintext",
|
|
@@ -43,14 +46,29 @@ const s = {
|
|
|
43
46
|
vue: "plaintext",
|
|
44
47
|
svelte: "plaintext",
|
|
45
48
|
groovy: "plaintext"
|
|
46
|
-
},
|
|
49
|
+
}, a = {
|
|
47
50
|
javascript: () => import("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js"),
|
|
48
51
|
typescript: () => import("monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js"),
|
|
49
52
|
json: () => import("monaco-editor/esm/vs/language/json/monaco.contribution.js"),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
// Monaco's HTML/CSS language-service contributions do not register standalone
|
|
54
|
+
// tokenizers by themselves, so editable syntax coloring must load the paired
|
|
55
|
+
// basic-language contribution alongside the rich language-service runtime.
|
|
56
|
+
html: r(
|
|
57
|
+
() => import("monaco-editor/esm/vs/basic-languages/html/html.contribution.js"),
|
|
58
|
+
() => import("monaco-editor/esm/vs/language/html/monaco.contribution.js")
|
|
59
|
+
),
|
|
60
|
+
css: r(
|
|
61
|
+
() => import("monaco-editor/esm/vs/basic-languages/css/css.contribution.js"),
|
|
62
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
63
|
+
),
|
|
64
|
+
scss: r(
|
|
65
|
+
() => import("monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js"),
|
|
66
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
67
|
+
),
|
|
68
|
+
less: r(
|
|
69
|
+
() => import("monaco-editor/esm/vs/basic-languages/less/less.contribution.js"),
|
|
70
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
71
|
+
),
|
|
54
72
|
markdown: () => import("monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js"),
|
|
55
73
|
yaml: () => import("monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js"),
|
|
56
74
|
ini: () => import("monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js"),
|
|
@@ -78,33 +96,33 @@ const s = {
|
|
|
78
96
|
bat: () => import("monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js"),
|
|
79
97
|
powershell: () => import("monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js")
|
|
80
98
|
}, e = /* @__PURE__ */ new Map();
|
|
81
|
-
function
|
|
99
|
+
function c(p) {
|
|
82
100
|
const t = String(p ?? "").trim().toLowerCase();
|
|
83
|
-
return (
|
|
101
|
+
return (n[t] ?? t) || "plaintext";
|
|
84
102
|
}
|
|
85
|
-
function
|
|
103
|
+
function l(p, t) {
|
|
86
104
|
if (t)
|
|
87
105
|
return () => {
|
|
88
106
|
const i = e.get(p);
|
|
89
107
|
if (i) return i;
|
|
90
|
-
const
|
|
91
|
-
}).catch((
|
|
92
|
-
throw e.delete(p),
|
|
108
|
+
const o = t().then(() => {
|
|
109
|
+
}).catch((s) => {
|
|
110
|
+
throw e.delete(p), s;
|
|
93
111
|
});
|
|
94
|
-
return e.set(p,
|
|
112
|
+
return e.set(p, o), o;
|
|
95
113
|
};
|
|
96
114
|
}
|
|
97
|
-
function
|
|
98
|
-
const t =
|
|
115
|
+
function m(p) {
|
|
116
|
+
const t = c(p), i = l(t, a[t]);
|
|
99
117
|
return {
|
|
100
118
|
id: t,
|
|
101
119
|
load: i
|
|
102
120
|
};
|
|
103
121
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
122
|
+
function h(p) {
|
|
123
|
+
return m(p).id !== "plaintext" || c(p) === "plaintext";
|
|
106
124
|
}
|
|
107
125
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
126
|
+
h as isCodeEditorLanguageSupported,
|
|
127
|
+
m as resolveCodeEditorLanguageSpec
|
|
110
128
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Component, type JSX, type ParentProps } from 'solid-js';
|
|
2
|
+
export type TagVariant = 'neutral' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export type TagSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type TagTone = 'solid' | 'soft';
|
|
5
|
+
export interface TagProps extends ParentProps<JSX.HTMLAttributes<HTMLSpanElement>> {
|
|
6
|
+
variant?: TagVariant;
|
|
7
|
+
size?: TagSize;
|
|
8
|
+
tone?: TagTone;
|
|
9
|
+
icon?: Component<{
|
|
10
|
+
class?: string;
|
|
11
|
+
}>;
|
|
12
|
+
dot?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Tag(props: TagProps): JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { spread as i, mergeProps as m, insert as l, memo as n, createComponent as p, Dynamic as u, template as a } from "solid-js/web";
|
|
2
|
+
import { splitProps as _ } from "solid-js";
|
|
3
|
+
import { cn as f } from "../../utils/cn.js";
|
|
4
|
+
var d = /* @__PURE__ */ a("<span>"), g = /* @__PURE__ */ a("<span class=floe-tag__dot aria-hidden=true>"), $ = /* @__PURE__ */ a("<span class=floe-tag__label>");
|
|
5
|
+
function P(s) {
|
|
6
|
+
const [e, c] = _(s, ["variant", "size", "tone", "icon", "dot", "class", "children"]);
|
|
7
|
+
return (() => {
|
|
8
|
+
var r = d();
|
|
9
|
+
return i(r, m({
|
|
10
|
+
get class() {
|
|
11
|
+
return f("floe-tag", `floe-tag--${e.variant ?? "neutral"}`, `floe-tag--${e.size ?? "md"}`, `floe-tag--${e.tone ?? "solid"}`, e.class);
|
|
12
|
+
}
|
|
13
|
+
}, c), !1, !0), l(r, (() => {
|
|
14
|
+
var t = n(() => !!e.dot);
|
|
15
|
+
return () => t() && g();
|
|
16
|
+
})(), null), l(r, (() => {
|
|
17
|
+
var t = n(() => !!e.icon);
|
|
18
|
+
return () => t() && p(u, {
|
|
19
|
+
get component() {
|
|
20
|
+
return e.icon;
|
|
21
|
+
},
|
|
22
|
+
class: "floe-tag__icon"
|
|
23
|
+
});
|
|
24
|
+
})(), null), l(r, (() => {
|
|
25
|
+
var t = n(() => e.children != null);
|
|
26
|
+
return () => t() && (() => {
|
|
27
|
+
var o = $();
|
|
28
|
+
return l(o, () => e.children), o;
|
|
29
|
+
})();
|
|
30
|
+
})(), null), r;
|
|
31
|
+
})();
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
P as Tag
|
|
35
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export { Button, type ButtonProps, type ButtonVariant, type ButtonSize } from './Button';
|
|
2
|
+
export { Tag, type TagProps, type TagVariant, type TagSize } from './Tag';
|
|
2
3
|
export { Input, Textarea, NumberInput, AffixInput, type InputProps, type InputSize, type TextareaProps, type NumberInputProps, type AffixInputProps, type AffixOption, } from './Input';
|
|
3
4
|
export { Dialog, ConfirmDialog, type DialogProps, type ConfirmDialogProps } from './Dialog';
|
|
4
5
|
export { FloatingWindow, type FloatingWindowProps } from './FloatingWindow';
|
|
5
|
-
export { Dropdown, Select, type DropdownProps, type DropdownItem, type SelectProps } from './Dropdown';
|
|
6
|
+
export { Dropdown, Select, type DropdownProps, type DropdownItem, type SelectProps, } from './Dropdown';
|
|
6
7
|
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
7
8
|
export { CommandPalette } from './CommandPalette';
|
|
8
9
|
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, Interactive3DCard, AnimatedBorderCard, NeonCard, MorphCard, type CardProps, type CardVariant, type CardHeaderProps, type CardTitleProps, type CardDescriptionProps, type CardContentProps, type CardFooterProps, type Interactive3DCardProps, type AnimatedBorderCardProps, type NeonCardProps, type MorphCardProps, } from './Card';
|
|
9
10
|
export { Tabs, TabPanel, type TabsProps, type TabPanelProps, type TabItem, type TabsFeatures, type TabsSlotClassNames, type TabsIndicatorMode, type TabsIndicatorColorToken, } from './Tabs';
|
|
10
11
|
export { DirectoryPicker, type DirectoryPickerProps } from './DirectoryPicker';
|
|
11
|
-
export { DirectoryInput, type DirectoryInputProps, type DirectoryInputSize } from './DirectoryInput';
|
|
12
|
+
export { DirectoryInput, type DirectoryInputProps, type DirectoryInputSize, } from './DirectoryInput';
|
|
12
13
|
export { FileSavePicker, type FileSavePickerProps } from './FileSavePicker';
|
|
13
14
|
export { type BasePickerProps } from './picker/PickerBase';
|
|
14
15
|
export { QuoteBlock, type QuoteBlockProps } from './QuoteBlock';
|
package/dist/full.d.ts
CHANGED