@pixpilot/shadcn-ui 0.16.0 → 0.16.1
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.
|
@@ -57,15 +57,15 @@ const SliderInput = (props) => {
|
|
|
57
57
|
value: currentValue,
|
|
58
58
|
onValueChange: handleValueChange
|
|
59
59
|
}), showInput && Array.isArray(currentValue) && currentValue.map((v, i) => /* @__PURE__ */ (0, react.createElement)(__pixpilot_shadcn.Input, {
|
|
60
|
-
...input,
|
|
61
60
|
id: id ?? `${id}-input-${i}`,
|
|
61
|
+
disabled,
|
|
62
|
+
...input,
|
|
62
63
|
key: inputKeysRef.current[i],
|
|
63
64
|
type: "number",
|
|
64
65
|
value: v,
|
|
65
66
|
min,
|
|
66
67
|
max,
|
|
67
68
|
step,
|
|
68
|
-
disabled,
|
|
69
69
|
onChange: (e) => {
|
|
70
70
|
const nextNumber = e.currentTarget.valueAsNumber;
|
|
71
71
|
if (Number.isNaN(nextNumber)) return;
|
|
@@ -4,9 +4,7 @@ import React from "react";
|
|
|
4
4
|
//#region src/slider/SliderInput.d.ts
|
|
5
5
|
interface SliderInputProps extends React.ComponentProps<typeof Slider> {
|
|
6
6
|
showInput?: boolean;
|
|
7
|
-
input?:
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
7
|
+
input?: React.ComponentProps<'input'>;
|
|
10
8
|
slider?: {
|
|
11
9
|
className?: string;
|
|
12
10
|
};
|
|
@@ -4,9 +4,7 @@ import React from "react";
|
|
|
4
4
|
//#region src/slider/SliderInput.d.ts
|
|
5
5
|
interface SliderInputProps extends React.ComponentProps<typeof Slider> {
|
|
6
6
|
showInput?: boolean;
|
|
7
|
-
input?:
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
7
|
+
input?: React.ComponentProps<'input'>;
|
|
10
8
|
slider?: {
|
|
11
9
|
className?: string;
|
|
12
10
|
};
|
|
@@ -53,15 +53,15 @@ const SliderInput = (props) => {
|
|
|
53
53
|
value: currentValue,
|
|
54
54
|
onValueChange: handleValueChange
|
|
55
55
|
}), showInput && Array.isArray(currentValue) && currentValue.map((v, i) => /* @__PURE__ */ createElement(Input, {
|
|
56
|
-
...input,
|
|
57
56
|
id: id ?? `${id}-input-${i}`,
|
|
57
|
+
disabled,
|
|
58
|
+
...input,
|
|
58
59
|
key: inputKeysRef.current[i],
|
|
59
60
|
type: "number",
|
|
60
61
|
value: v,
|
|
61
62
|
min,
|
|
62
63
|
max,
|
|
63
64
|
step,
|
|
64
|
-
disabled,
|
|
65
65
|
onChange: (e) => {
|
|
66
66
|
const nextNumber = e.currentTarget.valueAsNumber;
|
|
67
67
|
if (Number.isNaN(nextNumber)) return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"description": "Custom UI components and utilities built with shadcn/ui.",
|
|
6
6
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"react-dom": "19.2.0",
|
|
58
58
|
"tsdown": "^0.15.12",
|
|
59
59
|
"typescript": "^5.9.3",
|
|
60
|
-
"@internal/prettier-config": "0.0.1",
|
|
61
|
-
"@internal/hooks": "0.0.0",
|
|
62
60
|
"@internal/eslint-config": "0.3.0",
|
|
63
|
-
"@internal/
|
|
61
|
+
"@internal/hooks": "0.0.0",
|
|
62
|
+
"@internal/prettier-config": "0.0.1",
|
|
64
63
|
"@internal/tsconfig": "0.1.0",
|
|
64
|
+
"@internal/tsdown-config": "0.1.0",
|
|
65
65
|
"@internal/vitest-config": "0.1.0"
|
|
66
66
|
},
|
|
67
67
|
"prettier": "@internal/prettier-config",
|