@ember-joinery/carousel 0.0.0-stage → 1.1.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +175 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +41 -2
  5. package/addon-main.cjs +4 -0
  6. package/declarations/-private/direction.d.ts +7 -0
  7. package/declarations/-private/direction.d.ts.map +1 -0
  8. package/declarations/-private/waiter.d.ts +12 -0
  9. package/declarations/-private/waiter.d.ts.map +1 -0
  10. package/declarations/components/carousel/content.d.ts +28 -0
  11. package/declarations/components/carousel/content.d.ts.map +1 -0
  12. package/declarations/components/carousel/index.d.ts +104 -0
  13. package/declarations/components/carousel/index.d.ts.map +1 -0
  14. package/declarations/components/carousel/item.d.ts +33 -0
  15. package/declarations/components/carousel/item.d.ts.map +1 -0
  16. package/declarations/components/carousel/state.d.ts +58 -0
  17. package/declarations/components/carousel/state.d.ts.map +1 -0
  18. package/declarations/components/carousel/step.d.ts +59 -0
  19. package/declarations/components/carousel/step.d.ts.map +1 -0
  20. package/declarations/components/carousel.d.ts +3 -0
  21. package/declarations/embla.d.ts +49 -0
  22. package/declarations/embla.d.ts.map +1 -0
  23. package/declarations/index.d.ts +5 -0
  24. package/declarations/index.d.ts.map +1 -0
  25. package/declarations/messages.d.ts +30 -0
  26. package/declarations/messages.d.ts.map +1 -0
  27. package/declarations/test-support/carousel.d.ts +84 -0
  28. package/declarations/test-support/carousel.d.ts.map +1 -0
  29. package/declarations/test-support/index.d.ts +2 -0
  30. package/declarations/test-support/index.d.ts.map +1 -0
  31. package/declarations/test-support.d.ts +2 -0
  32. package/dist/components/carousel.js +383 -0
  33. package/dist/components/carousel.js.map +1 -0
  34. package/dist/embla-C9buOK_5.js +186 -0
  35. package/dist/embla-C9buOK_5.js.map +1 -0
  36. package/dist/embla.js +7 -0
  37. package/dist/embla.js.map +1 -0
  38. package/dist/index.js +4 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/messages.js +32 -0
  41. package/dist/messages.js.map +1 -0
  42. package/dist/test-support.js +215 -0
  43. package/dist/test-support.js.map +1 -0
  44. package/package.json +116 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,175 @@
1
+ # @ember-joinery/carousel
2
+
3
+ ## 1.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9728270]
8
+ - Updated dependencies [9728270]
9
+ - Updated dependencies [9728270]
10
+ - Updated dependencies [9728270]
11
+ - Updated dependencies [9728270]
12
+ - Updated dependencies [9728270]
13
+ - Updated dependencies [9728270]
14
+ - Updated dependencies [9728270]
15
+ - Updated dependencies [9728270]
16
+ - Updated dependencies [9728270]
17
+ - Updated dependencies [9728270]
18
+ - Updated dependencies [9728270]
19
+ - Updated dependencies [9728270]
20
+ - Updated dependencies [9728270]
21
+ - @ember-joinery/ember@1.1.0
22
+ - @ember-joinery/test-support@1.1.0
23
+ - @ember-joinery/primitives@1.1.0
24
+
25
+ ## 1.0.1
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [2b887bf]
30
+ - Updated dependencies [2b887bf]
31
+ - Updated dependencies [2b887bf]
32
+ - Updated dependencies [2b887bf]
33
+ - Updated dependencies [2b887bf]
34
+ - Updated dependencies [2b887bf]
35
+ - Updated dependencies [2b887bf]
36
+ - Updated dependencies [2b887bf]
37
+ - @ember-joinery/primitives@1.0.1
38
+ - @ember-joinery/ember@1.0.1
39
+ - @ember-joinery/test-support@1.0.1
40
+
41
+ ## 1.0.0
42
+
43
+ ### Major Changes
44
+
45
+ - a73065d: `@ember-joinery/carousel` is a new add-on: shadcn's Carousel, on Embla's framework-agnostic
46
+ `embla-carousel`. `Carousel` takes upstream's `@orientation`, `@opts`, `@plugins` and `@setApi`,
47
+ and yields `Content`, `Item`, `Previous` and `Next` (with `item`, `previous` and `next`
48
+ modifiers) and what upstream's `useCarousel()` returns: `api`, `canScrollPrev`, `canScrollNext`,
49
+ `scrollPrev`, `scrollNext`, `scrollTo` and `orientation`. It takes its direction from the
50
+ nearest `dir` and follows it, flips the arrow keys right to left, takes the up and down arrows
51
+ when vertical, names each slide by its place (`@slideLabel`), and reinitializes in place when
52
+ its options or plugins change. `{{embla}}` is its headless part, for markup of your own. Its
53
+ `/test-support` has `CarouselHarness`, and `settled()` waits for a carousel to come to rest.
54
+ `@ember-joinery/ember`'s style sheets style its parts.
55
+
56
+ ### Minor Changes
57
+
58
+ - 17c5b5c: The add-ons' built-in strings go through the app's translator, each package's in its own
59
+ `<package>/messages`: Carousel's role descriptions, slide names (`{index} of {count}`) and step
60
+ buttons; Code Block's Copy and Copied; File Upload's prompt, hint, drop label, its rejected,
61
+ left-out, remove, retry and progress names, Upload failed and `FILE`; Phone Input's country
62
+ picker's name; Power Calendar's month buttons, its calendars' names and the pickers' placeholder,
63
+ trigger names and range (`{from} – {to}`); the Rich Text Editor's toolbar, text styles,
64
+ tools and its shortcuts' Ctrl, Shift and Alt. An argument still wins. File Upload's, Phone Input's and Power Calendar's `@locale`
65
+ default to the translator's. Chart and Data Table show no strings of their own.
66
+
67
+ ### Patch Changes
68
+
69
+ - a53c07b: Type checks in package source use `@sindresorhus/is` (`isString`, `isFunction`, …) instead of `typeof`, and a lint rule keeps it that way. `@sindresorhus/is` is a new runtime dependency, so `ember-joinery add` now installs it into the app for most components, `icon` included. `isNumber` rejects `NaN`, so a `NaN` reaching a numeric check now takes the non-number branch.
70
+ - 99eab0c: Built-in strings follow a live change of the translator's `locale`: a carousel's slide names
71
+ (`1 of 5`) and an input OTP's fallback name (`One-time password`) are set again in the new
72
+ language, not only on the next render. A date range picker reads typed text with the range
73
+ message it writes (`{from} – {to}`, or its translation), so a translated separator reads back,
74
+ and a dash, a hyphen or `to` still split English.
75
+ - a73065d: Every package's tarball carries Joinery's `LICENSE.md` and `NOTICE`, with the licences and
76
+ notices of what it ports (shadcn/ui, ember-primitives, sonner, recharts and the rest), copied in
77
+ from the repository's root by the package's `prepack`.
78
+ - Updated dependencies [a73065d]
79
+ - Updated dependencies [a73065d]
80
+ - Updated dependencies [a73065d]
81
+ - Updated dependencies [a73065d]
82
+ - Updated dependencies [a73065d]
83
+ - Updated dependencies [a73065d]
84
+ - Updated dependencies [a73065d]
85
+ - Updated dependencies [a73065d]
86
+ - Updated dependencies [a73065d]
87
+ - Updated dependencies [a73065d]
88
+ - Updated dependencies [a73065d]
89
+ - Updated dependencies [a73065d]
90
+ - Updated dependencies [a73065d]
91
+ - Updated dependencies [a73065d]
92
+ - Updated dependencies [a73065d]
93
+ - Updated dependencies [a73065d]
94
+ - Updated dependencies [a73065d]
95
+ - Updated dependencies [a73065d]
96
+ - Updated dependencies [a73065d]
97
+ - Updated dependencies [a73065d]
98
+ - Updated dependencies [a73065d]
99
+ - Updated dependencies [a73065d]
100
+ - Updated dependencies [a73065d]
101
+ - Updated dependencies [a73065d]
102
+ - Updated dependencies [a73065d]
103
+ - Updated dependencies [a73065d]
104
+ - Updated dependencies [a73065d]
105
+ - Updated dependencies [a73065d]
106
+ - Updated dependencies [a73065d]
107
+ - Updated dependencies [a73065d]
108
+ - Updated dependencies [a73065d]
109
+ - Updated dependencies [a73065d]
110
+ - Updated dependencies [a73065d]
111
+ - Updated dependencies [a73065d]
112
+ - Updated dependencies [a73065d]
113
+ - Updated dependencies [a73065d]
114
+ - Updated dependencies [a73065d]
115
+ - Updated dependencies [17c5b5c]
116
+ - Updated dependencies [17c5b5c]
117
+ - Updated dependencies [99eab0c]
118
+ - Updated dependencies [a73065d]
119
+ - Updated dependencies [a73065d]
120
+ - Updated dependencies [a73065d]
121
+ - Updated dependencies [a73065d]
122
+ - Updated dependencies [a73065d]
123
+ - Updated dependencies [a73065d]
124
+ - Updated dependencies [a73065d]
125
+ - Updated dependencies [a73065d]
126
+ - Updated dependencies [a73065d]
127
+ - Updated dependencies [a73065d]
128
+ - Updated dependencies [a73065d]
129
+ - Updated dependencies [a73065d]
130
+ - Updated dependencies [a73065d]
131
+ - Updated dependencies [a73065d]
132
+ - Updated dependencies [a73065d]
133
+ - Updated dependencies [a73065d]
134
+ - Updated dependencies [a73065d]
135
+ - Updated dependencies [a73065d]
136
+ - Updated dependencies [a73065d]
137
+ - Updated dependencies [a73065d]
138
+ - Updated dependencies [a73065d]
139
+ - Updated dependencies [a73065d]
140
+ - Updated dependencies [a73065d]
141
+ - Updated dependencies [a73065d]
142
+ - Updated dependencies [a73065d]
143
+ - Updated dependencies [a73065d]
144
+ - Updated dependencies [a73065d]
145
+ - Updated dependencies [a73065d]
146
+ - Updated dependencies [a73065d]
147
+ - Updated dependencies [a73065d]
148
+ - Updated dependencies [a73065d]
149
+ - Updated dependencies [a73065d]
150
+ - Updated dependencies [a73065d]
151
+ - Updated dependencies [a73065d]
152
+ - Updated dependencies [a73065d]
153
+ - Updated dependencies [a73065d]
154
+ - Updated dependencies [a73065d]
155
+ - Updated dependencies [a73065d]
156
+ - Updated dependencies [a73065d]
157
+ - Updated dependencies [a73065d]
158
+ - Updated dependencies [a73065d]
159
+ - Updated dependencies [a73065d]
160
+ - Updated dependencies [a73065d]
161
+ - Updated dependencies [a73065d]
162
+ - Updated dependencies [a73065d]
163
+ - Updated dependencies [a73065d]
164
+ - Updated dependencies [a73065d]
165
+ - Updated dependencies [a73065d]
166
+ - Updated dependencies [a73065d]
167
+ - Updated dependencies [a73065d]
168
+ - Updated dependencies [a73065d]
169
+ - Updated dependencies [a73065d]
170
+ - Updated dependencies [a73065d]
171
+ - Updated dependencies [a73065d]
172
+ - Updated dependencies [a73065d]
173
+ - @ember-joinery/primitives@1.0.0
174
+ - @ember-joinery/ember@1.0.0
175
+ - @ember-joinery/test-support@1.0.0
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Joe Gaudet
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.