Skip to content

Commit

Permalink
chore: typos (#2102)
Browse files Browse the repository at this point in the history
* chore: typos

* chore: preceeded typo
  • Loading branch information
Jiralite committed Jan 22, 2023
1 parent bb321ca commit 507303b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/autocomplete/README.md
Expand Up @@ -34,7 +34,7 @@ The template uses a simple DSL to specify the autocomplete suggestions. The synt

- `(...|...)`: logic OR groups. `|` as the separator. Will be used as suggestions when the some of the groups match.
- `<...>`: built-in short hands. currently supports `<num>`, `<percent>` and `<directions>`
- `$...`: theme infering. for example, `$colors` will list all the properties of the `colors` object of the theme.
- `$...`: theme inferring. for example, `$colors` will list all the properties of the `colors` object of the theme.

For examples:

Expand Down
2 changes: 1 addition & 1 deletion packages/preset-icons/README.md
Expand Up @@ -57,7 +57,7 @@ npm i -D @iconify/json

## Configuration

Refer to the [type definition](https://github.com/unocss/unocss/blob/main/packages/preset-icons/src/types.ts#L4) for all configurations avaliable.
Refer to the [type definition](https://github.com/unocss/unocss/blob/main/packages/preset-icons/src/types.ts#L4) for all configurations available.

### Extra Properties

Expand Down
2 changes: 1 addition & 1 deletion packages/preset-typography/src/preflights/index.ts
Expand Up @@ -21,7 +21,7 @@ function getCSS(
const notProseSelector = `:not(:where(.not-${selectorName},.not-${selectorName} *))`

// since pseudo class & elements can't be matched
// within single :where(), they are splitted and rejoined.
// within single :where(), they are split and rejoined.
const pseudoCSSMatchArray = selector
.split(',')
.map((s) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/reset/package.json
@@ -1,7 +1,7 @@
{
"name": "@unocss/reset",
"version": "0.48.4",
"description": "Collection of CSS reseting",
"description": "Collection of CSS resetting",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared-docs/src/search.ts
Expand Up @@ -85,7 +85,7 @@ export function createSearch(
return sampleArray(fuseCollection, limit)

const parts = input.split(/\s/g).filter(notNull)
const extact = await generateForMultiple(parts)
const extract = await generateForMultiple(parts)

await suggestMultiple([
...parts,
Expand All @@ -103,7 +103,7 @@ export function createSearch(
.slice(0, limit)

return uniq([
...extact,
...extract,
...searchResult,
].filter(notNull))
}
Expand Down
2 changes: 1 addition & 1 deletion packages/transformer-attributify-jsx/README.md
Expand Up @@ -86,7 +86,7 @@ Instead, you may want to use valued attributes instead:

## Blocklist

This transformer will only transform attrubutes that are valid UnoCSS utilities.
This transformer will only transform attributes that are valid UnoCSS utilities.
You can also `blocklist` bypass some attributes from been transformed.

```js
Expand Down
2 changes: 1 addition & 1 deletion packages/transformer-compile-class/README.md
Expand Up @@ -2,7 +2,7 @@

<!-- @unocss-ignore -->

Compile group of classes into one class. Inspried by [WindiCSS's compilation mode](https://windicss.org/posts/modes.html#compilation-mode) and [#948](https://github.com/unocss/unocss/issues/948) by [@UltraCakeBakery](https://github.com/UltraCakeBakery).
Compile group of classes into one class. Inspired by [WindiCSS's compilation mode](https://windicss.org/posts/modes.html#compilation-mode) and [#948](https://github.com/unocss/unocss/issues/948) by [@UltraCakeBakery](https://github.com/UltraCakeBakery).

## Install

Expand Down
2 changes: 1 addition & 1 deletion packages/vite/README.md
Expand Up @@ -224,7 +224,7 @@ You must add the plugin before `@sveltejs/vite-plugin-svelte`.

To support `class:foo` and `class:foo={bar}` add the plugin and configure `extractorSvelte` on `extractors` option.

You can use simple rules with `class:`, for example `class:bg-red-500={foo}` or using `shorcuts` to include multiples rules, see `src/App.svelte` on linked example project below.
You can use simple rules with `class:`, for example `class:bg-red-500={foo}` or using `shortcuts` to include multiples rules, see `src/App.svelte` on linked example project below.

```ts
// vite.config.js
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/modes/svelte-scoped/wrap-global.ts
@@ -1,4 +1,4 @@
// First group: negative lookbehind to make sure not preceeded by a digit or open parenthesis as seen in `animate-bounce`
// First group: negative lookbehind to make sure not preceded by a digit or open parenthesis as seen in `animate-bounce`
// Second group captures selector starting with either a right bracket as in [dir="rtl"] or a period as in normal selectors, followed by consuming just the next set of brackets with content (lazy)
// if needing to wrap a class starting with a colon as in ":not(...)" then need to avoid grabbing colons from media queries like `@media (min-width: 640px){.uno-28lpzl{margin-bottom:0.5rem;}}`
// setting uno.generate's minify option to true means we don't need to worry about avoiding getting tangled up in layer comments like /* layer: shortcuts */
Expand Down

0 comments on commit 507303b

Please sign in to comment.