@estiva-app/ui 0.31.0 → 0.32.0

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
@@ -64,7 +64,7 @@ export default {
64
64
 
65
65
  The UI Guardrails' rules ship with the package, as an ESLint plugin, so an app
66
66
  gets a new rule with a version bump. Each rule names the component to use
67
- instead. There are four:
67
+ instead. There are five:
68
68
 
69
69
  - `estiva/no-raw-element` refuses a raw interactive element (`<a>`, `<input>`,
70
70
  `<form>`, `<dialog>`…) and names the part to use, or says the package has none yet.
@@ -83,6 +83,13 @@ instead. There are four:
83
83
  row first in a column, with its own side padding and a title, where the column
84
84
  fills its height or the row has a bar's height or hairline. It reads the
85
85
  shape, not the class names, and names `ContainerHeader`.
86
+ - `estiva/no-handmade-empty-state` refuses an empty state drawn by hand: a
87
+ line of words that shows where a list's rows would be, when the list is
88
+ empty. It reads where the line sits, not what it says, and names
89
+ `EmptyState`. It also refuses a `page`-scope `EmptyState` inside a
90
+ `ScrollArea` whose content is only as tall as what is in it, where it sits at
91
+ the top instead of the middle, following the app's own components into their
92
+ files to find one.
86
93
 
87
94
  ```js
88
95
  // eslint.config.js — alongside your own rules
@@ -16,6 +16,7 @@ declare const plugin: {
16
16
  'component-has-a-story': import("eslint").Rule.RuleModule;
17
17
  'no-restyled-part': import("eslint").Rule.RuleModule;
18
18
  'no-handmade-header': import("eslint").Rule.RuleModule;
19
+ 'no-handmade-empty-state': import("eslint").Rule.RuleModule;
19
20
  'no-raw-element': import("eslint").Rule.RuleModule;
20
21
  'no-rebuilt-behaviour': import("eslint").Rule.RuleModule;
21
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAS5C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,S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