prime-ui-kit 0.11.0 → 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.
- package/README.md +2 -1
- package/bin/prime-ui-kit.js +0 -0
- package/dist/chunks/{chunk-GKX3QAUC.js → chunk-OTOIOHVE.js} +1 -1
- package/dist/chunks/{chunk-WDTSHOTD.js → chunk-VOZ7J72X.js} +7 -2
- package/dist/chunks/{chunk-CUH6DJ57.js → chunk-YJO3NJIJ.js} +716 -548
- package/dist/color-picker.js +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/list/List.d.ts +105 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/internal/VisuallyHidden.d.ts +6 -1
- package/dist/skill/api-contract.md +1 -1
- package/dist/skill/cheatsheet.md +1 -1
- package/dist/skill/choosing.md +4 -2
- package/dist/skill/components.md +2 -1
- package/dist/skill/composition.md +8 -0
- package/dist/skill/layouts.md +2 -1
- package/dist/skill/patterns/app-shell.module.css +18 -0
- package/dist/skill/patterns/app-shell.tsx +301 -0
- package/dist/skill/patterns/chat.module.css +0 -16
- package/dist/skill/patterns/chat.tsx +16 -19
- package/dist/skill/patterns/kanban-board.module.css +28 -0
- package/dist/skill/patterns/kanban-board.tsx +618 -0
- package/dist/skill/patterns/media-library.module.css +66 -0
- package/dist/skill/patterns/media-library.tsx +638 -0
- package/dist/skill/patterns/schedule.module.css +22 -0
- package/dist/skill/patterns/schedule.tsx +710 -0
- package/dist/skill/reference/components/file-upload/COMPONENT.md +3 -1
- package/dist/skill/reference/components/list/COMPONENT.md +180 -0
- package/dist/skill/reference/components/list/examples/as-link.tsx +37 -0
- package/dist/skill/reference/components/list/examples/examples.module.css +18 -0
- package/dist/skill/reference/components/list/examples/overflow.tsx +46 -0
- package/dist/skill/reference/components/list/examples/overview.tsx +63 -0
- package/dist/skill/reference/components/list/examples/sizes.tsx +35 -0
- package/dist/skill/reference/components/list/examples/states.tsx +27 -0
- package/dist/skill/reference/components/list/examples/with-icon.tsx +60 -0
- package/dist/skill/reference/components/page-content/COMPONENT.md +2 -2
- package/dist/skill/reference/components/page-content/examples/examples.module.css +5 -12
- package/dist/skill/reference/components/page-content/examples/list-detail.tsx +13 -18
- package/dist/skill/reference/components/visually-hidden/COMPONENT.md +6 -3
- package/dist/skill/reference/components/visually-hidden/examples/overview.tsx +2 -2
- package/package.json +3 -3
- package/src/components/file-upload/COMPONENT.md +3 -1
- package/src/components/list/COMPONENT.md +180 -0
- package/src/components/list/examples/as-link.tsx +37 -0
- package/src/components/list/examples/examples.module.css +18 -0
- package/src/components/list/examples/overflow.tsx +46 -0
- package/src/components/list/examples/overview.tsx +63 -0
- package/src/components/list/examples/sizes.tsx +35 -0
- package/src/components/list/examples/states.tsx +27 -0
- package/src/components/list/examples/with-icon.tsx +60 -0
- package/src/components/page-content/COMPONENT.md +2 -2
- package/src/components/page-content/examples/examples.module.css +5 -12
- package/src/components/page-content/examples/list-detail.tsx +13 -18
- package/src/components/visually-hidden/COMPONENT.md +6 -3
- package/src/components/visually-hidden/examples/overview.tsx +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](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.
|
|
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. |
|
package/bin/prime-ui-kit.js
CHANGED
|
File without changes
|
|
@@ -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
|
-
|
|
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
|
|