@jsfour/root-ui-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/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Installing the components in your project
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ npm i @jsfour/root-ui-react
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import { RootButton } from '@jsfour/root-ui-react';
13
+
14
+ export function MyComponent() {
15
+ return (
16
+ <RootButton
17
+ type="primary"
18
+ onClick={() => console.log('Clicked!')}
19
+ >
20
+ Click Me
21
+ </RootButton>
22
+ );
23
+ }
24
+ ```
@@ -0,0 +1 @@
1
+ export * from './lib/stencil-generated/components';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/stencil-generated/components';
@@ -0,0 +1,35 @@
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 RootBadgeCustomEvent, type RootBannerCustomEvent, type RootButtonCustomEvent, type RootInputCustomEvent } from "@jsfour/root-ui";
6
+ import { RootBadge as RootBadgeElement } from "@jsfour/root-ui/dist/components/root-badge.js";
7
+ import { RootBanner as RootBannerElement } from "@jsfour/root-ui/dist/components/root-banner.js";
8
+ import { RootBreadcrumbs as RootBreadcrumbsElement } from "@jsfour/root-ui/dist/components/root-breadcrumbs.js";
9
+ import { RootButton as RootButtonElement } from "@jsfour/root-ui/dist/components/root-button.js";
10
+ import { RootInput as RootInputElement } from "@jsfour/root-ui/dist/components/root-input.js";
11
+ import { RootList as RootListElement } from "@jsfour/root-ui/dist/components/root-list.js";
12
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
13
+ export type RootBadgeEvents = {
14
+ onRootBadgeClick: EventName<RootBadgeCustomEvent<MouseEvent>>;
15
+ };
16
+ export declare const RootBadge: StencilReactComponent<RootBadgeElement, RootBadgeEvents>;
17
+ export type RootBannerEvents = {
18
+ onRootBannerClick: EventName<RootBannerCustomEvent<MouseEvent>>;
19
+ };
20
+ export declare const RootBanner: StencilReactComponent<RootBannerElement, RootBannerEvents>;
21
+ export type RootBreadcrumbsEvents = {
22
+ onLinkClick: EventName<CustomEvent<any>>;
23
+ };
24
+ export declare const RootBreadcrumbs: StencilReactComponent<RootBreadcrumbsElement, RootBreadcrumbsEvents>;
25
+ export type RootButtonEvents = {
26
+ onRootButtonClick: EventName<RootButtonCustomEvent<MouseEvent>>;
27
+ };
28
+ export declare const RootButton: StencilReactComponent<RootButtonElement, RootButtonEvents>;
29
+ export type RootInputEvents = {
30
+ onRootInputChange: EventName<CustomEvent<string>>;
31
+ onRootInputBlur: EventName<RootInputCustomEvent<FocusEvent>>;
32
+ };
33
+ export declare const RootInput: StencilReactComponent<RootInputElement, RootInputEvents>;
34
+ export type RootListEvents = NonNullable<unknown>;
35
+ export declare const RootList: StencilReactComponent<RootListElement, RootListEvents>;
@@ -0,0 +1,60 @@
1
+ 'use client';
2
+ import { RootBadge as RootBadgeElement, defineCustomElement as defineRootBadge } from "@jsfour/root-ui/dist/components/root-badge.js";
3
+ import { RootBanner as RootBannerElement, defineCustomElement as defineRootBanner } from "@jsfour/root-ui/dist/components/root-banner.js";
4
+ import { RootBreadcrumbs as RootBreadcrumbsElement, defineCustomElement as defineRootBreadcrumbs } from "@jsfour/root-ui/dist/components/root-breadcrumbs.js";
5
+ import { RootButton as RootButtonElement, defineCustomElement as defineRootButton } from "@jsfour/root-ui/dist/components/root-button.js";
6
+ import { RootInput as RootInputElement, defineCustomElement as defineRootInput } from "@jsfour/root-ui/dist/components/root-input.js";
7
+ import { RootList as RootListElement, defineCustomElement as defineRootList } from "@jsfour/root-ui/dist/components/root-list.js";
8
+ import { createComponent } from '@stencil/react-output-target/runtime';
9
+ import React from 'react';
10
+ export const RootBadge = /*@__PURE__*/ createComponent({
11
+ tagName: 'root-badge',
12
+ elementClass: RootBadgeElement,
13
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
14
+ react: React,
15
+ events: { onRootBadgeClick: 'rootBadgeClick' },
16
+ defineCustomElement: defineRootBadge
17
+ });
18
+ export const RootBanner = /*@__PURE__*/ createComponent({
19
+ tagName: 'root-banner',
20
+ elementClass: RootBannerElement,
21
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
22
+ react: React,
23
+ events: { onRootBannerClick: 'rootBannerClick' },
24
+ defineCustomElement: defineRootBanner
25
+ });
26
+ export const RootBreadcrumbs = /*@__PURE__*/ createComponent({
27
+ tagName: 'root-breadcrumbs',
28
+ elementClass: RootBreadcrumbsElement,
29
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
30
+ react: React,
31
+ events: { onLinkClick: 'linkClick' },
32
+ defineCustomElement: defineRootBreadcrumbs
33
+ });
34
+ export const RootButton = /*@__PURE__*/ createComponent({
35
+ tagName: 'root-button',
36
+ elementClass: RootButtonElement,
37
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
38
+ react: React,
39
+ events: { onRootButtonClick: 'rootButtonClick' },
40
+ defineCustomElement: defineRootButton
41
+ });
42
+ export const RootInput = /*@__PURE__*/ createComponent({
43
+ tagName: 'root-input',
44
+ elementClass: RootInputElement,
45
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
46
+ react: React,
47
+ events: {
48
+ onRootInputChange: 'rootInputChange',
49
+ onRootInputBlur: 'rootInputBlur'
50
+ },
51
+ defineCustomElement: defineRootInput
52
+ });
53
+ export const RootList = /*@__PURE__*/ createComponent({
54
+ tagName: 'root-list',
55
+ elementClass: RootListElement,
56
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
57
+ react: React,
58
+ events: {},
59
+ defineCustomElement: defineRootList
60
+ });
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@jsfour/root-ui-react",
3
+ "author": "jsfour",
4
+ "version": "0.0.1",
5
+ "description": "Unofficial react components for Root",
6
+ "license": "Apache-2.0",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "sideEffect": false,
10
+ "peerDependencies": {
11
+ "react": ">=18.0.0",
12
+ "react-dom": ">=18.0.0"
13
+ },
14
+ "dependencies": {
15
+ "@jsfour/root-ui": "^1.0.0",
16
+ "typescript": "^5.9.3",
17
+ "@stencil/react-output-target": "1.2.0"
18
+ },
19
+ "scripts": {
20
+ "build": "npm run tsc",
21
+ "tsc": "tsc -p . --outDir ./dist"
22
+ },
23
+ "keywords": [],
24
+ "files": [
25
+ "dist/",
26
+ "README.md"
27
+ ]
28
+ }