@ember-joinery/carousel 0.0.0-stage → 1.0.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 +153 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +41 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/direction.d.ts +7 -0
- package/declarations/-private/direction.d.ts.map +1 -0
- package/declarations/-private/waiter.d.ts +12 -0
- package/declarations/-private/waiter.d.ts.map +1 -0
- package/declarations/components/carousel/content.d.ts +28 -0
- package/declarations/components/carousel/content.d.ts.map +1 -0
- package/declarations/components/carousel/index.d.ts +104 -0
- package/declarations/components/carousel/index.d.ts.map +1 -0
- package/declarations/components/carousel/item.d.ts +33 -0
- package/declarations/components/carousel/item.d.ts.map +1 -0
- package/declarations/components/carousel/state.d.ts +58 -0
- package/declarations/components/carousel/state.d.ts.map +1 -0
- package/declarations/components/carousel/step.d.ts +59 -0
- package/declarations/components/carousel/step.d.ts.map +1 -0
- package/declarations/components/carousel.d.ts +3 -0
- package/declarations/embla.d.ts +49 -0
- package/declarations/embla.d.ts.map +1 -0
- package/declarations/index.d.ts +5 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/messages.d.ts +30 -0
- package/declarations/messages.d.ts.map +1 -0
- package/declarations/test-support/carousel.d.ts +84 -0
- package/declarations/test-support/carousel.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +2 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/dist/components/carousel.js +383 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/embla-C9buOK_5.js +186 -0
- package/dist/embla-C9buOK_5.js.map +1 -0
- package/dist/embla.js +7 -0
- package/dist/embla.js.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/messages.js +32 -0
- package/dist/messages.js.map +1 -0
- package/dist/test-support.js +215 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +116 -3
package/NOTICE
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
Joinery
|
|
2
|
+
Copyright (c) 2026 Joe Gaudet. MIT licensed; see LICENSE.md.
|
|
3
|
+
|
|
4
|
+
Joinery ports the design, styles, component APIs and examples of shadcn/ui, and provides the
|
|
5
|
+
features of ember-primitives. Its Toast ports sonner, which shadcn/ui's Sonner wraps: sonner's
|
|
6
|
+
toast state, its Toaster and Toast, and its icons and loader, in @ember-joinery/primitives'
|
|
7
|
+
toast, and sonner's style sheet, copied unchanged into @ember-joinery/ember's compiled CSS.
|
|
8
|
+
Its charts, @ember-joinery/chart, port recharts, which shadcn/ui's Chart wraps: recharts' tick
|
|
9
|
+
selection (getTicks, getEquidistantTicks), nice tick values (getNiceTickValues), text
|
|
10
|
+
measurement (DOMUtils' getStringSize), cartesian layout (the plot area, scales, stacking, bar
|
|
11
|
+
positions, tick lines), pie layout (computePieSectors, the pie's labels, polar label positions,
|
|
12
|
+
inRangeOfSector), polar layout (PolarUtils, the radar's points, the radial bars' sectors, the
|
|
13
|
+
polar grid, axes and labels) and tooltip placement (getTooltipTranslateXY), and its rectangle,
|
|
14
|
+
sector and polygon paths (getRectanglePath, Sector, getSectorPath, Polygon). Its Drawer ports
|
|
15
|
+
vaul, which shadcn/ui's Drawer is built on: vaul's behaviour in @ember-joinery/primitives' drawer,
|
|
16
|
+
and vaul's style sheet, copied into @ember-joinery/ember's compiled CSS. Its Command ports cmdk,
|
|
17
|
+
which shadcn/ui's Command is built on: cmdk's behaviour and its command score, in
|
|
18
|
+
@ember-joinery/primitives' command. Its Calendar ports React DayPicker, which shadcn/ui's Calendar
|
|
19
|
+
is built on: DayPicker's markup, classes, labels, selection and keyboard, in
|
|
20
|
+
@ember-joinery/primitives' calendar. Its opt-in file uploads, @ember-joinery/file-upload, are
|
|
21
|
+
built on ember-file-upload, and its opt-in rich-text editor, @ember-joinery/tiptap, on Tiptap,
|
|
22
|
+
each a dependency of its package (nothing of either is ported). Its opt-in calendars and date
|
|
23
|
+
pickers, @ember-joinery/power-calendar, are built on ember-power-calendar, a dependency of that
|
|
24
|
+
package, whose Days components they subclass (nothing of it is copied), and their date library
|
|
25
|
+
on Date and Intl is Formwright's. Its opt-in masked inputs, @ember-joinery/maskito, are built
|
|
26
|
+
on Maskito and libphonenumber-js, dependencies of that package (nothing of them is ported).
|
|
27
|
+
All of them are MIT licensed but Maskito, which is Apache 2.0 licensed; their notices and
|
|
28
|
+
licences follow.
|
|
29
|
+
|
|
30
|
+
--------------------------------------------------------------------------------
|
|
31
|
+
shadcn/ui
|
|
32
|
+
https://github.com/shadcn-ui/ui
|
|
33
|
+
|
|
34
|
+
Ported from commit 8ab27715521cbd4f87ae6886cd989cbb678f6de7 (2026-11-08). Later syncs are
|
|
35
|
+
recorded in upstream.json.
|
|
36
|
+
|
|
37
|
+
MIT License
|
|
38
|
+
|
|
39
|
+
Copyright (c) 2023 shadcn
|
|
40
|
+
|
|
41
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
42
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
43
|
+
in the Software without restriction, including without limitation the rights
|
|
44
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
45
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
46
|
+
furnished to do so, subject to the following conditions:
|
|
47
|
+
|
|
48
|
+
The above copyright notice and this permission notice shall be included in all
|
|
49
|
+
copies or substantial portions of the Software.
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
52
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
53
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
54
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
55
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
56
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
57
|
+
SOFTWARE.
|
|
58
|
+
|
|
59
|
+
--------------------------------------------------------------------------------
|
|
60
|
+
ember-primitives
|
|
61
|
+
https://github.com/universal-ember/ember-primitives
|
|
62
|
+
|
|
63
|
+
Feature parity with commit 9584c783bae34e6f0b628ec09a1e1f3cbdb4107e (0.64.2, 2026-11-06).
|
|
64
|
+
Later syncs are recorded in upstream.json.
|
|
65
|
+
|
|
66
|
+
The MIT License (MIT)
|
|
67
|
+
|
|
68
|
+
Copyright (c) 2023
|
|
69
|
+
|
|
70
|
+
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:
|
|
71
|
+
|
|
72
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
73
|
+
|
|
74
|
+
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.
|
|
75
|
+
|
|
76
|
+
--------------------------------------------------------------------------------
|
|
77
|
+
sonner
|
|
78
|
+
https://github.com/emilkowalski/sonner
|
|
79
|
+
|
|
80
|
+
Ported from version 2.0.7 (its dist/styles.css copied unchanged).
|
|
81
|
+
|
|
82
|
+
MIT License
|
|
83
|
+
|
|
84
|
+
Copyright (c) 2023 Emil Kowalski
|
|
85
|
+
|
|
86
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
87
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
88
|
+
in the Software without restriction, including without limitation the rights
|
|
89
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
90
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
91
|
+
furnished to do so, subject to the following conditions:
|
|
92
|
+
|
|
93
|
+
The above copyright notice and this permission notice shall be included in all
|
|
94
|
+
copies or substantial portions of the Software.
|
|
95
|
+
|
|
96
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
101
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
102
|
+
SOFTWARE.
|
|
103
|
+
|
|
104
|
+
--------------------------------------------------------------------------------
|
|
105
|
+
recharts
|
|
106
|
+
https://github.com/recharts/recharts
|
|
107
|
+
|
|
108
|
+
Ported from version 3.8.0, the version shadcn/ui's charts use. @ember-joinery/chart's built
|
|
109
|
+
modules that hold the ported code keep this notice in a /*! comment.
|
|
110
|
+
|
|
111
|
+
The MIT License (MIT)
|
|
112
|
+
|
|
113
|
+
Copyright (c) 2015-present recharts
|
|
114
|
+
|
|
115
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
116
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
117
|
+
in the Software without restriction, including without limitation the rights
|
|
118
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
119
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
120
|
+
furnished to do so, subject to the following conditions:
|
|
121
|
+
|
|
122
|
+
The above copyright notice and this permission notice shall be included in all
|
|
123
|
+
copies or substantial portions of the Software.
|
|
124
|
+
|
|
125
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
126
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
127
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
128
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
129
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
130
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
131
|
+
SOFTWARE.
|
|
132
|
+
|
|
133
|
+
--------------------------------------------------------------------------------
|
|
134
|
+
form-data-utils
|
|
135
|
+
https://github.com/NullVoxPopuli/form-data-utils
|
|
136
|
+
|
|
137
|
+
@ember-joinery/primitives' native-form ports its dataFrom (0.6.0), which ember-primitives'
|
|
138
|
+
Form uses, in packages/primitives/src/-private/form-data.ts.
|
|
139
|
+
|
|
140
|
+
The MIT License (MIT)
|
|
141
|
+
|
|
142
|
+
Copyright (c) 2024
|
|
143
|
+
|
|
144
|
+
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:
|
|
145
|
+
|
|
146
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
147
|
+
|
|
148
|
+
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.
|
|
149
|
+
|
|
150
|
+
--------------------------------------------------------------------------------
|
|
151
|
+
vaul
|
|
152
|
+
https://github.com/emilkowalski/vaul
|
|
153
|
+
|
|
154
|
+
Ported from version 1.1.2 (its style.css copied, but for one invalid rule).
|
|
155
|
+
|
|
156
|
+
MIT License
|
|
157
|
+
|
|
158
|
+
Copyright (c) 2023 Emil Kowalski
|
|
159
|
+
|
|
160
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
161
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
162
|
+
in the Software without restriction, including without limitation the rights
|
|
163
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
164
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
165
|
+
furnished to do so, subject to the following conditions:
|
|
166
|
+
|
|
167
|
+
The above copyright notice and this permission notice shall be included in all
|
|
168
|
+
copies or substantial portions of the Software.
|
|
169
|
+
|
|
170
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
171
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
172
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
173
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
174
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
175
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
176
|
+
SOFTWARE.
|
|
177
|
+
|
|
178
|
+
--------------------------------------------------------------------------------
|
|
179
|
+
cmdk
|
|
180
|
+
https://github.com/dip/cmdk
|
|
181
|
+
|
|
182
|
+
Joinery's Command (@ember-joinery/primitives' command, which shadcn/ui's Command is built on
|
|
183
|
+
in React) follows cmdk 1.1.1's behaviour, and its command score
|
|
184
|
+
(packages/primitives/src/-private/command-score.ts) is ported from cmdk's line for line.
|
|
185
|
+
|
|
186
|
+
MIT License
|
|
187
|
+
|
|
188
|
+
Copyright (c) 2022 Paco Coursey
|
|
189
|
+
|
|
190
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
191
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
192
|
+
in the Software without restriction, including without limitation the rights
|
|
193
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
194
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
195
|
+
furnished to do so, subject to the following conditions:
|
|
196
|
+
|
|
197
|
+
The above copyright notice and this permission notice shall be included in all
|
|
198
|
+
copies or substantial portions of the Software.
|
|
199
|
+
|
|
200
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
201
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
202
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
203
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
204
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
205
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
206
|
+
SOFTWARE.
|
|
207
|
+
|
|
208
|
+
--------------------------------------------------------------------------------
|
|
209
|
+
React DayPicker
|
|
210
|
+
https://github.com/gpbl/react-day-picker
|
|
211
|
+
|
|
212
|
+
Joinery's Calendar (@ember-joinery/primitives' calendar, which replaces React DayPicker under
|
|
213
|
+
shadcn/ui's Calendar) follows react-day-picker 9.8.1, the version shadcn/ui's examples use: its
|
|
214
|
+
markup and default classes, labels and formatters, its selection (addToRange), its matchers,
|
|
215
|
+
and the day its keys move focus to, with Intl in place of date-fns.
|
|
216
|
+
|
|
217
|
+
The MIT License (MIT)
|
|
218
|
+
|
|
219
|
+
Copyright (c) 2014-2025 Giampaolo Bellavite <io@gpbl.dev> and contributors
|
|
220
|
+
|
|
221
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
222
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
223
|
+
in the Software without restriction, including without limitation the rights
|
|
224
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
225
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
226
|
+
furnished to do so, subject to the following conditions:
|
|
227
|
+
|
|
228
|
+
The above copyright notice and this permission notice shall be included in all
|
|
229
|
+
copies or substantial portions of the Software.
|
|
230
|
+
|
|
231
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
232
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
233
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
234
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
235
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
236
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
237
|
+
SOFTWARE.
|
|
238
|
+
|
|
239
|
+
--------------------------------------------------------------------------------
|
|
240
|
+
ember-file-upload
|
|
241
|
+
https://github.com/adopted-ember-addons/ember-file-upload
|
|
242
|
+
|
|
243
|
+
A dependency of @ember-joinery/file-upload (^10.1.0), which builds on its FileDropzone, Queue
|
|
244
|
+
and UploadFile. Nothing of it is copied into Joinery.
|
|
245
|
+
|
|
246
|
+
The MIT License (MIT)
|
|
247
|
+
|
|
248
|
+
Copyright (c) 2017
|
|
249
|
+
|
|
250
|
+
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:
|
|
251
|
+
|
|
252
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
253
|
+
|
|
254
|
+
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.
|
|
255
|
+
|
|
256
|
+
--------------------------------------------------------------------------------
|
|
257
|
+
Tiptap
|
|
258
|
+
https://github.com/ueberdosis/tiptap
|
|
259
|
+
|
|
260
|
+
A dependency of @ember-joinery/tiptap (@tiptap/starter-kit, with @tiptap/core and @tiptap/pm as
|
|
261
|
+
its peers, ^3.32.1), whose RichTextEditor mounts Tiptap's Editor and runs its commands. Nothing
|
|
262
|
+
of it is copied into Joinery. @tiptap/pm brings ProseMirror (MIT, © Marijn Haverbeke and others).
|
|
263
|
+
|
|
264
|
+
MIT License
|
|
265
|
+
|
|
266
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
267
|
+
|
|
268
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
269
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
270
|
+
in the Software without restriction, including without limitation the rights
|
|
271
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
272
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
273
|
+
furnished to do so, subject to the following conditions:
|
|
274
|
+
|
|
275
|
+
The above copyright notice and this permission notice shall be included in all
|
|
276
|
+
copies or substantial portions of the Software.
|
|
277
|
+
|
|
278
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
279
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
280
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
281
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
282
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
283
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
284
|
+
SOFTWARE.
|
|
285
|
+
|
|
286
|
+
--------------------------------------------------------------------------------
|
|
287
|
+
ember-power-calendar
|
|
288
|
+
https://github.com/ember-power-addons/ember-power-calendar
|
|
289
|
+
|
|
290
|
+
A dependency of @ember-joinery/power-calendar (^2.0.1, with ember-concurrency as its peer), whose
|
|
291
|
+
PowerCalendar, PowerCalendarRange and PowerCalendarMultiple the package's calendars render, and
|
|
292
|
+
whose Days components it subclasses to draw shadcn's markup. Nothing of it is copied into Joinery.
|
|
293
|
+
|
|
294
|
+
The MIT License (MIT)
|
|
295
|
+
|
|
296
|
+
Copyright (c) 2026
|
|
297
|
+
|
|
298
|
+
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:
|
|
299
|
+
|
|
300
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
301
|
+
|
|
302
|
+
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.
|
|
303
|
+
|
|
304
|
+
--------------------------------------------------------------------------------
|
|
305
|
+
Maskito
|
|
306
|
+
https://github.com/taiga-family/maskito
|
|
307
|
+
|
|
308
|
+
Dependencies of @ember-joinery/maskito (@maskito/core, @maskito/kit and @maskito/phone, ^5.6.1),
|
|
309
|
+
whose MaskedInput, maskito modifier and PhoneInput mask inputs with Maskito, and whose presets
|
|
310
|
+
call @maskito/kit's generators. Nothing of it is copied into Joinery. Its licence, at v5.6.1:
|
|
311
|
+
|
|
312
|
+
Apache License
|
|
313
|
+
Version 2.0, January 2004
|
|
314
|
+
http://www.apache.org/licenses/
|
|
315
|
+
|
|
316
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
317
|
+
|
|
318
|
+
1. Definitions.
|
|
319
|
+
|
|
320
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
321
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
322
|
+
|
|
323
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
324
|
+
the copyright owner that is granting the License.
|
|
325
|
+
|
|
326
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
327
|
+
other entities that control, are controlled by, or are under common
|
|
328
|
+
control with that entity. For the purposes of this definition,
|
|
329
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
330
|
+
direction or management of such entity, whether by contract or
|
|
331
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
332
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
333
|
+
|
|
334
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
335
|
+
exercising permissions granted by this License.
|
|
336
|
+
|
|
337
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
338
|
+
including but not limited to software source code, documentation
|
|
339
|
+
source, and configuration files.
|
|
340
|
+
|
|
341
|
+
"Object" form shall mean any form resulting from mechanical
|
|
342
|
+
transformation or translation of a Source form, including but
|
|
343
|
+
not limited to compiled object code, generated documentation,
|
|
344
|
+
and conversions to other media types.
|
|
345
|
+
|
|
346
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
347
|
+
Object form, made available under the License, as indicated by a
|
|
348
|
+
copyright notice that is included in or attached to the work
|
|
349
|
+
(an example is provided in the Appendix below).
|
|
350
|
+
|
|
351
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
352
|
+
form, that is based on (or derived from) the Work and for which the
|
|
353
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
354
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
355
|
+
of this License, Derivative Works shall not include works that remain
|
|
356
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
357
|
+
the Work and Derivative Works thereof.
|
|
358
|
+
|
|
359
|
+
"Contribution" shall mean any work of authorship, including
|
|
360
|
+
the original version of the Work and any modifications or additions
|
|
361
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
362
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
363
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
364
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
365
|
+
means any form of electronic, verbal, or written communication sent
|
|
366
|
+
to the Licensor or its representatives, including but not limited to
|
|
367
|
+
communication on electronic mailing lists, source code control systems,
|
|
368
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
369
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
370
|
+
excluding communication that is conspicuously marked or otherwise
|
|
371
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
372
|
+
|
|
373
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
374
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
375
|
+
subsequently incorporated within the Work.
|
|
376
|
+
|
|
377
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
378
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
379
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
380
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
381
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
382
|
+
Work and such Derivative Works in Source or Object form.
|
|
383
|
+
|
|
384
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
385
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
386
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
387
|
+
(except as stated in this section) patent license to make, have made,
|
|
388
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
389
|
+
where such license applies only to those patent claims licensable
|
|
390
|
+
by such Contributor that are necessarily infringed by their
|
|
391
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
392
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
393
|
+
institute patent litigation against any entity (including a
|
|
394
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
395
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
396
|
+
or contributory patent infringement, then any patent licenses
|
|
397
|
+
granted to You under this License for that Work shall terminate
|
|
398
|
+
as of the date such litigation is filed.
|
|
399
|
+
|
|
400
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
401
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
402
|
+
modifications, and in Source or Object form, provided that You
|
|
403
|
+
meet the following conditions:
|
|
404
|
+
|
|
405
|
+
(a) You must give any other recipients of the Work or
|
|
406
|
+
Derivative Works a copy of this License; and
|
|
407
|
+
|
|
408
|
+
(b) You must cause any modified files to carry prominent notices
|
|
409
|
+
stating that You changed the files; and
|
|
410
|
+
|
|
411
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
412
|
+
that You distribute, all copyright, patent, trademark, and
|
|
413
|
+
attribution notices from the Source form of the Work,
|
|
414
|
+
excluding those notices that do not pertain to any part of
|
|
415
|
+
the Derivative Works; and
|
|
416
|
+
|
|
417
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
418
|
+
distribution, then any Derivative Works that You distribute must
|
|
419
|
+
include a readable copy of the attribution notices contained
|
|
420
|
+
within such NOTICE file, excluding those notices that do not
|
|
421
|
+
pertain to any part of the Derivative Works, in at least one
|
|
422
|
+
of the following places: within a NOTICE text file distributed
|
|
423
|
+
as part of the Derivative Works; within the Source form or
|
|
424
|
+
documentation, if provided along with the Derivative Works; or,
|
|
425
|
+
within a display generated by the Derivative Works, if and
|
|
426
|
+
wherever such third-party notices normally appear. The contents
|
|
427
|
+
of the NOTICE file are for informational purposes only and
|
|
428
|
+
do not modify the License. You may add Your own attribution
|
|
429
|
+
notices within Derivative Works that You distribute, alongside
|
|
430
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
431
|
+
that such additional attribution notices cannot be construed
|
|
432
|
+
as modifying the License.
|
|
433
|
+
|
|
434
|
+
You may add Your own copyright statement to Your modifications and
|
|
435
|
+
may provide additional or different license terms and conditions
|
|
436
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
437
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
438
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
439
|
+
the conditions stated in this License.
|
|
440
|
+
|
|
441
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
442
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
443
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
444
|
+
this License, without any additional terms or conditions.
|
|
445
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
446
|
+
the terms of any separate license agreement you may have executed
|
|
447
|
+
with Licensor regarding such Contributions.
|
|
448
|
+
|
|
449
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
450
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
451
|
+
except as required for reasonable and customary use in describing the
|
|
452
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
453
|
+
|
|
454
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
455
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
456
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
457
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
458
|
+
implied, including, without limitation, any warranties or conditions
|
|
459
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
460
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
461
|
+
appropriateness of using or redistributing the Work and assume any
|
|
462
|
+
risks associated with Your exercise of permissions under this License.
|
|
463
|
+
|
|
464
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
465
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
466
|
+
unless required by applicable law (such as deliberate and grossly
|
|
467
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
468
|
+
liable to You for damages, including any direct, indirect, special,
|
|
469
|
+
incidental, or consequential damages of any character arising as a
|
|
470
|
+
result of this License or out of the use or inability to use the
|
|
471
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
472
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
473
|
+
other commercial damages or losses), even if such Contributor
|
|
474
|
+
has been advised of the possibility of such damages.
|
|
475
|
+
|
|
476
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
477
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
478
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
479
|
+
or other liability obligations and/or rights consistent with this
|
|
480
|
+
License. However, in accepting such obligations, You may act only
|
|
481
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
482
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
483
|
+
defend, and hold each Contributor harmless for any liability
|
|
484
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
485
|
+
of your accepting any such warranty or additional liability.
|
|
486
|
+
|
|
487
|
+
END OF TERMS AND CONDITIONS
|
|
488
|
+
|
|
489
|
+
Copyright 2026 Pineopticone
|
|
490
|
+
|
|
491
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
492
|
+
you may not use this file except in compliance with the License.
|
|
493
|
+
You may obtain a copy of the License at
|
|
494
|
+
|
|
495
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
496
|
+
|
|
497
|
+
Unless required by applicable law or agreed to in writing, software
|
|
498
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
499
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
500
|
+
See the License for the specific language governing permissions and
|
|
501
|
+
limitations under the License.
|
|
502
|
+
|
|
503
|
+
--------------------------------------------------------------------------------
|
|
504
|
+
libphonenumber-js
|
|
505
|
+
https://gitlab.com/catamphetamine/libphonenumber-js
|
|
506
|
+
|
|
507
|
+
A dependency of @ember-joinery/maskito (^1.13.15), whose PhoneInput and phone helpers use its
|
|
508
|
+
metadata and parsing. Nothing of it is copied into Joinery. Its metadata derives from Google's
|
|
509
|
+
libphonenumber (Apache 2.0).
|
|
510
|
+
|
|
511
|
+
(The MIT License)
|
|
512
|
+
|
|
513
|
+
Copyright (c) 2016 @catamphetamine <purecatamphetamine@gmail.com>
|
|
514
|
+
|
|
515
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
516
|
+
a copy of this software and associated documentation files (the
|
|
517
|
+
'Software'), to deal in the Software without restriction, including
|
|
518
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
519
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
520
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
521
|
+
the following conditions:
|
|
522
|
+
|
|
523
|
+
The above copyright notice and this permission notice shall be
|
|
524
|
+
included in all copies or substantial portions of the Software.
|
|
525
|
+
|
|
526
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
527
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
528
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
529
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
530
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
531
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
532
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ember-joinery/carousel
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
shadcn/ui's [Carousel](https://ui.shadcn.com/docs/components/radix/carousel) for Ember, an
|
|
4
|
+
opt-in add-on to [Joinery](https://joegaudet.com/ember-joinery/): slides with motion, swipe and
|
|
5
|
+
keyboard control, on [Embla Carousel](https://www.embla-carousel.com/)'s framework-agnostic
|
|
6
|
+
core.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @ember-joinery/carousel @ember-joinery/ember
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
It ships no CSS of its own: `@ember-joinery/ember`'s `joinery.css` (or any of its styles)
|
|
13
|
+
styles its parts, as it does every Joinery component.
|
|
14
|
+
|
|
15
|
+
```gts
|
|
16
|
+
import { hash } from '@ember/helper'
|
|
17
|
+
import { Carousel } from '@ember-joinery/carousel'
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<Carousel @opts={{hash align="start" loop=true}} aria-label="Photos" as |c|>
|
|
21
|
+
<c.Content>
|
|
22
|
+
<c.Item class="basis-1/3">…</c.Item>
|
|
23
|
+
<c.Item class="basis-1/3">…</c.Item>
|
|
24
|
+
<c.Item class="basis-1/3">…</c.Item>
|
|
25
|
+
</c.Content>
|
|
26
|
+
<c.Previous />
|
|
27
|
+
<c.Next />
|
|
28
|
+
</Carousel>
|
|
29
|
+
</template>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`@orientation`, `@opts`, `@plugins` (`embla-carousel-autoplay` and the rest) and `@setApi` are
|
|
33
|
+
upstream's. The carousel takes its direction from the nearest `dir`, the arrow keys move between
|
|
34
|
+
the slides (flipped right to left), and each slide is named by its place. `{{embla}}` is the
|
|
35
|
+
headless part, for a carousel of your own markup.
|
|
36
|
+
|
|
37
|
+
Its harness, `CarouselHarness`, is in `@ember-joinery/carousel/test-support`, and `settled()`
|
|
38
|
+
waits for a carousel to come to rest, so tests read the slides where they stop.
|
|
39
|
+
|
|
40
|
+
Full documentation: the Carousel page of the guide at
|
|
41
|
+
**https://joegaudet.com/ember-joinery/guide/**. Design and API ported from
|
|
42
|
+
[shadcn/ui](https://ui.shadcn.com/) (MIT).
|
package/addon-main.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls `callback` whenever a `dir` attribute changes anywhere in the document, as the guide's
|
|
3
|
+
* RTL switch or an app's language picker does, until the returned function is called. One
|
|
4
|
+
* observer serves every carousel, and it watches only while one is listening.
|
|
5
|
+
*/
|
|
6
|
+
export declare function watchDirection(callback: () => void): () => void;
|
|
7
|
+
//# sourceMappingURL=direction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../src/-private/direction.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAiB/D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EmblaCarouselType } from 'embla-carousel';
|
|
2
|
+
/** Counts a carousel in, for the waiter, until `untrack`. */
|
|
3
|
+
export declare function track(api: EmblaCarouselType): void;
|
|
4
|
+
/** Counts a carousel out. */
|
|
5
|
+
export declare function untrack(api: EmblaCarouselType): void;
|
|
6
|
+
/**
|
|
7
|
+
* Runs `callback` once the current render is done (in a microtask), for work that sets tracked
|
|
8
|
+
* state: a modifier, or an Embla event fired while the carousel reinitializes during a render,
|
|
9
|
+
* mustn't set state the render has read. The waiter waits for it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function defer(callback: () => void): void;
|
|
12
|
+
//# sourceMappingURL=waiter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waiter.d.ts","sourceRoot":"","sources":["../../src/-private/waiter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AA6CvD,6DAA6D;AAC7D,wBAAgB,KAAK,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAMlD;AAED,6BAA6B;AAC7B,wBAAgB,OAAO,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAOhD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
import { type TagName } from '@ember-joinery/primitives/as';
|
|
3
|
+
import type { CarouselState } from './state.ts';
|
|
4
|
+
export interface CarouselContentSignature {
|
|
5
|
+
Args: {
|
|
6
|
+
/**
|
|
7
|
+
* The tag of the element around the slides, instead of `div`. Not a list: its slides are
|
|
8
|
+
* groups, which a list can't hold.
|
|
9
|
+
*/
|
|
10
|
+
as?: TagName;
|
|
11
|
+
/** @internal Bound by `<Carousel>`. */
|
|
12
|
+
carousel: CarouselState;
|
|
13
|
+
};
|
|
14
|
+
Blocks: {
|
|
15
|
+
default: [];
|
|
16
|
+
};
|
|
17
|
+
/** The element around the slides, which Embla moves: attributes and `class` go here. */
|
|
18
|
+
Element: HTMLElement;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The slides, yielded as `c.Content`. As upstream's, it is two elements: Embla's viewport,
|
|
22
|
+
* which clips (`data-slot="carousel-content"`), and inside it the row (or, vertically, the
|
|
23
|
+
* column) of slides Embla moves. Your attributes and `class` go on the row, as upstream's
|
|
24
|
+
* `className` does, so `-ms-2` (with `ps-2` on each slide) changes the spacing, and a
|
|
25
|
+
* vertical carousel's height goes there too.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CarouselContent: TOC<CarouselContentSignature>;
|
|
28
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/content.gts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAM,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE;QACJ;;;WAGG;QACH,EAAE,CAAC,EAAE,OAAO,CAAA;QACZ,uCAAuC;QACvC,QAAQ,EAAE,aAAa,CAAA;KACxB,CAAA;IACD,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAA;IACvB,wFAAwF;IACxF,OAAO,EAAE,WAAW,CAAA;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,wBAAwB,CAuCxD,CAAA"}
|