Commit f531182
authored
Feature: Modernized the playground ui (#4811)
* Feature: Modernized the playground ui
Modernized the playground UI to allow for more real-estate for the actual form
- Updated the `SampleSelector` to render the samples inside of a `Drawer` on the left side of the screen, that when closed just shows the selected sample name
- Refactored the theme and subtheme selector from `Headers` into the `Editors` component, moving that and the existing content into an `Accordion`
- Renamed the `Headers` component to `OptionsDrawer` moving all of the remaining content into a permanent right-side drawer
- Also consolidated the two live settings schemas and uiSchemas into a single schema and uiSchema
- Also moved the buttons above the live settings schema form
- Updated `Playground` and `Sample.ts` to fix the imports due to the file rename
- Updated the `ThemeSelector` and `SubthemeSelectors` to add click handlers to stop the click propagation
- Updated `CopyLink` to make it wider and change the title to `Share Playground`
- Updated `Playground` to change the fragment into a `Box` flexed, with 100%, adding the `SampleSelector` directly
- Also added a second `Box` width 100% around the `Editors`, `Divider`, and `DemoFrame`
- Moved the renamed `OptionsDrawer` below the second `Box`
- Updated `Footer` to absolutely position the Netlify badge to the left of the Options Drawer
# Conflicts:
# packages/playground/src/components/OptionsDrawer.tsx
# Conflicts:
# packages/playground/src/components/OptionsDrawer.tsx
* - Updated screenshots to remove playground controls and to make sure all themes showed them in the README
* - Updated the documentation's animated playground GIF
* - Updated the `CHANGELOG.md`
# Conflicts:
# CHANGELOG.md
* - Better animated gif
* - Update images
* - Updated playground's `index.tsx` to switch to non-deprecated APIs1 parent 4e8236f commit f531182
File tree
37 files changed
+351
-208
lines changed- packages
- antd
- chakra-ui
- core
- daisyui
- docs/docs
- fluentui-rc
- mantine
- mui
- playground/src
- components
- layout
- samples
- primereact
- react-bootstrap
- semantic-ui
- shadcn
37 files changed
+351
-208
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
28 | 39 | | |
29 | 40 | | |
30 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments