@synopackageland/ui 0.14.8 → 0.14.10
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/CHANGELOG.md +16 -0
- package/README.md +5 -1
- package/dist/components/composite/callout/Callout.vue.d.ts +22 -4
- package/dist/components/composite/tree-view/TreeView.vue.d.ts +2 -2
- package/dist/components/containers/card/Card.vue.d.ts +1 -1
- package/dist/components/containers/expandable-item/ExpandableItem.vue.d.ts +1 -1
- package/dist/i18n/text.d.ts +2 -0
- package/dist/index.js +3740 -3695
- package/dist/json/catalog.d.ts +10 -0
- package/dist/json/registry.d.ts +170 -0
- package/dist/json-ai-prompt.md +1 -1
- package/dist/json-catalog.schema.json +27 -2
- package/dist/json-preview/preview.js +6916 -6817
- package/dist/json.js +28 -24
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/button-policy.md +3 -0
- package/docs/callout.md +123 -0
- package/docs/color-system.md +3 -3
- package/docs/layout-rules.md +1 -0
- package/docs/theme-hooks.md +9 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.10 (2026-10-23)
|
|
4
|
+
|
|
5
|
+
Visual change: `Callout` and `Toast`. Existing props, slots, events and the toast API keep working.
|
|
6
|
+
|
|
7
|
+
- `Callout` and `Toast` share one look: a raised neutral surface with no frame or tinted fill, a soft shadow and a 1px ring, a light of the tone along the top edge, and a faint glow of the tone behind an 18px icon. Corners are 12px. Action buttons are capsules. A Callout fades in and rises; a toast slides in; reduced motion turns both off. The Callout's leading tone bar is gone.
|
|
8
|
+
- `Callout` puts its actions at the end of the message (under it when the width runs out) and stops at 720px (`--ui-callout-max-width`); `fill` spans the container.
|
|
9
|
+
- `Callout variant="inline"`: the same icon and tones as a line of text without the surface, for short risk notes.
|
|
10
|
+
- `Callout` `#details` slot holds longer text behind a "Learn more" toggle (`v-model:expanded`, `moreLabel`, `lessLabel`; translated defaults).
|
|
11
|
+
- New tokens: `--ui-callout-radius`, `--ui-callout-glow`, `--ui-callout-shadow`; the workbench dark theme raises the glow and deepens the shadow.
|
|
12
|
+
- Add [docs/callout.md](docs/callout.md): a passing result is a toast, something to act on is a Callout with one title, one line and one action, a risk is a short inline note. Callout text has no closing period.
|
|
13
|
+
- Inside a DSM window, app text can be selected and copied again: the theme sets `user-select: text` on the app root, overriding DSM's `html, body { user-select: none }`, and keeps buttons, tabs, menu items, sidebar and tree rows, choice labels and dividers unselectable. Text fields are unaffected. `pnpm check:text-select` checks it in a real browser.
|
|
14
|
+
|
|
15
|
+
## 0.14.9 (2026-10-23)
|
|
16
|
+
|
|
17
|
+
- `Link` keeps short labels on one line inside content-sized wrappers, including inline-flex parents. Its horizontal hit padding and keyboard focus ring remain; long labels still wrap within the container.
|
|
18
|
+
|
|
3
19
|
## 0.14.8 (2026-10-23)
|
|
4
20
|
|
|
5
21
|
Visual change: the page behind cards, corners and shadows. Props, slots and exports stay as they were.
|
package/README.md
CHANGED
|
@@ -157,6 +157,10 @@ import { AppRoot, ToastProvider } from '@synopackageland/ui'
|
|
|
157
157
|
`body button:lang(…)` font rules;
|
|
158
158
|
- makes the app root the containing block of fixed overlays, so dialogs,
|
|
159
159
|
sheets and toasts stay inside the window.
|
|
160
|
+
- turns text selection back on under the app root, which DSM's
|
|
161
|
+
`html, body { user-select: none }` turns off: content text can be selected
|
|
162
|
+
and copied, while buttons, tabs, menu items, sidebar and tree rows, choice
|
|
163
|
+
labels and dividers stay unselectable (a `select-*` utility still wins).
|
|
160
164
|
|
|
161
165
|
`AppRoot` renders `<div data-ui-app data-syno-pkg-land-ui>` and routes every overlay
|
|
162
166
|
portal (Dialog, Sheet, Toast, Popover, Select, DropdownMenu, ContextMenu,
|
|
@@ -503,7 +507,7 @@ DSM-style application building blocks:
|
|
|
503
507
|
|
|
504
508
|
- SearchField
|
|
505
509
|
- SettingsRow / SettingsSection
|
|
506
|
-
- Callout / EmptyState / StepList
|
|
510
|
+
- Callout (see [docs/callout.md](docs/callout.md) for when to use a Callout, a toast or an inline note) / EmptyState / StepList
|
|
507
511
|
- ConnectionTopology
|
|
508
512
|
- DataTable / DataGrid
|
|
509
513
|
- TreeView
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
tone?: 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
/** `soft`: a compact tinted panel. `inline`: a status line with no panel, for a short note under a field or a section. */
|
|
4
|
+
variant?: 'soft' | 'inline';
|
|
3
5
|
title?: string;
|
|
4
6
|
closable?: boolean;
|
|
5
7
|
closeLabel?: string;
|
|
6
8
|
/** A machine code (e.g. `login_wait_timeout`), shown after the message in a quieter style. */
|
|
7
9
|
code?: string;
|
|
10
|
+
/** Span the container instead of stopping at `--ui-callout-max-width` (720px). */
|
|
11
|
+
fill?: boolean;
|
|
12
|
+
/** The toggle for the `details` slot. */
|
|
13
|
+
moreLabel?: string;
|
|
14
|
+
lessLabel?: string;
|
|
8
15
|
};
|
|
9
|
-
|
|
16
|
+
type __VLS_ModelProps = {
|
|
17
|
+
/** Whether the `details` slot is shown. */
|
|
18
|
+
'expanded'?: boolean;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
|
+
declare var __VLS_6: {}, __VLS_13: {}, __VLS_15: {};
|
|
10
22
|
type __VLS_Slots = {} & {
|
|
11
23
|
default?: (props: typeof __VLS_6) => any;
|
|
12
24
|
} & {
|
|
13
|
-
|
|
25
|
+
details?: (props: typeof __VLS_13) => any;
|
|
26
|
+
} & {
|
|
27
|
+
actions?: (props: typeof __VLS_15) => any;
|
|
14
28
|
};
|
|
15
|
-
declare const __VLS_base: import('vue').DefineComponent<
|
|
29
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
30
|
close: () => any;
|
|
17
|
-
|
|
31
|
+
"update:expanded": (value: boolean) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
33
|
onClose?: (() => any) | undefined;
|
|
34
|
+
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
19
35
|
}>, {
|
|
36
|
+
fill: boolean;
|
|
37
|
+
variant: "soft" | "inline";
|
|
20
38
|
tone: "info" | "success" | "warning" | "danger";
|
|
21
39
|
closable: boolean;
|
|
22
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -50,6 +50,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
50
50
|
}) => any;
|
|
51
51
|
check: (payload: TreeViewCheckPayload) => any;
|
|
52
52
|
"update:checkedKeys": (value: string[]) => any;
|
|
53
|
+
"update:expanded": (value: string[]) => any;
|
|
53
54
|
reorder: (payload: {
|
|
54
55
|
node: TreeNode;
|
|
55
56
|
target: TreeNode;
|
|
@@ -57,7 +58,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
57
58
|
nodes: TreeNode[];
|
|
58
59
|
}) => any;
|
|
59
60
|
expand: (node: TreeNode) => any;
|
|
60
|
-
"update:expanded": (value: string[]) => any;
|
|
61
61
|
"update:nodes": (value: TreeNode[]) => any;
|
|
62
62
|
collapse: (node: TreeNode) => any;
|
|
63
63
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -69,6 +69,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
69
69
|
}) => any) | undefined;
|
|
70
70
|
onCheck?: ((payload: TreeViewCheckPayload) => any) | undefined;
|
|
71
71
|
"onUpdate:checkedKeys"?: ((value: string[]) => any) | undefined;
|
|
72
|
+
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
72
73
|
onReorder?: ((payload: {
|
|
73
74
|
node: TreeNode;
|
|
74
75
|
target: TreeNode;
|
|
@@ -76,7 +77,6 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
|
76
77
|
nodes: TreeNode[];
|
|
77
78
|
}) => any) | undefined;
|
|
78
79
|
onExpand?: ((node: TreeNode) => any) | undefined;
|
|
79
|
-
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
80
80
|
"onUpdate:nodes"?: ((value: TreeNode[]) => any) | undefined;
|
|
81
81
|
onCollapse?: ((node: TreeNode) => any) | undefined;
|
|
82
82
|
}>, {
|
|
@@ -32,8 +32,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
32
32
|
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
hasHeader: boolean;
|
|
35
|
-
expandable: boolean;
|
|
36
35
|
expanded: boolean;
|
|
36
|
+
expandable: boolean;
|
|
37
37
|
layoutType: "regular" | "compact";
|
|
38
38
|
footerAlign: "start" | "end" | "between";
|
|
39
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -65,9 +65,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
65
65
|
"onDrag-end"?: ((event: DragEvent) => any) | undefined;
|
|
66
66
|
}>, {
|
|
67
67
|
draggable: boolean;
|
|
68
|
+
expanded: boolean;
|
|
68
69
|
selectable: boolean;
|
|
69
70
|
expandable: boolean;
|
|
70
|
-
expanded: boolean;
|
|
71
71
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
72
72
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
73
73
|
declare const _default: typeof __VLS_export;
|
package/dist/i18n/text.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ export declare const englishUiText: {
|
|
|
155
155
|
readonly "Notifications ({hotkey})": "Notifications ({hotkey})";
|
|
156
156
|
readonly "Show password": "Show password";
|
|
157
157
|
readonly "Hide password": "Hide password";
|
|
158
|
+
readonly "Learn more": "Learn more";
|
|
159
|
+
readonly "Show less": "Show less";
|
|
158
160
|
readonly "Copy path": "Copy path";
|
|
159
161
|
readonly "Path: {path}": "Path: {path}";
|
|
160
162
|
readonly Copied: "Copied";
|