@dpa-id-components/dpa-shared-components 22.0.0-next.0 → 22.0.0-next.2
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/dist/alert-CFNc2ENq.js +18 -0
- package/dist/{alert-fill-BHn_Z4vo.js → alert-filled-COSmQYAa.js} +1 -1
- package/dist/assets/icons/activities.vue.d.ts +2 -1
- package/dist/assets/icons/ai.vue.d.ts +2 -1
- package/dist/assets/icons/alert-filled.vue.d.ts +3 -0
- package/dist/assets/icons/alert-octagon.vue.d.ts +2 -1
- package/dist/assets/icons/alert.vue.d.ts +2 -1
- package/dist/assets/icons/apps.vue.d.ts +2 -1
- package/dist/assets/icons/archive.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-down.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-left.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-nav-left.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-nav-right.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-right.vue.d.ts +2 -1
- package/dist/assets/icons/arrow-up.vue.d.ts +2 -1
- package/dist/assets/icons/arrowhead-left.vue.d.ts +2 -1
- package/dist/assets/icons/arrowhead-right.vue.d.ts +2 -1
- package/dist/assets/icons/arrowhead-top.vue.d.ts +2 -1
- package/dist/assets/icons/atmo.vue.d.ts +2 -1
- package/dist/assets/icons/audio.vue.d.ts +2 -1
- package/dist/assets/icons/bag.vue.d.ts +2 -1
- package/dist/assets/icons/bell-filled.vue.d.ts +3 -0
- package/dist/assets/icons/bell.vue.d.ts +2 -1
- package/dist/assets/icons/book.vue.d.ts +2 -1
- package/dist/assets/icons/bookmark-filled.vue.d.ts +3 -0
- package/dist/assets/icons/bookmark.vue.d.ts +2 -1
- package/dist/assets/icons/box.vue.d.ts +2 -1
- package/dist/assets/icons/bulb.vue.d.ts +2 -1
- package/dist/assets/icons/call.vue.d.ts +2 -1
- package/dist/assets/icons/camera.vue.d.ts +2 -1
- package/dist/assets/icons/check.vue.d.ts +2 -1
- package/dist/assets/icons/checklist.vue.d.ts +2 -1
- package/dist/assets/icons/checkmark-double.vue.d.ts +2 -1
- package/dist/assets/icons/checkmark.vue.d.ts +2 -1
- package/dist/assets/icons/chevron-down.vue.d.ts +2 -1
- package/dist/assets/icons/chevron-left.vue.d.ts +2 -1
- package/dist/assets/icons/chevron-right.vue.d.ts +2 -1
- package/dist/assets/icons/chevron-up.vue.d.ts +2 -1
- package/dist/assets/icons/clipboard.vue.d.ts +2 -1
- package/dist/assets/icons/clock.vue.d.ts +2 -1
- package/dist/assets/icons/close.vue.d.ts +2 -1
- package/dist/assets/icons/cloud-save.vue.d.ts +2 -1
- package/dist/assets/icons/code.vue.d.ts +2 -1
- package/dist/assets/icons/collapse.vue.d.ts +2 -1
- package/dist/assets/icons/color-palette.vue.d.ts +2 -1
- package/dist/assets/icons/comment-filled.vue.d.ts +3 -0
- package/dist/assets/icons/comment.vue.d.ts +2 -1
- package/dist/assets/icons/copy-link.vue.d.ts +2 -1
- package/dist/assets/icons/copy.vue.d.ts +2 -1
- package/dist/assets/icons/delete.vue.d.ts +2 -1
- package/dist/assets/icons/download.vue.d.ts +2 -1
- package/dist/assets/icons/dpa-id.vue.d.ts +2 -1
- package/dist/assets/icons/edit-add.vue.d.ts +2 -1
- package/dist/assets/icons/edit.vue.d.ts +2 -1
- package/dist/assets/icons/eil.vue.d.ts +2 -1
- package/dist/assets/icons/emoji-add.vue.d.ts +2 -1
- package/dist/assets/icons/emoji.vue.d.ts +2 -1
- package/dist/assets/icons/envelope.vue.d.ts +2 -1
- package/dist/assets/icons/event.vue.d.ts +2 -1
- package/dist/assets/icons/expand.vue.d.ts +2 -1
- package/dist/assets/icons/external-link.vue.d.ts +2 -1
- package/dist/assets/icons/file-pdf.vue.d.ts +2 -1
- package/dist/assets/icons/file.vue.d.ts +2 -1
- package/dist/assets/icons/filter.vue.d.ts +2 -1
- package/dist/assets/icons/flag-filled.vue.d.ts +2 -1
- package/dist/assets/icons/flag.vue.d.ts +2 -1
- package/dist/assets/icons/flags.vue.d.ts +2 -1
- package/dist/assets/icons/flash.vue.d.ts +2 -1
- package/dist/assets/icons/folder-add.vue.d.ts +2 -1
- package/dist/assets/icons/folder-filled.vue.d.ts +2 -1
- package/dist/assets/icons/folder.vue.d.ts +2 -1
- package/dist/assets/icons/gallery.vue.d.ts +2 -1
- package/dist/assets/icons/graphic.vue.d.ts +2 -1
- package/dist/assets/icons/graphics.vue.d.ts +2 -1
- package/dist/assets/icons/grid-1.vue.d.ts +2 -1
- package/dist/assets/icons/grid-2.vue.d.ts +2 -1
- package/dist/assets/icons/grid-3.vue.d.ts +2 -1
- package/dist/assets/icons/grid-4.vue.d.ts +2 -1
- package/dist/assets/icons/grid-6.vue.d.ts +2 -1
- package/dist/assets/icons/grid-9.vue.d.ts +2 -1
- package/dist/assets/icons/grid-masonry-9.vue.d.ts +2 -1
- package/dist/assets/icons/grid-masonry.vue.d.ts +2 -1
- package/dist/assets/icons/help.vue.d.ts +2 -1
- package/dist/assets/icons/home.vue.d.ts +2 -1
- package/dist/assets/icons/image-focus-point.vue.d.ts +2 -1
- package/dist/assets/icons/image.vue.d.ts +2 -1
- package/dist/assets/icons/impact-high.vue.d.ts +2 -1
- package/dist/assets/icons/impact-low.vue.d.ts +2 -1
- package/dist/assets/icons/impact-medium.vue.d.ts +2 -1
- package/dist/assets/icons/impact-very-high.vue.d.ts +2 -1
- package/dist/assets/icons/impact-very-low.vue.d.ts +2 -1
- package/dist/assets/icons/info-filled.vue.d.ts +2 -1
- package/dist/assets/icons/info.vue.d.ts +2 -1
- package/dist/assets/icons/label-filled.vue.d.ts +2 -1
- package/dist/assets/icons/label.vue.d.ts +2 -1
- package/dist/assets/icons/language.vue.d.ts +2 -1
- package/dist/assets/icons/latest.vue.d.ts +2 -1
- package/dist/assets/icons/lightbulb.vue.d.ts +2 -1
- package/dist/assets/icons/list-search.vue.d.ts +2 -1
- package/dist/assets/icons/list.vue.d.ts +2 -1
- package/dist/assets/icons/lock-filled.vue.d.ts +2 -1
- package/dist/assets/icons/lock.vue.d.ts +2 -1
- package/dist/assets/icons/mail.vue.d.ts +2 -1
- package/dist/assets/icons/map-filled.vue.d.ts +3 -0
- package/dist/assets/icons/map.vue.d.ts +2 -1
- package/dist/assets/icons/menu.vue.d.ts +2 -1
- package/dist/assets/icons/minus.vue.d.ts +2 -1
- package/dist/assets/icons/more-horizontal.vue.d.ts +2 -1
- package/dist/assets/icons/more-vertical.vue.d.ts +2 -1
- package/dist/assets/icons/move-up-down.vue.d.ts +2 -1
- package/dist/assets/icons/move.vue.d.ts +2 -1
- package/dist/assets/icons/navigation.vue.d.ts +2 -1
- package/dist/assets/icons/note.vue.d.ts +2 -1
- package/dist/assets/icons/offline.vue.d.ts +2 -1
- package/dist/assets/icons/package.vue.d.ts +2 -1
- package/dist/assets/icons/paper-plane.vue.d.ts +2 -1
- package/dist/assets/icons/pause.vue.d.ts +2 -1
- package/dist/assets/icons/pdf.vue.d.ts +2 -1
- package/dist/assets/icons/pen-check.vue.d.ts +2 -1
- package/dist/assets/icons/pen.vue.d.ts +2 -1
- package/dist/assets/icons/people.vue.d.ts +2 -1
- package/dist/assets/icons/phone.vue.d.ts +2 -1
- package/dist/assets/icons/picture.vue.d.ts +2 -1
- package/dist/assets/icons/pin.vue.d.ts +2 -1
- package/dist/assets/icons/planning.vue.d.ts +2 -1
- package/dist/assets/icons/play-filled.vue.d.ts +3 -0
- package/dist/assets/icons/play.vue.d.ts +2 -1
- package/dist/assets/icons/plus.vue.d.ts +2 -1
- package/dist/assets/icons/print.vue.d.ts +2 -1
- package/dist/assets/icons/refresh.vue.d.ts +2 -1
- package/dist/assets/icons/reset.vue.d.ts +2 -1
- package/dist/assets/icons/responsive.vue.d.ts +2 -1
- package/dist/assets/icons/rubix-thema.vue.d.ts +2 -1
- package/dist/assets/icons/save.vue.d.ts +2 -1
- package/dist/assets/icons/saved-search-filled.vue.d.ts +3 -0
- package/dist/assets/icons/saved-search.vue.d.ts +2 -1
- package/dist/assets/icons/search.vue.d.ts +2 -1
- package/dist/assets/icons/settings.vue.d.ts +2 -1
- package/dist/assets/icons/share-alternative.vue.d.ts +2 -1
- package/dist/assets/icons/share.vue.d.ts +2 -1
- package/dist/assets/icons/sidebar-filled.vue.d.ts +3 -0
- package/dist/assets/icons/sidebar.vue.d.ts +2 -1
- package/dist/assets/icons/slack.vue.d.ts +2 -1
- package/dist/assets/icons/slider-config.vue.d.ts +2 -1
- package/dist/assets/icons/spellcheck.vue.d.ts +2 -1
- package/dist/assets/icons/spinner.vue.d.ts +2 -1
- package/dist/assets/icons/standard-view.vue.d.ts +2 -1
- package/dist/assets/icons/star-filled.vue.d.ts +2 -1
- package/dist/assets/icons/star.vue.d.ts +2 -1
- package/dist/assets/icons/stop.vue.d.ts +2 -1
- package/dist/assets/icons/story.vue.d.ts +2 -1
- package/dist/assets/icons/sync.vue.d.ts +2 -1
- package/dist/assets/icons/tasks.vue.d.ts +2 -1
- package/dist/assets/icons/text.vue.d.ts +2 -1
- package/dist/assets/icons/thumbs-down.vue.d.ts +2 -1
- package/dist/assets/icons/thumbs-up-double.vue.d.ts +2 -1
- package/dist/assets/icons/thumbs-up.vue.d.ts +2 -1
- package/dist/assets/icons/topic.vue.d.ts +2 -1
- package/dist/assets/icons/union.vue.d.ts +2 -1
- package/dist/assets/icons/upload.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-divert-me.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-educate-me.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-give-me-perspective.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-help-me.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-touch-me.vue.d.ts +2 -1
- package/dist/assets/icons/user-need-update-me.vue.d.ts +2 -1
- package/dist/assets/icons/video-overlay.vue.d.ts +2 -1
- package/dist/assets/icons/video.vue.d.ts +2 -1
- package/dist/assets/icons/view-off.vue.d.ts +2 -1
- package/dist/assets/icons/view.vue.d.ts +2 -1
- package/dist/assets/icons/volume-up.vue.d.ts +2 -1
- package/dist/audio-BHaZEzct.js +18 -0
- package/dist/{bell-fill-V3HfJHso.js → bell-filled-7gfK8601.js} +1 -1
- package/dist/{bookmark-outlined-0DE6Lfs1.js → bookmark-D65iW--h.js} +1 -1
- package/dist/{bookmark-CPW0Zaxb.js → bookmark-filled-5lCW1BfF.js} +1 -1
- package/dist/{comment-fill-Dkv32BJ_.js → comment-filled-Cl_qZ6Fz.js} +1 -1
- package/dist/components/DpaMediaItem/DpaMediaItem.vue.d.ts +14 -9
- package/dist/components/UiBadge/UiBadge.vue.d.ts +7 -11
- package/dist/components/UiButton/UiButton.vue.d.ts +10 -20
- package/dist/components/UiButtonGroup/UiButtonGroup.vue.d.ts +2 -1
- package/dist/components/UiCard/UiCard.vue.d.ts +2 -1
- package/dist/components/UiCheckBoxGroup/UiCheckBoxGroup.vue.d.ts +8 -7
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +18 -31
- package/dist/components/UiChip/UiChip.vue.d.ts +8 -15
- package/dist/components/UiCollapseNavigation/UiCollapseNavigation.vue.d.ts +5 -4
- package/dist/components/UiColorPicker/UiColorPicker.vue.d.ts +5 -4
- package/dist/components/UiDatePicker/UiDatePicker.vue.d.ts +16 -845
- package/dist/components/UiDialog/UiDialog.vue.d.ts +16 -35
- package/dist/components/UiFilterBadge/UiFilterBadge.vue.d.ts +7 -11
- package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +4 -3
- package/dist/components/UiIcon/UiIcon.vue.d.ts +4 -3
- package/dist/components/UiIcon/UiIconLoading.vue.d.ts +2 -1
- package/dist/components/UiIcon/icons.d.ts +13 -25
- package/dist/components/UiIconButton/UiIconButton.vue.d.ts +4 -3
- package/dist/components/UiInfoContent/UiInfoContent.vue.d.ts +11 -13
- package/dist/components/UiInput/UiInput.vue.d.ts +19 -33
- package/dist/components/UiLabel/UiLabel.vue.d.ts +9 -19
- package/dist/components/UiList/UiList.vue.d.ts +2 -1
- package/dist/components/UiListItem/UiListItem.vue.d.ts +10 -13
- package/dist/components/UiMediaTypeIcon/UiMediaTypeIcon.vue.d.ts +11 -0
- package/dist/components/UiMediaTypeIcon/UiMediaTypeIconLoading.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/alert.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/audio.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/gallery.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/graphic.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/package.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/picture.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/story.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/text.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons/video.vue.d.ts +3 -0
- package/dist/components/UiMediaTypeIcon/icons.d.ts +11 -0
- package/dist/components/UiMenu/UiMenu.vue.d.ts +23 -26
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +15 -10
- package/dist/components/UiMenu/UiMenuList.vue.d.ts +7 -6
- package/dist/components/UiOverlay/UiOverlay.vue.d.ts +6 -5
- package/dist/components/UiOverlayMenu/UiOverlayMenu.vue.d.ts +6 -5
- package/dist/components/UiPopover/UiPopover.vue.d.ts +16 -37
- package/dist/components/UiRadioButton/UiRadioButton.vue.d.ts +18 -31
- package/dist/components/UiRadioInputGroup/UiRadioInputGroup.vue.d.ts +10 -9
- package/dist/components/UiSearchBar/UiSearchBar.vue.d.ts +15 -21
- package/dist/components/UiSearchInput/UiSearchInput.vue.d.ts +16 -34
- package/dist/components/UiSection/UiSection.vue.d.ts +6 -5
- package/dist/components/UiSectionDivider/UiSectionDivider.vue.d.ts +4 -3
- package/dist/components/UiSelect/UiSelect.vue.d.ts +22 -39
- package/dist/components/UiSkeletonBox/UiSkeletonBox.vue.d.ts +2 -1
- package/dist/components/UiSnackbar/UiSnackbar.vue.d.ts +10 -17
- package/dist/components/UiSpinner/UiSpinner.vue.d.ts +2 -1
- package/dist/components/UiTextButton/UiTextButton.vue.d.ts +6 -5
- package/dist/components/UiToggleButton/UiToggleButton.vue.d.ts +12 -21
- package/dist/components/UiTooltip/UiTooltip.vue.d.ts +9 -18
- package/dist/components/index.d.ts +3 -1
- package/dist/dpa-shared-components.js +376 -348
- package/dist/{flag-fill-CM68wUqg.js → flag-filled-VmJW-U0p.js} +1 -1
- package/dist/{folder-fill-CtquUM7Z.js → folder-filled-D6pmcH0e.js} +1 -1
- package/dist/gallery-DwPWc5L2.js +18 -0
- package/dist/graphic-DMZdoJT7.js +18 -0
- package/dist/{info-fill-DLi4uWHr.js → info-filled-PYbvwGmZ.js} +1 -1
- package/dist/lock-filled-Bi_mH2A-.js +18 -0
- package/dist/{map-outline-DW4V3-Fu.js → map-ChyXZkb4.js} +1 -1
- package/dist/{map-DhbQnQS_.js → map-filled-DG4BwVQo.js} +1 -1
- package/dist/package-CT6Qsufx.js +18 -0
- package/dist/picture-CKfJP6Jt.js +18 -0
- package/dist/{play-outline-D9YObuEU.js → play-X3Ob-qza.js} +2 -2
- package/dist/{play-fill-DWxSZlrg.js → play-filled-DYyCOR9Y.js} +2 -2
- package/dist/{saved-search-fill-BYPNpEtV.js → saved-search-filled-BTrN8F4r.js} +1 -1
- package/dist/{sidebar-fill-Dg0vb_t2.js → sidebar-filled-LiiR992T.js} +1 -1
- package/dist/src/assets/icons/{bookmark-fill.vue → bookmark-filled.vue} +1 -1
- package/dist/src/assets/icons/bookmark.vue +4 -7
- package/dist/src/assets/icons/flag-filled.vue +4 -4
- package/dist/src/assets/icons/folder-filled.vue +4 -4
- package/dist/src/assets/icons/info-filled.vue +4 -4
- package/dist/src/assets/icons/lock-filled.vue +1 -1
- package/dist/src/assets/icons/map-filled.vue +13 -0
- package/dist/src/assets/icons/map.vue +1 -1
- package/dist/src/assets/icons/{play-fill.vue → play-filled.vue} +1 -1
- package/dist/src/assets/icons/play.vue +1 -1
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +1 -1
- package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +9 -9
- package/dist/src/components/UiButton/UiButton.spec.ts +0 -17
- package/dist/src/components/UiButton/UiButton.vue +1 -1
- package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
- package/dist/src/components/UiCard/UiCard.vue +1 -1
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +5 -3
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +1 -1
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +12 -6
- package/dist/src/components/UiFilterBadge/UiFilterBadge.vue +1 -1
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +1 -1
- package/dist/src/components/UiFilterButton/UiFilterButton.vue +17 -16
- package/dist/src/components/UiIcon/UiIcon.stories.ts +38 -19
- package/dist/src/components/UiIcon/icons.ts +112 -127
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +1 -1
- package/dist/src/components/UiIconButton/UiIconButton.vue +7 -7
- package/dist/src/components/UiListItem/UiListItem.vue +1 -1
- package/dist/src/components/UiMediaTypeIcon/README.md +22 -0
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.stories.ts +67 -0
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +48 -0
- package/dist/src/components/UiMediaTypeIcon/UiMediaTypeIconLoading.vue +1 -0
- package/dist/src/components/UiMediaTypeIcon/icons/alert.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/audio.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/gallery.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/graphic.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/package.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/picture.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/story.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/text.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons/video.vue +13 -0
- package/dist/src/components/UiMediaTypeIcon/icons.ts +11 -0
- package/dist/src/components/UiMenu/UiMenu.stories.ts +1 -0
- package/dist/src/components/UiMenu/UiMenu.vue +75 -75
- package/dist/src/components/UiMenu/UiMenuItem.vue +1 -1
- package/dist/src/components/UiOverlay/README.md +1 -1
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +1 -1
- package/dist/src/components/UiOverlayMenu/README.md +1 -1
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +1 -1
- package/dist/src/components/UiPopover/UiPopover.stories.ts +1 -1
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +1 -1
- package/dist/src/components/UiSearchInput/UiSearchInput.vue +3 -3
- package/dist/src/components/UiSection/UiSection.vue +2 -2
- package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +1 -1
- package/dist/src/components/UiSnackbar/UiSnackbar.vue +1 -1
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +3 -3
- package/dist/src/components/UiTextButton/UiTextButton.vue +5 -5
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +1 -1
- package/dist/src/components/index.ts +3 -0
- package/dist/src/tailwindPreset.css +3 -3
- package/dist/story-6skLDsue.js +18 -0
- package/dist/style.css +1 -1
- package/dist/tailwindPreset.css +3 -3
- package/dist/text-ClHl0Uhs.js +18 -0
- package/dist/{info-filled-CbDefbs0.js → video-BRSUY0SQ.js} +2 -2
- package/package.json +13 -13
- package/src/assets/icons/{bookmark-fill.vue → bookmark-filled.vue} +1 -1
- package/src/assets/icons/bookmark.vue +4 -7
- package/src/assets/icons/flag-filled.vue +4 -4
- package/src/assets/icons/folder-filled.vue +4 -4
- package/src/assets/icons/info-filled.vue +4 -4
- package/src/assets/icons/lock-filled.vue +1 -1
- package/src/assets/icons/map-filled.vue +13 -0
- package/src/assets/icons/map.vue +1 -1
- package/src/assets/icons/{play-fill.vue → play-filled.vue} +1 -1
- package/src/assets/icons/play.vue +1 -1
- package/src/components/DpaMediaItem/DpaMediaItem.vue +9 -9
- package/src/components/UiButton/UiButton.vue +1 -1
- package/src/components/UiButtonGroup/UiButtonGroup.vue +1 -1
- package/src/components/UiCard/UiCard.vue +1 -1
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +5 -3
- package/src/components/UiDatePicker/UiDatePicker.vue +12 -6
- package/src/components/UiFilterBadge/UiFilterBadge.vue +1 -1
- package/src/components/UiFilterButton/UiFilterButton.vue +17 -16
- package/src/components/UiIcon/icons.ts +112 -127
- package/src/components/UiIconButton/UiIconButton.vue +7 -7
- package/src/components/UiListItem/UiListItem.vue +1 -1
- package/src/components/UiMediaTypeIcon/README.md +22 -0
- package/src/components/UiMediaTypeIcon/UiMediaTypeIcon.vue +48 -0
- package/src/components/UiMediaTypeIcon/UiMediaTypeIconLoading.vue +1 -0
- package/src/components/UiMediaTypeIcon/icons/alert.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/audio.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/gallery.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/graphic.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/package.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/picture.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/story.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/text.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons/video.vue +13 -0
- package/src/components/UiMediaTypeIcon/icons.ts +11 -0
- package/src/components/UiMenu/UiMenu.vue +75 -75
- package/src/components/UiMenu/UiMenuItem.vue +1 -1
- package/src/components/UiOverlay/README.md +1 -1
- package/src/components/UiOverlayMenu/README.md +1 -1
- package/src/components/UiOverlayMenu/UiOverlayMenu.vue +1 -1
- package/src/components/UiSearchInput/UiSearchInput.vue +3 -3
- package/src/components/UiSection/UiSection.vue +2 -2
- package/src/components/UiSectionDivider/UiSectionDivider.vue +1 -1
- package/src/components/UiSnackbar/UiSnackbar.vue +1 -1
- package/src/components/UiTextButton/UiTextButton.vue +5 -5
- package/src/tailwindPreset.css +3 -3
- package/dist/assets/icons/alert-fill.vue.d.ts +0 -2
- package/dist/assets/icons/bell-fill.vue.d.ts +0 -2
- package/dist/assets/icons/bookmark-fill.vue.d.ts +0 -2
- package/dist/assets/icons/bookmark-outlined.vue.d.ts +0 -2
- package/dist/assets/icons/comment-fill.vue.d.ts +0 -2
- package/dist/assets/icons/filter-outline.vue.d.ts +0 -2
- package/dist/assets/icons/flag-fill.vue.d.ts +0 -2
- package/dist/assets/icons/flag-outline.vue.d.ts +0 -2
- package/dist/assets/icons/folder-fill.vue.d.ts +0 -2
- package/dist/assets/icons/info-fill.vue.d.ts +0 -2
- package/dist/assets/icons/map-outline.vue.d.ts +0 -2
- package/dist/assets/icons/paperplane.vue.d.ts +0 -2
- package/dist/assets/icons/pause-circle.vue.d.ts +0 -2
- package/dist/assets/icons/picture-gallery.vue.d.ts +0 -2
- package/dist/assets/icons/play-fill.vue.d.ts +0 -2
- package/dist/assets/icons/play-outline.vue.d.ts +0 -2
- package/dist/assets/icons/plus-circle.vue.d.ts +0 -2
- package/dist/assets/icons/saved-search-fill.vue.d.ts +0 -2
- package/dist/assets/icons/sidebar-fill.vue.d.ts +0 -2
- package/dist/assets/icons/star-fill.vue.d.ts +0 -2
- package/dist/bookmark-fill-1I_p7DUK.js +0 -20
- package/dist/filter-outline-CXNz396S.js +0 -16
- package/dist/flag-filled-Ch5DU-jc.js +0 -18
- package/dist/flag-outline-CIjq4xZl.js +0 -18
- package/dist/folder-filled-kZQlz6hr.js +0 -18
- package/dist/lock-filled-D-PhTnpR.js +0 -18
- package/dist/paperplane-Cw3OQH89.js +0 -18
- package/dist/pause-circle-ClhyHaux.js +0 -19
- package/dist/picture-gallery-BAZaYpUt.js +0 -18
- package/dist/play-CSv3pC5Z.js +0 -18
- package/dist/plus-circle-DjXnIdD5.js +0 -18
- package/dist/src/assets/icons/bookmark-outlined.vue +0 -12
- package/dist/src/assets/icons/filter-outline.vue +0 -8
- package/dist/src/assets/icons/flag-fill.vue +0 -13
- package/dist/src/assets/icons/flag-outline.vue +0 -13
- package/dist/src/assets/icons/folder-fill.vue +0 -13
- package/dist/src/assets/icons/info-fill.vue +0 -13
- package/dist/src/assets/icons/map-outline.vue +0 -13
- package/dist/src/assets/icons/paperplane.vue +0 -13
- package/dist/src/assets/icons/pause-circle.vue +0 -14
- package/dist/src/assets/icons/picture-gallery.vue +0 -13
- package/dist/src/assets/icons/play-outline.vue +0 -13
- package/dist/src/assets/icons/plus-circle.vue +0 -13
- package/dist/src/assets/icons/star-fill.vue +0 -13
- package/dist/src/components/UiIcon/IconOverview.stories.vue +0 -20
- package/dist/star-fill-DhcgIMxc.js +0 -18
- package/src/assets/icons/bookmark-outlined.vue +0 -12
- package/src/assets/icons/filter-outline.vue +0 -8
- package/src/assets/icons/flag-fill.vue +0 -13
- package/src/assets/icons/flag-outline.vue +0 -13
- package/src/assets/icons/folder-fill.vue +0 -13
- package/src/assets/icons/info-fill.vue +0 -13
- package/src/assets/icons/map-outline.vue +0 -13
- package/src/assets/icons/paperplane.vue +0 -13
- package/src/assets/icons/pause-circle.vue +0 -14
- package/src/assets/icons/picture-gallery.vue +0 -13
- package/src/assets/icons/play-outline.vue +0 -13
- package/src/assets/icons/plus-circle.vue +0 -13
- package/src/assets/icons/star-fill.vue +0 -13
- /package/dist/{box-D4CLiWRp.js → box-BCDNtaq7.js} +0 -0
- /package/dist/{bulb-BFVFHlBL.js → bulb-12wSYpgA.js} +0 -0
- /package/dist/{call-D3rK-Pln.js → call-CW04DyHi.js} +0 -0
- /package/dist/{camera-CYX-Uj27.js → camera-CbeyxVU5.js} +0 -0
- /package/dist/{check-GWKuQzHB.js → check-BpPjjXqx.js} +0 -0
- /package/dist/{checklist-pyWdcw_n.js → checklist-CFCfO7IN.js} +0 -0
- /package/dist/{checkmark-DfgQtCOq.js → checkmark-DhUksPvT.js} +0 -0
- /package/dist/{checkmark-double-DlgrcXe2.js → checkmark-double-BNGXAUiT.js} +0 -0
- /package/dist/{chevron-down-Bd18iRhe.js → chevron-down-BjZ6BFFp.js} +0 -0
- /package/dist/{chevron-left-D6NKLa3-.js → chevron-left-Z-D_OY2t.js} +0 -0
- /package/dist/{chevron-right-CX94Ac8A.js → chevron-right-D1GfZQB6.js} +0 -0
- /package/dist/{chevron-up-7DEba7ER.js → chevron-up-DWZ1F8w0.js} +0 -0
- /package/dist/{clipboard-BiFsEFAN.js → clipboard-CNCIToKK.js} +0 -0
- /package/dist/{clock-DlsJC4Mc.js → clock-CqWSNhFX.js} +0 -0
- /package/dist/{close-7641oqMu.js → close-oHIGT_JQ.js} +0 -0
- /package/dist/{cloud-save-DeGjpftM.js → cloud-save-CWTQ5IHS.js} +0 -0
- /package/dist/{code-BjWu6gIy.js → code-BD5nOHqK.js} +0 -0
- /package/dist/{collapse-RzgscFxO.js → collapse-D6QeCZC7.js} +0 -0
- /package/dist/{color-palette-DHYkb4qz.js → color-palette-BpONORjj.js} +0 -0
- /package/dist/{comment-BrgMyO2y.js → comment-D5RZxZWG.js} +0 -0
- /package/dist/{copy-3sO6GqVZ.js → copy-BDnlScSS.js} +0 -0
- /package/dist/{copy-link-BFD-uEEg.js → copy-link-BSfa58Tb.js} +0 -0
- /package/dist/{delete-DdgKplhc.js → delete-dDyi0gau.js} +0 -0
- /package/dist/{download-mKBamaan.js → download-B-ZTsIBv.js} +0 -0
- /package/dist/{dpa-id-Bc3MTqIs.js → dpa-id-DRnjTcHI.js} +0 -0
- /package/dist/{edit-D8XT83KQ.js → edit-BbFkVyRd.js} +0 -0
- /package/dist/{edit-add-kll4cKXT.js → edit-add-CAPOsjts.js} +0 -0
- /package/dist/{eil-B90Q7CqR.js → eil-CzEP-9Lo.js} +0 -0
- /package/dist/{emoji-C9ZCXKb_.js → emoji-BjLqvypC.js} +0 -0
- /package/dist/{emoji-add-En7gLdfR.js → emoji-add-BB4fB4th.js} +0 -0
- /package/dist/{envelope-CCm8Y24m.js → envelope-DftzB5Ol.js} +0 -0
- /package/dist/{event-BHwkD4gW.js → event-FR1JMgj6.js} +0 -0
- /package/dist/{expand-Cqt548HG.js → expand-DaVQ0gpz.js} +0 -0
- /package/dist/{external-link-K7cLQtem.js → external-link-2Es0qWwd.js} +0 -0
- /package/dist/{file-BXsq-Axx.js → file-AHJ00f5M.js} +0 -0
- /package/dist/{file-pdf-BQyb04rB.js → file-pdf-CJDdjKS0.js} +0 -0
- /package/dist/{filter-CZMdqkyo.js → filter-CXjBFUUg.js} +0 -0
- /package/dist/{flag-zBDODyXp.js → flag-CbX4PUMS.js} +0 -0
- /package/dist/{flags--GJw4Hg7.js → flags-Buo1j-9g.js} +0 -0
- /package/dist/{flash-D7athZJM.js → flash-Dlr5gL01.js} +0 -0
- /package/dist/{folder-BZ5G6tNR.js → folder-DQwCjGZC.js} +0 -0
- /package/dist/{folder-add-B6c5pcwT.js → folder-add-zPr2Gmtj.js} +0 -0
- /package/dist/{gallery-COuiYU-A.js → gallery-CfUbckcB.js} +0 -0
- /package/dist/{graphic-B9deGroU.js → graphic-nXH5ifxc.js} +0 -0
- /package/dist/{graphics-CmAH5vP4.js → graphics-Dp8pQzs-.js} +0 -0
- /package/dist/{grid-1-B4ewQ_jO.js → grid-1-DZUEMbtb.js} +0 -0
- /package/dist/{grid-2-CWl72bwY.js → grid-2-BQ-9yylY.js} +0 -0
- /package/dist/{grid-3-yrrGecOV.js → grid-3-BGhZrrCJ.js} +0 -0
- /package/dist/{grid-4-CsLuTeHk.js → grid-4-DY9N435A.js} +0 -0
- /package/dist/{grid-6-BTGEO9-e.js → grid-6-B0BR3wbB.js} +0 -0
- /package/dist/{grid-9-C9oci3QX.js → grid-9-BWhM7qat.js} +0 -0
- /package/dist/{grid-masonry-JY1XPxDY.js → grid-masonry-1e9tYkSK.js} +0 -0
- /package/dist/{grid-masonry-9-oyLCUnkg.js → grid-masonry-9-DiiX1pQo.js} +0 -0
- /package/dist/{help-DdUYDeQm.js → help-CLfj4LQM.js} +0 -0
- /package/dist/{home-B8ICYC_t.js → home-D6htLjOF.js} +0 -0
- /package/dist/{image-Iw3Gec97.js → image-DnYnaoeu.js} +0 -0
- /package/dist/{image-focus-point-Cg88W_UL.js → image-focus-point-BJ7HhehR.js} +0 -0
- /package/dist/{impact-high-C_RO7JD7.js → impact-high-DuECIU0d.js} +0 -0
- /package/dist/{impact-low-7hVKyN7n.js → impact-low-DMtzvmWi.js} +0 -0
- /package/dist/{impact-medium-Dh_QhzQ2.js → impact-medium-B5-WfnV2.js} +0 -0
- /package/dist/{impact-very-high-CrweNPUw.js → impact-very-high-C1K1nCE9.js} +0 -0
- /package/dist/{impact-very-low-CtzoSKD1.js → impact-very-low-CXbiBK6E.js} +0 -0
- /package/dist/{info-CIIhE0aC.js → info-Ca-64c_9.js} +0 -0
- /package/dist/{label-CGAWxuCt.js → label-D8X5FrVe.js} +0 -0
- /package/dist/{label-filled-B7EtwwQm.js → label-filled-DjSc-Fk4.js} +0 -0
- /package/dist/{language-C33vUN1T.js → language-OE6ZfER_.js} +0 -0
- /package/dist/{latest-BkwIWck4.js → latest-D0dlub5f.js} +0 -0
- /package/dist/{lightbulb-DmkG12to.js → lightbulb-DKJrsADi.js} +0 -0
- /package/dist/{list-BNFT8546.js → list-BviTrZEl.js} +0 -0
- /package/dist/{list-search-BA9EDPyK.js → list-search-Ck6anukf.js} +0 -0
- /package/dist/{lock-CA1Nfhcq.js → lock-Dv7XHTQp.js} +0 -0
- /package/dist/{mail-CaaEcPKy.js → mail-BBU73oBg.js} +0 -0
- /package/dist/{menu-SUY3SxRQ.js → menu-Dx9cgqxe.js} +0 -0
- /package/dist/{minus-M7D1ctWm.js → minus-DkCYxSkQ.js} +0 -0
- /package/dist/{more-horizontal-DfoRyoUG.js → more-horizontal-c6TlnC21.js} +0 -0
- /package/dist/{more-vertical-BqFUYXmu.js → more-vertical-BUz_UWPT.js} +0 -0
- /package/dist/{move-B8-WtwC0.js → move-C3IOZIl7.js} +0 -0
- /package/dist/{move-up-down-BQqQg9AJ.js → move-up-down-DMvukk4h.js} +0 -0
- /package/dist/{navigation-anaRMELY.js → navigation-BiEFOSmS.js} +0 -0
- /package/dist/{note-BADVAMOD.js → note-SrqI5m8n.js} +0 -0
- /package/dist/{offline-DuhcyVFD.js → offline-UyYgVOeH.js} +0 -0
- /package/dist/{package-BnB_HsId.js → package-DlxyzZ6H.js} +0 -0
- /package/dist/{paper-plane-DoUFwKYF.js → paper-plane-rpVAty7i.js} +0 -0
- /package/dist/{pause-B_woUuoL.js → pause-C6E6QfcV.js} +0 -0
- /package/dist/{pdf-lclOKVJ2.js → pdf-B4gHF03O.js} +0 -0
- /package/dist/{pen-check-CLkQcw7V.js → pen-check-CNrvx2ns.js} +0 -0
- /package/dist/{pen-BYlHeyLP.js → pen-im8XsK0s.js} +0 -0
- /package/dist/{people-BlWLQZMR.js → people-DzOP6pil.js} +0 -0
- /package/dist/{phone-hIsmbdtU.js → phone-B0pmRKLI.js} +0 -0
- /package/dist/{picture-BKmhjd13.js → picture-1NpQXh5F.js} +0 -0
- /package/dist/{pin-DMIpLQt-.js → pin-BOW6sde5.js} +0 -0
- /package/dist/{planning-B9AMrO6I.js → planning-DdILTFP4.js} +0 -0
- /package/dist/{plus-B4cAt93C.js → plus-Bh6PRV0l.js} +0 -0
- /package/dist/{print-CGSp7XrL.js → print-BLPvvCA8.js} +0 -0
- /package/dist/{refresh-BfBZLlU7.js → refresh-CU1dwwoY.js} +0 -0
- /package/dist/{reset-CYwNtsBW.js → reset-Dgbd_O_e.js} +0 -0
- /package/dist/{responsive-Cqe2_8fa.js → responsive-BQ5xjhN4.js} +0 -0
- /package/dist/{rubix-thema-nehPilbK.js → rubix-thema-OSZXu-Md.js} +0 -0
- /package/dist/{save-Cfv4LXWR.js → save-CIg7q65b.js} +0 -0
- /package/dist/{saved-search-BDb40ZlL.js → saved-search-CeLi3iw6.js} +0 -0
- /package/dist/{search-D-CjIn38.js → search-CQIKBYqi.js} +0 -0
- /package/dist/{settings-CE7YKNJv.js → settings-BMFNH3LB.js} +0 -0
- /package/dist/{share-C8sXuqyT.js → share-DMoEV0Gq.js} +0 -0
- /package/dist/{share-alternative-BBR6jE9a.js → share-alternative-P6c3Vi7L.js} +0 -0
- /package/dist/{sidebar-Dv-F_1lT.js → sidebar-D2uDpQM0.js} +0 -0
- /package/dist/{slack-DTCFkLzk.js → slack-CP6YIaQf.js} +0 -0
- /package/dist/{slider-config-CVsy84hJ.js → slider-config-B_eNooTe.js} +0 -0
- /package/dist/{spellcheck-BwGpBJRt.js → spellcheck-B0Il_eZe.js} +0 -0
- /package/dist/{spinner-ByROLBJ0.js → spinner-CRHdpyRR.js} +0 -0
- /package/dist/src/assets/icons/{alert-fill.vue → alert-filled.vue} +0 -0
- /package/dist/src/assets/icons/{bell-fill.vue → bell-filled.vue} +0 -0
- /package/dist/src/assets/icons/{comment-fill.vue → comment-filled.vue} +0 -0
- /package/dist/src/assets/icons/{saved-search-fill.vue → saved-search-filled.vue} +0 -0
- /package/dist/src/assets/icons/{sidebar-fill.vue → sidebar-filled.vue} +0 -0
- /package/dist/{standard-view-ipbIZYYV.js → standard-view-CmlAxXrM.js} +0 -0
- /package/dist/{star-filled-DwiJh1ag.js → star-filled-V0iRfD5M.js} +0 -0
- /package/dist/{star-By07wfI3.js → star-x38wQI5a.js} +0 -0
- /package/dist/{stop-DelMIekF.js → stop-BKrExcb1.js} +0 -0
- /package/dist/{story-j5Wo09Wt.js → story-B2rvDIJr.js} +0 -0
- /package/dist/{sync-Tj7nB54K.js → sync-DXiTJomf.js} +0 -0
- /package/dist/{tasks-Bh4TQV3Y.js → tasks-bFDeHCo2.js} +0 -0
- /package/dist/{text-DGl5IouX.js → text-bDVoEwpJ.js} +0 -0
- /package/dist/{thumbs-down-CCbVJRx0.js → thumbs-down-BAjh-Ctz.js} +0 -0
- /package/dist/{thumbs-up-CH8h5tZC.js → thumbs-up-DCwzHniR.js} +0 -0
- /package/dist/{thumbs-up-double-ibHzKIoJ.js → thumbs-up-double-CIPSNbd7.js} +0 -0
- /package/dist/{topic-CXVgx9kE.js → topic-Cv-whi27.js} +0 -0
- /package/dist/{union-DBO30TiX.js → union-BYS3V2vp.js} +0 -0
- /package/dist/{upload-ByfYskdk.js → upload-Dvuj2qmk.js} +0 -0
- /package/dist/{user-need-divert-me-BbTQYt3K.js → user-need-divert-me-D33Y5bma.js} +0 -0
- /package/dist/{user-need-educate-me-Y5iYc94b.js → user-need-educate-me-BC53AIXw.js} +0 -0
- /package/dist/{user-need-give-me-perspective-D3VwYctR.js → user-need-give-me-perspective-D17ApF3n.js} +0 -0
- /package/dist/{user-need-help-me-Bq_lyMGW.js → user-need-help-me-BWdR9Tv7.js} +0 -0
- /package/dist/{user-need-touch-me-B459dJJQ.js → user-need-touch-me-q1HCbpQ7.js} +0 -0
- /package/dist/{user-need-update-me-CYMBMwQB.js → user-need-update-me-BItjScS5.js} +0 -0
- /package/dist/{video-DQOxJAAJ.js → video-BFPO-328.js} +0 -0
- /package/dist/{video-overlay-To9rTi06.js → video-overlay-DnN10S5T.js} +0 -0
- /package/dist/{view-Bwk22a5T.js → view-C4Sx7i27.js} +0 -0
- /package/dist/{view-off-LU3qve1u.js → view-off-BtkqBEfJ.js} +0 -0
- /package/dist/{volume-up-64lMl5t4.js → volume-up-_3rO2YWj.js} +0 -0
- /package/src/assets/icons/{alert-fill.vue → alert-filled.vue} +0 -0
- /package/src/assets/icons/{bell-fill.vue → bell-filled.vue} +0 -0
- /package/src/assets/icons/{comment-fill.vue → comment-filled.vue} +0 -0
- /package/src/assets/icons/{saved-search-fill.vue → saved-search-filled.vue} +0 -0
- /package/src/assets/icons/{sidebar-fill.vue → sidebar-filled.vue} +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@click="onClick"
|
|
14
14
|
>
|
|
15
15
|
<button
|
|
16
|
-
class="w-full rounded-full focus:outline-hidden focus-visible:outline
|
|
16
|
+
class="w-full rounded-full focus:outline-hidden focus-visible:focus-outline"
|
|
17
17
|
:disabled="disabled"
|
|
18
18
|
type="button"
|
|
19
19
|
data-testid="filter-button"
|
|
@@ -119,20 +119,21 @@ const props = withDefaults(
|
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
const variants = {
|
|
122
|
-
"blue-rounded": "bg-
|
|
123
|
-
"white-rounded":
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
"blue-rounded": "bg-primary hover:bg-primary-dark",
|
|
123
|
+
"white-rounded":
|
|
124
|
+
"bg-neutral hover:border-neutral-subtle border border-neutral-soft",
|
|
125
|
+
blank: "bg-transparent hover:bg-neutral-faint",
|
|
126
|
+
"blue-blank": "bg-transparent hover:bg-neutral-faint",
|
|
126
127
|
"transparent-rounded":
|
|
127
|
-
"bg-transparent border border-
|
|
128
|
+
"bg-transparent border border-neutral-soft hover:border-neutral-subtle",
|
|
128
129
|
};
|
|
129
130
|
|
|
130
131
|
const textColors = {
|
|
131
|
-
"blue-rounded": "text-
|
|
132
|
-
"white-rounded": "text-
|
|
133
|
-
blank: "text-
|
|
134
|
-
"blue-blank": "text-
|
|
135
|
-
"transparent-rounded": "text-
|
|
132
|
+
"blue-rounded": "text-neutral",
|
|
133
|
+
"white-rounded": "text-neutral-emphasis hover:text-neutral-primary",
|
|
134
|
+
blank: "text-neutral-emphasis hover:text-neutral-primary",
|
|
135
|
+
"blue-blank": "text-primary hover:text-primary-dark",
|
|
136
|
+
"transparent-rounded": "text-neutral-emphasis",
|
|
136
137
|
};
|
|
137
138
|
|
|
138
139
|
const variantClasses = computed(() => {
|
|
@@ -140,23 +141,23 @@ const variantClasses = computed(() => {
|
|
|
140
141
|
if (props.variant === "blank") {
|
|
141
142
|
return "border border-transparent";
|
|
142
143
|
}
|
|
143
|
-
return "bg-
|
|
144
|
+
return "bg-neutral border border-neutral-soft";
|
|
144
145
|
}
|
|
145
146
|
if (props.active) {
|
|
146
147
|
if (variants[props.variant as keyof typeof variants].includes("border")) {
|
|
147
|
-
return "bg-
|
|
148
|
+
return "bg-primary hover:bg-primary-dark border border-primary hover:border-primary-dark";
|
|
148
149
|
}
|
|
149
|
-
return "bg-
|
|
150
|
+
return "bg-primary hover:bg-primary-dark";
|
|
150
151
|
}
|
|
151
152
|
return variants[props.variant as keyof typeof variants];
|
|
152
153
|
});
|
|
153
154
|
|
|
154
155
|
const textColorClass = computed(() => {
|
|
155
156
|
if (props.disabled) {
|
|
156
|
-
return "text-
|
|
157
|
+
return "text-neutral-soft";
|
|
157
158
|
}
|
|
158
159
|
if (props.active) {
|
|
159
|
-
return "text-
|
|
160
|
+
return "text-neutral";
|
|
160
161
|
}
|
|
161
162
|
return textColors[props.variant as keyof typeof textColors];
|
|
162
163
|
});
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
2
|
|
|
3
|
-
import IconOverview from "./IconOverview.stories.vue";
|
|
4
3
|
import { icons } from "./icons.ts";
|
|
5
4
|
import UiIcon from "./UiIcon.vue";
|
|
6
5
|
|
|
6
|
+
type PropsAndStoryProps = InstanceType<typeof UiIcon> & {
|
|
7
|
+
outline: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
7
10
|
const meta = {
|
|
8
|
-
title: "
|
|
11
|
+
title: "icons/UiIcon",
|
|
9
12
|
component: UiIcon,
|
|
10
|
-
argTypes: {
|
|
11
|
-
name: {
|
|
12
|
-
control: "select",
|
|
13
|
-
options: Object.keys(icons),
|
|
14
|
-
},
|
|
15
|
-
size: {
|
|
16
|
-
control: "select",
|
|
17
|
-
options: ["xs", "sm", "md", "lg", "xl", "2xl"],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
13
|
args: {
|
|
21
|
-
name: "
|
|
14
|
+
name: "audio",
|
|
22
15
|
size: "lg",
|
|
16
|
+
outline: false,
|
|
23
17
|
},
|
|
24
|
-
|
|
18
|
+
argTypes: {
|
|
19
|
+
outline: { control: "boolean" },
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<PropsAndStoryProps>;
|
|
25
22
|
|
|
26
23
|
export default meta;
|
|
27
24
|
type Story = StoryObj<typeof meta>;
|
|
@@ -32,17 +29,39 @@ export const Default: Story = {
|
|
|
32
29
|
return { args };
|
|
33
30
|
},
|
|
34
31
|
components: { UiIcon },
|
|
35
|
-
template:
|
|
32
|
+
template: /*html*/ `
|
|
33
|
+
<UiIcon v-bind="args" />
|
|
34
|
+
`,
|
|
36
35
|
}),
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
export const Overview: Story = {
|
|
39
|
+
argTypes: {
|
|
40
|
+
name: { control: false },
|
|
41
|
+
},
|
|
40
42
|
render: (args) => ({
|
|
41
43
|
setup() {
|
|
42
|
-
|
|
43
|
-
return { args, size };
|
|
44
|
+
return { args, icons };
|
|
44
45
|
},
|
|
45
|
-
components: {
|
|
46
|
-
template:
|
|
46
|
+
components: { UiIcon },
|
|
47
|
+
template: /*html*/ `
|
|
48
|
+
<div class="flex flex-wrap gap-2">
|
|
49
|
+
<div
|
|
50
|
+
v-for="icon in Object.keys(icons)"
|
|
51
|
+
:key="icon"
|
|
52
|
+
class="flex items-center gap-2 border-2 p-2 basis-80"
|
|
53
|
+
>
|
|
54
|
+
<UiIcon
|
|
55
|
+
class="shrink-0"
|
|
56
|
+
:class="{
|
|
57
|
+
'outline outline-alert-red-default': args.outline,
|
|
58
|
+
}"
|
|
59
|
+
v-bind="args"
|
|
60
|
+
:name="icon"
|
|
61
|
+
/>
|
|
62
|
+
<p>{{ icon }}</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
`,
|
|
47
66
|
}),
|
|
48
67
|
};
|
|
@@ -1,188 +1,173 @@
|
|
|
1
|
+
// Turn off prettier to make editing/sorting easier
|
|
2
|
+
// prettier-ignore
|
|
1
3
|
export const icons = {
|
|
2
|
-
activities: () => import("../../assets/icons/activities.vue"),
|
|
3
|
-
|
|
4
|
-
"alert
|
|
4
|
+
"activities": () => import("../../assets/icons/activities.vue"),
|
|
5
|
+
"ai": () => import("../../assets/icons/ai.vue"),
|
|
6
|
+
"alert": () => import("../../assets/icons/alert.vue"),
|
|
7
|
+
"alert-filled": () => import("../../assets/icons/alert-filled.vue"),
|
|
5
8
|
"alert-octagon": () => import("../../assets/icons/alert-octagon.vue"),
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
"apps": () => import("../../assets/icons/apps.vue"),
|
|
10
|
+
"archive": () => import("../../assets/icons/archive.vue"),
|
|
11
|
+
"arrow-down": () => import("../../assets/icons/arrow-down.vue"),
|
|
9
12
|
"arrow-left": () => import("../../assets/icons/arrow-left.vue"),
|
|
10
13
|
"arrow-nav-left": () => import("../../assets/icons/arrow-nav-left.vue"),
|
|
11
14
|
"arrow-nav-right": () => import("../../assets/icons/arrow-nav-right.vue"),
|
|
12
|
-
"arrow-up": () => import("../../assets/icons/arrow-up.vue"),
|
|
13
15
|
"arrow-right": () => import("../../assets/icons/arrow-right.vue"),
|
|
14
|
-
"arrow-
|
|
16
|
+
"arrow-up": () => import("../../assets/icons/arrow-up.vue"),
|
|
15
17
|
"arrowhead-left": () => import("../../assets/icons/arrowhead-left.vue"),
|
|
16
18
|
"arrowhead-right": () => import("../../assets/icons/arrowhead-right.vue"),
|
|
17
19
|
"arrowhead-top": () => import("../../assets/icons/arrowhead-top.vue"),
|
|
18
|
-
atmo: () => import("../../assets/icons/atmo.vue"),
|
|
19
|
-
audio: () => import("../../assets/icons/audio.vue"),
|
|
20
|
-
bag: () => import("../../assets/icons/bag.vue"),
|
|
21
|
-
bell: () => import("../../assets/icons/bell.vue"),
|
|
22
|
-
"bell-
|
|
23
|
-
book: () => import("../../assets/icons/book.vue"),
|
|
24
|
-
bookmark: () => import("../../assets/icons/bookmark.vue"),
|
|
25
|
-
"bookmark-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
checkmark: () => import("../../assets/icons/checkmark.vue"),
|
|
20
|
+
"atmo": () => import("../../assets/icons/atmo.vue"),
|
|
21
|
+
"audio": () => import("../../assets/icons/audio.vue"),
|
|
22
|
+
"bag": () => import("../../assets/icons/bag.vue"),
|
|
23
|
+
"bell": () => import("../../assets/icons/bell.vue"),
|
|
24
|
+
"bell-filled": () => import("../../assets/icons/bell-filled.vue"),
|
|
25
|
+
"book": () => import("../../assets/icons/book.vue"),
|
|
26
|
+
"bookmark": () => import("../../assets/icons/bookmark.vue"),
|
|
27
|
+
"bookmark-filled": () => import("../../assets/icons/bookmark-filled.vue"),
|
|
28
|
+
"box": () => import("../../assets/icons/box.vue"),
|
|
29
|
+
"bulb": () => import("../../assets/icons/bulb.vue"),
|
|
30
|
+
"call": () => import("../../assets/icons/call.vue"),
|
|
31
|
+
"camera": () => import("../../assets/icons/camera.vue"),
|
|
32
|
+
"check": () => import("../../assets/icons/check.vue"),
|
|
33
|
+
"checklist": () => import("../../assets/icons/checklist.vue"),
|
|
34
|
+
"checkmark": () => import("../../assets/icons/checkmark.vue"),
|
|
34
35
|
"checkmark-double": () => import("../../assets/icons/checkmark-double.vue"),
|
|
35
36
|
"chevron-down": () => import("../../assets/icons/chevron-down.vue"),
|
|
36
37
|
"chevron-left": () => import("../../assets/icons/chevron-left.vue"),
|
|
37
38
|
"chevron-right": () => import("../../assets/icons/chevron-right.vue"),
|
|
38
39
|
"chevron-up": () => import("../../assets/icons/chevron-up.vue"),
|
|
39
|
-
clipboard: () => import("../../assets/icons/clipboard.vue"),
|
|
40
|
-
clock: () => import("../../assets/icons/clock.vue"),
|
|
41
|
-
close: () => import("../../assets/icons/close.vue"),
|
|
40
|
+
"clipboard": () => import("../../assets/icons/clipboard.vue"),
|
|
41
|
+
"clock": () => import("../../assets/icons/clock.vue"),
|
|
42
|
+
"close": () => import("../../assets/icons/close.vue"),
|
|
42
43
|
"cloud-save": () => import("../../assets/icons/cloud-save.vue"),
|
|
43
|
-
code: () => import("../../assets/icons/code.vue"),
|
|
44
|
-
collapse: () => import("../../assets/icons/collapse.vue"),
|
|
44
|
+
"code": () => import("../../assets/icons/code.vue"),
|
|
45
|
+
"collapse": () => import("../../assets/icons/collapse.vue"),
|
|
45
46
|
"color-palette": () => import("../../assets/icons/color-palette.vue"),
|
|
46
|
-
comment: () => import("../../assets/icons/comment.vue"),
|
|
47
|
-
"comment-
|
|
48
|
-
copy: () => import("../../assets/icons/copy.vue"),
|
|
47
|
+
"comment": () => import("../../assets/icons/comment.vue"),
|
|
48
|
+
"comment-filled": () => import("../../assets/icons/comment-filled.vue"),
|
|
49
|
+
"copy": () => import("../../assets/icons/copy.vue"),
|
|
49
50
|
"copy-link": () => import("../../assets/icons/copy-link.vue"),
|
|
50
|
-
delete: () => import("../../assets/icons/delete.vue"),
|
|
51
|
-
download: () => import("../../assets/icons/download.vue"),
|
|
51
|
+
"delete": () => import("../../assets/icons/delete.vue"),
|
|
52
|
+
"download": () => import("../../assets/icons/download.vue"),
|
|
52
53
|
"dpa-id": () => import("../../assets/icons/dpa-id.vue"),
|
|
53
|
-
edit: () => import("../../assets/icons/edit.vue"),
|
|
54
|
+
"edit": () => import("../../assets/icons/edit.vue"),
|
|
54
55
|
"edit-add": () => import("../../assets/icons/edit-add.vue"),
|
|
55
|
-
eil: () => import("../../assets/icons/eil.vue"),
|
|
56
|
-
emoji: () => import("../../assets/icons/emoji.vue"),
|
|
56
|
+
"eil": () => import("../../assets/icons/eil.vue"),
|
|
57
|
+
"emoji": () => import("../../assets/icons/emoji.vue"),
|
|
57
58
|
"emoji-add": () => import("../../assets/icons/emoji-add.vue"),
|
|
58
|
-
envelope: () => import("../../assets/icons/envelope.vue"),
|
|
59
|
-
event: () => import("../../assets/icons/event.vue"),
|
|
60
|
-
expand: () => import("../../assets/icons/expand.vue"),
|
|
59
|
+
"envelope": () => import("../../assets/icons/envelope.vue"),
|
|
60
|
+
"event": () => import("../../assets/icons/event.vue"),
|
|
61
|
+
"expand": () => import("../../assets/icons/expand.vue"),
|
|
61
62
|
"external-link": () => import("../../assets/icons/external-link.vue"),
|
|
62
|
-
file: () => import("../../assets/icons/file.vue"),
|
|
63
63
|
"file-pdf": () => import("../../assets/icons/file-pdf.vue"),
|
|
64
|
-
|
|
65
|
-
"filter
|
|
66
|
-
flag: () => import("../../assets/icons/flag.vue"),
|
|
67
|
-
"flag-fill": () => import("../../assets/icons/flag-fill.vue"),
|
|
64
|
+
"file": () => import("../../assets/icons/file.vue"),
|
|
65
|
+
"filter": () => import("../../assets/icons/filter.vue"),
|
|
66
|
+
"flag": () => import("../../assets/icons/flag.vue"),
|
|
68
67
|
"flag-filled": () => import("../../assets/icons/flag-filled.vue"),
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
folder: () => import("../../assets/icons/folder.vue"),
|
|
68
|
+
"flags": () => import("../../assets/icons/flags.vue"),
|
|
69
|
+
"flash": () => import("../../assets/icons/flash.vue"),
|
|
70
|
+
"folder": () => import("../../assets/icons/folder.vue"),
|
|
73
71
|
"folder-add": () => import("../../assets/icons/folder-add.vue"),
|
|
74
|
-
"folder-fill": () => import("../../assets/icons/folder-fill.vue"),
|
|
75
72
|
"folder-filled": () => import("../../assets/icons/folder-filled.vue"),
|
|
76
|
-
gallery: () => import("../../assets/icons/gallery.vue"),
|
|
77
|
-
graphic: () => import("../../assets/icons/graphic.vue"),
|
|
78
|
-
graphics: () => import("../../assets/icons/graphics.vue"),
|
|
73
|
+
"gallery": () => import("../../assets/icons/gallery.vue"),
|
|
74
|
+
"graphic": () => import("../../assets/icons/graphic.vue"),
|
|
75
|
+
"graphics": () => import("../../assets/icons/graphics.vue"),
|
|
79
76
|
"grid-1": () => import("../../assets/icons/grid-1.vue"),
|
|
80
77
|
"grid-2": () => import("../../assets/icons/grid-2.vue"),
|
|
81
78
|
"grid-3": () => import("../../assets/icons/grid-3.vue"),
|
|
82
79
|
"grid-4": () => import("../../assets/icons/grid-4.vue"),
|
|
83
80
|
"grid-6": () => import("../../assets/icons/grid-6.vue"),
|
|
84
81
|
"grid-9": () => import("../../assets/icons/grid-9.vue"),
|
|
85
|
-
"grid-masonry": () => import("../../assets/icons/grid-masonry.vue"),
|
|
86
82
|
"grid-masonry-9": () => import("../../assets/icons/grid-masonry-9.vue"),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
"grid-masonry": () => import("../../assets/icons/grid-masonry.vue"),
|
|
84
|
+
"help": () => import("../../assets/icons/help.vue"),
|
|
85
|
+
"home": () => import("../../assets/icons/home.vue"),
|
|
86
|
+
"image": () => import("../../assets/icons/image.vue"),
|
|
90
87
|
"image-focus-point": () => import("../../assets/icons/image-focus-point.vue"),
|
|
91
88
|
"impact-high": () => import("../../assets/icons/impact-high.vue"),
|
|
92
89
|
"impact-low": () => import("../../assets/icons/impact-low.vue"),
|
|
93
90
|
"impact-medium": () => import("../../assets/icons/impact-medium.vue"),
|
|
94
91
|
"impact-very-high": () => import("../../assets/icons/impact-very-high.vue"),
|
|
95
92
|
"impact-very-low": () => import("../../assets/icons/impact-very-low.vue"),
|
|
96
|
-
info: () => import("../../assets/icons/info.vue"),
|
|
97
|
-
"info-fill": () => import("../../assets/icons/info-fill.vue"),
|
|
93
|
+
"info": () => import("../../assets/icons/info.vue"),
|
|
98
94
|
"info-filled": () => import("../../assets/icons/info-filled.vue"),
|
|
99
|
-
label: () => import("../../assets/icons/label.vue"),
|
|
95
|
+
"label": () => import("../../assets/icons/label.vue"),
|
|
100
96
|
"label-filled": () => import("../../assets/icons/label-filled.vue"),
|
|
101
|
-
language: () => import("../../assets/icons/language.vue"),
|
|
102
|
-
latest: () => import("../../assets/icons/latest.vue"),
|
|
103
|
-
lightbulb: () => import("../../assets/icons/lightbulb.vue"),
|
|
104
|
-
list: () => import("../../assets/icons/list.vue"),
|
|
97
|
+
"language": () => import("../../assets/icons/language.vue"),
|
|
98
|
+
"latest": () => import("../../assets/icons/latest.vue"),
|
|
99
|
+
"lightbulb": () => import("../../assets/icons/lightbulb.vue"),
|
|
100
|
+
"list": () => import("../../assets/icons/list.vue"),
|
|
105
101
|
"list-search": () => import("../../assets/icons/list-search.vue"),
|
|
106
|
-
lock: () => import("../../assets/icons/lock.vue"),
|
|
102
|
+
"lock": () => import("../../assets/icons/lock.vue"),
|
|
107
103
|
"lock-filled": () => import("../../assets/icons/lock-filled.vue"),
|
|
108
|
-
mail: () => import("../../assets/icons/mail.vue"),
|
|
109
|
-
map: () => import("../../assets/icons/map.vue"),
|
|
110
|
-
"map-
|
|
111
|
-
menu: () => import("../../assets/icons/menu.vue"),
|
|
112
|
-
minus: () => import("../../assets/icons/minus.vue"),
|
|
104
|
+
"mail": () => import("../../assets/icons/mail.vue"),
|
|
105
|
+
"map": () => import("../../assets/icons/map.vue"),
|
|
106
|
+
"map-filled": () => import("../../assets/icons/map-filled.vue"),
|
|
107
|
+
"menu": () => import("../../assets/icons/menu.vue"),
|
|
108
|
+
"minus": () => import("../../assets/icons/minus.vue"),
|
|
113
109
|
"more-horizontal": () => import("../../assets/icons/more-horizontal.vue"),
|
|
114
110
|
"more-vertical": () => import("../../assets/icons/more-vertical.vue"),
|
|
115
|
-
move: () => import("../../assets/icons/move.vue"),
|
|
111
|
+
"move": () => import("../../assets/icons/move.vue"),
|
|
116
112
|
"move-up-down": () => import("../../assets/icons/move-up-down.vue"),
|
|
117
|
-
navigation: () => import("../../assets/icons/navigation.vue"),
|
|
118
|
-
note: () => import("../../assets/icons/note.vue"),
|
|
119
|
-
offline: () => import("../../assets/icons/offline.vue"),
|
|
120
|
-
package: () => import("../../assets/icons/package.vue"),
|
|
113
|
+
"navigation": () => import("../../assets/icons/navigation.vue"),
|
|
114
|
+
"note": () => import("../../assets/icons/note.vue"),
|
|
115
|
+
"offline": () => import("../../assets/icons/offline.vue"),
|
|
116
|
+
"package": () => import("../../assets/icons/package.vue"),
|
|
121
117
|
"paper-plane": () => import("../../assets/icons/paper-plane.vue"),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
pdf: () => import("../../assets/icons/pdf.vue"),
|
|
126
|
-
pen: () => import("../../assets/icons/pen.vue"),
|
|
118
|
+
"pause": () => import("../../assets/icons/pause.vue"),
|
|
119
|
+
"pdf": () => import("../../assets/icons/pdf.vue"),
|
|
120
|
+
"pen": () => import("../../assets/icons/pen.vue"),
|
|
127
121
|
"pen-check": () => import("../../assets/icons/pen-check.vue"),
|
|
128
|
-
people: () => import("../../assets/icons/people.vue"),
|
|
129
|
-
phone: () => import("../../assets/icons/phone.vue"),
|
|
130
|
-
picture: () => import("../../assets/icons/picture.vue"),
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"play-
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
refresh: () => import("../../assets/icons/refresh.vue"),
|
|
141
|
-
reset: () => import("../../assets/icons/reset.vue"),
|
|
142
|
-
responsive: () => import("../../assets/icons/responsive.vue"),
|
|
122
|
+
"people": () => import("../../assets/icons/people.vue"),
|
|
123
|
+
"phone": () => import("../../assets/icons/phone.vue"),
|
|
124
|
+
"picture": () => import("../../assets/icons/picture.vue"),
|
|
125
|
+
"pin": () => import("../../assets/icons/pin.vue"),
|
|
126
|
+
"planning": () => import("../../assets/icons/planning.vue"),
|
|
127
|
+
"play": () => import("../../assets/icons/play.vue"),
|
|
128
|
+
"play-filled": () => import("../../assets/icons/play-filled.vue"),
|
|
129
|
+
"plus": () => import("../../assets/icons/plus.vue"),
|
|
130
|
+
"print": () => import("../../assets/icons/print.vue"),
|
|
131
|
+
"refresh": () => import("../../assets/icons/refresh.vue"),
|
|
132
|
+
"reset": () => import("../../assets/icons/reset.vue"),
|
|
133
|
+
"responsive": () => import("../../assets/icons/responsive.vue"),
|
|
143
134
|
"rubix-thema": () => import("../../assets/icons/rubix-thema.vue"),
|
|
144
|
-
save: () => import("../../assets/icons/save.vue"),
|
|
135
|
+
"save": () => import("../../assets/icons/save.vue"),
|
|
145
136
|
"saved-search": () => import("../../assets/icons/saved-search.vue"),
|
|
146
|
-
"saved-search-
|
|
147
|
-
search: () => import("../../assets/icons/search.vue"),
|
|
148
|
-
settings: () => import("../../assets/icons/settings.vue"),
|
|
149
|
-
share: () => import("../../assets/icons/share.vue"),
|
|
137
|
+
"saved-search-filled": () => import("../../assets/icons/saved-search-filled.vue"),
|
|
138
|
+
"search": () => import("../../assets/icons/search.vue"),
|
|
139
|
+
"settings": () => import("../../assets/icons/settings.vue"),
|
|
140
|
+
"share": () => import("../../assets/icons/share.vue"),
|
|
150
141
|
"share-alternative": () => import("../../assets/icons/share-alternative.vue"),
|
|
151
|
-
sidebar: () => import("../../assets/icons/sidebar.vue"),
|
|
152
|
-
"sidebar-
|
|
153
|
-
slack: () => import("../../assets/icons/slack.vue"),
|
|
142
|
+
"sidebar": () => import("../../assets/icons/sidebar.vue"),
|
|
143
|
+
"sidebar-filled": () => import("../../assets/icons/sidebar-filled.vue"),
|
|
144
|
+
"slack": () => import("../../assets/icons/slack.vue"),
|
|
154
145
|
"slider-config": () => import("../../assets/icons/slider-config.vue"),
|
|
155
|
-
spellcheck: () => import("../../assets/icons/spellcheck.vue"),
|
|
156
|
-
spinner: () => import("../../assets/icons/spinner.vue"),
|
|
146
|
+
"spellcheck": () => import("../../assets/icons/spellcheck.vue"),
|
|
147
|
+
"spinner": () => import("../../assets/icons/spinner.vue"),
|
|
157
148
|
"standard-view": () => import("../../assets/icons/standard-view.vue"),
|
|
158
|
-
star: () => import("../../assets/icons/star.vue"),
|
|
159
|
-
"star-fill": () => import("../../assets/icons/star-fill.vue"),
|
|
149
|
+
"star": () => import("../../assets/icons/star.vue"),
|
|
160
150
|
"star-filled": () => import("../../assets/icons/star-filled.vue"),
|
|
161
|
-
stop: () => import("../../assets/icons/stop.vue"),
|
|
162
|
-
story: () => import("../../assets/icons/story.vue"),
|
|
163
|
-
sync: () => import("../../assets/icons/sync.vue"),
|
|
164
|
-
tasks: () => import("../../assets/icons/tasks.vue"),
|
|
165
|
-
text: () => import("../../assets/icons/text.vue"),
|
|
151
|
+
"stop": () => import("../../assets/icons/stop.vue"),
|
|
152
|
+
"story": () => import("../../assets/icons/story.vue"),
|
|
153
|
+
"sync": () => import("../../assets/icons/sync.vue"),
|
|
154
|
+
"tasks": () => import("../../assets/icons/tasks.vue"),
|
|
155
|
+
"text": () => import("../../assets/icons/text.vue"),
|
|
166
156
|
"thumbs-down": () => import("../../assets/icons/thumbs-down.vue"),
|
|
167
157
|
"thumbs-up": () => import("../../assets/icons/thumbs-up.vue"),
|
|
168
158
|
"thumbs-up-double": () => import("../../assets/icons/thumbs-up-double.vue"),
|
|
169
|
-
topic: () => import("../../assets/icons/topic.vue"),
|
|
170
|
-
union: () => import("../../assets/icons/union.vue"),
|
|
171
|
-
upload: () => import("../../assets/icons/upload.vue"),
|
|
172
|
-
"user-need-divert-me": () =>
|
|
173
|
-
|
|
174
|
-
"user-need-
|
|
175
|
-
import("../../assets/icons/user-need-educate-me.vue"),
|
|
176
|
-
"user-need-give-me-perspective": () =>
|
|
177
|
-
import("../../assets/icons/user-need-give-me-perspective.vue"),
|
|
159
|
+
"topic": () => import("../../assets/icons/topic.vue"),
|
|
160
|
+
"union": () => import("../../assets/icons/union.vue"),
|
|
161
|
+
"upload": () => import("../../assets/icons/upload.vue"),
|
|
162
|
+
"user-need-divert-me": () => import("../../assets/icons/user-need-divert-me.vue"),
|
|
163
|
+
"user-need-educate-me": () => import("../../assets/icons/user-need-educate-me.vue"),
|
|
164
|
+
"user-need-give-me-perspective": () => import("../../assets/icons/user-need-give-me-perspective.vue"),
|
|
178
165
|
"user-need-help-me": () => import("../../assets/icons/user-need-help-me.vue"),
|
|
179
|
-
"user-need-touch-me": () =>
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
import("../../assets/icons/user-need-update-me.vue"),
|
|
183
|
-
video: () => import("../../assets/icons/video.vue"),
|
|
166
|
+
"user-need-touch-me": () => import("../../assets/icons/user-need-touch-me.vue"),
|
|
167
|
+
"user-need-update-me": () => import("../../assets/icons/user-need-update-me.vue"),
|
|
168
|
+
"video": () => import("../../assets/icons/video.vue"),
|
|
184
169
|
"video-overlay": () => import("../../assets/icons/video-overlay.vue"),
|
|
185
|
-
view: () => import("../../assets/icons/view.vue"),
|
|
170
|
+
"view": () => import("../../assets/icons/view.vue"),
|
|
186
171
|
"view-off": () => import("../../assets/icons/view-off.vue"),
|
|
187
172
|
"volume-up": () => import("../../assets/icons/volume-up.vue"),
|
|
188
173
|
} as const;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<button
|
|
3
3
|
:disabled="disabled"
|
|
4
4
|
:aria-label="title"
|
|
5
|
-
class="group flex flex-none items-center justify-center rounded-full focus:outline-hidden focus-visible:outline
|
|
5
|
+
class="group flex flex-none items-center justify-center rounded-full focus:outline-hidden focus-visible:focus-outline"
|
|
6
6
|
:class="[colorClass, backgroundClass, buttonSizeClass]"
|
|
7
7
|
type="button"
|
|
8
8
|
@click="($event) => emit('click', $event)"
|
|
@@ -51,15 +51,15 @@ const props = withDefaults(
|
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
const backgroundColorVariants = {
|
|
54
|
-
blue: "hover:bg-
|
|
55
|
-
none: "hover:bg-
|
|
56
|
-
"gray-hover": "hover:bg-
|
|
54
|
+
blue: "hover:bg-primary-dark active:bg-primary-dark bg-primary disabled:bg-neutral-faint disabled:hover:bg-none",
|
|
55
|
+
none: "hover:bg-neutral-whisper active:bg-primary disabled:hover:bg-transparent",
|
|
56
|
+
"gray-hover": "hover:bg-neutral-faint disabled:hover:bg-none",
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
const iconColorVariants = {
|
|
60
|
-
blue: "text-
|
|
61
|
-
gray: "text-
|
|
62
|
-
white: "text-
|
|
60
|
+
blue: "text-primary hover:text-primary-dark disabled:text-neutral-soft active:text-neutral",
|
|
61
|
+
gray: "text-neutral-emphasis hover:text-neutral-primary active:text-neutral-primary disabled:text-neutral-soft",
|
|
62
|
+
white: "text-neutral disabled:text-neutral-soft",
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const sizeVariants = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<li
|
|
3
3
|
:class="
|
|
4
4
|
cn(
|
|
5
|
-
'flex cursor-pointer list-none items-center gap-2 px-4 py-2 text-sm/normal text-neutral-emphasis select-none hover:text-primary focus:outline-hidden focus-visible:outline
|
|
5
|
+
'flex cursor-pointer list-none items-center gap-2 px-4 py-2 text-sm/normal text-neutral-emphasis select-none hover:text-primary focus:outline-hidden focus-visible:focus-outline focus-visible:-outline-offset-2',
|
|
6
6
|
{
|
|
7
7
|
'cursor-default text-neutral-medium': disabled,
|
|
8
8
|
'is-selected': selected,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UiMediaTypeIcon
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
```vue
|
|
6
|
+
<template>
|
|
7
|
+
<UiMediaTypeIcon name="alert" />
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup>
|
|
11
|
+
import { UiMediaTypeIcon } from "@dpa-id-components/dpa-shared-components";
|
|
12
|
+
</script>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API
|
|
16
|
+
|
|
17
|
+
### Props
|
|
18
|
+
|
|
19
|
+
| Name | Type | Default | Description |
|
|
20
|
+
|--------|------|---------|-------------|
|
|
21
|
+
| `name` | `UiMediaTypeIconName` | | Icon name |
|
|
22
|
+
| `size` | `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`, or `"2xl"` | `"lg"` | Icon size |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/vue3-vite";
|
|
2
|
+
|
|
3
|
+
import { icons } from "./icons.ts";
|
|
4
|
+
import UiMediaTypeIcon from "./UiMediaTypeIcon.vue";
|
|
5
|
+
|
|
6
|
+
type PropsAndStoryProps = InstanceType<typeof UiMediaTypeIcon> & {
|
|
7
|
+
outline: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "icons/UiMediaTypeIcon",
|
|
12
|
+
component: UiMediaTypeIcon,
|
|
13
|
+
args: {
|
|
14
|
+
name: "audio",
|
|
15
|
+
size: "lg",
|
|
16
|
+
outline: false,
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
outline: { control: "boolean" },
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<PropsAndStoryProps>;
|
|
22
|
+
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
|
|
26
|
+
export const Default: Story = {
|
|
27
|
+
render: (args) => ({
|
|
28
|
+
setup() {
|
|
29
|
+
return { args };
|
|
30
|
+
},
|
|
31
|
+
components: { UiMediaTypeIcon },
|
|
32
|
+
template: /*html*/ `
|
|
33
|
+
<UiMediaTypeIcon v-bind="args" />
|
|
34
|
+
`,
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const Overview: Story = {
|
|
39
|
+
argTypes: {
|
|
40
|
+
name: { control: false },
|
|
41
|
+
},
|
|
42
|
+
render: (args) => ({
|
|
43
|
+
setup() {
|
|
44
|
+
return { args, icons };
|
|
45
|
+
},
|
|
46
|
+
components: { UiMediaTypeIcon },
|
|
47
|
+
template: /*html*/ `
|
|
48
|
+
<div class="flex flex-wrap gap-2">
|
|
49
|
+
<div
|
|
50
|
+
v-for="icon in Object.keys(icons)"
|
|
51
|
+
:key="icon"
|
|
52
|
+
class="flex items-center gap-2 border-2 p-2 basis-80"
|
|
53
|
+
>
|
|
54
|
+
<UiMediaTypeIcon
|
|
55
|
+
class="shrink-0"
|
|
56
|
+
:class="{
|
|
57
|
+
'outline outline-alert-red-default': args.outline,
|
|
58
|
+
}"
|
|
59
|
+
v-bind="args"
|
|
60
|
+
:name="icon"
|
|
61
|
+
/>
|
|
62
|
+
<p>{{ icon }}</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
`,
|
|
66
|
+
}),
|
|
67
|
+
};
|