@astryx-vue/core 0.1.3 → 0.2.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/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-b0PWt9Fz.js → AppShell-EiGyPFbA.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-CYhGDT6f.js → Calendar-BG7wEsro.js} +1 -1
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +2 -0
- package/dist/Carousel-BTtHkKea.js +363 -0
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1aWl5V3.js → Chat-DjNxw5gv.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1X0Rde8.js → Citation-DijdbUUu.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +4 -2
- package/dist/Code-yb_KOFtJ.js +299 -0
- package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BS9ctCQV.js → Collapsible-9MC08X39.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-BD2iODF5.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-D9iXd5cH.js} +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-D2ErjXYO.js → DateInput-DE2TN1Rq.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-1bhPGG2s.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-SnPdgk6P.js} +3 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CmAfOpkA.js → FileInput-BQiwE-GB.js} +2 -2
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +2 -0
- package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
- package/dist/Lightbox/index.d.ts +2 -0
- package/dist/Lightbox/index.js +2 -0
- package/dist/Lightbox-CshKoB0r.js +384 -0
- package/dist/Link/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CwtLr3f_.js → Markdown-D-Ua055V.js} +2 -2
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DlXQTLog.js → MetadataList-sYph_d8Q.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-DD9D01aj.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-DiYov9sF.js} +2 -2
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +1 -1
- package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DspJO6z6.js → NumberInput-CTYiQxHq.js} +1 -1
- package/dist/Outline/index.d.ts +2 -0
- package/dist/Outline/index.js +2 -0
- package/dist/Outline-DQfEBxlc.js +325 -0
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-zXg3g6fy.js → OverflowList-BU5VCntl.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DXfgMUKJ.js → Pagination-HdhtykeF.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BuGKvU9I.js → Resizable-BhSMfO5B.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DlZpQh42.js → Selector-Da-2BO3q.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Cdrigq2A.js → SideNav-B-Om6Bz3.js} +2 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DxmLfh8O.js → Stepper-BZ_8SEZt.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C411uNQU.js → TabList-Cnc2Hs1H.js} +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-7qRmlIQd.js → Table-D-LhAy_J.js} +4 -4
- package/dist/Text/index.d.ts +3 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/index.js +2 -0
- package/dist/Theme-BuUiiJNr.js +429 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-Dc1UpykG.js} +2 -2
- package/dist/{TimeField-l3QzU6vC.js → TimeField-C7t9Knq9.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-BXxCOY98.js} +1 -1
- package/dist/Timer/index.d.ts +2 -0
- package/dist/Timer/index.js +2 -0
- package/dist/Timer-B7GV6hqd.js +134 -0
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DUoP9ari.js → Timestamp-DlZSmgCJ.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-C4KD0fZD.js → Token-wt4e80IM.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-nmTqdS9n.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CZokS7E_.js → TopNav-notp-mJx.js} +4 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CIbAGOMf.js → TreeList-s1xBQ0qq.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-DIw-K4aa.js → Typeahead-VAuiCurV.js} +2 -2
- package/dist/{context-D6ECRdc5.js → context-Dbo22sck.js} +54 -0
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/index-Bainr_3n.d.ts +31 -0
- package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
- package/dist/{index-C6RecznD.d.ts → index-BtPZKO20.d.ts} +2 -2
- package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
- package/dist/{index-CX97hlld.d.ts → index-C59PdX9L.d.ts} +2 -19
- package/dist/{index-Df2YvC8o.d.ts → index-C6iJwTL0.d.ts} +38 -31
- package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/index-Cm_TiLXU.d.ts +22 -0
- package/dist/index-Cn-sSds-.d.ts +68 -0
- package/dist/index-CsVS37na.d.ts +81 -0
- package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
- package/dist/{index-DGNqi2za.d.ts → index-DOUEn7V0.d.ts} +3 -3
- package/dist/{index-DYChvBOM.d.ts → index-DoFCm2Q2.d.ts} +29 -0
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-ZJyk8RtQ.d.ts → index-DtjAdYEc.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-2u4l3wq8.d.ts → index-NzLDrOkk.d.ts} +1 -1
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/index.d.ts +71 -62
- package/dist/index.js +100 -92
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
- package/dist/syntaxTheme-ClpWALZX.js +75 -0
- package/dist/types-Bt-lSgYX.d.ts +65 -0
- package/dist/types-DZoEm_DG.d.ts +97 -0
- package/package.json +25 -1
- package/styles/carousel.css +120 -0
- package/styles/heading.css +6 -2
- package/styles/lightbox.css +144 -0
- package/styles/media-theme.css +51 -0
- package/styles/outline.css +124 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles.css +6 -0
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$
|
|
1
|
+
import { t as _sfc_main$172 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as _sfc_main$13 } from "./Button-DrqeomlE.js";
|
|
3
3
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
4
4
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
@@ -23,22 +23,22 @@ import { n as useOverflow, t as computeOverflow } from "./useOverflow-VrwF5oek.j
|
|
|
23
23
|
import { t as useScrollableArea } from "./useScrollableArea-DDk_CluT.js";
|
|
24
24
|
import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
|
|
25
25
|
import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
|
|
26
|
-
import { t as _sfc_main$
|
|
27
|
-
import { t as _sfc_main$
|
|
28
|
-
import { t as _sfc_main$
|
|
29
|
-
import { t as _sfc_main$
|
|
30
|
-
import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-
|
|
31
|
-
import { a as _sfc_main$
|
|
32
|
-
import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale } from "./context-
|
|
33
|
-
import { n as _sfc_main$
|
|
26
|
+
import { t as _sfc_main$56 } from "./Dialog-rfUt3y8P.js";
|
|
27
|
+
import { t as _sfc_main$72 } from "./Heading-Dugosn6j.js";
|
|
28
|
+
import { t as _sfc_main$128 } from "./Stack-gGcYdOAh.js";
|
|
29
|
+
import { t as _sfc_main$146 } from "./Text-BHVghsWo.js";
|
|
30
|
+
import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-ovx4cBjM.js";
|
|
31
|
+
import { a as _sfc_main$79, n as _sfc_main$82, r as _sfc_main$80, t as _sfc_main$83 } from "./LayoutPanel-C34uOq3e.js";
|
|
32
|
+
import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale } from "./context-Dbo22sck.js";
|
|
33
|
+
import { n as _sfc_main$92, t as _sfc_main$93 } from "./MobileNavToggle-DD9D01aj.js";
|
|
34
34
|
import { r as useSideNavCollapse } from "./context-BjNya0v8.js";
|
|
35
|
-
import { t as _sfc_main$1 } from "./AppShell-
|
|
35
|
+
import { t as _sfc_main$1 } from "./AppShell-EiGyPFbA.js";
|
|
36
36
|
import { t as _sfc_main$2 } from "./AspectRatio-Bij7e-tq.js";
|
|
37
37
|
import { n as _sfc_main$3, t as _sfc_main$6 } from "./Avatar-5s3HSrtN.js";
|
|
38
38
|
import { n as _sfc_main$4, t as _sfc_main$5 } from "./AvatarGroup-CZcgAMjM.js";
|
|
39
39
|
import { t as _sfc_main$7 } from "./Badge-Ba0EwsTj.js";
|
|
40
40
|
import "./Badge/index.js";
|
|
41
|
-
import { t as _sfc_main$
|
|
41
|
+
import { t as _sfc_main$75 } from "./IconButton-BNQuz9W_.js";
|
|
42
42
|
import { t as _sfc_main$8 } from "./Banner-CJe9Im5a.js";
|
|
43
43
|
import { t as _sfc_main$9 } from "./Blockquote-DFqBv_oJ.js";
|
|
44
44
|
import "./Blockquote/index.js";
|
|
@@ -46,113 +46,121 @@ import { t as _sfc_main$10 } from "./BottomSheet-Dg95HB1s.js";
|
|
|
46
46
|
import "./BottomSheet/index.js";
|
|
47
47
|
import { n as _sfc_main$11, t as _sfc_main$12 } from "./Breadcrumbs-C3YZFQ9w.js";
|
|
48
48
|
import { n as _sfc_main$14 } from "./ButtonGroup-ySQWanDP.js";
|
|
49
|
-
import { t as _sfc_main$15 } from "./Calendar-
|
|
49
|
+
import { t as _sfc_main$15 } from "./Calendar-BG7wEsro.js";
|
|
50
50
|
import "./Calendar/index.js";
|
|
51
51
|
import { t as _sfc_main$16 } from "./Card-HAjZQg2s.js";
|
|
52
52
|
import "./Card/index.js";
|
|
53
|
-
import { t as _sfc_main$
|
|
54
|
-
import {
|
|
55
|
-
import { t as _sfc_main$
|
|
56
|
-
import { t as _sfc_main$
|
|
57
|
-
import { t as _sfc_main$
|
|
53
|
+
import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main$74 } from "./Icon-Dfr4k6-S.js";
|
|
54
|
+
import { t as _sfc_main$17 } from "./Carousel-BTtHkKea.js";
|
|
55
|
+
import { t as _sfc_main$18 } from "./Center-DVaZaTGP.js";
|
|
56
|
+
import { a as _sfc_main$25, c as _sfc_main$22, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$26, l as _sfc_main$21, m as _sfc_main$20, n as _sfc_main$28, o as _sfc_main$24, p as useChatMessageContext, r as _sfc_main$27, s as _sfc_main$23, t as _sfc_main$29, u as _sfc_main$19 } from "./Chat-DjNxw5gv.js";
|
|
57
|
+
import { t as _sfc_main$127 } from "./Spinner-9cYUCnDy.js";
|
|
58
|
+
import { t as _sfc_main$58 } from "./Divider-BtwnL18I.js";
|
|
59
|
+
import { t as _sfc_main$30 } from "./CheckboxIndicator-DdJmksHt.js";
|
|
58
60
|
import "./CheckboxIndicator/index.js";
|
|
59
|
-
import { t as _sfc_main$
|
|
60
|
-
import { t as _sfc_main$
|
|
61
|
-
import { t as _sfc_main$
|
|
61
|
+
import { t as _sfc_main$65 } from "./FieldLabel-DmmJyX7w.js";
|
|
62
|
+
import { t as _sfc_main$66 } from "./FieldStatus-MjY19ERl.js";
|
|
63
|
+
import { t as _sfc_main$31 } from "./CheckboxInput-CMsEE1_4.js";
|
|
62
64
|
import "./CheckboxInput/index.js";
|
|
63
|
-
import { t as _sfc_main$
|
|
64
|
-
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main$
|
|
65
|
-
import { n as _sfc_main$
|
|
66
|
-
import { n as _sfc_main$
|
|
67
|
-
import { t as _sfc_main$
|
|
68
|
-
import { n as _sfc_main$
|
|
69
|
-
import { a as tokenizeAsync, c as _sfc_main$
|
|
70
|
-
import "./
|
|
71
|
-
import { n as _sfc_main$
|
|
72
|
-
import {
|
|
73
|
-
import { t as _sfc_main$
|
|
74
|
-
import { t as _sfc_main$
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
65
|
+
import { t as _sfc_main$64 } from "./Field-8zRxzDHE.js";
|
|
66
|
+
import { i as useListContext, r as useItemDescriptionId, t as _sfc_main$77 } from "./Item-C1z6gXn8.js";
|
|
67
|
+
import { n as _sfc_main$86, t as _sfc_main$87 } from "./ListItem-pGxvn6QJ.js";
|
|
68
|
+
import { n as _sfc_main$32, t as _sfc_main$33 } from "./CheckboxList-EsIEXjK_.js";
|
|
69
|
+
import { t as _sfc_main$34 } from "./Citation-DijdbUUu.js";
|
|
70
|
+
import { n as _sfc_main$35 } from "./ClickableCard-Bhds4RRe.js";
|
|
71
|
+
import { a as tokenizeAsync, c as _sfc_main$36, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$37 } from "./CodeBlock-CxTb6j9_.js";
|
|
72
|
+
import { n as defineSyntaxTheme, r as githubDark, t as SYNTAX_TOKEN_KEYS } from "./syntaxTheme-ClpWALZX.js";
|
|
73
|
+
import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g as tokyoNightLight, h as tokyoNight, i as catppuccinLatte, l as lightSyntaxPresets, m as solarizedLight, n as _sfc_main$134, o as darkSyntaxPresets, p as oneLight, r as allSyntaxPresets, s as dracula, t as useSyntaxTheme, u as monokai } from "./Code-yb_KOFtJ.js";
|
|
74
|
+
import { n as _sfc_main$38, t as _sfc_main$39 } from "./Collapsible-9MC08X39.js";
|
|
75
|
+
import { a as _sfc_main$43, i as _sfc_main$44, n as _sfc_main$46, o as _sfc_main$42, r as _sfc_main$45, s as _sfc_main$41, t as _sfc_main$40 } from "./CommandPalette-BD2iODF5.js";
|
|
76
|
+
import { t as _sfc_main$78 } from "./Kbd-BB-Dw6zE.js";
|
|
77
|
+
import { t as _sfc_main$107 } from "./Popover-Crhk9PNP.js";
|
|
78
|
+
import { n as _sfc_main$47 } from "./ComplexSelector-D9iXd5cH.js";
|
|
79
|
+
import { a as _sfc_main$49, i as _sfc_main$50, n as _sfc_main$52, o as useContextMenu, r as _sfc_main$51, s as useContextMenuSize, t as _sfc_main$48 } from "./ContextMenu-HS_WqYIg.js";
|
|
80
|
+
import { t as _sfc_main$53 } from "./DateInput-DE2TN1Rq.js";
|
|
78
81
|
import "./DateInput/index.js";
|
|
79
|
-
import { t as _sfc_main$
|
|
80
|
-
import { t as _sfc_main$
|
|
81
|
-
import { n as _sfc_main$
|
|
82
|
+
import { t as _sfc_main$54 } from "./DateRangeInput-1bhPGG2s.js";
|
|
83
|
+
import { t as _sfc_main$55 } from "./DateTimeInput-SnPdgk6P.js";
|
|
84
|
+
import { n as _sfc_main$57, t as useImperativeDialog } from "./Dialog-CvRplBo-.js";
|
|
82
85
|
import "./Divider/index.js";
|
|
83
|
-
import { a as useDropdownMenuContext, i as _sfc_main$
|
|
84
|
-
import { t as _sfc_main$
|
|
86
|
+
import { a as useDropdownMenuContext, i as _sfc_main$60, n as _sfc_main$62, r as _sfc_main$61, t as _sfc_main$59 } from "./DropdownMenu-UJGych6v.js";
|
|
87
|
+
import { t as _sfc_main$63 } from "./EmptyState-CUJdTYKV.js";
|
|
85
88
|
import "./Field/index.js";
|
|
86
89
|
import "./FieldStatus/index.js";
|
|
87
|
-
import { t as _sfc_main$
|
|
88
|
-
import { t as _sfc_main$
|
|
89
|
-
import { n as _sfc_main$
|
|
90
|
+
import { t as _sfc_main$67 } from "./FileInput-BQiwE-GB.js";
|
|
91
|
+
import { t as _sfc_main$68 } from "./FormLayout-D47FjiOq.js";
|
|
92
|
+
import { n as _sfc_main$69, t as _sfc_main$70 } from "./Grid-D1onTzyC.js";
|
|
90
93
|
import "./Heading/index.js";
|
|
91
|
-
import { t as _sfc_main$
|
|
94
|
+
import { t as _sfc_main$73 } from "./HoverCard-EhbWaGOW.js";
|
|
92
95
|
import "./HoverCard/index.js";
|
|
96
|
+
import "./Icon/index.js";
|
|
93
97
|
import "./IconButton/index.js";
|
|
94
|
-
import { t as _sfc_main$
|
|
98
|
+
import { t as _sfc_main$76 } from "./InputGroup-ChrFVxzV.js";
|
|
95
99
|
import "./Kbd/index.js";
|
|
96
|
-
import { t as _sfc_main$
|
|
97
|
-
import {
|
|
100
|
+
import { t as _sfc_main$81 } from "./Layout-Bed3kP0M.js";
|
|
101
|
+
import { n as _sfc_main$84, t as useLightbox } from "./Lightbox-CshKoB0r.js";
|
|
102
|
+
import { t as _sfc_main$85 } from "./Link-CprjOuTI.js";
|
|
98
103
|
import "./Link/index.js";
|
|
99
104
|
import "./List/index.js";
|
|
100
|
-
import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main$
|
|
101
|
-
import { n as _sfc_main$
|
|
105
|
+
import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main$88 } from "./Markdown-D-Ua055V.js";
|
|
106
|
+
import { n as _sfc_main$90, t as _sfc_main$91 } from "./MetadataList-sYph_d8Q.js";
|
|
102
107
|
import "./MobileNav/index.js";
|
|
103
|
-
import { t as _sfc_main$
|
|
104
|
-
import { t as _sfc_main$
|
|
105
|
-
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$
|
|
108
|
+
import { t as _sfc_main$94 } from "./MoreMenu-BVrK5kkk.js";
|
|
109
|
+
import { t as _sfc_main$158 } from "./Token-wt4e80IM.js";
|
|
110
|
+
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$95 } from "./MultiSelector-DiYov9sF.js";
|
|
106
111
|
import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
|
|
107
|
-
import { t as _sfc_main$
|
|
108
|
-
import { t as _sfc_main$
|
|
109
|
-
import { t as _sfc_main$
|
|
110
|
-
import { n as _sfc_main$
|
|
112
|
+
import { t as _sfc_main$97 } from "./NavItem-thEKXyJA.js";
|
|
113
|
+
import { t as _sfc_main$98 } from "./NavItem-FFOisITc.js";
|
|
114
|
+
import { t as _sfc_main$96 } from "./NavDisclosure-DHrSNRDR.js";
|
|
115
|
+
import { n as _sfc_main$99, t as _sfc_main$100 } from "./NavMenuItem-B-k7olt5.js";
|
|
111
116
|
import "./NavMenu/index.js";
|
|
112
|
-
import { t as _sfc_main$
|
|
113
|
-
import { t as _sfc_main$
|
|
114
|
-
import {
|
|
115
|
-
import { t as _sfc_main$
|
|
116
|
-
import { t as _sfc_main$
|
|
117
|
+
import { t as _sfc_main$101 } from "./NumberInput-CTYiQxHq.js";
|
|
118
|
+
import { t as _sfc_main$102 } from "./Outline-DQfEBxlc.js";
|
|
119
|
+
import { t as _sfc_main$103 } from "./OverflowList-BU5VCntl.js";
|
|
120
|
+
import { n as useOverlay, r as _sfc_main$105, t as _sfc_main$104 } from "./Overlay-DKILTHxI.js";
|
|
121
|
+
import { t as _sfc_main$106 } from "./Pagination-HdhtykeF.js";
|
|
122
|
+
import { t as _sfc_main$119 } from "./Selector-Da-2BO3q.js";
|
|
117
123
|
import "./Pagination/index.js";
|
|
118
124
|
import "./Popover/index.js";
|
|
119
|
-
import { t as _sfc_main$
|
|
120
|
-
import { n as _sfc_main$
|
|
125
|
+
import { t as _sfc_main$108 } from "./ProgressBar-ChDp-7oe.js";
|
|
126
|
+
import { n as _sfc_main$109, t as _sfc_main$110 } from "./RadioGroup-BqjdSCfJ.js";
|
|
121
127
|
import "./Radio/index.js";
|
|
122
|
-
import { n as _sfc_main$
|
|
123
|
-
import { t as _sfc_main$
|
|
124
|
-
import { t as _sfc_main$
|
|
125
|
-
import { t as _sfc_main$
|
|
126
|
-
import { n as _sfc_main$
|
|
127
|
-
import { n as _sfc_main$
|
|
128
|
+
import { n as _sfc_main$111, t as _sfc_main$112 } from "./RadioList-DI8ujXcT.js";
|
|
129
|
+
import { t as _sfc_main$113 } from "./Resizable-BhSMfO5B.js";
|
|
130
|
+
import { t as _sfc_main$114 } from "./ScrollableArea-DQDYjnxO.js";
|
|
131
|
+
import { t as _sfc_main$115 } from "./Section-C48Wqfc7.js";
|
|
132
|
+
import { n as _sfc_main$116, t as _sfc_main$117 } from "./SegmentedControl-ChHmFrrC.js";
|
|
133
|
+
import { n as _sfc_main$118 } from "./SelectableCard-Bj5s_tIN.js";
|
|
128
134
|
import "./Selector/index.js";
|
|
129
|
-
import { a as _sfc_main$
|
|
130
|
-
import { t as _sfc_main$
|
|
131
|
-
import { t as _sfc_main$
|
|
135
|
+
import { a as _sfc_main$121, i as _sfc_main$120, n as _sfc_main$123, r as _sfc_main$122, t as _sfc_main$124 } from "./SideNav-B-Om6Bz3.js";
|
|
136
|
+
import { t as _sfc_main$161 } from "./Tooltip-mp0NMh_Y.js";
|
|
137
|
+
import { t as _sfc_main$125 } from "./Skeleton-CrgWxJgr.js";
|
|
132
138
|
import "./Skeleton/index.js";
|
|
133
|
-
import { t as _sfc_main$
|
|
139
|
+
import { t as _sfc_main$126 } from "./Slider-D8h_RKcF.js";
|
|
134
140
|
import "./Spinner/index.js";
|
|
135
|
-
import { n as _sfc_main$
|
|
136
|
-
import { t as _sfc_main$
|
|
137
|
-
import { n as _sfc_main$
|
|
138
|
-
import { t as _sfc_main$
|
|
139
|
-
import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$
|
|
140
|
-
import { t as _sfc_main$
|
|
141
|
-
import { n as _sfc_main$
|
|
141
|
+
import { n as _sfc_main$129, r as _sfc_main$71, t as _sfc_main$171 } from "./Stack-iv52y_Jv.js";
|
|
142
|
+
import { t as _sfc_main$130 } from "./StatusDot-CaoIapp4.js";
|
|
143
|
+
import { n as _sfc_main$131, t as _sfc_main$132 } from "./Stepper-BZ_8SEZt.js";
|
|
144
|
+
import { t as _sfc_main$133 } from "./Switch-SesQzPGZ.js";
|
|
145
|
+
import { C as paginateData, D as sortRows, E as resolveColumnWidths, S as generateColumns, T as proportional, _ as useTableColumnSettings, a as _sfc_main$141, b as capitalize, c as _sfc_main$138, d as useTableSelection, f as useTableSelectionState, g as useTableFiltering, h as useTableFilterState, i as _sfc_main$142, l as useTableSortable, m as applyTableFilters, n as _sfc_main$144, o as _sfc_main$140, p as useTablePagination, r as _sfc_main$143, s as _sfc_main$139, t as _sfc_main$145, u as useTableSortableState, v as useTableColumnSettingsState, w as pixel, x as cellText, y as useTableColumnResize } from "./Table-D-LhAy_J.js";
|
|
146
|
+
import { t as _sfc_main$148 } from "./TextInput-BasnjVvy.js";
|
|
147
|
+
import { n as _sfc_main$136, r as _sfc_main$135, t as _sfc_main$137 } from "./TabList-Cnc2Hs1H.js";
|
|
142
148
|
import "./Text/index.js";
|
|
143
|
-
import { t as _sfc_main$
|
|
149
|
+
import { t as _sfc_main$147 } from "./TextArea-Cv9UVbzS.js";
|
|
144
150
|
import "./TextInput/index.js";
|
|
145
|
-
import {
|
|
146
|
-
import { t as _sfc_main$
|
|
147
|
-
import {
|
|
148
|
-
import { n as
|
|
149
|
-
import { n as
|
|
151
|
+
import { a as defineTheme, c as normalizeTokenName, i as _sfc_main$89, n as useMediaTheme, o as isDefinedTheme, r as _sfc_main$149, s as neutralTheme, t as useTheme } from "./Theme-BuUiiJNr.js";
|
|
152
|
+
import { t as _sfc_main$150 } from "./Thumbnail-Dc1UpykG.js";
|
|
153
|
+
import { t as _sfc_main$151 } from "./TimeInput-BXxCOY98.js";
|
|
154
|
+
import { n as getPresentation, t as _sfc_main$152 } from "./Timer-B7GV6hqd.js";
|
|
155
|
+
import { i as formatInstant, n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$153 } from "./Timestamp-DlZSmgCJ.js";
|
|
156
|
+
import { n as _sfc_main$155, r as _sfc_main$154, t as useToast } from "./Toast-BKXPvEMp.js";
|
|
157
|
+
import { n as _sfc_main$157, r as _sfc_main$156 } from "./ToggleButton-BB_I8EdM.js";
|
|
150
158
|
import { t as TOKEN_COLORS } from "./Token-BdRzlXzm.js";
|
|
151
|
-
import { t as _sfc_main$
|
|
152
|
-
import { t as _sfc_main$
|
|
159
|
+
import { t as _sfc_main$159 } from "./Tokenizer-nmTqdS9n.js";
|
|
160
|
+
import { t as _sfc_main$160 } from "./Toolbar-BrgvvTCk.js";
|
|
153
161
|
import "./Tooltip/index.js";
|
|
154
|
-
import { a as _sfc_main$
|
|
155
|
-
import { n as useTreeFocus, t as _sfc_main$
|
|
156
|
-
import { t as _sfc_main$
|
|
162
|
+
import { a as _sfc_main$164, i as _sfc_main$165, n as _sfc_main$167, o as _sfc_main$163, r as _sfc_main$166, s as _sfc_main$162, t as _sfc_main$168 } from "./TopNav-notp-mJx.js";
|
|
163
|
+
import { n as useTreeFocus, t as _sfc_main$169 } from "./TreeList-s1xBQ0qq.js";
|
|
164
|
+
import { t as _sfc_main$170 } from "./Typeahead-VAuiCurV.js";
|
|
157
165
|
import "./VisuallyHidden/index.js";
|
|
158
|
-
export { _sfc_main as AlertDialog, _sfc_main$1 as AppShell, _sfc_main$2 as AspectRatio, _sfc_main$3 as Avatar, _sfc_main$4 as AvatarGroup, _sfc_main$5 as AvatarGroupOverflow, _sfc_main$6 as AvatarStatusDot, _sfc_main$7 as Badge, _sfc_main$8 as Banner, _sfc_main$9 as Blockquote, _sfc_main$10 as BottomSheet, _sfc_main$11 as BreadcrumbItem, _sfc_main$12 as Breadcrumbs, _sfc_main$13 as Button, _sfc_main$14 as ButtonGroup, CHAT_MESSAGE_CLASS, _sfc_main$15 as Calendar, _sfc_main$16 as Card, _sfc_main$17 as
|
|
166
|
+
export { _sfc_main as AlertDialog, _sfc_main$1 as AppShell, _sfc_main$2 as AspectRatio, _sfc_main$3 as Avatar, _sfc_main$4 as AvatarGroup, _sfc_main$5 as AvatarGroupOverflow, _sfc_main$6 as AvatarStatusDot, _sfc_main$7 as Badge, _sfc_main$8 as Banner, _sfc_main$9 as Blockquote, _sfc_main$10 as BottomSheet, _sfc_main$11 as BreadcrumbItem, _sfc_main$12 as Breadcrumbs, _sfc_main$13 as Button, _sfc_main$14 as ButtonGroup, CHAT_MESSAGE_CLASS, _sfc_main$15 as Calendar, _sfc_main$16 as Card, _sfc_main$17 as Carousel, _sfc_main$18 as Center, _sfc_main$19 as ChatLayout, _sfc_main$20 as ChatLayoutScrollButton, _sfc_main$21 as ChatMessage, _sfc_main$22 as ChatMessageBubble, _sfc_main$23 as ChatMessageList, _sfc_main$24 as ChatMessageMetadata, _sfc_main$25 as ChatReasoning, _sfc_main$26 as ChatSystemMessage, _sfc_main$27 as ChatToolCalls, _sfc_main$28 as ChatTypingIndicator, _sfc_main$29 as ChatUnreadDivider, _sfc_main$30 as CheckboxIndicator, _sfc_main$31 as CheckboxInput, _sfc_main$32 as CheckboxList, _sfc_main$33 as CheckboxListItem, _sfc_main$34 as Citation, _sfc_main$35 as ClickableCard, _sfc_main$36 as Code, _sfc_main$37 as CodeBlock, _sfc_main$38 as Collapsible, _sfc_main$39 as CollapsibleGroup, _sfc_main$40 as CommandPalette, _sfc_main$41 as CommandPaletteEmpty, _sfc_main$42 as CommandPaletteFooter, _sfc_main$43 as CommandPaletteGroup, _sfc_main$44 as CommandPaletteInput, _sfc_main$45 as CommandPaletteItem, _sfc_main$46 as CommandPaletteList, _sfc_main$47 as ComplexSelector, _sfc_main$48 as ContextMenu, _sfc_main$49 as ContextMenuDivider, _sfc_main$50 as ContextMenuGroup, _sfc_main$51 as ContextMenuItem, _sfc_main$52 as ContextMenuSubMenu, _sfc_main$53 as DateInput, _sfc_main$54 as DateRangeInput, _sfc_main$55 as DateTimeInput, _sfc_main$56 as Dialog, _sfc_main$57 as DialogHeader, _sfc_main$58 as Divider, _sfc_main$59 as DropdownMenu, _sfc_main$60 as DropdownMenuDivider, _sfc_main$61 as DropdownMenuGroup, _sfc_main$62 as DropdownMenuItem, _sfc_main$63 as EmptyState, _sfc_main$64 as Field, _sfc_main$65 as FieldLabel, _sfc_main$66 as FieldStatus, _sfc_main$67 as FileInput, _sfc_main$68 as FormLayout, _sfc_main$69 as Grid, _sfc_main$70 as GridSpan, HIGHLIGHTED_TOKEN_TYPES, _sfc_main$71 as HStack, _sfc_main$72 as Heading, _sfc_main$73 as HoverCard, ICON_GLYPHS, INTERACTIVE_SELECTORS, _sfc_main$74 as Icon, _sfc_main$75 as IconButton, _sfc_main$76 as InputGroup, _sfc_main$77 as Item, _sfc_main$78 as Kbd, _sfc_main$79 as Layout, _sfc_main$80 as LayoutContent, _sfc_main$81 as LayoutFooter, _sfc_main$82 as LayoutHeader, _sfc_main$83 as LayoutPanel, _sfc_main$84 as Lightbox, _sfc_main$85 as Link, _sfc_main$86 as List, _sfc_main$87 as ListItem, _sfc_main$88 as Markdown, _sfc_main$89 as MediaTheme, _sfc_main$90 as MetadataList, _sfc_main$91 as MetadataListItem, _sfc_main$92 as MobileNav, _sfc_main$93 as MobileNavToggle, _sfc_main$94 as MoreMenu, _sfc_main$95 as MultiSelector, _sfc_main$96 as NavDisclosure, _sfc_main$97 as NavIcon, _sfc_main$98 as NavItem, _sfc_main$99 as NavMenu, _sfc_main$100 as NavMenuItem, _sfc_main$101 as NumberInput, _sfc_main$102 as Outline, _sfc_main$103 as OverflowList, _sfc_main$104 as Overlay, _sfc_main$105 as OverlayScrim, _sfc_main$106 as Pagination, _sfc_main$107 as Popover, _sfc_main$108 as ProgressBar, _sfc_main$109 as Radio, _sfc_main$110 as RadioGroup, _sfc_main$111 as RadioList, _sfc_main$112 as RadioListItem, _sfc_main$113 as ResizeHandle, SELECT_ALL_VALUE, SYNC_TOKENIZE_THRESHOLD, SYNTAX_TOKEN_KEYS, _sfc_main$114 as ScrollableArea, _sfc_main$115 as Section, _sfc_main$116 as SegmentedControl, _sfc_main$117 as SegmentedControlItem, _sfc_main$118 as SelectableCard, _sfc_main$119 as Selector, _sfc_main$120 as SideNav, _sfc_main$121 as SideNavCollapseButton, _sfc_main$122 as SideNavHeading, _sfc_main$123 as SideNavItem, _sfc_main$124 as SideNavSection, _sfc_main$125 as Skeleton, _sfc_main$126 as Slider, _sfc_main$127 as Spinner, _sfc_main$128 as Stack, _sfc_main$129 as StackItem, _sfc_main$130 as StatusDot, _sfc_main$131 as Step, _sfc_main$132 as Stepper, _sfc_main$133 as Switch, _sfc_main$134 as SyntaxTheme, TOKEN_COLORS, _sfc_main$135 as Tab, _sfc_main$136 as TabList, _sfc_main$137 as TabMenu, _sfc_main$138 as Table, _sfc_main$139 as TableBody, _sfc_main$140 as TableCell, _sfc_main$141 as TableFooter, _sfc_main$142 as TableHeader, _sfc_main$143 as TableHeaderCell, _sfc_main$144 as TableRow, _sfc_main$145 as TableSelectionToolbar, _sfc_main$146 as Text, _sfc_main$147 as TextArea, _sfc_main$148 as TextInput, _sfc_main$149 as Theme, _sfc_main$150 as Thumbnail, _sfc_main$151 as TimeInput, _sfc_main$152 as Timer, _sfc_main$153 as Timestamp, _sfc_main$154 as Toast, _sfc_main$155 as ToastViewport, _sfc_main$156 as ToggleButton, _sfc_main$157 as ToggleButtonGroup, _sfc_main$158 as Token, _sfc_main$159 as Tokenizer, _sfc_main$160 as Toolbar, _sfc_main$161 as Tooltip, _sfc_main$162 as TopNav, _sfc_main$163 as TopNavHeading, _sfc_main$164 as TopNavItem, _sfc_main$165 as TopNavMegaMenu, _sfc_main$166 as TopNavMegaMenuFeaturedCard, _sfc_main$167 as TopNavMegaMenuItem, _sfc_main$168 as TopNavMenu, _sfc_main$169 as TreeList, _sfc_main$170 as Typeahead, _sfc_main$171 as VStack, _sfc_main$172 as VisuallyHidden, addMonths, allSyntaxPresets, appShellMobileKey, applyHighlightRanges, applyRangeClick, applyTableFilters, buildMonthGrid, capitalize, catppuccinLatte, catppuccinMocha, cellText, compareISODate, computeOverflow, createStaticSource, darkSyntaxPresets, defineSyntaxTheme, defineTheme, dracula, flatTokensToLines, flattenOptions, formatDateRange, formatDisplayTime, formatFileSize, formatISOTime, formatInstant, formatRelativeTime, formatTooltipLines, generateColumns, getPresentation, githubDark, githubLight, iconGlyphSlug, isDayOutsideSpan, isDefinedTheme, isIconGlyph, isRangeWithinSpan, isSameRange, isTimeInRange, lightSyntaxPresets, monokai, neutralTheme, nord, normalizeLocale, normalizeTokenName, oneDarkPro, oneLight, orderRange, paginateData, paginateData as paginateTableData, parseDisplayTime, parseISODate, parseISOTime, parseMarkdown, percent, pixel, proportional, provideAstryxLocale, resolveColumnWidths, resolveNavRoot, resolveTimeSurface, resolveWeekStart, selectFiles, shiftTime, slugify, snapToGraphemeBoundary, solarizedLight, sortRows, spanDays, toISODate, todayISODate, tokenize, tokenizeAsync, tokyoNight, tokyoNightLight, uniqueSlug, useAnnounce, useAppShellMobile, useAstryxLocale, useAstryxMessages, useAsyncSource, useChatLayoutContext, useChatListContext, useChatMessageContext, useChatNewMessages, useChatStreamScroll, useClickableContainer, useClipboard, useClipboard as useCopyToClipboard, useCoarsePointer, useCombobox, useContextMenu, useContextMenuSize, useControllableState, useDismiss, useDropdownMenuContext, useFocusTrap, useGridRovingFocus, useHotkeys, useImperativeAlertDialog, useImperativeDialog, useItemDescriptionId, useLightbox, useListContext, useListFocus, useLongPress, useMediaQuery, useMediaTheme, useNumberField, useOverflow, useOverlay, useResizable, useRestoreFocus, useScrollLock, useScrollOverflow, useScrollableArea, useSideNavCollapse, useStreamingText, useSyntaxTheme, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTablePagination, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTheme, useToast, useTreeFocus, useTypeahead };
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as provideAstryxLocale, c as AstryxMessages, i as normalizeLocale, l as AstryxLocale, n as weekdayNames, o as useAstryxLocale, r as astryxLocaleKey, s as useAstryxMessages, t as formatCalendarMonth } from "../index-
|
|
1
|
+
import { a as provideAstryxLocale, c as AstryxMessages, i as normalizeLocale, l as AstryxLocale, n as weekdayNames, o as useAstryxLocale, r as astryxLocaleKey, s as useAstryxMessages, t as formatCalendarMonth } from "../index-DoFCm2Q2.js";
|
|
2
2
|
export { type AstryxLocale, type AstryxMessages, astryxLocaleKey, formatCalendarMonth, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, weekdayNames };
|
package/dist/locale/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale, t as astryxLocaleKey } from "../context-
|
|
1
|
+
import { a as useAstryxMessages, i as useAstryxLocale, n as normalizeLocale, r as provideAstryxLocale, t as astryxLocaleKey } from "../context-Dbo22sck.js";
|
|
2
2
|
import { n as weekdayNames, t as formatCalendarMonth } from "../locale-Cpk_nrLA.js";
|
|
3
3
|
export { astryxLocaleKey, formatCalendarMonth, normalizeLocale, provideAstryxLocale, useAstryxLocale, useAstryxMessages, weekdayNames };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/Code/syntaxTheme.d.ts
|
|
2
|
+
declare const SYNTAX_TOKEN_KEYS: readonly ["keyword", "string", "comment", "number", "function", "type", "variable", "operator", "constant", "tag", "attribute", "property", "punctuation", "background"];
|
|
3
|
+
type SyntaxTokenKey = (typeof SYNTAX_TOKEN_KEYS)[number];
|
|
4
|
+
interface SyntaxThemeTokens {
|
|
5
|
+
keyword: string;
|
|
6
|
+
string: string;
|
|
7
|
+
comment: string;
|
|
8
|
+
number: string;
|
|
9
|
+
function: string;
|
|
10
|
+
type: string;
|
|
11
|
+
variable: string;
|
|
12
|
+
operator: string;
|
|
13
|
+
constant: string;
|
|
14
|
+
tag: string;
|
|
15
|
+
attribute: string;
|
|
16
|
+
property: string;
|
|
17
|
+
punctuation: string;
|
|
18
|
+
background: string;
|
|
19
|
+
}
|
|
20
|
+
/** A string is used as written. A tuple is the light stop, then the dark stop. */
|
|
21
|
+
type SyntaxTokenValue = string | readonly [string, string];
|
|
22
|
+
interface SyntaxThemeDefinition {
|
|
23
|
+
name: string;
|
|
24
|
+
tokens: SyntaxThemeTokens;
|
|
25
|
+
}
|
|
26
|
+
interface SyntaxThemeInput {
|
|
27
|
+
name: string;
|
|
28
|
+
tokens: { [K in keyof SyntaxThemeTokens]: SyntaxTokenValue; };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a syntax theme. All 14 tokens are required.
|
|
32
|
+
* `[light, dark]` tuples are stored as `light-dark()`.
|
|
33
|
+
*/
|
|
34
|
+
declare function defineSyntaxTheme(theme: SyntaxThemeInput): SyntaxThemeDefinition;
|
|
35
|
+
/** GitHub Dark (GitHub Primer team), MIT. */
|
|
36
|
+
declare const githubDark: SyntaxThemeDefinition;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { SyntaxTokenKey as a, githubDark as c, SyntaxThemeTokens as i, SyntaxThemeDefinition as n, SyntaxTokenValue as o, SyntaxThemeInput as r, defineSyntaxTheme as s, SYNTAX_TOKEN_KEYS as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/Code/syntaxTheme.ts
|
|
2
|
+
const SYNTAX_TOKEN_KEYS = [
|
|
3
|
+
"keyword",
|
|
4
|
+
"string",
|
|
5
|
+
"comment",
|
|
6
|
+
"number",
|
|
7
|
+
"function",
|
|
8
|
+
"type",
|
|
9
|
+
"variable",
|
|
10
|
+
"operator",
|
|
11
|
+
"constant",
|
|
12
|
+
"tag",
|
|
13
|
+
"attribute",
|
|
14
|
+
"property",
|
|
15
|
+
"punctuation",
|
|
16
|
+
"background"
|
|
17
|
+
];
|
|
18
|
+
function resolveSyntaxToken(value) {
|
|
19
|
+
if (typeof value === "string") return value;
|
|
20
|
+
return `light-dark(${value[0]}, ${value[1]})`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a syntax theme. All 14 tokens are required.
|
|
24
|
+
* `[light, dark]` tuples are stored as `light-dark()`.
|
|
25
|
+
*/
|
|
26
|
+
function defineSyntaxTheme(theme) {
|
|
27
|
+
const missing = SYNTAX_TOKEN_KEYS.filter((key) => theme.tokens[key] == null);
|
|
28
|
+
if (missing.length > 0 && typeof console !== "undefined") console.warn(`[Astryx] defineSyntaxTheme("${theme.name}"): missing tokens: ${missing.join(", ")}. All 14 syntax tokens are required.`);
|
|
29
|
+
const tokens = {};
|
|
30
|
+
for (const key of SYNTAX_TOKEN_KEYS) {
|
|
31
|
+
const value = theme.tokens[key];
|
|
32
|
+
if (value != null) tokens[key] = resolveSyntaxToken(value);
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
name: theme.name,
|
|
36
|
+
tokens
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/** GitHub Dark (GitHub Primer team), MIT. */
|
|
40
|
+
const githubDark = defineSyntaxTheme({
|
|
41
|
+
name: "github-dark",
|
|
42
|
+
tokens: {
|
|
43
|
+
keyword: "#ff7b72",
|
|
44
|
+
string: "#a5d6ff",
|
|
45
|
+
comment: "#8b949e",
|
|
46
|
+
number: "#79c0ff",
|
|
47
|
+
function: "#d2a8ff",
|
|
48
|
+
type: "#ffa657",
|
|
49
|
+
variable: "#e6edf3",
|
|
50
|
+
operator: "#ff7b72",
|
|
51
|
+
constant: "#79c0ff",
|
|
52
|
+
tag: "#7ee787",
|
|
53
|
+
attribute: "#79c0ff",
|
|
54
|
+
property: "#79c0ff",
|
|
55
|
+
punctuation: "#c9d1d9",
|
|
56
|
+
background: "#0d1117"
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
function syntaxThemeStyle(theme) {
|
|
60
|
+
const style = { "--astryx-code-block-background": theme.tokens.background };
|
|
61
|
+
const channels = theme.tokens.background.replace("#", "");
|
|
62
|
+
const expanded = channels.length === 3 ? channels.split("").map((part) => part + part).join("") : channels;
|
|
63
|
+
const value = Number.parseInt(expanded, 16);
|
|
64
|
+
const red = value >> 16 & 255;
|
|
65
|
+
const green = value >> 8 & 255;
|
|
66
|
+
const blue = value & 255;
|
|
67
|
+
if ((red * 299 + green * 587 + blue * 114) / 1e3 < 140) style["--astryx-code-block-border"] = "rgb(255 255 255 / 12%)";
|
|
68
|
+
for (const [key, color] of Object.entries(theme.tokens)) {
|
|
69
|
+
if (key === "background") continue;
|
|
70
|
+
style[`--astryx-code-syntax-${key}`] = color;
|
|
71
|
+
}
|
|
72
|
+
return style;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { syntaxThemeStyle as i, defineSyntaxTheme as n, githubDark as r, SYNTAX_TOKEN_KEYS as t };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//#region src/Text/types.d.ts
|
|
2
|
+
type TextType = 'body' | 'large' | 'label' | 'supporting' | 'code' | 'display-1' | 'display-2' | 'display-3';
|
|
3
|
+
type TextSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
type TextColor = 'primary' | 'secondary' | 'accent' | 'disabled' | 'placeholder' | 'inherit';
|
|
5
|
+
type TextWeight = 'regular' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
6
|
+
type TextWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
|
|
7
|
+
type TextWordBreak = 'normal' | 'break-word' | 'break-all';
|
|
8
|
+
type TextDisplay = 'block' | 'inline';
|
|
9
|
+
type TextAs = 'span' | 'p' | 'div' | 'label';
|
|
10
|
+
interface TextProps {
|
|
11
|
+
/**
|
|
12
|
+
* Semantic text type. Determines size, weight, and line-height.
|
|
13
|
+
* @default 'body'
|
|
14
|
+
*/
|
|
15
|
+
type?: TextType;
|
|
16
|
+
/**
|
|
17
|
+
* Explicit font size override.
|
|
18
|
+
*/
|
|
19
|
+
size?: TextSize;
|
|
20
|
+
/**
|
|
21
|
+
* Text color.
|
|
22
|
+
* @default 'primary'
|
|
23
|
+
*/
|
|
24
|
+
color?: TextColor;
|
|
25
|
+
/**
|
|
26
|
+
* Font weight override. `normal` is the same weight as `regular`.
|
|
27
|
+
*/
|
|
28
|
+
weight?: TextWeight;
|
|
29
|
+
/**
|
|
30
|
+
* CSS `text-wrap` behavior.
|
|
31
|
+
*/
|
|
32
|
+
textWrap?: TextWrap;
|
|
33
|
+
/**
|
|
34
|
+
* How long unbroken strings break inside a constrained width.
|
|
35
|
+
*/
|
|
36
|
+
wordBreak?: TextWordBreak;
|
|
37
|
+
/**
|
|
38
|
+
* Draws a line through the text.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
hasStrikethrough?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Uses tabular figures so digits line up across rows.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
hasTabularNumbers?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Display type.
|
|
49
|
+
* @default 'inline'
|
|
50
|
+
*/
|
|
51
|
+
display?: TextDisplay;
|
|
52
|
+
/**
|
|
53
|
+
* HTML element to render.
|
|
54
|
+
* @default 'span'
|
|
55
|
+
*/
|
|
56
|
+
as?: TextAs;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum lines before truncation. 0 means no truncation.
|
|
59
|
+
* A positive value forces block layout so the ellipsis has a width.
|
|
60
|
+
* @default 0
|
|
61
|
+
*/
|
|
62
|
+
maxLines?: number;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { TextSize as a, TextWordBreak as c, TextProps as i, TextWrap as l, TextColor as n, TextType as o, TextDisplay as r, TextWeight as s, TextAs as t };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, VNodeChild } from "vue";
|
|
2
|
+
//#region src/Icon/types.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Icon sizes are expressed in `rem` so they scale with the root font-size.
|
|
5
|
+
* Values are the px-equivalents at a 16px root: 12, 16, 20, and 24px.
|
|
6
|
+
*/
|
|
7
|
+
type IconSize = 'xsm' | 'sm' | 'md' | 'lg';
|
|
8
|
+
interface IconColorMap {
|
|
9
|
+
accent: true;
|
|
10
|
+
blue: true;
|
|
11
|
+
cyan: true;
|
|
12
|
+
disabled: true;
|
|
13
|
+
error: true;
|
|
14
|
+
gray: true;
|
|
15
|
+
green: true;
|
|
16
|
+
inherit: true;
|
|
17
|
+
orange: true;
|
|
18
|
+
pink: true;
|
|
19
|
+
primary: true;
|
|
20
|
+
purple: true;
|
|
21
|
+
red: true;
|
|
22
|
+
secondary: true;
|
|
23
|
+
success: true;
|
|
24
|
+
teal: true;
|
|
25
|
+
tertiary: true;
|
|
26
|
+
warning: true;
|
|
27
|
+
yellow: true;
|
|
28
|
+
}
|
|
29
|
+
type IconColor = Extract<keyof IconColorMap, string>;
|
|
30
|
+
/**
|
|
31
|
+
* The semantic names of the artwork astryx-vue keeps for its own chrome.
|
|
32
|
+
*
|
|
33
|
+
* A name describes what the icon is for, not one particular drawing, so a theme
|
|
34
|
+
* can replace the artwork with one declaration. Applications never pass these
|
|
35
|
+
* names: the artwork is a library implementation detail, and a `icon` prop or
|
|
36
|
+
* slot takes a CSS icon class or the application's own component instead.
|
|
37
|
+
*/
|
|
38
|
+
type IconName = 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'check' | 'moreHorizontal' | 'copy' | 'calendar' | 'clock' | 'upload' | 'arrowUp' | 'arrowDown' | 'close' | 'funnel' | 'image';
|
|
39
|
+
/**
|
|
40
|
+
* A built-in name, or any other string.
|
|
41
|
+
*
|
|
42
|
+
* The `(string & {})` intersection keeps the built-in names available for
|
|
43
|
+
* autocomplete while allowing keys contributed by a component or application.
|
|
44
|
+
*/
|
|
45
|
+
type ExtendedIconName = IconName | (string & {});
|
|
46
|
+
interface IconProps {
|
|
47
|
+
/**
|
|
48
|
+
* The icon to render. Three forms are accepted:
|
|
49
|
+
*
|
|
50
|
+
* - a string, treated as a CSS icon class you provide — for example an
|
|
51
|
+
* UnoCSS icon such as `'i-carbon-search'`, or your own class;
|
|
52
|
+
* - a name from the library's own chrome, which only the components use;
|
|
53
|
+
* - a component, rendered as it is.
|
|
54
|
+
*
|
|
55
|
+
* Omit it when the default slot provides the artwork instead.
|
|
56
|
+
*/
|
|
57
|
+
icon?: ExtendedIconName | Component;
|
|
58
|
+
/**
|
|
59
|
+
* The color of the icon.
|
|
60
|
+
*
|
|
61
|
+
* `inherit` (the default) leaves the icon at the surrounding text color,
|
|
62
|
+
* which is what you want for an icon next to a label. Use a semantic color
|
|
63
|
+
* only when the color itself carries meaning.
|
|
64
|
+
*
|
|
65
|
+
* @default 'inherit'
|
|
66
|
+
*/
|
|
67
|
+
color?: IconColor;
|
|
68
|
+
/**
|
|
69
|
+
* The size of the icon.
|
|
70
|
+
*
|
|
71
|
+
* An explicit value wins. When omitted, Icon uses the nearest default
|
|
72
|
+
* supplied by an owning astryx-vue component for its icon slot, then falls
|
|
73
|
+
* back to `md`.
|
|
74
|
+
*/
|
|
75
|
+
size?: IconSize;
|
|
76
|
+
/**
|
|
77
|
+
* Accessible name for the icon.
|
|
78
|
+
*
|
|
79
|
+
* Set it only when the icon is meaningful on its own, such as a standalone
|
|
80
|
+
* status glyph with no adjacent text. A non-empty `label` renders the icon as
|
|
81
|
+
* `role="img"` with this string as `aria-label`; omitting it (or passing an
|
|
82
|
+
* empty string) keeps the icon `aria-hidden="true"` as decoration.
|
|
83
|
+
*
|
|
84
|
+
* Do not set `label` when an interactive parent such as a button or a link
|
|
85
|
+
* already names the control, or screen readers announce the name twice.
|
|
86
|
+
*/
|
|
87
|
+
label?: string;
|
|
88
|
+
}
|
|
89
|
+
interface IconSlots {
|
|
90
|
+
/**
|
|
91
|
+
* The SVG markup to render. Use it instead of the `icon` prop when the
|
|
92
|
+
* artwork is written inline.
|
|
93
|
+
*/
|
|
94
|
+
default?: () => VNodeChild;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
export { IconSize as a, IconProps as i, IconColor as n, IconSlots as o, IconName as r, ExtendedIconName as t };
|