@fibrae/semi-icons-svelte 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@
11
11
  prefixCls?: string;
12
12
  type?: string;
13
13
  fill?: string | string[];
14
- /** Receives the `fill` prop, so a custom svg can apply it */
15
14
  children?: Snippet<[{ fill?: string | string[] }]>;
16
15
  }
17
16
  </script>
@@ -23,7 +22,6 @@
23
22
  let { size = 'default', spin = false, rotate, prefixCls = BASE_CLASS_PREFIX, type, fill, children, ...rest }: IconProps = $props();
24
23
 
25
24
  const prefix = $derived(`${prefixCls}-icon`);
26
- // An icon with a name or in the tab order is content; otherwise it is decoration
27
25
  const exposed = $derived(Boolean(rest['aria-label'] || rest['aria-labelledby']) || Number(rest.tabindex) >= 0);
28
26
  // The user's style comes last so it can override the rotation
29
27
  const style = $derived([Number.isSafeInteger(rotate) ? `transform: rotate(${rotate}deg)` : undefined, rest.style].filter(Boolean).join(';') || undefined);
@@ -8,7 +8,6 @@ export interface IconProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'childr
8
8
  prefixCls?: string;
9
9
  type?: string;
10
10
  fill?: string | string[];
11
- /** Receives the `fill` prop, so a custom svg can apply it */
12
11
  children?: Snippet<[{
13
12
  fill?: string | string[];
14
13
  }]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibrae/semi-icons-svelte",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Semi icons as Svelte components",
5
5
  "license": "MIT",
6
6
  "homepage": "https://semi-design-next.pages.dev",
@@ -45,7 +45,7 @@
45
45
  "*.css"
46
46
  ],
47
47
  "dependencies": {
48
- "@fibrae/semi-icons-core": "0.1.1"
48
+ "@fibrae/semi-icons-core": "0.3.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "svelte": "^5.57.0"