@fab1o978/react-ui 0.1.5 → 0.1.8
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/components/ColorPicker/index.cjs +207 -63
- package/dist/components/ColorPicker/index.cjs.map +1 -1
- package/dist/components/ColorPicker/index.css +200 -42
- package/dist/components/ColorPicker/index.css.map +1 -1
- package/dist/components/ColorPicker/index.js +207 -63
- package/dist/components/ColorPicker/index.js.map +1 -1
- package/dist/components/SliderControl/index.cjs +270 -0
- package/dist/components/SliderControl/index.cjs.map +1 -0
- package/dist/components/SliderControl/index.css +202 -0
- package/dist/components/SliderControl/index.css.map +1 -0
- package/dist/components/SliderControl/index.d.cts +22 -0
- package/dist/components/SliderControl/index.d.ts +22 -0
- package/dist/components/SliderControl/index.js +268 -0
- package/dist/components/SliderControl/index.js.map +1 -0
- package/dist/index.cjs +208 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +200 -42
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +208 -64
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -832,48 +832,6 @@
|
|
|
832
832
|
box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
833
833
|
background: transparent;
|
|
834
834
|
}
|
|
835
|
-
.ColorPicker_module_lSlider {
|
|
836
|
-
position: relative;
|
|
837
|
-
height: 10px;
|
|
838
|
-
border-radius: 5px;
|
|
839
|
-
cursor: ew-resize;
|
|
840
|
-
margin-block: 5px;
|
|
841
|
-
background-color: var(--color-neutral-200);
|
|
842
|
-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
843
|
-
}
|
|
844
|
-
.ColorPicker_module_lThumb {
|
|
845
|
-
position: absolute;
|
|
846
|
-
top: 50%;
|
|
847
|
-
width: 20px;
|
|
848
|
-
height: 20px;
|
|
849
|
-
border-radius: 50%;
|
|
850
|
-
transform: translate(-50%, -50%);
|
|
851
|
-
background: white;
|
|
852
|
-
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
853
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
|
854
|
-
pointer-events: none;
|
|
855
|
-
}
|
|
856
|
-
.ColorPicker_module_alphaSlider {
|
|
857
|
-
position: relative;
|
|
858
|
-
height: 10px;
|
|
859
|
-
border-radius: 5px;
|
|
860
|
-
cursor: ew-resize;
|
|
861
|
-
margin-block: 5px;
|
|
862
|
-
background-color: var(--color-neutral-200);
|
|
863
|
-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
864
|
-
}
|
|
865
|
-
.ColorPicker_module_alphaThumb {
|
|
866
|
-
position: absolute;
|
|
867
|
-
top: 50%;
|
|
868
|
-
width: 20px;
|
|
869
|
-
height: 20px;
|
|
870
|
-
border-radius: 50%;
|
|
871
|
-
transform: translate(-50%, -50%);
|
|
872
|
-
background: white;
|
|
873
|
-
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
874
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
|
875
|
-
pointer-events: none;
|
|
876
|
-
}
|
|
877
835
|
.ColorPicker_module_previewSwatch {
|
|
878
836
|
width: 100%;
|
|
879
837
|
height: 48px;
|
|
@@ -1027,6 +985,206 @@
|
|
|
1027
985
|
flex-shrink: 0;
|
|
1028
986
|
}
|
|
1029
987
|
|
|
988
|
+
/* src/components/SliderControl/SliderControl.module.scss */
|
|
989
|
+
:root {
|
|
990
|
+
--accent: #3b82f6;
|
|
991
|
+
--accent-dot: rgb(82.52, 145, 247.08);
|
|
992
|
+
--accent-track: #3b82f6;
|
|
993
|
+
--accent-ring: #3b82f6;
|
|
994
|
+
--accent-glow: rgba(59, 130, 246, 0.3);
|
|
995
|
+
--accent-light: rgb(157.485, 188.725, 239.765);
|
|
996
|
+
--color-primary-50: rgb(169.3455, 194.6925, 236.1045);
|
|
997
|
+
--color-primary-100: rgb(149.4545, 184.4575, 241.6455);
|
|
998
|
+
--color-primary-400: rgb(82.52, 145, 247.08);
|
|
999
|
+
--color-primary-500: #3b82f6;
|
|
1000
|
+
--color-primary-600: rgb(29.8390243902, 111.4024390244, 244.6609756098);
|
|
1001
|
+
--color-primary-700: rgb(10.712195122, 95.2195121951, 233.287804878);
|
|
1002
|
+
--color-neutral-0: #ffffff;
|
|
1003
|
+
--color-neutral-100: #f3f4f6;
|
|
1004
|
+
--color-neutral-200: #e5e7eb;
|
|
1005
|
+
--color-neutral-400: #9ca3af;
|
|
1006
|
+
--color-neutral-600: #4b5563;
|
|
1007
|
+
--color-neutral-900: #111827;
|
|
1008
|
+
--color-success-500: #22c55e;
|
|
1009
|
+
--color-success-600: #16a34a;
|
|
1010
|
+
--color-danger-500: #ef4444;
|
|
1011
|
+
--color-danger-600: #dc2626;
|
|
1012
|
+
--color-warning-500: #f59e0b;
|
|
1013
|
+
--color-warning-600: #d97706;
|
|
1014
|
+
--font-family-base:
|
|
1015
|
+
"Inter",
|
|
1016
|
+
system-ui,
|
|
1017
|
+
-apple-system,
|
|
1018
|
+
sans-serif;
|
|
1019
|
+
--font-size-xs: 0.75rem;
|
|
1020
|
+
--font-size-sm: 0.875rem;
|
|
1021
|
+
--font-size-md: 1rem;
|
|
1022
|
+
--font-size-lg: 1.125rem;
|
|
1023
|
+
--spacing-1: 0.25rem;
|
|
1024
|
+
--spacing-2: 0.5rem;
|
|
1025
|
+
--spacing-3: 0.75rem;
|
|
1026
|
+
--spacing-4: 1rem;
|
|
1027
|
+
--radius-sm: 0.25rem;
|
|
1028
|
+
--radius-md: 0.375rem;
|
|
1029
|
+
--radius-lg: 0.5rem;
|
|
1030
|
+
--radius-full: 9999px;
|
|
1031
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1032
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
1033
|
+
--transition-fast: 150ms ease;
|
|
1034
|
+
--color-surface: #ffffff;
|
|
1035
|
+
--color-surface-elevated: #ffffff;
|
|
1036
|
+
}
|
|
1037
|
+
[data-theme=dark] {
|
|
1038
|
+
--color-neutral-0: #0f172a;
|
|
1039
|
+
--color-neutral-100: #1e293b;
|
|
1040
|
+
--color-neutral-200: #334155;
|
|
1041
|
+
--color-neutral-400: #94a3b8;
|
|
1042
|
+
--color-neutral-600: #cbd5e1;
|
|
1043
|
+
--color-neutral-900: #f8fafc;
|
|
1044
|
+
--color-surface: #1e293b;
|
|
1045
|
+
--color-surface-elevated: #273549;
|
|
1046
|
+
--color-primary-50: #172554;
|
|
1047
|
+
--color-primary-100: #1e3a8a;
|
|
1048
|
+
--accent-light: #172554;
|
|
1049
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
|
|
1050
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
1051
|
+
}
|
|
1052
|
+
.SliderControl_module_wrapper {
|
|
1053
|
+
display: flex;
|
|
1054
|
+
align-items: center;
|
|
1055
|
+
gap: 10px;
|
|
1056
|
+
font-family: var(--font-family-base);
|
|
1057
|
+
user-select: none;
|
|
1058
|
+
-webkit-user-select: none;
|
|
1059
|
+
}
|
|
1060
|
+
.SliderControl_module_disabled {
|
|
1061
|
+
opacity: 0.45;
|
|
1062
|
+
pointer-events: none;
|
|
1063
|
+
}
|
|
1064
|
+
.SliderControl_module_icon {
|
|
1065
|
+
display: flex;
|
|
1066
|
+
align-items: center;
|
|
1067
|
+
justify-content: center;
|
|
1068
|
+
color: var(--color-neutral-400);
|
|
1069
|
+
flex-shrink: 0;
|
|
1070
|
+
line-height: 0;
|
|
1071
|
+
}
|
|
1072
|
+
.SliderControl_module_trackArea {
|
|
1073
|
+
position: relative;
|
|
1074
|
+
flex: 1;
|
|
1075
|
+
height: 36px;
|
|
1076
|
+
display: flex;
|
|
1077
|
+
align-items: center;
|
|
1078
|
+
cursor: pointer;
|
|
1079
|
+
}
|
|
1080
|
+
.SliderControl_module_groove {
|
|
1081
|
+
position: relative;
|
|
1082
|
+
width: 100%;
|
|
1083
|
+
height: 22px;
|
|
1084
|
+
border-radius: var(--radius-full);
|
|
1085
|
+
background: var(--color-neutral-300);
|
|
1086
|
+
display: flex;
|
|
1087
|
+
align-items: center;
|
|
1088
|
+
box-shadow:
|
|
1089
|
+
inset 0 4px 8px rgba(0, 0, 0, 0.14),
|
|
1090
|
+
inset 0 2px 4px rgba(0, 0, 0, 0.06),
|
|
1091
|
+
inset 0 -2px 3px rgba(255, 255, 255, 0.1);
|
|
1092
|
+
}
|
|
1093
|
+
.SliderControl_module_rail {
|
|
1094
|
+
position: absolute;
|
|
1095
|
+
left: 8px;
|
|
1096
|
+
right: 8px;
|
|
1097
|
+
height: 6px;
|
|
1098
|
+
border-radius: var(--radius-full);
|
|
1099
|
+
background: var(--color-neutral-400);
|
|
1100
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(0, 0, 0, 0.18);
|
|
1101
|
+
overflow: hidden;
|
|
1102
|
+
}
|
|
1103
|
+
.SliderControl_module_fill {
|
|
1104
|
+
position: absolute;
|
|
1105
|
+
top: 0;
|
|
1106
|
+
left: 0;
|
|
1107
|
+
height: 100%;
|
|
1108
|
+
background: var(--slider-accent-track, var(--accent-track));
|
|
1109
|
+
border-radius: var(--radius-full);
|
|
1110
|
+
transition: width 60ms linear;
|
|
1111
|
+
}
|
|
1112
|
+
.SliderControl_module_thumb {
|
|
1113
|
+
position: absolute;
|
|
1114
|
+
top: 50%;
|
|
1115
|
+
width: 18px;
|
|
1116
|
+
height: 18px;
|
|
1117
|
+
border-radius: 50%;
|
|
1118
|
+
transform: translate(-50%, -50%);
|
|
1119
|
+
background: #dde0e6;
|
|
1120
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1121
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
|
|
1122
|
+
cursor: grab;
|
|
1123
|
+
transition: box-shadow 120ms ease, transform 120ms ease;
|
|
1124
|
+
outline: none;
|
|
1125
|
+
z-index: 2;
|
|
1126
|
+
}
|
|
1127
|
+
.SliderControl_module_thumb:focus-visible {
|
|
1128
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22), 0 0 0 3px var(--slider-accent-ring, var(--accent-ring));
|
|
1129
|
+
}
|
|
1130
|
+
.SliderControl_module_thumbDragging {
|
|
1131
|
+
cursor: grabbing;
|
|
1132
|
+
transform: translate(-50%, -50%) scale(1.08);
|
|
1133
|
+
box-shadow:
|
|
1134
|
+
0 1px 4px rgba(0, 0, 0, 0.28),
|
|
1135
|
+
0 0 0 3px var(--slider-accent-ring, var(--accent-ring)),
|
|
1136
|
+
0 0 0 6px var(--slider-accent-glow, var(--accent-glow));
|
|
1137
|
+
}
|
|
1138
|
+
.SliderControl_module_tooltip {
|
|
1139
|
+
position: absolute;
|
|
1140
|
+
bottom: calc(100% + 6px);
|
|
1141
|
+
transform: translateX(-50%);
|
|
1142
|
+
background: rgba(18, 18, 26, 0.85);
|
|
1143
|
+
backdrop-filter: blur(6px);
|
|
1144
|
+
-webkit-backdrop-filter: blur(6px);
|
|
1145
|
+
color: #fff;
|
|
1146
|
+
font-size: 11px;
|
|
1147
|
+
font-weight: 600;
|
|
1148
|
+
letter-spacing: 0.02em;
|
|
1149
|
+
padding: 3px 8px;
|
|
1150
|
+
border-radius: 6px;
|
|
1151
|
+
white-space: nowrap;
|
|
1152
|
+
pointer-events: none;
|
|
1153
|
+
opacity: 0;
|
|
1154
|
+
transition: opacity 120ms ease;
|
|
1155
|
+
z-index: 10;
|
|
1156
|
+
}
|
|
1157
|
+
.SliderControl_module_tooltip::after {
|
|
1158
|
+
content: "";
|
|
1159
|
+
position: absolute;
|
|
1160
|
+
top: 100%;
|
|
1161
|
+
left: 50%;
|
|
1162
|
+
transform: translateX(-50%);
|
|
1163
|
+
border: 4px solid transparent;
|
|
1164
|
+
border-top-color: rgba(18, 18, 26, 0.85);
|
|
1165
|
+
}
|
|
1166
|
+
.SliderControl_module_tooltipVisible {
|
|
1167
|
+
opacity: 1;
|
|
1168
|
+
}
|
|
1169
|
+
[data-theme=dark] .SliderControl_module_groove {
|
|
1170
|
+
box-shadow:
|
|
1171
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
|
1172
|
+
inset 0 3px 7px rgba(0, 0, 0, 0.32),
|
|
1173
|
+
inset 0 1px 3px rgba(0, 0, 0, 0.22),
|
|
1174
|
+
inset 0 -2px 3px rgba(255, 255, 255, 0.04);
|
|
1175
|
+
}
|
|
1176
|
+
[data-theme=dark] .SliderControl_module_thumb {
|
|
1177
|
+
background: #4a4f5c;
|
|
1178
|
+
border-color: rgba(255, 255, 255, 0.08);
|
|
1179
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
|
|
1180
|
+
}
|
|
1181
|
+
[data-theme=dark] .SliderControl_module_thumbDragging {
|
|
1182
|
+
box-shadow:
|
|
1183
|
+
0 1px 4px rgba(0, 0, 0, 0.5),
|
|
1184
|
+
0 0 0 3px var(--slider-accent-ring, var(--accent-ring)),
|
|
1185
|
+
0 0 0 6px var(--slider-accent-glow, var(--accent-glow));
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1030
1188
|
/* src/components/SlidingCounter/SlidingCounter.module.scss */
|
|
1031
1189
|
:root {
|
|
1032
1190
|
--accent: #3b82f6;
|