@editora/react-icons 0.1.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.
@@ -0,0 +1,25 @@
1
+ import type React from 'react';
2
+ import type { IconVariant } from '@editora/icons';
3
+ export type IconFlip = 'horizontal' | 'vertical' | 'both';
4
+ export type IconBaseProps = Omit<React.SVGProps<SVGSVGElement>, 'color'> & {
5
+ name: string;
6
+ variant?: IconVariant;
7
+ size?: number | string;
8
+ color?: string;
9
+ secondaryColor?: string;
10
+ strokeWidth?: number;
11
+ absoluteStrokeWidth?: boolean;
12
+ strokeLinecap?: 'butt' | 'round' | 'square';
13
+ strokeLinejoin?: 'miter' | 'round' | 'bevel';
14
+ decorative?: boolean;
15
+ title?: string;
16
+ ariaLabel?: string;
17
+ rotate?: number;
18
+ flip?: IconFlip;
19
+ rtl?: boolean;
20
+ };
21
+ export type IconProps = Partial<Omit<IconBaseProps, 'name'>> & Pick<IconBaseProps, 'name'>;
22
+ export type NamedIconProps = Omit<IconProps, 'name'>;
23
+ export type IconContextValue = Omit<NamedIconProps, 'children' | 'dangerouslySetInnerHTML'>;
24
+ export type IconComponent = React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<SVGSVGElement>>;
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC,GAAG;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAE3F,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,yBAAyB,CAAC,CAAC;AAE5F,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@editora/react-icons",
3
+ "version": "0.1.0",
4
+ "description": "React SVG icon components and theming context for the Editora UI ecosystem",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.esm.js",
12
+ "require": "./dist/index.cjs.js"
13
+ }
14
+ },
15
+ "files": ["dist", "README.md"],
16
+ "scripts": {
17
+ "build": "npm --prefix ../icons run build:tsc && node ../../node_modules/vite/bin/vite.js build && npm run build:tsc",
18
+ "build:tsc": "npm --prefix ../icons run build:tsc && node ../../node_modules/typescript/bin/tsc -p . --emitDeclarationOnly --noEmit false --outDir dist",
19
+ "dev": "node ../../node_modules/vite/bin/vite.js build --watch",
20
+ "clean": "rimraf dist",
21
+ "prepare": "npm run build"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "^16.8 || ^17 || ^18 || ^19"
25
+ },
26
+ "dependencies": {
27
+ "@editora/icons": "^0.1.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/react": "^18.2.0",
31
+ "rimraf": "^5.0.0",
32
+ "typescript": "^5.0.0",
33
+ "vite": "^7.3.1"
34
+ },
35
+ "keywords": [
36
+ "editora",
37
+ "editora ui ecosystem",
38
+ "icons",
39
+ "react",
40
+ "svg",
41
+ "react-icons",
42
+ "design-system",
43
+ "icon-library",
44
+ "theming"
45
+ ],
46
+ "author": "Ajay Kumar <ajaykr089@gmail.com>",
47
+ "license": "MIT",
48
+ "sideEffects": false,
49
+ "publishConfig": {
50
+ "access": "public"
51
+ }
52
+ }