Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit cc2505b

Browse files
Bump dependencies
1 parent 0848dc8 commit cc2505b

File tree

6 files changed

+3647
-2535
lines changed

6 files changed

+3647
-2535
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Chore
10+
11+
- Bump dependencies.
12+
913
## [5.2.0] - 2022-12-23
1014

1115
### Added

index.html

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@
4444
<rect width="404" height="784" fill="url(#f210dbf6-a58d-4871-961e-36d5016a0f49)" />
4545
</svg>
4646
<svg
47-
class="absolute left-full transform -translate-y-3/4 -translate-x-1/4 md:-translate-y-1/2 lg:-translate-x-1/2"
47+
class="
48+
absolute
49+
left-full
50+
transform
51+
-translate-y-3/4 -translate-x-1/4
52+
md:-translate-y-1/2
53+
lg:-translate-x-1/2
54+
"
4855
width="404"
4956
height="784"
5057
fill="none"
@@ -72,7 +79,9 @@
7279
<div class="text-center">
7380
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
7481
<span class="block xl:inline">Stimulus</span>
75-
<span class="block bg-gradient-to-r from-yellow-500 to-orange-500 xl:inline bg-clip-text text-transparent">Checkbox Select All</span>
82+
<span class="block bg-gradient-to-r from-yellow-500 to-orange-500 xl:inline bg-clip-text text-transparent"
83+
>Checkbox Select All</span
84+
>
7685
</h1>
7786

7887
<p class="mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
@@ -103,15 +112,46 @@ <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:t
103112
<div class="rounded-md shadow">
104113
<a
105114
href="https://www.stimulus-components.com/docs/stimulus-checkbox-select-all"
106-
class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-gradient-to-r from-yellow-500 to-orange-500 md:py-4 md:text-lg md:px-10"
115+
class="
116+
w-full
117+
flex
118+
items-center
119+
justify-center
120+
px-8
121+
py-3
122+
border border-transparent
123+
text-base
124+
font-medium
125+
rounded-md
126+
text-white
127+
bg-gradient-to-r
128+
from-yellow-500
129+
to-orange-500
130+
md:py-4 md:text-lg md:px-10
131+
"
107132
>
108133
Documentation &rarr;
109134
</a>
110135
</div>
111136
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
112137
<a
113138
href="https://github.com/stimulus-components/stimulus-checkbox-select-all"
114-
class="w-full flex items-center justify-center gap-1 px-8 py-3 border border-transparent text-base font-medium rounded-md bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10"
139+
class="
140+
w-full
141+
flex
142+
items-center
143+
justify-center
144+
gap-1
145+
px-8
146+
py-3
147+
border border-transparent
148+
text-base
149+
font-medium
150+
rounded-md
151+
bg-white
152+
hover:bg-gray-50
153+
md:py-4 md:text-lg md:px-10
154+
"
115155
>
116156
<svg fill="currentColor" viewBox="0 0 24 24" aria-hidden="true" class="h-6 w-6">
117157
<path

package.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,25 @@
3030
"np": "np --no-2fa"
3131
},
3232
"devDependencies": {
33-
"@babel/core": "7.20.7",
33+
"@babel/core": "7.23.6",
34+
"@babel/plugin-proposal-class-properties": "^7.18.6",
3435
"@babel/plugin-syntax-class-properties": "^7.12.13",
3536
"@babel/polyfill": "^7.12.1",
36-
"@babel/preset-env": "7.20.2",
37-
"@babel/preset-typescript": "^7.18.6",
38-
"@hotwired/stimulus": "^3.2.1",
39-
"@types/jest": "^29.2.4",
40-
"autoprefixer": "^10.4.13",
41-
"babel-jest": "^29.3.1",
42-
"jest": "^29.3.1",
43-
"jest-environment-jsdom": "^29.3.1",
37+
"@babel/preset-env": "7.23.6",
38+
"@babel/preset-typescript": "^7.23.3",
39+
"@hotwired/stimulus": "^3.2.2",
40+
"@types/jest": "^29.5.11",
41+
"autoprefixer": "^10.4.16",
42+
"babel-jest": "^29.7.0",
43+
"jest": "^29.7.0",
44+
"jest-environment-jsdom": "^29.7.0",
4445
"mutationobserver-shim": "^0.3.7",
45-
"np": "^7.6.2",
46-
"postcss": "^8.4.20",
46+
"np": "^9.2.0",
47+
"postcss": "^8.4.32",
4748
"prettier-standard": "16.4.1",
48-
"tailwindcss": "^3.2.4",
49-
"typescript": "^4.9.4",
50-
"vite": "^4.0.3"
49+
"tailwindcss": "^3.4.0",
50+
"typescript": "^5.3.3",
51+
"vite": "^5.0.10"
5152
},
5253
"peerDependencies": {
5354
"@hotwired/stimulus": "^3.2.1"
@@ -56,5 +57,8 @@
5657
"setupFiles": [
5758
"<rootDir>/jest/jest-setup.ts"
5859
]
60+
},
61+
"resolutions": {
62+
"prettierx": "~0.19.0"
5963
}
6064
}

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class extends Controller {
3939
toggle (e: Event): void {
4040
e.preventDefault()
4141

42-
this.checkboxTargets.forEach(checkbox => {
42+
this.checkboxTargets.forEach((checkbox) => {
4343
// @ts-ignore
4444
checkbox.checked = e.target.checked
4545
this.triggerInputEvent(checkbox)
@@ -61,10 +61,10 @@ export default class extends Controller {
6161
}
6262

6363
get checked (): HTMLInputElement[] {
64-
return this.checkboxTargets.filter(checkbox => checkbox.checked)
64+
return this.checkboxTargets.filter((checkbox) => checkbox.checked)
6565
}
6666

6767
get unchecked (): HTMLInputElement[] {
68-
return this.checkboxTargets.filter(checkbox => !checkbox.checked)
68+
return this.checkboxTargets.filter((checkbox) => !checkbox.checked)
6969
}
7070
}
File renamed without changes.

0 commit comments

Comments
 (0)