@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,45 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/avatar/UAvatar.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
width: 2.5em;
|
|
9
|
+
height: 2.5em;
|
|
10
|
+
font-family: var(--u-font-base);
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
color: var(--u-neutral-0);
|
|
13
|
+
background-color: var(--u-neutral-500);
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
user-select: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([shape="circle"]) {
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
}
|
|
22
|
+
:host([shape="square"]) {
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
}
|
|
25
|
+
:host([shape="rounded"]) {
|
|
26
|
+
border-radius: 0.375em;
|
|
27
|
+
}
|
|
28
|
+
:host([outline]) {
|
|
29
|
+
box-shadow: 0 0 0 0.125em var(--u-border-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
img {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
object-fit: cover;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.label {
|
|
39
|
+
font-size: 1em;
|
|
40
|
+
line-height: 1;
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { styles };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { UElement } from '../UElement.js';
|
|
3
|
+
export type BadgeVariant = "pill" | "dot" | "square";
|
|
4
|
+
export type BadgeColor = "neutral" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
|
|
5
|
+
export type BadgeAnchor = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
6
|
+
/**
|
|
7
|
+
* 상태, 숫자, 알림 등의 정보를 배지로 표시하는 컴포넌트입니다.
|
|
8
|
+
* anchor 속성으로 특정 요소 위치에 배치할 수 있습니다.
|
|
9
|
+
*
|
|
10
|
+
* @slot prefix - 배지 앞에 배치할 컨텐츠
|
|
11
|
+
* @slot - 배지의 주요 컨텐츠 (텍스트, 아이콘)
|
|
12
|
+
* @slot suffix - 배지 뒤에 배치할 컨텐츠
|
|
13
|
+
*/
|
|
14
|
+
export declare class UBadge extends UElement {
|
|
15
|
+
static styles: import('lit').CSSResultGroup[];
|
|
16
|
+
/** 배지 유형 */
|
|
17
|
+
variant: BadgeVariant;
|
|
18
|
+
/** 배지 색상 */
|
|
19
|
+
color: BadgeColor;
|
|
20
|
+
/** 부모 요소 기준 배치 위치 (설정 시 position: absolute) */
|
|
21
|
+
anchor?: BadgeAnchor;
|
|
22
|
+
render(): typeof nothing | import('lit-html').TemplateResult<1>;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'u-badge': UBadge;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UElement } from "../UElement.js";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js";
|
|
3
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
4
|
+
import { styles } from "./UBadge.styles.js";
|
|
5
|
+
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import { html, nothing } from "lit";
|
|
7
|
+
//#region src/components/badge/UBadge.ts
|
|
8
|
+
var UBadge = class UBadge extends UElement {
|
|
9
|
+
constructor(..._args) {
|
|
10
|
+
super(..._args);
|
|
11
|
+
this.variant = "pill";
|
|
12
|
+
this.color = "neutral";
|
|
13
|
+
}
|
|
14
|
+
static {
|
|
15
|
+
this.styles = [super.styles, styles];
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
if (this.variant === "dot") return nothing;
|
|
19
|
+
return html`
|
|
20
|
+
<slot name="prefix"></slot>
|
|
21
|
+
<slot></slot>
|
|
22
|
+
<slot name="suffix"></slot>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorate([property({
|
|
27
|
+
type: String,
|
|
28
|
+
reflect: true
|
|
29
|
+
}), __decorateMetadata("design:type", Object)], UBadge.prototype, "variant", void 0);
|
|
30
|
+
__decorate([property({
|
|
31
|
+
type: String,
|
|
32
|
+
reflect: true
|
|
33
|
+
}), __decorateMetadata("design:type", Object)], UBadge.prototype, "color", void 0);
|
|
34
|
+
__decorate([property({
|
|
35
|
+
type: String,
|
|
36
|
+
reflect: true
|
|
37
|
+
}), __decorateMetadata("design:type", Object)], UBadge.prototype, "anchor", void 0);
|
|
38
|
+
UBadge = __decorate([customElement("u-badge")], UBadge);
|
|
39
|
+
//#endregion
|
|
40
|
+
export { UBadge };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/badge/UBadge.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 0.25em;
|
|
10
|
+
font-size: inherit;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
font-family: var(--u-font-base);
|
|
13
|
+
line-height: 1;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
user-select: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* === Variant (형태) === */
|
|
19
|
+
:host([variant="square"]) {
|
|
20
|
+
padding: 0.2em 0.5em;
|
|
21
|
+
border-radius: 0.2em;
|
|
22
|
+
}
|
|
23
|
+
:host([variant="pill"]) {
|
|
24
|
+
padding: 0.2em 0.5em;
|
|
25
|
+
border-radius: 999px;
|
|
26
|
+
}
|
|
27
|
+
:host([variant="dot"]) {
|
|
28
|
+
width: 0.6em;
|
|
29
|
+
height: 0.6em;
|
|
30
|
+
min-width: 0.6em;
|
|
31
|
+
min-height: 0.6em;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* === Color (색상) === */
|
|
37
|
+
:host([color="neutral"]) {
|
|
38
|
+
color: var(--u-neutral-800);
|
|
39
|
+
background-color: var(--u-neutral-200);
|
|
40
|
+
}
|
|
41
|
+
:host([color="blue"]) {
|
|
42
|
+
color: var(--u-neutral-0);
|
|
43
|
+
background-color: var(--u-blue-500);
|
|
44
|
+
}
|
|
45
|
+
:host([color="green"]) {
|
|
46
|
+
color: var(--u-neutral-0);
|
|
47
|
+
background-color: var(--u-green-500);
|
|
48
|
+
}
|
|
49
|
+
:host([color="yellow"]) {
|
|
50
|
+
color: var(--u-neutral-0);
|
|
51
|
+
background-color: var(--u-yellow-600);
|
|
52
|
+
}
|
|
53
|
+
:host([color="red"]) {
|
|
54
|
+
color: var(--u-neutral-0);
|
|
55
|
+
background-color: var(--u-red-500);
|
|
56
|
+
}
|
|
57
|
+
:host([color="orange"]) {
|
|
58
|
+
color: var(--u-neutral-0);
|
|
59
|
+
background-color: var(--u-orange-500);
|
|
60
|
+
}
|
|
61
|
+
:host([color="teal"]) {
|
|
62
|
+
color: var(--u-neutral-0);
|
|
63
|
+
background-color: var(--u-teal-500);
|
|
64
|
+
}
|
|
65
|
+
:host([color="cyan"]) {
|
|
66
|
+
color: var(--u-neutral-0);
|
|
67
|
+
background-color: var(--u-cyan-500);
|
|
68
|
+
}
|
|
69
|
+
:host([color="purple"]) {
|
|
70
|
+
color: var(--u-neutral-0);
|
|
71
|
+
background-color: var(--u-purple-500);
|
|
72
|
+
}
|
|
73
|
+
:host([color="pink"]) {
|
|
74
|
+
color: var(--u-neutral-0);
|
|
75
|
+
background-color: var(--u-pink-500);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* === Anchor (위치 고정) === */
|
|
79
|
+
:host([anchor]) {
|
|
80
|
+
position: absolute;
|
|
81
|
+
z-index: 1;
|
|
82
|
+
}
|
|
83
|
+
:host([anchor="top-right"]) {
|
|
84
|
+
top: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
transform: translate(50%, -50%);
|
|
87
|
+
}
|
|
88
|
+
:host([anchor="top-left"]) {
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
transform: translate(-50%, -50%);
|
|
92
|
+
}
|
|
93
|
+
:host([anchor="bottom-right"]) {
|
|
94
|
+
bottom: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
transform: translate(50%, 50%);
|
|
97
|
+
}
|
|
98
|
+
:host([anchor="bottom-left"]) {
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
transform: translate(-50%, 50%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* === Slots === */
|
|
105
|
+
::slotted([slot="prefix"]) {
|
|
106
|
+
margin-right: 0.25em;
|
|
107
|
+
}
|
|
108
|
+
::slotted([slot="suffix"]) {
|
|
109
|
+
margin-left: 0.25em;
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
//#endregion
|
|
113
|
+
export { styles };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UElement } from '../UElement.js';
|
|
2
|
+
/**
|
|
3
|
+
* 현재 페이지 위치를 계층 구조로 표시하는 브레드크럼 컴포넌트입니다.
|
|
4
|
+
* 하위 u-breadcrumb-item을 조합하여 사용합니다.
|
|
5
|
+
*
|
|
6
|
+
* @slot - u-breadcrumb-item 요소들
|
|
7
|
+
* @slot separator - 구분자 커스텀 콘텐츠 (기본값: chevron-right 아이콘)
|
|
8
|
+
*
|
|
9
|
+
* @csspart nav - 내비게이션 요소
|
|
10
|
+
*/
|
|
11
|
+
export declare class UBreadcrumb extends UElement {
|
|
12
|
+
static styles: import('lit').CSSResultGroup[];
|
|
13
|
+
private separator?;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
private handleSlotChange;
|
|
16
|
+
private handleSeparatorSlotChange;
|
|
17
|
+
private appendSeparator;
|
|
18
|
+
private createSeparator;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'u-breadcrumb': UBreadcrumb;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UElement } from "../UElement.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
3
|
+
import "../icon/UIcon.js";
|
|
4
|
+
import { styles } from "./UBreadcrumb.styles.js";
|
|
5
|
+
import { customElement } from "lit/decorators.js";
|
|
6
|
+
import { html } from "lit";
|
|
7
|
+
//#region src/components/breadcrumb/UBreadcrumb.ts
|
|
8
|
+
var UBreadcrumb = class UBreadcrumb extends UElement {
|
|
9
|
+
constructor(..._args) {
|
|
10
|
+
super(..._args);
|
|
11
|
+
this.handleSlotChange = (e) => {
|
|
12
|
+
const items = e.target.assignedElements({ flatten: true }).filter((el) => el instanceof HTMLElement);
|
|
13
|
+
this.appendSeparator(items);
|
|
14
|
+
};
|
|
15
|
+
this.handleSeparatorSlotChange = (e) => {
|
|
16
|
+
this.separator = e.target.assignedNodes({ flatten: true }).at(0);
|
|
17
|
+
const nodes = this.shadowRoot?.querySelectorAll("nav > *:not(.separator)") ?? [];
|
|
18
|
+
const items = Array.from(nodes).filter((el) => el instanceof HTMLElement);
|
|
19
|
+
this.appendSeparator(items);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.styles = [super.styles, styles];
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return html`
|
|
27
|
+
<nav aria-label="breadcrumb" part="nav">
|
|
28
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
29
|
+
</nav>
|
|
30
|
+
<div hidden aria-hidden="true">
|
|
31
|
+
<slot name="separator" @slotchange=${this.handleSeparatorSlotChange}></slot>
|
|
32
|
+
</div>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
appendSeparator(items) {
|
|
36
|
+
const nav = this.shadowRoot?.querySelector("nav");
|
|
37
|
+
if (!nav) return;
|
|
38
|
+
nav.querySelectorAll(".separator").forEach((el) => el.remove());
|
|
39
|
+
items.forEach((item) => item.removeAttribute("data-last"));
|
|
40
|
+
items.forEach((item, i) => {
|
|
41
|
+
item.style.order = String(i * 2);
|
|
42
|
+
if (i < items.length - 1) {
|
|
43
|
+
const sep = this.createSeparator(i);
|
|
44
|
+
nav.appendChild(sep);
|
|
45
|
+
} else item.setAttribute("data-last", "");
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
createSeparator(index) {
|
|
49
|
+
const sep = document.createElement("span");
|
|
50
|
+
sep.setAttribute("class", "separator");
|
|
51
|
+
sep.setAttribute("part", "separator");
|
|
52
|
+
sep.style.order = String(index * 2 + 1);
|
|
53
|
+
if (this.separator) sep.appendChild(this.separator.cloneNode(true));
|
|
54
|
+
else {
|
|
55
|
+
const icon = document.createElement("u-icon");
|
|
56
|
+
icon.setAttribute("lib", "internal");
|
|
57
|
+
icon.setAttribute("name", "chevron-right");
|
|
58
|
+
sep.appendChild(icon);
|
|
59
|
+
}
|
|
60
|
+
return sep;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
UBreadcrumb = __decorate([customElement("u-breadcrumb")], UBreadcrumb);
|
|
64
|
+
//#endregion
|
|
65
|
+
export { UBreadcrumb };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/breadcrumb/UBreadcrumb.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
font-size: inherit;
|
|
7
|
+
font-family: var(--u-font-base);
|
|
8
|
+
color: var(--u-txt-color);
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
nav {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
gap: 0.15em;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::slotted([data-last]) {
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
cursor: default;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.separator {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
color: var(--u-txt-color-weak);
|
|
32
|
+
font-size: 0.75em;
|
|
33
|
+
user-select: none;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { styles };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UElement } from '../UElement.js';
|
|
2
|
+
/**
|
|
3
|
+
* 브레드크럼의 개별 항목을 나타내는 컴포넌트입니다.
|
|
4
|
+
*
|
|
5
|
+
* @slot prefix - 텍스트 앞에 표시할 컨텐츠 (아이콘 등)
|
|
6
|
+
* @slot - 아이콘과 텍스트
|
|
7
|
+
* @slot suffix - 텍스트 뒤에 표시할 컨텐츠
|
|
8
|
+
*
|
|
9
|
+
* @csspart link - 링크 요소
|
|
10
|
+
*
|
|
11
|
+
* @event navigate - 링크 클릭 시 발생 (취소 가능)
|
|
12
|
+
*/
|
|
13
|
+
export declare class UBreadcrumbItem extends UElement {
|
|
14
|
+
static styles: import('lit').CSSResultGroup[];
|
|
15
|
+
/** 비활성화 상태 */
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
/** 링크 URL */
|
|
18
|
+
href?: string;
|
|
19
|
+
/** 링크 target 속성 */
|
|
20
|
+
target?: string;
|
|
21
|
+
/** 링크 rel 속성 */
|
|
22
|
+
rel?: string;
|
|
23
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
24
|
+
private handleAnchorClick;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'u-breadcrumb-item': UBreadcrumbItem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UElement } from "../UElement.js";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js";
|
|
3
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
4
|
+
import { styles } from "./UBreadcrumbItem.styles.js";
|
|
5
|
+
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import { html } from "lit";
|
|
7
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
8
|
+
//#region src/components/breadcrumb-item/UBreadcrumbItem.ts
|
|
9
|
+
var UBreadcrumbItem = class UBreadcrumbItem extends UElement {
|
|
10
|
+
constructor(..._args) {
|
|
11
|
+
super(..._args);
|
|
12
|
+
this.disabled = false;
|
|
13
|
+
this.handleAnchorClick = (e) => {
|
|
14
|
+
if (this.disabled) {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (!this.fire("navigate")) e.preventDefault();
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.styles = [super.styles, styles];
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
if (this.href) return html`
|
|
26
|
+
<a part="link"
|
|
27
|
+
href=${this.href}
|
|
28
|
+
target=${ifDefined(this.target)}
|
|
29
|
+
rel=${ifDefined(this.rel)}
|
|
30
|
+
@click=${this.handleAnchorClick}
|
|
31
|
+
>
|
|
32
|
+
<slot name="prefix"></slot>
|
|
33
|
+
<slot></slot>
|
|
34
|
+
<slot name="suffix"></slot>
|
|
35
|
+
</a>`;
|
|
36
|
+
return html`
|
|
37
|
+
<slot name="prefix"></slot>
|
|
38
|
+
<slot></slot>
|
|
39
|
+
<slot name="suffix"></slot>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
__decorate([property({
|
|
44
|
+
type: Boolean,
|
|
45
|
+
reflect: true
|
|
46
|
+
}), __decorateMetadata("design:type", Boolean)], UBreadcrumbItem.prototype, "disabled", void 0);
|
|
47
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UBreadcrumbItem.prototype, "href", void 0);
|
|
48
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UBreadcrumbItem.prototype, "target", void 0);
|
|
49
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UBreadcrumbItem.prototype, "rel", void 0);
|
|
50
|
+
UBreadcrumbItem = __decorate([customElement("u-breadcrumb-item")], UBreadcrumbItem);
|
|
51
|
+
//#endregion
|
|
52
|
+
export { UBreadcrumbItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/breadcrumb-item/UBreadcrumbItem.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 0.2em;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
color: var(--u-txt-color-weak);
|
|
10
|
+
font-size: inherit;
|
|
11
|
+
line-height: 1.5em;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
:host:hover {
|
|
15
|
+
color: var(--u-blue-700);
|
|
16
|
+
}
|
|
17
|
+
:host([disabled]) {
|
|
18
|
+
opacity: 0.5;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
cursor: default;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.2em;
|
|
27
|
+
color: inherit;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
transition: color 0.2s ease;
|
|
30
|
+
cursor: inherit;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::slotted([slot="prefix"]) {
|
|
34
|
+
margin-right: 0.2em;
|
|
35
|
+
}
|
|
36
|
+
::slotted([slot="suffix"]) {
|
|
37
|
+
margin-left: 0.2em;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { styles };
|
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { UElement } from '../UElement.js';
|
|
3
|
+
export type ButtonVariant = "solid" | "surface" | "filled" | "outlined" | "ghost" | "link";
|
|
4
|
+
export type ButtonType = "button" | "submit" | "reset";
|
|
5
|
+
/**
|
|
6
|
+
* 클릭 가능한 버튼 컴포넌트입니다. href가 설정되면 앵커 태그로 렌더링됩니다.
|
|
7
|
+
*
|
|
8
|
+
* @slot - 버튼 내부 콘텐츠
|
|
9
|
+
* @slot prefix - 버튼 앞에 표시할 콘텐츠
|
|
10
|
+
* @slot suffix - 버튼 뒤에 표시할 콘텐츠
|
|
11
|
+
* @slot spinner - 로딩 시 표시할 커스텀 스피너
|
|
12
|
+
*
|
|
13
|
+
* @csspart link - 내부 앵커 요소 (href 설정 시)
|
|
14
|
+
* @csspart button - 내부 버튼 요소
|
|
15
|
+
* @csspart content - 콘텐츠 영역
|
|
16
|
+
* @csspart mask - 로딩 마스크 영역
|
|
17
|
+
*/
|
|
18
|
+
export declare class UButton extends UElement {
|
|
19
|
+
static styles: import('lit').CSSResultGroup[];
|
|
20
|
+
/** 버튼 스타일 변형 */
|
|
21
|
+
variant: ButtonVariant;
|
|
22
|
+
/** 경계선 둥글게 여부 */
|
|
23
|
+
rounded: boolean;
|
|
24
|
+
/** 비활성화 여부 */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/** 로딩 상태 여부 */
|
|
27
|
+
loading: boolean;
|
|
28
|
+
/** 버튼 타입 */
|
|
29
|
+
type: ButtonType;
|
|
30
|
+
/** 링크 URL (설정 시 앵커 태그로 렌더링) */
|
|
31
|
+
href?: string;
|
|
32
|
+
/** 링크 타겟 */
|
|
33
|
+
target?: string;
|
|
34
|
+
/** 링크 관계 */
|
|
35
|
+
rel?: string;
|
|
36
|
+
/** 다운로드 파일명 */
|
|
37
|
+
download?: string;
|
|
38
|
+
connectedCallback(): void;
|
|
39
|
+
disconnectedCallback(): void;
|
|
40
|
+
render(): TemplateResult<1>;
|
|
41
|
+
private renderContent;
|
|
42
|
+
private renderMask;
|
|
43
|
+
private handleClick;
|
|
44
|
+
private handleSpinnerSlotChange;
|
|
45
|
+
}
|
|
2
46
|
declare global {
|
|
3
47
|
interface HTMLElementTagNameMap {
|
|
4
|
-
|
|
48
|
+
'u-button': UButton;
|
|
5
49
|
}
|
|
6
50
|
}
|
|
7
|
-
export { UButton };
|
|
@@ -1,5 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { UElement } from "../UElement.js";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js";
|
|
3
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
4
|
+
import "../spinner/USpinner.js";
|
|
5
|
+
import { styles } from "./UButton.styles.js";
|
|
6
|
+
import { customElement, property } from "lit/decorators.js";
|
|
7
|
+
import { html } from "lit";
|
|
8
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
9
|
+
//#region src/components/button/UButton.ts
|
|
10
|
+
var UButton = class UButton extends UElement {
|
|
11
|
+
constructor(..._args) {
|
|
12
|
+
super(..._args);
|
|
13
|
+
this.variant = "solid";
|
|
14
|
+
this.rounded = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.loading = false;
|
|
17
|
+
this.type = "button";
|
|
18
|
+
this.handleClick = (e) => {
|
|
19
|
+
if (this.disabled || this.loading) {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
e.stopImmediatePropagation();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.handleSpinnerSlotChange = (e) => {
|
|
25
|
+
const hasSpinner = e.target.assignedNodes().length > 0;
|
|
26
|
+
this.toggleAttribute("has-spinner", hasSpinner);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.styles = [super.styles, styles];
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
super.connectedCallback();
|
|
34
|
+
this.addEventListener("click", this.handleClick);
|
|
35
|
+
}
|
|
36
|
+
disconnectedCallback() {
|
|
37
|
+
this.removeEventListener("click", this.handleClick);
|
|
38
|
+
super.disconnectedCallback();
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
if (this.href) return html`
|
|
42
|
+
<a part="link"
|
|
43
|
+
?disabled=${this.disabled || this.loading}
|
|
44
|
+
tabindex=${this.disabled || this.loading ? -1 : 0}
|
|
45
|
+
href=${ifDefined(this.disabled || this.loading ? void 0 : this.href)}
|
|
46
|
+
download=${ifDefined(this.download)}
|
|
47
|
+
target=${ifDefined(this.target)}
|
|
48
|
+
rel=${ifDefined(this.rel)}
|
|
49
|
+
>
|
|
50
|
+
${this.renderContent()}
|
|
51
|
+
</a>
|
|
52
|
+
${this.renderMask()}
|
|
53
|
+
`;
|
|
54
|
+
return html`
|
|
55
|
+
<button part="button"
|
|
56
|
+
type=${this.type}
|
|
57
|
+
?disabled=${this.disabled || this.loading}
|
|
58
|
+
>
|
|
59
|
+
${this.renderContent()}
|
|
60
|
+
</button>
|
|
61
|
+
${this.renderMask()}
|
|
62
|
+
`;
|
|
63
|
+
}
|
|
64
|
+
renderContent() {
|
|
65
|
+
return html`
|
|
66
|
+
<slot name="prefix"></slot>
|
|
67
|
+
<div class="content" part="content">
|
|
68
|
+
<slot></slot>
|
|
69
|
+
</div>
|
|
70
|
+
<slot name="suffix"></slot>
|
|
71
|
+
`;
|
|
72
|
+
}
|
|
73
|
+
renderMask() {
|
|
74
|
+
return html`
|
|
75
|
+
<div class="mask" part="mask" ?hidden=${!this.loading}>
|
|
76
|
+
<u-spinner></u-spinner>
|
|
77
|
+
<slot name="spinner" @slotchange=${this.handleSpinnerSlotChange}></slot>
|
|
78
|
+
</div>
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
__decorate([property({
|
|
83
|
+
type: String,
|
|
84
|
+
reflect: true
|
|
85
|
+
}), __decorateMetadata("design:type", Object)], UButton.prototype, "variant", void 0);
|
|
86
|
+
__decorate([property({
|
|
87
|
+
type: Boolean,
|
|
88
|
+
reflect: true
|
|
89
|
+
}), __decorateMetadata("design:type", Object)], UButton.prototype, "rounded", void 0);
|
|
90
|
+
__decorate([property({
|
|
91
|
+
type: Boolean,
|
|
92
|
+
reflect: true
|
|
93
|
+
}), __decorateMetadata("design:type", Object)], UButton.prototype, "disabled", void 0);
|
|
94
|
+
__decorate([property({
|
|
95
|
+
type: Boolean,
|
|
96
|
+
reflect: true
|
|
97
|
+
}), __decorateMetadata("design:type", Object)], UButton.prototype, "loading", void 0);
|
|
98
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", Object)], UButton.prototype, "type", void 0);
|
|
99
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UButton.prototype, "href", void 0);
|
|
100
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UButton.prototype, "target", void 0);
|
|
101
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UButton.prototype, "rel", void 0);
|
|
102
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UButton.prototype, "download", void 0);
|
|
103
|
+
UButton = __decorate([customElement("u-button")], UButton);
|
|
104
|
+
//#endregion
|
|
5
105
|
export { UButton };
|