@enhanced-dom-react/icon 0.0.0-stage → 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.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026-present CD9B4A105290E17E0948E021DF4105107C88693C59C0B891CCC08366C51AEA990902A6A156AC87D88A2FC41422A5E1C3C4071F251F19441C4516000EC25F87DF
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ React wrapper for the @enhanced-dom/icon component
2
+
3
+ ## Usage
4
+
5
+ Register an icon interpreter for a namespace, then pass an icon config with that namespace:
6
+
7
+ ```tsx
8
+ import { faArrowAltCircleUp } from '@fortawesome/free-regular-svg-icons'
9
+ import { IconWebComponent } from '@enhanced-dom/icon'
10
+ import { FontawesomeIconRenderer } from '@enhanced-dom/fontawesome'
11
+ import { Icon } from '@enhanced-dom-react/icon'
12
+
13
+ IconWebComponent.addIconInterpreter('fa7', new FontawesomeIconRenderer())
14
+
15
+ const arrowUp = { ...faArrowAltCircleUp, namespace: 'fa7' }
16
+
17
+ export const App = () => <Icon config={arrowUp} />
18
+ ```
2
19
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
@@ -0,0 +1,6 @@
1
+ import { IconWebComponent, type IconWebComponentAttributes } from '@enhanced-dom/icon';
2
+ import { type DetailedHTMLProps, type HTMLAttributes } from 'react';
3
+ export type IconProps<ConfigType = any> = IconWebComponentAttributes<ConfigType> & DetailedHTMLProps<HTMLAttributes<IconWebComponent>, IconWebComponent>;
4
+ export declare const Icon: import("react").ComponentType<IconProps<any>> & {
5
+ renderer: import("@enhanced-dom/webcomponent").IRenderingEngine<Record<string, any>>;
6
+ } & Record<string, AnalyserNode>;
@@ -0,0 +1,6 @@
1
+ import { withReactAdapter } from '@enhanced-dom/react';
2
+ import { IconWebComponent } from '@enhanced-dom/icon';
3
+ export const Icon = withReactAdapter({
4
+ type: IconWebComponent,
5
+ });
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaWNvbi5jb21wb25lbnQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBQ3RELE9BQU8sRUFBRSxnQkFBZ0IsRUFBbUMsTUFBTSxvQkFBb0IsQ0FBQTtBQU10RixNQUFNLENBQUMsTUFBTSxJQUFJLEdBQUcsZ0JBQWdCLENBQWdFO0lBQ2xHLElBQUksRUFBRSxnQkFBZ0I7Q0FDdkIsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgd2l0aFJlYWN0QWRhcHRlciB9IGZyb20gJ0BlbmhhbmNlZC1kb20vcmVhY3QnXG5pbXBvcnQgeyBJY29uV2ViQ29tcG9uZW50LCB0eXBlIEljb25XZWJDb21wb25lbnRBdHRyaWJ1dGVzIH0gZnJvbSAnQGVuaGFuY2VkLWRvbS9pY29uJ1xuaW1wb3J0IHsgdHlwZSBEZXRhaWxlZEhUTUxQcm9wcywgdHlwZSBIVE1MQXR0cmlidXRlcyB9IGZyb20gJ3JlYWN0J1xuXG5leHBvcnQgdHlwZSBJY29uUHJvcHM8Q29uZmlnVHlwZSA9IGFueT4gPSBJY29uV2ViQ29tcG9uZW50QXR0cmlidXRlczxDb25maWdUeXBlPiAmXG4gIERldGFpbGVkSFRNTFByb3BzPEhUTUxBdHRyaWJ1dGVzPEljb25XZWJDb21wb25lbnQ+LCBJY29uV2ViQ29tcG9uZW50PlxuXG5leHBvcnQgY29uc3QgSWNvbiA9IHdpdGhSZWFjdEFkYXB0ZXI8SWNvbldlYkNvbXBvbmVudCwgbmV2ZXJbXSwgdHlwZW9mIEljb25XZWJDb21wb25lbnQsIEljb25Qcm9wcz4oe1xuICB0eXBlOiBJY29uV2ViQ29tcG9uZW50LFxufSlcbiJdfQ==
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './icon.component.js';
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './icon.component.js';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaWNvbi5jb21wb25lbnQnXG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@enhanced-dom-react/icon",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "React wrapper for the @enhanced-dom/icon webcomponent",
5
+ "repository": "https://github.com/enhanced-dom/react-icon.git",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "keywords": [],
9
+ "author": "CD9B4A105290E17E0948E021DF4105107C88693C59C0B891CCC08366C51AEA990902A6A156AC87D88A2FC41422A5E1C3C4071F251F19441C4516000EC25F87DF",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "@enhanced-dom/react": "^0.4.0",
13
+ "@enhanced-dom/icon": "^0.3.0"
14
+ },
15
+ "devDependencies": {
16
+ "@enhanced-dom/build": "^0.3.4",
17
+ "@enhanced-dom/lint": "^0.4.3",
18
+ "@enhanced-dom/claude": "^0.3.2",
19
+ "@enhanced-dom/babel": "^0.3.0",
20
+ "@enhanced-dom/webpack": "^0.5.3",
21
+ "@enhanced-dom/jest": "^0.3.0",
22
+ "@types/node": "^22.20.5"
23
+ },
24
+ "optionalDependencies": {
25
+ "@enhanced-dom/fontawesome": "^0.4.0"
26
+ },
27
+ "engines": {
28
+ "node": ">=22.23.2",
29
+ "npm": ">=12"
30
+ }
6
31
  }