oneslash-design-system 2.19.0 → 2.21.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/README.md +1 -1
- package/dist/DESIGN.md +62 -5
- package/dist/cases/about-page/profile.d.ts +1 -0
- package/dist/cases/about-page/profile.jsx +64 -0
- package/dist/cases/about-page.md +114 -0
- package/dist/cases/admin-inbox/list.d.ts +1 -0
- package/dist/cases/admin-inbox/list.jsx +104 -0
- package/dist/cases/admin-inbox/split.d.ts +1 -0
- package/dist/cases/admin-inbox/split.jsx +68 -0
- package/dist/cases/admin-inbox.md +254 -0
- package/dist/cases/api-keys.md +1 -1
- package/dist/cases/billing-page/billed-elsewhere.d.ts +1 -0
- package/dist/cases/billing-page/billed-elsewhere.jsx +28 -0
- package/dist/cases/billing-page/self-serve.d.ts +1 -0
- package/dist/cases/billing-page/self-serve.jsx +134 -0
- package/dist/cases/billing-page.md +247 -0
- package/dist/cases/blog-index/cards.d.ts +1 -0
- package/dist/cases/blog-index/cards.jsx +45 -0
- package/dist/cases/blog-index/list.d.ts +1 -0
- package/dist/cases/blog-index/list.jsx +46 -0
- package/dist/cases/blog-index.md +160 -0
- package/dist/cases/breakdown-list/bars.d.ts +1 -0
- package/dist/cases/breakdown-list/bars.jsx +47 -0
- package/dist/cases/breakdown-list/table.d.ts +1 -0
- package/dist/cases/breakdown-list/table.jsx +69 -0
- package/dist/cases/breakdown-list.md +158 -0
- package/dist/cases/changelog/by-month.d.ts +1 -0
- package/dist/cases/changelog/by-month.jsx +70 -0
- package/dist/cases/changelog/one-page.d.ts +1 -0
- package/dist/cases/changelog/one-page.jsx +70 -0
- package/dist/cases/changelog.md +200 -0
- package/dist/cases/code-sample/block.d.ts +1 -0
- package/dist/cases/code-sample/block.jsx +19 -0
- package/dist/cases/code-sample/command.d.ts +1 -0
- package/dist/cases/code-sample/command.jsx +17 -0
- package/dist/cases/code-sample.md +96 -0
- package/dist/cases/composer-limit/notice-with-action.jsx +3 -3
- package/dist/cases/composer-limit/notice.jsx +3 -3
- package/dist/cases/composer-limit.md +8 -8
- package/dist/cases/contact-page/form.d.ts +1 -0
- package/dist/cases/contact-page/form.jsx +83 -0
- package/dist/cases/contact-page/links.d.ts +1 -0
- package/dist/cases/contact-page/links.jsx +19 -0
- package/dist/cases/contact-page.md +142 -0
- package/dist/cases/dashboard/numbers-first.d.ts +1 -0
- package/dist/cases/dashboard/numbers-first.jsx +165 -0
- package/dist/cases/dashboard/work-first.d.ts +1 -0
- package/dist/cases/dashboard/work-first.jsx +165 -0
- package/dist/cases/dashboard.md +507 -0
- package/dist/cases/data-table-page/all-rows.d.ts +1 -0
- package/dist/cases/data-table-page/all-rows.jsx +226 -0
- package/dist/cases/data-table-page/paged.d.ts +1 -0
- package/dist/cases/data-table-page/paged.jsx +284 -0
- package/dist/cases/data-table-page.md +771 -0
- package/dist/cases/docs-component-page/reference.d.ts +1 -0
- package/dist/cases/docs-component-page/reference.jsx +93 -0
- package/dist/cases/docs-component-page.md +144 -0
- package/dist/cases/faq/accordion.d.ts +1 -0
- package/dist/cases/faq/accordion.jsx +25 -0
- package/dist/cases/faq/open-list.d.ts +1 -0
- package/dist/cases/faq/open-list.jsx +27 -0
- package/dist/cases/faq.md +110 -0
- package/dist/cases/feature-grid/cards.d.ts +1 -0
- package/dist/cases/feature-grid/cards.jsx +33 -0
- package/dist/cases/feature-grid/rows.d.ts +1 -0
- package/dist/cases/feature-grid/rows.jsx +30 -0
- package/dist/cases/feature-grid.md +132 -0
- package/dist/cases/image-viewer/gallery.d.ts +1 -0
- package/dist/cases/image-viewer/gallery.jsx +32 -0
- package/dist/cases/image-viewer/single.d.ts +1 -0
- package/dist/cases/image-viewer/single.jsx +25 -0
- package/dist/cases/image-viewer.md +123 -0
- package/dist/cases/invoice-list/table.d.ts +1 -0
- package/dist/cases/invoice-list/table.jsx +64 -0
- package/dist/cases/invoice-list/with-upcoming.d.ts +1 -0
- package/dist/cases/invoice-list/with-upcoming.jsx +75 -0
- package/dist/cases/invoice-list.md +237 -0
- package/dist/cases/landing-hero/centered.d.ts +1 -0
- package/dist/cases/landing-hero/centered.jsx +22 -0
- package/dist/cases/landing-hero/split.d.ts +1 -0
- package/dist/cases/landing-hero/split.jsx +30 -0
- package/dist/cases/landing-hero.md +114 -0
- package/dist/cases/legal-page/sections.d.ts +1 -0
- package/dist/cases/legal-page/sections.jsx +61 -0
- package/dist/cases/legal-page.md +96 -0
- package/dist/cases/load-failure/inline.jsx +2 -2
- package/dist/cases/load-failure.md +2 -2
- package/dist/cases/long-form-page/article.d.ts +1 -0
- package/dist/cases/long-form-page/article.jsx +58 -0
- package/dist/cases/long-form-page/with-contents.d.ts +1 -0
- package/dist/cases/long-form-page/with-contents.jsx +41 -0
- package/dist/cases/long-form-page.md +170 -0
- package/dist/cases/members-list/rows.jsx +2 -1
- package/dist/cases/members-list/table.jsx +8 -9
- package/dist/cases/members-list.md +12 -13
- package/dist/cases/message-actions/hover-toolbar.jsx +11 -8
- package/dist/cases/message-actions/menu.jsx +10 -7
- package/dist/cases/message-actions.md +19 -13
- package/dist/cases/message-attachments/in-composer.jsx +2 -2
- package/dist/cases/message-attachments/in-message.jsx +16 -11
- package/dist/cases/message-attachments.md +29 -17
- package/dist/cases/number-format.md +36 -0
- package/dist/cases/one-main-action.md +33 -0
- package/dist/cases/overflow-menu/in-a-header.jsx +9 -6
- package/dist/cases/overflow-menu/on-a-row.jsx +9 -6
- package/dist/cases/overflow-menu.md +16 -10
- package/dist/cases/page-end/cta-band.d.ts +1 -0
- package/dist/cases/page-end/cta-band.jsx +24 -0
- package/dist/cases/page-end/next-link.d.ts +1 -0
- package/dist/cases/page-end/next-link.jsx +18 -0
- package/dist/cases/page-end.md +88 -0
- package/dist/cases/paged-card/pager.d.ts +1 -0
- package/dist/cases/paged-card/pager.jsx +41 -0
- package/dist/cases/paged-card/see-all.d.ts +1 -0
- package/dist/cases/paged-card/see-all.jsx +34 -0
- package/dist/cases/paged-card.md +147 -0
- package/dist/cases/password-gate/inline.d.ts +1 -0
- package/dist/cases/password-gate/inline.jsx +94 -0
- package/dist/cases/password-gate/modal.d.ts +1 -0
- package/dist/cases/password-gate/modal.jsx +81 -0
- package/dist/cases/password-gate/page.d.ts +1 -0
- package/dist/cases/password-gate/page.jsx +82 -0
- package/dist/cases/password-gate.md +351 -0
- package/dist/cases/payment-method/none.d.ts +1 -0
- package/dist/cases/payment-method/none.jsx +17 -0
- package/dist/cases/payment-method/on-file.d.ts +1 -0
- package/dist/cases/payment-method/on-file.jsx +92 -0
- package/dist/cases/payment-method.md +182 -0
- package/dist/cases/plan-change-confirm/blocked.d.ts +1 -0
- package/dist/cases/plan-change-confirm/blocked.jsx +48 -0
- package/dist/cases/plan-change-confirm/downgrade.d.ts +1 -0
- package/dist/cases/plan-change-confirm/downgrade.jsx +52 -0
- package/dist/cases/plan-change-confirm/upgrade.d.ts +1 -0
- package/dist/cases/plan-change-confirm/upgrade.jsx +51 -0
- package/dist/cases/plan-change-confirm.md +261 -0
- package/dist/cases/plan-picker/cards.d.ts +1 -0
- package/dist/cases/plan-picker/cards.jsx +97 -0
- package/dist/cases/plan-picker/list.d.ts +1 -0
- package/dist/cases/plan-picker/list.jsx +103 -0
- package/dist/cases/plan-picker.md +297 -0
- package/dist/cases/pricing-section/cards.d.ts +1 -0
- package/dist/cases/pricing-section/cards.jsx +40 -0
- package/dist/cases/pricing-section.md +85 -0
- package/dist/cases/product-cards/grid.d.ts +1 -0
- package/dist/cases/product-cards/grid.jsx +20 -0
- package/dist/cases/product-cards.md +71 -0
- package/dist/cases/range-switch/segmented.jsx +11 -7
- package/dist/cases/range-switch.md +16 -11
- package/dist/cases/reply-feedback/thumbs.jsx +11 -8
- package/dist/cases/reply-feedback/with-reason.jsx +11 -8
- package/dist/cases/reply-feedback.md +20 -14
- package/dist/cases/section-index/cards.d.ts +1 -0
- package/dist/cases/section-index/cards.jsx +25 -0
- package/dist/cases/section-index/list.d.ts +1 -0
- package/dist/cases/section-index/list.jsx +56 -0
- package/dist/cases/section-index.md +140 -0
- package/dist/cases/settings-page/top-tabs.jsx +4 -3
- package/dist/cases/settings-page.md +5 -4
- package/dist/cases/site-header.md +1 -1
- package/dist/cases/site-search/dialog.d.ts +1 -0
- package/dist/cases/site-search/dialog.jsx +131 -0
- package/dist/cases/site-search.md +176 -0
- package/dist/cases/stat-row/featured.d.ts +1 -0
- package/dist/cases/stat-row/featured.jsx +17 -0
- package/dist/cases/stat-row/tiles.d.ts +1 -0
- package/dist/cases/stat-row/tiles.jsx +34 -0
- package/dist/cases/stat-row.md +104 -0
- package/dist/cases/status-label/dot.d.ts +1 -0
- package/dist/cases/status-label/dot.jsx +39 -0
- package/dist/cases/status-label/text.d.ts +1 -0
- package/dist/cases/status-label/text.jsx +44 -0
- package/dist/cases/status-label.md +143 -0
- package/dist/cases/tabbed-panels/tabs.d.ts +1 -0
- package/dist/cases/tabbed-panels/tabs.jsx +40 -0
- package/dist/cases/tabbed-panels.md +81 -0
- package/dist/cases/upgrade-prompt/inline.jsx +4 -2
- package/dist/cases/upgrade-prompt/modal.jsx +2 -1
- package/dist/cases/upgrade-prompt.md +10 -6
- package/dist/cases/usage-meters/by-person.d.ts +1 -0
- package/dist/cases/usage-meters/by-person.jsx +72 -0
- package/dist/cases/usage-meters/meters.d.ts +1 -0
- package/dist/cases/usage-meters/meters.jsx +49 -0
- package/dist/cases/usage-meters/with-cap.d.ts +1 -0
- package/dist/cases/usage-meters/with-cap.jsx +73 -0
- package/dist/cases/usage-meters.md +303 -0
- package/dist/cases.json +2178 -97
- package/dist/components/accordion.d.ts +31 -0
- package/dist/components/accordion.jsx +103 -0
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.jsx +11 -5
- package/dist/components/codeBlock.d.ts +26 -0
- package/dist/components/codeBlock.jsx +101 -0
- package/dist/components/formatNumber.d.ts +25 -0
- package/dist/components/formatNumber.js +125 -0
- package/dist/components/iconButton.jsx +12 -7
- package/dist/components/lightbox.d.ts +31 -0
- package/dist/components/lightbox.jsx +161 -0
- package/dist/components/linkCard.d.ts +10 -1
- package/dist/components/linkCard.jsx +32 -6
- package/dist/components/modal.d.ts +10 -2
- package/dist/components/modal.jsx +17 -12
- package/dist/components/pageHeader.jsx +1 -1
- package/dist/components/pagination.d.ts +28 -0
- package/dist/components/pagination.jsx +89 -0
- package/dist/components/progress.d.ts +33 -0
- package/dist/components/progress.jsx +50 -0
- package/dist/components/searchDialog.d.ts +44 -0
- package/dist/components/searchDialog.jsx +152 -0
- package/dist/components/skeleton.d.ts +21 -0
- package/dist/components/skeleton.jsx +41 -0
- package/dist/components/statTile.d.ts +32 -0
- package/dist/components/statTile.jsx +61 -0
- package/dist/components/tab.d.ts +5 -1
- package/dist/components/tab.jsx +2 -2
- package/dist/components/tabPanel.d.ts +16 -0
- package/dist/components/tabPanel.jsx +12 -0
- package/dist/components/tableContainer.d.ts +5 -1
- package/dist/components/tableContainer.jsx +9 -1
- package/dist/components/tableHeaderCell.d.ts +3 -1
- package/dist/components/tableHeaderCell.jsx +2 -2
- package/dist/components/tabsContainer.d.ts +5 -1
- package/dist/components/tabsContainer.jsx +2 -2
- package/dist/components/titleBar.d.ts +3 -1
- package/dist/components/titleBar.jsx +4 -3
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/internal/accordion.d.ts +4 -0
- package/dist/internal/accordion.js +53 -0
- package/dist/internal/combobox.d.ts +20 -0
- package/dist/internal/combobox.js +28 -0
- package/dist/internal/highlight.d.ts +5 -0
- package/dist/internal/highlight.js +18 -0
- package/dist/native-mapping.json +57 -3
- package/dist/stories/Accordion.stories.d.ts +11 -0
- package/dist/stories/Accordion.stories.jsx +93 -0
- package/dist/stories/Button.stories.d.ts +1 -0
- package/dist/stories/Button.stories.jsx +19 -1
- package/dist/stories/Cases.generated.stories.d.ts +60 -0
- package/dist/stories/Cases.generated.stories.jsx +120 -0
- package/dist/stories/CodeBlock.stories.d.ts +12 -0
- package/dist/stories/CodeBlock.stories.jsx +65 -0
- package/dist/stories/Lightbox.stories.d.ts +8 -0
- package/dist/stories/Lightbox.stories.jsx +40 -0
- package/dist/stories/LinkCard.stories.d.ts +6 -0
- package/dist/stories/LinkCard.stories.jsx +17 -0
- package/dist/stories/PageHeader.stories.d.ts +2 -0
- package/dist/stories/PageHeader.stories.jsx +13 -0
- package/dist/stories/Pagination.stories.d.ts +9 -0
- package/dist/stories/Pagination.stories.jsx +75 -0
- package/dist/stories/Progress.stories.d.ts +9 -0
- package/dist/stories/Progress.stories.jsx +43 -0
- package/dist/stories/SearchDialog.stories.d.ts +17 -0
- package/dist/stories/SearchDialog.stories.jsx +111 -0
- package/dist/stories/Skeleton.stories.d.ts +7 -0
- package/dist/stories/Skeleton.stories.jsx +27 -0
- package/dist/stories/StatTile.stories.d.ts +10 -0
- package/dist/stories/StatTile.stories.jsx +55 -0
- package/dist/stories/TabPanel.stories.d.ts +7 -0
- package/dist/stories/TabPanel.stories.jsx +31 -0
- package/dist/stories/Table.stories.d.ts +1 -0
- package/dist/stories/Table.stories.jsx +49 -1
- package/dist/stories/TitleBar.stories.d.ts +1 -0
- package/dist/stories/TitleBar.stories.jsx +7 -0
- package/package.json +5 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Accordion's pure helpers, kept out of the public API (index.ts and the package exports do not reach internal/)
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
// The open ids to keep: only ids of real items, in item order, and at most one when only one may be open
|
|
12
|
+
export function normalizeOpen(open, ids, multiple) {
|
|
13
|
+
var known = ids.filter(function (id) { return open.includes(id); });
|
|
14
|
+
return multiple ? known : known.slice(0, 1);
|
|
15
|
+
}
|
|
16
|
+
// The open ids after the item `id` is toggled. In one-open mode opening an item closes the other.
|
|
17
|
+
export function toggleOpen(open, id, multiple) {
|
|
18
|
+
if (open.includes(id))
|
|
19
|
+
return open.filter(function (x) { return x !== id; });
|
|
20
|
+
return multiple ? __spreadArray(__spreadArray([], open, true), [id], false) : [id];
|
|
21
|
+
}
|
|
22
|
+
// The item a `#hash` names (`<prefix>-<item id>`), or null. A malformed hash names no item.
|
|
23
|
+
export function hashItem(hash, prefix, ids) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (hash.length < 2)
|
|
26
|
+
return null;
|
|
27
|
+
var target;
|
|
28
|
+
try {
|
|
29
|
+
target = decodeURIComponent(hash.slice(1));
|
|
30
|
+
}
|
|
31
|
+
catch (_b) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return (_a = ids.find(function (id) { return "".concat(prefix, "-").concat(id) === target; })) !== null && _a !== void 0 ? _a : null;
|
|
35
|
+
}
|
|
36
|
+
// The index of the heading a key moves focus to, or -1 when the key is not one of them.
|
|
37
|
+
// ArrowDown and ArrowUp wrap; Home and End go to the first and the last.
|
|
38
|
+
export function nextHeading(key, current, count) {
|
|
39
|
+
if (count === 0)
|
|
40
|
+
return -1;
|
|
41
|
+
switch (key) {
|
|
42
|
+
case 'ArrowDown':
|
|
43
|
+
return (current + 1) % count;
|
|
44
|
+
case 'ArrowUp':
|
|
45
|
+
return (current - 1 + count) % count;
|
|
46
|
+
case 'Home':
|
|
47
|
+
return 0;
|
|
48
|
+
case 'End':
|
|
49
|
+
return count - 1;
|
|
50
|
+
default:
|
|
51
|
+
return -1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function comboboxProps({ listId, open, activeId }: {
|
|
2
|
+
listId: string;
|
|
3
|
+
open: boolean;
|
|
4
|
+
activeId?: string;
|
|
5
|
+
}): {
|
|
6
|
+
role: "combobox";
|
|
7
|
+
'aria-autocomplete': "list";
|
|
8
|
+
'aria-expanded': boolean;
|
|
9
|
+
'aria-controls': string | undefined;
|
|
10
|
+
'aria-activedescendant': string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare function comboboxKey(e: {
|
|
13
|
+
key: string;
|
|
14
|
+
isComposing?: boolean;
|
|
15
|
+
keyCode?: number;
|
|
16
|
+
}, active: number, count: number): {
|
|
17
|
+
move: number;
|
|
18
|
+
} | {
|
|
19
|
+
pick: number;
|
|
20
|
+
} | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// The search field that drives a list, kept out of the public API (index.ts and the package exports do not reach internal/).
|
|
2
|
+
// Focus stays in the field: the field is `role="combobox"`, points at the list with `aria-controls` and at the
|
|
3
|
+
// highlighted row with `aria-activedescendant`. The arrows move the highlight and stop at the ends, Enter picks the
|
|
4
|
+
// highlighted row, and Escape is the Modal's (it closes the dialog). The same pattern as the quick-switcher example.
|
|
5
|
+
export function comboboxProps(_a) {
|
|
6
|
+
var listId = _a.listId, open = _a.open, activeId = _a.activeId;
|
|
7
|
+
return {
|
|
8
|
+
role: 'combobox',
|
|
9
|
+
'aria-autocomplete': 'list',
|
|
10
|
+
'aria-expanded': open,
|
|
11
|
+
'aria-controls': open ? listId : undefined,
|
|
12
|
+
'aria-activedescendant': open ? activeId : undefined,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
// What a key in the field does with `count` rows and row `active` highlighted: move the highlight, pick a row, or nothing.
|
|
16
|
+
// An input method (Korean, Japanese, Chinese) uses Enter and the arrows while it composes, so they are left to it.
|
|
17
|
+
export function comboboxKey(e, active, count) {
|
|
18
|
+
if (e.isComposing || e.keyCode === 229 || count === 0)
|
|
19
|
+
return null;
|
|
20
|
+
var at = Math.min(Math.max(active, 0), count - 1);
|
|
21
|
+
if (e.key === 'ArrowDown')
|
|
22
|
+
return { move: Math.min(at + 1, count - 1) };
|
|
23
|
+
if (e.key === 'ArrowUp')
|
|
24
|
+
return { move: Math.max(at - 1, 0) };
|
|
25
|
+
if (e.key === 'Enter')
|
|
26
|
+
return { pick: at };
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// SearchDialog's pure helper, kept out of the public API (index.ts and the package exports do not reach internal/)
|
|
2
|
+
var escape = function (word) { return word.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); };
|
|
3
|
+
// Splits `text` on the words of `query` (split on white space), ignoring case. Every regex character in a word is
|
|
4
|
+
// taken literally, so 'c++ (beta)' marks 'c++' and '(beta)'. Longer words are tried first, so 'plan' and 'planning'
|
|
5
|
+
// mark all of 'planning'. Empty parts are left out.
|
|
6
|
+
export function highlightParts(text, query) {
|
|
7
|
+
var words = query.trim().split(/\s+/).filter(Boolean);
|
|
8
|
+
if (!text)
|
|
9
|
+
return [];
|
|
10
|
+
if (words.length === 0)
|
|
11
|
+
return [{ text: text, match: false }];
|
|
12
|
+
var pattern = new RegExp("(".concat(words.sort(function (a, b) { return b.length - a.length; }).map(escape).join('|'), ")"), 'gi');
|
|
13
|
+
// With one capture group, split puts each match at an odd index
|
|
14
|
+
return text
|
|
15
|
+
.split(pattern)
|
|
16
|
+
.map(function (part, i) { return ({ text: part, match: i % 2 === 1 }); })
|
|
17
|
+
.filter(function (part) { return part.text !== ''; });
|
|
18
|
+
}
|
package/dist/native-mapping.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"components": [
|
|
3
|
+
{
|
|
4
|
+
"ods": "accordion",
|
|
5
|
+
"swiftui": "`DisclosureGroup` per item, with the title as its label",
|
|
6
|
+
"compose": "A `Column` of rows with `AnimatedVisibility` for the panel and `semantics { stateDescription }` on the row",
|
|
7
|
+
"note": "One-open is app state (a selection the groups bind to). Deep links and the heading level are web only."
|
|
8
|
+
},
|
|
3
9
|
{
|
|
4
10
|
"ods": "alert",
|
|
5
11
|
"swiftui": "`ODSBanner` for an inline message; `.alert` for one that needs a decision",
|
|
@@ -28,6 +34,12 @@
|
|
|
28
34
|
"swiftui": "`Toggle` (switch on iOS, `.toggleStyle(.checkbox)` on macOS)",
|
|
29
35
|
"compose": "`Checkbox`"
|
|
30
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"ods": "codeBlock",
|
|
39
|
+
"swiftui": "`ScrollView(.horizontal)` with `Text(code).monospaced().textSelection(.enabled)` and a Copy `Button`",
|
|
40
|
+
"compose": "`SelectionContainer` around a `Text` in the code family with `horizontalScroll`, and a Copy `TextButton`",
|
|
41
|
+
"note": "Show \"Copied\" for 2 seconds only after the write succeeds. No highlighting and no line numbers. One line to paste is a `copyField`."
|
|
42
|
+
},
|
|
31
43
|
{
|
|
32
44
|
"ods": "composer",
|
|
33
45
|
"swiftui": "`TextField(_:text:axis: .vertical)` with `.lineLimit(1...6)` over a toolbar `HStack` of the tool `Button`s and a send `Button`",
|
|
@@ -108,6 +120,12 @@
|
|
|
108
120
|
"compose": "Not applicable: web page pattern",
|
|
109
121
|
"note": "In an app screen: `VStack` / `HStack` / `Grid`; Compose `Column` / `Row` / `LazyVerticalGrid`. `Center` and `Split` are for web pages; a native screen is already one column."
|
|
110
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"ods": "lightbox",
|
|
125
|
+
"swiftui": "`.fullScreenCover` holding a `TabView` with `.tabViewStyle(.page)`, one page per image",
|
|
126
|
+
"compose": "A full-width `Dialog` (`usePlatformDefaultWidth = false`) holding a `HorizontalPager`",
|
|
127
|
+
"note": "Images only. The system pager gives the swipe; keep a Close button and say \"2 of 5\" in the title."
|
|
128
|
+
},
|
|
111
129
|
{
|
|
112
130
|
"ods": "line",
|
|
113
131
|
"swiftui": "`Divider`",
|
|
@@ -156,7 +174,7 @@
|
|
|
156
174
|
"ods": "modal",
|
|
157
175
|
"swiftui": "`.sheet` or `.alert`",
|
|
158
176
|
"compose": "`ModalBottomSheet` or `AlertDialog`",
|
|
159
|
-
"note": "`ModalBottomSheet` needs `@OptIn(ExperimentalMaterial3Api::class)`."
|
|
177
|
+
"note": "`ModalBottomSheet` needs `@OptIn(ExperimentalMaterial3Api::class)`. `size=\"fill\"` is the full-screen cover: `.fullScreenCover` / a full-width `Dialog` (`usePlatformDefaultWidth = false`)."
|
|
160
178
|
},
|
|
161
179
|
{
|
|
162
180
|
"ods": "navigation",
|
|
@@ -192,18 +210,36 @@
|
|
|
192
210
|
"swiftui": "`Text` with `.font(.body)`",
|
|
193
211
|
"compose": "`Text` with `MaterialTheme.typography.bodyLarge`"
|
|
194
212
|
},
|
|
213
|
+
{
|
|
214
|
+
"ods": "pagination",
|
|
215
|
+
"swiftui": "Not applicable: web page pattern",
|
|
216
|
+
"compose": "Not applicable: web page pattern",
|
|
217
|
+
"note": "A list loads more as it scrolls: a `List` with `.onAppear` on the last row on Apple, Paging with a `LazyColumn` on Android. No page buttons in an app."
|
|
218
|
+
},
|
|
195
219
|
{
|
|
196
220
|
"ods": "popover",
|
|
197
221
|
"swiftui": "`.popover`",
|
|
198
222
|
"compose": "`DropdownMenu`",
|
|
199
223
|
"note": "Larger anchored content on Android: `ModalBottomSheet`."
|
|
200
224
|
},
|
|
225
|
+
{
|
|
226
|
+
"ods": "progress",
|
|
227
|
+
"swiftui": "`Gauge(value:in:)` with `.gaugeStyle(.accessoryLinearCapacity)`, or `ProgressView(value:)` with a `currentValueLabel`",
|
|
228
|
+
"compose": "`LinearProgressIndicator(progress = { … })` with `semantics { progressBarRangeInfo; stateDescription }`",
|
|
229
|
+
"note": "A meter of use against a limit, not a task progress bar. Say \"Almost at the limit\" and \"Limit reached\" in words, not by color alone. With no limit show the text only. Numbers: `.number.notation(.compactName)` / `.currency(code:)` / `ByteCountFormatStyle(style: .memory)` on Apple; `CompactDecimalFormat` / `NumberFormat.getCurrencyInstance` / `Formatter.formatShortFileSize` on Android."
|
|
230
|
+
},
|
|
201
231
|
{
|
|
202
232
|
"ods": "radioGroup",
|
|
203
233
|
"swiftui": "`Picker` (`.inline` on iOS, `.radioGroup` on macOS)",
|
|
204
234
|
"compose": "`RadioButton`s in a `Column` with `Modifier.selectableGroup()`",
|
|
205
235
|
"note": "`variant=\"card\"`: each option is a bordered card with the radio in it, a `Picker` with custom rows on iOS / selectable `Card`s with a `RadioButton` in a `selectableGroup` on Android."
|
|
206
236
|
},
|
|
237
|
+
{
|
|
238
|
+
"ods": "searchDialog",
|
|
239
|
+
"swiftui": "`.searchable` on the screen that lists the results, with `.searchSuggestions` for recent items",
|
|
240
|
+
"compose": "`SearchBar` with its results in the expanded content",
|
|
241
|
+
"note": "The system places the field and moves focus. Say the count, \"Searching\" and a failure as text, not color alone."
|
|
242
|
+
},
|
|
207
243
|
{
|
|
208
244
|
"ods": "sectionIntro",
|
|
209
245
|
"swiftui": "Not applicable: web page pattern",
|
|
@@ -245,6 +281,12 @@
|
|
|
245
281
|
"compose": "Not applicable: web page pattern",
|
|
246
282
|
"note": "A site is web only. In an app: `NavigationStack` with a toolbar, and a `TabView` or `NavigationSuiteScaffold` for the places."
|
|
247
283
|
},
|
|
284
|
+
{
|
|
285
|
+
"ods": "skeleton",
|
|
286
|
+
"swiftui": "`.redacted(reason: .placeholder)` on the real view",
|
|
287
|
+
"compose": "A `Box` shape filled with `surfaceVariant`",
|
|
288
|
+
"note": "Compose has no stock part. No shimmer: keep it still, or a slow pulse that stops with reduced motion. Hide it from TalkBack and announce the loading once for the region."
|
|
289
|
+
},
|
|
248
290
|
{
|
|
249
291
|
"ods": "sourceCard",
|
|
250
292
|
"swiftui": "`Link` or `Button` with a `Label` (icon, title) and the meta as a secondary line",
|
|
@@ -269,12 +311,24 @@
|
|
|
269
311
|
"compose": "`Switch` in a `ListItem` with `trailingContent`",
|
|
270
312
|
"note": "While a change saves, disable the control or show a `ProgressView` / `CircularProgressIndicator` beside it and put the value back if it fails."
|
|
271
313
|
},
|
|
314
|
+
{
|
|
315
|
+
"ods": "statTile",
|
|
316
|
+
"swiftui": "A `VStack` of `Text`s with `.accessibilityElement(children: .combine)`",
|
|
317
|
+
"compose": "A `Column` with `Modifier.semantics(mergeDescendants = true)`",
|
|
318
|
+
"note": "Not colored by good or bad. Numbers: `.number.notation(.compactName)` / `.currency(code:)` on Apple; `CompactDecimalFormat` / `NumberFormat.getCurrencyInstance` on Android. Loading: `.redacted(reason: .placeholder)`."
|
|
319
|
+
},
|
|
272
320
|
{
|
|
273
321
|
"ods": "tab",
|
|
274
322
|
"swiftui": "`TabView` or segmented `Picker`",
|
|
275
323
|
"compose": "`PrimaryTabRow`",
|
|
276
324
|
"note": "One `Tab` inside `TabView` or one segment / one `Tab`. `TabRow` is deprecated in Material 3."
|
|
277
325
|
},
|
|
326
|
+
{
|
|
327
|
+
"ods": "tabPanel",
|
|
328
|
+
"swiftui": "The content view of a `TabView` page, or the view under a segmented `Picker`",
|
|
329
|
+
"compose": "The content under a `PrimaryTabRow`, shown for the selected index",
|
|
330
|
+
"note": "The system tab views already pair a tab with its content and name it for VoiceOver / TalkBack. On the web it adds `role=\"tabpanel\"`."
|
|
331
|
+
},
|
|
278
332
|
{
|
|
279
333
|
"ods": "tableCell",
|
|
280
334
|
"swiftui": "A `TableColumn` content view",
|
|
@@ -285,7 +339,7 @@
|
|
|
285
339
|
"ods": "tableContainer",
|
|
286
340
|
"swiftui": "`Table`",
|
|
287
341
|
"compose": "`LazyColumn` of `Row`s",
|
|
288
|
-
"note": "Material 3 has no table. A compact-width iPhone `Table` shows only its first column."
|
|
342
|
+
"note": "Material 3 has no table. A compact-width iPhone `Table` shows only its first column. `aria-label` names it: `.accessibilityLabel`. `minWidth` makes it scroll sideways inside its region: a horizontal `ScrollView` / `Modifier.horizontalScroll`. A sorted column uses `TableColumn(…, sortUsing:)` / `semantics { stateDescription }`."
|
|
289
343
|
},
|
|
290
344
|
{
|
|
291
345
|
"ods": "tableHeader",
|
|
@@ -297,7 +351,7 @@
|
|
|
297
351
|
"ods": "tableHeaderCell",
|
|
298
352
|
"swiftui": "A `TableColumn` title",
|
|
299
353
|
"compose": "`Text` in the header `Row`",
|
|
300
|
-
"note": "Material 3 has no table."
|
|
354
|
+
"note": "Material 3 has no table. `sort`: `TableColumn(…, sortUsing:)` with a `KeyPathComparator`; on Android a clickable header `Text` with `semantics { stateDescription = \"Sorted ascending\" }`."
|
|
301
355
|
},
|
|
302
356
|
{
|
|
303
357
|
"ods": "tableRow",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Accordion from "../components/accordion";
|
|
3
|
+
declare const meta: Meta<typeof Accordion>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Accordion>;
|
|
6
|
+
export declare const Faq: Story;
|
|
7
|
+
export declare const OneOpen: Story;
|
|
8
|
+
export declare const Single: Story;
|
|
9
|
+
export declare const DeepLink: Story;
|
|
10
|
+
export declare const DeepLinkJumped: Story;
|
|
11
|
+
export declare const DeepLinkScrolledOn: Story;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React, { useLayoutEffect } from "react";
|
|
2
|
+
import Accordion from "../components/accordion";
|
|
3
|
+
import SiteHeader from "../components/siteHeader";
|
|
4
|
+
import Paragraph from "../components/paragraph";
|
|
5
|
+
var meta = {
|
|
6
|
+
title: "Components/Accordion",
|
|
7
|
+
component: Accordion,
|
|
8
|
+
argTypes: {
|
|
9
|
+
multiple: { control: "boolean" },
|
|
10
|
+
headingLevel: { control: "select", options: [2, 3, 4] },
|
|
11
|
+
linkable: { control: "boolean" },
|
|
12
|
+
},
|
|
13
|
+
decorators: [function (Story) { return <div style={{ width: 560, maxWidth: "100%" }}><Story /></div>; }],
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
var faq = [
|
|
17
|
+
{
|
|
18
|
+
id: "plans",
|
|
19
|
+
title: "What is the difference between the plans?",
|
|
20
|
+
content: <Paragraph>Free is for trying Acme with a small team. Pro and Business add members, storage and AI agent responses.</Paragraph>,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "refunds",
|
|
24
|
+
title: "Can I get a refund?",
|
|
25
|
+
content: <Paragraph>Write to hello@acme.example within 14 days of a charge and we will return it.</Paragraph>,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "members",
|
|
29
|
+
title: "How do I add a member?",
|
|
30
|
+
content: <Paragraph>Open Settings, then Members, and send an invite by email. They join when they accept.</Paragraph>,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "export",
|
|
34
|
+
title: "Can I export my data?",
|
|
35
|
+
content: <Paragraph>Yes. Settings has an Export button that sends a file to your email.</Paragraph>,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
export var Faq = {
|
|
39
|
+
args: { id: "accordion-faq", items: faq, defaultOpen: ["plans"] },
|
|
40
|
+
};
|
|
41
|
+
export var OneOpen = {
|
|
42
|
+
args: { id: "accordion-one-open", items: faq, multiple: false, defaultOpen: ["refunds"] },
|
|
43
|
+
};
|
|
44
|
+
export var Single = {
|
|
45
|
+
args: { id: "accordion-single", items: faq.slice(0, 1) },
|
|
46
|
+
};
|
|
47
|
+
// Does what the browser does on a server-rendered page: jump to the #hash before any effect runs, so before the
|
|
48
|
+
// SiteHeader has set --os-header-offset. With scrolledOn the person then scrolls on, far from the heading.
|
|
49
|
+
var JumpToHash = function (_a) {
|
|
50
|
+
var _b = _a.scrolledOn, scrolledOn = _b === void 0 ? false : _b;
|
|
51
|
+
useLayoutEffect(function () {
|
|
52
|
+
var _a;
|
|
53
|
+
var id = decodeURIComponent(window.location.hash.slice(1));
|
|
54
|
+
if (id)
|
|
55
|
+
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: "start", behavior: "instant" });
|
|
56
|
+
if (scrolledOn)
|
|
57
|
+
window.scrollTo({ top: document.documentElement.scrollHeight, behavior: "instant" });
|
|
58
|
+
}, [scrolledOn]);
|
|
59
|
+
return null;
|
|
60
|
+
};
|
|
61
|
+
var Page = function (_a) {
|
|
62
|
+
var scrolledOn = _a.scrolledOn, jump = _a.jump;
|
|
63
|
+
return (<div style={{ margin: "-1rem" }}>
|
|
64
|
+
<SiteHeader brand={{ href: "/", name: "Acme" }} links={[{ label: "Features", href: "#features" }]}/>
|
|
65
|
+
<main id="main" tabIndex={-1} style={{ padding: 16 }}>
|
|
66
|
+
<div style={{ height: 1400 }}>Tall page above</div>
|
|
67
|
+
<Accordion id="faq" items={faq} linkable multiple={false}/>
|
|
68
|
+
<div style={{ height: 1400 }}>Tall page below</div>
|
|
69
|
+
</main>
|
|
70
|
+
{jump && <JumpToHash scrolledOn={scrolledOn}/>}
|
|
71
|
+
</div>);
|
|
72
|
+
};
|
|
73
|
+
// For tests/interactions.spec.ts only: under a sticky SiteHeader with a tall page above and below, so `#faq-refunds` has to scroll
|
|
74
|
+
export var DeepLink = {
|
|
75
|
+
tags: ["!dev", "!autodocs", "test-only"],
|
|
76
|
+
parameters: { layout: "fullscreen" },
|
|
77
|
+
decorators: [],
|
|
78
|
+
render: function () { return <Page />; },
|
|
79
|
+
};
|
|
80
|
+
// For tests/interactions.spec.ts only: the browser's own jump to the #hash happens first, as on a server-rendered page
|
|
81
|
+
export var DeepLinkJumped = {
|
|
82
|
+
tags: ["!dev", "!autodocs", "test-only"],
|
|
83
|
+
parameters: { layout: "fullscreen" },
|
|
84
|
+
decorators: [],
|
|
85
|
+
render: function () { return <Page jump/>; },
|
|
86
|
+
};
|
|
87
|
+
// For tests/interactions.spec.ts only: jumped, then scrolled to the end of the page (a restored scroll position)
|
|
88
|
+
export var DeepLinkScrolledOn = {
|
|
89
|
+
tags: ["!dev", "!autodocs", "test-only"],
|
|
90
|
+
parameters: { layout: "fullscreen" },
|
|
91
|
+
decorators: [],
|
|
92
|
+
render: function () { return <Page jump scrolledOn/>; },
|
|
93
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useRef } from "react";
|
|
1
|
+
import React, { useRef, useState } from "react";
|
|
2
2
|
import { ChevronDown, ChevronRight, ExternalLink, Plus, Star } from "lucide-react";
|
|
3
3
|
import Button from "../components/button";
|
|
4
4
|
var meta = {
|
|
@@ -215,3 +215,21 @@ export var FocusFromOutside = {
|
|
|
215
215
|
tags: ["!dev", "!autodocs", "test-only"],
|
|
216
216
|
render: function () { return <FocusFromOutsideDemo />; },
|
|
217
217
|
};
|
|
218
|
+
// For tests/interactions.spec.ts: a submit Button that stays loading after the first submit,
|
|
219
|
+
// so a second press or Enter in the field must not submit again
|
|
220
|
+
function SubmitWhileLoadingDemo() {
|
|
221
|
+
var _a = useState(0), submits = _a[0], setSubmits = _a[1];
|
|
222
|
+
return (<form style={{ display: "flex", gap: "16px", alignItems: "center" }} onSubmit={function (e) {
|
|
223
|
+
e.preventDefault();
|
|
224
|
+
setSubmits(function (n) { return n + 1; });
|
|
225
|
+
}}>
|
|
226
|
+
<input aria-label="Name" defaultValue="Acme"/>
|
|
227
|
+
<Button size="small" type="primary" state="enabled" label="Save" htmlType="submit" loading={submits > 0}/>
|
|
228
|
+
<output data-testid="submits">{submits}</output>
|
|
229
|
+
</form>);
|
|
230
|
+
}
|
|
231
|
+
export var SubmitWhileLoading = {
|
|
232
|
+
// For tests/interactions.spec.ts only: hidden from the sidebar and the docs, and skipped by the visual gate
|
|
233
|
+
tags: ["!dev", "!autodocs", "test-only"],
|
|
234
|
+
render: function () { return <SubmitWhileLoadingDemo />; },
|
|
235
|
+
};
|
|
@@ -2,9 +2,12 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
2
2
|
declare const meta: Meta;
|
|
3
3
|
export default meta;
|
|
4
4
|
type Story = StoryObj;
|
|
5
|
+
export declare const AboutPage_Profile: Story;
|
|
5
6
|
export declare const AcceptInvite_SignedOut: Story;
|
|
6
7
|
export declare const AcceptInvite_SignedIn: Story;
|
|
7
8
|
export declare const AccountMenu_Menu: Story;
|
|
9
|
+
export declare const AdminInbox_List: Story;
|
|
10
|
+
export declare const AdminInbox_Split: Story;
|
|
8
11
|
export declare const AgentOptions_Cards: Story;
|
|
9
12
|
export declare const AgentPendingReply_Steps: Story;
|
|
10
13
|
export declare const AgentPendingReply_Streaming: Story;
|
|
@@ -19,21 +22,38 @@ export declare const AppShell_TopTabs: Story;
|
|
|
19
22
|
export declare const ArtifactCard_Card: Story;
|
|
20
23
|
export declare const AuthGateLoading_Spinner: Story;
|
|
21
24
|
export declare const AuthGateLoading_SpinnerWithLine: Story;
|
|
25
|
+
export declare const BillingPage_SelfServe: Story;
|
|
26
|
+
export declare const BillingPage_BilledElsewhere: Story;
|
|
27
|
+
export declare const BlogIndex_List: Story;
|
|
28
|
+
export declare const BlogIndex_Cards: Story;
|
|
29
|
+
export declare const BreakdownList_Bars: Story;
|
|
30
|
+
export declare const BreakdownList_Table: Story;
|
|
31
|
+
export declare const Changelog_OnePage: Story;
|
|
32
|
+
export declare const Changelog_ByMonth: Story;
|
|
22
33
|
export declare const CheckYourEmail_Page: Story;
|
|
23
34
|
export declare const CheckYourEmail_AlertOnLogin: Story;
|
|
35
|
+
export declare const CodeSample_Block: Story;
|
|
36
|
+
export declare const CodeSample_Command: Story;
|
|
24
37
|
export declare const CollapsibleSearch_Popover: Story;
|
|
25
38
|
export declare const ComposerLimit_Notice: Story;
|
|
26
39
|
export declare const ComposerLimit_NoticeWithAction: Story;
|
|
27
40
|
export declare const ConfirmDestructiveAction_Modal: Story;
|
|
28
41
|
export declare const ConfirmDestructiveAction_Inline: Story;
|
|
42
|
+
export declare const ContactPage_Form: Story;
|
|
43
|
+
export declare const ContactPage_Links: Story;
|
|
29
44
|
export declare const ConversationStarters_Chips: Story;
|
|
30
45
|
export declare const ConversationStarters_None: Story;
|
|
31
46
|
export declare const CreateModal_Quick: Story;
|
|
32
47
|
export declare const CreateModal_WithSettings: Story;
|
|
33
48
|
export declare const DangerZone_Collapsed: Story;
|
|
34
49
|
export declare const DangerZone_Shown: Story;
|
|
50
|
+
export declare const Dashboard_NumbersFirst: Story;
|
|
51
|
+
export declare const Dashboard_WorkFirst: Story;
|
|
52
|
+
export declare const DataTablePage_Paged: Story;
|
|
53
|
+
export declare const DataTablePage_AllRows: Story;
|
|
35
54
|
export declare const DeviceLogin_ProviderFirst: Story;
|
|
36
55
|
export declare const DeviceLogin_Popup: Story;
|
|
56
|
+
export declare const DocsComponentPage_Reference: Story;
|
|
37
57
|
export declare const EmailConfirmed_Page: Story;
|
|
38
58
|
export declare const EmailConfirmed_AlertOnLogin: Story;
|
|
39
59
|
export declare const EmptyList_Region: Story;
|
|
@@ -43,11 +63,17 @@ export declare const EmptyNotSetUp_Pointer: Story;
|
|
|
43
63
|
export declare const EmptySearch_ClearSearch: Story;
|
|
44
64
|
export declare const ErrorPage_FullPage: Story;
|
|
45
65
|
export declare const ErrorPage_InShell: Story;
|
|
66
|
+
export declare const Faq_Accordion: Story;
|
|
67
|
+
export declare const Faq_OpenList: Story;
|
|
68
|
+
export declare const FeatureGrid_Cards: Story;
|
|
69
|
+
export declare const FeatureGrid_Rows: Story;
|
|
46
70
|
export declare const FeedbackForm_Modal: Story;
|
|
47
71
|
export declare const FilterMenu_Presets: Story;
|
|
48
72
|
export declare const FilterMenu_WithClear: Story;
|
|
49
73
|
export declare const ForgotPassword_InPlace: Story;
|
|
50
74
|
export declare const ForgotPassword_OwnPage: Story;
|
|
75
|
+
export declare const ImageViewer_Gallery: Story;
|
|
76
|
+
export declare const ImageViewer_Single: Story;
|
|
51
77
|
export declare const ImportChecklist_Modal: Story;
|
|
52
78
|
export declare const InlineFormFeedback_ButtonLabel: Story;
|
|
53
79
|
export declare const InlineFormFeedback_InlineAlert: Story;
|
|
@@ -56,6 +82,11 @@ export declare const IntegrationsList_Rows: Story;
|
|
|
56
82
|
export declare const IntegrationsList_Nested: Story;
|
|
57
83
|
export declare const InviteMember_ByEmail: Story;
|
|
58
84
|
export declare const InviteMember_ByLink: Story;
|
|
85
|
+
export declare const InvoiceList_Table: Story;
|
|
86
|
+
export declare const InvoiceList_WithUpcoming: Story;
|
|
87
|
+
export declare const LandingHero_Centered: Story;
|
|
88
|
+
export declare const LandingHero_Split: Story;
|
|
89
|
+
export declare const LegalPage_Sections: Story;
|
|
59
90
|
export declare const LoadFailure_Region: Story;
|
|
60
91
|
export declare const LoadFailure_Inline: Story;
|
|
61
92
|
export declare const LogOutConfirm_Modal: Story;
|
|
@@ -63,6 +94,8 @@ export declare const LoginPage_Centered: Story;
|
|
|
63
94
|
export declare const LoginPage_Split: Story;
|
|
64
95
|
export declare const LoginPage_ProviderFirst: Story;
|
|
65
96
|
export declare const LoginPage_EmailOnly: Story;
|
|
97
|
+
export declare const LongFormPage_Article: Story;
|
|
98
|
+
export declare const LongFormPage_WithContents: Story;
|
|
66
99
|
export declare const MasterDetail_Split: Story;
|
|
67
100
|
export declare const MasterDetail_ListThenPage: Story;
|
|
68
101
|
export declare const MembersList_Rows: Story;
|
|
@@ -90,8 +123,24 @@ export declare const OnOffSettings_List: Story;
|
|
|
90
123
|
export declare const OnThisPage_Aside: Story;
|
|
91
124
|
export declare const OverflowMenu_OnARow: Story;
|
|
92
125
|
export declare const OverflowMenu_InAHeader: Story;
|
|
126
|
+
export declare const PageEnd_CtaBand: Story;
|
|
127
|
+
export declare const PageEnd_NextLink: Story;
|
|
93
128
|
export declare const PageHeader_Actions: Story;
|
|
94
129
|
export declare const PageHeader_SubPage: Story;
|
|
130
|
+
export declare const PagedCard_Pager: Story;
|
|
131
|
+
export declare const PagedCard_SeeAll: Story;
|
|
132
|
+
export declare const PasswordGate_Page: Story;
|
|
133
|
+
export declare const PasswordGate_Inline: Story;
|
|
134
|
+
export declare const PasswordGate_Modal: Story;
|
|
135
|
+
export declare const PaymentMethod_OnFile: Story;
|
|
136
|
+
export declare const PaymentMethod_None: Story;
|
|
137
|
+
export declare const PlanChangeConfirm_Upgrade: Story;
|
|
138
|
+
export declare const PlanChangeConfirm_Downgrade: Story;
|
|
139
|
+
export declare const PlanChangeConfirm_Blocked: Story;
|
|
140
|
+
export declare const PlanPicker_Cards: Story;
|
|
141
|
+
export declare const PlanPicker_List: Story;
|
|
142
|
+
export declare const PricingSection_Cards: Story;
|
|
143
|
+
export declare const ProductCards_Grid: Story;
|
|
95
144
|
export declare const ProfileForm_Form: Story;
|
|
96
145
|
export declare const QuickSwitcher_Modal: Story;
|
|
97
146
|
export declare const RangeSwitch_Segmented: Story;
|
|
@@ -104,6 +153,8 @@ export declare const ReplySources_TagOnly: Story;
|
|
|
104
153
|
export declare const RouteLoading_FullScreen: Story;
|
|
105
154
|
export declare const RouteLoading_Region: Story;
|
|
106
155
|
export declare const ScopePicker_Menu: Story;
|
|
156
|
+
export declare const SectionIndex_Cards: Story;
|
|
157
|
+
export declare const SectionIndex_List: Story;
|
|
107
158
|
export declare const SetNewPassword_Form: Story;
|
|
108
159
|
export declare const SetNewPassword_InvalidLink: Story;
|
|
109
160
|
export declare const SettingsPage_TopTabs: Story;
|
|
@@ -119,7 +170,13 @@ export declare const SiteFooter_Simple: Story;
|
|
|
119
170
|
export declare const SiteFooter_Columns: Story;
|
|
120
171
|
export declare const SiteHeader_Links: Story;
|
|
121
172
|
export declare const SiteHeader_Sections: Story;
|
|
173
|
+
export declare const SiteSearch_Dialog: Story;
|
|
122
174
|
export declare const SlashCommandList_InComposer: Story;
|
|
175
|
+
export declare const StatRow_Tiles: Story;
|
|
176
|
+
export declare const StatRow_Featured: Story;
|
|
177
|
+
export declare const StatusLabel_Dot: Story;
|
|
178
|
+
export declare const StatusLabel_Text: Story;
|
|
179
|
+
export declare const TabbedPanels_Tabs: Story;
|
|
123
180
|
export declare const TagFilter_Tags: Story;
|
|
124
181
|
export declare const ThemeSwitcher_Menu: Story;
|
|
125
182
|
export declare const ThemeSwitcher_Segmented: Story;
|
|
@@ -130,3 +187,6 @@ export declare const UnsavedChangesGuard_SaveOrDiscard: Story;
|
|
|
130
187
|
export declare const UnsavedChangesGuard_Discard: Story;
|
|
131
188
|
export declare const UpgradePrompt_Modal: Story;
|
|
132
189
|
export declare const UpgradePrompt_Inline: Story;
|
|
190
|
+
export declare const UsageMeters_Meters: Story;
|
|
191
|
+
export declare const UsageMeters_ByPerson: Story;
|
|
192
|
+
export declare const UsageMeters_WithCap: Story;
|