@threadlabs/looma 0.10.12 → 0.11.1
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/components/shared/editor.js +2 -26
- package/components/shared/icons.js +53 -0
- package/components/ui-action-bar/ui-action-bar.html +72 -0
- package/components/ui-avatar-group/ui-avatar-group.html +6 -6
- package/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +60 -0
- package/components/ui-breadcrumbs/ui-breadcrumbs.html +31 -0
- package/components/ui-card/ui-card.html +55 -0
- package/components/ui-combobox/ui-combobox.js +2 -2
- package/components/ui-context-menu/ui-context-menu.js +4 -4
- package/components/ui-cover/ui-cover.html +36 -0
- package/components/ui-description-item/ui-description-item.html +46 -0
- package/components/ui-description-list/ui-description-list.html +37 -0
- package/components/ui-icon/ui-icon.js +1 -1
- package/components/ui-menu/ui-menu.js +3 -3
- package/components/ui-page-header/ui-page-header.html +97 -0
- package/components/ui-radio/ui-radio.js +1 -1
- package/components/ui-radio-group/ui-radio-group.js +1 -1
- package/components/ui-section/ui-section.html +108 -0
- package/components/ui-spinner/ui-spinner.html +48 -0
- package/components/ui-status-message/ui-status-message.html +84 -0
- package/components/ui-text/ui-text.html +96 -0
- package/components/ui-tree/ui-tree.js +2 -2
- package/components/ui-tree-item/ui-tree-item.js +3 -3
- package/dist/index.js +1 -1
- package/editor/icons.d.ts +5 -0
- package/editor/index.js +6 -1
- package/package.json +1 -1
- package/styles/ui-action-bar.css +77 -0
- package/styles/ui-avatar-group.css +6 -6
- package/styles/ui-breadcrumb-item.css +57 -0
- package/styles/ui-breadcrumbs.css +32 -0
- package/styles/ui-card.css +51 -0
- package/styles/ui-cover.css +35 -0
- package/styles/ui-description-item.css +43 -0
- package/styles/ui-description-list.css +38 -0
- package/styles/ui-page-header.css +89 -0
- package/styles/ui-section.css +94 -0
- package/styles/ui-spinner.css +42 -0
- package/styles/ui-status-message.css +72 -0
- package/styles/ui-text.css +85 -0
- package/vanilla/UiActionBar.d.ts +13 -0
- package/vanilla/UiActionBar.js +59 -0
- package/vanilla/UiBreadcrumbItem.d.ts +14 -0
- package/vanilla/UiBreadcrumbItem.js +38 -0
- package/vanilla/UiBreadcrumbs.d.ts +14 -0
- package/vanilla/UiBreadcrumbs.js +39 -0
- package/vanilla/UiCard.d.ts +17 -0
- package/vanilla/UiCard.js +32 -0
- package/vanilla/UiCover.d.ts +14 -0
- package/vanilla/UiCover.js +28 -0
- package/vanilla/UiDescriptionItem.d.ts +14 -0
- package/vanilla/UiDescriptionItem.js +39 -0
- package/vanilla/UiDescriptionList.d.ts +14 -0
- package/vanilla/UiDescriptionList.js +28 -0
- package/vanilla/UiPageHeader.d.ts +14 -0
- package/vanilla/UiPageHeader.js +78 -0
- package/vanilla/UiSection.d.ts +16 -0
- package/vanilla/UiSection.js +64 -0
- package/vanilla/UiSpinner.d.ts +15 -0
- package/vanilla/UiSpinner.js +23 -0
- package/vanilla/UiStatusMessage.d.ts +16 -0
- package/vanilla/UiStatusMessage.js +53 -0
- package/vanilla/UiText.d.ts +20 -0
- package/vanilla/UiText.js +38 -0
- package/vanilla/index.js +12 -0
- package/vue/UiActionBar.d.ts +19 -0
- package/vue/UiActionBar.js +2 -0
- package/vue/UiActionBar.vue +77 -0
- package/vue/UiAvatarGroup.vue +6 -6
- package/vue/UiBreadcrumbItem.d.ts +18 -0
- package/vue/UiBreadcrumbItem.js +2 -0
- package/vue/UiBreadcrumbItem.vue +101 -0
- package/vue/UiBreadcrumbs.d.ts +18 -0
- package/vue/UiBreadcrumbs.js +2 -0
- package/vue/UiBreadcrumbs.vue +45 -0
- package/vue/UiCard.d.ts +24 -0
- package/vue/UiCard.js +2 -0
- package/vue/UiCard.vue +82 -0
- package/vue/UiCombobox.d.ts +1 -1
- package/vue/UiCover.d.ts +18 -0
- package/vue/UiCover.js +2 -0
- package/vue/UiCover.vue +57 -0
- package/vue/UiDescriptionItem.d.ts +18 -0
- package/vue/UiDescriptionItem.js +2 -0
- package/vue/UiDescriptionItem.vue +58 -0
- package/vue/UiDescriptionList.d.ts +18 -0
- package/vue/UiDescriptionList.js +2 -0
- package/vue/UiDescriptionList.vue +62 -0
- package/vue/UiIconButton.d.ts +1 -1
- package/vue/UiPageHeader.d.ts +26 -0
- package/vue/UiPageHeader.js +2 -0
- package/vue/UiPageHeader.vue +118 -0
- package/vue/UiRadioGroup.d.ts +1 -1
- package/vue/UiSection.d.ts +26 -0
- package/vue/UiSection.js +2 -0
- package/vue/UiSection.vue +128 -0
- package/vue/UiSpinner.d.ts +10 -0
- package/vue/UiSpinner.js +2 -0
- package/vue/UiSpinner.vue +87 -0
- package/vue/UiStatusMessage.d.ts +24 -0
- package/vue/UiStatusMessage.js +2 -0
- package/vue/UiStatusMessage.vue +121 -0
- package/vue/UiText.d.ts +30 -0
- package/vue/UiText.js +2 -0
- package/vue/UiText.vue +125 -0
- package/vue/chunks/UiActionBar.js +24 -0
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +50 -0
- package/vue/chunks/UiBreadcrumbs.js +19 -0
- package/vue/chunks/UiCard.js +31 -0
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +21 -0
- package/vue/chunks/UiDescriptionItem.js +16 -0
- package/vue/chunks/UiDescriptionList.js +21 -0
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiPageHeader.js +35 -0
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +34 -0
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSpinner.js +64 -0
- package/vue/chunks/UiStatusMessage.js +54 -0
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +40 -0
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +577 -29
- package/vue/index.d.ts +12 -0
- package/vue/index.js +14 -2
package/vue/UiCard.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
as?: 'div' | 'section' | 'article' | 'aside';
|
|
3
|
+
padding?: 'sm' | 'md' | 'lg';
|
|
4
|
+
tone?: 'neutral' | 'danger';
|
|
5
|
+
variant?: 'outlined' | 'subtle' | 'elevated';
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_8: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_8) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
tone: "neutral" | "danger";
|
|
13
|
+
variant: "outlined" | "subtle" | "elevated";
|
|
14
|
+
as: "div" | "section" | "article" | "aside";
|
|
15
|
+
padding: "sm" | "md" | "lg";
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
package/vue/UiCard.js
ADDED
package/vue/UiCard.vue
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
|
|
5
|
+
defineOptions({ inheritAttrs: false })
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
as?: 'div' | 'section' | 'article' | 'aside'
|
|
10
|
+
padding?: 'sm' | 'md' | 'lg'
|
|
11
|
+
tone?: 'neutral' | 'danger'
|
|
12
|
+
variant?: 'outlined' | 'subtle' | 'elevated'
|
|
13
|
+
}>(),
|
|
14
|
+
{
|
|
15
|
+
as: 'div',
|
|
16
|
+
padding: 'md',
|
|
17
|
+
tone: 'neutral',
|
|
18
|
+
variant: 'outlined',
|
|
19
|
+
},
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
/** The values the styles' :host-state() rules test. */
|
|
23
|
+
const hostState = computed(() =>
|
|
24
|
+
[
|
|
25
|
+
props.padding && `padding padding=${props.padding}`,
|
|
26
|
+
props.variant && `variant variant=${props.variant}`,
|
|
27
|
+
props.tone && `tone tone=${props.tone}`,
|
|
28
|
+
].filter(Boolean).join(' ')
|
|
29
|
+
)
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<component
|
|
34
|
+
:is="as" data-component="ui-card" v-bind="$attrs" :data-ui-card-state="hostState || undefined">
|
|
35
|
+
<slot />
|
|
36
|
+
</component>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<style scoped>
|
|
40
|
+
/* A surface that groups content. Its children stack with even space between them, so a card
|
|
41
|
+
needs no layout of its own. */
|
|
42
|
+
[data-component~="ui-card"] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--ui-space-4);
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
min-inline-size: 0;
|
|
48
|
+
padding: var(--ui-space-5);
|
|
49
|
+
border: 1px solid var(--ui-border-default);
|
|
50
|
+
border-radius: var(--ui-radius-lg);
|
|
51
|
+
background: var(--ui-surface-raised);
|
|
52
|
+
color: var(--ui-text-primary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-component~="ui-card"][data-ui-card-state~="padding=sm"] {
|
|
56
|
+
gap: var(--ui-space-2);
|
|
57
|
+
padding: var(--ui-space-3);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-component~="ui-card"][data-ui-card-state~="padding=lg"] {
|
|
61
|
+
padding: var(--ui-space-6);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-component~="ui-card"][data-ui-card-state~="variant=subtle"] {
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
background: var(--ui-surface-muted);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-component~="ui-card"][data-ui-card-state~="variant=elevated"] {
|
|
70
|
+
border-color: var(--ui-border-subtle);
|
|
71
|
+
box-shadow: var(--ui-shadow-lg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-component~="ui-card"][data-ui-card-state~="tone=danger"] {
|
|
75
|
+
border-color: var(--ui-danger);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
79
|
+
[data-component~="ui-card"][hidden] {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
</style>
|
package/vue/UiCombobox.d.ts
CHANGED
|
@@ -234,8 +234,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
234
234
|
readonly trigger: "keyboard" | "pointer" | "programmatic";
|
|
235
235
|
}) => any) | undefined;
|
|
236
236
|
}>, {
|
|
237
|
-
name: string;
|
|
238
237
|
label: string;
|
|
238
|
+
name: string;
|
|
239
239
|
disabled: boolean;
|
|
240
240
|
size: "sm" | "md";
|
|
241
241
|
required: boolean;
|
package/vue/UiCover.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: 'screen' | 'fill';
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
size: "screen" | "fill";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
package/vue/UiCover.js
ADDED
package/vue/UiCover.vue
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
|
|
5
|
+
defineOptions({ inheritAttrs: false })
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
size?: 'screen' | 'fill'
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
size: 'screen',
|
|
13
|
+
},
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
/** The values the styles' :host-state() rules test. */
|
|
17
|
+
const hostState = computed(() =>
|
|
18
|
+
[
|
|
19
|
+
props.size && `size size=${props.size}`,
|
|
20
|
+
].filter(Boolean).join(' ')
|
|
21
|
+
)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div data-component="ui-cover" v-bind="$attrs" :data-ui-cover-state="hostState || undefined">
|
|
26
|
+
<slot />
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<style scoped>
|
|
31
|
+
/* A layout primitive that centres its content in the space, both ways, with room around it: the
|
|
32
|
+
frame for a view that is one card or one message. */
|
|
33
|
+
[data-component~="ui-cover"] {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
gap: var(--ui-space-6);
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
min-block-size: 100dvh;
|
|
41
|
+
padding: var(--ui-space-6) var(--ui-space-4);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-component~="ui-cover"][data-ui-cover-state~="size=fill"] {
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-block-size: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-component~="ui-cover"] > :slotted(*) {
|
|
50
|
+
max-inline-size: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
54
|
+
[data-component~="ui-cover"][hidden] {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
term?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
term: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
defineOptions({ inheritAttrs: false })
|
|
4
|
+
|
|
5
|
+
withDefaults(
|
|
6
|
+
defineProps<{
|
|
7
|
+
term?: string
|
|
8
|
+
}>(),
|
|
9
|
+
{
|
|
10
|
+
term: '',
|
|
11
|
+
},
|
|
12
|
+
)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div data-component="ui-description-item" v-bind="$attrs">
|
|
17
|
+
<dt>{{ term }}</dt>
|
|
18
|
+
<dd><slot /></dd>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<style scoped>
|
|
23
|
+
/* One term and its value in a ui-description-list, laid out by the list's layout. */
|
|
24
|
+
[data-component~="ui-description-item"] {
|
|
25
|
+
display: var(--_ui-description-display, grid);
|
|
26
|
+
grid-column: var(--_ui-description-column, 1 / -1);
|
|
27
|
+
grid-template-columns: subgrid;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: var(--_ui-description-align, baseline);
|
|
30
|
+
gap: var(--ui-space-1) var(--ui-space-6);
|
|
31
|
+
min-inline-size: 0;
|
|
32
|
+
padding: var(--_ui-description-padding, 0);
|
|
33
|
+
border-width: var(--_ui-description-border-width, 0);
|
|
34
|
+
border-style: solid;
|
|
35
|
+
border-color: var(--ui-border-default);
|
|
36
|
+
border-radius: var(--ui-radius-md);
|
|
37
|
+
font-size: var(--ui-font-size-sm);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
dt {
|
|
41
|
+
color: var(--ui-text-muted);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
dd {
|
|
45
|
+
margin: 0;
|
|
46
|
+
min-inline-size: 0;
|
|
47
|
+
color: var(--ui-text-primary);
|
|
48
|
+
font-weight: var(--ui-font-medium);
|
|
49
|
+
font-size: var(--_ui-description-value-size, inherit);
|
|
50
|
+
text-align: start;
|
|
51
|
+
overflow-wrap: anywhere;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
55
|
+
[data-component~="ui-description-item"][hidden] {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
layout?: 'rows' | 'tiles';
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
layout: "rows" | "tiles";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
|
|
5
|
+
defineOptions({ inheritAttrs: false })
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
layout?: 'rows' | 'tiles'
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
layout: 'rows',
|
|
13
|
+
},
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
/** The values the styles' :host-state() rules test. */
|
|
17
|
+
const hostState = computed(() =>
|
|
18
|
+
[
|
|
19
|
+
props.layout && `layout layout=${props.layout}`,
|
|
20
|
+
].filter(Boolean).join(' ')
|
|
21
|
+
)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<dl
|
|
26
|
+
data-component="ui-description-list"
|
|
27
|
+
v-bind="$attrs"
|
|
28
|
+
:data-ui-description-list-state="hostState || undefined"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</dl>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<style scoped>
|
|
35
|
+
/* Named values: a term and what it is, for each item (ui-description-item). */
|
|
36
|
+
/* Rows line every term up in one column and every value in the next, through subgrid. */
|
|
37
|
+
[data-component~="ui-description-list"] {
|
|
38
|
+
display: grid;
|
|
39
|
+
grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr);
|
|
40
|
+
gap: var(--ui-space-2) var(--ui-space-6);
|
|
41
|
+
min-inline-size: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Tiles pass their shape to the items through private properties, which cross into each item. */
|
|
46
|
+
[data-component~="ui-description-list"][data-ui-description-list-state~="layout=tiles"] {
|
|
47
|
+
--_ui-description-display: flex;
|
|
48
|
+
--_ui-description-column: auto;
|
|
49
|
+
--_ui-description-align: flex-start;
|
|
50
|
+
--_ui-description-value-size: var(--ui-font-size-lg);
|
|
51
|
+
--_ui-description-padding: var(--ui-space-3);
|
|
52
|
+
--_ui-description-border-width: 1px;
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
|
|
55
|
+
gap: var(--ui-space-3);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
59
|
+
[data-component~="ui-description-list"][hidden] {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
package/vue/UiIconButton.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
14
|
variant: "ghost" | "outline" | "solid";
|
|
15
|
+
round: boolean;
|
|
15
16
|
disabled: boolean;
|
|
16
17
|
size: "sm" | "md" | "lg";
|
|
17
|
-
round: boolean;
|
|
18
18
|
anticipatory: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
align?: 'start' | 'center';
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
eyebrow?: (props: typeof __VLS_3) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_5) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_7) => any;
|
|
13
|
+
} & {
|
|
14
|
+
actions?: (props: typeof __VLS_9) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
align: "start" | "center";
|
|
18
|
+
}, {}, {}, {}, 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,118 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.5 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
|
|
5
|
+
defineOptions({ inheritAttrs: false })
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
align?: 'start' | 'center'
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
align: 'start',
|
|
13
|
+
},
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
/** The values the styles' :host-state() rules test. */
|
|
17
|
+
const hostState = computed(() =>
|
|
18
|
+
[
|
|
19
|
+
props.align && `align align=${props.align}`,
|
|
20
|
+
].filter(Boolean).join(' ')
|
|
21
|
+
)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<header
|
|
26
|
+
data-component="ui-page-header"
|
|
27
|
+
v-bind="$attrs"
|
|
28
|
+
:data-ui-page-header-state="hostState || undefined"
|
|
29
|
+
>
|
|
30
|
+
<span class="leading"><slot name="leading" /></span>
|
|
31
|
+
<span class="copy"><span class="eyebrow"><slot name="eyebrow" /></span>
|
|
32
|
+
<h1 class="title"><slot /></h1>
|
|
33
|
+
<span class="description"><slot name="description" /></span></span>
|
|
34
|
+
<span class="actions"><slot name="actions" /></span>
|
|
35
|
+
</header>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<style scoped>
|
|
39
|
+
/* The top of a view: its title (the page's one h1), with an optional icon or mark before it, a
|
|
40
|
+
short eyebrow above it, a line or two of description under it, and the view's own actions at
|
|
41
|
+
the end. Every view titles itself the same way, at the same size. */
|
|
42
|
+
[data-component~="ui-page-header"] {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(--ui-space-3) var(--ui-space-4);
|
|
47
|
+
min-inline-size: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.leading {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
flex: none;
|
|
53
|
+
align-self: center;
|
|
54
|
+
color: var(--ui-text-muted);
|
|
55
|
+
font-size: var(--ui-font-size-2xl);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.copy {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex: 1 1 16rem;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: var(--ui-space-1);
|
|
63
|
+
min-inline-size: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.eyebrow {
|
|
67
|
+
color: var(--ui-text-muted);
|
|
68
|
+
font-size: var(--ui-font-size-xs);
|
|
69
|
+
font-weight: var(--ui-font-semibold);
|
|
70
|
+
letter-spacing: 0.06em;
|
|
71
|
+
text-transform: uppercase;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.title {
|
|
75
|
+
margin: 0;
|
|
76
|
+
color: var(--ui-text-primary);
|
|
77
|
+
font-size: var(--ui-font-size-2xl);
|
|
78
|
+
font-weight: var(--ui-font-bold, 700);
|
|
79
|
+
line-height: var(--ui-line-height-tight);
|
|
80
|
+
overflow-wrap: anywhere;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.description {
|
|
84
|
+
color: var(--ui-text-secondary);
|
|
85
|
+
font-size: var(--ui-font-size-md);
|
|
86
|
+
line-height: var(--ui-line-height);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.actions {
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
flex: none;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: var(--ui-space-2);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-component~="ui-page-header"][data-ui-page-header-state~="align=center"] {
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-component~="ui-page-header"][data-ui-page-header-state~="align=center"] .copy {
|
|
103
|
+
align-items: center;
|
|
104
|
+
flex-basis: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.leading:empty,
|
|
108
|
+
.eyebrow:empty,
|
|
109
|
+
.description:empty,
|
|
110
|
+
.actions:empty {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
115
|
+
[data-component~="ui-page-header"][hidden] {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
</style>
|
package/vue/UiRadioGroup.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
35
35
|
}) => any) | undefined;
|
|
36
36
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
|
-
name: string;
|
|
39
38
|
label: string;
|
|
39
|
+
name: string;
|
|
40
40
|
value: string;
|
|
41
41
|
disabled: boolean;
|
|
42
42
|
required: boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
heading?: string;
|
|
3
|
+
tone?: 'neutral' | 'danger';
|
|
4
|
+
variant?: 'plain' | 'card' | 'divided';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
description?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_5) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
tone: "neutral" | "danger";
|
|
16
|
+
variant: "plain" | "card" | "divided";
|
|
17
|
+
heading: string;
|
|
18
|
+
}, {}, {}, {}, 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
|
+
};
|
package/vue/UiSection.js
ADDED