@tailwindcss/language-server 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ SOFTWARE.
24
24
 
25
25
  ================================================================================
26
26
 
27
- @tailwindcss/aspect-ratio@0.4.0
27
+ @tailwindcss/aspect-ratio@0.4.2
28
28
 
29
29
  # @tailwindcss/aspect-ratio
30
30
 
@@ -36,14 +36,10 @@ A plugin that provides a composable API for giving elements a fixed aspect ratio
36
36
  Install the plugin from npm:
37
37
 
38
38
  ```sh
39
- # Using npm
40
- npm install @tailwindcss/aspect-ratio
41
-
42
- # Using Yarn
43
- yarn add @tailwindcss/aspect-ratio
39
+ npm install -D @tailwindcss/aspect-ratio
44
40
  ```
45
41
 
46
- Then add the plugin to your `tailwind.config.js` file:
42
+ Then add the plugin to your `tailwind.config.js` file, and disable the `aspectRatio` core plugin to avoid conflicts with the native `aspect-ratio` utilities included in Tailwind CSS v3.0:
47
43
 
48
44
  ```js
49
45
  // tailwind.config.js
@@ -51,6 +47,9 @@ module.exports = {
51
47
  theme: {
52
48
  // ...
53
49
  },
50
+ corePlugins: {
51
+ aspectRatio: false,
52
+ },
54
53
  plugins: [
55
54
  require('@tailwindcss/aspect-ratio'),
56
55
  // ...
@@ -130,13 +129,52 @@ module.exports = {
130
129
  }
131
130
  ```
132
131
 
132
+ ## Compatibility with default aspect-ratio utilities
133
+
134
+ Tailwind CSS v3.0 shipped with [native aspect-ratio](https://tailwindcss.com/docs/aspect-ratio) support, and while these new utilities are great, the `aspect-ratio` property isn't supported in Safari 14, which still has [significant global usage](https://caniuse.com/mdn-css_properties_aspect-ratio). If you need to support Safari 14, this plugin is still the best way to do that.
135
+
136
+ While it's technically possible to use the new native `aspect-ratio` utilities as well as this plugin in the same project, it doesn't really make a lot of sense to do so. If you're able to use the new native aspect-ratio utilities, just use them instead of this plugin, as they are a lot simpler and work much better.
137
+
138
+ However, if you do want to use both approaches in your project, maybe as a way of transitioning slowly from the plugin approach to the new native utilities, you'll need to add the following values to your `tailwind.config.js` file:
139
+
140
+ ```js
141
+ module.exports = {
142
+ // ...
143
+ theme: {
144
+ aspectRatio: {
145
+ auto: 'auto',
146
+ square: '1 / 1',
147
+ video: '16 / 9',
148
+ 1: '1',
149
+ 2: '2',
150
+ 3: '3',
151
+ 4: '4',
152
+ 5: '5',
153
+ 6: '6',
154
+ 7: '7',
155
+ 8: '8',
156
+ 9: '9',
157
+ 10: '10',
158
+ 11: '11',
159
+ 12: '12',
160
+ 13: '13',
161
+ 14: '14',
162
+ 15: '15',
163
+ 16: '16',
164
+ },
165
+ },
166
+ }
167
+ ```
168
+
169
+ This is necessary, as the default `aspectRatio` values are overwritten by this plugin's values.
170
+
133
171
  ================================================================================
134
172
 
135
- @tailwindcss/forms@0.4.0
173
+ @tailwindcss/forms@0.5.3
136
174
 
137
175
  MIT License
138
176
 
139
- Copyright (c) 2021 Tailwind Labs
177
+ Copyright (c) Tailwind Labs, Inc.
140
178
 
141
179
  Permission is hereby granted, free of charge, to any person obtaining a copy
142
180
  of this software and associated documentation files (the "Software"), to deal
@@ -158,102 +196,37 @@ SOFTWARE.
158
196
 
159
197
  ================================================================================
160
198
 
161
- @tailwindcss/line-clamp@0.3.0
162
-
163
- # @tailwindcss/line-clamp
164
-
165
- A plugin that provides utilities for visually truncating text after a fixed number of lines.
166
-
167
-
168
- ## Installation
169
-
170
- Install the plugin from npm:
171
-
172
- ```sh
173
- # Using npm
174
- npm install @tailwindcss/line-clamp
175
-
176
- # Using Yarn
177
- yarn add @tailwindcss/line-clamp
178
- ```
179
-
180
- Then add the plugin to your `tailwind.config.js` file:
181
-
182
- ```js
183
- // tailwind.config.js
184
- module.exports = {
185
- theme: {
186
- // ...
187
- },
188
- plugins: [
189
- require('@tailwindcss/line-clamp'),
190
- // ...
191
- ],
192
- }
193
- ```
194
-
195
- ## Usage
196
-
197
- Use the `line-clamp-{n}` utilities to specify how many lines of text should be visible before truncating::
198
-
199
- ```html
200
- <p class="line-clamp-3">
201
- Et molestiae hic earum repellat aliquid est doloribus delectus. Enim illum odio porro ut omnis dolor debitis natus. Voluptas possimus deserunt sit delectus est saepe nihil. Qui voluptate possimus et quia. Eligendi voluptas voluptas dolor cum. Rerum est quos quos id ut molestiae fugit.
202
- </p>
203
- ```
204
-
205
- To remove any line-clamping, use `line-clamp-none`:
206
-
207
- ```html
208
- <p class="line-clamp-3 md:line-clamp-none">
209
- Et molestiae hic earum repellat aliquid est doloribus delectus. Enim illum odio porro ut omnis dolor debitis natus. Voluptas possimus deserunt sit delectus est saepe nihil. Qui voluptate possimus et quia. Eligendi voluptas voluptas dolor cum. Rerum est quos quos id ut molestiae fugit.
210
- </p>
211
- ```
199
+ @tailwindcss/line-clamp@0.4.2
212
200
 
213
- > Note that the `line-clamp-{n}` set other properties like `display` and `overflow` in addition to `-webkit-line-clamp` which are not unset by `line-clamp-none`, so depending on what you are trying to achieve you may need to explicitly override those properties with utilities like `flex` or `overflow-visible` as well.
214
-
215
- Utilities are for clamping text up to 6 lines are generated by default:
201
+ MIT License
216
202
 
217
- | Class | CSS |
218
- | --- | --- |
219
- | `line-clamp-1` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 1;` |
220
- | `line-clamp-2` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 2;` |
221
- | `line-clamp-3` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 3;` |
222
- | `line-clamp-4` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 4;` |
223
- | `line-clamp-5` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 5;` |
224
- | `line-clamp-6` | `overflow: hidden;`<br>`display: -webkit-box;`<br>`-webkit-box-orient: vertical;`<br>`-webkit-line-clamp: 6;` |
225
- | `line-clamp-none` | `-webkit-line-clamp: unset;` |
203
+ Copyright (c) 2022 Tailwind Labs
226
204
 
227
- ## Configuration
205
+ Permission is hereby granted, free of charge, to any person obtaining a copy
206
+ of this software and associated documentation files (the "Software"), to deal
207
+ in the Software without restriction, including without limitation the rights
208
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
209
+ copies of the Software, and to permit persons to whom the Software is
210
+ furnished to do so, subject to the following conditions:
228
211
 
229
- You can configure which values and variants are generated by this plugin under the `lineClamp` key in your `tailwind.config.js` file:
212
+ The above copyright notice and this permission notice shall be included in all
213
+ copies or substantial portions of the Software.
230
214
 
231
- ```js
232
- // tailwind.config.js
233
- module.exports = {
234
- theme: {
235
- extend: {
236
- lineClamp: {
237
- 7: '7',
238
- 8: '8',
239
- 9: '9',
240
- 10: '10',
241
- }
242
- }
243
- },
244
- variants: {
245
- lineClamp: ['responsive', 'hover']
246
- }
247
- }
248
- ```
215
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
216
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
217
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
218
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
219
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
220
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
221
+ SOFTWARE.
249
222
 
250
223
  ================================================================================
251
224
 
252
- @tailwindcss/typography@0.5.0
225
+ @tailwindcss/typography@0.5.7
253
226
 
254
227
  MIT License
255
228
 
256
- Copyright (c) 2021 Tailwind Labs
229
+ Copyright (c) Tailwind Labs, Inc.
257
230
 
258
231
  Permission is hereby granted, free of charge, to any person obtaining a copy
259
232
  of this software and associated documentation files (the "Software"), to deal
@@ -427,6 +400,32 @@ import { debounce } from "debounce";
427
400
 
428
401
  ================================================================================
429
402
 
403
+ deepmerge@4.2.2
404
+
405
+ The MIT License (MIT)
406
+
407
+ Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
408
+
409
+ Permission is hereby granted, free of charge, to any person obtaining a copy
410
+ of this software and associated documentation files (the "Software"), to deal
411
+ in the Software without restriction, including without limitation the rights
412
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
413
+ copies of the Software, and to permit persons to whom the Software is
414
+ furnished to do so, subject to the following conditions:
415
+
416
+ The above copyright notice and this permission notice shall be included in
417
+ all copies or substantial portions of the Software.
418
+
419
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
420
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
421
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
422
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
423
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
424
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
425
+ THE SOFTWARE.
426
+
427
+ ================================================================================
428
+
430
429
  detective@5.2.0
431
430
 
432
431
  This software is released under the MIT license:
@@ -803,12 +802,11 @@ Copyright (c) 2011 Felix Geisendörfer (felix@debuggable.com)
803
802
 
804
803
  ================================================================================
805
804
 
806
- tailwindcss@3.0.11
805
+ tailwindcss@3.2.0
807
806
 
808
807
  MIT License
809
808
 
810
- Copyright (c) Adam Wathan <adam.wathan@gmail.com>
811
- Copyright (c) Jonathan Reinink <jonathan@reinink.ca>
809
+ Copyright (c) Tailwind Labs, Inc.
812
810
 
813
811
  Permission is hereby granted, free of charge, to any person obtaining a copy
814
812
  of this software and associated documentation files (the "Software"), to deal