Skip to content

Commit 3549167

Browse files
committed
feat: updated doc site
1 parent 88f1cf9 commit 3549167

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

apps/docs/docs/components/data-display/ListCell/_mobileExamples.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A ListCell row is divided into the following 5 columns:
44

5-
- Media
5+
- Start
66
- Title & description
77
- Intermediary
88
- End (detail & subdetail or action)
@@ -60,10 +60,10 @@ Prefer `spacingVariant="condensed"` for the new ListCell design. The `compact` m
6060
</VStack>
6161
```
6262

63-
## Media
63+
## Start
6464

6565
::::note
66-
We have deprecated `CellMedia`; pass media directly as shown below.
66+
We have deprecated `CellMedia`; pass start content directly with the `start` prop as shown below.
6767
::::
6868

6969
### Leading Icon
@@ -368,7 +368,7 @@ The ListCellFallback component provides loading state representations of ListCel
368368
{/* Basic loading state */}
369369
<ListCellFallback title description spacingVariant="condensed" />
370370

371-
{/* Loading state with media */}
371+
{/* Loading state with start content */}
372372
<ListCellFallback title description start="icon" spacingVariant="condensed" />
373373

374374
{/* Loading state with details */}
@@ -472,6 +472,10 @@ function PriorityContent() {
472472
}
473473
```
474474

475+
:::::note
476+
`start` priority applies to the title and description column, not the start slot content. The start slot always have `flexShrink={0}`.
477+
:::::
478+
475479
## Anatomy
476480

477481
Without helper text (top-only layout):
@@ -484,7 +488,7 @@ Without helper text (top-only layout):
484488
││┌───────────────────────────────────────────────────────────────────────┐││
485489
│││ contentContainer & mainContent (HStack) │││
486490
│││ ┌─────┐ ┌────────────────┐ ┌────────────┐ ┌────────────┐ ┌─────────┐ │││
487-
│││ │media│ │ VStack │ │intermediary│ │ end │ │accessory│ │││
491+
│││ │start│ │ VStack │ │intermediary│ │ end │ │accessory│ │││
488492
│││ │ │ │ ┌──────────┐ │ │ │ │ (detail │ │ │ │││
489493
│││ │ │ │ │ title │ │ │ │ │ or │ │ │ │││
490494
│││ │ │ │ └──────────┘ │ │ │ │ action) │ │ │ │││
@@ -509,7 +513,7 @@ With helper text (top + bottom layout):
509513
│││┌───────────────────────────────────────────────────────────────────────┐│││
510514
││││ mainContent (HStack) ││││
511515
││││ ┌─────┐ ┌────────────────┐ ┌────────────┐ ┌────────────┐ ┌─────────┐ ││││
512-
││││ │media│ │ VStack │ │intermediary│ │ end │ │accessory│ ││││
516+
││││ │start│ │ VStack │ │intermediary│ │ end │ │accessory│ ││││
513517
││││ │ │ │ ┌──────────┐ │ │ │ │ (detail │ │ │ ││││
514518
││││ │ │ │ │ title │ │ │ │ │ or │ │ │ ││││
515519
││││ │ │ │ └──────────┘ │ │ │ │ action) │ │ │ ││││
@@ -533,7 +537,7 @@ Mapping to `styles` / `classNames` keys:
533537
- contentContainer: container around top and optional bottom content
534538
- mainContent: inner horizontal layout that holds the main pieces
535539
- title/description: stacked text column within `topContent`
536-
- media: leading media container
540+
- start: leading content container
537541
- intermediary: middle container between main and end
538542
- end: container for `detail` / `subdetail` or `end` prop you pass in
539543
- accessory: trailing accessory container

apps/docs/docs/components/data-display/ListCell/_webExamples.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A ListCell row is divided into the following 5 columns:
44

5-
- Media
5+
- Start
66
- Title & description
77
- Intermediary
88
- End (detail & subdetail or action)
@@ -60,10 +60,10 @@ Prefer `spacingVariant="condensed"` for the new ListCell design. The `compact` m
6060
</VStack>
6161
```
6262

63-
## Media
63+
## Start
6464

6565
::::note
66-
We have deprecated `CellMedia`; pass media directly as shown below.
66+
We have deprecated `CellMedia`; pass start content directly with the `start` prop as shown below.
6767
::::
6868

6969
### Leading Icon
@@ -368,7 +368,7 @@ The ListCellFallback component provides loading state representations of ListCel
368368
{/* Basic loading state */}
369369
<ListCellFallback title description spacingVariant="condensed" />
370370

371-
{/* Loading state with media */}
371+
{/* Loading state with start content */}
372372
<ListCellFallback title description start="icon" spacingVariant="condensed" />
373373

374374
{/* Loading state with details */}
@@ -472,6 +472,10 @@ function PriorityContent() {
472472
}
473473
```
474474

475+
:::::note
476+
`start` priority applies to the title and description column, not the start slot content. The start slot always have `flexShrink={0}`.
477+
:::::
478+
475479
## Anatomy
476480

477481
Without helper text (top-only layout):
@@ -484,7 +488,7 @@ Without helper text (top-only layout):
484488
││┌───────────────────────────────────────────────────────────────────────┐││
485489
│││ contentContainer & mainContent (HStack) │││
486490
│││ ┌─────┐ ┌────────────────┐ ┌────────────┐ ┌────────────┐ ┌─────────┐ │││
487-
│││ │media│ │ VStack │ │intermediary│ │ end │ │accessory│ │││
491+
│││ │start│ │ VStack │ │intermediary│ │ end │ │accessory│ │││
488492
│││ │ │ │ ┌──────────┐ │ │ │ │ (detail │ │ │ │││
489493
│││ │ │ │ │ title │ │ │ │ │ or │ │ │ │││
490494
│││ │ │ │ └──────────┘ │ │ │ │ action) │ │ │ │││
@@ -509,7 +513,7 @@ With helper text (top + bottom layout):
509513
│││┌───────────────────────────────────────────────────────────────────────┐│││
510514
││││ mainContent (HStack) ││││
511515
││││ ┌─────┐ ┌────────────────┐ ┌────────────┐ ┌────────────┐ ┌─────────┐ ││││
512-
││││ │media│ │ VStack │ │intermediary│ │ end │ │accessory│ ││││
516+
││││ │start│ │ VStack │ │intermediary│ │ end │ │accessory│ ││││
513517
││││ │ │ │ ┌──────────┐ │ │ │ │ (detail │ │ │ ││││
514518
││││ │ │ │ │ title │ │ │ │ │ or │ │ │ ││││
515519
││││ │ │ │ └──────────┘ │ │ │ │ action) │ │ │ ││││
@@ -533,7 +537,7 @@ Mapping to `styles` / `classNames` keys:
533537
- contentContainer: container around top and optional bottom content
534538
- mainContent: inner horizontal layout that holds the main pieces
535539
- title/description: stacked text column within `topContent`
536-
- media: leading media container
540+
- start: leading content container
537541
- intermediary: middle container between main and end
538542
- end: container for `detail` / `subdetail` or `end` prop you pass in
539543
- accessory: trailing accessory container

0 commit comments

Comments
 (0)