@scattered-light/loomiere-mojave 0.24.1 → 0.25.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/dist/exports/AGENTS.md +1 -1
- package/dist/exports/catalog.json +6 -0
- package/dist/exports/design-system/README.md +1 -1
- package/dist/exports/design-system/components/Badge/README.md +2 -1
- package/dist/exports/design-system/components/Badge/preview.html +457 -1
- package/dist/exports/design-system/components/ChecklistNotice/README.md +49 -0
- package/dist/exports/design-system/components/ChecklistNotice/preview.html +475 -0
- package/dist/exports/design-system/components/DataTable/README.md +2 -1
- package/dist/exports/design-system/components/DataTable/preview.html +89 -89
- package/dist/exports/design-system/components/EmptyState/README.md +16 -2
- package/dist/exports/design-system/components/EmptyState/preview.html +170 -170
- package/dist/exports/design-system/components/LineItemGrid/README.md +50 -0
- package/dist/exports/design-system/components/LineItemGrid/preview.html +475 -0
- package/dist/exports/design-system/components/ParameterBar/README.md +68 -0
- package/dist/exports/design-system/components/ParameterBar/preview.html +475 -0
- package/dist/exports/design-system/components/bundle.css +671 -68
- package/dist/exports/design-system/components/bundle.js +7 -7
- package/dist/exports/design-system/components/index.d.ts +4 -23
- package/package.json +2 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ChecklistNotice
|
|
2
|
+
|
|
3
|
+
The Base UI ChecklistNotice styled by the theme. A Notice with a list of pass/fail rows. The title is subtitle-condense; each row is a mark (check or close) and the label in body-condense, with an optional detail line in the secondary color. Rows are split by a hairline. A passed row's mark is the success color, a failed one's the error color, so the two differ in lightness as well as hue in every theme; the visually hidden "Done" / "Not done" carries the state for assistive tech.
|
|
4
|
+
|
|
5
|
+
Use `Loomiere.ChecklistNotice` (`import { ChecklistNotice } from '@base-ui/react/checklist-notice'` in an app) and give each part the class below; the styles target those classes, not Base UI's own markup.
|
|
6
|
+
|
|
7
|
+
Base UI docs: https://base-ui.com/react/components/checklist-notice
|
|
8
|
+
|
|
9
|
+
## Classes
|
|
10
|
+
|
|
11
|
+
| Class | Data attributes it answers to |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `ChecklistNotice` | |
|
|
14
|
+
| `ChecklistNoticeTitle` | |
|
|
15
|
+
| `ChecklistNoticeList` | |
|
|
16
|
+
| `ChecklistNoticeItem` | `data-passed` |
|
|
17
|
+
| `ChecklistNoticeMark` | |
|
|
18
|
+
| `ChecklistNoticeText` | |
|
|
19
|
+
| `ChecklistNoticeDetail` | |
|
|
20
|
+
| `ChecklistNoticeFooter` | |
|
|
21
|
+
|
|
22
|
+
Base UI sets the state attributes (`data-checked`, `data-open`, `data-disabled`...) itself. Set `data-size`, `data-emphasis`, `data-variant` and `data-color` yourself; `data-color` takes any palette name (`primary`, `secondary`, `error`...) and repaints the part in it.
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
From the ChecklistNotice stories (`Default`):
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
export const Default: Story = {
|
|
30
|
+
args: {
|
|
31
|
+
title: 'Not ready to post yet',
|
|
32
|
+
items: [
|
|
33
|
+
{ id: 'balanced', label: 'Debits equal credits', passed: true },
|
|
34
|
+
{ id: 'period', label: 'Oct 31, 2026 is in an open period', passed: true },
|
|
35
|
+
{
|
|
36
|
+
id: 'reconciled',
|
|
37
|
+
label: 'Fictional Checking is reconciled through Oct 31',
|
|
38
|
+
passed: false,
|
|
39
|
+
detail: 'It is reconciled through Jul 31. Remove the bank line or reconcile Aug–Oct first.',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
render: (args) => <ChecklistNotice {...args} style={{ maxWidth: 460 }} />,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** Every check passes, so the notice turns success. The footer holds the action the checks unlock. */
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The preview also shows `Ready`, `Live`.
|