@zvoove/unity-ui 2.39.1 → 2.40.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/bin/cli.mjs +10 -0
- package/dist/bin/generate-skills.mjs +8 -0
- package/dist/llms.txt +26 -0
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +55 -0
- package/dist/unity-ui.es.js +35 -33
- package/package.json +1 -1
package/dist/bin/cli.mjs
CHANGED
|
@@ -400,6 +400,7 @@ Load the matching skill for full props, examples, and rules:
|
|
|
400
400
|
| Skeleton | \`unity-ui-skeleton\` |
|
|
401
401
|
| Snackbar | \`unity-ui-snackbar\` |
|
|
402
402
|
| Stack | \`unity-ui-stack\` |
|
|
403
|
+
| StatusStepper | \`unity-ui-status-stepper\` |
|
|
403
404
|
| Switch | \`unity-ui-switch\` |
|
|
404
405
|
| Table | \`unity-ui-table\` |
|
|
405
406
|
| Tabs | \`unity-ui-tabs\` |
|
|
@@ -430,6 +431,7 @@ When a component is requested by a name not listed above, resolve it using this
|
|
|
430
431
|
| Header, AppBar, Navbar, Navigation bar, Toolbar, App header, Top navigation | **TopBar** |
|
|
431
432
|
| Sidebar, Side menu, Nav, Navigation drawer, NavBar, Left nav | **SideNavigation** |
|
|
432
433
|
| Spinner, Loader, Loading indicator, Loading spinner, Busy indicator | **ProgressIndicator** |
|
|
434
|
+
| Stepper, Wizard steps, Progress steps, Status steps, Step indicator | **StatusStepper** |
|
|
433
435
|
| Context menu, Action menu, Kebab menu, More menu, Dropdown menu, Options menu | **PopUpMenu** |
|
|
434
436
|
| Alert (inline/persistent), Warning banner, Info banner, Notice, Callout, Inline alert | **InfoBox** |
|
|
435
437
|
| Collapsible, Collapse, CollapsePanel, Disclosure (single item) | **Expandable** |
|
|
@@ -613,6 +615,7 @@ var SHADCN_MAP = {
|
|
|
613
615
|
url: "https://ui.shadcn.com/docs/components/sonner"
|
|
614
616
|
},
|
|
615
617
|
Stack: null,
|
|
618
|
+
StatusStepper: null,
|
|
616
619
|
Switch: {
|
|
617
620
|
name: "Switch",
|
|
618
621
|
url: "https://ui.shadcn.com/docs/components/switch"
|
|
@@ -704,6 +707,11 @@ var MUI_MAP = {
|
|
|
704
707
|
Skeleton: { name: "Skeleton", url: `${MUI_BASE}skeleton/` },
|
|
705
708
|
Snackbar: { name: "Snackbar", url: `${MUI_BASE}snackbar/` },
|
|
706
709
|
Stack: { name: "Stack", url: `${MUI_BASE}stack/` },
|
|
710
|
+
StatusStepper: {
|
|
711
|
+
name: "Stepper",
|
|
712
|
+
url: `${MUI_BASE}stepper/`,
|
|
713
|
+
note: "MUI Stepper is typically interactive. StatusStepper is display-only with per-step status colors."
|
|
714
|
+
},
|
|
707
715
|
Switch: { name: "Switch", url: `${MUI_BASE}switch/` },
|
|
708
716
|
Table: {
|
|
709
717
|
name: "Table / DataGrid",
|
|
@@ -772,6 +780,7 @@ var STORYBOOK_MAP = {
|
|
|
772
780
|
Skeleton: "Components/Skeleton",
|
|
773
781
|
Snackbar: "Components/Snackbar",
|
|
774
782
|
Stack: "Layout/Stack",
|
|
783
|
+
StatusStepper: "Components/StatusStepper",
|
|
775
784
|
Switch: "Forms/Switch",
|
|
776
785
|
Table: "Components/Table",
|
|
777
786
|
Tabs: "Navigation/Tabs",
|
|
@@ -818,6 +827,7 @@ var CATEGORIES = {
|
|
|
818
827
|
List: "data-display",
|
|
819
828
|
Skeleton: "data-display",
|
|
820
829
|
ProgressIndicator: "data-display",
|
|
830
|
+
StatusStepper: "data-display",
|
|
821
831
|
CodeBlock: "data-display",
|
|
822
832
|
Tabs: "navigation",
|
|
823
833
|
Breadcrumbs: "navigation",
|
|
@@ -201,6 +201,7 @@ var SHADCN_MAP = {
|
|
|
201
201
|
url: "https://ui.shadcn.com/docs/components/sonner"
|
|
202
202
|
},
|
|
203
203
|
Stack: null,
|
|
204
|
+
StatusStepper: null,
|
|
204
205
|
Switch: {
|
|
205
206
|
name: "Switch",
|
|
206
207
|
url: "https://ui.shadcn.com/docs/components/switch"
|
|
@@ -292,6 +293,11 @@ var MUI_MAP = {
|
|
|
292
293
|
Skeleton: { name: "Skeleton", url: `${MUI_BASE}skeleton/` },
|
|
293
294
|
Snackbar: { name: "Snackbar", url: `${MUI_BASE}snackbar/` },
|
|
294
295
|
Stack: { name: "Stack", url: `${MUI_BASE}stack/` },
|
|
296
|
+
StatusStepper: {
|
|
297
|
+
name: "Stepper",
|
|
298
|
+
url: `${MUI_BASE}stepper/`,
|
|
299
|
+
note: "MUI Stepper is typically interactive. StatusStepper is display-only with per-step status colors."
|
|
300
|
+
},
|
|
295
301
|
Switch: { name: "Switch", url: `${MUI_BASE}switch/` },
|
|
296
302
|
Table: {
|
|
297
303
|
name: "Table / DataGrid",
|
|
@@ -360,6 +366,7 @@ var STORYBOOK_MAP = {
|
|
|
360
366
|
Skeleton: "Components/Skeleton",
|
|
361
367
|
Snackbar: "Components/Snackbar",
|
|
362
368
|
Stack: "Layout/Stack",
|
|
369
|
+
StatusStepper: "Components/StatusStepper",
|
|
363
370
|
Switch: "Forms/Switch",
|
|
364
371
|
Table: "Components/Table",
|
|
365
372
|
Tabs: "Navigation/Tabs",
|
|
@@ -406,6 +413,7 @@ var CATEGORIES = {
|
|
|
406
413
|
List: "data-display",
|
|
407
414
|
Skeleton: "data-display",
|
|
408
415
|
ProgressIndicator: "data-display",
|
|
416
|
+
StatusStepper: "data-display",
|
|
409
417
|
CodeBlock: "data-display",
|
|
410
418
|
Tabs: "navigation",
|
|
411
419
|
Breadcrumbs: "navigation",
|
package/dist/llms.txt
CHANGED
|
@@ -799,6 +799,32 @@ import { ProgressIndicator } from '@zvoove/unity-ui';
|
|
|
799
799
|
/>
|
|
800
800
|
```
|
|
801
801
|
|
|
802
|
+
### StatusStepper
|
|
803
|
+
Display-only stepper for an ordered, step-based flow. Compact mode shows one current-step caption; full mode shows a label below every tile. Not interactive — do not add click handlers.
|
|
804
|
+
```tsx
|
|
805
|
+
import { StatusStepper } from '@zvoove/unity-ui';
|
|
806
|
+
|
|
807
|
+
<StatusStepper
|
|
808
|
+
steps={[ // StatusStepperStep[] (required) — { order: number, label: string, status: StatusStepperStatus }
|
|
809
|
+
{ order: 1, label: 'Work-App-Zugang', status: 'completed' },
|
|
810
|
+
{ order: 2, label: 'Erfassung', status: 'active' },
|
|
811
|
+
{ order: 3, label: 'Vertrag', status: 'idle' },
|
|
812
|
+
]}
|
|
813
|
+
mode="compact" // 'compact' | 'full' (default: 'compact')
|
|
814
|
+
compactStepLabel="Schritt" // string (default: 'Schritt') — prefix for the compact caption
|
|
815
|
+
ariaLabel="Statusschritte" // string (default: 'Statusschritte')
|
|
816
|
+
statusLabels={{ // Partial<Record<StatusStepperStatus, string>> — defaults are German
|
|
817
|
+
idle: 'inaktiv',
|
|
818
|
+
active: 'aktiv',
|
|
819
|
+
failed: 'fehlgeschlagen',
|
|
820
|
+
blocked: 'blockiert',
|
|
821
|
+
completed: 'abgeschlossen',
|
|
822
|
+
}}
|
|
823
|
+
/>
|
|
824
|
+
```
|
|
825
|
+
|
|
826
|
+
Status values: `'idle'` (grey), `'active'` (blue), `'blocked'` (orange), `'failed'` (red), `'completed'` (green). Steps render in ascending `order`. Compact mode captions the first `active`, `failed`, or `blocked` step (`Schritt 2/7 · Erfassung`); there is no caption when every step is `idle` or `completed`. Use `ariaLabel` and `statusLabels` to localize accessible text.
|
|
827
|
+
|
|
802
828
|
### CodeBlock
|
|
803
829
|
Code display with syntax highlighting.
|
|
804
830
|
```tsx
|