@starci/eslint-grammar-core 0.58.0 → 0.60.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +5 -955
  2. package/README.md +4 -4
  3. package/dist/app-shell.js +1 -1
  4. package/dist/avatar-row-uses-group.js +1 -2
  5. package/dist/button-arrow.d.ts +2 -2
  6. package/dist/button-arrow.js +2 -2
  7. package/dist/choice-controls.d.ts +0 -18
  8. package/dist/choice-controls.js +7 -47
  9. package/dist/field-label.js +2 -2
  10. package/dist/gap-proximity.js +2 -2
  11. package/dist/index.js +0 -2
  12. package/dist/layout-two-axis.js +1 -1
  13. package/dist/lib/grammar-jsx.js +1 -1
  14. package/dist/lib/site-scope.d.ts +1 -2
  15. package/dist/lib/site-scope.js +1 -2
  16. package/dist/lib/why.js +5 -15
  17. package/dist/link-look.js +1 -1
  18. package/dist/no-card-lead-description.js +1 -1
  19. package/dist/no-nested-label.js +1 -1
  20. package/dist/no-raw-scroll.js +1 -1
  21. package/dist/no-raw-spacing-style.d.ts +1 -1
  22. package/dist/no-raw-spacing-style.js +1 -1
  23. package/dist/no-raw-type-size.d.ts +1 -1
  24. package/dist/no-raw-type-size.js +1 -1
  25. package/dist/outline-icons.js +1 -1
  26. package/dist/page-breadcrumbs.js +1 -1
  27. package/dist/page.d.ts +1 -1
  28. package/dist/page.js +4 -17
  29. package/dist/pane.js +4 -4
  30. package/dist/same-line-size.js +1 -1
  31. package/dist/section-head-action.js +2 -2
  32. package/dist/site-type-role.d.ts +2 -2
  33. package/dist/site-type-role.js +3 -3
  34. package/dist/surface-depth.js +1 -1
  35. package/dist/surface-in-surface.js +1 -1
  36. package/dist/table-cell-type.js +1 -1
  37. package/dist/tabs.d.ts +2 -2
  38. package/dist/tabs.js +5 -5
  39. package/dist/text-rules.js +1 -1
  40. package/docs/avatar-row-uses-group.md +1 -1
  41. package/docs/button-arrow.md +2 -2
  42. package/docs/card-is-object.md +1 -1
  43. package/docs/choice-controls.md +1 -13
  44. package/docs/field-label.md +1 -1
  45. package/docs/no-raw-scroll.md +2 -2
  46. package/docs/no-raw-type-size.md +1 -1
  47. package/docs/page.md +0 -52
  48. package/docs/pane.md +1 -1
  49. package/docs/section-head-action.md +1 -1
  50. package/docs/site-type-role.md +1 -1
  51. package/docs/tabs.md +1 -1
  52. package/package.json +3 -3
  53. package/runtime/knowledge/ui/presentation/grammar-laws.yaml +15 -16
  54. package/dist/lib/grammar-imports.d.ts +0 -16
  55. package/dist/lib/grammar-imports.js +0 -37
  56. package/dist/page-header.d.ts +0 -17
  57. package/dist/page-header.js +0 -36
  58. package/docs/page-header.md +0 -37
@@ -1,37 +0,0 @@
1
- # Page heads are Page header
2
-
3
- Law module: `page-header.ts`. Catalogue: R323 FE_PAGE_HEADER_HAND_ROLLED.
4
-
5
- A page is headed by Grammar's `Page`, whose `header` is the band: the trail, the page heading with its mark, status and summary, the page's commands and the page tabs, on a surface band whose content shares the page content's edges and which ends in its own full-width separator. `PageHeader` and `Breadcrumbs` are Page's parts and are not exported; a head composed from them has no band, no top inset and no separator, and every page re-decides its spacing. The law reduces to imports.
6
-
7
- Every rule below is an error in `coreGrammarConfig`; none can be switched off or suppressed inline.
8
-
9
- ## `starci-grammar/no-hand-rolled-page-header`
10
-
11
- A `PageHeader` or `Breadcrumbs` imported from `@starci/grammar` (by name, through an alias, or as a member of a namespace import) is a finding, reported on the import or the member. The types of the header's slots (`PageHeaderBreadcrumbs`, `PageHeaderTabs`) stay public and are not judged; the same names from another module are not the Grammar's.
12
-
13
- **Invalid** (`src/components/blocks/ConnectionPage/component.tsx`)
14
-
15
- ```tsx
16
- import { PageHeader } from "@starci/grammar/core"
17
-
18
- <PageHeader title="Main account" actions={<Button>Disconnect</Button>} />
19
- ```
20
-
21
- **Valid** (`src/components/blocks/ConnectionPage/component.tsx`)
22
-
23
- ```tsx
24
- <Page
25
- header={{
26
- breadcrumbs: { label: "Breadcrumb", items: trail },
27
- title: "Main account",
28
- actions: <Button>Disconnect</Button>,
29
- }}
30
- >
31
- <WebhookCard />
32
- </Page>
33
- ```
34
-
35
- **Finding code:** `FE_PAGE_HEADER_HAND_ROLLED`
36
-
37
- Rule ownership: [FE-RULE-OWNERSHIP](../../../contexts/code/fe/README.md#the-placement-test-fe-rule-ownership).