@estiva-app/ui 0.115.0 → 0.116.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.map +1 -1
- package/dist/NavItem.d.ts +12 -2
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/PreviewCard.d.ts +9 -1
- package/dist/PreviewCard.d.ts.map +1 -1
- package/dist/UnreadDot.d.ts +12 -1
- package/dist/UnreadDot.d.ts.map +1 -1
- package/dist/eslint/index.js +3 -2
- package/dist/eslint/index.js.map +2 -2
- package/dist/eslint/no-restyled-part.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -29
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/registry.json +35 -3
- package/src/FollowSwitch.test.tsx +2 -2
- package/src/FollowSwitch.tsx +5 -3
- package/src/NavItem.mdx +14 -2
- package/src/NavItem.stories.tsx +23 -0
- package/src/NavItem.test.tsx +46 -1
- package/src/NavItem.tsx +15 -4
- package/src/PreviewCard.mdx +7 -3
- package/src/PreviewCard.test.tsx +107 -0
- package/src/PreviewCard.tsx +22 -2
- package/src/UnreadDot.mdx +7 -1
- package/src/UnreadDot.stories.tsx +3 -0
- package/src/UnreadDot.test.tsx +16 -9
- package/src/UnreadDot.tsx +23 -3
- package/src/eslint/no-restyled-part.ts +2 -1
- package/src/index.ts +1 -1
- package/stories/Choosing.mdx +2 -2
package/src/index.ts
CHANGED
|
@@ -82,7 +82,7 @@ export { SkeletonBar, SkeletonConversation, SkeletonList, SkeletonRow } from './
|
|
|
82
82
|
export { Breadcrumb, type BreadcrumbProps, type Crumb } from './Breadcrumb'
|
|
83
83
|
export { EnterHint, Menu, MenuItem, MenuPanel, MenuRow, MenuSection, MenuSeparator, MenuSub, type MenuItemProps, type MenuPanelProps, type MenuProps, type MenuSubProps } from './Menu'
|
|
84
84
|
export { NavItem, type NavItemProps } from './NavItem'
|
|
85
|
-
export { UnreadDot } from './UnreadDot'
|
|
85
|
+
export { UnreadDot, type UnreadDotTone } from './UnreadDot'
|
|
86
86
|
export { NAV_TREE_PENDING_MS, NavTree, NavTreeSection, type NavTreeGroup, type NavTreeNode, type NavTreeProps, type NavTreeSectionProps } from './NavTree'
|
|
87
87
|
export { Popover, type PopoverProps } from './Popover'
|
|
88
88
|
export { SuggestionMenu, type SuggestionMenuHandle, type SuggestionMenuProps, type SuggestionMenuRow, type SuggestionMenuSection } from './SuggestionMenu'
|
package/stories/Choosing.mdx
CHANGED
|
@@ -66,7 +66,7 @@ fork freely, owe nothing back, mention it on the package's ticket.
|
|
|
66
66
|
|---|---|
|
|
67
67
|
| A list of verbs from a trigger | **Menu** — Escape, outside-click and the arrow keys come with it |
|
|
68
68
|
| A panel of *content* from a trigger — a field, a toolbar, a small form | **Popover** — the menu's surface without a menu's keyboard |
|
|
69
|
-
| More of a thing on hover | **PreviewCard** — unlike a tooltip, you can point at it; on a sidebar row, **NavItem** `preview` opens it; `openOnTap` when nothing else on the trigger answers a tap |
|
|
69
|
+
| More of a thing on hover | **PreviewCard** — unlike a tooltip, you can point at it; on a sidebar row, **NavItem** `preview` opens it; `openOnTap` when nothing else on the trigger answers a tap; `onOpenChange` to hear it open and close |
|
|
70
70
|
| A hint on hover or on keyboard focus | **Tooltip** / **WithTooltip** — one `TooltipProvider` at the app root shares the delay |
|
|
71
71
|
| A strip of controls that act on one thing | **Toolbar** — one Tab stop for the row, arrow keys along it |
|
|
72
72
|
| Reactions to choose from | **ReactionPicker** — the row; **Reaction** is the pill it produces |
|
|
@@ -120,7 +120,7 @@ The same conversation in every app; only its colours are each app's.
|
|
|
120
120
|
| A box that can hold more than fits — a list that grows with its data counts, even when today's data fits | **ScrollArea** — its bar is drawn over the content and takes no width |
|
|
121
121
|
| Text that can run long above things the reader needs, cut behind a fade | **ShowMore** — measures; what fits has no button |
|
|
122
122
|
| A status, a count or a category, in a small pill | **Chip** — six colour types; the colour is the message, the label makes it legible |
|
|
123
|
-
| Something new on a row or a card, no count | **UnreadDot** — the 6px dot in a 24px slot; in a sidebar row, **NavItem** `unread` draws it; `quiet` for a dot that is always there with nothing new |
|
|
123
|
+
| Something new on a row or a card, no count | **UnreadDot** — the 6px dot in a 24px slot; in a sidebar row, **NavItem** `unread` draws it; `quiet` for a dot that is always there with nothing new; `tone="reaction"` for a reaction to you (NavItem `unreadTone`) |
|
|
124
124
|
| One thing — a conversation, a project, an object — as a box you can pick | **Card** — the fill by what it sits on; `href` for a link, `hover="fill"` in a feed, `onPress` when a press opens it |
|
|
125
125
|
| A section heading, chevron, hover actions, a count beside the title | **SectionHeader** |
|
|
126
126
|
| A group of rows that opens and closes, and stays how you left it | **CollapsibleSection** — `storageKey` remembers |
|