@praxisui/tabs 10.0.0-rc.8 → 10.0.0-rc.81

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/README.md CHANGED
@@ -89,6 +89,7 @@ export class TabsHostComponent {
89
89
  - `config: TabsMetadata | null`: canonical tabs/nav configuration.
90
90
  - `tabsId: string`: stable id used for local configuration persistence.
91
91
  - `componentInstanceId?: string`: disambiguates multiple instances with the same `tabsId`.
92
+ - `configPersistenceStrategy?: 'local-first' | 'storage-first' | 'input-first' | 'volatile'`: normalized via `normalizeConfigPersistenceStrategy` (`'storage-first'` maps to `'local-first'`); `'input-first'` keeps host `[config]` precedence when provided, and `'volatile'` disables all storage reads, writes, and resets.
92
93
  - `form?: FormGroup`: form context for dynamic field content.
93
94
  - `context?: unknown`: context passed to nested widgets.
94
95
  - `selectedIndex?: number`: controlled active tab index.
@@ -140,9 +141,13 @@ Use stable ids for tabs and nav links. When `tabsId` is provided, the component
140
141
 
141
142
  When a tab or navigation link contains multiple `widgets`, the runtime renders them as sibling surfaces in a density-aware vertical stack. The default rhythm is 12 px for `compact`, 16 px for `comfortable`, and 24 px for `spacious`, preventing adjacent tables, forms, lists, or related-resource outlets from visually merging. This is container chrome only; it does not change widget inputs, events, identity, or composition bindings.
142
143
 
144
+ ## Visual Variants And Styling
145
+
146
+ `appearance.variant` supports `'underline'` (default), `'pill'` (capsule track without underline indicator), and `'segmented'` across both `group` and `nav` modes. Individual items in `tabs[]` and `nav.links[]` also support `tone?: 'default' | 'primary' | 'accent' | 'outlined'` (and `labelClass`) for item-level visual emphasis. Instance-level `appearance.tokens` (including `track-background-color`, `track-border-color`, `active-tab-background-color`, `active-tab-outline-color`, and `pill-radius`) and sanitized `appearance.customCss` are mounted in a dedicated `<style data-praxis-tabs-runtime-style>` element scoped by `.praxis-tabs-root[data-tabs-id="<scope>"]`.
147
+
143
148
  ## Runtime Authoring
144
149
 
145
- With `enableCustomization`, the component can open quick setup or the full `PraxisTabsConfigEditor` through Settings Panel. The editor round-trips through `TabsAuthoringDocument`, applies only runtime-backed fields and emits `configChange` so the host can persist canonical page or manifest changes.
150
+ With `enableCustomization`, the component can open quick setup or the full `PraxisTabsConfigEditor` through Settings Panel. The editor round-trips through `TabsAuthoringDocument`, applies only runtime-backed fields and emits `configChange` so the host can persist canonical page or manifest changes. `PraxisTabs` honors `configPersistenceStrategy` (`'local-first' | 'input-first' | 'volatile'`), suppresses premature persistence inside `ngOnChanges`, hides the reset action in `'volatile'` mode, passes `configStorageKey` with async `onSave`/`onReset` handlers to Settings Panel, and restores the baseline host snapshot on reset.
146
151
 
147
152
  `PRAXIS_TABS_AUTHORING_MANIFEST` describes the governed AI/tooling operations for tab add/remove, labels, icons, order, visibility, disabled state, active tab, layout and tab content. Free JSON patches from AI flows are not the public authoring contract.
148
153