@getcortexlabs/mavis-core 0.1.0-rc.15 → 0.1.0-rc.16

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 (95) hide show
  1. package/README.md +2 -2
  2. package/dist/avatar.d.ts +5 -0
  3. package/dist/avatar.d.ts.map +1 -1
  4. package/dist/capabilities.d.ts +17 -1827
  5. package/dist/capabilities.d.ts.map +1 -1
  6. package/dist/capabilities.js +9 -90
  7. package/dist/capabilities.js.map +1 -1
  8. package/dist/contracts.d.ts +2 -2
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/vue/advanced-collections.d.ts +16 -16
  14. package/dist/vue/animated-text.d.ts +4 -4
  15. package/dist/vue/chart.d.ts +5 -5
  16. package/dist/vue/command-palette.d.ts +4 -4
  17. package/dist/vue/component-props.d.ts +90 -20
  18. package/dist/vue/component-props.d.ts.map +1 -1
  19. package/dist/vue/component-props.js +4 -0
  20. package/dist/vue/component-props.js.map +1 -1
  21. package/dist/vue/composer.d.ts +11 -9
  22. package/dist/vue/composer.d.ts.map +1 -1
  23. package/dist/vue/composer.js +12 -16
  24. package/dist/vue/composer.js.map +1 -1
  25. package/dist/vue/configurator.d.ts +16 -16
  26. package/dist/vue/creative-controls.d.ts +11 -11
  27. package/dist/vue/dashboard-charts.d.ts +6 -6
  28. package/dist/vue/dashboard-effects.d.ts +7 -7
  29. package/dist/vue/date-picker.d.ts +52 -52
  30. package/dist/vue/discovery-controls.d.ts +8 -8
  31. package/dist/vue/editor-controls.d.ts +223 -0
  32. package/dist/vue/editor-controls.d.ts.map +1 -0
  33. package/dist/vue/editor-controls.js +323 -0
  34. package/dist/vue/editor-controls.js.map +1 -0
  35. package/dist/vue/global-components.d.ts +22 -1
  36. package/dist/vue/global-components.d.ts.map +1 -1
  37. package/dist/vue/image-cropper.d.ts +8 -8
  38. package/dist/vue/image-cropper.d.ts.map +1 -1
  39. package/dist/vue/index.d.ts +3 -2
  40. package/dist/vue/index.d.ts.map +1 -1
  41. package/dist/vue/index.js +1 -0
  42. package/dist/vue/index.js.map +1 -1
  43. package/dist/vue/kanban.d.ts +2 -2
  44. package/dist/vue/marquee.d.ts +4 -4
  45. package/dist/vue/menu.d.ts +4 -4
  46. package/dist/vue/number-flow.d.ts +3 -3
  47. package/dist/vue/platform.d.ts +1 -2
  48. package/dist/vue/platform.d.ts.map +1 -1
  49. package/dist/vue/platform.js.map +1 -1
  50. package/dist/vue/props.d.ts +40 -40
  51. package/dist/vue/reveal-state.d.ts +1 -1
  52. package/dist/vue/scheduler.d.ts +10 -10
  53. package/dist/vue/screen-component-props.d.ts +10 -0
  54. package/dist/vue/screen-component-props.d.ts.map +1 -1
  55. package/dist/vue/screen-component-props.js +6 -0
  56. package/dist/vue/screen-component-props.js.map +1 -1
  57. package/dist/vue/scroll-frame.d.ts +28 -6
  58. package/dist/vue/scroll-frame.d.ts.map +1 -1
  59. package/dist/vue/scroll-frame.js +51 -4
  60. package/dist/vue/scroll-frame.js.map +1 -1
  61. package/dist/vue/speed-dial.d.ts +3 -3
  62. package/dist/vue/swipe-actions.d.ts +3 -3
  63. package/dist/vue/swipe-deck.d.ts +3 -3
  64. package/dist/vue/theme-provider.d.ts +17 -2
  65. package/dist/vue/theme-provider.d.ts.map +1 -1
  66. package/dist/vue/theme-provider.js +7 -1
  67. package/dist/vue/theme-provider.js.map +1 -1
  68. package/dist/vue/theme.d.ts +7 -0
  69. package/dist/vue/theme.d.ts.map +1 -1
  70. package/dist/vue/theme.js +23 -19
  71. package/dist/vue/theme.js.map +1 -1
  72. package/dist/vue/time-picker.d.ts +20 -20
  73. package/dist/vue/tour.d.ts +3 -3
  74. package/dist/vue/tree-view.d.ts +3 -3
  75. package/dist/vue/wayfinding-controls.d.ts +1 -1
  76. package/dist/vue/workflows.d.ts +3 -3
  77. package/package.json +1 -1
  78. package/src/avatar.ts +6 -0
  79. package/src/capabilities.ts +9 -90
  80. package/src/index.ts +2 -7
  81. package/src/vue/component-props.ts +4 -0
  82. package/src/vue/composer.ts +22 -16
  83. package/src/vue/editor-controls.ts +370 -0
  84. package/src/vue/global-components.ts +21 -1
  85. package/src/vue/index.ts +3 -1
  86. package/src/vue/platform.ts +1 -2
  87. package/src/vue/screen-component-props.ts +6 -0
  88. package/src/vue/scroll-frame.ts +70 -5
  89. package/src/vue/theme-provider.ts +14 -1
  90. package/src/vue/theme.ts +31 -18
  91. package/dist/macos-capabilities.generated.d.ts +0 -1738
  92. package/dist/macos-capabilities.generated.d.ts.map +0 -1
  93. package/dist/macos-capabilities.generated.js +0 -4191
  94. package/dist/macos-capabilities.generated.js.map +0 -1
  95. package/src/macos-capabilities.generated.ts +0 -4190
@@ -60,14 +60,14 @@ export declare function createSpeedDial(ui: {
60
60
  default: string;
61
61
  };
62
62
  }>> & Readonly<{
63
- onClose?: ((_reason: string) => any) | undefined;
64
63
  onSelect?: ((_v: ChoiceValue, _a: SpeedDialAction) => any) | undefined;
64
+ onClose?: ((_reason: string) => any) | undefined;
65
65
  "onUpdate:open"?: ((_v: boolean) => any) | undefined;
66
66
  }>, {
67
67
  disabled: boolean;
68
- closeLabel: string;
69
68
  icon: "a-arrow-down" | "a-arrow-up" | "a-large-small" | "accessibility" | "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" | "anchor" | "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" | "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" | "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" | "code-xml" | "coffee" | "cog" | "coins" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "combine" | "command" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-round" | "container" | "contrast" | "cookie" | "cooking-pot" | "copy" | "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" | "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" | "focus" | "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" | "form" | "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" | "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" | "key-round" | "key-square" | "keyboard" | "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" | "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" | "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" | "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" | "menu" | "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" | "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" | "option" | "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" | "pause" | "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" | "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" | "radius" | "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" | "repeat-1" | "repeat-2" | "repeat-off" | "replace" | "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" | "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" | "scroll-text" | "search" | "search-alert" | "search-check" | "search-code" | "search-slash" | "search-x" | "section" | "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" | "slice" | "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" | "split" | "spool" | "sport-shoe" | "spotlight" | "spray-can" | "sprout" | "square" | "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" | "summary" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table" | "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" | "target" | "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" | "timeline" | "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" | "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" | "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" | "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" | "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";
70
- open: boolean;
71
69
  direction: "up" | "down";
70
+ open: boolean;
71
+ closeLabel: string;
72
72
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
73
73
  //# sourceMappingURL=speed-dial.d.ts.map
@@ -85,11 +85,11 @@ export declare function createSwipeActions(ui: {
85
85
  onAction?: ((_action: SwipeAction) => any) | undefined;
86
86
  }>, {
87
87
  disabled: boolean;
88
- modelValue: SwipeSide;
89
- closeLabel: string;
90
- end: readonly SwipeAction[];
91
88
  start: readonly SwipeAction[];
89
+ end: readonly SwipeAction[];
90
+ modelValue: SwipeSide;
92
91
  direction: "ltr" | "rtl";
92
+ closeLabel: string;
93
93
  actionWidth: number;
94
94
  actionsLabel: string;
95
95
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
@@ -107,14 +107,14 @@ export declare function createSwipeDeck(ui: CreativeUI, platform: 'web' | 'nativ
107
107
  }) => any) | undefined;
108
108
  }>, {
109
109
  disabled: boolean;
110
+ threshold: number;
110
111
  modelValue: ChoiceValue | null;
111
- animated: boolean;
112
112
  height: number;
113
+ animated: boolean;
113
114
  emptyLabel: string;
114
- threshold: number;
115
115
  acceptLabel: string;
116
- canUndo: boolean;
117
116
  rejectLabel: string;
118
117
  undoLabel: string;
118
+ canUndo: boolean;
119
119
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
120
120
  //# sourceMappingURL=swipe-deck.d.ts.map
@@ -1,11 +1,15 @@
1
1
  import { type PropType } from '@vue/runtime-core';
2
2
  import type { MavisTheme } from '../theme/types.js';
3
- import { type AppearanceMode } from './theme.js';
3
+ import { type ThemePair, type AppearanceMode } from './theme.js';
4
4
  export declare const themeProviderProps: {
5
5
  theme: {
6
6
  type: PropType<MavisTheme>;
7
7
  default: undefined;
8
8
  };
9
+ themePair: {
10
+ type: PropType<ThemePair>;
11
+ default: undefined;
12
+ };
9
13
  darkTheme: {
10
14
  type: PropType<MavisTheme>;
11
15
  default: undefined;
@@ -21,6 +25,10 @@ export declare const MThemeProvider: import("@vue/runtime-core").DefineComponent
21
25
  type: PropType<MavisTheme>;
22
26
  default: undefined;
23
27
  };
28
+ themePair: {
29
+ type: PropType<ThemePair>;
30
+ default: undefined;
31
+ };
24
32
  darkTheme: {
25
33
  type: PropType<MavisTheme>;
26
34
  default: undefined;
@@ -32,6 +40,7 @@ export declare const MThemeProvider: import("@vue/runtime-core").DefineComponent
32
40
  }>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
33
41
  [key: string]: any;
34
42
  }>[] | undefined, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
43
+ 'update:themePair': (_pair: ThemePair) => true;
35
44
  'update:theme': (_theme: MavisTheme) => true;
36
45
  'update:appearance': (_appearance: AppearanceMode) => true;
37
46
  }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
@@ -39,6 +48,10 @@ export declare const MThemeProvider: import("@vue/runtime-core").DefineComponent
39
48
  type: PropType<MavisTheme>;
40
49
  default: undefined;
41
50
  };
51
+ themePair: {
52
+ type: PropType<ThemePair>;
53
+ default: undefined;
54
+ };
42
55
  darkTheme: {
43
56
  type: PropType<MavisTheme>;
44
57
  default: undefined;
@@ -48,11 +61,13 @@ export declare const MThemeProvider: import("@vue/runtime-core").DefineComponent
48
61
  default: undefined;
49
62
  };
50
63
  }>> & Readonly<{
64
+ "onUpdate:themePair"?: ((_pair: ThemePair) => any) | undefined;
51
65
  "onUpdate:theme"?: ((_theme: MavisTheme) => any) | undefined;
52
66
  "onUpdate:appearance"?: ((_appearance: AppearanceMode) => any) | undefined;
53
67
  }>, {
54
68
  appearance: AppearanceMode;
55
- darkTheme: MavisTheme;
56
69
  theme: MavisTheme;
70
+ themePair: ThemePair;
71
+ darkTheme: MavisTheme;
57
72
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
58
73
  //# sourceMappingURL=theme-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../src/vue/theme-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAA2B,KAAK,cAAc,EAA0B,MAAM,YAAY,CAAA;AAEjG,eAAO,MAAM,kBAAkB;;cACJ,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;CACvD,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,cAAc;;cANA,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;;;;6BAS3B,UAAU;uCACA,cAAc;;;cAZ1B,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;0FAkEtD,CAAA"}
1
+ {"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../src/vue/theme-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,cAAc,EAEpB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,kBAAkB;;cACJ,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,SAAS,CAAC;;;;cACnB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;CACvD,CAAA;AAED,mGAAmG;AACnG,eAAO,MAAM,cAAc;;cAPA,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,SAAS,CAAC;;;;cACnB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;;;;gCASxB,SAAS;6BACZ,UAAU;uCACA,cAAc;;;cAd1B,QAAQ,CAAC,UAAU,CAAC;;;;cAChB,QAAQ,CAAC,SAAS,CAAC;;;;cACnB,QAAQ,CAAC,UAAU,CAAC;;;;cACnB,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;0FAuEtD,CAAA"}
@@ -1,7 +1,8 @@
1
1
  import { computed, defineComponent, provide } from '@vue/runtime-core';
2
- import { themeKey, useMavisTheme } from './theme.js';
2
+ import { checkedThemePair, themeKey, useMavisTheme, } from './theme.js';
3
3
  export const themeProviderProps = {
4
4
  theme: { type: Object, default: undefined },
5
+ themePair: { type: Object, default: undefined },
5
6
  darkTheme: { type: Object, default: undefined },
6
7
  appearance: { type: String, default: undefined },
7
8
  };
@@ -11,6 +12,7 @@ export const MThemeProvider = defineComponent({
11
12
  inheritAttrs: false,
12
13
  props: themeProviderProps,
13
14
  emits: {
15
+ 'update:themePair': (_pair) => true,
14
16
  'update:theme': (_theme) => true,
15
17
  'update:appearance': (_appearance) => true,
16
18
  },
@@ -21,6 +23,7 @@ export const MThemeProvider = defineComponent({
21
23
  throw new RangeError('darkTheme must have dark appearance');
22
24
  return {
23
25
  ...parent.themes.value,
26
+ ...(props.themePair && checkedThemePair(props.themePair)),
24
27
  ...(props.theme ? { [props.theme.appearance]: props.theme } : {}),
25
28
  ...(props.darkTheme ? { dark: props.darkTheme } : {}),
26
29
  };
@@ -46,6 +49,9 @@ export const MThemeProvider = defineComponent({
46
49
  themes,
47
50
  appearance,
48
51
  systemAppearance: parent.systemAppearance,
52
+ setThemePair(pair) {
53
+ emit('update:themePair', checkedThemePair(pair));
54
+ },
49
55
  setTheme(next) {
50
56
  emit('update:theme', next);
51
57
  emit('update:appearance', next.appearance);
@@ -1 +1 @@
1
- {"version":3,"file":"theme-provider.js","sourceRoot":"","sources":["../../src/vue/theme-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,mBAAmB,CAAA;AAErF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAA+C,MAAM,YAAY,CAAA;AAEjG,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,KAAK,EAAE,EAAE,IAAI,EAAE,MAA8B,EAAE,OAAO,EAAE,SAAS,EAAE;IACnE,SAAS,EAAE,EAAE,IAAI,EAAE,MAA8B,EAAE,OAAO,EAAE,SAAS,EAAE;IACvE,UAAU,EAAE,EAAE,IAAI,EAAE,MAAkC,EAAE,OAAO,EAAE,SAAS,EAAE;CAC7E,CAAA;AAED,mGAAmG;AACnG,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;IAC5C,IAAI,EAAE,gBAAgB;IACtB,YAAY,EAAE,KAAK;IACnB,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE;QACL,cAAc,EAAE,CAAC,MAAkB,EAAE,EAAE,CAAC,IAAI;QAC5C,mBAAmB,EAAE,CAAC,WAA2B,EAAE,EAAE,CAAC,IAAI;KAC3D;IACD,KAAK,CAAC,KAAK,EAAE,EA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;YACV,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,YAAY,CAAC,IAAI;gBACf,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAA;YAClD,CAAC;YACD,QAAQ,CAAC,IAAI;gBACX,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAA;gBAC1B,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;YAC5C,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAC7C,MAAM,IAAI,UAAU,CAAC,4BAA4B,IAAI,EAAE,CAAC,CAAA;gBAC1D,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;YACjC,CAAC;YACD,iFAAiF;YACjF,OAAO,KAAI,CAAC;SACb,CAAA;QACD,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QAC1B,OAAO,GAAG,EAAE;YACV,wEAAwE;YACxE,KAAK,KAAK,CAAC,KAAK,CAAA;YAChB,OAAO,KAAK,CAAC,OAAO,EAAE,EAAE,CAAA;QAC1B,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -13,6 +13,11 @@ export interface ThemeContextOptions {
13
13
  appearance?: AppearanceMode;
14
14
  source?: AppearanceSource;
15
15
  }
16
+ export interface ThemePair {
17
+ light: MavisTheme;
18
+ dark: MavisTheme;
19
+ }
20
+ export declare function checkedThemePair({ light, dark }: ThemePair): ThemePair;
16
21
  export declare function createThemeContext(options?: MavisTheme | ThemeContextOptions): {
17
22
  theme: Readonly<import("@vue/reactivity").Ref<{
18
23
  readonly name: string;
@@ -1186,6 +1191,8 @@ export declare function createThemeContext(options?: MavisTheme | ThemeContextOp
1186
1191
  setAppearance(mode: AppearanceMode): void;
1187
1192
  /** Registers the theme for its own appearance and pins that appearance. */
1188
1193
  setTheme(next: MavisTheme): void;
1194
+ /** Replaces both palettes in one reactive write, preserving the appearance selection. */
1195
+ setThemePair(pair: ThemePair): void;
1189
1196
  dispose(): void;
1190
1197
  };
1191
1198
  export type MavisThemeContext = ReturnType<typeof createThemeContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/vue/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;AACjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAA;AAElD,gHAAgH;AAChH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,IAAI,UAAU,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,GAAG,MAAM,IAAI,CAAA;CAChE;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AASD,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,UAAU,GAAG,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A2E;mBAC5D,UAAU;IAMzB,yFAAyF;uBACtE,SAAS;;EAO/B;AACD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAErE,eAAO,MAAM,QAAQ,EAAE,YAAY,CAAC,iBAAiB,CAAyB,CAAA;AAE9E,kFAAkF;AAClF,wBAAgB,aAAa,IAAI,iBAAiB,CAEjD"}
package/dist/vue/theme.js CHANGED
@@ -1,5 +1,10 @@
1
- import { inject, readonly, shallowRef } from '@vue/runtime-core';
1
+ import { computed, inject, readonly, shallowRef } from '@vue/runtime-core';
2
2
  import { mavis } from '../theme/themes.js';
3
+ export function checkedThemePair({ light, dark }) {
4
+ if (light?.appearance !== 'light' || dark?.appearance !== 'dark')
5
+ throw new RangeError('A theme pair requires a light theme under light and a dark theme under dark.');
6
+ return { light, dark };
7
+ }
3
8
  const modes = ['system', 'light', 'dark'];
4
9
  function checkMode(mode) {
5
10
  if (!modes.includes(mode))
@@ -9,29 +14,24 @@ function checkMode(mode) {
9
14
  export function createThemeContext(options = {}) {
10
15
  const config = 'colors' in options ? { theme: options } : options;
11
16
  const initial = config.theme ?? mavis;
12
- const themes = shallowRef({
13
- [initial.appearance]: initial,
14
- });
17
+ const variants = { [initial.appearance]: initial };
15
18
  if (config.darkTheme) {
16
19
  if (config.darkTheme.appearance !== 'dark')
17
20
  throw new RangeError('darkTheme must have dark appearance');
18
- themes.value.dark = config.darkTheme;
21
+ variants.dark = config.darkTheme;
19
22
  }
20
- const appearance = shallowRef(checkMode(config.appearance ?? 'system'));
21
- const theme = shallowRef(initial);
23
+ const selection = shallowRef({ variants, mode: checkMode(config.appearance ?? 'system') });
24
+ const themes = computed(() => selection.value.variants);
25
+ const appearance = computed(() => selection.value.mode);
22
26
  const systemAppearance = shallowRef(config.source?.current());
23
- const resolve = () => {
27
+ const theme = computed(() => {
24
28
  const wanted = appearance.value === 'system'
25
29
  ? (systemAppearance.value ?? initial.appearance)
26
30
  : appearance.value;
27
- theme.value =
28
- themes.value[wanted] ?? themes.value[wanted === 'dark' ? 'light' : 'dark'] ?? initial;
29
- };
30
- resolve();
31
+ return themes.value[wanted] ?? themes.value[wanted === 'dark' ? 'light' : 'dark'] ?? initial;
32
+ });
31
33
  const stop = config.source?.observe((next) => {
32
34
  systemAppearance.value = next;
33
- if (appearance.value === 'system')
34
- resolve();
35
35
  });
36
36
  return {
37
37
  theme: readonly(theme),
@@ -40,14 +40,18 @@ export function createThemeContext(options = {}) {
40
40
  /** The selection: `system` follows the device; `light` and `dark` are explicit overrides. */
41
41
  appearance: readonly(appearance),
42
42
  setAppearance(mode) {
43
- appearance.value = checkMode(mode);
44
- resolve();
43
+ selection.value = { ...selection.value, mode: checkMode(mode) };
45
44
  },
46
45
  /** Registers the theme for its own appearance and pins that appearance. */
47
46
  setTheme(next) {
48
- themes.value = { ...themes.value, [next.appearance]: next };
49
- appearance.value = next.appearance;
50
- resolve();
47
+ selection.value = {
48
+ variants: { ...themes.value, [next.appearance]: next },
49
+ mode: next.appearance,
50
+ };
51
+ },
52
+ /** Replaces both palettes in one reactive write, preserving the appearance selection. */
53
+ setThemePair(pair) {
54
+ selection.value = { variants: checkedThemePair(pair), mode: appearance.value };
51
55
  },
52
56
  dispose() {
53
57
  stop?.();
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/vue/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAqB,MAAM,mBAAmB,CAAA;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAmB1C,MAAM,KAAK,GAA8B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AAEpE,SAAS,SAAS,CAAC,IAAoB;IACrC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,4BAA4B,MAAM,CAAC,IAAI,CAAC,EAAE,CAA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,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;QACjE,CAAC;QACD,2EAA2E;QAC3E,QAAQ,CAAC,IAAgB;YACvB,SAAS,CAAC,KAAK,GAAG;gBAChB,QAAQ,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE;gBACtD,IAAI,EAAE,IAAI,CAAC,UAAU;aACtB,CAAA;QACH,CAAC;QACD,yFAAyF;QACzF,YAAY,CAAC,IAAe;YAC1B,SAAS,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,CAAA;QAChF,CAAC;QACD,OAAO;YACL,IAAI,EAAE,EAAE,CAAA;QACV,CAAC;KACF,CAAA;AACH,CAAC;AAGD,MAAM,CAAC,MAAM,QAAQ,GAAoC,MAAM,CAAC,aAAa,CAAC,CAAA;AAE9E,kFAAkF;AAClF,MAAM,UAAU,aAAa;IAC3B,OAAO,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;AAChE,CAAC"}
@@ -218,8 +218,8 @@ export declare function createTimePicker(ui: {
218
218
  };
219
219
  }>> & Readonly<{
220
220
  onFocus?: (() => any) | undefined;
221
- "onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
222
221
  onBlur?: (() => any) | undefined;
222
+ "onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
223
223
  "onUpdate:draft"?: ((_value: string) => any) | undefined;
224
224
  onValidityChange?: ((_value: TimeValidation) => any) | undefined;
225
225
  }>, {
@@ -228,23 +228,23 @@ export declare function createTimePicker(ui: {
228
228
  disabled: boolean;
229
229
  error: string;
230
230
  id: string;
231
- grow: number;
232
231
  modelValue: string | null;
233
232
  width: import("../layout.js").Dimension;
234
- locale: import("../time.js").TimeLocale;
233
+ grow: number;
234
+ placeholder: string;
235
+ helperText: string;
236
+ required: boolean;
235
237
  readonly: boolean;
238
+ locale: import("../time.js").TimeLocale;
239
+ confirmLabel: string;
240
+ cancelLabel: string;
236
241
  clearLabel: string;
237
- helperText: string;
238
- invalidLabel: string;
239
- placeholder: string;
240
242
  draft: string;
241
- cancelLabel: string;
242
- confirmLabel: string;
243
+ invalidLabel: string;
244
+ minuteStep: number;
243
245
  chooseLabel: string;
244
- required: boolean;
245
246
  hourLabel: string;
246
247
  minuteLabel: string;
247
- minuteStep: number;
248
248
  periodLabel: string;
249
249
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any> & {
250
250
  new (): InstanceType<import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
@@ -455,8 +455,8 @@ export declare function createTimePicker(ui: {
455
455
  };
456
456
  }>> & Readonly<{
457
457
  onFocus?: (() => any) | undefined;
458
- "onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
459
458
  onBlur?: (() => any) | undefined;
459
+ "onUpdate:modelValue"?: ((_value: string | null) => any) | undefined;
460
460
  "onUpdate:draft"?: ((_value: string) => any) | undefined;
461
461
  onValidityChange?: ((_value: TimeValidation) => any) | undefined;
462
462
  }>, {
@@ -465,23 +465,23 @@ export declare function createTimePicker(ui: {
465
465
  disabled: boolean;
466
466
  error: string;
467
467
  id: string;
468
- grow: number;
469
468
  modelValue: string | null;
470
469
  width: import("../layout.js").Dimension;
471
- locale: import("../time.js").TimeLocale;
470
+ grow: number;
471
+ placeholder: string;
472
+ helperText: string;
473
+ required: boolean;
472
474
  readonly: boolean;
475
+ locale: import("../time.js").TimeLocale;
476
+ confirmLabel: string;
477
+ cancelLabel: string;
473
478
  clearLabel: string;
474
- helperText: string;
475
- invalidLabel: string;
476
- placeholder: string;
477
479
  draft: string;
478
- cancelLabel: string;
479
- confirmLabel: string;
480
+ invalidLabel: string;
481
+ minuteStep: number;
480
482
  chooseLabel: string;
481
- required: boolean;
482
483
  hourLabel: string;
483
484
  minuteLabel: string;
484
- minuteStep: number;
485
485
  periodLabel: string;
486
486
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>> & InputHandle;
487
487
  };
@@ -93,15 +93,15 @@ export declare function createTour(ui: {
93
93
  };
94
94
  }>> & Readonly<{
95
95
  onMissing?: ((_id: string) => any) | undefined;
96
- "onUpdate:modelValue"?: ((_id: string | null) => any) | undefined;
97
96
  onFinish?: ((_reason: string) => any) | undefined;
97
+ "onUpdate:modelValue"?: ((_id: string | null) => any) | undefined;
98
98
  }>, {
99
99
  modelValue: string | null;
100
100
  animated: boolean;
101
- backLabel: string;
102
101
  nextLabel: string;
103
- finishLabel: string;
102
+ backLabel: string;
104
103
  skipLabel: string;
104
+ finishLabel: string;
105
105
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
106
106
  MTourTarget: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
107
107
  name: {
@@ -95,17 +95,17 @@ export declare function createTreeView(ui: {
95
95
  default: string;
96
96
  };
97
97
  }>> & Readonly<{
98
- "onUpdate:modelValue"?: ((_key: ChoiceValue) => any) | undefined;
99
98
  onLoad?: ((_node: TreeNode) => any) | undefined;
99
+ "onUpdate:modelValue"?: ((_key: ChoiceValue) => any) | undefined;
100
100
  "onUpdate:expanded"?: ((_keys: ChoiceValue[]) => any) | undefined;
101
101
  }>, {
102
102
  expandedLabel: string;
103
103
  collapsedLabel: string;
104
104
  disabled: boolean;
105
+ expanded: readonly ChoiceValue[];
105
106
  modelValue: ChoiceValue | null;
106
- emptyLabel: string;
107
107
  loadingLabel: string;
108
- expanded: readonly ChoiceValue[];
108
+ emptyLabel: string;
109
109
  loadingKeys: readonly ChoiceValue[];
110
110
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
111
111
  //# sourceMappingURL=tree-view.d.ts.map
@@ -91,8 +91,8 @@ export declare function createWayfindingControls(ui: Primitives, platform: 'web'
91
91
  modelValue: import("../choice.js").ChoiceValue | null;
92
92
  expandLabel: string;
93
93
  collapseLabel: string;
94
- collapsed: boolean;
95
94
  collapsible: boolean;
95
+ collapsed: boolean;
96
96
  currentLabel: string;
97
97
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
98
98
  MBreadcrumb: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
@@ -253,14 +253,14 @@ export declare function createWorkflows(ui: Primitives, platform: 'web' | 'nativ
253
253
  modelValue: number;
254
254
  loading: boolean;
255
255
  emptyLabel: string;
256
- nextLabel: string;
257
256
  previousLabel: string;
257
+ nextLabel: string;
258
258
  currentLabel: string;
259
- invalidPageLabel: string;
260
- pageLabel: string;
261
259
  pageSize: number;
262
260
  siblingCount: number;
261
+ pageLabel: string;
263
262
  statusText: string;
263
+ invalidPageLabel: string;
264
264
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
265
265
  };
266
266
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getcortexlabs/mavis-core",
3
- "version": "0.1.0-rc.15",
3
+ "version": "0.1.0-rc.16",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Shared Mavis themes and component contracts.",
package/src/avatar.ts CHANGED
@@ -9,3 +9,9 @@ export function avatarInitials(name: string): string {
9
9
  const last = words.length > 1 ? Array.from(words.at(-1)!)[0]! : ''
10
10
  return (first + last).toUpperCase()
11
11
  }
12
+
13
+ export interface AvatarMember {
14
+ id: string
15
+ name: string
16
+ src?: string
17
+ }