@ultrst-armada/floks 1.2.4 → 1.2.5

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,555 @@
1
+ export { FrnlStoreProvider, FrnlStoreProviderProps, floksFrnlStore, getFloksFrnlStore, useFloksFrnlStore } from './store.js';
2
+ import React__default from 'react';
3
+ import { FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
4
+ export { FrnlStore } from '@ultrst-armada/frnlts';
5
+
6
+ type FrnlButtonVariant = 'primary' | 'secondary' | 'accent' | 'dock' | 'danger' | 'success' | 'ghost' | 'outline';
7
+ type FrnlButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
+ interface FrnlButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
9
+ id?: string;
10
+ variant?: FrnlButtonVariant;
11
+ size?: FrnlButtonSize;
12
+ label?: string;
13
+ tooltip?: string;
14
+ description?: string;
15
+ isActive?: boolean;
16
+ loading?: boolean;
17
+ icon?: React__default.ReactNode;
18
+ }
19
+ declare const frnlButtonDefinition: {
20
+ name: string;
21
+ states: {
22
+ idle: {
23
+ name: string;
24
+ events: {
25
+ click: {
26
+ functionId: string;
27
+ };
28
+ };
29
+ visualParameters: {
30
+ opacity: number;
31
+ };
32
+ phases: {
33
+ attackPhase: {
34
+ visualDefinition: {
35
+ parameters: {};
36
+ };
37
+ };
38
+ sustainPhase: {
39
+ visualDefinition: {
40
+ parameters: {};
41
+ };
42
+ };
43
+ releasePhase: {
44
+ visualDefinition: {
45
+ parameters: {};
46
+ };
47
+ };
48
+ };
49
+ };
50
+ hover: {
51
+ name: string;
52
+ events: {
53
+ click: {
54
+ functionId: string;
55
+ };
56
+ };
57
+ visualParameters: {
58
+ opacity: number;
59
+ };
60
+ phases: {
61
+ attackPhase: {
62
+ visualDefinition: {
63
+ parameters: {};
64
+ };
65
+ };
66
+ sustainPhase: {
67
+ visualDefinition: {
68
+ parameters: {};
69
+ };
70
+ };
71
+ releasePhase: {
72
+ visualDefinition: {
73
+ parameters: {};
74
+ };
75
+ };
76
+ };
77
+ };
78
+ active: {
79
+ name: string;
80
+ events: {
81
+ click: {
82
+ functionId: string;
83
+ };
84
+ };
85
+ visualParameters: {
86
+ opacity: number;
87
+ };
88
+ phases: {
89
+ attackPhase: {
90
+ visualDefinition: {
91
+ parameters: {};
92
+ };
93
+ };
94
+ sustainPhase: {
95
+ visualDefinition: {
96
+ parameters: {};
97
+ };
98
+ };
99
+ releasePhase: {
100
+ visualDefinition: {
101
+ parameters: {};
102
+ };
103
+ };
104
+ };
105
+ };
106
+ disabled: {
107
+ name: string;
108
+ events: {
109
+ click: {
110
+ functionId: string;
111
+ };
112
+ };
113
+ visualParameters: {
114
+ opacity: number;
115
+ };
116
+ phases: {
117
+ attackPhase: {
118
+ visualDefinition: {
119
+ parameters: {};
120
+ };
121
+ };
122
+ sustainPhase: {
123
+ visualDefinition: {
124
+ parameters: {};
125
+ };
126
+ };
127
+ releasePhase: {
128
+ visualDefinition: {
129
+ parameters: {};
130
+ };
131
+ };
132
+ };
133
+ };
134
+ loading: {
135
+ name: string;
136
+ events: {
137
+ click: {
138
+ functionId: string;
139
+ };
140
+ };
141
+ visualParameters: {
142
+ opacity: number;
143
+ };
144
+ phases: {
145
+ attackPhase: {
146
+ visualDefinition: {
147
+ parameters: {};
148
+ };
149
+ };
150
+ sustainPhase: {
151
+ visualDefinition: {
152
+ parameters: {};
153
+ };
154
+ };
155
+ releasePhase: {
156
+ visualDefinition: {
157
+ parameters: {};
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ };
164
+ declare const frnlButton: React__default.FC<FrnlButtonProps>;
165
+
166
+ interface FrnlTextInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size'> {
167
+ id?: string;
168
+ label?: string;
169
+ description?: string;
170
+ error?: string | boolean;
171
+ size?: 'sm' | 'md' | 'lg';
172
+ leadingIcon?: React__default.ReactNode;
173
+ trailingIcon?: React__default.ReactNode;
174
+ onClear?: () => void;
175
+ }
176
+ declare const frnlTextInputDefinition: {
177
+ name: string;
178
+ states: {
179
+ idle: {
180
+ name: string;
181
+ events: {
182
+ change: {
183
+ functionId: string;
184
+ };
185
+ focus: {
186
+ functionId: string;
187
+ };
188
+ };
189
+ visualParameters: {
190
+ borderColor: string;
191
+ };
192
+ phases: {
193
+ attackPhase: {
194
+ visualDefinition: {
195
+ parameters: {};
196
+ };
197
+ };
198
+ sustainPhase: {
199
+ visualDefinition: {
200
+ parameters: {};
201
+ };
202
+ };
203
+ releasePhase: {
204
+ visualDefinition: {
205
+ parameters: {};
206
+ };
207
+ };
208
+ };
209
+ };
210
+ focused: {
211
+ name: string;
212
+ events: {
213
+ change: {
214
+ functionId: string;
215
+ };
216
+ blur: {
217
+ functionId: string;
218
+ };
219
+ };
220
+ visualParameters: {
221
+ borderColor: string;
222
+ };
223
+ phases: {
224
+ attackPhase: {
225
+ visualDefinition: {
226
+ parameters: {};
227
+ };
228
+ };
229
+ sustainPhase: {
230
+ visualDefinition: {
231
+ parameters: {};
232
+ };
233
+ };
234
+ releasePhase: {
235
+ visualDefinition: {
236
+ parameters: {};
237
+ };
238
+ };
239
+ };
240
+ };
241
+ error: {
242
+ name: string;
243
+ events: {
244
+ change: {
245
+ functionId: string;
246
+ };
247
+ };
248
+ visualParameters: {
249
+ borderColor: string;
250
+ };
251
+ phases: {
252
+ attackPhase: {
253
+ visualDefinition: {
254
+ parameters: {};
255
+ };
256
+ };
257
+ sustainPhase: {
258
+ visualDefinition: {
259
+ parameters: {};
260
+ };
261
+ };
262
+ releasePhase: {
263
+ visualDefinition: {
264
+ parameters: {};
265
+ };
266
+ };
267
+ };
268
+ };
269
+ disabled: {
270
+ name: string;
271
+ events: {};
272
+ visualParameters: {
273
+ opacity: number;
274
+ };
275
+ phases: {
276
+ attackPhase: {
277
+ visualDefinition: {
278
+ parameters: {};
279
+ };
280
+ };
281
+ sustainPhase: {
282
+ visualDefinition: {
283
+ parameters: {};
284
+ };
285
+ };
286
+ releasePhase: {
287
+ visualDefinition: {
288
+ parameters: {};
289
+ };
290
+ };
291
+ };
292
+ };
293
+ };
294
+ };
295
+ declare const frnlTextInput: React__default.FC<FrnlTextInputProps>;
296
+
297
+ interface FrnlSelectOption {
298
+ value: string;
299
+ label: string;
300
+ disabled?: boolean;
301
+ }
302
+ interface FrnlSelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
303
+ id?: string;
304
+ label?: string;
305
+ description?: string;
306
+ options: FrnlSelectOption[];
307
+ size?: 'sm' | 'md' | 'lg';
308
+ }
309
+ declare const frnlSelectDefinition: {
310
+ name: string;
311
+ states: {
312
+ idle: {
313
+ name: string;
314
+ events: {
315
+ change: {
316
+ functionId: string;
317
+ };
318
+ };
319
+ visualParameters: {};
320
+ phases: {
321
+ attackPhase: {
322
+ visualDefinition: {
323
+ parameters: {};
324
+ };
325
+ };
326
+ sustainPhase: {
327
+ visualDefinition: {
328
+ parameters: {};
329
+ };
330
+ };
331
+ releasePhase: {
332
+ visualDefinition: {
333
+ parameters: {};
334
+ };
335
+ };
336
+ };
337
+ };
338
+ disabled: {
339
+ name: string;
340
+ events: {};
341
+ visualParameters: {
342
+ opacity: number;
343
+ };
344
+ phases: {
345
+ attackPhase: {
346
+ visualDefinition: {
347
+ parameters: {};
348
+ };
349
+ };
350
+ sustainPhase: {
351
+ visualDefinition: {
352
+ parameters: {};
353
+ };
354
+ };
355
+ releasePhase: {
356
+ visualDefinition: {
357
+ parameters: {};
358
+ };
359
+ };
360
+ };
361
+ };
362
+ };
363
+ };
364
+ declare const frnlSelect: React__default.FC<FrnlSelectProps>;
365
+ interface FrnlToggleProps {
366
+ id?: string;
367
+ checked: boolean;
368
+ onChange: (checked: boolean) => void;
369
+ label?: string;
370
+ description?: string;
371
+ disabled?: boolean;
372
+ className?: string;
373
+ }
374
+ declare const frnlToggleDefinition: {
375
+ name: string;
376
+ states: {
377
+ off: {
378
+ name: string;
379
+ events: {
380
+ toggle: {
381
+ functionId: string;
382
+ };
383
+ };
384
+ visualParameters: {
385
+ checked: boolean;
386
+ };
387
+ phases: {
388
+ attackPhase: {
389
+ visualDefinition: {
390
+ parameters: {};
391
+ };
392
+ };
393
+ sustainPhase: {
394
+ visualDefinition: {
395
+ parameters: {};
396
+ };
397
+ };
398
+ releasePhase: {
399
+ visualDefinition: {
400
+ parameters: {};
401
+ };
402
+ };
403
+ };
404
+ };
405
+ on: {
406
+ name: string;
407
+ events: {
408
+ toggle: {
409
+ functionId: string;
410
+ };
411
+ };
412
+ visualParameters: {
413
+ checked: boolean;
414
+ };
415
+ phases: {
416
+ attackPhase: {
417
+ visualDefinition: {
418
+ parameters: {};
419
+ };
420
+ };
421
+ sustainPhase: {
422
+ visualDefinition: {
423
+ parameters: {};
424
+ };
425
+ };
426
+ releasePhase: {
427
+ visualDefinition: {
428
+ parameters: {};
429
+ };
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ declare const frnlToggle: React__default.FC<FrnlToggleProps>;
436
+ interface FrnlSliderProps {
437
+ id?: string;
438
+ value: number;
439
+ onChange: (value: number) => void;
440
+ min?: number;
441
+ max?: number;
442
+ step?: number;
443
+ label?: string;
444
+ unit?: string;
445
+ description?: string;
446
+ disabled?: boolean;
447
+ className?: string;
448
+ }
449
+ declare const frnlSlider: React__default.FC<FrnlSliderProps>;
450
+ interface FrnlBadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
451
+ variant?: 'neutral' | 'accent' | 'success' | 'danger' | 'warning' | 'info';
452
+ size?: 'sm' | 'md';
453
+ dot?: boolean;
454
+ }
455
+ declare const frnlBadge: React__default.FC<FrnlBadgeProps>;
456
+
457
+ interface FrnlTabItem {
458
+ id: string;
459
+ label: string;
460
+ icon?: React__default.ReactNode;
461
+ description?: string;
462
+ disabled?: boolean;
463
+ content?: React__default.ReactNode;
464
+ }
465
+ interface FrnlTabWindowProps {
466
+ id?: string;
467
+ tabs: FrnlTabItem[];
468
+ activeTabId?: string;
469
+ onTabChange?: (tabId: string) => void;
470
+ className?: string;
471
+ children?: React__default.ReactNode;
472
+ }
473
+ declare const frnlTabWindow: React__default.FC<FrnlTabWindowProps>;
474
+
475
+ interface FrnlBreadcrumbItem {
476
+ label: string;
477
+ href?: string;
478
+ onClick?: () => void;
479
+ }
480
+ interface FrnlTopBarTab {
481
+ id: string;
482
+ label: string;
483
+ icon: React__default.ReactNode;
484
+ description?: string;
485
+ disabled?: boolean;
486
+ }
487
+ interface FrnlUserProfile {
488
+ name?: string;
489
+ username?: string;
490
+ email?: string;
491
+ role?: string;
492
+ avatarGlyph?: string;
493
+ }
494
+ interface FrnlTopBarProps {
495
+ id?: string;
496
+ breadcrumbs?: FrnlBreadcrumbItem[];
497
+ appLogo?: React__default.ReactNode;
498
+ appName?: string;
499
+ tabs?: FrnlTopBarTab[];
500
+ activeTabId?: string;
501
+ onTabChange?: (tabId: string) => void;
502
+ user?: FrnlUserProfile | null;
503
+ onLogout?: () => void;
504
+ onOpenSettings?: () => void;
505
+ actions?: React__default.ReactNode;
506
+ className?: string;
507
+ }
508
+ declare const frnlTopBar: React__default.FC<FrnlTopBarProps>;
509
+
510
+ interface FrnlApiRequestLog {
511
+ id: string;
512
+ method: string;
513
+ endpoint: string;
514
+ status?: number;
515
+ timestamp: number;
516
+ durationMs?: number;
517
+ }
518
+ interface FrnlBottomBarProps {
519
+ id?: string;
520
+ onManualSave?: () => Promise<void> | void;
521
+ isSaving?: boolean;
522
+ recentApiRequests?: FrnlApiRequestLog[];
523
+ className?: string;
524
+ }
525
+ declare const frnlBottomBar: React__default.FC<FrnlBottomBarProps>;
526
+
527
+ interface FrnlPageTab extends FrnlTopBarTab {
528
+ content?: React__default.ReactNode;
529
+ }
530
+ interface FrnlPageProps {
531
+ id?: string;
532
+ title?: string;
533
+ appName?: string;
534
+ appLogo?: React__default.ReactNode;
535
+ breadcrumbs?: FrnlBreadcrumbItem[];
536
+ tabs?: FrnlPageTab[];
537
+ activeTabId?: string;
538
+ onTabChange?: (tabId: string) => void;
539
+ showTopBar?: boolean;
540
+ showBottomBar?: boolean;
541
+ topBarActions?: React__default.ReactNode;
542
+ user?: FrnlUserProfile | null;
543
+ onLogout?: () => void;
544
+ onOpenSettings?: () => void;
545
+ onSave?: () => Promise<void> | void;
546
+ isSaving?: boolean;
547
+ autoSaveEnabled?: boolean;
548
+ recentApiRequests?: FrnlApiRequestLog[];
549
+ orchestrations?: readonly FrnlOrchestrationDefinition[];
550
+ className?: string;
551
+ children?: React__default.ReactNode;
552
+ }
553
+ declare const frnlPage: React__default.FC<FrnlPageProps>;
554
+
555
+ export { type FrnlApiRequestLog, type FrnlBadgeProps, type FrnlBottomBarProps, type FrnlBreadcrumbItem, type FrnlButtonProps, type FrnlButtonSize, type FrnlButtonVariant, type FrnlPageProps, type FrnlPageTab, type FrnlSelectOption, type FrnlSelectProps, type FrnlSliderProps, type FrnlTabItem, type FrnlTabWindowProps, type FrnlTextInputProps, type FrnlToggleProps, type FrnlTopBarProps, type FrnlTopBarTab, type FrnlUserProfile, frnlBadge, frnlBottomBar, frnlButton, frnlButtonDefinition, frnlPage, frnlSelect, frnlSelectDefinition, frnlSlider, frnlTabWindow, frnlTextInput, frnlTextInputDefinition, frnlToggle, frnlToggleDefinition, frnlTopBar };
@@ -0,0 +1,46 @@
1
+ import {
2
+ frnlBadge,
3
+ frnlBottomBar,
4
+ frnlButton,
5
+ frnlButtonDefinition,
6
+ frnlPage,
7
+ frnlSelect,
8
+ frnlSelectDefinition,
9
+ frnlSlider,
10
+ frnlTabWindow,
11
+ frnlTextInput,
12
+ frnlTextInputDefinition,
13
+ frnlToggle,
14
+ frnlToggleDefinition,
15
+ frnlTopBar
16
+ } from "../chunk-YDOKOBRJ.js";
17
+ import {
18
+ FrnlStoreProvider,
19
+ floksFrnlStore,
20
+ getFloksFrnlStore,
21
+ useFloksFrnlStore
22
+ } from "../chunk-X4B3EBMY.js";
23
+ import "../chunk-5ZMXFCD4.js";
24
+ import "../chunk-C3L53YN4.js";
25
+ import "../chunk-62ITRDJX.js";
26
+ import "../chunk-A2CDQISJ.js";
27
+ export {
28
+ FrnlStoreProvider,
29
+ floksFrnlStore,
30
+ frnlBadge,
31
+ frnlBottomBar,
32
+ frnlButton,
33
+ frnlButtonDefinition,
34
+ frnlPage,
35
+ frnlSelect,
36
+ frnlSelectDefinition,
37
+ frnlSlider,
38
+ frnlTabWindow,
39
+ frnlTextInput,
40
+ frnlTextInputDefinition,
41
+ frnlToggle,
42
+ frnlToggleDefinition,
43
+ frnlTopBar,
44
+ getFloksFrnlStore,
45
+ useFloksFrnlStore
46
+ };
@@ -0,0 +1,29 @@
1
+ import React__default, { ReactNode } from 'react';
2
+ import { FrnlStore } from '@ultrst-armada/frnlts';
3
+ export { FrnlStore } from '@ultrst-armada/frnlts';
4
+
5
+ /**
6
+ * Default canonical shared FrnlTS semantic store for Floks UI assets.
7
+ * For application-level custom store isolation, prefer using `FrnlStoreProvider`.
8
+ */
9
+ declare const floksFrnlStore: FrnlStore;
10
+ /**
11
+ * Returns the currently active global Frnl store (defaults to `floksFrnlStore`).
12
+ */
13
+ declare function getFloksFrnlStore(): FrnlStore;
14
+ interface FrnlStoreProviderProps {
15
+ store: FrnlStore;
16
+ children: ReactNode;
17
+ }
18
+ /**
19
+ * Context provider allowing applications to inject an isolated or shared Frnl store
20
+ * down a specific component subtree. This is the preferred mechanism for custom store injection.
21
+ */
22
+ declare const FrnlStoreProvider: React__default.FC<FrnlStoreProviderProps>;
23
+ /**
24
+ * Hook to access the active Frnl store: prefers React Context if provided via FrnlStoreProvider,
25
+ * falling back to the canonical default floksFrnlStore.
26
+ */
27
+ declare function useFloksFrnlStore(): FrnlStore;
28
+
29
+ export { FrnlStoreProvider, type FrnlStoreProviderProps, floksFrnlStore, getFloksFrnlStore, useFloksFrnlStore };
@@ -0,0 +1,12 @@
1
+ import {
2
+ FrnlStoreProvider,
3
+ floksFrnlStore,
4
+ getFloksFrnlStore,
5
+ useFloksFrnlStore
6
+ } from "../chunk-X4B3EBMY.js";
7
+ export {
8
+ FrnlStoreProvider,
9
+ floksFrnlStore,
10
+ getFloksFrnlStore,
11
+ useFloksFrnlStore
12
+ };