@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,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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,EAAA,SAAS,SAAS,EAAA,QAAK,GAAM,EAAA,KAAK,CAAA,GAAA,CAAA,CAAA,GAAA,EAAA;GAIzC,EAcM,OAAA;IAdA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO;IAAE,kBAAe;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 </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEA,IAAM,IAAQ,GAWR,IAAO,GACP,KAAM,EAAM,GACZ,IAAmB,EAAI,EAAM,eAAe,CAAC,GAC7C,IAAS,EAAI,IAAuC,GACpD,IAAW,EAAI,IAAqC,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,CAAI;EACzB,CAAC,GACK,KAAS,SAAgB,MAAwB;GACrD,IAAI,GAAM;GACV,IAAM,IAAS,EAAO,SAAS;GAE/B,AADA,EAAO,QAAQ,MACf,EAAK,OAAO,CAAM;EACpB,CAAC,GACK,IAAQ,cAA2B;GACvC,IAAI,EAAW,SAAS,QAAQ,EAAQ,UAAU,KAAA,GAAW;GAC7D,IAAM,IAAO,GAAe,EAAW,EAAQ,MAAM,MAAM,CAAC,GACtD,IAAO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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,9 +1,9 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/context-menu.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_surface_1s81m_14", t = "_content_1s81m_18", n = "_sheetList_1s81m_79", r = "_item_1s81m_79 _stateFeedback_lkjqs_17", i = "_checkbox_1s81m_126", a = "_check_1s81m_126 _stateFeedback_lkjqs_17", o = "_glyph_1s81m_141 _stateFeedback_lkjqs_17", s = "_label_1s81m_149", c = "_hint_1s81m_158 _stateFeedback_lkjqs_17", l = "_separator_1s81m_172", u = "_groupLabel_1s81m_177", d = {
|
|
3
3
|
surface: e,
|
|
4
4
|
content: t,
|
|
5
|
-
"context-menu-content-enter": "_context-menu-content-
|
|
6
|
-
"context-menu-content-exit": "_context-menu-content-
|
|
5
|
+
"context-menu-content-enter": "_context-menu-content-enter_1s81m_1",
|
|
6
|
+
"context-menu-content-exit": "_context-menu-content-exit_1s81m_1",
|
|
7
7
|
sheetList: n,
|
|
8
8
|
item: r,
|
|
9
9
|
checkbox: i,
|
|
@@ -13,7 +13,7 @@ var e = "_surface_1pmcp_14", t = "_content_1pmcp_18", n = "_sheetList_1pmcp_79",
|
|
|
13
13
|
hint: c,
|
|
14
14
|
separator: l,
|
|
15
15
|
groupLabel: u,
|
|
16
|
-
"context-menu-item-enter": "_context-menu-item-
|
|
16
|
+
"context-menu-item-enter": "_context-menu-item-enter_1s81m_1"
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
export { a as check, i as checkbox, t as content, d as default, o as glyph, u as groupLabel, c as hint, r as item, s as label, l as separator, n as sheetList, e as surface };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu.module.js","names":[],"sources":["../../../../recipes/src/overlays/context-menu.module.css"],"sourcesContent":["/* ContextMenu — `design/components/context-menu.md`.\n *\n * Menu's full recipe, restated rather than composed, because the laws check a\n * member's own stylesheet in source (Combobox does the same with Select). The\n * one difference is positioning: the panel anchors to the press point, so\n * there is no `sideOffset` and no trigger border to keep a seam from.\n *\n * The danger tone is quiet, as in Menu: red text on a red wash, never a red\n * fill. The ConfirmDialog carries the strong warning. */\n\n/* The surface is the wrapped child, with no box of its own. The trigger span\n has the gesture handlers but no box, so a wrapped Table.Row still renders as\n a row, and the panel anchors to the press point, not to this element. */\n.surface {\n display: contents;\n}\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` in the stacking order. The popper copies it onto its wrapper\n (menu.module.css explains how). */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-context-menu-content-available-height);\n padding: var(--pm-inset-list);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-context-menu-content-transform-origin);\n}\n\n/* Menu's `scale-fade`, surface class, anchored origin. Here the origin is the\n press point, from the substrate's transform-origin variable. Radix keeps the\n node mounted for the closed animation, so the exit animates. */\n.content[data-state='open'] {\n animation: context-menu-content-enter var(--pm-motion-duration-surface)\n var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: context-menu-content-exit var(--pm-motion-duration-surface-exit)\n var(--pm-motion-easing-exit);\n}\n\n@keyframes context-menu-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes context-menu-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* Reduced-motion projection (`docs/motion.md`): `scale-fade` projects to\n `fade`, and the item cascade projects to presence, because a delay counts as\n motion even when the delayed element does not move. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes context-menu-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes context-menu-content-exit {\n to {\n opacity: 0;\n }\n }\n\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet, below 30rem (the sheet presentation): Menu's sheet form,\n * unchanged. The panel box is the shared anatomy (`sheet.module.css`, used by\n * the sheet partial). The press point no longer affects geometry, because a\n * sheet has no anchor, but the gesture still opens it. This member styles its\n * rows' container inside it with Menu's recipe: a `--pm-space-2` inset, and the\n * sheet presentation's safe-area padding added to the member's edge padding. */\n.sheetList {\n display: flex;\n flex-direction: column;\n min-block-size: 0;\n padding: var(--pm-inset-list);\n padding-block-end: calc(var(--pm-inset-list) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* items — Menu's grammar, unchanged ------------------------------------------ */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n/* The checkbox entry: the item recipe plus Select's check column. It is\n applied with `.item` (the two-class idiom) rather than composed, because the\n registry's extractor reads `composes` as a cross-file graph. */\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n/* Select's check column, unchanged: reserved whether or not this row is\n checked, so labels stay aligned as checks change. */\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.glyph {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n}\n\n.label {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* At the far edge, so hints line up down the panel. A submenu's chevron also\n sits here; a row never has both. */\n.hint {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n margin-inline-start: auto;\n color: var(--pm-text-muted);\n}\n\n/* The hint follows the row's colour, so it stays legible on the highlight. */\n.item[data-highlighted] .hint {\n color: inherit;\n}\n\n.separator {\n margin-block: var(--pm-space-2);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* The `menu.items` cascade: items appear during the panel's enter, each\n delayed by the stagger step and clamped to the ceiling. Temperament changes\n it only through the tokens. It runs on enter only; lists do not reverse it.\n The index steps stop at twelve, and every later item shares the ceiling. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: context-menu-item-enter var(--pm-motion-duration-control) var(--pm-motion-easing-enter)\n backwards;\n}\n\n.sheetList[role='menu'] .item:nth-child(2),\n.content[data-state='open'] .item:nth-child(2) {\n animation-delay: min(calc(1 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(3),\n.content[data-state='open'] .item:nth-child(3) {\n animation-delay: min(calc(2 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(4),\n.content[data-state='open'] .item:nth-child(4) {\n animation-delay: min(calc(3 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(5),\n.content[data-state='open'] .item:nth-child(5) {\n animation-delay: min(calc(4 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(6),\n.content[data-state='open'] .item:nth-child(6) {\n animation-delay: min(calc(5 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(7),\n.content[data-state='open'] .item:nth-child(7) {\n animation-delay: min(calc(6 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(8),\n.content[data-state='open'] .item:nth-child(8) {\n animation-delay: min(calc(7 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(9),\n.content[data-state='open'] .item:nth-child(9) {\n animation-delay: min(calc(8 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(10),\n.content[data-state='open'] .item:nth-child(10) {\n animation-delay: min(calc(9 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(11),\n.content[data-state='open'] .item:nth-child(11) {\n animation-delay: min(calc(10 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(n + 12),\n.content[data-state='open'] .item:nth-child(n + 12) {\n animation-delay: var(--pm-motion-stagger-max);\n}\n\n@keyframes context-menu-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* states — Menu's, unchanged ------------------------------------------------- */\n\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n/* Radix sets `data-highlighted` from both pointer and keyboard: one state\n covers both, with no `:hover` rule. */\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-tone='danger'][data-highlighted] {\n color: var(--pm-danger-text);\n background: var(--pm-danger-subtle);\n}\n\n.item[data-highlighted] .glyph {\n color: inherit;\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n.item[data-disabled] .glyph {\n color: var(--pm-text-disabled);\n}\n\n/* Select's rule, unchanged: the check shows selection in the accent, and the\n label keeps the row's colour. */\n.checkbox[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"context-menu.module.js","names":[],"sources":["../../../../recipes/src/overlays/context-menu.module.css"],"sourcesContent":["/* ContextMenu — `design/components/context-menu.md`.\n *\n * Menu's full recipe, restated rather than composed, because the laws check a\n * member's own stylesheet in source (Combobox does the same with Select). The\n * one difference is positioning: the panel anchors to the press point, so\n * there is no `sideOffset` and no trigger border to keep a seam from.\n *\n * The danger tone is quiet, as in Menu: red text on a red wash, never a red\n * fill. The ConfirmDialog carries the strong warning. */\n\n/* The surface is the wrapped child, with no box of its own. The trigger span\n has the gesture handlers but no box, so a wrapped Table.Row still renders as\n a row, and the panel anchors to the press point, not to this element. */\n.surface {\n display: contents;\n}\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` in the stacking order. The popper copies it onto its wrapper\n (menu.module.css explains how). */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-context-menu-content-available-height);\n padding: var(--pm-inset-list);\n overflow: hidden;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n transform-origin: var(--radix-context-menu-content-transform-origin);\n}\n\n/* Menu's `scale-fade`, surface class, anchored origin. Here the origin is the\n press point, from the substrate's transform-origin variable. Radix keeps the\n node mounted for the closed animation, so the exit animates. */\n.content[data-state='open'] {\n animation: context-menu-content-enter var(--pm-motion-duration-surface)\n var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: context-menu-content-exit var(--pm-motion-duration-surface-exit)\n var(--pm-motion-easing-exit);\n}\n\n@keyframes context-menu-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes context-menu-content-exit {\n to {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n/* Reduced-motion projection (`docs/motion.md`): `scale-fade` projects to\n `fade`, and the item cascade projects to presence, because a delay counts as\n motion even when the delayed element does not move. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes context-menu-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes context-menu-content-exit {\n to {\n opacity: 0;\n }\n }\n\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet, below 30rem (the sheet presentation): Menu's sheet form,\n * unchanged. The panel box is the shared anatomy (`sheet.module.css`, used by\n * the sheet partial). The press point no longer affects geometry, because a\n * sheet has no anchor, but the gesture still opens it. This member styles its\n * rows' container inside it with Menu's recipe: a `--pm-space-2` inset, and the\n * sheet presentation's safe-area padding added to the member's edge padding. */\n.sheetList {\n display: flex;\n flex-direction: column;\n min-block-size: 0;\n padding: var(--pm-inset-list);\n padding-block-end: calc(var(--pm-inset-list) + env(safe-area-inset-bottom, 0px));\n margin: 0;\n overflow-y: auto;\n list-style: none;\n outline: none;\n}\n\n/* items — Menu's grammar, unchanged ------------------------------------------ */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n outline: none;\n}\n\n/* The checkbox entry: the item recipe plus Select's check column. It is\n applied with `.item` (the two-class idiom) rather than composed, because the\n registry's extractor reads `composes` as a cross-file graph. */\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n/* Select's check column, unchanged: reserved whether or not this row is\n checked, so labels stay aligned as checks change. */\n.check {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-icon-size-sm);\n}\n\n.glyph {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n}\n\n.label {\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* At the far edge, so hints line up down the panel. A submenu's chevron also\n sits here; a row never has both. */\n.hint {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n margin-inline-start: auto;\n color: var(--pm-text-muted);\n}\n\n/* The hint follows the row's colour, so it stays legible on the highlight. */\n.item[data-highlighted] .hint {\n color: inherit;\n}\n\n.separator {\n margin-block: var(--pm-space-2);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n.groupLabel {\n padding: var(--pm-space-2) var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n/* The `menu.items` cascade: items appear during the panel's enter, each\n delayed by the stagger step and clamped to the ceiling. Temperament changes\n it only through the tokens. It runs on enter only; lists do not reverse it.\n The index steps stop at twelve, and every later item shares the ceiling. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: context-menu-item-enter var(--pm-motion-duration-control) var(--pm-motion-easing-enter)\n backwards;\n}\n\n.sheetList[role='menu'] .item:nth-child(2),\n.content[data-state='open'] .item:nth-child(2) {\n animation-delay: min(calc(1 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(3),\n.content[data-state='open'] .item:nth-child(3) {\n animation-delay: min(calc(2 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(4),\n.content[data-state='open'] .item:nth-child(4) {\n animation-delay: min(calc(3 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(5),\n.content[data-state='open'] .item:nth-child(5) {\n animation-delay: min(calc(4 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(6),\n.content[data-state='open'] .item:nth-child(6) {\n animation-delay: min(calc(5 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(7),\n.content[data-state='open'] .item:nth-child(7) {\n animation-delay: min(calc(6 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(8),\n.content[data-state='open'] .item:nth-child(8) {\n animation-delay: min(calc(7 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(9),\n.content[data-state='open'] .item:nth-child(9) {\n animation-delay: min(calc(8 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(10),\n.content[data-state='open'] .item:nth-child(10) {\n animation-delay: min(calc(9 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(11),\n.content[data-state='open'] .item:nth-child(11) {\n animation-delay: min(calc(10 * var(--pm-motion-stagger-step)), var(--pm-motion-stagger-max));\n}\n\n.sheetList[role='menu'] .item:nth-child(n + 12),\n.content[data-state='open'] .item:nth-child(n + 12) {\n animation-delay: var(--pm-motion-stagger-max);\n}\n\n@keyframes context-menu-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* states — Menu's, unchanged ------------------------------------------------- */\n\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n/* Radix sets `data-highlighted` from both pointer and keyboard: one state\n covers both, with no `:hover` rule. */\n.item[data-highlighted] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n.item[data-tone='danger'][data-highlighted] {\n color: var(--pm-danger-text);\n background: var(--pm-danger-subtle);\n}\n\n/* A danger row's glyph takes the row's danger text, as a highlighted row's takes the accent. */\n.item[data-highlighted] .glyph,\n.item[data-tone='danger'] .glyph {\n color: inherit;\n}\n\n.item[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n background: transparent;\n}\n\n/* The glyph and a submenu's chevron fade with the label. */\n.item[data-disabled] .glyph,\n.item[data-disabled] .hint {\n color: var(--pm-text-disabled);\n}\n\n/* Select's rule, unchanged: the check shows selection in the accent, and the\n label keeps the row's colour. */\n.checkbox[data-state='checked'] .check {\n color: var(--pm-accent-text);\n}\n\n/* A checked entry that is disabled fades its check with its label. */\n.item[data-disabled] .check {\n color: var(--pm-text-disabled);\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .content {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/dialog.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_scrim_17h7q_16", t = "_positioner_17h7q_25", n = "_panel_17h7q_48", r = "_title_17h7q_82", i = "_description_17h7q_92", a = "_body_17h7q_112", o = "_footer_17h7q_122", s = "_close_17h7q_129", c = "_sheetPositioner_17h7q_164 _positioner_angi5_39", l = "_sheetPanel_17h7q_168 _panel_angi5_58", u = {
|
|
3
3
|
scrim: e,
|
|
4
4
|
positioner: t,
|
|
5
5
|
panel: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.module.js","names":[],"sources":["../../../../recipes/src/overlays/dialog.module.css"],"sourcesContent":["/* Dialog — `design/components/dialog.md`.\n *\n * The motion engine animates this member, not this file. The scrim fades and\n * the panel scale-fades from its trigger, both through `MotionSurface`, because\n * an exit that can be interrupted needs presence coordination and CSS cannot\n * keep a leaving node mounted.\n *\n * CSS handles what motion must not touch: the panel's box, and the rule that a\n * leaving surface stops taking clicks. That rule applies the motion law\n * \"motion never blocks input\" (`docs/motion.md`): an overlay that is closing\n * must not capture the next click. */\n\n/* `overlay` in the stacking order: every portalled overlay surface uses one\n layer, above shell chrome and below toasts. Drawer composes this scrim and\n gets the layer with it. */\n.scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n background: var(--pm-bg-scrim);\n}\n\n/* Fills the viewport, centres the panel, and takes no pointer events itself,\n so a click that misses the panel lands on the scrim and dismisses. */\n.positioner {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n display: grid;\n\n /* One explicit track. An implicit `auto` track is sized by the panel's\n intrinsic size, so content wider than the window would widen the track and\n push the whole dialog, close button included, off the edge with no way to\n scroll back. `minmax(0, 1fr)` makes the track the window width, which is\n the only width an overlay has. */\n grid-template-columns: minmax(0, 1fr);\n\n /* One explicit row, for the same reason on the other axis. An implicit `auto`\n row grows to the panel's content, so a full-screen panel stretched into it\n is as tall as a long body and runs past the bottom of the window, and the\n body never has to scroll. `minmax(0, 1fr)` makes the row the window\n height. */\n grid-template-rows: minmax(0, 1fr);\n place-items: center;\n pointer-events: none;\n}\n\n.panel {\n position: relative;\n display: flex;\n flex-direction: column;\n inline-size: min(calc(var(--pm-space-10) * 5), calc(100vw - var(--pm-space-7) * 2));\n\n /* The max-height calculation uses `dvh` (dialog.md's size cell). On phones\n `100vh` includes the collapsed browser chrome, so a card capped against it\n puts its footer behind the URL bar (`docs/layout.md`); `dvh` tracks the\n live viewport. The `vh` base is here and the `dvh` override is in the\n `@supports` block after this rule, because a dedupe minifier deletes a\n same-property pair. */\n max-block-size: calc(100vh - var(--pm-space-8) * 2);\n padding: var(--pm-inset-surface);\n\n /* The body is the part that scrolls, and it shrinks first. The panel scrolls\n only when the parts that do not shrink, the title, the description and the\n footer, are taller than the panel by themselves: a long description, or\n large text in a short window. Every part then stays in reach instead of\n running past the panel's edge. */\n overflow-y: auto;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n}\n\n@supports (height: 1dvh) {\n .panel {\n max-block-size: calc(100dvh - var(--pm-space-8) * 2);\n }\n}\n\n.title {\n padding-inline-end: var(--pm-space-8);\n font-family: var(--pm-text-xl-family);\n font-size: var(--pm-text-xl-size);\n font-weight: var(--pm-text-xl-weight);\n line-height: var(--pm-text-xl-line-height);\n letter-spacing: var(--pm-text-xl-tracking);\n color: var(--pm-text-primary);\n}\n\n.description {\n margin-block-start: var(--pm-space-2);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The only scrolling region, so the title and the actions stay in place while a\n long body scrolls. `min-block-size: 0` lets it shrink inside the flex column\n instead of pushing the panel past its max height. */\n.body {\n min-block-size: 0;\n margin-block-start: var(--pm-space-5);\n overflow-y: auto;\n}\n\n.footer {\n display: flex;\n gap: var(--pm-space-3);\n justify-content: flex-end;\n margin-block-start: var(--pm-space-6);\n}\n\n.close {\n position: absolute;\n inset-block-start: var(--pm-space-4);\n inset-inline-end: var(--pm-space-4);\n}\n\n/* sizes — scaled by density on purpose, so a comfortable theme gets roomier\n dialogs, as it does everything else. */\n\n.panel[data-size='sm'] {\n inline-size: min(calc(var(--pm-space-10) * 4), calc(100vw - var(--pm-space-7) * 2));\n}\n\n.panel[data-size='lg'] {\n inline-size: min(calc(var(--pm-space-10) * 7), calc(100vw - var(--pm-space-7) * 2));\n}\n\n/* The bottom sheet (`presentation=\"sheet\"`) ----------------------------------\n *\n * The sheet presentation's anatomy (`design/components/README.md`), composed\n * from `sheet.module.css`, so the shared surface is defined once. These classes\n * replace `.panel` and `.positioner` entirely in sheet form (the component\n * swaps them below `30rem` when `'sheet'` is chosen). That also keeps the\n * `[data-size]` width rules and the full-screen block below from reaching the\n * sheet: they select `.panel`, and a sheet-form panel does not have it. `size`\n * has no visible effect below the threshold, because a sheet is as tall as its\n * content, not as wide as a card. The attribute stays on the panel, because it\n * is still what the caller asked for.\n *\n * The member's own parts stay inside the sheet: padding `--pm-space-6`, the\n * scrolling body, the close control and the footer. The safe-area padding is\n * the sheet presentation's: added to this member's edge padding, and zero where\n * there is no notch, because a footer under the home indicator is hidden\n * content (`docs/layout.md`). */\n\n.sheetPositioner {\n composes: positioner from './sheet.module.css';\n}\n\n.sheetPanel {\n composes: panel from './sheet.module.css';\n\n /* The close button's inset anchor, the same as the card's. */\n position: relative;\n padding: var(--pm-inset-surface);\n padding-block-end: calc(var(--pm-inset-surface) + env(safe-area-inset-bottom, 0px));\n\n /* The card's rule: the body scrolls, and the sheet itself scrolls only when\n its title, description and footer alone are taller than its cap. */\n overflow-y: auto;\n}\n\n/* The sheet ------------------------------------------------------------------\n *\n * Below `30rem` the panel is no longer a card in the middle of the screen; it\n * fills the screen. At that width a centred dialog would have only a thin\n * border of scrim around it, and the side padding would take space the content\n * needs.\n *\n * This uses `@media`, the one exemption from container-first responsiveness,\n * with its reasoning in `docs/layout.md`. Every other member measures its\n * container, because a Grid in a drawer and a Grid on a page have different\n * widths at the same moment. An overlay has no such ambiguity: it is portalled\n * to the document, positioned `fixed`, and its container is the viewport.\n * There is no box between this panel and the window, so querying the window\n * queries its only container. Overlays are shell-class, and the shell owns the\n * viewport.\n *\n * `30rem` is a rem literal, like the shell's `48rem`. A breakpoint is geometry,\n * not theme. Scaling it with density would turn a dialog into a sheet for a\n * reader who only changed how tight their controls are.\n *\n * All three size selectors are listed, because `[data-size]` outranks the bare\n * `.panel` and would otherwise reapply a width inside the sheet rule. The sizes\n * apply to a dialog; a full-screen panel has no small, medium or large form. */\n@media (width < 30rem) {\n .panel,\n .panel[data-size='sm'],\n .panel[data-size='lg'] {\n /* Stretched to fill the positioner rather than set to 100% of it, because\n of the panel's padding. A percentage sizes the content box, so a padded\n panel at 100% is the window plus its inset. It overflows on both sides,\n and the close button falls off. Stretching fills the area correctly under\n either box model. */\n place-self: stretch;\n inline-size: auto;\n block-size: auto;\n max-block-size: none;\n\n /* No rounded corners: every edge of the panel is now an edge of the screen,\n and a radius there would cut a curve out of the display. The border is\n removed for the same reason, because it would draw a hairline box around\n the whole window. */\n border: 0;\n border-radius: 0;\n\n /* In the full-screen form the panel's block padding clears the notch: it is\n added to the padding, and zero where there is no notch. Every edge of the\n panel is an edge of the display here, and a footer under the home\n indicator is hidden content (`docs/layout.md`). */\n padding-block: calc(var(--pm-space-6) + env(safe-area-inset-top, 0px))\n calc(var(--pm-space-6) + env(safe-area-inset-bottom, 0px));\n }\n}\n\n/* Radix focuses the panel itself when it contains nothing focusable. A ring\n around a whole modal adds no information. The ring belongs on the control the\n reader will use, and every such control composes the focus convention. This\n is the standard exception for a programmatically focused `tabindex=\"-1\"`\n container. It covers both forms, because the sheet panel is the same\n programmatic target. */\n.panel:focus-visible,\n.sheetPanel:focus-visible {\n outline: none;\n}\n\n/* A closing surface is no longer a click target. Both parts, because the scrim\n is the dismiss surface and the panel holds the content. */\n.scrim[data-state='closed'],\n.panel[data-state='closed'] {\n pointer-events: none;\n}\n\n/* While open, the panel takes clicks even though its positioner does not. This\n follows the closed rule so the cascade reads in the order the states occur. */\n.panel[data-state='open'] {\n pointer-events: auto;\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .panel {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"dialog.module.js","names":[],"sources":["../../../../recipes/src/overlays/dialog.module.css"],"sourcesContent":["/* Dialog — `design/components/dialog.md`.\n *\n * The motion engine animates this member, not this file. The scrim fades and\n * the panel scale-fades from its trigger, both through `MotionSurface`, because\n * an exit that can be interrupted needs presence coordination and CSS cannot\n * keep a leaving node mounted.\n *\n * CSS handles what motion must not touch: the panel's box, and the rule that a\n * leaving surface stops taking clicks. That rule applies the motion law\n * \"motion never blocks input\" (`docs/motion.md`): an overlay that is closing\n * must not capture the next click. */\n\n/* `overlay` in the stacking order: every portalled overlay surface uses one\n layer, above shell chrome and below toasts. Drawer composes this scrim and\n gets the layer with it. */\n.scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n background: var(--pm-bg-scrim);\n}\n\n/* Fills the viewport, centres the panel, and takes no pointer events itself,\n so a click that misses the panel lands on the scrim and dismisses. */\n.positioner {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n display: grid;\n\n /* One explicit track. An implicit `auto` track is sized by the panel's\n intrinsic size, so content wider than the window would widen the track and\n push the whole dialog, close button included, off the edge with no way to\n scroll back. `minmax(0, 1fr)` makes the track the window width, which is\n the only width an overlay has. */\n grid-template-columns: minmax(0, 1fr);\n\n /* One explicit row, for the same reason on the other axis. An implicit `auto`\n row grows to the panel's content, so a full-screen panel stretched into it\n is as tall as a long body and runs past the bottom of the window, and the\n body never has to scroll. `minmax(0, 1fr)` makes the row the window\n height. */\n grid-template-rows: minmax(0, 1fr);\n place-items: center;\n pointer-events: none;\n}\n\n.panel {\n position: relative;\n display: flex;\n flex-direction: column;\n inline-size: min(calc(var(--pm-space-10) * 5), calc(100vw - var(--pm-space-7) * 2));\n\n /* The max-height calculation uses `dvh` (dialog.md's size cell). On phones\n `100vh` includes the collapsed browser chrome, so a card capped against it\n puts its footer behind the URL bar (`docs/layout.md`); `dvh` tracks the\n live viewport. The `vh` base is here and the `dvh` override is in the\n `@supports` block after this rule, because a dedupe minifier deletes a\n same-property pair. */\n max-block-size: calc(100vh - var(--pm-space-8) * 2);\n padding: var(--pm-inset-surface);\n\n /* The body is the part that scrolls, and it shrinks first. The panel scrolls\n only when the parts that do not shrink, the title, the description and the\n footer, are taller than the panel by themselves: a long description, or\n large text in a short window. Every part then stays in reach instead of\n running past the panel's edge. */\n overflow-y: auto;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n}\n\n@supports (height: 1dvh) {\n .panel {\n max-block-size: calc(100dvh - var(--pm-space-8) * 2);\n }\n}\n\n.title {\n padding-inline-end: var(--pm-space-8);\n font-family: var(--pm-text-xl-family);\n font-size: var(--pm-text-xl-size);\n font-weight: var(--pm-text-xl-weight);\n line-height: var(--pm-text-xl-line-height);\n letter-spacing: var(--pm-text-xl-tracking);\n color: var(--pm-text-primary);\n}\n\n.description {\n margin-block-start: var(--pm-space-2);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The only scrolling region, so the title and the actions stay in place while a\n long body scrolls. `min-block-size: 0` lets it shrink inside the flex column\n instead of pushing the panel past its max height.\n\n A scroll container cuts what it holds at its padding edge, on both axes, so a\n field against the body's edge would have its seat shadow cut there, which\n squares off its rounded corners. So the body is larger than its content by the\n reach on every side, inside the panel's padding, and its margins take the\n reach back, so the content stays where it is. The reach is `space-2`, which\n the seat shadow of every shipped system stays within. */\n.body {\n --pm-dialog-reach: var(--pm-space-2);\n\n min-block-size: 0;\n margin-block: calc(var(--pm-space-5) - var(--pm-dialog-reach)) calc(var(--pm-dialog-reach) * -1);\n margin-inline: calc(var(--pm-dialog-reach) * -1);\n padding: var(--pm-dialog-reach);\n overflow-y: auto;\n}\n\n.footer {\n display: flex;\n gap: var(--pm-space-3);\n justify-content: flex-end;\n margin-block-start: var(--pm-space-6);\n}\n\n.close {\n position: absolute;\n inset-block-start: var(--pm-space-4);\n inset-inline-end: var(--pm-space-4);\n}\n\n/* sizes — scaled by density on purpose, so a comfortable theme gets roomier\n dialogs, as it does everything else. */\n\n.panel[data-size='sm'] {\n inline-size: min(calc(var(--pm-space-10) * 4), calc(100vw - var(--pm-space-7) * 2));\n}\n\n.panel[data-size='lg'] {\n inline-size: min(calc(var(--pm-space-10) * 7), calc(100vw - var(--pm-space-7) * 2));\n}\n\n/* The bottom sheet (`presentation=\"sheet\"`) ----------------------------------\n *\n * The sheet presentation's anatomy (`design/components/README.md`), composed\n * from `sheet.module.css`, so the shared surface is defined once. These classes\n * replace `.panel` and `.positioner` entirely in sheet form (the component\n * swaps them below `30rem` when `'sheet'` is chosen). That also keeps the\n * `[data-size]` width rules and the full-screen block below from reaching the\n * sheet: they select `.panel`, and a sheet-form panel does not have it. `size`\n * has no visible effect below the threshold, because a sheet is as tall as its\n * content, not as wide as a card. The attribute stays on the panel, because it\n * is still what the caller asked for.\n *\n * The member's own parts stay inside the sheet: padding `--pm-space-6`, the\n * scrolling body, the close control and the footer. The safe-area padding is\n * the sheet presentation's: added to this member's edge padding, and zero where\n * there is no notch, because a footer under the home indicator is hidden\n * content (`docs/layout.md`). */\n\n.sheetPositioner {\n composes: positioner from './sheet.module.css';\n}\n\n.sheetPanel {\n composes: panel from './sheet.module.css';\n\n /* The close button's inset anchor, the same as the card's. */\n position: relative;\n padding: var(--pm-inset-surface);\n padding-block-end: calc(var(--pm-inset-surface) + env(safe-area-inset-bottom, 0px));\n\n /* The card's rule: the body scrolls, and the sheet itself scrolls only when\n its title, description and footer alone are taller than its cap. */\n overflow-y: auto;\n}\n\n/* The sheet ------------------------------------------------------------------\n *\n * Below `30rem` the panel is no longer a card in the middle of the screen; it\n * fills the screen. At that width a centred dialog would have only a thin\n * border of scrim around it, and the side padding would take space the content\n * needs.\n *\n * This uses `@media`, the one exemption from container-first responsiveness,\n * with its reasoning in `docs/layout.md`. Every other member measures its\n * container, because a Grid in a drawer and a Grid on a page have different\n * widths at the same moment. An overlay has no such ambiguity: it is portalled\n * to the document, positioned `fixed`, and its container is the viewport.\n * There is no box between this panel and the window, so querying the window\n * queries its only container. Overlays are shell-class, and the shell owns the\n * viewport.\n *\n * `30rem` is a rem literal, like the shell's `48rem`. A breakpoint is geometry,\n * not theme. Scaling it with density would turn a dialog into a sheet for a\n * reader who only changed how tight their controls are.\n *\n * All three size selectors are listed, because `[data-size]` outranks the bare\n * `.panel` and would otherwise reapply a width inside the sheet rule. The sizes\n * apply to a dialog; a full-screen panel has no small, medium or large form. */\n@media (width < 30rem) {\n .panel,\n .panel[data-size='sm'],\n .panel[data-size='lg'] {\n /* Stretched to fill the positioner rather than set to 100% of it, because\n of the panel's padding. A percentage sizes the content box, so a padded\n panel at 100% is the window plus its inset. It overflows on both sides,\n and the close button falls off. Stretching fills the area correctly under\n either box model. */\n place-self: stretch;\n inline-size: auto;\n block-size: auto;\n max-block-size: none;\n\n /* No rounded corners: every edge of the panel is now an edge of the screen,\n and a radius there would cut a curve out of the display. The border is\n removed for the same reason, because it would draw a hairline box around\n the whole window. */\n border: 0;\n border-radius: 0;\n\n /* In the full-screen form the panel's block padding clears the notch: it is\n added to the padding, and zero where there is no notch. Every edge of the\n panel is an edge of the display here, and a footer under the home\n indicator is hidden content (`docs/layout.md`). */\n padding-block: calc(var(--pm-space-6) + env(safe-area-inset-top, 0px))\n calc(var(--pm-space-6) + env(safe-area-inset-bottom, 0px));\n }\n}\n\n/* Radix focuses the panel itself when it contains nothing focusable. A ring\n around a whole modal adds no information. The ring belongs on the control the\n reader will use, and every such control composes the focus convention. This\n is the standard exception for a programmatically focused `tabindex=\"-1\"`\n container. It covers both forms, because the sheet panel is the same\n programmatic target. */\n.panel:focus-visible,\n.sheetPanel:focus-visible {\n outline: none;\n}\n\n/* A closing surface is no longer a click target. Both parts, because the scrim\n is the dismiss surface and the panel holds the content. */\n.scrim[data-state='closed'],\n.panel[data-state='closed'] {\n pointer-events: none;\n}\n\n/* While open, the panel takes clicks even though its positioner does not. This\n follows the closed rule so the cascade reads in the order the states occur. */\n.panel[data-state='open'] {\n pointer-events: auto;\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .panel {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/drawer.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_scrim_szfim_14 _scrim_17h7q_16", t = "_positioner_szfim_21", n = "_panel_szfim_44", r = "_header_szfim_153", i = "_heading_szfim_161", a = "_close_szfim_166", o = "_title_szfim_170", s = "_description_szfim_179", c = "_body_szfim_199", l = "_footer_szfim_218", u = {
|
|
3
3
|
scrim: e,
|
|
4
4
|
positioner: t,
|
|
5
5
|
panel: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.module.js","names":[],"sources":["../../../../recipes/src/overlays/drawer.module.css"],"sourcesContent":["/* Drawer — `design/components/drawer.md`.\n *\n * The scrim is Dialog's, composed rather than restated, because it is the same\n * surface. The rest is specific to a drawer: an edge-pinned positioner, a panel\n * with free corners rounded and an attached edge, and the flat-overlay rule. A\n * transient surface stands apart from the page in every house system, however\n * flat that system's page is.\n *\n * The motion engine animates the drawer (see Drawer.tsx) with the `sheet`\n * pattern, which needs presence coordination for its exit and a transform that\n * CSS must not also write. This file handles the box, and the rule that a\n * leaving surface stops taking clicks. */\n\n.scrim {\n composes: scrim from './dialog.module.css';\n}\n\n/* Flexbox, so the pinning is logical: `flex-end` on the inline axis is the right\n edge in LTR and the left edge in RTL. That matches `side=\"end\"`, which no\n physical `inset` can express. */\n.positioner {\n position: fixed;\n inset: 0;\n\n /* `overlay` in the stacking order. The scrim above gets the same layer\n through `composes`. */\n z-index: var(--pm-z-overlay);\n display: flex;\n pointer-events: none;\n}\n\n.positioner[data-side='end'] {\n justify-content: flex-end;\n}\n\n.positioner[data-side='start'] {\n justify-content: flex-start;\n}\n\n.positioner[data-side='bottom'] {\n align-items: flex-end;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n max-inline-size: 100%;\n max-block-size: 100%;\n\n /* The body is the part that scrolls, and it shrinks first. The panel scrolls\n only when the header and the footer are taller than the panel by\n themselves: a long description, or large text in a short window. Every\n part then stays in reach instead of running past the panel's edge, as in\n Dialog. */\n overflow-y: auto;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\n border-radius: 0;\n box-shadow: var(--pm-shadow-transient);\n}\n\n/* sides — one attached edge, one border, two free corners ------------------- */\n\n.panel[data-side='end'],\n.panel[data-side='start'] {\n block-size: 100%;\n}\n\n.panel[data-side='end'] {\n border-inline-start: 1px solid var(--pm-border-subtle);\n border-start-start-radius: var(--pm-radius-surface);\n border-end-start-radius: var(--pm-radius-surface);\n}\n\n.panel[data-side='start'] {\n border-inline-end: 1px solid var(--pm-border-subtle);\n border-start-end-radius: var(--pm-radius-surface);\n border-end-end-radius: var(--pm-radius-surface);\n}\n\n.panel[data-side='bottom'] {\n inline-size: 100%;\n\n /* Padding added above the home indicator, zero where there is no notch,\n because a sheet whose last row sits behind the indicator hides content\n (drawer.md's panel cell; `docs/layout.md`). Unitless `0`, as in Command,\n for a bare env() fallback: the lint law rejects `0px` outside calc(), and\n the resolved value is the same. */\n padding-block-end: env(safe-area-inset-bottom, 0);\n border-block-start: 1px solid var(--pm-border-subtle);\n border-start-start-radius: var(--pm-radius-surface);\n border-start-end-radius: var(--pm-radius-surface);\n}\n\n/* sizes — the same space-scale calculation as Dialog's widths, so a comfortable\n theme gets a roomier sheet, as it does everything else. A bottom sheet sizes\n on the other axis: it is as tall as its content, up to a share of the\n viewport, because a sheet that is always 66vh tall is a dialog. */\n\n.panel[data-side='end'][data-size='sm'],\n.panel[data-side='start'][data-size='sm'] {\n inline-size: calc(var(--pm-space-10) * 4);\n}\n\n.panel[data-side='end'][data-size='md'],\n.panel[data-side='start'][data-size='md'] {\n inline-size: calc(var(--pm-space-10) * 5);\n}\n\n.panel[data-side='end'][data-size='lg'],\n.panel[data-side='start'][data-size='lg'] {\n inline-size: calc(var(--pm-space-10) * 6);\n}\n\n/* All bottom sizes are measured in `dvh` (drawer.md's size cell, one cell at\n three sizes). On phones `100vh` includes the collapsed browser chrome, so a\n half-height sheet measured against it sits behind the URL bar\n (`docs/layout.md`). Each rule has the `vh` base, and the `dvh` override is in\n the `@supports` block right after it, because a dedupe minifier deletes a\n same-property pair and would ship the dist with `dvh` only. */\n.panel[data-side='bottom'][data-size='sm'] {\n max-block-size: 50vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='sm'] {\n max-block-size: 50dvh;\n }\n}\n\n.panel[data-side='bottom'][data-size='md'] {\n max-block-size: 66vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='md'] {\n max-block-size: 66dvh;\n }\n}\n\n.panel[data-side='bottom'][data-size='lg'] {\n max-block-size: 80vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='lg'] {\n max-block-size: 80dvh;\n }\n}\n\n/* the three bands ----------------------------------------------------------- */\n\n.header {\n display: flex;\n flex: none;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: var(--pm-space-5) var(--pm-space-5) var(--pm-space-3);\n}\n\n.heading {\n flex: 1;\n min-inline-size: 0;\n}\n\n.close {\n flex: none;\n}\n\n.title {\n font-family: var(--pm-text-xl-family);\n font-size: var(--pm-text-xl-size);\n font-weight: var(--pm-text-xl-weight);\n line-height: var(--pm-text-xl-line-height);\n letter-spacing: var(--pm-text-xl-tracking);\n color: var(--pm-text-primary);\n}\n\n.description {\n margin-block-start: var(--pm-space-2);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The only scrolling region. This is Dialog's rule, and it matters more here: a\n drawer is the tallest surface in the vocabulary, and a header that scrolled\n away would take the ✕ with it. `min-block-size: 0` lets it shrink inside the\n flex column instead of pushing the panel past the viewport. */\n.body {\n min-block-size: 0;\n padding-inline: var(--pm-space-5);\n overflow-y: auto;\n}\n\n.footer {\n display: flex;\n flex: none;\n gap: var(--pm-space-3);\n justify-content: flex-end;\n padding: var(--pm-space-3) var(--pm-space-5) var(--pm-space-5);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* Radix focuses the panel itself when it contains nothing focusable. A ring\n around a whole sheet adds no information. The ring belongs on the control the\n reader will use, and every such control composes the focus convention. */\n.panel:focus-visible {\n outline: none;\n}\n\n/* A closing surface is no longer a click target. This applies the motion law\n \"motion never blocks input\" (`docs/motion.md`): an overlay that is closing\n must not capture the next click. */\n.panel[data-state='closed'] {\n pointer-events: none;\n}\n\n.panel[data-state='open'] {\n pointer-events: auto;\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .panel {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"drawer.module.js","names":[],"sources":["../../../../recipes/src/overlays/drawer.module.css"],"sourcesContent":["/* Drawer — `design/components/drawer.md`.\n *\n * The scrim is Dialog's, composed rather than restated, because it is the same\n * surface. The rest is specific to a drawer: an edge-pinned positioner, a panel\n * with free corners rounded and an attached edge, and the flat-overlay rule. A\n * transient surface stands apart from the page in every house system, however\n * flat that system's page is.\n *\n * The motion engine animates the drawer (see Drawer.tsx) with the `sheet`\n * pattern, which needs presence coordination for its exit and a transform that\n * CSS must not also write. This file handles the box, and the rule that a\n * leaving surface stops taking clicks. */\n\n.scrim {\n composes: scrim from './dialog.module.css';\n}\n\n/* Flexbox, so the pinning is logical: `flex-end` on the inline axis is the right\n edge in LTR and the left edge in RTL. That matches `side=\"end\"`, which no\n physical `inset` can express. */\n.positioner {\n position: fixed;\n inset: 0;\n\n /* `overlay` in the stacking order. The scrim above gets the same layer\n through `composes`. */\n z-index: var(--pm-z-overlay);\n display: flex;\n pointer-events: none;\n}\n\n.positioner[data-side='end'] {\n justify-content: flex-end;\n}\n\n.positioner[data-side='start'] {\n justify-content: flex-start;\n}\n\n.positioner[data-side='bottom'] {\n align-items: flex-end;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n max-inline-size: 100%;\n max-block-size: 100%;\n\n /* The body is the part that scrolls, and it shrinks first. The panel scrolls\n only when the header and the footer are taller than the panel by\n themselves: a long description, or large text in a short window. Every\n part then stays in reach instead of running past the panel's edge, as in\n Dialog. */\n overflow-y: auto;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\n border-radius: 0;\n box-shadow: var(--pm-shadow-transient);\n}\n\n/* sides — one attached edge, one border, two free corners ------------------- */\n\n.panel[data-side='end'],\n.panel[data-side='start'] {\n block-size: 100%;\n}\n\n.panel[data-side='end'] {\n border-inline-start: 1px solid var(--pm-border-subtle);\n border-start-start-radius: var(--pm-radius-surface);\n border-end-start-radius: var(--pm-radius-surface);\n}\n\n.panel[data-side='start'] {\n border-inline-end: 1px solid var(--pm-border-subtle);\n border-start-end-radius: var(--pm-radius-surface);\n border-end-end-radius: var(--pm-radius-surface);\n}\n\n.panel[data-side='bottom'] {\n inline-size: 100%;\n\n /* Padding added above the home indicator, zero where there is no notch,\n because a sheet whose last row sits behind the indicator hides content\n (drawer.md's panel cell; `docs/layout.md`). Unitless `0`, as in Command,\n for a bare env() fallback: the lint law rejects `0px` outside calc(), and\n the resolved value is the same. */\n padding-block-end: env(safe-area-inset-bottom, 0);\n border-block-start: 1px solid var(--pm-border-subtle);\n border-start-start-radius: var(--pm-radius-surface);\n border-start-end-radius: var(--pm-radius-surface);\n}\n\n/* sizes — the same space-scale calculation as Dialog's widths, so a comfortable\n theme gets a roomier sheet, as it does everything else. A bottom sheet sizes\n on the other axis: it is as tall as its content, up to a share of the\n viewport, because a sheet that is always 66vh tall is a dialog. */\n\n.panel[data-side='end'][data-size='sm'],\n.panel[data-side='start'][data-size='sm'] {\n inline-size: calc(var(--pm-space-10) * 4);\n}\n\n.panel[data-side='end'][data-size='md'],\n.panel[data-side='start'][data-size='md'] {\n inline-size: calc(var(--pm-space-10) * 5);\n}\n\n.panel[data-side='end'][data-size='lg'],\n.panel[data-side='start'][data-size='lg'] {\n inline-size: calc(var(--pm-space-10) * 6);\n}\n\n/* All bottom sizes are measured in `dvh` (drawer.md's size cell, one cell at\n three sizes). On phones `100vh` includes the collapsed browser chrome, so a\n half-height sheet measured against it sits behind the URL bar\n (`docs/layout.md`). Each rule has the `vh` base, and the `dvh` override is in\n the `@supports` block right after it, because a dedupe minifier deletes a\n same-property pair and would ship the dist with `dvh` only. */\n.panel[data-side='bottom'][data-size='sm'] {\n max-block-size: 50vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='sm'] {\n max-block-size: 50dvh;\n }\n}\n\n.panel[data-side='bottom'][data-size='md'] {\n max-block-size: 66vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='md'] {\n max-block-size: 66dvh;\n }\n}\n\n.panel[data-side='bottom'][data-size='lg'] {\n max-block-size: 80vh;\n}\n\n@supports (height: 1dvh) {\n .panel[data-side='bottom'][data-size='lg'] {\n max-block-size: 80dvh;\n }\n}\n\n/* the three bands ----------------------------------------------------------- */\n\n.header {\n display: flex;\n flex: none;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: var(--pm-space-5) var(--pm-space-5) var(--pm-space-3);\n}\n\n.heading {\n flex: 1;\n min-inline-size: 0;\n}\n\n.close {\n flex: none;\n}\n\n.title {\n font-family: var(--pm-text-xl-family);\n font-size: var(--pm-text-xl-size);\n font-weight: var(--pm-text-xl-weight);\n line-height: var(--pm-text-xl-line-height);\n letter-spacing: var(--pm-text-xl-tracking);\n color: var(--pm-text-primary);\n}\n\n.description {\n margin-block-start: var(--pm-space-2);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n}\n\n/* The only scrolling region. This is Dialog's rule, and it matters more here: a\n drawer is the tallest surface in the vocabulary, and a header that scrolled\n away would take the ✕ with it. `min-block-size: 0` lets it shrink inside the\n flex column instead of pushing the panel past the viewport.\n\n A scroll container cuts what it holds at its padding edge, on both axes. The\n inline padding gives a field's seat shadow room at the sides. At the top the\n body is larger than its content by Dialog's reach, `space-2`, inside the\n header's bottom padding, and its margin takes the reach back, so the content\n stays where it is. */\n.body {\n --pm-drawer-reach: var(--pm-space-2);\n\n min-block-size: 0;\n margin-block-start: calc(var(--pm-drawer-reach) * -1);\n padding-block-start: var(--pm-drawer-reach);\n padding-inline: var(--pm-space-5);\n overflow-y: auto;\n}\n\n/* The same room at the end, inside the footer's top padding, when a footer\n follows. Without one the body's end is the panel's: taken back by a margin,\n the room would make a long drawer's panel scroll by the reach, and kept, it\n would make a bottom drawer taller by it. */\n.body:not(:last-child) {\n margin-block-end: calc(var(--pm-drawer-reach) * -1);\n padding-block-end: var(--pm-drawer-reach);\n}\n\n.footer {\n display: flex;\n flex: none;\n gap: var(--pm-space-3);\n justify-content: flex-end;\n padding: var(--pm-space-3) var(--pm-space-5) var(--pm-space-5);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* Radix focuses the panel itself when it contains nothing focusable. A ring\n around a whole sheet adds no information. The ring belongs on the control the\n reader will use, and every such control composes the focus convention. */\n.panel:focus-visible {\n outline: none;\n}\n\n/* A closing surface is no longer a click target. This applies the motion law\n \"motion never blocks input\" (`docs/motion.md`): an overlay that is closing\n must not capture the next click. */\n.panel[data-state='closed'] {\n pointer-events: none;\n}\n\n.panel[data-state='open'] {\n pointer-events: auto;\n}\n\n/* Glass (`depth: glass`): the pane uses the surface role at the engine's mix\n (`--pm-material-surface`), and the material provides the lift that the\n overlay stacking order provides elsewhere. The backdrop shows through the\n pane as a blurred, saturated wash, so the surface stands apart by its\n material rather than by a lighter step. The mix is a contrast decision that\n the glass law measures over worst-case backdrops; a recipe only applies it. */\n@container style(--pm-axis-depth: glass) {\n .panel {\n background: var(--pm-material-surface);\n backdrop-filter: blur(var(--pm-material-blur)) saturate(var(--pm-material-saturate));\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/lightbox.module.css
|
|
2
|
-
var e = "_scrim_bomv8_12
|
|
2
|
+
var e = "_scrim_bomv8_12 _scrim_17h7q_16", t = "_positioner_bomv8_22", n = "_panel_bomv8_37", r = "_title_bomv8_63 _visuallyHidden_qxi8b_14", i = "_stage_bomv8_68", a = "_close_bomv8_109", o = "_previous_bomv8_110", s = "_next_bomv8_111", c = "_position_bomv8_22", l = {
|
|
3
3
|
scrim: e,
|
|
4
4
|
positioner: t,
|
|
5
5
|
panel: n,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/menu.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_content_3qn78_11", t = "_sheetList_3qn78_83", n = "_item_3qn78_83 _stateFeedback_lkjqs_17", r = "_checkbox_3qn78_137", i = "_check_3qn78_137 _stateFeedback_lkjqs_17", a = "_glyph_3qn78_152 _stateFeedback_lkjqs_17", o = "_label_3qn78_160", s = "_hint_3qn78_170 _stateFeedback_lkjqs_17", c = "_separator_3qn78_185", l = "_groupLabel_3qn78_190", u = {
|
|
3
3
|
content: e,
|
|
4
|
-
"menu-content-enter": "_menu-content-
|
|
5
|
-
"menu-content-exit": "_menu-content-
|
|
4
|
+
"menu-content-enter": "_menu-content-enter_3qn78_1",
|
|
5
|
+
"menu-content-exit": "_menu-content-exit_3qn78_1",
|
|
6
6
|
sheetList: t,
|
|
7
7
|
item: n,
|
|
8
8
|
checkbox: r,
|
|
@@ -12,7 +12,7 @@ var e = "_content_p5sz5_11", t = "_sheetList_p5sz5_83", n = "_item_p5sz5_83 _sta
|
|
|
12
12
|
hint: s,
|
|
13
13
|
separator: c,
|
|
14
14
|
groupLabel: l,
|
|
15
|
-
"menu-item-enter": "_menu-item-
|
|
15
|
+
"menu-item-enter": "_menu-item-enter_3qn78_1"
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { i as check, r as checkbox, e as content, u as default, a as glyph, l as groupLabel, s as hint, n as item, o as label, c as separator, t as sheetList };
|