@kanda-libs/ks-component-ts 0.2.294 → 0.2.296

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.2.294",
3
+ "version": "0.2.296",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -12,6 +12,7 @@ export interface RangeInputUncontrolledProps
12
12
  formatter?: (value: string) => string;
13
13
  prefix?: string;
14
14
  highlightLabel?: "min" | "max";
15
+ showCurrentValueLabel?: boolean;
15
16
  suffix?: string;
16
17
  }
17
18
 
@@ -30,6 +31,7 @@ const RangeInputUncontrolled: FunctionComponent<
30
31
  suffix = "",
31
32
  name = "",
32
33
  highlightLabel,
34
+ showCurrentValueLabel = true,
33
35
  ...restProps
34
36
  }) {
35
37
  const { ref, inputProps, minLabel, maxLabel, currentLabel, classNames } =
@@ -74,7 +76,7 @@ const RangeInputUncontrolled: FunctionComponent<
74
76
  </div>
75
77
  <div className={classNames.labels}>
76
78
  <p className={classNames.minLowerLabel}>{minLabel}</p>
77
- {currentLabel && (
79
+ {currentLabel && showCurrentValueLabel && (
78
80
  <p className={classNames.lowerLabel}>{currentLabel}</p>
79
81
  )}
80
82
  <p className={classNames.maxLowerLabel}>{maxLabel}</p>