Skip to content

Commit ae40f06

Browse files
committed
Fix Compose Unstyled docs bundle
1 parent 95543d1 commit ae40f06

5 files changed

Lines changed: 37 additions & 6 deletions

File tree

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ val composeUnstyledDocsAssets = composeUnstyledDocsSource.dir("assets")
1414

1515
val composeUnstyledDemoSources = mapOf(
1616
"bottom-sheet" to "BottomSheetDemo.kt",
17+
"bottom-sheet-scrollable-content" to "BottomSheetScrollableContentDemo.kt",
1718
"modal-bottom-sheet" to "ModalBottomSheetDemo.kt",
19+
"modal-bottom-sheet-scrollable-content" to "ModalBottomSheetScrollableContentDemo.kt",
1820
"button" to "ButtonDemo.kt",
1921
"checkbox" to "CheckboxDemo.kt",
22+
"checkbox-custom-checked-indicator" to "CheckboxCustomCheckedIndicatorDemo.kt",
23+
"checkbox-extended-indicator-bounds" to "CheckboxExtendedIndicatorBoundsDemo.kt",
2024
"tristatecheckbox" to "TriStateCheckboxDemo.kt",
2125
"dialog" to "DialogDemo.kt",
2226
"disclosure" to "DisclosureDemo.kt",

docs/pages/portal.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Portal
33
description: A same-window portal utility for rendering content from one place in composition into a shared host.
44
---
55

6-
<UnstyledDemo/>
7-
86
## Installation
97

108
```kotlin

docs/pages/scrim.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Scrim
33
description: A modal scrim that follows the modal transition state.
44
---
55

6-
<UnstyledDemo id="scrim" />
7-
86
## Installation
97

108
```kotlin

docs/pages/stack.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Stack
33
description: A single layout component for horizontal and vertical stacks.
44
---
55

6-
<UnstyledDemo id="stack" />
7-
86
## Installation
97

108
```kotlin

scripts/generate-compose-unstyled-api.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,32 @@ const apiReferences = {
4848
]),
4949
source('composeunstyled-scrim/src/commonMain/kotlin/com/composeunstyled/Scrim.kt', [fn('Scrim', 'ModalScope.Scrim')]),
5050
],
51+
modal: [
52+
source('composeunstyled-modal/src/commonMain/kotlin/com/composeunstyled/Modal.kt', [
53+
cls('ModalState'),
54+
fn('rememberModalState'),
55+
fn('Modal'),
56+
]),
57+
],
58+
scrim: [
59+
source('composeunstyled-scrim/src/commonMain/kotlin/com/composeunstyled/Scrim.kt', [
60+
fn('Scrim', 'ModalScope.Scrim'),
61+
]),
62+
],
5163
disclosure: [
5264
source('composeunstyled-disclosure/src/commonMain/kotlin/com/composeunstyled/Disclosure.kt', [
5365
fn('UnstyledDisclosure'),
5466
fn('DisclosureButton', 'DisclosureScope.DisclosureButton'),
5567
fn('DisclosedContent', 'DisclosureScope.DisclosedContent'),
5668
]),
5769
],
70+
'dropdown-menu': [
71+
source('composeunstyled-dropdown-menu/src/commonMain/kotlin/com/composeunstyled/DropdownMenu.kt', [
72+
fn('UnstyledDropdownMenu'),
73+
fn('DropdownMenuPanel', 'DropdownMenuScope.DropdownMenuPanel'),
74+
fn('MenuItem', 'DropdownMenuPanelScope.MenuItem'),
75+
]),
76+
],
5877
icon: [source('composeunstyled-icon/src/commonMain/kotlin/com/composeunstyled/Icon.kt', [fn('UnstyledIcon')])],
5978
progressindicator: [
6079
source('composeunstyled-progress/src/commonMain/kotlin/com/composeunstyled/ProgressIndicator.kt', [
@@ -70,6 +89,20 @@ const apiReferences = {
7089
fn('SelectedIndicator', 'RadioButtonScope.SelectedIndicator'),
7190
]),
7291
],
92+
scrollarea: [
93+
source('composeunstyled-scrollbars/src/commonMain/kotlin/com/composeunstyled/Scrollbars.kt', [
94+
fn('rememberScrollbarState'),
95+
fn('UnstyledVerticalScrollbar'),
96+
fn('UnstyledHorizontalScrollbar'),
97+
fn('Thumb', 'ScrollbarScope.Thumb'),
98+
]),
99+
],
100+
portal: [
101+
source('composeunstyled-portal/src/commonMain/kotlin/com/composeunstyled/Portal.kt', [
102+
fn('PortalHost'),
103+
fn('Portal'),
104+
]),
105+
],
73106
separators: [
74107
source('composeunstyled-separators/src/commonMain/kotlin/com/composeunstyled/Separators.kt', [
75108
fn('UnstyledHorizontalSeparator'),

0 commit comments

Comments
 (0)