@kanda-libs/ks-component-ts 0.2.264 → 0.2.266
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/app/src/App.tsx +60 -1
- package/app/yarn.lock +90 -138
- package/dist/index.d.ts +10071 -10058
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +4 -4
- package/dist/library.css +108 -8
- package/package.json +1 -1
- package/src/field/components/RangeInput/RangeInputUncontrolled.tsx +94 -0
- package/src/field/components/RangeInput/constants.ts +14 -0
- package/src/field/components/RangeInput/helpers.ts +1 -0
- package/src/field/components/RangeInput/index.tsx +28 -0
- package/src/field/components/RangeInput/useRangeInputProps.ts +121 -0
- package/src/field/index.ts +4 -0
- package/src/generated/widget/index.tsx +44296 -44296
- package/src/styles/library.css +108 -8
- package/src/styles/tailwind.css +30 -0
package/src/styles/library.css
CHANGED
|
@@ -1004,6 +1004,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1004
1004
|
right: 0;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
+
.top-\[5px\] {
|
|
1008
|
+
top: 5px;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1007
1011
|
.-right-2 {
|
|
1008
1012
|
right: -8px;
|
|
1009
1013
|
}
|
|
@@ -1072,6 +1076,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1072
1076
|
z-index: 30;
|
|
1073
1077
|
}
|
|
1074
1078
|
|
|
1079
|
+
.z-0 {
|
|
1080
|
+
z-index: 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1075
1083
|
.z-20 {
|
|
1076
1084
|
z-index: 20;
|
|
1077
1085
|
}
|
|
@@ -1080,10 +1088,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1080
1088
|
z-index: 10;
|
|
1081
1089
|
}
|
|
1082
1090
|
|
|
1083
|
-
.z-0 {
|
|
1084
|
-
z-index: 0;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
1091
|
.z-40 {
|
|
1088
1092
|
z-index: 40;
|
|
1089
1093
|
}
|
|
@@ -1527,6 +1531,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1527
1531
|
height: 56px;
|
|
1528
1532
|
}
|
|
1529
1533
|
|
|
1534
|
+
.h-2\.5 {
|
|
1535
|
+
height: 10px;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1530
1538
|
.h-16 {
|
|
1531
1539
|
height: 64px;
|
|
1532
1540
|
}
|
|
@@ -1683,6 +1691,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1683
1691
|
width: 16.666667%;
|
|
1684
1692
|
}
|
|
1685
1693
|
|
|
1694
|
+
.w-20 {
|
|
1695
|
+
width: 80px;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.w-2\.5 {
|
|
1699
|
+
width: 10px;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1686
1702
|
.w-48 {
|
|
1687
1703
|
width: 192px;
|
|
1688
1704
|
}
|
|
@@ -1764,6 +1780,10 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1764
1780
|
min-width: 64px;
|
|
1765
1781
|
}
|
|
1766
1782
|
|
|
1783
|
+
.min-w-20 {
|
|
1784
|
+
min-width: 80px;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1767
1787
|
.min-w-54 {
|
|
1768
1788
|
min-width: 216px;
|
|
1769
1789
|
}
|
|
@@ -2243,14 +2263,14 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2243
2263
|
border-color: rgb(108 129 157 / var(--tw-border-opacity));
|
|
2244
2264
|
}
|
|
2245
2265
|
|
|
2246
|
-
.border-neutral-
|
|
2266
|
+
.border-neutral-000 {
|
|
2247
2267
|
--tw-border-opacity: 1;
|
|
2248
|
-
border-color: rgb(
|
|
2268
|
+
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
2249
2269
|
}
|
|
2250
2270
|
|
|
2251
|
-
.border-neutral-
|
|
2271
|
+
.border-neutral-100 {
|
|
2252
2272
|
--tw-border-opacity: 1;
|
|
2253
|
-
border-color: rgb(
|
|
2273
|
+
border-color: rgb(247 249 252 / var(--tw-border-opacity));
|
|
2254
2274
|
}
|
|
2255
2275
|
|
|
2256
2276
|
.border-neutral-500 {
|
|
@@ -2321,6 +2341,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2321
2341
|
background-color: transparent !important;
|
|
2322
2342
|
}
|
|
2323
2343
|
|
|
2344
|
+
.bg-green-600 {
|
|
2345
|
+
--tw-bg-opacity: 1;
|
|
2346
|
+
background-color: rgb(28 182 156 / var(--tw-bg-opacity));
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2324
2349
|
.bg-turquoise-100 {
|
|
2325
2350
|
--tw-bg-opacity: 1;
|
|
2326
2351
|
background-color: rgb(233 252 248 / var(--tw-bg-opacity));
|
|
@@ -2568,6 +2593,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2568
2593
|
padding-right: 32px;
|
|
2569
2594
|
}
|
|
2570
2595
|
|
|
2596
|
+
.px-5 {
|
|
2597
|
+
padding-left: 20px;
|
|
2598
|
+
padding-right: 20px;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2571
2601
|
.py-2\.5 {
|
|
2572
2602
|
padding-top: 10px;
|
|
2573
2603
|
padding-bottom: 10px;
|
|
@@ -2837,6 +2867,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
2837
2867
|
color: rgb(108 129 157 / var(--tw-text-opacity)) !important;
|
|
2838
2868
|
}
|
|
2839
2869
|
|
|
2870
|
+
.text-green-600 {
|
|
2871
|
+
--tw-text-opacity: 1;
|
|
2872
|
+
color: rgb(28 182 156 / var(--tw-text-opacity));
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2840
2875
|
.text-green-400 {
|
|
2841
2876
|
--tw-text-opacity: 1;
|
|
2842
2877
|
color: rgb(39 222 191 / var(--tw-text-opacity));
|
|
@@ -4011,6 +4046,45 @@ Modified version of toast CSS to match designs
|
|
|
4011
4046
|
animation-iteration-count: infinite;
|
|
4012
4047
|
}
|
|
4013
4048
|
|
|
4049
|
+
input[type="range"] {
|
|
4050
|
+
-webkit-appearance: none;
|
|
4051
|
+
-moz-appearance: none;
|
|
4052
|
+
appearance: none;
|
|
4053
|
+
background: linear-gradient(
|
|
4054
|
+
to right,
|
|
4055
|
+
transparent 10px,
|
|
4056
|
+
#1cb69c 10px,
|
|
4057
|
+
#1cb69c 50%,
|
|
4058
|
+
#e0e7f0 50%,
|
|
4059
|
+
#e0e7f0 calc(100% - 10px),
|
|
4060
|
+
transparent calc(100% - 10px)
|
|
4061
|
+
);
|
|
4062
|
+
cursor: pointer;
|
|
4063
|
+
width: 100%;
|
|
4064
|
+
height: 4px;
|
|
4065
|
+
margin-top: 8px;
|
|
4066
|
+
margin-bottom: 8px;
|
|
4067
|
+
z-index: 10;
|
|
4068
|
+
}
|
|
4069
|
+
|
|
4070
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
4071
|
+
-webkit-appearance: none;
|
|
4072
|
+
appearance: none;
|
|
4073
|
+
height: 20px;
|
|
4074
|
+
width: 20px;
|
|
4075
|
+
border-radius: 100%;
|
|
4076
|
+
border: 2px solid #fff;
|
|
4077
|
+
background-color: #1cb69c;
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
.first\:left-0:first-child {
|
|
4081
|
+
left: 0;
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
.first\:mb-1:first-child {
|
|
4085
|
+
margin-bottom: 4px;
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4014
4088
|
.first\:mt-2:first-child {
|
|
4015
4089
|
margin-top: 8px;
|
|
4016
4090
|
}
|
|
@@ -4033,10 +4107,27 @@ Modified version of toast CSS to match designs
|
|
|
4033
4107
|
border-left-width: 1px;
|
|
4034
4108
|
}
|
|
4035
4109
|
|
|
4110
|
+
.first\:text-left:first-child {
|
|
4111
|
+
text-align: left;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
.first\:text-neutral-500:first-child {
|
|
4115
|
+
--tw-text-opacity: 1;
|
|
4116
|
+
color: rgb(156 173 196 / var(--tw-text-opacity));
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
.last\:right-0:last-child {
|
|
4120
|
+
right: 0;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4036
4123
|
.last\:mr-0:last-child {
|
|
4037
4124
|
margin-right: 0;
|
|
4038
4125
|
}
|
|
4039
4126
|
|
|
4127
|
+
.last\:mt-1:last-child {
|
|
4128
|
+
margin-top: 4px;
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4040
4131
|
.last\:mb-2:last-child {
|
|
4041
4132
|
margin-bottom: 8px;
|
|
4042
4133
|
}
|
|
@@ -4059,6 +4150,15 @@ Modified version of toast CSS to match designs
|
|
|
4059
4150
|
border-bottom-width: 1px;
|
|
4060
4151
|
}
|
|
4061
4152
|
|
|
4153
|
+
.last\:text-right:last-child {
|
|
4154
|
+
text-align: right;
|
|
4155
|
+
}
|
|
4156
|
+
|
|
4157
|
+
.last\:text-neutral-500:last-child {
|
|
4158
|
+
--tw-text-opacity: 1;
|
|
4159
|
+
color: rgb(156 173 196 / var(--tw-text-opacity));
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4062
4162
|
.checked\:translate-x-5:checked {
|
|
4063
4163
|
--tw-translate-x: 20px;
|
|
4064
4164
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
package/src/styles/tailwind.css
CHANGED
|
@@ -921,3 +921,33 @@ Modified version of toast CSS to match designs
|
|
|
921
921
|
margin: 0;
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
+
|
|
925
|
+
input[type="range"] {
|
|
926
|
+
-webkit-appearance: none;
|
|
927
|
+
appearance: none;
|
|
928
|
+
background: linear-gradient(
|
|
929
|
+
to right,
|
|
930
|
+
transparent 10px,
|
|
931
|
+
#1cb69c 10px,
|
|
932
|
+
#1cb69c 50%,
|
|
933
|
+
#e0e7f0 50%,
|
|
934
|
+
#e0e7f0 calc(100% - 10px),
|
|
935
|
+
transparent calc(100% - 10px)
|
|
936
|
+
);
|
|
937
|
+
cursor: pointer;
|
|
938
|
+
width: 100%;
|
|
939
|
+
height: 4px;
|
|
940
|
+
margin-top: 8px;
|
|
941
|
+
margin-bottom: 8px;
|
|
942
|
+
z-index: 10;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
946
|
+
-webkit-appearance: none;
|
|
947
|
+
appearance: none;
|
|
948
|
+
height: 20px;
|
|
949
|
+
width: 20px;
|
|
950
|
+
border-radius: 100%;
|
|
951
|
+
border: 2px solid #fff;
|
|
952
|
+
background-color: #1cb69c;
|
|
953
|
+
}
|