@vention/machine-ui 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +12 -0
- package/.storybook/blocks/work-in-progress.tsx +12 -0
- package/.storybook/helpers/go-to-icon-gallery.tsx +23 -0
- package/.storybook/main.ts +38 -0
- package/.storybook/manager.ts +7 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.tsx +55 -0
- package/.storybook/theme.ts +25 -0
- package/CHANGELOG.md +2287 -0
- package/Dockerfile +11 -0
- package/README.md +39 -0
- package/ecs-task-definition.json +28 -0
- package/eslint.config.js +37 -0
- package/jest.config.ts +33 -0
- package/package.json +20 -0
- package/project.json +164 -0
- package/src/documentation/code-conventions.mdx +98 -0
- package/src/documentation/design-system/colors.mdx +58 -0
- package/src/documentation/design-system/how-to-choose-color.mdx +63 -0
- package/src/documentation/design-system/palette.mdx +159 -0
- package/src/documentation/design-system/spacing.mdx +61 -0
- package/src/documentation/design-system/typography.mdx +63 -0
- package/src/documentation/getting-started.mdx +154 -0
- package/src/documentation/icons.mdx +52 -0
- package/src/documentation/installation-and-usage.mdx +148 -0
- package/src/documentation/introduction.mdx +96 -0
- package/src/global-styles.css +9 -0
- package/src/index.ts +54 -0
- package/src/lib/components/shared/styles/input-styles.ts +123 -0
- package/src/lib/components/shared/types/input-types.ts +9 -0
- package/src/lib/components/vention-alert/vention-alert-controls.tsx +57 -0
- package/src/lib/components/vention-alert/vention-alert-utils.ts +27 -0
- package/src/lib/components/vention-alert/vention-alert.stories.tsx +137 -0
- package/src/lib/components/vention-alert/vention-alert.test.tsx +185 -0
- package/src/lib/components/vention-alert/vention-alert.tsx +295 -0
- package/src/lib/components/vention-badge/vention-badge.stories.tsx +60 -0
- package/src/lib/components/vention-badge/vention-badge.test.tsx +59 -0
- package/src/lib/components/vention-badge/vention-badge.tsx +197 -0
- package/src/lib/components/vention-banner/vention-banner.stories.tsx +124 -0
- package/src/lib/components/vention-banner/vention-banner.test.tsx +72 -0
- package/src/lib/components/vention-banner/vention-banner.tsx +123 -0
- package/src/lib/components/vention-button/button-utils.ts +143 -0
- package/src/lib/components/vention-button/vention-button.stories.tsx +89 -0
- package/src/lib/components/vention-button/vention-button.test.tsx +182 -0
- package/src/lib/components/vention-button/vention-button.tsx +151 -0
- package/src/lib/components/vention-button/vention-dropdown-button/vention-dropdown-button.stories.tsx +55 -0
- package/src/lib/components/vention-button/vention-dropdown-button/vention-dropdown-button.test.tsx +96 -0
- package/src/lib/components/vention-button/vention-dropdown-button/vention-dropdown-button.tsx +94 -0
- package/src/lib/components/vention-button/vention-icon-button/vention-icon-button.stories.tsx +55 -0
- package/src/lib/components/vention-button/vention-icon-button/vention-icon-button.test.tsx +227 -0
- package/src/lib/components/vention-button/vention-icon-button/vention-icon-button.tsx +60 -0
- package/src/lib/components/vention-callout/vention-callout.stories.tsx +82 -0
- package/src/lib/components/vention-callout/vention-callout.test.tsx +142 -0
- package/src/lib/components/vention-callout/vention-callout.tsx +199 -0
- package/src/lib/components/vention-checkbox/vention-checkbox-icon.tsx +64 -0
- package/src/lib/components/vention-checkbox/vention-checkbox.stories.tsx +121 -0
- package/src/lib/components/vention-checkbox/vention-checkbox.test.tsx +468 -0
- package/src/lib/components/vention-checkbox/vention-checkbox.tsx +321 -0
- package/src/lib/components/vention-combobox/vention-combobox.stories.tsx +181 -0
- package/src/lib/components/vention-combobox/vention-combobox.test.tsx +157 -0
- package/src/lib/components/vention-combobox/vention-combobox.tsx +374 -0
- package/src/lib/components/vention-counter/vention-counter.stories.tsx +19 -0
- package/src/lib/components/vention-counter/vention-counter.test.tsx +116 -0
- package/src/lib/components/vention-counter/vention-counter.tsx +165 -0
- package/src/lib/components/vention-draggable/vention-draggable.stories.tsx +47 -0
- package/src/lib/components/vention-draggable/vention-draggable.test.tsx +54 -0
- package/src/lib/components/vention-draggable/vention-draggable.tsx +120 -0
- package/src/lib/components/vention-drawer/vention-drawer.stories.tsx +80 -0
- package/src/lib/components/vention-drawer/vention-drawer.test.tsx +74 -0
- package/src/lib/components/vention-drawer/vention-drawer.tsx +105 -0
- package/src/lib/components/vention-dropzone/vention-dropzone-utils.tsx +124 -0
- package/src/lib/components/vention-dropzone/vention-dropzone.stories.tsx +69 -0
- package/src/lib/components/vention-dropzone/vention-dropzone.test.tsx +136 -0
- package/src/lib/components/vention-dropzone/vention-dropzone.tsx +234 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-analytics.tsx +18 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-communication.tsx +35 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-conveyor.tsx +32 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-input-output.tsx +10 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-linear.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-pneumatic.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-programming.tsx +24 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-robot-arm.tsx +29 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-rotary.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/duotone-state-machine.tsx +35 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-rx.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-ry.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-rz.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-x.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-y.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/duotone-icons/position-z.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/icon-types.ts +460 -0
- package/src/lib/components/vention-icon/_generated/icons/ac-motor.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/access-point.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator1.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator10.tsx +24 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator2.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator3.tsx +27 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator4.tsx +37 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator5.tsx +37 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator6.tsx +17 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator7.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator8.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/actuator9.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/adjustments-alt-filled.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/adjustments-alt.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/adjustments-filled.tsx +26 -0
- package/src/lib/components/vention-icon/_generated/icons/adjustments-horizontal.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/alarm-bell-filled.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/alarm-bell-ringing.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/alarm-bell.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/alarm.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/alert-circle-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/alert-circle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/alert-triangle-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/alert-triangle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/analytics.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/angle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/apps-2.tsx +31 -0
- package/src/lib/components/vention-icon/_generated/icons/apps.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-both.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-to-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-to-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-to-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-to-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-bar-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-big-down.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-big-left.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-big-right-lines.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-big-right.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-big-up.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-left-from-arc.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-narrow-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-narrow-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-narrow-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-narrow-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/arrow-up-right.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-diagonal-minimize-1.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-diagonal.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-diff.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-exchange-1.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-exchange.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-maximize.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-minimize.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-move.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/arrows-right-left.tsx +18 -0
- package/src/lib/components/vention-icon/_generated/icons/assembly.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/asset.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/axis.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/belt-actuator-2.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/belt-actuator-3.tsx +26 -0
- package/src/lib/components/vention-icon/_generated/icons/belt-actuator.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/binary-tree-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/binary-tree.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/binary.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/blend.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/bolt-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/bolt.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/bomb.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/book-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/book.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/bookmark.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/books.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/braces.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/brand-python.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/bug.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/building-broadcast-tower.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/building-community.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/building-factory-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/building-skyscraper.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/building.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/button-black.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/button-white.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/calendar-month.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/camera.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/capture.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-down-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-left-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-right-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-up-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/caret-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/category-filled.tsx +30 -0
- package/src/lib/components/vention-icon/_generated/icons/category.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/cell-signal-full.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cell-signal-low.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cell-signal-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/chart-dots-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/check.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/checkbox.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/checks.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevron-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevron-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevron-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevron-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevrons-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevrons-left.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevrons-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/chevrons-up.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-arrow-up.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-check-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-check.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-minus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-plus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-square.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-x-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/circle-x.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/clock.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/clockwise-1.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/clockwise-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/close.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-computing.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-data-connection.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-download-1.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-download-off.tsx +37 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-download.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud-upload.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cloud.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/code.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/command-do.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/command-elif.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/command-else.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/command-if.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/condition-tree.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/confetti.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/connection.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/icons/conveyor.tsx +31 -0
- package/src/lib/components/vention-icon/_generated/icons/copy.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/corner-up-left.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/corner-up-right.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/counterclockwise-1.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/counterclockwise-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cpu-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cpu.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cube-plus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cube-send.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/cube.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-gear-fill.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-help-bold-filled.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-help-bold.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-help-fill.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-help.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-info-1.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-info-bold-filled.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-info-bold.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-info.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-point-to-point.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-rocket-fat.tsx +35 -0
- package/src/lib/components/vention-icon/_generated/icons/custom-rocket.tsx +31 -0
- package/src/lib/components/vention-icon/_generated/icons/dashboard.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/decline.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/device-laptop.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/device-tv.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/devices-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/dimensions.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/dots-vertical.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/dots.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/download-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/download.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/edit.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/electric-actuator.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/exclamation-mark.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/external-link.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/eye-closed.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/eye.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/file-3-d.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-code.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-description.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-download.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-type-pdf.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-upload.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/file-wrong.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/file.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/filter.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/focus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/folder-open.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/folder-plus-1.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/folder.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/frame-3.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/function-icon.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/git-branch-deleted.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/git-branch.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/git-compare.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/git-fork.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/git-merge.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/gizmo.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/graph.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/grid-dots.tsx +61 -0
- package/src/lib/components/vention-icon/_generated/icons/grip-horizontal.tsx +43 -0
- package/src/lib/components/vention-icon/_generated/icons/grip-vertical.tsx +43 -0
- package/src/lib/components/vention-icon/_generated/icons/gripper-1.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/gripper-2.tsx +10 -0
- package/src/lib/components/vention-icon/_generated/icons/hand-stop.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/hash.tsx +22 -0
- package/src/lib/components/vention-icon/_generated/icons/hb-menu.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/headphones-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/headset-filled.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/headset.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/help-circle-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/help.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/history-toggle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/history.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/hmi.tsx +26 -0
- package/src/lib/components/vention-icon/_generated/icons/home-2.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/home-solid.tsx +27 -0
- package/src/lib/components/vention-icon/_generated/icons/home.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/hourglass-empty.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/i-o.tsx +31 -0
- package/src/lib/components/vention-icon/_generated/icons/icon-box-padding.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/icon-components.tsx +18 -0
- package/src/lib/components/vention-icon/_generated/icons/icon-nut.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/icon-ruler-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/icon-square-rotated.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/incline.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/infinity.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/info-circle-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/info-circle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/input-output.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/io-link.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/ipad-horizontal.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/json.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/lan.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/language.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/layout-sidebar-right.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/legacy-axis.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/legacy-robot.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/letter-case.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/line.tsx +27 -0
- package/src/lib/components/vention-icon/_generated/icons/linear.tsx +27 -0
- package/src/lib/components/vention-icon/_generated/icons/link.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/list-check.tsx +24 -0
- package/src/lib/components/vention-icon/_generated/icons/load-balancer.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/lock.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/logout.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/machine-apps-headset.tsx +18 -0
- package/src/lib/components/vention-icon/_generated/icons/machinelogic-2.tsx +17 -0
- package/src/lib/components/vention-icon/_generated/icons/magnet.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/mail-fast.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/mail.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/mailbox.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/math-equal-greater.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/math-equal-lower.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/maximize.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/menu-2.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/menu-waffle.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/menu.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/merge.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/message-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/message-chatbot.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/message-circle-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/message-circle.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/message-dots.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/message.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/messages.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/microphone.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/minus-vertical.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/minus.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/mirror-flip-horizontal.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/mirror-flip-vertical.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/module-1.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/module-2.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/module-3.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/module-4.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/motor-1.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/motor-2.tsx +24 -0
- package/src/lib/components/vention-icon/_generated/icons/motor-3.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/motor-4.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/motor-5.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/move-to-ground.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/movie.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/multiplier.tsx +17 -0
- package/src/lib/components/vention-icon/_generated/icons/music.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/network-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/network-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/network.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/number-1.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/number-2.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/number-3.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/number-4.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/operator.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/pdf.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/phone-call.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/phone-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/phone.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/photo.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/pinned.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/player-pause.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/player-play-filled.tsx +18 -0
- package/src/lib/components/vention-icon/_generated/icons/player-play.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/player-record.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/player-skip-back.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/player-skip-forward.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/player-stop-filled.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/player-stop.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/player-track-next.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/player-track-prev.tsx +9 -0
- package/src/lib/components/vention-icon/_generated/icons/plug-x.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/plug.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/plus.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/pneumatic.tsx +12 -0
- package/src/lib/components/vention-icon/_generated/icons/point-to-point-3.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/point-to-point-check.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/power.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/programming.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/pushbutton.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/receipt-dollar.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/receipt.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/reference-frame-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/reference-frame.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/refresh-alert.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/refresh-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/refresh.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/reload.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/repeat.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/rewind-backward-15.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/rewind-forward-15.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/robot-arm-2.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/robot-arm-duotone-2.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/robot-arm.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/robot-face.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/rotary.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/route-square.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/row-insert-bottom.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/row-insert-top.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/ruler-measure-2.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/ruler.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/save.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/search.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/selector.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/send.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/sensor.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/sensor1.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/sensor2.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/sequence.tsx +28 -0
- package/src/lib/components/vention-icon/_generated/icons/setting-automation.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/settings-2.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/settings-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/settings.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/shield-code.tsx +15 -0
- package/src/lib/components/vention-icon/_generated/icons/shield-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/shield-half.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/shield.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/shopping-bag.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/shopping-cart-filled.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/shopping-cart.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/show-3d.tsx +26 -0
- package/src/lib/components/vention-icon/_generated/icons/sitemap-1.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/sitemap.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/slash.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/speedtest.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/sphere.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/square-number-0.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/square-number-1.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/square-number-2.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/square-number-3.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/stack.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/star.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/state-machine.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/status-danger-hmi.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/status-small.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/status-warning-hmi.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/stopwatch.tsx +23 -0
- package/src/lib/components/vention-icon/_generated/icons/subtask.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/switch-horizontal.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/switch-vertical.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/tag.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/target.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/template.tsx +29 -0
- package/src/lib/components/vention-icon/_generated/icons/terminal-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/terminal.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/text-plus-1.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/timeline.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/tiny-caret-down.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/tiny-caret-right.tsx +8 -0
- package/src/lib/components/vention-icon/_generated/icons/tool-1.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/tool.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-bus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-complex.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-full-hierarchy.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-full.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-ring-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-ring-3.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-ring.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/topology-star-3.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/trash.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/trending-up.tsx +16 -0
- package/src/lib/components/vention-icon/_generated/icons/truck-delivery.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/truck-loading.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/un-pinned.tsx +14 -0
- package/src/lib/components/vention-icon/_generated/icons/unlink.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/update.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/upload.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/user-circle.tsx +25 -0
- package/src/lib/components/vention-icon/_generated/icons/user-off.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/user-plus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/user-shield.tsx +21 -0
- package/src/lib/components/vention-icon/_generated/icons/user.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/users-plus.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/users.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/variable.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/vention.tsx +11 -0
- package/src/lib/components/vention-icon/_generated/icons/versions.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/video.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/web-link.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/weight-2.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/weight.tsx +19 -0
- package/src/lib/components/vention-icon/_generated/icons/wifi-low.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/wifi-lowest.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/wifi-off.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/wifi.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/world-download.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/world.tsx +13 -0
- package/src/lib/components/vention-icon/_generated/icons/xyz-1.tsx +20 -0
- package/src/lib/components/vention-icon/_generated/icons/xyz-2.tsx +16 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-analytics.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-communication.svg +13 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-conveyor.svg +6 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-input-output.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-linear.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-pneumatic.svg +7 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-programming.svg +6 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-robot-arm.svg +12 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-rotary.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/duotone-state-machine.svg +10 -0
- package/src/lib/components/vention-icon/duotone-svg/position-rx.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/position-ry.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/position-rz.svg +5 -0
- package/src/lib/components/vention-icon/duotone-svg/position-x.svg +4 -0
- package/src/lib/components/vention-icon/duotone-svg/position-y.svg +4 -0
- package/src/lib/components/vention-icon/duotone-svg/position-z.svg +4 -0
- package/src/lib/components/vention-icon/svg/ac-motor.svg +6 -0
- package/src/lib/components/vention-icon/svg/access-point.svg +3 -0
- package/src/lib/components/vention-icon/svg/actuator.svg +11 -0
- package/src/lib/components/vention-icon/svg/actuator1.svg +6 -0
- package/src/lib/components/vention-icon/svg/actuator10.svg +9 -0
- package/src/lib/components/vention-icon/svg/actuator2.svg +8 -0
- package/src/lib/components/vention-icon/svg/actuator3.svg +7 -0
- package/src/lib/components/vention-icon/svg/actuator4.svg +7 -0
- package/src/lib/components/vention-icon/svg/actuator5.svg +7 -0
- package/src/lib/components/vention-icon/svg/actuator6.svg +7 -0
- package/src/lib/components/vention-icon/svg/actuator7.svg +7 -0
- package/src/lib/components/vention-icon/svg/actuator8.svg +8 -0
- package/src/lib/components/vention-icon/svg/actuator9.svg +10 -0
- package/src/lib/components/vention-icon/svg/adjustments-alt-filled.svg +12 -0
- package/src/lib/components/vention-icon/svg/adjustments-alt.svg +3 -0
- package/src/lib/components/vention-icon/svg/adjustments-filled.svg +12 -0
- package/src/lib/components/vention-icon/svg/adjustments-horizontal.svg +3 -0
- package/src/lib/components/vention-icon/svg/alarm-bell-filled.svg +6 -0
- package/src/lib/components/vention-icon/svg/alarm-bell-ringing.svg +3 -0
- package/src/lib/components/vention-icon/svg/alarm-bell.svg +3 -0
- package/src/lib/components/vention-icon/svg/alarm.svg +3 -0
- package/src/lib/components/vention-icon/svg/alert-circle-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/alert-circle.svg +3 -0
- package/src/lib/components/vention-icon/svg/alert-triangle-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/alert-triangle.svg +3 -0
- package/src/lib/components/vention-icon/svg/analytics.svg +3 -0
- package/src/lib/components/vention-icon/svg/angle.svg +3 -0
- package/src/lib/components/vention-icon/svg/apps-2.svg +6 -0
- package/src/lib/components/vention-icon/svg/apps.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-both.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-to-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-to-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-to-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-to-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-bar-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-big-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-big-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-big-right-lines.svg +12 -0
- package/src/lib/components/vention-icon/svg/arrow-big-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-big-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-left-from-arc.svg +12 -0
- package/src/lib/components/vention-icon/svg/arrow-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-narrow-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-narrow-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-narrow-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-narrow-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrow-up-right.svg +4 -0
- package/src/lib/components/vention-icon/svg/arrows-diagonal-minimize-1.svg +6 -0
- package/src/lib/components/vention-icon/svg/arrows-diagonal.svg +6 -0
- package/src/lib/components/vention-icon/svg/arrows-diff.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrows-exchange-1.svg +4 -0
- package/src/lib/components/vention-icon/svg/arrows-exchange.svg +4 -0
- package/src/lib/components/vention-icon/svg/arrows-maximize.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrows-minimize.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrows-move.svg +3 -0
- package/src/lib/components/vention-icon/svg/arrows-right-left.svg +13 -0
- package/src/lib/components/vention-icon/svg/assembly.svg +4 -0
- package/src/lib/components/vention-icon/svg/asset.svg +3 -0
- package/src/lib/components/vention-icon/svg/axis.svg +3 -0
- package/src/lib/components/vention-icon/svg/belt-actuator-2.svg +5 -0
- package/src/lib/components/vention-icon/svg/belt-actuator-3.svg +6 -0
- package/src/lib/components/vention-icon/svg/belt-actuator.svg +5 -0
- package/src/lib/components/vention-icon/svg/binary-tree-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/binary-tree.svg +3 -0
- package/src/lib/components/vention-icon/svg/binary.svg +3 -0
- package/src/lib/components/vention-icon/svg/blend.svg +3 -0
- package/src/lib/components/vention-icon/svg/bolt-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/bolt.svg +3 -0
- package/src/lib/components/vention-icon/svg/bomb.svg +3 -0
- package/src/lib/components/vention-icon/svg/book-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/book.svg +3 -0
- package/src/lib/components/vention-icon/svg/bookmark.svg +3 -0
- package/src/lib/components/vention-icon/svg/books.svg +3 -0
- package/src/lib/components/vention-icon/svg/braces.svg +3 -0
- package/src/lib/components/vention-icon/svg/brand-python.svg +3 -0
- package/src/lib/components/vention-icon/svg/bug.svg +3 -0
- package/src/lib/components/vention-icon/svg/building-broadcast-tower.svg +3 -0
- package/src/lib/components/vention-icon/svg/building-community.svg +3 -0
- package/src/lib/components/vention-icon/svg/building-factory-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/building-skyscraper.svg +3 -0
- package/src/lib/components/vention-icon/svg/building.svg +3 -0
- package/src/lib/components/vention-icon/svg/button-black.svg +3 -0
- package/src/lib/components/vention-icon/svg/button-white.svg +3 -0
- package/src/lib/components/vention-icon/svg/calendar-month.svg +3 -0
- package/src/lib/components/vention-icon/svg/camera.svg +4 -0
- package/src/lib/components/vention-icon/svg/capture.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-down-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-left-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-right-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-up-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/caret-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/category-filled.svg +13 -0
- package/src/lib/components/vention-icon/svg/category.svg +6 -0
- package/src/lib/components/vention-icon/svg/cell-signal-full.svg +3 -0
- package/src/lib/components/vention-icon/svg/cell-signal-low.svg +3 -0
- package/src/lib/components/vention-icon/svg/cell-signal-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/chart-dots-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/check.svg +3 -0
- package/src/lib/components/vention-icon/svg/checkbox.svg +5 -0
- package/src/lib/components/vention-icon/svg/checks.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevron-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevron-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevron-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevron-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevrons-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevrons-left.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevrons-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/chevrons-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-arrow-up.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-check-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-check.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-minus.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-plus.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-square.svg +4 -0
- package/src/lib/components/vention-icon/svg/circle-x-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/circle-x.svg +3 -0
- package/src/lib/components/vention-icon/svg/clock.svg +3 -0
- package/src/lib/components/vention-icon/svg/clockwise-1.svg +3 -0
- package/src/lib/components/vention-icon/svg/clockwise-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/close.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud-computing.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud-data-connection.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud-download-1.svg +5 -0
- package/src/lib/components/vention-icon/svg/cloud-download-off.svg +8 -0
- package/src/lib/components/vention-icon/svg/cloud-download.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud-upload.svg +3 -0
- package/src/lib/components/vention-icon/svg/cloud.svg +3 -0
- package/src/lib/components/vention-icon/svg/code.svg +3 -0
- package/src/lib/components/vention-icon/svg/command-do.svg +3 -0
- package/src/lib/components/vention-icon/svg/command-elif.svg +3 -0
- package/src/lib/components/vention-icon/svg/command-else.svg +3 -0
- package/src/lib/components/vention-icon/svg/command-if.svg +3 -0
- package/src/lib/components/vention-icon/svg/condition-tree.svg +3 -0
- package/src/lib/components/vention-icon/svg/confetti.svg +3 -0
- package/src/lib/components/vention-icon/svg/connection.svg +3 -0
- package/src/lib/components/vention-icon/svg/conveyor.svg +6 -0
- package/src/lib/components/vention-icon/svg/copy.svg +3 -0
- package/src/lib/components/vention-icon/svg/corner-up-left.svg +10 -0
- package/src/lib/components/vention-icon/svg/corner-up-right.svg +10 -0
- package/src/lib/components/vention-icon/svg/counterclockwise-1.svg +3 -0
- package/src/lib/components/vention-icon/svg/counterclockwise-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/cpu-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/cpu.svg +3 -0
- package/src/lib/components/vention-icon/svg/cube-plus.svg +3 -0
- package/src/lib/components/vention-icon/svg/cube-send.svg +3 -0
- package/src/lib/components/vention-icon/svg/cube.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-gear-fill.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-help-bold-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-help-bold.svg +5 -0
- package/src/lib/components/vention-icon/svg/custom-help-fill.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-help.svg +5 -0
- package/src/lib/components/vention-icon/svg/custom-info-1.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-info-bold-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/custom-info-bold.svg +5 -0
- package/src/lib/components/vention-icon/svg/custom-info.svg +5 -0
- package/src/lib/components/vention-icon/svg/custom-point-to-point.svg +5 -0
- package/src/lib/components/vention-icon/svg/custom-rocket-fat.svg +6 -0
- package/src/lib/components/vention-icon/svg/custom-rocket.svg +6 -0
- package/src/lib/components/vention-icon/svg/dashboard.svg +6 -0
- package/src/lib/components/vention-icon/svg/decline.svg +4 -0
- package/src/lib/components/vention-icon/svg/device-laptop.svg +3 -0
- package/src/lib/components/vention-icon/svg/device-tv.svg +3 -0
- package/src/lib/components/vention-icon/svg/devices-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/dimensions.svg +10 -0
- package/src/lib/components/vention-icon/svg/dots-vertical.svg +5 -0
- package/src/lib/components/vention-icon/svg/dots.svg +5 -0
- package/src/lib/components/vention-icon/svg/download-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/download.svg +3 -0
- package/src/lib/components/vention-icon/svg/edit.svg +3 -0
- package/src/lib/components/vention-icon/svg/electric-actuator.svg +5 -0
- package/src/lib/components/vention-icon/svg/exclamation-mark.svg +3 -0
- package/src/lib/components/vention-icon/svg/external-link.svg +3 -0
- package/src/lib/components/vention-icon/svg/eye-closed.svg +3 -0
- package/src/lib/components/vention-icon/svg/eye.svg +4 -0
- package/src/lib/components/vention-icon/svg/file-3-d.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-code.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-description.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-download.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-type-pdf.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-upload.svg +3 -0
- package/src/lib/components/vention-icon/svg/file-wrong.svg +13 -0
- package/src/lib/components/vention-icon/svg/file.svg +3 -0
- package/src/lib/components/vention-icon/svg/filter.svg +3 -0
- package/src/lib/components/vention-icon/svg/focus.svg +3 -0
- package/src/lib/components/vention-icon/svg/folder-open.svg +10 -0
- package/src/lib/components/vention-icon/svg/folder-plus-1.svg +12 -0
- package/src/lib/components/vention-icon/svg/folder.svg +3 -0
- package/src/lib/components/vention-icon/svg/frame-3.svg +3 -0
- package/src/lib/components/vention-icon/svg/function-icon.svg +3 -0
- package/src/lib/components/vention-icon/svg/git-branch-deleted.svg +3 -0
- package/src/lib/components/vention-icon/svg/git-branch.svg +3 -0
- package/src/lib/components/vention-icon/svg/git-compare.svg +3 -0
- package/src/lib/components/vention-icon/svg/git-fork.svg +3 -0
- package/src/lib/components/vention-icon/svg/git-merge.svg +3 -0
- package/src/lib/components/vention-icon/svg/gizmo.svg +3 -0
- package/src/lib/components/vention-icon/svg/graph.svg +3 -0
- package/src/lib/components/vention-icon/svg/grid-dots.svg +11 -0
- package/src/lib/components/vention-icon/svg/grip-horizontal.svg +8 -0
- package/src/lib/components/vention-icon/svg/grip-vertical.svg +8 -0
- package/src/lib/components/vention-icon/svg/gripper-1.svg +5 -0
- package/src/lib/components/vention-icon/svg/gripper-2.svg +5 -0
- package/src/lib/components/vention-icon/svg/hand-stop.svg +3 -0
- package/src/lib/components/vention-icon/svg/hash.svg +7 -0
- package/src/lib/components/vention-icon/svg/hb-menu.svg +3 -0
- package/src/lib/components/vention-icon/svg/headphones-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/headset-filled.svg +5 -0
- package/src/lib/components/vention-icon/svg/headset.svg +3 -0
- package/src/lib/components/vention-icon/svg/help-circle-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/help.svg +3 -0
- package/src/lib/components/vention-icon/svg/history-toggle.svg +3 -0
- package/src/lib/components/vention-icon/svg/history.svg +3 -0
- package/src/lib/components/vention-icon/svg/hmi.svg +6 -0
- package/src/lib/components/vention-icon/svg/home-2.svg +5 -0
- package/src/lib/components/vention-icon/svg/home-solid.svg +7 -0
- package/src/lib/components/vention-icon/svg/home.svg +3 -0
- package/src/lib/components/vention-icon/svg/hourglass-empty.svg +3 -0
- package/src/lib/components/vention-icon/svg/i-o.svg +6 -0
- package/src/lib/components/vention-icon/svg/icon-box-padding.svg +3 -0
- package/src/lib/components/vention-icon/svg/icon-components.svg +13 -0
- package/src/lib/components/vention-icon/svg/icon-nut.svg +4 -0
- package/src/lib/components/vention-icon/svg/icon-ruler-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/icon-square-rotated.svg +3 -0
- package/src/lib/components/vention-icon/svg/incline.svg +4 -0
- package/src/lib/components/vention-icon/svg/infinity.svg +3 -0
- package/src/lib/components/vention-icon/svg/info-circle-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/info-circle.svg +3 -0
- package/src/lib/components/vention-icon/svg/input-output.svg +11 -0
- package/src/lib/components/vention-icon/svg/io-link.svg +3 -0
- package/src/lib/components/vention-icon/svg/ipad-horizontal.svg +3 -0
- package/src/lib/components/vention-icon/svg/json.svg +3 -0
- package/src/lib/components/vention-icon/svg/lan.svg +3 -0
- package/src/lib/components/vention-icon/svg/language.svg +3 -0
- package/src/lib/components/vention-icon/svg/layout-sidebar-right.svg +4 -0
- package/src/lib/components/vention-icon/svg/legacy-axis.svg +4 -0
- package/src/lib/components/vention-icon/svg/legacy-robot.svg +3 -0
- package/src/lib/components/vention-icon/svg/letter-case.svg +3 -0
- package/src/lib/components/vention-icon/svg/line.svg +12 -0
- package/src/lib/components/vention-icon/svg/linear.svg +12 -0
- package/src/lib/components/vention-icon/svg/link.svg +3 -0
- package/src/lib/components/vention-icon/svg/list-check.svg +9 -0
- package/src/lib/components/vention-icon/svg/load-balancer.svg +3 -0
- package/src/lib/components/vention-icon/svg/lock.svg +3 -0
- package/src/lib/components/vention-icon/svg/logout.svg +3 -0
- package/src/lib/components/vention-icon/svg/machine-apps-headset.svg +4 -0
- package/src/lib/components/vention-icon/svg/machinelogic-2.svg +7 -0
- package/src/lib/components/vention-icon/svg/magnet.svg +5 -0
- package/src/lib/components/vention-icon/svg/mail-fast.svg +3 -0
- package/src/lib/components/vention-icon/svg/mail.svg +3 -0
- package/src/lib/components/vention-icon/svg/mailbox.svg +3 -0
- package/src/lib/components/vention-icon/svg/math-equal-greater.svg +3 -0
- package/src/lib/components/vention-icon/svg/math-equal-lower.svg +3 -0
- package/src/lib/components/vention-icon/svg/maximize.svg +3 -0
- package/src/lib/components/vention-icon/svg/menu-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/menu-waffle.svg +11 -0
- package/src/lib/components/vention-icon/svg/menu.svg +3 -0
- package/src/lib/components/vention-icon/svg/merge.svg +3 -0
- package/src/lib/components/vention-icon/svg/message-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/message-chatbot.svg +3 -0
- package/src/lib/components/vention-icon/svg/message-circle-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/message-circle.svg +3 -0
- package/src/lib/components/vention-icon/svg/message-dots.svg +3 -0
- package/src/lib/components/vention-icon/svg/message.svg +3 -0
- package/src/lib/components/vention-icon/svg/messages.svg +3 -0
- package/src/lib/components/vention-icon/svg/microphone.svg +3 -0
- package/src/lib/components/vention-icon/svg/minus-vertical.svg +3 -0
- package/src/lib/components/vention-icon/svg/minus.svg +3 -0
- package/src/lib/components/vention-icon/svg/mirror-flip-horizontal.svg +3 -0
- package/src/lib/components/vention-icon/svg/mirror-flip-vertical.svg +3 -0
- package/src/lib/components/vention-icon/svg/module-1.svg +13 -0
- package/src/lib/components/vention-icon/svg/module-2.svg +9 -0
- package/src/lib/components/vention-icon/svg/module-3.svg +6 -0
- package/src/lib/components/vention-icon/svg/module-4.svg +4 -0
- package/src/lib/components/vention-icon/svg/motor-1.svg +9 -0
- package/src/lib/components/vention-icon/svg/motor-2.svg +9 -0
- package/src/lib/components/vention-icon/svg/motor-3.svg +16 -0
- package/src/lib/components/vention-icon/svg/motor-4.svg +3 -0
- package/src/lib/components/vention-icon/svg/motor-5.svg +5 -0
- package/src/lib/components/vention-icon/svg/move-to-ground.svg +3 -0
- package/src/lib/components/vention-icon/svg/movie.svg +3 -0
- package/src/lib/components/vention-icon/svg/multiplier.svg +12 -0
- package/src/lib/components/vention-icon/svg/music.svg +3 -0
- package/src/lib/components/vention-icon/svg/network-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/network-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/network.svg +3 -0
- package/src/lib/components/vention-icon/svg/number-1.svg +10 -0
- package/src/lib/components/vention-icon/svg/number-2.svg +10 -0
- package/src/lib/components/vention-icon/svg/number-3.svg +11 -0
- package/src/lib/components/vention-icon/svg/number-4.svg +10 -0
- package/src/lib/components/vention-icon/svg/operator.svg +6 -0
- package/src/lib/components/vention-icon/svg/pdf.svg +3 -0
- package/src/lib/components/vention-icon/svg/phone-call.svg +3 -0
- package/src/lib/components/vention-icon/svg/phone-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/phone.svg +3 -0
- package/src/lib/components/vention-icon/svg/photo.svg +3 -0
- package/src/lib/components/vention-icon/svg/pinned.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-pause.svg +4 -0
- package/src/lib/components/vention-icon/svg/player-play-filled.svg +10 -0
- package/src/lib/components/vention-icon/svg/player-play.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-record.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-skip-back.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-skip-forward.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-stop-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-stop.svg +3 -0
- package/src/lib/components/vention-icon/svg/player-track-next.svg +4 -0
- package/src/lib/components/vention-icon/svg/player-track-prev.svg +4 -0
- package/src/lib/components/vention-icon/svg/plug-x.svg +3 -0
- package/src/lib/components/vention-icon/svg/plug.svg +3 -0
- package/src/lib/components/vention-icon/svg/plus.svg +3 -0
- package/src/lib/components/vention-icon/svg/pneumatic.svg +7 -0
- package/src/lib/components/vention-icon/svg/point-to-point-3.svg +4 -0
- package/src/lib/components/vention-icon/svg/point-to-point-check.svg +13 -0
- package/src/lib/components/vention-icon/svg/power.svg +3 -0
- package/src/lib/components/vention-icon/svg/programming.svg +5 -0
- package/src/lib/components/vention-icon/svg/pushbutton.svg +3 -0
- package/src/lib/components/vention-icon/svg/receipt-dollar.svg +3 -0
- package/src/lib/components/vention-icon/svg/receipt.svg +4 -0
- package/src/lib/components/vention-icon/svg/reference-frame-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/reference-frame.svg +8 -0
- package/src/lib/components/vention-icon/svg/refresh-alert.svg +3 -0
- package/src/lib/components/vention-icon/svg/refresh-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/refresh.svg +3 -0
- package/src/lib/components/vention-icon/svg/reload.svg +3 -0
- package/src/lib/components/vention-icon/svg/repeat.svg +3 -0
- package/src/lib/components/vention-icon/svg/rewind-backward-15.svg +13 -0
- package/src/lib/components/vention-icon/svg/rewind-forward-15.svg +13 -0
- package/src/lib/components/vention-icon/svg/robot-arm-2.svg +8 -0
- package/src/lib/components/vention-icon/svg/robot-arm-duotone-2.svg +8 -0
- package/src/lib/components/vention-icon/svg/robot-arm.svg +10 -0
- package/src/lib/components/vention-icon/svg/robot-face.svg +3 -0
- package/src/lib/components/vention-icon/svg/rotary.svg +5 -0
- package/src/lib/components/vention-icon/svg/route-square.svg +3 -0
- package/src/lib/components/vention-icon/svg/row-insert-bottom.svg +3 -0
- package/src/lib/components/vention-icon/svg/row-insert-top.svg +3 -0
- package/src/lib/components/vention-icon/svg/ruler-measure-2.svg +18 -0
- package/src/lib/components/vention-icon/svg/ruler.svg +3 -0
- package/src/lib/components/vention-icon/svg/save.svg +3 -0
- package/src/lib/components/vention-icon/svg/search.svg +3 -0
- package/src/lib/components/vention-icon/svg/selector.svg +3 -0
- package/src/lib/components/vention-icon/svg/send.svg +3 -0
- package/src/lib/components/vention-icon/svg/sensor.svg +5 -0
- package/src/lib/components/vention-icon/svg/sensor1.svg +6 -0
- package/src/lib/components/vention-icon/svg/sensor2.svg +6 -0
- package/src/lib/components/vention-icon/svg/sequence.svg +13 -0
- package/src/lib/components/vention-icon/svg/setting-automation.svg +5 -0
- package/src/lib/components/vention-icon/svg/settings-2.svg +4 -0
- package/src/lib/components/vention-icon/svg/settings-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/settings.svg +4 -0
- package/src/lib/components/vention-icon/svg/shield-code.svg +5 -0
- package/src/lib/components/vention-icon/svg/shield-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/shield-half.svg +3 -0
- package/src/lib/components/vention-icon/svg/shield.svg +3 -0
- package/src/lib/components/vention-icon/svg/shopping-bag.svg +3 -0
- package/src/lib/components/vention-icon/svg/shopping-cart-filled.svg +3 -0
- package/src/lib/components/vention-icon/svg/shopping-cart.svg +3 -0
- package/src/lib/components/vention-icon/svg/show-3d.svg +11 -0
- package/src/lib/components/vention-icon/svg/sitemap-1.svg +3 -0
- package/src/lib/components/vention-icon/svg/sitemap.svg +3 -0
- package/src/lib/components/vention-icon/svg/slash.svg +3 -0
- package/src/lib/components/vention-icon/svg/speedtest.svg +3 -0
- package/src/lib/components/vention-icon/svg/sphere.svg +3 -0
- package/src/lib/components/vention-icon/svg/square-number-0.svg +4 -0
- package/src/lib/components/vention-icon/svg/square-number-1.svg +4 -0
- package/src/lib/components/vention-icon/svg/square-number-2.svg +4 -0
- package/src/lib/components/vention-icon/svg/square-number-3.svg +4 -0
- package/src/lib/components/vention-icon/svg/stack.svg +3 -0
- package/src/lib/components/vention-icon/svg/star.svg +3 -0
- package/src/lib/components/vention-icon/svg/state-machine.svg +4 -0
- package/src/lib/components/vention-icon/svg/status-danger-hmi.svg +3 -0
- package/src/lib/components/vention-icon/svg/status-small.svg +3 -0
- package/src/lib/components/vention-icon/svg/status-warning-hmi.svg +3 -0
- package/src/lib/components/vention-icon/svg/stopwatch.svg +13 -0
- package/src/lib/components/vention-icon/svg/subtask.svg +3 -0
- package/src/lib/components/vention-icon/svg/switch-horizontal.svg +6 -0
- package/src/lib/components/vention-icon/svg/switch-vertical.svg +3 -0
- package/src/lib/components/vention-icon/svg/tag.svg +4 -0
- package/src/lib/components/vention-icon/svg/target.svg +5 -0
- package/src/lib/components/vention-icon/svg/template.svg +14 -0
- package/src/lib/components/vention-icon/svg/terminal-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/terminal.svg +3 -0
- package/src/lib/components/vention-icon/svg/text-plus-1.svg +15 -0
- package/src/lib/components/vention-icon/svg/timeline.svg +3 -0
- package/src/lib/components/vention-icon/svg/tiny-caret-down.svg +3 -0
- package/src/lib/components/vention-icon/svg/tiny-caret-right.svg +3 -0
- package/src/lib/components/vention-icon/svg/tool-1.svg +3 -0
- package/src/lib/components/vention-icon/svg/tool.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-bus.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-complex.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-full-hierarchy.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-full.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-ring-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-ring-3.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-ring.svg +3 -0
- package/src/lib/components/vention-icon/svg/topology-star-3.svg +3 -0
- package/src/lib/components/vention-icon/svg/trash.svg +3 -0
- package/src/lib/components/vention-icon/svg/trending-up.svg +11 -0
- package/src/lib/components/vention-icon/svg/truck-delivery.svg +3 -0
- package/src/lib/components/vention-icon/svg/truck-loading.svg +3 -0
- package/src/lib/components/vention-icon/svg/un-pinned.svg +4 -0
- package/src/lib/components/vention-icon/svg/unlink.svg +3 -0
- package/src/lib/components/vention-icon/svg/update.svg +11 -0
- package/src/lib/components/vention-icon/svg/upload.svg +3 -0
- package/src/lib/components/vention-icon/svg/user-circle.svg +5 -0
- package/src/lib/components/vention-icon/svg/user-off.svg +6 -0
- package/src/lib/components/vention-icon/svg/user-plus.svg +3 -0
- package/src/lib/components/vention-icon/svg/user-shield.svg +6 -0
- package/src/lib/components/vention-icon/svg/user.svg +3 -0
- package/src/lib/components/vention-icon/svg/users-plus.svg +3 -0
- package/src/lib/components/vention-icon/svg/users.svg +3 -0
- package/src/lib/components/vention-icon/svg/variable.svg +3 -0
- package/src/lib/components/vention-icon/svg/vention.svg +3 -0
- package/src/lib/components/vention-icon/svg/versions.svg +3 -0
- package/src/lib/components/vention-icon/svg/video.svg +4 -0
- package/src/lib/components/vention-icon/svg/web-link.svg +3 -0
- package/src/lib/components/vention-icon/svg/weight-2.svg +3 -0
- package/src/lib/components/vention-icon/svg/weight.svg +4 -0
- package/src/lib/components/vention-icon/svg/wifi-low.svg +3 -0
- package/src/lib/components/vention-icon/svg/wifi-lowest.svg +3 -0
- package/src/lib/components/vention-icon/svg/wifi-off.svg +3 -0
- package/src/lib/components/vention-icon/svg/wifi.svg +3 -0
- package/src/lib/components/vention-icon/svg/world-download.svg +3 -0
- package/src/lib/components/vention-icon/svg/world.svg +3 -0
- package/src/lib/components/vention-icon/svg/xyz-1.svg +5 -0
- package/src/lib/components/vention-icon/svg/xyz-2.svg +5 -0
- package/src/lib/components/vention-icon/svgo.config.js +19 -0
- package/src/lib/components/vention-icon/svgr-duotone.config.js +13 -0
- package/src/lib/components/vention-icon/svgr.config.js +11 -0
- package/src/lib/components/vention-icon/vention-icon.stories.tsx +63 -0
- package/src/lib/components/vention-icon/vention-icon.test.tsx +62 -0
- package/src/lib/components/vention-icon/vention-icon.tsx +62 -0
- package/src/lib/components/vention-link/vention-link.stories.tsx +20 -0
- package/src/lib/components/vention-link/vention-link.test.tsx +44 -0
- package/src/lib/components/vention-link/vention-link.tsx +88 -0
- package/src/lib/components/vention-menu/vention-menu-context.ts +13 -0
- package/src/lib/components/vention-menu/vention-menu-item/vention-menu-child-item.tsx +104 -0
- package/src/lib/components/vention-menu/vention-menu-item/vention-menu-divider.tsx +33 -0
- package/src/lib/components/vention-menu/vention-menu-item/vention-menu-header.tsx +30 -0
- package/src/lib/components/vention-menu/vention-menu-item/vention-menu-item.tsx +25 -0
- package/src/lib/components/vention-menu/vention-menu-item/vention-menu-parent-item.tsx +84 -0
- package/src/lib/components/vention-menu/vention-menu-list.tsx +66 -0
- package/src/lib/components/vention-menu/vention-menu-styling-helpers.ts +151 -0
- package/src/lib/components/vention-menu/vention-menu.stories.tsx +119 -0
- package/src/lib/components/vention-menu/vention-menu.test.tsx +234 -0
- package/src/lib/components/vention-menu/vention-menu.tsx +44 -0
- package/src/lib/components/vention-modal/vention-modal.stories.tsx +204 -0
- package/src/lib/components/vention-modal/vention-modal.test.tsx +181 -0
- package/src/lib/components/vention-modal/vention-modal.tsx +232 -0
- package/src/lib/components/vention-modal-banner/vention-modal-banner.test.tsx +104 -0
- package/src/lib/components/vention-modal-banner/vention-modal-banner.tsx +120 -0
- package/src/lib/components/vention-modal-banner/vention-modal.banner.stories.tsx +138 -0
- package/src/lib/components/vention-modal-base/vention-modal-base.stories.tsx +95 -0
- package/src/lib/components/vention-modal-base/vention-modal-base.test.tsx +117 -0
- package/src/lib/components/vention-modal-base/vention-modal-base.tsx +149 -0
- package/src/lib/components/vention-popover/vention-popover.stories.tsx +30 -0
- package/src/lib/components/vention-popover/vention-popover.test.tsx +148 -0
- package/src/lib/components/vention-popover/vention-popover.tsx +211 -0
- package/src/lib/components/vention-progress-bar/vention-progress-bar.stories.tsx +84 -0
- package/src/lib/components/vention-progress-bar/vention-progress-bar.test.tsx +102 -0
- package/src/lib/components/vention-progress-bar/vention-progress-bar.tsx +119 -0
- package/src/lib/components/vention-radio/radio-model.ts +77 -0
- package/src/lib/components/vention-radio/vention-radio-tile/vention-radio-tile-control.tsx +38 -0
- package/src/lib/components/vention-radio/vention-radio-tile/vention-radio-tile-label.tsx +52 -0
- package/src/lib/components/vention-radio/vention-radio-tile/vention-radio-tile.stories.tsx +67 -0
- package/src/lib/components/vention-radio/vention-radio-tile/vention-radio-tile.test.tsx +88 -0
- package/src/lib/components/vention-radio/vention-radio-tile/vention-radio-tile.tsx +159 -0
- package/src/lib/components/vention-radio/vention-radio.stories.tsx +62 -0
- package/src/lib/components/vention-radio/vention-radio.test.tsx +90 -0
- package/src/lib/components/vention-radio/vention-radio.tsx +174 -0
- package/src/lib/components/vention-select/vention-select.stories.tsx +224 -0
- package/src/lib/components/vention-select/vention-select.test.tsx +348 -0
- package/src/lib/components/vention-select/vention-select.tsx +295 -0
- package/src/lib/components/vention-sidebar-item/vention-sidebar-item.stories.tsx +27 -0
- package/src/lib/components/vention-sidebar-item/vention-sidebar-item.test.tsx +45 -0
- package/src/lib/components/vention-sidebar-item/vention-sidebar-item.tsx +82 -0
- package/src/lib/components/vention-slider/vention-slider.stories.tsx +65 -0
- package/src/lib/components/vention-slider/vention-slider.test.tsx +35 -0
- package/src/lib/components/vention-slider/vention-slider.tsx +74 -0
- package/src/lib/components/vention-spinner/vention-spinner.test.tsx +176 -0
- package/src/lib/components/vention-spinner/vention-spinner.tsx +213 -0
- package/src/lib/components/vention-spinner/vention.spinner.stories.tsx +67 -0
- package/src/lib/components/vention-status-dot/vention-status-dot.stories.tsx +24 -0
- package/src/lib/components/vention-status-dot/vention-status-dot.test.tsx +44 -0
- package/src/lib/components/vention-status-dot/vention-status-dot.tsx +52 -0
- package/src/lib/components/vention-status-indicator/vention-status-indicator.stories.tsx +49 -0
- package/src/lib/components/vention-status-indicator/vention-status-indicator.test.tsx +50 -0
- package/src/lib/components/vention-status-indicator/vention-status-indicator.tsx +205 -0
- package/src/lib/components/vention-stepper/vention-stepper.stories.tsx +141 -0
- package/src/lib/components/vention-stepper/vention-stepper.test.tsx +55 -0
- package/src/lib/components/vention-stepper/vention-stepper.tsx +127 -0
- package/src/lib/components/vention-steps/vention-steps.stories.tsx +45 -0
- package/src/lib/components/vention-steps/vention-steps.test.tsx +144 -0
- package/src/lib/components/vention-steps/vention-steps.tsx +305 -0
- package/src/lib/components/vention-switch/vention-switch.stories.tsx +48 -0
- package/src/lib/components/vention-switch/vention-switch.test.tsx +118 -0
- package/src/lib/components/vention-switch/vention-switch.tsx +189 -0
- package/src/lib/components/vention-tabs/vention-tabs.stories.tsx +28 -0
- package/src/lib/components/vention-tabs/vention-tabs.test.tsx +40 -0
- package/src/lib/components/vention-tabs/vention-tabs.tsx +61 -0
- package/src/lib/components/vention-text-input/vention-text-input.stories.tsx +203 -0
- package/src/lib/components/vention-text-input/vention-text-input.test.tsx +635 -0
- package/src/lib/components/vention-text-input/vention-text-input.tsx +205 -0
- package/src/lib/components/vention-tooltip/vention-tooltip.stories.tsx +25 -0
- package/src/lib/components/vention-tooltip/vention-tooltip.test.tsx +19 -0
- package/src/lib/components/vention-tooltip/vention-tooltip.tsx +53 -0
- package/src/lib/components/vention-tree-item/vention-collapsible-caret-button.tsx +42 -0
- package/src/lib/components/vention-tree-item/vention-tree-item.stories.tsx +618 -0
- package/src/lib/components/vention-tree-item/vention-tree-item.test.tsx +561 -0
- package/src/lib/components/vention-tree-item/vention-tree-item.tsx +401 -0
- package/src/lib/components/vention-uploadfile/vention-uploadfile-utils.tsx +115 -0
- package/src/lib/components/vention-uploadfile/vention-uploadfile.stories.tsx +69 -0
- package/src/lib/components/vention-uploadfile/vention-uploadfile.test.tsx +88 -0
- package/src/lib/components/vention-uploadfile/vention-uploadfile.tsx +122 -0
- package/src/lib/testing/utils.tsx +26 -0
- package/src/lib/theme/colors.ts +80 -0
- package/src/lib/theme/machine-ui-theme.ts +718 -0
- package/src/lib/theme/typography.ts +188 -0
- package/src/lib/utilities.ts +15 -0
- package/src/scripts/generate-icon-types.test.ts +91 -0
- package/src/scripts/generate-icon-types.ts +97 -0
- package/tsconfig.icon-generator.json +10 -0
- package/tsconfig.json +24 -0
- package/tsconfig.lib.json +23 -0
- package/tsconfig.spec.json +20 -0
- package/tsconfig.storybook.json +33 -0
- package/tsconfig.types.json +9 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import "@testing-library/jest-dom"
|
|
2
|
+
|
|
3
|
+
import { areElementsInDOM, renderWithTheme } from "../../testing/utils"
|
|
4
|
+
import { COLORS } from "../../theme/colors"
|
|
5
|
+
import { VentionSpinner } from "./vention-spinner"
|
|
6
|
+
|
|
7
|
+
describe("<VentionSpinner />", () => {
|
|
8
|
+
it("should show spinner with type progress", () => {
|
|
9
|
+
const spinnerValue = 45
|
|
10
|
+
|
|
11
|
+
const { queryByTestId } = renderWithTheme(<VentionSpinner type="progress" value={spinnerValue} color={COLORS.blue[50]} />)
|
|
12
|
+
|
|
13
|
+
const { backgroundSpinner, mainSpinner, successIcon, errorIcon } = getElementsOfInterest(queryByTestId)
|
|
14
|
+
|
|
15
|
+
areElementsInDOM([
|
|
16
|
+
{ element: backgroundSpinner, isInDOM: true },
|
|
17
|
+
{ element: mainSpinner, isInDOM: true },
|
|
18
|
+
{ element: successIcon, isInDOM: false },
|
|
19
|
+
{ element: errorIcon, isInDOM: false },
|
|
20
|
+
])
|
|
21
|
+
|
|
22
|
+
expect(backgroundSpinner).toHaveStyle(`color: ${COLORS.slate[200]}`)
|
|
23
|
+
expect(backgroundSpinner).toHaveAttribute("aria-valuenow", "100")
|
|
24
|
+
|
|
25
|
+
expect(mainSpinner).toHaveClass("MuiCircularProgress-determinate")
|
|
26
|
+
expect(mainSpinner).toHaveAttribute("aria-valuenow", spinnerValue.toString())
|
|
27
|
+
expect(mainSpinner).toHaveStyle(`color: ${COLORS.blue[50]}`)
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it("should show spinner with type indeterminate", () => {
|
|
31
|
+
const { queryByTestId } = renderWithTheme(<VentionSpinner type="indeterminate" />)
|
|
32
|
+
|
|
33
|
+
const { backgroundSpinner, mainSpinner, successIcon, errorIcon } = getElementsOfInterest(queryByTestId)
|
|
34
|
+
|
|
35
|
+
areElementsInDOM([
|
|
36
|
+
{ element: backgroundSpinner, isInDOM: false },
|
|
37
|
+
{ element: mainSpinner, isInDOM: true },
|
|
38
|
+
{ element: successIcon, isInDOM: false },
|
|
39
|
+
{ element: errorIcon, isInDOM: false },
|
|
40
|
+
])
|
|
41
|
+
|
|
42
|
+
expect(mainSpinner).toHaveClass("MuiCircularProgress-indeterminate")
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
it("should show spinner with type success", () => {
|
|
46
|
+
const { queryByTestId } = renderWithTheme(<VentionSpinner type="success" />)
|
|
47
|
+
|
|
48
|
+
const { backgroundSpinner, mainSpinner, successIcon, errorIcon, spinnerContainer } = getElementsOfInterest(queryByTestId)
|
|
49
|
+
|
|
50
|
+
areElementsInDOM([
|
|
51
|
+
{ element: backgroundSpinner, isInDOM: false },
|
|
52
|
+
{ element: mainSpinner, isInDOM: false },
|
|
53
|
+
{ element: successIcon, isInDOM: true },
|
|
54
|
+
{ element: errorIcon, isInDOM: false },
|
|
55
|
+
])
|
|
56
|
+
|
|
57
|
+
expect(spinnerContainer).toHaveStyle(`background-color: ${COLORS.green[500]}`)
|
|
58
|
+
expect(successIcon).toHaveClass("tabler-icon-check")
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("should show spinner with type error", () => {
|
|
62
|
+
const { queryByTestId } = renderWithTheme(<VentionSpinner type="error" />)
|
|
63
|
+
|
|
64
|
+
const { backgroundSpinner, mainSpinner, successIcon, errorIcon, spinnerContainer } = getElementsOfInterest(queryByTestId)
|
|
65
|
+
|
|
66
|
+
areElementsInDOM([
|
|
67
|
+
{ element: backgroundSpinner, isInDOM: false },
|
|
68
|
+
{ element: mainSpinner, isInDOM: false },
|
|
69
|
+
{ element: successIcon, isInDOM: false },
|
|
70
|
+
{ element: errorIcon, isInDOM: true },
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
expect(spinnerContainer).toHaveStyle(`background-color: ${COLORS.red[500]}`)
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it("should show spinner colored spinner", () => {
|
|
77
|
+
const { queryByTestId } = renderWithTheme(<VentionSpinner colored />)
|
|
78
|
+
const { mainSpinner } = getElementsOfInterest(queryByTestId)
|
|
79
|
+
expect(mainSpinner).toHaveStyle(`color: ${COLORS.blue[500]}`)
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
it("should show spinner with label", () => {
|
|
83
|
+
const label = "Loading..."
|
|
84
|
+
const { getByText } = renderWithTheme(<VentionSpinner label={label} />)
|
|
85
|
+
getByText(label)
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
it("should show filled icon with huge error spinner", () => {
|
|
89
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="error" size="x-large" />)
|
|
90
|
+
const hugeIcon = getByTestId("errorIcon")
|
|
91
|
+
|
|
92
|
+
expect(hugeIcon).toHaveClass("tabler-icon-alert-triangle-filled")
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
it("should show filled icon with large error spinner", () => {
|
|
96
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="error" size="large" />)
|
|
97
|
+
const largeIcon = getByTestId("errorIcon")
|
|
98
|
+
|
|
99
|
+
expect(largeIcon).toHaveClass("tabler-icon-alert-triangle-filled")
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
it("should show filled icon with medium error spinner", () => {
|
|
103
|
+
const { getByTestId: getMediumIcon } = renderWithTheme(<VentionSpinner type="error" size="medium" />)
|
|
104
|
+
const mediumIcon = getMediumIcon("errorIcon")
|
|
105
|
+
|
|
106
|
+
expect(mediumIcon).toHaveClass("tabler-icon-alert-triangle-filled")
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
it("should show red outlined icon with small and tiny error spinner", () => {
|
|
110
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="error" size="small" />)
|
|
111
|
+
const smallIcon = getByTestId("errorIcon")
|
|
112
|
+
|
|
113
|
+
expect(smallIcon).toHaveClass("tabler-icon-alert-triangle")
|
|
114
|
+
expect(smallIcon).toHaveStyle(`color: ${COLORS.red[500]}`)
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
it("should show red outlined icon with tiny error spinner", () => {
|
|
118
|
+
const { getByTestId: getTinyIcon } = renderWithTheme(<VentionSpinner type="error" size="x-small" />)
|
|
119
|
+
const tinyIcon = getTinyIcon("errorIcon")
|
|
120
|
+
|
|
121
|
+
expect(tinyIcon).toHaveClass("tabler-icon-alert-triangle")
|
|
122
|
+
expect(tinyIcon).toHaveStyle(`color: ${COLORS.red[500]}`)
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
it("should show exclamation icon with extra tiny error spinner", () => {
|
|
126
|
+
const { getByTestId: getExtraTinyIcon } = renderWithTheme(<VentionSpinner type="error" size="xx-small" />)
|
|
127
|
+
const extraTinyIcon = getExtraTinyIcon("errorIcon")
|
|
128
|
+
|
|
129
|
+
expect(extraTinyIcon).toHaveClass("tabler-icon-exclamation-mark")
|
|
130
|
+
expect(extraTinyIcon).toHaveStyle(`color: ${COLORS.red[500]}`)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
it("should show white icon for huge success spinner", () => {
|
|
134
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="x-large" />)
|
|
135
|
+
const hugeIcon = getByTestId("successIcon")
|
|
136
|
+
expect(hugeIcon).toHaveStyle(`color: white`)
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
it("should show white icon for large success spinner", () => {
|
|
140
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="large" />)
|
|
141
|
+
const largeIcon = getByTestId("successIcon")
|
|
142
|
+
expect(largeIcon).toHaveStyle(`color: white`)
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
it("should show white icon for medium success spinner", () => {
|
|
146
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="medium" />)
|
|
147
|
+
const mediumIcon = getByTestId("successIcon")
|
|
148
|
+
expect(mediumIcon).toHaveStyle(`color: white`)
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it("should show green icon for small success spinner", () => {
|
|
152
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="small" />)
|
|
153
|
+
const smallIcon = getByTestId("successIcon")
|
|
154
|
+
expect(smallIcon).toHaveStyle(`color: ${COLORS.green[500]}`)
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
it("should show green icon for tiny success spinner", () => {
|
|
158
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="x-small" />)
|
|
159
|
+
const tinyIcon = getByTestId("successIcon")
|
|
160
|
+
expect(tinyIcon).toHaveStyle(`color: ${COLORS.green[500]}`)
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
it("should show green icon for extra-tiny success spinner", () => {
|
|
164
|
+
const { getByTestId } = renderWithTheme(<VentionSpinner type="success" size="xx-small" />)
|
|
165
|
+
const extraTinyIcon = getByTestId("successIcon")
|
|
166
|
+
expect(extraTinyIcon).toHaveStyle(`color: ${COLORS.green[500]}`)
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
|
|
170
|
+
const getElementsOfInterest = (queryByTestId: (testId: string) => HTMLElement) => ({
|
|
171
|
+
backgroundSpinner: queryByTestId("backgroundSpinner"),
|
|
172
|
+
mainSpinner: queryByTestId("mainSpinner"),
|
|
173
|
+
successIcon: queryByTestId("successIcon"),
|
|
174
|
+
errorIcon: queryByTestId("errorIcon"),
|
|
175
|
+
spinnerContainer: queryByTestId("spinnerContainer"),
|
|
176
|
+
})
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { Theme, Typography } from "@mui/material"
|
|
2
|
+
import Box from "@mui/material/Box"
|
|
3
|
+
import CircularProgress from "@mui/material/CircularProgress"
|
|
4
|
+
import { IconAlertTriangle, IconAlertTriangleFilled, IconCheck, IconExclamationMark } from "@tabler/icons-react"
|
|
5
|
+
import { Sizes, StrictExtract } from "../../theme/machine-ui-theme"
|
|
6
|
+
|
|
7
|
+
import { tss } from "tss-react/mui"
|
|
8
|
+
|
|
9
|
+
export interface VentionSpinnerProps {
|
|
10
|
+
type?: "progress" | "indeterminate" | "success" | "error"
|
|
11
|
+
value?: number
|
|
12
|
+
size?: StrictExtract<Sizes, "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large">
|
|
13
|
+
colored?: boolean
|
|
14
|
+
label?: string
|
|
15
|
+
color?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const defaultProps: Partial<VentionSpinnerProps> = {
|
|
19
|
+
type: "indeterminate",
|
|
20
|
+
value: 0,
|
|
21
|
+
size: "medium",
|
|
22
|
+
colored: false,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const VentionSpinner = (props: VentionSpinnerProps) => {
|
|
26
|
+
const { classes } = useStyles({ size: props.size, colored: props.colored, type: props.type, color: props.color })
|
|
27
|
+
|
|
28
|
+
const isSpinningState = props.type === "progress" || props.type === "indeterminate"
|
|
29
|
+
const spinnerContainerClass = isSpinningState ? classes.spinnerContainer : classes.statusContainer
|
|
30
|
+
const { size: spinnerSize, thickness, iconSize } = SPINNER_SIZES[props.size]
|
|
31
|
+
const iconProperties = {
|
|
32
|
+
stroke: 2,
|
|
33
|
+
size: iconSize,
|
|
34
|
+
}
|
|
35
|
+
const successIconProperties = {
|
|
36
|
+
...iconProperties,
|
|
37
|
+
"data-testid": "successIcon",
|
|
38
|
+
}
|
|
39
|
+
const errorIconProperties = {
|
|
40
|
+
...iconProperties,
|
|
41
|
+
"data-testid": "errorIcon",
|
|
42
|
+
}
|
|
43
|
+
const spinnerProperties = {
|
|
44
|
+
size: spinnerSize,
|
|
45
|
+
thickness,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<Box className={classes.container}>
|
|
50
|
+
<Box className={spinnerContainerClass} data-testid="spinnerContainer">
|
|
51
|
+
{props.type === "progress" && (
|
|
52
|
+
<CircularProgress
|
|
53
|
+
className={classes.backgroundCircle}
|
|
54
|
+
variant="determinate"
|
|
55
|
+
value={100}
|
|
56
|
+
data-testid="backgroundSpinner"
|
|
57
|
+
{...spinnerProperties}
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
60
|
+
{isSpinningState && (
|
|
61
|
+
<CircularProgress
|
|
62
|
+
className={classes.main}
|
|
63
|
+
variant={props.type === "indeterminate" ? "indeterminate" : "determinate"}
|
|
64
|
+
value={props.value}
|
|
65
|
+
data-testid="mainSpinner"
|
|
66
|
+
{...spinnerProperties}
|
|
67
|
+
/>
|
|
68
|
+
)}
|
|
69
|
+
{props.type === "success" && <IconCheck {...successIconProperties} />}
|
|
70
|
+
{props.type === "error" && spinnerSize > SPINNER_SIZES.small.size && <IconAlertTriangleFilled {...errorIconProperties} />}
|
|
71
|
+
{props.type === "error" && (props.size === "small" || props.size === "x-small") && <IconAlertTriangle {...errorIconProperties} />}
|
|
72
|
+
{props.type === "error" && props.size === "xx-small" && <IconExclamationMark {...errorIconProperties} />}
|
|
73
|
+
</Box>
|
|
74
|
+
{props.label && (
|
|
75
|
+
<Typography variant="uiText14Regular" align="center">
|
|
76
|
+
{props.label}
|
|
77
|
+
</Typography>
|
|
78
|
+
)}
|
|
79
|
+
</Box>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const useStyles = tss
|
|
84
|
+
.withParams<Pick<VentionSpinnerProps, "type" | "size" | "colored" | "color">>()
|
|
85
|
+
.create(({ size, colored, color, type, theme }) => {
|
|
86
|
+
const containerSize = {
|
|
87
|
+
width: SPINNER_SIZES[size].size,
|
|
88
|
+
height: SPINNER_SIZES[size].size,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const { statusContainerColor, statusIconColor, mainSpinnerColor, statusTextColor } = getColors(
|
|
92
|
+
type,
|
|
93
|
+
colored,
|
|
94
|
+
color,
|
|
95
|
+
SPINNER_SIZES[size].size > SPINNER_SIZES.small.size,
|
|
96
|
+
theme
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
main: {
|
|
101
|
+
color: mainSpinnerColor,
|
|
102
|
+
position: "absolute",
|
|
103
|
+
left: 0,
|
|
104
|
+
},
|
|
105
|
+
backgroundCircle: {
|
|
106
|
+
color: theme.palette.background.surface3,
|
|
107
|
+
position: "absolute",
|
|
108
|
+
left: 0,
|
|
109
|
+
},
|
|
110
|
+
spinnerContainer: {
|
|
111
|
+
position: "relative",
|
|
112
|
+
display: "block",
|
|
113
|
+
...containerSize,
|
|
114
|
+
},
|
|
115
|
+
statusContainer: {
|
|
116
|
+
display: "flex",
|
|
117
|
+
justifyContent: "center",
|
|
118
|
+
alignItems: "center",
|
|
119
|
+
borderRadius: "50%",
|
|
120
|
+
backgroundColor: statusContainerColor,
|
|
121
|
+
...containerSize,
|
|
122
|
+
"& .tabler-icon": {
|
|
123
|
+
color: statusIconColor,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
container: {
|
|
127
|
+
display: "inline-flex",
|
|
128
|
+
alignItems: "center",
|
|
129
|
+
flexDirection: "column",
|
|
130
|
+
"& .MuiTypography-root": {
|
|
131
|
+
marginTop: theme.spacing(1),
|
|
132
|
+
color: statusTextColor,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
const getColors = (
|
|
139
|
+
type: VentionSpinnerProps["type"],
|
|
140
|
+
isColored: VentionSpinnerProps["colored"],
|
|
141
|
+
color: VentionSpinnerProps["color"],
|
|
142
|
+
isBigSpinner: boolean,
|
|
143
|
+
theme: Theme
|
|
144
|
+
) => {
|
|
145
|
+
const iconColors = theme.palette.icon
|
|
146
|
+
const backgroundColors = theme.palette.background
|
|
147
|
+
const textColors = theme.palette.text
|
|
148
|
+
|
|
149
|
+
let mainSpinnerColor = iconColors.secondary
|
|
150
|
+
if (color) {
|
|
151
|
+
mainSpinnerColor = color
|
|
152
|
+
} else if (isColored) {
|
|
153
|
+
mainSpinnerColor = iconColors.brand
|
|
154
|
+
} else if (type === "indeterminate") {
|
|
155
|
+
mainSpinnerColor = iconColors.tertiary
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let statusContainerColor = "transparent"
|
|
159
|
+
let statusIconColor = iconColors.primaryOnColor
|
|
160
|
+
let statusTextColor = textColors.primary
|
|
161
|
+
if (type === "success") {
|
|
162
|
+
if (isBigSpinner) statusContainerColor = backgroundColors.success
|
|
163
|
+
else statusIconColor = iconColors.positive
|
|
164
|
+
statusTextColor = textColors.positive
|
|
165
|
+
} else if (type === "error") {
|
|
166
|
+
if (isBigSpinner) statusContainerColor = backgroundColors.destructive
|
|
167
|
+
else statusIconColor = iconColors.negative
|
|
168
|
+
statusTextColor = textColors.negative
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
statusContainerColor,
|
|
173
|
+
statusIconColor,
|
|
174
|
+
mainSpinnerColor,
|
|
175
|
+
statusTextColor,
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const SPINNER_SIZES = {
|
|
180
|
+
"xx-small": {
|
|
181
|
+
size: 8,
|
|
182
|
+
thickness: 4,
|
|
183
|
+
iconSize: 8,
|
|
184
|
+
},
|
|
185
|
+
"x-small": {
|
|
186
|
+
size: 12,
|
|
187
|
+
thickness: 4,
|
|
188
|
+
iconSize: 16,
|
|
189
|
+
backgroundColor: "green",
|
|
190
|
+
},
|
|
191
|
+
small: {
|
|
192
|
+
size: 16,
|
|
193
|
+
thickness: 4,
|
|
194
|
+
iconSize: 24,
|
|
195
|
+
},
|
|
196
|
+
medium: {
|
|
197
|
+
size: 32,
|
|
198
|
+
thickness: 5,
|
|
199
|
+
iconSize: 20,
|
|
200
|
+
},
|
|
201
|
+
large: {
|
|
202
|
+
size: 40,
|
|
203
|
+
thickness: 5,
|
|
204
|
+
iconSize: 24,
|
|
205
|
+
},
|
|
206
|
+
"x-large": {
|
|
207
|
+
size: 88,
|
|
208
|
+
thickness: 2.8,
|
|
209
|
+
iconSize: 24,
|
|
210
|
+
},
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
VentionSpinner.defaultProps = defaultProps
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import React from "react"
|
|
3
|
+
|
|
4
|
+
import { WorkInProgressStory } from "../../../../.storybook/blocks/work-in-progress"
|
|
5
|
+
import { VentionSpinner } from "./vention-spinner"
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof VentionSpinner> = {
|
|
8
|
+
component: VentionSpinner,
|
|
9
|
+
title: "Components/VentionSpinner",
|
|
10
|
+
argTypes: {
|
|
11
|
+
type: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "radio",
|
|
14
|
+
options: ["progress", "progress-filled", "indeterminate", "success", "error"],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "select",
|
|
20
|
+
options: ["xx-small", "x-small", "small", "medium", "large", "x-large"],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
export default meta
|
|
26
|
+
type Story = StoryObj<typeof VentionSpinner>
|
|
27
|
+
|
|
28
|
+
export const Default: Story = {
|
|
29
|
+
args: {},
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const Progress: Story = {
|
|
33
|
+
args: {
|
|
34
|
+
type: "progress",
|
|
35
|
+
colored: true,
|
|
36
|
+
value: 25,
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ProgressFilled: Story = {
|
|
41
|
+
decorators: [() => <WorkInProgressStory variantTitle="progress-filled" />],
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const Indeterminate: Story = {
|
|
45
|
+
args: {
|
|
46
|
+
type: "indeterminate",
|
|
47
|
+
colored: true,
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const Success: Story = {
|
|
52
|
+
args: {
|
|
53
|
+
type: "success",
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const Error: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
type: "error",
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const WithLabel: Story = {
|
|
64
|
+
args: {
|
|
65
|
+
label: "Loading...",
|
|
66
|
+
},
|
|
67
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
|
|
3
|
+
import { machineUiTheme } from "../../theme/machine-ui-theme"
|
|
4
|
+
import { VentionStatusDot } from "./vention-status-dot"
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof VentionStatusDot> = {
|
|
7
|
+
component: VentionStatusDot,
|
|
8
|
+
title: "Components/VentionStatusDot",
|
|
9
|
+
}
|
|
10
|
+
export default meta
|
|
11
|
+
type Story = StoryObj<typeof VentionStatusDot>
|
|
12
|
+
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
args: {
|
|
15
|
+
color: machineUiTheme.palette.background.success,
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const WithBorder: Story = {
|
|
20
|
+
args: {
|
|
21
|
+
color: machineUiTheme.palette.background.blue,
|
|
22
|
+
borderColor: machineUiTheme.palette.border.blueSubtle,
|
|
23
|
+
},
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "@testing-library/jest-dom"
|
|
2
|
+
|
|
3
|
+
import { renderWithTheme } from "../../testing/utils"
|
|
4
|
+
import { VentionStatusDot } from "./vention-status-dot"
|
|
5
|
+
|
|
6
|
+
describe("VentionStatusDot", () => {
|
|
7
|
+
it("renders without crashing", () => {
|
|
8
|
+
const { container } = renderWithTheme(<VentionStatusDot color="#000000" />)
|
|
9
|
+
expect(container.firstChild).toBeInTheDocument()
|
|
10
|
+
})
|
|
11
|
+
it("renders with default size", () => {
|
|
12
|
+
const { container } = renderWithTheme(<VentionStatusDot color="#000000" />)
|
|
13
|
+
const rootDiv = container.firstChild
|
|
14
|
+
expect(rootDiv).toHaveStyle("width: 16px")
|
|
15
|
+
expect(rootDiv).toHaveStyle("height: 16px")
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it("renders with medium size", () => {
|
|
19
|
+
const { container } = renderWithTheme(<VentionStatusDot color="#000000" size="medium" />)
|
|
20
|
+
const rootDiv = container.firstChild
|
|
21
|
+
expect(rootDiv).toHaveStyle("width: 24px")
|
|
22
|
+
expect(rootDiv).toHaveStyle("height: 24px")
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
it("renders with border color", () => {
|
|
26
|
+
const { container } = renderWithTheme(<VentionStatusDot size="small" color="#000000" borderColor="#FFFFFF" />)
|
|
27
|
+
const dotDiv = container.firstChild.firstChild
|
|
28
|
+
expect(dotDiv).toHaveStyle({
|
|
29
|
+
border: "2px solid #FFFFFF",
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
it("renders without border color", () => {
|
|
34
|
+
const { container } = renderWithTheme(<VentionStatusDot color="#000000" />)
|
|
35
|
+
const dotDiv = container.querySelector("div > div")
|
|
36
|
+
expect(dotDiv).not.toHaveStyle("border: 2px solid #FFFFFF")
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
it("renders with custom classes", () => {
|
|
40
|
+
const { container } = renderWithTheme(<VentionStatusDot color="#000000" className="custom-class" />)
|
|
41
|
+
const rootDiv = container.firstChild
|
|
42
|
+
expect(rootDiv).toHaveClass("custom-class")
|
|
43
|
+
})
|
|
44
|
+
})
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Sizes, StrictExtract } from "../../theme/machine-ui-theme"
|
|
2
|
+
|
|
3
|
+
import React from "react"
|
|
4
|
+
import { tss } from "tss-react/mui"
|
|
5
|
+
|
|
6
|
+
export interface VentionStatusDotProps {
|
|
7
|
+
color: string
|
|
8
|
+
borderColor?: string
|
|
9
|
+
size?: StrictExtract<Sizes, "small" | "medium" | "x-large" | "xx-large">
|
|
10
|
+
className?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const VentionStatusDot: React.FunctionComponent<VentionStatusDotProps> = props => {
|
|
14
|
+
const { size = "small", className } = props
|
|
15
|
+
const { classes, cx } = useStyles({ color: props.color, borderColor: props.borderColor, size })
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className={cx(classes.root, className)}>
|
|
19
|
+
<div className={classes.dot} />
|
|
20
|
+
</div>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const useStyles = tss.withParams<{ color: string; borderColor: string; size: string }>().create(({ color, borderColor, size }) => {
|
|
25
|
+
const sizeMapping = {
|
|
26
|
+
small: { rootSize: 16, dotSize: 8 },
|
|
27
|
+
medium: { rootSize: 24, dotSize: 12 },
|
|
28
|
+
"x-large": { rootSize: 28, dotSize: 14 },
|
|
29
|
+
"xx-large": { rootSize: 32, dotSize: 16 },
|
|
30
|
+
}
|
|
31
|
+
const { rootSize, dotSize } = sizeMapping[size]
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
root: {
|
|
35
|
+
width: rootSize,
|
|
36
|
+
height: rootSize,
|
|
37
|
+
padding: rootSize / 4,
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
justifyContent: "center",
|
|
41
|
+
},
|
|
42
|
+
dot: {
|
|
43
|
+
width: dotSize,
|
|
44
|
+
height: dotSize,
|
|
45
|
+
background: color,
|
|
46
|
+
borderRadius: "50%",
|
|
47
|
+
border: borderColor ? `2px solid ${borderColor}` : "none",
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
export default VentionStatusDot
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
2
|
+
import { VentionStatusIndicator } from "./vention-status-indicator"
|
|
3
|
+
import { machineUiTheme } from "../../theme/machine-ui-theme"
|
|
4
|
+
import React from "react"
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof VentionStatusIndicator> = {
|
|
7
|
+
component: VentionStatusIndicator,
|
|
8
|
+
title: "Components/VentionStatusIndicator",
|
|
9
|
+
}
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof VentionStatusIndicator>
|
|
13
|
+
|
|
14
|
+
export const Default: Story = {
|
|
15
|
+
args: {
|
|
16
|
+
dotColor: machineUiTheme.palette.success.main,
|
|
17
|
+
label: "Active",
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Sizes: Story = {
|
|
22
|
+
render: args => (
|
|
23
|
+
<div style={{ display: "flex", flexDirection: "column", gap: "8px" }}>
|
|
24
|
+
<VentionStatusIndicator {...args} size="x-large" label="X-Large Size" />
|
|
25
|
+
<VentionStatusIndicator {...args} size="large" label="Large Size" />
|
|
26
|
+
<VentionStatusIndicator {...args} size="medium" label="Medium Size" />
|
|
27
|
+
<VentionStatusIndicator {...args} size="small" label="Small Size" />
|
|
28
|
+
</div>
|
|
29
|
+
),
|
|
30
|
+
args: {
|
|
31
|
+
dotColor: machineUiTheme.palette.success.main,
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const WithOutline: Story = {
|
|
36
|
+
args: {
|
|
37
|
+
dotColor: machineUiTheme.palette.warning.main,
|
|
38
|
+
label: "Outlined",
|
|
39
|
+
outline: true,
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const DotOnRight: Story = {
|
|
44
|
+
args: {
|
|
45
|
+
dotColor: machineUiTheme.palette.error.main,
|
|
46
|
+
label: "Error",
|
|
47
|
+
dotPosition: "right",
|
|
48
|
+
},
|
|
49
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "@testing-library/jest-dom"
|
|
2
|
+
import { renderWithTheme } from "../../testing/utils"
|
|
3
|
+
import { VentionStatusIndicator } from "./vention-status-indicator"
|
|
4
|
+
import { screen } from "@testing-library/react"
|
|
5
|
+
import { machineUiTheme as theme } from "../../theme/machine-ui-theme"
|
|
6
|
+
|
|
7
|
+
describe("VentionStatusIndicator", () => {
|
|
8
|
+
it("renders without crashing", () => {
|
|
9
|
+
const { container } = renderWithTheme(<VentionStatusIndicator dotColor={theme.palette.success.main} label="Test Label" />)
|
|
10
|
+
expect(container.firstChild).toBeInTheDocument()
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
it("renders with default props", () => {
|
|
14
|
+
renderWithTheme(<VentionStatusIndicator dotColor={theme.palette.success.main} label="Default Props" />)
|
|
15
|
+
expect(screen.getByText("Default Props")).toBeInTheDocument()
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it("renders with different sizes", () => {
|
|
19
|
+
const sizes = ["xx-large", "x-large", "large", "medium", "small"] as const
|
|
20
|
+
sizes.forEach(size => {
|
|
21
|
+
renderWithTheme(<VentionStatusIndicator size={size} dotColor={theme.palette.success.main} label={`Size ${size}`} />)
|
|
22
|
+
expect(screen.getByText(`Size ${size}`)).toBeInTheDocument()
|
|
23
|
+
})
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it("renders with outline", () => {
|
|
27
|
+
const { container } = renderWithTheme(<VentionStatusIndicator outline dotColor={theme.palette.warning.main} label="Outlined" />)
|
|
28
|
+
expect(container.firstChild).toHaveStyle(`border: 1px solid ${theme.palette.border.main}`)
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("renders with thicker outline when size is xx-large", () => {
|
|
32
|
+
const { container } = renderWithTheme(
|
|
33
|
+
<VentionStatusIndicator outline size="xx-large" dotColor={theme.palette.warning.main} label="Outlined" />
|
|
34
|
+
)
|
|
35
|
+
expect(container.firstChild).toHaveStyle(`border: 2px solid ${theme.palette.border.main}`)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
it("renders with dot on right", () => {
|
|
39
|
+
const { container } = renderWithTheme(
|
|
40
|
+
<VentionStatusIndicator dotPosition="right" dotColor={theme.palette.error.main} label="Dot Right" />
|
|
41
|
+
)
|
|
42
|
+
const dotElement = container.querySelector('[class*="dot"]') as HTMLElement
|
|
43
|
+
expect(container.firstChild?.lastChild).toContainElement(dotElement)
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
it("renders with custom dotColor and label", () => {
|
|
47
|
+
renderWithTheme(<VentionStatusIndicator dotColor={theme.palette.success.main} label="Custom Label" />)
|
|
48
|
+
expect(screen.getByText("Custom Label")).toBeInTheDocument()
|
|
49
|
+
})
|
|
50
|
+
})
|