@particle-network/ui-react 0.4.5-beta.14 → 0.4.5-beta.16

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.
@@ -16,15 +16,11 @@ const UXSlider = forwardRef((props, ref)=>{
16
16
  }
17
17
  },
18
18
  color: color,
19
- onChangeEnd: (e)=>{
20
- onChangeEnd?.(e);
21
- if (document.activeElement) document.activeElement.blur();
22
- const clickEvent = new MouseEvent('click', {
23
- bubbles: true,
24
- cancelable: true,
25
- view: window
26
- });
27
- document.body.dispatchEvent(clickEvent);
19
+ onChangeEnd: (value)=>{
20
+ onChangeEnd?.(value);
21
+ setTimeout(()=>{
22
+ if (document.activeElement) document.activeElement.blur();
23
+ }, 200);
28
24
  },
29
25
  ...restProps
30
26
  });
@@ -6,12 +6,14 @@ export declare const sliderClasses: {
6
6
  value: string;
7
7
  thumb: string;
8
8
  step: string;
9
+ mark: string;
9
10
  track: string;
10
11
  };
11
12
  md: {
12
13
  thumb: string;
13
14
  label: string;
14
15
  value: string;
16
+ mark: string;
15
17
  track: string;
16
18
  };
17
19
  lg: {
@@ -2,24 +2,26 @@ const sliderClasses = {
2
2
  variants: {
3
3
  size: {
4
4
  sm: {
5
- label: 'text-small',
6
- value: 'text-small',
7
- thumb: 'w-4 h-4 after:w-3 after:h-3 !shadow-none',
5
+ label: '!text-xxs',
6
+ value: '!text-xxs',
7
+ thumb: 'w-4 h-4 after:w-3 after:h-3',
8
8
  step: 'data-[in-range=false]:bg-default-200',
9
+ mark: '!text-xxs mt-1',
9
10
  track: 'bg-background-200'
10
11
  },
11
12
  md: {
12
- thumb: 'w-4 h-4 after:w-3 after:h-3 !shadow-none',
13
- label: 'text-small',
14
- value: 'text-small',
13
+ thumb: 'w-4 h-4 after:w-3 after:h-3',
14
+ label: 'text-xs',
15
+ value: 'text-xs',
16
+ mark: 'text-xs mt-1',
15
17
  track: 'bg-background-200'
16
18
  },
17
19
  lg: {
18
- thumb: 'h-7 w-7 after:w-5 after:h-5 !shadow-none',
20
+ thumb: 'h-7 w-7 after:w-5 after:h-5',
19
21
  step: 'w-2 h-2',
20
- label: 'text-medium',
21
- value: 'text-medium',
22
- mark: 'mt-2',
22
+ label: 'text-sm',
23
+ value: 'text-sm',
24
+ mark: 'text-sm mt-2',
23
25
  track: 'bg-background-200'
24
26
  }
25
27
  },
@@ -177,11 +179,12 @@ const sliderClasses = {
177
179
  {
178
180
  size: [
179
181
  'sm',
180
- 'md'
182
+ 'md',
183
+ 'lg'
181
184
  ],
182
185
  showOutline: false,
183
186
  class: {
184
- thumb: 'shadow-small'
187
+ thumb: 'shadow-none'
185
188
  }
186
189
  },
187
190
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.4.5-beta.14",
3
+ "version": "0.4.5-beta.16",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {