@iyulab/components 1.8.1 → 1.10.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/CHANGELOG.md +35 -0
- package/README.md +8 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -1
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -1
- package/dist/components/UElement.d.ts +1 -4
- package/dist/components/UElement.js +3 -4
- package/dist/components/UFloatingElement.d.ts +5 -0
- package/dist/components/UFloatingElement.js +12 -5
- package/dist/components/UFloatingElement.styles.js +10 -0
- package/dist/components/UFormControlElement.js +2 -2
- package/dist/components/UOverlayElement.d.ts +3 -0
- package/dist/components/UOverlayElement.js +5 -2
- package/dist/components/alert/UAlert.js +2 -2
- package/dist/components/avatar/UAvatar.js +2 -2
- package/dist/components/badge/UBadge.js +2 -2
- package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
- package/dist/components/button/UButton.d.ts +16 -0
- package/dist/components/button/UButton.js +2 -2
- package/dist/components/button/UButton.styles.js +28 -17
- package/dist/components/button-group/UButtonGroup.js +2 -2
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.js +2 -2
- package/dist/components/checkbox/UCheckbox.d.ts +2 -0
- package/dist/components/checkbox/UCheckbox.js +2 -2
- package/dist/components/chip/UChip.js +2 -2
- package/dist/components/copy-button/UCopyButton.js +2 -2
- package/dist/components/dialog/UDialog.js +2 -2
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/drawer/UDrawer.d.ts +1 -1
- package/dist/components/drawer/UDrawer.js +2 -2
- package/dist/components/field/UField.js +2 -2
- package/dist/components/form/UForm.js +2 -2
- package/dist/components/icon/UIcon.js +2 -2
- package/dist/components/icon-button/UIconButton.js +2 -2
- package/dist/components/input/UInput.d.ts +4 -0
- package/dist/components/input/UInput.js +2 -4
- package/dist/components/input/UInput.styles.js +3 -0
- package/dist/components/menu/UMenu.js +2 -3
- package/dist/components/menu-item/UMenuItem.d.ts +2 -0
- package/dist/components/menu-item/UMenuItem.js +3 -2
- package/dist/components/option/UOption.d.ts +2 -0
- package/dist/components/option/UOption.js +2 -2
- package/dist/components/panel/UPanel.js +2 -2
- package/dist/components/popover/UPopover.d.ts +29 -2
- package/dist/components/popover/UPopover.js +25 -3
- package/dist/components/progress-bar/UProgressBar.js +4 -3
- package/dist/components/progress-ring/UProgressRing.js +2 -2
- package/dist/components/radio/URadio.d.ts +3 -0
- package/dist/components/radio/URadio.js +2 -3
- package/dist/components/rating/URating.js +2 -2
- package/dist/components/select/USelect.js +2 -4
- package/dist/components/skeleton/USkeleton.js +2 -2
- package/dist/components/slider/USlider.js +2 -2
- package/dist/components/spinner/USpinner.js +2 -2
- package/dist/components/split-panel/USplitPanel.js +2 -2
- package/dist/components/switch/USwitch.js +2 -2
- package/dist/components/tab/UTab.js +2 -2
- package/dist/components/tab-panel/UTabPanel.d.ts +2 -0
- package/dist/components/tab-panel/UTabPanel.js +2 -2
- package/dist/components/tag/UTag.d.ts +1 -0
- package/dist/components/tag/UTag.js +2 -2
- package/dist/components/textarea/UTextarea.js +2 -2
- package/dist/components/tooltip/UTooltip.js +2 -2
- package/dist/components/tree/UTree.d.ts +6 -0
- package/dist/components/tree/UTree.js +2 -2
- package/dist/components/tree-item/UTreeItem.d.ts +2 -0
- package/dist/components/tree-item/UTreeItem.js +2 -2
- package/dist/react/UAlert.d.ts +1 -0
- package/dist/react/UAvatar.d.ts +1 -0
- package/dist/react/UBadge.d.ts +1 -0
- package/dist/react/UBreadcrumb.d.ts +1 -0
- package/dist/react/UBreadcrumbItem.d.ts +1 -0
- package/dist/react/UButton.d.ts +1 -0
- package/dist/react/UButtonGroup.d.ts +1 -0
- package/dist/react/UCard.d.ts +1 -0
- package/dist/react/UCarousel.d.ts +1 -0
- package/dist/react/UCheckbox.d.ts +1 -0
- package/dist/react/UChip.d.ts +1 -0
- package/dist/react/UCopyButton.d.ts +1 -0
- package/dist/react/UDialog.d.ts +6 -1
- package/dist/react/UDialog.js +4 -1
- package/dist/react/UDivider.d.ts +1 -0
- package/dist/react/UDrawer.d.ts +6 -1
- package/dist/react/UDrawer.js +4 -1
- package/dist/react/UField.d.ts +1 -0
- package/dist/react/UForm.d.ts +1 -0
- package/dist/react/UIcon.d.ts +1 -0
- package/dist/react/UIconButton.d.ts +1 -0
- package/dist/react/UInput.d.ts +1 -0
- package/dist/react/UMenu.d.ts +1 -0
- package/dist/react/UMenuItem.d.ts +1 -0
- package/dist/react/UOption.d.ts +1 -0
- package/dist/react/UPanel.d.ts +1 -0
- package/dist/react/UPopover.d.ts +5 -2
- package/dist/react/UProgressBar.d.ts +1 -0
- package/dist/react/UProgressRing.d.ts +1 -0
- package/dist/react/URadio.d.ts +1 -0
- package/dist/react/URating.d.ts +1 -0
- package/dist/react/USelect.d.ts +1 -0
- package/dist/react/USkeleton.d.ts +1 -0
- package/dist/react/USlider.d.ts +1 -0
- package/dist/react/USpinner.d.ts +1 -0
- package/dist/react/USplitPanel.d.ts +1 -0
- package/dist/react/USwitch.d.ts +1 -0
- package/dist/react/UTab.d.ts +1 -0
- package/dist/react/UTabPanel.d.ts +1 -0
- package/dist/react/UTag.d.ts +1 -0
- package/dist/react/UTextarea.d.ts +1 -0
- package/dist/react/UTooltip.d.ts +5 -2
- package/dist/react/UTree.d.ts +1 -0
- package/dist/react/UTreeItem.d.ts +1 -0
- package/dist/styles/dark.css +1 -0
- package/dist/styles/light.css +1 -0
- package/dist/styles/tokens.css +17 -0
- package/dist/utilities/Theme.js +4 -0
- package/package.json +7 -3
- package/skills/iyulab-components/references/components/popover.md +17 -1
- package/skills/iyulab-components/references/extensions/floating.md +11 -0
- package/plugins/vite-plugin-glob-resolve.d.ts +0 -12
- package/plugins/vite-plugin-glob-resolve.js +0 -66
- package/plugins/vite-plugin-react-wrapper.d.ts +0 -14
- package/plugins/vite-plugin-react-wrapper.js +0 -229
|
@@ -4,6 +4,7 @@ import { UButtonGroup as UButtonGroupElement } from '../components/button-group/
|
|
|
4
4
|
export declare const UButtonGroup: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UButtonGroupElement>, keyof React.HTMLAttributes<UButtonGroupElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UButtonGroupElement>, never>
|
|
7
|
+
& React.RefAttributes<UButtonGroupElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UCard.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UCard as UCardElement } from '../components/card/UCard';
|
|
|
4
4
|
export declare const UCard: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UCardElement>, keyof React.HTMLAttributes<UCardElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UCardElement>, never>
|
|
7
|
+
& React.RefAttributes<UCardElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -4,6 +4,7 @@ import { UCarousel as UCarouselElement } from '../components/carousel/UCarousel'
|
|
|
4
4
|
export declare const UCarousel: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UCarouselElement>, keyof React.HTMLAttributes<UCarouselElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UCarouselElement>, never>
|
|
7
|
+
& React.RefAttributes<UCarouselElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -4,6 +4,7 @@ import { UCheckbox as UCheckboxElement } from '../components/checkbox/UCheckbox'
|
|
|
4
4
|
export declare const UCheckbox: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UCheckboxElement>, keyof React.HTMLAttributes<UCheckboxElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UCheckboxElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<UCheckboxElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/UChip.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { type RemoveEventDetail } from '../events/RemoveEvent';
|
|
|
6
6
|
export declare const UChip: React.ForwardRefExoticComponent<
|
|
7
7
|
Omit<Partial<UChipElement>, keyof React.HTMLAttributes<UChipElement>>
|
|
8
8
|
& Omit<React.HTMLAttributes<UChipElement>, 'onPick' | 'onRemove'>
|
|
9
|
+
& React.RefAttributes<UChipElement>
|
|
9
10
|
& {
|
|
10
11
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
|
11
12
|
onRemove?: (event: CustomEvent<RemoveEventDetail>) => void;
|
|
@@ -4,6 +4,7 @@ import { UCopyButton as UCopyButtonElement } from '../components/copy-button/UCo
|
|
|
4
4
|
export declare const UCopyButton: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UCopyButtonElement>, keyof React.HTMLAttributes<UCopyButtonElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UCopyButtonElement>, 'onCopy'>
|
|
7
|
+
& React.RefAttributes<UCopyButtonElement>
|
|
7
8
|
& {
|
|
8
9
|
onCopy?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/UDialog.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UDialog as UDialogElement } from '../components/dialog/UDialog';
|
|
3
|
+
import { type ShowEventDetail } from '../events/ShowEvent';
|
|
4
|
+
import { type HideEventDetail } from '../events/HideEvent';
|
|
3
5
|
|
|
4
6
|
export declare const UDialog: React.ForwardRefExoticComponent<
|
|
5
7
|
Omit<Partial<UDialogElement>, keyof React.HTMLAttributes<UDialogElement>>
|
|
6
|
-
& Omit<React.HTMLAttributes<UDialogElement>,
|
|
8
|
+
& Omit<React.HTMLAttributes<UDialogElement>, 'onShow' | 'onHide'>
|
|
9
|
+
& React.RefAttributes<UDialogElement>
|
|
7
10
|
& {
|
|
11
|
+
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
12
|
+
onHide?: (event: CustomEvent<HideEventDetail>) => void;
|
|
8
13
|
}
|
|
9
14
|
>;
|
|
10
15
|
|
package/dist/react/UDialog.js
CHANGED
package/dist/react/UDivider.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UDivider as UDividerElement } from '../components/divider/UDivider';
|
|
|
4
4
|
export declare const UDivider: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UDividerElement>, keyof React.HTMLAttributes<UDividerElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UDividerElement>, never>
|
|
7
|
+
& React.RefAttributes<UDividerElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UDrawer.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UDrawer as UDrawerElement } from '../components/drawer/UDrawer';
|
|
3
|
+
import { type ShowEventDetail } from '../events/ShowEvent';
|
|
4
|
+
import { type HideEventDetail } from '../events/HideEvent';
|
|
3
5
|
|
|
4
6
|
export declare const UDrawer: React.ForwardRefExoticComponent<
|
|
5
7
|
Omit<Partial<UDrawerElement>, keyof React.HTMLAttributes<UDrawerElement>>
|
|
6
|
-
& Omit<React.HTMLAttributes<UDrawerElement>,
|
|
8
|
+
& Omit<React.HTMLAttributes<UDrawerElement>, 'onShow' | 'onHide'>
|
|
9
|
+
& React.RefAttributes<UDrawerElement>
|
|
7
10
|
& {
|
|
11
|
+
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
12
|
+
onHide?: (event: CustomEvent<HideEventDetail>) => void;
|
|
8
13
|
}
|
|
9
14
|
>;
|
|
10
15
|
|
package/dist/react/UDrawer.js
CHANGED
package/dist/react/UField.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UField as UFieldElement } from '../components/field/UField';
|
|
|
4
4
|
export declare const UField: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UFieldElement>, keyof React.HTMLAttributes<UFieldElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UFieldElement>, never>
|
|
7
|
+
& React.RefAttributes<UFieldElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UForm.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UForm as UFormElement } from '../components/form/UForm';
|
|
|
4
4
|
export declare const UForm: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UFormElement>, keyof React.HTMLAttributes<UFormElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UFormElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<UFormElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/UIcon.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UIcon as UIconElement } from '../components/icon/UIcon';
|
|
|
4
4
|
export declare const UIcon: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UIconElement>, keyof React.HTMLAttributes<UIconElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UIconElement>, never>
|
|
7
|
+
& React.RefAttributes<UIconElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -4,6 +4,7 @@ import { UIconButton as UIconButtonElement } from '../components/icon-button/UIc
|
|
|
4
4
|
export declare const UIconButton: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UIconButtonElement>, keyof React.HTMLAttributes<UIconButtonElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UIconButtonElement>, never>
|
|
7
|
+
& React.RefAttributes<UIconButtonElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UInput.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UInput as UInputElement } from '../components/input/UInput';
|
|
|
4
4
|
export declare const UInput: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UInputElement>, keyof React.HTMLAttributes<UInputElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UInputElement>, 'onInput' | 'onChange'>
|
|
7
|
+
& React.RefAttributes<UInputElement>
|
|
7
8
|
& {
|
|
8
9
|
onInput?: (event: CustomEvent) => void;
|
|
9
10
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UMenu.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UMenu as UMenuElement } from '../components/menu/UMenu';
|
|
|
4
4
|
export declare const UMenu: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UMenuElement>, keyof React.HTMLAttributes<UMenuElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UMenuElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<UMenuElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
|
@@ -5,6 +5,7 @@ import { type PickEventDetail } from '../events/PickEvent';
|
|
|
5
5
|
export declare const UMenuItem: React.ForwardRefExoticComponent<
|
|
6
6
|
Omit<Partial<UMenuItemElement>, keyof React.HTMLAttributes<UMenuItemElement>>
|
|
7
7
|
& Omit<React.HTMLAttributes<UMenuItemElement>, 'onPick'>
|
|
8
|
+
& React.RefAttributes<UMenuItemElement>
|
|
8
9
|
& {
|
|
9
10
|
onPick?: (event: CustomEvent<PickEventDetail>) => void;
|
|
10
11
|
}
|
package/dist/react/UOption.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UOption as UOptionElement } from '../components/option/UOption';
|
|
|
4
4
|
export declare const UOption: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UOptionElement>, keyof React.HTMLAttributes<UOptionElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UOptionElement>, never>
|
|
7
|
+
& React.RefAttributes<UOptionElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UPanel.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UPanel as UPanelElement } from '../components/panel/UPanel';
|
|
|
4
4
|
export declare const UPanel: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UPanelElement>, keyof React.HTMLAttributes<UPanelElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UPanelElement>, never>
|
|
7
|
+
& React.RefAttributes<UPanelElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/UPopover.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UPopover as UPopoverElement } from '../components/popover/UPopover';
|
|
3
|
+
import { type ShowEventDetail } from '../events/ShowEvent';
|
|
4
|
+
import { type HideEventDetail } from '../events/HideEvent';
|
|
3
5
|
|
|
4
6
|
export declare const UPopover: React.ForwardRefExoticComponent<
|
|
5
7
|
Omit<Partial<UPopoverElement>, keyof React.HTMLAttributes<UPopoverElement>>
|
|
6
8
|
& Omit<React.HTMLAttributes<UPopoverElement>, 'onShow' | 'onHide'>
|
|
9
|
+
& React.RefAttributes<UPopoverElement>
|
|
7
10
|
& {
|
|
8
|
-
onShow?: (event: CustomEvent) => void;
|
|
9
|
-
onHide?: (event: CustomEvent) => void;
|
|
11
|
+
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
12
|
+
onHide?: (event: CustomEvent<HideEventDetail>) => void;
|
|
10
13
|
}
|
|
11
14
|
>;
|
|
12
15
|
|
|
@@ -4,6 +4,7 @@ import { UProgressBar as UProgressBarElement } from '../components/progress-bar/
|
|
|
4
4
|
export declare const UProgressBar: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UProgressBarElement>, keyof React.HTMLAttributes<UProgressBarElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UProgressBarElement>, never>
|
|
7
|
+
& React.RefAttributes<UProgressBarElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -4,6 +4,7 @@ import { UProgressRing as UProgressRingElement } from '../components/progress-ri
|
|
|
4
4
|
export declare const UProgressRing: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UProgressRingElement>, keyof React.HTMLAttributes<UProgressRingElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UProgressRingElement>, never>
|
|
7
|
+
& React.RefAttributes<UProgressRingElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/URadio.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { URadio as URadioElement } from '../components/radio/URadio';
|
|
|
4
4
|
export declare const URadio: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<URadioElement>, keyof React.HTMLAttributes<URadioElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<URadioElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<URadioElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/URating.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { URating as URatingElement } from '../components/rating/URating';
|
|
|
4
4
|
export declare const URating: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<URatingElement>, keyof React.HTMLAttributes<URatingElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<URatingElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<URatingElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/USelect.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { USelect as USelectElement } from '../components/select/USelect';
|
|
|
4
4
|
export declare const USelect: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<USelectElement>, keyof React.HTMLAttributes<USelectElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<USelectElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<USelectElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
|
@@ -4,6 +4,7 @@ import { USkeleton as USkeletonElement } from '../components/skeleton/USkeleton'
|
|
|
4
4
|
export declare const USkeleton: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<USkeletonElement>, keyof React.HTMLAttributes<USkeletonElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<USkeletonElement>, never>
|
|
7
|
+
& React.RefAttributes<USkeletonElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
package/dist/react/USlider.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { USlider as USliderElement } from '../components/slider/USlider';
|
|
|
4
4
|
export declare const USlider: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<USliderElement>, keyof React.HTMLAttributes<USliderElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<USliderElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<USliderElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/USpinner.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { USpinner as USpinnerElement } from '../components/spinner/USpinner';
|
|
|
4
4
|
export declare const USpinner: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<USpinnerElement>, keyof React.HTMLAttributes<USpinnerElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<USpinnerElement>, never>
|
|
7
|
+
& React.RefAttributes<USpinnerElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -5,6 +5,7 @@ import { type ShiftEventDetail } from '../events/ShiftEvent';
|
|
|
5
5
|
export declare const USplitPanel: React.ForwardRefExoticComponent<
|
|
6
6
|
Omit<Partial<USplitPanelElement>, keyof React.HTMLAttributes<USplitPanelElement>>
|
|
7
7
|
& Omit<React.HTMLAttributes<USplitPanelElement>, 'onShiftStart' | 'onShift' | 'onShiftEnd'>
|
|
8
|
+
& React.RefAttributes<USplitPanelElement>
|
|
8
9
|
& {
|
|
9
10
|
onShiftStart?: (event: CustomEvent<ShiftEventDetail>) => void;
|
|
10
11
|
onShift?: (event: CustomEvent<ShiftEventDetail>) => void;
|
package/dist/react/USwitch.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { USwitch as USwitchElement } from '../components/switch/USwitch';
|
|
|
4
4
|
export declare const USwitch: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<USwitchElement>, keyof React.HTMLAttributes<USwitchElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<USwitchElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<USwitchElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/UTab.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { type RemoveEventDetail } from '../events/RemoveEvent';
|
|
|
5
5
|
export declare const UTab: React.ForwardRefExoticComponent<
|
|
6
6
|
Omit<Partial<UTabElement>, keyof React.HTMLAttributes<UTabElement>>
|
|
7
7
|
& Omit<React.HTMLAttributes<UTabElement>, 'onRemove'>
|
|
8
|
+
& React.RefAttributes<UTabElement>
|
|
8
9
|
& {
|
|
9
10
|
onRemove?: (event: CustomEvent<RemoveEventDetail>) => void;
|
|
10
11
|
}
|
|
@@ -4,6 +4,7 @@ import { UTabPanel as UTabPanelElement } from '../components/tab-panel/UTabPanel
|
|
|
4
4
|
export declare const UTabPanel: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UTabPanelElement>, keyof React.HTMLAttributes<UTabPanelElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UTabPanelElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<UTabPanelElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
package/dist/react/UTag.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UTag as UTagElement } from '../components/tag/UTag';
|
|
|
4
4
|
export declare const UTag: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UTagElement>, keyof React.HTMLAttributes<UTagElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UTagElement>, never>
|
|
7
|
+
& React.RefAttributes<UTagElement>
|
|
7
8
|
& {
|
|
8
9
|
}
|
|
9
10
|
>;
|
|
@@ -4,6 +4,7 @@ import { UTextarea as UTextareaElement } from '../components/textarea/UTextarea'
|
|
|
4
4
|
export declare const UTextarea: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UTextareaElement>, keyof React.HTMLAttributes<UTextareaElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UTextareaElement>, 'onInput' | 'onChange'>
|
|
7
|
+
& React.RefAttributes<UTextareaElement>
|
|
7
8
|
& {
|
|
8
9
|
onInput?: (event: CustomEvent) => void;
|
|
9
10
|
onChange?: (event: CustomEvent) => void;
|
package/dist/react/UTooltip.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UTooltip as UTooltipElement } from '../components/tooltip/UTooltip';
|
|
3
|
+
import { type ShowEventDetail } from '../events/ShowEvent';
|
|
4
|
+
import { type HideEventDetail } from '../events/HideEvent';
|
|
3
5
|
|
|
4
6
|
export declare const UTooltip: React.ForwardRefExoticComponent<
|
|
5
7
|
Omit<Partial<UTooltipElement>, keyof React.HTMLAttributes<UTooltipElement>>
|
|
6
8
|
& Omit<React.HTMLAttributes<UTooltipElement>, 'onShow' | 'onHide'>
|
|
9
|
+
& React.RefAttributes<UTooltipElement>
|
|
7
10
|
& {
|
|
8
|
-
onShow?: (event: CustomEvent) => void;
|
|
9
|
-
onHide?: (event: CustomEvent) => void;
|
|
11
|
+
onShow?: (event: CustomEvent<ShowEventDetail>) => void;
|
|
12
|
+
onHide?: (event: CustomEvent<HideEventDetail>) => void;
|
|
10
13
|
}
|
|
11
14
|
>;
|
|
12
15
|
|
package/dist/react/UTree.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { UTree as UTreeElement } from '../components/tree/UTree';
|
|
|
4
4
|
export declare const UTree: React.ForwardRefExoticComponent<
|
|
5
5
|
Omit<Partial<UTreeElement>, keyof React.HTMLAttributes<UTreeElement>>
|
|
6
6
|
& Omit<React.HTMLAttributes<UTreeElement>, 'onChange'>
|
|
7
|
+
& React.RefAttributes<UTreeElement>
|
|
7
8
|
& {
|
|
8
9
|
onChange?: (event: CustomEvent) => void;
|
|
9
10
|
}
|
|
@@ -8,6 +8,7 @@ import { type CheckEventDetail } from '../events/CheckEvent';
|
|
|
8
8
|
export declare const UTreeItem: React.ForwardRefExoticComponent<
|
|
9
9
|
Omit<Partial<UTreeItemElement>, keyof React.HTMLAttributes<UTreeItemElement>>
|
|
10
10
|
& Omit<React.HTMLAttributes<UTreeItemElement>, 'onExpand' | 'onCollapse' | 'onPick' | 'onCheck'>
|
|
11
|
+
& React.RefAttributes<UTreeItemElement>
|
|
11
12
|
& {
|
|
12
13
|
onExpand?: (event: CustomEvent<ExpandEventDetail>) => void;
|
|
13
14
|
onCollapse?: (event: CustomEvent<CollapseEventDetail>) => void;
|
package/dist/styles/dark.css
CHANGED
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
--u-border-color: var(--u-neutral-400);
|
|
156
156
|
--u-border-color-weak: var(--u-neutral-300);
|
|
157
157
|
--u-border-color-strong: var(--u-neutral-500);
|
|
158
|
+
--u-border-color-hover: var(--u-neutral-500);
|
|
158
159
|
|
|
159
160
|
--u-input-border-color: var(--u-neutral-400);
|
|
160
161
|
--u-input-border-color-hover: var(--u-neutral-500);
|
package/dist/styles/light.css
CHANGED
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
--u-border-color: var(--u-neutral-300);
|
|
156
156
|
--u-border-color-weak: var(--u-neutral-200);
|
|
157
157
|
--u-border-color-strong: var(--u-neutral-400);
|
|
158
|
+
--u-border-color-hover: var(--u-neutral-400);
|
|
158
159
|
|
|
159
160
|
--u-input-border-color: var(--u-neutral-300);
|
|
160
161
|
--u-input-border-color-hover: var(--u-neutral-400);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* 디자인 토큰 한 장 — 라이트 + 다크.
|
|
3
|
+
*
|
|
4
|
+
* import '@iyulab/components/styles/tokens.css';
|
|
5
|
+
*
|
|
6
|
+
* `Theme.init()` 을 부르지 않는 소비자를 위한 **정적 진입점**이다. 토큰이 없으면 컴포넌트
|
|
7
|
+
* 시트의 `var(--u-…)` 가 전부 무효가 되어 테두리·배경이 에러 없이 사라진다.
|
|
8
|
+
*
|
|
9
|
+
* 다크는 `:root[theme="dark"]` 로 스코프돼 있어 두 시트가 안전하게 공존한다 —
|
|
10
|
+
* `<html theme="dark">` 일 때만 활성화된다. 테마 전환/저장/시스템 감지가 필요하면
|
|
11
|
+
* `Theme.init()` 을 쓰면 되고, 그 경우 이 파일은 필요 없다(중복 정의는 무해하다).
|
|
12
|
+
*
|
|
13
|
+
* ⚠ 이 파일은 `Theme.init()` 이 인라인하는 번들에서 제외된다(Theme.ts 의 glob 참조) —
|
|
14
|
+
* 인라인된 `<style>` 안에서는 아래 상대 `@import` 가 문서 기준으로 해석돼 깨진다.
|
|
15
|
+
*/
|
|
16
|
+
@import './light.css';
|
|
17
|
+
@import './dark.css';
|
package/dist/utilities/Theme.js
CHANGED
|
@@ -5,6 +5,10 @@ import light_css_default from "../_virtual/_glob-assets_raw/light.css.637cb2f8.j
|
|
|
5
5
|
/**
|
|
6
6
|
* 스타일 시트 번들 로드, 내부 자산에서 CSS를 인라인으로 가져옵니다.
|
|
7
7
|
* 빌드 시점에 정적 파일을 포함시키기 위해 vite의 `import.meta.glob`을 사용합니다.
|
|
8
|
+
*
|
|
9
|
+
* ⚠ 대상을 `{light,dark}` 로 **명시**한다. `*.css` 로 두면 정적 진입점용 `tokens.css`
|
|
10
|
+
* (light/dark 를 `@import` 하는 한 장)까지 인라인돼, `<style>` 안의 상대 `@import` 가
|
|
11
|
+
* 문서 기준으로 해석되면서 깨진다.
|
|
8
12
|
*/
|
|
9
13
|
var internalStyleBundle = Object.entries(/* #__PURE__ */ Object.assign({
|
|
10
14
|
"../assets/styles/dark.css": dark_css_default,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/components",
|
|
3
3
|
"description": "web-components library based on lit-element made by iyulab",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"components",
|
|
@@ -44,8 +44,11 @@
|
|
|
44
44
|
"test:browser": "vitest run --project=browser",
|
|
45
45
|
"lint": "eslint src/",
|
|
46
46
|
"lint:fix": "eslint src/ --fix",
|
|
47
|
-
"build
|
|
48
|
-
"
|
|
47
|
+
"build": "eslint && npm run typecheck:plugins && vite build && npm run test:react-types",
|
|
48
|
+
"test:react-types": "tsc -p tsconfig.react-smoke.json",
|
|
49
|
+
"typecheck:plugins": "tsc -p plugins/tsconfig.json",
|
|
50
|
+
"docs:cssprops": "node scripts/cssprops-doc.mjs --write",
|
|
51
|
+
"docs:react-events": "node scripts/react-events-doc.mjs --write"
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
54
|
"@floating-ui/dom": "^1.8.0",
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
"devDependencies": {
|
|
68
71
|
"@eslint/js": "^9.39.4",
|
|
69
72
|
"@types/node": "^26.1.1",
|
|
73
|
+
"@types/react": "^19.2.14",
|
|
70
74
|
"@vitest/browser-playwright": "^4.1.10",
|
|
71
75
|
"eslint": "^9.39.4",
|
|
72
76
|
"eslint-plugin-lit": "^2.3.1",
|
|
@@ -45,9 +45,25 @@ Inherits all `UFloatingElement` properties (see [floating.md](../extensions/floa
|
|
|
45
45
|
| `showDelay` | `number` | `0` | — | Open delay in ms |
|
|
46
46
|
| `hideDelay` | `number` | `0` | — | Close delay in ms |
|
|
47
47
|
| `trigger` | `'click'\|'contextmenu'\|'hover'\|'focus'\|'manual'` | `'click'` | ✓ | Open trigger |
|
|
48
|
-
| `dismiss` | `string[]` | `['click','escape','scroll','resize']` | ✓ | Close triggers |
|
|
48
|
+
| `dismiss` | `string[]` | `['click','escape','scroll','resize']` | ✓ | Close triggers — see note below |
|
|
49
49
|
| `autofocus` | `boolean` | `false` | ✓ | Focus first focusable element on open |
|
|
50
50
|
|
|
51
|
+
### `dismiss` semantics
|
|
52
|
+
|
|
53
|
+
`click` and `escape` express user intent and always close the popover.
|
|
54
|
+
|
|
55
|
+
`scroll` and `resize` are viewport-geometry changes and **only close the popover when it is
|
|
56
|
+
anchored to a coordinate** — i.e. the virtual anchor created by `trigger="contextmenu"`, whose
|
|
57
|
+
`clientX`/`clientY` stop matching whatever they pointed at once the page reflows.
|
|
58
|
+
|
|
59
|
+
A popover anchored to a **real element** is not closed by scrolling or resizing: `autoUpdate`
|
|
60
|
+
keeps it pinned to its anchor. If the anchor scrolls out of its clipping area entirely, the
|
|
61
|
+
popover is *hidden* rather than closed (see `anchor-hidden` in
|
|
62
|
+
[extensions/floating.md](../extensions/floating.md)) and returns when the anchor comes back.
|
|
63
|
+
|
|
64
|
+
> Before 1.8.2 `scroll`/`resize` closed unconditionally, which contradicted `autoUpdate` and
|
|
65
|
+
> collapsed open `u-select`/`u-input` listboxes on any page scroll.
|
|
66
|
+
|
|
51
67
|
## Events
|
|
52
68
|
|
|
53
69
|
| Event | Cancelable | Description |
|
|
@@ -45,6 +45,17 @@ export class MyDropdown extends UFloatingElement {
|
|
|
45
45
|
| `showDelay` | `number` | `0` | — | Open delay (ms) |
|
|
46
46
|
| `hideDelay` | `number` | `0` | — | Close delay (ms) |
|
|
47
47
|
|
|
48
|
+
## Derived state
|
|
49
|
+
|
|
50
|
+
| Attribute | Description |
|
|
51
|
+
|-----------|-------------|
|
|
52
|
+
| `anchor-hidden` | **Read-only — do not set.** Applied automatically while the anchor is fully outside its clipping area (scroll container or viewport). The element is hidden but **not closed** (`open` stays `true`) and returns as soon as the anchor is visible again. Available as a style hook: `my-dropdown[anchor-hidden] { … }` |
|
|
53
|
+
|
|
54
|
+
This matters most with `strategy="fixed"`, which is used precisely so the floating element
|
|
55
|
+
escapes `overflow` ancestor clipping — without `anchor-hidden` the panel would keep covering
|
|
56
|
+
unrelated content after its anchor scrolled out of the panel. Backed by the `hide` middleware
|
|
57
|
+
of `@floating-ui/dom`. Added in 1.8.2.
|
|
58
|
+
|
|
48
59
|
## Methods
|
|
49
60
|
|
|
50
61
|
| Method | Returns | Description |
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Rolldown의 preserveModules 모드에서 import.meta.glob의 query 옵션 사용 시
|
|
4
|
-
* 빈 export가 생성되는 문제를 해결하는 플러그인.
|
|
5
|
-
*
|
|
6
|
-
* - `?raw`: 파일 내용을 문자열로 반환
|
|
7
|
-
* - `?inline`: 파일 내용을 문자열로 반환
|
|
8
|
-
* - `?url`: 파일을 asset으로 emit하고 URL을 반환
|
|
9
|
-
*
|
|
10
|
-
* 가상 모듈(\0 prefix)로 변환하여 파일명에 `?`가 포함되는 것을 방지합니다.
|
|
11
|
-
*/
|
|
12
|
-
export default function globResolve(): Plugin;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { resolve, dirname, basename } from 'path';
|
|
3
|
-
import { createHash } from 'crypto';
|
|
4
|
-
const VIRTUAL_PREFIX = '\0glob-assets';
|
|
5
|
-
const SUPPORTED_QUERIES = ['?raw', '?inline', '?url'];
|
|
6
|
-
function shortHash(input) {
|
|
7
|
-
return createHash('md5').update(input).digest('hex').slice(0, 8);
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Rolldown의 preserveModules 모드에서 import.meta.glob의 query 옵션 사용 시
|
|
11
|
-
* 빈 export가 생성되는 문제를 해결하는 플러그인.
|
|
12
|
-
*
|
|
13
|
-
* - `?raw`: 파일 내용을 문자열로 반환
|
|
14
|
-
* - `?inline`: 파일 내용을 문자열로 반환
|
|
15
|
-
* - `?url`: 파일을 asset으로 emit하고 URL을 반환
|
|
16
|
-
*
|
|
17
|
-
* 가상 모듈(\0 prefix)로 변환하여 파일명에 `?`가 포함되는 것을 방지합니다.
|
|
18
|
-
*/
|
|
19
|
-
export default function globResolve() {
|
|
20
|
-
const idToAbsPath = new Map();
|
|
21
|
-
return {
|
|
22
|
-
name: 'vite:glob-resolve',
|
|
23
|
-
enforce: 'pre',
|
|
24
|
-
resolveId(source, importer) {
|
|
25
|
-
for (const query of SUPPORTED_QUERIES) {
|
|
26
|
-
if (source.endsWith(query)) {
|
|
27
|
-
const rawPath = source.slice(0, -query.length);
|
|
28
|
-
const absPath = importer
|
|
29
|
-
? resolve(dirname(importer), rawPath)
|
|
30
|
-
: rawPath;
|
|
31
|
-
const name = basename(absPath);
|
|
32
|
-
const hash = shortHash(absPath);
|
|
33
|
-
const queryName = query.slice(1);
|
|
34
|
-
const virtualId = `${VIRTUAL_PREFIX}_${queryName}/${name}.${hash}`;
|
|
35
|
-
idToAbsPath.set(virtualId, absPath);
|
|
36
|
-
return virtualId;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
40
|
-
},
|
|
41
|
-
load(id) {
|
|
42
|
-
if (!id.startsWith(VIRTUAL_PREFIX))
|
|
43
|
-
return null;
|
|
44
|
-
const absPath = idToAbsPath.get(id);
|
|
45
|
-
if (!absPath)
|
|
46
|
-
return null;
|
|
47
|
-
// virtualId에서 queryName 추출: "\0glob-assets_{queryName}/..."
|
|
48
|
-
const queryName = id.slice(VIRTUAL_PREFIX.length + 1).split('/')[0];
|
|
49
|
-
if (queryName === 'raw' || queryName === 'inline') {
|
|
50
|
-
const content = readFileSync(absPath, 'utf-8');
|
|
51
|
-
return `export default ${JSON.stringify(content)};`;
|
|
52
|
-
}
|
|
53
|
-
if (queryName === 'url') {
|
|
54
|
-
const source = readFileSync(absPath);
|
|
55
|
-
const fileName = basename(absPath);
|
|
56
|
-
const ref = this.emitFile({
|
|
57
|
-
type: 'asset',
|
|
58
|
-
name: fileName,
|
|
59
|
-
source,
|
|
60
|
-
});
|
|
61
|
-
return `export default import.meta.ROLLUP_FILE_URL_${ref};`;
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from 'vite';
|
|
2
|
-
interface PluginOptions {
|
|
3
|
-
/** 컴포넌트 소스 디렉토리 경로 (기본값: 'src/components') */
|
|
4
|
-
input?: string;
|
|
5
|
-
/** React 래퍼 출력 폴더 - 빌드 outDir 기준 상대 경로 (기본값: 'react') */
|
|
6
|
-
output?: string;
|
|
7
|
-
/** 래퍼 생성에서 제외할 glob 패턴 목록 (cwd: 프로젝트 루트) */
|
|
8
|
-
exclude?: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Lit Element 컴포넌트를 React 래퍼로 자동 생성하는 Vite 플러그인
|
|
12
|
-
*/
|
|
13
|
-
export default function reactWrapperPlugin(options: PluginOptions): Plugin;
|
|
14
|
-
export {};
|