@affinda/react 0.0.1
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/dist/generated/components.d.ts +28 -0
- package/dist/generated/components.js +51 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +24 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { type AfButtonCustomEvent, type AfIconButtonCustomEvent } from "@affinda/wc";
|
|
6
|
+
import { AfBadge as AfBadgeElement } from "@affinda/wc/dist/components/af-badge.js";
|
|
7
|
+
import { AfButton as AfButtonElement } from "@affinda/wc/dist/components/af-button.js";
|
|
8
|
+
import { AfCard as AfCardElement } from "@affinda/wc/dist/components/af-card.js";
|
|
9
|
+
import { AfIconButton as AfIconButtonElement } from "@affinda/wc/dist/components/af-icon-button.js";
|
|
10
|
+
import { AfInput as AfInputElement } from "@affinda/wc/dist/components/af-input.js";
|
|
11
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
12
|
+
export type AfBadgeEvents = NonNullable<unknown>;
|
|
13
|
+
export declare const AfBadge: StencilReactComponent<AfBadgeElement, AfBadgeEvents>;
|
|
14
|
+
export type AfButtonEvents = {
|
|
15
|
+
onAfClick: EventName<AfButtonCustomEvent<MouseEvent>>;
|
|
16
|
+
};
|
|
17
|
+
export declare const AfButton: StencilReactComponent<AfButtonElement, AfButtonEvents>;
|
|
18
|
+
export type AfCardEvents = NonNullable<unknown>;
|
|
19
|
+
export declare const AfCard: StencilReactComponent<AfCardElement, AfCardEvents>;
|
|
20
|
+
export type AfIconButtonEvents = {
|
|
21
|
+
onAfClick: EventName<AfIconButtonCustomEvent<MouseEvent>>;
|
|
22
|
+
};
|
|
23
|
+
export declare const AfIconButton: StencilReactComponent<AfIconButtonElement, AfIconButtonEvents>;
|
|
24
|
+
export type AfInputEvents = {
|
|
25
|
+
onAfInput: EventName<CustomEvent<string>>;
|
|
26
|
+
onAfChange: EventName<CustomEvent<string>>;
|
|
27
|
+
};
|
|
28
|
+
export declare const AfInput: StencilReactComponent<AfInputElement, AfInputEvents>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { AfBadge as AfBadgeElement, defineCustomElement as defineAfBadge } from "@affinda/wc/dist/components/af-badge.js";
|
|
3
|
+
import { AfButton as AfButtonElement, defineCustomElement as defineAfButton } from "@affinda/wc/dist/components/af-button.js";
|
|
4
|
+
import { AfCard as AfCardElement, defineCustomElement as defineAfCard } from "@affinda/wc/dist/components/af-card.js";
|
|
5
|
+
import { AfIconButton as AfIconButtonElement, defineCustomElement as defineAfIconButton } from "@affinda/wc/dist/components/af-icon-button.js";
|
|
6
|
+
import { AfInput as AfInputElement, defineCustomElement as defineAfInput } from "@affinda/wc/dist/components/af-input.js";
|
|
7
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export const AfBadge = /*@__PURE__*/ createComponent({
|
|
10
|
+
tagName: 'af-badge',
|
|
11
|
+
elementClass: AfBadgeElement,
|
|
12
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
13
|
+
react: React,
|
|
14
|
+
events: {},
|
|
15
|
+
defineCustomElement: defineAfBadge
|
|
16
|
+
});
|
|
17
|
+
export const AfButton = /*@__PURE__*/ createComponent({
|
|
18
|
+
tagName: 'af-button',
|
|
19
|
+
elementClass: AfButtonElement,
|
|
20
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
|
+
react: React,
|
|
22
|
+
events: { onAfClick: 'afClick' },
|
|
23
|
+
defineCustomElement: defineAfButton
|
|
24
|
+
});
|
|
25
|
+
export const AfCard = /*@__PURE__*/ createComponent({
|
|
26
|
+
tagName: 'af-card',
|
|
27
|
+
elementClass: AfCardElement,
|
|
28
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
29
|
+
react: React,
|
|
30
|
+
events: {},
|
|
31
|
+
defineCustomElement: defineAfCard
|
|
32
|
+
});
|
|
33
|
+
export const AfIconButton = /*@__PURE__*/ createComponent({
|
|
34
|
+
tagName: 'af-icon-button',
|
|
35
|
+
elementClass: AfIconButtonElement,
|
|
36
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
37
|
+
react: React,
|
|
38
|
+
events: { onAfClick: 'afClick' },
|
|
39
|
+
defineCustomElement: defineAfIconButton
|
|
40
|
+
});
|
|
41
|
+
export const AfInput = /*@__PURE__*/ createComponent({
|
|
42
|
+
tagName: 'af-input',
|
|
43
|
+
elementClass: AfInputElement,
|
|
44
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
45
|
+
react: React,
|
|
46
|
+
events: {
|
|
47
|
+
onAfInput: 'afInput',
|
|
48
|
+
onAfChange: 'afChange'
|
|
49
|
+
},
|
|
50
|
+
defineCustomElement: defineAfInput
|
|
51
|
+
});
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@affinda/react",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"react": ">=17.0.0",
|
|
14
|
+
"react-dom": ">=17.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@stencil/react-output-target": "^1.2.0",
|
|
18
|
+
"@affinda/wc": "0.0.1"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "pnpm run clean && tsc -p tsconfig.json",
|
|
22
|
+
"clean": "rm -rf dist"
|
|
23
|
+
}
|
|
24
|
+
}
|