@alpinejs/docs 3.13.9-revision.1 → 3.13.10-revision.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpinejs/docs",
3
- "version": "3.13.9-revision.1",
3
+ "version": "3.13.10-revision.2",
4
4
  "description": "The documentation for Alpine",
5
5
  "author": "Caleb Porzio",
6
6
  "license": "MIT"
@@ -89,6 +89,7 @@ For easy reference, here is a list of common keys you may want to listen for.
89
89
  | `.caps-lock` | Caps Lock |
90
90
  | `.equal` | Equal, `=` |
91
91
  | `.period` | Period, `.` |
92
+ | `.comma` | Comma, `,` |
92
93
  | `.slash` | Forward Slash, `/` |
93
94
 
94
95
  <a name="custom-events"></a>
@@ -33,7 +33,7 @@ This is by far the simplest way to get started with Alpine. Include the followin
33
33
  Notice the `@3.x.x` in the provided CDN link. This will pull the latest version of Alpine version 3. For stability in production, it's recommended that you hardcode the latest version in the CDN link.
34
34
 
35
35
  ```alpine
36
- <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.13.9/dist/cdn.min.js"></script>
36
+ <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.13.10/dist/cdn.min.js"></script>
37
37
  ```
38
38
 
39
39
  That's it! Alpine is now available for use inside your page.
@@ -32,7 +32,7 @@ You can include the CDN build of this plugin as a `<script>` tag; just make sure
32
32
 
33
33
  ### Via NPM
34
34
 
35
- You can install Anchor from NPM for use inside your bundle like so:
35
+ You can install Sort from NPM for use inside your bundle like so:
36
36
 
37
37
  ```shell
38
38
  npm install @alpinejs/sort
@@ -65,9 +65,9 @@ The primary API for using this plugin is the `x-sort` directive. By adding `x-so
65
65
  <!-- START_VERBATIM -->
66
66
  <div x-data>
67
67
  <ul x-sort>
68
- <li x-sort:item>foo</li>
69
- <li x-sort:item>bar</li>
70
- <li x-sort:item>baz</li>
68
+ <li x-sort:item class="cursor-pointer">foo</li>
69
+ <li x-sort:item class="cursor-pointer">bar</li>
70
+ <li x-sort:item class="cursor-pointer">baz</li>
71
71
  </ul>
72
72
  </div>
73
73
  <!-- END_VERBATIM -->
@@ -88,9 +88,9 @@ You can react to sorting changes by passing a handler function to `x-sort` and a
88
88
  <!-- START_VERBATIM -->
89
89
  <div x-data>
90
90
  <ul x-sort="alert($item + ' - ' + $position)">
91
- <li x-sort:item="1">foo</li>
92
- <li x-sort:item="2">bar</li>
93
- <li x-sort:item="3">baz</li>
91
+ <li x-sort:item="1" class="cursor-pointer">foo</li>
92
+ <li x-sort:item="2" class="cursor-pointer">bar</li>
93
+ <li x-sort:item="3" class="cursor-pointer">baz</li>
94
94
  </ul>
95
95
  </div>
96
96
  <!-- END_VERBATIM -->
@@ -161,13 +161,13 @@ By default, each `x-sort:item` element is draggable by clicking and dragging any
161
161
  <div x-data>
162
162
  <ul x-sort>
163
163
  <li x-sort:item>
164
- <span x-sort:handle> - </span>foo
164
+ <span x-sort:handle class="cursor-pointer"> - </span>foo
165
165
  </li>
166
166
  <li x-sort:item>
167
- <span x-sort:handle> - </span>bar
167
+ <span x-sort:handle class="cursor-pointer"> - </span>bar
168
168
  </li>
169
169
  <li x-sort:item>
170
- <span x-sort:handle> - </span>baz
170
+ <span x-sort:handle class="cursor-pointer"> - </span>baz
171
171
  </li>
172
172
  </ul>
173
173
  </div>
@@ -195,9 +195,9 @@ If you would like to show a "ghost" of the original element in its place instead
195
195
  <!-- START_VERBATIM -->
196
196
  <div x-data>
197
197
  <ul x-sort.ghost>
198
- <li x-sort:item>foo</li>
199
- <li x-sort:item>bar</li>
200
- <li x-sort:item>baz</li>
198
+ <li x-sort:item class="cursor-pointer">foo</li>
199
+ <li x-sort:item class="cursor-pointer">bar</li>
200
+ <li x-sort:item class="cursor-pointer">baz</li>
201
201
  </ul>
202
202
  </div>
203
203
  <!-- END_VERBATIM -->
@@ -226,9 +226,9 @@ This makes it easy to add any custom styling you would like:
226
226
  <!-- START_VERBATIM -->
227
227
  <div x-data>
228
228
  <ul x-sort.ghost x-sort:config="{ ghostClass: 'opacity-50' }">
229
- <li x-sort:item>foo</li>
230
- <li x-sort:item>bar</li>
231
- <li x-sort:item>baz</li>
229
+ <li x-sort:item class="cursor-pointer">foo</li>
230
+ <li x-sort:item class="cursor-pointer">bar</li>
231
+ <li x-sort:item class="cursor-pointer">baz</li>
232
232
  </ul>
233
233
  </div>
234
234
  <!-- END_VERBATIM -->
@@ -280,9 +280,9 @@ If you drag one of the elements in the list below you will see that the hover ef
280
280
  <!-- START_VERBATIM -->
281
281
  <div x-data>
282
282
  <ul x-sort class="flex flex-col items-start">
283
- <li x-sort:item class="hover:border border-black">foo</li>
284
- <li x-sort:item class="hover:border border-black">bar</li>
285
- <li x-sort:item class="hover:border border-black">baz</li>
283
+ <li x-sort:item class="hover:border border-black cursor-pointer">foo</li>
284
+ <li x-sort:item class="hover:border border-black cursor-pointer">bar</li>
285
+ <li x-sort:item class="hover:border border-black cursor-pointer">baz</li>
286
286
  </ul>
287
287
  </div>
288
288
  <!-- END_VERBATIM -->
@@ -304,9 +304,9 @@ Now you can see below that the hover effect is only applied to the dragging elem
304
304
  <!-- START_VERBATIM -->
305
305
  <div x-data>
306
306
  <ul x-sort class="flex flex-col items-start">
307
- <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black">foo</li>
308
- <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black">bar</li>
309
- <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black">baz</li>
307
+ <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black cursor-pointer">foo</li>
308
+ <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black cursor-pointer">bar</li>
309
+ <li x-sort:item class="[body:not(.sorting)_&]:hover:border border-black cursor-pointer">baz</li>
310
310
  </ul>
311
311
  </div>
312
312
  <!-- END_VERBATIM -->
@@ -327,9 +327,9 @@ Alpine chooses sensible defaults for configuring [SortableJS](https://github.com
327
327
  <!-- START_VERBATIM -->
328
328
  <div x-data>
329
329
  <ul x-sort x-sort:config="{ animation: 0 }">
330
- <li x-sort:item>foo</li>
331
- <li x-sort:item>bar</li>
332
- <li x-sort:item>baz</li>
330
+ <li x-sort:item class="cursor-pointer">foo</li>
331
+ <li x-sort:item class="cursor-pointer">bar</li>
332
+ <li x-sort:item class="cursor-pointer">baz</li>
333
333
  </ul>
334
334
  </div>
335
335
  <!-- END_VERBATIM -->