@threadlabs/looma 0.13.2 → 0.13.4
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/icons.js +1 -0
- package/components/ui-affordance-scope/ui-affordance-scope.html +9 -0
- package/components/ui-cluster/ui-cluster.html +12 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
- package/components/ui-icon-button/ui-icon-button.html +5 -1
- package/components/ui-sidebar/ui-sidebar.html +1 -1
- package/dist/index.js +1 -1
- package/editor/icons.d.ts +1 -0
- package/editor/index.js +2 -1
- package/package.json +1 -1
- package/styles/ui-affordance-scope.css +9 -1
- package/styles/ui-cluster.css +9 -0
- package/styles/ui-editor-table-overlay.css +2 -2
- package/styles/ui-icon-button.css +5 -1
- package/styles/ui-sidebar.css +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -0
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -0
- package/vanilla/UiCluster.js +2 -0
- package/vue/UiAffordanceScope.d.ts +2 -0
- package/vue/UiAffordanceScope.vue +9 -0
- package/vue/UiCluster.d.ts +1 -0
- package/vue/UiCluster.vue +11 -0
- package/vue/UiEditorTableOverlay.vue +2 -2
- package/vue/UiIconButton.vue +5 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/chunks/UiAffordanceScope.js +6 -3
- package/vue/chunks/UiCluster.js +8 -3
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/components.css +137 -118
package/editor/icons.d.ts
CHANGED
package/editor/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as TABLE_CELL_BACKGROUND_PRESETS, t as TABLE_CELL_BACKGROUND_OPTIONS } from "./chunks/table-backgrounds.js";
|
|
2
2
|
import { n as resolveTableCellAt, t as measureTableOverlayGeometry } from "./chunks/ui.js";
|
|
3
3
|
import { A as LOOMA_ACTIVE_BLOCK_CLASS, C as DEFAULT_MENTION_RESULT_LIMIT, D as LOOMA_CALLOUT_TONES, E as normalizeMentionResultLimit, M as LoomaActiveBlock, N as LoomaActiveBlockPluginKey, O as LoomaCallout, S as createLoomaMentionExtension, T as filterLoomaMentionItems, _ as getActiveTableCellBackground, a as handleTableAction, b as LoomaSmartPaste, c as normalizeActiveTableColumnWidths, d as getDefaultEditorExtensions, f as getLoomaTableExtensions, g as getActiveTableCellAlignment, h as LoomaTableHeader, i as getActiveTableUiState, j as LOOMA_ACTIVE_BLOCK_TYPING_IDLE_MS, k as LOOMA_ACTIVE_BLOCK_BLUR_GRACE_MS, l as shouldShowTextFormattingToolbar, m as LoomaTableCell, n as createLoomaSlashCommandExtension, o as handleTableOverlayAction, p as LoomaTable, r as getDefaultSlashCommands, s as insertTableAtRange, t as LoomaSlashCommand, u as LoomaTableKit, v as setActiveTableCellAlignment, w as MAX_MENTION_RESULT_LIMIT, x as LoomaMentionSuggestionPluginKey, y as setActiveTableCellBackground } from "./chunks/extensions.js";
|
|
4
|
-
import { AlignCenter, AlignLeft, AlignRight, ArrowLeft, Bold, BookUser, Braces, Calculator, ChevronDown, ChevronLeft, ChevronRight, CircleCheck, CircleX, CodeXml, Columns3, CreditCard, Ellipsis, Eraser, FileText, Folder, GripHorizontal, GripVertical, Heading1, Heading2, Heading3, Highlighter, Image, Info, Italic, LayoutDashboard, List, ListOrdered, ListTodo, LoaderCircle, Merge, Minus, NotebookPen, PaintBucket, PanelBottom, PanelLeft, PanelRight, PanelTop, Pilcrow, Plus, Quote, Receipt, Redo2, Rows3, Settings, Split, Strikethrough, Table2, Trash2, TriangleAlert, Truck, Underline, Undo2, Users } from "lucide";
|
|
4
|
+
import { AlignCenter, AlignLeft, AlignRight, ArrowLeft, Bold, BookUser, Braces, Calculator, ChevronDown, ChevronLeft, ChevronRight, CircleCheck, CircleQuestionMark, CircleX, CodeXml, Columns3, CreditCard, Ellipsis, Eraser, FileText, Folder, GripHorizontal, GripVertical, Heading1, Heading2, Heading3, Highlighter, Image, Info, Italic, LayoutDashboard, List, ListOrdered, ListTodo, LoaderCircle, Merge, Minus, NotebookPen, PaintBucket, PanelBottom, PanelLeft, PanelRight, PanelTop, Pilcrow, Plus, Quote, Receipt, Redo2, Rows3, Settings, Split, Strikethrough, Table2, Trash2, TriangleAlert, Truck, Underline, Undo2, Users } from "lucide";
|
|
5
5
|
//#region src/editor/icons.ts
|
|
6
6
|
/** The opinionated Lucide set used by Looma's shipped interaction surfaces. */
|
|
7
7
|
var LOOMA_ICONS = {
|
|
@@ -30,6 +30,7 @@ var LOOMA_ICONS = {
|
|
|
30
30
|
"heading-1": Heading1,
|
|
31
31
|
"heading-2": Heading2,
|
|
32
32
|
"heading-3": Heading3,
|
|
33
|
+
help: CircleQuestionMark,
|
|
33
34
|
highlighter: Highlighter,
|
|
34
35
|
image: Image,
|
|
35
36
|
info: Info,
|
package/package.json
CHANGED
|
@@ -3,17 +3,25 @@
|
|
|
3
3
|
:scope {
|
|
4
4
|
display: contents;
|
|
5
5
|
--ui-affordance-scope-engaged: 0;
|
|
6
|
+
--ui-affordance-scope-guide: 1;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
:scope[data-ui-affordance-scope-state~="engaged"] {
|
|
9
10
|
--ui-affordance-scope-engaged: 1;
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
/* Published to descendants: each guide multiplies its opacity by it, so none reaches them all. */
|
|
14
|
+
:scope[data-ui-affordance-scope-state~="guide=none"] {
|
|
15
|
+
--ui-affordance-scope-guide: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
13
19
|
:scope[hidden] {
|
|
14
20
|
display: none;
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
@scope ([data-component~="ui-affordance-scope"]) to ([data-component]) {
|
|
18
|
-
/*
|
|
24
|
+
/* Published to descendants: each guide multiplies its opacity by it, so none reaches them all. */
|
|
25
|
+
|
|
26
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
19
27
|
}
|
package/styles/ui-cluster.css
CHANGED
|
@@ -41,6 +41,15 @@
|
|
|
41
41
|
:scope[data-ui-cluster-state~="align=stretch"] {
|
|
42
42
|
align-items: stretch;
|
|
43
43
|
}
|
|
44
|
+
:scope[data-ui-cluster-state~="justify=center"] {
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
:scope[data-ui-cluster-state~="justify=end"] {
|
|
48
|
+
justify-content: flex-end;
|
|
49
|
+
}
|
|
50
|
+
:scope[data-ui-cluster-state~="justify=between"] {
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
44
53
|
|
|
45
54
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
46
55
|
:scope[hidden] {
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
height: var(--ui-affordance-guide-size);
|
|
143
143
|
border-radius: var(--ui-radius-round);
|
|
144
144
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
145
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
145
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
146
146
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
inset: 50% auto auto 50%;
|
|
232
232
|
border-radius: var(--ui-radius-round);
|
|
233
233
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
234
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
234
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
235
235
|
transform: translate(-50%, -50%);
|
|
236
236
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
237
237
|
pointer-events: none;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
block-size: var(--ui-affordance-guide-size);
|
|
97
97
|
border-radius: var(--ui-radius-round);
|
|
98
98
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
99
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
99
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
100
100
|
transform: translate(-50%, -50%);
|
|
101
101
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
102
102
|
pointer-events: none;
|
|
@@ -249,6 +249,10 @@
|
|
|
249
249
|
|
|
250
250
|
:scope {
|
|
251
251
|
--_icon-button-icon-default: var(--ui-icon-size-md);
|
|
252
|
+
/* A slotted ui-icon is its own component, out of reach of the svg rule below; these are its
|
|
253
|
+
defaults, which its own --ui-icon-* hooks still override. */
|
|
254
|
+
--_ui-default-icon-size: var(--_ui-icon-button-icon-size, var(--_icon-button-icon-default));
|
|
255
|
+
--_ui-default-icon-stroke-width: var(--_ui-icon-button-icon-stroke-width, 1.75);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
258
|
:scope[data-ui-icon-button-state~="size=sm"] {
|
package/styles/ui-sidebar.css
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
inset-inline-start: 3px;
|
|
100
100
|
inline-size: 2px;
|
|
101
101
|
background: color-mix(in srgb, var(--ui-affordance-guide-color, var(--ui-border-strong)) 45%, transparent);
|
|
102
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
102
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
103
103
|
transition:
|
|
104
104
|
background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
105
105
|
opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
@@ -6,6 +6,7 @@ export interface UiAffordanceScopeElement extends HTMLSpanElement {
|
|
|
6
6
|
removeEventListener<K extends keyof UiAffordanceScopeEventMap>(type: K, listener: (this: UiAffordanceScopeElement, event: UiAffordanceScopeEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
7
7
|
}
|
|
8
8
|
export interface UiAffordanceScopeProps {
|
|
9
|
+
guide?: "dot" | "none" | null;
|
|
9
10
|
nearRadius?: number | null;
|
|
10
11
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
11
12
|
children?: readonly (string | Node)[];
|
|
@@ -3,7 +3,7 @@ import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
|
|
|
3
3
|
import * as controller from "../components/ui-affordance-scope/ui-affordance-scope.js";
|
|
4
4
|
import "../styles/ui-affordance-scope.css";
|
|
5
5
|
|
|
6
|
-
const definition = {...{"contract":{"tag":"ui-affordance-scope","props":{"nearRadius":{"type":"number","required":false,"target":{"attribute":"nearradius"},"default":16}}},"template":{"kind":"element","name":"span","attributes":[],"children":[{"kind":"slot"}]},"declarations":[{"kind":"state","name":"engaged","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}}],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
|
|
6
|
+
const definition = {...{"contract":{"tag":"ui-affordance-scope","props":{"guide":{"type":{"enum":["dot","none"]},"required":false,"target":{"attribute":"guide"},"default":"dot"},"nearRadius":{"type":"number","required":false,"target":{"attribute":"nearradius"},"default":16}}},"template":{"kind":"element","name":"span","attributes":[],"children":[{"kind":"slot"}]},"declarations":[{"kind":"state","name":"engaged","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}}],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
|
|
7
7
|
|
|
8
8
|
export function createUiAffordanceScope(options = {}) {
|
|
9
9
|
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
package/vanilla/UiCluster.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface UiClusterElement extends HTMLDivElement {
|
|
|
8
8
|
export interface UiClusterProps {
|
|
9
9
|
align?: "start" | "center" | "end" | "stretch" | null;
|
|
10
10
|
gap?: "xs" | "s" | "m" | "l" | "xl" | null;
|
|
11
|
+
justify?: "start" | "center" | "end" | "between" | null;
|
|
11
12
|
attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
12
13
|
children?: readonly (string | Node)[];
|
|
13
14
|
slots?: Readonly<Record<string, readonly (string | Node)[]>>;
|
package/vanilla/UiCluster.js
CHANGED
|
@@ -7,6 +7,7 @@ export function createUiCluster(options = {}) {
|
|
|
7
7
|
const projected = [];
|
|
8
8
|
const prop0 = componentProps["align"] === undefined ? undefined : componentProps["align"];
|
|
9
9
|
const prop1 = componentProps["gap"] === undefined ? undefined : componentProps["gap"];
|
|
10
|
+
const prop2 = componentProps["justify"] === undefined ? undefined : componentProps["justify"];
|
|
10
11
|
const element = document.createElement("div");
|
|
11
12
|
for (const [name, value] of Object.entries(attributes)) {
|
|
12
13
|
if (value === null || value === undefined || value === false) continue;
|
|
@@ -24,6 +25,7 @@ export function createUiCluster(options = {}) {
|
|
|
24
25
|
manageGeneratedProps(element, [
|
|
25
26
|
{ name: "align", attribute: "data-align", value: componentProps["align"], type: ["start","center","end","stretch"], required: false },
|
|
26
27
|
{ name: "gap", attribute: "data-gap", value: componentProps["gap"], type: ["xs","s","m","l","xl"], required: false },
|
|
28
|
+
{ name: "justify", attribute: "data-justify", value: componentProps["justify"], type: ["start","center","end","between"], required: false },
|
|
27
29
|
]);
|
|
28
30
|
return element;
|
|
29
31
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
guide?: 'dot' | 'none';
|
|
2
3
|
nearRadius?: number;
|
|
3
4
|
};
|
|
4
5
|
declare var __VLS_1: {};
|
|
@@ -6,6 +7,7 @@ type __VLS_Slots = {} & {
|
|
|
6
7
|
default?: (props: typeof __VLS_1) => any;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
guide: "dot" | "none";
|
|
9
11
|
nearRadius: number;
|
|
10
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -8,9 +8,11 @@ defineOptions({ inheritAttrs: false })
|
|
|
8
8
|
|
|
9
9
|
const props = withDefaults(
|
|
10
10
|
defineProps<{
|
|
11
|
+
guide?: 'dot' | 'none'
|
|
11
12
|
nearRadius?: number
|
|
12
13
|
}>(),
|
|
13
14
|
{
|
|
15
|
+
guide: 'dot',
|
|
14
16
|
nearRadius: 16,
|
|
15
17
|
},
|
|
16
18
|
)
|
|
@@ -22,6 +24,7 @@ const engaged = ref(false)
|
|
|
22
24
|
const hostState = computed(() =>
|
|
23
25
|
[
|
|
24
26
|
engaged.value && 'engaged',
|
|
27
|
+
props.guide && `guide guide=${props.guide}`,
|
|
25
28
|
].filter(Boolean).join(' ')
|
|
26
29
|
)
|
|
27
30
|
|
|
@@ -48,12 +51,18 @@ useComponentHost(controllerModule.default, {
|
|
|
48
51
|
[data-component~="ui-affordance-scope"] {
|
|
49
52
|
display: contents;
|
|
50
53
|
--ui-affordance-scope-engaged: 0;
|
|
54
|
+
--ui-affordance-scope-guide: 1;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
[data-component~="ui-affordance-scope"][data-ui-affordance-scope-state~="engaged"] {
|
|
54
58
|
--ui-affordance-scope-engaged: 1;
|
|
55
59
|
}
|
|
56
60
|
|
|
61
|
+
/* Published to descendants: each guide multiplies its opacity by it, so none reaches them all. */
|
|
62
|
+
[data-component~="ui-affordance-scope"][data-ui-affordance-scope-state~="guide=none"] {
|
|
63
|
+
--ui-affordance-scope-guide: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
58
67
|
[data-component~="ui-affordance-scope"][hidden] {
|
|
59
68
|
display: none;
|
package/vue/UiCluster.d.ts
CHANGED
package/vue/UiCluster.vue
CHANGED
|
@@ -7,6 +7,7 @@ defineOptions({ inheritAttrs: false })
|
|
|
7
7
|
const props = defineProps<{
|
|
8
8
|
align?: 'start' | 'center' | 'end' | 'stretch'
|
|
9
9
|
gap?: 'xs' | 's' | 'm' | 'l' | 'xl'
|
|
10
|
+
justify?: 'start' | 'center' | 'end' | 'between'
|
|
10
11
|
}>()
|
|
11
12
|
|
|
12
13
|
/** The values the styles' :host-state() rules test. */
|
|
@@ -14,6 +15,7 @@ const hostState = computed(() =>
|
|
|
14
15
|
[
|
|
15
16
|
props.gap && `gap gap=${props.gap}`,
|
|
16
17
|
props.align && `align align=${props.align}`,
|
|
18
|
+
props.justify && `justify justify=${props.justify}`,
|
|
17
19
|
].filter(Boolean).join(' ')
|
|
18
20
|
)
|
|
19
21
|
</script>
|
|
@@ -66,6 +68,15 @@ const hostState = computed(() =>
|
|
|
66
68
|
[data-component~="ui-cluster"][data-ui-cluster-state~="align=stretch"] {
|
|
67
69
|
align-items: stretch;
|
|
68
70
|
}
|
|
71
|
+
[data-component~="ui-cluster"][data-ui-cluster-state~="justify=center"] {
|
|
72
|
+
justify-content: center;
|
|
73
|
+
}
|
|
74
|
+
[data-component~="ui-cluster"][data-ui-cluster-state~="justify=end"] {
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
}
|
|
77
|
+
[data-component~="ui-cluster"][data-ui-cluster-state~="justify=between"] {
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
}
|
|
69
80
|
|
|
70
81
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
71
82
|
[data-component~="ui-cluster"][hidden] {
|
|
@@ -408,7 +408,7 @@ useComponentHost(controllerModule.default, {
|
|
|
408
408
|
height: var(--ui-affordance-guide-size);
|
|
409
409
|
border-radius: var(--ui-radius-round);
|
|
410
410
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
411
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
411
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
412
412
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -497,7 +497,7 @@ useComponentHost(controllerModule.default, {
|
|
|
497
497
|
inset: 50% auto auto 50%;
|
|
498
498
|
border-radius: var(--ui-radius-round);
|
|
499
499
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
500
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
500
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
501
501
|
transform: translate(-50%, -50%);
|
|
502
502
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
503
503
|
pointer-events: none;
|
package/vue/UiIconButton.vue
CHANGED
|
@@ -156,7 +156,7 @@ useComponentHost(controllerModule.default, {
|
|
|
156
156
|
block-size: var(--ui-affordance-guide-size);
|
|
157
157
|
border-radius: var(--ui-radius-round);
|
|
158
158
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
159
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
159
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
160
160
|
transform: translate(-50%, -50%);
|
|
161
161
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
162
162
|
pointer-events: none;
|
|
@@ -309,6 +309,10 @@ html[data-ui-input-modality="touch"] [data-component~="ui-icon-button"]::after {
|
|
|
309
309
|
|
|
310
310
|
[data-component~="ui-icon-button"] {
|
|
311
311
|
--_icon-button-icon-default: var(--ui-icon-size-md);
|
|
312
|
+
/* A slotted ui-icon is its own component, out of reach of the svg rule below; these are its
|
|
313
|
+
defaults, which its own --ui-icon-* hooks still override. */
|
|
314
|
+
--_ui-default-icon-size: var(--_ui-icon-button-icon-size, var(--_icon-button-icon-default));
|
|
315
|
+
--_ui-default-icon-stroke-width: var(--_ui-icon-button-icon-stroke-width, 1.75);
|
|
312
316
|
}
|
|
313
317
|
|
|
314
318
|
[data-component~="ui-icon-button"][data-ui-icon-button-state~="size=sm"] {
|
package/vue/UiSidebar.vue
CHANGED
|
@@ -222,7 +222,7 @@ useComponentHost(controllerModule.default, {
|
|
|
222
222
|
var(--ui-affordance-guide-color, var(--ui-border-strong)) 45%,
|
|
223
223
|
transparent
|
|
224
224
|
);
|
|
225
|
-
opacity: var(--ui-affordance-guide-opacity);
|
|
225
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--ui-affordance-scope-guide, 1));
|
|
226
226
|
transition:
|
|
227
227
|
background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
228
228
|
opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
@@ -9,13 +9,16 @@ var _hoisted_1 = ["data-ui-affordance-scope-state"];
|
|
|
9
9
|
var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
10
|
inheritAttrs: false,
|
|
11
11
|
__name: "UiAffordanceScope",
|
|
12
|
-
props: {
|
|
12
|
+
props: {
|
|
13
|
+
guide: { default: "dot" },
|
|
14
|
+
nearRadius: { default: 16 }
|
|
15
|
+
},
|
|
13
16
|
setup(__props) {
|
|
14
17
|
const props = __props;
|
|
15
18
|
const root = ref(null);
|
|
16
19
|
const engaged = ref(false);
|
|
17
20
|
/** The values the styles' :host-state() rules test. */
|
|
18
|
-
const hostState = computed(() => [engaged.value && "engaged"].filter(Boolean).join(" "));
|
|
21
|
+
const hostState = computed(() => [engaged.value && "engaged", props.guide && `guide guide=${props.guide}`].filter(Boolean).join(" "));
|
|
19
22
|
const dispatch = createDispatch(root);
|
|
20
23
|
useComponentHost(controllerModule.default, {
|
|
21
24
|
root,
|
|
@@ -31,6 +34,6 @@ var UiAffordanceScope_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
31
34
|
}), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1);
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
|
-
}), [["__scopeId", "data-v-
|
|
37
|
+
}), [["__scopeId", "data-v-0ec8d3e6"]]);
|
|
35
38
|
//#endregion
|
|
36
39
|
export { UiAffordanceScope_default as t };
|
package/vue/chunks/UiCluster.js
CHANGED
|
@@ -9,16 +9,21 @@ var UiCluster_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
9
9
|
__name: "UiCluster",
|
|
10
10
|
props: {
|
|
11
11
|
align: {},
|
|
12
|
-
gap: {}
|
|
12
|
+
gap: {},
|
|
13
|
+
justify: {}
|
|
13
14
|
},
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
16
17
|
/** The values the styles' :host-state() rules test. */
|
|
17
|
-
const hostState = computed(() => [
|
|
18
|
+
const hostState = computed(() => [
|
|
19
|
+
props.gap && `gap gap=${props.gap}`,
|
|
20
|
+
props.align && `align align=${props.align}`,
|
|
21
|
+
props.justify && `justify justify=${props.justify}`
|
|
22
|
+
].filter(Boolean).join(" "));
|
|
18
23
|
return (_ctx, _cache) => {
|
|
19
24
|
return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-cluster" }, _ctx.$attrs, { "data-ui-cluster-state": hostState.value || void 0 }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16, _hoisted_1);
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
|
-
}), [["__scopeId", "data-v-
|
|
27
|
+
}), [["__scopeId", "data-v-81b18ffc"]]);
|
|
23
28
|
//#endregion
|
|
24
29
|
export { UiCluster_default as t };
|
|
@@ -181,6 +181,6 @@ var UiEditorTableOverlay_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
181
181
|
], 16, _hoisted_1);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
}), [["__scopeId", "data-v-
|
|
184
|
+
}), [["__scopeId", "data-v-0de9cbcc"]]);
|
|
185
185
|
//#endregion
|
|
186
186
|
export { UiEditorTableOverlay_default as t };
|
|
@@ -59,6 +59,6 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
59
59
|
}), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1);
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
}), [["__scopeId", "data-v-
|
|
62
|
+
}), [["__scopeId", "data-v-006fa1b2"]]);
|
|
63
63
|
//#endregion
|
|
64
64
|
export { UiIconButton_default as t };
|
package/vue/chunks/UiSidebar.js
CHANGED
|
@@ -85,6 +85,6 @@ var UiSidebar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
85
85
|
}, null, -1)])], 8, _hoisted_3)], 16, _hoisted_1);
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
}), [["__scopeId", "data-v-
|
|
88
|
+
}), [["__scopeId", "data-v-6929aec9"]]);
|
|
89
89
|
//#endregion
|
|
90
90
|
export { UiSidebar_default as t };
|