@estiva-app/ui 0.113.0 → 0.115.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/FollowSwitch.d.ts +10 -5
- package/dist/FollowSwitch.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 +117 -86
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/registry.json +16 -4
- package/src/FollowSwitch.mdx +5 -0
- package/src/FollowSwitch.stories.tsx +2 -2
- package/src/FollowSwitch.test.tsx +20 -0
- package/src/FollowSwitch.tsx +37 -12
- 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/FollowSwitch.d.ts
CHANGED
|
@@ -25,8 +25,12 @@ export interface FollowSwitchProps {
|
|
|
25
25
|
readOnlyReason?: string;
|
|
26
26
|
/** People rather than circles, as `LevelIcon`'s `people`. */
|
|
27
27
|
people?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Whether the place lists files (a topic, a space): each level then says what of
|
|
30
|
+
* them it shows. `false` for a place with none (a team's chat): the levels say only
|
|
31
|
+
* what lights.
|
|
32
|
+
*/
|
|
33
|
+
files?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* The name of the group whose default reaches the viewer, when they chose
|
|
32
36
|
* against it: offers "Back to <name>’s default". Leave it out otherwise.
|
|
@@ -35,8 +39,9 @@ export interface FollowSwitchProps {
|
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* The one switch on a place: Not following, Important or All, each with what
|
|
38
|
-
* it lights, and "Back to <name>’s default" when
|
|
39
|
-
* group's default. It sits before the place's
|
|
42
|
+
* the place shows at it and what lights, and "Back to <name>’s default" when
|
|
43
|
+
* the viewer chose against a group's default. It sits before the place's
|
|
44
|
+
* title, drawn as `LevelIcon`.
|
|
40
45
|
*/
|
|
41
|
-
export declare function FollowSwitch({ level, label, onChoose, readOnlyReason, people,
|
|
46
|
+
export declare function FollowSwitch({ level, label, onChoose, readOnlyReason, people, files, backTo }: FollowSwitchProps): import("react").JSX.Element;
|
|
42
47
|
//# sourceMappingURL=FollowSwitch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FollowSwitch.d.ts","sourceRoot":"","sources":["../src/FollowSwitch.tsx"],"names":[],"mappings":"AAKA,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,WAAW,CAAA;AAE7C,4FAA4F;AAC5F,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,KAAK,GAAG,SAAS,CAAA;AAgB1D,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,KAAK,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,MAAc,EAAE,EAAE,cAAc,+BASlE;
|
|
1
|
+
{"version":3,"file":"FollowSwitch.d.ts","sourceRoot":"","sources":["../src/FollowSwitch.tsx"],"names":[],"mappings":"AAKA,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,WAAW,CAAA;AAE7C,4FAA4F;AAC5F,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,KAAK,GAAG,SAAS,CAAA;AAgB1D,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,KAAK,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,mFAAmF;IACnF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,MAAc,EAAE,EAAE,cAAc,+BASlE;AA0BD,MAAM,WAAW,iBAAiB;IAChC,iFAAiF;IACjF,KAAK,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAA;IACb,8JAA8J;IAC9J,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC5D,sGAAsG;IACtG,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAc,EAAE,KAAY,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAiD/H"}
|
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"}
|