@estiva-app/ui 0.112.0 → 0.114.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/NavItem.d.ts +8 -1
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/PreviewCard.d.ts +9 -2
- package/dist/PreviewCard.d.ts.map +1 -1
- package/dist/UnreadDot.d.ts +7 -1
- package/dist/UnreadDot.d.ts.map +1 -1
- package/dist/index.js +216 -192
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/registry.json +19 -1
- package/src/NavItem.mdx +8 -0
- package/src/NavItem.stories.tsx +15 -0
- package/src/NavItem.test.tsx +37 -0
- package/src/NavItem.tsx +22 -5
- package/src/PreviewCard.mdx +8 -0
- package/src/PreviewCard.stories.tsx +25 -0
- package/src/PreviewCard.test.tsx +72 -3
- package/src/PreviewCard.tsx +42 -3
- package/src/UnreadDot.mdx +1 -0
- package/src/UnreadDot.stories.tsx +3 -0
- package/src/UnreadDot.test.tsx +5 -0
- package/src/UnreadDot.tsx +8 -3
- package/stories/Choosing.mdx +2 -2
package/dist/NavItem.d.ts
CHANGED
|
@@ -70,6 +70,13 @@ export interface NavItemProps extends Omit<ComponentPropsWithoutRef<'a'>, 'href'
|
|
|
70
70
|
unread?: boolean;
|
|
71
71
|
/** With `unread`: the warning badge in the dot's place. */
|
|
72
72
|
urgent?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* More about the row, in the package's `PreviewCard` while the row itself is pointed at — never the rows under it —
|
|
75
|
+
* such as a short list of what is new there. Unlike `tooltip`, it holds content the pointer can move into. The card
|
|
76
|
+
* opens on the whole row, the ⋮ included, so a dot the ⋮ steps aside for is not lost as the pointer arrives. With a
|
|
77
|
+
* preview the label draws no `tooltip`: one surface per hover. Absent, no card.
|
|
78
|
+
*/
|
|
79
|
+
preview?: ReactNode;
|
|
73
80
|
/** Rows under this one, folding under it: `NavItem`s. While the row is pointed at or focused, its icon becomes the arrow. */
|
|
74
81
|
children?: ReactNode;
|
|
75
82
|
/** With `children`: open unless told otherwise. */
|
|
@@ -92,5 +99,5 @@ export interface NavItemProps extends Omit<ComponentPropsWithoutRef<'a'>, 'href'
|
|
|
92
99
|
onPlainClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
93
100
|
className?: string;
|
|
94
101
|
}
|
|
95
|
-
export declare function NavItem({ label, href, count, countLabel, active, icon, menu, menuLabel, action, hint, tooltip, unread, urgent, children, defaultOpen, open: openProp, onOpenChange, openFor, onPlainClick, className, onClick, ...props }: NavItemProps): import("react").JSX.Element;
|
|
102
|
+
export declare function NavItem({ label, href, count, countLabel, active, icon, menu, menuLabel, action, hint, tooltip, unread, urgent, preview, children, defaultOpen, open: openProp, onOpenChange, openFor, onPlainClick, className, onClick, ...props }: NavItemProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
96
103
|
//# sourceMappingURL=NavItem.d.ts.map
|
package/dist/NavItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../src/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,wBAAwB,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../src/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,wBAAwB,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAWvG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,WAAW,YAAa,S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K,EACL,IAAI,EACJ,KAAK,EACL,UAAU,EACV,MAAc,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,IAAI,EACJ,OAAO,EACP,MAAc,EACd,MAAc,EACd,OAAO,EACP,QAAQ,EACR,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,YAAY,+TAyLd"}
|
package/dist/PreviewCard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* More of a thing, on hover — a card beside a row that is only a snippet.
|
|
4
4
|
* New at stage 4 (2026-09-07).
|
|
@@ -41,6 +41,13 @@ export interface PreviewCardProps {
|
|
|
41
41
|
contentClassName?: string;
|
|
42
42
|
/** Extra classes on the trigger wrapper — e.g. `block w-full` for a row. */
|
|
43
43
|
wrapperClassName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* A tap on the trigger opens the card, and a second tap closes it, for a
|
|
46
|
+
* touch screen, where nothing hovers (ACT-4: the dot beside a page's title).
|
|
47
|
+
* A mouse still opens it by resting. Off by default: a row's card stays
|
|
48
|
+
* hover-only, because a tap on a row opens the row.
|
|
49
|
+
*/
|
|
50
|
+
openOnTap?: boolean;
|
|
44
51
|
}
|
|
45
|
-
export declare function PreviewCard({ content, children, side, delay, closeDelay, className, contentClassName, wrapperClassName }: PreviewCardProps): import("react").JSX.Element;
|
|
52
|
+
export declare function PreviewCard({ content, children, side, delay, closeDelay, className, contentClassName, wrapperClassName, openOnTap }: PreviewCardProps): import("react").JSX.Element;
|
|
46
53
|
//# sourceMappingURL=PreviewCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewCard.d.ts","sourceRoot":"","sources":["../src/PreviewCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PreviewCard.d.ts","sourceRoot":"","sources":["../src/PreviewCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAM3E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2DAA2D;IAC3D,OAAO,EAAE,SAAS,CAAA;IAClB,iDAAiD;IACjD,QAAQ,EAAE,SAAS,CAAA;IACnB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC1C,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAmBD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAc,EAAE,KAAkB,EAAE,UAAwB,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAiB,EAAE,EAAE,gBAAgB,+BAiElM"}
|
package/dist/UnreadDot.d.ts
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Purely visual: the row that draws it says "unread" in its own accessible
|
|
7
7
|
* name, because a coloured disc reads as nothing to a screen reader.
|
|
8
|
+
*
|
|
9
|
+
* `quiet` draws the same 6px as a ring with nothing new: the dot beside a
|
|
10
|
+
* page's title, which is always there because it opens the page's list
|
|
11
|
+
* (ACT-4; the activity indicator prototype Miky approved, 10 November). A
|
|
12
|
+
* quiet dot is not marked `data-unread`.
|
|
8
13
|
*/
|
|
9
|
-
export declare function UnreadDot({ className }: {
|
|
14
|
+
export declare function UnreadDot({ className, quiet }: {
|
|
10
15
|
className?: string;
|
|
16
|
+
quiet?: boolean;
|
|
11
17
|
}): import("react").JSX.Element;
|
|
12
18
|
//# sourceMappingURL=UnreadDot.d.ts.map
|
package/dist/UnreadDot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnreadDot.d.ts","sourceRoot":"","sources":["../src/UnreadDot.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"UnreadDot.d.ts","sourceRoot":"","sources":["../src/UnreadDot.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,KAAa,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,+BAM9F"}
|