From 6d66d57fc4ee49993b8861187b0489b3cbf3bede Mon Sep 17 00:00:00 2001 From: Min-Hsueh Chiu Date: Wed, 4 Feb 2026 17:45:17 -0800 Subject: [PATCH 1/2] modify releasing workflow --- .github/workflows/publish-npm.yml | 10 ++++++---- src/components/data-entry/RangeSlider/RangeSlider.tsx | 11 ++++++++++- 2 files changed, 16 insertions(+), 5 deletions(-) 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/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} /> -
+
Date: Thu, 5 Feb 2026 10:43:13 -0800 Subject: [PATCH 2/2] add customized styling --- .../data-entry/DualRangeSlider/DualRangeSlider.tsx | 12 +++++++++++- .../data-entry/FilterField/FilterField.tsx | 6 +++++- 2 files changed, 16 insertions(+), 2 deletions(-) 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) => (