@iyulab/components 0.3.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 +67 -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/UDataElement.d.ts +44 -0
- package/dist/components/UDataElement.js +101 -0
- package/dist/components/UDataElement.styles.js +95 -0
- package/dist/components/UElement.d.ts +54 -0
- package/dist/components/UElement.js +83 -0
- package/dist/components/UElement.styles.js +67 -0
- package/dist/components/UFloatingElement.d.ts +125 -0
- package/dist/components/UFloatingElement.js +238 -0
- package/dist/components/UFloatingElement.styles.d.ts +9 -0
- package/dist/components/UFloatingElement.styles.js +46 -0
- 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 +32 -33
- 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 +41 -8
- package/dist/index.js +56 -46
- 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.d.ts +23 -0
- package/dist/utilities/elements.js +67 -16
- package/dist/utilities/icons.d.ts +67 -0
- package/dist/utilities/icons.js +200 -0
- package/dist/utilities/sanitizers.d.ts +35 -0
- package/dist/utilities/sanitizers.js +75 -0
- package/package.json +24 -21
- 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.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/copy.svg.js +0 -3
- package/dist/assets/icons/dash-lg.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/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/BaseElement.d.ts +0 -33
- package/dist/components/BaseElement.js +0 -59
- package/dist/components/BaseElement.styles.js +0 -28
- package/dist/components/FloatingElement.d.ts +0 -104
- package/dist/components/FloatingElement.js +0 -195
- package/dist/components/FloatingElement.styles.js +0 -23
- package/dist/components/ModalElement.d.ts +0 -70
- package/dist/components/ModalElement.js +0 -144
- package/dist/components/ModalElement.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 -67
- package/dist/components/carousel/UCarousel.component.js +0 -243
- 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 -119
- 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/{BaseElement.styles.d.ts → UDataElement.styles.d.ts} +0 -0
- /package/dist/components/{FloatingElement.styles.d.ts → UElement.styles.d.ts} +0 -0
- /package/dist/components/{ModalElement.styles.d.ts → UFormControlElement.styles.d.ts} +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/tab-panel/UTabPanel.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
color: var(--u-txt-color);
|
|
7
|
+
font-size: inherit;
|
|
8
|
+
font-family: var(--u-font-base);
|
|
9
|
+
}
|
|
10
|
+
:host([disabled]) {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
opacity: 0.6;
|
|
13
|
+
}
|
|
14
|
+
:host([placement="top"]) { flex-direction: column; }
|
|
15
|
+
:host([placement="bottom"]) { flex-direction: column-reverse; }
|
|
16
|
+
:host([placement="left"]) { flex-direction: row; }
|
|
17
|
+
:host([placement="right"]) { flex-direction: row-reverse; }
|
|
18
|
+
|
|
19
|
+
.header {
|
|
20
|
+
min-height: 0;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
:host([placement="top"]) .header,
|
|
25
|
+
:host([placement="bottom"]) .header {
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
}
|
|
28
|
+
:host([placement="left"]) .header,
|
|
29
|
+
:host([placement="right"]) .header {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nav {
|
|
34
|
+
position: relative;
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: stretch;
|
|
38
|
+
flex: 0 1 auto;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
min-height: 0;
|
|
41
|
+
scrollbar-width: none;
|
|
42
|
+
scrollbar-color: transparent transparent;
|
|
43
|
+
}
|
|
44
|
+
:host([placement="top"]) .nav,
|
|
45
|
+
:host([placement="bottom"]) .nav {
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
overflow-x: auto;
|
|
48
|
+
overflow-y: hidden;
|
|
49
|
+
}
|
|
50
|
+
:host([placement="left"]) .nav,
|
|
51
|
+
:host([placement="right"]) .nav {
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
overflow-x: hidden;
|
|
54
|
+
overflow-y: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.toolbar {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
flex: 1 0 auto;
|
|
62
|
+
}
|
|
63
|
+
:host([placement="top"]) .toolbar,
|
|
64
|
+
:host([placement="bottom"]) .toolbar {
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
}
|
|
67
|
+
:host([placement="left"]) .toolbar,
|
|
68
|
+
:host([placement="right"]) .toolbar {
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.content {
|
|
73
|
+
flex: 1;
|
|
74
|
+
min-height: 0;
|
|
75
|
+
overflow: auto;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Variant: line */
|
|
79
|
+
|
|
80
|
+
:host([variant="line"]) ::slotted(u-tab[active]) {
|
|
81
|
+
position: relative;
|
|
82
|
+
color: var(--u-blue-600);
|
|
83
|
+
}
|
|
84
|
+
:host([variant="line"]) ::slotted(u-tab[active])::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
background-color: var(--u-blue-600);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([variant="line"][placement="top"]) .header {
|
|
91
|
+
border-bottom: 1px solid var(--u-border-color);
|
|
92
|
+
}
|
|
93
|
+
:host([variant="line"][placement="top"]) ::slotted(u-tab[active])::after {
|
|
94
|
+
height: 2px;
|
|
95
|
+
bottom: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
right: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host([variant="line"][placement="bottom"]) .header {
|
|
101
|
+
border-top: 1px solid var(--u-border-color);
|
|
102
|
+
}
|
|
103
|
+
:host([variant="line"][placement="bottom"]) ::slotted(u-tab[active])::after {
|
|
104
|
+
height: 2px;
|
|
105
|
+
top: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([variant="line"][placement="left"]) .header {
|
|
111
|
+
border-right: 1px solid var(--u-border-color);
|
|
112
|
+
}
|
|
113
|
+
:host([variant="line"][placement="left"]) ::slotted(u-tab[active])::after {
|
|
114
|
+
width: 2px;
|
|
115
|
+
right: 0;
|
|
116
|
+
top: 0;
|
|
117
|
+
bottom: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([variant="line"][placement="right"]) .header {
|
|
121
|
+
border-left: 1px solid var(--u-border-color);
|
|
122
|
+
}
|
|
123
|
+
:host([variant="line"][placement="right"]) ::slotted(u-tab[active])::after {
|
|
124
|
+
width: 2px;
|
|
125
|
+
left: 0;
|
|
126
|
+
top: 0;
|
|
127
|
+
bottom: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Variant: card */
|
|
131
|
+
|
|
132
|
+
:host([variant="card"]) ::slotted(u-tab) {
|
|
133
|
+
background-color: var(--u-neutral-100);
|
|
134
|
+
}
|
|
135
|
+
:host([variant="card"]) ::slotted(u-tab[active]) {
|
|
136
|
+
color: var(--u-txt-color);
|
|
137
|
+
background-color: var(--u-neutral-0);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([variant="card"][placement="top"]) ::slotted(u-tab) {
|
|
141
|
+
border-bottom: 1px solid var(--u-border-color);
|
|
142
|
+
border-right: 1px solid var(--u-border-color);
|
|
143
|
+
}
|
|
144
|
+
:host([variant="card"][placement="top"]) ::slotted(u-tab[active]) {
|
|
145
|
+
border-bottom: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host([variant="card"][placement="bottom"]) ::slotted(u-tab) {
|
|
149
|
+
border-top: 1px solid var(--u-border-color);
|
|
150
|
+
border-right: 1px solid var(--u-border-color);
|
|
151
|
+
}
|
|
152
|
+
:host([variant="card"][placement="bottom"]) ::slotted(u-tab[active]) {
|
|
153
|
+
border-top: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([variant="card"][placement="left"]) ::slotted(u-tab) {
|
|
157
|
+
border-right: 1px solid var(--u-border-color);
|
|
158
|
+
border-bottom: 1px solid var(--u-border-color);
|
|
159
|
+
}
|
|
160
|
+
:host([variant="card"][placement="left"]) ::slotted(u-tab[active]) {
|
|
161
|
+
border-right: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([variant="card"][placement="right"]) ::slotted(u-tab) {
|
|
165
|
+
border-left: 1px solid var(--u-border-color);
|
|
166
|
+
border-bottom: 1px solid var(--u-border-color);
|
|
167
|
+
}
|
|
168
|
+
:host([variant="card"][placement="right"]) ::slotted(u-tab[active]) {
|
|
169
|
+
border-left: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Variant: pill */
|
|
173
|
+
|
|
174
|
+
:host([variant="pill"]) .nav {
|
|
175
|
+
gap: 0.25em;
|
|
176
|
+
padding: 0.25em;
|
|
177
|
+
background-color: var(--u-neutral-100);
|
|
178
|
+
border-radius: 8px;
|
|
179
|
+
}
|
|
180
|
+
:host([variant="pill"]) ::slotted(u-tab) {
|
|
181
|
+
border: 1px solid transparent;
|
|
182
|
+
border-radius: 6px;
|
|
183
|
+
}
|
|
184
|
+
:host([variant="pill"]) ::slotted(u-tab[active]) {
|
|
185
|
+
border-color: var(--u-border-color);
|
|
186
|
+
background-color: var(--u-neutral-0);
|
|
187
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Variant: plain */
|
|
191
|
+
|
|
192
|
+
:host([variant="plain"]) .nav {
|
|
193
|
+
gap: 0.25em;
|
|
194
|
+
}
|
|
195
|
+
:host([variant="plain"]) ::slotted(u-tab[active]) {
|
|
196
|
+
color: var(--u-blue-600);
|
|
197
|
+
font-weight: 600;
|
|
198
|
+
}
|
|
199
|
+
`;
|
|
200
|
+
//#endregion
|
|
201
|
+
export { styles };
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UElement } from '../UElement.js';
|
|
2
|
+
export type TagVariant = "solid" | "surface" | "filled" | "outlined";
|
|
3
|
+
export type TagColor = "neutral" | "blue" | "green" | "yellow" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink";
|
|
4
|
+
/**
|
|
5
|
+
* 레이블, 카테고리, 상태 등을 표시하는 태그 컴포넌트입니다.
|
|
6
|
+
*
|
|
7
|
+
* @slot - 태그 메인 콘텐츠
|
|
8
|
+
* @slot prefix - 태그 앞에 표시할 콘텐츠
|
|
9
|
+
* @slot suffix - 태그 뒤에 표시할 콘텐츠
|
|
10
|
+
*
|
|
11
|
+
* @csspart content - 콘텐츠 영역
|
|
12
|
+
*
|
|
13
|
+
* @cssprop --tag-color - 텍스트 색상
|
|
14
|
+
* @cssprop --tag-bg-color - 배경 색상
|
|
15
|
+
* @cssprop --tag-border-color - 테두리 색상
|
|
16
|
+
*/
|
|
17
|
+
export declare class UTag extends UElement {
|
|
18
|
+
static styles: import('lit').CSSResultGroup[];
|
|
19
|
+
/** 태그의 스타일 변형을 설정합니다. */
|
|
20
|
+
variant: TagVariant;
|
|
21
|
+
/** 태그의 색상을 설정합니다. */
|
|
22
|
+
color: TagColor;
|
|
23
|
+
/** 태그를 둥글게 표시합니다. */
|
|
24
|
+
rounded: boolean;
|
|
25
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
26
|
+
}
|
|
2
27
|
declare global {
|
|
3
28
|
interface HTMLElementTagNameMap {
|
|
4
29
|
'u-tag': UTag;
|
|
5
30
|
}
|
|
6
31
|
}
|
|
7
|
-
export { UTag };
|
|
8
|
-
export type { TagVariant } from './UTag.component.js';
|
|
@@ -1,5 +1,42 @@
|
|
|
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 { styles } from "./UTag.styles.js";
|
|
5
|
+
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import { html } from "lit";
|
|
7
|
+
//#region src/components/tag/UTag.ts
|
|
8
|
+
var UTag = class UTag extends UElement {
|
|
9
|
+
constructor(..._args) {
|
|
10
|
+
super(..._args);
|
|
11
|
+
this.variant = "filled";
|
|
12
|
+
this.color = "neutral";
|
|
13
|
+
this.rounded = false;
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.styles = [super.styles, styles];
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return html`
|
|
20
|
+
<slot name="prefix"></slot>
|
|
21
|
+
<span class="content" part="content">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</span>
|
|
24
|
+
<slot name="suffix"></slot>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
__decorate([property({
|
|
29
|
+
type: String,
|
|
30
|
+
reflect: true
|
|
31
|
+
}), __decorateMetadata("design:type", Object)], UTag.prototype, "variant", void 0);
|
|
32
|
+
__decorate([property({
|
|
33
|
+
type: String,
|
|
34
|
+
reflect: true
|
|
35
|
+
}), __decorateMetadata("design:type", Object)], UTag.prototype, "color", void 0);
|
|
36
|
+
__decorate([property({
|
|
37
|
+
type: Boolean,
|
|
38
|
+
reflect: true
|
|
39
|
+
}), __decorateMetadata("design:type", Object)], UTag.prototype, "rounded", void 0);
|
|
40
|
+
UTag = __decorate([customElement("u-tag")], UTag);
|
|
41
|
+
//#endregion
|
|
5
42
|
export { UTag };
|
|
@@ -1,83 +1,229 @@
|
|
|
1
|
-
import { css } from
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/tag/UTag.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
--tag-color: var(--u-neutral-800);
|
|
6
|
+
--tag-bg-color: var(--u-neutral-100);
|
|
7
|
+
--tag-border-color: transparent;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Variant: solid (강한 채움) */
|
|
11
|
+
:host([variant="solid"]) {
|
|
12
|
+
--tag-color: var(--u-neutral-0);
|
|
13
|
+
--tag-bg-color: var(--u-neutral-600);
|
|
14
|
+
--tag-border-color: var(--u-neutral-600);
|
|
15
|
+
}
|
|
16
|
+
:host([variant="solid"][color="blue"]) {
|
|
17
|
+
--tag-bg-color: var(--u-blue-500);
|
|
18
|
+
--tag-border-color: var(--u-blue-500);
|
|
19
|
+
}
|
|
20
|
+
:host([variant="solid"][color="green"]) {
|
|
21
|
+
--tag-bg-color: var(--u-green-500);
|
|
22
|
+
--tag-border-color: var(--u-green-500);
|
|
23
|
+
}
|
|
24
|
+
:host([variant="solid"][color="yellow"]) {
|
|
25
|
+
--tag-bg-color: var(--u-yellow-600);
|
|
26
|
+
--tag-border-color: var(--u-yellow-600);
|
|
27
|
+
}
|
|
28
|
+
:host([variant="solid"][color="red"]) {
|
|
29
|
+
--tag-bg-color: var(--u-red-500);
|
|
30
|
+
--tag-border-color: var(--u-red-500);
|
|
31
|
+
}
|
|
32
|
+
:host([variant="solid"][color="orange"]) {
|
|
33
|
+
--tag-bg-color: var(--u-orange-500);
|
|
34
|
+
--tag-border-color: var(--u-orange-500);
|
|
35
|
+
}
|
|
36
|
+
:host([variant="solid"][color="teal"]) {
|
|
37
|
+
--tag-bg-color: var(--u-teal-500);
|
|
38
|
+
--tag-border-color: var(--u-teal-500);
|
|
39
|
+
}
|
|
40
|
+
:host([variant="solid"][color="cyan"]) {
|
|
41
|
+
--tag-bg-color: var(--u-cyan-500);
|
|
42
|
+
--tag-border-color: var(--u-cyan-500);
|
|
43
|
+
}
|
|
44
|
+
:host([variant="solid"][color="purple"]) {
|
|
45
|
+
--tag-bg-color: var(--u-purple-500);
|
|
46
|
+
--tag-border-color: var(--u-purple-500);
|
|
47
|
+
}
|
|
48
|
+
:host([variant="solid"][color="pink"]) {
|
|
49
|
+
--tag-bg-color: var(--u-pink-500);
|
|
50
|
+
--tag-border-color: var(--u-pink-500);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Variant: surface (채우기 + 테두리) */
|
|
54
|
+
:host([variant="surface"]) {
|
|
55
|
+
--tag-color: var(--u-neutral-800);
|
|
56
|
+
--tag-bg-color: var(--u-neutral-100);
|
|
57
|
+
--tag-border-color: var(--u-neutral-300);
|
|
58
|
+
}
|
|
59
|
+
:host([variant="surface"][color="blue"]) {
|
|
60
|
+
--tag-color: var(--u-blue-800);
|
|
61
|
+
--tag-bg-color: var(--u-blue-100);
|
|
62
|
+
--tag-border-color: var(--u-blue-300);
|
|
63
|
+
}
|
|
64
|
+
:host([variant="surface"][color="green"]) {
|
|
65
|
+
--tag-color: var(--u-green-800);
|
|
66
|
+
--tag-bg-color: var(--u-green-100);
|
|
67
|
+
--tag-border-color: var(--u-green-300);
|
|
68
|
+
}
|
|
69
|
+
:host([variant="surface"][color="yellow"]) {
|
|
70
|
+
--tag-color: var(--u-yellow-800);
|
|
71
|
+
--tag-bg-color: var(--u-yellow-100);
|
|
72
|
+
--tag-border-color: var(--u-yellow-300);
|
|
73
|
+
}
|
|
74
|
+
:host([variant="surface"][color="red"]) {
|
|
75
|
+
--tag-color: var(--u-red-800);
|
|
76
|
+
--tag-bg-color: var(--u-red-100);
|
|
77
|
+
--tag-border-color: var(--u-red-300);
|
|
78
|
+
}
|
|
79
|
+
:host([variant="surface"][color="orange"]) {
|
|
80
|
+
--tag-color: var(--u-orange-800);
|
|
81
|
+
--tag-bg-color: var(--u-orange-100);
|
|
82
|
+
--tag-border-color: var(--u-orange-300);
|
|
83
|
+
}
|
|
84
|
+
:host([variant="surface"][color="teal"]) {
|
|
85
|
+
--tag-color: var(--u-teal-800);
|
|
86
|
+
--tag-bg-color: var(--u-teal-100);
|
|
87
|
+
--tag-border-color: var(--u-teal-300);
|
|
88
|
+
}
|
|
89
|
+
:host([variant="surface"][color="cyan"]) {
|
|
90
|
+
--tag-color: var(--u-cyan-800);
|
|
91
|
+
--tag-bg-color: var(--u-cyan-100);
|
|
92
|
+
--tag-border-color: var(--u-cyan-300);
|
|
93
|
+
}
|
|
94
|
+
:host([variant="surface"][color="purple"]) {
|
|
95
|
+
--tag-color: var(--u-purple-800);
|
|
96
|
+
--tag-bg-color: var(--u-purple-100);
|
|
97
|
+
--tag-border-color: var(--u-purple-300);
|
|
98
|
+
}
|
|
99
|
+
:host([variant="surface"][color="pink"]) {
|
|
100
|
+
--tag-color: var(--u-pink-800);
|
|
101
|
+
--tag-bg-color: var(--u-pink-100);
|
|
102
|
+
--tag-border-color: var(--u-pink-300);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Variant: filled (채우기만, 테두리 없음) */
|
|
106
|
+
:host([variant="filled"]) {
|
|
107
|
+
--tag-color: var(--u-neutral-800);
|
|
108
|
+
--tag-bg-color: var(--u-neutral-100);
|
|
109
|
+
--tag-border-color: transparent;
|
|
110
|
+
}
|
|
111
|
+
:host([variant="filled"][color="blue"]) {
|
|
112
|
+
--tag-color: var(--u-blue-800);
|
|
113
|
+
--tag-bg-color: var(--u-blue-100);
|
|
114
|
+
}
|
|
115
|
+
:host([variant="filled"][color="green"]) {
|
|
116
|
+
--tag-color: var(--u-green-800);
|
|
117
|
+
--tag-bg-color: var(--u-green-100);
|
|
118
|
+
}
|
|
119
|
+
:host([variant="filled"][color="yellow"]) {
|
|
120
|
+
--tag-color: var(--u-yellow-800);
|
|
121
|
+
--tag-bg-color: var(--u-yellow-100);
|
|
122
|
+
}
|
|
123
|
+
:host([variant="filled"][color="red"]) {
|
|
124
|
+
--tag-color: var(--u-red-800);
|
|
125
|
+
--tag-bg-color: var(--u-red-100);
|
|
126
|
+
}
|
|
127
|
+
:host([variant="filled"][color="orange"]) {
|
|
128
|
+
--tag-color: var(--u-orange-800);
|
|
129
|
+
--tag-bg-color: var(--u-orange-100);
|
|
130
|
+
}
|
|
131
|
+
:host([variant="filled"][color="teal"]) {
|
|
132
|
+
--tag-color: var(--u-teal-800);
|
|
133
|
+
--tag-bg-color: var(--u-teal-100);
|
|
134
|
+
}
|
|
135
|
+
:host([variant="filled"][color="cyan"]) {
|
|
136
|
+
--tag-color: var(--u-cyan-800);
|
|
137
|
+
--tag-bg-color: var(--u-cyan-100);
|
|
138
|
+
}
|
|
139
|
+
:host([variant="filled"][color="purple"]) {
|
|
140
|
+
--tag-color: var(--u-purple-800);
|
|
141
|
+
--tag-bg-color: var(--u-purple-100);
|
|
142
|
+
}
|
|
143
|
+
:host([variant="filled"][color="pink"]) {
|
|
144
|
+
--tag-color: var(--u-pink-800);
|
|
145
|
+
--tag-bg-color: var(--u-pink-100);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Variant: outlined (테두리만) */
|
|
149
|
+
:host([variant="outlined"]) {
|
|
150
|
+
--tag-color: var(--u-neutral-700);
|
|
151
|
+
--tag-bg-color: transparent;
|
|
152
|
+
--tag-border-color: var(--u-neutral-300);
|
|
153
|
+
}
|
|
154
|
+
:host([variant="outlined"][color="blue"]) {
|
|
155
|
+
--tag-color: var(--u-blue-600);
|
|
156
|
+
--tag-border-color: var(--u-blue-300);
|
|
157
|
+
}
|
|
158
|
+
:host([variant="outlined"][color="green"]) {
|
|
159
|
+
--tag-color: var(--u-green-600);
|
|
160
|
+
--tag-border-color: var(--u-green-300);
|
|
161
|
+
}
|
|
162
|
+
:host([variant="outlined"][color="yellow"]) {
|
|
163
|
+
--tag-color: var(--u-yellow-700);
|
|
164
|
+
--tag-border-color: var(--u-yellow-300);
|
|
165
|
+
}
|
|
166
|
+
:host([variant="outlined"][color="red"]) {
|
|
167
|
+
--tag-color: var(--u-red-600);
|
|
168
|
+
--tag-border-color: var(--u-red-300);
|
|
169
|
+
}
|
|
170
|
+
:host([variant="outlined"][color="orange"]) {
|
|
171
|
+
--tag-color: var(--u-orange-600);
|
|
172
|
+
--tag-border-color: var(--u-orange-300);
|
|
173
|
+
}
|
|
174
|
+
:host([variant="outlined"][color="teal"]) {
|
|
175
|
+
--tag-color: var(--u-teal-600);
|
|
176
|
+
--tag-border-color: var(--u-teal-300);
|
|
177
|
+
}
|
|
178
|
+
:host([variant="outlined"][color="cyan"]) {
|
|
179
|
+
--tag-color: var(--u-cyan-600);
|
|
180
|
+
--tag-border-color: var(--u-cyan-300);
|
|
181
|
+
}
|
|
182
|
+
:host([variant="outlined"][color="purple"]) {
|
|
183
|
+
--tag-color: var(--u-purple-600);
|
|
184
|
+
--tag-border-color: var(--u-purple-300);
|
|
185
|
+
}
|
|
186
|
+
:host([variant="outlined"][color="pink"]) {
|
|
187
|
+
--tag-color: var(--u-pink-600);
|
|
188
|
+
--tag-border-color: var(--u-pink-300);
|
|
189
|
+
}
|
|
2
190
|
|
|
3
|
-
const styles = css`
|
|
4
191
|
:host {
|
|
5
192
|
display: inline-flex;
|
|
6
193
|
align-items: center;
|
|
7
194
|
gap: 4px;
|
|
8
195
|
font-size: 12px;
|
|
196
|
+
font-weight: 500;
|
|
9
197
|
padding: 0.25em 0.5em;
|
|
198
|
+
border: 1px solid var(--tag-border-color);
|
|
10
199
|
border-radius: 4px;
|
|
11
|
-
|
|
200
|
+
color: var(--tag-color);
|
|
201
|
+
background-color: var(--tag-bg-color);
|
|
12
202
|
line-height: 1.5em;
|
|
13
203
|
white-space: nowrap;
|
|
14
204
|
user-select: none;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
18
|
-
}
|
|
19
|
-
/* Style variants */
|
|
20
|
-
:host([variant="default"]) {
|
|
21
|
-
color: var(--u-neutral-800);
|
|
22
|
-
border: 1px solid var(--u-neutral-300);
|
|
23
|
-
background-color: var(--u-neutral-100);
|
|
24
|
-
}
|
|
25
|
-
:host([variant="info"]) {
|
|
26
|
-
color: var(--u-blue-800);
|
|
27
|
-
border: 1px solid var(--u-blue-300);
|
|
28
|
-
background-color: var(--u-blue-100);
|
|
29
|
-
}
|
|
30
|
-
:host([variant="success"]) {
|
|
31
|
-
color: var(--u-green-800);
|
|
32
|
-
border: 1px solid var(--u-green-300);
|
|
33
|
-
background-color: var(--u-green-100);
|
|
34
|
-
}
|
|
35
|
-
:host([variant="warning"]) {
|
|
36
|
-
color: var(--u-yellow-800);
|
|
37
|
-
border: 1px solid var(--u-yellow-300);
|
|
38
|
-
background-color: var(--u-yellow-100);
|
|
39
|
-
}
|
|
40
|
-
:host([variant="danger"]) {
|
|
41
|
-
color: var(--u-red-800);
|
|
42
|
-
border: 1px solid var(--u-red-300);
|
|
43
|
-
background-color: var(--u-red-100);
|
|
44
|
-
}
|
|
45
|
-
/* Rounded variant */
|
|
205
|
+
box-sizing: border-box;
|
|
206
|
+
}
|
|
46
207
|
:host([rounded]) {
|
|
47
208
|
border-radius: 999px;
|
|
48
209
|
}
|
|
49
210
|
|
|
50
|
-
/*
|
|
211
|
+
/* === Slots === */
|
|
51
212
|
::slotted([slot="prefix"]) {
|
|
52
|
-
margin-right: 0.
|
|
213
|
+
margin-right: 0.15em;
|
|
53
214
|
}
|
|
54
215
|
::slotted([slot="suffix"]) {
|
|
55
|
-
margin-left: 0.
|
|
216
|
+
margin-left: 0.15em;
|
|
56
217
|
}
|
|
57
218
|
|
|
58
|
-
/*
|
|
59
|
-
.
|
|
60
|
-
display: inline-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
height: 1em;
|
|
66
|
-
line-height: 1.2em;
|
|
67
|
-
padding: 0;
|
|
68
|
-
border: none;
|
|
69
|
-
border-radius: 50%;
|
|
70
|
-
color: currentColor;
|
|
71
|
-
background-color: transparent;
|
|
72
|
-
transition: background-color 0.2s ease;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
}
|
|
75
|
-
.remove-btn:hover {
|
|
76
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
77
|
-
}
|
|
78
|
-
.remove-btn:active {
|
|
79
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
219
|
+
/* === Content === */
|
|
220
|
+
.content {
|
|
221
|
+
display: inline-block;
|
|
222
|
+
min-width: 0;
|
|
223
|
+
white-space: nowrap;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
text-overflow: ellipsis;
|
|
80
226
|
}
|
|
81
227
|
`;
|
|
82
|
-
|
|
228
|
+
//#endregion
|
|
83
229
|
export { styles };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { UFormControlElement } from '../UFormControlElement.js';
|
|
3
|
+
import { AutoCapitalize, EnterKeyHint, InputModeOption } from '../input/UInput.js';
|
|
4
|
+
type TextareaVariant = 'outlined' | 'filled' | 'underlined' | 'borderless';
|
|
5
|
+
type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both' | 'auto';
|
|
6
|
+
/**
|
|
7
|
+
* 여러 줄의 텍스트 입력을 지원하는 텍스트에어리어 컴포넌트입니다.
|
|
8
|
+
*
|
|
9
|
+
* @csspart field - u-field 요소
|
|
10
|
+
* @csspart container - 텍스트에어리어를 감싸는 요소
|
|
11
|
+
* @csspart textarea - 실제 텍스트에어리어 요소
|
|
12
|
+
* @csspart counter - 글자 수 표시 영역
|
|
13
|
+
*
|
|
14
|
+
* @event input - 입력값이 변경될 때 발생
|
|
15
|
+
* @event change - 값이 확정됐을 때 발생
|
|
16
|
+
*/
|
|
17
|
+
export declare class UTextarea extends UFormControlElement<string> {
|
|
18
|
+
static styles: import('lit').CSSResultGroup[];
|
|
19
|
+
/** 스타일 변형 */
|
|
20
|
+
variant: TextareaVariant;
|
|
21
|
+
/** 리사이즈 모드 */
|
|
22
|
+
resize: TextareaResize;
|
|
23
|
+
/** 최소 행 수 */
|
|
24
|
+
minRows?: number;
|
|
25
|
+
/** 최대 행 수 */
|
|
26
|
+
maxRows?: number;
|
|
27
|
+
/** 글자수 표시 여부 */
|
|
28
|
+
counter: boolean;
|
|
29
|
+
/** 최소 길이 */
|
|
30
|
+
minlength?: number;
|
|
31
|
+
/** 최대 길이 */
|
|
32
|
+
maxlength?: number;
|
|
33
|
+
/** 입력 방향 정보 */
|
|
34
|
+
dirname?: string;
|
|
35
|
+
/** 모바일 가상 키보드 유형 */
|
|
36
|
+
inputmode?: InputModeOption;
|
|
37
|
+
/** 모바일 엔터 키 레이블 */
|
|
38
|
+
enterkeyhint?: EnterKeyHint;
|
|
39
|
+
/** 맞춤법 검사 여부 */
|
|
40
|
+
spellcheck: boolean;
|
|
41
|
+
/** 자동 포커스 여부 */
|
|
42
|
+
autofocus: boolean;
|
|
43
|
+
/** 자동 교정 기능 설정 (iOS) */
|
|
44
|
+
autocorrect: boolean;
|
|
45
|
+
/** 대문자 자동 변환 */
|
|
46
|
+
autocapitalize: AutoCapitalize;
|
|
47
|
+
/** 자동 완성 기능 설정 */
|
|
48
|
+
autocomplete?: AutoFill;
|
|
49
|
+
/** placeholder 텍스트 */
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
textareaEl?: HTMLTextAreaElement;
|
|
52
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
53
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
54
|
+
validate(): boolean;
|
|
55
|
+
reset(): void;
|
|
56
|
+
private resizeTextarea;
|
|
57
|
+
private handleTextareaInput;
|
|
58
|
+
private handleTextareaChange;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
'u-textarea': UTextarea;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {};
|