@reddb-io/ui-kit 0.3.2 → 0.3.3
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/package.json +3 -2
- package/src/lib/index.ts +19 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reddb-io/ui-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Low-level RedDB UI design-system primitives.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"typescript": "^5.7.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"tailwind-variants": "^2.1.0"
|
|
31
|
+
"tailwind-variants": "^2.1.0",
|
|
32
|
+
"@reddb-io/kit-app": "0.0.0"
|
|
32
33
|
},
|
|
33
34
|
"engines": {
|
|
34
35
|
"node": ">=20"
|
package/src/lib/index.ts
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
// ui-kit is the alias layer over the vendored DS application Kit (ADR 0002 /
|
|
2
|
+
// Brand ADR 0006 no-flag-day seam): call sites keep importing @reddb-io/ui-kit
|
|
3
|
+
// while each export resolves to the DS component when compatible, or to the
|
|
4
|
+
// local override when red-ui deliberately diverges (documented per export).
|
|
5
|
+
export { Kbd, NavItem, SplitView } from "@reddb-io/kit-app";
|
|
6
|
+
// Local overrides — each is a recorded divergence, reconciled at its own pace
|
|
7
|
+
// (Brand ADR 0006: one diff per component, never a silent fork):
|
|
8
|
+
// - Button: keeps the `danger` variant (Brand ships no feedback colors yet)
|
|
9
|
+
// and red-ui's ghost-default, denser sizing until the DS Density axis lands.
|
|
10
|
+
// - LoadingState: red-ui's spinner respects prefers-reduced-motion
|
|
11
|
+
// (motion-safe:); the DS one does not yet — kept local, gap filed upstream.
|
|
12
|
+
// - ListRow / SectionHeading / Pill / EmptyState: red-ui's slot/prop APIs
|
|
13
|
+
// (hint, wide, icon+meta, tone, action) drifted from the DS shape; kept
|
|
14
|
+
// local until mapped or upstreamed.
|
|
15
|
+
// - Badge (tone) / Card (floating) / NodeBadge (label): same API drift —
|
|
16
|
+
// red-ui call sites use props the DS shapes don't carry; kept local until
|
|
17
|
+
// the call sites migrate to the DS API in their own slice.
|
|
2
18
|
export { default as Badge } from "./Badge.svelte";
|
|
3
19
|
export { default as Card } from "./Card.svelte";
|
|
4
20
|
export { default as NodeBadge } from "./NodeBadge.svelte";
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
21
|
+
export { default as Button } from "./Button.svelte";
|
|
22
|
+
export { default as LoadingState } from "./LoadingState.svelte";
|
|
7
23
|
export { default as ListRow } from "./ListRow.svelte";
|
|
8
24
|
export { default as SectionHeading } from "./SectionHeading.svelte";
|
|
9
25
|
export { default as Pill } from "./Pill.svelte";
|
|
10
|
-
export { default as NavItem } from "./NavItem.svelte";
|
|
11
26
|
export { default as EmptyState } from "./EmptyState.svelte";
|
|
12
|
-
export { default as LoadingState } from "./LoadingState.svelte";
|
|
13
27
|
export {
|
|
14
28
|
splitViewGridClass,
|
|
15
29
|
isSearchShortcut,
|