@ayni.org/ayni-ui-core 0.3.0 → 0.3.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/dist/homeDesign.d.ts +28 -0
- package/dist/homeDesign.js +20 -1
- package/package.json +1 -1
package/dist/homeDesign.d.ts
CHANGED
|
@@ -53,6 +53,27 @@ export declare const HOME_DESIGN: {
|
|
|
53
53
|
readonly pinSize: 11;
|
|
54
54
|
readonly pinPaddingX: 3;
|
|
55
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* The two zones a tile is dragged between, the pinned one above the line and the rest below: while a tile is
|
|
58
|
+
* dragged both show a dashed outline, the one under the pointer a solid one; the empty pinned zone grows to
|
|
59
|
+
* one slot.
|
|
60
|
+
*/
|
|
61
|
+
readonly zone: {
|
|
62
|
+
readonly minHeight: 12;
|
|
63
|
+
readonly radius: 12;
|
|
64
|
+
readonly droppableMinHeight: 48;
|
|
65
|
+
readonly droppableOutlineWidth: 1;
|
|
66
|
+
/** the share of the accent in the dashed outline */
|
|
67
|
+
readonly droppableOutlineShare: 0.5;
|
|
68
|
+
readonly outlineOffset: -2;
|
|
69
|
+
readonly targetOutlineWidth: 2;
|
|
70
|
+
};
|
|
71
|
+
/** the tile being dragged, where it stood; and the line above the pinned tile it would land before */
|
|
72
|
+
readonly drag: {
|
|
73
|
+
readonly opacity: 0.4;
|
|
74
|
+
readonly scale: 0.96;
|
|
75
|
+
readonly dropLineWidth: 3;
|
|
76
|
+
};
|
|
56
77
|
};
|
|
57
78
|
readonly column: {
|
|
58
79
|
readonly header: {
|
|
@@ -183,6 +204,13 @@ export declare const HOME_COLORS: {
|
|
|
183
204
|
readonly line: "border";
|
|
184
205
|
readonly pin: "muted";
|
|
185
206
|
readonly pinBackground: "surface";
|
|
207
|
+
readonly target: "accent";
|
|
208
|
+
};
|
|
209
|
+
readonly zone: {
|
|
210
|
+
readonly outline: "accent";
|
|
211
|
+
};
|
|
212
|
+
readonly drag: {
|
|
213
|
+
readonly dropLine: "accent";
|
|
186
214
|
};
|
|
187
215
|
readonly column: {
|
|
188
216
|
readonly background: "bg";
|
package/dist/homeDesign.js
CHANGED
|
@@ -16,6 +16,23 @@ export const HOME_DESIGN = {
|
|
|
16
16
|
dot: { bottom: 4, right: 4, size: 9, borderWidth: 2 },
|
|
17
17
|
/** the line under the pinned tiles, with its pin */
|
|
18
18
|
separator: { width: 48, height: 14, lineWidth: 1, pinSize: 11, pinPaddingX: 3 },
|
|
19
|
+
/**
|
|
20
|
+
* The two zones a tile is dragged between, the pinned one above the line and the rest below: while a tile is
|
|
21
|
+
* dragged both show a dashed outline, the one under the pointer a solid one; the empty pinned zone grows to
|
|
22
|
+
* one slot.
|
|
23
|
+
*/
|
|
24
|
+
zone: {
|
|
25
|
+
minHeight: 12,
|
|
26
|
+
radius: 12,
|
|
27
|
+
droppableMinHeight: 48,
|
|
28
|
+
droppableOutlineWidth: 1,
|
|
29
|
+
/** the share of the accent in the dashed outline */
|
|
30
|
+
droppableOutlineShare: 0.5,
|
|
31
|
+
outlineOffset: -2,
|
|
32
|
+
targetOutlineWidth: 2,
|
|
33
|
+
},
|
|
34
|
+
/** the tile being dragged, where it stood; and the line above the pinned tile it would land before */
|
|
35
|
+
drag: { opacity: 0.4, scale: 0.96, dropLineWidth: 3 },
|
|
19
36
|
},
|
|
20
37
|
column: {
|
|
21
38
|
header: { height: 64, paddingLeft: 12, paddingRight: 8, gap: 8, fontSize: 16, iconSize: 18, flagFontSize: 16 },
|
|
@@ -62,7 +79,9 @@ export const HOME_COLORS = {
|
|
|
62
79
|
selectedBar: { background: 'accent' },
|
|
63
80
|
badge: { background: 'danger' },
|
|
64
81
|
dot: { background: 'warning', border: 'surface' },
|
|
65
|
-
separator: { line: 'border', pin: 'muted', pinBackground: 'surface' },
|
|
82
|
+
separator: { line: 'border', pin: 'muted', pinBackground: 'surface', target: 'accent' },
|
|
83
|
+
zone: { outline: 'accent' },
|
|
84
|
+
drag: { dropLine: 'accent' },
|
|
66
85
|
column: { background: 'bg', border: 'border' },
|
|
67
86
|
header: { icon: 'muted' },
|
|
68
87
|
selectedCard: { background: 'surface' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ayni.org/ayni-ui-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Framework-independent core of the Ayni UI (UI-SHELL-004): agents and controllers, trust resolution, sessions and binding, the conversation reducer, the local store and sync; shared by the browser UI and the Ayni app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|