@iyulab/components 1.2.0 → 1.2.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/CHANGELOG.md +5 -0
- package/README.md +17 -0
- package/dist/react/UAlert.js +2 -2
- package/dist/react/UAvatar.js +2 -2
- package/dist/react/UBadge.js +2 -2
- package/dist/react/UBreadcrumb.js +2 -2
- package/dist/react/UBreadcrumbItem.js +2 -2
- package/dist/react/UButton.js +2 -2
- package/dist/react/UButtonGroup.js +2 -2
- package/dist/react/UCard.js +2 -2
- package/dist/react/UCarousel.js +2 -2
- package/dist/react/UCheckbox.js +2 -2
- package/dist/react/UChip.js +2 -2
- package/dist/react/UDialog.js +2 -2
- package/dist/react/UDivider.js +2 -2
- package/dist/react/UDrawer.js +2 -2
- package/dist/react/UField.js +2 -2
- package/dist/react/UForm.js +2 -2
- package/dist/react/UIcon.js +2 -2
- package/dist/react/UIconButton.js +2 -2
- package/dist/react/UInput.js +2 -2
- package/dist/react/UMenu.js +2 -2
- package/dist/react/UMenuItem.js +2 -2
- package/dist/react/UOption.js +2 -2
- package/dist/react/UPanel.js +2 -2
- package/dist/react/UPopover.js +2 -2
- package/dist/react/UProgressBar.js +2 -2
- package/dist/react/UProgressRing.js +2 -2
- package/dist/react/URadio.js +2 -2
- package/dist/react/URating.js +2 -2
- package/dist/react/USelect.js +2 -2
- package/dist/react/USkeleton.js +2 -2
- package/dist/react/USlider.js +2 -2
- package/dist/react/USpinner.js +2 -2
- package/dist/react/USplitPanel.js +2 -2
- package/dist/react/USwitch.js +2 -2
- package/dist/react/UTab.js +2 -2
- package/dist/react/UTabPanel.js +2 -2
- package/dist/react/UTag.js +2 -2
- package/dist/react/UTextarea.js +2 -2
- package/dist/react/UTooltip.js +2 -2
- package/dist/react/UTree.js +2 -2
- package/dist/react/UTreeItem.js +2 -2
- package/package.json +1 -1
- package/plugins/vite-plugin-react-wrapper.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.1] - 2026-07-02
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `plugins/vite-plugin-react-wrapper.ts`: 생성된 `dist/react/*.js` 래퍼가 `import { X } from '...'`와 `export const X = ...`를 동일 스코프에 선언해 **모든** React 래퍼(및 barrel `@iyulab/components/react`)가 `SyntaxError: Identifier 'X' has already been declared`로 로드 자체가 실패하던 결함 수정. `.d.ts` 템플릿은 이미 `as ${className}Element` 별칭을 썼으나 `.js` 템플릿만 누락되어 있었음 — `.js` 생성기에 동일한 별칭을 적용해 근본 수정. 이 서브패스를 문서화·검증하는 과정에서 발견(README 예시를 실제로 import해보다가 SyntaxError 재현).
|
|
7
|
+
|
|
3
8
|
## [1.2.0] - 2026-07-02
|
|
4
9
|
|
|
5
10
|
### Added
|
package/README.md
CHANGED
|
@@ -21,6 +21,23 @@ import '@iyulab/components/u-button';
|
|
|
21
21
|
import '@iyulab/components/u-input';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
## React
|
|
25
|
+
|
|
26
|
+
React 프로젝트에서는 `@iyulab/components/react` 서브패스가 모든 컴포넌트를 `forwardRef` 래퍼로 제공합니다. Web Component를 직접 다루지 않고도 JSX props(`color`, `size`, 이벤트 `onXxx` 등)로 사용할 수 있습니다.
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { UButton, UInput } from '@iyulab/components/react';
|
|
30
|
+
|
|
31
|
+
function Form() {
|
|
32
|
+
return (
|
|
33
|
+
<>
|
|
34
|
+
<UInput label="Name" />
|
|
35
|
+
<UButton variant="solid" color="primary" size="sm">Submit</UButton>
|
|
36
|
+
</>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
24
41
|
## Skills Usage
|
|
25
42
|
|
|
26
43
|
LLM 코딩 에이전트(Claude Code, GitHub Copilot, Cursor 등)를 위한 스킬을 제공합니다.
|
package/dist/react/UAlert.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UAlert } from '../components/alert/UAlert.js';
|
|
3
|
+
import { UAlert as UAlertElement } from '../components/alert/UAlert.js';
|
|
4
4
|
|
|
5
5
|
export const UAlert = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-alert',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UAlertElement,
|
|
9
9
|
events: {
|
|
10
10
|
onShow: 'show',
|
|
11
11
|
onHide: 'hide',
|
package/dist/react/UAvatar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UAvatar } from '../components/avatar/UAvatar.js';
|
|
3
|
+
import { UAvatar as UAvatarElement } from '../components/avatar/UAvatar.js';
|
|
4
4
|
|
|
5
5
|
export const UAvatar = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-avatar',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UAvatarElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UBadge.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UBadge } from '../components/badge/UBadge.js';
|
|
3
|
+
import { UBadge as UBadgeElement } from '../components/badge/UBadge.js';
|
|
4
4
|
|
|
5
5
|
export const UBadge = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-badge',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UBadgeElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UBreadcrumb } from '../components/breadcrumb/UBreadcrumb.js';
|
|
3
|
+
import { UBreadcrumb as UBreadcrumbElement } from '../components/breadcrumb/UBreadcrumb.js';
|
|
4
4
|
|
|
5
5
|
export const UBreadcrumb = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-breadcrumb',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UBreadcrumbElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UBreadcrumbItem } from '../components/breadcrumb-item/UBreadcrumbItem.js';
|
|
3
|
+
import { UBreadcrumbItem as UBreadcrumbItemElement } from '../components/breadcrumb-item/UBreadcrumbItem.js';
|
|
4
4
|
|
|
5
5
|
export const UBreadcrumbItem = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-breadcrumb-item',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UBreadcrumbItemElement,
|
|
9
9
|
events: {
|
|
10
10
|
onNavigate: 'navigate',
|
|
11
11
|
},
|
package/dist/react/UButton.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UButton } from '../components/button/UButton.js';
|
|
3
|
+
import { UButton as UButtonElement } from '../components/button/UButton.js';
|
|
4
4
|
|
|
5
5
|
export const UButton = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-button',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UButtonElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UButtonGroup } from '../components/button-group/UButtonGroup.js';
|
|
3
|
+
import { UButtonGroup as UButtonGroupElement } from '../components/button-group/UButtonGroup.js';
|
|
4
4
|
|
|
5
5
|
export const UButtonGroup = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-button-group',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UButtonGroupElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UCard.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UCard } from '../components/card/UCard.js';
|
|
3
|
+
import { UCard as UCardElement } from '../components/card/UCard.js';
|
|
4
4
|
|
|
5
5
|
export const UCard = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-card',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UCardElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UCarousel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UCarousel } from '../components/carousel/UCarousel.js';
|
|
3
|
+
import { UCarousel as UCarouselElement } from '../components/carousel/UCarousel.js';
|
|
4
4
|
|
|
5
5
|
export const UCarousel = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-carousel',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UCarouselElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UCheckbox.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UCheckbox } from '../components/checkbox/UCheckbox.js';
|
|
3
|
+
import { UCheckbox as UCheckboxElement } from '../components/checkbox/UCheckbox.js';
|
|
4
4
|
|
|
5
5
|
export const UCheckbox = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-checkbox',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UCheckboxElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UChip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UChip } from '../components/chip/UChip.js';
|
|
3
|
+
import { UChip as UChipElement } from '../components/chip/UChip.js';
|
|
4
4
|
|
|
5
5
|
export const UChip = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-chip',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UChipElement,
|
|
9
9
|
events: {
|
|
10
10
|
onPick: 'pick',
|
|
11
11
|
onRemove: 'remove',
|
package/dist/react/UDialog.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UDialog } from '../components/dialog/UDialog.js';
|
|
3
|
+
import { UDialog as UDialogElement } from '../components/dialog/UDialog.js';
|
|
4
4
|
|
|
5
5
|
export const UDialog = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-dialog',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UDialogElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UDivider.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UDivider } from '../components/divider/UDivider.js';
|
|
3
|
+
import { UDivider as UDividerElement } from '../components/divider/UDivider.js';
|
|
4
4
|
|
|
5
5
|
export const UDivider = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-divider',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UDividerElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UDrawer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UDrawer } from '../components/drawer/UDrawer.js';
|
|
3
|
+
import { UDrawer as UDrawerElement } from '../components/drawer/UDrawer.js';
|
|
4
4
|
|
|
5
5
|
export const UDrawer = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-drawer',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UDrawerElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UField.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UField } from '../components/field/UField.js';
|
|
3
|
+
import { UField as UFieldElement } from '../components/field/UField.js';
|
|
4
4
|
|
|
5
5
|
export const UField = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-field',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UFieldElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UForm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UForm } from '../components/form/UForm.js';
|
|
3
|
+
import { UForm as UFormElement } from '../components/form/UForm.js';
|
|
4
4
|
|
|
5
5
|
export const UForm = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-form',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UFormElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/UIcon.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UIcon } from '../components/icon/UIcon.js';
|
|
3
|
+
import { UIcon as UIconElement } from '../components/icon/UIcon.js';
|
|
4
4
|
|
|
5
5
|
export const UIcon = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-icon',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UIconElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UIconButton } from '../components/icon-button/UIconButton.js';
|
|
3
|
+
import { UIconButton as UIconButtonElement } from '../components/icon-button/UIconButton.js';
|
|
4
4
|
|
|
5
5
|
export const UIconButton = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-icon-button',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UIconButtonElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UInput.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UInput } from '../components/input/UInput.js';
|
|
3
|
+
import { UInput as UInputElement } from '../components/input/UInput.js';
|
|
4
4
|
|
|
5
5
|
export const UInput = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-input',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UInputElement,
|
|
9
9
|
events: {
|
|
10
10
|
onInput: 'input',
|
|
11
11
|
onChange: 'change',
|
package/dist/react/UMenu.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UMenu } from '../components/menu/UMenu.js';
|
|
3
|
+
import { UMenu as UMenuElement } from '../components/menu/UMenu.js';
|
|
4
4
|
|
|
5
5
|
export const UMenu = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-menu',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UMenuElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/UMenuItem.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UMenuItem } from '../components/menu-item/UMenuItem.js';
|
|
3
|
+
import { UMenuItem as UMenuItemElement } from '../components/menu-item/UMenuItem.js';
|
|
4
4
|
|
|
5
5
|
export const UMenuItem = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-menu-item',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UMenuItemElement,
|
|
9
9
|
events: {
|
|
10
10
|
onPick: 'pick',
|
|
11
11
|
},
|
package/dist/react/UOption.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UOption } from '../components/option/UOption.js';
|
|
3
|
+
import { UOption as UOptionElement } from '../components/option/UOption.js';
|
|
4
4
|
|
|
5
5
|
export const UOption = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-option',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UOptionElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UPanel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UPanel } from '../components/panel/UPanel.js';
|
|
3
|
+
import { UPanel as UPanelElement } from '../components/panel/UPanel.js';
|
|
4
4
|
|
|
5
5
|
export const UPanel = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-panel',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UPanelElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UPopover.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UPopover } from '../components/popover/UPopover.js';
|
|
3
|
+
import { UPopover as UPopoverElement } from '../components/popover/UPopover.js';
|
|
4
4
|
|
|
5
5
|
export const UPopover = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-popover',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UPopoverElement,
|
|
9
9
|
events: {
|
|
10
10
|
onShow: 'show',
|
|
11
11
|
onHide: 'hide',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UProgressBar } from '../components/progress-bar/UProgressBar.js';
|
|
3
|
+
import { UProgressBar as UProgressBarElement } from '../components/progress-bar/UProgressBar.js';
|
|
4
4
|
|
|
5
5
|
export const UProgressBar = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-progress-bar',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UProgressBarElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UProgressRing } from '../components/progress-ring/UProgressRing.js';
|
|
3
|
+
import { UProgressRing as UProgressRingElement } from '../components/progress-ring/UProgressRing.js';
|
|
4
4
|
|
|
5
5
|
export const UProgressRing = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-progress-ring',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UProgressRingElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/URadio.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { URadio } from '../components/radio/URadio.js';
|
|
3
|
+
import { URadio as URadioElement } from '../components/radio/URadio.js';
|
|
4
4
|
|
|
5
5
|
export const URadio = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-radio',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: URadioElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/URating.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { URating } from '../components/rating/URating.js';
|
|
3
|
+
import { URating as URatingElement } from '../components/rating/URating.js';
|
|
4
4
|
|
|
5
5
|
export const URating = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-rating',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: URatingElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/USelect.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USelect } from '../components/select/USelect.js';
|
|
3
|
+
import { USelect as USelectElement } from '../components/select/USelect.js';
|
|
4
4
|
|
|
5
5
|
export const USelect = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-select',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USelectElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/USkeleton.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USkeleton } from '../components/skeleton/USkeleton.js';
|
|
3
|
+
import { USkeleton as USkeletonElement } from '../components/skeleton/USkeleton.js';
|
|
4
4
|
|
|
5
5
|
export const USkeleton = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-skeleton',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USkeletonElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/USlider.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USlider } from '../components/slider/USlider.js';
|
|
3
|
+
import { USlider as USliderElement } from '../components/slider/USlider.js';
|
|
4
4
|
|
|
5
5
|
export const USlider = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-slider',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USliderElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/USpinner.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USpinner } from '../components/spinner/USpinner.js';
|
|
3
|
+
import { USpinner as USpinnerElement } from '../components/spinner/USpinner.js';
|
|
4
4
|
|
|
5
5
|
export const USpinner = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-spinner',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USpinnerElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USplitPanel } from '../components/split-panel/USplitPanel.js';
|
|
3
|
+
import { USplitPanel as USplitPanelElement } from '../components/split-panel/USplitPanel.js';
|
|
4
4
|
|
|
5
5
|
export const USplitPanel = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-split-panel',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USplitPanelElement,
|
|
9
9
|
events: {
|
|
10
10
|
onShiftStart: 'shift-start',
|
|
11
11
|
onShift: 'shift',
|
package/dist/react/USwitch.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { USwitch } from '../components/switch/USwitch.js';
|
|
3
|
+
import { USwitch as USwitchElement } from '../components/switch/USwitch.js';
|
|
4
4
|
|
|
5
5
|
export const USwitch = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-switch',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: USwitchElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/UTab.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTab } from '../components/tab/UTab.js';
|
|
3
|
+
import { UTab as UTabElement } from '../components/tab/UTab.js';
|
|
4
4
|
|
|
5
5
|
export const UTab = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tab',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTabElement,
|
|
9
9
|
events: {
|
|
10
10
|
onRemove: 'remove',
|
|
11
11
|
},
|
package/dist/react/UTabPanel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTabPanel } from '../components/tab-panel/UTabPanel.js';
|
|
3
|
+
import { UTabPanel as UTabPanelElement } from '../components/tab-panel/UTabPanel.js';
|
|
4
4
|
|
|
5
5
|
export const UTabPanel = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tab-panel',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTabPanelElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UTag.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTag } from '../components/tag/UTag.js';
|
|
3
|
+
import { UTag as UTagElement } from '../components/tag/UTag.js';
|
|
4
4
|
|
|
5
5
|
export const UTag = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tag',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTagElement,
|
|
9
9
|
events: {},
|
|
10
10
|
});
|
package/dist/react/UTextarea.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTextarea } from '../components/textarea/UTextarea.js';
|
|
3
|
+
import { UTextarea as UTextareaElement } from '../components/textarea/UTextarea.js';
|
|
4
4
|
|
|
5
5
|
export const UTextarea = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-textarea',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTextareaElement,
|
|
9
9
|
events: {
|
|
10
10
|
onInput: 'input',
|
|
11
11
|
onChange: 'change',
|
package/dist/react/UTooltip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTooltip } from '../components/tooltip/UTooltip.js';
|
|
3
|
+
import { UTooltip as UTooltipElement } from '../components/tooltip/UTooltip.js';
|
|
4
4
|
|
|
5
5
|
export const UTooltip = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tooltip',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTooltipElement,
|
|
9
9
|
events: {
|
|
10
10
|
onShow: 'show',
|
|
11
11
|
onHide: 'hide',
|
package/dist/react/UTree.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTree } from '../components/tree/UTree.js';
|
|
3
|
+
import { UTree as UTreeElement } from '../components/tree/UTree.js';
|
|
4
4
|
|
|
5
5
|
export const UTree = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tree',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTreeElement,
|
|
9
9
|
events: {
|
|
10
10
|
onChange: 'change',
|
|
11
11
|
},
|
package/dist/react/UTreeItem.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import { UTreeItem } from '../components/tree-item/UTreeItem.js';
|
|
3
|
+
import { UTreeItem as UTreeItemElement } from '../components/tree-item/UTreeItem.js';
|
|
4
4
|
|
|
5
5
|
export const UTreeItem = createComponent({
|
|
6
6
|
react: React,
|
|
7
7
|
tagName: 'u-tree-item',
|
|
8
|
-
elementClass:
|
|
8
|
+
elementClass: UTreeItemElement,
|
|
9
9
|
events: {
|
|
10
10
|
onExpand: 'expand',
|
|
11
11
|
onCollapse: 'collapse',
|
package/package.json
CHANGED
|
@@ -137,12 +137,12 @@ function writeWrapper(comp, outDir, buildOutDir) {
|
|
|
137
137
|
// .js
|
|
138
138
|
const js = `import React from 'react';
|
|
139
139
|
import { createComponent } from '@lit/react';
|
|
140
|
-
import { ${className} } from '${importPath}';
|
|
140
|
+
import { ${className} as ${className}Element } from '${importPath}';
|
|
141
141
|
|
|
142
142
|
export const ${className} = createComponent({
|
|
143
143
|
react: React,
|
|
144
144
|
tagName: '${tagName}',
|
|
145
|
-
elementClass: ${className},
|
|
145
|
+
elementClass: ${className}Element,
|
|
146
146
|
events: ${eventsObj},
|
|
147
147
|
});
|
|
148
148
|
`;
|