@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
|
@@ -8,11 +8,11 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
|
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
9
9
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
type: "button" | "reset" | "submit";
|
|
12
|
-
isDisabled: boolean;
|
|
13
11
|
elevation: ButtonElevation;
|
|
12
|
+
isDisabled: boolean;
|
|
14
13
|
isLoading: boolean;
|
|
15
14
|
isIconOnly: boolean;
|
|
15
|
+
type: "button" | "reset" | "submit";
|
|
16
16
|
isInterruptible: boolean;
|
|
17
17
|
loadingLabel: string;
|
|
18
18
|
variant: ButtonVariant;
|
|
@@ -130,8 +130,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
130
130
|
onMotionComplete?: ((motion: BottomSheetMotion) => any) | undefined;
|
|
131
131
|
onSnap?: ((visibleHeight: number) => any) | undefined;
|
|
132
132
|
}>, {
|
|
133
|
-
height: string | number;
|
|
134
133
|
padding: BottomSheetPadding;
|
|
134
|
+
height: string | number;
|
|
135
135
|
isInline: boolean;
|
|
136
136
|
snapPoints: readonly BottomSheetSnapPoint[];
|
|
137
137
|
purpose: BottomSheetPurpose;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { n as SpacingStep } from "./types-D7QNSqoN.js";
|
|
2
|
+
import { n as SizeValue } from "./size-BuTzpgnR.js";
|
|
3
|
+
import { ComputedRef, InjectionKey, VNodeChild } from "vue";
|
|
4
|
+
//#region src/Layout/context.d.ts
|
|
5
|
+
type LayoutArea = 'header' | 'start' | 'content' | 'end' | 'footer';
|
|
6
|
+
type LayoutHeight = 'fill' | 'auto';
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/Layout/types.d.ts
|
|
9
|
+
interface LayoutProps {
|
|
10
|
+
/**
|
|
11
|
+
* 对齐内容的最大宽度。分隔线仍然拉满。
|
|
12
|
+
* 数字是像素,字符串原样使用。百分比和内在宽度走约束宽度。
|
|
13
|
+
*/
|
|
14
|
+
contentWidth?: SizeValue;
|
|
15
|
+
/**
|
|
16
|
+
* fill 撑满容器,内容在中间滚动。auto 随内容长高。
|
|
17
|
+
* @default 'fill'
|
|
18
|
+
*/
|
|
19
|
+
height?: LayoutHeight;
|
|
20
|
+
/**
|
|
21
|
+
* 这一层自己的外缘间距。不会传给嵌套的 Layout。
|
|
22
|
+
*/
|
|
23
|
+
padding?: SpacingStep;
|
|
24
|
+
/**
|
|
25
|
+
* 页眉和页脚没写 hasDivider 时用的默认值。
|
|
26
|
+
*/
|
|
27
|
+
defaultHasDividers?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface LayoutSlots {
|
|
30
|
+
default?: () => VNodeChild;
|
|
31
|
+
header?: () => VNodeChild;
|
|
32
|
+
start?: () => VNodeChild;
|
|
33
|
+
end?: () => VNodeChild;
|
|
34
|
+
footer?: () => VNodeChild;
|
|
35
|
+
}
|
|
36
|
+
interface LayoutHeaderProps {
|
|
37
|
+
/** 底边分隔线。不传时用 Layout 的 defaultHasDividers,再没有就是 false。 */
|
|
38
|
+
hasDivider?: boolean;
|
|
39
|
+
/** 高度。数字是像素,字符串原样使用。 */
|
|
40
|
+
height?: SizeValue;
|
|
41
|
+
/** 内边距。0 表示内容自己管边距。 */
|
|
42
|
+
padding?: SpacingStep;
|
|
43
|
+
/** 只改底边内边距,方便标签下划线和分隔线贴住。 */
|
|
44
|
+
paddingBlockEnd?: SpacingStep;
|
|
45
|
+
label?: string;
|
|
46
|
+
role?: string;
|
|
47
|
+
}
|
|
48
|
+
interface LayoutHeaderSlots {
|
|
49
|
+
default?: () => VNodeChild;
|
|
50
|
+
}
|
|
51
|
+
interface LayoutFooterProps {
|
|
52
|
+
/** 顶边分隔线。不传时用 Layout 的 defaultHasDividers,再没有就是 false。 */
|
|
53
|
+
hasDivider?: boolean;
|
|
54
|
+
height?: SizeValue;
|
|
55
|
+
padding?: SpacingStep;
|
|
56
|
+
label?: string;
|
|
57
|
+
role?: string;
|
|
58
|
+
}
|
|
59
|
+
interface LayoutFooterSlots {
|
|
60
|
+
default?: () => VNodeChild;
|
|
61
|
+
}
|
|
62
|
+
interface LayoutContentProps {
|
|
63
|
+
padding?: SpacingStep;
|
|
64
|
+
/**
|
|
65
|
+
* 内容超出时在这块里滚动。
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
isScrollable?: boolean;
|
|
69
|
+
label?: string;
|
|
70
|
+
role?: string;
|
|
71
|
+
}
|
|
72
|
+
interface LayoutContentSlots {
|
|
73
|
+
default?: () => VNodeChild;
|
|
74
|
+
}
|
|
75
|
+
interface LayoutResizable {
|
|
76
|
+
_size: number;
|
|
77
|
+
}
|
|
78
|
+
interface LayoutPanelProps {
|
|
79
|
+
/** 朝向内容的那条边。和旁边的 ResizeHandle 分隔线不要同时开。 @default false */
|
|
80
|
+
hasDivider?: boolean;
|
|
81
|
+
padding?: SpacingStep;
|
|
82
|
+
/** @default true */
|
|
83
|
+
isScrollable?: boolean;
|
|
84
|
+
label?: string;
|
|
85
|
+
role?: string;
|
|
86
|
+
/** 宽度。数字是像素。传了 resizable 时以钩子的尺寸为准。 */
|
|
87
|
+
width?: SizeValue;
|
|
88
|
+
resizable?: LayoutResizable;
|
|
89
|
+
}
|
|
90
|
+
interface LayoutPanelSlots {
|
|
91
|
+
default?: () => VNodeChild;
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/Layout/Layout.vue.d.ts
|
|
95
|
+
type __VLS_Slots$4 = LayoutSlots;
|
|
96
|
+
declare const __VLS_base$4: import("vue").DefineComponent<LayoutProps, {
|
|
97
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
98
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutProps> & Readonly<{}>, {
|
|
99
|
+
height: LayoutHeight;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
101
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
102
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
103
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/Layout/LayoutContent.vue.d.ts
|
|
110
|
+
type __VLS_Slots$3 = LayoutContentSlots;
|
|
111
|
+
declare const __VLS_base$3: import("vue").DefineComponent<LayoutContentProps, {
|
|
112
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
113
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutContentProps> & Readonly<{}>, {
|
|
114
|
+
isScrollable: boolean;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
116
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
117
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
118
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/Layout/LayoutFooter.vue.d.ts
|
|
125
|
+
type __VLS_Slots$2 = LayoutFooterSlots;
|
|
126
|
+
declare const __VLS_base$2: import("vue").DefineComponent<LayoutFooterProps, {
|
|
127
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
128
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutFooterProps> & Readonly<{}>, {
|
|
129
|
+
hasDivider: boolean;
|
|
130
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
131
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
132
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
133
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
134
|
+
new (): {
|
|
135
|
+
$slots: S;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/Layout/LayoutHeader.vue.d.ts
|
|
140
|
+
type __VLS_Slots$1 = LayoutHeaderSlots;
|
|
141
|
+
declare const __VLS_base$1: import("vue").DefineComponent<LayoutHeaderProps, {
|
|
142
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
143
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutHeaderProps> & Readonly<{}>, {
|
|
144
|
+
hasDivider: boolean;
|
|
145
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
146
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
147
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
148
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
149
|
+
new (): {
|
|
150
|
+
$slots: S;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/Layout/LayoutPanel.vue.d.ts
|
|
155
|
+
type __VLS_Slots = LayoutPanelSlots;
|
|
156
|
+
declare const __VLS_base: import("vue").DefineComponent<LayoutPanelProps, {
|
|
157
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
158
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LayoutPanelProps> & Readonly<{}>, {
|
|
159
|
+
hasDivider: boolean;
|
|
160
|
+
isScrollable: boolean;
|
|
161
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
162
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
163
|
+
declare const _default: typeof __VLS_export;
|
|
164
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
165
|
+
new (): {
|
|
166
|
+
$slots: S;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
//#endregion
|
|
170
|
+
export { LayoutHeight as _, _default$4 as a, LayoutFooterProps as c, LayoutHeaderSlots as d, LayoutPanelProps as f, LayoutArea as g, LayoutSlots as h, _default$3 as i, LayoutFooterSlots as l, LayoutProps as m, _default$1 as n, LayoutContentProps as o, LayoutPanelSlots as p, _default$2 as r, LayoutContentSlots as s, _default as t, LayoutHeaderProps as u };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { VNodeChild } from "vue";
|
|
2
|
+
//#region src/AspectRatio/types.d.ts
|
|
3
|
+
/** 容器外形。ellipse 按 ratio 裁成椭圆,1 比 1 时是正圆。 */
|
|
4
|
+
type AspectRatioShape = 'rectangle' | 'ellipse';
|
|
5
|
+
/**
|
|
6
|
+
* 子元素在比例框里的尺寸。
|
|
7
|
+
* 不传时子元素自己负责尺寸。
|
|
8
|
+
*/
|
|
9
|
+
type AspectRatioFit = 'cover' | 'contain' | 'center';
|
|
10
|
+
interface AspectRatioProps {
|
|
11
|
+
/**
|
|
12
|
+
* 宽高比,宽除以高。16 比 9 写成 `16 / 9`。
|
|
13
|
+
* 写在类上的 CSS 变量里,不写成行内 aspect-ratio,方便外部样式覆盖。
|
|
14
|
+
*/
|
|
15
|
+
ratio: number;
|
|
16
|
+
/**
|
|
17
|
+
* 容器外形。
|
|
18
|
+
* @default 'rectangle'
|
|
19
|
+
*/
|
|
20
|
+
shape?: AspectRatioShape;
|
|
21
|
+
/**
|
|
22
|
+
* 子元素如何填满比例框。
|
|
23
|
+
* cover 裁切,contain 留边,center 保持原始尺寸并居中。
|
|
24
|
+
*/
|
|
25
|
+
fit?: AspectRatioFit;
|
|
26
|
+
}
|
|
27
|
+
interface AspectRatioSlots {
|
|
28
|
+
/** 放进比例框的内容。fit 有值时只放一个子元素。 */
|
|
29
|
+
default?: () => VNodeChild;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/AspectRatio/AspectRatio.vue.d.ts
|
|
33
|
+
type __VLS_Slots = AspectRatioSlots;
|
|
34
|
+
declare const __VLS_base: import("vue").DefineComponent<AspectRatioProps, {
|
|
35
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AspectRatioProps> & Readonly<{}>, {
|
|
37
|
+
shape: AspectRatioShape;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { AspectRatioSlots as a, AspectRatioShape as i, AspectRatioFit as n, AspectRatioProps as r, _default as t };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { n as SyntaxThemeDefinition } from "./syntaxTheme-Bcs1YMF7.js";
|
|
2
|
+
import { ComputedRef } from "vue";
|
|
3
|
+
//#region src/Theme/types.d.ts
|
|
4
|
+
/** Color mode for a theme subtree. `system` follows the page and the OS. */
|
|
5
|
+
type ThemeMode = 'light' | 'dark' | 'system';
|
|
6
|
+
/**
|
|
7
|
+
* A token value.
|
|
8
|
+
*
|
|
9
|
+
* A string is used as written. A two-item tuple is the light stop, then the
|
|
10
|
+
* dark stop, and becomes `light-dark()`.
|
|
11
|
+
*/
|
|
12
|
+
type ThemeTokenValue = string | readonly [string, string];
|
|
13
|
+
/** CSS custom properties for a theme. Keys may omit the `--astryx-` prefix. */
|
|
14
|
+
type ThemeTokens = Record<string, ThemeTokenValue>;
|
|
15
|
+
/** Token overrides for one inverted surface. */
|
|
16
|
+
interface ThemeSurfaceInput {
|
|
17
|
+
tokens?: ThemeTokens;
|
|
18
|
+
}
|
|
19
|
+
interface DefineThemeInput {
|
|
20
|
+
/** Theme name. Used as `data-astryx-theme`. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Semantic token overrides for this theme. */
|
|
23
|
+
tokens?: ThemeTokens;
|
|
24
|
+
/** Another theme to start from. This theme's own values win. */
|
|
25
|
+
extends?: ThemeDefinition;
|
|
26
|
+
/** Syntax colors for code in this subtree, unless a SyntaxTheme is closer. */
|
|
27
|
+
syntax?: SyntaxThemeDefinition;
|
|
28
|
+
/** Extra tokens for content on a dark surface. */
|
|
29
|
+
onDark?: ThemeSurfaceInput;
|
|
30
|
+
/** Extra tokens for content on a light surface. */
|
|
31
|
+
onLight?: ThemeSurfaceInput;
|
|
32
|
+
}
|
|
33
|
+
interface ThemeDefinition {
|
|
34
|
+
name: string;
|
|
35
|
+
/** Token values already written as CSS. */
|
|
36
|
+
tokens: Readonly<Record<string, string>>;
|
|
37
|
+
/** Extra tokens applied by MediaTheme when the surface is dark. */
|
|
38
|
+
onDark: Readonly<Record<string, string>>;
|
|
39
|
+
/** Extra tokens applied by MediaTheme when the surface is light. */
|
|
40
|
+
onLight: Readonly<Record<string, string>>;
|
|
41
|
+
syntax?: SyntaxThemeDefinition;
|
|
42
|
+
readonly __astryxTheme: true;
|
|
43
|
+
}
|
|
44
|
+
interface ThemeProps {
|
|
45
|
+
/** Theme from `defineTheme()`. */
|
|
46
|
+
theme: ThemeDefinition;
|
|
47
|
+
/**
|
|
48
|
+
* Color mode for this subtree.
|
|
49
|
+
* @default 'system'
|
|
50
|
+
*/
|
|
51
|
+
mode?: ThemeMode;
|
|
52
|
+
}
|
|
53
|
+
/** Surface luminance, `auto` to measure it, or `off` to leave the page theme. */
|
|
54
|
+
type MediaThemeMode = 'dark' | 'light' | 'auto' | 'off';
|
|
55
|
+
interface MediaThemeProps {
|
|
56
|
+
/**
|
|
57
|
+
* Which surface the children sit on.
|
|
58
|
+
* `auto` measures the parent. `off` keeps the surrounding theme.
|
|
59
|
+
*/
|
|
60
|
+
mode: MediaThemeMode;
|
|
61
|
+
/**
|
|
62
|
+
* Side used by `auto` before the surface can be measured, and when it cannot.
|
|
63
|
+
* @default 'dark'
|
|
64
|
+
*/
|
|
65
|
+
fallback?: 'dark' | 'light';
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/Theme/defineTheme.d.ts
|
|
69
|
+
declare function isDefinedTheme(value: unknown): value is ThemeDefinition;
|
|
70
|
+
/** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
|
|
71
|
+
declare function normalizeTokenName(name: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* Create a theme object that `Theme` can apply to a subtree.
|
|
74
|
+
*
|
|
75
|
+
* Token names are the upstream names (`--color-accent`) or this package's
|
|
76
|
+
* prefixed names (`--astryx-color-accent`). A `[light, dark]` tuple becomes
|
|
77
|
+
* `light-dark()`.
|
|
78
|
+
*/
|
|
79
|
+
declare function defineTheme(input: DefineThemeInput): ThemeDefinition;
|
|
80
|
+
/** Neutral, with no token overrides. Colors come from `@astryx-vue/themes/neutral.css`. */
|
|
81
|
+
declare const neutralTheme: ThemeDefinition;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/Theme/MediaTheme.vue.d.ts
|
|
84
|
+
declare var __VLS_1$1: {};
|
|
85
|
+
type __VLS_Slots$1 = {} & {
|
|
86
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
87
|
+
};
|
|
88
|
+
declare const __VLS_base$1: import("vue").DefineComponent<MediaThemeProps, {
|
|
89
|
+
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
90
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MediaThemeProps> & Readonly<{}>, {
|
|
91
|
+
fallback: "dark" | "light";
|
|
92
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
93
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
94
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
95
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/Theme/Theme.vue.d.ts
|
|
102
|
+
declare var __VLS_1: {};
|
|
103
|
+
type __VLS_Slots = {} & {
|
|
104
|
+
default?: (props: typeof __VLS_1) => any;
|
|
105
|
+
};
|
|
106
|
+
declare const __VLS_base: import("vue").DefineComponent<ThemeProps, {
|
|
107
|
+
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
108
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ThemeProps> & Readonly<{}>, {
|
|
109
|
+
mode: ThemeMode;
|
|
110
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
111
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
112
|
+
declare const _default: typeof __VLS_export;
|
|
113
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
114
|
+
new (): {
|
|
115
|
+
$slots: S;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/Theme/useMediaTheme.d.ts
|
|
120
|
+
interface UseMediaThemeReturn {
|
|
121
|
+
/** Resolved surface. `off` means the children keep the surrounding theme. */
|
|
122
|
+
mode: ComputedRef<'dark' | 'light' | 'off'>;
|
|
123
|
+
}
|
|
124
|
+
/** Read the nearest MediaTheme. Outside one, the mode is `off`. */
|
|
125
|
+
declare function useMediaTheme(): UseMediaThemeReturn;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/Theme/colorMode.d.ts
|
|
128
|
+
type ResolvedColorMode = 'light' | 'dark';
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/Theme/useTheme.d.ts
|
|
131
|
+
interface UseThemeReturn {
|
|
132
|
+
/** Name of the nearest theme, or `neutral` when no theme is present. */
|
|
133
|
+
name: ComputedRef<string>;
|
|
134
|
+
/** Effective light or dark mode. `system` is resolved. */
|
|
135
|
+
mode: ComputedRef<ResolvedColorMode>;
|
|
136
|
+
/** Resolve one token for the effective mode. */
|
|
137
|
+
token: (name: string) => string;
|
|
138
|
+
/** Tokens declared by the nearest theme, resolved for the effective mode. */
|
|
139
|
+
tokens: ComputedRef<Record<string, string>>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Read the nearest theme. Outside a `Theme`, the name is `neutral` and tokens
|
|
143
|
+
* are read from the document's custom properties.
|
|
144
|
+
*/
|
|
145
|
+
declare function useTheme(): UseThemeReturn;
|
|
146
|
+
//#endregion
|
|
147
|
+
export { ThemeSurfaceInput as _, _default as a, isDefinedTheme as c, DefineThemeInput as d, MediaThemeMode as f, ThemeProps as g, ThemeMode as h, useMediaTheme as i, neutralTheme as l, ThemeDefinition as m, useTheme as n, _default$1 as o, MediaThemeProps as p, UseMediaThemeReturn as r, defineTheme as s, UseThemeReturn as t, normalizeTokenName as u, ThemeTokenValue as v, ThemeTokens as y };
|
|
@@ -305,12 +305,12 @@ declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
305
305
|
focus: () => void | undefined;
|
|
306
306
|
open: () => void;
|
|
307
307
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
308
|
-
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
309
308
|
openChange: (isOpen: boolean) => any;
|
|
309
|
+
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
310
310
|
"update:isOpen": (...args: unknown[]) => any;
|
|
311
311
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
312
|
-
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
313
312
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
313
|
+
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
314
314
|
"onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
|
|
315
315
|
}>, {
|
|
316
316
|
label: string;
|
|
@@ -365,11 +365,11 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
365
365
|
//#region src/ContextMenu/ContextMenuSubMenu.vue.d.ts
|
|
366
366
|
type __VLS_Slots = ContextMenuSubMenuSlots;
|
|
367
367
|
declare const __VLS_base: import("vue").DefineComponent<ContextMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
368
|
-
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
369
368
|
openChange: (isOpen: boolean) => any;
|
|
369
|
+
select: (item: ContextMenuItemData, event: MouseEvent) => any;
|
|
370
370
|
}, string, import("vue").PublicProps, Readonly<ContextMenuSubMenuProps> & Readonly<{
|
|
371
|
-
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
372
371
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
372
|
+
onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
|
|
373
373
|
}>, {
|
|
374
374
|
isDisabled: boolean;
|
|
375
375
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
//#region src/Stepper/types.d.ts
|
|
3
|
+
type StepperOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
type StepperDensity = 'compact' | 'balanced' | 'spacious';
|
|
5
|
+
type StepperIndicatorPosition = 'separated' | 'on-track';
|
|
6
|
+
type StepStatus = 'accent' | 'success' | 'warning' | 'error';
|
|
7
|
+
type StepProgress = 'completed' | 'in-progress' | 'not-started';
|
|
8
|
+
type StepIndicator = 'auto' | 'number' | 'none';
|
|
9
|
+
type StepperCollapsedVariant = 'withLabelAndControls' | 'withLabel' | 'hiddenLabel';
|
|
10
|
+
interface StepperHorizontalOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Collapse a horizontal stepper when its width is below this value times
|
|
13
|
+
* the step count. The collapsed view keeps the track.
|
|
14
|
+
* @default 112
|
|
15
|
+
*/
|
|
16
|
+
minimumStepWidth?: number;
|
|
17
|
+
/**
|
|
18
|
+
* What the collapsed row shows. Controls appear only for
|
|
19
|
+
* `withLabelAndControls` when `onStepClick` is set.
|
|
20
|
+
* @default 'withLabelAndControls'
|
|
21
|
+
*/
|
|
22
|
+
collapsedVariant?: StepperCollapsedVariant;
|
|
23
|
+
}
|
|
24
|
+
interface StepperProps {
|
|
25
|
+
/** Zero-based index of the current step. */
|
|
26
|
+
activeStep: number;
|
|
27
|
+
/** @default 'horizontal' */
|
|
28
|
+
orientation?: StepperOrientation;
|
|
29
|
+
/**
|
|
30
|
+
* When set, steps render as buttons and call this with the zero-based index.
|
|
31
|
+
* `@step-click` fills the same prop.
|
|
32
|
+
*/
|
|
33
|
+
onStepClick?: (index: number) => void;
|
|
34
|
+
/** Accessible name of the list. */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** @default 'balanced' */
|
|
37
|
+
density?: StepperDensity;
|
|
38
|
+
/** @default 'separated' */
|
|
39
|
+
indicatorPosition?: StepperIndicatorPosition;
|
|
40
|
+
/**
|
|
41
|
+
* In a narrow horizontal stepper, hide every label except the current one.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
hasCollapsibleLabels?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Narrow-width behavior for a horizontal stepper. `minimumStepWidth` defaults
|
|
47
|
+
* to 112: a horizontal stepper narrower than that times the step count
|
|
48
|
+
* collapses to the current step. `collapsedVariant` chooses a label with
|
|
49
|
+
* controls, the label alone, or the track with no compact row.
|
|
50
|
+
*/
|
|
51
|
+
horizontalOptions?: StepperHorizontalOptions;
|
|
52
|
+
}
|
|
53
|
+
interface StepperSlots {
|
|
54
|
+
default?: () => VNode[];
|
|
55
|
+
}
|
|
56
|
+
interface StepProps {
|
|
57
|
+
/** Zero-based index of this step. */
|
|
58
|
+
step: number;
|
|
59
|
+
label: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
/** Recolors the indicator only. The connector stays on the progress color. */
|
|
62
|
+
status?: StepStatus;
|
|
63
|
+
/** @default false */
|
|
64
|
+
isDisabled?: boolean;
|
|
65
|
+
/** @default false */
|
|
66
|
+
isOptional?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* `auto` shows a check, a ring, or a number. `number` always shows the
|
|
69
|
+
* step number. `none` leaves the indicator empty.
|
|
70
|
+
* @default 'auto'
|
|
71
|
+
*/
|
|
72
|
+
indicator?: StepIndicator;
|
|
73
|
+
density?: StepperDensity;
|
|
74
|
+
}
|
|
75
|
+
interface StepSlots {
|
|
76
|
+
/** Content under the label. In a vertical separated step it sits outside the button. */
|
|
77
|
+
default?: () => VNode[];
|
|
78
|
+
/** Replaces the built-in indicator artwork. */
|
|
79
|
+
icon?: () => VNode[];
|
|
80
|
+
/** Trailing content on the label row. */
|
|
81
|
+
end?: () => VNode[];
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/Stepper/Step.vue.d.ts
|
|
85
|
+
type __VLS_Slots$1 = StepSlots;
|
|
86
|
+
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
87
|
+
isDisabled: boolean;
|
|
88
|
+
isOptional: boolean;
|
|
89
|
+
indicator: StepIndicator;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
92
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
93
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/Stepper/Stepper.vue.d.ts
|
|
100
|
+
type __VLS_Slots = StepperSlots;
|
|
101
|
+
declare const __VLS_base: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{}>, {
|
|
102
|
+
orientation: StepperOrientation;
|
|
103
|
+
density: StepperDensity;
|
|
104
|
+
indicatorPosition: StepperIndicatorPosition;
|
|
105
|
+
hasCollapsibleLabels: boolean;
|
|
106
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
|
+
declare const _default: typeof __VLS_export;
|
|
109
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
110
|
+
new (): {
|
|
111
|
+
$slots: S;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
export { StepProps as a, StepperCollapsedVariant as c, StepperIndicatorPosition as d, StepperOrientation as f, StepProgress as i, StepperDensity as l, StepperSlots as m, _default$1 as n, StepSlots as o, StepperProps as p, StepIndicator as r, StepStatus as s, _default as t, StepperHorizontalOptions as u };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { i as TextProps, n as TextColor, o as TextType, r as TextDisplay, t as TextAs } from "./types-Bt-lSgYX.js";
|
|
2
|
+
//#region src/Text/Text.vue.d.ts
|
|
3
|
+
declare var __VLS_7: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_7) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
|
|
8
|
+
type: TextType;
|
|
9
|
+
as: TextAs;
|
|
10
|
+
color: TextColor;
|
|
11
|
+
display: TextDisplay;
|
|
12
|
+
maxLines: number;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/Outline/types.d.ts
|
|
2
|
+
interface OutlineItem {
|
|
3
|
+
/** Matches the target heading element's id. */
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** Heading level from 1 to 6. Indentation uses levels 1–4. */
|
|
7
|
+
level: number;
|
|
8
|
+
}
|
|
9
|
+
type OutlineDensity = 'default' | 'compact';
|
|
10
|
+
interface OutlineProps {
|
|
11
|
+
/** Ordered heading items. */
|
|
12
|
+
items: OutlineItem[];
|
|
13
|
+
/**
|
|
14
|
+
* Controlled active heading id. When set, built-in scroll-spy stays off.
|
|
15
|
+
*/
|
|
16
|
+
activeId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Accessible name of the nav landmark.
|
|
19
|
+
* @default 'Table of contents' (localized)
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Item padding. `compact` is for dense sidebars.
|
|
24
|
+
* @default 'default'
|
|
25
|
+
*/
|
|
26
|
+
density?: OutlineDensity;
|
|
27
|
+
/**
|
|
28
|
+
* Height in pixels of a fixed header covering the top of the scroll root.
|
|
29
|
+
* Shifts both the activation line and the scroll landing by the same amount,
|
|
30
|
+
* on top of each heading's own `scroll-margin-top`.
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
offset?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Scroll container to track. Omit it to use the nearest scrollable ancestor,
|
|
36
|
+
* or the viewport when there is none.
|
|
37
|
+
*/
|
|
38
|
+
scrollContainer?: HTMLElement | null;
|
|
39
|
+
/**
|
|
40
|
+
* Whether activating an item smooth-scrolls to it.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
hasScrollOnClick?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface OutlineEmits {
|
|
46
|
+
'navigateEnd': [id: string];
|
|
47
|
+
'navigateStart': [id: string];
|
|
48
|
+
'update:activeId': [id: string];
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/Outline/Outline.vue.d.ts
|
|
52
|
+
declare const __VLS_export: import("vue").DefineComponent<OutlineProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
navigateEnd: (id: string) => any;
|
|
54
|
+
navigateStart: (id: string) => any;
|
|
55
|
+
"update:activeId": (id: string) => any;
|
|
56
|
+
}, string, import("vue").PublicProps, Readonly<OutlineProps> & Readonly<{
|
|
57
|
+
onNavigateEnd?: ((id: string) => any) | undefined;
|
|
58
|
+
onNavigateStart?: ((id: string) => any) | undefined;
|
|
59
|
+
"onUpdate:activeId"?: ((id: string) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
density: OutlineDensity;
|
|
62
|
+
offset: number;
|
|
63
|
+
scrollContainer: HTMLElement | null;
|
|
64
|
+
hasScrollOnClick: boolean;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { OutlineProps as a, OutlineItem as i, OutlineDensity as n, OutlineEmits as r, _default as t };
|