Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(preset-icons): add svg props customization #3774

Merged
merged 6 commits into from May 8, 2024
Merged

Conversation

zyyv
Copy link
Member

@zyyv zyyv commented May 6, 2024

I'll add a hook to add handling of props to the final output. Since iconify merges the final properties into usedProps, it may not be the properties that the user ultimately wants.
close #3744

I'll add a hook to add handling of props to the final output. Since `iconify` merges the final properties into `usedProps`, it may not be the properties that the user ultimately wants.
close unocss#3744
@zyyv zyyv requested review from antfu and userquin as code owners May 6, 2024 09:39
Copy link

netlify bot commented May 6, 2024

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit fb38b1b
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/663bcee07df2b70008c762f6
😎 Deploy Preview https://deploy-preview-3774--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@userquin
Copy link
Member

userquin commented May 6, 2024

I also saw this weird behavior on roe.dev (Daniel Roe website), adding variants in linked playground works: checked:w-10 checked:h-10.

https://github.com/danielroe/roe.dev/pull/1395/files

@zyyv
Copy link
Member Author

zyyv commented May 6, 2024

I also saw this weird behavior on roe.dev (Daniel Roe website), adding variants in linked playground works: checked:w-10 checked:h-10.

https://github.com/danielroe/roe.dev/pull/1395/files

It is also possible to use additional styles to fix the default behavior, but this may be a bit redundant.😂

@userquin userquin changed the title feat(preset-icons): handle the finnal usedProps feat(preset-icons): add svg props customization May 6, 2024
@userquin
Copy link
Member

userquin commented May 6, 2024

@zyyv cannot be done via https://unocss.dev/presets/icons#icon-collection-customization ?

Forgot it, not on my laptop, I'll check this later...

/**
* Custom the final additional props.
*/
propsProcessor?: (props: Record<string, string>, collection?: string, icon?: string, svg?: string, mode?: string) => void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could have a more general purpose processor that could modify more than the props, but possibly also the props, svg, cssObject?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it and provided more context for users to use.

@antfu antfu enabled auto-merge May 8, 2024 19:13
@antfu antfu added this pull request to the merge queue May 8, 2024
Merged via the queue into unocss:main with commit 0b36a60 May 8, 2024
9 checks passed
ramackersjp added a commit to ramackersjp/Piped that referenced this pull request May 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@unocss/eslint-config](https://togithub.com/unocss/unocss/tree/main/packages/eslint-config#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/eslint-config))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2feslint-config/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2feslint-config/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2feslint-config/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2feslint-config/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2feslint-config/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@unocss/preset-icons](https://togithub.com/unocss/unocss/tree/main/packages/preset-icons#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/preset-icons))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2fpreset-icons/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2fpreset-icons/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2fpreset-icons/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2fpreset-icons/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2fpreset-icons/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@unocss/preset-uno](https://togithub.com/unocss/unocss/tree/main/packages/preset-uno#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/preset-uno))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2fpreset-uno/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2fpreset-uno/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2fpreset-uno/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2fpreset-uno/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2fpreset-uno/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@unocss/preset-web-fonts](https://togithub.com/unocss/unocss/tree/main/packages/preset-web-fonts#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/preset-web-fonts))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2fpreset-web-fonts/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2fpreset-web-fonts/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2fpreset-web-fonts/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2fpreset-web-fonts/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2fpreset-web-fonts/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@unocss/reset](https://togithub.com/unocss/unocss) | [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2freset/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2freset/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2freset/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2freset/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2freset/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@unocss/transformer-directives](https://togithub.com/unocss/unocss/tree/main/packages/transformer-directives#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/transformer-directives))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2ftransformer-directives/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2ftransformer-directives/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2ftransformer-directives/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2ftransformer-directives/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2ftransformer-directives/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@unocss/transformer-variant-group](https://togithub.com/unocss/unocss/tree/main/packages/transformer-variant-group#readme)
([source](https://togithub.com/unocss/unocss/tree/HEAD/packages/transformer-variant-group))
| [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/@unocss%2ftransformer-variant-group/0.58.9/0.60.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2ftransformer-variant-group/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2ftransformer-variant-group/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2ftransformer-variant-group/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2ftransformer-variant-group/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [unocss](https://togithub.com/unocss/unocss) | [`0.58.9` ->
`0.60.2`](https://renovatebot.com/diffs/npm/unocss/0.58.9/0.60.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/unocss/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/unocss/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/unocss/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/unocss/0.58.9/0.60.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>unocss/unocss (@&#8203;unocss/eslint-config)</summary>

### [`v0.60.2`](https://togithub.com/unocss/unocss/releases/tag/v0.60.2)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.60.1...v0.60.2)

#####    🐞 Bug Fixes

- **directives**: Fix parsing positions, close
[#&#8203;3795](https://togithub.com/unocss/unocss/issues/3795)  -  by
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3795
[<samp>(84170)</samp>](https://togithub.com/unocss/unocss/commit/84170e14)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.60.1...v0.60.2)

### [`v0.60.1`](https://togithub.com/unocss/unocss/releases/tag/v0.60.1)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.60.0...v0.60.1)

#####    🚀 Features

-   **eslint-plugin**:
- Blocklist meta with message  -  by
[@&#8203;enkot](https://togithub.com/enkot) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3783
[<samp>(20ed8)</samp>](https://togithub.com/unocss/unocss/commit/20ed897f)
- Allow customize configPath via settings  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(9eb6e)</samp>](https://togithub.com/unocss/unocss/commit/9eb6e29b)

#####    🐞 Bug Fixes

- **transformer-attributify-jsx**: MatchedRule  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3791
[<samp>(da9c9)</samp>](https://togithub.com/unocss/unocss/commit/da9c9a5c)
- **transformer-directive**: Get raw string in directive, support slash
& hash  -  by [@&#8203;zyyv](https://togithub.com/zyyv) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3790
[<samp>(fa497)</samp>](https://togithub.com/unocss/unocss/commit/fa49753e)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.60.0...v0.60.1)

### [`v0.60.0`](https://togithub.com/unocss/unocss/releases/tag/v0.60.0)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.4...v0.60.0)

#####    🚨 Breaking Changes

- **CJS**: Remove `.default` suffix from d.ts and d.cts files  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3750
[<samp>(e9f5b)</samp>](https://togithub.com/unocss/unocss/commit/e9f5b5b8)

#####    🚀 Features

- **preset-icons**: Add svg props customization  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) and **Anthony Fu** in
[unocss/unocss#3774
[<samp>(0b36a)</samp>](https://togithub.com/unocss/unocss/commit/0b36a603)
- **preset-mini**: Add children variant (\*-{modifier})  -  by
[@&#8203;serkodev](https://togithub.com/serkodev) in
[unocss/unocss#3763
[<samp>(249fe)</samp>](https://togithub.com/unocss/unocss/commit/249fe730)

#####    🐞 Bug Fixes

- **preset-legacy-compat**: Update the split color string regex  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) in
[unocss/unocss#3756
[<samp>(47eaf)</samp>](https://togithub.com/unocss/unocss/commit/47eafba2)
- **preset-mini**: Align with `selection`  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) in
[unocss/unocss#3771
[<samp>(18df5)</samp>](https://togithub.com/unocss/unocss/commit/18df52cb)
- **shared-integration**: Vscode match php \<? stuck  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3745
[<samp>(38274)</samp>](https://togithub.com/unocss/unocss/commit/38274449)
- **vite**: Move [@&#8203;import](https://togithub.com/import) before
other rules  -  by [@&#8203;lzl0304](https://togithub.com/lzl0304) in
[unocss/unocss#3743
[<samp>(0b84d)</samp>](https://togithub.com/unocss/unocss/commit/0b84df44)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.4...v0.60.0)

### [`v0.59.4`](https://togithub.com/unocss/unocss/releases/tag/v0.59.4)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.3...v0.59.4)

#####    🚀 Features

- **core**: Support safelist access to RuleContext  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95),
[@&#8203;zyyv](https://togithub.com/zyyv), **Chris** and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3693
[<samp>(04c27)</samp>](https://togithub.com/unocss/unocss/commit/04c27754)

#####    🐞 Bug Fixes

- **eslint-plugin**: Compactible with eslint v9  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(09e3b)</samp>](https://togithub.com/unocss/unocss/commit/09e3bea7)
- **preset-mini**: Transform-cpu  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3730
[<samp>(a3170)</samp>](https://togithub.com/unocss/unocss/commit/a3170ae1)
- **webpack**: SourceMap  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3732
[<samp>(0dab7)</samp>](https://togithub.com/unocss/unocss/commit/0dab7878)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.3...v0.59.4)

### [`v0.59.3`](https://togithub.com/unocss/unocss/releases/tag/v0.59.3)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.2...v0.59.3)

#####    🐞 Bug Fixes

-   **preset-mini**:
- Remove LF in question mark rule  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3717
[<samp>(c51bf)</samp>](https://togithub.com/unocss/unocss/commit/c51bf4c6)
- Transform-cpu  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3729
[<samp>(9a371)</samp>](https://togithub.com/unocss/unocss/commit/9a371344)
- Use `borderRadius` from theme to autosuggest `rounded` values  -  by
[@&#8203;DamianOsipiuk](https://togithub.com/DamianOsipiuk) in
[unocss/unocss#3727
[<samp>(18346)</samp>](https://togithub.com/unocss/unocss/commit/18346b48)
-   **shared-integration**:
- Improve ide matching regex  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3712
[<samp>(ddcf2)</samp>](https://togithub.com/unocss/unocss/commit/ddcf2dc6)
-   **vscode**:
- ContextLoader with workspace  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3728
[<samp>(351a4)</samp>](https://togithub.com/unocss/unocss/commit/351a4f16)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.2...v0.59.3)

### [`v0.59.2`](https://togithub.com/unocss/unocss/releases/tag/v0.59.2)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.1...v0.59.2)

#####    🐞 Bug Fixes

- Move `@unocss/webpack` to ESM First  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3708
[<samp>(25e97)</samp>](https://togithub.com/unocss/unocss/commit/25e97ca0)
- Revert [#&#8203;3696](https://togithub.com/unocss/unocss/issues/3696)
 -  by [@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3696
[<samp>(8e615)</samp>](https://togithub.com/unocss/unocss/commit/8e615ab5)
- **preset-mini**: Negative custom spacing  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3694
[<samp>(0f4ad)</samp>](https://togithub.com/unocss/unocss/commit/0f4ad400)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.1...v0.59.2)

### [`v0.59.1`](https://togithub.com/unocss/unocss/releases/tag/v0.59.1)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.0...v0.59.1)

#####    🐞 Bug Fixes

-   **eslint-plugin**:
- Support ESLint v9  -  by [@&#8203;antfu](https://togithub.com/antfu)
[<samp>(0cc40)</samp>](https://togithub.com/unocss/unocss/commit/0cc40911)
-   **postcss**:
- Too many open files error  -  by
[@&#8203;sonofmagic](https://togithub.com/sonofmagic) in
[unocss/unocss#3695
[<samp>(11918)</samp>](https://togithub.com/unocss/unocss/commit/119187fa)
- Support async rule in directives, fix
[#&#8203;3699](https://togithub.com/unocss/unocss/issues/3699)  -  by
[@&#8203;DarkHole1](https://togithub.com/DarkHole1) in
[unocss/unocss#3701
and
[unocss/unocss#3699
[<samp>(f4ca5)</samp>](https://togithub.com/unocss/unocss/commit/f4ca55c8)
-   **preset-mini**:
- `marker` pesudo element  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3702
[<samp>(0b4a9)</samp>](https://togithub.com/unocss/unocss/commit/0b4a901e)
-   **shared-integration**:
- DefaultIdeMatchInclude  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3696
[<samp>(7f85b)</samp>](https://togithub.com/unocss/unocss/commit/7f85b396)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.0...v0.59.1)

### [`v0.59.0`](https://togithub.com/unocss/unocss/releases/tag/v0.59.0)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.58.9...v0.59.0)

#####    🚨 Breaking Changes

- Move to ESM-only and fix package exports  -  by
[@&#8203;kwaa](https://togithub.com/kwaa),
[@&#8203;userquin](https://togithub.com/userquin),
[@&#8203;antfu](https://togithub.com/antfu), **Chris** and **Anthony
Fu** in
[unocss/unocss#3380
[<samp>(41bc8)</samp>](https://togithub.com/unocss/unocss/commit/41bc87b1)
- **preset-mini**: RingWidth default changed to `3px` to align with
Tailwind  -  by [@&#8203;NamesMT](https://togithub.com/NamesMT) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3673
[<samp>(274d3)</samp>](https://togithub.com/unocss/unocss/commit/274d3960)

#####    🐞 Bug Fixes

- **autocomplete**: Disable autocomplete for attributify props when not
using  -  by [@&#8203;Simon-He95](https://togithub.com/Simon-He95) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3685
[<samp>(4dfc3)</samp>](https://togithub.com/unocss/unocss/commit/4dfc3194)
- **nuxt**: Custom option priority in cssnano  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3679
[<samp>(4e11d)</samp>](https://togithub.com/unocss/unocss/commit/4e11d623)
- **packages**: Add types versions  -  by
[@&#8203;kwaa](https://togithub.com/kwaa) in
[unocss/unocss#3677
[<samp>(42187)</samp>](https://togithub.com/unocss/unocss/commit/42187e20)
- **postcss**: Move to ESM first + dual ESM/CJS + missing
`@unocss/postcss/esm` subpackage export  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3678
[<samp>(7eda3)</samp>](https://togithub.com/unocss/unocss/commit/7eda3ab8)
- **scope**: Fix export types & main entry  -  by
[@&#8203;kwaa](https://togithub.com/kwaa) in
[unocss/unocss#3676
[<samp>(ae44a)</samp>](https://togithub.com/unocss/unocss/commit/ae44ad24)
- **vscode**: The information displayed by hover and autocomplete is
inconsistent  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3680
[<samp>(623c2)</samp>](https://togithub.com/unocss/unocss/commit/623c21c1)
- **webpack**: Correctly output CSS string  -  by
[@&#8203;lzl0304](https://togithub.com/lzl0304) in
[unocss/unocss#3686
[<samp>(a03c2)</samp>](https://togithub.com/unocss/unocss/commit/a03c25c8)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.58.9...v0.59.0)

</details>

<details>
<summary>unocss/unocss (@&#8203;unocss/reset)</summary>

###
[`v0.60.2`](https://togithub.com/unocss/unocss/compare/v0.60.1...v0.60.2)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.60.1...v0.60.2)

### [`v0.60.1`](https://togithub.com/unocss/unocss/releases/tag/v0.60.1)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.60.0...v0.60.1)

#####    🚀 Features

-   **eslint-plugin**:
- Blocklist meta with message  -  by
[@&#8203;enkot](https://togithub.com/enkot) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3783
[<samp>(20ed8)</samp>](https://togithub.com/unocss/unocss/commit/20ed897f)
- Allow customize configPath via settings  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(9eb6e)</samp>](https://togithub.com/unocss/unocss/commit/9eb6e29b)

#####    🐞 Bug Fixes

- **transformer-attributify-jsx**: MatchedRule  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3791
[<samp>(da9c9)</samp>](https://togithub.com/unocss/unocss/commit/da9c9a5c)
- **transformer-directive**: Get raw string in directive, support slash
& hash  -  by [@&#8203;zyyv](https://togithub.com/zyyv) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3790
[<samp>(fa497)</samp>](https://togithub.com/unocss/unocss/commit/fa49753e)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.60.0...v0.60.1)

### [`v0.60.0`](https://togithub.com/unocss/unocss/releases/tag/v0.60.0)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.4...v0.60.0)

#####    🚨 Breaking Changes

- **CJS**: Remove `.default` suffix from d.ts and d.cts files  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3750
[<samp>(e9f5b)</samp>](https://togithub.com/unocss/unocss/commit/e9f5b5b8)

#####    🚀 Features

- **preset-icons**: Add svg props customization  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) and **Anthony Fu** in
[unocss/unocss#3774
[<samp>(0b36a)</samp>](https://togithub.com/unocss/unocss/commit/0b36a603)
- **preset-mini**: Add children variant (\*-{modifier})  -  by
[@&#8203;serkodev](https://togithub.com/serkodev) in
[unocss/unocss#3763
[<samp>(249fe)</samp>](https://togithub.com/unocss/unocss/commit/249fe730)

#####    🐞 Bug Fixes

- **preset-legacy-compat**: Update the split color string regex  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) in
[unocss/unocss#3756
[<samp>(47eaf)</samp>](https://togithub.com/unocss/unocss/commit/47eafba2)
- **preset-mini**: Align with `selection`  -  by
[@&#8203;zyyv](https://togithub.com/zyyv) in
[unocss/unocss#3771
[<samp>(18df5)</samp>](https://togithub.com/unocss/unocss/commit/18df52cb)
- **shared-integration**: Vscode match php \<? stuck  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3745
[<samp>(38274)</samp>](https://togithub.com/unocss/unocss/commit/38274449)
- **vite**: Move [@&#8203;import](https://togithub.com/import) before
other rules  -  by [@&#8203;lzl0304](https://togithub.com/lzl0304) in
[unocss/unocss#3743
[<samp>(0b84d)</samp>](https://togithub.com/unocss/unocss/commit/0b84df44)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.4...v0.60.0)

### [`v0.59.4`](https://togithub.com/unocss/unocss/releases/tag/v0.59.4)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.3...v0.59.4)

#####    🚀 Features

- **core**: Support safelist access to RuleContext  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95),
[@&#8203;zyyv](https://togithub.com/zyyv), **Chris** and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3693
[<samp>(04c27)</samp>](https://togithub.com/unocss/unocss/commit/04c27754)

#####    🐞 Bug Fixes

- **eslint-plugin**: Compactible with eslint v9  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(09e3b)</samp>](https://togithub.com/unocss/unocss/commit/09e3bea7)
- **preset-mini**: Transform-cpu  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3730
[<samp>(a3170)</samp>](https://togithub.com/unocss/unocss/commit/a3170ae1)
- **webpack**: SourceMap  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3732
[<samp>(0dab7)</samp>](https://togithub.com/unocss/unocss/commit/0dab7878)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.3...v0.59.4)

### [`v0.59.3`](https://togithub.com/unocss/unocss/releases/tag/v0.59.3)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.2...v0.59.3)

#####    🐞 Bug Fixes

-   **preset-mini**:
- Remove LF in question mark rule  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3717
[<samp>(c51bf)</samp>](https://togithub.com/unocss/unocss/commit/c51bf4c6)
- Transform-cpu  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3729
[<samp>(9a371)</samp>](https://togithub.com/unocss/unocss/commit/9a371344)
- Use `borderRadius` from theme to autosuggest `rounded` values  -  by
[@&#8203;DamianOsipiuk](https://togithub.com/DamianOsipiuk) in
[unocss/unocss#3727
[<samp>(18346)</samp>](https://togithub.com/unocss/unocss/commit/18346b48)
-   **shared-integration**:
- Improve ide matching regex  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) and
[@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3712
[<samp>(ddcf2)</samp>](https://togithub.com/unocss/unocss/commit/ddcf2dc6)
-   **vscode**:
- ContextLoader with workspace  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3728
[<samp>(351a4)</samp>](https://togithub.com/unocss/unocss/commit/351a4f16)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.2...v0.59.3)

### [`v0.59.2`](https://togithub.com/unocss/unocss/releases/tag/v0.59.2)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.1...v0.59.2)

#####    🐞 Bug Fixes

- Move `@unocss/webpack` to ESM First  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[unocss/unocss#3708
[<samp>(25e97)</samp>](https://togithub.com/unocss/unocss/commit/25e97ca0)
- Revert [#&#8203;3696](https://togithub.com/unocss/unocss/issues/3696)
 -  by [@&#8203;antfu](https://togithub.com/antfu) in
[unocss/unocss#3696
[<samp>(8e615)</samp>](https://togithub.com/unocss/unocss/commit/8e615ab5)
- **preset-mini**: Negative custom spacing  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3694
[<samp>(0f4ad)</samp>](https://togithub.com/unocss/unocss/commit/0f4ad400)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.1...v0.59.2)

### [`v0.59.1`](https://togithub.com/unocss/unocss/releases/tag/v0.59.1)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.59.0...v0.59.1)

#####    🐞 Bug Fixes

-   **eslint-plugin**:
- Support ESLint v9  -  by [@&#8203;antfu](https://togithub.com/antfu)
[<samp>(0cc40)</samp>](https://togithub.com/unocss/unocss/commit/0cc40911)
-   **postcss**:
- Too many open files error  -  by
[@&#8203;sonofmagic](https://togithub.com/sonofmagic) in
[unocss/unocss#3695
[<samp>(11918)</samp>](https://togithub.com/unocss/unocss/commit/119187fa)
- Support async rule in directives, fix
[#&#8203;3699](https://togithub.com/unocss/unocss/issues/3699)  -  by
[@&#8203;DarkHole1](https://togithub.com/DarkHole1) in
[unocss/unocss#3701
and
[unocss/unocss#3699
[<samp>(f4ca5)</samp>](https://togithub.com/unocss/unocss/commit/f4ca55c8)
-   **preset-mini**:
- `marker` pesudo element  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3702
[<samp>(0b4a9)</samp>](https://togithub.com/unocss/unocss/commit/0b4a901e)
-   **shared-integration**:
- DefaultIdeMatchInclude  -  by
[@&#8203;Simon-He95](https://togithub.com/Simon-He95) in
[unocss/unocss#3696
[<samp>(7f85b)</samp>](https://togithub.com/unocss/unocss/commit/7f85b396)

#####     [View changes on
GitHub](https://togithub.com/unocss/unocss/compare/v0.59.0...v0.59.1)

###
[`v0.59.0`](https://togithub.com/unocss/unocss/compare/v0.58.9...v0.59.0)

[Compare
Source](https://togithub.com/unocss/unocss/compare/v0.58.9...v0.59.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ramackersjp/Piped).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

presetIcons using ?bg shouldn't also apply 'width', 'height' or 'background-color'
3 participants