@remit/ui 0.0.194 → 0.0.196
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/package.json +1 -1
- package/src/components/account-service-change-dialog.stories.tsx +1 -1
- package/src/components/account-service-choice.stories.tsx +1 -1
- package/src/components/account-service-status.stories.tsx +1 -1
- package/src/components/account-service-toggles.stories.tsx +2 -1
- package/src/components/address-display.stories.tsx +1 -1
- package/src/components/address-tag.stories.tsx +1 -1
- package/src/components/agenda-composer.stories.tsx +2 -1
- package/src/components/agenda-flow.stories.tsx +1 -1
- package/src/components/agenda-panels.stories.tsx +1 -1
- package/src/components/app-password-hint.stories.tsx +1 -1
- package/src/components/app-top-bar.stories.tsx +1 -1
- package/src/components/attachment-list.stories.tsx +1 -1
- package/src/components/attendee-row.stories.tsx +1 -1
- package/src/components/auth-card.stories.tsx +1 -1
- package/src/components/auth-footer.stories.tsx +1 -1
- package/src/components/auth-hero.stories.tsx +1 -1
- package/src/components/auto-moved-badge.stories.tsx +1 -1
- package/src/components/banner.stories.tsx +1 -1
- package/src/components/bottom-sheet.stories.tsx +1 -1
- package/src/components/brief-empty.stories.tsx +1 -1
- package/src/components/brief-section.stories.tsx +1 -1
- package/src/components/brief-sections.stories.tsx +1 -1
- package/src/components/calendar-clash-strip.stories.tsx +1 -1
- package/src/components/calendar-event-chip.stories.tsx +1 -1
- package/src/components/calendar-grid.stories.tsx +11 -1
- package/src/components/calendar-grid.tsx +4 -3
- package/src/components/calendar-invite-card.stories.tsx +1 -1
- package/src/components/calendar-list.stories.tsx +1 -1
- package/src/components/calendar-parse-badge.stories.tsx +1 -1
- package/src/components/calendar-slot-offers.stories.tsx +1 -1
- package/src/components/calendar-suggestion-deck.stories.tsx +1 -1
- package/src/components/calendar-toolbar.stories.tsx +1 -1
- package/src/components/calendar-toolbar.tsx +1 -1
- package/src/components/category-badge.stories.tsx +1 -1
- package/src/components/category-presentation.stories.tsx +1 -1
- package/src/components/checkbox.stories.tsx +1 -1
- package/src/components/compose-action-bar.stories.tsx +1 -1
- package/src/components/compose-address-field.stories.tsx +1 -1
- package/src/components/compose-body.stories.tsx +1 -1
- package/src/components/compose-header.stories.tsx +1 -1
- package/src/components/compose-language-chip.stories.tsx +1 -1
- package/src/components/compose-language-setting.stories.tsx +1 -1
- package/src/components/compose-mode-toggle.stories.tsx +1 -1
- package/src/components/compose-smtp-missing-banner.stories.tsx +1 -1
- package/src/components/confirm-dialog.stories.tsx +1 -1
- package/src/components/custom-recurrence.stories.tsx +1 -1
- package/src/components/dialog.stories.tsx +1 -1
- package/src/components/event-detail.stories.tsx +1 -1
- package/src/components/event-editor.stories.tsx +1 -1
- package/src/components/event-quick-entry.stories.tsx +1 -1
- package/src/components/event-suggestion-card.stories.tsx +1 -1
- package/src/components/filter-rule-editor.stories.tsx +1 -1
- package/src/components/filter-sheet.stories.tsx +1 -1
- package/src/components/folder-manage-actions.stories.tsx +1 -1
- package/src/components/folder-manager.stories.tsx +1 -1
- package/src/components/folder-rename-dialog.stories.tsx +1 -1
- package/src/components/folder-row.stories.tsx +1 -1
- package/src/components/folder-tree-picker.stories.tsx +1 -1
- package/src/components/intelligence-panel-calendar.stories.tsx +2 -1
- package/src/components/intelligence-panel.stories.tsx +1 -1
- package/src/components/isolated-email-frame.stories.tsx +1 -1
- package/src/components/label-chip.stories.tsx +1 -1
- package/src/components/list-result-header.stories.tsx +1 -1
- package/src/components/mail-action-toolbar.stories.tsx +1 -1
- package/src/components/mail-header.stories.tsx +2 -1
- package/src/components/message-body-view.stories.tsx +1 -1
- package/src/components/message-list-pane.stories.tsx +1 -1
- package/src/components/message-list-state.stories.tsx +1 -1
- package/src/components/message-row.stories.tsx +1 -1
- package/src/components/message-settlement.stories.tsx +1 -1
- package/src/components/mobile-message-action-bar.stories.tsx +1 -1
- package/src/components/mobile-search-view.stories.tsx +1 -1
- package/src/components/nav-sidebar.stories.tsx +1 -1
- package/src/components/new-folder-action.stories.tsx +1 -1
- package/src/components/new-folder-form.stories.tsx +1 -1
- package/src/components/outbox-row.stories.tsx +1 -1
- package/src/components/plain-text-editor.stories.tsx +1 -1
- package/src/components/popover-menu.stories.tsx +1 -1
- package/src/components/primitives.stories.tsx +1 -1
- package/src/components/progress-bar.stories.tsx +1 -1
- package/src/components/pull-to-refresh.stories.tsx +1 -1
- package/src/components/quarantine-section.stories.tsx +1 -1
- package/src/components/quoted-text.stories.tsx +1 -1
- package/src/components/reading-pane.stories.tsx +1 -1
- package/src/components/recurrence-scope-prompt.stories.tsx +1 -1
- package/src/components/refresh-button.stories.tsx +1 -1
- package/src/components/rescue-banner.stories.tsx +1 -1
- package/src/components/rescue-candidate-row.stories.tsx +1 -1
- package/src/components/rescue-from-spam-flow.stories.tsx +1 -1
- package/src/components/rich-text-editor.stories.tsx +1 -1
- package/src/components/role-appointment-list.stories.tsx +1 -1
- package/src/components/role-appointment-prompt.stories.tsx +1 -1
- package/src/components/row-actions.stories.tsx +1 -1
- package/src/components/search-bar.stories.tsx +1 -1
- package/src/components/search-chip-input.stories.tsx +1 -1
- package/src/components/search-conversion-notice.stories.tsx +1 -1
- package/src/components/search-results.stories.tsx +1 -1
- package/src/components/search-token-chip.stories.tsx +1 -1
- package/src/components/selection-top-bar.stories.tsx +1 -1
- package/src/components/self-update-progress-overlay.stories.tsx +1 -1
- package/src/components/self-update.stories.tsx +1 -1
- package/src/components/sender-trust-indicator.stories.tsx +1 -1
- package/src/components/settings-primitives.stories.tsx +1 -1
- package/src/components/shell-top-bar.stories.tsx +1 -1
- package/src/components/slide-panel.stories.tsx +1 -1
- package/src/components/spam-results-offer.stories.tsx +1 -1
- package/src/components/swipeable-row.stories.tsx +1 -1
- package/src/components/touch-list-body.stories.tsx +1 -1
- package/src/components/wizard.stories.tsx +1 -1
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { AccountServiceChangeDialog } from "./account-service-change-dialog.js";
|
|
|
7
7
|
* Every state of it is copy, so every state is a story.
|
|
8
8
|
*/
|
|
9
9
|
const meta: Meta<typeof AccountServiceChangeDialog> = {
|
|
10
|
-
title: "
|
|
10
|
+
title: "Design System/Settings/AccountServiceChangeDialog",
|
|
11
11
|
component: AccountServiceChangeDialog,
|
|
12
12
|
parameters: { layout: "fullscreen" },
|
|
13
13
|
args: {
|
|
@@ -13,7 +13,7 @@ import { Button } from "./button.js";
|
|
|
13
13
|
* consent screen matches the pick (#1178).
|
|
14
14
|
*/
|
|
15
15
|
const meta: Meta<typeof AccountServiceChoice> = {
|
|
16
|
-
title: "
|
|
16
|
+
title: "Design System/Settings/AccountServiceChoice",
|
|
17
17
|
component: AccountServiceChoice,
|
|
18
18
|
parameters: { layout: "padded" },
|
|
19
19
|
decorators: [
|
|
@@ -12,7 +12,8 @@ import {
|
|
|
12
12
|
* host confirms and commits.
|
|
13
13
|
*/
|
|
14
14
|
const meta: Meta<typeof AccountServiceToggles> = {
|
|
15
|
-
title: "
|
|
15
|
+
title: "Playground/Proposed/Settings/AccountServiceToggles",
|
|
16
|
+
tags: ["proposed"],
|
|
16
17
|
component: AccountServiceToggles,
|
|
17
18
|
parameters: { layout: "padded" },
|
|
18
19
|
decorators: [
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AddressList, type EnvelopeAddress } from "./address-display.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AddressList> = {
|
|
5
|
-
title: "Mail/AddressList",
|
|
5
|
+
title: "Design System/Mail/AddressList",
|
|
6
6
|
component: AddressList,
|
|
7
7
|
parameters: { layout: "padded" },
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AddressTag } from "./address-tag.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AddressTag> = {
|
|
5
|
-
title: "Compose/AddressTag",
|
|
5
|
+
title: "Design System/Compose/AddressTag",
|
|
6
6
|
component: AddressTag,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
args: { onRemove: () => {} },
|
|
@@ -14,7 +14,8 @@ import type {
|
|
|
14
14
|
* readings the composer asks rather than choosing.
|
|
15
15
|
*/
|
|
16
16
|
const meta: Meta<typeof AgendaComposer> = {
|
|
17
|
-
title: "Calendar/Agenda composer",
|
|
17
|
+
title: "Playground/Proposed/Calendar/Agenda composer",
|
|
18
|
+
tags: ["proposed"],
|
|
18
19
|
component: AgendaComposer,
|
|
19
20
|
parameters: { layout: "padded" },
|
|
20
21
|
decorators: [
|
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
* pile-up, a day with nothing but a banner, and a week nobody booked.
|
|
14
14
|
*/
|
|
15
15
|
const meta: Meta<typeof AgendaFlow> = {
|
|
16
|
-
title: "Calendar/Agenda flow",
|
|
16
|
+
title: "Playground/Shipped/Calendar/Agenda flow",
|
|
17
17
|
component: AgendaFlow,
|
|
18
18
|
parameters: { layout: "fullscreen" },
|
|
19
19
|
decorators: [
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AppPasswordHint } from "./app-password-hint.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AppPasswordHint> = {
|
|
5
|
-
title: "Onboarding/AppPasswordHint",
|
|
5
|
+
title: "Design System/Onboarding/AppPasswordHint",
|
|
6
6
|
component: AppPasswordHint,
|
|
7
7
|
parameters: { layout: "padded" },
|
|
8
8
|
};
|
|
@@ -9,7 +9,7 @@ import { SearchChipInput } from "./search-chip-input.js";
|
|
|
9
9
|
* both mount; these stories show only the row the slots sit in.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof AppTopBar> = {
|
|
12
|
-
title: "Mail/AppTopBar",
|
|
12
|
+
title: "Design System/Mail/AppTopBar",
|
|
13
13
|
component: AppTopBar,
|
|
14
14
|
parameters: { layout: "fullscreen" },
|
|
15
15
|
};
|
|
@@ -10,7 +10,7 @@ import { type AttachmentItem, AttachmentList } from "./attachment-list.js";
|
|
|
10
10
|
* component the app renders.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta<typeof AttachmentList> = {
|
|
13
|
-
title: "Mail/AttachmentList",
|
|
13
|
+
title: "Design System/Mail/AttachmentList",
|
|
14
14
|
component: AttachmentList,
|
|
15
15
|
parameters: { layout: "padded" },
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import { AuthFooter } from "./auth-footer.js";
|
|
|
4
4
|
import { AuthHero } from "./auth-hero.js";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof AuthCard> = {
|
|
7
|
-
title: "Auth/AuthCard",
|
|
7
|
+
title: "Design System/Auth/AuthCard",
|
|
8
8
|
component: AuthCard,
|
|
9
9
|
parameters: { layout: "fullscreen" },
|
|
10
10
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AuthFooter } from "./auth-footer.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AuthFooter> = {
|
|
5
|
-
title: "Auth/AuthFooter",
|
|
5
|
+
title: "Design System/Auth/AuthFooter",
|
|
6
6
|
component: AuthFooter,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AuthHero } from "./auth-hero.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AuthHero> = {
|
|
5
|
-
title: "Auth/AuthHero",
|
|
5
|
+
title: "Design System/Auth/AuthHero",
|
|
6
6
|
component: AuthHero,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { AutoMovedBadge } from "./auto-moved-badge.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AutoMovedBadge> = {
|
|
5
|
-
title: "Mail/AutoMovedBadge",
|
|
5
|
+
title: "Design System/Mail/AutoMovedBadge",
|
|
6
6
|
component: AutoMovedBadge,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
};
|
|
@@ -5,7 +5,7 @@ import { BottomSheet } from "./bottom-sheet.js";
|
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
|
|
7
7
|
const meta: Meta<typeof BottomSheet> = {
|
|
8
|
-
title: "Components/BottomSheet",
|
|
8
|
+
title: "Design System/Components/BottomSheet",
|
|
9
9
|
component: BottomSheet,
|
|
10
10
|
parameters: { layout: "fullscreen" },
|
|
11
11
|
decorators: [
|
|
@@ -11,7 +11,7 @@ const paneFrame: Decorator = (Story) => (
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof BriefEmpty> = {
|
|
14
|
-
title: "
|
|
14
|
+
title: "Playground/Shipped/Mail/Daily brief/BriefEmpty",
|
|
15
15
|
component: BriefEmpty,
|
|
16
16
|
parameters: { layout: "fullscreen" },
|
|
17
17
|
decorators: [paneFrame],
|
|
@@ -42,7 +42,7 @@ const cappedSection: ThreadSection = {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
const meta: Meta<typeof BriefSection> = {
|
|
45
|
-
title: "
|
|
45
|
+
title: "Playground/Shipped/Mail/Daily brief/BriefSection",
|
|
46
46
|
component: BriefSection,
|
|
47
47
|
parameters: { layout: "fullscreen" },
|
|
48
48
|
args: {
|
|
@@ -186,7 +186,7 @@ function BriefHost({
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
const meta: Meta<typeof BriefHost> = {
|
|
189
|
-
title: "
|
|
189
|
+
title: "Playground/Shipped/Mail/Daily brief/BriefSections",
|
|
190
190
|
component: BriefHost,
|
|
191
191
|
parameters: { layout: "fullscreen" },
|
|
192
192
|
args: {
|
|
@@ -7,7 +7,7 @@ import type { CalendarClash } from "./calendar-types.js";
|
|
|
7
7
|
* an empty space where the check should be reads as "not checked".
|
|
8
8
|
*/
|
|
9
9
|
const meta: Meta<typeof CalendarClashStrip> = {
|
|
10
|
-
title: "Calendar/Clash strip",
|
|
10
|
+
title: "Design System/Calendar/Clash strip",
|
|
11
11
|
component: CalendarClashStrip,
|
|
12
12
|
parameters: { layout: "padded" },
|
|
13
13
|
decorators: [
|
|
@@ -14,7 +14,7 @@ import { calendarColorIds } from "./calendar-types.js";
|
|
|
14
14
|
* take from here is the element — no `aria-pressed`, no leading slot.
|
|
15
15
|
*/
|
|
16
16
|
const meta: Meta<typeof CalendarEventChip> = {
|
|
17
|
-
title: "Calendar/Event chip",
|
|
17
|
+
title: "Design System/Calendar/Event chip",
|
|
18
18
|
component: CalendarEventChip,
|
|
19
19
|
parameters: { layout: "padded" },
|
|
20
20
|
};
|
|
@@ -104,7 +104,7 @@ const week: CalendarEventData[] = [
|
|
|
104
104
|
];
|
|
105
105
|
|
|
106
106
|
const meta: Meta<typeof CalendarGrid> = {
|
|
107
|
-
title: "Calendar/Grid",
|
|
107
|
+
title: "Design System/Calendar/Grid",
|
|
108
108
|
component: CalendarGrid,
|
|
109
109
|
parameters: { layout: "fullscreen" },
|
|
110
110
|
decorators: [
|
|
@@ -141,6 +141,16 @@ export const Overlapping: Story = {
|
|
|
141
141
|
},
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
/** An early flight and a late call: the day runs midnight to midnight. */
|
|
145
|
+
export const OutsideWorkingHours: Story = {
|
|
146
|
+
args: {
|
|
147
|
+
events: [
|
|
148
|
+
at("flight", "Flight to Lisbon", "09", "06:00", "07:00"),
|
|
149
|
+
at("late-call", "Call with Sydney", "11", "23:15", "23:45"),
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
|
|
144
154
|
export const AllDayBand: Story = {
|
|
145
155
|
args: { events: week.filter((event) => event.allDay) },
|
|
146
156
|
};
|
|
@@ -227,7 +227,10 @@ export function CalendarGrid({
|
|
|
227
227
|
const isTight = density === "compact";
|
|
228
228
|
|
|
229
229
|
return (
|
|
230
|
-
<div
|
|
230
|
+
<div
|
|
231
|
+
data-testid="calendar-grid"
|
|
232
|
+
className={cn("h-full min-h-0 w-full text-fg", className)}
|
|
233
|
+
>
|
|
231
234
|
<FullCalendar
|
|
232
235
|
ref={calendarRef}
|
|
233
236
|
plugins={PLUGINS}
|
|
@@ -251,8 +254,6 @@ export function CalendarGrid({
|
|
|
251
254
|
eventMaxStack={3}
|
|
252
255
|
moreLinkClick="popover"
|
|
253
256
|
moreLinkText={(num) => `+${num}`}
|
|
254
|
-
slotMinTime="07:00:00"
|
|
255
|
-
slotMaxTime="23:00:00"
|
|
256
257
|
scrollTime="08:30:00"
|
|
257
258
|
scrollTimeReset={false}
|
|
258
259
|
slotDuration={{ minutes: slot.slotMinutes }}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
* organiser hears nothing — this plan sends no reply at all.
|
|
14
14
|
*/
|
|
15
15
|
const meta: Meta<typeof CalendarInviteCard> = {
|
|
16
|
-
title: "Calendar/Invite card",
|
|
16
|
+
title: "Design System/Calendar/Invite card",
|
|
17
17
|
component: CalendarInviteCard,
|
|
18
18
|
parameters: { layout: "padded" },
|
|
19
19
|
decorators: [
|
|
@@ -10,7 +10,7 @@ import type { CalendarDescriptor } from "./calendar-types.js";
|
|
|
10
10
|
* key in another room.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta<typeof CalendarList> = {
|
|
13
|
-
title: "Calendar/Calendar list",
|
|
13
|
+
title: "Design System/Calendar/Calendar list",
|
|
14
14
|
component: CalendarList,
|
|
15
15
|
parameters: { layout: "padded" },
|
|
16
16
|
decorators: [
|
|
@@ -11,7 +11,7 @@ import type { CalendarParseMethod } from "./calendar-types.js";
|
|
|
11
11
|
* so the badge says which one it was.
|
|
12
12
|
*/
|
|
13
13
|
const meta: Meta<typeof CalendarParseBadge> = {
|
|
14
|
-
title: "Calendar/Parse badge",
|
|
14
|
+
title: "Design System/Calendar/Parse badge",
|
|
15
15
|
component: CalendarParseBadge,
|
|
16
16
|
parameters: { layout: "padded" },
|
|
17
17
|
};
|
|
@@ -8,7 +8,7 @@ import type { CalendarSlotPick } from "./calendar-types.js";
|
|
|
8
8
|
* Picking one is not a booking: it goes into a reply as plain text.
|
|
9
9
|
*/
|
|
10
10
|
const meta: Meta<typeof CalendarSlotOffers> = {
|
|
11
|
-
title: "Calendar/Slot offers",
|
|
11
|
+
title: "Design System/Calendar/Slot offers",
|
|
12
12
|
component: CalendarSlotOffers,
|
|
13
13
|
parameters: { layout: "padded" },
|
|
14
14
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
* time nobody placed on a clock is the mistake, not the shortcut.
|
|
16
16
|
*/
|
|
17
17
|
const meta: Meta<typeof CalendarSuggestionDeck> = {
|
|
18
|
-
title: "Calendar/Suggestion deck",
|
|
18
|
+
title: "Design System/Calendar/Suggestion deck",
|
|
19
19
|
component: CalendarSuggestionDeck,
|
|
20
20
|
parameters: { layout: "padded" },
|
|
21
21
|
decorators: [
|
|
@@ -10,7 +10,7 @@ import type { CalendarViewId } from "./calendar-types.js";
|
|
|
10
10
|
* hue, the same way the nav marks the mailbox you are in.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta = {
|
|
13
|
-
title: "Calendar/Toolbar",
|
|
13
|
+
title: "Design System/Calendar/Toolbar",
|
|
14
14
|
parameters: { layout: "padded" },
|
|
15
15
|
};
|
|
16
16
|
export default meta;
|
|
@@ -3,7 +3,7 @@ import type { ThreadCategory } from "../category-presentation.js";
|
|
|
3
3
|
import { CategoryBadge } from "./category-badge.js";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof CategoryBadge> = {
|
|
6
|
-
title: "Mail/CategoryBadge",
|
|
6
|
+
title: "Design System/Mail/CategoryBadge",
|
|
7
7
|
component: CategoryBadge,
|
|
8
8
|
parameters: { layout: "centered" },
|
|
9
9
|
};
|
|
@@ -135,7 +135,7 @@ const emptiedSections: ThreadSection[] = SECTION_ORDER.map((entry) => ({
|
|
|
135
135
|
}));
|
|
136
136
|
|
|
137
137
|
const meta: Meta = {
|
|
138
|
-
title: "Mail/Category presentation",
|
|
138
|
+
title: "Design System/Mail/Category presentation",
|
|
139
139
|
parameters: { layout: "padded" },
|
|
140
140
|
};
|
|
141
141
|
export default meta;
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { Checkbox } from "./checkbox.js";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Checkbox> = {
|
|
6
|
-
title: "
|
|
6
|
+
title: "Design System/Primitives/Checkbox",
|
|
7
7
|
component: Checkbox,
|
|
8
8
|
parameters: { layout: "padded" },
|
|
9
9
|
decorators: [
|
|
@@ -9,7 +9,7 @@ import { ComposeActionBar } from "./compose-action-bar.js";
|
|
|
9
9
|
* and the press reports it.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof ComposeActionBar> = {
|
|
12
|
-
title: "
|
|
12
|
+
title: "Design System/Compose/ComposeActionBar",
|
|
13
13
|
component: ComposeActionBar,
|
|
14
14
|
parameters: { layout: "padded" },
|
|
15
15
|
args: {
|
|
@@ -21,7 +21,7 @@ const KNOWN: AddressEntry[] = [
|
|
|
21
21
|
* component the app renders.
|
|
22
22
|
*/
|
|
23
23
|
const meta: Meta<typeof ComposeAddressField> = {
|
|
24
|
-
title: "
|
|
24
|
+
title: "Design System/Compose/ComposeAddressField",
|
|
25
25
|
component: ComposeAddressField,
|
|
26
26
|
parameters: { layout: "padded" },
|
|
27
27
|
};
|
|
@@ -129,7 +129,7 @@ const chipOf = (canvasElement: HTMLElement): HTMLElement => {
|
|
|
129
129
|
* `ComposeForm` adds the recipients, the autosave and the send around this.
|
|
130
130
|
*/
|
|
131
131
|
const meta: Meta<typeof Harness> = {
|
|
132
|
-
title: "
|
|
132
|
+
title: "Design System/Compose/ComposeBody",
|
|
133
133
|
component: Harness,
|
|
134
134
|
parameters: { layout: "centered" },
|
|
135
135
|
};
|
|
@@ -22,7 +22,7 @@ const FromRow = ({ email }: { email: string }) => (
|
|
|
22
22
|
* three empty ones push the writing surface off a phone.
|
|
23
23
|
*/
|
|
24
24
|
const meta: Meta<typeof ComposeHeader> = {
|
|
25
|
-
title: "
|
|
25
|
+
title: "Design System/Compose/ComposeHeader",
|
|
26
26
|
component: ComposeHeader,
|
|
27
27
|
parameters: { layout: "padded" },
|
|
28
28
|
};
|
|
@@ -45,7 +45,7 @@ const Chip = ({
|
|
|
45
45
|
* Chrome or Safari user, and it says whose setting it is.
|
|
46
46
|
*/
|
|
47
47
|
const meta: Meta<typeof Chip> = {
|
|
48
|
-
title: "
|
|
48
|
+
title: "Design System/Compose/ComposeLanguageChip",
|
|
49
49
|
component: Chip,
|
|
50
50
|
parameters: { layout: "centered" },
|
|
51
51
|
};
|
|
@@ -18,7 +18,7 @@ const Setting = ({ initial = ["nl", "en"] }: { initial?: string[] }) => {
|
|
|
18
18
|
* is what keeps detection accurate on a single sentence.
|
|
19
19
|
*/
|
|
20
20
|
const meta: Meta<typeof Setting> = {
|
|
21
|
-
title: "Settings/ComposeLanguages",
|
|
21
|
+
title: "Design System/Settings/ComposeLanguages",
|
|
22
22
|
component: Setting,
|
|
23
23
|
parameters: { layout: "centered" },
|
|
24
24
|
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
* which one is up, so the control never changes under the finger.
|
|
13
13
|
*/
|
|
14
14
|
const meta: Meta<typeof ComposeModeToggle> = {
|
|
15
|
-
title: "
|
|
15
|
+
title: "Design System/Compose/ComposeModeToggle",
|
|
16
16
|
component: ComposeModeToggle,
|
|
17
17
|
parameters: { layout: "centered" },
|
|
18
18
|
};
|
|
@@ -8,7 +8,7 @@ import { ComposeSmtpMissingBanner } from "./compose-smtp-missing-banner.js";
|
|
|
8
8
|
* the way out rather than leaving them to find Settings.
|
|
9
9
|
*/
|
|
10
10
|
const meta: Meta<typeof ComposeSmtpMissingBanner> = {
|
|
11
|
-
title: "
|
|
11
|
+
title: "Design System/Compose/ComposeSmtpMissingBanner",
|
|
12
12
|
component: ComposeSmtpMissingBanner,
|
|
13
13
|
parameters: { layout: "padded" },
|
|
14
14
|
args: { onConfigure: fn().mockName("onConfigure") },
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
import { ConfirmDialog } from "./confirm-dialog.js";
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof ConfirmDialog> = {
|
|
5
|
-
title: "Primitives/ConfirmDialog",
|
|
5
|
+
title: "Design System/Primitives/ConfirmDialog",
|
|
6
6
|
component: ConfirmDialog,
|
|
7
7
|
parameters: { layout: "centered" },
|
|
8
8
|
args: {
|
|
@@ -18,7 +18,7 @@ const START = "09:15";
|
|
|
18
18
|
* one; the line under each story is what the event would carry.
|
|
19
19
|
*/
|
|
20
20
|
const meta: Meta<typeof CustomRecurrenceEditor> = {
|
|
21
|
-
title: "Calendar/Custom recurrence",
|
|
21
|
+
title: "Design System/Calendar/Custom recurrence",
|
|
22
22
|
component: CustomRecurrenceEditor,
|
|
23
23
|
parameters: { layout: "padded" },
|
|
24
24
|
};
|
|
@@ -10,7 +10,7 @@ import { EventDetail } from "./event-detail.js";
|
|
|
10
10
|
* footnote, so nothing that started as mail is ever a dead end.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta<typeof EventDetail> = {
|
|
13
|
-
title: "Calendar/Event detail",
|
|
13
|
+
title: "Design System/Calendar/Event detail",
|
|
14
14
|
component: EventDetail,
|
|
15
15
|
parameters: { layout: "fullscreen" },
|
|
16
16
|
decorators: [
|
|
@@ -8,7 +8,7 @@ import { EventEditor } from "./event-editor.js";
|
|
|
8
8
|
* one click away, but they do not charge the common case for their existence.
|
|
9
9
|
*/
|
|
10
10
|
const meta: Meta<typeof EventEditor> = {
|
|
11
|
-
title: "Calendar/Event editor",
|
|
11
|
+
title: "Design System/Calendar/Event editor",
|
|
12
12
|
component: EventEditor,
|
|
13
13
|
parameters: { layout: "padded" },
|
|
14
14
|
};
|
|
@@ -10,7 +10,7 @@ import { EventQuickEntry } from "./event-quick-entry.js";
|
|
|
10
10
|
* correction happens before the event exists.
|
|
11
11
|
*/
|
|
12
12
|
const meta: Meta<typeof EventQuickEntry> = {
|
|
13
|
-
title: "Calendar/Quick entry",
|
|
13
|
+
title: "Design System/Calendar/Quick entry",
|
|
14
14
|
component: EventQuickEntry,
|
|
15
15
|
parameters: { layout: "padded" },
|
|
16
16
|
};
|
|
@@ -9,7 +9,7 @@ import { EventSuggestionCard } from "./event-suggestion-card.js";
|
|
|
9
9
|
* to notice and take back off the calendar.
|
|
10
10
|
*/
|
|
11
11
|
const meta: Meta<typeof EventSuggestionCard> = {
|
|
12
|
-
title: "Calendar/Suggestion card",
|
|
12
|
+
title: "Design System/Calendar/Suggestion card",
|
|
13
13
|
component: EventSuggestionCard,
|
|
14
14
|
parameters: { layout: "padded" },
|
|
15
15
|
decorators: [
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import type { FolderTreeNode } from "./folder-tree-picker.js";
|
|
27
27
|
|
|
28
28
|
const meta: Meta<typeof FilterRuleEditor> = {
|
|
29
|
-
title: "FilterRuleEditor",
|
|
29
|
+
title: "Design System/Filters/FilterRuleEditor",
|
|
30
30
|
component: FilterRuleEditor,
|
|
31
31
|
parameters: { layout: "padded" },
|
|
32
32
|
decorators: [
|
|
@@ -4,7 +4,7 @@ import { FolderManageActions } from "./folder-manage-actions.js";
|
|
|
4
4
|
import { FolderRow } from "./folder-row.js";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof FolderManageActions> = {
|
|
7
|
-
title: "
|
|
7
|
+
title: "Design System/Folders/FolderManageActions",
|
|
8
8
|
component: FolderManageActions,
|
|
9
9
|
parameters: { layout: "centered" },
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ import { useState } from "react";
|
|
|
3
3
|
import { FolderRenameDialog } from "./folder-rename-dialog.js";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof FolderRenameDialog> = {
|
|
6
|
-
title: "
|
|
6
|
+
title: "Design System/Folders/FolderRenameDialog",
|
|
7
7
|
component: FolderRenameDialog,
|
|
8
8
|
parameters: { layout: "fullscreen" },
|
|
9
9
|
};
|
|
@@ -68,7 +68,7 @@ const longFolders: FolderTreeNode[] = [
|
|
|
68
68
|
];
|
|
69
69
|
|
|
70
70
|
const meta: Meta<typeof FolderTreePicker> = {
|
|
71
|
-
title: "
|
|
71
|
+
title: "Design System/Folders/FolderTreePicker",
|
|
72
72
|
component: FolderTreePicker,
|
|
73
73
|
parameters: { layout: "centered" },
|
|
74
74
|
};
|