Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Dash Tabs component #74

Closed
wants to merge 86 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
b7f776f
Upload Component (#73)
chriddyp Oct 14, 2017
25a96d2
update plotly.js version in manifest
chriddyp Oct 18, 2017
8ac2135
v0.14.0
chriddyp Oct 18, 2017
85a7573
first pass at an upload component
chriddyp Sep 12, 2017
9683135
first pass at a Tabs component
chriddyp Sep 14, 2017
ebe5616
Fixed propType for options and added key in map for RadioItems component
Akronix Oct 31, 2017
97a7eeb
Corrected mispelled Dropzone prop: from disableClic to disableClick
Akronix Oct 31, 2017
1cee6a9
Corrected mispelled function proptype.
Akronix Oct 31, 2017
f5f2071
Corrected startingLineNumber prop to PropTypes.number
Akronix Oct 31, 2017
8c7533b
Set options as an PropTypes.array instead of just shape
Akronix Oct 31, 2017
5da557a
Added key prop to react examples generated from an array
Akronix Oct 31, 2017
40a0d87
When setting props for Input components, cast inputs of type (#100)
Madhu94 Nov 3, 2017
59602a7
Merge branch 'master' of https://github.com/plotly/dash-core-components
chriddyp Nov 19, 2017
e1c6dd3
Interval `n_intervals` property and `v0.15.0` (#111)
chriddyp Nov 19, 2017
b74f956
fix changelog conflicts
chriddyp Nov 19, 2017
bc06b70
v0.15.2 - Fix remote build (#117)
chriddyp Nov 24, 2017
bb65b44
Remove unused imports. Standard imports should be placed before other…
jbampton Nov 30, 2017
e41ae87
Remove whitespace https://www.python.org/dev/peps/pep-0008/#whitespac…
jbampton Nov 30, 2017
a466203
Use single quotes consistently. The python code in this project uses …
jbampton Dec 2, 2017
8b437dd
Fix typo
jbampton Dec 2, 2017
591b327
Fix typos
jbampton Dec 2, 2017
e19edc3
Remove duplicate CSS white-space key. The white-space CSS property is…
jbampton Dec 2, 2017
c898d75
Surround top-level function and class definitions with two blank line…
jbampton Dec 2, 2017
25e8e83
upgrade plotly.js from 1.31.0 to 1.31.2
chriddyp Dec 11, 2017
e65af17
Update gitignore for idea, Location.react.js and add package-lock.json
mjclawar Dec 20, 2017
14dba83
Merge remote-tracking branch 'upstream/master' into 81-location-url-p…
mjclawar Dec 20, 2017
45013d5
Update package.json and package-lock.json from upstream
mjclawar Dec 20, 2017
762bfc7
Handle hash, href, pathname and search collectively
mjclawar Dec 21, 2017
e7a5607
support Python3 import for urlparse
mjclawar Dec 21, 2017
9cfae7a
Functioning tests with Location
mjclawar Dec 21, 2017
18afd51
Add snapshot test for location-link
mjclawar Dec 21, 2017
608feac
Add tests for "a" HTML tags and handle undefined search and hash values
mjclawar Dec 21, 2017
97768c5
Update CHANGELOG and bump version to 0.15.4
mjclawar Dec 21, 2017
c3d2ea3
0.15.4
mjclawar Dec 21, 2017
b196826
Code style changes; moved waiter to utils (takes a waiter_func); use …
mjclawar Dec 22, 2017
bee0b0e
uncomment non-link/non-location tests
mjclawar Dec 26, 2017
33b61eb
:lock: lock down dependencies
chriddyp Jan 2, 2018
c564559
install dependencies only once, inside tox
chriddyp Jan 2, 2018
593891d
Merge remote-tracking branch 'upstream/master' into 81-location-url-p…
mjclawar Jan 2, 2018
eab3889
Update gitignore for idea, Location.react.js and add package-lock.json
mjclawar Dec 20, 2017
ad98d7a
Update package.json and package-lock.json from upstream
mjclawar Dec 20, 2017
59a4231
Handle hash, href, pathname and search collectively
mjclawar Dec 21, 2017
fe5741f
support Python3 import for urlparse
mjclawar Dec 21, 2017
4833a32
Functioning tests with Location
mjclawar Dec 21, 2017
a2a15a9
Add snapshot test for location-link
mjclawar Dec 21, 2017
70b59ac
Add tests for "a" HTML tags and handle undefined search and hash values
mjclawar Dec 21, 2017
9b28dad
Update CHANGELOG and bump version to 0.15.4
mjclawar Dec 21, 2017
d68f445
0.15.4
mjclawar Dec 21, 2017
6bb808f
Code style changes; moved waiter to utils (takes a waiter_func); use …
mjclawar Dec 22, 2017
f612d9f
uncomment non-link/non-location tests
mjclawar Dec 26, 2017
7d33972
Merge remote-tracking branch 'origin/81-location-url-parameters' into…
mjclawar Jan 2, 2018
8e1d90d
Markdown & SyntaxHighlighter children prop now accept an array of str…
cpsievert Jan 2, 2018
4e54a67
Merge pull request #131 from mjclawar/81-location-url-parameters
chriddyp Jan 2, 2018
6f69ef7
Merge branch 'master' into array4kids
cpsievert Jan 2, 2018
75dbad2
Merge pull request #137 from plotly/array4kids
chriddyp Jan 2, 2018
6bbe636
Update changelog
cpsievert Jan 2, 2018
1720aaf
Remove unused imports and fix import order. Remove extra whitespace.
jbampton Jan 4, 2018
98d6a9f
Re-add the two selenium imports
jbampton Jan 4, 2018
6af59e9
Merge pull request #139 from jbampton/pylint-pep8-fixes
chriddyp Jan 4, 2018
764a49f
add event polyfill to support IE11 and hopefully fix https://github.c…
chriddyp Jan 8, 2018
068caba
v0.15.5
chriddyp Jan 8, 2018
b58ff85
make screenshot tests less fragile
chriddyp Jan 8, 2018
a927185
tighten up wait_for logic on elements
chriddyp Jan 8, 2018
a9c9cf8
typo
chriddyp Jan 8, 2018
9ca565b
bump timeout
chriddyp Jan 8, 2018
92f9a6a
print html to console if loading fails
chriddyp Jan 8, 2018
9127d9a
snapshot after assertions
chriddyp Jan 8, 2018
c75091d
not only wait for elements to appear, wait for their text to change
chriddyp Jan 8, 2018
a74477b
Merge pull request #140 from plotly/fix-ie11
chriddyp Jan 8, 2018
5fa00b3
:star: Upgrade plotly.js to 1.32.0
chriddyp Jan 11, 2018
f1add73
v0.16.0
chriddyp Jan 11, 2018
86a436c
add support for new histogram event data
chriddyp Jan 11, 2018
65d3292
`binNumber` is included as part of the previous logic bloc
chriddyp Jan 11, 2018
21556aa
v0.17.0
chriddyp Jan 11, 2018
94b1082
Fix undefined reference to __version__ in setup.py. Pylint showed an…
jbampton Jan 11, 2018
ea97f72
fix #147 (#148)
chriddyp Jan 18, 2018
7a83fe6
Upgraded polar charts and scattergl charts (#149)
chriddyp Jan 19, 2018
4a1720e
bump plotly.js to v1.33.1
chriddyp Jan 25, 2018
92ca076
v0.18.1
chriddyp Jan 25, 2018
721d83e
Run codemod to convert PropTypes import to `from 'prop-types';`
mjclawar Feb 11, 2018
59c6223
0.19.0
mjclawar Feb 11, 2018
78797e8
Bump version to 0.19.0 and update CHANGELOG with notes about PropTypes
mjclawar Feb 11, 2018
f05e229
- Remove spaces inside curly braces for named imports
mjclawar Feb 23, 2018
9478e4f
Fix spelling
jbampton Feb 26, 2018
257edf7
Merge branch 'master' into tabs
chriddyp Feb 26, 2018
7b6b5ff
update npm version
chriddyp Feb 26, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*]
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ venv/
*.pyc
*.egg-info
*.log
.idea/
.DS_Store

bundle.js
188 changes: 185 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,189 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.19.0] - 2018-02-11
### Changed
- `PropTypes` now uses `prop-types` package instead of `React` to support move to React 16+

## [0.18.1] - 2017-01-25
### Fixed
- Upgraded Plotly.js, the underlying library behind the
`dash_core_components.Graph` component, to [version 1.33.1](https://github.com/plotly/plotly.js/releases/tag/v1.33.1). Fixes include
- Fix selection on scattergl plots with >20k points [#2266](https://github.com/plotly/plotly.js/issues/2266)
- Update Spanish localization with new strings [#2268](https://github.com/plotly/plotly.js/issues/2268)
- Fix test_dashboard overly rigid restriction so parcoods works there [#2273](https://github.com/plotly/plotly.js/issues/2273)
- Make layout.colorway compatible with sankey traces [#2277](https://github.com/plotly/plotly.js/issues/2277)
- Fix click events on fixedrange subplots [#2279](https://github.com/plotly/plotly.js/issues/2279)
- Remove ghost fill when trace data is emptied out [#2280](https://github.com/plotly/plotly.js/issues/2280)
- Fix resizing of new scattergl plots [#2283](https://github.com/plotly/plotly.js/issues/2283)
- Fix positioning of carpet axis titles for cheaterslope edge cases [#2285](https://github.com/plotly/plotly.js/issues/2285)
- Fix coloring and hover info for heatmaps and contour maps with nonuniform bins [#2288](https://github.com/plotly/plotly.js/issues/2288)


## [0.18.0] - 2017-01-19
### Added
- Upgraded Plotly.js, the underlying library behind the
`dash_core_components.Graph` component, to [version 1.33.0](https://github.com/plotly/plotly.js/releases/tag/v1.33.0).
This was a huge release! Here are some of the new features that
are available. See https://github.com/plotly/plotly.js/releases/tag/v1.33.0 for the official notes.

Many of these features were funded directly by companies that rely on this library.
If your organization or company would like to sponsor particular features or
bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem

- Completely rewritten `scattergl` trace type using `regl` [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
- Completely rewritten polar chart renderer accompanied by new
`scatterpolar` and `scatterpolargl` trace types [plotly.js/pull/2200](https://github.com/plotly/plotly.js/pull/2200)
- Add the ability to draw layout images and layout shapes on subplot
with `scattergl` traces [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
- Add `fill` capabilities to `scattergl` traces [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
- Add `spikedistance`, `hoverdistance` and `skipsnap` for more customizable
spikes and hover behavior on cartesian subplots [plotly.js/pull/2247](https://github.com/plotly/plotly.js/pull/2247)
- Add official Spanish translation (locale `es`) [plotly.js/pull/2249](https://github.com/plotly/plotly.js/pull/2249)
- Add official French translation (locale `fr`) [plotly.js/pull/2252](https://github.com/plotly/plotly.js/pull/2252)


### Changed
- With the plotly.js upgrade, the old polar trace types
(`scatter` with `(r, t)` coordinates, bar with (`(r, t)` coordinates and
`area`) are now deprecated).

### Fixed
- Several bugs with the `dcc.Graph` component were fixed with the plotly.js upgrade.
These include:
- Fix `gl2d` tick label on pan interaction regression [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
- Fix `candlestick` hover label regression (bug introduced in v1.32.0) [plotly.js/pull/2264](https://github.com/plotly/plotly.js/pull/2264)
- Fix several `gl2d` axis related bugs with new regl-based `scattergl` [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
See full list under the On-par gl2d milestone https://github.com/plotly/plotly.js/milestone/3
- Fix several polar bugs with `scatterpolar` [plotly.js/pull/2200].(https://github.com/plotly/plotly.js/pull/2200)
See full list under the On-par polar milestone https://github.com/plotly/plotly.js/milestone/2
- Fix `scattergl` marker.colorscale handling [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
- Fix decimal and thousands settings in `de` locale [plotly.js/pull/2246](https://github.com/plotly/plotly.js/pull/2246)
- Make scroll handler _passive_, removing those annoying console warnings [plotly.js/pull/2251](https://github.com/plotly/plotly.js/pull/2251)

## [0.17.1] - 2017-01-18
### Fixed
- Previously, if `None` is supplied to `SyntaxHighlighter` or `Markdown`, the
component would not render and the app would break. This is problematic because
if `children` isn't supplied (as done in the case for when you are updating that
property from a callback), `None` is the default property. Fixes https://github.com/plotly/dash-core-components/issues/147. This bug was introduced in
v0.15.4.

## [0.17.0] - 2017-01-11
### Added
- The `dcc.Graph` component now includes `pointNumbers` inside `selectedData`
and `hoverData` if the chart type is a `histogram`, `histogram2d`, or `histogram2dcontour`.

## [0.16.0] - 2017-01-11
### Added
- Upgraded Plotly.js, the underlying library behind the
`dash_core_components.Graph` component, to [version 1.32.0](https://github.com/plotly/plotly.js/releases/tag/v1.32.0).
This was a huge release! Here are some of the new features that
are available. See https://github.com/plotly/plotly.js/releases/tag/v1.32.0 for the official notes.
- Add localization machinery [https://github.com/plotly/plotly.js/pull/2195, https://github.com/plotly/plotly.js/pull/2207, https://github.com/plotly/plotly.js/pull/2210, https://github.com/plotly/plotly.js/pull/2232],
including an official German translation (locale `de`) [https://github.com/plotly/plotly.js/pull/2217]
- Add `violin` trace type [https://github.com/plotly/plotly.js/pull/2116]
- Add `selected` and `unselected` attribute containers to customize selection states [https://github.com/plotly/plotly.js/pull/2135]
- Add support for multi-selections [https://github.com/plotly/plotly.js/pull/2140]
- Add layout `colorway` to custom the trace-to-trace color sequence [https://github.com/plotly/plotly.js/pull/2156]
- Add `tickformatstops` to set tick format per cartesian axis range [https://github.com/plotly/plotly.js/pull/1965]
- Add hover labels and selections to box points [https://github.com/plotly/plotly.js/pull/2094]
- Histogram events & bin hover label improvements [https://github.com/plotly/plotly.js/pull/2113]
- Add support for aggregation in `pie` traces [https://github.com/plotly/plotly.js/pull/2117]
- Add annotations `startarrowhead`, `arrowside`, `startarrowsize` and `startstandoff` attributes [https://github.com/plotly/plotly.js/pull/2164]
- Add `zhoverformat` to format `z` values in `heatmap`, `contour` and 2d histogram traces [https://github.com/plotly/plotly.js/pull/2106, https://github.com/plotly/plotly.js/pull/2127]
- Add `marker.opacity` to bar traces [https://github.com/plotly/plotly.js/pull/2163]
- Add `Cividis` colorscale [https://github.com/plotly/plotly.js/pull/2178]
- Implement transform inverse mapping [https://github.com/plotly/plotly.js/pull/2126, https://github.com/plotly/plotly.js/pull/2162]
- Selections are now persistent [https://github.com/plotly/plotly.js/pull/2135]
- Rename _Save and edit plot in cloud_ mode bar button _Edit in Chart Studio_ [https://github.com/plotly/plotly.js/pull/2183]

### Fixed
Here the bug fixes in the `Graph` component brought to you by the plotly.js release.
See https://github.com/plotly/plotly.js/releases/tag/v1.32.0 for the official notes.

- Fix right-click handling [https://github.com/plotly/plotly.js/pull/2241]
- Miscellaneous fixes for `table` traces [https://github.com/plotly/plotly.js/pull/2107, https://github.com/plotly/plotly.js/pull/2182]
- Fix horizontal legend items alignment edge case [https://github.com/plotly/plotly.js/pull/2149]
- Fix shape and updatemenu layering [https://github.com/plotly/plotly.js/pull/2121]
- Fix bar with error bar with set `ids` edge case [https://github.com/plotly/plotly.js/pull/2169]
- Fix `cliponaxis: false` for non linear cartesian axes [https://github.com/plotly/plotly.js/pull/2177]
- Fix heatmap non-uniform brick gaps problem [https://github.com/plotly/plotly.js/pull/2213]
- Fix choropleth selection when `visible: false` trace are present on graph [https://github.com/plotly/plotly.js/pull/2099, https://github.com/plotly/plotly.js/pull/2109]
- Fix yet another contour drawing bug [https://github.com/plotly/plotly.js/pull/2091]
- Clean up pie event data [https://github.com/plotly/plotly.js/pull/2117]
- Fix scatter + bar hover edge cases [https://github.com/plotly/plotly.js/pull/2218]
- Allow hover labels to extend to edges of graph area [https://github.com/plotly/plotly.js/pull/2215]
- Harden location-to-feature against non-string country names for geo subplot [https://github.com/plotly/plotly.js/pull/2122]
- Remove obsolete `smith` attribute from plot schema [https://github.com/plotly/plotly.js/pull/2093]
- Fix colorbar class name [https://github.com/plotly/plotly.js/pull/2139]



## [0.15.5] - 2017-01-08
### Fixed
- The `dash_core_components.Location` and `dash_core_components.Link` properties
should now work on Internet Explorer.
Thanks to @nedned for suggesting a solution.
Fixes https://github.com/plotly/dash-core-components/pull/113

## [0.15.4] - 2017-12-21
### Changed
- The `dash_core_components.Location` component now supports `hash`,
`href`, and `search` in addition to the already supported `pathname`
(mimicking the `window.location` API). `href` can be used to handle
`pathname`, `hash`, and `search` in aggregate, or each can be manipulated
independently.
- The `children` property of `dash_core_components.Markdown` and
`dash_core_components.SyntaxHighlighter` now accepts an
array of strings (previously it *had* to be a string). Now,
if an array is provided, it is collapsed into a string with line
breaks (see #134).

## [0.15.3] - 2017-12-11
### Fixed
- Upgrade the version of [plotly.js](https://github.com/plotly/plotly.js) from 1.31.0 to 1.31.2. See the list of fixes here: https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md


## [0.15.2] - 2017-11-24
### :sweat_smile: Added
- The `Interval` component has a new property: `n_intervals`. This is an
integer that increases every time that the interval passes. This allows you
to use the `Interval` component without using the `events=[Event(...)]` pattern
inside the callback.

This is similar to the `n_clicks` property of the `dash_html_components`
components.
This was the last use case for `events=[Event(...)]` inside the
`dash_core_components` library. Ultimately, we may be able to deprecate this
pattern.

### Changed
- The `dash_core_components.Input(type='number')` component actually converts
the values to floats or integers, instead of passing the numbers back as strings.
https://github.com/plotly/dash-core-components/pull/100
Big thanks to community contributor @Madhu94!

### Fixed
- The `disable_click` property in the `dcc.Upload` component now works.
https://github.com/plotly/dash-core-components/pull/106.
Big thanks to community contributor @Akronix!
- Several properties in several components had the wrong `propTypes`.
This has been fixed, improving the documentation for the Dash python classes
(and removing warnings in JS development).
Big thanks to community contributor @Akronix!

## [0.15.1] - 2017-11-23
### Fixed
- Attempt to fix the JS builds from 0.15.0 but actually nothing changed.

## [0.15.0] - 2017-11-19
- Bad build. See 0.15.2 for the correct build

## [0.14.0] - 2017-10-17
### :sparkles: Added
- An `Upload` component! :tada: See [https://plot.ly/dash/dash-core-components/upload](https://plot.ly/dash/dash-core-components/upload) for docs.

## [0.13.0] - 2017-10-05
### Added
- Bumped [plotly.js](https://github.com/plotly/plotly.js) from `v1.29.3` to `v1.30.0`.
Expand Down Expand Up @@ -42,7 +225,7 @@ The following improvements from this version update apply to dash:

## [0.12.7] - 2017-09-26
### :bug: Fixed
- Fixed issues related to updating the `max_date_allowed` property of `DatePickerSingle` and `DatePickerRange` programatically through callbacks
- Fixed issues related to updating the `max_date_allowed` property of `DatePickerSingle` and `DatePickerRange` programmatically through callbacks
- Clicking on the end date in the `DatePickerRange` will now open up the calendar to the end date (https://github.com/plotly/dash-core-components/issues/80)

### Maintenance
Expand All @@ -53,12 +236,11 @@ The following improvements from this version update apply to dash:
- Non-ascii characters, like chinese characters, are now supported as
search strings in the `dcc.Dropdown` component (https://github.com/plotly/dash-core-components/pull/75)


## [0.12.5] - 2017-09-11
### :bug: Fixed
- The `Interval` component was constantly resetting its interval on every update. Initially reported in https://community.plot.ly/t/multiple-interval-object-in-a-single-page/5699/3
- Removed the used `label` property from the `Slider` component
- Provide a more descriptive documention for the `marks` property of the `Slider` component
- Provide a more descriptive documentation for the `marks` property of the `Slider` component

### :stars: Added
- A `disabled` property on the `Interval` component will disable the interval component from firing its updates.
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include dash_core_components/bundle.js.map
include dash_core_components/metadata.json
include dash_core_components/[email protected]
include dash_core_components/[email protected]
include dash_core_components/plotly-1.29.3.min.js
include dash_core_components/plotly-1.33.1.min.js
include dash_core_components/[email protected]
include dash_core_components/[email protected]
include dash_core_components/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ In your test, append `.only` to a `describe` or `it` statement:
```javascript
describe.only('Foo component', () => {
// ...
})l
});
```

### Testing your components in Dash
Expand Down Expand Up @@ -140,7 +140,7 @@ respectively. TODO:
[#5](https://github.com/plotly/dash-components-archetype/issues/5) will roll up
publishing steps into one workflow.

Ask @chriddyp to get NPM / PyPi package publishing accesss.
Ask @chriddyp to get NPM / PyPi package publishing access.

1. Preparing to publish to NPM

Expand Down
1 change: 0 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dependencies:
pre:
- npm install -g eslint
- pip install tox
- pip install -r dev-requirements.txt
- npm install
- node_modules/.bin/builder run build-dist
- node_modules/.bin/builder run copy-lib
Expand Down
26 changes: 14 additions & 12 deletions dash_core_components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import os as _os
import dash as _dash
import sys as _sys
import dash as _dash
from .version import __version__

npm_package_version = '0.21.0-rc1'

_current_path = _os.path.dirname(_os.path.abspath(__file__))

_components = _dash.development.component_loader.load_components(
Expand All @@ -14,37 +16,37 @@

_js_dist = [
{
'external_url': 'https://cdn.plot.ly/plotly-1.31.0.min.js',
'relative_package_path': 'plotly-1.31.0.min.js',
'external_url': 'https://cdn.plot.ly/plotly-1.33.1.min.js',
'relative_package_path': 'plotly-1.33.1.min.js',
'namespace': 'dash_core_components'
},
{
"relative_package_path": "bundle.js",
"external_url": (
"https://unpkg.com/dash-core-components@{}"
"/dash_core_components/bundle.js"
).format(__version__),
).format(npm_package_version),
"namespace": "dash_core_components"
}
]

_css_dist = [
{
"relative_package_path": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
'relative_package_path': [
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]',
'[email protected]'
],
"external_url": [
"https://unpkg.com/[email protected]/dist/react-select.min.css",
"https://unpkg.com/[email protected]/styles.css",
"https://unpkg.com/[email protected]/styles.css",
"https://unpkg.com/[email protected]/assets/index.css",
"https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]".format(__version__)
"https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]".format(npm_package_version)
],
"namespace": "dash_core_components"
'namespace': 'dash_core_components'
}
]

Expand Down
Loading