@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
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { css } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/* ── Host ── */
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/carousel/UCarousel.styles.ts
|
|
3
|
+
var styles = css`
|
|
5
4
|
:host {
|
|
6
5
|
--slide-gap: 0px;
|
|
7
6
|
--slides-per-view: 1;
|
|
8
7
|
}
|
|
8
|
+
|
|
9
9
|
:host {
|
|
10
|
-
display: block;
|
|
11
10
|
position: relative;
|
|
11
|
+
display: block;
|
|
12
12
|
width: 100%;
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
box-sizing: border-box;
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
/* ── Draggable ── */
|
|
18
15
|
:host([draggable]) .slides-wrapper {
|
|
19
|
-
cursor: grab;
|
|
20
16
|
user-select: none;
|
|
17
|
+
cursor: grab;
|
|
21
18
|
}
|
|
22
19
|
:host([draggable]) .slides-wrapper:active {
|
|
23
20
|
cursor: grabbing;
|
|
@@ -38,6 +35,7 @@ const styles = css`
|
|
|
38
35
|
|
|
39
36
|
.slides {
|
|
40
37
|
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
41
39
|
width: 100%;
|
|
42
40
|
height: 100%;
|
|
43
41
|
gap: var(--slide-gap, 0px);
|
|
@@ -46,12 +44,10 @@ const styles = css`
|
|
|
46
44
|
|
|
47
45
|
::slotted(*) {
|
|
48
46
|
flex: 0 0 calc(
|
|
49
|
-
(100% - (var(--slides-per-view) - 1) * var(--slide-gap, 0px))
|
|
50
|
-
/ var(--slides-per-view)
|
|
47
|
+
(100% - (var(--slides-per-view) - 1) * var(--slide-gap, 0px)) / var(--slides-per-view)
|
|
51
48
|
);
|
|
52
49
|
min-width: 0;
|
|
53
50
|
height: 100%;
|
|
54
|
-
box-sizing: border-box;
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
/* ── Navigation ── */
|
|
@@ -60,34 +56,37 @@ const styles = css`
|
|
|
60
56
|
z-index: 10;
|
|
61
57
|
top: 50%;
|
|
62
58
|
transform: translateY(-50%);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
border-radius: 50%;
|
|
69
|
-
font-size: 16px;
|
|
70
|
-
background-color: var(--u-panel-bg-color, #fff);
|
|
71
|
-
box-shadow: 0 2px 8px var(--u-shadow-color-normal, rgba(0, 0, 0, 0.12));
|
|
72
|
-
opacity: 0.9;
|
|
59
|
+
padding: 8px;
|
|
60
|
+
font-size: 20px;
|
|
61
|
+
color: var(--u-neutral-900);
|
|
62
|
+
background-color: var(--u-neutral-100);
|
|
63
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
73
64
|
}
|
|
74
65
|
.nav-button:hover {
|
|
75
|
-
|
|
76
|
-
|
|
66
|
+
background-color: var(--u-neutral-200);
|
|
67
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
68
|
+
transform: translateY(-50%) scale(1.1);
|
|
69
|
+
}
|
|
70
|
+
.nav-button:active {
|
|
71
|
+
background-color: var(--u-neutral-300);
|
|
72
|
+
transform: translateY(-50%) scale(0.95);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
|
-
.nav-button.prev { left:
|
|
80
|
-
.nav-button.next { right:
|
|
75
|
+
.nav-button.prev { left: 12px; }
|
|
76
|
+
.nav-button.next { right: 12px; }
|
|
81
77
|
|
|
82
|
-
/* ──
|
|
78
|
+
/* ── Pagination ── */
|
|
83
79
|
.indicator {
|
|
84
80
|
position: absolute;
|
|
85
81
|
z-index: 10;
|
|
86
82
|
bottom: 16px;
|
|
87
83
|
left: 50%;
|
|
88
|
-
transform: translateX(-50%);
|
|
89
84
|
display: flex;
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
90
88
|
gap: 8px;
|
|
89
|
+
transform: translateX(-50%);
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
.dot {
|
|
@@ -96,18 +95,18 @@ const styles = css`
|
|
|
96
95
|
padding: 0;
|
|
97
96
|
border: none;
|
|
98
97
|
border-radius: 50%;
|
|
99
|
-
background-color: var(--u-neutral-400
|
|
98
|
+
background-color: var(--u-neutral-400);
|
|
100
99
|
cursor: pointer;
|
|
101
100
|
transition: all 0.2s ease;
|
|
102
101
|
}
|
|
103
102
|
.dot:hover {
|
|
104
|
-
background-color: var(--u-neutral-200
|
|
103
|
+
background-color: var(--u-neutral-200);
|
|
105
104
|
}
|
|
106
|
-
.dot
|
|
107
|
-
background-color: var(--u-neutral-100, rgba(0, 0, 0, 0.8));
|
|
105
|
+
.dot[active] {
|
|
108
106
|
width: 24px;
|
|
109
107
|
border-radius: 5px;
|
|
108
|
+
background-color: var(--u-neutral-100);
|
|
110
109
|
}
|
|
111
110
|
`;
|
|
112
|
-
|
|
111
|
+
//#endregion
|
|
113
112
|
export { styles };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UFormControlElement } from '../UFormControlElement.js';
|
|
2
|
+
export type CheckboxVariant = "filled" | "outline";
|
|
3
|
+
export type CheckboxColor = "blue" | "green" | "red" | "orange" | "teal" | "cyan" | "purple" | "pink" | "neutral";
|
|
4
|
+
/**
|
|
5
|
+
* 선택/해제 상태를 토글하는 체크박스 컴포넌트입니다.
|
|
6
|
+
* indeterminate 상태도 지원합니다.
|
|
7
|
+
*
|
|
8
|
+
* @slot - 체크박스 옆에 표시할 라벨 텍스트
|
|
9
|
+
*
|
|
10
|
+
* @csspart wrapper - 체크박스 전체 래퍼
|
|
11
|
+
* @csspart input - 실제 체크박스 input 요소
|
|
12
|
+
* @csspart checkbox - 체크박스 시각 요소
|
|
13
|
+
* @csspart label - 라벨 텍스트 요소
|
|
14
|
+
* @csspart description - 설명 텍스트 요소
|
|
15
|
+
*
|
|
16
|
+
* @cssprop --checkbox-color - 체크 표시 색상 (outline variant)
|
|
17
|
+
* @cssprop --checkbox-border-color - 체크박스 테두리 색상
|
|
18
|
+
* @cssprop --checkbox-background-color - 체크박스 배경색 (filled variant)
|
|
19
|
+
*/
|
|
20
|
+
export declare class UCheckbox extends UFormControlElement<string> {
|
|
21
|
+
static styles: import('lit').CSSResultGroup[];
|
|
22
|
+
/** 스타일 변형 */
|
|
23
|
+
variant: CheckboxVariant;
|
|
24
|
+
/** 체크박스 강조 색상 */
|
|
25
|
+
color: CheckboxColor;
|
|
26
|
+
/** 중간 상태 */
|
|
27
|
+
indeterminate: boolean;
|
|
28
|
+
/** 체크 여부 */
|
|
29
|
+
checked: boolean;
|
|
30
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
31
|
+
validate(): boolean;
|
|
32
|
+
reset(): void;
|
|
33
|
+
private handleInputChange;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'u-checkbox': UCheckbox;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
3
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
5
|
+
import { styles } from "./UCheckbox.styles.js";
|
|
6
|
+
import { customElement, property } from "lit/decorators.js";
|
|
7
|
+
import { html } from "lit";
|
|
8
|
+
import { live } from "lit/directives/live.js";
|
|
9
|
+
//#region src/components/checkbox/UCheckbox.ts
|
|
10
|
+
var UCheckbox = class UCheckbox extends UFormControlElement {
|
|
11
|
+
constructor(..._args) {
|
|
12
|
+
super(..._args);
|
|
13
|
+
this.variant = "filled";
|
|
14
|
+
this.color = "blue";
|
|
15
|
+
this.indeterminate = false;
|
|
16
|
+
this.checked = false;
|
|
17
|
+
this.handleInputChange = (e) => {
|
|
18
|
+
e.stopImmediatePropagation();
|
|
19
|
+
if (this.readonly || this.disabled) return;
|
|
20
|
+
const input = e.target;
|
|
21
|
+
this.indeterminate = false;
|
|
22
|
+
this.checked = input.checked;
|
|
23
|
+
this.internals?.setFormValue(this.checked ? this.value || String(this.checked) : String(this.checked));
|
|
24
|
+
this.internals?.setValidity(input.validity, this.validationMessage || input.validationMessage, this.shadowRoot?.querySelector(".checkbox") || void 0);
|
|
25
|
+
if (!this.novalidate) this.validate();
|
|
26
|
+
this.relay(e);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.styles = [super.styles, styles];
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return html`
|
|
34
|
+
<label class="wrapper" part="wrapper">
|
|
35
|
+
<input part="input"
|
|
36
|
+
type="checkbox"
|
|
37
|
+
?disabled=${this.disabled || this.readonly}
|
|
38
|
+
?required=${this.required}
|
|
39
|
+
.checked=${live(this.checked)}
|
|
40
|
+
@change=${this.handleInputChange}
|
|
41
|
+
/>
|
|
42
|
+
<span class="checkbox" part="checkbox">
|
|
43
|
+
<u-icon
|
|
44
|
+
lib="internal"
|
|
45
|
+
name=${this.indeterminate ? "dash-lg" : "check-lg"}
|
|
46
|
+
></u-icon>
|
|
47
|
+
</span>
|
|
48
|
+
<span class="label" part="label">
|
|
49
|
+
<slot></slot>
|
|
50
|
+
<span class="required" ?hidden=${!this.required}>*</span>
|
|
51
|
+
</span>
|
|
52
|
+
</label>
|
|
53
|
+
|
|
54
|
+
<div class="description" part="description" ?hidden=${!this.description}>
|
|
55
|
+
${this.description}
|
|
56
|
+
</div>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
validate() {
|
|
60
|
+
if (this.internals) this.invalid = !this.internals.reportValidity();
|
|
61
|
+
else this.invalid = this.required && !this.checked;
|
|
62
|
+
return !this.invalid;
|
|
63
|
+
}
|
|
64
|
+
reset() {
|
|
65
|
+
this.checked = false;
|
|
66
|
+
this.indeterminate = false;
|
|
67
|
+
this.invalid = false;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
__decorate([property({
|
|
71
|
+
type: String,
|
|
72
|
+
reflect: true
|
|
73
|
+
}), __decorateMetadata("design:type", Object)], UCheckbox.prototype, "variant", void 0);
|
|
74
|
+
__decorate([property({
|
|
75
|
+
type: String,
|
|
76
|
+
reflect: true
|
|
77
|
+
}), __decorateMetadata("design:type", Object)], UCheckbox.prototype, "color", void 0);
|
|
78
|
+
__decorate([property({
|
|
79
|
+
type: Boolean,
|
|
80
|
+
reflect: true
|
|
81
|
+
}), __decorateMetadata("design:type", Boolean)], UCheckbox.prototype, "indeterminate", void 0);
|
|
82
|
+
__decorate([property({
|
|
83
|
+
type: Boolean,
|
|
84
|
+
reflect: true
|
|
85
|
+
}), __decorateMetadata("design:type", Boolean)], UCheckbox.prototype, "checked", void 0);
|
|
86
|
+
UCheckbox = __decorate([customElement("u-checkbox")], UCheckbox);
|
|
87
|
+
//#endregion
|
|
88
|
+
export { UCheckbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/checkbox/UCheckbox.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
--checkbox-color: inherit;
|
|
6
|
+
--checkbox-border-color: var(--u-input-border-color);
|
|
7
|
+
--checkbox-background-color: var(--u-input-bg-color);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
color: var(--u-txt-color);
|
|
14
|
+
font-size: inherit;
|
|
15
|
+
font-family: var(--u-font-base);
|
|
16
|
+
user-select: none;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* === 상태 스타일 === */
|
|
21
|
+
:host([disabled]) {
|
|
22
|
+
opacity: 0.6;
|
|
23
|
+
cursor: not-allowed;
|
|
24
|
+
}
|
|
25
|
+
:host([readonly]) {
|
|
26
|
+
cursor: default;
|
|
27
|
+
}
|
|
28
|
+
:host([invalid]) {
|
|
29
|
+
--checkbox-border-color: var(--u-red-600);
|
|
30
|
+
}
|
|
31
|
+
:host([invalid]) .footer {
|
|
32
|
+
color: var(--u-red-600);
|
|
33
|
+
}
|
|
34
|
+
:host([checked]) .checkbox u-icon,
|
|
35
|
+
:host([indeterminate]) .checkbox u-icon {
|
|
36
|
+
transform: scale(1);
|
|
37
|
+
}
|
|
38
|
+
:host(:not([disabled]):not([readonly]):hover) {
|
|
39
|
+
--checkbox-border-color: var(--u-input-border-color-hover);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* === Variant: filled - 배경 채움 === */
|
|
43
|
+
:host([variant="filled"][checked]),
|
|
44
|
+
:host([variant="filled"][indeterminate]) {
|
|
45
|
+
--checkbox-color: var(--u-neutral-100);
|
|
46
|
+
--checkbox-border-color: var(--u-blue-600);
|
|
47
|
+
--checkbox-background-color: var(--u-blue-600);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* === Variant: outline - 테두리만 === */
|
|
51
|
+
:host([variant="outline"][checked]),
|
|
52
|
+
:host([variant="outline"][indeterminate]) {
|
|
53
|
+
--checkbox-border-color: var(--u-blue-600);
|
|
54
|
+
--checkbox-background-color: transparent;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* === Color variants (filled) === */
|
|
58
|
+
:host([variant="filled"][color="blue"][checked]),
|
|
59
|
+
:host([variant="filled"][color="blue"][indeterminate]) {
|
|
60
|
+
--checkbox-border-color: var(--u-blue-600);
|
|
61
|
+
--checkbox-background-color: var(--u-blue-600);
|
|
62
|
+
}
|
|
63
|
+
:host([variant="filled"][color="green"][checked]),
|
|
64
|
+
:host([variant="filled"][color="green"][indeterminate]) {
|
|
65
|
+
--checkbox-border-color: var(--u-green-600);
|
|
66
|
+
--checkbox-background-color: var(--u-green-600);
|
|
67
|
+
}
|
|
68
|
+
:host([variant="filled"][color="red"][checked]),
|
|
69
|
+
:host([variant="filled"][color="red"][indeterminate]) {
|
|
70
|
+
--checkbox-border-color: var(--u-red-600);
|
|
71
|
+
--checkbox-background-color: var(--u-red-600);
|
|
72
|
+
}
|
|
73
|
+
:host([variant="filled"][color="orange"][checked]),
|
|
74
|
+
:host([variant="filled"][color="orange"][indeterminate]) {
|
|
75
|
+
--checkbox-border-color: var(--u-orange-600);
|
|
76
|
+
--checkbox-background-color: var(--u-orange-600);
|
|
77
|
+
}
|
|
78
|
+
:host([variant="filled"][color="teal"][checked]),
|
|
79
|
+
:host([variant="filled"][color="teal"][indeterminate]) {
|
|
80
|
+
--checkbox-border-color: var(--u-teal-600);
|
|
81
|
+
--checkbox-background-color: var(--u-teal-600);
|
|
82
|
+
}
|
|
83
|
+
:host([variant="filled"][color="cyan"][checked]),
|
|
84
|
+
:host([variant="filled"][color="cyan"][indeterminate]) {
|
|
85
|
+
--checkbox-border-color: var(--u-cyan-600);
|
|
86
|
+
--checkbox-background-color: var(--u-cyan-600);
|
|
87
|
+
}
|
|
88
|
+
:host([variant="filled"][color="purple"][checked]),
|
|
89
|
+
:host([variant="filled"][color="purple"][indeterminate]) {
|
|
90
|
+
--checkbox-border-color: var(--u-purple-600);
|
|
91
|
+
--checkbox-background-color: var(--u-purple-600);
|
|
92
|
+
}
|
|
93
|
+
:host([variant="filled"][color="pink"][checked]),
|
|
94
|
+
:host([variant="filled"][color="pink"][indeterminate]) {
|
|
95
|
+
--checkbox-border-color: var(--u-pink-600);
|
|
96
|
+
--checkbox-background-color: var(--u-pink-600);
|
|
97
|
+
}
|
|
98
|
+
:host([variant="filled"][color="neutral"][checked]),
|
|
99
|
+
:host([variant="filled"][color="neutral"][indeterminate]) {
|
|
100
|
+
--checkbox-border-color: var(--u-neutral-600);
|
|
101
|
+
--checkbox-background-color: var(--u-neutral-600);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* === Color variants (outline) === */
|
|
105
|
+
:host([variant="outline"][color="blue"][checked]),
|
|
106
|
+
:host([variant="outline"][color="blue"][indeterminate]) {
|
|
107
|
+
--checkbox-color: var(--u-blue-600);
|
|
108
|
+
--checkbox-border-color: var(--u-blue-600);
|
|
109
|
+
}
|
|
110
|
+
:host([variant="outline"][color="green"][checked]),
|
|
111
|
+
:host([variant="outline"][color="green"][indeterminate]) {
|
|
112
|
+
--checkbox-color: var(--u-green-600);
|
|
113
|
+
--checkbox-border-color: var(--u-green-600);
|
|
114
|
+
}
|
|
115
|
+
:host([variant="outline"][color="red"][checked]),
|
|
116
|
+
:host([variant="outline"][color="red"][indeterminate]) {
|
|
117
|
+
--checkbox-color: var(--u-red-600);
|
|
118
|
+
--checkbox-border-color: var(--u-red-600);
|
|
119
|
+
}
|
|
120
|
+
:host([variant="outline"][color="orange"][checked]),
|
|
121
|
+
:host([variant="outline"][color="orange"][indeterminate]) {
|
|
122
|
+
--checkbox-color: var(--u-orange-600);
|
|
123
|
+
--checkbox-border-color: var(--u-orange-600);
|
|
124
|
+
}
|
|
125
|
+
:host([variant="outline"][color="teal"][checked]),
|
|
126
|
+
:host([variant="outline"][color="teal"][indeterminate]) {
|
|
127
|
+
--checkbox-color: var(--u-teal-600);
|
|
128
|
+
--checkbox-border-color: var(--u-teal-600);
|
|
129
|
+
}
|
|
130
|
+
:host([variant="outline"][color="cyan"][checked]),
|
|
131
|
+
:host([variant="outline"][color="cyan"][indeterminate]) {
|
|
132
|
+
--checkbox-color: var(--u-cyan-600);
|
|
133
|
+
--checkbox-border-color: var(--u-cyan-600);
|
|
134
|
+
}
|
|
135
|
+
:host([variant="outline"][color="purple"][checked]),
|
|
136
|
+
:host([variant="outline"][color="purple"][indeterminate]) {
|
|
137
|
+
--checkbox-color: var(--u-purple-600);
|
|
138
|
+
--checkbox-border-color: var(--u-purple-600);
|
|
139
|
+
}
|
|
140
|
+
:host([variant="outline"][color="pink"][checked]),
|
|
141
|
+
:host([variant="outline"][color="pink"][indeterminate]) {
|
|
142
|
+
--checkbox-color: var(--u-pink-600);
|
|
143
|
+
--checkbox-border-color: var(--u-pink-600);
|
|
144
|
+
}
|
|
145
|
+
:host([variant="outline"][color="neutral"][checked]),
|
|
146
|
+
:host([variant="outline"][color="neutral"][indeterminate]) {
|
|
147
|
+
--checkbox-color: var(--u-neutral-600);
|
|
148
|
+
--checkbox-border-color: var(--u-neutral-600);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.wrapper {
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
align-items: flex-start;
|
|
154
|
+
gap: 0.5em;
|
|
155
|
+
cursor: inherit;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* 네이티브 체크박스 */
|
|
159
|
+
input {
|
|
160
|
+
position: absolute;
|
|
161
|
+
opacity: 0;
|
|
162
|
+
pointer-events: none;
|
|
163
|
+
}
|
|
164
|
+
input:focus-visible ~ .checkbox {
|
|
165
|
+
box-shadow:
|
|
166
|
+
0 0 0 1px var(--u-input-border-color-focus),
|
|
167
|
+
0 0 0 3px rgba(59, 130, 246, 0.22);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* 체크박스 외형 */
|
|
171
|
+
.checkbox {
|
|
172
|
+
flex-shrink: 0;
|
|
173
|
+
position: relative;
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
width: 1.2em;
|
|
178
|
+
height: 1.2em;
|
|
179
|
+
color: var(--checkbox-color);
|
|
180
|
+
border: 2px solid var(--checkbox-border-color);
|
|
181
|
+
border-radius: 0.2em;
|
|
182
|
+
background-color: var(--checkbox-background-color);
|
|
183
|
+
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* 체크박스 아이콘 */
|
|
187
|
+
.checkbox u-icon {
|
|
188
|
+
font-size: 0.85em;
|
|
189
|
+
transform: scale(0);
|
|
190
|
+
transition: transform 0.15s ease;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.label {
|
|
194
|
+
font-size: 1em;
|
|
195
|
+
line-height: 1.2;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.required {
|
|
199
|
+
color: var(--u-red-600);
|
|
200
|
+
font-weight: 500;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.description {
|
|
204
|
+
margin-top: 0.5em;
|
|
205
|
+
color: var(--u-txt-color-weak);
|
|
206
|
+
font-size: 0.75em;
|
|
207
|
+
line-height: 1.2;
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
//#endregion
|
|
211
|
+
export { styles };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UElement } from '../UElement.js';
|
|
2
|
+
import { TagVariant, TagColor } from '../tag/UTag.js';
|
|
3
|
+
/**
|
|
4
|
+
* 태그 상태 표시 또는 선택 UI와 인터랙션(선택, 삭제)을 지원하는 칩 컴포넌트입니다.
|
|
5
|
+
*
|
|
6
|
+
* @slot - 칩의 주요 콘텐츠
|
|
7
|
+
* @slot prefix - 칩의 앞에 표시할 콘텐츠
|
|
8
|
+
* @slot suffix - 칩의 뒤에 표시할 콘텐츠
|
|
9
|
+
* @slot tooltip - 툴팁 표시
|
|
10
|
+
*
|
|
11
|
+
* @csspart tag - 내부 UTag 요소
|
|
12
|
+
* @csspart check - 선택 상태를 나타내는 체크 아이콘
|
|
13
|
+
* @csspart remove - 삭제 버튼
|
|
14
|
+
* @csspart tooltip - 툴팁 요소
|
|
15
|
+
*
|
|
16
|
+
* @event pick - 선택 시 발생
|
|
17
|
+
* @event remove - 삭제 버튼 클릭 시 발생
|
|
18
|
+
*/
|
|
19
|
+
export declare class UChip extends UElement {
|
|
20
|
+
static styles: import('lit').CSSResultGroup[];
|
|
21
|
+
/** 칩의 스타일 변형 */
|
|
22
|
+
variant: TagVariant;
|
|
23
|
+
/** 칩의 색상 */
|
|
24
|
+
color: TagColor;
|
|
25
|
+
/** 둥근 모서리 여부 */
|
|
26
|
+
rounded: boolean;
|
|
27
|
+
/** 삭제 가능 여부 */
|
|
28
|
+
removable: boolean;
|
|
29
|
+
/** 선택 가능 여부 */
|
|
30
|
+
selectable: boolean;
|
|
31
|
+
/** 선택 상태 */
|
|
32
|
+
selected: boolean;
|
|
33
|
+
/** 칩의 고유값 */
|
|
34
|
+
value: string;
|
|
35
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
36
|
+
private handleTagClick;
|
|
37
|
+
private handleRemoveClick;
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'u-chip': UChip;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 "../icon/UIcon.js";
|
|
5
|
+
import "../button/UButton.js";
|
|
6
|
+
import "../tooltip/UTooltip.js";
|
|
7
|
+
import "../tag/UTag.js";
|
|
8
|
+
import { styles } from "./UChip.styles.js";
|
|
9
|
+
import { customElement, property } from "lit/decorators.js";
|
|
10
|
+
import { html } from "lit";
|
|
11
|
+
//#region src/components/chip/UChip.ts
|
|
12
|
+
var UChip = class UChip extends UElement {
|
|
13
|
+
constructor(..._args) {
|
|
14
|
+
super(..._args);
|
|
15
|
+
this.variant = "filled";
|
|
16
|
+
this.color = "neutral";
|
|
17
|
+
this.rounded = false;
|
|
18
|
+
this.removable = false;
|
|
19
|
+
this.selectable = false;
|
|
20
|
+
this.selected = false;
|
|
21
|
+
this.value = "";
|
|
22
|
+
this.handleTagClick = (e) => {
|
|
23
|
+
if (!this.selectable) return;
|
|
24
|
+
this.selected = !this.selected;
|
|
25
|
+
this.fire("pick", { detail: {
|
|
26
|
+
value: this.value,
|
|
27
|
+
selected: this.selected,
|
|
28
|
+
shiftKey: e.shiftKey,
|
|
29
|
+
metaKey: e.metaKey,
|
|
30
|
+
ctrlKey: e.ctrlKey
|
|
31
|
+
} });
|
|
32
|
+
};
|
|
33
|
+
this.handleRemoveClick = (e) => {
|
|
34
|
+
e.stopImmediatePropagation();
|
|
35
|
+
if (this.fire("remove")) this.remove();
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static {
|
|
39
|
+
this.styles = [super.styles, styles];
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return html`
|
|
43
|
+
<u-tag part="tag"
|
|
44
|
+
.variant=${this.variant}
|
|
45
|
+
.color=${this.color}
|
|
46
|
+
.rounded=${this.rounded}
|
|
47
|
+
@click=${this.handleTagClick}
|
|
48
|
+
>
|
|
49
|
+
<u-icon class="check-icon" part="check" slot="prefix"
|
|
50
|
+
?hidden=${!this.selectable || !this.selected}
|
|
51
|
+
lib="internal"
|
|
52
|
+
name="check-lg"
|
|
53
|
+
></u-icon>
|
|
54
|
+
|
|
55
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
56
|
+
<slot></slot>
|
|
57
|
+
<slot name="suffix" slot="suffix"></slot>
|
|
58
|
+
|
|
59
|
+
<u-button class="remove-btn" part="remove" slot="suffix"
|
|
60
|
+
?hidden=${!this.removable}
|
|
61
|
+
rounded
|
|
62
|
+
variant="ghost"
|
|
63
|
+
tabindex="-1"
|
|
64
|
+
aria-label="Remove"
|
|
65
|
+
@click=${this.handleRemoveClick}>
|
|
66
|
+
<u-icon lib="internal" name="x-lg"></u-icon>
|
|
67
|
+
</u-button>
|
|
68
|
+
</u-tag>
|
|
69
|
+
|
|
70
|
+
<u-tooltip part="tooltip">
|
|
71
|
+
<slot name="tooltip"></slot>
|
|
72
|
+
</u-tooltip>
|
|
73
|
+
`;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
__decorate([property({
|
|
77
|
+
type: String,
|
|
78
|
+
reflect: true
|
|
79
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "variant", void 0);
|
|
80
|
+
__decorate([property({
|
|
81
|
+
type: String,
|
|
82
|
+
reflect: true
|
|
83
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "color", void 0);
|
|
84
|
+
__decorate([property({
|
|
85
|
+
type: Boolean,
|
|
86
|
+
reflect: true
|
|
87
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "rounded", void 0);
|
|
88
|
+
__decorate([property({
|
|
89
|
+
type: Boolean,
|
|
90
|
+
reflect: true
|
|
91
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "removable", void 0);
|
|
92
|
+
__decorate([property({
|
|
93
|
+
type: Boolean,
|
|
94
|
+
reflect: true
|
|
95
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "selectable", void 0);
|
|
96
|
+
__decorate([property({
|
|
97
|
+
type: Boolean,
|
|
98
|
+
reflect: true
|
|
99
|
+
}), __decorateMetadata("design:type", Object)], UChip.prototype, "selected", void 0);
|
|
100
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UChip.prototype, "value", void 0);
|
|
101
|
+
UChip = __decorate([customElement("u-chip")], UChip);
|
|
102
|
+
//#endregion
|
|
103
|
+
export { UChip };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/chip/UChip.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
user-select: none;
|
|
7
|
+
cursor: default;
|
|
8
|
+
}
|
|
9
|
+
:host([selectable]) {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([selectable]:hover) u-tag {
|
|
14
|
+
filter: brightness(0.95);
|
|
15
|
+
}
|
|
16
|
+
:host([selectable][selected]) u-tag {
|
|
17
|
+
outline: 2px solid currentColor;
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.check-icon {
|
|
23
|
+
font-size: 1em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.remove-btn {
|
|
27
|
+
font-size: 0.7em;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { styles };
|
|
@@ -1,7 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSResultGroup, PropertyValues } from 'lit';
|
|
2
|
+
import { UOverlayElement } from '../UOverlayElement.js';
|
|
3
|
+
export type DialogPlacement = 'top-start' | 'top' | 'top-end' | 'start' | 'center' | 'end' | 'bottom-start' | 'bottom' | 'bottom-end';
|
|
4
|
+
/**
|
|
5
|
+
* 오버레이 위에 모달 창을 제공하는 다이얼로그 컴포넌트입니다.
|
|
6
|
+
*
|
|
7
|
+
* @slot - 본문 영역
|
|
8
|
+
* @slot header - 헤더 콘텐츠 영역
|
|
9
|
+
* @slot footer - 푸터 영역 (액션 버튼 등)
|
|
10
|
+
*
|
|
11
|
+
* @csspart container - 다이얼로그의 컨테이너 요소
|
|
12
|
+
* @csspart panel - 다이얼로그의 패널 요소
|
|
13
|
+
* @csspart header - 다이얼로그의 헤더 요소
|
|
14
|
+
* @csspart body - 다이얼로그의 본문 요소
|
|
15
|
+
* @csspart close-btn - 닫기 버튼 요소
|
|
16
|
+
*/
|
|
17
|
+
export declare class UDialog extends UOverlayElement {
|
|
18
|
+
static styles: CSSResultGroup;
|
|
19
|
+
/** 닫기 버튼 표시 여부 */
|
|
20
|
+
closable: boolean;
|
|
21
|
+
/** 다이얼로그 배치 위치 */
|
|
22
|
+
placement: DialogPlacement;
|
|
23
|
+
/** 가장자리로부터의 간격 (px) */
|
|
24
|
+
offset: number;
|
|
25
|
+
private hasHeader;
|
|
26
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
27
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
28
|
+
private handleHeaderSlotChange;
|
|
29
|
+
}
|
|
2
30
|
declare global {
|
|
3
31
|
interface HTMLElementTagNameMap {
|
|
4
32
|
'u-dialog': UDialog;
|
|
5
33
|
}
|
|
6
34
|
}
|
|
7
|
-
export { UDialog };
|