@getcortexlabs/mavis-web 0.1.0-rc.11.1 → 0.1.0-rc.12

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.
Files changed (46) hide show
  1. package/README.md +4 -4
  2. package/dist/components/MChip.d.ts +1 -1
  3. package/dist/components/MCombobox.d.ts +1 -1
  4. package/dist/components/MDialog.d.ts +2 -2
  5. package/dist/components/MFilePicker.d.ts +3 -3
  6. package/dist/components/MLink.d.ts +1 -1
  7. package/dist/components/MListItem.d.ts +1 -1
  8. package/dist/components/MPinInput.d.ts +57 -0
  9. package/dist/components/MPinInput.d.ts.map +1 -0
  10. package/dist/components/MPinInput.js +159 -0
  11. package/dist/components/MPinInput.js.map +1 -0
  12. package/dist/components/MPopover.d.ts.map +1 -1
  13. package/dist/components/MPopover.js +29 -19
  14. package/dist/components/MPopover.js.map +1 -1
  15. package/dist/components/MResizablePanels.d.ts +1 -1
  16. package/dist/components/MStack.d.ts +6 -6
  17. package/dist/components/MTimePicker.d.ts +4 -4
  18. package/dist/components/configurator.d.ts +1 -1
  19. package/dist/components/creative.d.ts +614 -0
  20. package/dist/components/creative.d.ts.map +1 -0
  21. package/dist/components/creative.js +191 -0
  22. package/dist/components/creative.js.map +1 -0
  23. package/dist/components/dashboard.d.ts +474 -0
  24. package/dist/components/dashboard.d.ts.map +1 -0
  25. package/dist/components/dashboard.js +286 -0
  26. package/dist/components/dashboard.js.map +1 -0
  27. package/dist/components/discovery.d.ts +2 -2
  28. package/dist/components/screen-components.d.ts +502 -0
  29. package/dist/components/screen-components.d.ts.map +1 -0
  30. package/dist/components/screen-components.js +67 -0
  31. package/dist/components/screen-components.js.map +1 -0
  32. package/dist/index.d.ts +4 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +23 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/use-motion-surface.d.ts.map +1 -1
  37. package/dist/use-motion-surface.js +27 -8
  38. package/dist/use-motion-surface.js.map +1 -1
  39. package/package.json +3 -3
  40. package/src/components/MPinInput.ts +194 -0
  41. package/src/components/MPopover.ts +33 -19
  42. package/src/components/creative.ts +240 -0
  43. package/src/components/dashboard.ts +353 -0
  44. package/src/components/screen-components.ts +86 -0
  45. package/src/index.ts +64 -0
  46. package/src/use-motion-surface.ts +40 -15
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Mavis for Vue Web
2
2
 
3
- Vue Web components and themes for Mavis UI, version `0.1.0-rc.11.1`. Experimental prerelease for testing in real apps; the API can change between prerelease versions. Licensed under MIT.
3
+ Vue Web components and themes for Mavis UI, version `0.1.0-rc.12`. Experimental prerelease for testing in real apps; the API can change between prerelease versions. Licensed under MIT.
4
4
 
5
5
  In an existing Vue application:
6
6
 
7
7
  Alpha.9 includes `createMavisServices` from `@getcortexlabs/mavis-web/services` for local component imports, selective SVG icons and `base.css` without the icon font. See the [modular installation guide](https://mavis-ui.getcortexlabs.com/guide/modular).
8
8
 
9
9
  ```sh
10
- npm install @getcortexlabs/mavis-web@0.1.0-rc.11.1 @rafaelaugusto/jolt@0.1.0-rc.11
10
+ npm install @getcortexlabs/mavis-web@0.1.0-rc.12 @rafaelaugusto/jolt@0.1.0-rc.11.1
11
11
  ```
12
12
 
13
13
  ```ts
@@ -21,10 +21,10 @@ createApp(App).use(createMavis()).mount('#app')
21
21
 
22
22
  The stylesheet supplies focus indicators, box overlays, and motion. The plugin registers the layout, typography, form, selection, feedback and overlay components, including scoped themes and inline text. Vue also accepts their `m-*` spellings. See the [component reference](https://mavis-ui.getcortexlabs.com/components/) for the full catalog.
23
23
 
24
- Themes and Vue context come from `@getcortexlabs/mavis-core`. This source checkout requires Jolt 0.1.0-rc.11 as a peer for component motion and deferred DOM attachment. Browser consumers do not install NativeScript; Mavis uses only Jolt /web and /web/vue. See the [motion guide](https://mavis-ui.getcortexlabs.com/guide/motion).
24
+ Themes and Vue context come from `@getcortexlabs/mavis-core`. This source checkout requires Jolt 0.1.0-rc.11.1 as a peer for component motion and deferred DOM attachment. Browser consumers do not install NativeScript; Mavis uses only Jolt /web and /web/vue. See the [motion guide](https://mavis-ui.getcortexlabs.com/guide/motion).
25
25
 
26
26
  Use `MText.as` for HTML heading semantics. Buttons emit a payload-free `click` and retain native HTML keyboard activation. Sliders expose semantic values to accessibility APIs, including fractional steps. Theme state belongs to each app. The package is safe to import during server rendering.
27
27
 
28
28
  Tested with Vue 3.5.42, Vite 6.4.5, TypeScript 6.0.3 and vue-tsc 3.3.13. See the [Web guide](https://mavis-ui.getcortexlabs.com/guide/web) for setup and portability limits, and the [release notes](https://github.com/getcortexlabs/mavis-ui/blob/main/CHANGELOG.md) for the prerelease scope.
29
29
 
30
- This release requires Jolt **0.1.0-rc.11** for the experimental visual effects, retained collections, platform motion and sensor integrations. Keep the Mavis packages at the same version. Rebuild native applications after upgrading Jolt.
30
+ This release requires Jolt **0.1.0-rc.11.1** for the experimental visual effects, retained collections, platform motion and sensor integrations. Keep the Mavis packages at the same version. Rebuild native applications after upgrading Jolt.
@@ -110,8 +110,8 @@ export declare const MChip: import("vue").DefineComponent<import("vue").ExtractP
110
110
  tone: "primary" | "accent";
111
111
  icon: "users" | "slice" | "map" | "type" | "command" | "copy" | "focus" | "pause" | "play" | "scroll" | "timeline" | "move" | "container" | "accessibility" | "section" | "x" | "scale" | "replace" | "search" | "split" | "repeat" | "anchor" | "link" | "radius" | "calendar" | "loader" | "square" | "circle" | "image" | "keyboard" | "key" | "target" | "code" | "form" | "menu" | "option" | "summary" | "table" | "video" | "file" | "a-arrow-down" | "a-arrow-up" | "a-large-small" | "activity" | "ad" | "air-vent" | "airplay" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "alarm-smoke" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ambulance" | "ampersand" | "ampersands" | "amphora" | "angle" | "antenna" | "anvil" | "aperture" | "app-window" | "app-window-mac" | "apple" | "archive" | "archive-arrow-down" | "archive-arrow-up" | "archive-x" | "armchair" | "armenian-dram" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-0-1" | "arrow-down-1-0" | "arrow-down-a-z" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-left" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-to-line" | "arrow-right" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-to-line" | "arrow-up" | "arrow-up-0-1" | "arrow-up-1-0" | "arrow-up-a-z" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-narrow-wide" | "arrow-up-right" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrows-up-from-line" | "asterisk" | "astroid" | "at-sign" | "atom" | "audio-lines" | "audio-lines-off" | "audio-lines-x" | "audio-waveform" | "avocado" | "award" | "axe" | "axis-3d" | "azerbaijani-manat" | "baby" | "backpack" | "bacon" | "badge" | "badge-alert" | "badge-cent" | "badge-check" | "badge-dollar-sign" | "badge-euro" | "badge-indian-rupee" | "badge-info" | "badge-japanese-yen" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-pound-sterling" | "badge-question-mark" | "badge-russian-ruble" | "badge-swiss-franc" | "badge-turkish-lira" | "badge-x" | "baggage-claim" | "ball-wave" | "balloon" | "ban" | "banana" | "bandage" | "bangladeshi-taka" | "banknote" | "banknote-arrow-down" | "banknote-arrow-up" | "banknote-check" | "banknote-x" | "barcode" | "barrel" | "baseline" | "bath" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-plus" | "battery-warning" | "beaker" | "bean" | "bean-off" | "bed" | "bed-double" | "bed-single" | "beef" | "beef-off" | "beer" | "beer-off" | "belarusian-ruble" | "bell" | "bell-check" | "bell-dot" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "biceps-flexed" | "bike" | "binary" | "binoculars" | "biohazard" | "bird" | "birdhouse" | "bitcoin" | "blend" | "blender" | "blinds" | "blocks" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "bolt" | "bomb" | "bone" | "bone-fracture" | "book" | "book-a" | "book-alert" | "book-audio" | "book-bookmark" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-headphones" | "book-heart" | "book-image" | "book-key" | "book-lock" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-search" | "book-text" | "book-type" | "book-up" | "book-up-2" | "book-user" | "book-x" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-off" | "bookmark-plus" | "bookmark-x" | "boom-box" | "bot" | "bot-message-square" | "bot-off" | "bottle-wine" | "bow-arrow" | "box" | "boxes" | "boxes-linked" | "braces" | "brackets" | "brain" | "brain-circuit" | "brain-cog" | "brain-off" | "brick-wall" | "brick-wall-fire" | "brick-wall-shield" | "bridge" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "briefcase-plus" | "bring-to-front" | "broccoli" | "broom" | "broom-sparkles" | "brush" | "brush-cleaning" | "bubbles" | "bug" | "bug-off" | "bug-play" | "building" | "building-complex" | "building-complex-plus" | "bus" | "bus-front" | "cable" | "cable-car" | "cake" | "cake-slice" | "calculator" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-left" | "calendar-arrow-right" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-chevrons-left" | "calendar-chevrons-right" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-fold" | "calendar-heart" | "calendar-minus" | "calendar-minus-2" | "calendar-off" | "calendar-plus" | "calendar-plus-2" | "calendar-range" | "calendar-search" | "calendar-sync" | "calendar-x" | "calendar-x-2" | "calendars" | "camera" | "camera-off" | "can" | "can-soda" | "candy" | "candy-cane" | "candy-off" | "cannabis" | "cannabis-off" | "captions" | "captions-off" | "car" | "car-battery" | "car-front" | "car-taxi-front" | "caravan" | "card-sim" | "carrot" | "carton" | "carton-off" | "case-lower" | "case-sensitive" | "case-upper" | "cassette-tape" | "cast" | "castle" | "cat" | "cctv" | "cctv-off" | "certificate" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-quadrant" | "chart-radar" | "chart-scatter" | "chart-spline" | "check" | "check-check" | "check-line" | "chef-hat" | "cherry" | "chess-bishop" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevron-down" | "chevron-first" | "chevron-last" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-left-right-ellipsis" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "church" | "cigarette" | "cigarette-off" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-chevrons-down" | "circle-chevrons-left" | "circle-chevrons-right" | "circle-chevrons-up" | "circle-dashed" | "circle-dashed-check" | "circle-divide" | "circle-dollar-sign" | "circle-dot" | "circle-dot-dashed" | "circle-ellipsis" | "circle-equal" | "circle-euro" | "circle-fading-arrow-up" | "circle-fading-play" | "circle-fading-plus" | "circle-gauge" | "circle-letter-a" | "circle-letter-b" | "circle-letter-c" | "circle-letter-d" | "circle-letter-e" | "circle-letter-f" | "circle-letter-g" | "circle-letter-h" | "circle-letter-i" | "circle-letter-j" | "circle-letter-k" | "circle-letter-l" | "circle-letter-m" | "circle-letter-n" | "circle-letter-o" | "circle-letter-p" | "circle-letter-p-off" | "circle-letter-q" | "circle-letter-r" | "circle-letter-s" | "circle-letter-t" | "circle-letter-u" | "circle-letter-v" | "circle-letter-w" | "circle-letter-x" | "circle-letter-y" | "circle-letter-z" | "circle-minus" | "circle-off" | "circle-pause" | "circle-percent" | "circle-pile" | "circle-play" | "circle-plus" | "circle-pound-sterling" | "circle-power" | "circle-question-mark" | "circle-slash" | "circle-slash-2" | "circle-small" | "circle-star" | "circle-stop" | "circle-user" | "circle-user-round" | "circle-x" | "circuit-board" | "citrus" | "clapperboard" | "clef-alto" | "clef-bass" | "clef-treble" | "clipboard" | "clipboard-check" | "clipboard-clock" | "clipboard-copy" | "clipboard-list" | "clipboard-minus" | "clipboard-paste" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-type" | "clipboard-x" | "clock" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "clock-alert" | "clock-arrow-down" | "clock-arrow-left" | "clock-arrow-right" | "clock-arrow-up" | "clock-check" | "clock-fading" | "clock-plus" | "closed-caption" | "cloud" | "cloud-alert" | "cloud-backup" | "cloud-check" | "cloud-cog" | "cloud-download" | "cloud-drizzle" | "cloud-fog" | "cloud-hail" | "cloud-lightning" | "cloud-moon" | "cloud-moon-rain" | "cloud-off" | "cloud-rain" | "cloud-rain-wind" | "cloud-snow" | "cloud-sun" | "cloud-sun-rain" | "cloud-sync" | "cloud-upload" | "cloudy" | "clover" | "club" | "code-xml" | "coffee" | "cog" | "coins" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "combine" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-round" | "contrast" | "cookie" | "cooking-pot" | "copy-check" | "copy-minus" | "copy-plus" | "copy-slash" | "copy-x" | "copyleft" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "cpu-ai" | "creative-commons" | "credit-card" | "credit-card-check" | "credit-card-minus" | "credit-card-plus" | "credit-card-reader" | "credit-card-x" | "croissant" | "crop" | "cross" | "crosshair" | "crown" | "cuboid" | "cup-soda" | "cupcake" | "currency" | "cylinder" | "dam" | "database" | "database-arrow-down" | "database-arrow-up" | "database-backup" | "database-check" | "database-cog" | "database-minus" | "database-plus" | "database-search" | "database-x" | "database-zap" | "decimals-arrow-left" | "decimals-arrow-right" | "delete" | "dessert" | "diameter" | "diamond" | "diamond-minus" | "diamond-percent" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "dices" | "diff" | "disc" | "disc-2" | "disc-3" | "disc-album" | "divide" | "dna" | "dna-off" | "dock" | "dog" | "dollar-sign" | "dome" | "donut" | "door-closed" | "door-closed-cog" | "door-closed-locked" | "door-closed-package" | "door-open" | "door-stairwell" | "dot" | "download" | "drafting-compass" | "drama" | "drill" | "drone" | "droplet" | "droplet-off" | "droplets" | "drum" | "drumstick" | "dumbbell" | "ear" | "ear-off" | "earbuds" | "earbuds-off" | "earth" | "earth-lock" | "eclipse" | "egg" | "egg-fried" | "egg-off" | "eighth-note" | "eighth-notes" | "eject" | "ellipse" | "ellipsis" | "ellipsis-vertical" | "emirati-dirham" | "engine" | "equal" | "equal-approximately" | "equal-approximately-not" | "equal-not" | "eraser" | "ethernet-port" | "euro" | "ev-charger" | "expand" | "external-link" | "eye" | "eye-closed" | "eye-dashed" | "eye-off" | "face-angry" | "face-expressionless" | "face-grinning" | "face-neutral" | "face-slightly-frowning" | "face-slightly-smiling" | "face-slightly-smiling-plus" | "factory" | "fan" | "fast-forward" | "faucet" | "feather" | "fence" | "ferris-wheel" | "file-archive" | "file-axis-3d" | "file-badge" | "file-box" | "file-braces" | "file-braces-corner" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-check-corner" | "file-clock" | "file-code" | "file-code-corner" | "file-cog" | "file-diff" | "file-digit" | "file-down" | "file-exclamation-point" | "file-headphone" | "file-heart" | "file-image" | "file-input" | "file-key" | "file-lock" | "file-minus" | "file-minus-corner" | "file-music" | "file-output" | "file-pen" | "file-pen-line" | "file-play" | "file-plus" | "file-plus-corner" | "file-question-mark" | "file-scan" | "file-search" | "file-search-corner" | "file-signal" | "file-sliders" | "file-spreadsheet" | "file-stack" | "file-symlink" | "file-terminal" | "file-text" | "file-type" | "file-type-corner" | "file-up" | "file-user" | "file-video-camera" | "file-volume" | "file-x" | "file-x-corner" | "files" | "film" | "fingerprint-pattern" | "fire-extinguisher" | "fish" | "fish-off" | "fish-symbol" | "fishing-hook" | "fishing-rod" | "flag" | "flag-off" | "flag-triangle-left" | "flag-triangle-right" | "flame" | "flame-kindling" | "flashlight" | "flashlight-off" | "flask-conical" | "flask-conical-off" | "flask-round" | "flower" | "flower-2" | "fold-horizontal" | "fold-vertical" | "folder" | "folder-archive" | "folder-bookmark" | "folder-check" | "folder-clock" | "folder-closed" | "folder-code" | "folder-cog" | "folder-dot" | "folder-down" | "folder-git" | "folder-git-2" | "folder-heart" | "folder-input" | "folder-kanban" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-open-dot" | "folder-output" | "folder-pen" | "folder-plus" | "folder-root" | "folder-search" | "folder-search-2" | "folder-symlink" | "folder-sync" | "folder-tree" | "folder-up" | "folder-user" | "folder-users" | "folder-x" | "folders" | "footprints" | "forklift" | "forward" | "frame" | "fuel" | "fullscreen" | "funnel" | "funnel-plus" | "funnel-x" | "galaxy" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gamepad" | "gamepad-2" | "gamepad-directional" | "gap-horizontal" | "gap-vertical" | "gauge" | "gavel" | "gem" | "georgian-lari" | "germ" | "germ-off" | "ghost" | "gift" | "git-branch" | "git-branch-minus" | "git-branch-plus" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-compare-arrows" | "git-fork" | "git-graph" | "git-merge" | "git-merge-conflict" | "git-pull-request" | "git-pull-request-arrow" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-create-arrow" | "git-pull-request-draft" | "glass-water" | "glasses" | "globe" | "globe-check" | "globe-code" | "globe-lock" | "globe-off" | "globe-x" | "goal" | "gpu" | "graduation-cap" | "grape" | "graph-hub" | "graph-star" | "grid-2x2" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grid-3x2" | "grid-3x3" | "grip" | "grip-horizontal" | "grip-vertical" | "groceries" | "group" | "guitar" | "guitar-electric" | "half-note" | "ham" | "hamburger" | "hammer" | "hand" | "hand-coins" | "hand-fist" | "hand-grab" | "hand-heart" | "hand-helping" | "hand-metal" | "hand-platter" | "handbag" | "handle-bottom-right" | "handshake" | "hard-drive" | "hard-drive-download" | "hard-drive-upload" | "hard-hat" | "hash" | "hat-glasses" | "haze" | "hd" | "hdmi-port" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "headphone-off" | "headphones" | "headset" | "heart" | "heart-crack" | "heart-handshake" | "heart-minus" | "heart-off" | "heart-plus" | "heart-pulse" | "heart-x" | "heater" | "helicopter" | "hexagon" | "highlighter" | "hiking-stick" | "hockey-stick" | "hop" | "hop-off" | "hospital" | "hot-air-balloon" | "hotel" | "hourglass" | "hourglass-cog" | "house" | "house-cog" | "house-heart" | "house-plug" | "house-plus" | "house-wifi" | "houses" | "ice-cream-bowl" | "ice-cream-cone" | "id-card" | "id-card-lanyard" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "image-upscale" | "images" | "import" | "inbox" | "indian-rupee" | "infinity" | "info" | "inspection-panel" | "italic" | "iteration-ccw" | "iteration-cw" | "iv-bag" | "japanese-yen" | "joystick" | "kanban" | "kayak" | "kazakh-tenge" | "key-round" | "key-square" | "keyboard-music" | "keyboard-off" | "lambda" | "lamp" | "lamp-ceiling" | "lamp-desk" | "lamp-floor" | "lamp-wall-down" | "lamp-wall-up" | "land-plot" | "landmark" | "languages" | "laptop" | "laptop-minimal" | "laptop-minimal-check" | "laser" | "lasso" | "lasso-select" | "layer-arrow-down" | "layer-arrow-up" | "layers" | "layers-2" | "layers-arrow-down" | "layers-arrow-up" | "layers-minus" | "layers-plus" | "layout-arrow-down" | "layout-arrow-right" | "layout-dashboard" | "layout-freeform" | "layout-grid" | "layout-grid-circles" | "layout-list" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "leaf" | "leafy-green" | "lectern" | "lens" | "lens-concave" | "lens-convex" | "letter-a" | "letter-b" | "letter-c" | "letter-d" | "letter-e" | "letter-f" | "letter-g" | "letter-h" | "letter-i" | "letter-j" | "letter-k" | "letter-l" | "letter-m" | "letter-n" | "letter-o" | "letter-p" | "letter-q" | "letter-r" | "letter-s" | "letter-spacing" | "letter-t" | "letter-u" | "letter-v" | "letter-w" | "letter-x" | "letter-y" | "letter-z" | "letters" | "library" | "library-big" | "life-buoy" | "ligature" | "lightbulb" | "lightbulb-off" | "lighthouse" | "line-dot-bottom-vertical" | "line-dot-left-horizontal" | "line-dot-right-horizontal" | "line-dot-top-vertical" | "line-height" | "line-squiggle" | "line-style" | "link-2" | "link-2-off" | "list" | "list-check" | "list-checks" | "list-chevrons-down-up" | "list-chevrons-up-down" | "list-clock" | "list-collapse" | "list-end" | "list-filter" | "list-filter-plus" | "list-indent-decrease" | "list-indent-increase" | "list-minus" | "list-music" | "list-ordered" | "list-plus" | "list-restart" | "list-sort-ascending" | "list-sort-descending" | "list-start" | "list-todo" | "list-tree" | "list-video" | "list-x" | "loader-circle" | "loader-pinwheel" | "locate" | "locate-fixed" | "locate-off" | "lock" | "lock-keyhole" | "lock-keyhole-open" | "lock-open" | "log-in" | "log-out" | "logs" | "lollipop" | "luggage" | "magnet" | "mail" | "mail-badge" | "mail-check" | "mail-clock" | "mail-dot" | "mail-minus" | "mail-open" | "mail-pen" | "mail-plus" | "mail-question-mark" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "map-minus" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-off" | "map-pin-pen" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-search" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "map-plus" | "mars" | "mars-stroke" | "martini" | "maximize" | "maximize-2" | "medal" | "megaphone" | "megaphone-off" | "memory-stick" | "merge" | "message-circle" | "message-circle-check" | "message-circle-code" | "message-circle-dashed" | "message-circle-dashed-check" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-plus" | "message-circle-question-mark" | "message-circle-reply" | "message-circle-text" | "message-circle-warning" | "message-circle-x" | "message-square" | "message-square-check" | "message-square-code" | "message-square-dashed" | "message-square-diff" | "message-square-dot" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-warning" | "message-square-x" | "messages-circle" | "messages-square" | "metronome" | "mic" | "mic-audio-lines" | "mic-off" | "mic-signal" | "mic-vocal" | "microchip" | "microscope" | "microwave" | "midi-port" | "milestone" | "milk" | "milk-off" | "minimize" | "minimize-2" | "minus" | "mirror-rectangular" | "mirror-round" | "monitor" | "monitor-check" | "monitor-cloud" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-pc" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "moon" | "moon-star" | "mop" | "mop-sparkles" | "mosque" | "motorbike" | "mountain" | "mountain-snow" | "mouse" | "mouse-left" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-2-off" | "mouse-pointer-ban" | "mouse-pointer-click" | "mouse-right" | "mouth" | "mouth-off" | "move-3d" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "navigation" | "navigation-2" | "navigation-2-off" | "navigation-off" | "nepali-rupee" | "network" | "newspaper" | "nfc" | "non-binary" | "notebook" | "notebook-dot" | "notebook-pen" | "notebook-tabs" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "numbers" | "nut" | "nut-off" | "octagon" | "octagon-alert" | "octagon-minus" | "octagon-pause" | "octagon-x" | "omega" | "orbit" | "origami" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-vertical" | "palette" | "panda" | "panel-bottom" | "panel-bottom-close" | "panel-bottom-dashed" | "panel-bottom-open" | "panel-left" | "panel-left-close" | "panel-left-dashed" | "panel-left-open" | "panel-left-right-dashed" | "panel-right" | "panel-right-close" | "panel-right-dashed" | "panel-right-open" | "panel-top" | "panel-top-bottom-dashed" | "panel-top-close" | "panel-top-dashed" | "panel-top-open" | "panels-left-bottom" | "panels-right-bottom" | "panels-top-left" | "paper-bag" | "paperclip" | "parasol" | "parentheses" | "park" | "parking-meter" | "party-popper" | "paw-print" | "pc-case" | "pen" | "pen-line" | "pen-off" | "pen-tool" | "pencil" | "pencil-line" | "pencil-off" | "pencil-ruler" | "pencil-sparkles" | "pentagon" | "percent" | "perfume-bottle" | "person-standing" | "phi" | "philippine-peso" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-log" | "phone-missed" | "phone-off" | "phone-outgoing" | "pi" | "piano" | "pickaxe" | "picture-in-picture" | "picture-in-picture-2" | "piggy-bank" | "pilcrow" | "pilcrow-left" | "pilcrow-right" | "pill" | "pill-bottle" | "pin" | "pin-off" | "pipette" | "pizza" | "plane" | "plane-landing" | "plane-takeoff" | "plant-pot" | "play-off" | "playing-card" | "playing-cards" | "playing-cards-fan" | "plug" | "plug-2" | "plug-zap" | "plus" | "pocket-knife" | "podium" | "pointer" | "pointer-off" | "popcorn" | "popsicle" | "pound-sterling" | "power" | "power-off" | "presentation" | "printer" | "printer-3d" | "printer-check" | "printer-x" | "projector" | "proportions" | "puzzle" | "pyramid" | "qr-code" | "quote" | "rabbit" | "radar" | "radiation" | "radical" | "radio" | "radio-off" | "radio-receiver" | "radio-tower" | "rainbow" | "rat" | "ratio" | "receipt" | "receipt-cent" | "receipt-euro" | "receipt-indian-rupee" | "receipt-japanese-yen" | "receipt-pound-sterling" | "receipt-russian-ruble" | "receipt-swiss-franc" | "receipt-text" | "receipt-turkish-lira" | "rectangle-circle" | "rectangle-ellipsis" | "rectangle-goggles" | "rectangle-horizontal" | "rectangle-vertical" | "recycle" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "refrigerator" | "regex" | "remove-formatting" | "repeat-1" | "repeat-2" | "repeat-off" | "replace-all" | "reply" | "reply-all" | "rewind" | "ribbon" | "road" | "robot-arm" | "robot-vacuum" | "rocket" | "rocking-chair" | "roller-coaster" | "rose" | "rotate-3d" | "rotate-ccw" | "rotate-ccw-clock" | "rotate-ccw-key" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-clock" | "rotate-cw-fading-clock" | "rotate-cw-square" | "route" | "route-off" | "router" | "rows-2" | "rows-3" | "rows-4" | "rss" | "rugby-ball" | "ruler" | "ruler-dimension-line" | "russian-ruble" | "sailboat" | "salad" | "sandwich" | "satellite" | "satellite-dish" | "saudi-riyal" | "save" | "save-all" | "save-check" | "save-off" | "save-pen" | "save-plus" | "scale-3d" | "scaling" | "scan" | "scan-barcode" | "scan-box" | "scan-eye" | "scan-face" | "scan-heart" | "scan-line" | "scan-qr-code" | "scan-search" | "scan-square" | "scan-text" | "school" | "scissors" | "scissors-line-dashed" | "scooter" | "scratch-blocks" | "screen-share" | "screen-share-off" | "screw" | "scroll-text" | "search-alert" | "search-check" | "search-code" | "search-slash" | "search-x" | "send" | "send-horizontal" | "send-to-back" | "separator-horizontal" | "separator-vertical" | "server" | "server-cog" | "server-crash" | "server-nas" | "server-off" | "server-plus" | "settings" | "settings-2" | "shapes" | "share" | "share-2" | "sheet" | "shell" | "shelving-unit" | "shield" | "shield-alert" | "shield-ban" | "shield-check" | "shield-cog" | "shield-cog-corner" | "shield-ellipsis" | "shield-half" | "shield-house" | "shield-keyhole" | "shield-lock" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question-mark" | "shield-user" | "shield-x" | "ship" | "ship-cargo" | "ship-wheel" | "shirt" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shopping-cart-minus" | "shopping-cart-plus" | "shovel" | "shower-head" | "shredder" | "shrimp" | "shrimp-off" | "shrink" | "shrub" | "shuffle" | "sigma" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "signpost" | "signpost-big" | "siren" | "siren-off" | "sixteenth-notes" | "skip-back" | "skip-forward" | "skull" | "slash" | "sliders-horizontal" | "sliders-vertical" | "smartphone" | "smartphone-charging" | "smartphone-nfc" | "smartphone-user-round" | "snail" | "snowflake" | "soap-dispenser-droplet" | "sofa" | "solar-panel" | "soup" | "space" | "spade" | "sparkle" | "sparkles" | "speaker" | "speech" | "spell-check" | "spell-check-2" | "spline" | "spline-pointer" | "spool" | "sport-shoe" | "spotlight" | "spray-can" | "sprout" | "square-activity" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-right-enter" | "square-arrow-right-exit" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-asterisk" | "square-bookmark" | "square-bottom-dashed-scissors" | "square-centerline-dashed-horizontal" | "square-centerline-dashed-vertical" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-chevrons-down" | "square-chevrons-left" | "square-chevrons-right" | "square-chevrons-up" | "square-code" | "square-dashed" | "square-dashed-bottom" | "square-dashed-bottom-code" | "square-dashed-kanban" | "square-dashed-mouse-pointer" | "square-dashed-plus" | "square-dashed-text" | "square-dashed-top-solid" | "square-dashed-x" | "square-dashed-x-corner" | "square-dimensions" | "square-divide" | "square-dot" | "square-equal" | "square-exclamation-point" | "square-function" | "square-kanban" | "square-kanban-plus" | "square-letter-a" | "square-letter-b" | "square-letter-c" | "square-letter-d" | "square-letter-e" | "square-letter-f" | "square-letter-g" | "square-letter-h" | "square-letter-i" | "square-letter-j" | "square-letter-k" | "square-letter-l" | "square-letter-m" | "square-letter-n" | "square-letter-o" | "square-letter-p" | "square-letter-p-off" | "square-letter-q" | "square-letter-r" | "square-letter-s" | "square-letter-t" | "square-letter-u" | "square-letter-v" | "square-letter-w" | "square-letter-x" | "square-letter-y" | "square-letter-z" | "square-library" | "square-menu" | "square-minus" | "square-mouse-pointer" | "square-off" | "square-pause" | "square-pen" | "square-percent" | "square-pi" | "square-pilcrow" | "square-play" | "square-plus" | "square-power" | "square-radical" | "square-round-corner" | "square-scissors" | "square-sigma" | "square-slash" | "square-sparkles" | "square-split-horizontal" | "square-split-vertical" | "square-square" | "square-stack" | "square-star" | "square-stop" | "square-terminal" | "square-text" | "square-user" | "square-user-round" | "square-x" | "squares-exclude" | "squares-intersect" | "squares-subtract" | "squares-unite" | "squircle" | "squircle-dashed" | "squirrel" | "stamp" | "star" | "star-check" | "star-half" | "star-minus" | "star-off" | "star-plus" | "star-x" | "step-back" | "step-forward" | "stethoscope" | "sticker" | "sticky-note" | "sticky-note-check" | "sticky-note-minus" | "sticky-note-off" | "sticky-note-plus" | "sticky-note-x" | "sticky-notes" | "stone" | "store" | "stretch-horizontal" | "stretch-vertical" | "strikethrough" | "subscript" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table-2" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-of-contents" | "table-properties" | "table-rows-split" | "tablet" | "tablet-smartphone" | "tablets" | "tag" | "tag-plus" | "tag-x" | "tags" | "tally-1" | "tally-2" | "tally-3" | "tally-4" | "tally-5" | "tangent" | "telescope" | "tent" | "tent-tree" | "terminal" | "test-tube" | "test-tube-diagonal" | "test-tubes" | "text-align-center" | "text-align-end" | "text-align-justify" | "text-align-justify-center" | "text-align-justify-end" | "text-align-justify-start" | "text-align-start" | "text-cursor" | "text-cursor-input" | "text-initial" | "text-quote" | "text-search" | "text-wrap" | "theater" | "thermometer" | "thermometer-snowflake" | "thermometer-sun" | "thumbs-down" | "thumbs-up" | "tic-tac-toe" | "ticket" | "ticket-check" | "ticket-minus" | "ticket-percent" | "ticket-plus" | "ticket-slash" | "ticket-x" | "tickets" | "tickets-plane" | "timer" | "timer-off" | "timer-reset" | "toggle-left" | "toggle-right" | "toilet" | "tombstone" | "tool-case" | "toolbox" | "toothbrush" | "toothbrush-sparkles" | "tornado" | "torus" | "touchpad" | "touchpad-off" | "towel-rack" | "tower-control" | "toy-brick" | "tractor" | "traffic-cone" | "trailer" | "train-front" | "train-front-tunnel" | "train-track" | "tram-front" | "transgender" | "trash" | "trash-off" | "tree-deciduous" | "tree-palm" | "tree-pine" | "trees" | "trending-down" | "trending-up" | "trending-up-down" | "triangle" | "triangle-alert" | "triangle-dashed" | "triangle-right" | "triangles-centerline-dashed-horizontal" | "triangles-centerline-dashed-vertical" | "trophy" | "truck" | "truck-electric" | "tube-lotion" | "turkish-lira" | "turntable" | "turtle" | "tv" | "tv-minimal" | "tv-minimal-play" | "type-outline" | "umbrella" | "umbrella-off" | "underline" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "ungroup" | "university" | "unlink" | "unlink-2" | "unplug" | "upload" | "usb" | "usb-c-port" | "user" | "user-check" | "user-cog" | "user-group" | "user-key" | "user-lock" | "user-minus" | "user-pen" | "user-plus" | "user-round" | "user-round-arrow-left" | "user-round-check" | "user-round-cog" | "user-round-group" | "user-round-key" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-shield" | "user-round-star" | "user-round-x" | "user-search" | "user-shield" | "user-star" | "user-x" | "users-collaboration" | "users-round" | "users-round-collaboration" | "utensils" | "utensils-crossed" | "utility-pole" | "van" | "variable" | "vault" | "vector-polygon" | "vector-square" | "vegan" | "venetian-mask" | "venus" | "venus-and-mars" | "vibrate" | "vibrate-off" | "video-off" | "videotape" | "view" | "virus" | "virus-off" | "voicemail" | "volleyball" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "vote" | "wallet" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "wand" | "wand-sparkles" | "warehouse" | "washing-machine" | "watch" | "waves-arrow-down" | "waves-arrow-up" | "waves-horizontal" | "waves-ladder" | "waves-vertical" | "waypoints" | "webcam" | "webcam-off" | "webhook" | "webhook-off" | "weight" | "weight-tilde" | "wheat" | "wheat-off" | "whistle" | "whole-word" | "wifi" | "wifi-cog" | "wifi-high" | "wifi-lock" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-sync" | "wifi-zero" | "wind" | "wind-arrow-down" | "wind-arrow-up" | "wine" | "wine-off" | "workflow" | "worm" | "wrench" | "wrench-off" | "x-line-top" | "zap" | "zap-off" | "zodiac-aquarius" | "zodiac-aries" | "zodiac-cancer" | "zodiac-capricorn" | "zodiac-gemini" | "zodiac-leo" | "zodiac-libra" | "zodiac-ophiuchus" | "zodiac-pisces" | "zodiac-sagittarius" | "zodiac-scorpio" | "zodiac-taurus" | "zodiac-virgo" | "zoom-in" | "zoom-out";
112
112
  modelValue: boolean;
113
+ removeLabel: string;
113
114
  selectable: boolean;
114
115
  removable: boolean;
115
- removeLabel: string;
116
116
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
117
117
  //# sourceMappingURL=MChip.d.ts.map
@@ -260,6 +260,7 @@ declare const Combobox: import("vue").DefineComponent<import("vue").ExtractPropT
260
260
  closeLabel: string;
261
261
  placeholder: string;
262
262
  helperText: string;
263
+ retryLabel: string;
263
264
  emptyText: string;
264
265
  clearLabel: string;
265
266
  clearable: boolean;
@@ -269,7 +270,6 @@ declare const Combobox: import("vue").DefineComponent<import("vue").ExtractPropT
269
270
  minQueryLength: number;
270
271
  maxResults: number;
271
272
  searchErrorText: string;
272
- retryLabel: string;
273
273
  idleText: string;
274
274
  limitedText: string;
275
275
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -90,10 +90,10 @@ export declare const MDialog: import("vue").DefineComponent<import("vue").Extrac
90
90
  tone: "danger" | "default";
91
91
  open: boolean;
92
92
  loadingLabel: string;
93
+ interactive: boolean;
94
+ cancelLabel: string;
93
95
  dismissible: boolean;
94
96
  description: string;
95
97
  confirmLabel: string;
96
- cancelLabel: string;
97
- interactive: boolean;
98
98
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
99
  //# sourceMappingURL=MDialog.d.ts.map
@@ -96,11 +96,11 @@ declare const FilePicker: import("vue").DefineComponent<import("vue").ExtractPro
96
96
  }>> & Readonly<{}>, {
97
97
  disabled: boolean;
98
98
  emptyLabel: string;
99
- statusLabels: Partial<Record<"cancelled" | "selected" | "uploading" | "uploaded" | "failed", string>>;
100
- chooseLabel: string;
101
- cancelLabel: string;
102
99
  removeLabel: string;
103
100
  retryLabel: string;
101
+ cancelLabel: string;
102
+ statusLabels: Partial<Record<"cancelled" | "selected" | "uploading" | "uploaded" | "failed", string>>;
103
+ chooseLabel: string;
104
104
  uploadLabel: string;
105
105
  pendingLabel: string;
106
106
  errorLabels: Partial<Record<import("@getcortexlabs/mavis-core").FileSelectionErrorCode, string>>;
@@ -113,8 +113,8 @@ export declare const MLink: import("vue").DefineComponent<import("vue").ExtractP
113
113
  grow: number;
114
114
  accessibilityLabel: string;
115
115
  accessibilityHidden: boolean;
116
+ inline: boolean;
116
117
  rel: string;
117
118
  navigate: import("@getcortexlabs/mavis-core").LinkNavigate;
118
- inline: boolean;
119
119
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
120
  //# sourceMappingURL=MLink.d.ts.map
@@ -97,8 +97,8 @@ export declare const MListItem: import("vue").DefineComponent<import("vue").Extr
97
97
  grow: number;
98
98
  accessibilityLabel: string;
99
99
  accessibilityHidden: boolean;
100
- description: string;
101
100
  interactive: boolean;
101
+ description: string;
102
102
  }, SlotsType<{
103
103
  leading?: () => VNode[];
104
104
  trailing?: () => VNode[];
@@ -0,0 +1,57 @@
1
+ export declare const MPinInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ id: StringConstructor;
3
+ label: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ modelValue: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ length: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ disabled: BooleanConstructor;
16
+ readonly: BooleanConstructor;
17
+ required: BooleanConstructor;
18
+ name: StringConstructor;
19
+ form: StringConstructor;
20
+ error: StringConstructor;
21
+ helperText: StringConstructor;
22
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "focus" | "update:modelValue" | "complete")[], "blur" | "focus" | "update:modelValue" | "complete", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ id: StringConstructor;
26
+ label: {
27
+ type: StringConstructor;
28
+ required: true;
29
+ };
30
+ modelValue: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ length: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ disabled: BooleanConstructor;
39
+ readonly: BooleanConstructor;
40
+ required: BooleanConstructor;
41
+ name: StringConstructor;
42
+ form: StringConstructor;
43
+ error: StringConstructor;
44
+ helperText: StringConstructor;
45
+ }>> & Readonly<{
46
+ onBlur?: ((...args: any[]) => any) | undefined;
47
+ onFocus?: ((...args: any[]) => any) | undefined;
48
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
+ onComplete?: ((...args: any[]) => any) | undefined;
50
+ }>, {
51
+ length: number;
52
+ disabled: boolean;
53
+ required: boolean;
54
+ modelValue: string;
55
+ readonly: boolean;
56
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
+ //# sourceMappingURL=MPinInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MPinInput.d.ts","sourceRoot":"","sources":["../../src/components/MPinInput.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAqLpB,CAAA"}
@@ -0,0 +1,159 @@
1
+ import { MText } from './MText.js';
2
+ import { defineComponent, h, mergeProps, ref, useId, onMounted, watch } from 'vue';
3
+ import { pinInputProps, usePinInput, useMavisTheme, createPinCell, } from '@getcortexlabs/mavis-core/vue';
4
+ import { fontFamily, resolveRadius } from '@getcortexlabs/mavis-core';
5
+ import { useMotionSurface } from '../use-motion-surface.js';
6
+ const PinCell = createPinCell(MText);
7
+ export const MPinInput = defineComponent({
8
+ name: 'MPinInput',
9
+ inheritAttrs: false,
10
+ props: pinInputProps,
11
+ emits: ['update:modelValue', 'complete', 'focus', 'blur'],
12
+ setup(props, { attrs, emit, expose }) {
13
+ const { theme } = useMavisTheme();
14
+ const state = usePinInput(props, emit), input = ref();
15
+ const id = `m-pin-${useId()}`;
16
+ const feedback = useMotionSurface(() => state.feedback);
17
+ let composing = false;
18
+ const update = () => {
19
+ const el = input.value;
20
+ if (!el || composing)
21
+ return;
22
+ const normalized = state.change(el.value);
23
+ if (el.value !== normalized)
24
+ el.value = normalized;
25
+ };
26
+ const selection = () => {
27
+ state.position.value = Math.min(input.value?.selectionStart ?? state.value.value.length, props.length - 1);
28
+ };
29
+ onMounted(() => {
30
+ if (input.value && input.value.value !== state.value.value)
31
+ update();
32
+ });
33
+ watch(() => props.disabled, (disabled) => {
34
+ if (disabled)
35
+ input.value?.blur();
36
+ });
37
+ expose({
38
+ focus: () => {
39
+ if (!props.disabled)
40
+ input.value?.focus();
41
+ },
42
+ blur: () => input.value?.blur(),
43
+ });
44
+ return () => {
45
+ const { colors, space } = theme.value;
46
+ const message = props.error || props.helperText, fieldId = props.id ?? id;
47
+ return h('div', mergeProps(attrs, {
48
+ class: 'm-pin-input',
49
+ style: {
50
+ minWidth: 0,
51
+ fontFamily: fontFamily(theme.value.typography.body.fontFamily, 'web'),
52
+ },
53
+ }), [
54
+ h('label', {
55
+ for: fieldId,
56
+ style: {
57
+ display: 'block',
58
+ fontWeight: 600,
59
+ marginBottom: `${space.sm}px`,
60
+ color: colors.text,
61
+ },
62
+ }, props.label),
63
+ h('div', {
64
+ class: 'm-pin-field',
65
+ style: { position: 'relative', maxWidth: `${props.length * 56}px` },
66
+ }, [
67
+ h('div', {
68
+ 'aria-hidden': 'true',
69
+ style: {
70
+ display: 'grid',
71
+ gridTemplateColumns: `repeat(${props.length}, minmax(0, 1fr))`,
72
+ gap: `${space.xs}px`,
73
+ },
74
+ }, Array.from({ length: props.length }, (_, i) => h(PinCell, {
75
+ class: 'm-pin-cell',
76
+ digit: state.value.value[i] ?? '',
77
+ active: state.focused.value && state.position.value === i,
78
+ 'data-active': state.focused.value && state.position.value === i ? '' : undefined,
79
+ style: {
80
+ height: '52px',
81
+ display: 'grid',
82
+ placeItems: 'center',
83
+ boxSizing: 'border-box',
84
+ fontSize: '24px',
85
+ fontVariantNumeric: 'tabular-nums',
86
+ fontWeight: 600,
87
+ border: `2px solid ${props.error ? colors.danger : state.focused.value && state.position.value === i ? colors.primary : colors.border}`,
88
+ borderRadius: `${resolveRadius(theme.value, 'md')}px`,
89
+ background: colors.surface,
90
+ color: colors.text,
91
+ opacity: props.disabled ? 0.5 : 1,
92
+ },
93
+ }, state.value.value[i] ?? ''))),
94
+ h('input', {
95
+ ref: input,
96
+ id: fieldId,
97
+ name: props.name,
98
+ form: props.form,
99
+ type: 'text',
100
+ inputmode: 'numeric',
101
+ autocomplete: 'one-time-code',
102
+ pattern: `[0-9]{${props.length}}`,
103
+ required: props.required,
104
+ disabled: props.disabled,
105
+ readonly: props.readonly,
106
+ value: state.value.value,
107
+ 'aria-invalid': props.error ? 'true' : undefined,
108
+ 'aria-describedby': message ? `${fieldId}-message` : undefined,
109
+ spellcheck: false,
110
+ autocapitalize: 'off',
111
+ class: 'm-pin-editor',
112
+ style: {
113
+ position: 'absolute',
114
+ inset: 0,
115
+ width: '100%',
116
+ height: '100%',
117
+ boxSizing: 'border-box',
118
+ opacity: 0.02,
119
+ fontSize: '24px',
120
+ cursor: props.disabled ? 'default' : 'text',
121
+ },
122
+ onInput: update,
123
+ onCompositionstart: () => {
124
+ composing = true;
125
+ },
126
+ onCompositionend: () => {
127
+ composing = false;
128
+ update();
129
+ },
130
+ onFocus: () => {
131
+ state.focused.value = true;
132
+ selection();
133
+ emit('focus');
134
+ },
135
+ onBlur: () => {
136
+ state.focused.value = false;
137
+ emit('blur');
138
+ },
139
+ onSelect: selection,
140
+ onKeyup: selection,
141
+ onClick: selection,
142
+ }),
143
+ ]),
144
+ message
145
+ ? h('p', {
146
+ ...feedback,
147
+ id: `${fieldId}-message`,
148
+ style: {
149
+ color: props.error ? colors.danger : colors.muted,
150
+ margin: `${space.sm}px 0 0`,
151
+ fontSize: `${theme.value.typography.caption.fontSize}px`,
152
+ },
153
+ }, message)
154
+ : null,
155
+ ]);
156
+ };
157
+ },
158
+ });
159
+ //# sourceMappingURL=MPinInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MPinInput.js","sourceRoot":"","sources":["../../src/components/MPinInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAClF,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE3D,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACvC,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,aAAa;IACpB,KAAK,EAAE,CAAC,mBAAmB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC;IACzD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE;QAClC,MAAM,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE,CAAA;QACjC,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,EACpC,KAA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{"version":3,"file":"MPopover.d.ts","sourceRoot":"","sources":["../../src/components/MPopover.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG/F,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAKM,OAAO;qBACb,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA8RrC,CAAA"}
@@ -38,6 +38,11 @@ export const MPopover = defineComponent({
38
38
  let generation = 0;
39
39
  let mounted = false;
40
40
  let reason = 'program';
41
+ function returnTarget() {
42
+ return (trigger.value?.$el ??
43
+ anchor.value?.querySelector('button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex="0"]') ??
44
+ anchor.value);
45
+ }
41
46
  function owns(target) {
42
47
  return (target instanceof Node && (anchor.value?.contains(target) || panel.value?.contains(target)));
43
48
  }
@@ -154,7 +159,7 @@ export const MPopover = defineComponent({
154
159
  const focused = typeof document !== 'undefined' && panel.value?.contains(document.activeElement);
155
160
  detach();
156
161
  if (focused && reason !== 'outside')
157
- trigger.value?.$el?.focus({ preventScroll: true });
162
+ returnTarget()?.focus({ preventScroll: true });
158
163
  }
159
164
  });
160
165
  watch(() => props.disabled, (value) => {
@@ -195,25 +200,30 @@ export const MPopover = defineComponent({
195
200
  return h('span', mergeProps({
196
201
  ref: anchor,
197
202
  class: 'm-popover-anchor',
198
- style: { display: 'inline-flex', alignSelf: 'flex-start' },
203
+ style: {
204
+ display: slots.anchor ? 'block' : 'inline-flex',
205
+ alignSelf: slots.anchor ? 'stretch' : 'flex-start',
206
+ },
207
+ tabindex: slots.anchor ? -1 : undefined,
199
208
  }, attrs), [
200
- h(MButton, {
201
- ref: trigger,
202
- text: props.triggerLabel,
203
- icon: props.icon,
204
- variant: props.variant,
205
- disabled: props.disabled,
206
- 'aria-haspopup': props.role,
207
- 'aria-expanded': props.open,
208
- 'aria-controls': panelId,
209
- onClick: () => (props.open ? close('trigger') : emit('update:open', true)),
210
- onKeydown: (event) => {
211
- if (event.key === 'ArrowDown' && !props.open) {
212
- event.preventDefault();
213
- emit('update:open', true);
214
- }
215
- },
216
- }),
209
+ slots.anchor?.() ??
210
+ h(MButton, {
211
+ ref: trigger,
212
+ text: props.triggerLabel,
213
+ icon: props.icon,
214
+ variant: props.variant,
215
+ disabled: props.disabled,
216
+ 'aria-haspopup': props.role,
217
+ 'aria-expanded': props.open,
218
+ 'aria-controls': panelId,
219
+ onClick: () => (props.open ? close('trigger') : emit('update:open', true)),
220
+ onKeydown: (event) => {
221
+ if (event.key === 'ArrowDown' && !props.open) {
222
+ event.preventDefault();
223
+ emit('update:open', true);
224
+ }
225
+ },
226
+ }),
217
227
  host.value
218
228
  ? h(Teleport, { to: host.value }, h(Transition, transition, {
219
229
  default: () => props.open && !props.disabled
@@ -1 +1 @@
1
- {"version":3,"file":"MPopover.js","sourceRoot":"","sources":["../../src/components/MPopover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EACL,eAAe,EACf,CAAC,EACD,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,aAAa,EACb,WAAW,EACX,GAAG,EACH,UAAU,EACV,QAAQ,EACR,UAAU,EACV,KAAK,EACL,KAAK,GACN,MAAM,KAAK,CAAA;AACZ,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,YAAY,EAA2B,MAAM,2BAA2B,CAAA;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC;IACtC,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE;QACL,a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AAE,qBAAqB;oCAChC,QAAQ,EAAE,MAAM;oCAChB,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;oCAC9C,OAAO,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;oCACxD,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;oCACtC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;oCAC9B,MAAM,EAAE,aAAa,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;oCAChD,YAAY,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI;oCAC1C,SAAS,EAAE,mBAAmB;oCAC9B,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU;iCACpC;6BACF,EACD,KAAK,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CACnD;4BACH,CAAC,CAAC,IAAI;qBACX,CAAC,CACH;oBACH,CAAC,CAAC,IAAI;aACT,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -122,12 +122,12 @@ export declare const MResizablePanels: import("vue").DefineComponent<import("vue
122
122
  disabled: boolean;
123
123
  height: number;
124
124
  snap: readonly number[];
125
+ direction: "rtl" | "ltr";
125
126
  orientation: "horizontal" | "vertical";
126
127
  modelValue: number;
127
128
  min: number;
128
129
  max: number;
129
130
  step: number;
130
- direction: "rtl" | "ltr";
131
131
  collapsible: boolean;
132
132
  primaryLabel: string;
133
133
  secondaryLabel: string;