@compass-labs/widgets 0.1.37 → 0.1.39
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.d.mts +2 -9
- package/dist/index.d.ts +2 -9
- package/dist/index.js +3618 -3771
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3620 -3773
- package/dist/index.mjs.map +1 -1
- package/dist/server/index.js +6 -20
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +6 -20
- package/dist/server/index.mjs.map +1 -1
- package/dist/styles.css +56 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -186,3 +186,59 @@
|
|
|
186
186
|
.compass-widget-select:focus {
|
|
187
187
|
border-color: var(--compass-color-primary);
|
|
188
188
|
}
|
|
189
|
+
|
|
190
|
+
/* Hide number input spinners */
|
|
191
|
+
.compass-widget input[type="number"]::-webkit-inner-spin-button,
|
|
192
|
+
.compass-widget input[type="number"]::-webkit-outer-spin-button {
|
|
193
|
+
-webkit-appearance: none;
|
|
194
|
+
margin: 0;
|
|
195
|
+
}
|
|
196
|
+
.compass-widget input[type="number"] {
|
|
197
|
+
-moz-appearance: textfield;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* Skeleton loading animation */
|
|
201
|
+
.compass-widget-skeleton {
|
|
202
|
+
background: linear-gradient(
|
|
203
|
+
90deg,
|
|
204
|
+
var(--compass-color-surface) 25%,
|
|
205
|
+
var(--compass-color-surface-hover) 50%,
|
|
206
|
+
var(--compass-color-surface) 75%
|
|
207
|
+
);
|
|
208
|
+
background-size: 200% 100%;
|
|
209
|
+
animation: compass-skeleton 1.5s ease-in-out infinite;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@keyframes compass-skeleton {
|
|
213
|
+
0% { background-position: 200% 0; }
|
|
214
|
+
100% { background-position: -200% 0; }
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Reduced motion */
|
|
218
|
+
@media (prefers-reduced-motion: reduce) {
|
|
219
|
+
.compass-widget-spinner,
|
|
220
|
+
.compass-widget-skeleton {
|
|
221
|
+
animation: none;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Focus-visible for keyboard nav */
|
|
226
|
+
.compass-widget button:focus-visible,
|
|
227
|
+
.compass-widget input:focus-visible {
|
|
228
|
+
outline: 2px solid var(--compass-color-primary);
|
|
229
|
+
outline-offset: 2px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Cursor pointer on buttons */
|
|
233
|
+
.compass-widget button:not(:disabled) {
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Hide scrollbar but keep scrolling */
|
|
238
|
+
.compass-hide-scrollbar {
|
|
239
|
+
scrollbar-width: none; /* Firefox */
|
|
240
|
+
-ms-overflow-style: none; /* IE/Edge */
|
|
241
|
+
}
|
|
242
|
+
.compass-hide-scrollbar::-webkit-scrollbar {
|
|
243
|
+
display: none; /* Chrome/Safari */
|
|
244
|
+
}
|