@filipgutica/ui 1.4.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -1
- package/dist/index.js +167 -404
- package/dist/site/CaptureScreen.vue.d.ts +9 -0
- package/dist/site/SiteNavLinks.vue.d.ts +14 -0
- package/dist/site/UiCapture.vue.d.ts +40 -0
- package/dist/site/UiCommandList.vue.d.ts +26 -0
- package/dist/site/UiSiteNav.vue.d.ts +21 -0
- package/dist/site/index.d.ts +6 -0
- package/dist/site/projects.d.ts +5 -0
- package/dist/site.js +390 -59
- package/dist/use-active-section-CiflgGBI.js +255 -0
- package/dist/use-clipboard-copy.d.ts +17 -0
- package/package.json +1 -1
- package/src/site.css +284 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
html: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** Scales the capture down to the available width instead of scrolling it. */
|
|
5
|
+
fit: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { UiSiteNavGroup } from './UiSiteNav.vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
contentId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
groups: readonly UiSiteNavGroup[];
|
|
6
|
+
activeId: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
navigate: (href: string, click: MouseEvent) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onNavigate?: (href: string, click: MouseEvent) => any;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface UiCaptureItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** Trusted, checked-in terminal markup. It is rendered as HTML. */
|
|
5
|
+
html: string;
|
|
6
|
+
/** The command that produced the capture, shown below it. */
|
|
7
|
+
command?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UiCaptureProps {
|
|
10
|
+
items: readonly UiCaptureItem[];
|
|
11
|
+
/** The accessible name of the tab list. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Prefix for each capture's element ID, so `#frame-<id>` links select its tab. */
|
|
14
|
+
idPrefix?: string;
|
|
15
|
+
}
|
|
16
|
+
type __VLS_Props = UiCaptureProps;
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
/** Text shown below the command, such as what the capture shows. */
|
|
19
|
+
caption?(props: {
|
|
20
|
+
item: UiCaptureItem;
|
|
21
|
+
}): unknown;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_ModelProps = {
|
|
24
|
+
/** The active capture ID. Defaults to the first item. */
|
|
25
|
+
modelValue?: string;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
28
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: (value: string | undefined) => any;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UiCommandItem {
|
|
2
|
+
command: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UiCommandListProps {
|
|
6
|
+
items: readonly UiCommandItem[];
|
|
7
|
+
/** Adds a copy button to each row once the page is interactive. */
|
|
8
|
+
copyable?: boolean;
|
|
9
|
+
commandHeader?: string;
|
|
10
|
+
descriptionHeader?: string;
|
|
11
|
+
}
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
/** Replaces the plain description, for text with `<kbd>` or `<code>`. */
|
|
14
|
+
description?(props: {
|
|
15
|
+
item: UiCommandItem;
|
|
16
|
+
}): unknown;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<UiCommandListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiCommandListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface UiSiteNavItem {
|
|
2
|
+
label: string;
|
|
3
|
+
/** A `#id` link is tracked as the reader scrolls and marked as the current location. */
|
|
4
|
+
href: string;
|
|
5
|
+
/** Marks the current page on a multi-page site. */
|
|
6
|
+
current?: boolean;
|
|
7
|
+
/** Shows the label in the monospace font, for command or file names. */
|
|
8
|
+
code?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface UiSiteNavGroup {
|
|
11
|
+
label?: string;
|
|
12
|
+
items: readonly UiSiteNavItem[];
|
|
13
|
+
}
|
|
14
|
+
export interface UiSiteNavProps {
|
|
15
|
+
/** The visible heading and accessible name of the navigation. */
|
|
16
|
+
label: string;
|
|
17
|
+
groups: readonly UiSiteNavGroup[];
|
|
18
|
+
}
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<UiSiteNavProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiSiteNavProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
package/dist/site/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { default as UiSiteHeader } from './UiSiteHeader.vue';
|
|
2
2
|
export type { UiSiteHeaderProps, UiSiteLink } from './UiSiteHeader.vue';
|
|
3
|
+
export { default as UiSiteNav } from './UiSiteNav.vue';
|
|
4
|
+
export type { UiSiteNavGroup, UiSiteNavItem, UiSiteNavProps } from './UiSiteNav.vue';
|
|
5
|
+
export { default as UiCapture } from './UiCapture.vue';
|
|
6
|
+
export type { UiCaptureItem, UiCaptureProps } from './UiCapture.vue';
|
|
7
|
+
export { default as UiCommandList } from './UiCommandList.vue';
|
|
8
|
+
export type { UiCommandItem, UiCommandListProps } from './UiCommandList.vue';
|
|
3
9
|
export { SITE_PROJECTS } from './projects.js';
|
|
4
10
|
export type { SiteProject, SiteProjectId } from './projects.js';
|
|
5
11
|
export { applySiteAppearance, SITE_APPEARANCE_KEY, siteThemeBootScript, useSiteAppearance, } from './appearance.js';
|
package/dist/site/projects.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ declare const projects: readonly [{
|
|
|
18
18
|
readonly label: "Workbench";
|
|
19
19
|
readonly href: "https://filipgutica.github.io/t3code/";
|
|
20
20
|
readonly repository: "https://github.com/filipgutica/t3code";
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "filip-stack";
|
|
23
|
+
readonly label: "Filip Stack";
|
|
24
|
+
readonly href: "https://filipgutica.github.io/filip-stack/";
|
|
25
|
+
readonly repository: "https://github.com/filipgutica/filip-stack";
|
|
21
26
|
}, {
|
|
22
27
|
readonly id: "ui";
|
|
23
28
|
readonly label: "UI";
|