@metamorph-labs/polymorph-vue-ui 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +300 -0
- package/dist/ai/ArtifactPane.js.map +1 -1
- package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
- package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/PromptInput.js.map +1 -1
- package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
- package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/ReasoningDisclosure.js.map +1 -1
- package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/ToolCall.js.map +1 -1
- package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/artifact-pane.css +1 -1
- package/dist/ai/artifact-pane.module.js +1 -1
- package/dist/ai/attachment-chip.css +1 -1
- package/dist/ai/attachment-chip.module.js +1 -1
- package/dist/ai/attachment-chip.module.js.map +1 -1
- package/dist/ai/chat-thread.css +1 -1
- package/dist/ai/chat-thread.module.js +1 -1
- package/dist/ai/citation.css +1 -1
- package/dist/ai/citation.module.js +1 -1
- package/dist/ai/prompt-input.css +1 -1
- package/dist/ai/prompt-input.module.js +1 -1
- package/dist/ai/prompt-input.module.js.map +1 -1
- package/dist/ai/reasoning-disclosure.css +1 -1
- package/dist/ai/reasoning-disclosure.module.js +5 -5
- package/dist/ai/reasoning-disclosure.module.js.map +1 -1
- package/dist/ai/source-list.css +1 -1
- package/dist/ai/source-list.module.js +1 -1
- package/dist/ai/source-list.module.js.map +1 -1
- package/dist/ai/tool-call.css +1 -1
- package/dist/ai/tool-call.module.js +1 -1
- package/dist/archetypes/AppShell.js.map +1 -1
- package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
- package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/archetypes/FormPage.js.map +1 -1
- package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
- package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/archetypes/MasterDetailPage.js.map +1 -1
- package/dist/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/archetypes/app-shell.css +1 -1
- package/dist/archetypes/app-shell.module.js +9 -8
- package/dist/archetypes/app-shell.module.js.map +1 -1
- package/dist/archetypes/form-page.css +1 -1
- package/dist/archetypes/form-page.module.js +5 -3
- package/dist/archetypes/form-page.module.js.map +1 -1
- package/dist/archetypes/master-detail-page.css +1 -1
- package/dist/archetypes/master-detail-page.module.js +1 -1
- package/dist/archetypes/master-detail-page.module.js.map +1 -1
- package/dist/charts/area-chart.css +1 -1
- package/dist/charts/area-chart.module.js +1 -1
- package/dist/charts/bar-chart.css +1 -1
- package/dist/charts/bar-chart.module.js +1 -1
- package/dist/charts/donut-chart.css +1 -1
- package/dist/charts/donut-chart.module.js +1 -1
- package/dist/charts/frame/chart-frame.css +1 -1
- package/dist/charts/frame/chart-frame.module.js +1 -1
- package/dist/charts/frame/chart-legend.css +1 -1
- package/dist/charts/frame/chart-legend.module.js +1 -1
- package/dist/charts/frame/chart-legend.module.js.map +1 -1
- package/dist/charts/funnel-chart.css +1 -1
- package/dist/charts/funnel-chart.module.js +1 -1
- package/dist/charts/heatmap.css +1 -1
- package/dist/charts/heatmap.module.js +1 -1
- package/dist/charts/histogram.css +1 -1
- package/dist/charts/histogram.module.js +1 -1
- package/dist/charts/line-chart.css +1 -1
- package/dist/charts/line-chart.module.js +1 -1
- package/dist/charts/radar-chart.css +1 -1
- package/dist/charts/radar-chart.module.js +1 -1
- package/dist/charts/scatter-chart.css +1 -1
- package/dist/charts/scatter-chart.module.js +1 -1
- package/dist/charts/treemap.css +1 -1
- package/dist/charts/treemap.module.js +1 -1
- package/dist/controls/AvatarButton.js.map +1 -1
- package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
- package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Button.js.map +1 -1
- package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
- package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Calendar.js.map +1 -1
- package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Checkbox.js.map +1 -1
- package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/ColorInput.js.map +1 -1
- package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
- package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Combobox.js.map +1 -1
- package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/CopyButton.js.map +1 -1
- package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
- package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/DatePicker.js.map +1 -1
- package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/DateRangePicker.js.map +1 -1
- package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/FileUpload.js.map +1 -1
- package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
- package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/InlineEdit.js.map +1 -1
- package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
- package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/MultiSelect.js.map +1 -1
- package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
- package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/NumberInput.js.map +1 -1
- package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/PhoneInput.js.map +1 -1
- package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/RadioGroup.js.map +1 -1
- package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/RichTextInput.js +7 -0
- package/dist/controls/RichTextInput.js.map +1 -0
- package/dist/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js +1123 -0
- package/dist/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/controls/SegmentedControl.js.map +1 -1
- package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Select.js.map +1 -1
- package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Slider.js.map +1 -1
- package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/SplitButton.js.map +1 -1
- package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
- package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/SplitButtonSubmenu.js.map +1 -1
- package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Switch.js.map +1 -1
- package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/TagInput.js.map +1 -1
- package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
- package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/TreeSelect.js.map +1 -1
- package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/avatar-button.css +1 -1
- package/dist/controls/avatar-button.module.js +5 -4
- package/dist/controls/avatar-button.module.js.map +1 -1
- package/dist/controls/button.css +1 -1
- package/dist/controls/button.module.js +4 -3
- package/dist/controls/button.module.js.map +1 -1
- package/dist/controls/calendar.css +1 -1
- package/dist/controls/calendar.module.js +3 -3
- package/dist/controls/calendar.module.js.map +1 -1
- package/dist/controls/checkbox-group.css +1 -1
- package/dist/controls/checkbox-group.module.js +1 -1
- package/dist/controls/checkbox.css +1 -1
- package/dist/controls/checkbox.module.js +2 -2
- package/dist/controls/checkbox.module.js.map +1 -1
- package/dist/controls/choice-card.css +1 -1
- package/dist/controls/choice-card.module.js +2 -2
- package/dist/controls/choice-card.module.js.map +1 -1
- package/dist/controls/color-input.css +1 -1
- package/dist/controls/color-input.module.js +1 -1
- package/dist/controls/color-input.module.js.map +1 -1
- package/dist/controls/combobox.css +1 -1
- package/dist/controls/combobox.module.js +5 -5
- package/dist/controls/combobox.module.js.map +1 -1
- package/dist/controls/copy-button.css +1 -1
- package/dist/controls/copy-button.module.js +8 -7
- package/dist/controls/copy-button.module.js.map +1 -1
- package/dist/controls/date-picker.css +1 -1
- package/dist/controls/date-picker.module.js +1 -1
- package/dist/controls/date-range-picker.css +1 -1
- package/dist/controls/date-range-picker.module.js +6 -6
- package/dist/controls/date-range-picker.module.js.map +1 -1
- package/dist/controls/duration-input.css +1 -1
- package/dist/controls/duration-input.module.js +1 -1
- package/dist/controls/file-upload.css +1 -1
- package/dist/controls/file-upload.module.js +1 -1
- package/dist/controls/file-upload.module.js.map +1 -1
- package/dist/controls/input.css +1 -1
- package/dist/controls/input.module.js +2 -2
- package/dist/controls/input.module.js.map +1 -1
- package/dist/controls/link.css +1 -1
- package/dist/controls/link.module.js +1 -1
- package/dist/controls/link.module.js.map +1 -1
- package/dist/controls/month-input.css +1 -1
- package/dist/controls/month-input.module.js +1 -1
- package/dist/controls/multi-select.css +1 -1
- package/dist/controls/multi-select.module.js +5 -5
- package/dist/controls/multi-select.module.js.map +1 -1
- package/dist/controls/number-input.css +1 -1
- package/dist/controls/number-input.module.js +1 -1
- package/dist/controls/number-input.module.js.map +1 -1
- package/dist/controls/otp-input.css +1 -1
- package/dist/controls/otp-input.module.js +2 -2
- package/dist/controls/otp-input.module.js.map +1 -1
- package/dist/controls/password-input.css +1 -1
- package/dist/controls/password-input.module.js +2 -2
- package/dist/controls/password-input.module.js.map +1 -1
- package/dist/controls/provider-button.css +1 -1
- package/dist/controls/provider-button.module.js +1 -1
- package/dist/controls/radio-group.css +1 -1
- package/dist/controls/radio-group.module.js +2 -2
- package/dist/controls/radio-group.module.js.map +1 -1
- package/dist/controls/rating.css +1 -1
- package/dist/controls/rating.module.js +1 -1
- package/dist/controls/rich-text-input.css +1 -0
- package/dist/controls/rich-text-input.module.js +47 -0
- package/dist/controls/rich-text-input.module.js.map +1 -0
- package/dist/controls/segmented-control.css +1 -1
- package/dist/controls/segmented-control.module.js +1 -1
- package/dist/controls/select.css +1 -1
- package/dist/controls/select.module.js +3 -3
- package/dist/controls/select.module.js.map +1 -1
- package/dist/controls/selection-bar.css +1 -0
- package/dist/controls/selection-bar.module.js +11 -0
- package/dist/controls/selection-bar.module.js.map +1 -0
- package/dist/controls/slider.css +1 -1
- package/dist/controls/slider.module.js +1 -1
- package/dist/controls/slider.module.js.map +1 -1
- package/dist/controls/split-button.css +1 -1
- package/dist/controls/split-button.module.js +20 -19
- package/dist/controls/split-button.module.js.map +1 -1
- package/dist/controls/switch.css +1 -1
- package/dist/controls/switch.module.js +1 -1
- package/dist/controls/switch.module.js.map +1 -1
- package/dist/controls/tag-input.css +1 -1
- package/dist/controls/tag-input.module.js +1 -1
- package/dist/controls/textarea.css +1 -1
- package/dist/controls/textarea.module.js +1 -1
- package/dist/controls/time-input.css +1 -1
- package/dist/controls/time-input.module.js +1 -1
- package/dist/controls/tree-select.css +1 -1
- package/dist/controls/tree-select.module.js +1 -1
- package/dist/index.js +41 -39
- package/dist/index.js.map +1 -1
- package/dist/layout/split-pane.css +1 -1
- package/dist/layout/split-pane.module.js +1 -1
- package/dist/layout/split-pane.module.js.map +1 -1
- package/dist/node/ai/ArtifactPane.js.map +1 -1
- package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
- package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/PromptInput.js.map +1 -1
- package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
- package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/ReasoningDisclosure.js.map +1 -1
- package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/ToolCall.js.map +1 -1
- package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/artifact-pane.module.js +1 -1
- package/dist/node/ai/attachment-chip.module.js +1 -1
- package/dist/node/ai/attachment-chip.module.js.map +1 -1
- package/dist/node/ai/chat-thread.module.js +1 -1
- package/dist/node/ai/citation.module.js +1 -1
- package/dist/node/ai/prompt-input.module.js +1 -1
- package/dist/node/ai/prompt-input.module.js.map +1 -1
- package/dist/node/ai/reasoning-disclosure.module.js +5 -5
- package/dist/node/ai/reasoning-disclosure.module.js.map +1 -1
- package/dist/node/ai/source-list.module.js +1 -1
- package/dist/node/ai/source-list.module.js.map +1 -1
- package/dist/node/ai/tool-call.module.js +1 -1
- package/dist/node/archetypes/AppShell.js.map +1 -1
- package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
- package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/archetypes/FormPage.js.map +1 -1
- package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
- package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/archetypes/MasterDetailPage.js.map +1 -1
- package/dist/node/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/archetypes/app-shell.module.js +9 -8
- package/dist/node/archetypes/app-shell.module.js.map +1 -1
- package/dist/node/archetypes/form-page.module.js +5 -3
- package/dist/node/archetypes/form-page.module.js.map +1 -1
- package/dist/node/archetypes/master-detail-page.module.js +1 -1
- package/dist/node/archetypes/master-detail-page.module.js.map +1 -1
- package/dist/node/charts/area-chart.module.js +1 -1
- package/dist/node/charts/bar-chart.module.js +1 -1
- package/dist/node/charts/donut-chart.module.js +1 -1
- package/dist/node/charts/frame/chart-frame.module.js +1 -1
- package/dist/node/charts/frame/chart-legend.module.js +1 -1
- package/dist/node/charts/frame/chart-legend.module.js.map +1 -1
- package/dist/node/charts/funnel-chart.module.js +1 -1
- package/dist/node/charts/heatmap.module.js +1 -1
- package/dist/node/charts/histogram.module.js +1 -1
- package/dist/node/charts/line-chart.module.js +1 -1
- package/dist/node/charts/radar-chart.module.js +1 -1
- package/dist/node/charts/scatter-chart.module.js +1 -1
- package/dist/node/charts/treemap.module.js +1 -1
- package/dist/node/controls/AvatarButton.js.map +1 -1
- package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
- package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Button.js.map +1 -1
- package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
- package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Calendar.js.map +1 -1
- package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Checkbox.js.map +1 -1
- package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/ColorInput.js.map +1 -1
- package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
- package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Combobox.js.map +1 -1
- package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/CopyButton.js.map +1 -1
- package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
- package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/DatePicker.js.map +1 -1
- package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/DateRangePicker.js.map +1 -1
- package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/FileUpload.js.map +1 -1
- package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
- package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/InlineEdit.js.map +1 -1
- package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
- package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/MultiSelect.js.map +1 -1
- package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
- package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/NumberInput.js.map +1 -1
- package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/PhoneInput.js.map +1 -1
- package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/RadioGroup.js.map +1 -1
- package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/RichTextInput.js +7 -0
- package/dist/node/controls/RichTextInput.js.map +1 -0
- package/dist/node/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js +1123 -0
- package/dist/node/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/node/controls/SegmentedControl.js.map +1 -1
- package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Select.js.map +1 -1
- package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Slider.js.map +1 -1
- package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/SplitButton.js.map +1 -1
- package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
- package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/SplitButtonSubmenu.js.map +1 -1
- package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Switch.js.map +1 -1
- package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/TagInput.js.map +1 -1
- package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
- package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/TreeSelect.js.map +1 -1
- package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/avatar-button.module.js +5 -4
- package/dist/node/controls/avatar-button.module.js.map +1 -1
- package/dist/node/controls/button.module.js +4 -3
- package/dist/node/controls/button.module.js.map +1 -1
- package/dist/node/controls/calendar.module.js +3 -3
- package/dist/node/controls/calendar.module.js.map +1 -1
- package/dist/node/controls/checkbox-group.module.js +1 -1
- package/dist/node/controls/checkbox.module.js +2 -2
- package/dist/node/controls/checkbox.module.js.map +1 -1
- package/dist/node/controls/choice-card.module.js +2 -2
- package/dist/node/controls/choice-card.module.js.map +1 -1
- package/dist/node/controls/color-input.module.js +1 -1
- package/dist/node/controls/color-input.module.js.map +1 -1
- package/dist/node/controls/combobox.module.js +5 -5
- package/dist/node/controls/combobox.module.js.map +1 -1
- package/dist/node/controls/copy-button.module.js +8 -7
- package/dist/node/controls/copy-button.module.js.map +1 -1
- package/dist/node/controls/date-picker.module.js +1 -1
- package/dist/node/controls/date-range-picker.module.js +6 -6
- package/dist/node/controls/date-range-picker.module.js.map +1 -1
- package/dist/node/controls/duration-input.module.js +1 -1
- package/dist/node/controls/file-upload.module.js +1 -1
- package/dist/node/controls/file-upload.module.js.map +1 -1
- package/dist/node/controls/input.module.js +2 -2
- package/dist/node/controls/input.module.js.map +1 -1
- package/dist/node/controls/link.module.js +1 -1
- package/dist/node/controls/link.module.js.map +1 -1
- package/dist/node/controls/month-input.module.js +1 -1
- package/dist/node/controls/multi-select.module.js +5 -5
- package/dist/node/controls/multi-select.module.js.map +1 -1
- package/dist/node/controls/number-input.module.js +1 -1
- package/dist/node/controls/number-input.module.js.map +1 -1
- package/dist/node/controls/otp-input.module.js +2 -2
- package/dist/node/controls/otp-input.module.js.map +1 -1
- package/dist/node/controls/password-input.module.js +2 -2
- package/dist/node/controls/password-input.module.js.map +1 -1
- package/dist/node/controls/provider-button.module.js +1 -1
- package/dist/node/controls/radio-group.module.js +2 -2
- package/dist/node/controls/radio-group.module.js.map +1 -1
- package/dist/node/controls/rating.module.js +1 -1
- package/dist/node/controls/rich-text-input.module.js +46 -0
- package/dist/node/controls/rich-text-input.module.js.map +1 -0
- package/dist/node/controls/segmented-control.module.js +1 -1
- package/dist/node/controls/select.module.js +3 -3
- package/dist/node/controls/select.module.js.map +1 -1
- package/dist/node/controls/selection-bar.module.js +10 -0
- package/dist/node/controls/selection-bar.module.js.map +1 -0
- package/dist/node/controls/slider.module.js +1 -1
- package/dist/node/controls/slider.module.js.map +1 -1
- package/dist/node/controls/split-button.module.js +20 -19
- package/dist/node/controls/split-button.module.js.map +1 -1
- package/dist/node/controls/switch.module.js +1 -1
- package/dist/node/controls/switch.module.js.map +1 -1
- package/dist/node/controls/tag-input.module.js +1 -1
- package/dist/node/controls/textarea.module.js +1 -1
- package/dist/node/controls/time-input.module.js +1 -1
- package/dist/node/controls/tree-select.module.js +1 -1
- package/dist/node/index.js +41 -39
- package/dist/node/index.js.map +1 -1
- package/dist/node/layout/split-pane.module.js +1 -1
- package/dist/node/layout/split-pane.module.js.map +1 -1
- package/dist/node/overlays/Command.js.map +1 -1
- package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
- package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/CommandPanel.js.map +1 -1
- package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ContextMenu.js.map +1 -1
- package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.js.map +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Dialog.js.map +1 -1
- package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
- package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Drawer.js.map +1 -1
- package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Lightbox.js.map +1 -1
- package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
- package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Menu.js.map +1 -1
- package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/MenuSubmenu.js.map +1 -1
- package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Menubar.js.map +1 -1
- package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/MenubarSubmenu.js.map +1 -1
- package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Popover.js.map +1 -1
- package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tabs.js.map +1 -1
- package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Toast.js.map +1 -1
- package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ToastCard.js.map +1 -1
- package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
- package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ToastViewport.js.map +1 -1
- package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
- package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tooltip.js.map +1 -1
- package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
- package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tour.js.map +1 -1
- package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
- package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/context-menu.module.js +4 -4
- package/dist/node/overlays/context-menu.module.js.map +1 -1
- package/dist/node/overlays/dialog.module.js +1 -1
- package/dist/node/overlays/dialog.module.js.map +1 -1
- package/dist/node/overlays/drawer.module.js +1 -1
- package/dist/node/overlays/drawer.module.js.map +1 -1
- package/dist/node/overlays/lightbox.module.js +1 -1
- package/dist/node/overlays/menu.module.js +4 -4
- package/dist/node/overlays/menu.module.js.map +1 -1
- package/dist/node/overlays/menubar.module.js +1 -1
- package/dist/node/overlays/menubar.module.js.map +1 -1
- package/dist/node/overlays/popover.module.js +3 -3
- package/dist/node/overlays/popover.module.js.map +1 -1
- package/dist/node/overlays/sheet.module.js +1 -1
- package/dist/node/overlays/sheet.module.js.map +1 -1
- package/dist/node/overlays/tabs.module.js +4 -4
- package/dist/node/overlays/tabs.module.js.map +1 -1
- package/dist/node/overlays/toast.module.js +1 -1
- package/dist/node/overlays/toast.module.js.map +1 -1
- package/dist/node/overlays/tour.module.js +1 -1
- package/dist/node/overlays/tour.module.js.map +1 -1
- package/dist/node/structure/Accordion.js.map +1 -1
- package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Alert.js.map +1 -1
- package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
- package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Banner.js.map +1 -1
- package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
- package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Carousel.js.map +1 -1
- package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Collapsible.js.map +1 -1
- package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/CursorPagination.js.map +1 -1
- package/dist/node/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js +140 -93
- package/dist/node/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Image.js.map +1 -1
- package/dist/node/structure/Image.vue_vue_type_script_setup_true_lang.js +30 -18
- package/dist/node/structure/Image.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Pagination.js.map +1 -1
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js +154 -71
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/RichTextContent.js +7 -0
- package/dist/node/structure/RichTextContent.js.map +1 -0
- package/dist/node/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js +298 -0
- package/dist/node/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/node/structure/RichTextContentBlocks.js +7 -0
- package/dist/node/structure/RichTextContentBlocks.js.map +1 -0
- package/dist/node/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/node/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/node/structure/RichTextContentInlines.js +7 -0
- package/dist/node/structure/RichTextContentInlines.js.map +1 -0
- package/dist/node/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/node/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/node/structure/RichTextContentItem.js +7 -0
- package/dist/node/structure/RichTextContentItem.js.map +1 -0
- package/dist/node/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/node/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/node/structure/ScrollArea.js.map +1 -1
- package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
- package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Table.js.map +1 -1
- package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
- package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/accordion.module.js +5 -5
- package/dist/node/structure/accordion.module.js.map +1 -1
- package/dist/node/structure/breadcrumbs.module.js +1 -1
- package/dist/node/structure/breadcrumbs.module.js.map +1 -1
- package/dist/node/structure/card.module.js +1 -1
- package/dist/node/structure/card.module.js.map +1 -1
- package/dist/node/structure/carousel.module.js +1 -1
- package/dist/node/structure/carousel.module.js.map +1 -1
- package/dist/node/structure/code-block.module.js +2 -2
- package/dist/node/structure/code-block.module.js.map +1 -1
- package/dist/node/structure/collapsible.module.js +5 -5
- package/dist/node/structure/collapsible.module.js.map +1 -1
- package/dist/node/structure/cursor-pagination.module.js +6 -3
- package/dist/node/structure/cursor-pagination.module.js.map +1 -1
- package/dist/node/structure/data-table.module.js +1 -1
- package/dist/node/structure/error-summary.module.js +1 -1
- package/dist/node/structure/error-summary.module.js.map +1 -1
- package/dist/node/structure/json-tree.module.js +1 -1
- package/dist/node/structure/json-tree.module.js.map +1 -1
- package/dist/node/structure/list.module.js +1 -1
- package/dist/node/structure/list.module.js.map +1 -1
- package/dist/node/structure/log-view.module.js +1 -1
- package/dist/node/structure/pagination.module.js +7 -3
- package/dist/node/structure/pagination.module.js.map +1 -1
- package/dist/node/structure/rich-text-content.module.js +18 -0
- package/dist/node/structure/rich-text-content.module.js.map +1 -0
- package/dist/node/structure/section-nav.module.js +1 -1
- package/dist/node/structure/section-nav.module.js.map +1 -1
- package/dist/node/structure/stepper.module.js +2 -2
- package/dist/node/structure/stepper.module.js.map +1 -1
- package/dist/node/structure/table-of-contents.module.js +1 -1
- package/dist/node/structure/table-of-contents.module.js.map +1 -1
- package/dist/node/structure/table.module.js +1 -1
- package/dist/node/structure/table.module.js.map +1 -1
- package/dist/node/structure/tree.module.js +1 -1
- package/dist/node/structure/tree.module.js.map +1 -1
- package/dist/overlays/Command.js.map +1 -1
- package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
- package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/CommandPanel.js.map +1 -1
- package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ContextMenu.js.map +1 -1
- package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ContextMenuSubmenu.js.map +1 -1
- package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Dialog.js.map +1 -1
- package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
- package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Drawer.js.map +1 -1
- package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Lightbox.js.map +1 -1
- package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
- package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Menu.js.map +1 -1
- package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/MenuSubmenu.js.map +1 -1
- package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Menubar.js.map +1 -1
- package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/MenubarSubmenu.js.map +1 -1
- package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Popover.js.map +1 -1
- package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tabs.js.map +1 -1
- package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Toast.js.map +1 -1
- package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ToastCard.js.map +1 -1
- package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
- package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ToastViewport.js.map +1 -1
- package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
- package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tooltip.js.map +1 -1
- package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
- package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tour.js.map +1 -1
- package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
- package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/context-menu.css +1 -1
- package/dist/overlays/context-menu.module.js +4 -4
- package/dist/overlays/context-menu.module.js.map +1 -1
- package/dist/overlays/dialog.css +1 -1
- package/dist/overlays/dialog.module.js +1 -1
- package/dist/overlays/dialog.module.js.map +1 -1
- package/dist/overlays/drawer.css +1 -1
- package/dist/overlays/drawer.module.js +1 -1
- package/dist/overlays/drawer.module.js.map +1 -1
- package/dist/overlays/lightbox.css +1 -1
- package/dist/overlays/lightbox.module.js +1 -1
- package/dist/overlays/menu.css +1 -1
- package/dist/overlays/menu.module.js +4 -4
- package/dist/overlays/menu.module.js.map +1 -1
- package/dist/overlays/menubar.css +1 -1
- package/dist/overlays/menubar.module.js +1 -1
- package/dist/overlays/menubar.module.js.map +1 -1
- package/dist/overlays/popover.css +1 -1
- package/dist/overlays/popover.module.js +3 -3
- package/dist/overlays/popover.module.js.map +1 -1
- package/dist/overlays/sheet.css +1 -1
- package/dist/overlays/sheet.module.js +1 -1
- package/dist/overlays/sheet.module.js.map +1 -1
- package/dist/overlays/tabs.css +1 -1
- package/dist/overlays/tabs.module.js +4 -4
- package/dist/overlays/tabs.module.js.map +1 -1
- package/dist/overlays/toast.css +1 -1
- package/dist/overlays/toast.module.js +1 -1
- package/dist/overlays/toast.module.js.map +1 -1
- package/dist/overlays/tour.css +1 -1
- package/dist/overlays/tour.module.js +1 -1
- package/dist/overlays/tour.module.js.map +1 -1
- package/dist/structure/Accordion.js.map +1 -1
- package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Alert.js.map +1 -1
- package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
- package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Banner.js.map +1 -1
- package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
- package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Carousel.js.map +1 -1
- package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Collapsible.js.map +1 -1
- package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/CursorPagination.js.map +1 -1
- package/dist/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js +140 -93
- package/dist/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Image.js.map +1 -1
- package/dist/structure/Image.vue_vue_type_script_setup_true_lang.js +30 -18
- package/dist/structure/Image.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Pagination.js.map +1 -1
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js +154 -71
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/RichTextContent.js +7 -0
- package/dist/structure/RichTextContent.js.map +1 -0
- package/dist/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js +298 -0
- package/dist/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/structure/RichTextContentBlocks.js +7 -0
- package/dist/structure/RichTextContentBlocks.js.map +1 -0
- package/dist/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/structure/RichTextContentInlines.js +7 -0
- package/dist/structure/RichTextContentInlines.js.map +1 -0
- package/dist/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/structure/RichTextContentItem.js +7 -0
- package/dist/structure/RichTextContentItem.js.map +1 -0
- package/dist/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/structure/ScrollArea.js.map +1 -1
- package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
- package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Table.js.map +1 -1
- package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
- package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/accordion.css +1 -1
- package/dist/structure/accordion.module.js +5 -5
- package/dist/structure/accordion.module.js.map +1 -1
- package/dist/structure/breadcrumbs.css +1 -1
- package/dist/structure/breadcrumbs.module.js +1 -1
- package/dist/structure/breadcrumbs.module.js.map +1 -1
- package/dist/structure/card.css +1 -1
- package/dist/structure/card.module.js +1 -1
- package/dist/structure/card.module.js.map +1 -1
- package/dist/structure/carousel.css +1 -1
- package/dist/structure/carousel.module.js +1 -1
- package/dist/structure/carousel.module.js.map +1 -1
- package/dist/structure/code-block.css +1 -1
- package/dist/structure/code-block.module.js +2 -2
- package/dist/structure/code-block.module.js.map +1 -1
- package/dist/structure/collapsible.css +1 -1
- package/dist/structure/collapsible.module.js +5 -5
- package/dist/structure/collapsible.module.js.map +1 -1
- package/dist/structure/cursor-pagination.css +1 -1
- package/dist/structure/cursor-pagination.module.js +6 -3
- package/dist/structure/cursor-pagination.module.js.map +1 -1
- package/dist/structure/data-table.css +1 -1
- package/dist/structure/data-table.module.js +1 -1
- package/dist/structure/error-summary.css +1 -1
- package/dist/structure/error-summary.module.js +1 -1
- package/dist/structure/error-summary.module.js.map +1 -1
- package/dist/structure/json-tree.css +1 -1
- package/dist/structure/json-tree.module.js +1 -1
- package/dist/structure/json-tree.module.js.map +1 -1
- package/dist/structure/list.css +1 -1
- package/dist/structure/list.module.js +1 -1
- package/dist/structure/list.module.js.map +1 -1
- package/dist/structure/log-view.css +1 -1
- package/dist/structure/log-view.module.js +1 -1
- package/dist/structure/pagination.css +1 -1
- package/dist/structure/pagination.module.js +7 -3
- package/dist/structure/pagination.module.js.map +1 -1
- package/dist/structure/rich-text-content.css +1 -0
- package/dist/structure/rich-text-content.module.js +19 -0
- package/dist/structure/rich-text-content.module.js.map +1 -0
- package/dist/structure/section-nav.css +1 -1
- package/dist/structure/section-nav.module.js +1 -1
- package/dist/structure/section-nav.module.js.map +1 -1
- package/dist/structure/stepper.css +1 -1
- package/dist/structure/stepper.module.js +2 -2
- package/dist/structure/stepper.module.js.map +1 -1
- package/dist/structure/table-of-contents.css +1 -1
- package/dist/structure/table-of-contents.module.js +1 -1
- package/dist/structure/table-of-contents.module.js.map +1 -1
- package/dist/structure/table.css +1 -1
- package/dist/structure/table.module.js +1 -1
- package/dist/structure/table.module.js.map +1 -1
- package/dist/structure/tree.css +1 -1
- package/dist/structure/tree.module.js +1 -1
- package/dist/structure/tree.module.js.map +1 -1
- package/dist/types/ai/ArtifactPane.vue.d.ts +1 -1
- package/dist/types/ai/AttachmentChip.vue.d.ts +1 -1
- package/dist/types/ai/ToolCall.vue.d.ts +1 -1
- package/dist/types/archetypes/FormPage.vue.d.ts +1 -0
- package/dist/types/charts/BarChart.vue.d.ts +1 -1
- package/dist/types/controls/FileUpload.vue.d.ts +1 -1
- package/dist/types/controls/RecordButton.vue.d.ts +2 -2
- package/dist/types/controls/RichTextInput.vue.d.ts +210 -0
- package/dist/types/controls/Slider.vue.d.ts +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/layout/Grid.vue.d.ts +1 -1
- package/dist/types/layout/Inline.vue.d.ts +2 -2
- package/dist/types/layout/Stack.vue.d.ts +2 -2
- package/dist/types/overlays/CommandPanel.vue.d.ts +2 -2
- package/dist/types/overlays/Drawer.vue.d.ts +1 -1
- package/dist/types/overlays/HoverCard.vue.d.ts +1 -1
- package/dist/types/overlays/Menu.vue.d.ts +1 -1
- package/dist/types/overlays/Popover.vue.d.ts +1 -1
- package/dist/types/overlays/Toast.vue.d.ts +3 -1
- package/dist/types/overlays/Tooltip.vue.d.ts +1 -1
- package/dist/types/structure/Accordion.vue.d.ts +7 -0
- package/dist/types/structure/Collapsible.vue.d.ts +7 -0
- package/dist/types/structure/CursorPagination.vue.d.ts +13 -0
- package/dist/types/structure/EmptyState.vue.d.ts +1 -1
- package/dist/types/structure/Hero.vue.d.ts +1 -1
- package/dist/types/structure/Image.vue.d.ts +13 -0
- package/dist/types/structure/Pagination.vue.d.ts +8 -0
- package/dist/types/structure/RelativeTime.vue.d.ts +1 -1
- package/dist/types/structure/RichTextContent.vue.d.ts +59 -0
- package/dist/types/structure/RichTextContentBlocks.vue.d.ts +7 -0
- package/dist/types/structure/RichTextContentInlines.vue.d.ts +7 -0
- package/dist/types/structure/RichTextContentItem.vue.d.ts +7 -0
- package/package.json +17 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e from "./tooltip.module.js";
|
|
2
|
-
import { TOOLTIP_DELAY_MS as t, TOOLTIP_SKIP_DELAY_MS as n, anchorProps as r,
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { normalizeProps as
|
|
5
|
-
import { usePresence as
|
|
6
|
-
import * as
|
|
2
|
+
import { TOOLTIP_DELAY_MS as t, TOOLTIP_SKIP_DELAY_MS as n, anchorProps as r, closeTooltipOnScroll as i, holdTooltipFromPointer as a, syncTriggerAnchor as o, useDirection as s } from "@polymorph/vue";
|
|
3
|
+
import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, defineComponent as h, mergeProps as g, normalizeProps as _, onBeforeUnmount as v, onMounted as y, openBlock as b, renderSlot as x, toDisplayString as S, unref as C, useId as w, useTemplateRef as T, watch as E } from "vue";
|
|
4
|
+
import { normalizeProps as D, useMachine as O } from "@zag-js/vue";
|
|
5
|
+
import { usePresence as k } from "@polymorph/vue/motion";
|
|
6
|
+
import * as A from "@zag-js/tooltip";
|
|
7
7
|
//#region src/overlays/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var j = ["data-state"], M = /*@__PURE__*/ h({
|
|
9
9
|
name: "Tooltip",
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "Tooltip",
|
|
@@ -18,43 +18,63 @@ var O = ["data-state"], k = /*@__PURE__*/ p({
|
|
|
18
18
|
},
|
|
19
19
|
side: { default: "top" }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
let
|
|
23
|
-
id:
|
|
24
|
-
dir:
|
|
25
|
-
defaultOpen:
|
|
21
|
+
setup(h) {
|
|
22
|
+
let M = h, N = w(), P = T("anchor"), F = T("bubble"), I = s(() => P.value), L = O(A.machine, u(() => ({
|
|
23
|
+
id: N,
|
|
24
|
+
dir: I.value,
|
|
25
|
+
defaultOpen: M.defaultOpen,
|
|
26
26
|
openDelay: t,
|
|
27
27
|
closeDelay: n,
|
|
28
|
+
closeOnScroll: !1,
|
|
28
29
|
positioning: {
|
|
29
|
-
placement:
|
|
30
|
+
placement: M.align === "center" ? M.side : `${M.side}-${M.align}`,
|
|
30
31
|
gutter: 0
|
|
31
32
|
}
|
|
32
|
-
}))),
|
|
33
|
+
}))), R = u(() => A.connect(L, D)), z = k(() => R.value.open, F, "tooltip.bubble", {
|
|
33
34
|
get side() {
|
|
34
|
-
return
|
|
35
|
+
return M.side;
|
|
35
36
|
},
|
|
36
37
|
get align() {
|
|
37
|
-
return
|
|
38
|
+
return M.align;
|
|
38
39
|
}
|
|
39
|
-
}),
|
|
40
|
-
|
|
40
|
+
}), B = () => {
|
|
41
|
+
o(P.value, R.value.getTriggerProps(), R.value.open, !1);
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
y(B), E(() => R.value.open, B, { flush: "post" });
|
|
44
|
+
let V, H = () => {
|
|
45
|
+
V?.();
|
|
46
|
+
let e = i(R.value.open ? P.value : null, () => R.value.setOpen(!1));
|
|
47
|
+
V = () => {
|
|
48
|
+
e();
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
y(H), E(() => R.value.open, H, { flush: "post" }), v(() => V?.());
|
|
52
|
+
let U;
|
|
53
|
+
return y(() => {
|
|
54
|
+
U?.();
|
|
55
|
+
let e = a(P.value);
|
|
56
|
+
U = () => {
|
|
57
|
+
e();
|
|
58
|
+
};
|
|
59
|
+
}), v(() => U?.()), (t, n) => (b(), p(c, null, [m("span", g({
|
|
43
60
|
ref_key: "anchor",
|
|
44
|
-
ref:
|
|
45
|
-
},
|
|
61
|
+
ref: P
|
|
62
|
+
}, C(r)(R.value.getTriggerProps()), {
|
|
63
|
+
class: C(e).anchor,
|
|
64
|
+
"data-tooltip-part": "trigger"
|
|
65
|
+
}), [x(t.$slots, "default")], 16), (b(), d(l, { to: "body" }, [C(z) ? (b(), p("div", _(g({ key: 0 }, R.value.getPositionerProps())), [m("div", g({
|
|
46
66
|
ref_key: "bubble",
|
|
47
|
-
ref:
|
|
48
|
-
},
|
|
49
|
-
class:
|
|
67
|
+
ref: F
|
|
68
|
+
}, R.value.getContentProps(), {
|
|
69
|
+
class: C(e).bubble,
|
|
50
70
|
style: { "--radix-tooltip-content-available-width": "var(--available-width)" },
|
|
51
71
|
hidden: void 0,
|
|
52
|
-
"data-state":
|
|
72
|
+
"data-state": R.value.open ? "delayed-open" : "closed",
|
|
53
73
|
"data-member": "tooltip"
|
|
54
|
-
}),
|
|
74
|
+
}), S(h.content), 17, j)], 16)) : f("", !0)]))], 64));
|
|
55
75
|
}
|
|
56
76
|
});
|
|
57
77
|
//#endregion
|
|
58
|
-
export {
|
|
78
|
+
export { M as default };
|
|
59
79
|
|
|
60
80
|
//# sourceMappingURL=Tooltip.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/overlays/Tooltip.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A short text hint shown on hover or focus (`design/components/tooltip.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tooltip.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onMounted, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/tooltip'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n TOOLTIP_DELAY_MS,\n TOOLTIP_SKIP_DELAY_MS,\n anchorProps,\n syncTriggerAnchor,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tooltip.module.css'\n\nexport type TooltipAlign = NonNullable<TooltipProps['align']>\n\nexport type TooltipSide = NonNullable<TooltipProps['side']>\n\nexport interface TooltipProps {\n align?: 'start' | 'center' | 'end'\n content: string\n /**\n * Opens on mount, for galleries and tests.\n */\n defaultOpen?: boolean\n side?: 'bottom' | 'top' | 'right' | 'left'\n}\n\ndefineOptions({ name: 'Tooltip', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TooltipProps>(), {\n align: 'center',\n defaultOpen: undefined,\n side: 'top',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst anchor = useTemplateRef<HTMLElement>('anchor')\nconst bubble = useTemplateRef<HTMLElement>('bubble')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n defaultOpen: props.defaultOpen,\n openDelay: TOOLTIP_DELAY_MS,\n closeDelay: TOOLTIP_SKIP_DELAY_MS,\n positioning: {\n placement: props.align === 'center' ? props.side : `${props.side}-${props.align}`,\n gutter: 0,\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst present = usePresence(() => api.value.open, bubble, 'tooltip.bubble', {\n get side() {\n return props.side\n },\n get align() {\n return props.align\n },\n})\nconst effect1 = () => {\n syncTriggerAnchor(anchor.value, api.value.getTriggerProps(), api.value.open, false)\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\n</script>\n\n<template>\n <span
|
|
1
|
+
{"version":3,"file":"Tooltip.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/overlays/Tooltip.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A short text hint shown on hover or focus (`design/components/tooltip.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tooltip.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/tooltip'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n TOOLTIP_DELAY_MS,\n TOOLTIP_SKIP_DELAY_MS,\n anchorProps,\n closeTooltipOnScroll,\n holdTooltipFromPointer,\n syncTriggerAnchor,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tooltip.module.css'\n\nexport type TooltipAlign = NonNullable<TooltipProps['align']>\n\nexport type TooltipSide = NonNullable<TooltipProps['side']>\n\nexport interface TooltipProps {\n align?: 'start' | 'center' | 'end'\n content: string\n /**\n * Opens on mount, for galleries and tests.\n */\n defaultOpen?: boolean\n side?: 'bottom' | 'top' | 'right' | 'left'\n}\n\ndefineOptions({ name: 'Tooltip', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TooltipProps>(), {\n align: 'center',\n defaultOpen: undefined,\n side: 'top',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst anchor = useTemplateRef<HTMLElement>('anchor')\nconst bubble = useTemplateRef<HTMLElement>('bubble')\nconst documentDirection = useDirection(() => anchor.value)\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n defaultOpen: props.defaultOpen,\n openDelay: TOOLTIP_DELAY_MS,\n closeDelay: TOOLTIP_SKIP_DELAY_MS,\n closeOnScroll: false,\n positioning: {\n placement: props.align === 'center' ? props.side : `${props.side}-${props.align}`,\n gutter: 0,\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst present = usePresence(() => api.value.open, bubble, 'tooltip.bubble', {\n get side() {\n return props.side\n },\n get align() {\n return props.align\n },\n})\nconst effect1 = () => {\n syncTriggerAnchor(anchor.value, api.value.getTriggerProps(), api.value.open, false)\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = closeTooltipOnScroll(api.value.open ? anchor.value : null, () =>\n api.value.setOpen(false),\n )\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nwatch(() => api.value.open, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = holdTooltipFromPointer(anchor.value)\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nonBeforeUnmount(() => release3?.())\n</script>\n\n<template>\n <span\n ref=\"anchor\"\n v-bind=\"anchorProps(api.getTriggerProps())\"\n :class=\"styles.anchor\"\n data-tooltip-part=\"trigger\"\n >\n <slot />\n </span>\n <Teleport to=\"body\">\n <div v-if=\"present\" v-bind=\"api.getPositionerProps()\">\n <!-- bubble -->\n <div\n ref=\"bubble\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.bubble\"\n :style=\"{ '--radix-tooltip-content-available-width': 'var(--available-width)' }\"\n :hidden=\"undefined\"\n :data-state=\"api.open ? 'delayed-open' : 'closed'\"\n data-member=\"tooltip\"\n >\n {{ content }}\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAyCA,IAAM,IAAQ,GAMR,IAAM,EAAM,GACZ,IAAS,EAA4B,QAAQ,GAC7C,IAAS,EAA4B,QAAQ,GAC7C,IAAoB,QAAmB,EAAO,KAAK,GACnD,IAAU,EACd,EAAI,SACJ,SAAgB;GACd,IAAI;GACJ,KAAK,EAAkB;GACvB,aAAa,EAAM;GACnB,WAAW;GACX,YAAY;GACZ,eAAe;GACf,aAAa;IACX,WAAW,EAAM,UAAU,WAAW,EAAM,OAAO,GAAG,EAAM,KAAK,GAAG,EAAM;IAC1E,QAAQ;GACV;EACF,EAAE,CACJ,GACM,IAAM,QAAe,EAAI,QAAQ,GAAS,CAAc,CAAC,GACzD,IAAU,QAAkB,EAAI,MAAM,MAAM,GAAQ,kBAAkB;GAC1E,IAAI,OAAO;IACT,OAAO,EAAM;GACf;GACA,IAAI,QAAQ;IACV,OAAO,EAAM;GACf;EACF,CAAC,GACK,UAAgB;GACpB,EAAkB,EAAO,OAAO,EAAI,MAAM,gBAAgB,GAAG,EAAI,MAAM,MAAM,EAAK;EACpF;E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,"file":"Tour.js","names":[],"sources":["../../src/overlays/Tour.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Steps pointing at the parts of a page (`design/components/tour.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tour.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n revealTourTarget,\n tourPlacement,\n tourTarget,\n tourTargetRect,\n tourViewport,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tour.module.css'\nimport Button from '../controls/Button.vue'\n\nexport interface TourStep {\n /** The step's key, unique in the tour. */\n id: string\n /** The `name` of the `Tour.Target` the step points at. Without one, the step is drawn centred. */\n target?: string\n title: string\n /** A sentence or two about the target, as text. */\n body: string\n /** The side of the target the panel opens on, when it fits there. */\n side?: 'top' | 'right' | 'bottom' | 'left'\n}\n\nexport interface TourMessages {\n next: string\n previous: string\n /** The last step's forward control, which ends the tour. */\n done: string\n /** The close control's accessible name. */\n close: string\n /** The position line, counting from 1: \"Step 2 of 5\". */\n position: (position: number, count: number) => string\n}\n\nexport type TourEnd = 'finished' | 'dismissed'\n\nexport interface TourProps {\n defaultOpen?: boolean\n defaultStep?: number\n messages?: TourMessages\n open?: boolean\n /**\n * The current step's index, clamped to the steps.\n */\n step?: number\n steps: readonly TourStep[]\n}\n\ndefineOptions({ name: 'Tour', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TourProps>(), {\n defaultOpen: undefined,\n messages: () => ({\n next: 'Next',\n previous: 'Previous',\n done: 'Done',\n close: 'Close',\n position: (position: number, count: number) => `Step ${position} of ${count}`,\n }),\n open: undefined,\n})\nconst emit = defineEmits<{ end: [reason: TourEnd]; stepChange: [index: number] }>()\nconst uid = useId()\nconst uncontrolledStep = ref(props.defaultStep ?? 0)\nconst ending = ref(null as 'finished' | 'dismissed' | null)\nconst geometry = ref(\n null as {\n x: number\n y: number\n placement: 'top' | 'right' | 'bottom' | 'left' | 'center'\n hole: { x: number; y: number; width: number; height: number } | null\n } | null,\n)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst positioner = useTemplateRef<HTMLElement>('positioner')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst count = computed(() => props.steps.length)\nconst index = computed(() =>\n Math.min(Math.max(props.step ?? uncontrolledStep.value, 0), Math.max(count.value - 1, 0)),\n)\nconst current = computed(() => props.steps[index.value])\nconst first = computed(() => index.value === 0)\nconst last = computed(() => index.value === count.value - 1)\nconst drawnAt = computed(() => geometry.value?.placement ?? 'center')\nconst cutOut = computed(() => geometry.value?.hole ?? null)\nconst go = computed(() => (next: number): void => {\n uncontrolledStep.value = next\n emit('stepChange', next)\n})\nconst closed = computed(() => (open: boolean): void => {\n if (open) return\n const reason = ending.value ?? 'dismissed'\n ending.value = null\n emit('end', reason)\n})\nconst place = computed(() => (): void => {\n if (positioner.value == null || current.value === undefined) return\n const rect = tourTargetRect(tourTarget(current.value.target))\n const next = {\n ...tourPlacement(\n rect,\n { width: positioner.value.offsetWidth, height: positioner.value.offsetHeight },\n tourViewport(),\n current.value.side,\n ),\n hole: rect,\n }\n if (JSON.stringify(next) !== JSON.stringify(geometry.value)) geometry.value = next\n})\nconst follow = computed(() => (): (() => void) => {\n const again = (): void => place.value()\n window.addEventListener('resize', again)\n document.addEventListener('scroll', again, { capture: true, passive: true })\n return () => {\n window.removeEventListener('resize', again)\n document.removeEventListener('scroll', again, { capture: true })\n }\n})\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open === undefined ? undefined : props.open && count.value > 0,\n defaultOpen: props.defaultOpen === true && count.value > 0,\n preventScroll: false,\n closeOnInteractOutside: false,\n initialFocusEl: () => panel.value,\n onOpenChange: (details) => {\n closed.value(details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst end = computed(() => (reason: 'finished' | 'dismissed'): void => {\n ending.value = reason\n api.value.setOpen(false)\n})\nconst show = computed(() => (): void => {\n if (!api.value.open || current.value === undefined) return\n revealTourTarget(tourTarget(current.value.target))\n place.value()\n requestAnimationFrame(() => place.value())\n})\nconst scrimPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n scrim,\n 'dialog.scrim',\n)\nconst panelPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n panel,\n 'popover.panel',\n {\n get side() {\n return drawnAt.value === 'center' ? undefined : drawnAt.value\n },\n align: 'center',\n },\n)\nconst effect1 = () => {\n show.value()\n}\nonMounted(effect1)\nwatch(() => [api.value.open, index.value], effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const run = () => {\n place.value()\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [positioner.value]) if (element) resize?.observe(element)\n release2 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect2)\nwatch(() => api.value.open, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = follow.value()\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nwatch(() => api.value.open, effect3, { flush: 'post' })\nonBeforeUnmount(() => release3?.())\nconst effect4 = () => {\n api.value.open && panel.value?.focus()\n}\nwatch(() => index.value, effect4, { flush: 'post' })\nlet release5: (() => void) | undefined\nconst effect5 = () => {\n release5?.()\n const ran = agentMember({\n member: 'Tour',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n step: index.value,\n steps: props.steps.map((each) => ({ id: each.id, title: each.title, body: each.body })),\n }),\n actions: {\n next: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (last.value) throw new Error('On the last step, an agent ends a tour with dismiss.')\n go.value(index.value + 1)\n })(),\n previous: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (first.value) throw new Error('This is the first step.')\n go.value(index.value - 1)\n })(),\n dismiss: () => api.value.open && end.value('dismissed'),\n },\n withholds: () => panel.value,\n })\n release5 = () => {\n ran()\n }\n}\nonMounted(effect5)\nonBeforeUnmount(() => release5?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"[\n cutOut !== null ? styles.spotlight : undefined,\n cutOut === null ? styles.scrim : undefined,\n ]\"\n :style=\"{\n '--pm-tour-hole-x': cutOut === null ? undefined : `${cutOut.x}px`,\n '--pm-tour-hole-y': cutOut === null ? undefined : `${cutOut.y}px`,\n '--pm-tour-hole-width': cutOut === null ? undefined : `${cutOut.width}px`,\n '--pm-tour-hole-height': cutOut === null ? undefined : `${cutOut.height}px`,\n }\"\n :hidden=\"undefined\"\n aria-hidden=\"true\"\n data-tour-part=\"scrim\"\n />\n <div\n v-if=\"panelPresent\"\n ref=\"positioner\"\n v-bind=\"api.getPositionerProps()\"\n :class=\"styles.positioner\"\n :style=\"{ '--pm-tour-x': `${geometry?.x ?? 0}px`, '--pm-tour-y': `${geometry?.y ?? 0}px` }\"\n :data-placement=\"drawnAt\"\n >\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :data-step=\"current?.id\"\n data-member=\"tour\"\n >\n <!-- title -->\n <h2 v-bind=\"api.getTitleProps()\" :class=\"styles.title\">\n {{ current?.title }}\n </h2>\n <!-- description -->\n <div v-bind=\"api.getDescriptionProps()\" :class=\"styles.description\">\n <!-- body -->\n <p :class=\"styles.body\">\n {{ current?.body }}\n </p>\n <!-- position -->\n <p :class=\"styles.position\" data-tour-part=\"position\">\n {{ messages.position(index + 1, count) }}\n </p>\n </div>\n <!-- actions -->\n <div :class=\"styles.actions\" data-tour-part=\"actions\">\n <Button\n v-if=\"!first\"\n variant=\"outline\"\n tone=\"neutral\"\n size=\"sm\"\n :label=\"messages.previous\"\n @click=\"go(index - 1)\"\n />\n <Button\n size=\"sm\"\n :label=\"last ? messages.done : messages.next\"\n @click=\"last ? end('finished') : go(index + 1)\"\n />\n </div>\n <!-- close -->\n <div :class=\"styles.close\" data-tour-part=\"close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"messages.close\"\n @click=\"end('dismissed')\"\n />\n </div>\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Tour.js","names":[],"sources":["../../src/overlays/Tour.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Steps pointing at the parts of a page (`design/components/tour.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tour.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n focusPlace,\n focusReturnTarget,\n revealTourTarget,\n tourPlacement,\n tourTarget,\n tourTargetRect,\n tourViewport,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tour.module.css'\nimport Button from '../controls/Button.vue'\n\nexport interface TourStep {\n /** The step's key, unique in the tour. */\n id: string\n /** The `name` of the `Tour.Target` the step points at. Without one, the step is drawn centred. */\n target?: string\n title: string\n /** A sentence or two about the target, as text. */\n body: string\n /** The side of the target the panel opens on, when it fits there. */\n side?: 'top' | 'right' | 'bottom' | 'left'\n}\n\nexport interface TourMessages {\n next: string\n previous: string\n /** The last step's forward control, which ends the tour. */\n done: string\n /** The close control's accessible name. */\n close: string\n /** The position line, counting from 1: \"Step 2 of 5\". */\n position: (position: number, count: number) => string\n}\n\nexport type TourEnd = 'finished' | 'dismissed'\n\nexport interface TourProps {\n defaultOpen?: boolean\n defaultStep?: number\n messages?: TourMessages\n open?: boolean\n /**\n * The current step's index, clamped to the steps.\n */\n step?: number\n steps: readonly TourStep[]\n}\n\ndefineOptions({ name: 'Tour', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TourProps>(), {\n defaultOpen: undefined,\n messages: () => ({\n next: 'Next',\n previous: 'Previous',\n done: 'Done',\n close: 'Close',\n position: (position: number, count: number) => `Step ${position} of ${count}`,\n }),\n open: undefined,\n})\nconst emit = defineEmits<{ end: [reason: TourEnd]; stepChange: [index: number] }>()\nconst uid = useId()\nconst uncontrolledStep = ref(props.defaultStep ?? 0)\nconst ending = ref(null as 'finished' | 'dismissed' | null)\nconst returnTo = ref(null as ReturnType<typeof focusPlace>)\nconst geometry = ref(\n null as {\n x: number\n y: number\n placement: 'top' | 'right' | 'bottom' | 'left' | 'center'\n hole: { x: number; y: number; width: number; height: number } | null\n } | null,\n)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst positioner = useTemplateRef<HTMLElement>('positioner')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst count = computed(() => props.steps.length)\nconst index = computed(() =>\n Math.min(Math.max(props.step ?? uncontrolledStep.value, 0), Math.max(count.value - 1, 0)),\n)\nconst current = computed(() => props.steps[index.value])\nconst first = computed(() => index.value === 0)\nconst last = computed(() => index.value === count.value - 1)\nconst drawnAt = computed(() => geometry.value?.placement ?? 'center')\nconst cutOut = computed(() => geometry.value?.hole ?? null)\nconst go = computed(() => (next: number): void => {\n uncontrolledStep.value = next\n emit('stepChange', next)\n})\nconst closed = computed(() => (open: boolean): void => {\n if (open) return\n const reason = ending.value ?? 'dismissed'\n ending.value = null\n emit('end', reason)\n})\nconst place = computed(() => (): void => {\n if (positioner.value == null || current.value === undefined) return\n const rect = tourTargetRect(tourTarget(current.value.target))\n const next = {\n ...tourPlacement(\n rect,\n { width: positioner.value.offsetWidth, height: positioner.value.offsetHeight },\n tourViewport(),\n current.value.side,\n ),\n hole: rect,\n }\n if (JSON.stringify(next) !== JSON.stringify(geometry.value)) geometry.value = next\n})\nconst follow = computed(() => (): (() => void) => {\n const again = (): void => place.value()\n window.addEventListener('resize', again)\n document.addEventListener('scroll', again, { capture: true, passive: true })\n return () => {\n window.removeEventListener('resize', again)\n document.removeEventListener('scroll', again, { capture: true })\n }\n})\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open === undefined ? undefined : props.open && count.value > 0,\n defaultOpen: props.defaultOpen === true && count.value > 0,\n preventScroll: false,\n closeOnInteractOutside: false,\n initialFocusEl: () => panel.value,\n finalFocusEl: () => focusReturnTarget(returnTo.value, [panel.value]),\n onOpenChange: (details) => {\n closed.value(details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst end = computed(() => (reason: 'finished' | 'dismissed'): void => {\n ending.value = reason\n api.value.setOpen(false)\n})\nconst show = computed(() => (): void => {\n if (!api.value.open || current.value === undefined) return\n revealTourTarget(tourTarget(current.value.target))\n place.value()\n requestAnimationFrame(() => place.value())\n})\nconst scrimPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n scrim,\n 'dialog.scrim',\n)\nconst panelPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n panel,\n 'popover.panel',\n {\n get side() {\n return drawnAt.value === 'center' ? undefined : drawnAt.value\n },\n align: 'center',\n },\n)\nconst effect1 = () => {\n api.value.open && (returnTo.value = focusPlace(document.activeElement))\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nconst effect2 = () => {\n show.value()\n}\nonMounted(effect2)\nwatch(() => [api.value.open, index.value], effect2, { flush: 'post' })\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const run = () => {\n place.value()\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [positioner.value]) if (element) resize?.observe(element)\n release3 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect3)\nwatch(() => api.value.open, effect3, { flush: 'post' })\nonBeforeUnmount(() => release3?.())\nlet release4: (() => void) | undefined\nconst effect4 = () => {\n release4?.()\n const ran = follow.value()\n release4 = () => {\n ran()\n }\n}\nonMounted(effect4)\nwatch(() => api.value.open, effect4, { flush: 'post' })\nonBeforeUnmount(() => release4?.())\nconst effect5 = () => {\n api.value.open && panel.value?.focus()\n}\nwatch(() => index.value, effect5, { flush: 'post' })\nlet release6: (() => void) | undefined\nconst effect6 = () => {\n release6?.()\n const ran = agentMember({\n member: 'Tour',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n step: index.value,\n steps: props.steps.map((each) => ({ id: each.id, title: each.title, body: each.body })),\n }),\n actions: {\n next: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (last.value) throw new Error('On the last step, an agent ends a tour with dismiss.')\n go.value(index.value + 1)\n })(),\n previous: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (first.value) throw new Error('This is the first step.')\n go.value(index.value - 1)\n })(),\n dismiss: () => api.value.open && end.value('dismissed'),\n },\n withholds: () => panel.value,\n })\n release6 = () => {\n ran()\n }\n}\nonMounted(effect6)\nonBeforeUnmount(() => release6?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"[\n cutOut !== null ? styles.spotlight : undefined,\n cutOut === null ? styles.scrim : undefined,\n ]\"\n :style=\"{\n '--pm-tour-hole-x': cutOut === null ? undefined : `${cutOut.x}px`,\n '--pm-tour-hole-y': cutOut === null ? undefined : `${cutOut.y}px`,\n '--pm-tour-hole-width': cutOut === null ? undefined : `${cutOut.width}px`,\n '--pm-tour-hole-height': cutOut === null ? undefined : `${cutOut.height}px`,\n }\"\n :hidden=\"undefined\"\n aria-hidden=\"true\"\n data-tour-part=\"scrim\"\n />\n <div\n v-if=\"panelPresent\"\n ref=\"positioner\"\n v-bind=\"api.getPositionerProps()\"\n :class=\"styles.positioner\"\n :style=\"{ '--pm-tour-x': `${geometry?.x ?? 0}px`, '--pm-tour-y': `${geometry?.y ?? 0}px` }\"\n :data-placement=\"drawnAt\"\n >\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :data-step=\"current?.id\"\n data-member=\"tour\"\n >\n <!-- title -->\n <h2 v-bind=\"api.getTitleProps()\" :class=\"styles.title\">\n {{ current?.title }}\n </h2>\n <!-- description -->\n <div v-bind=\"api.getDescriptionProps()\" :class=\"styles.description\">\n <!-- body -->\n <p :class=\"styles.body\">\n {{ current?.body }}\n </p>\n <!-- position -->\n <p :class=\"styles.position\" data-tour-part=\"position\">\n {{ messages.position(index + 1, count) }}\n </p>\n </div>\n <!-- actions -->\n <div :class=\"styles.actions\" data-tour-part=\"actions\">\n <Button\n v-if=\"!first\"\n variant=\"outline\"\n tone=\"neutral\"\n size=\"sm\"\n :label=\"messages.previous\"\n @click=\"go(index - 1)\"\n />\n <Button\n size=\"sm\"\n :label=\"last ? messages.done : messages.next\"\n @click=\"last ? end('finished') : go(index + 1)\"\n />\n </div>\n <!-- close -->\n <div :class=\"styles.close\" data-tour-part=\"close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"messages.close\"\n @click=\"end('dismissed')\"\n />\n </div>\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":""}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e from "../controls/Button.js";
|
|
2
2
|
import t from "./tour.module.js";
|
|
3
|
-
import { agentMember as ee,
|
|
4
|
-
import { Teleport as
|
|
5
|
-
import { normalizeProps as
|
|
6
|
-
import { usePresence as
|
|
7
|
-
import * as
|
|
3
|
+
import { agentMember as ee, focusPlace as n, focusReturnTarget as te, revealTourTarget as ne, tourPlacement as re, tourTarget as r, tourTargetRect as ie, tourViewport as i, useDirection as ae } from "@polymorph/vue";
|
|
4
|
+
import { Teleport as oe, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, toDisplayString as v, unref as y, useId as b, useTemplateRef as x, watch as S } from "vue";
|
|
5
|
+
import { normalizeProps as se, useMachine as ce } from "@zag-js/vue";
|
|
6
|
+
import { usePresence as C } from "@polymorph/vue/motion";
|
|
7
|
+
import * as w from "@zag-js/dialog";
|
|
8
8
|
//#region src/overlays/Tour.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var le = ["data-placement"], ue = ["data-step"], T = /*@__PURE__*/ d({
|
|
10
10
|
name: "Tour",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "Tour",
|
|
@@ -31,86 +31,91 @@ var oe = ["data-placement"], se = ["data-step"], E = /*@__PURE__*/ f({
|
|
|
31
31
|
steps: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["end", "stepChange"],
|
|
34
|
-
setup(
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
}),
|
|
34
|
+
setup(d, { emit: T }) {
|
|
35
|
+
let E = d, D = T, de = b(), O = _(E.defaultStep ?? 0), k = _(null), A = _(null), j = _(null), M = x("panel"), N = x("positioner"), P = x("scrim"), F = a(() => E.steps.length), I = a(() => Math.min(Math.max(E.step ?? O.value, 0), Math.max(F.value - 1, 0))), L = a(() => E.steps[I.value]), R = a(() => I.value === 0), z = a(() => I.value === F.value - 1), B = a(() => j.value?.placement ?? "center"), V = a(() => j.value?.hole ?? null), H = a(() => (e) => {
|
|
36
|
+
O.value = e, D("stepChange", e);
|
|
37
|
+
}), fe = a(() => (e) => {
|
|
38
38
|
if (e) return;
|
|
39
|
-
let t =
|
|
40
|
-
|
|
41
|
-
}),
|
|
39
|
+
let t = k.value ?? "dismissed";
|
|
40
|
+
k.value = null, D("end", t);
|
|
41
|
+
}), U = a(() => () => {
|
|
42
42
|
if (N.value == null || L.value === void 0) return;
|
|
43
|
-
let e =
|
|
44
|
-
...
|
|
43
|
+
let e = ie(r(L.value.target)), t = {
|
|
44
|
+
...re(e, {
|
|
45
45
|
width: N.value.offsetWidth,
|
|
46
46
|
height: N.value.offsetHeight
|
|
47
47
|
}, i(), L.value.side),
|
|
48
48
|
hole: e
|
|
49
49
|
};
|
|
50
50
|
JSON.stringify(t) !== JSON.stringify(j.value) && (j.value = t);
|
|
51
|
-
}),
|
|
52
|
-
let e = () =>
|
|
51
|
+
}), pe = a(() => () => {
|
|
52
|
+
let e = () => U.value();
|
|
53
53
|
return window.addEventListener("resize", e), document.addEventListener("scroll", e, {
|
|
54
54
|
capture: !0,
|
|
55
55
|
passive: !0
|
|
56
56
|
}), () => {
|
|
57
57
|
window.removeEventListener("resize", e), document.removeEventListener("scroll", e, { capture: !0 });
|
|
58
58
|
};
|
|
59
|
-
}),
|
|
60
|
-
id:
|
|
61
|
-
dir:
|
|
62
|
-
open:
|
|
63
|
-
defaultOpen:
|
|
59
|
+
}), me = ae(), he = ce(w.machine, a(() => ({
|
|
60
|
+
id: de,
|
|
61
|
+
dir: me.value,
|
|
62
|
+
open: E.open === void 0 ? void 0 : E.open && F.value > 0,
|
|
63
|
+
defaultOpen: E.defaultOpen === !0 && F.value > 0,
|
|
64
64
|
preventScroll: !1,
|
|
65
65
|
closeOnInteractOutside: !1,
|
|
66
66
|
initialFocusEl: () => M.value,
|
|
67
|
+
finalFocusEl: () => te(A.value, [M.value]),
|
|
67
68
|
onOpenChange: (e) => {
|
|
68
|
-
|
|
69
|
+
fe.value(e.open);
|
|
69
70
|
}
|
|
70
|
-
}))),
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
!
|
|
74
|
-
}),
|
|
71
|
+
}))), W = a(() => w.connect(he, se)), G = a(() => (e) => {
|
|
72
|
+
k.value = e, W.value.setOpen(!1);
|
|
73
|
+
}), ge = a(() => () => {
|
|
74
|
+
!W.value.open || L.value === void 0 || (ne(r(L.value.target)), U.value(), requestAnimationFrame(() => U.value()));
|
|
75
|
+
}), _e = C(() => W.value.open && L.value !== void 0, P, "dialog.scrim"), K = C(() => W.value.open && L.value !== void 0, M, "popover.panel", {
|
|
75
76
|
get side() {
|
|
76
77
|
return B.value === "center" ? void 0 : B.value;
|
|
77
78
|
},
|
|
78
79
|
align: "center"
|
|
79
|
-
}),
|
|
80
|
-
|
|
80
|
+
}), q = () => {
|
|
81
|
+
W.value.open && (A.value = n(document.activeElement));
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
h(q), S(() => W.value.open, q, { flush: "post" });
|
|
84
|
+
let J = () => {
|
|
85
|
+
ge.value();
|
|
86
|
+
};
|
|
87
|
+
h(J), S(() => [W.value.open, I.value], J, { flush: "post" });
|
|
83
88
|
let Y, X = () => {
|
|
84
89
|
Y?.();
|
|
85
90
|
let e = () => {
|
|
86
|
-
|
|
91
|
+
U.value();
|
|
87
92
|
}, t = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(e);
|
|
88
93
|
for (let e of [N.value]) e && t?.observe(e);
|
|
89
94
|
Y = () => {
|
|
90
95
|
t?.disconnect();
|
|
91
96
|
}, e();
|
|
92
97
|
};
|
|
93
|
-
|
|
98
|
+
h(X), S(() => W.value.open, X, { flush: "post" }), m(() => Y?.());
|
|
94
99
|
let Z, Q = () => {
|
|
95
100
|
Z?.();
|
|
96
|
-
let e =
|
|
101
|
+
let e = pe.value();
|
|
97
102
|
Z = () => {
|
|
98
103
|
e();
|
|
99
104
|
};
|
|
100
105
|
};
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
h(Q), S(() => W.value.open, Q, { flush: "post" }), m(() => Z?.()), S(() => I.value, () => {
|
|
107
|
+
W.value.open && M.value?.focus();
|
|
103
108
|
}, { flush: "post" });
|
|
104
109
|
let $;
|
|
105
|
-
return
|
|
110
|
+
return h(() => {
|
|
106
111
|
$?.();
|
|
107
112
|
let e = ee({
|
|
108
113
|
member: "Tour",
|
|
109
114
|
element: () => M.value,
|
|
110
115
|
state: () => ({
|
|
111
|
-
open:
|
|
116
|
+
open: W.value.open,
|
|
112
117
|
step: I.value,
|
|
113
|
-
steps:
|
|
118
|
+
steps: E.steps.map((e) => ({
|
|
114
119
|
id: e.id,
|
|
115
120
|
title: e.title,
|
|
116
121
|
body: e.body
|
|
@@ -118,28 +123,28 @@ var oe = ["data-placement"], se = ["data-step"], E = /*@__PURE__*/ f({
|
|
|
118
123
|
}),
|
|
119
124
|
actions: {
|
|
120
125
|
next: () => (() => {
|
|
121
|
-
if (!
|
|
126
|
+
if (!W.value.open) throw Error("The tour is not open.");
|
|
122
127
|
if (z.value) throw Error("On the last step, an agent ends a tour with dismiss.");
|
|
123
128
|
H.value(I.value + 1);
|
|
124
129
|
})(),
|
|
125
130
|
previous: () => (() => {
|
|
126
|
-
if (!
|
|
131
|
+
if (!W.value.open) throw Error("The tour is not open.");
|
|
127
132
|
if (R.value) throw Error("This is the first step.");
|
|
128
133
|
H.value(I.value - 1);
|
|
129
134
|
})(),
|
|
130
|
-
dismiss: () =>
|
|
135
|
+
dismiss: () => W.value.open && G.value("dismissed")
|
|
131
136
|
},
|
|
132
137
|
withholds: () => M.value
|
|
133
138
|
});
|
|
134
139
|
$ = () => {
|
|
135
140
|
e();
|
|
136
141
|
};
|
|
137
|
-
}),
|
|
142
|
+
}), m(() => $?.()), (ee, n) => (g(), o(oe, { to: "body" }, [y(_e) ? (g(), c("div", f({
|
|
138
143
|
key: 0,
|
|
139
144
|
ref_key: "scrim",
|
|
140
145
|
ref: P
|
|
141
|
-
},
|
|
142
|
-
class: [V.value === null ? void 0 :
|
|
146
|
+
}, W.value.getBackdropProps(), {
|
|
147
|
+
class: [V.value === null ? void 0 : y(t).spotlight, V.value === null ? y(t).scrim : void 0],
|
|
143
148
|
style: {
|
|
144
149
|
"--pm-tour-hole-x": V.value === null ? void 0 : `${V.value.x}px`,
|
|
145
150
|
"--pm-tour-hole-y": V.value === null ? void 0 : `${V.value.y}px`,
|
|
@@ -149,62 +154,62 @@ var oe = ["data-placement"], se = ["data-step"], E = /*@__PURE__*/ f({
|
|
|
149
154
|
hidden: void 0,
|
|
150
155
|
"aria-hidden": "true",
|
|
151
156
|
"data-tour-part": "scrim"
|
|
152
|
-
}), null, 16)) :
|
|
157
|
+
}), null, 16)) : s("", !0), y(K) ? (g(), c("div", f({
|
|
153
158
|
key: 1,
|
|
154
159
|
ref_key: "positioner",
|
|
155
160
|
ref: N
|
|
156
|
-
},
|
|
157
|
-
class:
|
|
161
|
+
}, W.value.getPositionerProps(), {
|
|
162
|
+
class: y(t).positioner,
|
|
158
163
|
style: {
|
|
159
164
|
"--pm-tour-x": `${j.value?.x ?? 0}px`,
|
|
160
165
|
"--pm-tour-y": `${j.value?.y ?? 0}px`
|
|
161
166
|
},
|
|
162
167
|
"data-placement": B.value
|
|
163
|
-
}), [
|
|
168
|
+
}), [l("div", f({
|
|
164
169
|
ref_key: "panel",
|
|
165
170
|
ref: M
|
|
166
|
-
},
|
|
167
|
-
class:
|
|
171
|
+
}, W.value.getContentProps(), {
|
|
172
|
+
class: y(t).panel,
|
|
168
173
|
hidden: void 0,
|
|
169
174
|
"data-step": L.value?.id,
|
|
170
175
|
"data-member": "tour"
|
|
171
176
|
}), [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
class:
|
|
177
|
+
l("h2", f(W.value.getTitleProps(), { class: y(t).title }), v(L.value?.title), 17),
|
|
178
|
+
l("div", f(W.value.getDescriptionProps(), { class: y(t).description }), [l("p", { class: p(y(t).body) }, v(L.value?.body), 3), l("p", {
|
|
179
|
+
class: p(y(t).position),
|
|
175
180
|
"data-tour-part": "position"
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
class:
|
|
181
|
+
}, v(d.messages.position(I.value + 1, F.value)), 3)], 16),
|
|
182
|
+
l("div", {
|
|
183
|
+
class: p(y(t).actions),
|
|
179
184
|
"data-tour-part": "actions"
|
|
180
|
-
}, [R.value ?
|
|
185
|
+
}, [R.value ? s("", !0) : (g(), o(e, {
|
|
181
186
|
key: 0,
|
|
182
187
|
variant: "outline",
|
|
183
188
|
tone: "neutral",
|
|
184
189
|
size: "sm",
|
|
185
|
-
label:
|
|
190
|
+
label: d.messages.previous,
|
|
186
191
|
onClick: n[0] ||= (e) => H.value(I.value - 1)
|
|
187
|
-
}, null, 8, ["label"])),
|
|
192
|
+
}, null, 8, ["label"])), u(e, {
|
|
188
193
|
size: "sm",
|
|
189
|
-
label: z.value ?
|
|
190
|
-
onClick: n[1] ||= (e) => z.value ?
|
|
194
|
+
label: z.value ? d.messages.done : d.messages.next,
|
|
195
|
+
onClick: n[1] ||= (e) => z.value ? G.value("finished") : H.value(I.value + 1)
|
|
191
196
|
}, null, 8, ["label"])], 2),
|
|
192
|
-
|
|
193
|
-
class:
|
|
197
|
+
l("div", {
|
|
198
|
+
class: p(y(t).close),
|
|
194
199
|
"data-tour-part": "close"
|
|
195
|
-
}, [
|
|
200
|
+
}, [u(e, {
|
|
196
201
|
variant: "ghost",
|
|
197
202
|
tone: "neutral",
|
|
198
203
|
size: "sm",
|
|
199
204
|
iconOnly: !0,
|
|
200
205
|
icon: "close",
|
|
201
|
-
label:
|
|
202
|
-
onClick: n[2] ||= (e) =>
|
|
206
|
+
label: d.messages.close,
|
|
207
|
+
onClick: n[2] ||= (e) => G.value("dismissed")
|
|
203
208
|
}, null, 8, ["label"])], 2)
|
|
204
|
-
], 16,
|
|
209
|
+
], 16, ue)], 16, le)) : s("", !0)]));
|
|
205
210
|
}
|
|
206
211
|
});
|
|
207
212
|
//#endregion
|
|
208
|
-
export {
|
|
213
|
+
export { T as default };
|
|
209
214
|
|
|
210
215
|
//# sourceMappingURL=Tour.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tour.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/overlays/Tour.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Steps pointing at the parts of a page (`design/components/tour.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tour.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n revealTourTarget,\n tourPlacement,\n tourTarget,\n tourTargetRect,\n tourViewport,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tour.module.css'\nimport Button from '../controls/Button.vue'\n\nexport interface TourStep {\n /** The step's key, unique in the tour. */\n id: string\n /** The `name` of the `Tour.Target` the step points at. Without one, the step is drawn centred. */\n target?: string\n title: string\n /** A sentence or two about the target, as text. */\n body: string\n /** The side of the target the panel opens on, when it fits there. */\n side?: 'top' | 'right' | 'bottom' | 'left'\n}\n\nexport interface TourMessages {\n next: string\n previous: string\n /** The last step's forward control, which ends the tour. */\n done: string\n /** The close control's accessible name. */\n close: string\n /** The position line, counting from 1: \"Step 2 of 5\". */\n position: (position: number, count: number) => string\n}\n\nexport type TourEnd = 'finished' | 'dismissed'\n\nexport interface TourProps {\n defaultOpen?: boolean\n defaultStep?: number\n messages?: TourMessages\n open?: boolean\n /**\n * The current step's index, clamped to the steps.\n */\n step?: number\n steps: readonly TourStep[]\n}\n\ndefineOptions({ name: 'Tour', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TourProps>(), {\n defaultOpen: undefined,\n messages: () => ({\n next: 'Next',\n previous: 'Previous',\n done: 'Done',\n close: 'Close',\n position: (position: number, count: number) => `Step ${position} of ${count}`,\n }),\n open: undefined,\n})\nconst emit = defineEmits<{ end: [reason: TourEnd]; stepChange: [index: number] }>()\nconst uid = useId()\nconst uncontrolledStep = ref(props.defaultStep ?? 0)\nconst ending = ref(null as 'finished' | 'dismissed' | null)\nconst geometry = ref(\n null as {\n x: number\n y: number\n placement: 'top' | 'right' | 'bottom' | 'left' | 'center'\n hole: { x: number; y: number; width: number; height: number } | null\n } | null,\n)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst positioner = useTemplateRef<HTMLElement>('positioner')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst count = computed(() => props.steps.length)\nconst index = computed(() =>\n Math.min(Math.max(props.step ?? uncontrolledStep.value, 0), Math.max(count.value - 1, 0)),\n)\nconst current = computed(() => props.steps[index.value])\nconst first = computed(() => index.value === 0)\nconst last = computed(() => index.value === count.value - 1)\nconst drawnAt = computed(() => geometry.value?.placement ?? 'center')\nconst cutOut = computed(() => geometry.value?.hole ?? null)\nconst go = computed(() => (next: number): void => {\n uncontrolledStep.value = next\n emit('stepChange', next)\n})\nconst closed = computed(() => (open: boolean): void => {\n if (open) return\n const reason = ending.value ?? 'dismissed'\n ending.value = null\n emit('end', reason)\n})\nconst place = computed(() => (): void => {\n if (positioner.value == null || current.value === undefined) return\n const rect = tourTargetRect(tourTarget(current.value.target))\n const next = {\n ...tourPlacement(\n rect,\n { width: positioner.value.offsetWidth, height: positioner.value.offsetHeight },\n tourViewport(),\n current.value.side,\n ),\n hole: rect,\n }\n if (JSON.stringify(next) !== JSON.stringify(geometry.value)) geometry.value = next\n})\nconst follow = computed(() => (): (() => void) => {\n const again = (): void => place.value()\n window.addEventListener('resize', again)\n document.addEventListener('scroll', again, { capture: true, passive: true })\n return () => {\n window.removeEventListener('resize', again)\n document.removeEventListener('scroll', again, { capture: true })\n }\n})\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open === undefined ? undefined : props.open && count.value > 0,\n defaultOpen: props.defaultOpen === true && count.value > 0,\n preventScroll: false,\n closeOnInteractOutside: false,\n initialFocusEl: () => panel.value,\n onOpenChange: (details) => {\n closed.value(details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst end = computed(() => (reason: 'finished' | 'dismissed'): void => {\n ending.value = reason\n api.value.setOpen(false)\n})\nconst show = computed(() => (): void => {\n if (!api.value.open || current.value === undefined) return\n revealTourTarget(tourTarget(current.value.target))\n place.value()\n requestAnimationFrame(() => place.value())\n})\nconst scrimPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n scrim,\n 'dialog.scrim',\n)\nconst panelPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n panel,\n 'popover.panel',\n {\n get side() {\n return drawnAt.value === 'center' ? undefined : drawnAt.value\n },\n align: 'center',\n },\n)\nconst effect1 = () => {\n show.value()\n}\nonMounted(effect1)\nwatch(() => [api.value.open, index.value], effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const run = () => {\n place.value()\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [positioner.value]) if (element) resize?.observe(element)\n release2 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect2)\nwatch(() => api.value.open, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = follow.value()\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nwatch(() => api.value.open, effect3, { flush: 'post' })\nonBeforeUnmount(() => release3?.())\nconst effect4 = () => {\n api.value.open && panel.value?.focus()\n}\nwatch(() => index.value, effect4, { flush: 'post' })\nlet release5: (() => void) | undefined\nconst effect5 = () => {\n release5?.()\n const ran = agentMember({\n member: 'Tour',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n step: index.value,\n steps: props.steps.map((each) => ({ id: each.id, title: each.title, body: each.body })),\n }),\n actions: {\n next: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (last.value) throw new Error('On the last step, an agent ends a tour with dismiss.')\n go.value(index.value + 1)\n })(),\n previous: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (first.value) throw new Error('This is the first step.')\n go.value(index.value - 1)\n })(),\n dismiss: () => api.value.open && end.value('dismissed'),\n },\n withholds: () => panel.value,\n })\n release5 = () => {\n ran()\n }\n}\nonMounted(effect5)\nonBeforeUnmount(() => release5?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"[\n cutOut !== null ? styles.spotlight : undefined,\n cutOut === null ? styles.scrim : undefined,\n ]\"\n :style=\"{\n '--pm-tour-hole-x': cutOut === null ? undefined : `${cutOut.x}px`,\n '--pm-tour-hole-y': cutOut === null ? undefined : `${cutOut.y}px`,\n '--pm-tour-hole-width': cutOut === null ? undefined : `${cutOut.width}px`,\n '--pm-tour-hole-height': cutOut === null ? undefined : `${cutOut.height}px`,\n }\"\n :hidden=\"undefined\"\n aria-hidden=\"true\"\n data-tour-part=\"scrim\"\n />\n <div\n v-if=\"panelPresent\"\n ref=\"positioner\"\n v-bind=\"api.getPositionerProps()\"\n :class=\"styles.positioner\"\n :style=\"{ '--pm-tour-x': `${geometry?.x ?? 0}px`, '--pm-tour-y': `${geometry?.y ?? 0}px` }\"\n :data-placement=\"drawnAt\"\n >\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :data-step=\"current?.id\"\n data-member=\"tour\"\n >\n <!-- title -->\n <h2 v-bind=\"api.getTitleProps()\" :class=\"styles.title\">\n {{ current?.title }}\n </h2>\n <!-- description -->\n <div v-bind=\"api.getDescriptionProps()\" :class=\"styles.description\">\n <!-- body -->\n <p :class=\"styles.body\">\n {{ current?.body }}\n </p>\n <!-- position -->\n <p :class=\"styles.position\" data-tour-part=\"position\">\n {{ messages.position(index + 1, count) }}\n </p>\n </div>\n <!-- actions -->\n <div :class=\"styles.actions\" data-tour-part=\"actions\">\n <Button\n v-if=\"!first\"\n variant=\"outline\"\n tone=\"neutral\"\n size=\"sm\"\n :label=\"messages.previous\"\n @click=\"go(index - 1)\"\n />\n <Button\n size=\"sm\"\n :label=\"last ? messages.done : messages.next\"\n @click=\"last ? end('finished') : go(index + 1)\"\n />\n </div>\n <!-- close -->\n <div :class=\"styles.close\" data-tour-part=\"close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"messages.close\"\n @click=\"end('dismissed')\"\n />\n </div>\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEA,IAAM,IAAQ,GAWR,IAAO,GACP,KAAM,GAAM,GACZ,IAAmB,EAAI,EAAM,eAAe,CAAC,GAC7C,IAAS,EAAI,IAAuC,GACpD,IAAW,EACf,IAMF,GACM,IAAQ,EAA4B,OAAO,GAC3C,IAAa,EAA4B,YAAY,GACrD,IAAQ,EAA4B,OAAO,GAC3C,IAAQ,QAAe,EAAM,MAAM,MAAM,GACzC,IAAQ,QACZ,KAAK,IAAI,KAAK,IAAI,EAAM,QAAQ,EAAiB,OAAO,CAAC,GAAG,KAAK,IAAI,EAAM,QAAQ,GAAG,CAAC,CAAC,CAC1F,GACM,IAAU,QAAe,EAAM,MAAM,EAAM,MAAM,GACjD,IAAQ,QAAe,EAAM,UAAU,CAAC,GACxC,IAAO,QAAe,EAAM,UAAU,EAAM,QAAQ,CAAC,GACrD,IAAU,QAAe,EAAS,OAAO,aAAa,QAAQ,GAC9D,IAAS,QAAe,EAAS,OAAO,QAAQ,IAAI,GACpD,IAAK,SAAgB,MAAuB;GAEhD,AADA,EAAiB,QAAQ,GACzB,EAAK,cAAc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;OAEjC,EAAA,qBAAA,EAAA,GADT,EAOE,GAAA;;IALA,SAAQ;IACR,MAAK;IACL,MAAK;IACJ,OAAO,EAAA,SAAS;IAChB,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,MAAG,EAAA,QAAK,CAAA;4BAElB,EAIE,GAAA;IAHA,MAAK;IACJ,OAAO,EAAA,QAAO,EAAA,SAAS,OAAO,EAAA,SAAS;IACvC,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,QAAO,EAAA,MAAG,UAAA,IAAe,EAAA,MAAG,EAAA,QAAK,CAAA;;GAI7C,EAUM,OAAA;IAVA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,KAAK;IAAE,kBAAe;OACxC,EAQE,GAAA;IAPA,SAAQ;IACR,MAAK;IACL,MAAK;IACJ,UAAU;IACX,MAAK;IACJ,OAAO,EAAA,SAAS;IAChB,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,MAAG,WAAA"}
|
|
1
|
+
{"version":3,"file":"Tour.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/overlays/Tour.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Steps pointing at the parts of a page (`design/components/tour.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/tour.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n focusPlace,\n focusReturnTarget,\n revealTourTarget,\n tourPlacement,\n tourTarget,\n tourTargetRect,\n tourViewport,\n useDirection,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/tour.module.css'\nimport Button from '../controls/Button.vue'\n\nexport interface TourStep {\n /** The step's key, unique in the tour. */\n id: string\n /** The `name` of the `Tour.Target` the step points at. Without one, the step is drawn centred. */\n target?: string\n title: string\n /** A sentence or two about the target, as text. */\n body: string\n /** The side of the target the panel opens on, when it fits there. */\n side?: 'top' | 'right' | 'bottom' | 'left'\n}\n\nexport interface TourMessages {\n next: string\n previous: string\n /** The last step's forward control, which ends the tour. */\n done: string\n /** The close control's accessible name. */\n close: string\n /** The position line, counting from 1: \"Step 2 of 5\". */\n position: (position: number, count: number) => string\n}\n\nexport type TourEnd = 'finished' | 'dismissed'\n\nexport interface TourProps {\n defaultOpen?: boolean\n defaultStep?: number\n messages?: TourMessages\n open?: boolean\n /**\n * The current step's index, clamped to the steps.\n */\n step?: number\n steps: readonly TourStep[]\n}\n\ndefineOptions({ name: 'Tour', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<TourProps>(), {\n defaultOpen: undefined,\n messages: () => ({\n next: 'Next',\n previous: 'Previous',\n done: 'Done',\n close: 'Close',\n position: (position: number, count: number) => `Step ${position} of ${count}`,\n }),\n open: undefined,\n})\nconst emit = defineEmits<{ end: [reason: TourEnd]; stepChange: [index: number] }>()\nconst uid = useId()\nconst uncontrolledStep = ref(props.defaultStep ?? 0)\nconst ending = ref(null as 'finished' | 'dismissed' | null)\nconst returnTo = ref(null as ReturnType<typeof focusPlace>)\nconst geometry = ref(\n null as {\n x: number\n y: number\n placement: 'top' | 'right' | 'bottom' | 'left' | 'center'\n hole: { x: number; y: number; width: number; height: number } | null\n } | null,\n)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst positioner = useTemplateRef<HTMLElement>('positioner')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst count = computed(() => props.steps.length)\nconst index = computed(() =>\n Math.min(Math.max(props.step ?? uncontrolledStep.value, 0), Math.max(count.value - 1, 0)),\n)\nconst current = computed(() => props.steps[index.value])\nconst first = computed(() => index.value === 0)\nconst last = computed(() => index.value === count.value - 1)\nconst drawnAt = computed(() => geometry.value?.placement ?? 'center')\nconst cutOut = computed(() => geometry.value?.hole ?? null)\nconst go = computed(() => (next: number): void => {\n uncontrolledStep.value = next\n emit('stepChange', next)\n})\nconst closed = computed(() => (open: boolean): void => {\n if (open) return\n const reason = ending.value ?? 'dismissed'\n ending.value = null\n emit('end', reason)\n})\nconst place = computed(() => (): void => {\n if (positioner.value == null || current.value === undefined) return\n const rect = tourTargetRect(tourTarget(current.value.target))\n const next = {\n ...tourPlacement(\n rect,\n { width: positioner.value.offsetWidth, height: positioner.value.offsetHeight },\n tourViewport(),\n current.value.side,\n ),\n hole: rect,\n }\n if (JSON.stringify(next) !== JSON.stringify(geometry.value)) geometry.value = next\n})\nconst follow = computed(() => (): (() => void) => {\n const again = (): void => place.value()\n window.addEventListener('resize', again)\n document.addEventListener('scroll', again, { capture: true, passive: true })\n return () => {\n window.removeEventListener('resize', again)\n document.removeEventListener('scroll', again, { capture: true })\n }\n})\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open === undefined ? undefined : props.open && count.value > 0,\n defaultOpen: props.defaultOpen === true && count.value > 0,\n preventScroll: false,\n closeOnInteractOutside: false,\n initialFocusEl: () => panel.value,\n finalFocusEl: () => focusReturnTarget(returnTo.value, [panel.value]),\n onOpenChange: (details) => {\n closed.value(details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst end = computed(() => (reason: 'finished' | 'dismissed'): void => {\n ending.value = reason\n api.value.setOpen(false)\n})\nconst show = computed(() => (): void => {\n if (!api.value.open || current.value === undefined) return\n revealTourTarget(tourTarget(current.value.target))\n place.value()\n requestAnimationFrame(() => place.value())\n})\nconst scrimPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n scrim,\n 'dialog.scrim',\n)\nconst panelPresent = usePresence(\n () => api.value.open && current.value !== undefined,\n panel,\n 'popover.panel',\n {\n get side() {\n return drawnAt.value === 'center' ? undefined : drawnAt.value\n },\n align: 'center',\n },\n)\nconst effect1 = () => {\n api.value.open && (returnTo.value = focusPlace(document.activeElement))\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nconst effect2 = () => {\n show.value()\n}\nonMounted(effect2)\nwatch(() => [api.value.open, index.value], effect2, { flush: 'post' })\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const run = () => {\n place.value()\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [positioner.value]) if (element) resize?.observe(element)\n release3 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect3)\nwatch(() => api.value.open, effect3, { flush: 'post' })\nonBeforeUnmount(() => release3?.())\nlet release4: (() => void) | undefined\nconst effect4 = () => {\n release4?.()\n const ran = follow.value()\n release4 = () => {\n ran()\n }\n}\nonMounted(effect4)\nwatch(() => api.value.open, effect4, { flush: 'post' })\nonBeforeUnmount(() => release4?.())\nconst effect5 = () => {\n api.value.open && panel.value?.focus()\n}\nwatch(() => index.value, effect5, { flush: 'post' })\nlet release6: (() => void) | undefined\nconst effect6 = () => {\n release6?.()\n const ran = agentMember({\n member: 'Tour',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n step: index.value,\n steps: props.steps.map((each) => ({ id: each.id, title: each.title, body: each.body })),\n }),\n actions: {\n next: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (last.value) throw new Error('On the last step, an agent ends a tour with dismiss.')\n go.value(index.value + 1)\n })(),\n previous: () =>\n (() => {\n if (!api.value.open) throw new Error('The tour is not open.')\n if (first.value) throw new Error('This is the first step.')\n go.value(index.value - 1)\n })(),\n dismiss: () => api.value.open && end.value('dismissed'),\n },\n withholds: () => panel.value,\n })\n release6 = () => {\n ran()\n }\n}\nonMounted(effect6)\nonBeforeUnmount(() => release6?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"[\n cutOut !== null ? styles.spotlight : undefined,\n cutOut === null ? styles.scrim : undefined,\n ]\"\n :style=\"{\n '--pm-tour-hole-x': cutOut === null ? undefined : `${cutOut.x}px`,\n '--pm-tour-hole-y': cutOut === null ? undefined : `${cutOut.y}px`,\n '--pm-tour-hole-width': cutOut === null ? undefined : `${cutOut.width}px`,\n '--pm-tour-hole-height': cutOut === null ? undefined : `${cutOut.height}px`,\n }\"\n :hidden=\"undefined\"\n aria-hidden=\"true\"\n data-tour-part=\"scrim\"\n />\n <div\n v-if=\"panelPresent\"\n ref=\"positioner\"\n v-bind=\"api.getPositionerProps()\"\n :class=\"styles.positioner\"\n :style=\"{ '--pm-tour-x': `${geometry?.x ?? 0}px`, '--pm-tour-y': `${geometry?.y ?? 0}px` }\"\n :data-placement=\"drawnAt\"\n >\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :data-step=\"current?.id\"\n data-member=\"tour\"\n >\n <!-- title -->\n <h2 v-bind=\"api.getTitleProps()\" :class=\"styles.title\">\n {{ current?.title }}\n </h2>\n <!-- description -->\n <div v-bind=\"api.getDescriptionProps()\" :class=\"styles.description\">\n <!-- body -->\n <p :class=\"styles.body\">\n {{ current?.body }}\n </p>\n <!-- position -->\n <p :class=\"styles.position\" data-tour-part=\"position\">\n {{ messages.position(index + 1, count) }}\n </p>\n </div>\n <!-- actions -->\n <div :class=\"styles.actions\" data-tour-part=\"actions\">\n <Button\n v-if=\"!first\"\n variant=\"outline\"\n tone=\"neutral\"\n size=\"sm\"\n :label=\"messages.previous\"\n @click=\"go(index - 1)\"\n />\n <Button\n size=\"sm\"\n :label=\"last ? messages.done : messages.next\"\n @click=\"last ? end('finished') : go(index + 1)\"\n />\n </div>\n <!-- close -->\n <div :class=\"styles.close\" data-tour-part=\"close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"messages.close\"\n @click=\"end('dismissed')\"\n />\n </div>\n </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AO,EAAA,SAAS;IACvC,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,QAAO,EAAA,MAAG,UAAA,IAAe,EAAA,MAAG,EAAA,QAAK,CAAA;;GAI7C,EAUM,OAAA;IAVA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,KAAK;IAAE,kBAAe;OACxC,EAQE,GAAA;IAPA,SAAQ;IACR,MAAK;IACL,MAAK;IACJ,UAAU;IACX,MAAK;IACJ,OAAO,EAAA,SAAS;IAChB,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,MAAG,WAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._stateFeedback_lkjqs_17{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}._pressable_lkjqs_38{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform var(--pm-motion-duration-control) var(--pm-motion-easing-enter)}._pressable_lkjqs_38:active{transform:scale(var(--pm-motion-press-scale));transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform calc(var(--pm-motion-duration-control) * .5) var(--pm-motion-easing-standard)}@keyframes _pm-spin_lkjqs_1{to{transform:rotate(360deg)}}@keyframes _pm-fade-in_lkjqs_1{0%{opacity:0}}@keyframes _pm-shimmer_lkjqs_1{0%{transform:translate(-100%)}to{transform:translate(100%)}}._spin_lkjqs_83{animation:_pm-spin_lkjqs_1 var(--pm-motion-ambient-spin) linear infinite}._fadeIn_lkjqs_92{animation:_pm-fade-in_lkjqs_1 var(--pm-motion-duration-control) var(--pm-motion-easing-enter) both}._shimmer_lkjqs_98{position:relative;overflow:hidden}._shimmer_lkjqs_98:after{content:"";background:linear-gradient(90deg, var(--pm-bg-subtle) 0%, var(--pm-bg-raised) 50%, var(--pm-bg-subtle) 100%);width:200%;animation:_pm-shimmer_lkjqs_1 var(--pm-motion-ambient-shimmer) linear infinite;position:absolute;inset:0}[data-motion=none] ._spin_lkjqs_83,[data-motion=none] ._fadeIn_lkjqs_92,[data-motion=none] ._shimmer_lkjqs_98:after{animation:none}@media (prefers-reduced-motion:reduce){._spin_lkjqs_83,._fadeIn_lkjqs_92,._shimmer_lkjqs_98:after{animation:none}._pressable_lkjqs_38,._pressable_lkjqs_38:active{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard);transform:none}}.
|
|
1
|
+
._stateFeedback_lkjqs_17{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}._pressable_lkjqs_38{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform var(--pm-motion-duration-control) var(--pm-motion-easing-enter)}._pressable_lkjqs_38:active{transform:scale(var(--pm-motion-press-scale));transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform calc(var(--pm-motion-duration-control) * .5) var(--pm-motion-easing-standard)}@keyframes _pm-spin_lkjqs_1{to{transform:rotate(360deg)}}@keyframes _pm-fade-in_lkjqs_1{0%{opacity:0}}@keyframes _pm-shimmer_lkjqs_1{0%{transform:translate(-100%)}to{transform:translate(100%)}}._spin_lkjqs_83{animation:_pm-spin_lkjqs_1 var(--pm-motion-ambient-spin) linear infinite}._fadeIn_lkjqs_92{animation:_pm-fade-in_lkjqs_1 var(--pm-motion-duration-control) var(--pm-motion-easing-enter) both}._shimmer_lkjqs_98{position:relative;overflow:hidden}._shimmer_lkjqs_98:after{content:"";background:linear-gradient(90deg, var(--pm-bg-subtle) 0%, var(--pm-bg-raised) 50%, var(--pm-bg-subtle) 100%);width:200%;animation:_pm-shimmer_lkjqs_1 var(--pm-motion-ambient-shimmer) linear infinite;position:absolute;inset:0}[data-motion=none] ._spin_lkjqs_83,[data-motion=none] ._fadeIn_lkjqs_92,[data-motion=none] ._shimmer_lkjqs_98:after{animation:none}@media (prefers-reduced-motion:reduce){._spin_lkjqs_83,._fadeIn_lkjqs_92,._shimmer_lkjqs_98:after{animation:none}._pressable_lkjqs_38,._pressable_lkjqs_38:active{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard);transform:none}}._surface_1s81m_14{display:contents}._content_1s81m_18{z-index:var(--pm-z-overlay);min-inline-size:calc(var(--pm-space-10) * 2);max-block-size:var(--radix-context-menu-content-available-height);padding:var(--pm-inset-list);background:var(--pm-bg-overlay);border:1px solid var(--pm-border-subtle);border-radius:var(--pm-radius-surface);box-shadow:var(--pm-shadow-transient);transform-origin:var(--radix-context-menu-content-transform-origin);flex-direction:column;display:flex;overflow:hidden}._content_1s81m_18[data-state=open]{animation:_context-menu-content-enter_1s81m_1 var(--pm-motion-duration-surface) var(--pm-motion-easing-enter)}._content_1s81m_18[data-state=closed]{animation:_context-menu-content-exit_1s81m_1 var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit)}@keyframes _context-menu-content-enter_1s81m_1{0%{opacity:0;transform:scale(.94)}}@keyframes _context-menu-content-exit_1s81m_1{to{opacity:0;transform:scale(.94)}}@media (prefers-reduced-motion:reduce){@keyframes _context-menu-content-enter_1s81m_1{0%{opacity:0}}@keyframes _context-menu-content-exit_1s81m_1{to{opacity:0}}._sheetList_1s81m_79 ._item_1s81m_79,._content_1s81m_18[data-state=open] ._item_1s81m_79{animation:none}}._sheetList_1s81m_79{min-block-size:0;padding:var(--pm-inset-list);outline:none;flex-direction:column;margin:0;padding-block-end:calc(var(--pm-inset-list) + env(safe-area-inset-bottom,0px));list-style:none;display:flex;overflow-y:auto}._item_1s81m_79{gap:var(--pm-space-3);block-size:var(--pm-control-height-sm);padding-inline:var(--pm-space-3);font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-primary);cursor:pointer;border-radius:var(--pm-radius-sm);outline:none;align-items:center;display:flex}._checkbox_1s81m_126{gap:var(--pm-space-2)}._check_1s81m_126{inline-size:var(--pm-icon-size-sm);flex:none;justify-content:center;align-items:center;display:inline-flex}._glyph_1s81m_141{color:var(--pm-text-muted);flex:none;align-items:center;display:inline-flex}._label_1s81m_149{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;overflow:hidden}._hint_1s81m_158{color:var(--pm-text-muted);flex:none;align-items:center;margin-inline-start:auto;display:inline-flex}._item_1s81m_79[data-highlighted] ._hint_1s81m_158{color:inherit}._separator_1s81m_172{margin-block:var(--pm-space-2);border-block-start:1px solid var(--pm-border-subtle)}._groupLabel_1s81m_177{padding:var(--pm-space-2) var(--pm-space-3);font-family:var(--pm-text-xs-family);font-size:var(--pm-text-xs-size);font-weight:var(--pm-text-xs-weight);line-height:var(--pm-text-xs-line-height);letter-spacing:var(--pm-text-xs-tracking);color:var(--pm-text-muted);text-transform:uppercase}._sheetList_1s81m_79 ._item_1s81m_79,._content_1s81m_18[data-state=open] ._item_1s81m_79{animation:_context-menu-item-enter_1s81m_1 var(--pm-motion-duration-control) var(--pm-motion-easing-enter) backwards}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(2),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(2){animation-delay:min(calc(1 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(3),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(3){animation-delay:min(calc(2 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(4),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(4){animation-delay:min(calc(3 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(5),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(5){animation-delay:min(calc(4 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(6),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(6){animation-delay:min(calc(5 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(7),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(7){animation-delay:min(calc(6 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(8),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(8){animation-delay:min(calc(7 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(9),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(9){animation-delay:min(calc(8 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(10),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(10){animation-delay:min(calc(9 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(11),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(11){animation-delay:min(calc(10 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max))}._sheetList_1s81m_79[role=menu] ._item_1s81m_79:nth-child(n+12),._content_1s81m_18[data-state=open] ._item_1s81m_79:nth-child(n+12){animation-delay:var(--pm-motion-stagger-max)}@keyframes _context-menu-item-enter_1s81m_1{0%{opacity:0;transform:translateY(-2px)}}._item_1s81m_79[data-tone=danger]{color:var(--pm-danger-text)}._item_1s81m_79[data-highlighted]{color:var(--pm-accent-text);background:var(--pm-accent-subtle)}._item_1s81m_79[data-tone=danger][data-highlighted]{color:var(--pm-danger-text);background:var(--pm-danger-subtle)}._item_1s81m_79[data-highlighted] ._glyph_1s81m_141,._item_1s81m_79[data-tone=danger] ._glyph_1s81m_141{color:inherit}._item_1s81m_79[data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;background:0 0}._item_1s81m_79[data-disabled] ._glyph_1s81m_141,._item_1s81m_79[data-disabled] ._hint_1s81m_158{color:var(--pm-text-disabled)}._checkbox_1s81m_126[data-state=checked] ._check_1s81m_126{color:var(--pm-accent-text)}._item_1s81m_79[data-disabled] ._check_1s81m_126{color:var(--pm-text-disabled)}@container style(--pm-axis-depth:glass){._content_1s81m_18{background:var(--pm-material-surface);-webkit-backdrop-filter:blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));backdrop-filter:blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate))}}
|