@particle-network/ui-react 0.4.5-beta.20 → 0.4.5-beta.22

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.
@@ -36,6 +36,7 @@ declare const slider: import("tailwind-variants").TVReturnType<{
36
36
  thumb: string;
37
37
  label: string;
38
38
  value: string;
39
+ step: string;
39
40
  };
40
41
  lg: {
41
42
  thumb: string;
@@ -199,6 +200,7 @@ declare const slider: import("tailwind-variants").TVReturnType<{
199
200
  thumb: string;
200
201
  label: string;
201
202
  value: string;
203
+ step: string;
202
204
  };
203
205
  lg: {
204
206
  thumb: string;
@@ -362,6 +364,7 @@ declare const slider: import("tailwind-variants").TVReturnType<{
362
364
  thumb: string;
363
365
  label: string;
364
366
  value: string;
367
+ step: string;
365
368
  };
366
369
  lg: {
367
370
  thumb: string;
@@ -7,8 +7,6 @@ const slider = tv({
7
7
  label: '',
8
8
  value: '',
9
9
  step: [
10
- 'h-1.5',
11
- 'w-1.5',
12
10
  'absolute',
13
11
  'rounded-full',
14
12
  'bg-default-300/50',
@@ -51,14 +49,15 @@ const slider = tv({
51
49
  sm: {
52
50
  label: 'text-small',
53
51
  value: 'text-small',
54
- thumb: 'w-4 h-4 after:w-3 after:h-3',
55
- step: 'data-[in-range=false]:bg-default-200',
52
+ thumb: 'w-3 h-3 after:w-0 after:h-0',
53
+ step: 'h-1 w-1 data-[in-range=false]:bg-default-200',
56
54
  mark: 'text-[10px]'
57
55
  },
58
56
  md: {
59
57
  thumb: 'w-6 h-6 after:w-5 after:h-5',
60
58
  label: 'text-small',
61
- value: 'text-small'
59
+ value: 'text-small',
60
+ step: 'h-1.5 w-1.5'
62
61
  },
63
62
  lg: {
64
63
  thumb: 'h-7 w-7 after:w-5 after:h-5',
@@ -286,7 +285,7 @@ const slider = tv({
286
285
  size: 'sm',
287
286
  isVertical: false,
288
287
  class: {
289
- track: 'h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]'
288
+ track: 'h-0.5 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]'
290
289
  }
291
290
  },
292
291
  {
@@ -307,7 +306,7 @@ const slider = tv({
307
306
  size: 'sm',
308
307
  isVertical: true,
309
308
  class: {
310
- track: 'w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]'
309
+ track: 'w-0.5 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]'
311
310
  }
312
311
  },
313
312
  {
@@ -48,7 +48,7 @@ interface Props extends HTMLHeroUIProps {
48
48
  showSteps?: boolean;
49
49
  /**
50
50
  * Whether to show step indicators at mark positions.
51
- * @default false
51
+ * @default true
52
52
  */
53
53
  showMarksSteps?: boolean;
54
54
  /**
@@ -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 = false, showTooltip = false, orientation = 'horizontal', marks = [], startContent, endContent, fillOffset, className, classNames, renderThumb, renderLabel, renderValue, onChange, onChangeEnd, getValue, getTooltipValue, tooltipValueFormatOptions = formatOptions, tooltipProps: userTooltipProps = {}, ...otherProps } = props;
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.20",
3
+ "version": "0.4.5-beta.22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {