@1337exp/taoui 5.32.2 → 5.34.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/CHANGELOG.md +18 -0
- package/README.md +3 -1
- package/README.ru.md +3 -1
- package/dist/index.d.ts +31 -2
- package/dist/index.js +142 -13
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/references/components.md +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1337exp/taoui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.34.1",
|
|
4
4
|
"description": "Design-token driven Vue 3 / Nuxt component library: palettes with tested contrast, accessible menus and toolbars, navigation that adapts without JS, small charts, built-in locales.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -821,9 +821,10 @@ Showcase section: `#carousel`
|
|
|
821
821
|
|---|---|---|---|
|
|
822
822
|
| `v-model` | `number` | 0 | The index of the current snap |
|
|
823
823
|
| `perView` | `number` | 1 | How many slides are in the frame. 5 — a product strip |
|
|
824
|
-
| `peek` | `number` | 0 | How many px of the next card are visible on the right |
|
|
824
|
+
| `peek` | `number` | 0 | How many px of the next card are visible on the right (with centered: on both sides) |
|
|
825
|
+
| `centered` | `boolean` | false | The current slide in the middle and the biggest, the ones beside it shrink, the outer ones fade and are cut by the edge. perView is how many whole slides are in the frame, a step and the arrows go by one slide, the arrows lie on the edges of the strip. Restyle with --tao-carousel-scale-step (0.09), --tao-carousel-fade (0.55) and --tao-carousel-ring (the ring around an arrow, the page background by default) |
|
|
825
826
|
| `autoplay` | `number` | 0 | Time per slide in ms. 0 — off. The current indicator fills over this time and the slide changes when it is full (the clock is a CSS animation). Pauses on hover / keyboard focus / touch and drag / a hidden tab; off with prefers-reduced-motion |
|
|
826
|
-
| `loop` | `boolean` | false | Loop round in a circle |
|
|
827
|
+
| `loop` | `boolean` | false | Loop round in a circle. With centered: a seamless cycle with no end, the empty places at the ends are taken by the slides from the other end, the slides are drawn 3 times (the extra copies are inert and aria-hidden, a slide needs no id or ref); whenever the strip stops in a copy it goes back to the real set unseen |
|
|
827
828
|
| `indicator` | `'dots' \| 'bars' \| 'progress'` | — | Marks under the strip: dots (the current one stretches into a pill) / equal bars / one bar (the fill of the slide, the position without autoplay) |
|
|
828
829
|
| `pausable` | `boolean` | true | With autoplay: a button that stops and resumes it (autoplay that moves for more than 5 seconds must be stoppable) |
|
|
829
830
|
| `pauseLabel / playLabel` | `string` | 'Pause autoplay' / 'Start autoplay' | aria-label of the button |
|