@vention/machine-ui 5.14.1 → 5.15.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/ac-motor.esm.js +1 -0
- package/access-point.esm.js +1 -0
- package/actuator.esm.js +1 -0
- package/actuator1.esm.js +1 -0
- package/actuator10.esm.js +1 -0
- package/actuator2.esm.js +1 -0
- package/actuator3.esm.js +1 -0
- package/actuator4.esm.js +1 -0
- package/actuator5.esm.js +1 -0
- package/actuator6.esm.js +1 -0
- package/actuator7.esm.js +1 -0
- package/actuator8.esm.js +1 -0
- package/actuator9.esm.js +1 -0
- package/adjustments-alt-filled.esm.js +1 -0
- package/adjustments-alt.esm.js +1 -0
- package/adjustments-filled.esm.js +1 -0
- package/adjustments-horizontal.esm.js +1 -0
- package/alarm-bell-filled.esm.js +1 -0
- package/alarm-bell-ringing.esm.js +1 -0
- package/alarm-bell.esm.js +1 -0
- package/alarm.esm.js +1 -0
- package/alert-circle-filled.esm.js +1 -0
- package/alert-circle.esm.js +1 -0
- package/alert-triangle-filled.esm.js +1 -0
- package/alert-triangle.esm.js +1 -0
- package/analytics.esm.js +1 -0
- package/angle.esm.js +1 -0
- package/apps-2.esm.js +1 -0
- package/apps.esm.js +1 -0
- package/arrow-bar-both.esm.js +1 -0
- package/arrow-bar-down.esm.js +1 -0
- package/arrow-bar-left.esm.js +1 -0
- package/arrow-bar-right.esm.js +1 -0
- package/arrow-bar-to-down.esm.js +1 -0
- package/arrow-bar-to-left.esm.js +1 -0
- package/arrow-bar-to-right.esm.js +1 -0
- package/arrow-bar-to-up.esm.js +1 -0
- package/arrow-bar-up.esm.js +1 -0
- package/arrow-big-down.esm.js +1 -0
- package/arrow-big-left.esm.js +1 -0
- package/arrow-big-right-lines.esm.js +1 -0
- package/arrow-big-right.esm.js +1 -0
- package/arrow-big-up.esm.js +1 -0
- package/arrow-left-from-arc.esm.js +1 -0
- package/arrow-left.esm.js +1 -0
- package/arrow-narrow-down.esm.js +1 -0
- package/arrow-narrow-left.esm.js +1 -0
- package/arrow-narrow-right.esm.js +1 -0
- package/arrow-narrow-up.esm.js +1 -0
- package/arrow-right.esm.js +1 -0
- package/arrow-up-right.esm.js +1 -0
- package/arrows-diagonal-minimize-1.esm.js +1 -0
- package/arrows-diagonal.esm.js +1 -0
- package/arrows-diff.esm.js +1 -0
- package/arrows-exchange-1.esm.js +1 -0
- package/arrows-exchange.esm.js +1 -0
- package/arrows-maximize.esm.js +1 -0
- package/arrows-minimize.esm.js +1 -0
- package/arrows-move.esm.js +1 -0
- package/arrows-right-left.esm.js +1 -0
- package/assembly.esm.js +1 -0
- package/asset.esm.js +1 -0
- package/axis.esm.js +1 -0
- package/belt-actuator-2.esm.js +1 -0
- package/belt-actuator-3.esm.js +1 -0
- package/belt-actuator.esm.js +1 -0
- package/binary-tree-2.esm.js +1 -0
- package/binary-tree.esm.js +1 -0
- package/binary.esm.js +1 -0
- package/blend.esm.js +1 -0
- package/bolt-filled.esm.js +1 -0
- package/bolt.esm.js +1 -0
- package/bomb.esm.js +1 -0
- package/book-2.esm.js +1 -0
- package/book.esm.js +1 -0
- package/bookmark.esm.js +1 -0
- package/books.esm.js +1 -0
- package/braces.esm.js +1 -0
- package/brand-python.esm.js +1 -0
- package/bug.esm.js +1 -0
- package/building-broadcast-tower.esm.js +1 -0
- package/building-community.esm.js +1 -0
- package/building-factory-2.esm.js +1 -0
- package/building-skyscraper.esm.js +1 -0
- package/building.esm.js +1 -0
- package/button-black.esm.js +1 -0
- package/button-white.esm.js +1 -0
- package/calendar-month.esm.js +1 -0
- package/camera.esm.js +1 -0
- package/capture.esm.js +1 -0
- package/caret-down-filled.esm.js +1 -0
- package/caret-down.esm.js +1 -0
- package/caret-left-filled.esm.js +1 -0
- package/caret-left.esm.js +1 -0
- package/caret-right-filled.esm.js +1 -0
- package/caret-right.esm.js +1 -0
- package/caret-up-filled.esm.js +1 -0
- package/caret-up.esm.js +1 -0
- package/category-filled.esm.js +1 -0
- package/category.esm.js +1 -0
- package/cell-signal-full.esm.js +1 -0
- package/cell-signal-low.esm.js +1 -0
- package/cell-signal-off.esm.js +1 -0
- package/chart-dots-2.esm.js +1 -0
- package/check.esm.js +1 -0
- package/checkbox.esm.js +1 -0
- package/checks.esm.js +1 -0
- package/chevron-down.esm.js +1 -0
- package/chevron-left.esm.js +1 -0
- package/chevron-right.esm.js +1 -0
- package/chevron-up.esm.js +1 -0
- package/chevrons-down.esm.js +1 -0
- package/chevrons-left.esm.js +1 -0
- package/chevrons-right.esm.js +1 -0
- package/chevrons-up.esm.js +1 -0
- package/circle-arrow-up.esm.js +1 -0
- package/circle-check-filled.esm.js +1 -0
- package/circle-check.esm.js +1 -0
- package/circle-minus.esm.js +1 -0
- package/circle-plus.esm.js +1 -0
- package/circle-square.esm.js +1 -0
- package/circle-x-filled.esm.js +1 -0
- package/circle-x.esm.js +1 -0
- package/clock.esm.js +1 -0
- package/clockwise-1.esm.js +1 -0
- package/clockwise-2.esm.js +1 -0
- package/close.esm.js +1 -0
- package/cloud-computing.esm.js +1 -0
- package/cloud-data-connection.esm.js +1 -0
- package/cloud-download-1.esm.js +1 -0
- package/cloud-download-off.esm.js +1 -0
- package/cloud-download.esm.js +1 -0
- package/cloud-off.esm.js +1 -0
- package/cloud-upload.esm.js +1 -0
- package/cloud.esm.js +1 -0
- package/code.esm.js +1 -0
- package/command-do.esm.js +1 -0
- package/command-elif.esm.js +1 -0
- package/command-else.esm.js +1 -0
- package/command-if.esm.js +1 -0
- package/condition-tree.esm.js +1 -0
- package/confetti.esm.js +1 -0
- package/connection.esm.js +1 -0
- package/conveyor.esm.js +1 -0
- package/copy.esm.js +1 -0
- package/corner-up-left.esm.js +1 -0
- package/corner-up-right.esm.js +1 -0
- package/counterclockwise-1.esm.js +1 -0
- package/counterclockwise-2.esm.js +1 -0
- package/cpu-2.esm.js +1 -0
- package/cpu.esm.js +1 -0
- package/cube-plus.esm.js +1 -0
- package/cube-send.esm.js +1 -0
- package/cube.esm.js +1 -0
- package/custom-gear-fill.esm.js +1 -0
- package/custom-help-bold-filled.esm.js +1 -0
- package/custom-help-bold.esm.js +1 -0
- package/custom-help-fill.esm.js +1 -0
- package/custom-help.esm.js +1 -0
- package/custom-info-1.esm.js +1 -0
- package/custom-info-bold-filled.esm.js +1 -0
- package/custom-info-bold.esm.js +1 -0
- package/custom-info.esm.js +1 -0
- package/custom-point-to-point.esm.js +1 -0
- package/custom-rocket-fat.esm.js +1 -0
- package/custom-rocket.esm.js +1 -0
- package/dashboard.esm.js +1 -0
- package/decline.esm.js +1 -0
- package/device-laptop.esm.js +1 -0
- package/device-tv.esm.js +1 -0
- package/devices-2.esm.js +1 -0
- package/dimensions.esm.js +1 -0
- package/dots-vertical.esm.js +1 -0
- package/dots.esm.js +1 -0
- package/download-off.esm.js +1 -0
- package/download.esm.js +1 -0
- package/duotone-analytics.esm.js +1 -0
- package/duotone-communication.esm.js +1 -0
- package/duotone-conveyor.esm.js +1 -0
- package/duotone-input-output.esm.js +1 -0
- package/duotone-linear.esm.js +1 -0
- package/duotone-pneumatic.esm.js +1 -0
- package/duotone-programming.esm.js +1 -0
- package/duotone-robot-arm.esm.js +1 -0
- package/duotone-rotary.esm.js +1 -0
- package/duotone-state-machine.esm.js +1 -0
- package/edit.esm.js +1 -0
- package/electric-actuator.esm.js +1 -0
- package/exclamation-mark.esm.js +1 -0
- package/external-link.esm.js +1 -0
- package/eye-closed.esm.js +1 -0
- package/eye.esm.js +1 -0
- package/file-3-d.esm.js +1 -0
- package/file-code.esm.js +1 -0
- package/file-description.esm.js +1 -0
- package/file-download.esm.js +1 -0
- package/file-type-pdf.esm.js +1 -0
- package/file-upload.esm.js +1 -0
- package/file-wrong.esm.js +1 -0
- package/file.esm.js +1 -0
- package/filter.esm.js +1 -0
- package/focus.esm.js +1 -0
- package/folder-open.esm.js +1 -0
- package/folder-plus-1.esm.js +1 -0
- package/folder.esm.js +1 -0
- package/frame-3.esm.js +1 -0
- package/function-icon.esm.js +1 -0
- package/git-branch-deleted.esm.js +1 -0
- package/git-branch.esm.js +1 -0
- package/git-compare.esm.js +1 -0
- package/git-fork.esm.js +1 -0
- package/git-merge.esm.js +1 -0
- package/gizmo.esm.js +1 -0
- package/graph.esm.js +1 -0
- package/grid-dots.esm.js +1 -0
- package/grip-horizontal.esm.js +1 -0
- package/grip-vertical.esm.js +1 -0
- package/gripper-1.esm.js +1 -0
- package/gripper-2.esm.js +1 -0
- package/hand-stop.esm.js +1 -0
- package/hash.esm.js +1 -0
- package/hb-menu.esm.js +1 -0
- package/headphones-filled.esm.js +1 -0
- package/headset-filled.esm.js +1 -0
- package/headset.esm.js +1 -0
- package/help-circle-filled.esm.js +1 -0
- package/help.esm.js +1 -0
- package/history-toggle.esm.js +1 -0
- package/history.esm.js +1 -0
- package/hmi.esm.js +1 -0
- package/home-2.esm.js +1 -0
- package/home-solid.esm.js +1 -0
- package/home.esm.js +1 -0
- package/hourglass-empty.esm.js +1 -0
- package/i-o.esm.js +1 -0
- package/icon-box-padding.esm.js +1 -0
- package/icon-components.esm.js +1 -0
- package/icon-nut.esm.js +1 -0
- package/icon-ruler-2.esm.js +1 -0
- package/icon-square-rotated.esm.js +1 -0
- package/incline.esm.js +1 -0
- package/index.esm.js +215 -63
- package/infinity.esm.js +1 -0
- package/info-circle-filled.esm.js +1 -0
- package/info-circle.esm.js +1 -0
- package/input-output.esm.js +1 -0
- package/io-link.esm.js +1 -0
- package/ipad-horizontal.esm.js +1 -0
- package/json.esm.js +1 -0
- package/lan.esm.js +1 -0
- package/language.esm.js +1 -0
- package/layout-sidebar-right.esm.js +1 -0
- package/legacy-axis.esm.js +1 -0
- package/legacy-robot.esm.js +1 -0
- package/letter-case.esm.js +1 -0
- package/line.esm.js +1 -0
- package/linear.esm.js +1 -0
- package/link.esm.js +1 -0
- package/list-check.esm.js +1 -0
- package/load-balancer.esm.js +1 -0
- package/lock.esm.js +1 -0
- package/logout.esm.js +1 -0
- package/machine-apps-headset.esm.js +1 -0
- package/machinelogic-2.esm.js +1 -0
- package/magic-ball.esm.js +1 -0
- package/magnet.esm.js +1 -0
- package/mail-fast.esm.js +1 -0
- package/mail.esm.js +1 -0
- package/mailbox.esm.js +1 -0
- package/math-equal-greater.esm.js +1 -0
- package/math-equal-lower.esm.js +1 -0
- package/maximize.esm.js +1 -0
- package/menu-2.esm.js +1 -0
- package/menu-waffle.esm.js +1 -0
- package/menu.esm.js +1 -0
- package/merge.esm.js +1 -0
- package/message-2.esm.js +1 -0
- package/message-chatbot.esm.js +1 -0
- package/message-circle-filled.esm.js +1 -0
- package/message-circle.esm.js +1 -0
- package/message-dots.esm.js +1 -0
- package/message.esm.js +1 -0
- package/messages.esm.js +1 -0
- package/microphone.esm.js +1 -0
- package/minus-vertical.esm.js +1 -0
- package/minus.esm.js +1 -0
- package/mirror-flip-horizontal.esm.js +1 -0
- package/mirror-flip-vertical.esm.js +1 -0
- package/module-1.esm.js +1 -0
- package/module-2.esm.js +1 -0
- package/module-3.esm.js +1 -0
- package/module-4.esm.js +1 -0
- package/motor-1.esm.js +1 -0
- package/motor-2.esm.js +1 -0
- package/motor-3.esm.js +1 -0
- package/motor-4.esm.js +1 -0
- package/motor-5.esm.js +1 -0
- package/mouse-left.esm.js +1 -0
- package/mouse-right.esm.js +1 -0
- package/mouse-scroll.esm.js +1 -0
- package/move-to-ground.esm.js +1 -0
- package/movie.esm.js +1 -0
- package/multiplier.esm.js +1 -0
- package/music.esm.js +1 -0
- package/network-2.esm.js +1 -0
- package/network-off.esm.js +1 -0
- package/network.esm.js +1 -0
- package/number-1.esm.js +1 -0
- package/number-2.esm.js +1 -0
- package/number-3.esm.js +1 -0
- package/number-4.esm.js +1 -0
- package/operator.esm.js +1 -0
- package/package.json +2 -1
- package/pdf.esm.js +1 -0
- package/phone-call.esm.js +1 -0
- package/phone-off.esm.js +1 -0
- package/phone.esm.js +1 -0
- package/photo.esm.js +1 -0
- package/pinned.esm.js +1 -0
- package/player-pause.esm.js +1 -0
- package/player-play-filled.esm.js +1 -0
- package/player-play.esm.js +1 -0
- package/player-record.esm.js +1 -0
- package/player-skip-back.esm.js +1 -0
- package/player-skip-forward.esm.js +1 -0
- package/player-stop-filled.esm.js +1 -0
- package/player-stop.esm.js +1 -0
- package/player-track-next.esm.js +1 -0
- package/player-track-prev.esm.js +1 -0
- package/plug-x.esm.js +1 -0
- package/plug.esm.js +1 -0
- package/plus.esm.js +1 -0
- package/pneumatic.esm.js +1 -0
- package/point-to-point-3.esm.js +1 -0
- package/point-to-point-check.esm.js +1 -0
- package/position-rx.esm.js +1 -0
- package/position-ry.esm.js +1 -0
- package/position-rz.esm.js +1 -0
- package/position-x.esm.js +1 -0
- package/position-y.esm.js +1 -0
- package/position-z.esm.js +1 -0
- package/power.esm.js +1 -0
- package/programming.esm.js +1 -0
- package/pushbutton.esm.js +1 -0
- package/receipt-dollar.esm.js +1 -0
- package/receipt.esm.js +1 -0
- package/reference-frame-2.esm.js +1 -0
- package/reference-frame.esm.js +1 -0
- package/refresh-alert.esm.js +1 -0
- package/refresh-off.esm.js +1 -0
- package/refresh.esm.js +1 -0
- package/reload.esm.js +1 -0
- package/repeat.esm.js +1 -0
- package/rewind-backward-15.esm.js +1 -0
- package/rewind-forward-15.esm.js +1 -0
- package/robot-arm-2.esm.js +1 -0
- package/robot-arm-duotone-2.esm.js +1 -0
- package/robot-arm.esm.js +1 -0
- package/robot-face.esm.js +1 -0
- package/rotary.esm.js +1 -0
- package/route-square.esm.js +1 -0
- package/row-insert-bottom.esm.js +1 -0
- package/row-insert-top.esm.js +1 -0
- package/ruler-measure-2.esm.js +1 -0
- package/ruler.esm.js +1 -0
- package/save.esm.js +1 -0
- package/search.esm.js +1 -0
- package/selector.esm.js +1 -0
- package/send.esm.js +1 -0
- package/sensor.esm.js +1 -0
- package/sensor1.esm.js +1 -0
- package/sensor2.esm.js +1 -0
- package/sequence.esm.js +1 -0
- package/setting-automation.esm.js +1 -0
- package/settings-2.esm.js +1 -0
- package/settings-filled.esm.js +1 -0
- package/settings.esm.js +1 -0
- package/shield-code.esm.js +1 -0
- package/shield-filled.esm.js +1 -0
- package/shield-half.esm.js +1 -0
- package/shield.esm.js +1 -0
- package/shopping-bag.esm.js +1 -0
- package/shopping-cart-filled.esm.js +1 -0
- package/shopping-cart.esm.js +1 -0
- package/show-3d.esm.js +1 -0
- package/sitemap-1.esm.js +1 -0
- package/sitemap.esm.js +1 -0
- package/slash.esm.js +1 -0
- package/speedtest.esm.js +1 -0
- package/sphere.esm.js +1 -0
- package/square-number-0.esm.js +1 -0
- package/square-number-1.esm.js +1 -0
- package/square-number-2.esm.js +1 -0
- package/square-number-3.esm.js +1 -0
- package/src/lib/components/shared/styles/input-styles.d.ts +19 -2
- package/src/lib/components/vention-text-input/vention-text-input.d.ts +2 -1
- package/src/lib/theme/machine-ui-theme.d.ts +3 -29
- package/src/lib/theme/typography.d.ts +18 -0
- package/stack.esm.js +1 -0
- package/star.esm.js +1 -0
- package/state-machine.esm.js +1 -0
- package/status-danger-hmi.esm.js +1 -0
- package/status-small.esm.js +1 -0
- package/status-warning-hmi.esm.js +1 -0
- package/stopwatch.esm.js +1 -0
- package/subtask.esm.js +1 -0
- package/switch-horizontal.esm.js +1 -0
- package/switch-vertical.esm.js +1 -0
- package/tag.esm.js +1 -0
- package/target.esm.js +1 -0
- package/template.esm.js +1 -0
- package/terminal-2.esm.js +1 -0
- package/terminal.esm.js +1 -0
- package/text-plus-1.esm.js +1 -0
- package/timeline.esm.js +1 -0
- package/tiny-caret-down.esm.js +1 -0
- package/tiny-caret-right.esm.js +1 -0
- package/tool-1.esm.js +1 -0
- package/tool.esm.js +1 -0
- package/topology-bus.esm.js +1 -0
- package/topology-complex.esm.js +1 -0
- package/topology-full-hierarchy.esm.js +1 -0
- package/topology-full.esm.js +1 -0
- package/topology-ring-2.esm.js +1 -0
- package/topology-ring-3.esm.js +1 -0
- package/topology-ring.esm.js +1 -0
- package/topology-star-3.esm.js +1 -0
- package/trash.esm.js +1 -0
- package/trending-up.esm.js +1 -0
- package/truck-delivery.esm.js +1 -0
- package/truck-loading.esm.js +1 -0
- package/un-pinned.esm.js +1 -0
- package/unlink.esm.js +1 -0
- package/unplugged.esm.js +1 -0
- package/update.esm.js +1 -0
- package/upload.esm.js +1 -0
- package/user-circle.esm.js +1 -0
- package/user-off.esm.js +1 -0
- package/user-plus.esm.js +1 -0
- package/user-shield.esm.js +1 -0
- package/user.esm.js +1 -0
- package/users-plus.esm.js +1 -0
- package/users.esm.js +1 -0
- package/variable.esm.js +1 -0
- package/vention.esm.js +1 -0
- package/versions.esm.js +1 -0
- package/video.esm.js +1 -0
- package/web-link.esm.js +1 -0
- package/weight-2.esm.js +1 -0
- package/weight.esm.js +1 -0
- package/wifi-low.esm.js +1 -0
- package/wifi-lowest.esm.js +1 -0
- package/wifi-off.esm.js +1 -0
- package/wifi.esm.js +1 -0
- package/world-download.esm.js +1 -0
- package/world.esm.js +1 -0
- package/xyz-1.esm.js +1 -0
- package/xyz-2.esm.js +1 -0
package/index.esm.js
CHANGED
|
@@ -6,6 +6,7 @@ import { tss } from 'tss-react/mui';
|
|
|
6
6
|
import Box from '@mui/material/Box';
|
|
7
7
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
8
8
|
import { createTheme, useTheme } from '@mui/material/styles';
|
|
9
|
+
import cx from 'classnames';
|
|
9
10
|
import Draggable from 'react-draggable';
|
|
10
11
|
import Slider from '@mui/material/Slider';
|
|
11
12
|
import Typography$1 from '@mui/material/Typography';
|
|
@@ -1684,7 +1685,7 @@ function getButtonStylingPropertiesGivenProps(variant, size, theme) {
|
|
|
1684
1685
|
button,
|
|
1685
1686
|
border
|
|
1686
1687
|
} = theme.palette;
|
|
1687
|
-
const borderRadius = getBorderRadius$
|
|
1688
|
+
const borderRadius = getBorderRadius$1();
|
|
1688
1689
|
switch (variant) {
|
|
1689
1690
|
case "simple":
|
|
1690
1691
|
{
|
|
@@ -1786,7 +1787,7 @@ function getButtonHeight(size, theme) {
|
|
|
1786
1787
|
// 80px
|
|
1787
1788
|
}
|
|
1788
1789
|
}
|
|
1789
|
-
function getBorderRadius$
|
|
1790
|
+
function getBorderRadius$1() {
|
|
1790
1791
|
return "4px";
|
|
1791
1792
|
}
|
|
1792
1793
|
|
|
@@ -2132,6 +2133,25 @@ const TYPOGRAPHY = {
|
|
|
2132
2133
|
fontSize: 12,
|
|
2133
2134
|
lineHeight: "16px"
|
|
2134
2135
|
},
|
|
2136
|
+
// UI Text 18
|
|
2137
|
+
uiText18SemiBold: {
|
|
2138
|
+
fontFamily: "Inter, sans-serif",
|
|
2139
|
+
fontSize: 18,
|
|
2140
|
+
fontWeight: 600,
|
|
2141
|
+
lineHeight: "24px"
|
|
2142
|
+
},
|
|
2143
|
+
uiText18Medium: {
|
|
2144
|
+
fontFamily: "Inter, sans-serif",
|
|
2145
|
+
fontSize: 18,
|
|
2146
|
+
fontWeight: 500,
|
|
2147
|
+
lineHeight: "24px"
|
|
2148
|
+
},
|
|
2149
|
+
uiText18Regular: {
|
|
2150
|
+
fontFamily: "Inter, sans-serif",
|
|
2151
|
+
fontSize: 18,
|
|
2152
|
+
fontWeight: 400,
|
|
2153
|
+
lineHeight: "24px"
|
|
2154
|
+
},
|
|
2135
2155
|
// UI Text 14
|
|
2136
2156
|
uiText14SemiBold: {
|
|
2137
2157
|
fontFamily: "Inter, sans-serif",
|
|
@@ -2186,7 +2206,8 @@ const TYPOGRAPHY = {
|
|
|
2186
2206
|
fontWeight: 400,
|
|
2187
2207
|
lineHeight: "normal"
|
|
2188
2208
|
},
|
|
2189
|
-
//HMI Text
|
|
2209
|
+
// HMI Text
|
|
2210
|
+
// DEPRECATED: use uiText* variants instead
|
|
2190
2211
|
hmiText20Regular: {
|
|
2191
2212
|
fontFamily: "Inter, sans-serif",
|
|
2192
2213
|
fontSize: 20,
|
|
@@ -5406,6 +5427,40 @@ const getBackgroundColorFromState = (state, theme) => {
|
|
|
5406
5427
|
return theme.palette.background.inputOutlined;
|
|
5407
5428
|
}
|
|
5408
5429
|
};
|
|
5430
|
+
const getLabelColor = (state, theme) => {
|
|
5431
|
+
switch (state) {
|
|
5432
|
+
case "warning":
|
|
5433
|
+
return theme.palette.text.warning;
|
|
5434
|
+
case "success":
|
|
5435
|
+
return theme.palette.text.positive;
|
|
5436
|
+
case "error":
|
|
5437
|
+
return theme.palette.text.negative;
|
|
5438
|
+
default:
|
|
5439
|
+
return undefined;
|
|
5440
|
+
}
|
|
5441
|
+
};
|
|
5442
|
+
const getFieldSetBackgroundColor = (state, theme, variant) => {
|
|
5443
|
+
if (variant === "shaded" && state !== "disabled") {
|
|
5444
|
+
return `${theme.palette.background.inputShaded}${state === "error" ? " !important" : ""}`;
|
|
5445
|
+
}
|
|
5446
|
+
return getBackgroundColorFromState(state, theme);
|
|
5447
|
+
};
|
|
5448
|
+
const getBorderWidth$1 = size => {
|
|
5449
|
+
switch (size) {
|
|
5450
|
+
case "x-small":
|
|
5451
|
+
return "1px";
|
|
5452
|
+
case "small":
|
|
5453
|
+
return "1px";
|
|
5454
|
+
case "medium":
|
|
5455
|
+
return "1px";
|
|
5456
|
+
case "large":
|
|
5457
|
+
return "1px";
|
|
5458
|
+
case "x-large":
|
|
5459
|
+
return "1px";
|
|
5460
|
+
case "xx-large":
|
|
5461
|
+
return "2px";
|
|
5462
|
+
}
|
|
5463
|
+
};
|
|
5409
5464
|
const getInputHeight = (size, theme) => {
|
|
5410
5465
|
switch (size) {
|
|
5411
5466
|
case "x-small":
|
|
@@ -5444,41 +5499,82 @@ const getInputPaddingStyles = (size, theme) => {
|
|
|
5444
5499
|
};
|
|
5445
5500
|
}
|
|
5446
5501
|
};
|
|
5502
|
+
/**
|
|
5503
|
+
* Get the vertical padding style for multiline input
|
|
5504
|
+
* @param size The size of the input
|
|
5505
|
+
* @param theme Theme used by MUI
|
|
5506
|
+
*/
|
|
5507
|
+
const getMultilineVerticalPaddingStyles = (size, theme) => {
|
|
5508
|
+
switch (size) {
|
|
5509
|
+
case "x-small":
|
|
5510
|
+
return {
|
|
5511
|
+
paddingTop: 0,
|
|
5512
|
+
paddingBottom: 0
|
|
5513
|
+
};
|
|
5514
|
+
case "small":
|
|
5515
|
+
case "medium":
|
|
5516
|
+
return {
|
|
5517
|
+
paddingTop: theme.spacing(1),
|
|
5518
|
+
paddingBottom: theme.spacing(1)
|
|
5519
|
+
};
|
|
5520
|
+
case "large":
|
|
5521
|
+
return {
|
|
5522
|
+
paddingTop: theme.spacing(2),
|
|
5523
|
+
paddingBottom: theme.spacing(2)
|
|
5524
|
+
};
|
|
5525
|
+
case "x-large":
|
|
5526
|
+
return {
|
|
5527
|
+
paddingTop: theme.spacing(3),
|
|
5528
|
+
paddingBottom: theme.spacing(3)
|
|
5529
|
+
};
|
|
5530
|
+
case "xx-large":
|
|
5531
|
+
return {
|
|
5532
|
+
paddingTop: theme.spacing(4),
|
|
5533
|
+
paddingBottom: theme.spacing(4)
|
|
5534
|
+
};
|
|
5535
|
+
}
|
|
5536
|
+
};
|
|
5447
5537
|
const typographyNameFromSizeMap = {
|
|
5448
5538
|
"x-small": {
|
|
5449
5539
|
label: "uiText12SemiBold",
|
|
5450
5540
|
labelDiminished: "uiText12Regular",
|
|
5451
5541
|
text: "uiText12Regular",
|
|
5542
|
+
textDiminished: "uiText12Regular",
|
|
5452
5543
|
helperText: "uiText12Regular"
|
|
5453
5544
|
},
|
|
5454
5545
|
small: {
|
|
5455
5546
|
label: "uiText12SemiBold",
|
|
5456
5547
|
labelDiminished: "uiText12Regular",
|
|
5457
5548
|
text: "uiText12Regular",
|
|
5549
|
+
textDiminished: "uiText12Regular",
|
|
5458
5550
|
helperText: "uiText12Regular"
|
|
5459
5551
|
},
|
|
5460
5552
|
medium: {
|
|
5461
5553
|
label: "uiText14SemiBold",
|
|
5462
5554
|
labelDiminished: "uiText14Regular",
|
|
5463
5555
|
text: "uiText14Regular",
|
|
5556
|
+
textDiminished: "uiText12Regular",
|
|
5464
5557
|
helperText: "uiText12Regular"
|
|
5465
5558
|
},
|
|
5466
5559
|
large: {
|
|
5467
5560
|
label: "uiText14SemiBold",
|
|
5468
5561
|
labelDiminished: "uiText14Regular",
|
|
5469
5562
|
text: "uiText14Regular",
|
|
5563
|
+
textDiminished: "uiText12Regular",
|
|
5470
5564
|
helperText: "uiText12Regular"
|
|
5471
5565
|
},
|
|
5472
5566
|
"x-large": {
|
|
5473
5567
|
label: "heading18SemiBold",
|
|
5474
5568
|
labelDiminished: "paragraph18Regular",
|
|
5475
5569
|
text: "paragraph18Regular",
|
|
5570
|
+
textDiminished: "uiText12Regular",
|
|
5476
5571
|
helperText: "uiText12Regular"
|
|
5477
5572
|
},
|
|
5478
5573
|
"xx-large": {
|
|
5479
5574
|
label: "hmiText20SemiBold",
|
|
5480
5575
|
labelDiminished: "hmiText20Regular",
|
|
5481
|
-
text: "
|
|
5576
|
+
text: "uiText18Regular",
|
|
5577
|
+
textDiminished: "uiText12Regular",
|
|
5482
5578
|
helperText: "paragraph18Regular"
|
|
5483
5579
|
}
|
|
5484
5580
|
};
|
|
@@ -5487,6 +5583,7 @@ const getTypography = (size, theme) => {
|
|
|
5487
5583
|
label: theme.typography[typographyNameFromSizeMap[size].label],
|
|
5488
5584
|
labelDiminished: theme.typography[typographyNameFromSizeMap[size].labelDiminished],
|
|
5489
5585
|
text: theme.typography[typographyNameFromSizeMap[size].text],
|
|
5586
|
+
textDiminished: theme.typography[typographyNameFromSizeMap[size].textDiminished],
|
|
5490
5587
|
helperText: theme.typography[typographyNameFromSizeMap[size].helperText]
|
|
5491
5588
|
};
|
|
5492
5589
|
};
|
|
@@ -5497,28 +5594,39 @@ const VentionTextInput = _a => {
|
|
|
5497
5594
|
variant,
|
|
5498
5595
|
size,
|
|
5499
5596
|
rightItemText,
|
|
5500
|
-
leftItemText
|
|
5597
|
+
leftItemText,
|
|
5598
|
+
maxCharacters
|
|
5501
5599
|
} = _a,
|
|
5502
|
-
props = __rest(_a, ["state", "variant", "size", "rightItemText", "leftItemText"]);
|
|
5600
|
+
props = __rest(_a, ["state", "variant", "size", "rightItemText", "leftItemText", "maxCharacters"]);
|
|
5503
5601
|
const {
|
|
5504
5602
|
classes
|
|
5505
5603
|
} = useStyles$t({
|
|
5506
5604
|
size,
|
|
5507
5605
|
variant,
|
|
5508
|
-
state
|
|
5606
|
+
state,
|
|
5607
|
+
multiline: props.multiline
|
|
5509
5608
|
});
|
|
5609
|
+
const [uncontrolledLength, setUncontrolledLength] = useState(countCharacters(props.defaultValue));
|
|
5610
|
+
const showCharacterCount = maxCharacters !== undefined && state !== "disabled";
|
|
5611
|
+
const characterCount = props.value === undefined || props.value === null ? uncontrolledLength : countCharacters(props.value);
|
|
5612
|
+
function handleChange(event) {
|
|
5613
|
+
var _a;
|
|
5614
|
+
setUncontrolledLength(event.target.value.length);
|
|
5615
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, event);
|
|
5616
|
+
}
|
|
5510
5617
|
const inputProps = Object.assign(Object.assign(Object.assign(Object.assign({}, props.InputProps), {
|
|
5511
5618
|
disabled: state === "disabled"
|
|
5512
5619
|
}), leftItemText ? {
|
|
5513
5620
|
startAdornment: jsx(InputAdornment, {
|
|
5514
5621
|
position: "start",
|
|
5515
|
-
|
|
5622
|
+
disablePointerEvents: true,
|
|
5623
|
+
className: cx(classes.adornment, classes.adornmentLeft),
|
|
5516
5624
|
children: jsx(Box$1, {
|
|
5517
5625
|
display: "flex",
|
|
5518
5626
|
alignItems: "center",
|
|
5519
5627
|
height: "100%",
|
|
5520
5628
|
children: jsx(Typography, {
|
|
5521
|
-
className: classes.
|
|
5629
|
+
className: classes.adornmentText,
|
|
5522
5630
|
children: leftItemText
|
|
5523
5631
|
})
|
|
5524
5632
|
})
|
|
@@ -5526,13 +5634,14 @@ const VentionTextInput = _a => {
|
|
|
5526
5634
|
} : {}), rightItemText ? {
|
|
5527
5635
|
endAdornment: jsx(InputAdornment, {
|
|
5528
5636
|
position: "end",
|
|
5529
|
-
|
|
5637
|
+
disablePointerEvents: true,
|
|
5638
|
+
className: cx(classes.adornment, classes.adornmentRight),
|
|
5530
5639
|
children: jsx(Box$1, {
|
|
5531
5640
|
display: "flex",
|
|
5532
5641
|
alignItems: "center",
|
|
5533
5642
|
height: "100%",
|
|
5534
5643
|
children: jsx(Typography, {
|
|
5535
|
-
className: classes.
|
|
5644
|
+
className: classes.adornmentText,
|
|
5536
5645
|
children: rightItemText
|
|
5537
5646
|
})
|
|
5538
5647
|
})
|
|
@@ -5546,7 +5655,19 @@ const VentionTextInput = _a => {
|
|
|
5546
5655
|
value: (props.type === "number" || props.type === "tel") && (props.value === undefined || props.value === null) ? "" : props.value,
|
|
5547
5656
|
variant: "outlined",
|
|
5548
5657
|
error: state === "error",
|
|
5549
|
-
helperText:
|
|
5658
|
+
helperText: showCharacterCount ? jsxs("span", {
|
|
5659
|
+
className: classes.helperRow,
|
|
5660
|
+
children: [jsx("span", {
|
|
5661
|
+
children: props.helperText
|
|
5662
|
+
}), jsxs("span", {
|
|
5663
|
+
className: classes.characterCount,
|
|
5664
|
+
children: [characterCount, "/", maxCharacters]
|
|
5665
|
+
})]
|
|
5666
|
+
}) : state !== "disabled" && props.helperText,
|
|
5667
|
+
inputProps: maxCharacters === undefined ? props.inputProps : Object.assign(Object.assign({}, props.inputProps), {
|
|
5668
|
+
maxLength: maxCharacters
|
|
5669
|
+
}),
|
|
5670
|
+
onChange: showCharacterCount ? handleChange : props.onChange,
|
|
5550
5671
|
InputProps: inputProps
|
|
5551
5672
|
}));
|
|
5552
5673
|
};
|
|
@@ -5554,6 +5675,7 @@ const useStyles$t = tss.withParams().create(({
|
|
|
5554
5675
|
size,
|
|
5555
5676
|
variant,
|
|
5556
5677
|
state,
|
|
5678
|
+
multiline,
|
|
5557
5679
|
theme
|
|
5558
5680
|
}) => {
|
|
5559
5681
|
const typographyVariants = getTypography(size, theme);
|
|
@@ -5561,44 +5683,54 @@ const useStyles$t = tss.withParams().create(({
|
|
|
5561
5683
|
root: {
|
|
5562
5684
|
gap: theme.spacing(1),
|
|
5563
5685
|
display: "flex",
|
|
5564
|
-
" & .MuiInputBase-root": {
|
|
5565
|
-
|
|
5686
|
+
" & .MuiInputBase-root": Object.assign(Object.assign({
|
|
5687
|
+
width: "100%",
|
|
5688
|
+
minWidth: 0,
|
|
5566
5689
|
margin: 0,
|
|
5567
5690
|
padding: 0,
|
|
5568
|
-
borderRadius:
|
|
5569
|
-
|
|
5691
|
+
borderRadius: theme.spacing(1)
|
|
5692
|
+
}, getInputRootSizeStyles(size, theme, multiline)), {
|
|
5570
5693
|
// Default state
|
|
5571
5694
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
5695
|
+
borderWidth: getBorderWidth$1(size),
|
|
5572
5696
|
borderColor: getBorderColorFromState(state, theme),
|
|
5573
5697
|
backgroundColor: getFieldSetBackgroundColor(state, theme, variant)
|
|
5574
5698
|
},
|
|
5575
5699
|
// Hover state
|
|
5576
5700
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
5577
|
-
|
|
5701
|
+
borderWidth: getBorderWidth$1(size),
|
|
5702
|
+
borderStyle: "solid",
|
|
5703
|
+
borderColor: getBorderColorFromState(state === "disabled" ? state : "hover", theme),
|
|
5578
5704
|
backgroundColor: getBackgroundColorFromState(state === "disabled" ? state : "hover", theme)
|
|
5579
5705
|
},
|
|
5580
5706
|
// Focused state
|
|
5581
5707
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
5582
|
-
|
|
5708
|
+
borderWidth: getBorderWidth$1(size),
|
|
5709
|
+
borderStyle: "solid",
|
|
5710
|
+
borderColor: getBorderColorFromState(state === "disabled" ? state : "focused", theme),
|
|
5583
5711
|
backgroundColor: getBackgroundColorFromState(state === "disabled" ? state : "focused", theme)
|
|
5584
5712
|
},
|
|
5585
5713
|
// Disabled state
|
|
5586
5714
|
"&.Mui-disabled .MuiOutlinedInput-notchedOutline": {
|
|
5587
|
-
|
|
5715
|
+
borderWidth: getBorderWidth$1(size),
|
|
5716
|
+
borderStyle: "solid",
|
|
5717
|
+
borderColor: getBorderColorFromState("disabled", theme),
|
|
5588
5718
|
backgroundColor: getBackgroundColorFromState("disabled", theme)
|
|
5589
5719
|
}
|
|
5590
|
-
},
|
|
5591
|
-
" & .MuiInputBase-input": Object.assign(Object.assign(Object.assign({}, typographyVariants.text), {
|
|
5720
|
+
}),
|
|
5721
|
+
" & .MuiInputBase-input": Object.assign(Object.assign(Object.assign(Object.assign({}, typographyVariants.text), {
|
|
5592
5722
|
zIndex: 1,
|
|
5723
|
+
height: "100%",
|
|
5593
5724
|
backgroundColor: "transparent"
|
|
5594
|
-
}), getInputPaddingStyles(size, theme)),
|
|
5725
|
+
}), getInputPaddingStyles(size, theme)), multiline ? getMultilineInputStyles(size, theme) : {}),
|
|
5595
5726
|
" & .MuiInputBase-input::placeholder": {
|
|
5596
5727
|
color: theme.palette.text.tertiary,
|
|
5597
5728
|
opacity: 1
|
|
5598
5729
|
},
|
|
5599
5730
|
" & .MuiInputAdornment-root": {
|
|
5600
5731
|
maxHeight: "none",
|
|
5601
|
-
height: "100%"
|
|
5732
|
+
height: "100%",
|
|
5733
|
+
alignSelf: multiline ? "stretch" : undefined
|
|
5602
5734
|
},
|
|
5603
5735
|
" & .MuiInputLabel-root": Object.assign({
|
|
5604
5736
|
marginBottom: 0
|
|
@@ -5612,58 +5744,78 @@ const useStyles$t = tss.withParams().create(({
|
|
|
5612
5744
|
margin: 0
|
|
5613
5745
|
}
|
|
5614
5746
|
},
|
|
5615
|
-
|
|
5747
|
+
adornment: {
|
|
5748
|
+
flexShrink: 0,
|
|
5616
5749
|
height: "100%",
|
|
5617
5750
|
boxSizing: "border-box",
|
|
5618
|
-
paddingRight: theme.spacing(2),
|
|
5619
5751
|
paddingLeft: theme.spacing(2),
|
|
5620
|
-
|
|
5621
|
-
borderBottomRightRadius: getBorderRadius$1(),
|
|
5622
|
-
backgroundColor: theme.palette.background.surface1,
|
|
5623
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
5752
|
+
paddingRight: theme.spacing(2),
|
|
5624
5753
|
margin: 0
|
|
5625
5754
|
},
|
|
5626
|
-
|
|
5627
|
-
color: theme.palette.text.primary,
|
|
5628
|
-
fontSize: 10
|
|
5629
|
-
},
|
|
5630
|
-
leftItem: {
|
|
5631
|
-
height: "100%",
|
|
5632
|
-
boxSizing: "border-box",
|
|
5755
|
+
adornmentLeft: {
|
|
5633
5756
|
paddingLeft: theme.spacing(2),
|
|
5634
|
-
paddingRight:
|
|
5635
|
-
borderTopLeftRadius: getBorderRadius$1(),
|
|
5636
|
-
borderBottomLeftRadius: getBorderRadius$1(),
|
|
5637
|
-
backgroundColor: theme.palette.background.surface1,
|
|
5638
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
5639
|
-
margin: 0
|
|
5757
|
+
paddingRight: 0
|
|
5640
5758
|
},
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5759
|
+
adornmentRight: {
|
|
5760
|
+
paddingLeft: 0,
|
|
5761
|
+
paddingRight: theme.spacing(2)
|
|
5762
|
+
},
|
|
5763
|
+
adornmentText: Object.assign({
|
|
5764
|
+
color: theme.palette.text.tertiary
|
|
5765
|
+
}, typographyVariants.textDiminished),
|
|
5766
|
+
helperRow: {
|
|
5767
|
+
display: "flex",
|
|
5768
|
+
justifyContent: "space-between",
|
|
5769
|
+
gap: theme.spacing(1),
|
|
5770
|
+
width: "100%"
|
|
5771
|
+
},
|
|
5772
|
+
characterCount: {
|
|
5773
|
+
flexShrink: 0,
|
|
5774
|
+
color: theme.palette.text.tertiary
|
|
5644
5775
|
}
|
|
5645
5776
|
};
|
|
5646
5777
|
});
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
return theme.palette.text.warning;
|
|
5654
|
-
case "success":
|
|
5655
|
-
return theme.palette.text.positive;
|
|
5656
|
-
case "error":
|
|
5657
|
-
return theme.palette.text.negative;
|
|
5658
|
-
default:
|
|
5659
|
-
return undefined;
|
|
5778
|
+
/** A multiline input has to grow with its content, so the size becomes a floor rather than a fixed height. */
|
|
5779
|
+
const getInputRootSizeStyles = (size, theme, multiline) => {
|
|
5780
|
+
if (!multiline) {
|
|
5781
|
+
return {
|
|
5782
|
+
height: getInputHeight(size, theme)
|
|
5783
|
+
};
|
|
5660
5784
|
}
|
|
5785
|
+
return {
|
|
5786
|
+
height: "auto",
|
|
5787
|
+
minHeight: getInputHeight(size, theme),
|
|
5788
|
+
alignItems: "flex-start"
|
|
5789
|
+
};
|
|
5790
|
+
};
|
|
5791
|
+
const getMultilineInputStyles = (size, theme) => {
|
|
5792
|
+
return Object.assign(Object.assign({}, getMultilineVerticalPaddingStyles(size, theme)), {
|
|
5793
|
+
whiteSpace: "pre-wrap",
|
|
5794
|
+
overflowWrap: "break-word",
|
|
5795
|
+
overflowY: "auto",
|
|
5796
|
+
"&::-webkit-scrollbar": {
|
|
5797
|
+
width: theme.spacing(3),
|
|
5798
|
+
cursor: "default"
|
|
5799
|
+
},
|
|
5800
|
+
"&::-webkit-scrollbar-thumb": {
|
|
5801
|
+
cursor: "default",
|
|
5802
|
+
backgroundColor: theme.palette.border.subtleSlate,
|
|
5803
|
+
border: `${theme.spacing(1)} solid transparent`,
|
|
5804
|
+
backgroundClip: "content-box",
|
|
5805
|
+
borderRadius: theme.spacing(2)
|
|
5806
|
+
},
|
|
5807
|
+
"&::-webkit-scrollbar-thumb:hover": {
|
|
5808
|
+
backgroundColor: theme.palette.border.hover
|
|
5809
|
+
},
|
|
5810
|
+
"&::-webkit-scrollbar-track": {
|
|
5811
|
+
backgroundColor: "transparent",
|
|
5812
|
+
marginTop: theme.spacing(1),
|
|
5813
|
+
marginBottom: theme.spacing(1)
|
|
5814
|
+
}
|
|
5815
|
+
});
|
|
5661
5816
|
};
|
|
5662
|
-
const
|
|
5663
|
-
|
|
5664
|
-
return `${theme.palette.background.inputShaded}${state === "error" ? " !important" : ""}`;
|
|
5665
|
-
}
|
|
5666
|
-
return getBackgroundColorFromState(state, theme);
|
|
5817
|
+
const countCharacters = value => {
|
|
5818
|
+
return typeof value === "string" || typeof value === "number" ? `${value}`.length : 0;
|
|
5667
5819
|
};
|
|
5668
5820
|
|
|
5669
5821
|
const radioColorMap = {
|
package/infinity.esm.js
CHANGED
package/info-circle.esm.js
CHANGED
package/input-output.esm.js
CHANGED
package/io-link.esm.js
CHANGED
package/ipad-horizontal.esm.js
CHANGED
package/json.esm.js
CHANGED
package/lan.esm.js
CHANGED
package/language.esm.js
CHANGED
package/legacy-axis.esm.js
CHANGED
package/legacy-robot.esm.js
CHANGED
package/letter-case.esm.js
CHANGED
package/line.esm.js
CHANGED
package/linear.esm.js
CHANGED
package/link.esm.js
CHANGED
package/list-check.esm.js
CHANGED
package/load-balancer.esm.js
CHANGED
package/lock.esm.js
CHANGED
package/logout.esm.js
CHANGED
package/machinelogic-2.esm.js
CHANGED