From 5e797e96b4c627b8b9642def4d0ab3a3815154a9 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 4 Mar 2020 14:43:13 +0000 Subject: [PATCH] [docs] Simplify some demos (#19608) --- .../pages/components/buttons/UploadButtons.js | 22 ----- .../components/buttons/UploadButtons.tsx | 22 ----- .../pages/components/checkboxes/checkboxes.md | 6 +- .../radio-buttons/FormControlLabelPosition.js | 2 +- .../FormControlLabelPosition.tsx | 2 +- .../radio-buttons/RadioButtonsGroup.js | 65 ++----------- .../radio-buttons/RadioButtonsGroup.tsx | 67 ++------------ .../components/radio-buttons/radio-buttons.md | 6 +- .../components/slider/ContinuousSlider.js | 5 +- .../components/slider/ContinuousSlider.tsx | 5 +- .../pages/components/slider/DiscreteSlider.js | 83 ++--------------- .../components/slider/DiscreteSlider.tsx | 91 +++---------------- .../components/slider/DiscreteSliderLabel.js | 56 ++++++++++++ .../components/slider/DiscreteSliderLabel.tsx | 58 ++++++++++++ .../components/slider/DiscreteSliderMarks.js | 56 ++++++++++++ .../components/slider/DiscreteSliderMarks.tsx | 58 ++++++++++++ .../components/slider/DiscreteSliderSteps.js | 36 ++++++++ .../components/slider/DiscreteSliderSteps.tsx | 36 ++++++++ .../components/slider/DiscreteSliderValues.js | 58 ++++++++++++ .../slider/DiscreteSliderValues.tsx | 58 ++++++++++++ docs/src/pages/components/slider/slider.md | 52 ++++++++--- .../src/pages/components/switches/switches.md | 8 +- 22 files changed, 519 insertions(+), 333 deletions(-) create mode 100644 docs/src/pages/components/slider/DiscreteSliderLabel.js create mode 100644 docs/src/pages/components/slider/DiscreteSliderLabel.tsx create mode 100644 docs/src/pages/components/slider/DiscreteSliderMarks.js create mode 100644 docs/src/pages/components/slider/DiscreteSliderMarks.tsx create mode 100644 docs/src/pages/components/slider/DiscreteSliderSteps.js create mode 100644 docs/src/pages/components/slider/DiscreteSliderSteps.tsx create mode 100644 docs/src/pages/components/slider/DiscreteSliderValues.js create mode 100644 docs/src/pages/components/slider/DiscreteSliderValues.tsx diff --git a/docs/src/pages/components/buttons/UploadButtons.js b/docs/src/pages/components/buttons/UploadButtons.js index 576f2cb3f14329..34af8b626a80d7 100644 --- a/docs/src/pages/components/buttons/UploadButtons.js +++ b/docs/src/pages/components/buttons/UploadButtons.js @@ -32,28 +32,6 @@ export default function UploadButtons() { Upload - - - - - - - -