@andespindola/ui-react 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/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # @andespindola/ui-react
2
+
3
+ Wrappers **React** (e **Next.js**) para os Web Components do design system
4
+ [`@andespindola/ui-core`](https://www.npmjs.com/package/@andespindola/ui-core).
5
+
6
+ ## Instalação
7
+
8
+ ```bash
9
+ npm install @andespindola/ui-react @andespindola/ui-core
10
+ ```
11
+
12
+ Peer deps: `react >=18`, `react-dom >=18`.
13
+
14
+ ## Uso
15
+
16
+ ```tsx
17
+ import "@andespindola/ui-core/styles.css";
18
+ import { UiButton, UiCard, UiSwitch } from "@andespindola/ui-react";
19
+
20
+ export function App() {
21
+ return (
22
+ <UiCard>
23
+ <UiButton variant="solid">Começar</UiButton>
24
+ <UiSwitch checked />
25
+ </UiCard>
26
+ );
27
+ }
28
+ ```
29
+
30
+ > Os proxies já marcam os componentes como Client Components (`"use client"`), compatível
31
+ > com o App Router do Next.js.
32
+
33
+ ## Componentes (lote inicial)
34
+
35
+ `UiButton`, `UiCard`, `UiBadge`, `UiInput`, `UiSwitch`, `UiDialog`.
36
+
37
+ ## Licença
38
+
39
+ MIT © Anderson Espindola
@@ -0,0 +1,140 @@
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 { UiAccordionItem as UiAccordionItemElement } from "@andespindola/ui-core/dist/components/ui-accordion-item.js";
6
+ import { UiAccordion as UiAccordionElement } from "@andespindola/ui-core/dist/components/ui-accordion.js";
7
+ import { UiAvatar as UiAvatarElement } from "@andespindola/ui-core/dist/components/ui-avatar.js";
8
+ import { UiBadge as UiBadgeElement } from "@andespindola/ui-core/dist/components/ui-badge.js";
9
+ import { UiButton as UiButtonElement } from "@andespindola/ui-core/dist/components/ui-button.js";
10
+ import { UiCard as UiCardElement } from "@andespindola/ui-core/dist/components/ui-card.js";
11
+ import { UiCheckbox as UiCheckboxElement } from "@andespindola/ui-core/dist/components/ui-checkbox.js";
12
+ import { UiDialog as UiDialogElement } from "@andespindola/ui-core/dist/components/ui-dialog.js";
13
+ import { UiDrawer as UiDrawerElement } from "@andespindola/ui-core/dist/components/ui-drawer.js";
14
+ import { UiDropdownItem as UiDropdownItemElement } from "@andespindola/ui-core/dist/components/ui-dropdown-item.js";
15
+ import { UiDropdownMenu as UiDropdownMenuElement } from "@andespindola/ui-core/dist/components/ui-dropdown-menu.js";
16
+ import { UiField as UiFieldElement } from "@andespindola/ui-core/dist/components/ui-field.js";
17
+ import { UiInput as UiInputElement } from "@andespindola/ui-core/dist/components/ui-input.js";
18
+ import { UiLabel as UiLabelElement } from "@andespindola/ui-core/dist/components/ui-label.js";
19
+ import { UiLoadingOverlay as UiLoadingOverlayElement } from "@andespindola/ui-core/dist/components/ui-loading-overlay.js";
20
+ import { UiPopover as UiPopoverElement } from "@andespindola/ui-core/dist/components/ui-popover.js";
21
+ import { UiProgress as UiProgressElement } from "@andespindola/ui-core/dist/components/ui-progress.js";
22
+ import { UiRadioGroup as UiRadioGroupElement } from "@andespindola/ui-core/dist/components/ui-radio-group.js";
23
+ import { UiReveal as UiRevealElement } from "@andespindola/ui-core/dist/components/ui-reveal.js";
24
+ import { UiScrollProgress as UiScrollProgressElement } from "@andespindola/ui-core/dist/components/ui-scroll-progress.js";
25
+ import { UiSection as UiSectionElement } from "@andespindola/ui-core/dist/components/ui-section.js";
26
+ import { UiSelect as UiSelectElement } from "@andespindola/ui-core/dist/components/ui-select.js";
27
+ import { UiSeparator as UiSeparatorElement } from "@andespindola/ui-core/dist/components/ui-separator.js";
28
+ import { UiSkeleton as UiSkeletonElement } from "@andespindola/ui-core/dist/components/ui-skeleton.js";
29
+ import { UiSlider as UiSliderElement } from "@andespindola/ui-core/dist/components/ui-slider.js";
30
+ import { UiSpinner as UiSpinnerElement } from "@andespindola/ui-core/dist/components/ui-spinner.js";
31
+ import { UiSwitch as UiSwitchElement } from "@andespindola/ui-core/dist/components/ui-switch.js";
32
+ import { UiTabs as UiTabsElement } from "@andespindola/ui-core/dist/components/ui-tabs.js";
33
+ import { UiTextarea as UiTextareaElement } from "@andespindola/ui-core/dist/components/ui-textarea.js";
34
+ import { UiThemeToggle as UiThemeToggleElement } from "@andespindola/ui-core/dist/components/ui-theme-toggle.js";
35
+ import { UiToast as UiToastElement } from "@andespindola/ui-core/dist/components/ui-toast.js";
36
+ import { UiToaster as UiToasterElement } from "@andespindola/ui-core/dist/components/ui-toaster.js";
37
+ import { UiTooltip as UiTooltipElement } from "@andespindola/ui-core/dist/components/ui-tooltip.js";
38
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
39
+ type UiAccordionEvents = NonNullable<unknown>;
40
+ export declare const UiAccordion: StencilReactComponent<UiAccordionElement, UiAccordionEvents>;
41
+ type UiAccordionItemEvents = {
42
+ onUiToggle: EventName<CustomEvent<boolean>>;
43
+ };
44
+ export declare const UiAccordionItem: StencilReactComponent<UiAccordionItemElement, UiAccordionItemEvents>;
45
+ type UiAvatarEvents = NonNullable<unknown>;
46
+ export declare const UiAvatar: StencilReactComponent<UiAvatarElement, UiAvatarEvents>;
47
+ type UiBadgeEvents = NonNullable<unknown>;
48
+ export declare const UiBadge: StencilReactComponent<UiBadgeElement, UiBadgeEvents>;
49
+ type UiButtonEvents = NonNullable<unknown>;
50
+ export declare const UiButton: StencilReactComponent<UiButtonElement, UiButtonEvents>;
51
+ type UiCardEvents = NonNullable<unknown>;
52
+ export declare const UiCard: StencilReactComponent<UiCardElement, UiCardEvents>;
53
+ type UiCheckboxEvents = {
54
+ onUiChange: EventName<CustomEvent<boolean>>;
55
+ };
56
+ export declare const UiCheckbox: StencilReactComponent<UiCheckboxElement, UiCheckboxEvents>;
57
+ type UiDialogEvents = {
58
+ onUiClose: EventName<CustomEvent<void>>;
59
+ };
60
+ export declare const UiDialog: StencilReactComponent<UiDialogElement, UiDialogEvents>;
61
+ type UiDrawerEvents = {
62
+ onUiClose: EventName<CustomEvent<void>>;
63
+ };
64
+ export declare const UiDrawer: StencilReactComponent<UiDrawerElement, UiDrawerEvents>;
65
+ type UiDropdownItemEvents = {
66
+ onUiSelect: EventName<CustomEvent<void>>;
67
+ };
68
+ export declare const UiDropdownItem: StencilReactComponent<UiDropdownItemElement, UiDropdownItemEvents>;
69
+ type UiDropdownMenuEvents = {
70
+ onUiOpenChange: EventName<CustomEvent<boolean>>;
71
+ };
72
+ export declare const UiDropdownMenu: StencilReactComponent<UiDropdownMenuElement, UiDropdownMenuEvents>;
73
+ type UiFieldEvents = NonNullable<unknown>;
74
+ export declare const UiField: StencilReactComponent<UiFieldElement, UiFieldEvents>;
75
+ type UiInputEvents = {
76
+ onUiInput: EventName<CustomEvent<string>>;
77
+ onUiChange: EventName<CustomEvent<string>>;
78
+ };
79
+ export declare const UiInput: StencilReactComponent<UiInputElement, UiInputEvents>;
80
+ type UiLabelEvents = NonNullable<unknown>;
81
+ export declare const UiLabel: StencilReactComponent<UiLabelElement, UiLabelEvents>;
82
+ type UiLoadingOverlayEvents = NonNullable<unknown>;
83
+ export declare const UiLoadingOverlay: StencilReactComponent<UiLoadingOverlayElement, UiLoadingOverlayEvents>;
84
+ type UiPopoverEvents = {
85
+ onUiOpenChange: EventName<CustomEvent<boolean>>;
86
+ };
87
+ export declare const UiPopover: StencilReactComponent<UiPopoverElement, UiPopoverEvents>;
88
+ type UiProgressEvents = NonNullable<unknown>;
89
+ export declare const UiProgress: StencilReactComponent<UiProgressElement, UiProgressEvents>;
90
+ type UiRadioGroupEvents = {
91
+ onUiChange: EventName<CustomEvent<string>>;
92
+ };
93
+ export declare const UiRadioGroup: StencilReactComponent<UiRadioGroupElement, UiRadioGroupEvents>;
94
+ type UiRevealEvents = NonNullable<unknown>;
95
+ export declare const UiReveal: StencilReactComponent<UiRevealElement, UiRevealEvents>;
96
+ type UiScrollProgressEvents = NonNullable<unknown>;
97
+ export declare const UiScrollProgress: StencilReactComponent<UiScrollProgressElement, UiScrollProgressEvents>;
98
+ type UiSectionEvents = NonNullable<unknown>;
99
+ export declare const UiSection: StencilReactComponent<UiSectionElement, UiSectionEvents>;
100
+ type UiSelectEvents = {
101
+ onUiChange: EventName<CustomEvent<string>>;
102
+ };
103
+ export declare const UiSelect: StencilReactComponent<UiSelectElement, UiSelectEvents>;
104
+ type UiSeparatorEvents = NonNullable<unknown>;
105
+ export declare const UiSeparator: StencilReactComponent<UiSeparatorElement, UiSeparatorEvents>;
106
+ type UiSkeletonEvents = NonNullable<unknown>;
107
+ export declare const UiSkeleton: StencilReactComponent<UiSkeletonElement, UiSkeletonEvents>;
108
+ type UiSliderEvents = {
109
+ onUiInput: EventName<CustomEvent<number>>;
110
+ onUiChange: EventName<CustomEvent<number>>;
111
+ };
112
+ export declare const UiSlider: StencilReactComponent<UiSliderElement, UiSliderEvents>;
113
+ type UiSpinnerEvents = NonNullable<unknown>;
114
+ export declare const UiSpinner: StencilReactComponent<UiSpinnerElement, UiSpinnerEvents>;
115
+ type UiSwitchEvents = {
116
+ onUiChange: EventName<CustomEvent<boolean>>;
117
+ };
118
+ export declare const UiSwitch: StencilReactComponent<UiSwitchElement, UiSwitchEvents>;
119
+ type UiTabsEvents = {
120
+ onUiChange: EventName<CustomEvent<string>>;
121
+ };
122
+ export declare const UiTabs: StencilReactComponent<UiTabsElement, UiTabsEvents>;
123
+ type UiTextareaEvents = {
124
+ onUiInput: EventName<CustomEvent<string>>;
125
+ onUiChange: EventName<CustomEvent<string>>;
126
+ };
127
+ export declare const UiTextarea: StencilReactComponent<UiTextareaElement, UiTextareaEvents>;
128
+ type UiThemeToggleEvents = {
129
+ onUiThemeChange: EventName<CustomEvent<"light" | "dark">>;
130
+ };
131
+ export declare const UiThemeToggle: StencilReactComponent<UiThemeToggleElement, UiThemeToggleEvents>;
132
+ type UiToastEvents = {
133
+ onUiClose: EventName<CustomEvent<void>>;
134
+ };
135
+ export declare const UiToast: StencilReactComponent<UiToastElement, UiToastEvents>;
136
+ type UiToasterEvents = NonNullable<unknown>;
137
+ export declare const UiToaster: StencilReactComponent<UiToasterElement, UiToasterEvents>;
138
+ type UiTooltipEvents = NonNullable<unknown>;
139
+ export declare const UiTooltip: StencilReactComponent<UiTooltipElement, UiTooltipEvents>;
140
+ export {};
@@ -0,0 +1,314 @@
1
+ 'use client';
2
+ /**
3
+ * This file was automatically generated by the Stencil React Output Target.
4
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
5
+ */
6
+ /* eslint-disable */
7
+ import { UiAccordionItem as UiAccordionItemElement, defineCustomElement as defineUiAccordionItem } from "@andespindola/ui-core/dist/components/ui-accordion-item.js";
8
+ import { UiAccordion as UiAccordionElement, defineCustomElement as defineUiAccordion } from "@andespindola/ui-core/dist/components/ui-accordion.js";
9
+ import { UiAvatar as UiAvatarElement, defineCustomElement as defineUiAvatar } from "@andespindola/ui-core/dist/components/ui-avatar.js";
10
+ import { UiBadge as UiBadgeElement, defineCustomElement as defineUiBadge } from "@andespindola/ui-core/dist/components/ui-badge.js";
11
+ import { UiButton as UiButtonElement, defineCustomElement as defineUiButton } from "@andespindola/ui-core/dist/components/ui-button.js";
12
+ import { UiCard as UiCardElement, defineCustomElement as defineUiCard } from "@andespindola/ui-core/dist/components/ui-card.js";
13
+ import { UiCheckbox as UiCheckboxElement, defineCustomElement as defineUiCheckbox } from "@andespindola/ui-core/dist/components/ui-checkbox.js";
14
+ import { UiDialog as UiDialogElement, defineCustomElement as defineUiDialog } from "@andespindola/ui-core/dist/components/ui-dialog.js";
15
+ import { UiDrawer as UiDrawerElement, defineCustomElement as defineUiDrawer } from "@andespindola/ui-core/dist/components/ui-drawer.js";
16
+ import { UiDropdownItem as UiDropdownItemElement, defineCustomElement as defineUiDropdownItem } from "@andespindola/ui-core/dist/components/ui-dropdown-item.js";
17
+ import { UiDropdownMenu as UiDropdownMenuElement, defineCustomElement as defineUiDropdownMenu } from "@andespindola/ui-core/dist/components/ui-dropdown-menu.js";
18
+ import { UiField as UiFieldElement, defineCustomElement as defineUiField } from "@andespindola/ui-core/dist/components/ui-field.js";
19
+ import { UiInput as UiInputElement, defineCustomElement as defineUiInput } from "@andespindola/ui-core/dist/components/ui-input.js";
20
+ import { UiLabel as UiLabelElement, defineCustomElement as defineUiLabel } from "@andespindola/ui-core/dist/components/ui-label.js";
21
+ import { UiLoadingOverlay as UiLoadingOverlayElement, defineCustomElement as defineUiLoadingOverlay } from "@andespindola/ui-core/dist/components/ui-loading-overlay.js";
22
+ import { UiPopover as UiPopoverElement, defineCustomElement as defineUiPopover } from "@andespindola/ui-core/dist/components/ui-popover.js";
23
+ import { UiProgress as UiProgressElement, defineCustomElement as defineUiProgress } from "@andespindola/ui-core/dist/components/ui-progress.js";
24
+ import { UiRadioGroup as UiRadioGroupElement, defineCustomElement as defineUiRadioGroup } from "@andespindola/ui-core/dist/components/ui-radio-group.js";
25
+ import { UiReveal as UiRevealElement, defineCustomElement as defineUiReveal } from "@andespindola/ui-core/dist/components/ui-reveal.js";
26
+ import { UiScrollProgress as UiScrollProgressElement, defineCustomElement as defineUiScrollProgress } from "@andespindola/ui-core/dist/components/ui-scroll-progress.js";
27
+ import { UiSection as UiSectionElement, defineCustomElement as defineUiSection } from "@andespindola/ui-core/dist/components/ui-section.js";
28
+ import { UiSelect as UiSelectElement, defineCustomElement as defineUiSelect } from "@andespindola/ui-core/dist/components/ui-select.js";
29
+ import { UiSeparator as UiSeparatorElement, defineCustomElement as defineUiSeparator } from "@andespindola/ui-core/dist/components/ui-separator.js";
30
+ import { UiSkeleton as UiSkeletonElement, defineCustomElement as defineUiSkeleton } from "@andespindola/ui-core/dist/components/ui-skeleton.js";
31
+ import { UiSlider as UiSliderElement, defineCustomElement as defineUiSlider } from "@andespindola/ui-core/dist/components/ui-slider.js";
32
+ import { UiSpinner as UiSpinnerElement, defineCustomElement as defineUiSpinner } from "@andespindola/ui-core/dist/components/ui-spinner.js";
33
+ import { UiSwitch as UiSwitchElement, defineCustomElement as defineUiSwitch } from "@andespindola/ui-core/dist/components/ui-switch.js";
34
+ import { UiTabs as UiTabsElement, defineCustomElement as defineUiTabs } from "@andespindola/ui-core/dist/components/ui-tabs.js";
35
+ import { UiTextarea as UiTextareaElement, defineCustomElement as defineUiTextarea } from "@andespindola/ui-core/dist/components/ui-textarea.js";
36
+ import { UiThemeToggle as UiThemeToggleElement, defineCustomElement as defineUiThemeToggle } from "@andespindola/ui-core/dist/components/ui-theme-toggle.js";
37
+ import { UiToast as UiToastElement, defineCustomElement as defineUiToast } from "@andespindola/ui-core/dist/components/ui-toast.js";
38
+ import { UiToaster as UiToasterElement, defineCustomElement as defineUiToaster } from "@andespindola/ui-core/dist/components/ui-toaster.js";
39
+ import { UiTooltip as UiTooltipElement, defineCustomElement as defineUiTooltip } from "@andespindola/ui-core/dist/components/ui-tooltip.js";
40
+ import { createComponent } from '@stencil/react-output-target/runtime';
41
+ import React from 'react';
42
+ export const UiAccordion = /*@__PURE__*/ createComponent({
43
+ tagName: 'ui-accordion',
44
+ elementClass: UiAccordionElement,
45
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
46
+ react: React,
47
+ events: {},
48
+ defineCustomElement: defineUiAccordion
49
+ });
50
+ export const UiAccordionItem = /*@__PURE__*/ createComponent({
51
+ tagName: 'ui-accordion-item',
52
+ elementClass: UiAccordionItemElement,
53
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
54
+ react: React,
55
+ events: { onUiToggle: 'uiToggle' },
56
+ defineCustomElement: defineUiAccordionItem
57
+ });
58
+ export const UiAvatar = /*@__PURE__*/ createComponent({
59
+ tagName: 'ui-avatar',
60
+ elementClass: UiAvatarElement,
61
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
62
+ react: React,
63
+ events: {},
64
+ defineCustomElement: defineUiAvatar
65
+ });
66
+ export const UiBadge = /*@__PURE__*/ createComponent({
67
+ tagName: 'ui-badge',
68
+ elementClass: UiBadgeElement,
69
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
70
+ react: React,
71
+ events: {},
72
+ defineCustomElement: defineUiBadge
73
+ });
74
+ export const UiButton = /*@__PURE__*/ createComponent({
75
+ tagName: 'ui-button',
76
+ elementClass: UiButtonElement,
77
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
78
+ react: React,
79
+ events: {},
80
+ defineCustomElement: defineUiButton
81
+ });
82
+ export const UiCard = /*@__PURE__*/ createComponent({
83
+ tagName: 'ui-card',
84
+ elementClass: UiCardElement,
85
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
86
+ react: React,
87
+ events: {},
88
+ defineCustomElement: defineUiCard
89
+ });
90
+ export const UiCheckbox = /*@__PURE__*/ createComponent({
91
+ tagName: 'ui-checkbox',
92
+ elementClass: UiCheckboxElement,
93
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
94
+ react: React,
95
+ events: { onUiChange: 'uiChange' },
96
+ defineCustomElement: defineUiCheckbox
97
+ });
98
+ export const UiDialog = /*@__PURE__*/ createComponent({
99
+ tagName: 'ui-dialog',
100
+ elementClass: UiDialogElement,
101
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
102
+ react: React,
103
+ events: { onUiClose: 'uiClose' },
104
+ defineCustomElement: defineUiDialog
105
+ });
106
+ export const UiDrawer = /*@__PURE__*/ createComponent({
107
+ tagName: 'ui-drawer',
108
+ elementClass: UiDrawerElement,
109
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
110
+ react: React,
111
+ events: { onUiClose: 'uiClose' },
112
+ defineCustomElement: defineUiDrawer
113
+ });
114
+ export const UiDropdownItem = /*@__PURE__*/ createComponent({
115
+ tagName: 'ui-dropdown-item',
116
+ elementClass: UiDropdownItemElement,
117
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
118
+ react: React,
119
+ events: { onUiSelect: 'uiSelect' },
120
+ defineCustomElement: defineUiDropdownItem
121
+ });
122
+ export const UiDropdownMenu = /*@__PURE__*/ createComponent({
123
+ tagName: 'ui-dropdown-menu',
124
+ elementClass: UiDropdownMenuElement,
125
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
126
+ react: React,
127
+ events: { onUiOpenChange: 'uiOpenChange' },
128
+ defineCustomElement: defineUiDropdownMenu
129
+ });
130
+ export const UiField = /*@__PURE__*/ createComponent({
131
+ tagName: 'ui-field',
132
+ elementClass: UiFieldElement,
133
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
134
+ react: React,
135
+ events: {},
136
+ defineCustomElement: defineUiField
137
+ });
138
+ export const UiInput = /*@__PURE__*/ createComponent({
139
+ tagName: 'ui-input',
140
+ elementClass: UiInputElement,
141
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
142
+ react: React,
143
+ events: {
144
+ onUiInput: 'uiInput',
145
+ onUiChange: 'uiChange'
146
+ },
147
+ defineCustomElement: defineUiInput
148
+ });
149
+ export const UiLabel = /*@__PURE__*/ createComponent({
150
+ tagName: 'ui-label',
151
+ elementClass: UiLabelElement,
152
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
153
+ react: React,
154
+ events: {},
155
+ defineCustomElement: defineUiLabel
156
+ });
157
+ export const UiLoadingOverlay = /*@__PURE__*/ createComponent({
158
+ tagName: 'ui-loading-overlay',
159
+ elementClass: UiLoadingOverlayElement,
160
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
161
+ react: React,
162
+ events: {},
163
+ defineCustomElement: defineUiLoadingOverlay
164
+ });
165
+ export const UiPopover = /*@__PURE__*/ createComponent({
166
+ tagName: 'ui-popover',
167
+ elementClass: UiPopoverElement,
168
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
169
+ react: React,
170
+ events: { onUiOpenChange: 'uiOpenChange' },
171
+ defineCustomElement: defineUiPopover
172
+ });
173
+ export const UiProgress = /*@__PURE__*/ createComponent({
174
+ tagName: 'ui-progress',
175
+ elementClass: UiProgressElement,
176
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
177
+ react: React,
178
+ events: {},
179
+ defineCustomElement: defineUiProgress
180
+ });
181
+ export const UiRadioGroup = /*@__PURE__*/ createComponent({
182
+ tagName: 'ui-radio-group',
183
+ elementClass: UiRadioGroupElement,
184
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
185
+ react: React,
186
+ events: { onUiChange: 'uiChange' },
187
+ defineCustomElement: defineUiRadioGroup
188
+ });
189
+ export const UiReveal = /*@__PURE__*/ createComponent({
190
+ tagName: 'ui-reveal',
191
+ elementClass: UiRevealElement,
192
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
193
+ react: React,
194
+ events: {},
195
+ defineCustomElement: defineUiReveal
196
+ });
197
+ export const UiScrollProgress = /*@__PURE__*/ createComponent({
198
+ tagName: 'ui-scroll-progress',
199
+ elementClass: UiScrollProgressElement,
200
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
201
+ react: React,
202
+ events: {},
203
+ defineCustomElement: defineUiScrollProgress
204
+ });
205
+ export const UiSection = /*@__PURE__*/ createComponent({
206
+ tagName: 'ui-section',
207
+ elementClass: UiSectionElement,
208
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
209
+ react: React,
210
+ events: {},
211
+ defineCustomElement: defineUiSection
212
+ });
213
+ export const UiSelect = /*@__PURE__*/ createComponent({
214
+ tagName: 'ui-select',
215
+ elementClass: UiSelectElement,
216
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
217
+ react: React,
218
+ events: { onUiChange: 'uiChange' },
219
+ defineCustomElement: defineUiSelect
220
+ });
221
+ export const UiSeparator = /*@__PURE__*/ createComponent({
222
+ tagName: 'ui-separator',
223
+ elementClass: UiSeparatorElement,
224
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
225
+ react: React,
226
+ events: {},
227
+ defineCustomElement: defineUiSeparator
228
+ });
229
+ export const UiSkeleton = /*@__PURE__*/ createComponent({
230
+ tagName: 'ui-skeleton',
231
+ elementClass: UiSkeletonElement,
232
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
233
+ react: React,
234
+ events: {},
235
+ defineCustomElement: defineUiSkeleton
236
+ });
237
+ export const UiSlider = /*@__PURE__*/ createComponent({
238
+ tagName: 'ui-slider',
239
+ elementClass: UiSliderElement,
240
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
241
+ react: React,
242
+ events: {
243
+ onUiInput: 'uiInput',
244
+ onUiChange: 'uiChange'
245
+ },
246
+ defineCustomElement: defineUiSlider
247
+ });
248
+ export const UiSpinner = /*@__PURE__*/ createComponent({
249
+ tagName: 'ui-spinner',
250
+ elementClass: UiSpinnerElement,
251
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
252
+ react: React,
253
+ events: {},
254
+ defineCustomElement: defineUiSpinner
255
+ });
256
+ export const UiSwitch = /*@__PURE__*/ createComponent({
257
+ tagName: 'ui-switch',
258
+ elementClass: UiSwitchElement,
259
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
260
+ react: React,
261
+ events: { onUiChange: 'uiChange' },
262
+ defineCustomElement: defineUiSwitch
263
+ });
264
+ export const UiTabs = /*@__PURE__*/ createComponent({
265
+ tagName: 'ui-tabs',
266
+ elementClass: UiTabsElement,
267
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
268
+ react: React,
269
+ events: { onUiChange: 'uiChange' },
270
+ defineCustomElement: defineUiTabs
271
+ });
272
+ export const UiTextarea = /*@__PURE__*/ createComponent({
273
+ tagName: 'ui-textarea',
274
+ elementClass: UiTextareaElement,
275
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
276
+ react: React,
277
+ events: {
278
+ onUiInput: 'uiInput',
279
+ onUiChange: 'uiChange'
280
+ },
281
+ defineCustomElement: defineUiTextarea
282
+ });
283
+ export const UiThemeToggle = /*@__PURE__*/ createComponent({
284
+ tagName: 'ui-theme-toggle',
285
+ elementClass: UiThemeToggleElement,
286
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
287
+ react: React,
288
+ events: { onUiThemeChange: 'uiThemeChange' },
289
+ defineCustomElement: defineUiThemeToggle
290
+ });
291
+ export const UiToast = /*@__PURE__*/ createComponent({
292
+ tagName: 'ui-toast',
293
+ elementClass: UiToastElement,
294
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
295
+ react: React,
296
+ events: { onUiClose: 'uiClose' },
297
+ defineCustomElement: defineUiToast
298
+ });
299
+ export const UiToaster = /*@__PURE__*/ createComponent({
300
+ tagName: 'ui-toaster',
301
+ elementClass: UiToasterElement,
302
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
303
+ react: React,
304
+ events: {},
305
+ defineCustomElement: defineUiToaster
306
+ });
307
+ export const UiTooltip = /*@__PURE__*/ createComponent({
308
+ tagName: 'ui-tooltip',
309
+ elementClass: UiTooltipElement,
310
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
311
+ react: React,
312
+ events: {},
313
+ defineCustomElement: defineUiTooltip
314
+ });
@@ -0,0 +1 @@
1
+ export * from "./components";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./components";
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@andespindola/ui-react",
3
+ "version": "0.1.0",
4
+ "description": "Wrappers React (e Next.js) para os Web Components do design system @andespindola/ui-core.",
5
+ "license": "MIT",
6
+ "author": "Anderson Espindola <andersonfaustinolima@gmail.com>",
7
+ "type": "module",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "files": ["dist", "README.md"],
12
+ "publishConfig": { "access": "public" },
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.json"
15
+ },
16
+ "peerDependencies": {
17
+ "react": ">=18",
18
+ "react-dom": ">=18"
19
+ },
20
+ "dependencies": {
21
+ "@andespindola/ui-core": "0.1.0",
22
+ "@stencil/react-output-target": "^0.8.1"
23
+ },
24
+ "devDependencies": {
25
+ "@types/react": "^18.3.18",
26
+ "@types/react-dom": "^18.3.5",
27
+ "typescript": "^5.7.3"
28
+ }
29
+ }