@weni/unnnic-system 2.0.0 → 2.0.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/.vscode/extensions.json +3 -0
- package/README.md +36 -2
- package/dist/favicon.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/unnnic.mjs +68338 -0
- package/dist/unnnic.umd.js +661 -44367
- package/package.json +76 -65
- package/src/assets/fonts/Material Symbols Rounded Filled.woff2 +0 -0
- package/src/assets/fonts/Material Symbols Rounded.woff2 +0 -0
- package/src/assets/fonts/fonts/icomoon.svg +163 -163
- package/src/assets/fonts/icons.css +582 -582
- package/src/assets/icons/Add1.vue +16 -0
- package/src/assets/icons/AddCircle1.vue +20 -0
- package/src/assets/icons/AlarmBell2.vue +20 -0
- package/src/assets/icons/AlarmBell3.vue +20 -0
- package/src/assets/icons/AlarmBellRing.vue +40 -0
- package/src/assets/icons/AlertCircle1.vue +25 -0
- package/src/assets/icons/AlertCircle11.vue +15 -0
- package/src/assets/icons/AmericanExpress.vue +18 -0
- package/src/assets/icons/AppWindowEdit1.vue +20 -0
- package/src/assets/icons/AppWindowEdit2.vue +45 -0
- package/src/assets/icons/ArrowButtonDown1.vue +15 -0
- package/src/assets/icons/ArrowButtonRight1.vue +15 -0
- package/src/assets/icons/ArrowButtonUp1.vue +15 -0
- package/src/assets/icons/ArrowDown11.vue +14 -0
- package/src/assets/icons/ArrowLeft11.vue +15 -0
- package/src/assets/icons/ArrowRedo.vue +15 -0
- package/src/assets/icons/ArrowRight11.vue +15 -0
- package/src/assets/icons/ArrowUndo.vue +15 -0
- package/src/assets/icons/Attachment.vue +16 -0
- package/src/assets/icons/Bin11.vue +26 -0
- package/src/assets/icons/BookAddress12.vue +20 -0
- package/src/assets/icons/BookAddress2.vue +15 -0
- package/src/assets/icons/BookLibrary1.vue +45 -0
- package/src/assets/icons/BookLibrary2.vue +17 -0
- package/src/assets/icons/Brazil.svg +21 -21
- package/src/assets/icons/Brazil.vue +74 -0
- package/src/assets/icons/Building21.vue +66 -0
- package/src/assets/icons/ButtonPlay1.vue +20 -0
- package/src/assets/icons/ButtonRefreshArrow1.vue +15 -0
- package/src/assets/icons/ButtonRefreshArrows1.vue +20 -0
- package/src/assets/icons/Charger1.vue +21 -0
- package/src/assets/icons/ChatTranslate1.vue +30 -0
- package/src/assets/icons/Check2.vue +16 -0
- package/src/assets/icons/CheckCircle11.vue +20 -0
- package/src/assets/icons/CheckCircle111.vue +15 -0
- package/src/assets/icons/CheckDouble.vue +15 -0
- package/src/assets/icons/CheckSquare1.vue +20 -0
- package/src/assets/icons/CheckSquare2.vue +20 -0
- package/src/assets/icons/CheckboxDefault.vue +19 -0
- package/src/assets/icons/CheckboxDisable.vue +19 -0
- package/src/assets/icons/CheckboxLess.vue +23 -0
- package/src/assets/icons/CheckboxSelect.vue +25 -0
- package/src/assets/icons/Close1.vue +16 -0
- package/src/assets/icons/Cog1.vue +21 -0
- package/src/assets/icons/Cog2.vue +16 -0
- package/src/assets/icons/CommonFileEmpty1.vue +15 -0
- package/src/assets/icons/CommonFileHorizontalImage1.vue +25 -0
- package/src/assets/icons/ControlsPause1.vue +20 -0
- package/src/assets/icons/ControlsPlay1.vue +15 -0
- package/src/assets/icons/CopyPaste1.vue +35 -0
- package/src/assets/icons/CurrencyDollarCircle1.vue +20 -0
- package/src/assets/icons/DefaultAvatar.vue +28 -0
- package/src/assets/icons/Delete1.vue +16 -0
- package/src/assets/icons/Delete11.vue +21 -0
- package/src/assets/icons/Delete21.vue +16 -0
- package/src/assets/icons/DeveloperCommunityGithub11.vue +15 -0
- package/src/assets/icons/DinersClub.vue +26 -0
- package/src/assets/icons/Discover.vue +47 -0
- package/src/assets/icons/DownloadBottom1.vue +20 -0
- package/src/assets/icons/DownloadThickBottom1.vue +20 -0
- package/src/assets/icons/Drag1.vue +27 -0
- package/src/assets/icons/EmailActionUnread1.vue +27 -0
- package/src/assets/icons/EmailActionUnread11.vue +18 -0
- package/src/assets/icons/Emoji.vue +31 -0
- package/src/assets/icons/Expand81.vue +31 -0
- package/src/assets/icons/ExpandFull1.vue +35 -0
- package/src/assets/icons/Export1.vue +26 -0
- package/src/assets/icons/Filter.vue +18 -0
- package/src/assets/icons/FitnessBiceps1.vue +15 -0
- package/src/assets/icons/Flash13.vue +16 -0
- package/src/assets/icons/Flash14.vue +16 -0
- package/src/assets/icons/FloppyDisk1.vue +30 -0
- package/src/assets/icons/Folder1.vue +16 -0
- package/src/assets/icons/Folder2.vue +16 -0
- package/src/assets/icons/GaugeDashboard1.vue +20 -0
- package/src/assets/icons/GaugeDashboard2.vue +40 -0
- package/src/assets/icons/GenericCard.vue +18 -0
- package/src/assets/icons/GraphStats1.vue +15 -0
- package/src/assets/icons/GraphStatsAscend2.vue +15 -0
- package/src/assets/icons/GraphStatsCircle1.vue +20 -0
- package/src/assets/icons/GraphStatsCircle11.vue +20 -0
- package/src/assets/icons/GraphStatsDescend2.vue +17 -0
- package/src/assets/icons/HeadphonesCustomerSupport1.vue +15 -0
- package/src/assets/icons/HeadphonesCustomerSupport2.vue +15 -0
- package/src/assets/icons/HeadphonesCustomerSupportHuman11.vue +20 -0
- package/src/assets/icons/Hierarchy32.vue +16 -0
- package/src/assets/icons/Hierarchy33.vue +16 -0
- package/src/assets/icons/House11.vue +21 -0
- package/src/assets/icons/House22.vue +16 -0
- package/src/assets/icons/Indicator.vue +18 -0
- package/src/assets/icons/InformationCircle4.vue +15 -0
- package/src/assets/icons/InteractionTime.vue +31 -0
- package/src/assets/icons/Jcb.vue +75 -0
- package/src/assets/icons/KeyboardArrowDown1.vue +15 -0
- package/src/assets/icons/KeyboardArrowLeft1.vue +15 -0
- package/src/assets/icons/KeyboardArrowRight1.vue +15 -0
- package/src/assets/icons/KeyboardReturn1.vue +18 -0
- package/src/assets/icons/KeyboardReturn11.vue +14 -0
- package/src/assets/icons/LayoutDashboard1.vue +30 -0
- package/src/assets/icons/LayoutDashboard2.vue +30 -0
- package/src/assets/icons/LayoutModule12.vue +26 -0
- package/src/assets/icons/LoadingCircle1.vue +72 -0
- package/src/assets/icons/Lock21.vue +21 -0
- package/src/assets/icons/Lock22.vue +16 -0
- package/src/assets/icons/LockUnlock11.vue +20 -0
- package/src/assets/icons/Logout11.vue +21 -0
- package/src/assets/icons/Mastercard.vue +27 -0
- package/src/assets/icons/Messages.vue +18 -0
- package/src/assets/icons/MessagesBubble1.vue +15 -0
- package/src/assets/icons/MessagesBubble3.vue +15 -0
- package/src/assets/icons/MessagesBubble4.vue +15 -0
- package/src/assets/icons/MessagingWeChat2.vue +20 -0
- package/src/assets/icons/MessagingWeChat3.vue +40 -0
- package/src/assets/icons/MessagingWhatsapp1.vue +20 -0
- package/src/assets/icons/Microphone.vue +21 -0
- package/src/assets/icons/NavigationMenuVertical1.vue +25 -0
- package/src/assets/icons/Notes1.vue +36 -0
- package/src/assets/icons/OfficeFilePdf11.vue +30 -0
- package/src/assets/icons/PaginateFilterText1.vue +35 -0
- package/src/assets/icons/PencilWrite1.vue +20 -0
- package/src/assets/icons/Phone3.vue +16 -0
- package/src/assets/icons/Phone4.vue +16 -0
- package/src/assets/icons/PhoneCharger1.vue +15 -0
- package/src/assets/icons/PhotographyEquipmentBag1.vue +25 -0
- package/src/assets/icons/PieLineGraph1.vue +35 -0
- package/src/assets/icons/Preferences.vue +74 -0
- package/src/assets/icons/QuestionCircle1.vue +25 -0
- package/src/assets/icons/QuestionCircle2.vue +15 -0
- package/src/assets/icons/RadioDefault.vue +17 -0
- package/src/assets/icons/RadioDisable.vue +17 -0
- package/src/assets/icons/RadioSelected.vue +23 -0
- package/src/assets/icons/RatingStar1.vue +13 -0
- package/src/assets/icons/RatingStar11.vue +15 -0
- package/src/assets/icons/ReadEmailAt1.vue +27 -0
- package/src/assets/icons/ResponseTime.vue +48 -0
- package/src/assets/icons/ScienceFictionRobot1.vue +40 -0
- package/src/assets/icons/ScienceFictionRobot2.vue +25 -0
- package/src/assets/icons/Search1.vue +16 -0
- package/src/assets/icons/SendEmail31.vue +13 -0
- package/src/assets/icons/SingleNeutral2.vue +20 -0
- package/src/assets/icons/SingleNeutralActions1.vue +20 -0
- package/src/assets/icons/SocialInstagram1.vue +15 -0
- package/src/assets/icons/SocialMediaFacebook1.vue +15 -0
- package/src/assets/icons/SocialMediaGoogle1.vue +26 -0
- package/src/assets/icons/SortAsc.vue +19 -0
- package/src/assets/icons/SortDefault.vue +20 -0
- package/src/assets/icons/SortDesc.vue +19 -0
- package/src/assets/icons/Spain.svg +498 -498
- package/src/assets/icons/Spain.vue +1846 -0
- package/src/assets/icons/StudyLightIdea1.vue +50 -0
- package/src/assets/icons/Subtract1.vue +16 -0
- package/src/assets/icons/SubtractCircle1.vue +20 -0
- package/src/assets/icons/SwitchDefault.vue +31 -0
- package/src/assets/icons/SwitchDefaultDisabled.vue +25 -0
- package/src/assets/icons/SwitchSelected.vue +31 -0
- package/src/assets/icons/SwitchSelectedDisabled.vue +23 -0
- package/src/assets/icons/SynchronizeArrowClock4.vue +20 -0
- package/src/assets/icons/SynchronizeArrowClock5.vue +20 -0
- package/src/assets/icons/TaskChecklist1.vue +20 -0
- package/src/assets/icons/TaskListClock1.vue +45 -0
- package/src/assets/icons/TextBold.vue +15 -0
- package/src/assets/icons/TextCenter.vue +35 -0
- package/src/assets/icons/TextItalic.vue +15 -0
- package/src/assets/icons/TextJustified.vue +35 -0
- package/src/assets/icons/TextLeft.vue +35 -0
- package/src/assets/icons/TextRight.vue +35 -0
- package/src/assets/icons/TextUnderline.vue +20 -0
- package/src/assets/icons/Ticket1.vue +39 -0
- package/src/assets/icons/Ticket2.vue +21 -0
- package/src/assets/icons/TimeClockCircle1.vue +20 -0
- package/src/assets/icons/TransferMessage.vue +24 -0
- package/src/assets/icons/Translate1.vue +41 -0
- package/src/assets/icons/Translate2.vue +41 -0
- package/src/assets/icons/Typing1.vue +21 -0
- package/src/assets/icons/USA.svg +28 -28
- package/src/assets/icons/USA.vue +192 -0
- package/src/assets/icons/Unionpay.vue +31 -0
- package/src/assets/icons/UnorderedList.vue +40 -0
- package/src/assets/icons/UploadBottom1.vue +20 -0
- package/src/assets/icons/VideoFileMp41.vue +30 -0
- package/src/assets/icons/View11.vue +21 -0
- package/src/assets/icons/ViewOff1.vue +35 -0
- package/src/assets/icons/VipCrownQueen2.vue +20 -0
- package/src/assets/icons/Visa.vue +35 -0
- package/src/assets/icons/add-1.svg +3 -3
- package/src/assets/icons/add-circle-1.svg +4 -4
- package/src/assets/icons/alarm-bell-ring.svg +8 -8
- package/src/assets/icons/alert-circle-1-1.svg +3 -3
- package/src/assets/icons/alert-circle-1.svg +5 -5
- package/src/assets/icons/american-express.svg +4 -4
- package/src/assets/icons/app-window-edit-1.svg +4 -4
- package/src/assets/icons/app-window-edit-2.svg +9 -9
- package/src/assets/icons/arrow-button-down-1.svg +3 -3
- package/src/assets/icons/arrow-button-up-1.svg +3 -3
- package/src/assets/icons/arrow-down-1-1.svg +3 -3
- package/src/assets/icons/arrow-left-1-1.svg +3 -3
- package/src/assets/icons/arrow-redo.svg +3 -3
- package/src/assets/icons/arrow-right-1-1.svg +3 -3
- package/src/assets/icons/arrow-undo.svg +3 -3
- package/src/assets/icons/attachment.svg +3 -3
- package/src/assets/icons/bin-1-1.svg +5 -5
- package/src/assets/icons/book-address-1-2.svg +4 -4
- package/src/assets/icons/book-address-2.svg +3 -3
- package/src/assets/icons/book-library-1.svg +9 -9
- package/src/assets/icons/book-library-2.svg +3 -3
- package/src/assets/icons/bookmark-tag-1.svg +3 -3
- package/src/assets/icons/bookmarkTag1.vue +17 -0
- package/src/assets/icons/building-2-1.svg +13 -13
- package/src/assets/icons/button-play-1.svg +4 -4
- package/src/assets/icons/button-refresh-arrow-1.svg +3 -3
- package/src/assets/icons/button-refresh-arrows-1.svg +4 -4
- package/src/assets/icons/charger-1.svg +4 -4
- package/src/assets/icons/chat-translate-1.svg +6 -6
- package/src/assets/icons/check-2.svg +3 -3
- package/src/assets/icons/check-circle-1-1-1.svg +3 -3
- package/src/assets/icons/check-circle-1-1.svg +4 -4
- package/src/assets/icons/check-double.svg +3 -3
- package/src/assets/icons/check-square-1.svg +4 -4
- package/src/assets/icons/check-square-2.svg +4 -4
- package/src/assets/icons/checkbox-default.svg +3 -3
- package/src/assets/icons/checkbox-disable.svg +3 -3
- package/src/assets/icons/checkbox-less.svg +4 -4
- package/src/assets/icons/checkbox-select.svg +4 -4
- package/src/assets/icons/close-1.svg +3 -3
- package/src/assets/icons/cog-1.svg +4 -4
- package/src/assets/icons/cog-2.svg +3 -3
- package/src/assets/icons/common-file-empty-1.svg +3 -3
- package/src/assets/icons/common-file-horizontal-image-1.svg +5 -5
- package/src/assets/icons/controls-pause-1.svg +4 -4
- package/src/assets/icons/controls-play-1.svg +3 -3
- package/src/assets/icons/copy-paste-1.svg +7 -7
- package/src/assets/icons/currency-dollar-circle-1.svg +4 -4
- package/src/assets/icons/default-avatar.svg +5 -5
- package/src/assets/icons/delete-1-1.svg +4 -4
- package/src/assets/icons/delete-1.svg +3 -3
- package/src/assets/icons/delete-2-1.svg +3 -3
- package/src/assets/icons/developer-community-github-1-1.svg +3 -3
- package/src/assets/icons/diners-club.svg +6 -6
- package/src/assets/icons/discover.svg +11 -11
- package/src/assets/icons/download-bottom-1.svg +4 -4
- package/src/assets/icons/download-thick-bottom-1.svg +4 -4
- package/src/assets/icons/drag-1.svg +10 -10
- package/src/assets/icons/email-action-unread-1-1.svg +4 -4
- package/src/assets/icons/email-action-unread-1.svg +10 -10
- package/src/assets/icons/emoji.svg +6 -6
- package/src/assets/icons/expand-8-1.svg +6 -6
- package/src/assets/icons/expand-full-1.svg +7 -7
- package/src/assets/icons/export-1.svg +5 -5
- package/src/assets/icons/filter.svg +3 -3
- package/src/assets/icons/fitness-biceps-1.svg +3 -3
- package/src/assets/icons/flash-1-3.svg +3 -3
- package/src/assets/icons/flash-1-4.svg +3 -3
- package/src/assets/icons/floppy-disk-1.svg +6 -6
- package/src/assets/icons/folder-1.svg +3 -3
- package/src/assets/icons/folder-2.svg +3 -3
- package/src/assets/icons/gauge-dashboard-1.svg +4 -4
- package/src/assets/icons/gauge-dashboard-2.svg +8 -8
- package/src/assets/icons/generic-card.svg +4 -4
- package/src/assets/icons/graph-stats-1.svg +3 -3
- package/src/assets/icons/graph-stats-ascend-2.svg +3 -3
- package/src/assets/icons/graph-stats-circle-1-1.svg +4 -4
- package/src/assets/icons/graph-stats-circle-1.svg +4 -4
- package/src/assets/icons/graph-stats-descend-2.svg +4 -4
- package/src/assets/icons/headphones-customer-support-1.svg +3 -3
- package/src/assets/icons/headphones-customer-support-2.svg +3 -3
- package/src/assets/icons/headphones-customer-support-human-1-1.svg +4 -4
- package/src/assets/icons/hierarchy-3-2.svg +3 -3
- package/src/assets/icons/hierarchy-3-3.svg +3 -3
- package/src/assets/icons/house-1-1.svg +4 -4
- package/src/assets/icons/house-2-2.svg +3 -3
- package/src/assets/icons/icon-script.py +27 -27
- package/src/assets/icons/indicator.svg +3 -3
- package/src/assets/icons/information-circle-4.svg +3 -3
- package/src/assets/icons/interaction-time.svg +5 -5
- package/src/assets/icons/jcb.svg +21 -21
- package/src/assets/icons/keyboard-arrow-down-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-left-1.svg +3 -3
- package/src/assets/icons/keyboard-arrow-right-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1-1.svg +3 -3
- package/src/assets/icons/keyboard-return-1.svg +4 -4
- package/src/assets/icons/layout-dashboard-1.svg +6 -6
- package/src/assets/icons/layout-dashboard-2.svg +6 -6
- package/src/assets/icons/layout-module-1-2.svg +6 -6
- package/src/assets/icons/loading-circle-1.svg +19 -19
- package/src/assets/icons/lock-2-1.svg +4 -4
- package/src/assets/icons/lock-2-2.svg +3 -3
- package/src/assets/icons/lock-unlock-1-1.svg +4 -4
- package/src/assets/icons/logout-1-1.svg +4 -4
- package/src/assets/icons/mastercard.svg +6 -6
- package/src/assets/icons/messages-bubble-1.svg +3 -3
- package/src/assets/icons/messages-bubble-3.svg +3 -3
- package/src/assets/icons/messages-bubble-4.svg +3 -3
- package/src/assets/icons/messages.svg +3 -3
- package/src/assets/icons/messaging-we-chat-2.svg +4 -4
- package/src/assets/icons/messaging-we-chat-3.svg +8 -8
- package/src/assets/icons/messaging-whatsapp-1.svg +4 -4
- package/src/assets/icons/microphone.svg +4 -4
- package/src/assets/icons/move-expand-vertical-1.svg +3 -3
- package/src/assets/icons/moveExpandVertical1.vue +17 -0
- package/src/assets/icons/navigation-menu-vertical-1.svg +5 -5
- package/src/assets/icons/notes-1.svg +7 -7
- package/src/assets/icons/office-file-pdf-1-1.svg +6 -6
- package/src/assets/icons/paginate-filter-text-1.svg +7 -7
- package/src/assets/icons/pencil-write-1.svg +4 -4
- package/src/assets/icons/phone-3.svg +3 -3
- package/src/assets/icons/phone-4.svg +3 -3
- package/src/assets/icons/phone-charger-1.svg +3 -3
- package/src/assets/icons/photography-equipment-bag-1.svg +5 -5
- package/src/assets/icons/pie-line-graph-1.svg +7 -7
- package/src/assets/icons/preferences.svg +11 -11
- package/src/assets/icons/question-circle-1.svg +5 -5
- package/src/assets/icons/question-circle-2.svg +3 -3
- package/src/assets/icons/radio-default.svg +3 -3
- package/src/assets/icons/radio-disable.svg +3 -3
- package/src/assets/icons/radio-selected.svg +4 -4
- package/src/assets/icons/rating-star-1-1.svg +3 -3
- package/src/assets/icons/rating-star-1.svg +3 -3
- package/src/assets/icons/read-email-at-1.svg +10 -10
- package/src/assets/icons/response-time.svg +12 -12
- package/src/assets/icons/science-fiction-robot-1.svg +8 -8
- package/src/assets/icons/science-fiction-robot-2.svg +5 -5
- package/src/assets/icons/script-to-convert-svg-to-vue.js +20 -0
- package/src/assets/icons/search-1.svg +3 -3
- package/src/assets/icons/send-email-3-1.svg +3 -3
- package/src/assets/icons/single-neutral-2.svg +4 -4
- package/src/assets/icons/single-neutral-actions-1.svg +4 -4
- package/src/assets/icons/social-instagram-1.svg +3 -3
- package/src/assets/icons/social-media-facebook-1.svg +3 -3
- package/src/assets/icons/social-media-google-1.svg +6 -6
- package/src/assets/icons/sort-asc.svg +4 -4
- package/src/assets/icons/sort-default.svg +4 -4
- package/src/assets/icons/sort-desc.svg +4 -4
- package/src/assets/icons/study-light-idea-1.svg +10 -10
- package/src/assets/icons/subtract-1.svg +3 -3
- package/src/assets/icons/subtract-circle-1.svg +4 -4
- package/src/assets/icons/switch-default-disabled.svg +4 -4
- package/src/assets/icons/switch-default.svg +11 -11
- package/src/assets/icons/switch-selected-disabled.svg +4 -4
- package/src/assets/icons/switch-selected.svg +11 -11
- package/src/assets/icons/synchronize-arrow-clock-4.svg +4 -4
- package/src/assets/icons/synchronize-arrow-clock-5.svg +4 -4
- package/src/assets/icons/task-checklist-1.svg +4 -4
- package/src/assets/icons/task-list-clock-1.svg +9 -9
- package/src/assets/icons/text-bold.svg +3 -3
- package/src/assets/icons/text-center.svg +7 -7
- package/src/assets/icons/text-italic.svg +3 -3
- package/src/assets/icons/text-justified.svg +7 -7
- package/src/assets/icons/text-left.svg +7 -7
- package/src/assets/icons/text-right.svg +7 -7
- package/src/assets/icons/text-underline.svg +4 -4
- package/src/assets/icons/ticket-1.svg +9 -9
- package/src/assets/icons/ticket-2.svg +4 -4
- package/src/assets/icons/time-clock-circle-1.svg +4 -4
- package/src/assets/icons/transfer-message.svg +4 -4
- package/src/assets/icons/translate-1.svg +8 -8
- package/src/assets/icons/translate-2.svg +8 -8
- package/src/assets/icons/typing-1.svg +4 -4
- package/src/assets/icons/unionpay.svg +7 -7
- package/src/assets/icons/unordered-list.svg +8 -8
- package/src/assets/icons/upload-bottom-1.svg +4 -4
- package/src/assets/icons/video-file-mp4-1.svg +6 -6
- package/src/assets/icons/view-1-1.svg +4 -4
- package/src/assets/icons/view-off-1.svg +7 -7
- package/src/assets/icons/vip-crown-queen-2.svg +4 -4
- package/src/assets/icons/visa.svg +8 -8
- package/src/assets/img/flag/en.svg +28 -28
- package/src/assets/img/flag/pt-br.svg +21 -21
- package/src/assets/scss/colors.scss +241 -241
- package/src/assets/scss/fonts.scss +123 -123
- package/src/assets/scss/grid.scss +51 -51
- package/src/assets/scss/spacing.scss +103 -103
- package/src/assets/scss/unnnic.scss +10 -10
- package/src/components/Accordion/Accordion.vue +17 -10
- package/src/components/Alert/Alert.vue +73 -53
- package/src/components/Alert/AlertCaller.vue +1 -1
- package/src/components/Alert/Version1dot1.vue +196 -77
- package/src/components/AudioRecorder/AudioHandler.vue +16 -18
- package/src/components/AudioRecorder/AudioPlayer.vue +47 -7
- package/src/components/AudioRecorder/AudioRecorder.vue +47 -31
- package/src/components/AvatarIcon/AvatarIcon.vue +33 -16
- package/src/components/Banner/Banner.vue +1 -2
- package/src/components/Banner/InfoBanner.vue +5 -5
- package/src/components/Breadcrumb/Breadcrumb.vue +13 -15
- package/src/components/Button/Button.vue +174 -99
- package/src/components/Button/ButtonIcon.vue +13 -7
- package/src/components/Card/AccountCard.vue +3 -3
- package/src/components/Card/BlankCard.vue +11 -9
- package/src/components/Card/Card.vue +62 -35
- package/src/components/Card/CardCompany.vue +45 -22
- package/src/components/Card/CardData.vue +11 -5
- package/src/components/Card/CardStatusesContainer.vue +45 -14
- package/src/components/Card/ContentCard.vue +15 -5
- package/src/components/Card/DashCard.vue +8 -5
- package/src/components/Card/DefaultCard.vue +11 -5
- package/src/components/Card/MarketplaceCard.vue +19 -6
- package/src/components/Card/StatusCard.vue +12 -3
- package/src/components/Card/TitleCard.vue +9 -5
- package/src/components/CardImage/CardImage.vue +48 -26
- package/src/components/CardInformation/CardInformation.vue +6 -6
- package/src/components/CardNumber/CardNumber.vue +1 -1
- package/src/components/CardProject/CardProject.vue +31 -21
- package/src/components/Carousel/Carousel.vue +13 -15
- package/src/components/Carousel/TagCarousel.vue +27 -16
- package/src/components/ChartBar/ChartBar.vue +101 -64
- package/src/components/ChartLine/ChartLine.vue +64 -40
- package/src/components/ChartMultiLine/ChartMultiLine.vue +328 -0
- package/src/components/ChartMultiLine/Line/Line.vue +170 -0
- package/src/components/ChartRainbow/ChartRainbow.vue +87 -46
- package/src/components/ChatText/ChatText.vue +41 -15
- package/src/components/ChatsContact/ChatsContact.vue +332 -0
- package/src/components/ChatsDashboardTagLive/ChatsDashboardTagLive.vue +82 -0
- package/src/components/ChatsHeader/ChatsHeader.vue +320 -0
- package/src/components/ChatsMessage/ChatsMessage.vue +318 -0
- package/src/components/ChatsMessage/ChatsMessageStatusBackdrop.vue +78 -0
- package/src/components/ChatsMessage/ChatsMessageText.vue +80 -0
- package/src/components/{NavbarChats/NavbarChats.vue → ChatsNavbar/ChatsNavbar.vue} +30 -25
- package/src/components/ChatsUserAvatar/ChatsUserAvatar.vue +140 -0
- package/src/components/Checkbox/Checkbox.vue +14 -12
- package/src/components/CircleProgressBar/CircleProgressBar.vue +7 -3
- package/src/components/Collapse/Collapse.vue +141 -0
- package/src/components/DataArea/DataArea.vue +6 -3
- package/src/components/DateFilter/DateFilter.vue +9 -5
- package/src/components/DatePicker/DatePicker.vue +133 -76
- package/src/components/Dropdown/Dropdown.vue +66 -54
- package/src/components/Dropdown/DropdownItem.vue +15 -17
- package/src/components/Dropdown/DropdownSkeleton.vue +15 -8
- package/src/components/Dropdown/LanguageSelect.vue +56 -21
- package/src/components/EmojiPicker/EmojiPicker.vue +83 -0
- package/src/components/Flag.vue +2 -2
- package/src/components/FormElement/FormElement.vue +44 -4
- package/src/components/Icon/OldIconsMap.json +97 -0
- package/src/components/Icon.vue +228 -133
- package/src/components/IconLoading/IconLoading.vue +48 -0
- package/src/components/ImportCard/ImportCard.vue +36 -15
- package/src/components/Indicator/Indicator.vue +4 -2
- package/src/components/Input/BaseInput.vue +9 -22
- package/src/components/Input/Input.vue +30 -26
- package/src/components/Input/TextInput.vue +33 -31
- package/src/components/InputDatePicker/InputDatePicker.vue +38 -22
- package/src/components/Label/Label.vue +1 -1
- package/src/components/Modal/CallModal.vue +1 -1
- package/src/components/Modal/Modal.vue +62 -19
- package/src/components/ModalUpload/ModalUpload.vue +19 -16
- package/src/components/MoodRating/MoodRating.vue +36 -21
- package/src/components/MultiSelect/MultiSelect.vue +48 -25
- package/src/components/Pagination/Pagination.vue +22 -15
- package/src/components/ProgressBar/ProgressBar.vue +30 -17
- package/src/components/Radio/Radio.vue +45 -65
- package/src/components/Select/SelectItem.vue +49 -43
- package/src/components/SelectSmart/SelectSmart.vue +133 -70
- package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +18 -4
- package/src/components/SelectSmart/SelectSmartOption.vue +22 -15
- package/src/components/Sidebar/Sidebar.vue +62 -59
- package/src/components/Sidebar/SidebarItem.vue +47 -36
- package/src/components/Sidebar/SidebarMenu.vue +16 -16
- package/src/components/Sidebar/SidebarPrimary.vue +79 -45
- package/src/components/SkeletonLoading/SkeletonLoading.vue +73 -60
- package/src/components/SkeletonLoading/skeletonTheme.vue +30 -19
- package/src/components/Slider/Slider.vue +25 -12
- package/src/components/StarRating/StarRating.vue +9 -5
- package/src/components/Switch/Switch.vue +23 -16
- package/src/components/Tab/Tab.vue +6 -3
- package/src/components/Table/Table.vue +14 -5
- package/src/components/Table/TableRow.vue +5 -4
- package/src/components/TabsExpanded/TabsExpanded.vue +29 -16
- package/src/components/Tag/BrandTag.vue +7 -4
- package/src/components/Tag/DefaultTag.vue +39 -41
- package/src/components/Tag/IndicatorTag.vue +9 -6
- package/src/components/Tag/Tag.vue +16 -20
- package/src/components/TextArea/TextArea.vue +22 -8
- package/src/components/ToolTip/ToolTip.vue +82 -64
- package/src/components/TransitionRipple/TransitionRipple.vue +126 -0
- package/src/components/UploadArea/UploadArea.vue +31 -14
- package/src/components/config.js +0 -1
- package/src/components/grid/Grid.vue +16 -11
- package/src/components/icons/IconCommunity.vue +12 -0
- package/src/components/icons/IconDocumentation.vue +12 -0
- package/src/components/icons/IconEcosystem.vue +12 -0
- package/src/components/icons/IconSupport.vue +12 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/components/index.js +48 -32
- package/src/index.js +10 -0
- package/src/locales/en.json +15 -19
- package/src/locales/es.json +15 -19
- package/src/locales/pt_br.json +15 -19
- package/src/main.js +5 -10
- package/src/mixins/i18n.js +60 -0
- package/src/stories/Accordion.stories.js +9 -4
- package/src/stories/Alert.stories.js +79 -4
- package/src/stories/AvatarIcon.stories.js +28 -12
- package/src/stories/Banner.stories.js +28 -21
- package/src/stories/Breadcrumb.stories.js +10 -10
- package/src/stories/Button.stories.js +112 -38
- package/src/stories/ButtonIcon.stories.js +4 -13
- package/src/stories/Card.stories.js +126 -91
- package/src/stories/CardCompany.stories.js +50 -32
- package/src/stories/CardData.stories.js +2 -1
- package/src/stories/CardImage.stories.js +15 -12
- package/src/stories/CardNumber.stories.js +4 -25
- package/src/stories/CardProject.stories.js +1 -1
- package/src/stories/Carousel.stories.js +4 -3
- package/src/stories/ChartBar.stories.js +68 -51
- package/src/stories/ChartLine.stories.js +32 -23
- package/src/stories/ChartMultiLine.stories.js +59 -0
- package/src/stories/ChartRainbow.stories.js +8 -25
- package/src/stories/ChatsContact.stories.js +90 -0
- package/src/stories/ChatsDashboardTagLive.stories.js +24 -0
- package/src/stories/ChatsHeader.stories.js +93 -0
- package/src/stories/ChatsMessage.stories.js +246 -0
- package/src/stories/ChatsNavbar.stories.js +65 -0
- package/src/stories/ChatsUserAvatar.stories.js +35 -0
- package/src/stories/Checkbox.stories.js +24 -17
- package/src/stories/CircleProgressBar.stories.js +1 -7
- package/src/stories/Collapse.stories.js +97 -0
- package/src/stories/Comment.stories.js +13 -10
- package/src/stories/DataArea.stories.js +22 -18
- package/src/stories/DatePicker.stories.js +28 -21
- package/src/stories/Dropdown.stories.js +8 -2
- package/src/stories/EmojiPicker.stories.js +59 -0
- package/src/stories/Grid.stories.js +6 -1
- package/src/stories/Icon.stories.js +4 -13
- package/src/stories/IconLoading.stories.js +126 -0
- package/src/stories/ImportCard.stories.js +6 -1
- package/src/stories/Input.stories.js +13 -7
- package/src/stories/Introduction.mdx +196 -0
- package/src/stories/Label.stories.js +4 -9
- package/src/stories/LanguageSelect.stories.js +3 -1
- package/src/stories/Modal.stories.js +22 -5
- package/src/stories/ModalUpload.stories.js +17 -21
- package/src/stories/MoodRating.stories.js +5 -4
- package/src/stories/MultiSelect.stories.js +2 -1
- package/src/stories/Pagination.stories.js +19 -5
- package/src/stories/ProgressBar.stories.js +1 -1
- package/src/stories/Radio.stories.js +6 -4
- package/src/stories/SelectSmart.mdx +138 -0
- package/src/stories/SelectSmart.stories.js +144 -117
- package/src/stories/Sidebar.stories.js +3 -2
- package/src/stories/SidebarPrimary.stories.js +54 -40
- package/src/stories/SkeletonLoading.stories.js +15 -4
- package/src/stories/Slider.stories.js +6 -8
- package/src/stories/StarRating.stories.js +6 -9
- package/src/stories/Switch.stories.js +2 -1
- package/src/stories/Table.stories.js +1 -1
- package/src/stories/TabsExpanded.stories.js +30 -27
- package/src/stories/Tag.stories.js +23 -24
- package/src/stories/TextArea.stories.js +2 -0
- package/src/stories/ToolTip.stories.js +10 -13
- package/src/stories/TransitionRipple.stories.js +34 -0
- package/src/stories/UploadArea.stories.js +22 -31
- package/src/stories/assets/images/un.png +0 -0
- package/src/stories/assets/images/unnnic.png +0 -0
- package/src/stories/assets/images/unnnicPortrait.png +0 -0
- package/src/stories/assets/videos/weni.mp4 +0 -0
- package/src/utils/call.js +37 -14
- package/src/utils/colorTokens.js +2 -0
- package/src/utils/icons.js +352 -353
- package/src/utils/plugins/i18n.js +2 -7
- package/.eslintrc.js +0 -20
- package/babel.config.js +0 -16
- package/dist/demo.html +0 -10
- package/dist/img/u1F601.0f41115c.png +0 -0
- package/dist/img/u1F610.a415c879.png +0 -0
- package/dist/img/u1F625.01b659bc.png +0 -0
- package/dist/img/u1F641.f740da74.png +0 -0
- package/dist/img/u1F645.1ff7ba1e.png +0 -0
- package/dist/scss/colors.scss +0 -241
- package/dist/scss/fonts.scss +0 -123
- package/dist/scss/grid.scss +0 -52
- package/dist/scss/spacing.scss +0 -103
- package/dist/scss/unnnic.scss +0 -10
- package/dist/unnnic.common.js +0 -44493
- package/dist/unnnic.common.js.map +0 -1
- package/dist/unnnic.css +0 -1
- package/dist/unnnic.umd.js.map +0 -1
- package/dist/unnnic.umd.min.js +0 -292
- package/dist/unnnic.umd.min.js.map +0 -1
- package/jest.config.js +0 -3
- package/package-lock.json +0 -60419
- package/public/index.html +0 -17
- package/src/assets/logo.png +0 -0
- package/src/components/AutocompleteSelect/AutocompleteSelect.vue +0 -338
- package/src/components/CardFlow/CardFlow.vue +0 -175
- package/src/components/Input/Autocomplete.vue +0 -325
- package/src/components/InputNext/InputNext.vue +0 -260
- package/src/components/ModalNext/ModalNext.vue +0 -396
- package/src/components/Select/Select.vue +0 -409
- package/src/components/SelectListItem/SelectListItem.vue +0 -125
- package/src/components/TextEditor/TextEditor.vue +0 -530
- package/src/stories/Autocomplete.stories.js +0 -55
- package/src/stories/AutocompleteSelect.stories.js +0 -45
- package/src/stories/CardFlow.stories.js +0 -44
- package/src/stories/Colors.stories.mdx +0 -91
- package/src/stories/DropdownSkeleton.stories.js +0 -15
- package/src/stories/Font.stories.mdx +0 -80
- package/src/stories/InputNext.stories.js +0 -109
- package/src/stories/Introduction.stories.mdx +0 -207
- package/src/stories/ModalNext.stories.js +0 -171
- package/src/stories/NavbarChats.stories.js +0 -68
- package/src/stories/Select.stories.js +0 -62
- package/src/stories/SelectListItem.stories.js +0 -63
- package/src/stories/TextEditor.stories.js +0 -80
- package/vue.config.js +0 -26
|
@@ -1,27 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
v-if="showLoading"
|
|
5
|
+
>
|
|
6
|
+
<span
|
|
7
|
+
v-for="(element, index) in elements"
|
|
8
|
+
:key="index"
|
|
9
|
+
:class="classes"
|
|
10
|
+
:style="styles"
|
|
11
|
+
>
|
|
12
|
+
‌
|
|
13
|
+
</span>
|
|
14
|
+
</component>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
1
17
|
<script>
|
|
18
|
+
import { ref, inject } from 'vue';
|
|
2
19
|
import { SkeletonStyle } from './skeletonTheme.vue';
|
|
3
20
|
|
|
4
|
-
const isEmptyVNode = (children) => {
|
|
5
|
-
if (!children) return true;
|
|
6
|
-
const [firstNode] = children;
|
|
7
|
-
let str = firstNode.text;
|
|
8
|
-
if (str) {
|
|
9
|
-
// remove all line-break and space character
|
|
10
|
-
str = str.replace(/(\n|\r\n|\s)/g, '');
|
|
11
|
-
}
|
|
12
|
-
return typeof firstNode.tag === 'undefined' && !str;
|
|
13
|
-
};
|
|
14
21
|
export default {
|
|
15
|
-
name: '
|
|
16
|
-
|
|
17
|
-
themeStyle
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
22
|
+
name: 'unnnicSkeletonLoading',
|
|
23
|
+
setup() {
|
|
24
|
+
const themeStyle = inject('_themeStyle', ref(SkeletonStyle));
|
|
25
|
+
const theme = inject('_skeletonTheme', ref({}));
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
themeStyle,
|
|
29
|
+
theme,
|
|
30
|
+
};
|
|
25
31
|
},
|
|
26
32
|
props: {
|
|
27
33
|
prefix: {
|
|
@@ -42,8 +48,14 @@ export default {
|
|
|
42
48
|
},
|
|
43
49
|
width: [String, Number],
|
|
44
50
|
height: [String, Number],
|
|
45
|
-
circle:
|
|
46
|
-
|
|
51
|
+
circle: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
loading: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: undefined,
|
|
58
|
+
},
|
|
47
59
|
},
|
|
48
60
|
computed: {
|
|
49
61
|
isLoading() {
|
|
@@ -51,50 +63,51 @@ export default {
|
|
|
51
63
|
? this.theme.loading
|
|
52
64
|
: this.loading;
|
|
53
65
|
},
|
|
66
|
+
classes() {
|
|
67
|
+
return [`${this.prefix}-skeleton`];
|
|
68
|
+
},
|
|
69
|
+
styles() {
|
|
70
|
+
const styles = { ...this.themeStyle };
|
|
71
|
+
if (this.duration) {
|
|
72
|
+
styles.animation = `SkeletonLoading ${this.duration}s ease-in-out infinite`;
|
|
73
|
+
} else {
|
|
74
|
+
styles.backgroundImage = '';
|
|
75
|
+
}
|
|
76
|
+
if (this.width) styles.width = this.width;
|
|
77
|
+
if (this.height) styles.height = this.height;
|
|
78
|
+
if (this.circle) styles.borderRadius = '50%';
|
|
79
|
+
return styles;
|
|
80
|
+
},
|
|
81
|
+
elements() {
|
|
82
|
+
const elements = [];
|
|
83
|
+
for (let i = 0; i < this.count; i += 1) {
|
|
84
|
+
elements.push({});
|
|
85
|
+
}
|
|
86
|
+
return elements;
|
|
87
|
+
},
|
|
88
|
+
showLoading() {
|
|
89
|
+
return typeof this.isLoading !== 'undefined'
|
|
90
|
+
? this.isLoading
|
|
91
|
+
: this.isEmptyVNode(this.$slots.default);
|
|
92
|
+
},
|
|
54
93
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
const classes = [`${prefix}-skeleton`];
|
|
67
|
-
const elements = [];
|
|
68
|
-
const styles = { ...this.themeStyle };
|
|
69
|
-
if (duration) {
|
|
70
|
-
styles.animation = `SkeletonLoading ${duration}s ease-in-out infinite`;
|
|
71
|
-
} else {
|
|
72
|
-
styles.backgroundImage = '';
|
|
73
|
-
}
|
|
74
|
-
if (width) styles.width = width;
|
|
75
|
-
if (height) styles.height = height;
|
|
76
|
-
if (circle) styles.borderRadius = '50%';
|
|
77
|
-
for (let i = 0; i < count; i += 1) {
|
|
78
|
-
elements.push(
|
|
79
|
-
<span key={i} class={classes} style={styles}>
|
|
80
|
-
‌
|
|
81
|
-
</span>,
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
const showLoading = typeof isLoading !== 'undefined'
|
|
85
|
-
? isLoading
|
|
86
|
-
: isEmptyVNode(this.$slots.default);
|
|
87
|
-
if (tag) {
|
|
88
|
-
return h(tag, !showLoading ? this.$slots.default : elements);
|
|
89
|
-
}
|
|
90
|
-
return !showLoading ? this.$slots.default : <span>{elements}</span>;
|
|
94
|
+
methods: {
|
|
95
|
+
isEmptyVNode(children) {
|
|
96
|
+
if (!children) return true;
|
|
97
|
+
const [firstNode] = children;
|
|
98
|
+
let str = firstNode.text;
|
|
99
|
+
if (str) {
|
|
100
|
+
// remove all line-break and space character
|
|
101
|
+
str = str.replace(/(\n|\r\n|\s)/g, '');
|
|
102
|
+
}
|
|
103
|
+
return typeof firstNode.tag === 'undefined' && !str;
|
|
104
|
+
},
|
|
91
105
|
},
|
|
92
106
|
};
|
|
93
107
|
</script>
|
|
94
108
|
|
|
95
109
|
<style lang="scss">
|
|
96
|
-
@import
|
|
97
|
-
|
|
110
|
+
@import '../../assets/scss/unnnic.scss';
|
|
98
111
|
.unnnic-skeleton {
|
|
99
112
|
background-size: 500px 100%;
|
|
100
113
|
background-repeat: no-repeat;
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div :style="themeStyle">
|
|
3
|
+
<component
|
|
4
|
+
v-if="tag"
|
|
5
|
+
:is="tag"
|
|
6
|
+
>
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</component>
|
|
9
|
+
<slot v-else></slot>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
3
12
|
|
|
4
|
-
|
|
13
|
+
<script>
|
|
14
|
+
import { ref, provide } from 'vue';
|
|
15
|
+
import colors from '@/assets/scss/colors.scss?inline';
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line no-useless-escape
|
|
18
|
+
const backgroundValueRegex = /unnnicColorBackgroundSolo:\s*(.*)\;/;
|
|
19
|
+
const match = backgroundValueRegex.exec(colors);
|
|
20
|
+
|
|
21
|
+
export const DEFAULT_BACKGROUND = match ? match[1] : '#E8F4F4';
|
|
5
22
|
export const DEFAULT_HIGHLIGHT = 'rgba(255,255,255,0.375)';
|
|
6
23
|
export const SkeletonStyle = {
|
|
7
24
|
backgroundColor: DEFAULT_BACKGROUND,
|
|
@@ -14,10 +31,16 @@ export const SkeletonStyle = {
|
|
|
14
31
|
};
|
|
15
32
|
export default {
|
|
16
33
|
name: 'unnnicSkeletonTheme',
|
|
17
|
-
|
|
34
|
+
setup() {
|
|
35
|
+
const themeStyle = ref(SkeletonStyle);
|
|
36
|
+
const theme = ref({});
|
|
37
|
+
|
|
38
|
+
provide('_themeStyle', themeStyle);
|
|
39
|
+
provide('_skeletonTheme', theme);
|
|
40
|
+
|
|
18
41
|
return {
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
themeStyle,
|
|
43
|
+
theme,
|
|
21
44
|
};
|
|
22
45
|
},
|
|
23
46
|
props: {
|
|
@@ -42,12 +65,7 @@ export default {
|
|
|
42
65
|
default: undefined,
|
|
43
66
|
},
|
|
44
67
|
},
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
themeStyle: { ...SkeletonStyle },
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
render(h) {
|
|
68
|
+
mounted() {
|
|
51
69
|
const { color, highlight, duration } = this;
|
|
52
70
|
this.themeStyle.backgroundColor = color;
|
|
53
71
|
this.themeStyle.backgroundImage = `linear-gradient(
|
|
@@ -62,13 +80,6 @@ export default {
|
|
|
62
80
|
this.themeStyle.animation = '';
|
|
63
81
|
this.themeStyle.backgroundImage = '';
|
|
64
82
|
}
|
|
65
|
-
if (this.tag) {
|
|
66
|
-
return h(this.tag, this.$slots.default);
|
|
67
|
-
}
|
|
68
|
-
return this.$slots.default[0];
|
|
69
83
|
},
|
|
70
84
|
};
|
|
71
85
|
</script>
|
|
72
|
-
<style lang="scss">
|
|
73
|
-
@import "../../assets/scss/unnnic.scss";
|
|
74
|
-
</style>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="unnnic-slider"
|
|
4
|
+
:style="cssVars"
|
|
5
|
+
>
|
|
3
6
|
<div class="unnnic-slider__content">
|
|
4
|
-
<
|
|
7
|
+
<UnnnicTooltip
|
|
5
8
|
ref="tooltip"
|
|
6
9
|
class="unnnic-slider__content__tooltip"
|
|
7
10
|
:text="sliderVal.toString()"
|
|
8
|
-
:
|
|
11
|
+
:forceOpen="true"
|
|
9
12
|
:enabled="showTooltip"
|
|
10
13
|
side="top"
|
|
11
14
|
>
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
@mouseover="showTooltip = true"
|
|
22
25
|
@mouseleave="showTooltip = false"
|
|
23
26
|
/>
|
|
24
|
-
</
|
|
27
|
+
</UnnnicTooltip>
|
|
25
28
|
|
|
26
29
|
<div class="unnnic-slider__content__labels">
|
|
27
30
|
<div class="unnnic-slider__content__labels__min">{{ minLabel }}</div>
|
|
@@ -29,7 +32,12 @@
|
|
|
29
32
|
</div>
|
|
30
33
|
</div>
|
|
31
34
|
|
|
32
|
-
<div
|
|
35
|
+
<div
|
|
36
|
+
ref="value-input"
|
|
37
|
+
class="value-input"
|
|
38
|
+
contenteditable="true"
|
|
39
|
+
@input="handleInput"
|
|
40
|
+
/>
|
|
33
41
|
</div>
|
|
34
42
|
</template>
|
|
35
43
|
|
|
@@ -79,13 +87,14 @@ export default {
|
|
|
79
87
|
created() {
|
|
80
88
|
window.addEventListener('resize', this.handleResize);
|
|
81
89
|
},
|
|
82
|
-
|
|
90
|
+
unmounted() {
|
|
83
91
|
window.removeEventListener('resize', this.handleResize);
|
|
84
92
|
},
|
|
85
93
|
mounted() {
|
|
86
94
|
const fallbackLabelWidth = 32 + this.sliderVal.toString().length * 4.5;
|
|
87
95
|
this.sliderWidth = this.$refs.input.clientWidth;
|
|
88
|
-
this.labelWidth =
|
|
96
|
+
this.labelWidth =
|
|
97
|
+
this.$refs.tooltip.$refs.label.clientWidth || fallbackLabelWidth;
|
|
89
98
|
this.tooltipOffset = this.getNewTooltipPosition();
|
|
90
99
|
},
|
|
91
100
|
watch: {
|
|
@@ -125,7 +134,8 @@ export default {
|
|
|
125
134
|
const halfLabelWidth = this.labelWidth / 2;
|
|
126
135
|
const centerPosition = this.sliderWidth / 2;
|
|
127
136
|
|
|
128
|
-
let percentOfRange =
|
|
137
|
+
let percentOfRange =
|
|
138
|
+
(this.sliderVal - this.minValue) / (this.maxValue - this.minValue);
|
|
129
139
|
if (Number.isNaN(percentOfRange)) {
|
|
130
140
|
percentOfRange = 0;
|
|
131
141
|
}
|
|
@@ -167,7 +177,8 @@ export default {
|
|
|
167
177
|
font-size: $unnnic-font-size-body-md;
|
|
168
178
|
line-height: $unnnic-font-size-body-md + $unnnic-line-height-medium;
|
|
169
179
|
padding: $unnnic-squish-nano;
|
|
170
|
-
height: $unnnic-font-size-body-md + $unnnic-line-height-medium + 0.5 *
|
|
180
|
+
height: $unnnic-font-size-body-md + $unnnic-line-height-medium + 0.5 *
|
|
181
|
+
$unnnic-font-size * 2;
|
|
171
182
|
position: relative;
|
|
172
183
|
|
|
173
184
|
&:before {
|
|
@@ -177,13 +188,13 @@ export default {
|
|
|
177
188
|
right: 0;
|
|
178
189
|
top: 0;
|
|
179
190
|
bottom: 0;
|
|
180
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-
|
|
191
|
+
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-clean;
|
|
181
192
|
border-radius: inherit;
|
|
182
193
|
pointer-events: none;
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
&:focus:before {
|
|
186
|
-
border-color: $unnnic-color-neutral-
|
|
197
|
+
border-color: $unnnic-color-neutral-cleanest;
|
|
187
198
|
}
|
|
188
199
|
|
|
189
200
|
&:focus {
|
|
@@ -274,7 +285,9 @@ export default {
|
|
|
274
285
|
&::-webkit-slider-runnable-track {
|
|
275
286
|
@include track(1);
|
|
276
287
|
margin: $unnnic-spacing-inline-xs 0;
|
|
277
|
-
--progress: calc(
|
|
288
|
+
--progress: calc(
|
|
289
|
+
(var(--val) - var(--min)) / ((var(--max) - var(--min))) * 100%
|
|
290
|
+
);
|
|
278
291
|
background: linear-gradient(
|
|
279
292
|
to right,
|
|
280
293
|
$unnnic-color-aux-baby-blue 0%,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="unnnic-star-rating">
|
|
3
|
-
<
|
|
3
|
+
<UnnnicIcon
|
|
4
4
|
:key="index"
|
|
5
5
|
v-for="index in 5"
|
|
6
6
|
:scheme="starScheme(index)"
|
|
@@ -8,8 +8,12 @@
|
|
|
8
8
|
size="ant"
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<div
|
|
12
|
-
|
|
11
|
+
<div
|
|
12
|
+
v-if="showValue"
|
|
13
|
+
class="rating-title"
|
|
14
|
+
>
|
|
15
|
+
<span class="highlight">{{ value.toFixed(1) }}</span
|
|
16
|
+
>/5.0
|
|
13
17
|
</div>
|
|
14
18
|
</div>
|
|
15
19
|
</template>
|
|
@@ -49,7 +53,7 @@ export default {
|
|
|
49
53
|
</script>
|
|
50
54
|
|
|
51
55
|
<style lang="scss" scoped>
|
|
52
|
-
@import
|
|
56
|
+
@import '../../assets/scss/unnnic.scss';
|
|
53
57
|
|
|
54
58
|
.unnnic-star-rating {
|
|
55
59
|
display: flex;
|
|
@@ -61,7 +65,7 @@ export default {
|
|
|
61
65
|
font-weight: $unnnic-font-weight-bold;
|
|
62
66
|
font-size: $unnnic-font-size-body-lg;
|
|
63
67
|
line-height: $unnnic-font-size-body-lg + $unnnic-line-height-md;
|
|
64
|
-
color: $unnnic-color-neutral-
|
|
68
|
+
color: $unnnic-color-neutral-cleanest;
|
|
65
69
|
|
|
66
70
|
.highlight {
|
|
67
71
|
color: $unnnic-color-neutral-darkest;
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
{{ textLeft }}
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<
|
|
14
|
+
<UnnnicIconSvg
|
|
15
15
|
:class="{ 'unnnic-switch__icon': true, active: isActive }"
|
|
16
16
|
:icon="currentIcon"
|
|
17
17
|
:size="iconSize"
|
|
18
18
|
:scheme="iconScheme"
|
|
19
19
|
:lineHeight="iconLineHeight"
|
|
20
|
-
@click
|
|
20
|
+
@click="toggleState"
|
|
21
21
|
/>
|
|
22
22
|
|
|
23
23
|
<div
|
|
@@ -59,10 +59,13 @@ export default {
|
|
|
59
59
|
type: Boolean,
|
|
60
60
|
default: false,
|
|
61
61
|
},
|
|
62
|
-
|
|
62
|
+
modelValue: {
|
|
63
63
|
type: Boolean,
|
|
64
64
|
default: false,
|
|
65
65
|
},
|
|
66
|
+
useVModel: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
},
|
|
66
69
|
},
|
|
67
70
|
data() {
|
|
68
71
|
return {
|
|
@@ -71,10 +74,10 @@ export default {
|
|
|
71
74
|
},
|
|
72
75
|
|
|
73
76
|
watch: {
|
|
74
|
-
|
|
77
|
+
modelValue: {
|
|
75
78
|
immediate: true,
|
|
76
79
|
handler() {
|
|
77
|
-
this.isActive = this.
|
|
80
|
+
this.isActive = this.modelValue;
|
|
78
81
|
},
|
|
79
82
|
},
|
|
80
83
|
},
|
|
@@ -82,15 +85,23 @@ export default {
|
|
|
82
85
|
methods: {
|
|
83
86
|
toggleState() {
|
|
84
87
|
if (this.disabled) return;
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
|
|
89
|
+
if (this.useVModel) {
|
|
90
|
+
this.$emit('update:model-value', !this.isActive);
|
|
91
|
+
} else {
|
|
92
|
+
this.isActive = !this.isActive;
|
|
93
|
+
this.$emit('update:model-value', this.isActive);
|
|
94
|
+
}
|
|
87
95
|
},
|
|
88
96
|
},
|
|
89
97
|
computed: {
|
|
90
98
|
currentIcon() {
|
|
91
99
|
if (this.disabled) {
|
|
92
|
-
return this.isActive
|
|
100
|
+
return this.isActive
|
|
101
|
+
? 'switch-selected-disabled'
|
|
102
|
+
: 'switch-default-disabled';
|
|
93
103
|
}
|
|
104
|
+
|
|
94
105
|
return 'switch-default';
|
|
95
106
|
},
|
|
96
107
|
|
|
@@ -143,17 +154,13 @@ export default {
|
|
|
143
154
|
align-self: center;
|
|
144
155
|
margin: $unnnic-spacing-stack-nano $unnnic-inline-nano;
|
|
145
156
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
transition: 0.2s linear transform;
|
|
149
|
-
}
|
|
157
|
+
:deep(#default-circle) {
|
|
158
|
+
transition: 0.2s linear transform;
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
&.active {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
transform: translateX(45%);
|
|
156
|
-
}
|
|
162
|
+
:deep(#default-circle) {
|
|
163
|
+
transform: translateX(45%);
|
|
157
164
|
}
|
|
158
165
|
}
|
|
159
166
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/multi-word-component-names -->
|
|
1
2
|
<template>
|
|
2
3
|
<div :class="['tab', `size-${size}`]">
|
|
3
4
|
<header class="tab-header">
|
|
@@ -51,7 +52,8 @@ export default {
|
|
|
51
52
|
};
|
|
52
53
|
},
|
|
53
54
|
created() {
|
|
54
|
-
const value =
|
|
55
|
+
const value =
|
|
56
|
+
this.initialTab || this.activeTab || (this.tabs && this.tabs[0]);
|
|
55
57
|
|
|
56
58
|
this.change(value);
|
|
57
59
|
},
|
|
@@ -78,7 +80,7 @@ export default {
|
|
|
78
80
|
</script>
|
|
79
81
|
|
|
80
82
|
<style lang="scss" scoped>
|
|
81
|
-
@import
|
|
83
|
+
@import '../../assets/scss/unnnic.scss';
|
|
82
84
|
|
|
83
85
|
.tab-header {
|
|
84
86
|
display: flex;
|
|
@@ -120,7 +122,8 @@ export default {
|
|
|
120
122
|
padding-bottom: $unnnic-spacing-stack-xs;
|
|
121
123
|
margin-bottom: $unnnic-spacing-stack-xs;
|
|
122
124
|
|
|
123
|
-
.tab-head,
|
|
125
|
+
.tab-head,
|
|
126
|
+
.tab-head--active {
|
|
124
127
|
font-size: $unnnic-font-size-body-md;
|
|
125
128
|
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-md);
|
|
126
129
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
v-show="true"
|
|
4
|
+
class="unnnic-table"
|
|
5
|
+
>
|
|
3
6
|
<div class="header">
|
|
4
7
|
<slot name="header"></slot>
|
|
5
8
|
</div>
|
|
@@ -9,9 +12,15 @@
|
|
|
9
12
|
</div>
|
|
10
13
|
|
|
11
14
|
<div class="scroll">
|
|
12
|
-
<template
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
<template
|
|
16
|
+
v-for="(item, index) in items"
|
|
17
|
+
:key="index"
|
|
18
|
+
>
|
|
19
|
+
<div class="item">
|
|
20
|
+
<slot
|
|
21
|
+
name="item"
|
|
22
|
+
:item="item"
|
|
23
|
+
></slot>
|
|
15
24
|
</div>
|
|
16
25
|
</template>
|
|
17
26
|
</div>
|
|
@@ -41,7 +50,7 @@ export default {
|
|
|
41
50
|
</script>
|
|
42
51
|
|
|
43
52
|
<style lang="scss" scoped>
|
|
44
|
-
@import
|
|
53
|
+
@import '../../assets/scss/unnnic.scss';
|
|
45
54
|
|
|
46
55
|
$scroll-size: 4px;
|
|
47
56
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="table-row">
|
|
3
|
-
<template
|
|
3
|
+
<template
|
|
4
|
+
v-for="(header, index) in headers"
|
|
5
|
+
:key="header.id"
|
|
6
|
+
>
|
|
4
7
|
<div
|
|
5
8
|
class="col"
|
|
6
|
-
:key="header.id"
|
|
7
9
|
:style="{
|
|
8
10
|
width: header.width,
|
|
9
11
|
flex: header.flex,
|
|
@@ -18,7 +20,6 @@
|
|
|
18
20
|
<div
|
|
19
21
|
v-show="index + 1 !== headers.length"
|
|
20
22
|
:class="['divider', { condensed: header.condensed }]"
|
|
21
|
-
:key="`divider-${index}`"
|
|
22
23
|
></div>
|
|
23
24
|
</template>
|
|
24
25
|
</div>
|
|
@@ -49,7 +50,7 @@ export default {
|
|
|
49
50
|
</style>
|
|
50
51
|
|
|
51
52
|
<style lang="scss" scoped>
|
|
52
|
-
@import
|
|
53
|
+
@import '../../assets/scss/unnnic.scss';
|
|
53
54
|
|
|
54
55
|
.table-row {
|
|
55
56
|
display: flex;
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="unnnic-tabs-expanded">
|
|
3
|
-
<div
|
|
4
|
-
|
|
3
|
+
<div
|
|
4
|
+
class="back-container"
|
|
5
|
+
@click="$emit('back')"
|
|
6
|
+
>
|
|
7
|
+
<UnnnicIcon
|
|
5
8
|
icon="keyboard-arrow-left-1"
|
|
6
9
|
scheme="neutral-cloudy"
|
|
7
10
|
/>
|
|
8
11
|
</div>
|
|
9
12
|
|
|
10
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
class="tab"
|
|
15
|
+
v-for="item in items"
|
|
16
|
+
:key="item.value"
|
|
17
|
+
@click="$emit('update:model-value', item.value)"
|
|
18
|
+
>
|
|
11
19
|
<div>
|
|
12
20
|
<div
|
|
13
21
|
:class="[
|
|
14
22
|
'u font secondary body-gt bold',
|
|
15
|
-
item.value ===
|
|
23
|
+
item.value === modelValue
|
|
24
|
+
? 'color-brand-weni-soft'
|
|
25
|
+
: 'color-neutral-cloudy',
|
|
16
26
|
]"
|
|
17
27
|
>
|
|
18
28
|
{{ item.title }}
|
|
@@ -23,9 +33,12 @@
|
|
|
23
33
|
</div>
|
|
24
34
|
</div>
|
|
25
35
|
|
|
26
|
-
<div
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
<div
|
|
37
|
+
v-if="item.value === modelValue"
|
|
38
|
+
class="close-container"
|
|
39
|
+
>
|
|
40
|
+
<UnnnicIcon
|
|
41
|
+
@click.stop="$emit('close-tab', item)"
|
|
29
42
|
icon="close-1"
|
|
30
43
|
size="xs"
|
|
31
44
|
scheme="neutral-cloudy"
|
|
@@ -33,8 +46,11 @@
|
|
|
33
46
|
</div>
|
|
34
47
|
</div>
|
|
35
48
|
|
|
36
|
-
<div
|
|
37
|
-
|
|
49
|
+
<div
|
|
50
|
+
class="add-container"
|
|
51
|
+
@click="$emit('add')"
|
|
52
|
+
>
|
|
53
|
+
<UnnnicIcon
|
|
38
54
|
icon="add-1"
|
|
39
55
|
scheme="neutral-cloudy"
|
|
40
56
|
size="sm"
|
|
@@ -47,16 +63,12 @@
|
|
|
47
63
|
import UnnnicIcon from '../Icon.vue';
|
|
48
64
|
|
|
49
65
|
export default {
|
|
50
|
-
model: {
|
|
51
|
-
event: 'change',
|
|
52
|
-
},
|
|
53
|
-
|
|
54
66
|
components: {
|
|
55
67
|
UnnnicIcon,
|
|
56
68
|
},
|
|
57
69
|
|
|
58
70
|
props: {
|
|
59
|
-
|
|
71
|
+
modelValue: {
|
|
60
72
|
type: [String, Number],
|
|
61
73
|
},
|
|
62
74
|
|
|
@@ -68,7 +80,7 @@ export default {
|
|
|
68
80
|
</script>
|
|
69
81
|
|
|
70
82
|
<style lang="scss" scoped>
|
|
71
|
-
@import
|
|
83
|
+
@import '../../assets/scss/unnnic.scss';
|
|
72
84
|
|
|
73
85
|
.unnnic-tabs-expanded {
|
|
74
86
|
position: relative;
|
|
@@ -80,7 +92,8 @@ export default {
|
|
|
80
92
|
margin-bottom: -$unnnic-border-width-thinner;
|
|
81
93
|
}
|
|
82
94
|
|
|
83
|
-
.back-container,
|
|
95
|
+
.back-container,
|
|
96
|
+
.add-container {
|
|
84
97
|
padding: $unnnic-spacing-inset-sm;
|
|
85
98
|
cursor: pointer;
|
|
86
99
|
user-select: none;
|