@xenosystem/blocks 0.12.9 → 0.13.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.
@@ -0,0 +1,41 @@
1
+ import { ReactNode, ComponentType } from 'react';
2
+
3
+ /**
4
+ * The shared glyphs — ONE source for the strokes that used to be copied per block (`Refresh` was
5
+ * byte-identical in three files, `X` in three, `Plus` in two). Lucide geometry at strokeWidth 1.5,
6
+ * rectangles and lines only: no circles anywhere (DESIGN_SYSTEM §3). Every block-local `icons.tsx`
7
+ * re-exports from here under its own name, so no view changed when the copies collapsed.
8
+ *
9
+ * Interim, like the registry beside it: when `@xenosystem/elements-react` ships the icon set, this
10
+ * file becomes re-exports and the blocks are untouched.
11
+ *
12
+ * @module
13
+ */
14
+
15
+ /** The frame every glyph draws in. */
16
+ declare function Svg({ children, size }: {
17
+ children: ReactNode;
18
+ size?: number;
19
+ }): ReactNode;
20
+
21
+ /**
22
+ * `@xenosystem/blocks/icons` — ONE glyph registry for every declared block, keyed `icons/<Name>`.
23
+ *
24
+ * 🔴 An INTERIM home, named as such. Icons are rung 1 (`XENO FULL-STACK HIERARCHY.md`): the XENO
25
+ * icon set lives in `xeno-elements` and reaches products through `@xenosystem/elements-react`, which
26
+ * ships no icons yet (0.0.1 exports `XenoElement`, `useDialog`, `useTabs`). Until it does, the blocks'
27
+ * own lucide-geometry svgs (strokeWidth 1.5, no circles — DESIGN_SYSTEM §3) are the source, and this
28
+ * module is the ONE place a declaration's `icons/Play` resolves. When the set lands, this file
29
+ * re-exports from elements-react and nothing above it changes — four blocks used to carry four
30
+ * private glyph registries (`transport/PlayIcon`, `inspector/DiamondIcon`, …), which was four swap
31
+ * points and four places a renamed icon could hide.
32
+ *
33
+ * Every entry is a React component taking `{ size?, … }`; composite state glyphs (`PlayPause`,
34
+ * `Visibility`, `LockState`, `Diamond`) take one boolean prop so a declaration binds ONE node.
35
+ */
36
+
37
+ declare const ICONS: Readonly<Record<`icons/${string}`, ComponentType<any>>>;
38
+ /** The registry names, for a host's registry check and the seen-before-used gate. */
39
+ declare const ICON_UNITS: readonly string[];
40
+
41
+ export { ICONS, ICON_UNITS, Svg };
@@ -0,0 +1,116 @@
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
+ TreeIcon,
32
+ UndoIcon,
33
+ VisibilityIcon,
34
+ XIcon2 as XIcon
35
+ } from "../chunk-J5XEAON6.js";
36
+ import {
37
+ CancelGlyph,
38
+ CaseGlyph,
39
+ ChevronGlyph,
40
+ ClearGlyph,
41
+ CollapseGlyph,
42
+ CopyGlyph,
43
+ DownloadGlyph,
44
+ ExpandGlyph,
45
+ PlugGlyph,
46
+ PlusGlyph,
47
+ RefreshGlyph,
48
+ RetryGlyph,
49
+ SortAscGlyph,
50
+ SortDescGlyph,
51
+ Svg,
52
+ XGlyph
53
+ } from "../chunk-GQWAIPDF.js";
54
+ import "../chunk-2KG3PWR4.js";
55
+
56
+ // src/icons/index.ts
57
+ var ICONS = Object.freeze({
58
+ // transport
59
+ "icons/Play": PlayIcon,
60
+ "icons/Pause": PauseIcon,
61
+ "icons/PlayPause": PlayPauseIcon,
62
+ "icons/Stop": StopIcon,
63
+ "icons/Record": RecordIcon,
64
+ "icons/Start": StartIcon,
65
+ "icons/End": EndIcon,
66
+ "icons/StepBack": StepBackIcon,
67
+ "icons/StepForward": StepForwardIcon,
68
+ "icons/ShuttleLeft": ShuttleLeftIcon,
69
+ "icons/ShuttleRight": ShuttleRightIcon,
70
+ "icons/Loop": LoopIcon,
71
+ "icons/Metronome": MetronomeIcon,
72
+ // history
73
+ "icons/Undo": UndoIcon,
74
+ "icons/Redo": RedoIcon,
75
+ "icons/Trash": TrashIcon,
76
+ "icons/X": XIcon,
77
+ "icons/Pending": PendingGlyph,
78
+ "icons/HistoryEntry": EntryIcon,
79
+ // inspector
80
+ "icons/Stopwatch": StopwatchIcon,
81
+ "icons/Diamond": DiamondIcon,
82
+ "icons/Prev": PrevIcon,
83
+ "icons/Next": NextIcon,
84
+ "icons/Link": LinkIcon,
85
+ "icons/Reset": ResetIcon,
86
+ // layers
87
+ "icons/Kind": KindGlyph,
88
+ "icons/Visibility": VisibilityIcon,
89
+ "icons/LockState": LockStateIcon,
90
+ // color
91
+ "icons/Swap": SwapIcon,
92
+ "icons/Eyedropper": EyedropperIcon,
93
+ // shared (src/icons/glyphs.tsx — the one source; the data/ops/time blocks re-export these)
94
+ "icons/Refresh": RefreshGlyph,
95
+ "icons/Close": XGlyph,
96
+ "icons/Plus": PlusGlyph,
97
+ "icons/Chevron": ChevronGlyph,
98
+ "icons/Download": DownloadGlyph,
99
+ "icons/Plug": PlugGlyph,
100
+ "icons/SortAsc": SortAscGlyph,
101
+ "icons/SortDesc": SortDescGlyph,
102
+ "icons/Expand": ExpandGlyph,
103
+ "icons/Collapse": CollapseGlyph,
104
+ "icons/Copy": CopyGlyph,
105
+ "icons/Clear": ClearGlyph,
106
+ "icons/Cancel": CancelGlyph,
107
+ "icons/Retry": RetryGlyph,
108
+ "icons/Case": CaseGlyph,
109
+ "icons/TreeKind": TreeIcon
110
+ });
111
+ var ICON_UNITS = Object.keys(ICONS);
112
+ export {
113
+ ICONS,
114
+ ICON_UNITS,
115
+ Svg
116
+ };