@praxisui/table 9.0.0-beta.44 → 9.0.0-beta.46

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
@@ -140,6 +140,24 @@ For dense enterprise tables, `radial` table cells render the percent as adjacent
140
140
 
141
141
  Use `config.ai.assistant.enabled = false` when a host needs to disable the embedded AI assistant entrypoint for a table instance. The default is enabled, so existing AI-enabled tables keep the current behavior without extra config. When the value changes to `false`, the component closes the assistant and removes the table assistant session from the shared assistant registry.
142
142
 
143
+ ## Empty State
144
+
145
+ Use `behavior.emptyState` for table-owned no-data copy and presentation. `message` remains the required backward-compatible text. When `title` is omitted, `message` is used as the empty-state title. When `title` is provided, `message` is rendered as the description unless `description` is explicitly set.
146
+
147
+ ```ts
148
+ const config: TableConfig = {
149
+ behavior: {
150
+ emptyState: {
151
+ title: 'Sem documentos legais',
152
+ message: 'Inclua um documento legal para registrar a base normativa deste código.',
153
+ icon: 'gavel',
154
+ density: 'compact',
155
+ variant: 'inline',
156
+ },
157
+ },
158
+ };
159
+ ```
160
+
143
161
  ## Toolbar Appearance
144
162
 
145
163
  Use `toolbar.appearance` for governed toolbar chrome instead of host CSS targeting internal classes. The built-in preset `table-integrated` composes toolbar and table as one operational block using public tokens for background, border, radius, shadow, spacing, and density.