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

Commit 1aee36a

Browse files
committed
fix(icon): remove omission types
1 parent 6946499 commit 1aee36a

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

@types/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-25T15:51:56.045Z
9+
* This file was generated on 2023-02-25T16:56:58.469Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This is a generated file. Do not edit it's contents.
88
*
9-
* This file was generated on 2023-02-25T15:51:56.045Z
9+
* This file was generated on 2023-02-25T16:56:58.469Z
1010
*/
1111

1212
import { ChakraProps, chakra } from "@chakra-ui/vue-system"

packages/c-icon/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"build:types": "tsup src --dts-only"
3030
},
3131
"dependencies": {
32-
"@chakra-ui/utils": "2.0.15",
3332
"@chakra-ui/vue-system": "workspace:*",
3433
"@chakra-ui/vue-utils": "workspace:*"
3534
},

packages/c-icon/src/icon.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
import { chakra, ChakraProps } from "@chakra-ui/vue-system"
1111
import type {} from "@vue/runtime-core"
1212
import { SNAO, camelCase, mergeWith } from "@chakra-ui/vue-utils"
13-
import { omit } from "@chakra-ui/utils"
1413

1514
const fallbackIcon = {
1615
path: `
@@ -114,12 +113,12 @@ export interface CreateIconOptions {
114113
viewBox?: string
115114
}
116115

117-
const createIconProps = omit(_iconProps, ["name"])
116+
const { name, ...__icon_props__ } = _iconProps
118117
export function createIcon(options: CreateIconOptions) {
119118
const componentName = camelCase(options.name)
120119
const iconComponent = defineComponent({
121120
name: componentName,
122-
props: createIconProps,
121+
props: __icon_props__,
123122
setup(props, { slots, attrs }) {
124123
const hasDefaultSlot = computed(() => slots?.default?.()?.length)
125124
const vnodeProps = computed(() => ({

packages/c-icon/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
}) as any,
1111
],
1212
metafile: true,
13-
external: ["lodash.mergewith", "@chakra-ui/utils"],
13+
external: ["lodash.mergewith"],
1414
format: ["esm", "cjs"],
1515
entry: ["src/**/*.(ts|tsx)"],
1616
keepNames: true,

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)