@iyulab/components 0.4.0 → 1.0.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 +44 -0
- package/README.md +42 -236
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js +6 -0
- package/dist/_virtual/_glob-assets_raw/bell-fill.svg.d37c41d9.js +4 -0
- package/dist/_virtual/_glob-assets_raw/check-circle-fill.svg.51c33a2a.js +4 -0
- package/dist/_virtual/_glob-assets_raw/check-lg.svg.371c5e78.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-down.svg.0ccd06ea.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-left.svg.b4601050.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-right.svg.0711bb67.js +4 -0
- package/dist/_virtual/_glob-assets_raw/chevron-up.svg.ed917211.js +4 -0
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/dash-lg.svg.b40b8b3a.js +4 -0
- package/dist/_virtual/_glob-assets_raw/exclamation-circle-fill.svg.dc8c523e.js +4 -0
- package/dist/_virtual/_glob-assets_raw/exclamation-triangle-fill.svg.7949d2c7.js +4 -0
- package/dist/_virtual/_glob-assets_raw/eye-slash.svg.240afafa.js +4 -0
- package/dist/_virtual/_glob-assets_raw/eye.svg.2e5e9c4c.js +4 -0
- package/dist/_virtual/_glob-assets_raw/info-circle-fill.svg.6580071d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +4 -0
- package/dist/_virtual/_glob-assets_raw/plus-lg.svg.294e9073.js +4 -0
- package/dist/_virtual/_glob-assets_raw/search.svg.0ba2012d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/star-fill.svg.f24b5a2d.js +4 -0
- package/dist/_virtual/_glob-assets_raw/star.svg.4af61468.js +4 -0
- package/dist/_virtual/_glob-assets_raw/three-dots-vertical.svg.9fee78c5.js +4 -0
- package/dist/_virtual/_glob-assets_raw/three-dots.svg.6a7a5b23.js +4 -0
- package/dist/_virtual/_glob-assets_raw/x-lg.svg.f34b882c.js +4 -0
- package/dist/components/{UJsonElement.d.ts → UDataElement.d.ts} +3 -5
- package/dist/components/UDataElement.js +101 -0
- package/dist/components/{UJsonElement.styles.js → UDataElement.styles.js} +4 -4
- package/dist/components/UElement.d.ts +18 -23
- package/dist/components/UElement.js +82 -95
- package/dist/components/UElement.styles.js +43 -4
- package/dist/components/UFloatingElement.d.ts +69 -48
- package/dist/components/UFloatingElement.js +236 -193
- package/dist/components/UFloatingElement.styles.d.ts +8 -0
- package/dist/components/UFloatingElement.styles.js +28 -5
- package/dist/components/UFormControlElement.d.ts +57 -0
- package/dist/components/UFormControlElement.js +68 -0
- package/dist/components/UFormControlElement.styles.js +14 -0
- package/dist/components/UOverlayElement.d.ts +66 -0
- package/dist/components/UOverlayElement.js +123 -0
- package/dist/components/UOverlayElement.styles.d.ts +1 -0
- package/dist/components/UOverlayElement.styles.js +35 -0
- package/dist/components/alert/UAlert.d.ts +58 -3
- package/dist/components/alert/UAlert.js +115 -4
- package/dist/components/alert/UAlert.styles.js +73 -48
- package/dist/components/avatar/UAvatar.d.ts +27 -0
- package/dist/components/avatar/UAvatar.js +42 -0
- package/dist/components/avatar/UAvatar.styles.d.ts +1 -0
- package/dist/components/avatar/UAvatar.styles.js +45 -0
- package/dist/components/badge/UBadge.d.ts +28 -0
- package/dist/components/badge/UBadge.js +40 -0
- package/dist/components/badge/UBadge.styles.d.ts +1 -0
- package/dist/components/badge/UBadge.styles.js +113 -0
- package/dist/components/breadcrumb/UBreadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/UBreadcrumb.js +65 -0
- package/dist/components/breadcrumb/UBreadcrumb.styles.d.ts +1 -0
- package/dist/components/breadcrumb/UBreadcrumb.styles.js +37 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.d.ts +30 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +52 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.d.ts +1 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +41 -0
- package/dist/components/button/UButton.d.ts +46 -3
- package/dist/components/button/UButton.js +104 -4
- package/dist/components/button/UButton.styles.js +121 -48
- package/dist/components/button-group/UButtonGroup.d.ts +28 -0
- package/dist/components/button-group/UButtonGroup.js +93 -0
- package/dist/components/button-group/UButtonGroup.styles.d.ts +1 -0
- package/dist/components/button-group/UButtonGroup.styles.js +34 -0
- package/dist/components/card/UCard.d.ts +30 -3
- package/dist/components/card/UCard.js +61 -4
- package/dist/components/card/UCard.styles.js +13 -12
- package/dist/components/carousel/UCarousel.d.ts +65 -3
- package/dist/components/carousel/UCarousel.js +219 -2
- package/dist/components/carousel/UCarousel.styles.js +17 -17
- package/dist/components/checkbox/UCheckbox.d.ts +39 -0
- package/dist/components/checkbox/UCheckbox.js +88 -0
- package/dist/components/checkbox/UCheckbox.styles.d.ts +1 -0
- package/dist/components/checkbox/UCheckbox.styles.js +211 -0
- package/dist/components/chip/UChip.d.ts +43 -0
- package/dist/components/chip/UChip.js +103 -0
- package/dist/components/chip/UChip.styles.d.ts +1 -0
- package/dist/components/chip/UChip.styles.js +31 -0
- package/dist/components/dialog/UDialog.d.ts +29 -2
- package/dist/components/dialog/UDialog.js +66 -4
- package/dist/components/dialog/UDialog.styles.js +90 -39
- package/dist/components/divider/UDivider.d.ts +27 -2
- package/dist/components/divider/UDivider.js +45 -4
- package/dist/components/divider/UDivider.styles.js +80 -10
- package/dist/components/drawer/UDrawer.d.ts +25 -3
- package/dist/components/drawer/UDrawer.js +54 -4
- package/dist/components/drawer/UDrawer.styles.js +67 -60
- package/dist/components/field/UField.d.ts +31 -0
- package/dist/components/field/UField.js +64 -0
- package/dist/components/field/UField.styles.d.ts +1 -0
- package/dist/components/field/UField.styles.js +47 -0
- package/dist/components/form/UForm.d.ts +38 -2
- package/dist/components/form/UForm.js +105 -4
- package/dist/components/form/UForm.styles.js +5 -5
- package/dist/components/icon/UIcon.d.ts +23 -4
- package/dist/components/icon/UIcon.js +55 -4
- package/dist/components/icon/UIcon.styles.js +5 -5
- package/dist/components/icon-button/UIconButton.d.ts +48 -0
- package/dist/components/icon-button/UIconButton.js +88 -0
- package/dist/components/icon-button/UIconButton.styles.d.ts +1 -0
- package/dist/components/icon-button/UIconButton.styles.js +24 -0
- package/dist/components/input/UInput.d.ts +95 -3
- package/dist/components/input/UInput.js +258 -2
- package/dist/components/input/UInput.styles.js +120 -86
- package/dist/components/menu/UMenu.d.ts +41 -3
- package/dist/components/menu/UMenu.js +178 -4
- package/dist/components/menu/UMenu.styles.js +16 -30
- package/dist/components/menu-item/UMenuItem.d.ts +48 -2
- package/dist/components/menu-item/UMenuItem.js +159 -2
- package/dist/components/menu-item/UMenuItem.styles.js +120 -34
- package/dist/components/option/UOption.d.ts +42 -0
- package/dist/components/option/UOption.js +64 -0
- package/dist/components/option/UOption.styles.d.ts +1 -0
- package/dist/components/option/UOption.styles.js +132 -0
- package/dist/components/panel/UPanel.d.ts +22 -0
- package/dist/components/panel/UPanel.js +36 -0
- package/dist/components/panel/UPanel.styles.d.ts +1 -0
- package/dist/components/panel/UPanel.styles.js +14 -0
- package/dist/components/popover/UPopover.d.ts +69 -0
- package/dist/components/popover/UPopover.js +235 -0
- package/dist/components/popover/UPopover.styles.d.ts +1 -0
- package/dist/components/popover/UPopover.styles.js +9 -0
- package/dist/components/progress-bar/UProgressBar.d.ts +46 -2
- package/dist/components/progress-bar/UProgressBar.js +94 -2
- package/dist/components/progress-bar/UProgressBar.styles.js +110 -36
- package/dist/components/progress-ring/UProgressRing.d.ts +46 -3
- package/dist/components/progress-ring/UProgressRing.js +152 -2
- package/dist/components/progress-ring/UProgressRing.styles.js +88 -25
- package/dist/components/radio/URadio.d.ts +41 -0
- package/dist/components/radio/URadio.js +151 -0
- package/dist/components/radio/URadio.styles.d.ts +1 -0
- package/dist/components/radio/URadio.styles.js +111 -0
- package/dist/components/rating/URating.d.ts +48 -0
- package/dist/components/rating/URating.js +196 -0
- package/dist/components/rating/URating.styles.d.ts +1 -0
- package/dist/components/rating/URating.styles.js +55 -0
- package/dist/components/select/USelect.d.ts +70 -0
- package/dist/components/select/USelect.js +315 -0
- package/dist/components/select/USelect.styles.d.ts +1 -0
- package/dist/components/select/USelect.styles.js +200 -0
- package/dist/components/skeleton/USkeleton.d.ts +27 -3
- package/dist/components/skeleton/USkeleton.js +37 -4
- package/dist/components/skeleton/USkeleton.styles.js +15 -18
- package/dist/components/slider/USlider.d.ts +88 -0
- package/dist/components/slider/USlider.js +286 -0
- package/dist/components/slider/USlider.styles.d.ts +1 -0
- package/dist/components/slider/USlider.styles.js +125 -0
- package/dist/components/spinner/USpinner.d.ts +23 -2
- package/dist/components/spinner/USpinner.js +37 -3
- package/dist/components/spinner/USpinner.styles.js +34 -13
- package/dist/components/split-panel/USplitPanel.d.ts +49 -2
- package/dist/components/split-panel/USplitPanel.js +239 -3
- package/dist/components/split-panel/USplitPanel.styles.js +47 -15
- package/dist/components/switch/USwitch.d.ts +43 -0
- package/dist/components/switch/USwitch.js +80 -0
- package/dist/components/switch/USwitch.styles.d.ts +1 -0
- package/dist/components/switch/USwitch.styles.js +191 -0
- package/dist/components/tab/UTab.d.ts +31 -0
- package/dist/components/tab/UTab.js +68 -0
- package/dist/components/tab/UTab.styles.d.ts +1 -0
- package/dist/components/tab/UTab.styles.js +46 -0
- package/dist/components/tab-panel/UTabPanel.d.ts +45 -0
- package/dist/components/tab-panel/UTabPanel.js +150 -0
- package/dist/components/tab-panel/UTabPanel.styles.d.ts +1 -0
- package/dist/components/tab-panel/UTabPanel.styles.js +201 -0
- package/dist/components/tag/UTag.d.ts +26 -3
- package/dist/components/tag/UTag.js +41 -4
- package/dist/components/tag/UTag.styles.js +206 -60
- package/dist/components/textarea/UTextarea.d.ts +65 -0
- package/dist/components/textarea/UTextarea.js +145 -0
- package/dist/components/textarea/UTextarea.styles.d.ts +1 -0
- package/dist/components/textarea/UTextarea.styles.js +157 -0
- package/dist/components/tooltip/UTooltip.d.ts +28 -2
- package/dist/components/tooltip/UTooltip.js +104 -4
- package/dist/components/tooltip/UTooltip.styles.js +10 -12
- package/dist/components/tree/UTree.d.ts +62 -2
- package/dist/components/tree/UTree.js +308 -3
- package/dist/components/tree/UTree.styles.js +13 -19
- package/dist/components/tree-item/UTreeItem.d.ts +61 -2
- package/dist/components/tree-item/UTreeItem.js +191 -2
- package/dist/components/tree-item/UTreeItem.styles.js +96 -37
- package/dist/events/CheckEvent.d.ts +7 -0
- package/dist/events/CollapseEvent.d.ts +7 -0
- package/dist/events/ExpandEvent.d.ts +7 -0
- package/dist/events/HideEvent.d.ts +7 -0
- package/dist/events/NavigateEvent.d.ts +7 -0
- package/dist/events/PickEvent.d.ts +18 -0
- package/dist/events/RemoveEvent.d.ts +7 -0
- package/dist/events/ShiftEvent.d.ts +16 -0
- package/dist/events/ShowEvent.d.ts +7 -0
- package/dist/index.d.ts +37 -10
- package/dist/index.js +56 -52
- package/dist/react/UAlert.d.ts +13 -0
- package/dist/{react-components → react}/UAlert.js +5 -2
- package/dist/react/UAvatar.d.ts +9 -0
- package/dist/react/UAvatar.js +10 -0
- package/dist/react/UBadge.d.ts +9 -0
- package/dist/react/UBadge.js +10 -0
- package/dist/react/UBreadcrumb.d.ts +9 -0
- package/dist/react/UBreadcrumb.js +10 -0
- package/dist/react/UBreadcrumbItem.d.ts +11 -0
- package/dist/react/UBreadcrumbItem.js +12 -0
- package/dist/{react-components → react}/UButton.d.ts +3 -2
- package/dist/{react-components → react}/UButton.js +2 -2
- package/dist/react/UButtonGroup.d.ts +9 -0
- package/dist/react/UButtonGroup.js +10 -0
- package/dist/{react-components → react}/UCard.d.ts +3 -2
- package/dist/{react-components → react}/UCard.js +2 -2
- package/dist/{react-components → react}/UCarousel.d.ts +3 -2
- package/dist/{react-components → react}/UCarousel.js +2 -2
- package/dist/react/UCheckbox.d.ts +9 -0
- package/dist/react/UCheckbox.js +10 -0
- package/dist/react/UChip.d.ts +13 -0
- package/dist/react/UChip.js +13 -0
- package/dist/{react-components → react}/UDialog.d.ts +3 -2
- package/dist/{react-components → react}/UDialog.js +2 -2
- package/dist/{react-components → react}/UDivider.d.ts +3 -2
- package/dist/{react-components → react}/UDivider.js +2 -2
- package/dist/{react-components → react}/UDrawer.d.ts +3 -2
- package/dist/{react-components → react}/UDrawer.js +2 -2
- package/dist/react/UField.d.ts +9 -0
- package/dist/react/UField.js +10 -0
- package/dist/react/UForm.d.ts +10 -0
- package/dist/{react-components → react}/UForm.js +4 -2
- package/dist/{react-components → react}/UIcon.d.ts +3 -2
- package/dist/{react-components → react}/UIcon.js +2 -2
- package/dist/react/UIconButton.d.ts +9 -0
- package/dist/react/UIconButton.js +10 -0
- package/dist/react/UInput.d.ts +11 -0
- package/dist/{react-components → react}/UInput.js +5 -2
- package/dist/react/UMenu.d.ts +10 -0
- package/dist/{react-components → react}/UMenu.js +4 -2
- package/dist/react/UMenuItem.d.ts +11 -0
- package/dist/{react-components → react}/UMenuItem.js +4 -2
- package/dist/react/UOption.d.ts +9 -0
- package/dist/react/UOption.js +10 -0
- package/dist/react/UPanel.d.ts +9 -0
- package/dist/react/UPanel.js +10 -0
- package/dist/react/UPopover.d.ts +11 -0
- package/dist/react/UPopover.js +13 -0
- package/dist/react/UProgressBar.d.ts +9 -0
- package/dist/{react-components → react}/UProgressBar.js +2 -2
- package/dist/react/UProgressRing.d.ts +9 -0
- package/dist/{react-components → react}/UProgressRing.js +2 -2
- package/dist/react/URadio.d.ts +10 -0
- package/dist/react/URadio.js +12 -0
- package/dist/react/URating.d.ts +10 -0
- package/dist/react/URating.js +12 -0
- package/dist/react/USelect.d.ts +10 -0
- package/dist/react/USelect.js +12 -0
- package/dist/{react-components → react}/USkeleton.d.ts +3 -2
- package/dist/{react-components → react}/USkeleton.js +2 -2
- package/dist/react/USlider.d.ts +10 -0
- package/dist/react/USlider.js +12 -0
- package/dist/{react-components → react}/USpinner.d.ts +3 -2
- package/dist/{react-components → react}/USpinner.js +2 -2
- package/dist/react/USplitPanel.d.ts +13 -0
- package/dist/{react-components → react}/USplitPanel.js +6 -2
- package/dist/react/USwitch.d.ts +10 -0
- package/dist/react/USwitch.js +12 -0
- package/dist/react/UTab.d.ts +11 -0
- package/dist/react/UTab.js +12 -0
- package/dist/react/UTabPanel.d.ts +9 -0
- package/dist/react/UTabPanel.js +10 -0
- package/dist/{react-components → react}/UTag.d.ts +3 -2
- package/dist/{react-components → react}/UTag.js +2 -2
- package/dist/react/UTextarea.d.ts +11 -0
- package/dist/react/UTextarea.js +13 -0
- package/dist/react/UTooltip.d.ts +11 -0
- package/dist/{react-components → react}/UTooltip.js +5 -2
- package/dist/react/UTree.d.ts +10 -0
- package/dist/{react-components → react}/UTree.js +4 -2
- package/dist/react/UTreeItem.d.ts +17 -0
- package/dist/{react-components → react}/UTreeItem.js +7 -2
- package/dist/{react-components → react}/index.d.ts +40 -27
- package/dist/{react-components → react}/index.js +40 -20
- package/dist/{assets/styles → styles}/dark.css +68 -3
- package/dist/{assets/styles → styles}/light.css +68 -3
- package/dist/utilities/BrowserStorage.d.ts +2 -1
- package/dist/utilities/BrowserStorage.js +69 -86
- package/dist/utilities/Dialog.d.ts +83 -0
- package/dist/utilities/Dialog.js +141 -0
- package/dist/utilities/OverlayManager.d.ts +37 -0
- package/dist/utilities/OverlayManager.js +68 -0
- package/dist/utilities/Theme.js +134 -141
- package/dist/utilities/Toast.d.ts +45 -0
- package/dist/utilities/Toast.js +114 -0
- package/dist/utilities/converters.d.ts +44 -1
- package/dist/utilities/converters.js +112 -14
- package/dist/utilities/elements.js +62 -33
- package/dist/utilities/icons.d.ts +67 -0
- package/dist/utilities/icons.js +200 -0
- package/dist/utilities/sanitizers.js +64 -32
- package/package.json +24 -20
- package/plugins/vite-plugin-glob-resolve.d.ts +12 -0
- package/plugins/vite-plugin-glob-resolve.js +66 -0
- package/plugins/vite-plugin-react-wrapper.d.ts +12 -0
- package/plugins/vite-plugin-react-wrapper.js +206 -0
- package/skills/iyulab-components/SKILL.md +138 -0
- package/skills/iyulab-components/references/components/alert.md +74 -0
- package/skills/iyulab-components/references/components/avatar.md +41 -0
- package/skills/iyulab-components/references/components/badge.md +38 -0
- package/skills/iyulab-components/references/components/breadcrumb.md +75 -0
- package/skills/iyulab-components/references/components/button-group.md +38 -0
- package/skills/iyulab-components/references/components/button.md +56 -0
- package/skills/iyulab-components/references/components/card.md +53 -0
- package/skills/iyulab-components/references/components/carousel.md +63 -0
- package/skills/iyulab-components/references/components/checkbox.md +70 -0
- package/skills/iyulab-components/references/components/chip.md +64 -0
- package/skills/iyulab-components/references/components/dialog.md +71 -0
- package/skills/iyulab-components/references/components/divider.md +56 -0
- package/skills/iyulab-components/references/components/drawer.md +63 -0
- package/skills/iyulab-components/references/components/field.md +42 -0
- package/skills/iyulab-components/references/components/form.md +68 -0
- package/skills/iyulab-components/references/components/icon-button.md +56 -0
- package/skills/iyulab-components/references/components/icon.md +49 -0
- package/skills/iyulab-components/references/components/input.md +95 -0
- package/skills/iyulab-components/references/components/menu.md +106 -0
- package/skills/iyulab-components/references/components/option.md +70 -0
- package/skills/iyulab-components/references/components/panel.md +38 -0
- package/skills/iyulab-components/references/components/popover.md +62 -0
- package/skills/iyulab-components/references/components/progress-bar.md +61 -0
- package/skills/iyulab-components/references/components/progress-ring.md +58 -0
- package/skills/iyulab-components/references/components/radio.md +67 -0
- package/skills/iyulab-components/references/components/rating.md +74 -0
- package/skills/iyulab-components/references/components/select.md +86 -0
- package/skills/iyulab-components/references/components/skeleton.md +46 -0
- package/skills/iyulab-components/references/components/slider.md +89 -0
- package/skills/iyulab-components/references/components/spinner.md +47 -0
- package/skills/iyulab-components/references/components/split-panel.md +65 -0
- package/skills/iyulab-components/references/components/switch.md +81 -0
- package/skills/iyulab-components/references/components/tab-panel.md +93 -0
- package/skills/iyulab-components/references/components/tag.md +55 -0
- package/skills/iyulab-components/references/components/textarea.md +67 -0
- package/skills/iyulab-components/references/components/tooltip.md +58 -0
- package/skills/iyulab-components/references/components/tree.md +128 -0
- package/skills/iyulab-components/references/extensions/data.md +60 -0
- package/skills/iyulab-components/references/extensions/element.md +57 -0
- package/skills/iyulab-components/references/extensions/floating.md +60 -0
- package/skills/iyulab-components/references/extensions/form-control.md +79 -0
- package/skills/iyulab-components/references/extensions/overlay.md +76 -0
- package/skills/iyulab-components/references/usage.md +216 -0
- package/skills/iyulab-components/references/utilities/browser-storage.md +54 -0
- package/skills/iyulab-components/references/utilities/converters.md +42 -0
- package/skills/iyulab-components/references/utilities/dialog.md +75 -0
- package/skills/iyulab-components/references/utilities/elements.md +55 -0
- package/skills/iyulab-components/references/utilities/icons.md +53 -0
- package/skills/iyulab-components/references/utilities/overlay-manager.md +34 -0
- package/skills/iyulab-components/references/utilities/sanitizers.md +32 -0
- package/skills/iyulab-components/references/utilities/theme.md +45 -0
- package/skills/iyulab-components/references/utilities/toast.md +58 -0
- package/dist/assets/icons/arrow-down-up.svg.js +0 -3
- package/dist/assets/icons/arrow-down.svg.js +0 -3
- package/dist/assets/icons/arrow-repeat.svg.js +0 -3
- package/dist/assets/icons/arrow-up.svg.js +0 -3
- package/dist/assets/icons/ban.svg.js +0 -3
- package/dist/assets/icons/bell-fill.svg.js +0 -3
- package/dist/assets/icons/box-arrow-up-right.svg.js +0 -3
- package/dist/assets/icons/check-circle-fill.svg.js +0 -3
- package/dist/assets/icons/check-lg.svg.js +0 -3
- package/dist/assets/icons/chevron-down.svg.js +0 -3
- package/dist/assets/icons/chevron-left.svg.js +0 -3
- package/dist/assets/icons/chevron-right.svg.js +0 -3
- package/dist/assets/icons/chevron-up.svg.js +0 -3
- package/dist/assets/icons/code-slash.svg.js +0 -3
- package/dist/assets/icons/copy.svg.js +0 -3
- package/dist/assets/icons/dash-lg.svg.js +0 -3
- package/dist/assets/icons/download.svg.js +0 -3
- package/dist/assets/icons/exclamation-circle-fill.svg.js +0 -3
- package/dist/assets/icons/exclamation-triangle-fill.svg.js +0 -3
- package/dist/assets/icons/eye-slash.svg.js +0 -3
- package/dist/assets/icons/eye.svg.js +0 -3
- package/dist/assets/icons/file-earmark.svg.js +0 -3
- package/dist/assets/icons/flag.svg.js +0 -3
- package/dist/assets/icons/globe.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-down-fill.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-down.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-up-fill.svg.js +0 -3
- package/dist/assets/icons/hand-thumbs-up.svg.js +0 -3
- package/dist/assets/icons/info-circle-fill.svg.js +0 -3
- package/dist/assets/icons/lightbulb-fill.svg.js +0 -3
- package/dist/assets/icons/lightbulb-off.svg.js +0 -3
- package/dist/assets/icons/lightbulb.svg.js +0 -3
- package/dist/assets/icons/mic-fill.svg.js +0 -3
- package/dist/assets/icons/mic-mute-fill.svg.js +0 -3
- package/dist/assets/icons/paperclip.svg.js +0 -3
- package/dist/assets/icons/pencil-square.svg.js +0 -3
- package/dist/assets/icons/plus-lg.svg.js +0 -3
- package/dist/assets/icons/search.svg.js +0 -3
- package/dist/assets/icons/share.svg.js +0 -3
- package/dist/assets/icons/sort-alpha-down.svg.js +0 -3
- package/dist/assets/icons/sort-alpha-up.svg.js +0 -3
- package/dist/assets/icons/stop-circle.svg.js +0 -3
- package/dist/assets/icons/tools.svg.js +0 -3
- package/dist/assets/icons/x-lg.svg.js +0 -3
- package/dist/assets/styles/dark.css.js +0 -3
- package/dist/assets/styles/light.css.js +0 -3
- package/dist/components/UJsonElement.js +0 -93
- package/dist/components/UModalElement.d.ts +0 -70
- package/dist/components/UModalElement.js +0 -144
- package/dist/components/UModalElement.styles.js +0 -29
- package/dist/components/alert/UAlert.component.d.ts +0 -40
- package/dist/components/alert/UAlert.component.js +0 -146
- package/dist/components/button/UButton.component.d.ts +0 -23
- package/dist/components/button/UButton.component.js +0 -72
- package/dist/components/card/UCard.component.d.ts +0 -21
- package/dist/components/card/UCard.component.js +0 -66
- package/dist/components/carousel/UCarousel.component.d.ts +0 -78
- package/dist/components/carousel/UCarousel.component.js +0 -264
- package/dist/components/dialog/UDialog.component.d.ts +0 -17
- package/dist/components/dialog/UDialog.component.js +0 -70
- package/dist/components/divider/UDivider.component.d.ts +0 -10
- package/dist/components/divider/UDivider.component.js +0 -30
- package/dist/components/drawer/UDrawer.component.d.ts +0 -18
- package/dist/components/drawer/UDrawer.component.js +0 -64
- package/dist/components/form/UForm.component.d.ts +0 -24
- package/dist/components/form/UForm.component.js +0 -76
- package/dist/components/icon/UIcon.component.d.ts +0 -29
- package/dist/components/icon/UIcon.component.js +0 -57
- package/dist/components/input/UInput.component.d.ts +0 -92
- package/dist/components/input/UInput.component.js +0 -267
- package/dist/components/menu/UMenu.component.d.ts +0 -67
- package/dist/components/menu/UMenu.component.js +0 -338
- package/dist/components/menu-item/UMenuItem.component.d.ts +0 -25
- package/dist/components/menu-item/UMenuItem.component.js +0 -111
- package/dist/components/progress-bar/UProgressBar.component.d.ts +0 -27
- package/dist/components/progress-bar/UProgressBar.component.js +0 -99
- package/dist/components/progress-ring/UProgressRing.component.d.ts +0 -33
- package/dist/components/progress-ring/UProgressRing.component.js +0 -114
- package/dist/components/skeleton/USkeleton.component.d.ts +0 -22
- package/dist/components/skeleton/USkeleton.component.js +0 -58
- package/dist/components/spinner/USpinner.component.d.ts +0 -9
- package/dist/components/spinner/USpinner.component.js +0 -22
- package/dist/components/split-panel/USplitPanel.component.d.ts +0 -44
- package/dist/components/split-panel/USplitPanel.component.js +0 -185
- package/dist/components/tag/UTag.component.d.ts +0 -23
- package/dist/components/tag/UTag.component.js +0 -72
- package/dist/components/tooltip/UTooltip.component.d.ts +0 -27
- package/dist/components/tooltip/UTooltip.component.js +0 -88
- package/dist/components/tree/UTree.component.d.ts +0 -37
- package/dist/components/tree/UTree.component.js +0 -120
- package/dist/components/tree-item/UTreeItem.component.d.ts +0 -41
- package/dist/components/tree-item/UTreeItem.component.js +0 -161
- package/dist/events/UChangeEvent.d.ts +0 -6
- package/dist/events/UHideEvent.d.ts +0 -6
- package/dist/events/UInputEvent.d.ts +0 -6
- package/dist/events/UResizeEvent.d.ts +0 -6
- package/dist/events/USelectEvent.d.ts +0 -6
- package/dist/events/UShowEvent.d.ts +0 -6
- package/dist/react-components/UAlert.d.ts +0 -8
- package/dist/react-components/UForm.d.ts +0 -8
- package/dist/react-components/UInput.d.ts +0 -8
- package/dist/react-components/UMenu.d.ts +0 -8
- package/dist/react-components/UMenuItem.d.ts +0 -8
- package/dist/react-components/UProgressBar.d.ts +0 -8
- package/dist/react-components/UProgressRing.d.ts +0 -8
- package/dist/react-components/USplitPanel.d.ts +0 -8
- package/dist/react-components/UTooltip.d.ts +0 -8
- package/dist/react-components/UTree.d.ts +0 -8
- package/dist/react-components/UTreeItem.d.ts +0 -8
- package/dist/utilities/IconRegistry.d.ts +0 -40
- package/dist/utilities/IconRegistry.js +0 -134
- package/dist/utilities/Notifier.d.ts +0 -31
- package/dist/utilities/Notifier.js +0 -79
- package/dist/utilities/decorators.d.ts +0 -28
- /package/dist/components/{UJsonElement.styles.d.ts → UDataElement.styles.d.ts} +0 -0
- /package/dist/components/{UModalElement.styles.d.ts → UFormControlElement.styles.d.ts} +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# u-popover
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/popover/UPopover.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-popover`
|
|
8
|
+
|
|
9
|
+
Anchored floating panel attached to a `for` target element. Trigger and dismiss behavior are fully configurable.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-button id="btn">Open Popover</u-button>
|
|
13
|
+
|
|
14
|
+
<u-popover for="#btn" placement="bottom" trigger="click">
|
|
15
|
+
<div style="padding: 1rem;">Popover content</div>
|
|
16
|
+
</u-popover>
|
|
17
|
+
|
|
18
|
+
<!-- Hover tooltip-like -->
|
|
19
|
+
<u-popover for="#btn" trigger="hover" placement="top" shift arrow>
|
|
20
|
+
Quick info
|
|
21
|
+
</u-popover>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Slots
|
|
27
|
+
|
|
28
|
+
| Name | Description |
|
|
29
|
+
|------|-------------|
|
|
30
|
+
| *(default)* | Popover content |
|
|
31
|
+
|
|
32
|
+
## Properties
|
|
33
|
+
|
|
34
|
+
Inherits all `UFloatingElement` properties (see [floating.md](../extensions/floating.md)), plus:
|
|
35
|
+
|
|
36
|
+
| Property | Type | Default | Reflect | Description |
|
|
37
|
+
|----------|------|---------|---------|-------------|
|
|
38
|
+
| `for` | `string` | — | ✓ | CSS selector of the anchor element |
|
|
39
|
+
| `open` | `boolean` | `false` | ✓ | Visibility state |
|
|
40
|
+
| `disabled` | `boolean` | `false` | ✓ | Disable opening |
|
|
41
|
+
| `placement` | `Placement` | — | — | Preferred placement (`top`, `bottom`, `left`, `right`, `*-start`, `*-end`) |
|
|
42
|
+
| `offset` | `OffsetOptions` | `0` | — | Distance from anchor |
|
|
43
|
+
| `shift` | `boolean` | `false` | — | Auto-shift to stay in viewport |
|
|
44
|
+
| `arrow` | `boolean` | `false` | — | Show arrow pointing to anchor |
|
|
45
|
+
| `showDelay` | `number` | `0` | — | Open delay in ms |
|
|
46
|
+
| `hideDelay` | `number` | `0` | — | Close delay in ms |
|
|
47
|
+
| `trigger` | `'click'\|'contextmenu'\|'hover'\|'focus'\|'manual'` | `'click'` | ✓ | Open trigger |
|
|
48
|
+
| `dismiss` | `string[]` | `['click','escape','scroll','resize']` | ✓ | Close triggers |
|
|
49
|
+
| `autofocus` | `boolean` | `false` | ✓ | Focus first focusable element on open |
|
|
50
|
+
|
|
51
|
+
## Events
|
|
52
|
+
|
|
53
|
+
| Event | Cancelable | Description |
|
|
54
|
+
|-------|------------|-------------|
|
|
55
|
+
| `show` | ✓ | Before popover opens |
|
|
56
|
+
| `hide` | ✓ | Before popover closes |
|
|
57
|
+
|
|
58
|
+
## Methods
|
|
59
|
+
|
|
60
|
+
| Method | Description |
|
|
61
|
+
|--------|-------------|
|
|
62
|
+
| `focusTo(index)` | Move focus to nth focusable element inside popover |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# u-progress-bar
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/progress-bar/UProgressBar.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-progress-bar`
|
|
8
|
+
|
|
9
|
+
Linear progress indicator. Supports buffer, segments, striped effect, and indeterminate state.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-progress-bar value="60"></u-progress-bar>
|
|
13
|
+
|
|
14
|
+
<u-progress-bar value="40" buffer="70" status="info"></u-progress-bar>
|
|
15
|
+
|
|
16
|
+
<u-progress-bar value="30" striped rounded indeterminate></u-progress-bar>
|
|
17
|
+
|
|
18
|
+
<!-- Segmented -->
|
|
19
|
+
<u-progress-bar value="75" segments="5" status="success"></u-progress-bar>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
|
|
26
|
+
| Name | Description |
|
|
27
|
+
|------|-------------|
|
|
28
|
+
| *(default)* | Content overlaid on top of the bar |
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
| Property | Type | Default | Description |
|
|
33
|
+
|----------|------|---------|-------------|
|
|
34
|
+
| `value` | `number` | `0` | Current progress value |
|
|
35
|
+
| `min` | `number` | `0` | Minimum value |
|
|
36
|
+
| `max` | `number` | `100` | Maximum value |
|
|
37
|
+
| `buffer` | `number` | — | Buffer level (secondary fill) |
|
|
38
|
+
| `indeterminate` | `boolean` | `false` | Animated indeterminate state |
|
|
39
|
+
| `striped` | `boolean` | `false` | Striped fill pattern |
|
|
40
|
+
| `rounded` | `boolean` | `false` | Rounded bar ends |
|
|
41
|
+
| `status` | `'default'\|'success'\|'warning'\|'error'\|'info'` | `'default'` | Color preset |
|
|
42
|
+
| `segments` | `number` | `0` | Split into N segments |
|
|
43
|
+
| `segmentGap` | `number` | `3` | Gap between segments in px |
|
|
44
|
+
|
|
45
|
+
## CSS Parts
|
|
46
|
+
|
|
47
|
+
| Part | Description |
|
|
48
|
+
|------|-------------|
|
|
49
|
+
| `buffer` | Buffer fill track |
|
|
50
|
+
| `indicator` | Progress fill |
|
|
51
|
+
| `segments` | Segment dividers overlay |
|
|
52
|
+
| `content` | Default slot wrapper |
|
|
53
|
+
|
|
54
|
+
## CSS Custom Properties
|
|
55
|
+
|
|
56
|
+
| Property | Description |
|
|
57
|
+
|----------|-------------|
|
|
58
|
+
| `--progress-bar-height` | Bar height |
|
|
59
|
+
| `--progress-bar-color` | Fill color |
|
|
60
|
+
| `--progress-bar-track-color` | Track (background) color |
|
|
61
|
+
| `--progress-bar-buffer-color` | Buffer fill color |
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# u-progress-ring
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/progress-ring/UProgressRing.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-progress-ring`
|
|
8
|
+
|
|
9
|
+
Circular progress indicator. Supports buffer, segments, and indeterminate state.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-progress-ring value="75"></u-progress-ring>
|
|
13
|
+
|
|
14
|
+
<u-progress-ring value="50" status="success" rounded>
|
|
15
|
+
50%
|
|
16
|
+
</u-progress-ring>
|
|
17
|
+
|
|
18
|
+
<u-progress-ring indeterminate></u-progress-ring>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
| Name | Description |
|
|
26
|
+
|------|-------------|
|
|
27
|
+
| *(default)* | Content rendered in the center of the ring |
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
| Property | Type | Default | Description |
|
|
32
|
+
|----------|------|---------|-------------|
|
|
33
|
+
| `value` | `number` | `0` | Current progress value |
|
|
34
|
+
| `min` | `number` | `0` | Minimum value |
|
|
35
|
+
| `max` | `number` | `100` | Maximum value |
|
|
36
|
+
| `buffer` | `number` | — | Buffer level |
|
|
37
|
+
| `indeterminate` | `boolean` | `false` | Animated indeterminate state |
|
|
38
|
+
| `rounded` | `boolean` | `false` | Round stroke line caps |
|
|
39
|
+
| `status` | `'default'\|'success'\|'warning'\|'error'\|'info'` | `'default'` | Color preset |
|
|
40
|
+
| `segments` | `number` | `0` | Split into N arc segments |
|
|
41
|
+
| `segmentGap` | `number` | `2` | Gap between segments (path length units) |
|
|
42
|
+
|
|
43
|
+
## CSS Parts
|
|
44
|
+
|
|
45
|
+
| Part | Description |
|
|
46
|
+
|------|-------------|
|
|
47
|
+
| `svg` | Root SVG element |
|
|
48
|
+
| `content` | Center slot wrapper |
|
|
49
|
+
|
|
50
|
+
## CSS Custom Properties
|
|
51
|
+
|
|
52
|
+
| Property | Description |
|
|
53
|
+
|----------|-------------|
|
|
54
|
+
| `--progress-ring-size` | Outer diameter |
|
|
55
|
+
| `--progress-ring-color` | Arc fill color |
|
|
56
|
+
| `--progress-ring-track-width` | Stroke width |
|
|
57
|
+
| `--progress-ring-track-color` | Track (background arc) color |
|
|
58
|
+
| `--progress-ring-buffer-color` | Buffer arc color |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# u-radio
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/radio/URadio.js';
|
|
5
|
+
import '@iyulab/components/dist/components/option/UOption.js';
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
**Tag:** `u-radio`
|
|
9
|
+
|
|
10
|
+
Radio group built from `u-option` children. Form-associated.
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<u-radio name="size" value="md">
|
|
14
|
+
<u-option value="sm">Small</u-option>
|
|
15
|
+
<u-option value="md">Medium</u-option>
|
|
16
|
+
<u-option value="lg">Large</u-option>
|
|
17
|
+
</u-radio>
|
|
18
|
+
|
|
19
|
+
<!-- Button style, horizontal -->
|
|
20
|
+
<u-radio name="plan" type="button" orientation="horizontal" variant="outlined">
|
|
21
|
+
<u-option value="free">Free</u-option>
|
|
22
|
+
<u-option value="pro">Pro</u-option>
|
|
23
|
+
<u-option value="enterprise">Enterprise</u-option>
|
|
24
|
+
</u-radio>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
| Name | Description |
|
|
32
|
+
|------|-------------|
|
|
33
|
+
| *(default)* | `u-option` elements |
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
| Property | Type | Default | Reflect | Description |
|
|
38
|
+
|----------|------|---------|---------|-------------|
|
|
39
|
+
| `value` | `string` | — | — | Currently selected value |
|
|
40
|
+
| `type` | `'default'\|'button'` | `'default'` | ✓ | `button` renders options as toggle buttons |
|
|
41
|
+
| `variant` | `'filled'\|'outlined'` | `'filled'` | ✓ | Visual style |
|
|
42
|
+
| `orientation` | `'vertical'\|'horizontal'` | `'vertical'` | ✓ | Layout direction |
|
|
43
|
+
| `disabled` | `boolean` | `false` | ✓ | Disable all options |
|
|
44
|
+
| `readonly` | `boolean` | `false` | ✓ | Read-only |
|
|
45
|
+
| `required` | `boolean` | `false` | ✓ | Required |
|
|
46
|
+
| `invalid` | `boolean` | `false` | ✓ | Validation failed |
|
|
47
|
+
| `name` | `string` | — | — | Form field name |
|
|
48
|
+
|
|
49
|
+
## Events
|
|
50
|
+
|
|
51
|
+
| Event | Description |
|
|
52
|
+
|-------|-------------|
|
|
53
|
+
| `change` | Fires when selection changes |
|
|
54
|
+
|
|
55
|
+
## Methods
|
|
56
|
+
|
|
57
|
+
| Method | Description |
|
|
58
|
+
|--------|-------------|
|
|
59
|
+
| `validate()` | Validate; sets `invalid` |
|
|
60
|
+
| `reset()` | Reset selection |
|
|
61
|
+
|
|
62
|
+
## CSS Parts
|
|
63
|
+
|
|
64
|
+
| Part | Description |
|
|
65
|
+
|------|-------------|
|
|
66
|
+
| `field` | Outer field wrapper |
|
|
67
|
+
| `container` | Options container |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# u-rating
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/rating/URating.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-rating`
|
|
8
|
+
|
|
9
|
+
Star/custom-symbol rating input. Supports fractional precision and custom symbols via slots. Form-associated.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-rating name="score" value="3"></u-rating>
|
|
13
|
+
|
|
14
|
+
<!-- Half-star precision -->
|
|
15
|
+
<u-rating name="score" value="3.5" precision="0.5" max="5"></u-rating>
|
|
16
|
+
|
|
17
|
+
<!-- Custom symbols -->
|
|
18
|
+
<u-rating name="priority" max="3">
|
|
19
|
+
<u-icon slot="symbol" lib="tabler" name="heart:filled"></u-icon>
|
|
20
|
+
<u-icon slot="symbol-off" lib="tabler" name="heart"></u-icon>
|
|
21
|
+
</u-rating>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Slots
|
|
27
|
+
|
|
28
|
+
| Name | Description |
|
|
29
|
+
|------|-------------|
|
|
30
|
+
| `symbol` | Active (filled) symbol |
|
|
31
|
+
| `symbol-off` | Inactive (empty) symbol |
|
|
32
|
+
|
|
33
|
+
## Properties
|
|
34
|
+
|
|
35
|
+
| Property | Type | Default | Description |
|
|
36
|
+
|----------|------|---------|-------------|
|
|
37
|
+
| `value` | `number` | — | Current rating value |
|
|
38
|
+
| `min` | `number` | `0` | Minimum value |
|
|
39
|
+
| `max` | `number` | `5` | Maximum value (= number of symbols) |
|
|
40
|
+
| `precision` | `number` | `1` | Step size (e.g. `0.5` for half stars) |
|
|
41
|
+
| `disabled` | `boolean` | `false` | Disable interaction |
|
|
42
|
+
| `readonly` | `boolean` | `false` | Read-only |
|
|
43
|
+
| `required` | `boolean` | `false` | Required |
|
|
44
|
+
| `invalid` | `boolean` | `false` | Validation failed |
|
|
45
|
+
| `name` | `string` | — | Form field name |
|
|
46
|
+
|
|
47
|
+
## Events
|
|
48
|
+
|
|
49
|
+
| Event | Description |
|
|
50
|
+
|-------|-------------|
|
|
51
|
+
| `change` | Fires when value changes |
|
|
52
|
+
|
|
53
|
+
## Methods
|
|
54
|
+
|
|
55
|
+
| Method | Description |
|
|
56
|
+
|--------|-------------|
|
|
57
|
+
| `validate()` | Validate; sets `invalid` |
|
|
58
|
+
| `reset()` | Reset value |
|
|
59
|
+
|
|
60
|
+
## CSS Parts
|
|
61
|
+
|
|
62
|
+
| Part | Description |
|
|
63
|
+
|------|-------------|
|
|
64
|
+
| `field` | Outer wrapper |
|
|
65
|
+
| `container` | Symbols container |
|
|
66
|
+
| `symbol` | Individual symbol wrapper |
|
|
67
|
+
| `symbol-fg` | Filled portion overlay |
|
|
68
|
+
|
|
69
|
+
## CSS Custom Properties
|
|
70
|
+
|
|
71
|
+
| Property | Description |
|
|
72
|
+
|----------|-------------|
|
|
73
|
+
| `--rating-symbol-color` | Active symbol color |
|
|
74
|
+
| `--rating-symbol-off-color` | Inactive symbol color |
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# u-select
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/select/USelect.js';
|
|
5
|
+
import '@iyulab/components/dist/components/option/UOption.js';
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
**Tag:** `u-select`
|
|
9
|
+
|
|
10
|
+
Dropdown select with single or multiple selection, search, and clear support. Form-associated.
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<u-select name="country" placeholder="Select country">
|
|
14
|
+
<u-option value="us">United States</u-option>
|
|
15
|
+
<u-option value="kr">South Korea</u-option>
|
|
16
|
+
<u-option value="jp">Japan</u-option>
|
|
17
|
+
</u-select>
|
|
18
|
+
|
|
19
|
+
<!-- Multiple + searchable -->
|
|
20
|
+
<u-select name="tags" multiple searchable clearable max-count="3">
|
|
21
|
+
<u-option value="js">JavaScript</u-option>
|
|
22
|
+
<u-option value="ts">TypeScript</u-option>
|
|
23
|
+
<u-option value="py">Python</u-option>
|
|
24
|
+
</u-select>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
| Name | Description |
|
|
32
|
+
|------|-------------|
|
|
33
|
+
| *(default)* | `u-option` elements |
|
|
34
|
+
|
|
35
|
+
## Properties
|
|
36
|
+
|
|
37
|
+
| Property | Type | Default | Reflect | Description |
|
|
38
|
+
|----------|------|---------|---------|-------------|
|
|
39
|
+
| `value` | `string \| string[]` | — | — | Selected value(s) |
|
|
40
|
+
| `variant` | `'outlined'\|'filled'\|'underlined'\|'borderless'` | `'outlined'` | ✓ | Visual style |
|
|
41
|
+
| `multiple` | `boolean` | `false` | ✓ | Allow multiple selections |
|
|
42
|
+
| `searchable` | `boolean` | `false` | ✓ | Filter options by text |
|
|
43
|
+
| `clearable` | `boolean` | `false` | ✓ | Show clear button |
|
|
44
|
+
| `loading` | `boolean` | `false` | ✓ | Loading state |
|
|
45
|
+
| `placeholder` | `string` | — | — | Placeholder text |
|
|
46
|
+
| `minCount` | `number` | — | — | Minimum required selections |
|
|
47
|
+
| `maxCount` | `number` | — | — | Maximum allowed selections |
|
|
48
|
+
| `disabled` | `boolean` | `false` | ✓ | Disable |
|
|
49
|
+
| `readonly` | `boolean` | `false` | ✓ | Read-only |
|
|
50
|
+
| `required` | `boolean` | `false` | ✓ | Required |
|
|
51
|
+
| `invalid` | `boolean` | `false` | ✓ | Validation failed |
|
|
52
|
+
| `name` | `string` | — | — | Form field name |
|
|
53
|
+
| `label` | `string` | — | — | Field label |
|
|
54
|
+
| `description` | `string` | — | — | Helper text |
|
|
55
|
+
| `validationMessage` | `string` | — | — | Custom validation message |
|
|
56
|
+
|
|
57
|
+
## Events
|
|
58
|
+
|
|
59
|
+
| Event | Description |
|
|
60
|
+
|-------|-------------|
|
|
61
|
+
| `change` | Fires when selection changes |
|
|
62
|
+
|
|
63
|
+
## Methods
|
|
64
|
+
|
|
65
|
+
| Method | Description |
|
|
66
|
+
|--------|-------------|
|
|
67
|
+
| `validate()` | Validate; sets `invalid` |
|
|
68
|
+
| `reset()` | Reset value |
|
|
69
|
+
|
|
70
|
+
## CSS Parts
|
|
71
|
+
|
|
72
|
+
| Part | Description |
|
|
73
|
+
|------|-------------|
|
|
74
|
+
| `field` | Outer field wrapper |
|
|
75
|
+
| `container` | Trigger area |
|
|
76
|
+
| `popover` | Dropdown list container |
|
|
77
|
+
| `search-input` | Search input inside dropdown |
|
|
78
|
+
|
|
79
|
+
## CSS Custom Properties
|
|
80
|
+
|
|
81
|
+
| Property | Description |
|
|
82
|
+
|----------|-------------|
|
|
83
|
+
| `--select-popover-min-width` | Dropdown min-width |
|
|
84
|
+
| `--select-popover-max-width` | Dropdown max-width |
|
|
85
|
+
| `--select-popover-min-height` | Dropdown min-height |
|
|
86
|
+
| `--select-popover-max-height` | Dropdown max-height |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# u-skeleton
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/skeleton/USkeleton.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-skeleton`
|
|
8
|
+
|
|
9
|
+
Placeholder shape displayed while content is loading.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<!-- Text line -->
|
|
13
|
+
<u-skeleton width="200px" height="1rem"></u-skeleton>
|
|
14
|
+
|
|
15
|
+
<!-- Circle avatar placeholder -->
|
|
16
|
+
<u-skeleton shape="circle" width="48px" height="48px"></u-skeleton>
|
|
17
|
+
|
|
18
|
+
<!-- Card placeholder -->
|
|
19
|
+
<u-skeleton shape="rounded" width="100%" height="120px" effect="shimmer"></u-skeleton>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
|
|
26
|
+
| Name | Description |
|
|
27
|
+
|------|-------------|
|
|
28
|
+
| *(default)* | Content (hidden while skeleton is visible) |
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
| Property | Type | Default | Reflect | Description |
|
|
33
|
+
|----------|------|---------|---------|-------------|
|
|
34
|
+
| `shape` | `'rectangle'\|'circle'\|'rounded'` | `'rectangle'` | ✓ | Shape of the placeholder |
|
|
35
|
+
| `effect` | `'none'\|'pulse'\|'shimmer'` | `'shimmer'` | ✓ | Animation style |
|
|
36
|
+
| `width` | `string` | — | — | CSS width value |
|
|
37
|
+
| `height` | `string` | — | — | CSS height value |
|
|
38
|
+
|
|
39
|
+
## CSS Custom Properties
|
|
40
|
+
|
|
41
|
+
| Property | Description |
|
|
42
|
+
|----------|-------------|
|
|
43
|
+
| `--skeleton-width` | Override width |
|
|
44
|
+
| `--skeleton-height` | Override height |
|
|
45
|
+
| `--skeleton-color` | Base placeholder color |
|
|
46
|
+
| `--skeleton-shimmer-color` | Shimmer highlight color |
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# u-slider
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/slider/USlider.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-slider`
|
|
8
|
+
|
|
9
|
+
Range slider. Single-thumb or dual-thumb (range) mode. Supports marks, value display, and tooltip on drag. Form-associated.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-slider name="volume" value="50"></u-slider>
|
|
13
|
+
|
|
14
|
+
<!-- Range mode -->
|
|
15
|
+
<u-slider name="priceRange" range value="[20,80]"></u-slider>
|
|
16
|
+
|
|
17
|
+
<!-- With marks and tooltip -->
|
|
18
|
+
<u-slider name="steps" min="0" max="100" step="25" show-tooltip>
|
|
19
|
+
</u-slider>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
|
|
26
|
+
| Name | Description |
|
|
27
|
+
|------|-------------|
|
|
28
|
+
| `thumb` | Custom thumb handle (single or start thumb in range mode) |
|
|
29
|
+
| `thumb-end` | Custom end thumb handle (range mode only) |
|
|
30
|
+
|
|
31
|
+
## Properties
|
|
32
|
+
|
|
33
|
+
| Property | Type | Default | Description |
|
|
34
|
+
|----------|------|---------|-------------|
|
|
35
|
+
| `value` | `number \| number[]` | — | Current value (array for range mode) |
|
|
36
|
+
| `min` | `number` | `0` | Minimum value |
|
|
37
|
+
| `max` | `number` | `100` | Maximum value |
|
|
38
|
+
| `step` | `number` | `1` | Step size |
|
|
39
|
+
| `range` | `boolean` | `false` | Enable dual-thumb range mode |
|
|
40
|
+
| `showValue` | `boolean` | `false` | Display current value next to slider |
|
|
41
|
+
| `showTooltip` | `boolean` | `false` | Show value tooltip while dragging |
|
|
42
|
+
| `formatter` | `(v: number) => string` | — | Custom value formatter |
|
|
43
|
+
| `marks` | `SliderMark[]` | — | Tick marks (`{ value, label? }`) |
|
|
44
|
+
| `offset` | `number` | — | Start value offset (single mode) |
|
|
45
|
+
| `disabled` | `boolean` | `false` | Disable |
|
|
46
|
+
| `readonly` | `boolean` | `false` | Read-only |
|
|
47
|
+
| `required` | `boolean` | `false` | Required |
|
|
48
|
+
| `invalid` | `boolean` | `false` | Validation failed |
|
|
49
|
+
| `name` | `string` | — | Form field name |
|
|
50
|
+
|
|
51
|
+
## Events
|
|
52
|
+
|
|
53
|
+
| Event | Description |
|
|
54
|
+
|-------|-------------|
|
|
55
|
+
| `change` | Fires when value changes |
|
|
56
|
+
|
|
57
|
+
## Methods
|
|
58
|
+
|
|
59
|
+
| Method | Description |
|
|
60
|
+
|--------|-------------|
|
|
61
|
+
| `validate()` | Validate; sets `invalid` |
|
|
62
|
+
| `reset()` | Reset value |
|
|
63
|
+
|
|
64
|
+
## CSS Parts
|
|
65
|
+
|
|
66
|
+
| Part | Description |
|
|
67
|
+
|------|-------------|
|
|
68
|
+
| `field` | Outer wrapper |
|
|
69
|
+
| `container` | Track and thumbs container |
|
|
70
|
+
| `track` | Slider track |
|
|
71
|
+
| `fill` | Filled portion of track |
|
|
72
|
+
| `thumb` | Start/single thumb |
|
|
73
|
+
| `thumb-end` | End thumb (range mode) |
|
|
74
|
+
| `thumb-tooltip` | Drag tooltip |
|
|
75
|
+
| `mark` | Tick mark dot |
|
|
76
|
+
| `mark-label` | Tick mark label |
|
|
77
|
+
|
|
78
|
+
## CSS Custom Properties
|
|
79
|
+
|
|
80
|
+
| Property | Description |
|
|
81
|
+
|----------|-------------|
|
|
82
|
+
| `--slider-fill-color` | Track fill color |
|
|
83
|
+
| `--slider-track-height` | Track height |
|
|
84
|
+
| `--slider-track-color` | Track background color |
|
|
85
|
+
| `--slider-thumb-size` | Thumb diameter |
|
|
86
|
+
| `--slider-thumb-color` | Thumb fill color |
|
|
87
|
+
| `--slider-thumb-border-color` | Thumb border color |
|
|
88
|
+
| `--slider-mark-size` | Mark dot size |
|
|
89
|
+
| `--slider-mark-color` | Mark dot color |
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# u-spinner
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/spinner/USpinner.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-spinner`
|
|
8
|
+
|
|
9
|
+
Animated circular spinner for loading states. Optional label below the spinner via default slot.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-spinner></u-spinner>
|
|
13
|
+
|
|
14
|
+
<u-spinner color="blue">Loading...</u-spinner>
|
|
15
|
+
|
|
16
|
+
<u-spinner color="green"></u-spinner>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Slots
|
|
22
|
+
|
|
23
|
+
| Name | Description |
|
|
24
|
+
|------|-------------|
|
|
25
|
+
| *(default)* | Label text shown below the spinner |
|
|
26
|
+
|
|
27
|
+
## Properties
|
|
28
|
+
|
|
29
|
+
| Property | Type | Default | Reflect | Description |
|
|
30
|
+
|----------|------|---------|---------|-------------|
|
|
31
|
+
| `color` | `'neutral'\|'blue'\|'green'\|'yellow'\|'red'\|'orange'\|'teal'\|'cyan'\|'purple'\|'pink'` | — | ✓ | Spinner color preset |
|
|
32
|
+
|
|
33
|
+
## CSS Parts
|
|
34
|
+
|
|
35
|
+
| Part | Description |
|
|
36
|
+
|------|-------------|
|
|
37
|
+
| `svg` | Spinner SVG element |
|
|
38
|
+
| `label` | Label wrapper |
|
|
39
|
+
|
|
40
|
+
## CSS Custom Properties
|
|
41
|
+
|
|
42
|
+
| Property | Description |
|
|
43
|
+
|----------|-------------|
|
|
44
|
+
| `--spinner-track-width` | Track stroke width |
|
|
45
|
+
| `--spinner-track-color` | Track (background arc) color |
|
|
46
|
+
| `--spinner-indicator-color` | Animated arc color |
|
|
47
|
+
| `--spinner-indicator-speed` | Rotation animation duration |
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# u-split-panel
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/split-panel/USplitPanel.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-split-panel`
|
|
8
|
+
|
|
9
|
+
Resizable two-panel layout. Drag the splitter to adjust panel sizes.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<u-split-panel style="height: 400px;">
|
|
13
|
+
<div>Left panel content</div>
|
|
14
|
+
<div>Right panel content</div>
|
|
15
|
+
</u-split-panel>
|
|
16
|
+
|
|
17
|
+
<!-- Vertical split -->
|
|
18
|
+
<u-split-panel orientation="vertical" default-ratio="[30,70]">
|
|
19
|
+
<div>Top panel</div>
|
|
20
|
+
<div>Bottom panel</div>
|
|
21
|
+
</u-split-panel>
|
|
22
|
+
|
|
23
|
+
<!-- Custom splitter handle -->
|
|
24
|
+
<u-split-panel>
|
|
25
|
+
<div>Panel A</div>
|
|
26
|
+
<div>Panel B</div>
|
|
27
|
+
<div slot="splitter" style="background:blue; width:4px;"></div>
|
|
28
|
+
</u-split-panel>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Slots
|
|
34
|
+
|
|
35
|
+
| Name | Description |
|
|
36
|
+
|------|-------------|
|
|
37
|
+
| *(default)* | Exactly two panel elements |
|
|
38
|
+
| `splitter` | Custom splitter/handle UI |
|
|
39
|
+
|
|
40
|
+
## Properties
|
|
41
|
+
|
|
42
|
+
| Property | Type | Default | Reflect | Description |
|
|
43
|
+
|----------|------|---------|---------|-------------|
|
|
44
|
+
| `orientation` | `'horizontal'\|'vertical'` | `'horizontal'` | ✓ | Split direction |
|
|
45
|
+
| `defaultRatio` | `number[]` | `[]` | ✓ | Initial size ratios (e.g. `[30, 70]`) |
|
|
46
|
+
| `ratio` | `number[]` | `[]` | ✓ | Current size ratios |
|
|
47
|
+
| `disabled` | `boolean` | `false` | ✓ | Prevent resizing |
|
|
48
|
+
| `lazy` | `boolean` | `false` | ✓ | Show preview while dragging, commit on release |
|
|
49
|
+
|
|
50
|
+
## Events
|
|
51
|
+
|
|
52
|
+
| Event | Description |
|
|
53
|
+
|-------|-------------|
|
|
54
|
+
| `shift-start` | Drag starts |
|
|
55
|
+
| `shift` | Dragging in progress |
|
|
56
|
+
| `shift-end` | Drag ends |
|
|
57
|
+
|
|
58
|
+
## CSS Custom Properties
|
|
59
|
+
|
|
60
|
+
| Property | Description |
|
|
61
|
+
|----------|-------------|
|
|
62
|
+
| `--splitter-size` | Splitter handle thickness |
|
|
63
|
+
| `--splitter-color` | Splitter default color |
|
|
64
|
+
| `--splitter-color-hover` | Splitter color on hover |
|
|
65
|
+
| `--splitter-color-active` | Splitter color while dragging |
|