@estiva-app/ui 0.93.0 → 0.95.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/CollapsibleSection.d.ts +19 -2
- package/dist/CollapsibleSection.d.ts.map +1 -1
- package/dist/LinkRow.d.ts.map +1 -1
- package/dist/NavItem.d.ts +7 -1
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/NavTree.d.ts +25 -3
- package/dist/NavTree.d.ts.map +1 -1
- package/dist/PartCard.d.ts +4 -7
- package/dist/PartCard.d.ts.map +1 -1
- package/dist/ShowMore.d.ts +1 -7
- package/dist/ShowMore.d.ts.map +1 -1
- package/dist/index.js +280 -224
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/registry.json +26 -14
- package/src/CollapsibleSection.tsx +30 -3
- package/src/LinkCard.test.tsx +5 -2
- package/src/LinkRow.mdx +1 -1
- package/src/LinkRow.tsx +10 -5
- package/src/NavItem.tsx +9 -0
- package/src/NavTree.mdx +31 -2
- package/src/NavTree.stories.tsx +140 -2
- package/src/NavTree.test.tsx +75 -0
- package/src/NavTree.tsx +102 -10
- package/src/PartCard.mdx +1 -1
- package/src/PartCard.stories.tsx +2 -9
- package/src/PartCard.test.tsx +13 -1
- package/src/PartCard.tsx +6 -9
- package/src/ShowMore.mdx +2 -5
- package/src/ShowMore.stories.tsx +0 -14
- package/src/ShowMore.test.tsx +0 -16
- package/src/ShowMore.tsx +2 -16
|
@@ -17,7 +17,10 @@ import { type SectionAction } from './SectionHeader';
|
|
|
17
17
|
* - `open` + `onOpenChange`: the caller owns it.
|
|
18
18
|
*
|
|
19
19
|
* A closed section stays closed whatever is selected inside it (her
|
|
20
|
-
* ruling, 2026-09-09) — the reader closed it
|
|
20
|
+
* ruling, 2026-09-09) — the reader closed it — until `openFor` names a new
|
|
21
|
+
* current item inside it: opening a file shows where it lives, even in a
|
|
22
|
+
* section closed by hand (Katerina, 30 October). Once per item, so closed
|
|
23
|
+
* again it stays closed until another opens.
|
|
21
24
|
*/
|
|
22
25
|
export interface CollapsibleSectionProps {
|
|
23
26
|
title: string;
|
|
@@ -37,6 +40,13 @@ export interface CollapsibleSectionProps {
|
|
|
37
40
|
pending?: boolean;
|
|
38
41
|
/** Remember open or closed in this browser, under this key. The app prefixes it. */
|
|
39
42
|
storageKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The current item, when it sits in here: the section opens each time this
|
|
45
|
+
* names a new one, as a click would — remembered under `storageKey`, told to
|
|
46
|
+
* `onOpenChange`. Closed again by hand, it stays closed until another item
|
|
47
|
+
* opens. `NavTree` passes it.
|
|
48
|
+
*/
|
|
49
|
+
openFor?: string;
|
|
40
50
|
/** 16px, before the title; the arrow takes its place on hover — `SectionHeader`'s. */
|
|
41
51
|
icon?: ReactNode;
|
|
42
52
|
/** Beside the title and always visible, before the actions — a count. `SectionHeader`'s. */
|
|
@@ -67,5 +77,12 @@ export interface CollapsibleSectionProps {
|
|
|
67
77
|
/** On the box the rows sit in: the gap between them. */
|
|
68
78
|
contentClassName?: string;
|
|
69
79
|
}
|
|
70
|
-
|
|
80
|
+
/**
|
|
81
|
+
* `openFor`, for a section and a row with rows under it: open, as a click
|
|
82
|
+
* would, each time it names a new item. An effect, not a render: opening tells
|
|
83
|
+
* the caller (`onOpenChange`), and a parent is never set while a child draws.
|
|
84
|
+
* Gone and back — the item opened, another elsewhere, then it again — is new.
|
|
85
|
+
*/
|
|
86
|
+
export declare function useOpenFor(openFor: string | undefined, open: boolean, setOpen: (open: boolean) => void): void;
|
|
87
|
+
export declare function CollapsibleSection({ title, defaultOpen, open: openProp, onOpenChange, pending, storageKey, openFor, icon, trailing, actions, menu, menuLabel, showActions, look, indent, children, className, contentClassName }: CollapsibleSectionProps): import("react").JSX.Element;
|
|
71
88
|
//# sourceMappingURL=CollapsibleSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../src/CollapsibleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../src/CollapsibleSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGnE,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGnE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,sFAAsF;IACtF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mGAAmG;IACnG,OAAO,CAAC,EAAE,aAAa,EAAE,CAAA;IACzB,kHAAkH;IAClH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,gBAAgB;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAKD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,QAQtG;AAqBD,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,WAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAe,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,IAAgB,EAAE,MAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,uBAAuB,+BA+B5R"}
|
package/dist/LinkRow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkRow.d.ts","sourceRoot":"","sources":["../src/LinkRow.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LinkRow.d.ts","sourceRoot":"","sources":["../src/LinkRow.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAsB,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAA;AAO3F,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,UAAU,CAAA;IAChB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,yEAAyE;IACzE,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,oGAAoG;IACpG,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAY,EAAE,OAAe,EAAE,EAAE,oBAAoB,+BAE1G;AAED,yIAAyI;AACzI,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAY,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,+BA2BrL;AAED,sJAAsJ;AACtJ,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,KAAa,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,+BAOlF;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAA;IACf,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,OAAc,EAAE,EAAE,YAAY,+BA+E7D"}
|
package/dist/NavItem.d.ts
CHANGED
|
@@ -77,7 +77,13 @@ export interface NavItemProps extends Omit<ComponentPropsWithoutRef<'a'>, 'href'
|
|
|
77
77
|
/** With `children`: the caller owns the state. */
|
|
78
78
|
open?: boolean;
|
|
79
79
|
onOpenChange?: (open: boolean) => void;
|
|
80
|
+
/**
|
|
81
|
+
* With `children`: the current item, when it sits under this row. The row
|
|
82
|
+
* opens each time this names a new one, as a click would; closed again by
|
|
83
|
+
* hand, it stays closed until another opens. `NavTree` passes it.
|
|
84
|
+
*/
|
|
85
|
+
openFor?: string;
|
|
80
86
|
className?: string;
|
|
81
87
|
}
|
|
82
|
-
export declare function NavItem({ label, href, count, countLabel, active, icon, menu, menuLabel, action, hint, tooltip, unread, urgent, children, defaultOpen, open: openProp, onOpenChange, className, onClick, ...props }: NavItemProps): import("react").JSX.Element;
|
|
88
|
+
export declare function NavItem({ label, href, count, countLabel, active, icon, menu, menuLabel, action, hint, tooltip, unread, urgent, children, defaultOpen, open: openProp, onOpenChange, openFor, className, onClick, ...props }: NavItemProps): import("react").JSX.Element;
|
|
83
89
|
//# 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,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,SAAS,EAAE,MAAM,OAAO,CAAA;AAStF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5F,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,4GAA4G;IAC5G,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oKAAoK;IACpK,MAAM,CAAC,EAAE,aAAa,GAAG;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAChD,yGAAyG;IACzG,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,8IAA8I;IAC9I,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uJAAuJ;IACvJ,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kDAAkD;IAClD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,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,QAAQ,EACR,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,OAAO,EACP,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,YAAY,+BAiLd"}
|
package/dist/NavTree.d.ts
CHANGED
|
@@ -77,8 +77,19 @@ export interface NavTreeProps {
|
|
|
77
77
|
* is absent.
|
|
78
78
|
*/
|
|
79
79
|
children?: ReactNode;
|
|
80
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* The row that is current: `active`. Each time it names a new row, its
|
|
82
|
+
* group and every row above it open, closing nothing — a group closed by
|
|
83
|
+
* hand too — and the column scrolls to it once they have slid open.
|
|
84
|
+
*/
|
|
81
85
|
selected?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The row the current one sits under, while the tree does not draw the
|
|
88
|
+
* current one: its rows are not read yet, or it is not a row here. The tree
|
|
89
|
+
* opens onto that row the same way, opens the row itself so its rows are
|
|
90
|
+
* read, and marks nothing for it.
|
|
91
|
+
*/
|
|
92
|
+
selectedParent?: string;
|
|
82
93
|
/** A row was clicked. A router app prevents the default and navigates. */
|
|
83
94
|
onSelect?: (node: NavTreeNode, event: MouseEvent<HTMLAnchorElement>) => void;
|
|
84
95
|
/** What to say when `groups` is empty. The words are the caller's; absent, nothing is said. */
|
|
@@ -88,6 +99,8 @@ export interface NavTreeProps {
|
|
|
88
99
|
}
|
|
89
100
|
/** How long the pointer rests on a group before `onIntent` (Peek's FolderTree, 150ms). */
|
|
90
101
|
export declare const NAV_TREE_INTENT_MS = 150;
|
|
102
|
+
/** How long the column waits to scroll to the current row: the rows above it slide open in 150ms. */
|
|
103
|
+
export declare const NAV_TREE_REVEAL_MS = 200;
|
|
91
104
|
export interface NavTreeSectionProps {
|
|
92
105
|
title: string;
|
|
93
106
|
/** Marks the group's box as `data-nav-group`, for tests and photo runs to find it. */
|
|
@@ -119,6 +132,8 @@ export interface NavTreeSectionProps {
|
|
|
119
132
|
pending?: boolean;
|
|
120
133
|
/** Remember it open or closed in this browser, under this key. */
|
|
121
134
|
storageKey?: string;
|
|
135
|
+
/** The current item, when it sits in this group: the group opens each time this names a new one — `CollapsibleSection`'s. */
|
|
136
|
+
openFor?: string;
|
|
122
137
|
/** The rows: `NavItem`s. */
|
|
123
138
|
children?: ReactNode;
|
|
124
139
|
}
|
|
@@ -129,7 +144,7 @@ export interface NavTreeSectionProps {
|
|
|
129
144
|
* `groups`; an app whose groups each read their own data draws them itself,
|
|
130
145
|
* as `NavTree`'s children.
|
|
131
146
|
*/
|
|
132
|
-
export declare function NavTreeSection({ id, title, message, loading, pending, trailing, actions, menu, icon, defaultOpen, open, onOpenChange, storageKey, onIntent, children }: NavTreeSectionProps): import("react").JSX.Element;
|
|
147
|
+
export declare function NavTreeSection({ id, title, message, loading, pending, trailing, actions, menu, icon, defaultOpen, open, onOpenChange, storageKey, openFor, onIntent, children }: NavTreeSectionProps): import("react").JSX.Element;
|
|
133
148
|
/**
|
|
134
149
|
* A sidebar's tree, from one nested list (Katerina, 2 October: Leaf's folder
|
|
135
150
|
* tree, then Peek's and Ship's): a quiet label with its actions, then each
|
|
@@ -138,6 +153,13 @@ export declare function NavTreeSection({ id, title, message, loading, pending, t
|
|
|
138
153
|
* arrow that folds what is under it. Groups and rows can be read when they
|
|
139
154
|
* open. Only the group that holds the current row starts open, unless the
|
|
140
155
|
* caller owns it.
|
|
156
|
+
*
|
|
157
|
+
* Opening a row shows where it lives (Katerina, 30 October: a file opened
|
|
158
|
+
* from another app's card, in a new tab, sat marked inside a shut Folder):
|
|
159
|
+
* each new current row opens its group and the rows above it, even those
|
|
160
|
+
* closed by hand, once — closed again, they stay closed until another opens —
|
|
161
|
+
* and the column scrolls to it. Groups the app draws itself take `openFor`
|
|
162
|
+
* for that; the scroll is the tree's either way.
|
|
141
163
|
*/
|
|
142
|
-
export declare function NavTree({ title, titleActions, groups, children, selected, onSelect, emptyMessage, storageKey }: NavTreeProps): import("react").JSX.Element;
|
|
164
|
+
export declare function NavTree({ title, titleActions, groups, children, selected, selectedParent, onSelect, emptyMessage, storageKey }: NavTreeProps): import("react").JSX.Element;
|
|
143
165
|
//# sourceMappingURL=NavTree.d.ts.map
|
package/dist/NavTree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../src/NavTree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGnE,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA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AAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAkB,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAyCnN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAiB,EAAE,UAAU,EAAE,EAAE,YAAY,+BAmCjJ"}
|
package/dist/PartCard.d.ts
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
* Look C (Katerina, 29 Oct): what it is part of as a card starts, its kind in a
|
|
9
9
|
* file's 36px tile, its title and "A part of ABC-2" under it; then the blocks
|
|
10
10
|
* behind a quote bar that starts where the tile does.
|
|
11
|
+
*
|
|
12
|
+
* The title is the way to it, in the app it lives in: no "Open in …" button
|
|
13
|
+
* beside the blocks (Katerina, 31 Oct: it said again what the title does).
|
|
11
14
|
*/
|
|
12
15
|
import { type ReactNode } from 'react';
|
|
13
16
|
import { type LinkedKind } from './linked';
|
|
@@ -38,14 +41,8 @@ export interface PartCardProps {
|
|
|
38
41
|
};
|
|
39
42
|
/** The part's blocks, drawn by the app. */
|
|
40
43
|
children?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* The way out to where the part lives: a small `Button` with a leading icon ("Open in Leaf"). Drawn under the
|
|
43
|
-
* blocks at the right, level with Show more, outside the quote bar (Katerina, 30 Oct: "the vertical line should not
|
|
44
|
-
* be covering the button"). Peek and Ship put it in ShowMore's row inside the blocks before.
|
|
45
|
-
*/
|
|
46
|
-
action?: ReactNode;
|
|
47
44
|
/** Cut the blocks at this height, in px, behind ShowMore's fade and its Show more. Absent, they are drawn whole. */
|
|
48
45
|
maxHeight?: number;
|
|
49
46
|
}
|
|
50
|
-
export declare function PartCard({ state, kind, heading, href, partKey, noun, openIn, children,
|
|
47
|
+
export declare function PartCard({ state, kind, heading, href, partKey, noun, openIn, children, maxHeight }: PartCardProps): import("react").JSX.Element;
|
|
51
48
|
//# sourceMappingURL=PartCard.d.ts.map
|
package/dist/PartCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartCard.d.ts","sourceRoot":"","sources":["../src/PartCard.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"PartCard.d.ts","sourceRoot":"","sources":["../src/PartCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKlD,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAMpD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,eAAe,CAAA;AAE1G,MAAM,WAAW,aAAa;IAC5B,gDAAgD;IAChD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,uCAAuC;IACvC,IAAI,EAAE,UAAU,CAAA;IAChB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wGAAwG;IACxG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8EAA8E;IAC9E,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,oHAAoH;IACpH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAe,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,aAAa,+BAuC3H"}
|
package/dist/ShowMore.d.ts
CHANGED
|
@@ -14,10 +14,6 @@ import { type ReactNode } from 'react';
|
|
|
14
14
|
*
|
|
15
15
|
* Focus arriving inside the cut content opens it: a field or a link there,
|
|
16
16
|
* reached by Tab or a click, is never worked on out of sight.
|
|
17
|
-
*
|
|
18
|
-
* `action` is one more small button on the toggle's row, at its right
|
|
19
|
-
* (Katerina, 8 October: Peek's block card puts "Open in Estiva Ship" level with
|
|
20
|
-
* Show more). The row is drawn for it whether or not the content is cut.
|
|
21
17
|
*/
|
|
22
18
|
export interface ShowMoreProps {
|
|
23
19
|
children: ReactNode;
|
|
@@ -28,11 +24,9 @@ export interface ShowMoreProps {
|
|
|
28
24
|
* inset card and a selected message included. Accepted, and ignored.
|
|
29
25
|
*/
|
|
30
26
|
surface?: 'surface' | 'inset' | 'elevated';
|
|
31
|
-
/** A small muted `Button` with a leading icon, at the right of the toggle's row: the way out to where the content lives. Its words end where the content does. */
|
|
32
|
-
action?: ReactNode;
|
|
33
27
|
/** On the content alone, not the toggle's row under it: PartCard's quote bar runs beside the blocks only. */
|
|
34
28
|
contentClassName?: string;
|
|
35
29
|
className?: string;
|
|
36
30
|
}
|
|
37
|
-
export declare function ShowMore({ children, maxHeight,
|
|
31
|
+
export declare function ShowMore({ children, maxHeight, contentClassName, className }: ShowMoreProps): import("react").JSX.Element;
|
|
38
32
|
//# sourceMappingURL=ShowMore.d.ts.map
|
package/dist/ShowMore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMore.d.ts","sourceRoot":"","sources":["../src/ShowMore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKzE
|
|
1
|
+
{"version":3,"file":"ShowMore.d.ts","sourceRoot":"","sources":["../src/ShowMore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAKzE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,SAAS,CAAA;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;IAC1C,6GAA6G;IAC7G,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,aAAa,+BAyBhG"}
|