Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni authored Jan 4, 2025
2 parents aacd8b6 + 2992da0 commit 0822d35
Show file tree
Hide file tree
Showing 255 changed files with 3,340 additions and 1,741 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ body:
id: reproduction
attributes:
label: Link to minimal reproduction
description: Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example). Provide a streamlined CodePen/CodeSandbox or GitHub repository link. Please don't fill in a link randomly.
description: Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example). Provide a streamlined [Playground](https://play.pro-components.cn)/CodePen/CodeSandbox or GitHub repository link. Please don't fill in a link randomly.
placeholder: Reproduction
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ body:
id: reproduction
attributes:
label: 最小复现链接
description: 请提供[最小复现](https://stackoverflow.com/help/minimal-reproducible-example)链接。提供一个简化的 CodePen/CodeSandbox 或 GitHub 仓库链接。请不要随机填写链接。
description: 请提供[最小复现](https://stackoverflow.com/help/minimal-reproducible-example)链接。提供一个简化的 [Playground](https://play.pro-components.cn)/CodePen/CodeSandbox 或 GitHub 仓库链接。请不要随机填写链接。
placeholder: 复现链接
validations:
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [22]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +42,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [22]
steps:
- uses: actions/checkout@v3

Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,35 @@

## NEXT_VERSION

### Breaking Changes

- (**Vue 3.3+ required**) Add slot type for all components.

### i18n

- Add kmKH locale.

### Features

- `n-modal` adds `draggable` prop, closes [#6525](https://github.com/tusen-ai/naive-ui/issues/6525), [#5792](https://github.com/tusen-ai/naive-ui/issues/5792), [#5711](https://github.com/tusen-ai/naive-ui/issues/5711), [#5501](https://github.com/tusen-ai/naive-ui/issues/5501) and [#2152](https://github.com/tusen-ai/naive-ui/issues/2152).
- `useDialog` supports `draggable` option.
- `useModal` supports `draggable` option.

### Fixes

- Fix `n-data-table` may have multiple expand trigger with tree data.
- Fix `n-date-picker`'s `confirm`, `now`, `clear` slots doesn't work with `'month'`, `'monthrange'`, `'quarter'`, `'quarterrange'`, `'year'` and `'yearrange'` type.
- Fix `n-input`'s `render-count` prop doesn't work when type is not `'textarea'`.

## 2.40.4

`2024-12-20`

### Fixes

- Fix `inset` CSS property caused compatibility issues in some browsers, closes [#6604](https://github.com/tusen-ai/naive-ui/issues/6604),close [#6602](https://github.com/tusen-ai/naive-ui/issues/6602).
- Fix memory leak problem when used with new version of vue. Note: After the fix you may still find memory leak in Chrome >= 129, since they introduced a bug, see https://github.com/vuejs/core/issues/12306, https://issues.chromium.org/issues/376777343

## 2.40.3

`2024-12-02`
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,35 @@

## NEXT_VERSION

### Breaking Changes

- (需要 Vue 3.3+)为所有的组件增加插槽的类型标注

### i18n

- 添加 kmKH 国际化

### Features

- `n-modal` 新增 `draggable` 属性,关闭 [#6525](https://github.com/tusen-ai/naive-ui/issues/6525)[#5792](https://github.com/tusen-ai/naive-ui/issues/5792)[#5711](https://github.com/tusen-ai/naive-ui/issues/5711)[#5501](https://github.com/tusen-ai/naive-ui/issues/5501)[#2152](https://github.com/tusen-ai/naive-ui/issues/2152)
- `useDialog` 支持 `draggable` 参数
- `useModal` 支持 `draggable` 参数

### Fixes

- 修复 `n-data-table` 在使用树形数据的时候出现多个展开 icon
- 修复 `n-date-picker``confirm``now``clear` 插槽对 `'month'``'monthrange'``'quarter'``'quarterrange'``'year'``'yearrange'` 类型不生效
- 修复 `n-input``render-count` 属性在类型非 `'textarea'` 时不生效

## 2.40.4

`2024-12-20`

### Fixes

- 修复 `n-scrollbar``n-float-button``n-float-button-group``n-popover` 组件中的 `inset` 属性在部分浏览器中有兼容性问题,关闭 [#6604](https://github.com/tusen-ai/naive-ui/issues/6604),关闭 [#6602](https://github.com/tusen-ai/naive-ui/issues/6602)
- 修复和较新版本 vue 配合使用时的内存泄露问题。注意:修复后你可能仍然会在 Chrome >= 129 中发现内存泄漏,因为他们引入了一个 bug,参考:https://github.com/vuejs/core/issues/12306 https://issues.chromium.org/issues/376777343

## 2.40.3

`2024-12-02`
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "2.40.3",
"version": "2.40.4",
"packageManager": "pnpm@9.5.0",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"author": "07akioni",
Expand Down Expand Up @@ -101,9 +101,9 @@
"@rollup/plugin-terser": "^0.4.3",
"@types/estree": "^1.0.1",
"@types/jest": "^29.5.4",
"@vicons/fluent": "^0.12.0",
"@vicons/ionicons4": "^0.12.0",
"@vicons/ionicons5": "^0.12.0",
"@vicons/fluent": "^0.13.0",
"@vicons/ionicons4": "^0.13.0",
"@vicons/ionicons5": "^0.13.0",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/compiler-sfc": "^3.4.15",
"@vue/server-renderer": "^3.5.13",
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function getPartsOfMdDemo(tokens) {
function createBlockTemplate(tag, content, attrs) {
const attrsStr = attrs
? Object.keys(attrs).reduce((attrsStr, key) => {
return `${attrsStr} ${key}="${attrs[key]}"`
}, '')
return `${attrsStr} ${key}="${attrs[key]}"`
}, '')
: ''
return `<${tag}${attrsStr}>
${content}
Expand Down
5 changes: 2 additions & 3 deletions src/_internal/icons/Attach.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'attach',
export default replaceable('attach', () => (
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="currentColor" fill-rule="nonzero">
<path d="M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Cancel.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'cancel',
export default replaceable('cancel', () => (
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="currentColor" fill-rule="nonzero">
<path d="M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"></path>
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Clear.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'clear',
export default replaceable('clear', () => (
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="currentColor" fill-rule="nonzero">
<path d="M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Close.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'close',
export default replaceable('close', () => (
<svg
viewBox="0 0 12 12"
version="1.1"
Expand All @@ -15,4 +14,4 @@ export default replaceable(
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Date.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'date',
export default replaceable('date', () => (
<svg
width="28px"
height="28px"
Expand All @@ -16,4 +15,4 @@ export default replaceable(
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Download.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'download',
export default replaceable('download', () => (
<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="currentColor" fill-rule="nonzero">
<path d="M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'error',
export default replaceable('error', () => (
<svg viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill-rule="evenodd">
<g fill-rule="nonzero">
<path d="M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Info.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'info',
export default replaceable('info', () => (
<svg viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill-rule="evenodd">
<g fill-rule="nonzero">
<path d="M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Retry.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'retry',
export default replaceable('retry', () => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
d="M320,146s24.36-12-64-12A160,160,0,1,0,416,294"
Expand All @@ -13,4 +12,4 @@ export default replaceable(
style="fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"
/>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/RotateClockwise.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'rotateClockwise',
export default replaceable('rotateClockwise', () => (
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z"
Expand All @@ -15,4 +14,4 @@ export default replaceable(
>
</path>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/RotateCounterclockwise.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'rotateClockwise',
export default replaceable('rotateClockwise', () => (
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z"
Expand All @@ -15,4 +14,4 @@ export default replaceable(
>
</path>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Success.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'success',
export default replaceable('success', () => (
<svg viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill-rule="evenodd">
<g fill-rule="nonzero">
<path d="M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Time.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'time',
export default replaceable('time', () => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
d="M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z"
Expand All @@ -24,4 +23,4 @@ export default replaceable(
"
/>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/To.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'to',
export default replaceable('to', () => (
<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="currentColor" fill-rule="nonzero">
<path d="M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z" />
</g>
</g>
</svg>
)
))
5 changes: 2 additions & 3 deletions src/_internal/icons/Trash.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { h } from 'vue'
import { replaceable } from './replaceable'

export default replaceable(
'trash',
export default replaceable('trash', () => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path
d="M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144"
Expand Down Expand Up @@ -36,4 +35,4 @@ export default replaceable(
>
</line>
</svg>
)
))
Loading

0 comments on commit 0822d35

Please sign in to comment.