@logicplanes/kaeso-ui 0.2.1 → 0.2.2

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 (33) hide show
  1. package/ai/component-guides.md +27 -1
  2. package/ai/component-registry.json +91 -1
  3. package/ai/component-registry.md +23 -1
  4. package/ai/icons.md +1 -1
  5. package/ai/tokens.md +1 -1
  6. package/dist/chunks/release-art-DEc9HNa6.js +555 -0
  7. package/dist/chunks/release-art-DEc9HNa6.js.map +1 -0
  8. package/dist/chunks/status-dot-BzMlYuMe.js +29 -0
  9. package/dist/chunks/status-dot-BzMlYuMe.js.map +1 -0
  10. package/dist/components/charts/timeseries.js +72 -69
  11. package/dist/components/charts/timeseries.js.map +1 -1
  12. package/dist/components/data-table.js +1 -1
  13. package/dist/components/date-picker.js +1 -1
  14. package/dist/components/date-picker.js.map +1 -1
  15. package/dist/components/release-art.js +2 -0
  16. package/dist/components/status-dot.js +1 -1
  17. package/dist/format.js +84 -68
  18. package/dist/format.js.map +1 -1
  19. package/dist/index.js +27 -26
  20. package/dist/kaeso.css +23 -1
  21. package/dist/styles.css +1 -1
  22. package/dist/types/components/release-art/docs.d.ts +13 -0
  23. package/dist/types/components/release-art/drawing.d.ts +48 -0
  24. package/dist/types/components/release-art/index.d.ts +1 -0
  25. package/dist/types/components/release-art/release-art.d.ts +37 -0
  26. package/dist/types/components/status-dot/docs.d.ts +2 -0
  27. package/dist/types/components/status-dot/status-dot.d.ts +2 -0
  28. package/dist/types/format/index.d.ts +2 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/foundations/accessibility.md +1 -0
  31. package/package.json +2 -2
  32. package/dist/chunks/status-dot-CBoQpyL4.js +0 -25
  33. package/dist/chunks/status-dot-CBoQpyL4.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component guides
2
2
 
3
- Version 0.2.1. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
3
+ Version 0.2.2. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
4
4
 
5
5
  ## AlertDialog
6
6
 
@@ -3310,6 +3310,32 @@ One of a few choices: an ink donut around a panel center; RadioCards for choices
3310
3310
  </div>
3311
3311
  ```
3312
3312
 
3313
+ ## ReleaseArt
3314
+
3315
+ Flat geometric artwork for a release, from a stored spec or a seed: the same picture every time, a new one for every release.
3316
+
3317
+ `import { ReleaseArt } from "@logicplanes/kaeso-ui";`
3318
+
3319
+ ### Accessibility
3320
+
3321
+ - The artwork is an image with a label; the title drawn on it is part of the picture, so say it in the label too.
3322
+
3323
+ ### Examples
3324
+
3325
+ #### What's new
3326
+
3327
+ ```tsx
3328
+ <div className="w-full max-w-640">
3329
+ <ReleaseArt
3330
+ seed="0.3.0"
3331
+ art={{ version: 1, seed: 2886621037, style: "stripes", palette: 6 }}
3332
+ label="Kaeso 0.3.0"
3333
+ eyebrow="What's new in Kaeso"
3334
+ title="0.3.0"
3335
+ />
3336
+ </div>
3337
+ ```
3338
+
3313
3339
  ## ResourceList
3314
3340
 
3315
3341
  A searchable list with group headers, row actions and a selection bar.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@logicplanes/kaeso-ui",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "components": [
5
5
  {
6
6
  "entry": "app-frame",
@@ -9683,6 +9683,82 @@
9683
9683
  }
9684
9684
  }
9685
9685
  },
9686
+ {
9687
+ "entry": "release-art",
9688
+ "kind": "components",
9689
+ "import": "@logicplanes/kaeso-ui/release-art",
9690
+ "components": [
9691
+ {
9692
+ "name": "ReleaseArt",
9693
+ "description": "A release's artwork: flat geometric art in one of eight styles and Kaeso's palettes, drawn from a stored art spec or a seed, with an optional title floating on it.",
9694
+ "props": [
9695
+ {
9696
+ "name": "label",
9697
+ "type": "string",
9698
+ "required": true,
9699
+ "default": null,
9700
+ "description": "What the picture shows, read by screen readers: \"Kaeso 0.3.0\"."
9701
+ },
9702
+ {
9703
+ "name": "seed",
9704
+ "type": "string",
9705
+ "required": true,
9706
+ "default": null,
9707
+ "description": "What the artwork is drawn from when there is no `art`, e.g. `0.3.0`; the same seed always draws the same picture."
9708
+ },
9709
+ {
9710
+ "name": "art",
9711
+ "type": "ReleaseArtSpec",
9712
+ "required": false,
9713
+ "default": null,
9714
+ "description": "The release's stored artwork, e.g. from `nextReleaseArt`; it always draws the same picture and wins over `seed`."
9715
+ },
9716
+ {
9717
+ "name": "className",
9718
+ "type": "string",
9719
+ "required": false,
9720
+ "default": null,
9721
+ "description": "Classes for the layout of the outer element: margin, width and placement, never its look."
9722
+ },
9723
+ {
9724
+ "name": "eyebrow",
9725
+ "type": "ReactNode",
9726
+ "required": false,
9727
+ "default": null,
9728
+ "description": "Small text above the title, e.g. “What's new in Kaeso”."
9729
+ },
9730
+ {
9731
+ "name": "shape",
9732
+ "type": "\"banner\" | \"wide\"",
9733
+ "required": false,
9734
+ "default": "banner",
9735
+ "description": "The artwork's aspect ratio."
9736
+ },
9737
+ {
9738
+ "name": "title",
9739
+ "type": "ReactNode",
9740
+ "required": false,
9741
+ "default": null,
9742
+ "description": "Large text on the artwork, e.g. the version number."
9743
+ }
9744
+ ],
9745
+ "file": "src/components/release-art/release-art.tsx"
9746
+ }
9747
+ ],
9748
+ "variants": {
9749
+ "RELEASE_ART": {
9750
+ "axes": {
9751
+ "shape": {
9752
+ "banner": "16:9: the head of a dialog or a card (default)",
9753
+ "wide": "21:9: a wide strip above a page's content"
9754
+ }
9755
+ },
9756
+ "defaults": {
9757
+ "shape": "banner"
9758
+ }
9759
+ }
9760
+ }
9761
+ },
9686
9762
  {
9687
9763
  "entry": "resource-list",
9688
9764
  "kind": "blocks",
@@ -11077,6 +11153,13 @@
11077
11153
  "default": null,
11078
11154
  "description": "Classes for the layout of the outer element: margin, width and placement, never its look."
11079
11155
  },
11156
+ {
11157
+ "name": "icon",
11158
+ "type": "IconSvgElement",
11159
+ "required": false,
11160
+ "default": null,
11161
+ "description": "A mark before the word in the same color, e.g. `icons.success` for “Up to date”."
11162
+ },
11080
11163
  {
11081
11164
  "name": "size",
11082
11165
  "type": "\"md\" | \"sm\"",
@@ -11112,6 +11195,13 @@
11112
11195
  "default": null,
11113
11196
  "description": "Classes for the layout of the outer element: margin, width and placement, never its look."
11114
11197
  },
11198
+ {
11199
+ "name": "icon",
11200
+ "type": "IconSvgElement",
11201
+ "required": false,
11202
+ "default": null,
11203
+ "description": "A mark before the word in the same color, e.g. `icons.success` for “Up to date”."
11204
+ },
11115
11205
  {
11116
11206
  "name": "size",
11117
11207
  "type": "\"md\" | \"sm\"",
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component registry
2
2
 
3
- Version 0.2.1. Generated from the component types, their descriptions and variants; do not edit.
3
+ Version 0.2.2. Generated from the component types, their descriptions and variants; do not edit.
4
4
 
5
5
  ## app-frame
6
6
 
@@ -2260,6 +2260,26 @@ Choices with descriptions as rows in a settings group.
2260
2260
  | `orientation` | `"horizontal" \| "vertical"` | `vertical` | Lays the items out in a row (`horizontal`) or a column (`vertical`). |
2261
2261
  | `value` | `string` | | The chosen option, when you control it. |
2262
2262
 
2263
+ ## release-art
2264
+
2265
+ `import { ReleaseArt } from "@logicplanes/kaeso-ui/release-art";`
2266
+
2267
+ - **shape** (release_art): `banner` (default) — 16:9: the head of a dialog or a card (default); `wide` — 21:9: a wide strip above a page's content
2268
+
2269
+ ### ReleaseArt
2270
+
2271
+ A release's artwork: flat geometric art in one of eight styles and Kaeso's palettes, drawn from a stored art spec or a seed, with an optional title floating on it.
2272
+
2273
+ | Prop | Type | Default | Description |
2274
+ |---|---|---|---|
2275
+ | `label` * | `string` | | What the picture shows, read by screen readers: "Kaeso 0.3.0". |
2276
+ | `seed` * | `string` | | What the artwork is drawn from when there is no `art`, e.g. `0.3.0`; the same seed always draws the same picture. |
2277
+ | `art` | `ReleaseArtSpec` | | The release's stored artwork, e.g. from `nextReleaseArt`; it always draws the same picture and wins over `seed`. |
2278
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2279
+ | `eyebrow` | `ReactNode` | | Small text above the title, e.g. “What's new in Kaeso”. |
2280
+ | `shape` | `"banner" \| "wide"` | `banner` | The artwork's aspect ratio. |
2281
+ | `title` | `ReactNode` | | Large text on the artwork, e.g. the version number. |
2282
+
2263
2283
  ## resource-list
2264
2284
 
2265
2285
  `import { ResourceList } from "@logicplanes/kaeso-ui/blocks/resource-list";`
@@ -2637,6 +2657,7 @@ The same component under its plain name.
2637
2657
  |---|---|---|---|
2638
2658
  | `children` | `ReactNode` | | The word that carries the meaning. |
2639
2659
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2660
+ | `icon` | `IconSvgElement` | | A mark before the word in the same color, e.g. `icons.success` for “Up to date”. |
2640
2661
  | `size` | `"md" \| "sm"` | `md` | The text size. |
2641
2662
  | `tone` | `"neutral" \| "success" \| "warning" \| "danger" \| "info"` | `neutral` | The status it marks. |
2642
2663
 
@@ -2648,6 +2669,7 @@ A status word: "Active", "Expiring", "Down".
2648
2669
  |---|---|---|---|
2649
2670
  | `children` | `ReactNode` | | The word that carries the meaning. |
2650
2671
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2672
+ | `icon` | `IconSvgElement` | | A mark before the word in the same color, e.g. `icons.success` for “Up to date”. |
2651
2673
  | `size` | `"md" \| "sm"` | `md` | The dot's size. |
2652
2674
  | `tone` | `"neutral" \| "success" \| "warning" \| "danger" \| "info"` | `neutral` | The status the dot marks; keep it next to words that say the same. |
2653
2675
 
package/ai/icons.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Icon vocabulary
2
2
 
3
- Version 0.2.1. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
3
+ Version 0.2.2. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
4
4
 
5
5
  ## Kaeso objects
6
6
 
package/ai/tokens.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui tokens
2
2
 
3
- Version 0.2.1. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
3
+ Version 0.2.2. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
4
4
 
5
5
  ## Neutrals
6
6