@particle-network/ui-react 0.4.5-beta.21 → 0.4.5-beta.23
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.
|
@@ -49,7 +49,7 @@ const slider = tv({
|
|
|
49
49
|
sm: {
|
|
50
50
|
label: 'text-small',
|
|
51
51
|
value: 'text-small',
|
|
52
|
-
thumb: 'w-3 h-3 after:w-
|
|
52
|
+
thumb: 'w-3 h-3 after:w-0 after:h-0',
|
|
53
53
|
step: 'h-1 w-1 data-[in-range=false]:bg-default-200',
|
|
54
54
|
mark: 'text-[10px]'
|
|
55
55
|
},
|
|
@@ -285,7 +285,7 @@ const slider = tv({
|
|
|
285
285
|
size: 'sm',
|
|
286
286
|
isVertical: false,
|
|
287
287
|
class: {
|
|
288
|
-
track: 'h-0.5
|
|
288
|
+
track: 'h-0.5'
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -11,7 +11,7 @@ import { slider } from "./slider-theme.js";
|
|
|
11
11
|
function use_slider_useSlider(originalProps) {
|
|
12
12
|
const globalContext = useProviderContext();
|
|
13
13
|
const [props, variantProps] = mapPropsVariants(originalProps, slider.variantKeys);
|
|
14
|
-
const { ref, as, name, label, formatOptions, value: valueProp, maxValue = 100, minValue = 0, step = 1, showSteps = false, showMarksSteps =
|
|
14
|
+
const { ref, as, name, label, formatOptions, value: valueProp, maxValue = 100, minValue = 0, step = 1, showSteps = false, showMarksSteps = true, showTooltip = false, orientation = 'horizontal', marks = [], startContent, endContent, fillOffset, className, classNames, renderThumb, renderLabel, renderValue, onChange, onChangeEnd, getValue, getTooltipValue, tooltipValueFormatOptions = formatOptions, tooltipProps: userTooltipProps = {}, ...otherProps } = props;
|
|
15
15
|
const isFixedValue = minValue === maxValue;
|
|
16
16
|
if (isFixedValue) warn('Min and max values should not be the same. This may cause unexpected behavior.');
|
|
17
17
|
const Component = as || 'div';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.4.5-beta.
|
|
3
|
+
"version": "0.4.5-beta.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@rslib/core": "^0.12.3",
|
|
39
39
|
"@types/react": "^19.1.10",
|
|
40
40
|
"react": "^19.1.0",
|
|
41
|
-
"@particle-network/
|
|
42
|
-
"@particle-network/
|
|
41
|
+
"@particle-network/eslint-config": "0.3.0",
|
|
42
|
+
"@particle-network/lintstaged-config": "0.1.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.9.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"ahooks": "^3.9.4",
|
|
50
50
|
"copy-to-clipboard": "^3.3.3",
|
|
51
51
|
"zustand": "^5.0.8",
|
|
52
|
-
"@particle-network/
|
|
53
|
-
"@particle-network/
|
|
52
|
+
"@particle-network/ui-shared": "0.3.2-beta.5",
|
|
53
|
+
"@particle-network/icons": "0.4.2-beta.9"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "rslib build",
|