@appica/ui-react 1.3.1 → 1.4.0
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/CHANGELOG.md +13 -0
- package/agent-rules.md +1 -0
- package/appica.css +1 -1
- package/dist/components/carousel/carousel.d.ts +24 -3
- package/dist/components/carousel/carousel.d.ts.map +1 -1
- package/dist/components/carousel/carousel.js +137 -27
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/carousel/carousel.test.tsx +425 -20
- package/src/components/carousel/carousel.tsx +182 -36
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ version alongside the package.
|
|
|
7
7
|
|
|
8
8
|
The library follows [semantic versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
+
## 1.4.0 - 2026-11-01
|
|
11
|
+
|
|
12
|
+
A play and pause control for Carousel, options to keep autoplay running under the pointer or focus, and a mouse click that no longer pauses it.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **[CarouselPlayToggle](https://appica.dev/ui/components/react/carousel#play-and-pause)** - A play and pause button for Autoplay and Auto Scroll. Once paused, the carousel stays paused until it's pressed again. For a custom control, use `paused`, `pause()` and `play()` from `useCarousel()`.
|
|
17
|
+
- **[Carousel autoplay pause options](https://appica.dev/ui/components/react/carousel#autoplay)** - `pauseOnHover` and `pauseOnFocus` turn off either pause, for a timer that is part of the design. A carousel without the pause needs a `CarouselPlayToggle`.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **[Carousel autoplay focus pause](https://appica.dev/ui/components/react/carousel#accessibility)** - Only keyboard focus pauses autoplay. A mouse click on an arrow or a pagination dot leaves it running.
|
|
22
|
+
|
|
10
23
|
## 1.3.1 - 2026-11-01
|
|
11
24
|
|
|
12
25
|
Accessibility fixes for Carousel and form fields, and a lighter carousel progress bar.
|
package/agent-rules.md
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
own `:has()` rules, each check restyles the whole page. Derive page state from the route or React state instead.
|
|
39
39
|
- For a link styled as a button, put `buttonVariants(...)` on the `<a>` - never `<Button render={<a/>}>`.
|
|
40
40
|
- Put `className` overrides on the wrapper component, not on the JSX passed to `render`.
|
|
41
|
+
- A carousel with `pauseOnHover: false` or `pauseOnFocus: false` takes a `CarouselPlayToggle`.
|
|
41
42
|
- Do not hand-roll a component that exists in the library. Check the component list first:
|
|
42
43
|
https://appica.dev/ui/react/llms.txt
|
|
43
44
|
- Every documentation page is served as clean markdown at `<url>.md` - fetch that, not the HTML.
|