@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.
Files changed (49) hide show
  1. package/dist/components/display/CodeBlock/CodeBlock.d.ts +44 -3
  2. package/dist/components/display/CodeBlock/CodeBlock.js +54 -49
  3. package/dist/components/display/CodeBlock/CodeBlock.js.map +1 -1
  4. package/dist/components/display/CodeBlock/CodeBlock.module.js +4 -3
  5. package/dist/components/display/CodeBlock/CodeBlock.module.js.map +1 -1
  6. package/dist/components/display/CodeBlock/index.d.ts +1 -1
  7. package/dist/components/display/List/List.d.ts +8 -0
  8. package/dist/components/display/List/List.js +5 -4
  9. package/dist/components/display/List/List.js.map +1 -1
  10. package/dist/components/display/List/List.module.js.map +1 -1
  11. package/dist/components/display/List/index.d.ts +1 -1
  12. package/dist/components/display/Media/Media.d.ts +2 -0
  13. package/dist/components/display/Media/Media.js +41 -25
  14. package/dist/components/display/Media/Media.js.map +1 -1
  15. package/dist/components/display/Table/Table.d.ts +17 -0
  16. package/dist/components/display/Table/Table.js +13 -10
  17. package/dist/components/display/Table/Table.js.map +1 -1
  18. package/dist/components/display/Table/Table.module.js.map +1 -1
  19. package/dist/components/display/Table/index.d.ts +1 -1
  20. package/dist/components/layout/Box/Box.d.ts +12 -3
  21. package/dist/components/layout/Box/Box.js +11 -10
  22. package/dist/components/layout/Box/Box.js.map +1 -1
  23. package/dist/components/layout/Box/Box.module.js.map +1 -1
  24. package/dist/components/layout/ScrollArea/ScrollArea.d.ts +36 -0
  25. package/dist/components/layout/ScrollArea/ScrollArea.js +25 -0
  26. package/dist/components/layout/ScrollArea/ScrollArea.js.map +1 -0
  27. package/dist/components/layout/ScrollArea/ScrollArea.module.js +6 -0
  28. package/dist/components/layout/ScrollArea/ScrollArea.module.js.map +1 -0
  29. package/dist/components/layout/ScrollArea/index.d.ts +2 -0
  30. package/dist/components/layout/Section/Section.d.ts +11 -2
  31. package/dist/components/layout/Section/Section.js +10 -9
  32. package/dist/components/layout/Section/Section.js.map +1 -1
  33. package/dist/components/layout/Section/Section.module.js.map +1 -1
  34. package/dist/highlight/index.d.ts +18 -0
  35. package/dist/highlight/index.js +103 -0
  36. package/dist/highlight/index.js.map +1 -0
  37. package/dist/index.d.ts +5 -3
  38. package/dist/index.js +102 -101
  39. package/dist/styles.css +1 -1
  40. package/dist/utils/newlines.d.ts +2 -0
  41. package/dist/utils/newlines.js +10 -0
  42. package/dist/utils/newlines.js.map +1 -0
  43. package/package.json +13 -2
  44. package/skills/design-rules/SKILL.md +1 -0
  45. package/skills/layout-composition/SKILL.md +2 -0
  46. package/skills/layout-composition/references/box.md +21 -1
  47. package/skills/layout-composition/references/scroll-area.md +68 -0
  48. package/skills/layout-composition/references/section.md +2 -1
  49. 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.push(type ? { content, type } : { content })\n }\n return tokens\n })\n}\n"],"mappings":";;AAcA,IAAMA,IAA+C;CACnD,IAAI;CACJ,YAAY;CACZ,KAAK;CACL,IAAI;CACJ,YAAY;CACZ,KAAK;AACP,GAEMC,IAA+E;CACnF,kBAAkB,OAAO;CACzB,WAAW,OAAO;CAClB,kBAAkB,OAAO;CACzB,WAAW,OAAO;AACpB,GAEMC,IAAyB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAGMC,KAAY,MAChB,SAASD,EAAM,QAAQE,CAAI,IAAI,EAAA,CAAG,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG,KAC1DC,IAAS,IAAI,IAAIH,EAAM,KAAK,MAAS,CAACC,EAASC,CAAI,GAAGA,CAAI,CAAC,CAAC,GAC5DE,IAAQ,WAiCRC,IAA2B;CAC/B,MAAM;CACN,MAAM;CACN,IAAID;CACJ,IAAI;CACJ,UAAU;EAlCV,CAAC,CAAC,WAAW,gCAAgC,GAAG,SAAS;EACzD,CAAC,CAAC,UAAU,+BAA+B,GAAG,QAAQ;EACtD,CAAC,CAAC,0BAA0B,GAAG,IAAI;EACnC,CACE;GAAC;GAAoB;GAAqB;GAAsB;EAAmB,GACnF,UACF;EACA,CAAC;GAAC;GAAW;GAAW;GAAwB;EAA6B,GAAG,SAAS;EACzF,CAAC,CAAC,wBAAwB,kBAAkB,GAAG,UAAU;EACzD,CACE;GACE;GACA;GACA;GACA;GACA;EACF,GACA,MACF;EACA,CAAC,CAAC,iBAAiB,GAAG,KAAK;EAC3B,CAAC,CAAC,6BAA6B,GAAG,WAAW;EAC7C,CAAC;GAAC;GAAe;GAAc;EAAkB,GAAG,aAAa;EACjE,CACE,CAAC,gDAAgD,4CAA4C,GAC7F,QACF;EACA,CAAC,CAAC,4CAA4C,GAAG,aAAa;CAQpD,CAAA,CAAM,KAAK,CAACE,GAAOJ,QAAW;EACtC;EACA,UAAU,EAAE,YAAYA,IAAOD,EAASC,CAAI,IAAIE,EAAM;CACxD,EAAE;AACJ,GAEIG,GACEC,oBAAS,IAAI,IAA4B;AAE/C,SAASC,EAAK,GAA4C;CAKxD,OAJA,MAAgB,QAAQ,IAAI,CAAC,OAAO,eAAe,OAAO,0BAA0B,CAAC,CAAC,CAAC,MACpF,CAAC,EAAE,4BAAyB,EAAE,sCAC7BC,EAAsB;EAAE,QAAQ,CAACL,CAAK;EAAG,OAAO,CAAC;EAAG,QAAQM,EAA4B;CAAE,CAAC,CAC/F,GACOJ,EAAY,KAAK,OAAO,MAAS;EACtC,IAAIK,IAAWJ,EAAO,IAAIK,CAAO;EAMjC,OALKD,MACH,IAAWb,EAAQc,EAAQ,CAAC,CAAC,CAAC,MAAM,MAAWC,EAAK,aAAaC,EAAO,OAAO,CAAC,GAChFP,EAAO,IAAIK,GAASD,CAAQ,IAE9B,MAAMA,GACCE;CACT,CAAC;AACH;AAEA,SAASE,EAAoB,GAAiD;CAC5E,OAAO,OAAO,OAAOlB,GAAUc,CAAQ;AACzC;AAgBA,eAAsBK,EACpB,GACA,GACoC;CACpC,IAAMC,IAAKN,EAAS,YAAY;CAChC,IAAI,CAACI,EAAoBE,CAAE,GAAG;CAC9B,IAAML,IAAUf,EAASoB;CAGzB,QADc,MADKT,EAAKI,CAAO,EAAA,CACZ,iBAAiBM,EAAqBC,CAAI,GAAG;EAAE,MAAMP;EAAS,OAAO;CAAO,CACxF,CAAA,CAAM,KAAK,MAAS;EACzB,IAAMQ,IAAsB,CAAC;EAC7B,KAAK,IAAM,EAAE,YAAS,cAAWC,GAAM;GACrC,IAAMpB,IAAOqB,IAAQpB,EAAO,IAAIoB,EAAM,YAAY,CAAC,IAAI,KAAA,GACjDC,IAAWH,EAAO,GAAG,EAAE;GAC7B,AAAIG,KAAYA,EAAS,SAAStB,IAAM,EAAS,WAAWuB,IACvDJ,EAAO,KAAKnB,IAAO;IAAE;IAAS;GAAK,IAAI,EAAE,WAAQ,CAAC;EACzD;EACA,OAAOmB;CACT,CAAC;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 { ActionBar as ae } from "./components/layout/ActionBar/ActionBar.js";
20
- import { DEFAULT_HEADING_SIZE as oe } from "./components/typography/Heading/sizes.js";
21
- import { Heading as se } from "./components/typography/Heading/Heading.js";
22
- import { Text as ce } from "./components/typography/Text/Text.js";
23
- import { Link as le } from "./components/typography/Link/Link.js";
24
- import { Code as ue } from "./components/typography/Code/Code.js";
25
- import { Kbd as de } from "./components/typography/Kbd/Kbd.js";
26
- import { Prose as fe } from "./components/typography/Prose/Prose.js";
27
- import { Quote as pe } from "./components/typography/Quote/Quote.js";
28
- import { formatNumeral as me, formatNumeralParts as he, signOf as ge } from "./components/typography/Numeral/format.js";
29
- import { Numeral as _e } from "./components/typography/Numeral/Numeral.js";
30
- import { Amount as ve } from "./components/typography/Amount/Amount.js";
31
- import { SectionHeader as ye } from "./components/typography/SectionHeader/SectionHeader.js";
32
- import { Spinner as be } from "./components/feedback/Spinner/Spinner.js";
33
- import { Button as xe } from "./components/actions/Button/Button.js";
34
- import { IconButton as Se } from "./components/actions/IconButton/IconButton.js";
35
- import { ToggleChip as Ce } from "./components/actions/ToggleChip/ToggleChip.js";
36
- import { useFieldControl as we } from "./components/inputs/internal/FieldContext.js";
37
- import { ChipGroup as Te } from "./components/actions/ChipGroup/ChipGroup.js";
38
- import { SegmentedControl as Ee } from "./components/actions/SegmentedControl/SegmentedControl.js";
39
- import { ModeToggle as De } from "./components/actions/ModeToggle/ModeToggle.js";
40
- import { Field as Oe } from "./components/inputs/Field/Field.js";
41
- import { Input as ke } from "./components/inputs/Input/Input.js";
42
- import { Textarea as Ae } from "./components/inputs/Textarea/Textarea.js";
43
- import { Select as je } from "./components/inputs/Select/Select.js";
44
- import { Checkbox as Me } from "./components/inputs/Checkbox/Checkbox.js";
45
- import { RadioGroup as Ne } from "./components/inputs/RadioGroup/RadioGroup.js";
46
- import { Switch as Pe } from "./components/inputs/Switch/Switch.js";
47
- import { Fieldset as Fe } from "./components/inputs/Fieldset/Fieldset.js";
48
- import { TextField as Ie } from "./components/inputs/TextField/TextField.js";
49
- import { TextareaField as Le } from "./components/inputs/TextareaField/TextareaField.js";
50
- import { SelectField as Re } from "./components/inputs/SelectField/SelectField.js";
51
- import { CheckboxField as ze } from "./components/inputs/CheckboxField/CheckboxField.js";
52
- import { PasswordInput as Be } from "./components/inputs/PasswordInput/PasswordInput.js";
53
- import { PasswordField as Ve } from "./components/inputs/PasswordField/PasswordField.js";
54
- import { NumberInput as He } from "./components/inputs/NumberInput/NumberInput.js";
55
- import { NumberField as Ue } from "./components/inputs/NumberField/NumberField.js";
56
- import { AmountInput as We } from "./components/inputs/AmountInput/AmountInput.js";
57
- import { AmountField as Ge } from "./components/inputs/AmountField/AmountField.js";
58
- import { OneTimeCodeInput as Ke } from "./components/inputs/OneTimeCodeInput/OneTimeCodeInput.js";
59
- import { OneTimeCodeField as qe } from "./components/inputs/OneTimeCodeField/OneTimeCodeField.js";
60
- import { ColorInput as Je } from "./components/inputs/ColorInput/ColorInput.js";
61
- import { ColorField as Ye } from "./components/inputs/ColorField/ColorField.js";
62
- import { SwitchField as Xe } from "./components/inputs/SwitchField/SwitchField.js";
63
- import { DateRangeField as Ze } from "./components/inputs/DateRangeField/DateRangeField.js";
64
- import { CheckboxGroup as Qe } from "./components/inputs/CheckboxGroup/CheckboxGroup.js";
65
- import { CheckboxGroupField as $e } from "./components/inputs/CheckboxGroupField/CheckboxGroupField.js";
66
- import { RadioGroupField as et } from "./components/inputs/RadioGroupField/RadioGroupField.js";
67
- import { SegmentedField as tt } from "./components/inputs/SegmentedField/SegmentedField.js";
68
- import { ChipGroupField as nt } from "./components/inputs/ChipGroupField/ChipGroupField.js";
69
- import { ChoiceCards as rt } from "./components/inputs/ChoiceCards/ChoiceCards.js";
70
- import { ChoiceCardsField as it } from "./components/inputs/ChoiceCardsField/ChoiceCardsField.js";
71
- import { Slider as at } from "./components/inputs/Slider/Slider.js";
72
- import { SliderField as ot } from "./components/inputs/SliderField/SliderField.js";
73
- import { RangeSlider as st } from "./components/inputs/RangeSlider/RangeSlider.js";
74
- import { RangeSliderField as ct } from "./components/inputs/RangeSliderField/RangeSliderField.js";
75
- import { Rating as lt } from "./components/inputs/Rating/Rating.js";
76
- import { RatingField as ut } from "./components/inputs/RatingField/RatingField.js";
77
- import { Tag as dt, TagList as ft } from "./components/display/Tag/Tag.js";
78
- import { Combobox as pt } from "./components/inputs/Combobox/Combobox.js";
79
- import { ComboboxField as mt } from "./components/inputs/ComboboxField/ComboboxField.js";
80
- import { TagsInput as ht } from "./components/inputs/TagsInput/TagsInput.js";
81
- import { TagsField as gt } from "./components/inputs/TagsField/TagsField.js";
82
- import { FileDrop as _t } from "./components/inputs/FileDrop/FileDrop.js";
83
- import { FileField as vt } from "./components/inputs/FileField/FileField.js";
84
- import { Card as yt } from "./components/display/Card/Card.js";
85
- import { Badge as bt } from "./components/display/Badge/Badge.js";
86
- import { avatarColor as xt, getInitials as St } from "./components/display/Avatar/avatarUtils.js";
87
- import { Avatar as Ct } from "./components/display/Avatar/Avatar.js";
88
- import { AvatarGroup as wt } from "./components/display/AvatarGroup/AvatarGroup.js";
89
- import { Delta as Tt } from "./components/display/Delta/Delta.js";
90
- import { Stat as Et } from "./components/display/Stat/Stat.js";
91
- import { DataList as Dt } from "./components/display/DataList/DataList.js";
92
- import { List as Ot } from "./components/display/List/List.js";
93
- import { Table as kt } from "./components/display/Table/Table.js";
94
- import { Media as At } from "./components/display/Media/Media.js";
95
- import { Marquee as jt } from "./components/display/Marquee/Marquee.js";
96
- import { CodeBlock as Mt } from "./components/display/CodeBlock/CodeBlock.js";
97
- import { Stamp as Nt } from "./components/display/Stamp/Stamp.js";
98
- import { Progress as Pt } from "./components/display/Progress/Progress.js";
99
- import { meterTone as Ft } from "./components/display/Meter/meterTone.js";
100
- import { Meter as It } from "./components/display/Meter/Meter.js";
101
- import { Skeleton as Lt } from "./components/display/Skeleton/Skeleton.js";
102
- import { EmptyState as Rt } from "./components/display/EmptyState/EmptyState.js";
103
- import { Tabs as zt } from "./components/navigation/Tabs/Tabs.js";
104
- import { NavLinks as Bt } from "./components/navigation/NavLinks/NavLinks.js";
105
- import { BottomNav as Vt } from "./components/navigation/BottomNav/BottomNav.js";
106
- import { Accordion as Ht } from "./components/navigation/Accordion/Accordion.js";
107
- import { Stepper as Ut } from "./components/navigation/Stepper/Stepper.js";
108
- import { Alert as Wt } from "./components/feedback/Alert/Alert.js";
109
- import { LiveIndicator as Gt } from "./components/feedback/LiveIndicator/LiveIndicator.js";
110
- import { Flash as Kt } from "./components/feedback/Flash/Flash.js";
111
- import { StatusDot as qt } from "./components/feedback/StatusDot/StatusDot.js";
112
- import { formatAbsoluteTime as Jt, formatRelativeTime as Yt } from "./components/feedback/RelativeTime/format.js";
113
- import { RelativeTime as Xt } from "./components/feedback/RelativeTime/RelativeTime.js";
114
- import { Dialog as Zt } from "./components/overlays/Dialog/Dialog.js";
115
- import { Sheet as Qt } from "./components/overlays/Sheet/Sheet.js";
116
- import { Popover as $t } from "./components/overlays/Popover/Popover.js";
117
- import { DropdownMenu as en } from "./components/overlays/DropdownMenu/DropdownMenu.js";
118
- import { Tooltip as tn, TooltipProvider as nn } from "./components/overlays/Tooltip/Tooltip.js";
119
- export { Ht as Accordion, ae as ActionBar, Wt as Alert, ve as Amount, Ge as AmountField, We as AmountInput, ie as AppShell, u as ArrowLeftIcon, d as ArrowRightIcon, f as ArrowUpRightIcon, ne as AspectRatio, Ct as Avatar, wt as AvatarGroup, bt as Badge, Vt as BottomNav, X as Box, xe as Button, p as CalendarIcon, yt as Card, m as CheckIcon, Me as Checkbox, ze as CheckboxField, Qe as CheckboxGroup, $e as CheckboxGroupField, h as ChevronDownIcon, g as ChevronLeftIcon, _ as ChevronRightIcon, v as ChevronUpIcon, Te as ChipGroup, nt as ChipGroupField, rt as ChoiceCards, it as ChoiceCardsField, y as CircleCheckIcon, b as ClockIcon, x as CloseIcon, ue as Code, Mt as CodeBlock, Ye as ColorField, Je as ColorInput, pt as Combobox, mt as ComboboxField, $ as Container, S as CopyIcon, oe as DEFAULT_HEADING_SIZE, e as DEFAULT_THEME, Dt as DataList, Ze as DateRangeField, Tt as Delta, Zt as Dialog, te as Divider, en as DropdownMenu, Rt as EmptyState, C as ErrorIcon, w as EyeIcon, T as EyeOffIcon, Oe as Field, Fe as Fieldset, _t as FileDrop, vt as FileField, Kt as Flash, Z as Grid, se as Heading, E as HelpIcon, Se as IconButton, D as InfoIcon, Y as Inline, ke as Input, de as Kbd, le as Link, Ot as List, Gt as LiveIndicator, t as MODES, jt as Marquee, At as Media, O as MenuIcon, k as MessageIcon, It as Meter, A as MinusIcon, De as ModeToggle, j as MoonIcon, M as MoreIcon, Bt as NavLinks, Ue as NumberField, He as NumberInput, _e as Numeral, qe as OneTimeCodeField, Ke as OneTimeCodeInput, Ve as PasswordField, Be as PasswordInput, N as PlusIcon, $t as Popover, Pt as Progress, fe as Prose, pe as Quote, Ne as RadioGroup, et as RadioGroupField, P as RadioIcon, st as RangeSlider, ct as RangeSliderField, lt as Rating, ut as RatingField, Xt as RelativeTime, F as SearchIcon, ee as Section, ye as SectionHeader, Ee as SegmentedControl, tt as SegmentedField, je as Select, Re as SelectField, Qt as Sheet, I as ShieldIcon, Lt as Skeleton, at as Slider, ot as SliderField, be as Spinner, Q as Split, J as Stack, Nt as Stamp, L as StarIcon, Et as Stat, qt as StatusDot, Ut as Stepper, R as SunIcon, Pe as Switch, Xe as SwitchField, z as SwordsIcon, B as SystemIcon, n as THEMES, r as THEME_META, kt as Table, zt as Tabs, dt as Tag, ft as TagList, gt as TagsField, ht as TagsInput, V as TargetIcon, ce as Text, Ie as TextField, Ae as Textarea, Le as TextareaField, o as ThemeProvider, s as ThemeScope, Ce as ToggleChip, tn as Tooltip, nn as TooltipProvider, H as TrendingUpIcon, U as TrophyIcon, W as UploadIcon, G as UsersIcon, re as VisuallyHidden, K as WarningIcon, q as ZapIcon, xt as avatarColor, l as createIcon, c as cx, Jt as formatAbsoluteTime, me as formatNumeral, he as formatNumeralParts, Yt as formatRelativeTime, St as getInitials, Ft as meterTone, ge as signOf, a as themeScript, we as useFieldControl, i as useTheme };
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 };