@adamosuiteservices/ui 2.13.3 → 2.13.4

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.
@@ -32,7 +32,7 @@ import { Slider } from "@adamosuiteservices/ui/slider";
32
32
  | `step` | `number` | Incremento (default: 1) |
33
33
  | `disabled` | `boolean` | Deshabilita el slider |
34
34
  | `orientation` | `"horizontal" \| "vertical"` | Orientación (default: horizontal) |
35
- | `color` | `"full" \| [string, string]` | Gradiente de colores personalizado |
35
+ | `colorSlide` | `"full" \| [string, string]` | Gradiente de colores personalizado |
36
36
  | `theme` | `Theme` | Tema personalizado |
37
37
  | `className` | `string` | Clases CSS adicionales |
38
38
 
@@ -305,8 +305,8 @@ function RainbowSlider() {
305
305
  ## Estilos Base
306
306
 
307
307
  - **Track height**: `h-1.5` (horizontal), `w-1.5` (vertical)
308
- - **Track bg**: `bg-muted` (o gradiente personalizado con prop `color`)
309
- - **Range bg**: `bg-primary` (transparente cuando se usa `color`)
308
+ - **Track bg**: `bg-muted` (o gradiente personalizado con prop `colorSlide`)
309
+ - **Range bg**: `bg-primary` (transparente cuando se usa `colorSlide`)
310
310
  - **Thumb**: `size-4` con `border-primary`, `bg-white`, `shadow-sm`
311
311
  - **Thumb hover/focus**: `ring-4` con `ring-ring/50`
312
312
  - **Vertical**: `min-h-44` default, `flex-col`
@@ -324,7 +324,7 @@ function CustomColorSlider() {
324
324
  <div className="space-y-2">
325
325
  <Label>Purple to Pink: {value[0]}%</Label>
326
326
  <Slider
327
- color={["#8b5cf6", "#ec4899"]}
327
+ colorSlide={["#8b5cf6", "#ec4899"]}
328
328
  value={value}
329
329
  onValueChange={setValue}
330
330
  ## Troubleshooting
@@ -335,11 +335,11 @@ function CustomColorSlider() {
335
335
  **Vertical no funciona**: Agrega `className="h-[Xpx]"` para altura explícita
336
336
  **Step no funciona**: `step` debe ser divisor válido del rango (max - min)
337
337
  **Multiple thumbs**: `value={[10, 50, 90]}` crea 3 thumbs
338
- **Color no se aplica**: Prop `color` acepta `"full"` o array de 2 strings `["#color1", "#color2"]`
338
+ **Color no se aplica**: Prop `colorSlide` acepta `"full"` o array de 2 strings `["#color1", "#color2"]`
339
339
  **Gradiente no visible**: Asegura que los colores sean válidos (hex, rgb, hsl, etc.)
340
340
  <Label>Blue to Green</Label>
341
341
  <Slider
342
- color={["#3b82f6", "#10b981"]}
342
+ colorSlide={["#3b82f6", "#10b981"]}
343
343
  defaultValue={[40]}
344
344
  max={100}
345
345
  step={1}
@@ -351,7 +351,7 @@ function CustomColorSlider() {
351
351
  <div className="space-y-2">
352
352
  <Label>Orange to Red</Label>
353
353
  <Slider
354
- color={["#f97316", "#ef4444"]}
354
+ colorSlide={["#f97316", "#ef4444"]}
355
355
  defaultValue={[75]}
356
356
  max={100}
357
357
  step={1}
@@ -386,7 +386,7 @@ function ColorfulTemperature() {
386
386
  <div className="space-y-2">
387
387
  <Label>Target Temperature</Label>
388
388
  <Slider
389
- color={["#3b82f6", "#ef4444"]}
389
+ colorSlide={["#3b82f6", "#ef4444"]}
390
390
  value={temperature}
391
391
  onValueChange={setTemperature}
392
392
  min={50}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamosuiteservices/ui",
3
- "version": "2.13.3",
3
+ "version": "2.13.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",