@xenosystem/blocks 0.12.8 → 0.13.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/dist/chunk-BP4EYOCQ.js +109 -0
- package/dist/chunk-OCEZTO2D.js +228 -0
- package/dist/edit/index.d.ts +4 -4
- package/dist/edit/index.js +457 -665
- package/dist/icons/index.d.ts +23 -0
- package/dist/icons/index.js +79 -0
- package/dist/time/index.d.ts +2 -1
- package/dist/time/index.js +109 -186
- package/package.json +7 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `@xenosystem/blocks/icons` — ONE glyph registry for every declared block, keyed `icons/<Name>`.
|
|
5
|
+
*
|
|
6
|
+
* 🔴 An INTERIM home, named as such. Icons are rung 1 (`XENO FULL-STACK HIERARCHY.md`): the XENO
|
|
7
|
+
* icon set lives in `xeno-elements` and reaches products through `@xenosystem/elements-react`, which
|
|
8
|
+
* ships no icons yet (0.0.1 exports `XenoElement`, `useDialog`, `useTabs`). Until it does, the blocks'
|
|
9
|
+
* own lucide-geometry svgs (strokeWidth 1.5, no circles — DESIGN_SYSTEM §3) are the source, and this
|
|
10
|
+
* module is the ONE place a declaration's `icons/Play` resolves. When the set lands, this file
|
|
11
|
+
* re-exports from elements-react and nothing above it changes — four blocks used to carry four
|
|
12
|
+
* private glyph registries (`transport/PlayIcon`, `inspector/DiamondIcon`, …), which was four swap
|
|
13
|
+
* points and four places a renamed icon could hide.
|
|
14
|
+
*
|
|
15
|
+
* Every entry is a React component taking `{ size?, … }`; composite state glyphs (`PlayPause`,
|
|
16
|
+
* `Visibility`, `LockState`, `Diamond`) take one boolean prop so a declaration binds ONE node.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
declare const ICONS: Readonly<Record<`icons/${string}`, ComponentType<any>>>;
|
|
20
|
+
/** The registry names, for a host's registry check and the seen-before-used gate. */
|
|
21
|
+
declare const ICON_UNITS: readonly string[];
|
|
22
|
+
|
|
23
|
+
export { ICONS, ICON_UNITS };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EndIcon,
|
|
3
|
+
LoopIcon,
|
|
4
|
+
MetronomeIcon,
|
|
5
|
+
PauseIcon,
|
|
6
|
+
PlayIcon,
|
|
7
|
+
PlayPauseIcon,
|
|
8
|
+
RecordIcon,
|
|
9
|
+
ShuttleLeftIcon,
|
|
10
|
+
ShuttleRightIcon,
|
|
11
|
+
StartIcon,
|
|
12
|
+
StepBackIcon,
|
|
13
|
+
StepForwardIcon,
|
|
14
|
+
StopIcon
|
|
15
|
+
} from "../chunk-BP4EYOCQ.js";
|
|
16
|
+
import {
|
|
17
|
+
DiamondIcon,
|
|
18
|
+
EntryIcon,
|
|
19
|
+
EyedropperIcon,
|
|
20
|
+
KindGlyph,
|
|
21
|
+
LinkIcon,
|
|
22
|
+
LockStateIcon,
|
|
23
|
+
NextIcon,
|
|
24
|
+
PendingGlyph,
|
|
25
|
+
PrevIcon,
|
|
26
|
+
RedoIcon,
|
|
27
|
+
ResetIcon,
|
|
28
|
+
StopwatchIcon,
|
|
29
|
+
SwapIcon,
|
|
30
|
+
TrashIcon,
|
|
31
|
+
UndoIcon,
|
|
32
|
+
VisibilityIcon,
|
|
33
|
+
XIcon2 as XIcon
|
|
34
|
+
} from "../chunk-OCEZTO2D.js";
|
|
35
|
+
import "../chunk-2KG3PWR4.js";
|
|
36
|
+
|
|
37
|
+
// src/icons/index.ts
|
|
38
|
+
var ICONS = Object.freeze({
|
|
39
|
+
// transport
|
|
40
|
+
"icons/Play": PlayIcon,
|
|
41
|
+
"icons/Pause": PauseIcon,
|
|
42
|
+
"icons/PlayPause": PlayPauseIcon,
|
|
43
|
+
"icons/Stop": StopIcon,
|
|
44
|
+
"icons/Record": RecordIcon,
|
|
45
|
+
"icons/Start": StartIcon,
|
|
46
|
+
"icons/End": EndIcon,
|
|
47
|
+
"icons/StepBack": StepBackIcon,
|
|
48
|
+
"icons/StepForward": StepForwardIcon,
|
|
49
|
+
"icons/ShuttleLeft": ShuttleLeftIcon,
|
|
50
|
+
"icons/ShuttleRight": ShuttleRightIcon,
|
|
51
|
+
"icons/Loop": LoopIcon,
|
|
52
|
+
"icons/Metronome": MetronomeIcon,
|
|
53
|
+
// history
|
|
54
|
+
"icons/Undo": UndoIcon,
|
|
55
|
+
"icons/Redo": RedoIcon,
|
|
56
|
+
"icons/Trash": TrashIcon,
|
|
57
|
+
"icons/X": XIcon,
|
|
58
|
+
"icons/Pending": PendingGlyph,
|
|
59
|
+
"icons/HistoryEntry": EntryIcon,
|
|
60
|
+
// inspector
|
|
61
|
+
"icons/Stopwatch": StopwatchIcon,
|
|
62
|
+
"icons/Diamond": DiamondIcon,
|
|
63
|
+
"icons/Prev": PrevIcon,
|
|
64
|
+
"icons/Next": NextIcon,
|
|
65
|
+
"icons/Link": LinkIcon,
|
|
66
|
+
"icons/Reset": ResetIcon,
|
|
67
|
+
// layers
|
|
68
|
+
"icons/Kind": KindGlyph,
|
|
69
|
+
"icons/Visibility": VisibilityIcon,
|
|
70
|
+
"icons/LockState": LockStateIcon,
|
|
71
|
+
// color
|
|
72
|
+
"icons/Swap": SwapIcon,
|
|
73
|
+
"icons/Eyedropper": EyedropperIcon
|
|
74
|
+
});
|
|
75
|
+
var ICON_UNITS = Object.keys(ICONS);
|
|
76
|
+
export {
|
|
77
|
+
ICONS,
|
|
78
|
+
ICON_UNITS
|
|
79
|
+
};
|
package/dist/time/index.d.ts
CHANGED
|
@@ -320,7 +320,8 @@ declare const TRANSPORT_ICONS: {
|
|
|
320
320
|
'transport/MetronomeIcon': typeof MetronomeIcon;
|
|
321
321
|
};
|
|
322
322
|
/** The registry names above, for a host's registry check. */
|
|
323
|
-
|
|
323
|
+
/** No runtime units: every transport glyph resolves through `@xenosystem/blocks/icons`. Kept so every declared block has the same shape. */
|
|
324
|
+
declare const TRANSPORT_RUNTIME_UNITS: readonly string[];
|
|
324
325
|
|
|
325
326
|
/**
|
|
326
327
|
* The transport strip AS A DECLARATION — the fourth block written the §8d way (auth gate, agent,
|