@astryx-vue/core 0.1.1 → 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.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-EiGyPFbA.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/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-BEyrkUtr.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-CO3mCs9A.js → Chat-DjNxw5gv.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BqwJvw7o.js → Citation-DijdbUUu.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- 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.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-9MC08X39.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-BD2iODF5.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-D9iXd5cH.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- 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-BOIb0zAp.js → DateInput-DE2TN1Rq.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-1bhPGG2s.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-SnPdgk6P.js} +4 -4
- 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/Field/index.js +2 -2
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CYvEV503.js → FileInput-BQiwE-GB.js} +3 -3
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- 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/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- 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/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Dnlp8cVx.js → Markdown-D-Ua055V.js} +2 -2
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-sYph_d8Q.js} +1 -1
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-DD9D01aj.js} +19 -12
- 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-Bh8or2S6.js → MultiSelector-DiYov9sF.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- 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-C3S-4dIu.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-Kr4iJrNV.js → OverflowList-BU5VCntl.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-BRStpeSB.js → Pagination-HdhtykeF.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BhSMfO5B.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DvEUIVEC.js → Selector-Da-2BO3q.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-B7LX4RcP.js → SideNav-B-Om6Bz3.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-BZ_8SEZt.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-Cnc2Hs1H.js +380 -0
- package/dist/Table/index.d.ts +2 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D5zWaITo.js → Table-D-LhAy_J.js} +6 -6
- 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/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- 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-DMOgWncm.js → Thumbnail-Dc1UpykG.js} +2 -2
- package/dist/{TimeField-DeQ1ukHl.js → TimeField-C7t9Knq9.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-jb1nLqZk.js → TimeInput-BXxCOY98.js} +2 -2
- 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-DrWwVQBL.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-CV2J94bn.js → Token-wt4e80IM.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DF9r4hTW.js → Tokenizer-nmTqdS9n.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-BH_s3uap.js → TopNav-notp-mJx.js} +58 -32
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-D9cR-w7r.js → TreeList-s1xBQ0qq.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-s4DC1Qem.js → Typeahead-VAuiCurV.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +5 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{context-BshXcNYX.js → context-Dbo22sck.js} +138 -0
- package/dist/context-O2Vb8cJl.js +57 -0
- package/dist/index-1AZ4KZhg.d.ts +96 -0
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
- package/dist/index-BMrggCw-.d.ts +52 -0
- package/dist/{index-BlWLperN.d.ts → index-BUXNRekN.d.ts} +2 -2
- package/dist/index-Bainr_3n.d.ts +31 -0
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-AkMWQ97a.d.ts → index-BtPZKO20.d.ts} +3 -3
- package/dist/index-Bu0Zd1uw.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/index-C59PdX9L.d.ts +141 -0
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-CQ9F1f_F.d.ts → index-C6iJwTL0.d.ts} +324 -145
- package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/index-CRizexSC.d.ts +147 -0
- package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
- package/dist/index-CVn0GBdB.d.ts +115 -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-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
- package/dist/{index-g03bmR4K.d.ts → index-D0TlUOtG.d.ts} +2 -2
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-D3V7yRUP.d.ts → index-DOUEn7V0.d.ts} +4 -4
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
- package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CNcQmDrK.d.ts → index-DoFCm2Q2.d.ts} +71 -0
- package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
- package/dist/{index-12ObcW99.d.ts → index-DtjAdYEc.d.ts} +2 -2
- package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
- package/dist/{index-CsJpQElv.d.ts → index-NzLDrOkk.d.ts} +2 -2
- package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
- package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
- package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index.d.ts +84 -63
- package/dist/index.js +118 -91
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- 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/dist/{index-Bovw9_8d.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/package.json +73 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/card.css +5 -1
- package/styles/carousel.css +120 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/field.css +12 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +25 -19
- package/styles/layout.css +280 -0
- package/styles/lightbox.css +144 -0
- package/styles/media-theme.css +51 -0
- package/styles/outline.css +124 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/text.css +63 -14
- package/styles/theme.css +29 -0
- package/styles/timer.css +34 -0
- package/styles.css +18 -0
- package/dist/Collapsible-BYg9soTk.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-BzqRns96.d.ts +0 -64
- package/dist/index-TnaIHsCS.d.ts +0 -87
|
@@ -13,6 +13,22 @@ const calendarMessages = {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
|
+
//#region src/locale/messages/carousel.ts
|
|
17
|
+
const carouselMessages = {
|
|
18
|
+
"en": {
|
|
19
|
+
label: "Carousel",
|
|
20
|
+
scrollLeft: "Scroll left",
|
|
21
|
+
scrollRight: "Scroll right",
|
|
22
|
+
slide: (current, total) => `Slide ${current} of ${total}`
|
|
23
|
+
},
|
|
24
|
+
"zh-CN": {
|
|
25
|
+
label: "轮播",
|
|
26
|
+
scrollLeft: "向左滚动",
|
|
27
|
+
scrollRight: "向右滚动",
|
|
28
|
+
slide: (current, total) => `第 ${current} 张幻灯片,共 ${total} 张`
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
16
32
|
//#region src/locale/messages/chat.ts
|
|
17
33
|
const chatMessages = {
|
|
18
34
|
"en": {
|
|
@@ -73,6 +89,36 @@ const citationMessages = {
|
|
|
73
89
|
"zh-CN": { label: (number, title) => `引用 ${number}:${title}` }
|
|
74
90
|
};
|
|
75
91
|
//#endregion
|
|
92
|
+
//#region src/locale/messages/command-palette.ts
|
|
93
|
+
const commandPaletteMessages = {
|
|
94
|
+
"en": {
|
|
95
|
+
label: "Command palette",
|
|
96
|
+
emptySearch: "No results",
|
|
97
|
+
emptyBootstrap: "Type to search",
|
|
98
|
+
placeholder: "Search…",
|
|
99
|
+
listLabel: "Commands",
|
|
100
|
+
loading: "Loading",
|
|
101
|
+
noResultsFor: (query) => `No results for ${query}`,
|
|
102
|
+
resultCount: (count) => `${count} ${count === 1 ? "result" : "results"}`,
|
|
103
|
+
navigate: "Navigate",
|
|
104
|
+
select: "Select",
|
|
105
|
+
close: "Close"
|
|
106
|
+
},
|
|
107
|
+
"zh-CN": {
|
|
108
|
+
label: "命令面板",
|
|
109
|
+
emptySearch: "没有结果",
|
|
110
|
+
emptyBootstrap: "输入以搜索",
|
|
111
|
+
placeholder: "搜索…",
|
|
112
|
+
listLabel: "命令",
|
|
113
|
+
loading: "正在加载",
|
|
114
|
+
noResultsFor: (query) => `没有与 ${query} 匹配的结果`,
|
|
115
|
+
resultCount: (count) => `${count} 个结果`,
|
|
116
|
+
navigate: "移动",
|
|
117
|
+
select: "选择",
|
|
118
|
+
close: "关闭"
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
76
122
|
//#region src/locale/messages/shared.ts
|
|
77
123
|
function clearLabel(label, fallback, prefix) {
|
|
78
124
|
return label != null && label !== "" ? `${prefix}${label}` : fallback;
|
|
@@ -150,6 +196,48 @@ const fileInputMessages = {
|
|
|
150
196
|
}
|
|
151
197
|
};
|
|
152
198
|
//#endregion
|
|
199
|
+
//#region src/locale/messages/layout.ts
|
|
200
|
+
const layoutMessages = {
|
|
201
|
+
"en": {
|
|
202
|
+
skipToContent: "Skip to content",
|
|
203
|
+
resizeHandle: "Resize handle",
|
|
204
|
+
collapsed: "Collapsed",
|
|
205
|
+
mobileNavigation: "Navigation"
|
|
206
|
+
},
|
|
207
|
+
"zh-CN": {
|
|
208
|
+
skipToContent: "跳到正文",
|
|
209
|
+
resizeHandle: "拖拽分隔条",
|
|
210
|
+
collapsed: "已收起",
|
|
211
|
+
mobileNavigation: "导航"
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/locale/messages/lightbox.ts
|
|
216
|
+
const lightboxMessages = {
|
|
217
|
+
"en": {
|
|
218
|
+
close: "Close",
|
|
219
|
+
previous: "Previous",
|
|
220
|
+
next: "Next",
|
|
221
|
+
mediaViewer: "Media viewer",
|
|
222
|
+
zoom: "Zoom",
|
|
223
|
+
zoomedIn: "Zoomed in, use arrow keys to pan",
|
|
224
|
+
zoomedOut: "Zoomed out",
|
|
225
|
+
imagePosition: (index, total) => `Image ${index} of ${total}`,
|
|
226
|
+
mediaPosition: (alt, index, total) => `${alt}, ${index} of ${total}`
|
|
227
|
+
},
|
|
228
|
+
"zh-CN": {
|
|
229
|
+
close: "关闭",
|
|
230
|
+
previous: "上一个",
|
|
231
|
+
next: "下一个",
|
|
232
|
+
mediaViewer: "媒体查看器",
|
|
233
|
+
zoom: "缩放",
|
|
234
|
+
zoomedIn: "已放大,使用箭头键平移",
|
|
235
|
+
zoomedOut: "已缩小",
|
|
236
|
+
imagePosition: (index, total) => `第 ${index} 张图片,共 ${total} 张`,
|
|
237
|
+
mediaPosition: (alt, index, total) => `${alt},第 ${index} 项,共 ${total} 项`
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
//#endregion
|
|
153
241
|
//#region src/locale/messages/markdown.ts
|
|
154
242
|
const markdownMessages = {
|
|
155
243
|
"en": {
|
|
@@ -209,6 +297,7 @@ const navMessages = {
|
|
|
209
297
|
collapseSidebar: "Collapse sidebar",
|
|
210
298
|
expandSidebar: "Expand sidebar",
|
|
211
299
|
openMenu: "Open menu",
|
|
300
|
+
openNavigation: "Open navigation",
|
|
212
301
|
close: "Close",
|
|
213
302
|
more: "More",
|
|
214
303
|
moreItems: (count) => `${count} more`,
|
|
@@ -223,6 +312,7 @@ const navMessages = {
|
|
|
223
312
|
collapseSidebar: "收起侧边栏",
|
|
224
313
|
expandSidebar: "展开侧边栏",
|
|
225
314
|
openMenu: "打开菜单",
|
|
315
|
+
openNavigation: "打开导航",
|
|
226
316
|
close: "关闭",
|
|
227
317
|
more: "更多",
|
|
228
318
|
moreItems: (count) => `还有 ${count} 项`,
|
|
@@ -244,6 +334,12 @@ const numberInputMessages = {
|
|
|
244
334
|
}
|
|
245
335
|
};
|
|
246
336
|
//#endregion
|
|
337
|
+
//#region src/locale/messages/outline.ts
|
|
338
|
+
const outlineMessages = {
|
|
339
|
+
"en": { label: "Table of contents" },
|
|
340
|
+
"zh-CN": { label: "目录" }
|
|
341
|
+
};
|
|
342
|
+
//#endregion
|
|
247
343
|
//#region src/locale/messages/pagination.ts
|
|
248
344
|
const paginationMessages = {
|
|
249
345
|
"en": {
|
|
@@ -286,6 +382,36 @@ const selectorMessages = {
|
|
|
286
382
|
}
|
|
287
383
|
};
|
|
288
384
|
//#endregion
|
|
385
|
+
//#region src/locale/messages/stepper.ts
|
|
386
|
+
const stepperMessages = {
|
|
387
|
+
"en": {
|
|
388
|
+
progress: "Progress",
|
|
389
|
+
optional: "Optional",
|
|
390
|
+
previous: "Previous step",
|
|
391
|
+
next: "Next step",
|
|
392
|
+
goToStep: (step) => `Go to step ${step}`,
|
|
393
|
+
goToStepWithStatus: (step, status) => `Go to step ${step}, ${status}`,
|
|
394
|
+
status: {
|
|
395
|
+
completed: "Completed",
|
|
396
|
+
warning: "Warning",
|
|
397
|
+
error: "Error"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"zh-CN": {
|
|
401
|
+
progress: "进度",
|
|
402
|
+
optional: "可选",
|
|
403
|
+
previous: "上一步",
|
|
404
|
+
next: "下一步",
|
|
405
|
+
goToStep: (step) => `转到第 ${step} 步`,
|
|
406
|
+
goToStepWithStatus: (step, status) => `转到第 ${step} 步,${status}`,
|
|
407
|
+
status: {
|
|
408
|
+
completed: "已完成",
|
|
409
|
+
warning: "警告",
|
|
410
|
+
error: "错误"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
//#endregion
|
|
289
415
|
//#region src/locale/messages/table.ts
|
|
290
416
|
const tableMessages = {
|
|
291
417
|
"en": {
|
|
@@ -442,19 +568,25 @@ const typeaheadMessages = {
|
|
|
442
568
|
const astryxMessages = {
|
|
443
569
|
"en": {
|
|
444
570
|
calendar: calendarMessages.en,
|
|
571
|
+
carousel: carouselMessages.en,
|
|
445
572
|
chat: chatMessages.en,
|
|
446
573
|
citation: citationMessages.en,
|
|
574
|
+
commandPalette: commandPaletteMessages.en,
|
|
447
575
|
dateInput: dateInputMessages.en,
|
|
448
576
|
dateRangeInput: dateRangeInputMessages.en,
|
|
449
577
|
dateTimeInput: dateTimeInputMessages.en,
|
|
450
578
|
fileInput: fileInputMessages.en,
|
|
579
|
+
layout: layoutMessages.en,
|
|
580
|
+
lightbox: lightboxMessages.en,
|
|
451
581
|
markdown: markdownMessages.en,
|
|
452
582
|
metadataList: metadataListMessages.en,
|
|
453
583
|
multiSelector: multiSelectorMessages.en,
|
|
454
584
|
nav: navMessages.en,
|
|
455
585
|
numberInput: numberInputMessages.en,
|
|
586
|
+
outline: outlineMessages.en,
|
|
456
587
|
pagination: paginationMessages.en,
|
|
457
588
|
selector: selectorMessages.en,
|
|
589
|
+
stepper: stepperMessages.en,
|
|
458
590
|
table: tableMessages.en,
|
|
459
591
|
thumbnail: thumbnailMessages.en,
|
|
460
592
|
timeInput: timeInputMessages.en,
|
|
@@ -466,19 +598,25 @@ const astryxMessages = {
|
|
|
466
598
|
},
|
|
467
599
|
"zh-CN": {
|
|
468
600
|
calendar: calendarMessages["zh-CN"],
|
|
601
|
+
carousel: carouselMessages["zh-CN"],
|
|
469
602
|
chat: chatMessages["zh-CN"],
|
|
470
603
|
citation: citationMessages["zh-CN"],
|
|
604
|
+
commandPalette: commandPaletteMessages["zh-CN"],
|
|
471
605
|
dateInput: dateInputMessages["zh-CN"],
|
|
472
606
|
dateRangeInput: dateRangeInputMessages["zh-CN"],
|
|
473
607
|
dateTimeInput: dateTimeInputMessages["zh-CN"],
|
|
474
608
|
fileInput: fileInputMessages["zh-CN"],
|
|
609
|
+
layout: layoutMessages["zh-CN"],
|
|
610
|
+
lightbox: lightboxMessages["zh-CN"],
|
|
475
611
|
markdown: markdownMessages["zh-CN"],
|
|
476
612
|
metadataList: metadataListMessages["zh-CN"],
|
|
477
613
|
multiSelector: multiSelectorMessages["zh-CN"],
|
|
478
614
|
nav: navMessages["zh-CN"],
|
|
479
615
|
numberInput: numberInputMessages["zh-CN"],
|
|
616
|
+
outline: outlineMessages["zh-CN"],
|
|
480
617
|
pagination: paginationMessages["zh-CN"],
|
|
481
618
|
selector: selectorMessages["zh-CN"],
|
|
619
|
+
stepper: stepperMessages["zh-CN"],
|
|
482
620
|
table: tableMessages["zh-CN"],
|
|
483
621
|
thumbnail: thumbnailMessages["zh-CN"],
|
|
484
622
|
timeInput: timeInputMessages["zh-CN"],
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/Code/syntaxContext.ts
|
|
2
|
+
const syntaxThemeKey = Symbol("astryx-syntax-theme");
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/Theme/colorMode.ts
|
|
5
|
+
/**
|
|
6
|
+
* Split `light-dark(light, dark)` at the top-level comma.
|
|
7
|
+
* Nested functions such as `rgb()` keep their own commas.
|
|
8
|
+
*/
|
|
9
|
+
function splitLightDark(value) {
|
|
10
|
+
const trimmed = value.trim();
|
|
11
|
+
if (!trimmed.startsWith("light-dark(") || !trimmed.endsWith(")")) return null;
|
|
12
|
+
const body = trimmed.slice(11, -1);
|
|
13
|
+
let depth = 0;
|
|
14
|
+
for (let index = 0; index < body.length; index += 1) {
|
|
15
|
+
const char = body[index];
|
|
16
|
+
if (char === "(") depth += 1;
|
|
17
|
+
else if (char === ")") depth -= 1;
|
|
18
|
+
else if (char === "," && depth === 0) {
|
|
19
|
+
const light = body.slice(0, index).trim();
|
|
20
|
+
const dark = body.slice(index + 1).trim();
|
|
21
|
+
return light && dark ? [light, dark] : null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Pick the stop `light-dark()` would use for the effective mode.
|
|
28
|
+
* A value that is not `light-dark()` is returned unchanged.
|
|
29
|
+
*/
|
|
30
|
+
function resolveLightDark(value, mode) {
|
|
31
|
+
const parts = splitLightDark(value);
|
|
32
|
+
if (!parts) return value.trim();
|
|
33
|
+
return mode === "dark" ? parts[1] : parts[0];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The mode `light-dark()` is using on the page.
|
|
37
|
+
*
|
|
38
|
+
* An explicit theme mode is handled by the caller. This reads the document
|
|
39
|
+
* attribute, the docs site's `dark` class, then the OS preference that was
|
|
40
|
+
* already measured.
|
|
41
|
+
*/
|
|
42
|
+
function readColorMode(prefersDark) {
|
|
43
|
+
if (typeof document !== "undefined") {
|
|
44
|
+
const attr = document.documentElement.getAttribute("data-astryx-color-mode");
|
|
45
|
+
if (attr === "light" || attr === "dark") return attr;
|
|
46
|
+
if (document.documentElement.classList.contains("dark")) return "dark";
|
|
47
|
+
}
|
|
48
|
+
return prefersDark ? "dark" : "light";
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/Theme/context.ts
|
|
52
|
+
const themeContextKey = Symbol("astryx-theme");
|
|
53
|
+
/** Present when this component is already inside a Theme. */
|
|
54
|
+
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
55
|
+
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
56
|
+
//#endregion
|
|
57
|
+
export { resolveLightDark as a, readColorMode as i, themeContextKey as n, syntaxThemeKey as o, themeNestingKey as r, mediaThemeKey as t };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
//#region src/Lightbox/types.d.ts
|
|
3
|
+
type LightboxMediaType = 'image' | 'video';
|
|
4
|
+
interface LightboxMedia {
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
caption?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Zoom and pan are only available for images.
|
|
10
|
+
* @default 'image'
|
|
11
|
+
*/
|
|
12
|
+
type?: LightboxMediaType;
|
|
13
|
+
}
|
|
14
|
+
interface LightboxProps {
|
|
15
|
+
/** Whether the lightbox is open. Bind with `v-model:is-open`. */
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* One item, or a gallery. An array shows previous, next, and a counter.
|
|
19
|
+
*/
|
|
20
|
+
media: LightboxMedia | readonly LightboxMedia[];
|
|
21
|
+
/**
|
|
22
|
+
* Controlled gallery index. Bind with `v-model:index`.
|
|
23
|
+
*/
|
|
24
|
+
index?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Initial index when `index` is omitted.
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
defaultIndex?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Double-click, Enter, Space, `+`, and `-` zoom images. Arrow keys pan while zoomed.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
hasZoom?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Start video playback when a video item is shown.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
hasAutoPlay?: boolean;
|
|
40
|
+
}
|
|
41
|
+
interface LightboxEmits {
|
|
42
|
+
'update:isOpen': [isOpen: boolean];
|
|
43
|
+
'update:index': [index: number];
|
|
44
|
+
}
|
|
45
|
+
interface UseLightboxOptions {
|
|
46
|
+
media: LightboxMedia | readonly LightboxMedia[];
|
|
47
|
+
hasZoom?: boolean;
|
|
48
|
+
hasAutoPlay?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface LightboxTriggerProps {
|
|
51
|
+
'role': 'button';
|
|
52
|
+
'tabindex': 0;
|
|
53
|
+
'aria-haspopup': 'dialog';
|
|
54
|
+
'onClick': () => void;
|
|
55
|
+
'onKeydown': (event: KeyboardEvent) => void;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/Lightbox/Lightbox.vue.d.ts
|
|
59
|
+
declare const __VLS_export: import("vue").DefineComponent<LightboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
|
+
"update:isOpen": (isOpen: boolean) => any;
|
|
61
|
+
"update:index": (index: number) => any;
|
|
62
|
+
}, string, import("vue").PublicProps, Readonly<LightboxProps> & Readonly<{
|
|
63
|
+
"onUpdate:isOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
64
|
+
"onUpdate:index"?: ((index: number) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
defaultIndex: number;
|
|
67
|
+
hasZoom: boolean;
|
|
68
|
+
hasAutoPlay: boolean;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
70
|
+
declare const _default: typeof __VLS_export;
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/Lightbox/useLightbox.d.ts
|
|
73
|
+
interface LightboxBindings {
|
|
74
|
+
'hasAutoPlay': boolean | undefined;
|
|
75
|
+
'hasZoom': boolean | undefined;
|
|
76
|
+
'index': number;
|
|
77
|
+
'isOpen': boolean;
|
|
78
|
+
'media': LightboxMedia | readonly LightboxMedia[];
|
|
79
|
+
'onUpdate:index': (next: number) => void;
|
|
80
|
+
'onUpdate:isOpen': (next: boolean) => void;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Owns the open state and gallery index for a `Lightbox`.
|
|
84
|
+
* Bind `bindings` onto `Lightbox`, and call `open(index)` from a thumbnail.
|
|
85
|
+
*/
|
|
86
|
+
declare function useLightbox(options: UseLightboxOptions): {
|
|
87
|
+
bindings: ComputedRef<LightboxBindings>;
|
|
88
|
+
close: () => void;
|
|
89
|
+
getTriggerProps: (next: number) => LightboxTriggerProps;
|
|
90
|
+
index: Ref<number>;
|
|
91
|
+
isOpen: Ref<boolean>;
|
|
92
|
+
open: (next?: number) => void;
|
|
93
|
+
triggerProps: ComputedRef<LightboxTriggerProps>;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { LightboxMediaType as a, UseLightboxOptions as c, LightboxMedia as i, _default as n, LightboxProps as o, LightboxEmits as r, LightboxTriggerProps as s, useLightbox as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as ResizableProps } from "./useResizable-CeESZS1v.js";
|
|
2
|
+
import { VNodeChild } from "vue";
|
|
3
|
+
//#region src/Resizable/types.d.ts
|
|
4
|
+
type ResizeDirection = 'horizontal' | 'vertical';
|
|
5
|
+
type ResizePosition = 'inline' | 'overlay';
|
|
6
|
+
type ResizePillPlacement = 'auto' | 'start' | 'end' | 'center';
|
|
7
|
+
interface ResizeHandleProps {
|
|
8
|
+
/** 拖拽方向。horizontal 改宽度,vertical 改高度。 @default 'horizontal' */
|
|
9
|
+
direction?: ResizeDirection;
|
|
10
|
+
/** inline 占一格,overlay 贴在父级边缘。 @default 'inline' */
|
|
11
|
+
position?: ResizePosition;
|
|
12
|
+
/** 面板在结束边时把拖拽方向反过来。 @default false */
|
|
13
|
+
isReversed?: boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
/** 画出 1px 分隔线。线本身就是把手。 @default false */
|
|
17
|
+
hasDivider?: boolean;
|
|
18
|
+
/** 静止时也显示握把。 @default true */
|
|
19
|
+
isAlwaysVisible?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 握把相对分隔线的位置。auto 靠面板一侧,面板收到 0 时翻到另一侧。
|
|
22
|
+
* @default 'auto'
|
|
23
|
+
*/
|
|
24
|
+
pillPlacement?: ResizePillPlacement;
|
|
25
|
+
/** 分隔条的无障碍名称。不传时用当前语言的默认文案。 */
|
|
26
|
+
label?: string;
|
|
27
|
+
resizable?: ResizableProps;
|
|
28
|
+
}
|
|
29
|
+
interface ResizeHandleSlots {
|
|
30
|
+
default?: () => VNodeChild;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/Resizable/ResizeHandle.vue.d.ts
|
|
34
|
+
type __VLS_Slots = ResizeHandleSlots;
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
|
|
36
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
|
|
38
|
+
isDisabled: boolean;
|
|
39
|
+
position: ResizePosition;
|
|
40
|
+
direction: ResizeDirection;
|
|
41
|
+
isReversed: boolean;
|
|
42
|
+
hasDivider: boolean;
|
|
43
|
+
isAlwaysVisible: boolean;
|
|
44
|
+
pillPlacement: ResizePillPlacement;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
|
+
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { ResizePillPlacement as a, ResizeHandleSlots as i, ResizeDirection as n, ResizePosition as o, ResizeHandleProps as r, _default as t };
|
|
@@ -72,8 +72,8 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
|
|
|
72
72
|
//#region src/Tokenizer/Tokenizer.vue.d.ts
|
|
73
73
|
declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
74
74
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
75
|
-
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
76
75
|
onSearch?: ((query: string) => any) | undefined;
|
|
76
|
+
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
77
77
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
78
78
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
79
79
|
}> & (typeof globalThis extends {
|
|
@@ -85,7 +85,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
85
85
|
}>) => void;
|
|
86
86
|
attrs: any;
|
|
87
87
|
slots: TokenizerSlots<T>;
|
|
88
|
-
emit: ((evt: "
|
|
88
|
+
emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
89
89
|
}>) => import("vue").VNode & {
|
|
90
90
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
91
91
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { a as TextSize, n as TextColor, o as TextType, s as TextWeight } from "./types-Bt-lSgYX.js";
|
|
2
|
+
//#region src/Timer/format.d.ts
|
|
3
|
+
type TimerFormat = 'elapsed' | 'clock';
|
|
4
|
+
interface TimerPresentation {
|
|
5
|
+
dateTime: string;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
declare function getPresentation(elapsedMilliseconds: number, format: TimerFormat): TimerPresentation;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/Timer/types.d.ts
|
|
11
|
+
/** Timer can inherit the surrounding type, which Text itself does not offer. */
|
|
12
|
+
type TimerType = TextType | 'inherit';
|
|
13
|
+
type TimerColor = TextColor | 'disabled';
|
|
14
|
+
interface TimerProps {
|
|
15
|
+
/**
|
|
16
|
+
* Unix time in milliseconds when the measured operation began.
|
|
17
|
+
* Omit it to start counting from this Timer's mount.
|
|
18
|
+
*/
|
|
19
|
+
startTime?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Standard duration representation.
|
|
22
|
+
* `elapsed` uses compact units and drops seconds after one hour.
|
|
23
|
+
* `clock` stays second-precise (`m:ss` or `h:mm:ss`).
|
|
24
|
+
* @default 'elapsed'
|
|
25
|
+
*/
|
|
26
|
+
format?: 'elapsed' | 'clock';
|
|
27
|
+
/**
|
|
28
|
+
* Semantic text type. Matches Timestamp typography.
|
|
29
|
+
* `inherit` takes the surrounding font instead of a text type.
|
|
30
|
+
* @default 'supporting'
|
|
31
|
+
*/
|
|
32
|
+
type?: TimerType;
|
|
33
|
+
/** Explicit font size. Overrides the size that comes from `type`. */
|
|
34
|
+
size?: TextSize;
|
|
35
|
+
/**
|
|
36
|
+
* Text color.
|
|
37
|
+
* @default 'secondary'
|
|
38
|
+
*/
|
|
39
|
+
color?: TimerColor;
|
|
40
|
+
/** Font weight override. */
|
|
41
|
+
weight?: TextWeight;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/Timer/Timer.vue.d.ts
|
|
45
|
+
declare const __VLS_export: import("vue").DefineComponent<TimerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimerProps> & Readonly<{}>, {
|
|
46
|
+
type: TimerType;
|
|
47
|
+
color: TimerColor;
|
|
48
|
+
format: "clock" | "elapsed";
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { TimerFormat as a, TimerType as i, TimerColor as n, TimerPresentation as o, TimerProps as r, getPresentation as s, _default as t };
|
|
@@ -39,9 +39,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
39
39
|
onRemove?: ((event: Event) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
41
|
size: TokenSize;
|
|
42
|
-
color: "default" | "blue" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow"
|
|
43
|
-
labelHidden: boolean;
|
|
42
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
44
43
|
disabled: boolean;
|
|
44
|
+
labelHidden: boolean;
|
|
45
45
|
removable: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "./types-DZoEm_DG.js";
|
|
2
|
+
//#region src/Icon/glyphs.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* A name that resolves to built-in artwork: one of the semantic names the
|
|
5
|
+
* components use, or a namespaced key such as `owner:key` that a component
|
|
6
|
+
* owns.
|
|
7
|
+
*/
|
|
8
|
+
type IconGlyphName = IconName | `${string}:${string}`;
|
|
9
|
+
/**
|
|
10
|
+
* The artwork kept for the components' own chrome. Applications bring their own
|
|
11
|
+
* icons; this list only has to cover what astryx-vue draws itself.
|
|
12
|
+
*/
|
|
13
|
+
declare const ICON_GLYPHS: readonly ["chevronDown", "chevronLeft", "chevronRight", "check", "moreHorizontal", "copy", "calendar", "clock", "upload", "arrowUp", "arrowDown", "close", "funnel", "image"];
|
|
14
|
+
declare function isIconGlyph(value: string): value is IconGlyphName;
|
|
15
|
+
/** The CSS-safe form of a name, used as the `astryx-icon--<slug>` class. */
|
|
16
|
+
declare function iconGlyphSlug(name: IconGlyphName): string;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/Icon/Icon.vue.d.ts
|
|
19
|
+
type __VLS_Slots = IconSlots;
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
21
|
+
color: IconColor;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { isIconGlyph as a, iconGlyphSlug as i, ICON_GLYPHS as n, IconGlyphName as r, _default as t };
|