@mitcsutt/kiln-ui 0.4.0 → 0.6.0
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/display/CodeBlock/CodeBlock.d.ts +44 -3
- package/dist/components/display/CodeBlock/CodeBlock.js +54 -49
- package/dist/components/display/CodeBlock/CodeBlock.js.map +1 -1
- package/dist/components/display/CodeBlock/CodeBlock.module.js +4 -3
- package/dist/components/display/CodeBlock/CodeBlock.module.js.map +1 -1
- package/dist/components/display/CodeBlock/index.d.ts +1 -1
- package/dist/components/display/List/List.d.ts +8 -0
- package/dist/components/display/List/List.js +5 -4
- package/dist/components/display/List/List.js.map +1 -1
- package/dist/components/display/List/List.module.js.map +1 -1
- package/dist/components/display/List/index.d.ts +1 -1
- package/dist/components/display/Media/Media.d.ts +2 -0
- package/dist/components/display/Media/Media.js +41 -25
- package/dist/components/display/Media/Media.js.map +1 -1
- package/dist/components/display/Table/Table.d.ts +17 -0
- package/dist/components/display/Table/Table.js +13 -10
- package/dist/components/display/Table/Table.js.map +1 -1
- package/dist/components/display/Table/Table.module.js.map +1 -1
- package/dist/components/display/Table/index.d.ts +1 -1
- package/dist/components/layout/Box/Box.d.ts +12 -3
- package/dist/components/layout/Box/Box.js +11 -10
- package/dist/components/layout/Box/Box.js.map +1 -1
- package/dist/components/layout/Box/Box.module.js.map +1 -1
- package/dist/components/layout/ScrollArea/ScrollArea.d.ts +36 -0
- package/dist/components/layout/ScrollArea/ScrollArea.js +25 -0
- package/dist/components/layout/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/components/layout/ScrollArea/ScrollArea.module.js +6 -0
- package/dist/components/layout/ScrollArea/ScrollArea.module.js.map +1 -0
- package/dist/components/layout/ScrollArea/index.d.ts +2 -0
- package/dist/components/layout/Section/Section.d.ts +11 -2
- package/dist/components/layout/Section/Section.js +10 -9
- package/dist/components/layout/Section/Section.js.map +1 -1
- package/dist/components/layout/Section/Section.module.js.map +1 -1
- package/dist/highlight/index.d.ts +18 -0
- package/dist/highlight/index.js +103 -0
- package/dist/highlight/index.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +102 -101
- package/dist/styles.css +1 -1
- package/dist/utils/newlines.d.ts +2 -0
- package/dist/utils/newlines.js +10 -0
- package/dist/utils/newlines.js.map +1 -0
- package/package.json +13 -2
- package/skills/design-rules/SKILL.md +1 -0
- package/skills/layout-composition/SKILL.md +2 -0
- package/skills/layout-composition/references/box.md +21 -1
- package/skills/layout-composition/references/scroll-area.md +68 -0
- package/skills/layout-composition/references/section.md +2 -1
- package/skills/setup-and-theming/SKILL.md +1 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { trimTrailingNewlines as e } from "../utils/newlines.js";
|
|
2
|
+
//#region src/highlight/index.ts
|
|
3
|
+
var t = {
|
|
4
|
+
js: "javascript",
|
|
5
|
+
javascript: "javascript",
|
|
6
|
+
jsx: "jsx",
|
|
7
|
+
ts: "typescript",
|
|
8
|
+
typescript: "typescript",
|
|
9
|
+
tsx: "tsx"
|
|
10
|
+
}, n = {
|
|
11
|
+
javascript: () => import("shiki/langs/javascript.mjs"),
|
|
12
|
+
jsx: () => import("shiki/langs/jsx.mjs"),
|
|
13
|
+
typescript: () => import("shiki/langs/typescript.mjs"),
|
|
14
|
+
tsx: () => import("shiki/langs/tsx.mjs")
|
|
15
|
+
}, r = [
|
|
16
|
+
"keyword",
|
|
17
|
+
"string",
|
|
18
|
+
"comment",
|
|
19
|
+
"constant",
|
|
20
|
+
"function",
|
|
21
|
+
"type",
|
|
22
|
+
"tag",
|
|
23
|
+
"attribute",
|
|
24
|
+
"punctuation"
|
|
25
|
+
], i = (e) => `#0000${(r.indexOf(e) + 1).toString(16).padStart(2, "0")}`, a = new Map(r.map((e) => [i(e), e])), o = "#000000", s = {
|
|
26
|
+
name: "kiln",
|
|
27
|
+
type: "light",
|
|
28
|
+
fg: o,
|
|
29
|
+
bg: "#ffffff",
|
|
30
|
+
settings: [
|
|
31
|
+
[["comment", "punctuation.definition.comment"], "comment"],
|
|
32
|
+
[["string", "punctuation.definition.string"], "string"],
|
|
33
|
+
[["meta.template.expression"], null],
|
|
34
|
+
[[
|
|
35
|
+
"constant.numeric",
|
|
36
|
+
"constant.language",
|
|
37
|
+
"constant.character",
|
|
38
|
+
"variable.language"
|
|
39
|
+
], "constant"],
|
|
40
|
+
[[
|
|
41
|
+
"keyword",
|
|
42
|
+
"storage",
|
|
43
|
+
"keyword.operator.new",
|
|
44
|
+
"keyword.operator.expression"
|
|
45
|
+
], "keyword"],
|
|
46
|
+
[["entity.name.function", "support.function"], "function"],
|
|
47
|
+
[[
|
|
48
|
+
"entity.name.type",
|
|
49
|
+
"entity.name.class",
|
|
50
|
+
"entity.other.inherited-class",
|
|
51
|
+
"support.type",
|
|
52
|
+
"support.class"
|
|
53
|
+
], "type"],
|
|
54
|
+
[["entity.name.tag"], "tag"],
|
|
55
|
+
[["entity.other.attribute-name"], "attribute"],
|
|
56
|
+
[[
|
|
57
|
+
"punctuation",
|
|
58
|
+
"meta.brace",
|
|
59
|
+
"keyword.operator"
|
|
60
|
+
], "punctuation"],
|
|
61
|
+
[["punctuation.definition.string.template.begin", "punctuation.definition.string.template.end"], "string"],
|
|
62
|
+
[["punctuation.definition.template-expression"], "punctuation"]
|
|
63
|
+
].map(([e, t]) => ({
|
|
64
|
+
scope: e,
|
|
65
|
+
settings: { foreground: t ? i(t) : o }
|
|
66
|
+
}))
|
|
67
|
+
}, c, l = /* @__PURE__ */ new Map();
|
|
68
|
+
function u(e) {
|
|
69
|
+
return c ??= Promise.all([import("shiki/core"), import("shiki/engine/javascript")]).then(([{ createHighlighterCore: e }, { createJavaScriptRegexEngine: t }]) => e({
|
|
70
|
+
themes: [s],
|
|
71
|
+
langs: [],
|
|
72
|
+
engine: t()
|
|
73
|
+
})), c.then(async (t) => {
|
|
74
|
+
let r = l.get(e);
|
|
75
|
+
return r || (r = n[e]().then((e) => t.loadLanguage(e.default)), l.set(e, r)), await r, t;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function d(e) {
|
|
79
|
+
return Object.hasOwn(t, e);
|
|
80
|
+
}
|
|
81
|
+
async function f(n, r) {
|
|
82
|
+
let i = r.toLowerCase();
|
|
83
|
+
if (!d(i)) return;
|
|
84
|
+
let o = t[i];
|
|
85
|
+
return (await u(o)).codeToTokensBase(e(n), {
|
|
86
|
+
lang: o,
|
|
87
|
+
theme: "kiln"
|
|
88
|
+
}).map((e) => {
|
|
89
|
+
let t = [];
|
|
90
|
+
for (let { content: n, color: r } of e) {
|
|
91
|
+
let e = r ? a.get(r.toLowerCase()) : void 0, i = t.at(-1);
|
|
92
|
+
i && i.type === e ? i.content += n : t.push(e ? {
|
|
93
|
+
content: n,
|
|
94
|
+
type: e
|
|
95
|
+
} : { content: n });
|
|
96
|
+
}
|
|
97
|
+
return t;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
export { f as highlight };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["GRAMMARS","LOADERS","TYPES","colourOf","type","typeOf","PLAIN","THEME","scope","highlighter","loaded","load","createHighlighterCore","createJavaScriptRegexEngine","language","grammar","core","module","isHighlightLanguage","highlight","id","trimTrailingNewlines","code","tokens","line","color","previous","content"],"sources":["../../src/highlight/index.ts"],"sourcesContent":["/*\n * @mitcsutt/kiln-ui/highlight: syntax highlighting for CodeBlock, kept out of the main entry.\n * It runs Shiki (an optional peer dependency) with its JavaScript regex engine, and loads Shiki\n * and each grammar only when the first block in that language is highlighted.\n */\nimport type { CodeToken, CodeTokenType } from '#components/display/CodeBlock'\nimport { trimTrailingNewlines } from '#utils/newlines'\nimport type { HighlighterCore, LanguageRegistration, ThemeRegistration } from 'shiki/core'\n\n/** The languages `highlight` understands, with their usual aliases. */\nexport type HighlightLanguage = 'js' | 'javascript' | 'jsx' | 'ts' | 'typescript' | 'tsx'\n\ntype Grammar = 'javascript' | 'jsx' | 'typescript' | 'tsx'\n\nconst GRAMMARS: Record<HighlightLanguage, Grammar> = {\n js: 'javascript',\n javascript: 'javascript',\n jsx: 'jsx',\n ts: 'typescript',\n typescript: 'typescript',\n tsx: 'tsx',\n}\n\nconst LOADERS: Record<Grammar, () => Promise<{ default: LanguageRegistration[] }>> = {\n javascript: () => import('shiki/langs/javascript.mjs'),\n jsx: () => import('shiki/langs/jsx.mjs'),\n typescript: () => import('shiki/langs/typescript.mjs'),\n tsx: () => import('shiki/langs/tsx.mjs'),\n}\n\nconst TYPES: CodeTokenType[] = [\n 'keyword',\n 'string',\n 'comment',\n 'constant',\n 'function',\n 'type',\n 'tag',\n 'attribute',\n 'punctuation',\n]\n\n/** Each token type gets a stand-in colour, which `highlight` reads back as the type. */\nconst colourOf = (type: CodeTokenType) =>\n `#0000${(TYPES.indexOf(type) + 1).toString(16).padStart(2, '0')}`\nconst typeOf = new Map(TYPES.map((type) => [colourOf(type), type]))\nconst PLAIN = '#000000'\n\n/** TextMate scopes → token types. A deeper or longer scope wins, so the exceptions follow. */\nconst RULES: [string[], CodeTokenType | null][] = [\n [['comment', 'punctuation.definition.comment'], 'comment'],\n [['string', 'punctuation.definition.string'], 'string'],\n [['meta.template.expression'], null],\n [\n ['constant.numeric', 'constant.language', 'constant.character', 'variable.language'],\n 'constant',\n ],\n [['keyword', 'storage', 'keyword.operator.new', 'keyword.operator.expression'], 'keyword'],\n [['entity.name.function', 'support.function'], 'function'],\n [\n [\n 'entity.name.type',\n 'entity.name.class',\n 'entity.other.inherited-class',\n 'support.type',\n 'support.class',\n ],\n 'type',\n ],\n [['entity.name.tag'], 'tag'],\n [['entity.other.attribute-name'], 'attribute'],\n [['punctuation', 'meta.brace', 'keyword.operator'], 'punctuation'],\n [\n ['punctuation.definition.string.template.begin', 'punctuation.definition.string.template.end'],\n 'string',\n ],\n [['punctuation.definition.template-expression'], 'punctuation'],\n]\n\nconst THEME: ThemeRegistration = {\n name: 'kiln',\n type: 'light',\n fg: PLAIN,\n bg: '#ffffff',\n settings: RULES.map(([scope, type]) => ({\n scope,\n settings: { foreground: type ? colourOf(type) : PLAIN },\n })),\n}\n\nlet highlighter: Promise<HighlighterCore> | undefined\nconst loaded = new Map<Grammar, Promise<void>>()\n\nfunction load(grammar: Grammar): Promise<HighlighterCore> {\n highlighter ??= Promise.all([import('shiki/core'), import('shiki/engine/javascript')]).then(\n ([{ createHighlighterCore }, { createJavaScriptRegexEngine }]) =>\n createHighlighterCore({ themes: [THEME], langs: [], engine: createJavaScriptRegexEngine() }),\n )\n return highlighter.then(async (core) => {\n let language = loaded.get(grammar)\n if (!language) {\n language = LOADERS[grammar]().then((module) => core.loadLanguage(module.default))\n loaded.set(grammar, language)\n }\n await language\n return core\n })\n}\n\nfunction isHighlightLanguage(language: string): language is HighlightLanguage {\n return Object.hasOwn(GRAMMARS, language)\n}\n\n/**\n * Tokens for `CodeBlock`'s `tokens` prop: one array per line of `code`, each token tagged with\n * what it is (keyword, string, comment…) so the theme colours it. Resolves to `undefined` for a\n * language it doesn't know, which `CodeBlock` shows as plain code.\n *\n * @remarks\n * Install `shiki` alongside kiln-ui to use it. Call it wherever your code is ready: in a server\n * component or at build time, so the browser downloads no highlighter, or in the browser, where\n * Shiki and the grammar load on the first call.\n *\n * @example\n * const tokens = await highlight(source, 'tsx')\n * return <CodeBlock code={source} language=\"TSX\" tokens={tokens} />\n */\nexport async function highlight(\n code: string,\n language: string,\n): Promise<CodeToken[][] | undefined> {\n const id = language.toLowerCase()\n if (!isHighlightLanguage(id)) return undefined\n const grammar = GRAMMARS[id]\n const core = await load(grammar)\n const lines = core.codeToTokensBase(trimTrailingNewlines(code), { lang: grammar, theme: 'kiln' })\n return lines.map((line) => {\n const tokens: CodeToken[] = []\n for (const { content, color } of line) {\n const type = color ? typeOf.get(color.toLowerCase()) : undefined\n const previous = tokens.at(-1)\n if (previous && previous.type === type) previous.content += content\n else tokens.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;AACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export { AppShell } from './components/layout/AppShell/index.js';
|
|
|
28
28
|
export type { AppShellProps, AppShellHeaderProps, AppShellMainProps, AppShellSidebarProps, AppShellFooterProps, AppShellBottomBarProps, AppShellNavBreakpoint, } from './components/layout/AppShell/index.js';
|
|
29
29
|
export { VisuallyHidden } from './components/layout/VisuallyHidden/index.js';
|
|
30
30
|
export type { VisuallyHiddenProps } from './components/layout/VisuallyHidden/index.js';
|
|
31
|
+
export { ScrollArea } from './components/layout/ScrollArea/index.js';
|
|
32
|
+
export type { ScrollAreaProps, ScrollAreaAxis } from './components/layout/ScrollArea/index.js';
|
|
31
33
|
export { ActionBar } from './components/layout/ActionBar/index.js';
|
|
32
34
|
export type { ActionBarProps, ActionBarAlign, ActionBarElement, } from './components/layout/ActionBar/index.js';
|
|
33
35
|
export { Heading, DEFAULT_HEADING_SIZE } from './components/typography/Heading/index.js';
|
|
@@ -165,15 +167,15 @@ export type { DeltaProps, DeltaDirection, DeltaTone } from './components/display
|
|
|
165
167
|
export { DataList } from './components/display/DataList/index.js';
|
|
166
168
|
export type { DataListProps, DataListItemProps, DataListOrientation, } from './components/display/DataList/index.js';
|
|
167
169
|
export { List } from './components/display/List/index.js';
|
|
168
|
-
export type { ListProps, ListItemProps, ListDensity, ListElement } from './components/display/List/index.js';
|
|
170
|
+
export type { ListProps, ListItemProps, ListDensity, ListElement, ListSurface, } from './components/display/List/index.js';
|
|
169
171
|
export { Table } from './components/display/Table/index.js';
|
|
170
|
-
export type { TableProps, TableDensity, TableVariant, TableAlign, TableSort, TableRowProps, TableHeaderCellProps, TableCellProps, TableColumnWidth, } from './components/display/Table/index.js';
|
|
172
|
+
export type { TableProps, TableDensity, TableVariant, TableSurface, TableAlign, TableVerticalAlign, TableSort, TableRowProps, TableHeaderCellProps, TableCellProps, TableColumnWidth, } from './components/display/Table/index.js';
|
|
171
173
|
export { Media } from './components/display/Media/index.js';
|
|
172
174
|
export type { MediaProps, MediaRatio, MediaFit, MediaRadius, MediaSize, } from './components/display/Media/index.js';
|
|
173
175
|
export { Marquee } from './components/display/Marquee/index.js';
|
|
174
176
|
export type { MarqueeProps, MarqueeSpeed, MarqueeDirection, MarqueeSurface, } from './components/display/Marquee/index.js';
|
|
175
177
|
export { CodeBlock } from './components/display/CodeBlock/index.js';
|
|
176
|
-
export type { CodeBlockProps } from './components/display/CodeBlock/index.js';
|
|
178
|
+
export type { CodeBlockProps, CodeToken, CodeTokenType } from './components/display/CodeBlock/index.js';
|
|
177
179
|
export { Stamp } from './components/display/Stamp/index.js';
|
|
178
180
|
export type { StampProps, StampPlacement } from './components/display/Stamp/index.js';
|
|
179
181
|
export { Progress } from './components/display/Progress/index.js';
|
package/dist/index.js
CHANGED
|
@@ -16,104 +16,105 @@ import { Divider as te } from "./components/layout/Divider/Divider.js";
|
|
|
16
16
|
import { AspectRatio as ne } from "./components/layout/AspectRatio/AspectRatio.js";
|
|
17
17
|
import { VisuallyHidden as re } from "./components/layout/VisuallyHidden/VisuallyHidden.js";
|
|
18
18
|
import { AppShell as ie } from "./components/layout/AppShell/AppShell.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
|
|
19
|
+
import { ScrollArea as ae } from "./components/layout/ScrollArea/ScrollArea.js";
|
|
20
|
+
import { ActionBar as oe } from "./components/layout/ActionBar/ActionBar.js";
|
|
21
|
+
import { DEFAULT_HEADING_SIZE as se } from "./components/typography/Heading/sizes.js";
|
|
22
|
+
import { Heading as ce } from "./components/typography/Heading/Heading.js";
|
|
23
|
+
import { Text as le } from "./components/typography/Text/Text.js";
|
|
24
|
+
import { Link as ue } from "./components/typography/Link/Link.js";
|
|
25
|
+
import { Code as de } from "./components/typography/Code/Code.js";
|
|
26
|
+
import { Kbd as fe } from "./components/typography/Kbd/Kbd.js";
|
|
27
|
+
import { Prose as pe } from "./components/typography/Prose/Prose.js";
|
|
28
|
+
import { Quote as me } from "./components/typography/Quote/Quote.js";
|
|
29
|
+
import { formatNumeral as he, formatNumeralParts as ge, signOf as _e } from "./components/typography/Numeral/format.js";
|
|
30
|
+
import { Numeral as ve } from "./components/typography/Numeral/Numeral.js";
|
|
31
|
+
import { Amount as ye } from "./components/typography/Amount/Amount.js";
|
|
32
|
+
import { SectionHeader as be } from "./components/typography/SectionHeader/SectionHeader.js";
|
|
33
|
+
import { Spinner as xe } from "./components/feedback/Spinner/Spinner.js";
|
|
34
|
+
import { Button as Se } from "./components/actions/Button/Button.js";
|
|
35
|
+
import { IconButton as Ce } from "./components/actions/IconButton/IconButton.js";
|
|
36
|
+
import { ToggleChip as we } from "./components/actions/ToggleChip/ToggleChip.js";
|
|
37
|
+
import { useFieldControl as Te } from "./components/inputs/internal/FieldContext.js";
|
|
38
|
+
import { ChipGroup as Ee } from "./components/actions/ChipGroup/ChipGroup.js";
|
|
39
|
+
import { SegmentedControl as De } from "./components/actions/SegmentedControl/SegmentedControl.js";
|
|
40
|
+
import { ModeToggle as Oe } from "./components/actions/ModeToggle/ModeToggle.js";
|
|
41
|
+
import { Field as ke } from "./components/inputs/Field/Field.js";
|
|
42
|
+
import { Input as Ae } from "./components/inputs/Input/Input.js";
|
|
43
|
+
import { Textarea as je } from "./components/inputs/Textarea/Textarea.js";
|
|
44
|
+
import { Select as Me } from "./components/inputs/Select/Select.js";
|
|
45
|
+
import { Checkbox as Ne } from "./components/inputs/Checkbox/Checkbox.js";
|
|
46
|
+
import { RadioGroup as Pe } from "./components/inputs/RadioGroup/RadioGroup.js";
|
|
47
|
+
import { Switch as Fe } from "./components/inputs/Switch/Switch.js";
|
|
48
|
+
import { Fieldset as Ie } from "./components/inputs/Fieldset/Fieldset.js";
|
|
49
|
+
import { TextField as Le } from "./components/inputs/TextField/TextField.js";
|
|
50
|
+
import { TextareaField as Re } from "./components/inputs/TextareaField/TextareaField.js";
|
|
51
|
+
import { SelectField as ze } from "./components/inputs/SelectField/SelectField.js";
|
|
52
|
+
import { CheckboxField as Be } from "./components/inputs/CheckboxField/CheckboxField.js";
|
|
53
|
+
import { PasswordInput as Ve } from "./components/inputs/PasswordInput/PasswordInput.js";
|
|
54
|
+
import { PasswordField as He } from "./components/inputs/PasswordField/PasswordField.js";
|
|
55
|
+
import { NumberInput as Ue } from "./components/inputs/NumberInput/NumberInput.js";
|
|
56
|
+
import { NumberField as We } from "./components/inputs/NumberField/NumberField.js";
|
|
57
|
+
import { AmountInput as Ge } from "./components/inputs/AmountInput/AmountInput.js";
|
|
58
|
+
import { AmountField as Ke } from "./components/inputs/AmountField/AmountField.js";
|
|
59
|
+
import { OneTimeCodeInput as qe } from "./components/inputs/OneTimeCodeInput/OneTimeCodeInput.js";
|
|
60
|
+
import { OneTimeCodeField as Je } from "./components/inputs/OneTimeCodeField/OneTimeCodeField.js";
|
|
61
|
+
import { ColorInput as Ye } from "./components/inputs/ColorInput/ColorInput.js";
|
|
62
|
+
import { ColorField as Xe } from "./components/inputs/ColorField/ColorField.js";
|
|
63
|
+
import { SwitchField as Ze } from "./components/inputs/SwitchField/SwitchField.js";
|
|
64
|
+
import { DateRangeField as Qe } from "./components/inputs/DateRangeField/DateRangeField.js";
|
|
65
|
+
import { CheckboxGroup as $e } from "./components/inputs/CheckboxGroup/CheckboxGroup.js";
|
|
66
|
+
import { CheckboxGroupField as et } from "./components/inputs/CheckboxGroupField/CheckboxGroupField.js";
|
|
67
|
+
import { RadioGroupField as tt } from "./components/inputs/RadioGroupField/RadioGroupField.js";
|
|
68
|
+
import { SegmentedField as nt } from "./components/inputs/SegmentedField/SegmentedField.js";
|
|
69
|
+
import { ChipGroupField as rt } from "./components/inputs/ChipGroupField/ChipGroupField.js";
|
|
70
|
+
import { ChoiceCards as it } from "./components/inputs/ChoiceCards/ChoiceCards.js";
|
|
71
|
+
import { ChoiceCardsField as at } from "./components/inputs/ChoiceCardsField/ChoiceCardsField.js";
|
|
72
|
+
import { Slider as ot } from "./components/inputs/Slider/Slider.js";
|
|
73
|
+
import { SliderField as st } from "./components/inputs/SliderField/SliderField.js";
|
|
74
|
+
import { RangeSlider as ct } from "./components/inputs/RangeSlider/RangeSlider.js";
|
|
75
|
+
import { RangeSliderField as lt } from "./components/inputs/RangeSliderField/RangeSliderField.js";
|
|
76
|
+
import { Rating as ut } from "./components/inputs/Rating/Rating.js";
|
|
77
|
+
import { RatingField as dt } from "./components/inputs/RatingField/RatingField.js";
|
|
78
|
+
import { Tag as ft, TagList as pt } from "./components/display/Tag/Tag.js";
|
|
79
|
+
import { Combobox as mt } from "./components/inputs/Combobox/Combobox.js";
|
|
80
|
+
import { ComboboxField as ht } from "./components/inputs/ComboboxField/ComboboxField.js";
|
|
81
|
+
import { TagsInput as gt } from "./components/inputs/TagsInput/TagsInput.js";
|
|
82
|
+
import { TagsField as _t } from "./components/inputs/TagsField/TagsField.js";
|
|
83
|
+
import { FileDrop as vt } from "./components/inputs/FileDrop/FileDrop.js";
|
|
84
|
+
import { FileField as yt } from "./components/inputs/FileField/FileField.js";
|
|
85
|
+
import { Card as bt } from "./components/display/Card/Card.js";
|
|
86
|
+
import { Badge as xt } from "./components/display/Badge/Badge.js";
|
|
87
|
+
import { avatarColor as St, getInitials as Ct } from "./components/display/Avatar/avatarUtils.js";
|
|
88
|
+
import { Avatar as wt } from "./components/display/Avatar/Avatar.js";
|
|
89
|
+
import { AvatarGroup as Tt } from "./components/display/AvatarGroup/AvatarGroup.js";
|
|
90
|
+
import { Delta as Et } from "./components/display/Delta/Delta.js";
|
|
91
|
+
import { Stat as Dt } from "./components/display/Stat/Stat.js";
|
|
92
|
+
import { DataList as Ot } from "./components/display/DataList/DataList.js";
|
|
93
|
+
import { List as kt } from "./components/display/List/List.js";
|
|
94
|
+
import { Table as At } from "./components/display/Table/Table.js";
|
|
95
|
+
import { Media as jt } from "./components/display/Media/Media.js";
|
|
96
|
+
import { Marquee as Mt } from "./components/display/Marquee/Marquee.js";
|
|
97
|
+
import { CodeBlock as Nt } from "./components/display/CodeBlock/CodeBlock.js";
|
|
98
|
+
import { Stamp as Pt } from "./components/display/Stamp/Stamp.js";
|
|
99
|
+
import { Progress as Ft } from "./components/display/Progress/Progress.js";
|
|
100
|
+
import { meterTone as It } from "./components/display/Meter/meterTone.js";
|
|
101
|
+
import { Meter as Lt } from "./components/display/Meter/Meter.js";
|
|
102
|
+
import { Skeleton as Rt } from "./components/display/Skeleton/Skeleton.js";
|
|
103
|
+
import { EmptyState as zt } from "./components/display/EmptyState/EmptyState.js";
|
|
104
|
+
import { Tabs as Bt } from "./components/navigation/Tabs/Tabs.js";
|
|
105
|
+
import { NavLinks as Vt } from "./components/navigation/NavLinks/NavLinks.js";
|
|
106
|
+
import { BottomNav as Ht } from "./components/navigation/BottomNav/BottomNav.js";
|
|
107
|
+
import { Accordion as Ut } from "./components/navigation/Accordion/Accordion.js";
|
|
108
|
+
import { Stepper as Wt } from "./components/navigation/Stepper/Stepper.js";
|
|
109
|
+
import { Alert as Gt } from "./components/feedback/Alert/Alert.js";
|
|
110
|
+
import { LiveIndicator as Kt } from "./components/feedback/LiveIndicator/LiveIndicator.js";
|
|
111
|
+
import { Flash as qt } from "./components/feedback/Flash/Flash.js";
|
|
112
|
+
import { StatusDot as Jt } from "./components/feedback/StatusDot/StatusDot.js";
|
|
113
|
+
import { formatAbsoluteTime as Yt, formatRelativeTime as Xt } from "./components/feedback/RelativeTime/format.js";
|
|
114
|
+
import { RelativeTime as Zt } from "./components/feedback/RelativeTime/RelativeTime.js";
|
|
115
|
+
import { Dialog as Qt } from "./components/overlays/Dialog/Dialog.js";
|
|
116
|
+
import { Sheet as $t } from "./components/overlays/Sheet/Sheet.js";
|
|
117
|
+
import { Popover as en } from "./components/overlays/Popover/Popover.js";
|
|
118
|
+
import { DropdownMenu as tn } from "./components/overlays/DropdownMenu/DropdownMenu.js";
|
|
119
|
+
import { Tooltip as nn, TooltipProvider as rn } from "./components/overlays/Tooltip/Tooltip.js";
|
|
120
|
+
export { Ut as Accordion, oe as ActionBar, Gt as Alert, ye as Amount, Ke as AmountField, Ge as AmountInput, ie as AppShell, u as ArrowLeftIcon, d as ArrowRightIcon, f as ArrowUpRightIcon, ne as AspectRatio, wt as Avatar, Tt as AvatarGroup, xt as Badge, Ht as BottomNav, X as Box, Se as Button, p as CalendarIcon, bt as Card, m as CheckIcon, Ne as Checkbox, Be as CheckboxField, $e as CheckboxGroup, et as CheckboxGroupField, h as ChevronDownIcon, g as ChevronLeftIcon, _ as ChevronRightIcon, v as ChevronUpIcon, Ee as ChipGroup, rt as ChipGroupField, it as ChoiceCards, at as ChoiceCardsField, y as CircleCheckIcon, b as ClockIcon, x as CloseIcon, de as Code, Nt as CodeBlock, Xe as ColorField, Ye as ColorInput, mt as Combobox, ht as ComboboxField, $ as Container, S as CopyIcon, se as DEFAULT_HEADING_SIZE, e as DEFAULT_THEME, Ot as DataList, Qe as DateRangeField, Et as Delta, Qt as Dialog, te as Divider, tn as DropdownMenu, zt as EmptyState, C as ErrorIcon, w as EyeIcon, T as EyeOffIcon, ke as Field, Ie as Fieldset, vt as FileDrop, yt as FileField, qt as Flash, Z as Grid, ce as Heading, E as HelpIcon, Ce as IconButton, D as InfoIcon, Y as Inline, Ae as Input, fe as Kbd, ue as Link, kt as List, Kt as LiveIndicator, t as MODES, Mt as Marquee, jt as Media, O as MenuIcon, k as MessageIcon, Lt as Meter, A as MinusIcon, Oe as ModeToggle, j as MoonIcon, M as MoreIcon, Vt as NavLinks, We as NumberField, Ue as NumberInput, ve as Numeral, Je as OneTimeCodeField, qe as OneTimeCodeInput, He as PasswordField, Ve as PasswordInput, N as PlusIcon, en as Popover, Ft as Progress, pe as Prose, me as Quote, Pe as RadioGroup, tt as RadioGroupField, P as RadioIcon, ct as RangeSlider, lt as RangeSliderField, ut as Rating, dt as RatingField, Zt as RelativeTime, ae as ScrollArea, F as SearchIcon, ee as Section, be as SectionHeader, De as SegmentedControl, nt as SegmentedField, Me as Select, ze as SelectField, $t as Sheet, I as ShieldIcon, Rt as Skeleton, ot as Slider, st as SliderField, xe as Spinner, Q as Split, J as Stack, Pt as Stamp, L as StarIcon, Dt as Stat, Jt as StatusDot, Wt as Stepper, R as SunIcon, Fe as Switch, Ze as SwitchField, z as SwordsIcon, B as SystemIcon, n as THEMES, r as THEME_META, At as Table, Bt as Tabs, ft as Tag, pt as TagList, _t as TagsField, gt as TagsInput, V as TargetIcon, le as Text, Le as TextField, je as Textarea, Re as TextareaField, o as ThemeProvider, s as ThemeScope, we as ToggleChip, nn as Tooltip, rn as TooltipProvider, H as TrendingUpIcon, U as TrophyIcon, W as UploadIcon, G as UsersIcon, re as VisuallyHidden, K as WarningIcon, q as ZapIcon, St as avatarColor, l as createIcon, c as cx, Yt as formatAbsoluteTime, he as formatNumeral, ge as formatNumeralParts, Xt as formatRelativeTime, Ct as getInitials, It as meterTone, _e as signOf, a as themeScript, Te as useFieldControl, i as useTheme };
|