@rtzll/reflow 0.7.0 → 0.7.1

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/carousel.css CHANGED
@@ -48,8 +48,8 @@
48
48
  .rf-carousel[data-align='center'] .rf-carousel-slide {
49
49
  scroll-snap-align: center;
50
50
  }
51
- /* Dragging moves the slides, not their images. */
52
- .rf-carousel-slide img {
51
+ /* Dragging moves the slides, not their links or images. */
52
+ .rf-carousel-slide :is(a, img) {
53
53
  -webkit-user-drag: none;
54
54
  }
55
55
 
package/dist/carousel.js CHANGED
@@ -210,6 +210,9 @@ export function Carousel(handle) {
210
210
  if (drag.samples.length > 8)
211
211
  drag.samples.shift();
212
212
  }, options);
213
+ // Links and images are draggable by default; a native drag would cancel
214
+ // the pointer and take over the slides' drag, so the carousel keeps it.
215
+ node.addEventListener('dragstart', (event) => event.preventDefault(), options);
213
216
  node.addEventListener('pointerup', endDrag, options);
214
217
  node.addEventListener('pointercancel', endDrag, options);
215
218
  // A drag that ends over a link does not follow it.
package/dist/choices.css CHANGED
@@ -414,6 +414,17 @@
414
414
  color: var(--rf-muted);
415
415
  cursor: pointer;
416
416
  }
417
+ /* On touch, the remove button answers a little beyond its drawn square. */
418
+ @media (pointer: coarse) {
419
+ .rf-picker-chip > button {
420
+ position: relative;
421
+ }
422
+ .rf-picker-chip > button::before {
423
+ content: '';
424
+ position: absolute;
425
+ inset: -4px;
426
+ }
427
+ }
417
428
  .rf-picker-chip > button:hover {
418
429
  background: var(--rf-active);
419
430
  color: var(--rf-fg);
@@ -18,6 +18,12 @@
18
18
  background: transparent;
19
19
  cursor: pointer;
20
20
  }
21
+ /* On touch, each dot's button reaches the 24px minimum target; the dots stay small. */
22
+ @media (pointer: coarse) {
23
+ .rf-carousel-dots button {
24
+ padding: 9px;
25
+ }
26
+ }
21
27
  .rf-carousel-dots button:focus-visible {
22
28
  box-shadow: 0 0 0 1px var(--rf-accent);
23
29
  }
package/dist/dates.css CHANGED
@@ -129,6 +129,8 @@
129
129
  .rf-calendar-months {
130
130
  display: flex;
131
131
  flex-wrap: wrap;
132
+ /* Months that wrap onto their own rows, as on a phone, stay centred. */
133
+ justify-content: center;
132
134
  align-items: flex-start;
133
135
  gap: 24px;
134
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtzll/reflow",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",