@mobileaction/action-kit 1.42.7-beta.2 → 1.42.7-beta.3
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/package.json +3 -2
- package/src/Configuration.mdx +36 -0
- package/src/Introduction.mdx +36 -0
- package/src/assets/fonts/EuclidCircularABold.ttf +0 -0
- package/src/assets/fonts/EuclidCircularABold.woff +0 -0
- package/src/assets/fonts/EuclidCircularABold.woff2 +0 -0
- package/src/assets/fonts/EuclidCircularABoldItalic.ttf +0 -0
- package/src/assets/fonts/EuclidCircularAItalic.ttf +0 -0
- package/src/assets/fonts/EuclidCircularAItalic.woff +0 -0
- package/src/assets/fonts/EuclidCircularAItalic.woff2 +0 -0
- package/src/assets/fonts/EuclidCircularALight.ttf +0 -0
- package/src/assets/fonts/EuclidCircularALightItalic.ttf +0 -0
- package/src/assets/fonts/EuclidCircularAMedium.ttf +0 -0
- package/src/assets/fonts/EuclidCircularAMedium.woff +0 -0
- package/src/assets/fonts/EuclidCircularAMedium.woff2 +0 -0
- package/src/assets/fonts/EuclidCircularAMediumItalic.ttf +0 -0
- package/src/assets/fonts/EuclidCircularARegular.ttf +0 -0
- package/src/assets/fonts/EuclidCircularARegular.woff +0 -0
- package/src/assets/fonts/EuclidCircularARegular.woff2 +0 -0
- package/src/assets/fonts/EuclidCircularASemiBold.ttf +0 -0
- package/src/assets/fonts/EuclidCircularASemiBold.woff +0 -0
- package/src/assets/fonts/EuclidCircularASemiBold.woff2 +0 -0
- package/src/assets/fonts/EuclidCircularASemiBoldItalic.ttf +0 -0
- package/src/assets/fonts.scss +84 -0
- package/src/assets/typography-classes.css +295 -0
- package/src/assets/typography.css +412 -0
- package/src/components/alert/alert.test.ts +36 -0
- package/src/components/alert/index.vue +72 -0
- package/src/components/alert/stories/blue.stories.ts +63 -0
- package/src/components/alert/stories/constants.ts +60 -0
- package/src/components/alert/stories/dark.stories.ts +71 -0
- package/src/components/alert/stories/green.stories.ts +41 -0
- package/src/components/alert/stories/orange.stories.ts +41 -0
- package/src/components/alert/stories/red.stories.ts +41 -0
- package/src/components/alert/styles.scss +125 -0
- package/src/components/alert/types.ts +15 -0
- package/src/components/animation/index.vue +93 -0
- package/src/components/animation/stories/animation.stories.ts +31 -0
- package/src/components/animation/stories/constants.ts +46 -0
- package/src/components/animation/types.ts +13 -0
- package/src/components/app-icon/assets/styles.scss +229 -0
- package/src/components/app-icon/index.vue +181 -0
- package/src/components/app-icon/stories/constants.ts +46 -0
- package/src/components/app-icon/stories/default.stories.ts +78 -0
- package/src/components/app-icon/types.ts +16 -0
- package/src/components/app-track-button/assets/styles.scss +76 -0
- package/src/components/app-track-button/index.vue +98 -0
- package/src/components/app-track-button/stories/constants.ts +47 -0
- package/src/components/app-track-button/stories/default.stories.ts +64 -0
- package/src/components/avatar/avatar.test.ts +47 -0
- package/src/components/avatar/index.vue +100 -0
- package/src/components/avatar/stories/constants.ts +45 -0
- package/src/components/avatar/stories/default.stories.ts +20 -0
- package/src/components/avatar/styles.scss +116 -0
- package/src/components/avatar/types.ts +24 -0
- package/src/components/badge/badge.test.ts +97 -0
- package/src/components/badge/index.vue +52 -0
- package/src/components/badge/stories/basic.stories.ts +54 -0
- package/src/components/badge/stories/blue.stories.ts +60 -0
- package/src/components/badge/stories/constants.ts +81 -0
- package/src/components/badge/stories/dark.stories.ts +54 -0
- package/src/components/badge/stories/green.stories.ts +59 -0
- package/src/components/badge/stories/orange.stories.ts +59 -0
- package/src/components/badge/stories/pink.stories.ts +59 -0
- package/src/components/badge/stories/purple.stories.ts +59 -0
- package/src/components/badge/stories/red.stories.ts +58 -0
- package/src/components/badge/stories/status-example.mdx +14 -0
- package/src/components/badge/stories/status.stories.ts +17 -0
- package/src/components/badge/stories/teal.stories.ts +58 -0
- package/src/components/badge/stories/yellow.stories.ts +59 -0
- package/src/components/badge/styles.scss +198 -0
- package/src/components/badge/types.ts +43 -0
- package/src/components/button/assets/link.scss +72 -0
- package/src/components/button/assets/mixins.scss +82 -0
- package/src/components/button/assets/regular.scss +188 -0
- package/src/components/button/assets/social.scss +98 -0
- package/src/components/button/assets/styles.scss +31 -0
- package/src/components/button/button.test.ts +126 -0
- package/src/components/button/index.vue +107 -0
- package/src/components/button/link-button/index.vue +92 -0
- package/src/components/button/link-button/stories/constants.ts +67 -0
- package/src/components/button/link-button/stories/link.stories.ts +74 -0
- package/src/components/button/link-button/types.ts +15 -0
- package/src/components/button/social-button/index.vue +88 -0
- package/src/components/button/social-button/stories/constants.ts +63 -0
- package/src/components/button/social-button/stories/social.stories.ts +109 -0
- package/src/components/button/social-button/types.ts +15 -0
- package/src/components/button/stories/constants.ts +89 -0
- package/src/components/button/stories/filled.stories.ts +113 -0
- package/src/components/button/stories/ghost.stories.ts +113 -0
- package/src/components/button/stories/lighter.stories.ts +113 -0
- package/src/components/button/stories/stroke.stories.ts +113 -0
- package/src/components/button/types.ts +52 -0
- package/src/components/button/utils.ts +28 -0
- package/src/components/card/assets/styles.scss +121 -0
- package/src/components/card/index.vue +240 -0
- package/src/components/card/stories/constants.ts +111 -0
- package/src/components/card/stories/default.stories.ts +130 -0
- package/src/components/card/stories/examples.mdx +37 -0
- package/src/components/card/stories/footer.stories.ts +122 -0
- package/src/components/card/stories/header.stories.ts +129 -0
- package/src/components/card/types.ts +21 -0
- package/src/components/cascader/assets/styles.scss +162 -0
- package/src/components/cascader/cascader.test.ts +163 -0
- package/src/components/cascader/components/option.vue +138 -0
- package/src/components/cascader/components/options.vue +97 -0
- package/src/components/cascader/composables/useCascaderOverflow.ts +35 -0
- package/src/components/cascader/composables/usePopoverAttributeWatcher.ts +50 -0
- package/src/components/cascader/index.vue +215 -0
- package/src/components/cascader/stories/constants.ts +82 -0
- package/src/components/cascader/stories/default.stories.ts +161 -0
- package/src/components/cascader/stories/options.json +80 -0
- package/src/components/cascader/types.ts +17 -0
- package/src/components/cascader/utils/index.test.ts +56 -0
- package/src/components/cascader/utils/index.ts +66 -0
- package/src/components/checkbox/group.vue +64 -0
- package/src/components/checkbox/index.vue +58 -0
- package/src/components/checkbox/stories/constants.ts +134 -0
- package/src/components/checkbox/stories/default.stories.ts +26 -0
- package/src/components/checkbox/stories/group.stories.ts +20 -0
- package/src/components/checkbox/stories/indeterminate.stories.ts +26 -0
- package/src/components/checkbox/styles.scss +221 -0
- package/src/components/checkbox/types.ts +6 -0
- package/src/components/collapse/assets/styles.scss +25 -0
- package/src/components/collapse/collapse.test.ts +86 -0
- package/src/components/collapse/components/CollapseContent.vue +11 -0
- package/src/components/collapse/components/CollapseHeader.vue +49 -0
- package/src/components/collapse/components/CollapseItem.vue +62 -0
- package/src/components/collapse/index.vue +119 -0
- package/src/components/collapse/stories/constants.ts +141 -0
- package/src/components/collapse/stories/default.stories.ts +42 -0
- package/src/components/collapse/types.ts +29 -0
- package/src/components/content-scroller/assets/styles.scss +111 -0
- package/src/components/content-scroller/index.vue +102 -0
- package/src/components/content-scroller/stories/constants.ts +47 -0
- package/src/components/content-scroller/stories/default.stories.ts +16 -0
- package/src/components/content-scroller/types.ts +13 -0
- package/src/components/country-radio/assets/styles.scss +30 -0
- package/src/components/country-radio/index.vue +66 -0
- package/src/components/country-radio/stories/constants.ts +51 -0
- package/src/components/country-radio/stories/default.stories.ts +26 -0
- package/src/components/country-radio/stories/examples.mdx +29 -0
- package/src/components/country-select/assets/styles.scss +48 -0
- package/src/components/country-select/components/multiCountrySelect.vue +135 -0
- package/src/components/country-select/components/singleCountrySelect.vue +96 -0
- package/src/components/country-select/index.vue +87 -0
- package/src/components/country-select/stories/constants.ts +46 -0
- package/src/components/country-select/stories/countries.json +342 -0
- package/src/components/country-select/stories/default.stories.ts +69 -0
- package/src/components/country-select/types.ts +5 -0
- package/src/components/date-picker/assets/animations.scss +107 -0
- package/src/components/date-picker/assets/styles.scss +872 -0
- package/src/components/date-picker/index.vue +340 -0
- package/src/components/date-picker/stories/constants.ts +95 -0
- package/src/components/date-picker/stories/default.stories.ts +108 -0
- package/src/components/date-picker/stories/range.stories.ts +137 -0
- package/src/components/date-picker/types.ts +19 -0
- package/src/components/date-picker-2/assets/calendar.scss +43 -0
- package/src/components/date-picker-2/assets/datepicker-menu.scss +242 -0
- package/src/components/date-picker-2/assets/input.scss +130 -0
- package/src/components/date-picker-2/assets/quarter-picker.scss +44 -0
- package/src/components/date-picker-2/assets/selection-overlay.scss +124 -0
- package/src/components/date-picker-2/assets/styles.scss +6 -0
- package/src/components/date-picker-2/assets/transitions.scss +61 -0
- package/src/components/date-picker-2/components/calendarSelect.vue +49 -0
- package/src/components/date-picker-2/composables/useDatePickerFormat.ts +80 -0
- package/src/components/date-picker-2/composables/utils.ts +49 -0
- package/src/components/date-picker-2/date-picker.test.ts +340 -0
- package/src/components/date-picker-2/index.vue +302 -0
- package/src/components/date-picker-2/stories/constants.ts +116 -0
- package/src/components/date-picker-2/stories/default.stories.ts +172 -0
- package/src/components/date-picker-2/stories/range.stories.ts +232 -0
- package/src/components/date-picker-2/types.ts +256 -0
- package/src/components/drawer/assets/styles.scss +163 -0
- package/src/components/drawer/drawer.test.ts +188 -0
- package/src/components/drawer/index.vue +312 -0
- package/src/components/drawer/stories/drawer.stories.ts +489 -0
- package/src/components/dropdown/assets/animations.scss +107 -0
- package/src/components/dropdown/assets/styles.scss +84 -0
- package/src/components/dropdown/index.vue +66 -0
- package/src/components/dropdown/stories/constants.ts +108 -0
- package/src/components/dropdown/stories/default.stories.ts +44 -0
- package/src/components/dropdown/types.ts +17 -0
- package/src/components/ellipsis/assets/styles.scss +7 -0
- package/src/components/ellipsis/index.vue +141 -0
- package/src/components/ellipsis/stories/constants.ts +34 -0
- package/src/components/ellipsis/stories/default.stories.ts +25 -0
- package/src/components/empty/assets/styles.scss +76 -0
- package/src/components/empty/index.vue +54 -0
- package/src/components/empty/stories/animation.stories.ts +35 -0
- package/src/components/empty/stories/constants.ts +40 -0
- package/src/components/empty/stories/default.stories.ts +19 -0
- package/src/components/empty/types.ts +24 -0
- package/src/components/form/assets/styles.scss +486 -0
- package/src/components/form/components/nonHSFormsIgnore.vue +15 -0
- package/src/components/form/index.vue +51 -0
- package/src/components/form/stories/constants.ts +20 -0
- package/src/components/form/stories/default.stories.ts +240 -0
- package/src/components/form/types.ts +7 -0
- package/src/components/form-item/index.vue +20 -0
- package/src/components/icon/components/flagIcon.vue +84 -0
- package/src/components/icon/components/maIcon.vue +47 -0
- package/src/components/icon/composables/useUniqueIds.ts +62 -0
- package/src/components/icon/flags.json +230 -0
- package/src/components/icon/icon.test.ts +89 -0
- package/src/components/icon/icons/403.svg +29 -0
- package/src/components/icon/icons/404.svg +28 -0
- package/src/components/icon/icons/500.svg +29 -0
- package/src/components/icon/icons/activity-bulk.svg +8 -0
- package/src/components/icon/icons/add-app.svg +81 -0
- package/src/components/icon/icons/add-bold.svg +3 -0
- package/src/components/icon/icons/add-bulk.svg +8 -0
- package/src/components/icon/icons/add-button.svg +5 -0
- package/src/components/icon/icons/add-circle-bold.svg +3 -0
- package/src/components/icon/icons/add-circle-bulk.svg +8 -0
- package/src/components/icon/icons/add-circle.svg +8 -0
- package/src/components/icon/icons/add-square-bold.svg +3 -0
- package/src/components/icon/icons/add-square.svg +5 -0
- package/src/components/icon/icons/add.svg +4 -0
- package/src/components/icon/icons/aim-outlined.svg +1 -0
- package/src/components/icon/icons/airplane-bulk.svg +4 -0
- package/src/components/icon/icons/align-left-bold.svg +11 -0
- package/src/components/icon/icons/align-left-bulk.svg +11 -0
- package/src/components/icon/icons/align-left.svg +10 -0
- package/src/components/icon/icons/android-storefront.svg +8 -0
- package/src/components/icon/icons/android.svg +6 -0
- package/src/components/icon/icons/angle-double-right.svg +5 -0
- package/src/components/icon/icons/app-store-colorful.svg +21 -0
- package/src/components/icon/icons/app-store.svg +3 -0
- package/src/components/icon/icons/app.svg +5 -0
- package/src/components/icon/icons/apple-bold.svg +5 -0
- package/src/components/icon/icons/apple-storefront.svg +5 -0
- package/src/components/icon/icons/apple-vision-pro.svg +16 -0
- package/src/components/icon/icons/apple.svg +3 -0
- package/src/components/icon/icons/arcade-bulk.svg +9 -0
- package/src/components/icon/icons/area-chart-outlined.svg +3 -0
- package/src/components/icon/icons/arrow-down-bold.svg +3 -0
- package/src/components/icon/icons/arrow-down-circle-bold.svg +3 -0
- package/src/components/icon/icons/arrow-down-circle.svg +4 -0
- package/src/components/icon/icons/arrow-down.svg +4 -0
- package/src/components/icon/icons/arrow-left-bold.svg +3 -0
- package/src/components/icon/icons/arrow-left-bulk.svg +7 -0
- package/src/components/icon/icons/arrow-left-circle-bold.svg +3 -0
- package/src/components/icon/icons/arrow-left-circle.svg +4 -0
- package/src/components/icon/icons/arrow-left-down-line.svg +3 -0
- package/src/components/icon/icons/arrow-left.svg +4 -0
- package/src/components/icon/icons/arrow-right-bold.svg +3 -0
- package/src/components/icon/icons/arrow-right-bulk.svg +7 -0
- package/src/components/icon/icons/arrow-right-circle-bold.svg +3 -0
- package/src/components/icon/icons/arrow-right-circle.svg +4 -0
- package/src/components/icon/icons/arrow-right-up-line.svg +3 -0
- package/src/components/icon/icons/arrow-right.svg +4 -0
- package/src/components/icon/icons/arrow-up-bold.svg +3 -0
- package/src/components/icon/icons/arrow-up-circle-bold.svg +3 -0
- package/src/components/icon/icons/arrow-up-circle.svg +4 -0
- package/src/components/icon/icons/arrow-up.svg +4 -0
- package/src/components/icon/icons/asterisk.svg +3 -0
- package/src/components/icon/icons/bag-bulk.svg +4 -0
- package/src/components/icon/icons/bahai.svg +3 -0
- package/src/components/icon/icons/book-bulk.svg +6 -0
- package/src/components/icon/icons/book-closed-bulk.svg +6 -0
- package/src/components/icon/icons/book-saved-bulk.svg +5 -0
- package/src/components/icon/icons/book-square-bulk.svg +5 -0
- package/src/components/icon/icons/bookmark-bold.svg +4 -0
- package/src/components/icon/icons/bookmark-bulk.svg +4 -0
- package/src/components/icon/icons/bookmark.svg +6 -0
- package/src/components/icon/icons/box-empty.svg +12 -0
- package/src/components/icon/icons/brain.svg +3 -0
- package/src/components/icon/icons/broom-bold.svg +4 -0
- package/src/components/icon/icons/broom.svg +8 -0
- package/src/components/icon/icons/brush-bulk.svg +5 -0
- package/src/components/icon/icons/bubble-bulk.svg +5 -0
- package/src/components/icon/icons/bucket-bulk.svg +6 -0
- package/src/components/icon/icons/bullhorn.svg +3 -0
- package/src/components/icon/icons/bus-bulk.svg +7 -0
- package/src/components/icon/icons/buy-crypto.svg +11 -0
- package/src/components/icon/icons/calendar-alt.svg +3 -0
- package/src/components/icon/icons/calendar-bold.svg +4 -0
- package/src/components/icon/icons/calendar-bulk.svg +10 -0
- package/src/components/icon/icons/calendar.svg +12 -0
- package/src/components/icon/icons/camera-bulk.svg +5 -0
- package/src/components/icon/icons/car-bulk.svg +6 -0
- package/src/components/icon/icons/card-bold.svg +4 -0
- package/src/components/icon/icons/card-bulk.svg +14 -0
- package/src/components/icon/icons/card.svg +6 -0
- package/src/components/icon/icons/caret-down-bold.svg +3 -0
- package/src/components/icon/icons/caret-down.svg +3 -0
- package/src/components/icon/icons/caret-left-bold.svg +3 -0
- package/src/components/icon/icons/caret-left.svg +3 -0
- package/src/components/icon/icons/caret-right-bold.svg +3 -0
- package/src/components/icon/icons/caret-right.svg +3 -0
- package/src/components/icon/icons/caret-up-bold.svg +3 -0
- package/src/components/icon/icons/caret-up.svg +3 -0
- package/src/components/icon/icons/casino-bulk.svg +4 -0
- package/src/components/icon/icons/category-bold.svg +14 -0
- package/src/components/icon/icons/category.svg +15 -0
- package/src/components/icon/icons/certificate.svg +3 -0
- package/src/components/icon/icons/chart-2-bulk.svg +11 -0
- package/src/components/icon/icons/chart-2.svg +5 -0
- package/src/components/icon/icons/chart-area.svg +3 -0
- package/src/components/icon/icons/chart-bar.svg +3 -0
- package/src/components/icon/icons/chart-bold.svg +6 -0
- package/src/components/icon/icons/chart-bulk.svg +12 -0
- package/src/components/icon/icons/chart.svg +6 -0
- package/src/components/icon/icons/check-line.svg +3 -0
- package/src/components/icon/icons/check.svg +3 -0
- package/src/components/icon/icons/checkered-flag.svg +3 -0
- package/src/components/icon/icons/chef-bulk.svg +4 -0
- package/src/components/icon/icons/chess-bulk.svg +8 -0
- package/src/components/icon/icons/chevron-down.svg +4 -0
- package/src/components/icon/icons/chevron-left.svg +4 -0
- package/src/components/icon/icons/chevron-right.svg +4 -0
- package/src/components/icon/icons/chevron-up.svg +4 -0
- package/src/components/icon/icons/chevrons-down.svg +4 -0
- package/src/components/icon/icons/chevrons-left.svg +4 -0
- package/src/components/icon/icons/chevrons-right.svg +4 -0
- package/src/components/icon/icons/chevrons-up.svg +4 -0
- package/src/components/icon/icons/circle-exclamation.svg +3 -0
- package/src/components/icon/icons/circle-notch.svg +3 -0
- package/src/components/icon/icons/circle.svg +3 -0
- package/src/components/icon/icons/clipboard-bold.svg +8 -0
- package/src/components/icon/icons/clipboard-bulk.svg +11 -0
- package/src/components/icon/icons/clipboard-close-bulk.svg +5 -0
- package/src/components/icon/icons/clipboard-close.svg +6 -0
- package/src/components/icon/icons/clipboard-tick-bulk.svg +5 -0
- package/src/components/icon/icons/clipboard-tick.svg +5 -0
- package/src/components/icon/icons/clipboard.svg +11 -0
- package/src/components/icon/icons/clock-bold.svg +3 -0
- package/src/components/icon/icons/clock-bulk.svg +4 -0
- package/src/components/icon/icons/clock.svg +4 -0
- package/src/components/icon/icons/clone.svg +3 -0
- package/src/components/icon/icons/close-circle-bold.svg +3 -0
- package/src/components/icon/icons/close-circle-bulk.svg +8 -0
- package/src/components/icon/icons/close-circle.svg +5 -0
- package/src/components/icon/icons/close-square-bold.svg +3 -0
- package/src/components/icon/icons/close-square.svg +5 -0
- package/src/components/icon/icons/close.svg +1 -0
- package/src/components/icon/icons/cloud-sunny-bulk.svg +4 -0
- package/src/components/icon/icons/cloud-upload.svg +3 -0
- package/src/components/icon/icons/coffee-bulk.svg +8 -0
- package/src/components/icon/icons/cogs.svg +3 -0
- package/src/components/icon/icons/color-filter.svg +11 -0
- package/src/components/icon/icons/columns-bold.svg +4 -0
- package/src/components/icon/icons/columns.svg +4 -0
- package/src/components/icon/icons/compass-bulk.svg +4 -0
- package/src/components/icon/icons/compress.svg +3 -0
- package/src/components/icon/icons/contains-linear.svg +7 -0
- package/src/components/icon/icons/control.svg +11 -0
- package/src/components/icon/icons/convert-shape-bold.svg +14 -0
- package/src/components/icon/icons/convert-shape-bulk.svg +14 -0
- package/src/components/icon/icons/convert-shape.svg +12 -0
- package/src/components/icon/icons/copy-bold.svg +4 -0
- package/src/components/icon/icons/copy-bulk.svg +8 -0
- package/src/components/icon/icons/copy.svg +4 -0
- package/src/components/icon/icons/crosshairs.svg +3 -0
- package/src/components/icon/icons/crown-bold.svg +3 -0
- package/src/components/icon/icons/crown.svg +4 -0
- package/src/components/icon/icons/cup-bold.svg +8 -0
- package/src/components/icon/icons/cup-bulk.svg +17 -0
- package/src/components/icon/icons/cup.svg +18 -0
- package/src/components/icon/icons/danger-bold.svg +3 -0
- package/src/components/icon/icons/danger-bulk.svg +5 -0
- package/src/components/icon/icons/danger.svg +5 -0
- package/src/components/icon/icons/dashboard.svg +3 -0
- package/src/components/icon/icons/data-bold.svg +17 -0
- package/src/components/icon/icons/data-bulk.svg +17 -0
- package/src/components/icon/icons/data.svg +18 -0
- package/src/components/icon/icons/devices.svg +11 -0
- package/src/components/icon/icons/diagram.svg +4 -0
- package/src/components/icon/icons/direct-inbox-bold.svg +10 -0
- package/src/components/icon/icons/direct-inbox-bulk.svg +11 -0
- package/src/components/icon/icons/direct-inbox.svg +12 -0
- package/src/components/icon/icons/direct-normal-bulk.svg +4 -0
- package/src/components/icon/icons/direct-normal.svg +4 -0
- package/src/components/icon/icons/dislike-bold.svg +4 -0
- package/src/components/icon/icons/dislike.svg +4 -0
- package/src/components/icon/icons/document-bold.svg +4 -0
- package/src/components/icon/icons/document-bulk.svg +14 -0
- package/src/components/icon/icons/document.svg +6 -0
- package/src/components/icon/icons/dollar-circle.svg +5 -0
- package/src/components/icon/icons/dot.svg +3 -0
- package/src/components/icon/icons/download-bold.svg +8 -0
- package/src/components/icon/icons/download-bulk.svg +11 -0
- package/src/components/icon/icons/download.svg +6 -0
- package/src/components/icon/icons/drag.svg +8 -0
- package/src/components/icon/icons/driving-bulk.svg +10 -0
- package/src/components/icon/icons/edit-2-bold.svg +11 -0
- package/src/components/icon/icons/edit-2-bulk.svg +5 -0
- package/src/components/icon/icons/edit-2.svg +5 -0
- package/src/components/icon/icons/edit-bold.svg +3 -0
- package/src/components/icon/icons/edit.svg +5 -0
- package/src/components/icon/icons/element-2-bulk.svg +6 -0
- package/src/components/icon/icons/element-3-bulk.svg +5 -0
- package/src/components/icon/icons/element-bulk.svg +6 -0
- package/src/components/icon/icons/element-plus-bold.svg +14 -0
- package/src/components/icon/icons/element-plus.svg +13 -0
- package/src/components/icon/icons/ellipsis-horizontal.svg +3 -0
- package/src/components/icon/icons/ellipsis-vertical.svg +3 -0
- package/src/components/icon/icons/empty-table.svg +31 -0
- package/src/components/icon/icons/equal.svg +4 -0
- package/src/components/icon/icons/expand-left-line.svg +5 -0
- package/src/components/icon/icons/expand-right-line.svg +5 -0
- package/src/components/icon/icons/expand.svg +6 -0
- package/src/components/icon/icons/export-2-bold.svg +8 -0
- package/src/components/icon/icons/export-2-bulk.svg +8 -0
- package/src/components/icon/icons/export-2.svg +9 -0
- package/src/components/icon/icons/export-bold.svg +3 -0
- package/src/components/icon/icons/export-bulk.svg +4 -0
- package/src/components/icon/icons/export.svg +5 -0
- package/src/components/icon/icons/eye-bold.svg +4 -0
- package/src/components/icon/icons/eye-bulk.svg +8 -0
- package/src/components/icon/icons/eye-slash-bold.svg +7 -0
- package/src/components/icon/icons/eye-slash.svg +8 -0
- package/src/components/icon/icons/eye.svg +4 -0
- package/src/components/icon/icons/facebook.svg +4 -0
- package/src/components/icon/icons/fatrows-bold.svg +8 -0
- package/src/components/icon/icons/fatrows-bulk.svg +8 -0
- package/src/components/icon/icons/fatrows.svg +8 -0
- package/src/components/icon/icons/favorite-chart-bold.svg +4 -0
- package/src/components/icon/icons/favorite-chart-bulk.svg +5 -0
- package/src/components/icon/icons/favorite-chart.svg +5 -0
- package/src/components/icon/icons/file-pdf.svg +3 -0
- package/src/components/icon/icons/filled-flag.svg +3 -0
- package/src/components/icon/icons/filter-bold.svg +4 -0
- package/src/components/icon/icons/filter-bulk.svg +8 -0
- package/src/components/icon/icons/filter.svg +4 -0
- package/src/components/icon/icons/flag.svg +4 -0
- package/src/components/icon/icons/flash-circle-bold.svg +5 -0
- package/src/components/icon/icons/flash-circle-bulk.svg +8 -0
- package/src/components/icon/icons/flash-circle.svg +10 -0
- package/src/components/icon/icons/flash.svg +5 -0
- package/src/components/icon/icons/folder-open-bold.svg +4 -0
- package/src/components/icon/icons/folder-open.svg +5 -0
- package/src/components/icon/icons/folder.svg +5 -0
- package/src/components/icon/icons/font.svg +3 -0
- package/src/components/icon/icons/gallery-bulk.svg +5 -0
- package/src/components/icon/icons/game-bulk.svg +9 -0
- package/src/components/icon/icons/glass-bold.svg +8 -0
- package/src/components/icon/icons/glass-bulk.svg +8 -0
- package/src/components/icon/icons/glass.svg +8 -0
- package/src/components/icon/icons/global.svg +7 -0
- package/src/components/icon/icons/google-colored.svg +12 -0
- package/src/components/icon/icons/google.svg +6 -0
- package/src/components/icon/icons/gps-linear.svg +8 -0
- package/src/components/icon/icons/graduation-cap-bold.svg +4 -0
- package/src/components/icon/icons/graduation-cap.svg +5 -0
- package/src/components/icon/icons/graph-bold.svg +4 -0
- package/src/components/icon/icons/graph.svg +4 -0
- package/src/components/icon/icons/grid-2.svg +6 -0
- package/src/components/icon/icons/grid-bold.svg +6 -0
- package/src/components/icon/icons/grid-bulk.svg +14 -0
- package/src/components/icon/icons/grid.svg +6 -0
- package/src/components/icon/icons/hamburger.svg +5 -0
- package/src/components/icon/icons/headset.svg +3 -0
- package/src/components/icon/icons/health-bulk.svg +5 -0
- package/src/components/icon/icons/history.svg +3 -0
- package/src/components/icon/icons/home-bold.svg +3 -0
- package/src/components/icon/icons/home-bulk.svg +8 -0
- package/src/components/icon/icons/home.svg +4 -0
- package/src/components/icon/icons/hospital-bulk.svg +6 -0
- package/src/components/icon/icons/house-bulk.svg +8 -0
- package/src/components/icon/icons/import-bold.svg +4 -0
- package/src/components/icon/icons/import.svg +11 -0
- package/src/components/icon/icons/in-range-bold.svg +5 -0
- package/src/components/icon/icons/in-range.svg +5 -0
- package/src/components/icon/icons/indent.svg +3 -0
- package/src/components/icon/icons/info-circle-2-bold.svg +5 -0
- package/src/components/icon/icons/info-circle-2-bulk.svg +11 -0
- package/src/components/icon/icons/info-circle-2.svg +9 -0
- package/src/components/icon/icons/info-circle-bold.svg +3 -0
- package/src/components/icon/icons/info-circle.svg +8 -0
- package/src/components/icon/icons/info.svg +3 -0
- package/src/components/icon/icons/ipad.svg +4 -0
- package/src/components/icon/icons/iphone.svg +3 -0
- package/src/components/icon/icons/judge-outline.svg +6 -0
- package/src/components/icon/icons/justify-right.svg +10 -0
- package/src/components/icon/icons/key.svg +5 -0
- package/src/components/icon/icons/lamp-charge-bulk.svg +5 -0
- package/src/components/icon/icons/lamp-charge.svg +5 -0
- package/src/components/icon/icons/layer-bold.svg +5 -0
- package/src/components/icon/icons/layer-bulk.svg +11 -0
- package/src/components/icon/icons/layer.svg +5 -0
- package/src/components/icon/icons/level-linear.svg +5 -0
- package/src/components/icon/icons/like-bold.svg +4 -0
- package/src/components/icon/icons/like.svg +4 -0
- package/src/components/icon/icons/link.svg +4 -0
- package/src/components/icon/icons/linkedin.svg +5 -0
- package/src/components/icon/icons/list.svg +3 -0
- package/src/components/icon/icons/loader.svg +10 -0
- package/src/components/icon/icons/loading.svg +3 -0
- package/src/components/icon/icons/location-bulk.svg +4 -0
- package/src/components/icon/icons/location.svg +8 -0
- package/src/components/icon/icons/lock-bold.svg +4 -0
- package/src/components/icon/icons/lock-bulk.svg +11 -0
- package/src/components/icon/icons/lock-slash-bulk.svg +7 -0
- package/src/components/icon/icons/lock-slash.svg +6 -0
- package/src/components/icon/icons/lock.svg +5 -0
- package/src/components/icon/icons/logout-bold.svg +4 -0
- package/src/components/icon/icons/logout.svg +5 -0
- package/src/components/icon/icons/lovely-bulk.svg +4 -0
- package/src/components/icon/icons/magic-pen-bold.svg +17 -0
- package/src/components/icon/icons/magic-pen.svg +13 -0
- package/src/components/icon/icons/map-bulk.svg +5 -0
- package/src/components/icon/icons/map-marker-bold.svg +3 -0
- package/src/components/icon/icons/map-marker.svg +4 -0
- package/src/components/icon/icons/maximize-linear.svg +6 -0
- package/src/components/icon/icons/med-kit.svg +3 -0
- package/src/components/icon/icons/medal-bold.svg +4 -0
- package/src/components/icon/icons/medal.svg +4 -0
- package/src/components/icon/icons/menu-bold.svg +3 -0
- package/src/components/icon/icons/menu.svg +5 -0
- package/src/components/icon/icons/message-bold.svg +5 -0
- package/src/components/icon/icons/message-bulk.svg +14 -0
- package/src/components/icon/icons/message-notif.svg +7 -0
- package/src/components/icon/icons/message-text.svg +5 -0
- package/src/components/icon/icons/message.svg +12 -0
- package/src/components/icon/icons/messages-2-bulk.svg +5 -0
- package/src/components/icon/icons/messages-bold.svg +8 -0
- package/src/components/icon/icons/messages-bulk.svg +8 -0
- package/src/components/icon/icons/messages.svg +8 -0
- package/src/components/icon/icons/microscope-bold.svg +14 -0
- package/src/components/icon/icons/microscope-bulk.svg +14 -0
- package/src/components/icon/icons/microscope.svg +14 -0
- package/src/components/icon/icons/milk-bulk.svg +5 -0
- package/src/components/icon/icons/minus-bold.svg +3 -0
- package/src/components/icon/icons/minus-square-bold.svg +3 -0
- package/src/components/icon/icons/minus-square.svg +4 -0
- package/src/components/icon/icons/minus.svg +3 -0
- package/src/components/icon/icons/mobile-action.svg +37 -0
- package/src/components/icon/icons/mobile-bold.svg +3 -0
- package/src/components/icon/icons/mobile-bulk.svg +11 -0
- package/src/components/icon/icons/mobile.svg +5 -0
- package/src/components/icon/icons/money-bill.svg +8 -0
- package/src/components/icon/icons/money-send.svg +11 -0
- package/src/components/icon/icons/moneys-bold.svg +8 -0
- package/src/components/icon/icons/moneys-bulk.svg +17 -0
- package/src/components/icon/icons/moneys.svg +18 -0
- package/src/components/icon/icons/more-bold.svg +3 -0
- package/src/components/icon/icons/more-bulk.svg +6 -0
- package/src/components/icon/icons/more-circle.svg +6 -0
- package/src/components/icon/icons/more-vertical.svg +3 -0
- package/src/components/icon/icons/more.svg +5 -0
- package/src/components/icon/icons/mouse-square-bold.svg +8 -0
- package/src/components/icon/icons/mouse-square-bulk.svg +8 -0
- package/src/components/icon/icons/mouse-square.svg +7 -0
- package/src/components/icon/icons/music-bulk.svg +5 -0
- package/src/components/icon/icons/musicnote-bulk.svg +4 -0
- package/src/components/icon/icons/not-contains-linear.svg +8 -0
- package/src/components/icon/icons/not-equal.svg +5 -0
- package/src/components/icon/icons/not-in-range.svg +6 -0
- package/src/components/icon/icons/notification-bold.svg +4 -0
- package/src/components/icon/icons/notification.svg +5 -0
- package/src/components/icon/icons/outdent.svg +3 -0
- package/src/components/icon/icons/outline-linear.svg +5 -0
- package/src/components/icon/icons/outline-lock-bulk.svg +5 -0
- package/src/components/icon/icons/outline-lock.svg +5 -0
- package/src/components/icon/icons/paper-plane.svg +3 -0
- package/src/components/icon/icons/parenting-bulk.svg +164 -0
- package/src/components/icon/icons/password-check.svg +7 -0
- package/src/components/icon/icons/pause-bold.svg +4 -0
- package/src/components/icon/icons/pause-circle-bold.svg +3 -0
- package/src/components/icon/icons/pause-circle-bulk.svg +5 -0
- package/src/components/icon/icons/pause-circle.svg +5 -0
- package/src/components/icon/icons/pause.svg +4 -0
- package/src/components/icon/icons/pay/affirm.svg +6 -0
- package/src/components/icon/icons/pay/alipay.svg +8 -0
- package/src/components/icon/icons/pay/amazon.svg +6 -0
- package/src/components/icon/icons/pay/amex-2.svg +7 -0
- package/src/components/icon/icons/pay/amex.svg +5 -0
- package/src/components/icon/icons/pay/applepay.svg +5 -0
- package/src/components/icon/icons/pay/bancontact.svg +7 -0
- package/src/components/icon/icons/pay/bitcoin.svg +5 -0
- package/src/components/icon/icons/pay/bitcoincash.svg +5 -0
- package/src/components/icon/icons/pay/bitpay.svg +5 -0
- package/src/components/icon/icons/pay/citadele.svg +5 -0
- package/src/components/icon/icons/pay/dinersclub.svg +5 -0
- package/src/components/icon/icons/pay/discover.svg +7 -0
- package/src/components/icon/icons/pay/elo.svg +8 -0
- package/src/components/icon/icons/pay/etherium.svg +11 -0
- package/src/components/icon/icons/pay/forbrugsforeningen.svg +5 -0
- package/src/components/icon/icons/pay/giropay.svg +7 -0
- package/src/components/icon/icons/pay/googlepay.svg +9 -0
- package/src/components/icon/icons/pay/ideal.svg +6 -0
- package/src/components/icon/icons/pay/interac.svg +7 -0
- package/src/components/icon/icons/pay/jcb.svg +21 -0
- package/src/components/icon/icons/pay/klarna.svg +5 -0
- package/src/components/icon/icons/pay/lightcoin.svg +5 -0
- package/src/components/icon/icons/pay/maestro-2.svg +5 -0
- package/src/components/icon/icons/pay/maestro.svg +7 -0
- package/src/components/icon/icons/pay/mastercard-2.svg +5 -0
- package/src/components/icon/icons/pay/mastercard.svg +7 -0
- package/src/components/icon/icons/pay/payoneer.svg +6 -0
- package/src/components/icon/icons/pay/paypal.svg +8 -0
- package/src/components/icon/icons/pay/paysafe.svg +7 -0
- package/src/components/icon/icons/pay/qiwi.svg +5 -0
- package/src/components/icon/icons/pay/quickbooks.svg +9 -0
- package/src/components/icon/icons/pay/sepa.svg +6 -0
- package/src/components/icon/icons/pay/shop-pay.svg +5 -0
- package/src/components/icon/icons/pay/skrill.svg +5 -0
- package/src/components/icon/icons/pay/sofort.svg +5 -0
- package/src/components/icon/icons/pay/stripe-2.svg +30 -0
- package/src/components/icon/icons/pay/stripe.svg +5 -0
- package/src/components/icon/icons/pay/unionpay.svg +8 -0
- package/src/components/icon/icons/pay/verifone.svg +6 -0
- package/src/components/icon/icons/pay/visa-2.svg +4 -0
- package/src/components/icon/icons/pay/visa.svg +5 -0
- package/src/components/icon/icons/pay/webmoney.svg +5 -0
- package/src/components/icon/icons/pay/wechat.svg +5 -0
- package/src/components/icon/icons/pay/yandex.svg +5 -0
- package/src/components/icon/icons/pen-square.svg +5 -0
- package/src/components/icon/icons/pencil.svg +3 -0
- package/src/components/icon/icons/people-bold.svg +8 -0
- package/src/components/icon/icons/people-bulk.svg +8 -0
- package/src/components/icon/icons/people.svg +8 -0
- package/src/components/icon/icons/percentage-square-bold.svg +3 -0
- package/src/components/icon/icons/percentage-square.svg +6 -0
- package/src/components/icon/icons/play-bold.svg +3 -0
- package/src/components/icon/icons/play-bulk.svg +4 -0
- package/src/components/icon/icons/play-circle-bold.svg +7 -0
- package/src/components/icon/icons/play-circle.svg +7 -0
- package/src/components/icon/icons/play-store-colorful.svg +14 -0
- package/src/components/icon/icons/play.svg +4 -0
- package/src/components/icon/icons/plug-bold.svg +5 -0
- package/src/components/icon/icons/plug.svg +11 -0
- package/src/components/icon/icons/poker-cards-bulk.svg +11 -0
- package/src/components/icon/icons/presentation-chart-bulk.svg +13 -0
- package/src/components/icon/icons/profile-2user-colored-bulk.svg +16 -0
- package/src/components/icon/icons/programming-arrows-bulk.svg +14 -0
- package/src/components/icon/icons/project-bold.svg +3 -0
- package/src/components/icon/icons/puzzle-bulk.svg +17 -0
- package/src/components/icon/icons/question-bold.svg +3 -0
- package/src/components/icon/icons/question.svg +5 -0
- package/src/components/icon/icons/radar-bold.svg +12 -0
- package/src/components/icon/icons/radar-bulk.svg +8 -0
- package/src/components/icon/icons/radar.svg +10 -0
- package/src/components/icon/icons/rank-bold.svg +14 -0
- package/src/components/icon/icons/rank-bulk.svg +11 -0
- package/src/components/icon/icons/rank.svg +14 -0
- package/src/components/icon/icons/ranking-bold.svg +14 -0
- package/src/components/icon/icons/ranking-bulk.svg +14 -0
- package/src/components/icon/icons/ranking.svg +11 -0
- package/src/components/icon/icons/record-circle.svg +3 -0
- package/src/components/icon/icons/redo-bold.svg +3 -0
- package/src/components/icon/icons/redo.svg +4 -0
- package/src/components/icon/icons/refresh-2.svg +3 -0
- package/src/components/icon/icons/refresh.svg +4 -0
- package/src/components/icon/icons/reply.svg +3 -0
- package/src/components/icon/icons/rocket-bulk.svg +11 -0
- package/src/components/icon/icons/rocket.svg +12 -0
- package/src/components/icon/icons/rotate-left.svg +5 -0
- package/src/components/icon/icons/rotate-right.svg +5 -0
- package/src/components/icon/icons/save-bold.svg +8 -0
- package/src/components/icon/icons/save.svg +11 -0
- package/src/components/icon/icons/scale-balanced.svg +3 -0
- package/src/components/icon/icons/search-2-line.svg +5 -0
- package/src/components/icon/icons/search-dollar.svg +3 -0
- package/src/components/icon/icons/search-normal-bold.svg +4 -0
- package/src/components/icon/icons/search-normal.svg +4 -0
- package/src/components/icon/icons/search-zoom-in-bold.svg +8 -0
- package/src/components/icon/icons/search-zoom-in-bulk.svg +11 -0
- package/src/components/icon/icons/search-zoom-in.svg +11 -0
- package/src/components/icon/icons/security-card-bold.svg +5 -0
- package/src/components/icon/icons/security-card.svg +7 -0
- package/src/components/icon/icons/selection.svg +48 -0
- package/src/components/icon/icons/send.svg +5 -0
- package/src/components/icon/icons/setting-2-linear.svg +8 -0
- package/src/components/icon/icons/setting-bulk.svg +8 -0
- package/src/components/icon/icons/settings-bold.svg +3 -0
- package/src/components/icon/icons/settings-bulk.svg +8 -0
- package/src/components/icon/icons/settings.svg +4 -0
- package/src/components/icon/icons/share-bold.svg +20 -0
- package/src/components/icon/icons/share-bulk.svg +20 -0
- package/src/components/icon/icons/share.svg +8 -0
- package/src/components/icon/icons/shopping-cart-bold.svg +6 -0
- package/src/components/icon/icons/shopping-cart.svg +6 -0
- package/src/components/icon/icons/sidebar-left-bold.svg +8 -0
- package/src/components/icon/icons/sidebar-left-bulk.svg +11 -0
- package/src/components/icon/icons/sidebar-left.svg +9 -0
- package/src/components/icon/icons/sidebar-right-bold.svg +8 -0
- package/src/components/icon/icons/sidebar-right-bulk.svg +11 -0
- package/src/components/icon/icons/sidebar-right.svg +9 -0
- package/src/components/icon/icons/slack.svg +8 -0
- package/src/components/icon/icons/slash-bold.svg +5 -0
- package/src/components/icon/icons/slash.svg +4 -0
- package/src/components/icon/icons/slider-horizontal-bold.svg +8 -0
- package/src/components/icon/icons/slider-horizontal.svg +8 -0
- package/src/components/icon/icons/smart-notification-bold.svg +8 -0
- package/src/components/icon/icons/smart-notification-bulk.svg +8 -0
- package/src/components/icon/icons/smart-notification.svg +8 -0
- package/src/components/icon/icons/sms-bold.svg +3 -0
- package/src/components/icon/icons/sms.svg +4 -0
- package/src/components/icon/icons/soccer-bulk.svg +9 -0
- package/src/components/icon/icons/social-facebook.svg +4 -0
- package/src/components/icon/icons/social-linkedin.svg +5 -0
- package/src/components/icon/icons/social-x.svg +4 -0
- package/src/components/icon/icons/sort-amount-down.svg +3 -0
- package/src/components/icon/icons/sort-bold.svg +5 -0
- package/src/components/icon/icons/sort-bulk.svg +14 -0
- package/src/components/icon/icons/sort.svg +5 -0
- package/src/components/icon/icons/speedometer.svg +5 -0
- package/src/components/icon/icons/spin-dots.svg +14 -0
- package/src/components/icon/icons/spin-round.svg +4 -0
- package/src/components/icon/icons/spin-three-circles.svg +11 -0
- package/src/components/icon/icons/spin-three-dots.svg +5 -0
- package/src/components/icon/icons/spinner.svg +3 -0
- package/src/components/icon/icons/square.svg +3 -0
- package/src/components/icon/icons/star-bold.svg +3 -0
- package/src/components/icon/icons/star-bulk.svg +14 -0
- package/src/components/icon/icons/star-half-colored.svg +4 -0
- package/src/components/icon/icons/star.svg +3 -0
- package/src/components/icon/icons/status-up.svg +17 -0
- package/src/components/icon/icons/steering-wheel-bulk.svg +4 -0
- package/src/components/icon/icons/stop-bold.svg +4 -0
- package/src/components/icon/icons/stop.svg +3 -0
- package/src/components/icon/icons/story.svg +14 -0
- package/src/components/icon/icons/stream.svg +7 -0
- package/src/components/icon/icons/swap-bold.svg +3 -0
- package/src/components/icon/icons/swap.svg +6 -0
- package/src/components/icon/icons/sword-bulk.svg +7 -0
- package/src/components/icon/icons/sync.svg +3 -0
- package/src/components/icon/icons/table-list.svg +3 -0
- package/src/components/icon/icons/tag-2-bold.svg +3 -0
- package/src/components/icon/icons/tag-2.svg +5 -0
- package/src/components/icon/icons/tag-bold.svg +3 -0
- package/src/components/icon/icons/tag-bulk.svg +8 -0
- package/src/components/icon/icons/tag-user.svg +5 -0
- package/src/components/icon/icons/tag.svg +4 -0
- package/src/components/icon/icons/teacher-bulk.svg +4 -0
- package/src/components/icon/icons/thumbtack.svg +3 -0
- package/src/components/icon/icons/tick-circle-bold.svg +5 -0
- package/src/components/icon/icons/tick-circle-bulk.svg +8 -0
- package/src/components/icon/icons/tick-circle.svg +4 -0
- package/src/components/icon/icons/tick-square-bold.svg +3 -0
- package/src/components/icon/icons/tick-square.svg +4 -0
- package/src/components/icon/icons/tick.svg +3 -0
- package/src/components/icon/icons/timer.svg +5 -0
- package/src/components/icon/icons/toggle-off-bold.svg +3 -0
- package/src/components/icon/icons/toggle-off.svg +4 -0
- package/src/components/icon/icons/toggle-on-bold.svg +3 -0
- package/src/components/icon/icons/toggle-on.svg +4 -0
- package/src/components/icon/icons/transgender.svg +3 -0
- package/src/components/icon/icons/translate-bold.svg +24 -0
- package/src/components/icon/icons/translate-bulk.svg +20 -0
- package/src/components/icon/icons/translate.svg +24 -0
- package/src/components/icon/icons/trash-bold.svg +4 -0
- package/src/components/icon/icons/trash-bulk.svg +14 -0
- package/src/components/icon/icons/trash.svg +7 -0
- package/src/components/icon/icons/trend-up-bold.svg +5 -0
- package/src/components/icon/icons/trend-up-bulk.svg +8 -0
- package/src/components/icon/icons/trend-up.svg +5 -0
- package/src/components/icon/icons/twitter.svg +3 -0
- package/src/components/icon/icons/undo-bold.svg +3 -0
- package/src/components/icon/icons/undo.svg +4 -0
- package/src/components/icon/icons/unlock-bold.svg +4 -0
- package/src/components/icon/icons/unlock.svg +5 -0
- package/src/components/icon/icons/upload-bulk.svg +11 -0
- package/src/components/icon/icons/upload.svg +6 -0
- package/src/components/icon/icons/user-avatar.svg +67 -0
- package/src/components/icon/icons/user-default.svg +3 -0
- package/src/components/icon/icons/user-outline.svg +4 -0
- package/src/components/icon/icons/user-settings.svg +3 -0
- package/src/components/icon/icons/user-square.svg +5 -0
- package/src/components/icon/icons/user.svg +5 -0
- package/src/components/icon/icons/video-bulk.svg +5 -0
- package/src/components/icon/icons/video-play-bulk.svg +5 -0
- package/src/components/icon/icons/video-remove.svg +7 -0
- package/src/components/icon/icons/video-square-bulk.svg +4 -0
- package/src/components/icon/icons/volume-low.svg +11 -0
- package/src/components/icon/icons/warning-2-bold.svg +3 -0
- package/src/components/icon/icons/warning-2-bulk.svg +5 -0
- package/src/components/icon/icons/warning-2.svg +5 -0
- package/src/components/icon/icons/warning.svg +3 -0
- package/src/components/icon/icons/watch-bulk.svg +6 -0
- package/src/components/icon/icons/wifi.svg +6 -0
- package/src/components/icon/icons/woman.svg +5 -0
- package/src/components/icon/icons/x.svg +5 -0
- package/src/components/icon/icons/zoom-in.svg +11 -0
- package/src/components/icon/icons/zoom-out.svg +9 -0
- package/src/components/icon/icons.json +524 -0
- package/src/components/icon/index.vue +48 -0
- package/src/components/icon/payment.json +47 -0
- package/src/components/icon/stories/icon.stories.ts +205 -0
- package/src/components/icon/styles.scss +18 -0
- package/src/components/icon/types.ts +17 -0
- package/src/components/icon-button/assets/styles.scss +143 -0
- package/src/components/icon-button/components/button.vue +87 -0
- package/src/components/icon-button/index.vue +95 -0
- package/src/components/icon-button/stories/constants.ts +47 -0
- package/src/components/icon-button/stories/primary.stories.ts +106 -0
- package/src/components/icon-button/stories/secondary.stories.ts +108 -0
- package/src/components/icon-button/types.ts +21 -0
- package/src/components/image/assets/styles.scss +153 -0
- package/src/components/image/group.vue +33 -0
- package/src/components/image/index.vue +51 -0
- package/src/components/image/stories/constants.ts +73 -0
- package/src/components/image/stories/default.stories.ts +27 -0
- package/src/components/image-2/assets/fallback.png +0 -0
- package/src/components/image-2/assets/styles.scss +57 -0
- package/src/components/image-2/group.vue +120 -0
- package/src/components/image-2/image2.test.ts +347 -0
- package/src/components/image-2/index.vue +103 -0
- package/src/components/image-2/preview.vue +244 -0
- package/src/components/image-2/stories/constants.ts +83 -0
- package/src/components/image-2/stories/default.stories.ts +91 -0
- package/src/components/input/index.vue +250 -0
- package/src/components/input/stories/amount.stories.ts +68 -0
- package/src/components/input/stories/constants.ts +81 -0
- package/src/components/input/stories/credit-card.stories.ts +76 -0
- package/src/components/input/stories/default.stories.ts +71 -0
- package/src/components/input/stories/email.stories.ts +76 -0
- package/src/components/input/stories/password.stories.ts +70 -0
- package/src/components/input/stories/textarea.stories.ts +70 -0
- package/src/components/input/stories/url.stories.ts +70 -0
- package/src/components/input/stories/user-info.stories.ts +76 -0
- package/src/components/input/styles.scss +282 -0
- package/src/components/input/types.ts +47 -0
- package/src/components/input-number/assets/styles.scss +622 -0
- package/src/components/input-number/index.vue +142 -0
- package/src/components/input-number/stories/constants.ts +145 -0
- package/src/components/input-number/stories/default.stories.ts +80 -0
- package/src/components/input-number/stories/formatter.mdx +13 -0
- package/src/components/input-number/stories/with-select.stories.ts +30 -0
- package/src/components/input-number/stories/withselect.mdx +23 -0
- package/src/components/input-number/types.ts +26 -0
- package/src/components/keyword-group-selection/assets/styles.scss +205 -0
- package/src/components/keyword-group-selection/components/kwGroupForm.vue +89 -0
- package/src/components/keyword-group-selection/components/kwGroupItem.vue +89 -0
- package/src/components/keyword-group-selection/composables/index.ts +19 -0
- package/src/components/keyword-group-selection/data/keywordGroups.json +136 -0
- package/src/components/keyword-group-selection/index.vue +326 -0
- package/src/components/keyword-group-selection/stories/constants.ts +178 -0
- package/src/components/keyword-group-selection/stories/default.stories.ts +97 -0
- package/src/components/keyword-group-selection/stories/example.mdx +110 -0
- package/src/components/keyword-group-selection/types.ts +43 -0
- package/src/components/menu/assets/styles.scss +3 -0
- package/src/components/menu/components/MenuItem.vue +45 -0
- package/src/components/menu/index.vue +28 -0
- package/src/components/menu/stories/constants.ts +67 -0
- package/src/components/menu/stories/default.stories1.ts +22 -0
- package/src/components/menu/stories/listData.stories1.mdx +33 -0
- package/src/components/modal/assets/effects.scss +602 -0
- package/src/components/modal/assets/styles.scss +131 -0
- package/src/components/modal/assets/with-tab.scss +8 -0
- package/src/components/modal/components/renderContent.vue +15 -0
- package/src/components/modal/index.ts +54 -0
- package/src/components/modal/index.vue +205 -0
- package/src/components/modal/stories/constants.ts +213 -0
- package/src/components/modal/stories/default.stories.ts +74 -0
- package/src/components/modal/stories/functions.stories.ts +82 -0
- package/src/components/modal/types.ts +43 -0
- package/src/components/notification/assets/styles.scss +251 -0
- package/src/components/notification/components/notification.vue +118 -0
- package/src/components/notification/components/notificationContainer.vue +72 -0
- package/src/components/notification/composables/useNotificationAnimation.ts +48 -0
- package/src/components/notification/index.ts +53 -0
- package/src/components/notification/notification.test.ts +120 -0
- package/src/components/notification/stories/commonStories.ts +126 -0
- package/src/components/notification/stories/constants.ts +67 -0
- package/src/components/notification/stories/docs.mdx +100 -0
- package/src/components/notification/stories/filled.stories.ts +23 -0
- package/src/components/notification/stories/light.stories.ts +23 -0
- package/src/components/notification/stories/stroke.stories.ts +23 -0
- package/src/components/notification/types.ts +56 -0
- package/src/components/numeric-input/assets/styles.scss +53 -0
- package/src/components/numeric-input/components/singleNumericInput.vue +46 -0
- package/src/components/numeric-input/index.vue +148 -0
- package/src/components/numeric-input/stories/constants.ts +40 -0
- package/src/components/numeric-input/stories/default.stories.ts +46 -0
- package/src/components/numeric-input/types.ts +7 -0
- package/src/components/pagination/assets/styles.scss +131 -0
- package/src/components/pagination/index.vue +379 -0
- package/src/components/pagination/pagination.test.ts +361 -0
- package/src/components/pagination/stories/constants.ts +50 -0
- package/src/components/pagination/stories/default.stories.ts +17 -0
- package/src/components/pagination/types.ts +31 -0
- package/src/components/popconfirm/assets/styles.scss +22 -0
- package/src/components/popconfirm/index.vue +129 -0
- package/src/components/popconfirm/stories/constants.ts +53 -0
- package/src/components/popconfirm/stories/default.stories.ts +19 -0
- package/src/components/popconfirm/types.ts +16 -0
- package/src/components/popover/assets/styles.scss +214 -0
- package/src/components/popover/index.vue +73 -0
- package/src/components/popover/stories/apps.json +47 -0
- package/src/components/popover/stories/constants.ts +120 -0
- package/src/components/popover/stories/default.stories.ts +33 -0
- package/src/components/popover/types.ts +30 -0
- package/src/components/popover-2/assets/styles.scss +171 -0
- package/src/components/popover-2/index.vue +103 -0
- package/src/components/popover-2/popover2.test.ts +96 -0
- package/src/components/popover-2/stories/constants.ts +142 -0
- package/src/components/popover-2/stories/default.stories.ts +32 -0
- package/src/components/popover-2/types.ts +26 -0
- package/src/components/progress/assets/styles.scss +241 -0
- package/src/components/progress/components/circle.vue +94 -0
- package/src/components/progress/components/halfCircle.vue +92 -0
- package/src/components/progress/components/line.vue +49 -0
- package/src/components/progress/components/stepLine.vue +48 -0
- package/src/components/progress/index.vue +90 -0
- package/src/components/progress/stories/circle.stories.ts +77 -0
- package/src/components/progress/stories/constants.ts +57 -0
- package/src/components/progress/stories/half-circle.stories.ts +67 -0
- package/src/components/progress/stories/line-step.stories.ts +73 -0
- package/src/components/progress/stories/line.stories.ts +90 -0
- package/src/components/progress/types.ts +42 -0
- package/src/components/radio/assets/checked-disabled.svg +11 -0
- package/src/components/radio/assets/checked.svg +11 -0
- package/src/components/radio/group.vue +26 -0
- package/src/components/radio/index.vue +67 -0
- package/src/components/radio/stories/constants.ts +54 -0
- package/src/components/radio/stories/default.stories.ts +38 -0
- package/src/components/radio/styles.scss +454 -0
- package/src/components/radio/types.ts +5 -0
- package/src/components/radio-card/assets/styles.scss +57 -0
- package/src/components/radio-card/index.vue +56 -0
- package/src/components/radio-card/stories/assets/iphone-half.svg +61 -0
- package/src/components/radio-card/stories/constants.ts +98 -0
- package/src/components/radio-card/stories/default.stories.ts +33 -0
- package/src/components/radio-card/stories/example.mdx +17 -0
- package/src/components/rate/assets/styles.scss +43 -0
- package/src/components/rate/components/star.vue +39 -0
- package/src/components/rate/index.vue +124 -0
- package/src/components/rate/stories/constants.ts +40 -0
- package/src/components/rate/stories/default.stories.ts +55 -0
- package/src/components/rate/types.ts +14 -0
- package/src/components/result/assets/styles.scss +53 -0
- package/src/components/result/index.vue +71 -0
- package/src/components/result/stories/constants.ts +70 -0
- package/src/components/result/stories/default.stories.ts +27 -0
- package/src/components/result/types.ts +11 -0
- package/src/components/select/assets/styles.scss +601 -0
- package/src/components/select/components/dropdownRender.vue +70 -0
- package/src/components/select/components/option.vue +19 -0
- package/src/components/select/components/optionCheckbox.vue +31 -0
- package/src/components/select/index.vue +506 -0
- package/src/components/select/stories/constants.ts +85 -0
- package/src/components/select/stories/countries.json +342 -0
- package/src/components/select/stories/countriesWithDescription.json +57 -0
- package/src/components/select/stories/countryGroups.json +47 -0
- package/src/components/select/stories/default.stories.ts +190 -0
- package/src/components/select/stories/group.stories.ts +55 -0
- package/src/components/select/stories/multi-select.stories.ts +158 -0
- package/src/components/select/stories/options.json +204 -0
- package/src/components/select/stories/single.stories.ts +42 -0
- package/src/components/select/types.ts +35 -0
- package/src/components/select-2/assets/borderless.scss +30 -0
- package/src/components/select-2/assets/compact.scss +5 -0
- package/src/components/select-2/assets/default.scss +139 -0
- package/src/components/select-2/assets/dropdown.scss +56 -0
- package/src/components/select-2/assets/inline.scss +49 -0
- package/src/components/select-2/assets/option-group.scss +6 -0
- package/src/components/select-2/assets/option.scss +50 -0
- package/src/components/select-2/assets/styles.scss +8 -0
- package/src/components/select-2/components/selectOption.vue +108 -0
- package/src/components/select-2/components/selectOptionGroup.vue +17 -0
- package/src/components/select-2/composables/use-keyboard-navigation.ts +81 -0
- package/src/components/select-2/composables/use-options-registry.ts +23 -0
- package/src/components/select-2/index.vue +449 -0
- package/src/components/select-2/select.test.ts +322 -0
- package/src/components/select-2/stories/borderless.stories.ts +38 -0
- package/src/components/select-2/stories/constants.ts +184 -0
- package/src/components/select-2/stories/data/countries.json +342 -0
- package/src/components/select-2/stories/data/users.json +204 -0
- package/src/components/select-2/stories/inline.stories.ts +38 -0
- package/src/components/select-2/stories/multiple.stories.ts +71 -0
- package/src/components/select-2/stories/select-option-group.stories.ts +70 -0
- package/src/components/select-2/stories/select-option.stories.ts +64 -0
- package/src/components/select-2/stories/single.stories.ts +169 -0
- package/src/components/select-2/types.ts +231 -0
- package/src/components/side-menu/add-new-app-button/assets/styles.scss +18 -0
- package/src/components/side-menu/add-new-app-button/index.vue +35 -0
- package/src/components/side-menu/add-new-app-button/stories/constants.ts +39 -0
- package/src/components/side-menu/add-new-app-button/stories/default.stories.ts +23 -0
- package/src/components/side-menu/app-button/assets/styles.scss +51 -0
- package/src/components/side-menu/app-button/index.vue +42 -0
- package/src/components/side-menu/app-button/stories/constants.ts +34 -0
- package/src/components/side-menu/app-button/stories/default.stories.ts +28 -0
- package/src/components/side-menu/button/assets/styles.scss +42 -0
- package/src/components/side-menu/button/index.vue +70 -0
- package/src/components/side-menu/button/stories/constants.ts +58 -0
- package/src/components/side-menu/button/stories/default.stories.ts +44 -0
- package/src/components/side-menu/icon-button/assets/styles.scss +49 -0
- package/src/components/side-menu/icon-button/index.vue +78 -0
- package/src/components/side-menu/icon-button/stories/constants.ts +48 -0
- package/src/components/side-menu/icon-button/stories/default.stories.ts +33 -0
- package/src/components/side-menu/menu-item/assets/styles.scss +66 -0
- package/src/components/side-menu/menu-item/index.vue +90 -0
- package/src/components/side-menu/menu-item/stories/constants.ts +59 -0
- package/src/components/side-menu/menu-item/stories/default.stories.ts +191 -0
- package/src/components/side-menu/menu-item/types.ts +12 -0
- package/src/components/side-menu/round-icon-button/assets/styles.scss +29 -0
- package/src/components/side-menu/round-icon-button/index.vue +27 -0
- package/src/components/side-menu/round-icon-button/stories/constants.ts +39 -0
- package/src/components/side-menu/round-icon-button/stories/default.stories.ts +18 -0
- package/src/components/side-menu-2/menu-button/assets/styles.scss +36 -0
- package/src/components/side-menu-2/menu-button/index.vue +77 -0
- package/src/components/side-menu-2/menu-button/stories/constants.ts +55 -0
- package/src/components/side-menu-2/menu-button/stories/default.stories.ts +49 -0
- package/src/components/side-menu-2/menu-button/types.ts +6 -0
- package/src/components/side-menu-2/menu-item/assets/styles.scss +43 -0
- package/src/components/side-menu-2/menu-item/index.vue +54 -0
- package/src/components/side-menu-2/menu-item/stories/constants.ts +39 -0
- package/src/components/side-menu-2/menu-item/stories/default.stories.ts +83 -0
- package/src/components/side-menu-2/side-menu-2.test.ts +64 -0
- package/src/components/slider/assets/styles.scss +222 -0
- package/src/components/slider/index.vue +100 -0
- package/src/components/slider/stories/constants.ts +104 -0
- package/src/components/slider/stories/default.stories.ts +22 -0
- package/src/components/slider/stories/example.mdx +69 -0
- package/src/components/slider/types.ts +12 -0
- package/src/components/spin/assets/styles.scss +127 -0
- package/src/components/spin/index.vue +55 -0
- package/src/components/spin/stories/constants.ts +70 -0
- package/src/components/spin/stories/container.stories.ts +30 -0
- package/src/components/spin/stories/default.stories.ts +26 -0
- package/src/components/spin/types.ts +17 -0
- package/src/components/step-items/assets/styles.scss +57 -0
- package/src/components/step-items/components/index.vue +81 -0
- package/src/components/step-items/index.vue +68 -0
- package/src/components/step-items/stories/constants.ts +77 -0
- package/src/components/step-items/stories/default.stories.ts +18 -0
- package/src/components/step-items/stories/examples.mdx +25 -0
- package/src/components/step-items/stories/step-item.stories.ts +19 -0
- package/src/components/steps/assets/styles.scss +79 -0
- package/src/components/steps/components/index.vue +78 -0
- package/src/components/steps/index.vue +72 -0
- package/src/components/steps/stories/constants.ts +132 -0
- package/src/components/steps/stories/default.stories.ts +56 -0
- package/src/components/steps/stories/examples.mdx +27 -0
- package/src/components/steps/stories/step.stories.ts +19 -0
- package/src/components/steps/types.ts +6 -0
- package/src/components/switch/assets/styles.scss +107 -0
- package/src/components/switch/index.vue +142 -0
- package/src/components/switch/stories/constants.ts +43 -0
- package/src/components/switch/stories/default.stories.ts +133 -0
- package/src/components/switch/switch.test.ts +90 -0
- package/src/components/switch/types.ts +12 -0
- package/src/components/table/assets/table.scss +167 -0
- package/src/components/table/preview.vue +140 -0
- package/src/components/table/row-detail.vue +19 -0
- package/src/components/table/stories/data/data.json +1089 -0
- package/src/components/table/stories/data/fields.ts +110 -0
- package/src/components/table/stories/default.stories.ts +25 -0
- package/src/components/table/stories/table.mdx +51 -0
- package/src/components/tabs/assets/styles.scss +435 -0
- package/src/components/tabs/components/tabPane.vue +11 -0
- package/src/components/tabs/index.vue +65 -0
- package/src/components/tabs/stories/card.stories.ts +85 -0
- package/src/components/tabs/stories/constants.ts +124 -0
- package/src/components/tabs/stories/default.mdx +72 -0
- package/src/components/tabs/stories/line.stories.ts +85 -0
- package/src/components/tabs/types.ts +20 -0
- package/src/components/tabs-2/assets/styles.scss +40 -0
- package/src/components/tabs-2/assets/tab-button.scss +89 -0
- package/src/components/tabs-2/components/tabButton.vue +70 -0
- package/src/components/tabs-2/components/tabPane.vue +33 -0
- package/src/components/tabs-2/index.vue +110 -0
- package/src/components/tabs-2/stories/default.stories.ts +147 -0
- package/src/components/tabs-2/stories/tab-button.stories.ts +71 -0
- package/src/components/tabs-2/stories/tab-pane.stories.ts +62 -0
- package/src/components/tabs-2/tabButton.test.ts +84 -0
- package/src/components/tabs-2/tabs.test.ts +178 -0
- package/src/components/tabs-2/types.ts +106 -0
- package/src/components/tag-input/assets/styles.scss +99 -0
- package/src/components/tag-input/index.vue +185 -0
- package/src/components/tag-input/stories/constants.ts +50 -0
- package/src/components/tag-input/stories/default.stories.ts +76 -0
- package/src/components/tag-input/types.ts +3 -0
- package/src/components/toggle/assets/styles.scss +122 -0
- package/src/components/toggle/index.vue +80 -0
- package/src/components/toggle/stories/constants.ts +73 -0
- package/src/components/toggle/stories/default.stories.ts +32 -0
- package/src/components/toggle/types.ts +7 -0
- package/src/components/tooltip/assets/styles.scss +207 -0
- package/src/components/tooltip/index.vue +101 -0
- package/src/components/tooltip/stories/constants.ts +67 -0
- package/src/components/tooltip/stories/default.stories.ts +143 -0
- package/src/components/tooltip/tooltip.test.ts +157 -0
- package/src/components/tooltip/types.ts +30 -0
- package/src/components/track-button/assets/style.scss +94 -0
- package/src/components/track-button/index.vue +77 -0
- package/src/components/track-button/stories/constants.ts +63 -0
- package/src/components/track-button/stories/default.stories.ts +123 -0
- package/src/components/track-button/track-button.test.ts +91 -0
- package/src/components/track-button/types.ts +8 -0
- package/src/components/tree/assets/styles.scss +35 -0
- package/src/components/tree/components/treeNode.vue +238 -0
- package/src/components/tree/index.vue +257 -0
- package/src/components/tree/stories/constants.ts +93 -0
- package/src/components/tree/stories/default.stories.ts +173 -0
- package/src/components/tree/stories/useTreeData.ts +41 -0
- package/src/components/tree/tree.test.ts +104 -0
- package/src/components/tree/types.ts +19 -0
- package/src/components/typography/assets/styles.scss +0 -0
- package/src/components/typography/index.vue +40 -0
- package/src/components/typography/stories/constants.ts +115 -0
- package/src/components/typography/stories/default.stories.ts +114 -0
- package/src/components/typography/types.ts +39 -0
- package/src/components/typography/typography.test.ts +56 -0
- package/src/components/upload/assets/styles.scss +120 -0
- package/src/components/upload/composables/file.ts +114 -0
- package/src/components/upload/index.vue +386 -0
- package/src/components/upload/singleFile.vue +62 -0
- package/src/components/upload/stories/box.stories.ts +76 -0
- package/src/components/upload/stories/button.stories.ts +20 -0
- package/src/components/upload/stories/constants.ts +159 -0
- package/src/components/upload/stories/small-box.stories.ts +21 -0
- package/src/components/upload/types.ts +31 -0
- package/src/components/watchlist-button/assets/styles.scss +116 -0
- package/src/components/watchlist-button/components/button.vue +105 -0
- package/src/components/watchlist-button/index.vue +88 -0
- package/src/components/watchlist-button/stories/constants.ts +54 -0
- package/src/components/watchlist-button/stories/dashed.stories.ts +30 -0
- package/src/components/watchlist-button/stories/default.stories.ts +55 -0
- package/src/components/watchlist-button/types.ts +13 -0
- package/src/composables/config.ts +6 -0
- package/src/composables/ssr.ts +10 -0
- package/src/index.ts +172 -0
- package/src/services/config.ts +32 -0
- package/src/shims-vue-virtual-scroller.d.ts +77 -0
- package/src/tailwind.scss +6 -0
- package/src/utils/breakpoints.test.ts +21 -0
- package/src/utils/breakpoints.ts +31 -0
- package/src/utils/slots.ts +21 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
$colors: (
|
|
2
|
+
"green": "primary-green",
|
|
3
|
+
"orange": "primary-orange",
|
|
4
|
+
"yellow": "yellow-400",
|
|
5
|
+
"red": "red-500",
|
|
6
|
+
"dark": "primary-dark",
|
|
7
|
+
"blue": "primary-dark-blue"
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$circleSizes: (
|
|
11
|
+
"xs": "w-16 h-16",
|
|
12
|
+
"sm": "w-32 h-32",
|
|
13
|
+
"md": "w-40 h-40",
|
|
14
|
+
"lg": "w-48 h-48",
|
|
15
|
+
"xl": "w-56 h-56"
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
$circleSizes: (
|
|
19
|
+
"xs": (
|
|
20
|
+
"wrapper": "w-16 h-16",
|
|
21
|
+
"percent": "text-sm",
|
|
22
|
+
"label": "text-xs",
|
|
23
|
+
"icon": "w-6 h-6"
|
|
24
|
+
),
|
|
25
|
+
"sm": (
|
|
26
|
+
"wrapper": "w-32 h-32",
|
|
27
|
+
"percent": "text-lg leading-6",
|
|
28
|
+
"label": "text-xs",
|
|
29
|
+
"icon": "w-10 h-10"
|
|
30
|
+
),
|
|
31
|
+
"md": (
|
|
32
|
+
"wrapper": "w-40 h-40",
|
|
33
|
+
"percent": "text-2xl leading-6",
|
|
34
|
+
"label": "text-xs mb-1",
|
|
35
|
+
"icon": "w-12 h-12"
|
|
36
|
+
),
|
|
37
|
+
"lg": (
|
|
38
|
+
"wrapper": "w-48 h-48",
|
|
39
|
+
"percent": "text-3xl leading-[3rem]",
|
|
40
|
+
"label": "text-sm -mb-1.5",
|
|
41
|
+
"icon": "w-14 h-14"
|
|
42
|
+
),
|
|
43
|
+
"xl": (
|
|
44
|
+
"wrapper": "w-56 h-56",
|
|
45
|
+
"percent": "text-4xl leading-[3.5rem]",
|
|
46
|
+
"label": "text-base -mb-2",
|
|
47
|
+
"icon": "w-16 h-16"
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
$halfCircleSizes: (
|
|
52
|
+
"xs": (
|
|
53
|
+
"wrapper": "w-16 h-8"
|
|
54
|
+
),
|
|
55
|
+
"sm": (
|
|
56
|
+
"wrapper": "w-32 h-16"
|
|
57
|
+
),
|
|
58
|
+
"md": (
|
|
59
|
+
"wrapper": "w-40 h-20"
|
|
60
|
+
),
|
|
61
|
+
"lg": (
|
|
62
|
+
"wrapper": "w-48 h-24"
|
|
63
|
+
),
|
|
64
|
+
"xl": (
|
|
65
|
+
"wrapper": "w-56 h-28"
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
.ak-progress {
|
|
70
|
+
@apply font-euclid;
|
|
71
|
+
font-feature-settings: "tnum";
|
|
72
|
+
&--circle,
|
|
73
|
+
&--half-circle {
|
|
74
|
+
&.xs-circle-label {
|
|
75
|
+
@apply mb-6;
|
|
76
|
+
.label {
|
|
77
|
+
@apply absolute mt-11;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
&.xs-half-circle-label {
|
|
81
|
+
.ma-progress-half-circle {
|
|
82
|
+
@apply h-auto #{!important};
|
|
83
|
+
label {
|
|
84
|
+
@apply flex flex-col-reverse pt-4;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.ma-progress-circle {
|
|
89
|
+
@apply relative flex items-center justify-center;
|
|
90
|
+
@each $name, $size in $circleSizes {
|
|
91
|
+
&.size-#{$name},
|
|
92
|
+
&.size-#{$name} .circle {
|
|
93
|
+
@apply #{map-get($size, 'wrapper')};
|
|
94
|
+
}
|
|
95
|
+
&.size-#{$name} .percent {
|
|
96
|
+
@apply #{map-get($size, 'percent')};
|
|
97
|
+
}
|
|
98
|
+
&.size-#{$name} .label {
|
|
99
|
+
@apply #{map-get($size, 'label')};
|
|
100
|
+
}
|
|
101
|
+
&.size-#{$name} .ma-icon {
|
|
102
|
+
@apply #{map-get($size, 'icon')};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
@each $name, $color in $colors {
|
|
106
|
+
&.color-#{$name} {
|
|
107
|
+
@apply text-#{$color};
|
|
108
|
+
.circle .percent {
|
|
109
|
+
@apply stroke-#{$color};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.circle {
|
|
114
|
+
@apply absolute top-0;
|
|
115
|
+
.wrapper {
|
|
116
|
+
@apply stroke-[#F2F4F7];
|
|
117
|
+
}
|
|
118
|
+
.percent {
|
|
119
|
+
transition:
|
|
120
|
+
stroke-dashoffset 0.3s ease 0s,
|
|
121
|
+
stroke-dasharray 0.3s ease 0s,
|
|
122
|
+
stroke 0.3s ease 0s,
|
|
123
|
+
stroke-width 0.06s ease 0.3s,
|
|
124
|
+
opacity ease 0s;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
label {
|
|
128
|
+
@apply text-center;
|
|
129
|
+
> span {
|
|
130
|
+
@apply block;
|
|
131
|
+
&.percent {
|
|
132
|
+
@apply relative text-gray-700 font-medium;
|
|
133
|
+
}
|
|
134
|
+
&.label {
|
|
135
|
+
@apply text-gray-500 font-medium;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.ma-progress-half-circle {
|
|
141
|
+
@apply flex-col justify-end;
|
|
142
|
+
> .circle {
|
|
143
|
+
@apply h-auto max-h-full #{!important};
|
|
144
|
+
}
|
|
145
|
+
@each $name, $size in $halfCircleSizes {
|
|
146
|
+
&.size-#{$name} {
|
|
147
|
+
@apply #{map-get($size, 'wrapper')};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&--line {
|
|
153
|
+
.ma-progress-line {
|
|
154
|
+
@apply flex flex-nowrap w-80 items-center gap-x-3 cursor-pointer;
|
|
155
|
+
.line-wrapper {
|
|
156
|
+
@apply w-full bg-gray-200 rounded h-2;
|
|
157
|
+
.line {
|
|
158
|
+
@apply h-2 rounded transition-all duration-300;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
.ma-tooltip {
|
|
162
|
+
@apply w-full flex flex-nowrap items-center gap-x-3;
|
|
163
|
+
}
|
|
164
|
+
label {
|
|
165
|
+
@apply text-gray-500 text-sm font-medium;
|
|
166
|
+
}
|
|
167
|
+
&.color-dark {
|
|
168
|
+
label {
|
|
169
|
+
@apply text-primary-dark;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
@each $name, $color in $colors {
|
|
173
|
+
&.color-#{$name} {
|
|
174
|
+
.ma-icon {
|
|
175
|
+
@apply flex-none text-#{$color};
|
|
176
|
+
}
|
|
177
|
+
.line {
|
|
178
|
+
@apply bg-#{$color};
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
&.percentage-left {
|
|
184
|
+
.ma-progress-line {
|
|
185
|
+
@apply flex-row-reverse;
|
|
186
|
+
.ma-tooltip {
|
|
187
|
+
@apply flex-row-reverse;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
&--line-step {
|
|
193
|
+
.ma-progress-line-step {
|
|
194
|
+
@apply flex flex-nowrap w-80 items-center gap-x-3 cursor-pointer;
|
|
195
|
+
@each $name, $color in $colors {
|
|
196
|
+
&.color-#{$name} {
|
|
197
|
+
.single-line-fill {
|
|
198
|
+
@apply bg-#{$color};
|
|
199
|
+
}
|
|
200
|
+
.ma-icon {
|
|
201
|
+
@apply text-#{$color};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
.step-line-wrapper {
|
|
206
|
+
@apply w-full h-2 flex items-center justify-between;
|
|
207
|
+
.single-line {
|
|
208
|
+
@apply w-[9%] h-2 rounded bg-gray-200 overflow-hidden;
|
|
209
|
+
&-fill {
|
|
210
|
+
@apply h-2;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.ma-icon,
|
|
215
|
+
label {
|
|
216
|
+
@apply flex-none;
|
|
217
|
+
}
|
|
218
|
+
label {
|
|
219
|
+
@apply text-primary-dark text-sm;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
&.percentage-left {
|
|
224
|
+
.ma-progress-line-step {
|
|
225
|
+
@apply flex-row-reverse;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.ma-progress-tooltip {
|
|
231
|
+
.antd-tooltip-content {
|
|
232
|
+
.antd-tooltip-inner {
|
|
233
|
+
@apply items-center gap-x-8;
|
|
234
|
+
.ak-tooltip-overlay__content {
|
|
235
|
+
.ak-tooltip-overlay__content__title {
|
|
236
|
+
@apply text-gray-500;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import MaIcon from "@/components/icon/index.vue";
|
|
4
|
+
import { SvgListType, MaProgressCircleSize } from "../types";
|
|
5
|
+
import { MaTooltipProps } from '@/components/tooltip/index.vue';
|
|
6
|
+
|
|
7
|
+
export interface MaProgressItemProps {
|
|
8
|
+
percent: number;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
tooltipProps?: MaTooltipProps;
|
|
11
|
+
icon?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
showPercent?: boolean;
|
|
14
|
+
size?: MaProgressCircleSize;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<MaProgressItemProps>(), {});
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
const svgList: SvgListType = {
|
|
21
|
+
xl: {
|
|
22
|
+
viewBox: '0 0 224 224',
|
|
23
|
+
path: 'M112 10.5C125.329 10.5 138.528 13.1254 150.842 18.2262C163.157 23.3271 174.346 30.8035 183.771 40.2287C193.196 49.6538 200.673 60.8431 205.774 73.1576C210.875 85.4722 213.5 98.6708 213.5 112C213.5 125.329 210.875 138.528 205.774 150.842C200.673 163.157 193.196 174.346 183.771 183.771C174.346 193.197 163.157 200.673 150.842 205.774C138.528 210.875 125.329 213.5 112 213.5C98.6708 213.5 85.4721 210.875 73.1576 205.774C60.843 200.673 49.6538 193.196 40.2286 183.771C30.8035 174.346 23.3271 163.157 18.2262 150.842C13.1254 138.528 10.5 125.329 10.5 112C10.5 98.6708 13.1254 85.4721 18.2262 73.1576C23.3271 60.843 30.8036 49.6538 40.2287 40.2286C49.6539 30.8035 60.8431 23.327 73.1577 18.2262C85.4722 13.1254 98.6709 10.5 112 10.5L112 10.5Z',
|
|
24
|
+
strokeDashArray: 632,
|
|
25
|
+
strokeWidth: 21,
|
|
26
|
+
},
|
|
27
|
+
lg: {
|
|
28
|
+
viewBox: '0 0 192 192',
|
|
29
|
+
path: 'M96 9C107.425 9 118.738 11.2503 129.293 15.6225C139.849 19.9946 149.44 26.403 157.518 34.4817C165.597 42.5604 172.005 52.1512 176.378 62.7066C180.75 73.2619 183 84.575 183 96C183 107.425 180.75 118.738 176.378 129.293C172.005 139.849 165.597 149.44 157.518 157.518C149.44 165.597 139.849 172.005 129.293 176.378C118.738 180.75 107.425 183 96 183C84.575 183 73.2618 180.75 62.7065 176.378C52.1512 172.005 42.5604 165.597 34.4817 157.518C26.403 149.44 19.9946 139.849 15.6225 129.293C11.2503 118.738 8.99999 107.425 9 96C9.00001 84.575 11.2503 73.2618 15.6225 62.7065C19.9947 52.1512 26.403 42.5604 34.4817 34.4817C42.5604 26.403 52.1513 19.9946 62.7066 15.6225C73.2619 11.2503 84.5751 8.99999 96.0001 9L96 9Z',
|
|
30
|
+
strokeDashArray: 542,
|
|
31
|
+
strokeWidth: 18,
|
|
32
|
+
},
|
|
33
|
+
md: {
|
|
34
|
+
viewBox: '0 0 160 160',
|
|
35
|
+
path: 'M80 7.5C89.5208 7.5 98.9484 9.37527 107.745 13.0187C116.541 16.6622 124.533 22.0025 131.265 28.7348C137.997 35.467 143.338 43.4594 146.981 52.2555C150.625 61.0516 152.5 70.4792 152.5 80C152.5 89.5208 150.625 98.9485 146.981 107.745C143.338 116.541 137.997 124.533 131.265 131.265C124.533 137.998 116.541 143.338 107.745 146.981C98.9484 150.625 89.5208 152.5 80 152.5C70.4791 152.5 61.0515 150.625 52.2554 146.981C43.4593 143.338 35.467 137.997 28.7347 131.265C22.0025 124.533 16.6622 116.541 13.0187 107.745C9.37526 98.9484 7.5 89.5208 7.5 80C7.5 70.4791 9.37528 61.0515 13.0187 52.2554C16.6622 43.4593 22.0025 35.467 28.7348 28.7347C35.467 22.0025 43.4594 16.6622 52.2555 13.0187C61.0516 9.37526 70.4792 7.49999 80 7.5L80 7.5Z',
|
|
36
|
+
strokeDashArray: 450,
|
|
37
|
+
strokeWidth: 15,
|
|
38
|
+
},
|
|
39
|
+
sm: {
|
|
40
|
+
viewBox: '0 0 128 128',
|
|
41
|
+
path: 'M64 6C71.6167 6 79.1588 7.50021 86.1956 10.415C93.2325 13.3298 99.6264 17.602 105.012 22.9878C110.398 28.3736 114.67 34.7675 117.585 41.8044C120.5 48.8413 122 56.3833 122 64C122 71.6167 120.5 79.1588 117.585 86.1957C114.67 93.2325 110.398 99.6264 105.012 105.012C99.6264 110.398 93.2325 114.67 86.1956 117.585C79.1587 120.5 71.6166 122 64 122C56.3833 122 48.8412 120.5 41.8043 117.585C34.7675 114.67 28.3736 110.398 22.9878 105.012C17.602 99.6264 13.3297 93.2325 10.415 86.1956C7.50021 79.1587 6 71.6166 6 64C6 56.3833 7.50022 48.8412 10.415 41.8043C13.3298 34.7674 17.602 28.3736 22.9878 22.9878C28.3736 17.602 34.7675 13.3297 41.8044 10.415C48.8413 7.5002 56.3834 5.99999 64 6L64 6Z',
|
|
42
|
+
strokeDashArray: 360,
|
|
43
|
+
strokeWidth: 12,
|
|
44
|
+
},
|
|
45
|
+
xs: {
|
|
46
|
+
viewBox: '0 0 64 64',
|
|
47
|
+
path: 'M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z',
|
|
48
|
+
strokeDashArray: 179,
|
|
49
|
+
strokeWidth: 6,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const currentSize = computed(() => svgList[props.size]);
|
|
54
|
+
const strokeDashOffset = computed(
|
|
55
|
+
() => (currentSize.value.strokeDashArray * (100 - props.percent)) / 100,
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
</script>
|
|
59
|
+
<template>
|
|
60
|
+
<div class="ma-progress-circle">
|
|
61
|
+
<svg class="circle" :viewBox="currentSize.viewBox" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
62
|
+
<path
|
|
63
|
+
:d="currentSize.path"
|
|
64
|
+
stroke-linecap="round"
|
|
65
|
+
stroke-linejoin="round"
|
|
66
|
+
:stroke-width="currentSize.strokeWidth"
|
|
67
|
+
class="wrapper"
|
|
68
|
+
/>
|
|
69
|
+
<path
|
|
70
|
+
:d="currentSize.path"
|
|
71
|
+
stroke-linecap="round"
|
|
72
|
+
stroke-linejoin="round"
|
|
73
|
+
:stroke-dasharray="currentSize.strokeDashArray"
|
|
74
|
+
:stroke-dashoffset="strokeDashOffset"
|
|
75
|
+
:stroke-width="currentSize.strokeWidth"
|
|
76
|
+
v-if="props.percent > 0"
|
|
77
|
+
class="percent"
|
|
78
|
+
/>
|
|
79
|
+
</svg>
|
|
80
|
+
<ma-icon
|
|
81
|
+
:name="props.icon"
|
|
82
|
+
v-if="props?.icon"
|
|
83
|
+
/>
|
|
84
|
+
<label v-else>
|
|
85
|
+
<span class="label" v-if="props?.label || $slots.customLabel">
|
|
86
|
+
{{ props.label }}
|
|
87
|
+
<slot name="customLabel"></slot>
|
|
88
|
+
</span>
|
|
89
|
+
<span class="percent">
|
|
90
|
+
{{ props?.percent }}%
|
|
91
|
+
</span>
|
|
92
|
+
</label>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { SvgListType, MaProgressCircleSize } from '../types';
|
|
4
|
+
import MaIcon from '@/components/icon/index.vue';
|
|
5
|
+
import { MaTooltipProps } from '@/components/tooltip/index.vue';
|
|
6
|
+
|
|
7
|
+
export interface MaProgressItemProps {
|
|
8
|
+
percent: number;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
tooltipProps?: MaTooltipProps;
|
|
11
|
+
icon?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
showPercent?: boolean;
|
|
14
|
+
size?: MaProgressCircleSize;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<MaProgressItemProps>(), {});
|
|
18
|
+
|
|
19
|
+
const svgList: SvgListType = {
|
|
20
|
+
xl: {
|
|
21
|
+
viewBox: '0 0 224 128',
|
|
22
|
+
path: 'M10.5 112C10.5 98.6708 13.1254 85.4722 18.2262 73.1576C23.3271 60.8431 30.8035 49.6538 40.2287 40.2286C49.6538 30.8035 60.8431 23.3271 73.1577 18.2262C85.4722 13.1254 98.6709 10.5 112 10.5C125.329 10.5 138.528 13.1254 150.842 18.2262C163.157 23.3271 174.346 30.8035 183.771 40.2287C193.197 49.6539 200.673 60.8431 205.774 73.1577C210.875 85.4722 213.5 98.6709 213.5 112',
|
|
23
|
+
strokeDashArray: 320,
|
|
24
|
+
strokeWidth: 21,
|
|
25
|
+
},
|
|
26
|
+
lg: {
|
|
27
|
+
viewBox: '0 0 192 114',
|
|
28
|
+
path: 'M9 96C9 84.575 11.2503 73.2619 15.6225 62.7065C19.9946 52.1512 26.403 42.5604 34.4817 34.4817C42.5604 26.403 52.1512 19.9946 62.7066 15.6225C73.2619 11.2503 84.575 9 96 9C107.425 9 118.738 11.2503 129.293 15.6225C139.849 19.9947 149.44 26.403 157.518 34.4817C165.597 42.5604 172.005 52.1513 176.378 62.7066C180.75 73.2619 183 84.5751 183 96.0001',
|
|
29
|
+
strokeDashArray: 274,
|
|
30
|
+
strokeWidth: 18,
|
|
31
|
+
},
|
|
32
|
+
md: {
|
|
33
|
+
viewBox: '0 0 160 88',
|
|
34
|
+
path: 'M7.5 80C7.5 70.4792 9.37527 61.0515 13.0187 52.2554C16.6622 43.4593 22.0025 35.467 28.7348 28.7347C35.467 22.0025 43.4594 16.6622 52.2555 13.0187C61.0516 9.37526 70.4792 7.5 80 7.5C89.5209 7.5 98.9485 9.37528 107.745 13.0187C116.541 16.6622 124.533 22.0025 131.265 28.7348C137.998 35.467 143.338 43.4594 146.981 52.2555C150.625 61.0516 152.5 70.4792 152.5 80',
|
|
35
|
+
strokeDashArray: 226,
|
|
36
|
+
strokeWidth: 15,
|
|
37
|
+
},
|
|
38
|
+
sm: {
|
|
39
|
+
viewBox: '0 0 128 72',
|
|
40
|
+
path: 'M6 64C6 56.3833 7.50022 48.8412 10.415 41.8044C13.3298 34.7675 17.602 28.3736 22.9878 22.9878C28.3736 17.602 34.7675 13.3298 41.8044 10.415C48.8413 7.50021 56.3834 6 64 6C71.6167 6 79.1588 7.50022 86.1957 10.415C93.2325 13.3298 99.6264 17.602 105.012 22.9878C110.398 28.3736 114.67 34.7675 117.585 41.8044C120.5 48.8413 122 56.3834 122 64',
|
|
41
|
+
strokeDashArray: 182,
|
|
42
|
+
strokeWidth: 12,
|
|
43
|
+
},
|
|
44
|
+
xs: {
|
|
45
|
+
viewBox: '0 0 64 38',
|
|
46
|
+
path: 'M3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66488 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.801 17.3837 6.66488 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3C35.8083 3 39.5794 3.75011 43.0978 5.2075C46.6163 6.66489 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3838 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32',
|
|
47
|
+
strokeDashArray: 91,
|
|
48
|
+
strokeWidth: 6,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const currentSize = computed(() => svgList[props.size]);
|
|
53
|
+
const strokeDashOffset = computed(
|
|
54
|
+
() => (currentSize.value.strokeDashArray * (100 - props.percent)) / 100,
|
|
55
|
+
);
|
|
56
|
+
</script>
|
|
57
|
+
<template>
|
|
58
|
+
<div class="ma-progress-circle ma-progress-half-circle">
|
|
59
|
+
<svg
|
|
60
|
+
class="circle"
|
|
61
|
+
:viewBox="currentSize.viewBox"
|
|
62
|
+
fill="none"
|
|
63
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
64
|
+
>
|
|
65
|
+
<path
|
|
66
|
+
:d="currentSize.path"
|
|
67
|
+
:stroke-width="currentSize.strokeWidth"
|
|
68
|
+
stroke-linecap="round"
|
|
69
|
+
stroke-linejoin="round"
|
|
70
|
+
class="wrapper"
|
|
71
|
+
/>
|
|
72
|
+
<path
|
|
73
|
+
:d="currentSize.path"
|
|
74
|
+
:stroke-width="currentSize.strokeWidth"
|
|
75
|
+
stroke-linecap="round"
|
|
76
|
+
stroke-linejoin="round"
|
|
77
|
+
:stroke-dasharray="currentSize.strokeDashArray"
|
|
78
|
+
:stroke-dashoffset="strokeDashOffset"
|
|
79
|
+
v-if="props.percent > 0"
|
|
80
|
+
class="percent"
|
|
81
|
+
/>
|
|
82
|
+
</svg>
|
|
83
|
+
<ma-icon :name="props.icon" v-if="props?.icon" />
|
|
84
|
+
<label v-else>
|
|
85
|
+
<span class="label" v-if="props?.label || $slots.customLabel">
|
|
86
|
+
{{ props?.label }}
|
|
87
|
+
<slot name="customLabel"></slot>
|
|
88
|
+
</span>
|
|
89
|
+
<span class="percent"> {{ props?.percent }}% </span>
|
|
90
|
+
</label>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ComputedRef } from 'vue';
|
|
3
|
+
import MaTooltip, { MaTooltipProps } from '@/components/tooltip/index.vue';
|
|
4
|
+
import MaIcon from '@/components/icon/index.vue';
|
|
5
|
+
import { MaProgressCircleSize } from '../types';
|
|
6
|
+
|
|
7
|
+
export interface MaProgressItemProps {
|
|
8
|
+
percent: number;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
tooltipProps?: MaTooltipProps;
|
|
11
|
+
icon?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
showPercent?: boolean;
|
|
14
|
+
size?: MaProgressCircleSize;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<MaProgressItemProps>(), {});
|
|
18
|
+
|
|
19
|
+
const lineStyle = computed(() => ({ width: `${props.percent}%` }));
|
|
20
|
+
const tooltipArgs: ComputedRef<MaTooltipProps> = computed(() => ({
|
|
21
|
+
overlayClassName: 'ma-progress-tooltip',
|
|
22
|
+
icon: 'warning-2-bold',
|
|
23
|
+
closable: true,
|
|
24
|
+
title: `%${props.percent}`,
|
|
25
|
+
defaultVisible: true,
|
|
26
|
+
trigger: 'click',
|
|
27
|
+
...props.tooltipProps
|
|
28
|
+
}));
|
|
29
|
+
</script>
|
|
30
|
+
<template>
|
|
31
|
+
<div class="ma-progress-line">
|
|
32
|
+
<ma-tooltip v-if="props?.showTooltip" v-bind="tooltipArgs">
|
|
33
|
+
<div class="line-wrapper">
|
|
34
|
+
<div class="line" :style="lineStyle"></div>
|
|
35
|
+
</div>
|
|
36
|
+
<ma-icon v-if="props?.icon" :name="props.icon" />
|
|
37
|
+
<label v-else-if="showPercent">{{ props.percent }}%</label>
|
|
38
|
+
<label v-if="$slots.customLabel"><slot name="customLabel"></slot></label>
|
|
39
|
+
</ma-tooltip>
|
|
40
|
+
<template v-else>
|
|
41
|
+
<div class="line-wrapper">
|
|
42
|
+
<div class="line" :style="lineStyle"></div>
|
|
43
|
+
</div>
|
|
44
|
+
<ma-icon v-if="props?.icon" :name="props.icon" />
|
|
45
|
+
<label v-else-if="showPercent">{{ props.percent }}%</label>
|
|
46
|
+
<label v-if="$slots.customLabel"><slot name="customLabel"></slot></label>
|
|
47
|
+
</template>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import MaIcon from '@/components/icon/index.vue';
|
|
3
|
+
import { MaTooltipProps } from '@/components/tooltip/index.vue';
|
|
4
|
+
import { MaProgressCircleSize } from '../types';
|
|
5
|
+
|
|
6
|
+
export interface MaProgressItemProps {
|
|
7
|
+
percent: number;
|
|
8
|
+
showTooltip?: boolean;
|
|
9
|
+
tooltipProps?: MaTooltipProps;
|
|
10
|
+
icon?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
showPercent?: boolean;
|
|
13
|
+
size?: MaProgressCircleSize;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const props = withDefaults(defineProps<MaProgressItemProps>(), {});
|
|
17
|
+
|
|
18
|
+
const getLineStyle = (itemKey: number) => {
|
|
19
|
+
const lowerBound = (itemKey - 1) * 10;
|
|
20
|
+
const upperBound = itemKey * 10;
|
|
21
|
+
let widthPercent = 0; // Default value
|
|
22
|
+
if (props.percent >= upperBound) {
|
|
23
|
+
widthPercent = 100;
|
|
24
|
+
} else if (props.percent > lowerBound && props.percent < upperBound) {
|
|
25
|
+
widthPercent = 100 * (props.percent - lowerBound) / (upperBound - lowerBound);
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
width: `${widthPercent}%`
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
</script>
|
|
32
|
+
<template>
|
|
33
|
+
<div class="ma-progress-line-step">
|
|
34
|
+
<div class="step-line-wrapper">
|
|
35
|
+
<div
|
|
36
|
+
class="single-line"
|
|
37
|
+
:key="itemKey"
|
|
38
|
+
v-for="(itemKey) in 10"
|
|
39
|
+
>
|
|
40
|
+
<div class="single-line-fill" :style="getLineStyle(itemKey)">
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<ma-icon v-if="props?.icon" :name="props.icon" />
|
|
45
|
+
<label v-else-if="props?.showPercent">{{ props.percent }}%</label>
|
|
46
|
+
<label v-if="$slots.customLabel"><slot name="customLabel"></slot></label>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
export default {
|
|
3
|
+
name: 'MaProgress',
|
|
4
|
+
};
|
|
5
|
+
</script>
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import { MaProgressType, MaProgressColor, MaProgressCircleSize, MaProgressPercentAlignment } from './types';
|
|
8
|
+
import { MaTooltipProps } from '../tooltip/index.vue';
|
|
9
|
+
import { computed } from 'vue';
|
|
10
|
+
import ProgressCircle from './components/circle.vue';
|
|
11
|
+
import ProgressLine from './components/line.vue';
|
|
12
|
+
import ProgressCircleHalf from './components/halfCircle.vue';
|
|
13
|
+
import ProgressLineStep from './components/stepLine.vue';
|
|
14
|
+
|
|
15
|
+
export interface MaProgressProps {
|
|
16
|
+
type?: MaProgressType;
|
|
17
|
+
percent: number;
|
|
18
|
+
color?: MaProgressColor;
|
|
19
|
+
showTooltip?: boolean;
|
|
20
|
+
tooltipProps?: MaTooltipProps;
|
|
21
|
+
icon?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
showPercent?: boolean;
|
|
24
|
+
percentAlignment?: MaProgressPercentAlignment,
|
|
25
|
+
circleSize?: MaProgressCircleSize;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const props = withDefaults(defineProps<MaProgressProps>(), {
|
|
29
|
+
type: 'line',
|
|
30
|
+
color: 'dark',
|
|
31
|
+
circleSize: 'md',
|
|
32
|
+
percentAlignment: 'right',
|
|
33
|
+
showPercent: true,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const className = computed(() => [
|
|
37
|
+
`
|
|
38
|
+
ma-progress
|
|
39
|
+
ak-progress
|
|
40
|
+
ak-progress--${props.type}
|
|
41
|
+
`,
|
|
42
|
+
{
|
|
43
|
+
'xs-circle-label': props.type === 'circle' && props?.label && props.circleSize === 'xs'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
'xs-half-circle-label': props.type === 'half-circle' && props?.label && props.circleSize === 'xs'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
'percentage-left': props?.percentAlignment === 'left'
|
|
50
|
+
}
|
|
51
|
+
]);
|
|
52
|
+
const dynamicComponent = computed(
|
|
53
|
+
() =>
|
|
54
|
+
({
|
|
55
|
+
circle: ProgressCircle,
|
|
56
|
+
line: ProgressLine,
|
|
57
|
+
['half-circle']: ProgressCircleHalf,
|
|
58
|
+
['line-step']: ProgressLineStep,
|
|
59
|
+
}[props.type]),
|
|
60
|
+
);
|
|
61
|
+
const dynamicComponentClassName = computed(() => [
|
|
62
|
+
`
|
|
63
|
+
color-${props.color}
|
|
64
|
+
size-${props.circleSize}
|
|
65
|
+
`,
|
|
66
|
+
]);
|
|
67
|
+
const percent = computed(() =>
|
|
68
|
+
props.percent > 100? 100: props.percent
|
|
69
|
+
);
|
|
70
|
+
</script>
|
|
71
|
+
<template>
|
|
72
|
+
<div :class="className">
|
|
73
|
+
<component
|
|
74
|
+
:class="dynamicComponentClassName"
|
|
75
|
+
:is="dynamicComponent"
|
|
76
|
+
:percent="percent"
|
|
77
|
+
:icon="props?.icon"
|
|
78
|
+
:label="props?.label"
|
|
79
|
+
:size="props?.circleSize"
|
|
80
|
+
:showPercent="props?.showPercent"
|
|
81
|
+
:showTooltip="props?.showTooltip"
|
|
82
|
+
:tooltipProps="props?.tooltipProps"
|
|
83
|
+
>
|
|
84
|
+
<template #customLabel>
|
|
85
|
+
<slot name="customLabel"></slot>
|
|
86
|
+
</template>
|
|
87
|
+
</component>
|
|
88
|
+
</div>
|
|
89
|
+
</template>
|
|
90
|
+
<style lang="scss" src="./assets/styles.scss"></style>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Meta, StoryFn, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { baseConfig, Template } from './constants';
|
|
3
|
+
import { MaProgressCircleSizes, MaProgressColors } from '../types';
|
|
4
|
+
|
|
5
|
+
import MaProgress from '../index.vue';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof MaProgress> = {
|
|
8
|
+
title: 'Core/MaProgress/Circle',
|
|
9
|
+
...baseConfig,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
|
|
14
|
+
type Story = StoryObj<typeof MaProgress>;
|
|
15
|
+
|
|
16
|
+
export const Default: Story = Template.bind({});
|
|
17
|
+
Default.args = {
|
|
18
|
+
percent: 40,
|
|
19
|
+
type: 'circle',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const Icon: Story = Template.bind({});
|
|
23
|
+
Icon.args = {
|
|
24
|
+
percent: 80,
|
|
25
|
+
type: 'circle',
|
|
26
|
+
icon: 'tick-circle-bold',
|
|
27
|
+
color: 'green',
|
|
28
|
+
circleSize: 'md',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const WithLabel: Story = Template.bind({});
|
|
32
|
+
WithLabel.args = {
|
|
33
|
+
percent: 80,
|
|
34
|
+
type: 'circle',
|
|
35
|
+
label: 'User',
|
|
36
|
+
circleSize: 'sm',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const AllSizes: StoryFn = (args) => ({
|
|
40
|
+
components: { MaProgress },
|
|
41
|
+
setup() {
|
|
42
|
+
const sizes = MaProgressCircleSizes;
|
|
43
|
+
return { sizes, args };
|
|
44
|
+
},
|
|
45
|
+
template: `
|
|
46
|
+
<div class="flex justify-between">
|
|
47
|
+
<ma-progress
|
|
48
|
+
:percent="50"
|
|
49
|
+
:circleSize="size"
|
|
50
|
+
label="User"
|
|
51
|
+
type="circle"
|
|
52
|
+
v-bind="args"
|
|
53
|
+
v-for="size in sizes" :key="size"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
`,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const AllColors: StoryFn = (args) => ({
|
|
60
|
+
components: { MaProgress },
|
|
61
|
+
setup() {
|
|
62
|
+
const colors = MaProgressColors;
|
|
63
|
+
return { colors, args };
|
|
64
|
+
},
|
|
65
|
+
template: `
|
|
66
|
+
<div class="flex justify-between">
|
|
67
|
+
<ma-progress
|
|
68
|
+
:percent="50"
|
|
69
|
+
:color="color"
|
|
70
|
+
label="User"
|
|
71
|
+
type="circle"
|
|
72
|
+
v-bind="args"
|
|
73
|
+
v-for="color in colors" :key="color"
|
|
74
|
+
/>
|
|
75
|
+
</div>
|
|
76
|
+
`,
|
|
77
|
+
});
|