dash-core-components 1.15.0 → 2.1.0

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.
Files changed (80) hide show
  1. package/README.md +8 -44
  2. package/dash_core_components/async-datepicker.js +1 -1
  3. package/dash_core_components/async-datepicker.js.map +1 -1
  4. package/dash_core_components/async-dropdown.js +2 -2
  5. package/dash_core_components/async-dropdown.js.map +1 -1
  6. package/dash_core_components/async-graph.js +1 -1
  7. package/dash_core_components/async-graph.js.map +1 -1
  8. package/dash_core_components/async-highlight.js +1 -1
  9. package/dash_core_components/async-highlight.js.map +1 -1
  10. package/dash_core_components/async-markdown.js +2 -2
  11. package/dash_core_components/async-markdown.js.map +1 -1
  12. package/dash_core_components/async-plotlyjs.js +2 -2
  13. package/dash_core_components/async-slider.js +1 -2
  14. package/dash_core_components/async-slider.js.map +1 -1
  15. package/dash_core_components/async-upload.js +1 -1
  16. package/dash_core_components/async-upload.js.map +1 -1
  17. package/dash_core_components/dash_core_components-shared.js +2 -2
  18. package/dash_core_components/dash_core_components-shared.js.map +1 -1
  19. package/dash_core_components/dash_core_components.js +3 -0
  20. package/dash_core_components/dash_core_components.js.map +1 -0
  21. package/dash_core_components/plotly.min.js +30 -26
  22. package/lib/components/Checklist.react.js +77 -35
  23. package/lib/components/Clipboard.react.js +354 -0
  24. package/lib/components/ConfirmDialog.react.js +16 -12
  25. package/lib/components/ConfirmDialogProvider.react.js +19 -15
  26. package/lib/components/DatePickerRange.react.js +111 -97
  27. package/lib/components/DatePickerSingle.react.js +95 -81
  28. package/lib/components/Download.react.js +138 -0
  29. package/lib/components/Dropdown.react.js +69 -47
  30. package/lib/components/Graph.react.js +36 -24
  31. package/lib/components/Input.react.js +98 -92
  32. package/lib/components/Interval.react.js +18 -12
  33. package/lib/components/Link.react.js +36 -30
  34. package/lib/components/Loading.react.js +21 -15
  35. package/lib/components/Location.react.js +15 -13
  36. package/lib/components/LogoutButton.react.js +18 -14
  37. package/lib/components/Markdown.react.js +23 -17
  38. package/lib/components/RadioItems.react.js +77 -35
  39. package/lib/components/RangeSlider.react.js +61 -55
  40. package/lib/components/Slider.react.js +52 -46
  41. package/lib/components/Store.react.js +16 -16
  42. package/lib/components/Tab.react.js +6 -2
  43. package/lib/components/Tabs.react.js +32 -23
  44. package/lib/components/Textarea.react.js +19 -13
  45. package/lib/components/Tooltip.react.js +152 -0
  46. package/lib/components/Upload.react.js +25 -19
  47. package/lib/components/css/Dropdown.css +1 -1
  48. package/lib/fragments/DatePickerRange.react.js +63 -51
  49. package/lib/fragments/DatePickerSingle.react.js +28 -17
  50. package/lib/fragments/Dropdown.react.js +33 -22
  51. package/lib/fragments/Graph.privateprops.js +1 -1
  52. package/lib/fragments/Graph.react.js +44 -28
  53. package/lib/fragments/Loading/spinners/CircleSpinner.js +16 -16
  54. package/lib/fragments/Loading/spinners/CubeSpinner.js +11 -11
  55. package/lib/fragments/Loading/spinners/DefaultSpinner.js +9 -9
  56. package/lib/fragments/Loading/spinners/DotSpinner.js +7 -7
  57. package/lib/fragments/Loading/spinners/GraphSpinner.js +18 -18
  58. package/lib/fragments/Markdown.react.js +35 -32
  59. package/lib/fragments/RangeSlider.react.js +57 -22
  60. package/lib/fragments/Slider.react.js +40 -21
  61. package/lib/fragments/Upload.react.js +19 -13
  62. package/lib/index.js +77 -53
  63. package/lib/third-party/highlight.js +12 -0
  64. package/lib/utils/LazyLoader/datePickerRange.js +9 -3
  65. package/lib/utils/LazyLoader/datePickerSingle.js +9 -3
  66. package/lib/utils/LazyLoader/dropdown.js +9 -3
  67. package/lib/utils/LazyLoader/graph.js +9 -3
  68. package/lib/utils/LazyLoader/hljs.js +9 -3
  69. package/lib/utils/LazyLoader/markdown.js +9 -3
  70. package/lib/utils/LazyLoader/plotly.js +9 -3
  71. package/lib/utils/LazyLoader/rangeSlider.js +9 -3
  72. package/lib/utils/LazyLoader/slider.js +9 -3
  73. package/lib/utils/LazyLoader/upload.js +9 -3
  74. package/lib/utils/computeSliderMarkers.js +230 -0
  75. package/lib/utils/convertToMoment.js +4 -0
  76. package/lib/utils/optionTypes.js +52 -0
  77. package/package.json +68 -75
  78. package/CHANGELOG.md +0 -1034
  79. package/dash_core_components/dash_core_components.min.js +0 -2
  80. package/dash_core_components/dash_core_components.min.js.map +0 -1
package/README.md CHANGED
@@ -6,40 +6,24 @@ This package provides the core React component suite for [Dash][].
6
6
 
7
7
  ## Development
8
8
 
9
- The `dash` package contains some tools to build components and drive the bundles build process.
10
- To avoid the circular dependency situation, we don't add `dash` as a required install in the `dash-core-components` setup.
11
- But, in order to do development locally, you need to install `dash` before everything.
12
-
13
- 1. Install the dependencies with:
9
+ This package is part of `dash`, and if you install `dash` in development mode with extras as below, you can develop in this portion as well.
10
+ From the root of the `dash` repo:
14
11
 
15
12
  ```bash
16
- # it's recommended to install your python packages in a virtualenv
17
- # python 2
18
- $ pip install virtualenv --user && virtualenv venv && . venv/bin/activate
19
- # python 3
13
+ # It's recommended to install your python packages in a virtualenv
14
+ # As of dash 2.0, python 3 is required
20
15
  $ python -m venv venv && . venv/bin/activate
21
16
 
22
17
  # make sure dash is installed with dev and testing dependencies
23
- $ pip install dash[dev,testing] # in some shells you need \ to escape []
18
+ $ pip install -e .[dev,testing] # in some shells you need \ to escape []
24
19
 
25
- # run the build process
26
- $ npm i --ignore-scripts && npm run build
20
+ # run the build process - this will build all of dash, including dcc
21
+ $ npm i && npm run build
27
22
 
28
23
  # install dcc in editable mode
29
24
  $ pip install -e .
30
25
  ```
31
26
 
32
- ### Demo server
33
-
34
- You can start up a demo development server to see a demo of the rendered
35
- components:
36
-
37
- ```sh
38
- $ npm start
39
- ```
40
-
41
- You have to maintain the list of components in `demo/Demo.react.js`.
42
-
43
27
  ### Code quality and tests
44
28
 
45
29
  ### To run integration tests (test_integration.py)
@@ -47,10 +31,6 @@ You can run the Selenium integration tests with the
47
31
  ```sh
48
32
  npm test
49
33
  ```
50
- command, and the Jest unit tests with the
51
- ```sh
52
- npm run test-unit
53
- ```
54
34
 
55
35
  ### Testing your components in Dash
56
36
  1. Run the build watcher by running
@@ -61,22 +41,6 @@ npm run test-unit
61
41
  # Import dash_core_components to your layout, then run it:
62
42
  $ python my_dash_layout.py
63
43
 
64
- ## Uninstalling python package locally
65
-
66
- ```sh
67
- $ npm run uninstall-local
68
- ```
69
-
70
- ## Publishing
71
-
72
- There's an npm script that will handle publish, provided you have the right credentials. You can run it by running
73
-
74
- ```sh
75
- $ npm run publish-all
76
- ```
77
-
78
- See the [Publishing New Components/Features](CONTRIBUTING.md#publishing-new-componentsfeatures) section of the Contributing guide for step-by-step instructions on publishing new components.
79
-
80
44
  ## Dash Component Boilerplate
81
45
 
82
46
  See the [dash-component-boilerplate](https://github.com/plotly/dash-component-boilerplate) repo for more information.
@@ -88,4 +52,4 @@ See the [dash-component-boilerplate](https://github.com/plotly/dash-component-bo
88
52
 
89
53
 
90
54
  ## Big Thanks
91
- Cross-browser Testing Powered by [![image](https://user-images.githubusercontent.com/1394467/64290307-e4c66600-cf33-11e9-85a1-12c82230a597.png)](https://saucelabs.com)
55
+ Cross-browser Testing Powered by [![image](https://user-images.githubusercontent.com/1394467/64290307-e4c66600-cf33-11e9-85a1-12c82230a597.png)](https://saucelabs.com)