@estiva-app/ui 0.95.0 → 0.96.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/AppShell.d.ts +25 -7
- package/dist/AppShell.d.ts.map +1 -1
- package/dist/ArchivedNotice.d.ts +28 -0
- package/dist/ArchivedNotice.d.ts.map +1 -0
- package/dist/Button.d.ts +4 -3
- package/dist/Button.d.ts.map +1 -1
- package/dist/Card.d.ts.map +1 -1
- package/dist/CommentBox.d.ts.map +1 -1
- package/dist/ConversationActions.d.ts +24 -0
- package/dist/ConversationActions.d.ts.map +1 -0
- package/dist/ConversationCard.d.ts +88 -0
- package/dist/ConversationCard.d.ts.map +1 -0
- package/dist/ConversationLayout.d.ts +50 -0
- package/dist/ConversationLayout.d.ts.map +1 -0
- package/dist/ConversationMenu.d.ts +24 -0
- package/dist/ConversationMenu.d.ts.map +1 -0
- package/dist/Divider.d.ts +23 -4
- package/dist/Divider.d.ts.map +1 -1
- package/dist/EditedMarker.d.ts +11 -0
- package/dist/EditedMarker.d.ts.map +1 -0
- package/dist/IconButton.d.ts +3 -3
- package/dist/IconButton.d.ts.map +1 -1
- package/dist/LinkParts.d.ts +3 -1
- package/dist/LinkParts.d.ts.map +1 -1
- package/dist/ListColumn.d.ts +3 -1
- package/dist/ListColumn.d.ts.map +1 -1
- package/dist/MetaText.d.ts +22 -0
- package/dist/MetaText.d.ts.map +1 -0
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/PageHeader.d.ts +50 -0
- package/dist/PageHeader.d.ts.map +1 -0
- package/dist/Panel.d.ts +6 -0
- package/dist/Panel.d.ts.map +1 -1
- package/dist/PinnedComment.d.ts +17 -0
- package/dist/PinnedComment.d.ts.map +1 -0
- package/dist/QuotedLine.d.ts +16 -0
- package/dist/QuotedLine.d.ts.map +1 -0
- package/dist/ReactionHorizon.d.ts +14 -0
- package/dist/ReactionHorizon.d.ts.map +1 -0
- package/dist/RepliesRow.d.ts +26 -0
- package/dist/RepliesRow.d.ts.map +1 -0
- package/dist/ResolveDialog.d.ts +13 -0
- package/dist/ResolveDialog.d.ts.map +1 -0
- package/dist/Select.d.ts +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Skeleton.d.ts +8 -4
- package/dist/Skeleton.d.ts.map +1 -1
- package/dist/Thread.d.ts +38 -0
- package/dist/Thread.d.ts.map +1 -0
- package/dist/TopBar.d.ts +3 -2
- package/dist/TopBar.d.ts.map +1 -1
- package/dist/UrgentMark.d.ts +6 -0
- package/dist/UrgentMark.d.ts.map +1 -0
- package/dist/commentBoxFrame.d.ts +3 -1
- package/dist/commentBoxFrame.d.ts.map +1 -1
- package/dist/conversation.examples.d.ts +52 -0
- package/dist/conversation.examples.d.ts.map +1 -0
- package/dist/editor.js +32 -24
- package/dist/editor.js.map +2 -2
- package/dist/eslint/index.js +2 -1
- package/dist/eslint/index.js.map +2 -2
- package/dist/eslint/no-native-title.d.ts +1 -1
- package/dist/eslint/no-native-title.d.ts.map +1 -1
- package/dist/eslint/no-restyled-part.d.ts.map +1 -1
- package/dist/index.d.ts +18 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1376 -433
- package/dist/index.js.map +4 -4
- package/dist/looks.d.ts +13 -1
- package/dist/looks.d.ts.map +1 -1
- package/dist/threadCard.d.ts +46 -0
- package/dist/threadCard.d.ts.map +1 -0
- package/package.json +1 -1
- package/registry.json +1873 -546
- package/src/AppShell.mdx +24 -10
- package/src/AppShell.stories.tsx +65 -31
- package/src/AppShell.test.tsx +92 -10
- package/src/AppShell.tsx +108 -18
- package/src/ArchivedNotice.mdx +46 -0
- package/src/ArchivedNotice.stories.tsx +52 -0
- package/src/ArchivedNotice.test.tsx +42 -0
- package/src/ArchivedNotice.tsx +71 -0
- package/src/Button.mdx +2 -2
- package/src/Button.tsx +8 -6
- package/src/Card.test.tsx +4 -4
- package/src/Card.tsx +6 -2
- package/src/CommentBox.test.tsx +2 -1
- package/src/CommentBox.tsx +14 -7
- package/src/ConfirmDialog.stories.tsx +12 -0
- package/src/ConversationActions.mdx +47 -0
- package/src/ConversationActions.stories.tsx +39 -0
- package/src/ConversationActions.tsx +96 -0
- package/src/ConversationCard.mdx +72 -0
- package/src/ConversationCard.states.test.tsx +330 -0
- package/src/ConversationCard.stories.tsx +135 -0
- package/src/ConversationCard.test.tsx +159 -0
- package/src/ConversationCard.tsx +522 -0
- package/src/ConversationLayout.mdx +61 -0
- package/src/ConversationLayout.stories.tsx +161 -0
- package/src/ConversationLayout.test.tsx +240 -0
- package/src/ConversationLayout.tsx +233 -0
- package/src/ConversationMenu.mdx +47 -0
- package/src/ConversationMenu.stories.tsx +42 -0
- package/src/ConversationMenu.test.tsx +47 -0
- package/src/ConversationMenu.tsx +57 -0
- package/src/Divider.mdx +36 -1
- package/src/Divider.stories.tsx +57 -0
- package/src/Divider.test.tsx +24 -1
- package/src/Divider.tsx +49 -9
- package/src/EditedMarker.mdx +36 -0
- package/src/EditedMarker.stories.tsx +24 -0
- package/src/EditedMarker.tsx +20 -0
- package/src/IconButton.mdx +2 -1
- package/src/IconButton.tsx +8 -5
- package/src/LinkParts.mdx +4 -0
- package/src/LinkParts.stories.tsx +10 -0
- package/src/LinkParts.tsx +5 -1
- package/src/ListColumn.tsx +9 -3
- package/src/MetaText.mdx +41 -0
- package/src/MetaText.stories.tsx +29 -0
- package/src/MetaText.tsx +38 -0
- package/src/NavItem.tsx +2 -11
- package/src/PageHeader.mdx +123 -0
- package/src/PageHeader.stories.tsx +174 -0
- package/src/PageHeader.test.tsx +99 -0
- package/src/PageHeader.tsx +105 -0
- package/src/Panel.mdx +12 -0
- package/src/Panel.stories.tsx +47 -5
- package/src/Panel.test.tsx +40 -0
- package/src/Panel.tsx +8 -2
- package/src/PinnedComment.mdx +40 -0
- package/src/PinnedComment.stories.tsx +21 -0
- package/src/PinnedComment.tsx +40 -0
- package/src/QuotedLine.mdx +44 -0
- package/src/QuotedLine.stories.tsx +30 -0
- package/src/QuotedLine.test.tsx +34 -0
- package/src/QuotedLine.tsx +33 -0
- package/src/ReactionHorizon.mdx +36 -0
- package/src/ReactionHorizon.stories.tsx +27 -0
- package/src/ReactionHorizon.tsx +27 -0
- package/src/RepliesRow.mdx +45 -0
- package/src/RepliesRow.stories.tsx +33 -0
- package/src/RepliesRow.test.tsx +47 -0
- package/src/RepliesRow.tsx +86 -0
- package/src/ReplyCard.mdx +50 -0
- package/src/ReplyCard.stories.tsx +68 -0
- package/src/ResolveDialog.mdx +44 -0
- package/src/ResolveDialog.stories.tsx +23 -0
- package/src/ResolveDialog.test.tsx +53 -0
- package/src/ResolveDialog.tsx +58 -0
- package/src/Select.tsx +12 -2
- package/src/Skeleton.stories.tsx +4 -1
- package/src/Skeleton.tsx +33 -4
- package/src/Thread.mdx +53 -0
- package/src/Thread.stories.tsx +167 -0
- package/src/Thread.test.tsx +83 -0
- package/src/Thread.tsx +113 -0
- package/src/TopBar.mdx +8 -6
- package/src/TopBar.stories.tsx +4 -3
- package/src/TopBar.tsx +8 -3
- package/src/UrgentMark.mdx +37 -0
- package/src/UrgentMark.stories.tsx +27 -0
- package/src/UrgentMark.tsx +15 -0
- package/src/commentBoxFrame.tsx +8 -4
- package/src/conversation.examples.tsx +135 -0
- package/src/eslint/no-native-title.ts +1 -1
- package/src/eslint/no-restyled-part.ts +1 -0
- package/src/index.ts +19 -2
- package/src/looks.ts +18 -2
- package/src/registry/registry.test.ts +7 -6
- package/src/threadCard.ts +84 -0
- package/stories/Choosing.mdx +21 -1
- package/tokens.css +14 -10
package/dist/looks.d.ts
CHANGED
|
@@ -50,6 +50,14 @@ export declare const SIDEBAR_ROW_TEXT_CLASSES = "text-text-secondary hover:text-
|
|
|
50
50
|
export declare const MUTED_CONTROL_CLASSES = "text-text-secondary hover:bg-bg-hover hover:text-text-primary";
|
|
51
51
|
/** A control that opens a menu: a hover fill, held while its menu is up — PersonTrigger's row, and a ContainerHeader title with a menu. */
|
|
52
52
|
export declare const MENU_TRIGGER_CLASSES = "cursor-pointer rounded-md transition-colors hover:bg-bg-hover data-[popup-open]:bg-bg-hover";
|
|
53
|
+
/**
|
|
54
|
+
* A column that folds sideways, as Peek's rail did (Katerina, 31 October: one fold in every app): 300ms, none under
|
|
55
|
+
* prefers-reduced-motion. Folded, it fades and is then hidden, so nothing in it can be seen once it has gone; with
|
|
56
|
+
* the `transition-[…]` naming `opacity` and `visibility`. AppShell's navigation, and ListColumn closing with it.
|
|
57
|
+
*/
|
|
58
|
+
export declare const FOLD_MOTION_CLASSES = "duration-300 ease-in-out motion-reduce:transition-none";
|
|
59
|
+
export declare const FOLDED_CLASSES = "invisible opacity-0";
|
|
60
|
+
export declare const UNFOLDED_CLASSES = "visible opacity-100";
|
|
53
61
|
/**
|
|
54
62
|
* A panel that slides open and shut on Base UI's Collapsible: Base UI measures
|
|
55
63
|
* it and writes its height to a variable, `auto` again once the slide ends, and
|
|
@@ -62,7 +70,11 @@ export declare const COLLAPSIBLE_PANEL_CLASSES = "h-[var(--collapsible-panel-hei
|
|
|
62
70
|
* `looks.ts`, Katerina 24 September), moved with the comment box. Inset, a hairline,
|
|
63
71
|
* 12px in, 16px between the text and the row under it; the focus ring in Signal.
|
|
64
72
|
*/
|
|
65
|
-
export declare const WRITING_BOX_CLASSES = "relative bg-bg-
|
|
73
|
+
export declare const WRITING_BOX_CLASSES = "relative bg-bg-field border border-border-field rounded-lg p-3 flex flex-col gap-4";
|
|
74
|
+
/** The keys under the send box, in words: "Enter to send · Shift+Enter new line". One line, cut when the room runs out; no key caps. The edit box writes none (Katerina, 1 November). */
|
|
75
|
+
export declare const BOX_HINT_CLASSES = "min-w-0 truncate select-none text-caption text-text-muted signal:font-mono signal:text-menu signal:font-normal signal:tracking-wider";
|
|
76
|
+
/** Signal's focus ring (the glow) on the send box, as on every field. The edit box has no glow and no accent edge (Katerina, 31 October, 1 November). */
|
|
77
|
+
export declare const WRITING_RING_CLASSES = "signal:transition-shadow signal:focus-within:border-border-focus signal:focus-within:shadow-focus-ring";
|
|
66
78
|
/** The 36px tile a file's type sits in: AttachmentCard's, and a link's kind in LinkRow, LinkCard and PartCard (Katerina, 29 Oct). */
|
|
67
79
|
export declare const TYPE_TILE_CLASSES = "size-9 rounded-md bg-bg-active flex items-center justify-center shrink-0 text-text-secondary";
|
|
68
80
|
/** The bar down a quoted part's left edge: PartCard's blocks, and (proposal) a card's latest conversation. */
|
package/dist/looks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"looks.d.ts","sourceRoot":"","sources":["../src/looks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB,2MAA2M,CAAA;AAEzO,wFAAwF;AACxF,eAAO,MAAM,kBAAkB,kDAAkD,CAAA;AAEjF,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,iKAAiK,CAAA;AAEpM,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,4DAA4D,CAAA;AAEjG,kJAAkJ;AAClJ,eAAO,MAAM,kBAAkB;;;CAGrB,CAAA;AAEV,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,uJAAuJ,CAAA;AAEvL,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,qEAAqE,CAAA;AAE1G,iGAAiG;AACjG,eAAO,MAAM,kBAAkB,wDAAwD,CAAA;AAEvF,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,0FAA0F,CAAA;AAExH;;;;GAIG;AACH,eAAO,MAAM,YAAY,kGAAkG,CAAA;AAE3H,qHAAqH;AACrH,eAAO,MAAM,oBAAoB,wEAAwE,CAAA;AAEzG,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,8EAA8E,CAAA;AAE7G,4IAA4I;AAE5I,eAAO,MAAM,mBAAmB,iCAAiC,CAAA;AACjE,eAAO,MAAM,wBAAwB,gDAAgD,CAAA;AAErF,2FAA2F;AAC3F,eAAO,MAAM,qBAAqB,kEAAkE,CAAA;AAEpG,2IAA2I;AAC3I,eAAO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ErD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,kLAAkL,CAAA;AAExN;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,uFAAuF,CAAA;AAEvH,yLAAyL;AACzL,eAAO,MAAM,gBAAgB,yIAAyI,CAAA;AAEtK,yJAAyJ;AACzJ,eAAO,MAAM,oBAAoB,2GAA2G,CAAA;AAE5I,qIAAqI;AACrI,eAAO,MAAM,iBAAiB,iGAAiG,CAAA;AAG/H,8GAA8G;AAC9G,eAAO,MAAM,iBAAiB,0CAA0C,CAAA;AAExE;;;;;;;;;;GAUG;AACH,wIAAwI;AACxI,eAAO,MAAM,sBAAsB,6GAA6G,CAAA;AAEhJ,eAAO,MAAM,gBAAgB,gyBAAitB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Inside a thread drawn as one card (a comment open in one column, its replies under it): its cards draw no new edge
|
|
4
|
+
* of their own, the one card is their edge. Set by ConversationLayout and Thread; read by ConversationCard and ReplyCard.
|
|
5
|
+
*/
|
|
6
|
+
export declare const InThreadCard: import("react").Context<boolean>;
|
|
7
|
+
/** A comment's place in a `ConversationLayout`: whether its thread is open, and how a press opens or closes it. */
|
|
8
|
+
export interface ConversationItemState {
|
|
9
|
+
/** One column: its thread opens under it. Otherwise two columns, beside. */
|
|
10
|
+
under: boolean;
|
|
11
|
+
/** Its thread is the open one. */
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** A press on the card or its replies row: opens its thread; in one column, a second press closes it. */
|
|
14
|
+
toggle: () => void;
|
|
15
|
+
/** Reply: opens its thread, never closes it. */
|
|
16
|
+
show: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Set by ConversationLayout round each comment, read by ConversationCard: so a card opens and closes its thread, says
|
|
20
|
+
* so on its replies row, and is marked while open beside, the same in every app with no wiring of its own.
|
|
21
|
+
*/
|
|
22
|
+
export declare const InConversationItem: import("react").Context<ConversationItemState | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Counts the times a thread has opened in a ConversationLayout. The box at the thread's foot takes the caret each time
|
|
25
|
+
* it changes, at the box's end, without scrolling: the comment that was pressed stays where it is (Katerina, 31
|
|
26
|
+
* October). 0, as outside a layout or for the thread open when the page is drawn: the box waits to be pressed.
|
|
27
|
+
*/
|
|
28
|
+
export declare const caretOnOpen: import("react").Context<number>;
|
|
29
|
+
/**
|
|
30
|
+
* Set by ConversationLayout round each comment in one column: it draws an open comment's line itself, one bar from the
|
|
31
|
+
* comment's face to its thread's last reply. The card and the thread then draw no pieces of it.
|
|
32
|
+
*/
|
|
33
|
+
export declare const LineByLayout: import("react").Context<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* The line from a face down, as ONE bar measured in `root`: from 4px under the comment's face (`[data-face]` in
|
|
36
|
+
* `[data-comment-body]`: never a reply's, when the comment is deleted or being edited and shows none) — it never touches the
|
|
37
|
+
* face; Katerina, 1 November — to the end. It ends at the thread's replies (`[data-thread-replies]`), or, with none yet, at
|
|
38
|
+
* the comment's own foot (`[data-comment-body]`); with `toDot`, at the centre of the resolved line's dot (`[data-dot]`). Pieces drawn in separate
|
|
39
|
+
* boxes met a pixel apart at some zooms, a step where the thread began (Katerina, 1 November: "the line breaks in the
|
|
40
|
+
* middle"); one bar cannot. Measured again whenever `root` changes size. `null` until measured, or when `active` is false.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useFaceLine(root: RefObject<HTMLElement | null>, active: boolean, toDot?: boolean): {
|
|
43
|
+
top: number;
|
|
44
|
+
height: number;
|
|
45
|
+
} | null;
|
|
46
|
+
//# sourceMappingURL=threadCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threadCard.d.ts","sourceRoot":"","sources":["../src/threadCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhF;;;GAGG;AACH,eAAO,MAAM,YAAY,kCAAuB,CAAA;AAEhD,mHAAmH;AACnH,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,KAAK,EAAE,OAAO,CAAA;IACd,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAA;IACb,yGAAyG;IACzG,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,gDAAgD;IAChD,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uDAAoD,CAAA;AAEnF;;;;GAIG;AACH,eAAO,MAAM,WAAW,iCAAmB,CAAA;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,kCAAuB,CAAA;AAKhD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,UAAQ;SACrD,MAAM;YAAU,MAAM;SAgC/D"}
|
package/package.json
CHANGED