prime-ui-kit 0.11.1 → 0.12.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 (56) hide show
  1. package/README.md +2 -1
  2. package/dist/chunks/{chunk-GKX3QAUC.js → chunk-OTOIOHVE.js} +1 -1
  3. package/dist/chunks/{chunk-WDTSHOTD.js → chunk-VOZ7J72X.js} +7 -2
  4. package/dist/chunks/{chunk-CUH6DJ57.js → chunk-YJO3NJIJ.js} +716 -548
  5. package/dist/color-picker.js +2 -2
  6. package/dist/components/index.d.ts +2 -0
  7. package/dist/components/list/List.d.ts +105 -0
  8. package/dist/index.css +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.js +6 -2
  11. package/dist/internal/VisuallyHidden.d.ts +6 -1
  12. package/dist/skill/api-contract.md +1 -1
  13. package/dist/skill/cheatsheet.md +1 -1
  14. package/dist/skill/choosing.md +4 -2
  15. package/dist/skill/components.md +2 -1
  16. package/dist/skill/composition.md +8 -0
  17. package/dist/skill/layouts.md +2 -1
  18. package/dist/skill/patterns/app-shell.module.css +18 -0
  19. package/dist/skill/patterns/app-shell.tsx +301 -0
  20. package/dist/skill/patterns/chat.module.css +0 -16
  21. package/dist/skill/patterns/chat.tsx +16 -19
  22. package/dist/skill/patterns/kanban-board.module.css +28 -0
  23. package/dist/skill/patterns/kanban-board.tsx +618 -0
  24. package/dist/skill/patterns/media-library.module.css +66 -0
  25. package/dist/skill/patterns/media-library.tsx +638 -0
  26. package/dist/skill/patterns/schedule.module.css +22 -0
  27. package/dist/skill/patterns/schedule.tsx +710 -0
  28. package/dist/skill/reference/components/file-upload/COMPONENT.md +3 -1
  29. package/dist/skill/reference/components/list/COMPONENT.md +180 -0
  30. package/dist/skill/reference/components/list/examples/as-link.tsx +37 -0
  31. package/dist/skill/reference/components/list/examples/examples.module.css +18 -0
  32. package/dist/skill/reference/components/list/examples/overflow.tsx +46 -0
  33. package/dist/skill/reference/components/list/examples/overview.tsx +63 -0
  34. package/dist/skill/reference/components/list/examples/sizes.tsx +35 -0
  35. package/dist/skill/reference/components/list/examples/states.tsx +27 -0
  36. package/dist/skill/reference/components/list/examples/with-icon.tsx +60 -0
  37. package/dist/skill/reference/components/page-content/COMPONENT.md +2 -2
  38. package/dist/skill/reference/components/page-content/examples/examples.module.css +5 -12
  39. package/dist/skill/reference/components/page-content/examples/list-detail.tsx +13 -18
  40. package/dist/skill/reference/components/visually-hidden/COMPONENT.md +6 -3
  41. package/dist/skill/reference/components/visually-hidden/examples/overview.tsx +2 -2
  42. package/package.json +2 -2
  43. package/src/components/file-upload/COMPONENT.md +3 -1
  44. package/src/components/list/COMPONENT.md +180 -0
  45. package/src/components/list/examples/as-link.tsx +37 -0
  46. package/src/components/list/examples/examples.module.css +18 -0
  47. package/src/components/list/examples/overflow.tsx +46 -0
  48. package/src/components/list/examples/overview.tsx +63 -0
  49. package/src/components/list/examples/sizes.tsx +35 -0
  50. package/src/components/list/examples/states.tsx +27 -0
  51. package/src/components/list/examples/with-icon.tsx +60 -0
  52. package/src/components/page-content/COMPONENT.md +2 -2
  53. package/src/components/page-content/examples/examples.module.css +5 -12
  54. package/src/components/page-content/examples/list-detail.tsx +13 -18
  55. package/src/components/visually-hidden/COMPONENT.md +6 -3
  56. package/src/components/visually-hidden/examples/overview.tsx +2 -2
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5-3178c6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
7
7
 
8
8
  **A calm, precise React 19 UI kit for product interfaces** — admin panels, dashboards, settings, forms
9
- and data tables. 77 components on one design contract, one API vocabulary and one set of tokens, so
9
+ and data tables. 78 components on one design contract, one API vocabulary and one set of tokens, so
10
10
  every screen you build looks like it was drawn by the same hand.
11
11
 
12
12
  - **Graphite design language.** Depth from fill, not lines — a surface ladder where every nested
@@ -271,6 +271,7 @@ accessibility, examples and common mistakes.
271
271
  | [**Tabs**](https://github.com/esurkov1/prime-ui/blob/main/src/components/tabs/COMPONENT.md) | Tabs for navigating between content panels of one screen. |
272
272
  | [**Breadcrumb**](https://github.com/esurkov1/prime-ui/blob/main/src/components/breadcrumb/COMPONENT.md) | Breadcrumbs: the path to the current page. |
273
273
  | [**Pagination**](https://github.com/esurkov1/prime-ui/blob/main/src/components/pagination/COMPONENT.md) | Page-by-page navigation: arrows, page numbers with ellipsis and a compact «3 / 12» view. |
274
+ | [**List**](https://github.com/esurkov1/prime-ui/blob/main/src/components/list/COMPONENT.md) | A selectable list of rows — the list half of a list + detail screen: conversations, tickets, mail, records. |
274
275
  | [**Stepper**](https://github.com/esurkov1/prime-ui/blob/main/src/components/stepper/COMPONENT.md) | Steps of a multi-step process with pending, active, completed and danger statuses. |
275
276
  | [**Sidebar**](https://github.com/esurkov1/prime-ui/blob/main/src/layout/sidebar/COMPONENT.md) | App side navigation in three modes — expanded, compact, hidden — and an off-canvas panel on narrow screens. |
276
277
  | [**BottomNav**](https://github.com/esurkov1/prime-ui/blob/main/src/layout/bottom-nav/COMPONENT.md) | Phone navigation bar: 2–6 sections, flat or a floating glass capsule, with an optional round action. |
@@ -17,7 +17,7 @@ import {
17
17
  useControllableState,
18
18
  useFieldFrame,
19
19
  useInheritedDisabled
20
- } from "./chunk-WDTSHOTD.js";
20
+ } from "./chunk-VOZ7J72X.js";
21
21
  import {
22
22
  cx
23
23
  } from "./chunk-Q3BFRQHZ.js";
@@ -134,8 +134,13 @@ var VisuallyHidden_default = {
134
134
  // src/internal/VisuallyHidden.tsx
135
135
  import { jsx } from "react/jsx-runtime";
136
136
  var visuallyHiddenClass = VisuallyHidden_default.root;
137
- function VisuallyHidden({ className, ...rest }) {
138
- return /* @__PURE__ */ jsx("span", { className: cx(VisuallyHidden_default.root, className), ...rest });
137
+ function VisuallyHidden({ className, live, ...rest }) {
138
+ const region = live ? {
139
+ role: live === "assertive" ? "alert" : "status",
140
+ "aria-live": live,
141
+ "aria-atomic": true
142
+ } : null;
143
+ return /* @__PURE__ */ jsx("span", { className: cx(VisuallyHidden_default.root, className), ...region, ...rest });
139
144
  }
140
145
  VisuallyHidden.displayName = "VisuallyHidden";
141
146