katalyst-riya-test 0.1.4 → 0.1.5
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.
- package/dist/index.cjs +3 -39
- package/dist/index.css +29 -3
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -39
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -754,7 +754,7 @@ var ListItem_default = ListItem;
|
|
|
754
754
|
// src/components/Slider.tsx
|
|
755
755
|
var import_react15 = __toESM(require("react"), 1);
|
|
756
756
|
var Slider = (0, import_react15.forwardRef)(
|
|
757
|
-
({ value, min = 0, max = 100, size = "sm",
|
|
757
|
+
({ value, min = 0, max = 100, size = "sm", ...props }, ref) => {
|
|
758
758
|
const progress = (value - min) / (max - min) * 100;
|
|
759
759
|
return /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(
|
|
760
760
|
"input",
|
|
@@ -770,46 +770,10 @@ var Slider = (0, import_react15.forwardRef)(
|
|
|
770
770
|
size === "sm" ? "h-1.5" : "h-4"
|
|
771
771
|
),
|
|
772
772
|
style: {
|
|
773
|
-
background: `linear-gradient(to right,
|
|
773
|
+
background: `linear-gradient(to right, #8EB6F8 ${progress}%, #d1d5db ${progress}%)`
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
)
|
|
777
|
-
.slider {
|
|
778
|
-
-webkit-appearance: none;
|
|
779
|
-
appearance: none;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.slider::-webkit-slider-thumb {
|
|
783
|
-
-webkit-appearance: none;
|
|
784
|
-
appearance: none;
|
|
785
|
-
width: 36px;
|
|
786
|
-
height: 24px;
|
|
787
|
-
background-color: ${sliderColor ?? "#4285F4"};
|
|
788
|
-
border-radius: 9999px;
|
|
789
|
-
outline: 3px solid #B3CEFB
|
|
790
|
-
cursor: pointer;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.slider::-webkit-slider-thumb:hover {
|
|
794
|
-
background-color: #285092;
|
|
795
|
-
outline: 3px solid #B3CEFB
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
.slider::-webkit-slider-thumb:active {
|
|
799
|
-
background-color: #356ac3;
|
|
800
|
-
outline: 3px solid #B3CEFB
|
|
801
|
-
box-shadow: 0px 4px 4.7px 0px #0000002e;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
.slider::-moz-range-thumb {
|
|
805
|
-
width: 50px;
|
|
806
|
-
outline: 3px solid #B3CEFB
|
|
807
|
-
height: 50px;
|
|
808
|
-
background-color: #000;
|
|
809
|
-
border-radius: 0;
|
|
810
|
-
cursor: pointer;
|
|
811
|
-
}
|
|
812
|
-
`));
|
|
776
|
+
));
|
|
813
777
|
}
|
|
814
778
|
);
|
|
815
779
|
Slider.displayName = "Slider";
|
package/dist/index.css
CHANGED
|
@@ -1241,9 +1241,6 @@ video {
|
|
|
1241
1241
|
outline: 2px solid transparent;
|
|
1242
1242
|
outline-offset: 2px;
|
|
1243
1243
|
}
|
|
1244
|
-
.outline {
|
|
1245
|
-
outline-style: solid;
|
|
1246
|
-
}
|
|
1247
1244
|
.filter {
|
|
1248
1245
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1249
1246
|
}
|
|
@@ -1360,6 +1357,35 @@ video {
|
|
|
1360
1357
|
background-repeat: no-repeat;
|
|
1361
1358
|
background-size: cover;
|
|
1362
1359
|
}
|
|
1360
|
+
.slider {
|
|
1361
|
+
-webkit-appearance: none;
|
|
1362
|
+
appearance: none;
|
|
1363
|
+
}
|
|
1364
|
+
.slider::-webkit-slider-thumb {
|
|
1365
|
+
-webkit-appearance: none;
|
|
1366
|
+
appearance: none;
|
|
1367
|
+
width: 36px;
|
|
1368
|
+
height: 24px;
|
|
1369
|
+
background-color: #4285f4;
|
|
1370
|
+
border-radius: 9999px;
|
|
1371
|
+
cursor: pointer;
|
|
1372
|
+
}
|
|
1373
|
+
.slider::-webkit-slider-thumb:hover {
|
|
1374
|
+
background-color: #285092;
|
|
1375
|
+
}
|
|
1376
|
+
.slider::-webkit-slider-thumb:active {
|
|
1377
|
+
background-color: #356ac3;
|
|
1378
|
+
outline: 3px solid #b3cefb;
|
|
1379
|
+
box-shadow: 0px 4px 4.7px 0px #0000002e;
|
|
1380
|
+
}
|
|
1381
|
+
.slider::-moz-range-thumb {
|
|
1382
|
+
width: 50px;
|
|
1383
|
+
outline: 3px solid #b3cefb;
|
|
1384
|
+
height: 50px;
|
|
1385
|
+
background-color: #000;
|
|
1386
|
+
border-radius: 0;
|
|
1387
|
+
cursor: pointer;
|
|
1388
|
+
}
|
|
1363
1389
|
.last\:border-none:last-child {
|
|
1364
1390
|
border-style: none;
|
|
1365
1391
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -210,7 +210,6 @@ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"
|
|
|
210
210
|
min?: number;
|
|
211
211
|
max?: number;
|
|
212
212
|
size?: "sm" | "lg";
|
|
213
|
-
sliderColor?: string;
|
|
214
213
|
}
|
|
215
214
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
216
215
|
|
package/dist/index.d.ts
CHANGED
|
@@ -210,7 +210,6 @@ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"
|
|
|
210
210
|
min?: number;
|
|
211
211
|
max?: number;
|
|
212
212
|
size?: "sm" | "lg";
|
|
213
|
-
sliderColor?: string;
|
|
214
213
|
}
|
|
215
214
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
216
215
|
|
package/dist/index.js
CHANGED
|
@@ -685,7 +685,7 @@ var ListItem_default = ListItem;
|
|
|
685
685
|
// src/components/Slider.tsx
|
|
686
686
|
import React15, { forwardRef as forwardRef3 } from "react";
|
|
687
687
|
var Slider = forwardRef3(
|
|
688
|
-
({ value, min = 0, max = 100, size = "sm",
|
|
688
|
+
({ value, min = 0, max = 100, size = "sm", ...props }, ref) => {
|
|
689
689
|
const progress = (value - min) / (max - min) * 100;
|
|
690
690
|
return /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
|
|
691
691
|
"input",
|
|
@@ -701,46 +701,10 @@ var Slider = forwardRef3(
|
|
|
701
701
|
size === "sm" ? "h-1.5" : "h-4"
|
|
702
702
|
),
|
|
703
703
|
style: {
|
|
704
|
-
background: `linear-gradient(to right,
|
|
704
|
+
background: `linear-gradient(to right, #8EB6F8 ${progress}%, #d1d5db ${progress}%)`
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
)
|
|
708
|
-
.slider {
|
|
709
|
-
-webkit-appearance: none;
|
|
710
|
-
appearance: none;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.slider::-webkit-slider-thumb {
|
|
714
|
-
-webkit-appearance: none;
|
|
715
|
-
appearance: none;
|
|
716
|
-
width: 36px;
|
|
717
|
-
height: 24px;
|
|
718
|
-
background-color: ${sliderColor ?? "#4285F4"};
|
|
719
|
-
border-radius: 9999px;
|
|
720
|
-
outline: 3px solid #B3CEFB
|
|
721
|
-
cursor: pointer;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.slider::-webkit-slider-thumb:hover {
|
|
725
|
-
background-color: #285092;
|
|
726
|
-
outline: 3px solid #B3CEFB
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.slider::-webkit-slider-thumb:active {
|
|
730
|
-
background-color: #356ac3;
|
|
731
|
-
outline: 3px solid #B3CEFB
|
|
732
|
-
box-shadow: 0px 4px 4.7px 0px #0000002e;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
.slider::-moz-range-thumb {
|
|
736
|
-
width: 50px;
|
|
737
|
-
outline: 3px solid #B3CEFB
|
|
738
|
-
height: 50px;
|
|
739
|
-
background-color: #000;
|
|
740
|
-
border-radius: 0;
|
|
741
|
-
cursor: pointer;
|
|
742
|
-
}
|
|
743
|
-
`));
|
|
707
|
+
));
|
|
744
708
|
}
|
|
745
709
|
);
|
|
746
710
|
Slider.displayName = "Slider";
|