@astryxdesign/cli 0.7.11-canary.ec945c9 → 0.7.11
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/CHANGELOG.md +51 -0
- package/api/build/kit/rank.mjs +4 -21
- package/api/build/kit/words.d.mts +0 -1
- package/api/build/kit/words.mjs +1 -1
- package/api/icon/_adapter.d.mts +2 -3
- package/api/icon/_adapter.mjs +2 -8
- package/api/icon/_authoring.d.mts +0 -1
- package/api/icon/_authoring.mjs +66 -586
- package/api/icon/_records.d.mts +1 -1
- package/api/icon/_records.mjs +0 -1
- package/api/icon/add/add.mjs +38 -224
- package/api/icon/icon.type.d.mts +2 -22
- package/api/icon/icon.type.mjs +2 -6
- package/api/icon/iconAdd.doc.mjs +2 -2
- package/api/icon/iconNewDefinition.doc.mjs +2 -3
- package/api/icon/iconNewSet.doc.mjs +4 -4
- package/api/icon/search/search.mjs +9 -10
- package/api/integration/add-helpers.d.mts +1 -11
- package/api/integration/add-helpers.mjs +2 -5
- package/api/integration/authoring-checks.d.mts +2 -0
- package/api/integration/authoring-checks.mjs +6 -1
- package/api/logger.mjs +1 -2
- package/api/swizzle/_adapter.d.mts +0 -1
- package/api/swizzle/_adapter.mjs +1 -4
- package/api/swizzle/copy/copy.d.mts +43 -2
- package/api/swizzle/copy/copy.mjs +314 -194
- package/api/swizzle/swizzle.d.mts +2 -0
- package/api/swizzle/swizzle.doc.mjs +4 -8
- package/api/swizzle/swizzle.mjs +7 -3
- package/api/swizzle/swizzle.type.d.mts +1 -1
- package/api/swizzle/swizzle.type.mjs +2 -2
- package/assets/discover/official-packages.json +0 -12
- package/assets/docs/tree/icon-sets.doc.mjs +5 -11
- package/assets/templates/pages/file-explorer/page.tsx +79 -103
- package/assets/templates/pages/table-grouped/page.tsx +232 -160
- package/assets/templates/pages/table-grouped/template.doc.mjs +2 -0
- package/assets/templates/pages/theme-showcase/page.tsx +792 -724
- package/assets/templates/pages/theme-showcase/template.doc.mjs +5 -4
- package/clients/cli/commands/experimental/icon.mjs +10 -31
- package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +1 -2
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +2 -2
- package/clients/cli/commands/swizzle.doc.mjs +3 -6
- package/clients/cli/commands/swizzle.mjs +9 -8
- package/foundation/discovery/component-loader.d.mts +1 -1
- package/foundation/discovery/doc-types.mjs +2 -9
- package/foundation/discovery/icon-ranking.d.mts +3 -27
- package/foundation/discovery/icon-ranking.mjs +8 -125
- package/foundation/discovery/icon-set-checks.mjs +35 -44
- package/foundation/discovery/icon-set-discovery.d.mts +0 -13
- package/foundation/discovery/icon-set-discovery.mjs +0 -25
- package/foundation/discovery/icon-set-writer.d.mts +16 -238
- package/foundation/discovery/icon-set-writer.mjs +79 -676
- package/foundation/discovery/module-exports.d.mts +2 -3
- package/foundation/discovery/module-exports.mjs +37 -167
- package/foundation/fs/paths.d.mts +1 -2
- package/foundation/fs/paths.mjs +4 -3
- package/package.json +6 -6
- package/api/icon/_default-look.d.mts +0 -155
- package/api/icon/_default-look.mjs +0 -474
- package/api/swizzle/_moduleGraph.d.mts +0 -162
- package/api/swizzle/_moduleGraph.mjs +0 -754
- package/foundation/text/shell-arg.d.mts +0 -14
- package/foundation/text/shell-arg.mjs +0 -17
package/api/swizzle/swizzle.mjs
CHANGED
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
* - a component name -> api/swizzle/copy -> `swizzle.copy` receipt
|
|
10
10
|
*
|
|
11
11
|
* Errors throw AstryxError (stable code + suggestions). All human prose /
|
|
12
|
-
* package-manager prefixing lives in the CLI renderer.
|
|
13
|
-
*
|
|
12
|
+
* package-manager prefixing lives in the CLI renderer. Re-exports the copy
|
|
13
|
+
* leaf's `rewriteImports` so existing importers keep this module as their entry
|
|
14
|
+
* point (api/index.mjs, the CLI command, and the unit tests all import from
|
|
15
|
+
* here).
|
|
14
16
|
*/
|
|
15
17
|
|
|
16
18
|
import {swizzleList} from './list/list.mjs';
|
|
17
|
-
import {swizzleCopy} from './copy/copy.mjs';
|
|
19
|
+
import {swizzleCopy, rewriteImports} from './copy/copy.mjs';
|
|
20
|
+
|
|
21
|
+
export {rewriteImports};
|
|
18
22
|
|
|
19
23
|
/**
|
|
20
24
|
* List swizzlable components, or copy one component's source for customization.
|
|
@@ -62,7 +62,7 @@ export type SwizzleOptions = {
|
|
|
62
62
|
*/
|
|
63
63
|
list?: boolean | undefined;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Overwrite existing files instead of erroring.
|
|
66
66
|
*/
|
|
67
67
|
overwrite?: boolean | undefined;
|
|
68
68
|
};
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* @property {string} data.package Owner package the component source was copied from.
|
|
35
35
|
* @property {string} data.outputDir
|
|
36
36
|
* @property {number} data.filesCopied
|
|
37
|
-
* @property {string[]} data.files Copied file names, relative to the component folder;
|
|
37
|
+
* @property {string[]} data.files Copied file names, relative to the component folder; owner modules and their unexported style modules copied beside it start with `../` (spec:AST-110 FR4).
|
|
38
38
|
* @property {boolean} data.usesStyleX Whether any copied file uses StyleX (requires build-time setup).
|
|
39
39
|
* @property {SwizzleFeedback} [data.feedback]
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* @property {string} [output] Output directory (must resolve inside cwd). Defaults to ./components/astryx.
|
|
47
47
|
* @property {string} [package] Scope to a specific owning package when a name is ambiguous.
|
|
48
48
|
* @property {boolean} [list] Force the list response even with a component argument.
|
|
49
|
-
* @property {boolean} [overwrite]
|
|
49
|
+
* @property {boolean} [overwrite] Overwrite existing files instead of erroring.
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
export {};
|
|
@@ -283,18 +283,6 @@
|
|
|
283
283
|
"kind": "component",
|
|
284
284
|
"name": "RichTextEditor"
|
|
285
285
|
},
|
|
286
|
-
{
|
|
287
|
-
"kind": "component",
|
|
288
|
-
"name": "RichTextEditorAutoLinkPlugin"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"kind": "component",
|
|
292
|
-
"name": "RichTextEditorToolbar"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"kind": "component",
|
|
296
|
-
"name": "RichTextView"
|
|
297
|
-
},
|
|
298
286
|
{
|
|
299
287
|
"kind": "template",
|
|
300
288
|
"name": "RichTextEditorShowcase"
|
|
@@ -121,11 +121,11 @@ export const docs = {
|
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
type: 'prose',
|
|
124
|
-
text: "Every component the library exports becomes an icon (an alias of one component is recorded once), named `<Name>Icon`, with an id from its name (`Squares2X2Icon` is `squares-2x2`: a dimension stays one word). `map` is filled only where a definition's name is an icon's id (`delete` → icon `delete`), and the receipt lists those entries under Mapped by name: a library can draw another meaning under the same name (one library's `delete` is a backspace key), so check each. An icon whose id is only one of a definition's words (`trash` for `delete`) may mean something else in this library, so the receipt lists it under Suggestions, with the `experimental icon map <definition> <icon>` command for each, and writes nothing for it: check the meaning, then run the ones that fit. Run it again after a library release to refresh the icons that library supplies; `map` entries whose icon still exists are kept, and the receipt names any icon the library dropped, any icon `--exclude` left out, and the `map` entries each took with it. Icons you added from your own files or another library are left as they are.
|
|
124
|
+
text: "Every component the library exports becomes an icon (an alias of one component is recorded once), named `<Name>Icon`, with an id from its name (`Squares2X2Icon` is `squares-2x2`: a dimension stays one word). `map` is filled only where a definition's name is an icon's id (`delete` → icon `delete`), and the receipt lists those entries under Mapped by name: a library can draw another meaning under the same name (one library's `delete` is a backspace key), so check each. An icon whose id is only one of a definition's words (`trash` for `delete`) may mean something else in this library, so the receipt lists it under Suggestions, with the `experimental icon map <definition> <icon>` command for each, and writes nothing for it: check the meaning, then run the ones that fit. Run it again after a library release to refresh the icons that library supplies; `map` entries whose icon still exists are kept, and the receipt names any icon the library dropped, any icon `--exclude` left out, and the `map` entries each took with it. Icons you added from your own files or another library are left as they are. An icon you already have is known by the library export it re-exports, so it keeps its export name exactly, its `map` entries, variants, and words, even when a newer CLI spells its id differently or your `--exclude` lets a library prefix come off new ids; the receipt lists each changed id under `renamed`. A refresh with `--dry-run` writes nothing and prints the Mapped by name and Suggestions lists again; `--display-name` and `--description` on a refresh rewrite the descriptor. Variants added with `add --variant … --all` are kept too; run that `add` again to pick up icons the release added. `experimental icon --list` shows how many definitions the set maps.",
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
type: 'prose',
|
|
128
|
-
text: "With a package or package subpath, it also records the installed library and version as the data file's `source`, so `integration check` warns when your dependency moves to another version; copies the library's LICENSE (and NOTICE) files into the set directory; and sets the descriptor's `license` to the library's. A set you started without `--from` gets the same the first time a refresh records its source, unless you already changed `license`: a `license` you set is kept (the receipt names the library's), and every later refresh keeps it too. Your package.json `license` is never changed. Edit `license` when the artwork's license differs from the library's package license.
|
|
128
|
+
text: "With a package or package subpath, it also records the installed library and version as the data file's `source`, so `integration check` warns when your dependency moves to another version; copies the library's LICENSE (and NOTICE) files into the set directory; and sets the descriptor's `license` to the library's. A set you started without `--from` gets the same the first time a refresh records its source, unless you already changed `license`: a `license` you set is kept (the receipt names the library's), and every later refresh keeps it too. Your package.json `license` is never changed. Edit `license` when the artwork's license differs from the library's package license.",
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
type: 'prose',
|
|
@@ -139,7 +139,7 @@ astryx experimental icon add --variant solid --from @heroicons/react/24/solid --
|
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
type: 'prose',
|
|
142
|
-
text: "A library that redraws its artwork for small sizes (Heroicons' 20px mini and 16px micro) ships each of those as its own set in its own package (their export names match the 24px ones), not as variants: a variant's size comes from CSS. `--variants` lists the variants; `--default-variant` names the one each icon's own export draws (
|
|
142
|
+
text: "A library that redraws its artwork for small sizes (Heroicons' 20px mini and 16px micro) ships each of those as its own set in its own package (their export names match the 24px ones), not as variants: a variant's size comes from CSS. `--variants` lists the variants; `--default-variant` names the one each icon's own export draws (the first variant when omitted). `--all` adds the variant for every icon whose id an export of `--from` has (`TrashIcon` in the solid module becomes `TrashSolidIcon`, the solid variant of `trash`), and the receipt lists the icons the module has no export for. Running it again changes nothing.",
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
type: 'prose',
|
|
@@ -177,7 +177,7 @@ astryx experimental icon add --variant solid --from @heroicons/react/24/solid --
|
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
type: 'prose',
|
|
180
|
-
text:
|
|
180
|
+
text: "An optional render test you can copy. Save it inside your package directory and run it there, since it imports your package by name through its `exports`, and install `react-dom` first (`npm install -D react-dom`). A library may add its own classes beside yours, so it checks the class list. A library that sets `width` and `height` attributes (24, say) still fills its box: CSS sizing, such as the `Icon` component's, overrides SVG size attributes.",
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
type: 'code',
|
|
@@ -191,8 +191,6 @@ for (const [name, Icon] of Object.entries(icons)) {
|
|
|
191
191
|
const html = renderToStaticMarkup(createElement(Icon, {className: 'x'}));
|
|
192
192
|
if (!/class="([^"]* )?x( [^"]*)?"/.test(html)) throw new Error(\`\${name} drops className\`);
|
|
193
193
|
if (!html.includes('currentColor')) throw new Error(\`\${name} has a fixed color\`);
|
|
194
|
-
const styled = renderToStaticMarkup(createElement(Icon, {style: {width: '1em'}}));
|
|
195
|
-
if (!styled.includes('width:1em')) throw new Error(\`\${name} drops style, so CSS cannot size it\`);
|
|
196
194
|
}`,
|
|
197
195
|
},
|
|
198
196
|
],
|
|
@@ -217,10 +215,6 @@ for (const [name, Icon] of Object.entries(icons)) {
|
|
|
217
215
|
'A subpath per style',
|
|
218
216
|
'`experimental icon add --variant solid --from @acme/glyph-library/solid --all` for every icon at once, or `experimental icon add Bin --from @acme/glyph-library/solid --id bin --variant solid` for one (the set must declare the variant: `new-set --variants`)',
|
|
219
217
|
],
|
|
220
|
-
[
|
|
221
|
-
'Every look in its export names (`XOutline24WGHT500Icon`, `XFilled24WGHT500Icon`)',
|
|
222
|
-
"`experimental icon new-set meta --from @acme/vector-icons` wraps each glyph once as `x` (`XIcon`), in the look `--default-variant` names or the library's usual default (outline, the middle weight). For another look: `experimental icon new-set meta --variants outline,filled` declares it in place, then `experimental icon add --variant filled --from @acme/vector-icons --all`",
|
|
223
|
-
],
|
|
224
218
|
[
|
|
225
219
|
'One file per icon, default export',
|
|
226
220
|
'`experimental icon add Rocket --from @acme/glyph-library/rocket --default --definition rocket`',
|
|
@@ -268,7 +262,7 @@ export function adapt(data) {
|
|
|
268
262
|
content: [
|
|
269
263
|
{
|
|
270
264
|
type: 'prose',
|
|
271
|
-
text:
|
|
265
|
+
text: 'The generated module also exports `themeIcons`: one entry per built-in definition in `map`, each an element of your own icon, hidden from assistive technology and sized `1em`. The CLI rewrites it on every `experimental icon add` and `experimental icon map`, so you never write it by hand, and `integration check` proves it matches `map`. A theme uses it in one line:',
|
|
272
266
|
},
|
|
273
267
|
{
|
|
274
268
|
type: 'code',
|
|
@@ -7,8 +7,6 @@ import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
|
7
7
|
import {Toolbar} from '@astryxdesign/core/Toolbar';
|
|
8
8
|
import {List, ListItem} from '@astryxdesign/core/List';
|
|
9
9
|
import {HStack, VStack} from '@astryxdesign/core/Layout';
|
|
10
|
-
import {StackItem} from '@astryxdesign/core/Stack';
|
|
11
|
-
import {rtlStyles} from '@astryxdesign/core/utils';
|
|
12
10
|
import {Text} from '@astryxdesign/core/Text';
|
|
13
11
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
14
12
|
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
@@ -262,9 +260,14 @@ const FILESYSTEM: FileSystemItem[] = [
|
|
|
262
260
|
];
|
|
263
261
|
|
|
264
262
|
const page: CSSProperties = {height: '100dvh'};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
const
|
|
263
|
+
const columnRow: CSSProperties = {overflowX: 'auto', overflowY: 'hidden'};
|
|
264
|
+
const scrollable: CSSProperties = {overflowY: 'auto'};
|
|
265
|
+
const fixedColumn: CSSProperties = {flexShrink: 0};
|
|
266
|
+
const detailColumn: CSSProperties = {
|
|
267
|
+
flexGrow: 1,
|
|
268
|
+
flexShrink: 0,
|
|
269
|
+
flexBasis: 320,
|
|
270
|
+
};
|
|
268
271
|
|
|
269
272
|
function findItem(items: FileSystemItem[], id: string): FileSystemItem | null {
|
|
270
273
|
for (const item of items) {
|
|
@@ -358,13 +361,7 @@ export default function FileExplorerPage() {
|
|
|
358
361
|
<IconButton
|
|
359
362
|
variant="ghost"
|
|
360
363
|
size="sm"
|
|
361
|
-
icon={
|
|
362
|
-
<Icon
|
|
363
|
-
icon={ChevronLeftIcon}
|
|
364
|
-
size="sm"
|
|
365
|
-
xstyle={rtlStyles.mirror}
|
|
366
|
-
/>
|
|
367
|
-
}
|
|
364
|
+
icon={<Icon icon={ChevronLeftIcon} size="sm" />}
|
|
368
365
|
onClick={() => {
|
|
369
366
|
if (selectedPath.length > 0) {
|
|
370
367
|
setSelectedPath(selectedPath.slice(0, -1));
|
|
@@ -376,13 +373,7 @@ export default function FileExplorerPage() {
|
|
|
376
373
|
<IconButton
|
|
377
374
|
variant="ghost"
|
|
378
375
|
size="sm"
|
|
379
|
-
icon={
|
|
380
|
-
<Icon
|
|
381
|
-
icon={ChevronRightIcon}
|
|
382
|
-
size="sm"
|
|
383
|
-
xstyle={rtlStyles.mirror}
|
|
384
|
-
/>
|
|
385
|
-
}
|
|
376
|
+
icon={<Icon icon={ChevronRightIcon} size="sm" />}
|
|
386
377
|
isDisabled
|
|
387
378
|
label="Go forward"
|
|
388
379
|
/>
|
|
@@ -458,101 +449,86 @@ export default function FileExplorerPage() {
|
|
|
458
449
|
}
|
|
459
450
|
content={
|
|
460
451
|
<LayoutContent padding={0} isScrollable={false}>
|
|
461
|
-
<HStack height="100%"
|
|
452
|
+
<HStack height="100%" style={columnRow}>
|
|
462
453
|
{columns.map((col, colIndex) => {
|
|
463
454
|
const showDivider =
|
|
464
455
|
colIndex < columns.length - 1 || selectedFile != null;
|
|
465
456
|
return (
|
|
466
|
-
<
|
|
457
|
+
<Section
|
|
467
458
|
key={colIndex}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
459
|
+
width={240}
|
|
460
|
+
padding={2}
|
|
461
|
+
variant="transparent"
|
|
462
|
+
dividers={showDivider ? ['end'] : undefined}
|
|
463
|
+
style={{...scrollable, ...fixedColumn}}>
|
|
464
|
+
<List density="compact" hasDividers={false}>
|
|
465
|
+
{col.items.map(item => {
|
|
466
|
+
const isSelected = col.selectedId === item.id;
|
|
467
|
+
const hasChildren =
|
|
468
|
+
item.type === 'folder' &&
|
|
469
|
+
item.children != null &&
|
|
470
|
+
item.children.length > 0;
|
|
471
|
+
return (
|
|
472
|
+
<ListItem
|
|
473
|
+
key={item.id}
|
|
474
|
+
label={item.name}
|
|
475
|
+
startContent={
|
|
476
|
+
<Icon
|
|
477
|
+
icon={
|
|
478
|
+
item.type === 'folder'
|
|
479
|
+
? FolderIcon
|
|
480
|
+
: DocumentIcon
|
|
481
|
+
}
|
|
482
|
+
color={
|
|
483
|
+
item.type === 'folder' ? 'accent' : 'secondary'
|
|
484
|
+
}
|
|
485
|
+
size="sm"
|
|
486
|
+
/>
|
|
487
|
+
}
|
|
488
|
+
endContent={
|
|
489
|
+
hasChildren ? (
|
|
493
490
|
<Icon
|
|
494
|
-
icon={
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
: DocumentIcon
|
|
498
|
-
}
|
|
499
|
-
color={
|
|
500
|
-
item.type === 'folder'
|
|
501
|
-
? 'accent'
|
|
502
|
-
: 'secondary'
|
|
503
|
-
}
|
|
504
|
-
size="sm"
|
|
491
|
+
icon={ChevronRightIcon}
|
|
492
|
+
size="xsm"
|
|
493
|
+
color="secondary"
|
|
505
494
|
/>
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
) : undefined
|
|
516
|
-
}
|
|
517
|
-
onClick={() => handleSelect(colIndex, item.id)}
|
|
518
|
-
isSelected={isSelected}
|
|
519
|
-
/>
|
|
520
|
-
);
|
|
521
|
-
})}
|
|
522
|
-
</List>
|
|
523
|
-
</Section>
|
|
524
|
-
</StackItem>
|
|
495
|
+
) : undefined
|
|
496
|
+
}
|
|
497
|
+
onClick={() => handleSelect(colIndex, item.id)}
|
|
498
|
+
isSelected={isSelected}
|
|
499
|
+
/>
|
|
500
|
+
);
|
|
501
|
+
})}
|
|
502
|
+
</List>
|
|
503
|
+
</Section>
|
|
525
504
|
);
|
|
526
505
|
})}
|
|
527
506
|
{selectedFile && (
|
|
528
|
-
<
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
<VStack gap={
|
|
535
|
-
<
|
|
536
|
-
<
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
{getFileExtension(selectedFile.name)} Document
|
|
540
|
-
</Text>
|
|
541
|
-
</VStack>
|
|
542
|
-
<MetadataList title="Information">
|
|
543
|
-
<MetadataListItem label="Created">
|
|
544
|
-
March 28, 2026 at 2:15 PM
|
|
545
|
-
</MetadataListItem>
|
|
546
|
-
<MetadataListItem label="Modified">
|
|
547
|
-
Yesterday, 10:27 PM
|
|
548
|
-
</MetadataListItem>
|
|
549
|
-
<MetadataListItem label="Kind">
|
|
550
|
-
{getFileExtension(selectedFile.name)} Document
|
|
551
|
-
</MetadataListItem>
|
|
552
|
-
</MetadataList>
|
|
507
|
+
<Section
|
|
508
|
+
padding={6}
|
|
509
|
+
variant="transparent"
|
|
510
|
+
style={{...scrollable, ...detailColumn}}>
|
|
511
|
+
<VStack gap={4} hAlign="center">
|
|
512
|
+
<Avatar name={selectedFile.name} size={96} />
|
|
513
|
+
<VStack gap={1} hAlign="center">
|
|
514
|
+
<Text type="label">{selectedFile.name}</Text>
|
|
515
|
+
<Text type="supporting">
|
|
516
|
+
{getFileExtension(selectedFile.name)} Document
|
|
517
|
+
</Text>
|
|
553
518
|
</VStack>
|
|
554
|
-
|
|
555
|
-
|
|
519
|
+
<MetadataList title="Information">
|
|
520
|
+
<MetadataListItem label="Created">
|
|
521
|
+
March 28, 2026 at 2:15 PM
|
|
522
|
+
</MetadataListItem>
|
|
523
|
+
<MetadataListItem label="Modified">
|
|
524
|
+
Yesterday, 10:27 PM
|
|
525
|
+
</MetadataListItem>
|
|
526
|
+
<MetadataListItem label="Kind">
|
|
527
|
+
{getFileExtension(selectedFile.name)} Document
|
|
528
|
+
</MetadataListItem>
|
|
529
|
+
</MetadataList>
|
|
530
|
+
</VStack>
|
|
531
|
+
</Section>
|
|
556
532
|
)}
|
|
557
533
|
</HStack>
|
|
558
534
|
</LayoutContent>
|