@scalar/icons 0.4.1 → 0.4.2

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.
@@ -1,14 +1,12 @@
1
1
  import type { ScalarIconProps, ScalarIconWeight } from '../types';
2
2
  export declare function useScalarIcon(props?: ScalarIconProps): {
3
3
  bind: import("vue").ComputedRef<{
4
- class: string;
5
4
  'aria-label': string;
6
5
  'aria-hidden'?: undefined;
7
6
  role?: undefined;
8
7
  width: string;
9
8
  height: string;
10
9
  } | {
11
- class: string;
12
10
  'aria-hidden': boolean;
13
11
  role: string;
14
12
  'aria-label'?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useScalarIcon.d.ts","sourceRoot":"","sources":["../../src/hooks/useScalarIcon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAKhE,wBAAgB,aAAa,CAAC,KAAK,GAAE,eAAoB;;;;;;;;;;;;;;;;;EAgBxD"}
1
+ {"version":3,"file":"useScalarIcon.d.ts","sourceRoot":"","sources":["../../src/hooks/useScalarIcon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAIhE,wBAAgB,aAAa,CAAC,KAAK,GAAE,eAAoB;;;;;;;;;;;;;;;EAaxD"}
@@ -1,20 +1,18 @@
1
1
  import { computed as t } from "vue";
2
- import { useBindCx as r } from "@scalar/use-hooks/useBindCx";
3
- const n = "regular";
4
- function u(e = {}) {
5
- const { cx: a } = r(), i = t(
2
+ const i = "regular";
3
+ function l(e = {}) {
4
+ const a = t(
6
5
  () => e.label ? { "aria-label": e.label } : { "aria-hidden": !0, role: "presentation" }
7
6
  );
8
7
  return {
9
8
  bind: t(() => ({
10
9
  width: "1em",
11
10
  height: "1em",
12
- ...i.value,
13
- ...a()
11
+ ...a.value
14
12
  })),
15
- weight: t(() => e.weight ?? n)
13
+ weight: t(() => e.weight ?? i)
16
14
  };
17
15
  }
18
16
  export {
19
- u as useScalarIcon
17
+ l as useScalarIcon
20
18
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/icons"
12
12
  },
13
- "version": "0.4.1",
13
+ "version": "0.4.2",
14
14
  "engines": {
15
15
  "node": ">=20"
16
16
  },
@@ -35,8 +35,7 @@
35
35
  "@phosphor-icons/core": "^2.1.1",
36
36
  "@types/node": "^20.17.10",
37
37
  "chalk": "^5.4.1",
38
- "vue": "^3.5.12",
39
- "@scalar/use-hooks": "0.2.1"
38
+ "vue": "^3.5.12"
40
39
  },
41
40
  "devDependencies": {
42
41
  "@vitejs/plugin-vue": "^5.0.4",
@@ -46,7 +45,7 @@
46
45
  "vite": "5.4.19",
47
46
  "vite-svg-loader": "^5.1.0",
48
47
  "vitest": "^1.6.0",
49
- "@scalar/build-tooling": "0.2.0"
48
+ "@scalar/build-tooling": "0.2.1"
50
49
  },
51
50
  "scripts": {
52
51
  "build": "scalar-build-vite",