@tectra-ng/blocks 0.0.0-stage → 0.1.7

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.
Files changed (101) hide show
  1. package/README.md +16 -2
  2. package/action-tile/README.md +33 -0
  3. package/actions-menu/README.md +42 -0
  4. package/app-footer/README.md +30 -0
  5. package/app-layout/README.md +51 -0
  6. package/command-palette/README.md +63 -0
  7. package/console-layout/README.md +70 -0
  8. package/cookie-notice/README.md +45 -0
  9. package/empty-state/README.md +35 -0
  10. package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
  11. package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
  13. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
  14. package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
  15. package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
  16. package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
  17. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
  18. package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
  19. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
  20. package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
  21. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
  23. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
  25. package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
  27. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
  29. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
  31. package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
  33. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
  35. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
  37. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
  39. package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
  41. package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
  43. package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
  45. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
  47. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-blocks.mjs +4 -0
  49. package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
  50. package/filters-panel/README.md +68 -0
  51. package/kanban/README.md +55 -0
  52. package/network-status/README.md +33 -0
  53. package/package.json +137 -3
  54. package/page-header/README.md +32 -0
  55. package/pinned-tabs/README.md +42 -0
  56. package/public-header/README.md +44 -0
  57. package/qr-code/README.md +52 -0
  58. package/switch-language/README.md +33 -0
  59. package/switch-theme/README.md +32 -0
  60. package/topbar-preferences/README.md +35 -0
  61. package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
  62. package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
  63. package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
  64. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
  65. package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
  66. package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
  67. package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
  68. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
  69. package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
  70. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
  71. package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
  72. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
  73. package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
  74. package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
  75. package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
  76. package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
  77. package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
  78. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
  79. package/types/tectra-ng-blocks-kanban.d.ts +260 -0
  80. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
  81. package/types/tectra-ng-blocks-network-status.d.ts +108 -0
  82. package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
  83. package/types/tectra-ng-blocks-page-header.d.ts +86 -0
  84. package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
  85. package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
  86. package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
  87. package/types/tectra-ng-blocks-public-header.d.ts +142 -0
  88. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
  89. package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
  90. package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
  91. package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
  92. package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
  93. package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
  94. package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
  95. package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
  96. package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
  97. package/types/tectra-ng-blocks-wizard.d.ts +682 -0
  98. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
  99. package/types/tectra-ng-blocks.d.ts +2 -0
  100. package/types/tectra-ng-blocks.d.ts.map +1 -0
  101. package/wizard/README.md +77 -0
@@ -0,0 +1,77 @@
1
+ # Wizard
2
+
3
+ A full-screen step-by-step flow for onboarding and setup: the step on the left — a brand row with the progress, the step heading and its content, the back / skip / next footer — and an illustrated stage on the right that slides its scenes in the direction of the move. Below 1024px the stage becomes a band above the step.
4
+
5
+ ```html
6
+ <tx-wizard-layout>
7
+ <tx-wizard-progress txWizardHeader [total]="steps.length" [current]="index()" [label]="'Step ' + (index() + 1) + ' of ' + steps.length" />
8
+ <div txWizardBody>
9
+ @switch (step().id) {
10
+ @case ('profile') {
11
+ <section class="tx-wizard-step" animate.enter="tx-wizard-step--enter">
12
+ <tx-wizard-step-head icon="user" title="Your profile" lead="Tell the team who you are" />
13
+ …
14
+ </section>
15
+ }
16
+ }
17
+ </div>
18
+ <tx-wizard-footer txWizardFooter [showBack]="index() > 0" (back)="back()" (next)="next()" />
19
+ <tx-wizard-stage txWizardVisual [direction]="direction()" [number]="index() + 1" [caption]="step().title">
20
+ @switch (step().id) {
21
+ @case ('profile') {
22
+ <div class="tx-wizard-scene" animate.enter="tx-wizard-scene--enter" animate.leave="tx-wizard-scene--leave">…</div>
23
+ }
24
+ }
25
+ </tx-wizard-stage>
26
+ </tx-wizard-layout>
27
+ ```
28
+
29
+ Give each step `animate.enter="tx-wizard-step--enter"` to rise in, and each scene the `tx-wizard-scene` class with `animate.enter="tx-wizard-scene--enter"` / `animate.leave="tx-wizard-scene--leave"`: the scenes stack on the stage and slide forward or back by `direction`. Motion is off with reduced motion.
30
+
31
+ ## Inputs
32
+ | Name | Description |
33
+ |---|---|
34
+ | responsive | `tx-wizard-layout`: what the 640px / 1024px breakpoints measure — `viewport` (default) or `container`, the layout itself (a preview, a frame) |
35
+ | total | `tx-wizard-progress`: number of steps (segments) |
36
+ | current | `tx-wizard-progress`: zero-based current step; earlier segments are filled |
37
+ | label | `tx-wizard-progress`: text above the segments, e.g. "Step 2 of 5"; also names the list |
38
+ | stepLabels | `tx-wizard-progress`: names of the steps, read by screen readers on each segment |
39
+ | title | `tx-wizard-step-head`: step title, an `h1` |
40
+ | icon | `tx-wizard-step-head`: icon in a tinted square above the title |
41
+ | lead | `tx-wizard-step-head`: muted paragraph under the title |
42
+ | badge | `tx-wizard-step-head`: small neutral pill next to the title, e.g. "Optional" |
43
+ | direction | `tx-wizard-stage`: `forward` or `back` — the way the scenes slide |
44
+ | number | `tx-wizard-stage`: step number before the caption, two digits |
45
+ | caption | `tx-wizard-stage`: caption under the stage; it rises in when it changes |
46
+ | nextLabel | `tx-wizard-footer`: text of the primary button; the translated "Next" by default |
47
+ | nextIcon | `tx-wizard-footer`: icon of the primary button (`arrow-right`) |
48
+ | backLabel | `tx-wizard-footer`: text of the back button; the translated "Back" by default |
49
+ | showBack | `tx-wizard-footer`: `false` hides the back button (the first step) |
50
+ | skipLabel | `tx-wizard-footer`: text of a quiet skip button; without it there is none |
51
+ | loading | `tx-wizard-footer`: a spinner on the primary button, all buttons disabled |
52
+ | dt | Design tokens of this instance (`wizard`) |
53
+ | pt | Classes and styles of the parts: layout `root`, `panel`, `header`, `body`, `footer`, `visual`; progress `root`, `label`, `segments`, `segment`; step head `root`, `icon`, `title`, `lead`; stage `root`, `stage`, `caption`; footer `root`, `back`, `skip`, `next` |
54
+ | ptOptions | How `pt` merges with the global pass-through |
55
+ | unstyled | Removes the tectra styles |
56
+
57
+ ## Outputs
58
+ | Name | Description |
59
+ |---|---|
60
+ | back | `tx-wizard-footer`: the back button was pressed |
61
+ | next | `tx-wizard-footer`: the primary button was pressed |
62
+ | skip | `tx-wizard-footer`: the skip button was pressed |
63
+
64
+ ## Slots
65
+ | Name | Description |
66
+ |---|---|
67
+ | txWizardHeader | `tx-wizard-layout`: top of the step column — a brand row and the progress |
68
+ | txWizardBody | `tx-wizard-layout`: the step |
69
+ | txWizardFooter | `tx-wizard-layout`: under the step, usually `tx-wizard-footer` |
70
+ | txWizardVisual | `tx-wizard-layout`: the sticky right column (a band on top below 1024px), usually `tx-wizard-stage` |
71
+ | txWizardBackdrop | `tx-wizard-stage`: a decorative layer behind the scenes |
72
+ | default | `tx-wizard-stage`: the scenes, hidden from screen readers |
73
+
74
+ ## Keyboard
75
+ | Key | Action |
76
+ |---|---|
77
+ | Tab / Shift + Tab | Moves through the step fields and the footer buttons |