@particle-network/ui-react 0.5.1-beta.23 → 0.5.1-beta.24

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.
@@ -1,9 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import react, { forwardRef, useCallback, useMemo } from "react";
3
+ import { useI18n } from "../../hooks/index.js";
3
4
  import { HStack } from "../layout/index.js";
4
5
  import { UXNumberInput } from "../UXNumberInput/index.js";
5
6
  const UXRangeInput = /*#__PURE__*/ forwardRef((props, ref)=>{
6
7
  const { value, defaultValue, onValueChange, minValue, maxValue, minInputProps = {}, maxInputProps = {}, separator = '', className, ...restProps } = props;
8
+ const i18n = useI18n();
7
9
  const [internalValue, setInternalValue] = react.useState(defaultValue || {
8
10
  min: void 0,
9
11
  max: void 0
@@ -57,6 +59,11 @@ const UXRangeInput = /*#__PURE__*/ forwardRef((props, ref)=>{
57
59
  className: className,
58
60
  children: [
59
61
  /*#__PURE__*/ jsx(UXNumberInput, {
62
+ startContent: /*#__PURE__*/ jsx("span", {
63
+ className: "shrink-0",
64
+ "aria-hidden": "true",
65
+ children: i18n.rangeInput.min
66
+ }),
60
67
  ...restProps,
61
68
  ...minInputProps,
62
69
  value: currentValue.min,
@@ -66,6 +73,11 @@ const UXRangeInput = /*#__PURE__*/ forwardRef((props, ref)=>{
66
73
  }),
67
74
  separator,
68
75
  /*#__PURE__*/ jsx(UXNumberInput, {
76
+ startContent: /*#__PURE__*/ jsx("span", {
77
+ className: "shrink-0",
78
+ "aria-hidden": "true",
79
+ children: i18n.rangeInput.max
80
+ }),
69
81
  ...restProps,
70
82
  ...maxInputProps,
71
83
  value: currentValue.max,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.5.1-beta.23",
3
+ "version": "0.5.1-beta.24",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {