diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 225226b3..4dc44368 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -1,9 +1,8 @@ name: publish-npm on: - workflow_dispatch: - push: - tags: - - 'v*' + release: + types: [published] + jobs: publish: runs-on: ubuntu-latest @@ -29,6 +28,9 @@ jobs: - name: Build project run: | npm run build-publish + - name: Sync version from Git Tag + run: | + npm version ${{ github.ref_name }} --no-git-tag-version - name: Publish to NPM run: | echo Publishing to test repo $NODE_AUTH_TOKEN diff --git a/src/components/data-entry/DualRangeSlider/DualRangeSlider.tsx b/src/components/data-entry/DualRangeSlider/DualRangeSlider.tsx index 364442e3..b9bee5f5 100644 --- a/src/components/data-entry/DualRangeSlider/DualRangeSlider.tsx +++ b/src/components/data-entry/DualRangeSlider/DualRangeSlider.tsx @@ -75,6 +75,14 @@ export interface DualRangeSliderProps { * This can be used to lift the new "nice" domain upwards. */ onPropsChange?: (props: any) => void; + /** + * styles for input + */ + styleInput?: object; + /** + * styles for slider + */ + styleSlider?: object; } /** @@ -343,6 +351,7 @@ export const DualRangeSlider: React.FC = ({ = ({ = ({ /> -
+
any; + /** + * styles for label + */ + styleLabel?: object; } /** @@ -74,7 +78,7 @@ export const FilterField: React.FC = ({ dois = [], ...otherPro return (
{props.label && ( -
+
{renderFilterLabel()} {props.dois.map((doi, i) => ( diff --git a/src/components/data-entry/RangeSlider/RangeSlider.tsx b/src/components/data-entry/RangeSlider/RangeSlider.tsx index 0dca3cc7..66f8d371 100644 --- a/src/components/data-entry/RangeSlider/RangeSlider.tsx +++ b/src/components/data-entry/RangeSlider/RangeSlider.tsx @@ -158,6 +158,14 @@ export interface RangeSliderProps { * Function to call when slider values change. */ onChange?: (values: number[]) => void; + /** + * styles for input + */ + styleInput?: object; + /** + * styles for slider + */ + styleSlider?: object; } /** @@ -258,6 +266,7 @@ export const RangeSlider: React.FC = ({ = ({ step={props.step} onChange={handleInputChange} /> -
+