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

Commit 35dc2e5

Browse files
Merge pull request #330 from plotly/load_stylesheets
Load CSS in webpack with style-loader and css-loader
2 parents 7e8204e + 105a418 commit 35dc2e5

16 files changed

+166
-36
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.38.0] - 2018-11-07
6+
### Fixed
7+
- Changed the way the default CSS files for some components are loaded to being loaded with webpack instead of as dependencies.
8+
59
## [0.37.2] - 2018-11-07
610
### Changed
711
- Updated `react-select` to version `2.1.0`
@@ -399,6 +403,7 @@ As part of the plotly.js upgrade:
399403
- Broken sourcemaps for debugging.
400404
### Added
401405
- Testing configuration for CHROMEPATH and SERVER_PROCESSES
406+
402407
## [0.22.1] - 2018-04-09
403408
### Fixed
404409
- Various bugs with the `ohlc` and `candlestick` chart type in the `dcc.Graph`

dash_core_components/__init__.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,5 @@
5050
}
5151
]
5252

53-
54-
_css_dist = [
55-
{
56-
'relative_package_path': [
57-
58-
59-
60-
61-
62-
],
63-
'external_url': [
64-
'https://unpkg.com/[email protected]/dist/react-select.min.css',
65-
'https://unpkg.com/[email protected]/styles.css',
66-
'https://unpkg.com/[email protected]/styles.css',
67-
'https://unpkg.com/[email protected]/assets/index.css',
68-
'https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]'.format(__version__)
69-
],
70-
'namespace': 'dash_core_components'
71-
}
72-
]
73-
74-
7553
for _component in __all__:
7654
setattr(locals()[_component], '_js_dist', _js_dist)
77-
setattr(locals()[_component], '_css_dist', _css_dist)

dash_core_components/dash_core_components.dev.js

Lines changed: 147 additions & 4 deletions
Large diffs are not rendered by default.

dash_core_components/dash_core_components.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "0.37.2",
3+
"version": "0.38.0",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",

dash_core_components/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.37.2'
1+
__version__ = '0.38.0'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "0.37.2",
3+
"version": "0.38.0",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",

src/components/DatePickerRange.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import moment from 'moment';
33
import PropTypes from 'prop-types';
44
import R from 'ramda';
55
import React, {Component} from 'react';
6+
import './css/[email protected]';
67

78
/**
89
* DatePickerRange is a tailor made component designed for selecting

src/components/Dropdown.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import R, {omit} from 'ramda';
33
import React, {Component} from 'react';
44
import ReactDropdown from 'react-virtualized-select';
55
import createFilterOptions from 'react-select-fast-filter-options';
6+
import './css/[email protected]';
7+
import './css/[email protected]';
68

79
// Custom tokenizer, see https://github.com/bvaughn/js-search/issues/43
810
// Split on spaces

src/components/RadioItems.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import PropTypes from 'prop-types';
22
import React, {Component} from 'react';
3+
import './css/[email protected]';
34

45
/**
56
* RadioItems is a component that encapsulates several radio item inputs.

src/components/Slider.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, {Component} from 'react';
22
import ReactSlider from 'rc-slider';
33
import PropTypes from 'prop-types';
44
import {omit} from 'ramda';
5+
import './css/[email protected]';
56

67
/**
78
* A slider component with a single handle.

0 commit comments

Comments
 (0)