@nxgt/material 1.0.5 → 1.2.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 +26 -8
- package/dist/components.js +3 -2
- package/dist/{dist-DdZVa0Zr.js → dist-DNEsJ1nV.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/{hooks-BPv0i6YN.js → hooks-CHmfdtMs.js} +81 -47
- package/dist/hooks.js +3 -3
- package/dist/{i18n-1Eg35q8-.js → i18n-D4R3sSqT.js} +102 -0
- package/dist/i18n.js +1 -1
- package/dist/lib/components/index.d.ts +15 -0
- package/dist/lib/components/ui/anchor-heading.d.ts +9 -0
- package/dist/lib/components/ui/anchor-heading.stories.d.ts +13 -0
- package/dist/lib/components/ui/anchor-heading.utils.d.ts +2 -0
- package/dist/lib/components/ui/api-endpoint.d.ts +9 -0
- package/dist/lib/components/ui/api-endpoint.stories.d.ts +14 -0
- package/dist/lib/components/ui/api-operation.d.ts +13 -0
- package/dist/lib/components/ui/api-operation.stories.d.ts +13 -0
- package/dist/lib/components/ui/cards/cards.stories.d.ts +23 -0
- package/dist/lib/components/ui/cards/cards.stories.data.d.ts +11 -0
- package/dist/lib/components/ui/cards/index.d.ts +12 -0
- package/dist/lib/components/ui/cards/partials/crew-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/feature-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/media-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/notice-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/overlay-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/pricing-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/profile-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/quote-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/split-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/spotlight-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/partials/ticket-card.d.ts +2 -0
- package/dist/lib/components/ui/cards/types.d.ts +76 -0
- package/dist/lib/components/ui/code/code-group.d.ts +13 -0
- package/dist/lib/components/ui/code/code-group.stories.d.ts +14 -0
- package/dist/lib/components/ui/code/index.d.ts +2 -0
- package/dist/lib/components/ui/copy-button/copy-button.d.ts +5 -3
- package/dist/lib/components/ui/doc/doc-api.stories.d.ts +13 -0
- package/dist/lib/components/ui/doc/doc-blocks.stories.d.ts +13 -0
- package/dist/lib/components/ui/doc/doc-context.d.ts +61 -0
- package/dist/lib/components/ui/doc/doc.d.ts +11 -0
- package/dist/lib/components/ui/doc/doc.keyboard.d.ts +20 -0
- package/dist/lib/components/ui/doc/doc.keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/doc/doc.slice.d.ts +97 -0
- package/dist/lib/components/ui/doc/doc.stories.d.ts +15 -0
- package/dist/lib/components/ui/doc/doc.stories.data.d.ts +7 -0
- package/dist/lib/components/ui/doc/doc.utils.d.ts +29 -0
- package/dist/lib/components/ui/doc/doc.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/doc/index.d.ts +36 -0
- package/dist/lib/components/ui/doc/partials/doc-article.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-child-cards.d.ts +4 -0
- package/dist/lib/components/ui/doc/partials/doc-copy-actions.d.ts +7 -0
- package/dist/lib/components/ui/doc/partials/doc-empty.d.ts +3 -0
- package/dist/lib/components/ui/doc/partials/doc-header.d.ts +18 -0
- package/dist/lib/components/ui/doc/partials/doc-link.d.ts +3 -0
- package/dist/lib/components/ui/doc/partials/doc-nav.d.ts +4 -0
- package/dist/lib/components/ui/doc/partials/doc-page.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-pager.d.ts +4 -0
- package/dist/lib/components/ui/doc/partials/doc-progress.d.ts +3 -0
- package/dist/lib/components/ui/doc/partials/doc-search.d.ts +1 -0
- package/dist/lib/components/ui/doc/partials/doc-see-also.d.ts +4 -0
- package/dist/lib/components/ui/doc/partials/doc-sidebar.d.ts +4 -0
- package/dist/lib/components/ui/doc/partials/doc-skip-link.d.ts +2 -0
- package/dist/lib/components/ui/doc/partials/doc-toc.d.ts +6 -0
- package/dist/lib/components/ui/doc/partials/doc-topbar.d.ts +4 -0
- package/dist/lib/components/ui/doc/types.d.ts +46 -0
- package/dist/lib/components/ui/doc/use-doc.d.ts +43 -0
- package/dist/lib/components/ui/feedback/empty-state.stories.d.ts +1 -0
- package/dist/lib/components/ui/feedback/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/scroll-progress.d.ts +6 -0
- package/dist/lib/components/ui/feedback/scroll-progress.stories.d.ts +13 -0
- package/dist/lib/components/ui/figure.d.ts +7 -0
- package/dist/lib/components/ui/figure.stories.d.ts +13 -0
- package/dist/lib/components/ui/hero.d.ts +10 -0
- package/dist/lib/components/ui/hero.stories.d.ts +13 -0
- package/dist/lib/components/ui/highlight-text.d.ts +6 -0
- package/dist/lib/components/ui/highlight-text.stories.d.ts +12 -0
- package/dist/lib/components/ui/list-tile.d.ts +2 -1
- package/dist/lib/components/ui/list-tile.stories.d.ts +1 -0
- package/dist/lib/components/ui/metrics/index.d.ts +6 -0
- package/dist/lib/components/ui/metrics/metrics.stories.d.ts +16 -0
- package/dist/lib/components/ui/metrics/metrics.stories.data.d.ts +5 -0
- package/dist/lib/components/ui/metrics/partials/breakdown-card.d.ts +2 -0
- package/dist/lib/components/ui/metrics/partials/goal-card.d.ts +2 -0
- package/dist/lib/components/ui/metrics/partials/rank-card.d.ts +2 -0
- package/dist/lib/components/ui/metrics/partials/sparkline.d.ts +5 -0
- package/dist/lib/components/ui/metrics/partials/trend-card.d.ts +2 -0
- package/dist/lib/components/ui/metrics/types.d.ts +35 -0
- package/dist/lib/components/ui/pager.d.ts +20 -0
- package/dist/lib/components/ui/pager.stories.d.ts +13 -0
- package/dist/lib/components/ui/param-table.d.ts +13 -0
- package/dist/lib/components/ui/param-table.stories.d.ts +13 -0
- package/dist/lib/components/ui/see-also.d.ts +17 -0
- package/dist/lib/components/ui/see-also.stories.d.ts +12 -0
- package/dist/lib/components/ui/skip-link.d.ts +3 -0
- package/dist/lib/components/ui/skip-link.stories.d.ts +12 -0
- package/dist/lib/components/ui/steps.d.ts +13 -0
- package/dist/lib/components/ui/steps.stories.d.ts +13 -0
- package/dist/lib/components/ui/tabs.d.ts +4 -1
- package/dist/lib/components/ui/tabs.stories.d.ts +1 -0
- package/dist/lib/components/ui/toc.d.ts +21 -0
- package/dist/lib/components/ui/toc.stories.d.ts +13 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-heading-spy.d.ts +6 -0
- package/dist/lib/i18n/resources/en/index.d.ts +57 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +57 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +57 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +57 -0
- package/dist/lib/i18n/resources/index.d.ts +114 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/string.utils.d.ts +9 -0
- package/dist/lib/lib/url.utils.d.ts +2 -0
- package/dist/{lib-CaKARQ-7.js → lib-Rq5clPUe.js} +620 -584
- package/dist/lib.js +3 -3
- package/dist/{main-CHByIwHT.js → main-Df-oZmsh.js} +35823 -33747
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/package.json +1 -1
|
@@ -728,6 +728,16 @@ var tr = Xe(function(e, t, n) {
|
|
|
728
728
|
title: "Command Palette",
|
|
729
729
|
description: "Search for a command to run..."
|
|
730
730
|
},
|
|
731
|
+
"scroll-progress": "Scroll progress",
|
|
732
|
+
"skip-link": "Skip to content",
|
|
733
|
+
"see-also": "See also",
|
|
734
|
+
cards: { "per-month": "/ month" },
|
|
735
|
+
metrics: { "of-target": "of {target}" },
|
|
736
|
+
pager: {
|
|
737
|
+
previous: "Previous",
|
|
738
|
+
next: "Next"
|
|
739
|
+
},
|
|
740
|
+
toc: { "on-this-page": "On this page" },
|
|
731
741
|
upload: { dropzone: {
|
|
732
742
|
idle: "Drag & drop files here, or click to browse",
|
|
733
743
|
"at-capacity": "Maximum number of files reached",
|
|
@@ -1411,6 +1421,47 @@ var tr = Xe(function(e, t, n) {
|
|
|
1411
1421
|
"card-title": "Card title",
|
|
1412
1422
|
subtitle: "Add subtitle",
|
|
1413
1423
|
"wip-full": "Column is at WIP limit"
|
|
1424
|
+
},
|
|
1425
|
+
doc: {
|
|
1426
|
+
search: "Search docs",
|
|
1427
|
+
"search-placeholder": "Search the documentation…",
|
|
1428
|
+
filter: "Filter pages",
|
|
1429
|
+
"filter-empty": "Try a different filter.",
|
|
1430
|
+
"no-results": "No results",
|
|
1431
|
+
"search-navigate": "to navigate",
|
|
1432
|
+
"search-select": "to select",
|
|
1433
|
+
"search-close": "to close",
|
|
1434
|
+
"skip-to-content": "Skip to content",
|
|
1435
|
+
"reading-progress": "Reading progress",
|
|
1436
|
+
"on-this-page": "On this page",
|
|
1437
|
+
menu: "Menu",
|
|
1438
|
+
"menu-description": "Documentation navigation",
|
|
1439
|
+
previous: "Previous",
|
|
1440
|
+
next: "Next",
|
|
1441
|
+
"see-also": "See also",
|
|
1442
|
+
"copy-link": "Copy link",
|
|
1443
|
+
"copied-link": "Copied",
|
|
1444
|
+
"copy-page": "Copy page",
|
|
1445
|
+
"copy-markdown": "Copy markdown",
|
|
1446
|
+
edit: "Edit this page",
|
|
1447
|
+
"last-updated": "Updated",
|
|
1448
|
+
collapse: "Collapse",
|
|
1449
|
+
expand: "Expand",
|
|
1450
|
+
callout: {
|
|
1451
|
+
note: "Note",
|
|
1452
|
+
tip: "Tip",
|
|
1453
|
+
info: "Info",
|
|
1454
|
+
warning: "Warning",
|
|
1455
|
+
danger: "Danger",
|
|
1456
|
+
success: "Success"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"param-table": {
|
|
1460
|
+
name: "Name",
|
|
1461
|
+
type: "Type",
|
|
1462
|
+
default: "Default",
|
|
1463
|
+
description: "Description",
|
|
1464
|
+
required: "required"
|
|
1414
1465
|
}
|
|
1415
1466
|
} },
|
|
1416
1467
|
fr: { material: {
|
|
@@ -1436,6 +1487,16 @@ var tr = Xe(function(e, t, n) {
|
|
|
1436
1487
|
title: "Palette de commandes",
|
|
1437
1488
|
description: "Recherchez une commande à exécuter..."
|
|
1438
1489
|
},
|
|
1490
|
+
"scroll-progress": "Progression du défilement",
|
|
1491
|
+
"skip-link": "Aller au contenu",
|
|
1492
|
+
"see-also": "Voir aussi",
|
|
1493
|
+
cards: { "per-month": "/ mois" },
|
|
1494
|
+
metrics: { "of-target": "sur {target}" },
|
|
1495
|
+
pager: {
|
|
1496
|
+
previous: "Précédent",
|
|
1497
|
+
next: "Suivant"
|
|
1498
|
+
},
|
|
1499
|
+
toc: { "on-this-page": "Sur cette page" },
|
|
1439
1500
|
upload: { dropzone: {
|
|
1440
1501
|
idle: "Glissez-déposez des fichiers ici, ou cliquez pour parcourir",
|
|
1441
1502
|
"at-capacity": "Nombre maximum de fichiers atteint",
|
|
@@ -2119,6 +2180,47 @@ var tr = Xe(function(e, t, n) {
|
|
|
2119
2180
|
"card-title": "Titre de la carte",
|
|
2120
2181
|
subtitle: "Ajouter un sous-titre",
|
|
2121
2182
|
"wip-full": "Colonne au maximum WIP"
|
|
2183
|
+
},
|
|
2184
|
+
doc: {
|
|
2185
|
+
search: "Rechercher",
|
|
2186
|
+
"search-placeholder": "Rechercher dans la documentation…",
|
|
2187
|
+
filter: "Filtrer les pages",
|
|
2188
|
+
"filter-empty": "Essayez un autre filtre.",
|
|
2189
|
+
"no-results": "Aucun résultat",
|
|
2190
|
+
"search-navigate": "pour naviguer",
|
|
2191
|
+
"search-select": "pour ouvrir",
|
|
2192
|
+
"search-close": "pour fermer",
|
|
2193
|
+
"skip-to-content": "Aller au contenu",
|
|
2194
|
+
"reading-progress": "Progression de lecture",
|
|
2195
|
+
"on-this-page": "Sur cette page",
|
|
2196
|
+
menu: "Menu",
|
|
2197
|
+
"menu-description": "Navigation de la documentation",
|
|
2198
|
+
previous: "Précédent",
|
|
2199
|
+
next: "Suivant",
|
|
2200
|
+
"see-also": "Voir aussi",
|
|
2201
|
+
"copy-link": "Copier le lien",
|
|
2202
|
+
"copied-link": "Copié",
|
|
2203
|
+
"copy-page": "Copier la page",
|
|
2204
|
+
"copy-markdown": "Copier le markdown",
|
|
2205
|
+
edit: "Modifier cette page",
|
|
2206
|
+
"last-updated": "Mis à jour",
|
|
2207
|
+
collapse: "Replier",
|
|
2208
|
+
expand: "Déplier",
|
|
2209
|
+
callout: {
|
|
2210
|
+
note: "Note",
|
|
2211
|
+
tip: "Astuce",
|
|
2212
|
+
info: "Info",
|
|
2213
|
+
warning: "Attention",
|
|
2214
|
+
danger: "Danger",
|
|
2215
|
+
success: "Succès"
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
"param-table": {
|
|
2219
|
+
name: "Nom",
|
|
2220
|
+
type: "Type",
|
|
2221
|
+
default: "Défaut",
|
|
2222
|
+
description: "Description",
|
|
2223
|
+
required: "requis"
|
|
2122
2224
|
}
|
|
2123
2225
|
} }
|
|
2124
2226
|
}, J = "language", nr = "en", Y = Object.keys(q), rr = e(null);
|
package/dist/i18n.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./i18n-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./i18n-D4R3sSqT.js";
|
|
2
2
|
export { f as FALLBACK_LANGUAGE, u as I18nProvider, n as LANGUAGE_KEY, r as SUPPORTED_LANGUAGES, l as createTranslator, d as createTypedTranslation, i as getLanguage, s as mergeResources, c as resources, e as translate, t as useI18nContext, o as useMaterialTranslation, a as useOptionalI18nContext };
|
|
@@ -2,6 +2,9 @@ export * from './ui/accordion';
|
|
|
2
2
|
export * from './ui/accordion-card';
|
|
3
3
|
export * from './ui/action-card';
|
|
4
4
|
export * from './ui/activity';
|
|
5
|
+
export * from './ui/anchor-heading';
|
|
6
|
+
export * from './ui/api-endpoint';
|
|
7
|
+
export * from './ui/api-operation';
|
|
5
8
|
export * from './ui/app-bar';
|
|
6
9
|
export * from './ui/app-shell';
|
|
7
10
|
export * from './ui/attributes';
|
|
@@ -16,6 +19,7 @@ export * from './ui/breadcrumb';
|
|
|
16
19
|
export * from './ui/buttons';
|
|
17
20
|
export * from './ui/calendar';
|
|
18
21
|
export * from './ui/card';
|
|
22
|
+
export * from './ui/cards';
|
|
19
23
|
export * from './ui/carousel';
|
|
20
24
|
export * from './ui/charts';
|
|
21
25
|
export * from './ui/chat';
|
|
@@ -42,6 +46,7 @@ export * from './ui/date-range-field';
|
|
|
42
46
|
export * from './ui/description';
|
|
43
47
|
export * from './ui/dialog';
|
|
44
48
|
export * from './ui/dnd';
|
|
49
|
+
export * from './ui/doc';
|
|
45
50
|
export * from './ui/drawer';
|
|
46
51
|
export * from './ui/dropdown-menu';
|
|
47
52
|
export * from './ui/duration-field';
|
|
@@ -53,12 +58,15 @@ export * from './ui/event-chip';
|
|
|
53
58
|
export * from './ui/extended-label';
|
|
54
59
|
export * from './ui/feedback';
|
|
55
60
|
export * from './ui/field';
|
|
61
|
+
export * from './ui/figure';
|
|
56
62
|
export * from './ui/file-list';
|
|
57
63
|
export * from './ui/filter';
|
|
58
64
|
export * from './ui/forms';
|
|
59
65
|
export * from './ui/galleries';
|
|
60
66
|
export * from './ui/helper-text';
|
|
67
|
+
export * from './ui/hero';
|
|
61
68
|
export * from './ui/hidrate-loading';
|
|
69
|
+
export * from './ui/highlight-text';
|
|
62
70
|
export * from './ui/hover-card';
|
|
63
71
|
export * from './ui/icon';
|
|
64
72
|
export * from './ui/image-cropper';
|
|
@@ -76,12 +84,15 @@ export * from './ui/layout';
|
|
|
76
84
|
export * from './ui/list-tile';
|
|
77
85
|
export * from './ui/load-more-button';
|
|
78
86
|
export * from './ui/menubar';
|
|
87
|
+
export * from './ui/metrics';
|
|
79
88
|
export * from './ui/navigation-rail';
|
|
80
89
|
export * from './ui/notifications';
|
|
81
90
|
export * from './ui/number-field';
|
|
82
91
|
export * from './ui/opening-hours';
|
|
83
92
|
export * from './ui/otp-field';
|
|
93
|
+
export * from './ui/pager';
|
|
84
94
|
export * from './ui/pagination';
|
|
95
|
+
export * from './ui/param-table';
|
|
85
96
|
export * from './ui/password-field';
|
|
86
97
|
export * from './ui/pdf-viewer';
|
|
87
98
|
export * from './ui/percent-field';
|
|
@@ -97,6 +108,7 @@ export * from './ui/responsive-grid';
|
|
|
97
108
|
export * from './ui/rich-text-editor';
|
|
98
109
|
export * from './ui/scroll-to-top';
|
|
99
110
|
export * from './ui/search-field';
|
|
111
|
+
export * from './ui/see-also';
|
|
100
112
|
export * from './ui/select';
|
|
101
113
|
export * from './ui/select-card-field';
|
|
102
114
|
export * from './ui/select-chip-field';
|
|
@@ -105,11 +117,13 @@ export * from './ui/separator';
|
|
|
105
117
|
export * from './ui/sheet';
|
|
106
118
|
export * from './ui/sidebar';
|
|
107
119
|
export * from './ui/skeleton';
|
|
120
|
+
export * from './ui/skip-link';
|
|
108
121
|
export * from './ui/slider';
|
|
109
122
|
export * from './ui/sortable-list';
|
|
110
123
|
export * from './ui/stat-card';
|
|
111
124
|
export * from './ui/status-indicator';
|
|
112
125
|
export * from './ui/stepper';
|
|
126
|
+
export * from './ui/steps';
|
|
113
127
|
export * from './ui/stx-player';
|
|
114
128
|
export * from './ui/summary-data';
|
|
115
129
|
export * from './ui/switch';
|
|
@@ -124,6 +138,7 @@ export * from './ui/time-field';
|
|
|
124
138
|
export * from './ui/time-picker';
|
|
125
139
|
export * from './ui/timeline';
|
|
126
140
|
export * from './ui/timezone-field';
|
|
141
|
+
export * from './ui/toc';
|
|
127
142
|
export * from './ui/toggle';
|
|
128
143
|
export * from './ui/toggle-group';
|
|
129
144
|
export * from './ui/tooltip';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export { headingText } from './anchor-heading.utils';
|
|
3
|
+
export type AnchorHeadingProps = {
|
|
4
|
+
level?: 1 | 2 | 3 | 4;
|
|
5
|
+
id?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & Omit<ComponentProps<'h2'>, 'children'>;
|
|
9
|
+
export declare function AnchorHeading({ level, id, children, className, ...props }: AnchorHeadingProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AnchorHeading } from '..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AnchorHeading;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ApiEndpointMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
3
|
+
export type ApiEndpointProps = {
|
|
4
|
+
method: ApiEndpointMethod;
|
|
5
|
+
path: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function ApiEndpoint({ method, path, children, className, }: ApiEndpointProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ApiEndpoint } from '..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ApiEndpoint;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Get: Story;
|
|
14
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ApiEndpointMethod } from './api-endpoint';
|
|
3
|
+
import { CodeGroupTab } from './code/code-group';
|
|
4
|
+
import { ParamTableRow } from './param-table';
|
|
5
|
+
export type ApiOperationProps = {
|
|
6
|
+
method: ApiEndpointMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
params?: ParamTableRow[];
|
|
9
|
+
examples?: CodeGroupTab[];
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function ApiOperation({ method, path, params, examples, children, className, }: ApiOperationProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { ApiOperation } from '..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof ApiOperation;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Get: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Feature: Story;
|
|
11
|
+
export declare const Media: Story;
|
|
12
|
+
export declare const Pricing: Story;
|
|
13
|
+
export declare const Profile: Story;
|
|
14
|
+
export declare const Quote: Story;
|
|
15
|
+
export declare const Overlay: Story;
|
|
16
|
+
export declare const Spotlight: Story;
|
|
17
|
+
export declare const Crew: Story;
|
|
18
|
+
export declare const Split: Story;
|
|
19
|
+
export declare const Ticket: Story;
|
|
20
|
+
export declare const Notice: Story;
|
|
21
|
+
export declare const Gallery: Story;
|
|
22
|
+
export declare const Phone: Story;
|
|
23
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function FeatureDemo(): import("react").JSX.Element;
|
|
2
|
+
export declare function MediaDemo(): import("react").JSX.Element;
|
|
3
|
+
export declare function PricingDemo(): import("react").JSX.Element;
|
|
4
|
+
export declare function ProfileDemo(): import("react").JSX.Element;
|
|
5
|
+
export declare function QuoteDemo(): import("react").JSX.Element;
|
|
6
|
+
export declare function OverlayDemo(): import("react").JSX.Element;
|
|
7
|
+
export declare function SpotlightDemo(): import("react").JSX.Element;
|
|
8
|
+
export declare function CrewDemo(): import("react").JSX.Element;
|
|
9
|
+
export declare function SplitDemo(): import("react").JSX.Element;
|
|
10
|
+
export declare function TicketDemo(): import("react").JSX.Element;
|
|
11
|
+
export declare function NoticeDemo(): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { CrewCard } from './partials/crew-card';
|
|
2
|
+
export { FeatureCard } from './partials/feature-card';
|
|
3
|
+
export { MediaCard } from './partials/media-card';
|
|
4
|
+
export { NoticeCard } from './partials/notice-card';
|
|
5
|
+
export { OverlayCard } from './partials/overlay-card';
|
|
6
|
+
export { PricingCard } from './partials/pricing-card';
|
|
7
|
+
export { ProfileCard } from './partials/profile-card';
|
|
8
|
+
export { QuoteCard } from './partials/quote-card';
|
|
9
|
+
export { SplitCard } from './partials/split-card';
|
|
10
|
+
export { SpotlightCard } from './partials/spotlight-card';
|
|
11
|
+
export { TicketCard } from './partials/ticket-card';
|
|
12
|
+
export type { CrewCardProps, FeatureCardProps, MediaCardProps, NoticeCardProps, OverlayCardProps, PricingCardProps, ProfileCardProps, QuoteCardProps, SplitCardProps, SpotlightCardProps, TicketCardProps, } from './types';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Card } from '../card';
|
|
3
|
+
export type FeatureCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
4
|
+
eyebrow?: ReactNode;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
actions?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type MediaCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
media?: ReactNode;
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export type PricingCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
17
|
+
name: ReactNode;
|
|
18
|
+
price: ReactNode;
|
|
19
|
+
period?: ReactNode;
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
features?: ReactNode[];
|
|
22
|
+
actions?: ReactNode;
|
|
23
|
+
highlighted?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export type ProfileCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
26
|
+
name: ReactNode;
|
|
27
|
+
subtitle?: ReactNode;
|
|
28
|
+
meta?: ReactNode;
|
|
29
|
+
avatar?: ReactNode;
|
|
30
|
+
actions?: ReactNode;
|
|
31
|
+
};
|
|
32
|
+
export type QuoteCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
33
|
+
quote: ReactNode;
|
|
34
|
+
author: ReactNode;
|
|
35
|
+
subtitle?: ReactNode;
|
|
36
|
+
avatar?: ReactNode;
|
|
37
|
+
};
|
|
38
|
+
export type OverlayCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
39
|
+
title: ReactNode;
|
|
40
|
+
description?: ReactNode;
|
|
41
|
+
media?: ReactNode;
|
|
42
|
+
eyebrow?: ReactNode;
|
|
43
|
+
actions?: ReactNode;
|
|
44
|
+
};
|
|
45
|
+
export type SpotlightCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
46
|
+
eyebrow?: ReactNode;
|
|
47
|
+
title: ReactNode;
|
|
48
|
+
description?: ReactNode;
|
|
49
|
+
icon?: ReactNode;
|
|
50
|
+
};
|
|
51
|
+
export type CrewCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
52
|
+
title: ReactNode;
|
|
53
|
+
description?: ReactNode;
|
|
54
|
+
people?: ReactNode;
|
|
55
|
+
actions?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
export type SplitCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
58
|
+
kicker?: ReactNode;
|
|
59
|
+
icon?: ReactNode;
|
|
60
|
+
title: ReactNode;
|
|
61
|
+
description?: ReactNode;
|
|
62
|
+
actions?: ReactNode;
|
|
63
|
+
};
|
|
64
|
+
export type TicketCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
65
|
+
title: ReactNode;
|
|
66
|
+
description?: ReactNode;
|
|
67
|
+
stub?: ReactNode;
|
|
68
|
+
meta?: ReactNode;
|
|
69
|
+
actions?: ReactNode;
|
|
70
|
+
};
|
|
71
|
+
export type NoticeCardProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
72
|
+
eyebrow?: ReactNode;
|
|
73
|
+
title: ReactNode;
|
|
74
|
+
description?: ReactNode;
|
|
75
|
+
actions?: ReactNode;
|
|
76
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type CodeGroupTab = {
|
|
3
|
+
label: string;
|
|
4
|
+
code: string;
|
|
5
|
+
language?: string;
|
|
6
|
+
filename?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export type CodeGroupProps = {
|
|
9
|
+
tabs: CodeGroupTab[];
|
|
10
|
+
showLineNumbers?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function CodeGroup({ tabs, showLineNumbers, className, }: CodeGroupProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeGroup } from '../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CodeGroup;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Dark: Story;
|
|
@@ -2,6 +2,8 @@ export type { CodeBlockProps } from './code-block';
|
|
|
2
2
|
export { CodeBlock } from './code-block';
|
|
3
3
|
export type { CodeDiffProps } from './code-diff';
|
|
4
4
|
export { CodeDiff } from './code-diff';
|
|
5
|
+
export type { CodeGroupProps, CodeGroupTab } from './code-group';
|
|
6
|
+
export { CodeGroup } from './code-group';
|
|
5
7
|
export { highlightCode } from './highlight';
|
|
6
8
|
export type { JsonViewerProps } from './json-viewer';
|
|
7
9
|
export { JsonViewer } from './json-viewer';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { IconButtonProps } from '../buttons';
|
|
2
|
-
export type CopyButtonProps = Omit<IconButtonProps, 'onClick' | 'children' | 'tooltip'> & {
|
|
3
|
-
value: string;
|
|
3
|
+
export type CopyButtonProps = Omit<IconButtonProps, 'onClick' | 'children' | 'tooltip' | 'value'> & {
|
|
4
|
+
value: string | (() => string);
|
|
4
5
|
label?: string;
|
|
5
6
|
copiedLabel?: string;
|
|
7
|
+
icon?: ReactNode;
|
|
6
8
|
};
|
|
7
|
-
export declare function CopyButton({ value, label, copiedLabel, variant, color, ...props }: CopyButtonProps): import("react").JSX.Element;
|
|
9
|
+
export declare function CopyButton({ value, label, copiedLabel, icon, variant, color, ...props }: CopyButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Doc } from '../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Doc;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Doc } from '../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Doc;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Gallery: Story;
|
|
13
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DocModel } from './use-doc';
|
|
3
|
+
export type DocContextValue = DocModel;
|
|
4
|
+
export declare function DocProvider({ value, children, }: {
|
|
5
|
+
value: DocContextValue;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
export declare function useDocContext(): {
|
|
9
|
+
items: import('./types').DocNavItem[];
|
|
10
|
+
pathname: string;
|
|
11
|
+
toc: import('./types').DocTocItem[];
|
|
12
|
+
brand: ReactNode;
|
|
13
|
+
actions: ReactNode;
|
|
14
|
+
searchable: boolean;
|
|
15
|
+
linkComponent: import('./types').DocLinkComponent | undefined;
|
|
16
|
+
chrome: import('./types').DocChromeState;
|
|
17
|
+
chromeActions: {
|
|
18
|
+
setSidebarOpen: (payload: boolean) => void;
|
|
19
|
+
setSearchOpen: (payload: boolean) => void;
|
|
20
|
+
setQuery: (payload: string) => void;
|
|
21
|
+
setActiveHeadingId: (payload: string | null) => void;
|
|
22
|
+
toggleCollapsed: (payload: string) => void;
|
|
23
|
+
setCollapsedIds: (payload: string[]) => void;
|
|
24
|
+
};
|
|
25
|
+
navigate: (href: string) => void;
|
|
26
|
+
onNavigate: ((href: string) => void) | undefined;
|
|
27
|
+
pager: {
|
|
28
|
+
previous?: import('./types').DocPagerLink;
|
|
29
|
+
next?: import('./types').DocPagerLink;
|
|
30
|
+
};
|
|
31
|
+
hits: import('./types').DocSearchHit[];
|
|
32
|
+
activeHref: string | undefined;
|
|
33
|
+
articleRef: import('react').RefObject<HTMLElement | null>;
|
|
34
|
+
};
|
|
35
|
+
export declare function useOptionalDocContext(): {
|
|
36
|
+
items: import('./types').DocNavItem[];
|
|
37
|
+
pathname: string;
|
|
38
|
+
toc: import('./types').DocTocItem[];
|
|
39
|
+
brand: ReactNode;
|
|
40
|
+
actions: ReactNode;
|
|
41
|
+
searchable: boolean;
|
|
42
|
+
linkComponent: import('./types').DocLinkComponent | undefined;
|
|
43
|
+
chrome: import('./types').DocChromeState;
|
|
44
|
+
chromeActions: {
|
|
45
|
+
setSidebarOpen: (payload: boolean) => void;
|
|
46
|
+
setSearchOpen: (payload: boolean) => void;
|
|
47
|
+
setQuery: (payload: string) => void;
|
|
48
|
+
setActiveHeadingId: (payload: string | null) => void;
|
|
49
|
+
toggleCollapsed: (payload: string) => void;
|
|
50
|
+
setCollapsedIds: (payload: string[]) => void;
|
|
51
|
+
};
|
|
52
|
+
navigate: (href: string) => void;
|
|
53
|
+
onNavigate: ((href: string) => void) | undefined;
|
|
54
|
+
pager: {
|
|
55
|
+
previous?: import('./types').DocPagerLink;
|
|
56
|
+
next?: import('./types').DocPagerLink;
|
|
57
|
+
};
|
|
58
|
+
hits: import('./types').DocSearchHit[];
|
|
59
|
+
activeHref: string | undefined;
|
|
60
|
+
articleRef: import('react').RefObject<HTMLElement | null>;
|
|
61
|
+
} | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { UseDocOptions } from './use-doc';
|
|
3
|
+
export type DocProps = UseDocOptions & {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Documentation site shell. Layout is CSS-first, matching the usual docs
|
|
9
|
+
* breakpoints: one column below `md`, sidebar from `md`, TOC rail from `xl`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function Doc({ children, className, ...options }: DocProps): import("react").JSX.Element;
|