@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.module.js","names":[],"sources":["../../../../recipes/src/overlays/menu.module.css"],"sourcesContent":["/* Menu — `design/components/menu.md`.\n *\n * The panel is Select's content recipe, unchanged, on purpose. A dropdown of\n * options and a dropdown of commands are the same surface at the same offset.\n * If they differed by two pixels, the product would have two dropdown designs.\n *\n * The danger tone is deliberately quiet. A destructive command stays low-key\n * until it is confirmed, and the ConfirmDialog carries the strong warning. So\n * this is red text on a red wash, never a red fill. */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` in the stacking order. It is declared on the content class and\n applied on the popper: Radix's popper copies the content's computed z-index\n onto its own positioned wrapper (@radix-ui/react-popper 1.3.7), so the\n whole surface joins the layer without a `:global`. Every Radix-lane overlay\n content class in the vocabulary has this line. */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-dropdown-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-dropdown-menu-content-transform-origin);\n\n /* The list takes focus only to hand it to a row, so it draws no ring of its\n own: the ring belongs on the row the reader moves through. */\n outline: none;\n}\n\n/* The `menu.content` binding: `scale-fade`, surface class, anchored origin.\n Select's rule and numbers. Radix keeps the node mounted for the closed\n animation, so the exit animates instead of cutting. */\n.content[data-state='open'] {\n animation: menu-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: menu-content-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes menu-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes 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`. The duration stays, because an opacity change is vestibular-safe and\n the panel must still appear to arrive rather than cut in. Select's recipe has\n the same block, and the reduced-motion law\n (`packages/react-ui/src/conventions/reduced-motion.test.ts`) fails a stylesheet\n without it. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes menu-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes menu-content-exit {\n to {\n opacity: 0;\n }\n }\n\n /* The cascade projects to presence (`docs/motion.md`). A delay counts as\n motion even when the delayed element does not move, so items arrive with\n their panel. Both scopes, because the sheet's rows are the same rows. */\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet, below 30rem (the sheet presentation) ----------------------------\n *\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet\n * partial). This member styles only its rows' container inside it: the same\n * `--pm-space-2` inset as the popper panel, on a list that scrolls under the\n * sheet presentation's cap. The `min-width` and `sideOffset` rules no longer\n * apply, because a sheet has no anchor. The safe-area padding is the sheet\n * presentation's: added to this member's edge padding, and zero where there is\n * no notch, because a sheet whose last row sits behind the home indicator hides\n * content (`docs/layout.md`). */\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 --------------------------------------------------------------------- */\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, unchanged.\n The check has its own `--pm-space-2` gap where the item's icon keeps\n `--pm-space-3`. The check uses the leading slot, so a checkbox entry takes no\n icon. It is applied with `.item` (the layout primitives' two-class idiom)\n rather than composed, because the registry's extractor reads `composes` as a\n cross-file graph, and a same-file composition would be an edge to nothing. */\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n/* Select's check column, unchanged: `--pm-icon-size-sm` is reserved whether or\n not this row is 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 whatever the label length.\n A submenu's chevron also sits here. A row never has both, because a row that\n opens a list runs no command. */\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 chevron follows the row's colour, so it stays legible on the highlight. A\n hint that stayed muted would disappear into the accent wash. */\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 cascade: items appear one by one during the panel's enter, each delayed\n by the stagger step and clamped to the stagger ceiling, so a long menu gets\n denser instead of slower. Temperament changes it only through the tokens:\n expressive uses 32ms per item, subtle a quick 19ms, and `none` derives zero,\n so there is no cascade. It runs on enter only; lists do not reverse it on\n exit.\n\n The index steps stop at twelve. The spec already forbids longer menus, and\n every later item shares the ceiling. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: 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 menu-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* states -------------------------------------------------------------------- */\n\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n/* Radix sets `data-highlighted` from both pointer and keyboard, so there is no\n `:hover` rule here: one state covers both. */\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":"menu.module.js","names":[],"sources":["../../../../recipes/src/overlays/menu.module.css"],"sourcesContent":["/* Menu — `design/components/menu.md`.\n *\n * The panel is Select's content recipe, unchanged, on purpose. A dropdown of\n * options and a dropdown of commands are the same surface at the same offset.\n * If they differed by two pixels, the product would have two dropdown designs.\n *\n * The danger tone is deliberately quiet. A destructive command stays low-key\n * until it is confirmed, and the ConfirmDialog carries the strong warning. So\n * this is red text on a red wash, never a red fill. */\n\n.content {\n display: flex;\n flex-direction: column;\n\n /* `overlay` in the stacking order. It is declared on the content class and\n applied on the popper: Radix's popper copies the content's computed z-index\n onto its own positioned wrapper (@radix-ui/react-popper 1.3.7), so the\n whole surface joins the layer without a `:global`. Every Radix-lane overlay\n content class in the vocabulary has this line. */\n z-index: var(--pm-z-overlay);\n min-inline-size: calc(var(--pm-space-10) * 2);\n max-block-size: var(--radix-dropdown-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-dropdown-menu-content-transform-origin);\n\n /* The list takes focus only to hand it to a row, so it draws no ring of its\n own: the ring belongs on the row the reader moves through. */\n outline: none;\n}\n\n/* The `menu.content` binding: `scale-fade`, surface class, anchored origin.\n Select's rule and numbers. Radix keeps the node mounted for the closed\n animation, so the exit animates instead of cutting. */\n.content[data-state='open'] {\n animation: menu-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.content[data-state='closed'] {\n animation: menu-content-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes menu-content-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes 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`. The duration stays, because an opacity change is vestibular-safe and\n the panel must still appear to arrive rather than cut in. Select's recipe has\n the same block, and the reduced-motion law\n (`packages/react-ui/src/conventions/reduced-motion.test.ts`) fails a stylesheet\n without it. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes menu-content-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes menu-content-exit {\n to {\n opacity: 0;\n }\n }\n\n /* The cascade projects to presence (`docs/motion.md`). A delay counts as\n motion even when the delayed element does not move, so items arrive with\n their panel. Both scopes, because the sheet's rows are the same rows. */\n .sheetList .item,\n .content[data-state='open'] .item {\n animation: none;\n }\n}\n\n/* The sheet, below 30rem (the sheet presentation) ----------------------------\n *\n * The panel box is the shared anatomy (`sheet.module.css`, used by the sheet\n * partial). This member styles only its rows' container inside it: the same\n * `--pm-space-2` inset as the popper panel, on a list that scrolls under the\n * sheet presentation's cap. The `min-width` and `sideOffset` rules no longer\n * apply, because a sheet has no anchor. The safe-area padding is the sheet\n * presentation's: added to this member's edge padding, and zero where there is\n * no notch, because a sheet whose last row sits behind the home indicator hides\n * content (`docs/layout.md`). */\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 --------------------------------------------------------------------- */\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, unchanged.\n The check has its own `--pm-space-2` gap where the item's icon keeps\n `--pm-space-3`. The check uses the leading slot, so a checkbox entry takes no\n icon. It is applied with `.item` (the layout primitives' two-class idiom)\n rather than composed, because the registry's extractor reads `composes` as a\n cross-file graph, and a same-file composition would be an edge to nothing. */\n.checkbox {\n gap: var(--pm-space-2);\n}\n\n/* Select's check column, unchanged: `--pm-icon-size-sm` is reserved whether or\n not this row is 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 whatever the label length.\n A submenu's chevron also sits here. A row never has both, because a row that\n opens a list runs no command. */\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 chevron follows the row's colour, so it stays legible on the highlight. A\n hint that stayed muted would disappear into the accent wash. */\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 cascade: items appear one by one during the panel's enter, each delayed\n by the stagger step and clamped to the stagger ceiling, so a long menu gets\n denser instead of slower. Temperament changes it only through the tokens:\n expressive uses 32ms per item, subtle a quick 19ms, and `none` derives zero,\n so there is no cascade. It runs on enter only; lists do not reverse it on\n exit.\n\n The index steps stop at twelve. The spec already forbids longer menus, and\n every later item shares the ceiling. */\n.sheetList .item,\n.content[data-state='open'] .item {\n animation: 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 menu-item-enter {\n from {\n opacity: 0;\n transform: translateY(-2px);\n }\n}\n\n/* states -------------------------------------------------------------------- */\n\n.item[data-tone='danger'] {\n color: var(--pm-danger-text);\n}\n\n/* Radix sets `data-highlighted` from both pointer and keyboard, so there is no\n `:hover` rule here: one state covers both. */\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/menubar.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_bar_wfgwt_16", t = "_title_wfgwt_43 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", n = "_content_wfgwt_96 _content_3qn78_11", r = "_item_wfgwt_100 _item_3qn78_83 _stateFeedback_lkjqs_17", i = "_checkbox_wfgwt_104 _checkbox_3qn78_137", a = "_check_wfgwt_104 _check_3qn78_137 _stateFeedback_lkjqs_17", o = "_glyph_wfgwt_112 _glyph_3qn78_152 _stateFeedback_lkjqs_17", s = "_label_wfgwt_116 _label_3qn78_160", c = "_hint_wfgwt_120 _hint_3qn78_170 _stateFeedback_lkjqs_17", l = "_separator_wfgwt_124 _separator_3qn78_185", u = "_groupLabel_wfgwt_128 _groupLabel_3qn78_190", d = "_collapsed_wfgwt_136", f = "_harness_wfgwt_142", p = {
|
|
3
3
|
bar: e,
|
|
4
4
|
title: t,
|
|
5
5
|
content: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.module.js","names":[],"sources":["../../../../recipes/src/overlays/menubar.module.css"],"sourcesContent":["/* Menubar — `design/components/menubar.md`.\n *\n * The bar and its titles are this file's own. Each open menu is Menu's panel\n * and Menu's rows: every class below the bar composes its class from Menu's\n * recipe instead of copying it, as SplitButton's halves compose Button's. So a\n * menu opened from a title and a menu opened from an overflow Button are one\n * design, with no copy to drift. Menu's recipe also plays the panel's motion,\n * its row cascade and their reduced-motion projection. */\n\n/* How far a focused title
|
|
1
|
+
{"version":3,"file":"menubar.module.js","names":[],"sources":["../../../../recipes/src/overlays/menubar.module.css"],"sourcesContent":["/* Menubar — `design/components/menubar.md`.\n *\n * The bar and its titles are this file's own. Each open menu is Menu's panel\n * and Menu's rows: every class below the bar composes its class from Menu's\n * recipe instead of copying it, as SplitButton's halves compose Button's. So a\n * menu opened from a title and a menu opened from an overflow Button are one\n * design, with no copy to drift. Menu's recipe also plays the panel's motion,\n * its row cascade and their reduced-motion projection. */\n\n/* How far a focused title's mark reaches outside its box: the offset plus the\n width, which is 0 where the mark lies inside the edge and more where a system\n moves it outside. The room is at least `--pm-space-1`, which keeps the bar's\n padding the same whether the mark lies inside the edge or reaches a little\n outside it. The bar scrolls, and a scroll container clips at its padding\n edge, so the bar is larger than its titles by this much. */\n.bar {\n --pm-menubar-reach: max(calc(var(--pm-focus-offset) + var(--pm-focus-width)), var(--pm-space-1));\n\n display: flex;\n gap: var(--pm-space-1);\n align-items: center;\n\n /* A bar that is a flex or grid item may be narrower than its titles. It then\n scrolls inside its own box instead of widening the track or the page. */\n min-inline-size: 0;\n max-inline-size: 100%;\n padding: var(--pm-menubar-reach);\n\n /* The negative margins keep the titles where they would be without the\n padding. The inline end takes none: a box that passes its container's end\n edge lets the page scroll sideways. */\n margin-block: calc(var(--pm-menubar-reach) * -1);\n margin-inline-start: calc(var(--pm-menubar-reach) * -1);\n overflow: auto hidden;\n\n /* A thin scrollbar shows that a row longer than its box scrolls. Its thumb is\n the ramp's strongest step, as ScrollArea's is. */\n scrollbar-color: var(--pm-border-strong) transparent;\n scrollbar-width: thin;\n}\n\n/* A title: one label on a quiet control, Menu's row height and type. */\n.title {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n block-size: var(--pm-control-height-sm);\n padding-block: 0;\n padding-inline: var(--pm-space-3);\n margin: 0;\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 white-space: nowrap;\n cursor: pointer;\n background: transparent;\n border: 0;\n border-radius: var(--pm-radius-sm);\n}\n\n/* states -------------------------------------------------------------------- */\n\n.title:disabled {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n}\n\n/* Under the pointer a title takes the ghost Button's wash. */\n.title:not(:disabled):hover {\n background: var(--pm-bg-subtle);\n}\n\n/* The system's unfilled hover choice, as Button reads it: a system may give a\n quiet control no wash under the pointer. The open rule below comes after\n it, so an open title keeps its wash. */\n@container style(--pm-hover-unfilled: none) {\n .title:not(:disabled):hover {\n background: transparent;\n }\n}\n\n/* The title whose menu is open takes Menu's highlighted row: it is the row of\n the bar the open menu belongs to. */\n.title[data-state='open'] {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n}\n\n/* the open menu — Menu's recipe, composed ----------------------------------- */\n\n.content {\n composes: content from './menu.module.css';\n}\n\n.item {\n composes: item from './menu.module.css';\n}\n\n.checkbox {\n composes: checkbox from './menu.module.css';\n}\n\n.check {\n composes: check from './menu.module.css';\n}\n\n.glyph {\n composes: glyph from './menu.module.css';\n}\n\n.label {\n composes: label from './menu.module.css';\n}\n\n.hint {\n composes: hint from './menu.module.css';\n}\n\n.separator {\n composes: separator from './menu.module.css';\n}\n\n.groupLabel {\n composes: groupLabel from './menu.module.css';\n}\n\n/* the phone form ------------------------------------------------------------ */\n\n/* Below the sheet presentation's threshold the bar is one Menu behind one\n Button. This box holds that Button and has no box of its own. */\n.collapsed {\n display: contents;\n}\n\n/* The box the narrow-container fixture puts a long row in, as Tabs' fixture\n does: narrower than the row, so the row scrolls inside it. */\n.harness {\n inline-size: calc(var(--pm-space-10) * 3);\n max-inline-size: 100%;\n}\n"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/popover.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_panel_uit7m_7", t = "_sheetBody_uit7m_78", n = {
|
|
3
3
|
panel: e,
|
|
4
|
-
"popover-enter": "_popover-
|
|
5
|
-
"popover-exit": "_popover-
|
|
4
|
+
"popover-enter": "_popover-enter_uit7m_1",
|
|
5
|
+
"popover-exit": "_popover-exit_uit7m_1",
|
|
6
6
|
sheetBody: t
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.module.js","names":[],"sources":["../../../../recipes/src/overlays/popover.module.css"],"sourcesContent":["/* Popover — `design/components/popover.md`.\n *\n * Wider padding and a larger radius than a menu, because this holds content\n * rather than rows. A panel of FormFields at a menu's `space-2` inset would look\n * like a broken list. */\n\n.panel {\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 inline-size: max-content;\n max-inline-size: calc(var(--pm-space-10) * 4);\n padding: var(--pm-inset-pane);\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-popover-content-transform-origin);\n}\n\n/* The `popover.panel` binding: `scale-fade`, anchored origin, surface class.\n The same transient-surface motion as Select and Menu, so the three are\n consistent. */\n.panel[data-state='open'] {\n animation: popover-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.panel[data-state='closed'] {\n animation: popover-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes popover-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes popover-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` with the same durations. The three transient surfaces must stay\n consistent under reduced motion too. A Popover that still grew while a\n Select did not would be an inconsistency. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes popover-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes popover-exit {\n to {\n opacity: 0;\n }\n }\n}\n\n.panel:focus-visible {\n outline: var(--pm-focus-width) solid var(--pm-border-focus);\n outline-offset: var(--pm-focus-offset);\n}\n\n/* The sheet, below 30rem with `presentation=\"sheet\"` (the sheet presentation).\n The panel box is the shared anatomy (`sheet.module.css`, used by the sheet\n partial). This member keeps its own inset inside it, the same `--pm-space-5`\n as the anchored panel, because only the shape changes, not the content. The\n sheet presentation's safe-area padding is added to the member's edge\n padding. The `max-width` rule no longer applies, because a sheet is\n full-width. */\n.sheetBody {\n min-block-size: 0;\n padding: var(--pm-inset-pane);\n padding-block-end: calc(var(--pm-inset-pane) + env(safe-area-inset-bottom, 0px));\n overflow-y: 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":"popover.module.js","names":[],"sources":["../../../../recipes/src/overlays/popover.module.css"],"sourcesContent":["/* Popover — `design/components/popover.md`.\n *\n * Wider padding and a larger radius than a menu, because this holds content\n * rather than rows. A panel of FormFields at a menu's `space-2` inset would look\n * like a broken list. */\n\n.panel {\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 inline-size: max-content;\n max-inline-size: calc(var(--pm-space-10) * 4);\n padding: var(--pm-inset-pane);\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-popover-content-transform-origin);\n}\n\n/* The `popover.panel` binding: `scale-fade`, anchored origin, surface class.\n The same transient-surface motion as Select and Menu, so the three are\n consistent. */\n.panel[data-state='open'] {\n animation: popover-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n.panel[data-state='closed'] {\n animation: popover-exit var(--pm-motion-duration-surface-exit) var(--pm-motion-easing-exit);\n}\n\n@keyframes popover-enter {\n from {\n opacity: 0;\n transform: scale(0.94);\n }\n}\n\n@keyframes popover-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` with the same durations. The three transient surfaces must stay\n consistent under reduced motion too. A Popover that still grew while a\n Select did not would be an inconsistency. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes popover-enter {\n from {\n opacity: 0;\n }\n }\n\n @keyframes popover-exit {\n to {\n opacity: 0;\n }\n }\n}\n\n/* Focus moves into the panel when it opens. The shared convention's mark on the panel: the outline\n in the focus colour at the system's offset, inside the panel's edge by default. */\n.panel:focus-visible {\n outline: var(--pm-focus-width) solid var(--pm-border-focus-solid);\n outline-offset: var(--pm-focus-offset);\n}\n\n/* The sheet, below 30rem with `presentation=\"sheet\"` (the sheet presentation).\n The panel box is the shared anatomy (`sheet.module.css`, used by the sheet\n partial). This member keeps its own inset inside it, the same `--pm-space-5`\n as the anchored panel, because only the shape changes, not the content. The\n sheet presentation's safe-area padding is added to the member's edge\n padding. The `max-width` rule no longer applies, because a sheet is\n full-width. */\n.sheetBody {\n min-block-size: 0;\n padding: var(--pm-inset-pane);\n padding-block-end: calc(var(--pm-inset-pane) + env(safe-area-inset-bottom, 0px));\n overflow-y: 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.module.js","names":[],"sources":["../../../../recipes/src/overlays/sheet.module.css"],"sourcesContent":["/* The sheet presentation (`design/components/README.md`).\n *\n * Drawer `side=\"bottom\"`'s anatomy, promoted to a shared recipe. `drawer.md`\n * remains the owner of the visual spec. Every member with a sheet form\n * (Dialog's `presentation=\"sheet\"`, Menu's phone form, Popover's opt-in, and\n * ContextMenu and SplitButton through Menu's lane) composes these classes\n * instead of re-deriving them.\n *\n * The anatomy is keyed on `data-presentation=\"sheet\"`, the sheet\n * presentation's attribute contract. It is resolved state: present exactly\n * while the surface is drawn as a sheet, and absent in the member's anchored or\n * card form. CSS keys the anatomy off it, the browser tests assert it, and the\n * member sets it from the same `30rem` threshold its geometry uses.\n *\n * The scrim is Dialog's, unchanged (as the sheet presentation specifies), but\n * restated here rather than composed, on purpose. Dialog's sheet form composes\n * `panel` from this file, and a `composes` edge back into `dialog.module.css`\n * would make each file depend on the other. The cost is three structural\n * declarations, and the bg token is the same token.\n *\n * Safe-area padding is not here. The sheet presentation adds\n * `env(safe-area-inset-bottom)` to the member's own edge padding, and members\n * pad differently (a menu list pads `--pm-space-2`, a dialog `--pm-space-6`).\n * Each member adds its own safe-area padding; only the box is shared. */\n\n/* `overlay` in the stacking order: every portalled overlay surface uses one\n layer, above shell chrome and below toasts. This puts a sheet's scrim above a\n drawer-mode rail (`--pm-z-shell`) instead of below 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/* Pins the panel to the bottom edge and takes no clicks itself, so a click that\n misses the panel lands on the scrim and dismisses. Drawer's bottom\n positioner, unchanged. */\n.positioner {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n display: flex;\n align-items: flex-end;\n pointer-events: none;\n}\n\n/* Drawer bottom's panel, promoted (the sheet presentation's anatomy table):\n attached to the bottom edge, full-width, top corners `--pm-radius-surface`, top\n border only, and the flat-overlay rule applies, so a transient surface stands\n apart in every system.\n\n Height: as tall as its content, up to drawer-bottom's `md` cap. The `vh` base\n is here and the `dvh` override is in the `@supports` block after this rule,\n because a dedupe minifier deletes a same-property pair. On phones `100vh`\n includes the collapsed browser chrome, and a cap measured against it hides\n the sheet's last row behind the URL bar (`docs/layout.md`). */\n.panel[data-presentation='sheet'] {\n display: flex;\n flex-direction: column;\n inline-size: 100%;\n max-block-size: 66vh;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\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 border-end-start-radius: 0;\n border-end-end-radius: 0;\n box-shadow: var(--pm-shadow-transient);\n}\n\n@supports (height: 1dvh) {\n .panel[data-presentation='sheet'] {\n max-block-size: 66dvh;\n }\n}\n\n/* A programmatically focused panel is the focus convention's standard\n exception: the ring belongs on the control the reader will use, never on a\n whole sheet. */\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. Both parts, because the scrim is the dismiss\n surface. */\n.scrim[data-state='closed'],\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[data-presentation='sheet'] {\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":"sheet.module.js","names":[],"sources":["../../../../recipes/src/overlays/sheet.module.css"],"sourcesContent":["/* The sheet presentation (`design/components/README.md`).\n *\n * Drawer `side=\"bottom\"`'s anatomy, promoted to a shared recipe. `drawer.md`\n * remains the owner of the visual spec. Every member with a sheet form\n * (Dialog's `presentation=\"sheet\"`, Menu's phone form, Popover's opt-in, and\n * ContextMenu and SplitButton through Menu's lane) composes these classes\n * instead of re-deriving them.\n *\n * The anatomy is keyed on `data-presentation=\"sheet\"`, the sheet\n * presentation's attribute contract. It is resolved state: present exactly\n * while the surface is drawn as a sheet, and absent in the member's anchored or\n * card form. CSS keys the anatomy off it, the browser tests assert it, and the\n * member sets it from the same `30rem` threshold its geometry uses.\n *\n * The scrim is Dialog's, unchanged (as the sheet presentation specifies), but\n * restated here rather than composed, on purpose. Dialog's sheet form composes\n * `panel` from this file, and a `composes` edge back into `dialog.module.css`\n * would make each file depend on the other. The cost is three structural\n * declarations, and the bg token is the same token.\n *\n * Safe-area padding is not here. The sheet presentation adds\n * `env(safe-area-inset-bottom)` to the member's own edge padding, and members\n * pad differently (a menu list pads `--pm-space-2`, a dialog `--pm-space-6`).\n * Each member adds its own safe-area padding; only the box is shared. */\n\n/* `overlay` in the stacking order: every portalled overlay surface uses one\n layer, above shell chrome and below toasts. This puts a sheet's scrim above a\n drawer-mode rail (`--pm-z-shell`) instead of below 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/* Pins the panel to the bottom edge and takes no clicks itself, so a click that\n misses the panel lands on the scrim and dismisses. Drawer's bottom\n positioner, unchanged. */\n.positioner {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n display: flex;\n align-items: flex-end;\n pointer-events: none;\n}\n\n/* Drawer bottom's panel, promoted (the sheet presentation's anatomy table):\n attached to the bottom edge, full-width, top corners `--pm-radius-surface`, top\n border only, and the flat-overlay rule applies, so a transient surface stands\n apart in every system.\n\n Height: as tall as its content, up to drawer-bottom's `md` cap. The `vh` base\n is here and the `dvh` override is in the `@supports` block after this rule,\n because a dedupe minifier deletes a same-property pair. On phones `100vh`\n includes the collapsed browser chrome, and a cap measured against it hides\n the sheet's last row behind the URL bar (`docs/layout.md`). */\n.panel[data-presentation='sheet'] {\n display: flex;\n flex-direction: column;\n inline-size: 100%;\n max-block-size: 66vh;\n pointer-events: auto;\n background: var(--pm-bg-overlay);\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 border-end-start-radius: 0;\n border-end-end-radius: 0;\n box-shadow: var(--pm-shadow-transient);\n}\n\n@supports (height: 1dvh) {\n .panel[data-presentation='sheet'] {\n max-block-size: 66dvh;\n }\n}\n\n/* A programmatically focused panel is the focus convention's standard\n exception: the ring belongs on the control the reader will use, never on a\n whole sheet. */\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. Both parts, because the scrim is the dismiss\n surface. */\n.scrim[data-state='closed'],\n.panel[data-state='closed'] {\n pointer-events: none;\n}\n\n.panel[data-state='open'] {\n pointer-events: auto;\n}\n\n/* An open scrim takes the press that dismisses, also over a modal Dialog that\n has turned the page's pointer events off. */\n.scrim[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[data-presentation='sheet'] {\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/tabs.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_6ylix_13", t = "_list_6ylix_18", n = "_trigger_6ylix_24 _focusAround_1hr3n_95 _stateFeedback_lkjqs_17", r = "_glyph_6ylix_45 _stateFeedback_lkjqs_17", i = "_count_6ylix_53", a = "_indicator_6ylix_65", o = "_slide_6ylix_78", s = "_content_6ylix_90", c = "_harness_6ylix_292", l = {
|
|
3
3
|
root: e,
|
|
4
4
|
list: t,
|
|
5
5
|
trigger: n,
|
|
@@ -8,9 +8,9 @@ var e = "_root_stm37_13", t = "_list_stm37_18", n = "_trigger_stm37_24 _focusRin
|
|
|
8
8
|
indicator: a,
|
|
9
9
|
slide: o,
|
|
10
10
|
content: s,
|
|
11
|
-
"tabs-content-enter": "_tabs-content-
|
|
12
|
-
"tabs-fade-left": "_tabs-fade-
|
|
13
|
-
"tabs-fade-right": "_tabs-fade-
|
|
11
|
+
"tabs-content-enter": "_tabs-content-enter_6ylix_1",
|
|
12
|
+
"tabs-fade-left": "_tabs-fade-left_6ylix_1",
|
|
13
|
+
"tabs-fade-right": "_tabs-fade-right_6ylix_1",
|
|
14
14
|
harness: c
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.module.js","names":[],"sources":["../../../../recipes/src/overlays/tabs.module.css"],"sourcesContent":["/* Tabs — `design/components/tabs.md`.\n *\n * One variant, underline. The underline sits on the strip's rule rather than\n * beside it: the rule is the baseline every tab shares, and the indicator marks\n * the active tab's part of it. So the list is positioned, and the indicator is\n * absolute inside it.\n *\n * A horizontal list wider than its container scrolls inside it, and an edge\n * with more tabs beyond it fades. All of that is in the horizontal section\n * below, keyed on the root's orientation, so the vertical strip takes none of\n * it. */\n\n.root {\n display: flex;\n flex-direction: column;\n}\n\n.list {\n position: relative;\n display: flex;\n gap: var(--pm-space-5);\n}\n\n.trigger {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-2);\n align-items: center;\n padding-block: var(--pm-space-3);\n padding-inline: 0;\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 white-space: nowrap;\n cursor: pointer;\n background: transparent;\n border: 0;\n border-radius: var(--pm-radius-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.count {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* Sits on the list's rule, not under it: 2px covering the 1px baseline, so the\n active tab looks like a thicker piece of the same line.\n\n Positioned from the start edges and offset by transform, because the engine\n animates `x`/`y`, and a rule anchored to the opposite edge would need an\n inverted measurement for no benefit. */\n.indicator {\n inset-block: auto 0;\n block-size: 2px;\n background: var(--pm-accent-bg);\n}\n\n/* The rule's slide in a shell whose machine moves it with a CSS transition\n (Zag's tabs machine). The machine writes the transition inline, with a\n duration of its own, so these replace its duration and curve with the\n motion tokens: a temperament rescales the slide, and `none`, where the\n tokens are 0ms, makes it a jump. The React member slides the rule through\n the motion engine (`MotionIndicator`, the `tabs.indicator` spring) and draws\n no transition, so it does not take this class. */\n.slide {\n transition-duration: var(--pm-motion-duration-surface) !important;\n transition-timing-function: var(--pm-motion-easing-standard) !important;\n}\n\n/* Reduced motion: the rule jumps to the new tab (`tabs.indicator`'s projection). */\n@media (prefers-reduced-motion: reduce) {\n .slide {\n transition-property: none !important;\n }\n}\n\n.content {\n padding-block-start: var(--pm-space-5);\n}\n\n/* The `tabs.content` binding: `fade`, surface class. No slide, because tabs are\n peers and a direction would imply an order they do not have. */\n.content[data-state='active'] {\n animation: tabs-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n@keyframes tabs-content-enter {\n from {\n opacity: 0;\n }\n}\n\n/* states -------------------------------------------------------------------- */\n\n.trigger[data-state='active'] {\n color: var(--pm-text-primary);\n}\n\n.trigger[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n}\n\n.trigger:hover:not([data-disabled]) {\n color: var(--pm-text-primary);\n}\n\n.trigger[data-disabled] .glyph {\n color: var(--pm-text-disabled);\n}\n\n/* horizontal — a strip that scrolls when it is wider than its container ----- */\n\n/* A root that is a flex or grid item may be narrower than its triggers. The\n list then scrolls inside it instead of widening the track. */\n.root[data-orientation='horizontal'] {\n min-inline-size: 0;\n}\n\n/* Each rule below reaches the root's own list, and the indicator inside it,\n through child combinators. A panel can hold another Tabs, and a vertical one\n inside a horizontal one takes none of these. */\n\n/* The baseline rule is the root's, drawn between the list and the panel: the\n list is ordered first and the rule second, ahead of everything else the root\n holds. It is not the list's border, because the list scrolls, fades at its\n edges and is larger than its triggers (all below), and the rule does none of\n those. It spans the container. */\n.root[data-orientation='horizontal']::before {\n order: -1;\n content: '';\n border-block-end: 1px solid var(--pm-border-subtle);\n}\n\n.root[data-orientation='horizontal'] > .list {\n /* How far a focused trigger draws outside its box: the ring's offset and\n width, or `--pm-space-2` for the halo under the ring where that is more. */\n --pm-tabs-reach: max(calc(var(--pm-focus-offset) + var(--pm-focus-width)), var(--pm-space-2));\n\n order: -2;\n\n /* A scroll container has no minimum block size, so in a root shorter than\n its content the strip would give up its height and clip its triggers. The\n panel takes the shortfall instead, as it did before the strip scrolled. */\n flex: none;\n\n /* A scroll container clips at its padding edge, so the list is larger than\n its triggers by the reach on every side, and negative margins keep the\n triggers where they are without the padding. The inline end takes no\n negative margin: a box that passes the container's end edge lets the page\n scroll sideways. */\n padding: var(--pm-tabs-reach);\n margin-block: calc(var(--pm-tabs-reach) * -1);\n margin-inline-start: calc(var(--pm-tabs-reach) * -1);\n overflow: auto hidden;\n\n /* Where a tab comes to rest when the browser scrolls to it on focus, or the\n member does when it becomes current: clear of the edge fade. */\n scroll-padding-inline: calc(var(--pm-space-6) + var(--pm-tabs-reach));\n\n /* Where the edge fade below is not supported, a thin scrollbar shows that\n the strip scrolls. Its thumb is the ramp's strongest step, as ScrollArea's\n is. */\n scrollbar-color: var(--pm-border-strong) transparent;\n scrollbar-width: thin;\n}\n\n/* The list's padding edge is the reach past the triggers, so the indicator\n comes in from it by the reach, and ends where its tab ends.\n\n The React foundation's `MotionIndicator` sets `inset-block-start: 0` inline,\n which outranks this stylesheet. With both block insets and the block size\n set, a box is placed from its start inset unless its start margin is `auto`,\n which then takes the space left over. So the margin is `auto`, and the\n indicator rests on its end inset in React as it does in a renderer that\n leaves the start inset alone. */\n.root[data-orientation='horizontal'] > * > .indicator {\n inset-block-end: var(--pm-tabs-reach);\n margin-block-start: auto;\n}\n\n/* The edge fade: an edge with more tabs beyond it fades out, and an edge with\n nothing beyond it does not. It is a mask, so it needs no surface colour, and\n it is driven by the list's own scroll position, so it needs no code.\n *\n * The mask is two layers, each opaque but for a fade one space step wide at\n * one physical edge, and each larger than the list, so its fade can rest\n * outside it. The left layer slides in by position and the right one by size,\n * because two animations of one property would replace each other. Each\n * animation runs over the first or last stretch of the scroll range, as long\n * as the fade is wide. A mask reads only alpha, so `black` is not a colour\n * decision here.\n *\n * The first animation also carries the mask's image, the same at both ends.\n * A list with nothing to scroll has an inactive timeline and neither\n * animation applies, so a list that fits has no mask at all.\n *\n * The animations are written as longhands, with no duration. A scroll-driven\n * animation needs the duration left at `auto`, and a build's minifier writes\n * the `animation` shorthand out with `0s`, which makes each fade switch\n * instead of following the scroll. The React vocabulary's published build is\n * checked for it (`packages/react-ui/packaging.test.ts`).\n *\n * The gradients are physical because a gradient has no logical direction.\n * Right to left, the scroll starts at the right edge, so the two animations\n * swap ranges and run backwards. The direction is read from the root's own\n * `dir`, which Radix and Zag both write from the direction they are given.\n * An ancestor's `dir` is not read, because a right-to-left page can hold a\n * left-to-right strip. `:dir()` is not used, because the minifier rewrites it\n * as a list of languages, and a language is not the strip's direction.\n *\n * With the fade, the scrollbar is hidden, as Carousel's is behind its dots. */\n@supports (animation-timeline: scroll()) {\n .root[data-orientation='horizontal'] > .list {\n scrollbar-width: none;\n mask-repeat: no-repeat;\n mask-composite: intersect;\n animation-name: tabs-fade-left, tabs-fade-right;\n animation-timing-function: linear;\n animation-fill-mode: both;\n animation-timeline: scroll(self inline);\n animation-range:\n 0 var(--pm-space-6),\n calc(100% - var(--pm-space-6)) 100%;\n }\n\n .root[data-orientation='horizontal'][dir='rtl'] > .list {\n animation-direction: reverse;\n animation-range:\n calc(100% - var(--pm-space-6)) 100%,\n 0 var(--pm-space-6);\n }\n}\n\n@keyframes tabs-fade-left {\n from {\n mask-image:\n linear-gradient(to right, transparent, black var(--pm-space-6)),\n linear-gradient(to left, transparent, black var(--pm-space-6));\n mask-position:\n calc(var(--pm-space-6) * -1) 0,\n 0 0;\n }\n\n to {\n mask-image:\n linear-gradient(to right, transparent, black var(--pm-space-6)),\n linear-gradient(to left, transparent, black var(--pm-space-6));\n mask-position:\n 0 0,\n 0 0;\n }\n}\n\n@keyframes tabs-fade-right {\n from {\n mask-size:\n 200% 100%,\n 100% 100%;\n }\n\n to {\n mask-size:\n 200% 100%,\n calc(100% + var(--pm-space-6)) 100%;\n }\n}\n\n/* Fixture box for the spec's strip wider than its container: narrower than a\n phone, built from tokens (96 × 3 = 288px at standard density) because the CSS\n law covers every file in this package, fixtures included. */\n.harness {\n inline-size: calc(var(--pm-space-10) * 3);\n max-inline-size: 100%;\n}\n\n/* vertical — the same strip turned on its side ------------------------------ */\n\n.root[data-orientation='vertical'] {\n flex-direction: row;\n gap: var(--pm-space-6);\n}\n\n.root[data-orientation='vertical'] .list {\n flex-direction: column;\n gap: var(--pm-space-1);\n align-items: stretch;\n align-self: flex-start;\n\n /* The rule runs down the start edge instead of along the bottom. The panel\n can be taller, so keep the list intrinsic and end the rule at its final\n trigger instead of stretching it with the root's cross axis. */\n border-inline-start: 1px solid var(--pm-border-subtle);\n}\n\n/* Start-aligned and padded away from the rule. A vertical tab is a row, and a\n row with a centred label would look misaligned, as a nav item would. */\n.root[data-orientation='vertical'] .trigger {\n justify-content: flex-start;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-4);\n text-align: start;\n}\n\n.root[data-orientation='vertical'] .indicator {\n inset-block: 0 auto;\n inset-inline-start: 0;\n inline-size: 2px;\n block-size: auto;\n}\n\n/* The panel takes the space the strip does not. */\n.root[data-orientation='vertical'] .content {\n flex: 1;\n min-inline-size: 0;\n padding-block-start: 0;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"tabs.module.js","names":[],"sources":["../../../../recipes/src/overlays/tabs.module.css"],"sourcesContent":["/* Tabs — `design/components/tabs.md`.\n *\n * One variant, underline. The underline sits on the strip's rule rather than\n * beside it: the rule is the baseline every tab shares, and the indicator marks\n * the active tab's part of it. So the list is positioned, and the indicator is\n * absolute inside it.\n *\n * A horizontal list wider than its container scrolls inside it, and an edge\n * with more tabs beyond it fades. All of that is in the horizontal section\n * below, keyed on the root's orientation, so the vertical strip takes none of\n * it. */\n\n.root {\n display: flex;\n flex-direction: column;\n}\n\n.list {\n position: relative;\n display: flex;\n gap: var(--pm-space-5);\n}\n\n.trigger {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-2);\n align-items: center;\n padding-block: var(--pm-space-3);\n padding-inline: 0;\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 white-space: nowrap;\n cursor: pointer;\n background: transparent;\n border: 0;\n border-radius: var(--pm-radius-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.count {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* Sits on the list's rule, not under it: 2px covering the 1px baseline, so the\n active tab looks like a thicker piece of the same line.\n\n Positioned from the start edges and offset by transform, because the engine\n animates `x`/`y`, and a rule anchored to the opposite edge would need an\n inverted measurement for no benefit. */\n.indicator {\n inset-block: auto 0;\n block-size: 2px;\n background: var(--pm-accent-bg);\n}\n\n/* The rule's slide in a shell whose machine moves it with a CSS transition\n (Zag's tabs machine). The machine writes the transition inline, with a\n duration of its own, so these replace its duration and curve with the\n motion tokens: a temperament rescales the slide, and `none`, where the\n tokens are 0ms, makes it a jump. The React member slides the rule through\n the motion engine (`MotionIndicator`, the `tabs.indicator` spring) and draws\n no transition, so it does not take this class. */\n.slide {\n transition-duration: var(--pm-motion-duration-surface) !important;\n transition-timing-function: var(--pm-motion-easing-standard) !important;\n}\n\n/* Reduced motion: the rule jumps to the new tab (`tabs.indicator`'s projection). */\n@media (prefers-reduced-motion: reduce) {\n .slide {\n transition-property: none !important;\n }\n}\n\n.content {\n padding-block-start: var(--pm-space-5);\n}\n\n/* The `tabs.content` binding: `fade`, surface class. No slide, because tabs are\n peers and a direction would imply an order they do not have. */\n.content[data-state='active'] {\n animation: tabs-content-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n}\n\n@keyframes tabs-content-enter {\n from {\n opacity: 0;\n }\n}\n\n/* states -------------------------------------------------------------------- */\n\n.trigger[data-state='active'] {\n color: var(--pm-text-primary);\n}\n\n.trigger[data-disabled] {\n color: var(--pm-text-disabled);\n cursor: not-allowed;\n}\n\n.trigger:hover:not([data-disabled]) {\n color: var(--pm-text-primary);\n}\n\n.trigger[data-disabled] .glyph {\n color: var(--pm-text-disabled);\n}\n\n/* horizontal — a strip that scrolls when it is wider than its container ----- */\n\n/* A root that is a flex or grid item may be narrower than its triggers. The\n list then scrolls inside it instead of widening the track. */\n.root[data-orientation='horizontal'] {\n min-inline-size: 0;\n}\n\n/* Each rule below reaches the root's own list, and the indicator inside it,\n through child combinators. A panel can hold another Tabs, and a vertical one\n inside a horizontal one takes none of these. */\n\n/* The baseline rule is the root's, drawn between the list and the panel: the\n list is ordered first and the rule second, ahead of everything else the root\n holds. It is not the list's border, because the list scrolls, fades at its\n edges and is larger than its triggers (all below), and the rule does none of\n those. It spans the container. */\n.root[data-orientation='horizontal']::before {\n order: -1;\n content: '';\n border-block-end: 1px solid var(--pm-border-subtle);\n}\n\n.root[data-orientation='horizontal'] > .list {\n /* How far a focused trigger's mark reaches outside its box. A trigger's box\n is its label, so the mark goes around it (`focusAround`), `--pm-space-1`\n out or at the system's offset, and reaches out by that and its width. The\n room is at least `--pm-space-2`: the list's padding, its scroll padding\n and the indicator's inset are measured from it, and the floor keeps that\n geometry the same whatever the mark's reach below it. */\n --pm-tabs-reach: max(\n calc(max(var(--pm-space-1), var(--pm-focus-offset)) + var(--pm-focus-width)),\n var(--pm-space-2)\n );\n\n order: -2;\n\n /* A scroll container has no minimum block size, so in a root shorter than\n its content the strip would give up its height and clip its triggers. The\n panel takes the shortfall instead, as it did before the strip scrolled. */\n flex: none;\n\n /* A scroll container clips at its padding edge, so the list is larger than\n its triggers by the reach on every side, and negative margins keep the\n triggers where they are without the padding. The inline end takes no\n negative margin: a box that passes the container's end edge lets the page\n scroll sideways. */\n padding: var(--pm-tabs-reach);\n margin-block: calc(var(--pm-tabs-reach) * -1);\n margin-inline-start: calc(var(--pm-tabs-reach) * -1);\n overflow: auto hidden;\n\n /* Where a tab comes to rest when the browser scrolls to it on focus, or the\n member does when it becomes current: clear of the edge fade. */\n scroll-padding-inline: calc(var(--pm-space-6) + var(--pm-tabs-reach));\n\n /* Where the edge fade below is not supported, a thin scrollbar shows that\n the strip scrolls. Its thumb is the ramp's strongest step, as ScrollArea's\n is. */\n scrollbar-color: var(--pm-border-strong) transparent;\n scrollbar-width: thin;\n}\n\n/* The list's padding edge is the reach past the triggers, so the indicator\n comes in from it by the reach, and ends where its tab ends.\n\n The React foundation's `MotionIndicator` sets `inset-block-start: 0` inline,\n which outranks this stylesheet. With both block insets and the block size\n set, a box is placed from its start inset unless its start margin is `auto`,\n which then takes the space left over. So the margin is `auto`, and the\n indicator rests on its end inset in React as it does in a renderer that\n leaves the start inset alone. */\n.root[data-orientation='horizontal'] > * > .indicator {\n inset-block-end: var(--pm-tabs-reach);\n margin-block-start: auto;\n}\n\n/* The edge fade: an edge with more tabs beyond it fades out, and an edge with\n nothing beyond it does not. It is a mask, so it needs no surface colour, and\n it is driven by the list's own scroll position, so it needs no code.\n *\n * The mask is two layers, each opaque but for a fade one space step wide at\n * one physical edge, and each larger than the list, so its fade can rest\n * outside it. The left layer slides in by position and the right one by size,\n * because two animations of one property would replace each other. Each\n * animation runs over the first or last stretch of the scroll range, as long\n * as the fade is wide. A mask reads only alpha, so `black` is not a colour\n * decision here.\n *\n * The first animation also carries the mask's image, the same at both ends.\n * A list with nothing to scroll has an inactive timeline and neither\n * animation applies, so a list that fits has no mask at all.\n *\n * The animations are written as longhands, with no duration. A scroll-driven\n * animation needs the duration left at `auto`, and a build's minifier writes\n * the `animation` shorthand out with `0s`, which makes each fade switch\n * instead of following the scroll. The React vocabulary's published build is\n * checked for it (`packages/react-ui/packaging.test.ts`).\n *\n * The gradients are physical because a gradient has no logical direction.\n * Right to left, the scroll starts at the right edge, so the two animations\n * swap ranges and run backwards. The direction is read from the root's own\n * `dir`, which Radix and Zag both write from the direction they are given.\n * An ancestor's `dir` is not read, because a right-to-left page can hold a\n * left-to-right strip. `:dir()` is not used, because the minifier rewrites it\n * as a list of languages, and a language is not the strip's direction.\n *\n * With the fade, the scrollbar is hidden, as Carousel's is behind its dots. */\n@supports (animation-timeline: scroll()) {\n .root[data-orientation='horizontal'] > .list {\n scrollbar-width: none;\n mask-repeat: no-repeat;\n mask-composite: intersect;\n animation-name: tabs-fade-left, tabs-fade-right;\n animation-timing-function: linear;\n animation-fill-mode: both;\n animation-timeline: scroll(self inline);\n animation-range:\n 0 var(--pm-space-6),\n calc(100% - var(--pm-space-6)) 100%;\n }\n\n .root[data-orientation='horizontal'][dir='rtl'] > .list {\n animation-direction: reverse;\n animation-range:\n calc(100% - var(--pm-space-6)) 100%,\n 0 var(--pm-space-6);\n }\n}\n\n@keyframes tabs-fade-left {\n from {\n mask-image:\n linear-gradient(to right, transparent, black var(--pm-space-6)),\n linear-gradient(to left, transparent, black var(--pm-space-6));\n mask-position:\n calc(var(--pm-space-6) * -1) 0,\n 0 0;\n }\n\n to {\n mask-image:\n linear-gradient(to right, transparent, black var(--pm-space-6)),\n linear-gradient(to left, transparent, black var(--pm-space-6));\n mask-position:\n 0 0,\n 0 0;\n }\n}\n\n@keyframes tabs-fade-right {\n from {\n mask-size:\n 200% 100%,\n 100% 100%;\n }\n\n to {\n mask-size:\n 200% 100%,\n calc(100% + var(--pm-space-6)) 100%;\n }\n}\n\n/* Fixture box for the spec's strip wider than its container: narrower than a\n phone, built from tokens (96 × 3 = 288px at standard density) because the CSS\n law covers every file in this package, fixtures included. */\n.harness {\n inline-size: calc(var(--pm-space-10) * 3);\n max-inline-size: 100%;\n}\n\n/* vertical — the same strip turned on its side ------------------------------ */\n\n.root[data-orientation='vertical'] {\n flex-direction: row;\n gap: var(--pm-space-6);\n}\n\n.root[data-orientation='vertical'] .list {\n flex-direction: column;\n gap: var(--pm-space-1);\n align-items: stretch;\n align-self: flex-start;\n\n /* The rule runs down the start edge instead of along the bottom. The panel\n can be taller, so keep the list intrinsic and end the rule at its final\n trigger instead of stretching it with the root's cross axis. */\n border-inline-start: 1px solid var(--pm-border-subtle);\n}\n\n/* Start-aligned and padded away from the rule. A vertical tab is a row, and a\n row with a centred label would look misaligned, as a nav item would. */\n.root[data-orientation='vertical'] .trigger {\n justify-content: flex-start;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-4);\n text-align: start;\n}\n\n.root[data-orientation='vertical'] .indicator {\n inset-block: 0 auto;\n inset-inline-start: 0;\n inline-size: 2px;\n block-size: auto;\n}\n\n/* The panel takes the space the strip does not. */\n.root[data-orientation='vertical'] .content {\n flex: 1;\n min-inline-size: 0;\n padding-block-start: 0;\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/toast.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_viewport_1um2m_19", t = "_toast_1um2m_18 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", n = "_tone_1um2m_94", r = "_wait_1um2m_108 _spin_lkjqs_83", i = "_text_1um2m_113", a = "_title_1um2m_118", o = "_description_1um2m_128", s = "_action_1um2m_138", c = "_content_1um2m_143", l = "_close_1um2m_183", u = {
|
|
3
3
|
viewport: e,
|
|
4
4
|
toast: t,
|
|
5
5
|
tone: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.module.js","names":[],"sources":["../../../../recipes/src/overlays/toast.module.css"],"sourcesContent":["/* Toast — `design/components/toast.md`.\n *\n * One neutral surface for every tone. Only the icon shows the tone, because\n * many tinted cards together look like an alarm panel, and the title carries\n * the message in words.\n *\n * The motion engine handles enter, exit and reflow (see Toaster.tsx). This file\n * handles the box, the swipe, and the rule that a leaving card is not a click\n * target. */\n\n.viewport {\n
|
|
1
|
+
{"version":3,"file":"toast.module.js","names":[],"sources":["../../../../recipes/src/overlays/toast.module.css"],"sourcesContent":["/* Toast — `design/components/toast.md`.\n *\n * One neutral surface for every tone. Only the icon shows the tone, because\n * many tinted cards together look like an alarm panel, and the title carries\n * the message in words.\n *\n * The motion engine handles enter, exit and reflow (see Toaster.tsx). This file\n * handles the box, the swipe, and the rule that a leaving card is not a click\n * target. */\n\n/* The list scrolls when its cards are taller than the window, and a scroll\n * container cuts what it holds at its padding edge, on both axes. So the cards'\n * shadows are drawn inside the list's padding. The list reaches the window's end\n * and bottom edges, where the window cuts a shadow anyway, and its padding there\n * is the cards' inset, `space-6`. On the start side and the top its padding is\n * the reach of a card's shadow. The list takes no pointer events, so its padding\n * and the gaps between the cards take no click meant for the page under them;\n * an open card takes its own (`.toast[data-state='open']`). */\n.viewport {\n /* `space-9`: the reach of the longest transient shadow the shipped systems\n derive, glass's, whose widest layer blurs over 64px with no sideways offset. */\n --pm-toast-reach: var(--pm-space-9);\n\n position: fixed;\n inset-block-end: 0;\n inset-inline-end: 0;\n\n /* `toast`, the top of the stacking order: announcements are above surfaces,\n which are above the frame. So a toast raised while a sheet is open paints\n above the sheet instead of behind it. */\n z-index: var(--pm-z-toast);\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-3);\n\n /* The sizes are the cards' own, and the padding is room around them: the\n width, and the window less an inset at each end. When the cards fill the\n window's height, the room lies past its top edge, so the cards still stop\n `space-6` from it. */\n box-sizing: content-box;\n inline-size: calc(var(--pm-space-10) * 4);\n max-inline-size: calc(100vw - var(--pm-space-6) * 2);\n max-block-size: calc(100dvh - var(--pm-space-6) * 2);\n overflow-y: auto;\n margin: 0;\n padding-block: var(--pm-toast-reach) var(--pm-space-6);\n padding-inline: var(--pm-toast-reach) var(--pm-space-6);\n list-style: none;\n pointer-events: none;\n}\n\n/* The phone register, below 30rem (toast.md) ----------------------------------\n *\n * A fixed-width card in the `bottom-end` corner at `space-6` insets collides\n * with thumbs and the home indicator (`docs/layout.md`). So the viewport becomes\n * full-width (`inset-inline: 0`, with `padding-inline` for the margins), and the\n * bottom padding adds the safe area, which is zero where there is no notch. The\n * cards are full-width because the viewport's width cap no longer applies and\n * a column's items stretch. Both sides are the window's edges, so the shadow\n * needs no room there. Max-visible, stack gap, ordering, timers and the x-axis\n * swipe are unchanged.\n *\n * `@media` is allowed here for the overlay class's reason (`docs/layout.md`):\n * the viewport is portalled and `fixed`, which makes it shell-class with the\n * window as its only container. It uses the family's one `30rem` threshold, a\n * rem literal because a breakpoint is geometry, not theme. */\n@media (width < 30rem) {\n .viewport {\n inset-inline: 0;\n inline-size: auto;\n max-inline-size: none;\n padding-block-end: calc(var(--pm-space-6) + env(safe-area-inset-bottom, 0px));\n padding-inline: var(--pm-space-4);\n }\n}\n\n.toast {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n position: relative;\n display: flex;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: var(--pm-inset-pane);\n padding-inline-end: var(--pm-space-8);\n background: var(--pm-bg-raised);\n border: 1px solid var(--pm-border-default);\n border-radius: var(--pm-radius-surface);\n box-shadow: var(--pm-shadow-transient);\n}\n\n/* Top-aligned to the title's line box rather than centred on the card, so in a\n toast with a description the icon stays beside the title. */\n.tone {\n display: inline-flex;\n flex: none;\n align-items: center;\n block-size: calc(var(--pm-text-sm-line-height) * var(--pm-text-sm-size));\n}\n\n/* The promise's pending state: the tone slot with the loading glyph spinning\n in it. It is applied with `.tone` (the layout primitives' two-class idiom)\n for the slot's geometry, because a same-file `composes` would be an edge to\n nothing in the registry's cross-file graph. `spin` is the ambient loop, and\n its period, inverse temperament scaling and three ways of stopping all come\n with the composition. It is muted rather than toned, because a pending\n result has no outcome yet. */\n.wait {\n composes: spin from '../conventions/motion.module.css';\n color: var(--pm-text-muted);\n}\n\n.text {\n flex: 1;\n min-inline-size: 0;\n}\n\n.title {\n overflow-wrap: anywhere;\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}\n\n.description {\n margin-block-start: var(--pm-space-1);\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.action {\n flex: none;\n margin-inline-start: var(--pm-space-4);\n}\n\n.content {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-3);\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 color: var(--pm-text-secondary);\n overflow-wrap: anywhere;\n}\n\n.content > p {\n margin: 0;\n}\n\n/* Toast actions are always tertiary, including native or nested controls supplied\n as content. This container contract outranks a caller's button variant and its\n hover/pressed rules. Keep the existing focus outline, hit area and interaction. */\n.toast :is(button, [role='button'], a[data-variant]) {\n color: var(--pm-accent-text) !important;\n background: transparent !important;\n border: 0 !important;\n box-shadow: none !important;\n}\n\n.toast :is(button, [role='button'], a[data-variant])[data-tone='neutral'] {\n color: var(--pm-text-secondary) !important;\n}\n\n.toast :is(button, [role='button'], a[data-variant])[data-tone='danger'] {\n color: var(--pm-danger-text) !important;\n}\n\n.toast :is(button, [role='button'], a[data-variant]):is(:disabled, [aria-disabled='true']) {\n color: var(--pm-text-disabled) !important;\n}\n\n/* Inside the card's own padding, top-right, like Dialog's. */\n.close {\n position: absolute;\n inset-block-start: var(--pm-space-4);\n inset-inline-end: var(--pm-space-4);\n}\n\n/* tones — the icon and only the icon ---------------------------------------- */\n\n.toast[data-tone='success'] .tone {\n color: var(--pm-success-text);\n}\n\n.toast[data-tone='danger'] .tone {\n color: var(--pm-danger-text);\n}\n\n.toast[data-tone='warning'] .tone {\n color: var(--pm-warning-text);\n}\n\n.toast[data-tone='info'] .tone {\n color: var(--pm-info-text);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* The pause affordance: while the pointer is on the card the timer is paused,\n and the border changes by the same step as every other hovered surface. */\n.toast:hover {\n border-color: var(--pm-border-strong);\n}\n\n.toast[data-state='open'] {\n pointer-events: auto;\n}\n\n/* A closing card is not a click target. This applies the motion law \"motion\n never blocks input\" (`docs/motion.md`). */\n.toast[data-state='closed'] {\n pointer-events: none;\n}\n\n/* swipe ---------------------------------------------------------------------\n The finger moves the card with `translate`. In React the card is a motion\n surface: the engine animates `translate` for the enter and the exit and\n leaves its last value inline, and an inline value outranks a rule. So the\n two states in which the finger places the card are marked important, which\n outranks an inline value and a running animation. A card under a finger is\n where the finger is. `cancel` is not marked: the card returns to the rest\n value the engine left. */\n\n.toast[data-swipe='move'] {\n translate: var(--radix-toast-swipe-move-x) 0 !important;\n}\n\n.toast[data-swipe='cancel'] {\n translate: 0 0;\n transition: translate var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* The card leaves from where the finger let go, and fades there. */\n.toast[data-swipe='end'] {\n translate: var(--radix-toast-swipe-end-x) 0 !important;\n}\n\n/* Reduced-motion projection (`docs/motion.md`). `move` and `end` follow the\n finger and are not animation: in direct manipulation the reader moves the\n card, not the system. Only `cancel` animates, moving the card back to rest,\n and under reduced motion it returns at once. */\n@media (prefers-reduced-motion: reduce) {\n .toast[data-swipe='cancel'] {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/overlays/tour.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_target_h2ols_12", t = "_scrim_h2ols_19", n = "_spotlight_h2ols_32", r = "_positioner_h2ols_53", i = "_panel_h2ols_69", a = "_title_h2ols_104", o = "_description_h2ols_117", s = "_body_h2ols_121", c = "_position_h2ols_53", l = "_actions_h2ols_145", u = "_close_h2ols_153", d = {
|
|
3
3
|
target: e,
|
|
4
4
|
scrim: t,
|
|
5
5
|
spotlight: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tour.module.js","names":[],"sources":["../../../../recipes/src/overlays/tour.module.css"],"sourcesContent":["/* Tour — `design/components/tour.md`.\n *\n * The motion engine animates the scrim and the panel, as it animates Dialog's\n * scrim and Popover's panel. This file draws their boxes. The member writes the\n * geometry it measures as custom properties on the elements: the panel's corner\n * (`--pm-tour-x`, `--pm-tour-y`) and the target's rectangle\n * (`--pm-tour-hole-*`). The positions are physical, because they are the\n * window's coordinates, which do not turn in a right-to-left page. */\n\n/* The part a step points at adds no box, so the layout around what it wraps\n does not change. The member measures the boxes inside it. */\n.target {\n display: contents;\n}\n\n/* A step with no target, or one whose target is not drawn: Dialog's scrim. It\n takes presses, because the modal substrate turns pointer events off on the\n page, and a press there ends nothing. */\n.scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n pointer-events: auto;\n background: var(--pm-bg-scrim);\n}\n\n/* A step with a target: the scrim with the target cut out of it. The element\n is the cut-out, one space step larger than the target on every side, and its\n shadow is the scrim, spread past the window on every side, as ImageEditor's\n rounded mask is. The cut-out is a difference of lightness with an edge, not a\n colour, so it reads in every system and in forced colours. */\n.spotlight {\n --pm-tour-hole-x: 0px;\n --pm-tour-hole-y: 0px;\n --pm-tour-hole-width: 0px;\n --pm-tour-hole-height: 0px;\n\n position: fixed;\n top: calc(var(--pm-tour-hole-y) - var(--pm-space-2));\n left: calc(var(--pm-tour-hole-x) - var(--pm-space-2));\n z-index: var(--pm-z-overlay);\n width: calc(var(--pm-tour-hole-width) + var(--pm-space-2) * 2);\n height: calc(var(--pm-tour-hole-height) + var(--pm-space-2) * 2);\n pointer-events: none;\n border-radius: var(--pm-radius-control);\n outline: 2px solid var(--pm-border-strong);\n box-shadow: 0 0 0 100vmax var(--pm-bg-scrim);\n}\n\n/* The panel's box with its margin, at the corner the engine computed. It takes\n no presses itself; the panel does. Its width is its content's, not the room\n left of its corner, so the box the engine measures is the box it places. */\n.positioner {\n --pm-tour-x: 0px;\n --pm-tour-y: 0px;\n\n position: fixed;\n top: var(--pm-tour-y);\n left: var(--pm-tour-x);\n z-index: var(--pm-z-overlay);\n inline-size: max-content;\n pointer-events: none;\n}\n\n/* Popover's surface. The margin is the gap between the panel and its target\n and between the panel and the window's edge, so the engine's placement reads\n no length of its own. The width is Popover's, and at phone width the window\n less that margin on each side, so the panel never overflows it. */\n.panel {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n column-gap: var(--pm-space-3);\n align-items: center;\n inline-size: max-content;\n max-inline-size: min(calc(var(--pm-space-10) * 4), calc(100vw - var(--pm-space-3) * 2));\n\n /* `vh` here and `dvh` in the `@supports` block below, as Dialog's panel is,\n because a dedupe minifier deletes a same-property pair. */\n max-block-size: calc(100vh - var(--pm-space-3) * 2);\n margin: var(--pm-space-3);\n padding: var(--pm-inset-pane);\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-3) * 2);\n }\n}\n\n.panel:focus-visible {\n outline: var(--pm-focus-width) solid var(--pm-border-focus);\n outline-offset: var(--pm-focus-offset);\n}\n\n.title {\n grid-column: 1 / -1;\n padding-inline-end: var(--pm-space-8);\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n color: var(--pm-text-primary);\n}\n\n/* The panel's description: the body and the position, read together. It adds\n no box, so both lay out in the panel's grid. */\n.description {\n display: contents;\n}\n\n.body {\n grid-column: 1 / -1;\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 position shares the last row with the actions, at its start. */\n.position {\n grid-column: 1;\n margin-block-start: var(--pm-space-5);\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 font-variant-numeric: tabular-nums;\n color: var(--pm-text-secondary);\n}\n\n.actions {\n display: flex;\n grid-column: 2;\n gap: var(--pm-space-2);\n justify-content: flex-end;\n margin-block-start: var(--pm-space-5);\n}\n\n.close {\n position: absolute;\n inset-block-start: var(--pm-space-3);\n inset-inline-end: var(--pm-space-3);\n}\n\n/* Glass (`depth: glass`): Popover's material, for the same surface. */\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":"tour.module.js","names":[],"sources":["../../../../recipes/src/overlays/tour.module.css"],"sourcesContent":["/* Tour — `design/components/tour.md`.\n *\n * The motion engine animates the scrim and the panel, as it animates Dialog's\n * scrim and Popover's panel. This file draws their boxes. The member writes the\n * geometry it measures as custom properties on the elements: the panel's corner\n * (`--pm-tour-x`, `--pm-tour-y`) and the target's rectangle\n * (`--pm-tour-hole-*`). The positions are physical, because they are the\n * window's coordinates, which do not turn in a right-to-left page. */\n\n/* The part a step points at adds no box, so the layout around what it wraps\n does not change. The member measures the boxes inside it. */\n.target {\n display: contents;\n}\n\n/* A step with no target, or one whose target is not drawn: Dialog's scrim. It\n takes presses, because the modal substrate turns pointer events off on the\n page, and a press there ends nothing. */\n.scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-overlay);\n pointer-events: auto;\n background: var(--pm-bg-scrim);\n}\n\n/* A step with a target: the scrim with the target cut out of it. The element\n is the cut-out, one space step larger than the target on every side, and its\n shadow is the scrim, spread past the window on every side, as ImageEditor's\n rounded mask is. The cut-out is a difference of lightness with an edge, not a\n colour, so it reads in every system and in forced colours. */\n.spotlight {\n --pm-tour-hole-x: 0px;\n --pm-tour-hole-y: 0px;\n --pm-tour-hole-width: 0px;\n --pm-tour-hole-height: 0px;\n\n position: fixed;\n top: calc(var(--pm-tour-hole-y) - var(--pm-space-2));\n left: calc(var(--pm-tour-hole-x) - var(--pm-space-2));\n z-index: var(--pm-z-overlay);\n width: calc(var(--pm-tour-hole-width) + var(--pm-space-2) * 2);\n height: calc(var(--pm-tour-hole-height) + var(--pm-space-2) * 2);\n pointer-events: none;\n border-radius: var(--pm-radius-control);\n outline: 2px solid var(--pm-border-strong);\n box-shadow: 0 0 0 100vmax var(--pm-bg-scrim);\n}\n\n/* The panel's box with its margin, at the corner the engine computed. It takes\n no presses itself; the panel does. Its width is its content's, not the room\n left of its corner, so the box the engine measures is the box it places. */\n.positioner {\n --pm-tour-x: 0px;\n --pm-tour-y: 0px;\n\n position: fixed;\n top: var(--pm-tour-y);\n left: var(--pm-tour-x);\n z-index: var(--pm-z-overlay);\n inline-size: max-content;\n pointer-events: none;\n}\n\n/* Popover's surface. The margin is the gap between the panel and its target\n and between the panel and the window's edge, so the engine's placement reads\n no length of its own. The width is Popover's, and at phone width the window\n less that margin on each side, so the panel never overflows it. */\n.panel {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n column-gap: var(--pm-space-3);\n align-items: center;\n inline-size: max-content;\n max-inline-size: min(calc(var(--pm-space-10) * 4), calc(100vw - var(--pm-space-3) * 2));\n\n /* `vh` here and `dvh` in the `@supports` block below, as Dialog's panel is,\n because a dedupe minifier deletes a same-property pair. */\n max-block-size: calc(100vh - var(--pm-space-3) * 2);\n margin: var(--pm-space-3);\n padding: var(--pm-inset-pane);\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-3) * 2);\n }\n}\n\n/* The panel takes focus when a step opens. The shared convention's mark, restated on the panel:\n the outline in the focus colour at the system's offset, inside the panel's edge by default. */\n.panel:focus-visible {\n outline: var(--pm-focus-width) solid var(--pm-border-focus-solid);\n outline-offset: var(--pm-focus-offset);\n}\n\n.title {\n grid-column: 1 / -1;\n padding-inline-end: var(--pm-space-8);\n font-family: var(--pm-text-md-family);\n font-size: var(--pm-text-md-size);\n font-weight: var(--pm-text-md-weight);\n line-height: var(--pm-text-md-line-height);\n letter-spacing: var(--pm-text-md-tracking);\n color: var(--pm-text-primary);\n}\n\n/* The panel's description: the body and the position, read together. It adds\n no box, so both lay out in the panel's grid. */\n.description {\n display: contents;\n}\n\n.body {\n grid-column: 1 / -1;\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 position shares the last row with the actions, at its start. */\n.position {\n grid-column: 1;\n margin-block-start: var(--pm-space-5);\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 font-variant-numeric: tabular-nums;\n color: var(--pm-text-secondary);\n}\n\n.actions {\n display: flex;\n grid-column: 2;\n gap: var(--pm-space-2);\n justify-content: flex-end;\n margin-block-start: var(--pm-space-5);\n}\n\n.close {\n position: absolute;\n inset-block-start: var(--pm-space-3);\n inset-inline-end: var(--pm-space-3);\n}\n\n/* Glass (`depth: glass`): Popover's material, for the same surface. */\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","names":[],"sources":["../../../src/structure/Accordion.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Disclosure list (`design/components/accordion.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/accordion.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport * as zag from '@zag-js/accordion'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, agentMember, useDirection } from '@polymorph/vue'\nimport { useKeyedPresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/structure/accordion.module.css'\n\nexport type AccordionHeadingLevel = NonNullable<AccordionProps['headingLevel']>\n\nexport interface AccordionItem {\n value: string\n label: string\n content: VNode | string\n disabled?: boolean\n}\n\nexport interface AccordionProps {\n /**\n * The open item may be closed again, leaving the list shut.\n */\n collapsible?: boolean\n defaultValue?: string | string[]\n headingLevel?: 3 | 4\n items: AccordionItem[]\n type?: 'single' | 'multiple'\n value?: string | string[]\n}\n\ndefineOptions({ name: 'Accordion', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AccordionProps>(), {\n collapsible: undefined,\n headingLevel: 3,\n type: 'single',\n})\nconst emit = defineEmits<{ valueChange: [value: string | string[]] }>()\nconst uid = useId()\nconst heights = ref(new Map())\nconst regions = useTemplateRef<HTMLElement[]>('regions')\nconst root = useTemplateRef<HTMLElement>('root')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n multiple: props.type === 'multiple',\n collapsible: props.type === 'multiple' || (props.collapsible ?? true),\n value:\n props.value === undefined\n ? undefined\n : Array.isArray(props.value)\n ? props.value\n : props.value === ''\n ? []\n : [props.value],\n defaultValue:\n props.defaultValue === undefined\n ? undefined\n : Array.isArray(props.defaultValue)\n ? props.defaultValue\n : [props.defaultValue],\n onValueChange: (details) => {\n emit('valueChange', props.type === 'multiple' ? details.value : (details.value[0] ?? ''))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst regionPresent = useKeyedPresence(\n () => api.value.value,\n regions,\n (element) =>\n props.items.find(\n (item) => api.value.getItemContentProps({ value: item.value }).id === element.id,\n )?.value,\n)\nconst effect1 = () => {\n heights.value = new Map(\n (regions.value ?? []).map((region) => [region.id, region.scrollHeight + 'px']),\n )\n}\nonMounted(effect1)\nwatch(() => api.value.value, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Accordion',\n element: () => root.value,\n state: () => ({\n value: api.value.value,\n items: props.items.map((item) => ({\n id: item.value,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n }),\n actions: {\n expand: {\n argument: 'id',\n run: (value) =>\n api.value.value.includes(value) ||\n api.value.setValue(props.type === 'multiple' ? [...api.value.value, value] : [value]),\n },\n collapse: {\n argument: 'id',\n run: (value) =>\n (() => {\n if (!api.value.value.includes(value)) return\n if (props.type !== 'multiple' && !(props.collapsible ?? true)) {\n throw new Error('This accordion keeps one item open; expand another item instead.')\n }\n api.value.setValue(api.value.value.filter((shown) => shown !== value))\n })(),\n },\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"accordion\">\n <template v-for=\"item in items\" :key=\"item.value\">\n <!-- item -->\n <div\n v-bind=\"api.getItemProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.item\"\n >\n <component :is=\"headingLevel === 4 ? 'h4' : 'h3'\" :class=\"styles.header\">\n <!-- trigger -->\n <button\n v-bind=\"api.getItemTriggerProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.trigger\"\n data-accordion-part=\"trigger\"\n >\n <span :class=\"styles.label\">\n {{ item.label }}\n </span>\n <span :class=\"styles.chevron\">\n <Icon name=\"down\" />\n </span>\n </button>\n </component>\n <!-- region -->\n <div\n ref=\"regions\"\n v-bind=\"api.getItemContentProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.content\"\n :style=\"{\n '--radix-accordion-content-height': heights.get(\n api.getItemContentProps({ value: item.value, disabled: item.disabled }).id,\n ),\n }\"\n :hidden=\"!regionPresent.has(item.value)\"\n data-accordion-part=\"region\"\n >\n <div :class=\"styles.inner\">\n <template v-if=\"typeof item.content === 'string'\">{{ item.content }}</template>\n <template v-else>\n <component :is=\"item.content\" />\n </template>\n </div>\n </div>\n </div>\n </template>\n </div>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Accordion.js","names":[],"sources":["../../../src/structure/Accordion.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Disclosure list (`design/components/accordion.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/accordion.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport * as zag from '@zag-js/accordion'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, agentMember, useDirection } from '@polymorph/vue'\nimport { useKeyedPresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/structure/accordion.module.css'\n\nexport type AccordionHeadingLevel = NonNullable<AccordionProps['headingLevel']>\n\nexport interface AccordionItem {\n value: string\n label: string\n content: VNode | string\n disabled?: boolean\n}\n\nexport interface AccordionProps {\n /**\n * The open item may be closed again, leaving the list shut.\n */\n collapsible?: boolean\n defaultValue?: string | string[]\n headingLevel?: 3 | 4\n items: AccordionItem[]\n /**\n * Keeps a closed item's content in the document and `hidden`, so a page's server markup\n * carries it and its state survives a close. Without it the React member leaves closed content\n * out. The generated members keep it in every case.\n */\n keepMounted?: boolean\n type?: 'single' | 'multiple'\n value?: string | string[]\n}\n\ndefineOptions({ name: 'Accordion', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AccordionProps>(), {\n collapsible: undefined,\n headingLevel: 3,\n keepMounted: undefined,\n type: 'single',\n})\nconst emit = defineEmits<{ valueChange: [value: string | string[]] }>()\nconst uid = useId()\nconst heights = ref(new Map())\nconst regions = useTemplateRef<HTMLElement[]>('regions')\nconst root = useTemplateRef<HTMLElement>('root')\nconst documentDirection = useDirection(() => root.value)\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n multiple: props.type === 'multiple',\n collapsible: props.type === 'multiple' || (props.collapsible ?? true),\n value:\n props.value === undefined\n ? undefined\n : Array.isArray(props.value)\n ? props.value\n : props.value === ''\n ? []\n : [props.value],\n defaultValue:\n props.defaultValue === undefined\n ? undefined\n : Array.isArray(props.defaultValue)\n ? props.defaultValue\n : [props.defaultValue],\n onValueChange: (details) => {\n emit('valueChange', props.type === 'multiple' ? details.value : (details.value[0] ?? ''))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst regionPresent = useKeyedPresence(\n () => api.value.value,\n regions,\n (element) =>\n props.items.find(\n (item) => api.value.getItemContentProps({ value: item.value }).id === element.id,\n )?.value,\n)\nconst effect1 = () => {\n heights.value = new Map(\n (regions.value ?? []).map((region) => [region.id, region.scrollHeight + 'px']),\n )\n}\nonMounted(effect1)\nwatch(() => api.value.value, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Accordion',\n element: () => root.value,\n state: () => ({\n value: api.value.value,\n items: props.items.map((item) => ({\n id: item.value,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n }),\n actions: {\n expand: {\n argument: 'id',\n run: (value) =>\n api.value.value.includes(value) ||\n api.value.setValue(props.type === 'multiple' ? [...api.value.value, value] : [value]),\n },\n collapse: {\n argument: 'id',\n run: (value) =>\n (() => {\n if (!api.value.value.includes(value)) return\n if (props.type !== 'multiple' && !(props.collapsible ?? true)) {\n throw new Error('This accordion keeps one item open; expand another item instead.')\n }\n api.value.setValue(api.value.value.filter((shown) => shown !== value))\n })(),\n },\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"accordion\">\n <template v-for=\"item in items\" :key=\"item.value\">\n <!-- item -->\n <div\n v-bind=\"api.getItemProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.item\"\n >\n <component :is=\"headingLevel === 4 ? 'h4' : 'h3'\" :class=\"styles.header\">\n <!-- trigger -->\n <button\n v-bind=\"api.getItemTriggerProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.trigger\"\n data-accordion-part=\"trigger\"\n >\n <span :class=\"styles.label\">\n {{ item.label }}\n </span>\n <span :class=\"styles.chevron\">\n <Icon name=\"down\" />\n </span>\n </button>\n </component>\n <!-- region -->\n <div\n ref=\"regions\"\n v-bind=\"api.getItemContentProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.content\"\n :style=\"{\n '--radix-accordion-content-height': heights.get(\n api.getItemContentProps({ value: item.value, disabled: item.disabled }).id,\n ),\n }\"\n :hidden=\"!regionPresent.has(item.value)\"\n data-accordion-part=\"region\"\n >\n <div :class=\"styles.inner\">\n <template v-if=\"typeof item.content === 'string'\">{{ item.content }}</template>\n <template v-else>\n <component :is=\"item.content\" />\n </template>\n </div>\n </div>\n </div>\n </template>\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -17,12 +17,16 @@ var A = ["hidden"], j = /*@__PURE__*/ d({
|
|
|
17
17
|
defaultValue: {},
|
|
18
18
|
headingLevel: { default: 3 },
|
|
19
19
|
items: {},
|
|
20
|
+
keepMounted: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
20
24
|
type: { default: "single" },
|
|
21
25
|
value: {}
|
|
22
26
|
},
|
|
23
27
|
emits: ["valueChange"],
|
|
24
28
|
setup(d, { emit: j }) {
|
|
25
|
-
let M = d, N = j, P = S(), F = _(/* @__PURE__ */ new Map()), I = C("regions"), L = C("root"), R = r(), z = O(E.machine, a(() => ({
|
|
29
|
+
let M = d, N = j, P = S(), F = _(/* @__PURE__ */ new Map()), I = C("regions"), L = C("root"), R = r(() => L.value), z = O(E.machine, a(() => ({
|
|
26
30
|
id: P,
|
|
27
31
|
dir: R.value,
|
|
28
32
|
multiple: M.type === "multiple",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/Accordion.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Disclosure list (`design/components/accordion.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/accordion.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport * as zag from '@zag-js/accordion'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, agentMember, useDirection } from '@polymorph/vue'\nimport { useKeyedPresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/structure/accordion.module.css'\n\nexport type AccordionHeadingLevel = NonNullable<AccordionProps['headingLevel']>\n\nexport interface AccordionItem {\n value: string\n label: string\n content: VNode | string\n disabled?: boolean\n}\n\nexport interface AccordionProps {\n /**\n * The open item may be closed again, leaving the list shut.\n */\n collapsible?: boolean\n defaultValue?: string | string[]\n headingLevel?: 3 | 4\n items: AccordionItem[]\n type?: 'single' | 'multiple'\n value?: string | string[]\n}\n\ndefineOptions({ name: 'Accordion', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AccordionProps>(), {\n collapsible: undefined,\n headingLevel: 3,\n type: 'single',\n})\nconst emit = defineEmits<{ valueChange: [value: string | string[]] }>()\nconst uid = useId()\nconst heights = ref(new Map())\nconst regions = useTemplateRef<HTMLElement[]>('regions')\nconst root = useTemplateRef<HTMLElement>('root')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n multiple: props.type === 'multiple',\n collapsible: props.type === 'multiple' || (props.collapsible ?? true),\n value:\n props.value === undefined\n ? undefined\n : Array.isArray(props.value)\n ? props.value\n : props.value === ''\n ? []\n : [props.value],\n defaultValue:\n props.defaultValue === undefined\n ? undefined\n : Array.isArray(props.defaultValue)\n ? props.defaultValue\n : [props.defaultValue],\n onValueChange: (details) => {\n emit('valueChange', props.type === 'multiple' ? details.value : (details.value[0] ?? ''))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst regionPresent = useKeyedPresence(\n () => api.value.value,\n regions,\n (element) =>\n props.items.find(\n (item) => api.value.getItemContentProps({ value: item.value }).id === element.id,\n )?.value,\n)\nconst effect1 = () => {\n heights.value = new Map(\n (regions.value ?? []).map((region) => [region.id, region.scrollHeight + 'px']),\n )\n}\nonMounted(effect1)\nwatch(() => api.value.value, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Accordion',\n element: () => root.value,\n state: () => ({\n value: api.value.value,\n items: props.items.map((item) => ({\n id: item.value,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n }),\n actions: {\n expand: {\n argument: 'id',\n run: (value) =>\n api.value.value.includes(value) ||\n api.value.setValue(props.type === 'multiple' ? [...api.value.value, value] : [value]),\n },\n collapse: {\n argument: 'id',\n run: (value) =>\n (() => {\n if (!api.value.value.includes(value)) return\n if (props.type !== 'multiple' && !(props.collapsible ?? true)) {\n throw new Error('This accordion keeps one item open; expand another item instead.')\n }\n api.value.setValue(api.value.value.filter((shown) => shown !== value))\n })(),\n },\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"accordion\">\n <template v-for=\"item in items\" :key=\"item.value\">\n <!-- item -->\n <div\n v-bind=\"api.getItemProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.item\"\n >\n <component :is=\"headingLevel === 4 ? 'h4' : 'h3'\" :class=\"styles.header\">\n <!-- trigger -->\n <button\n v-bind=\"api.getItemTriggerProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.trigger\"\n data-accordion-part=\"trigger\"\n >\n <span :class=\"styles.label\">\n {{ item.label }}\n </span>\n <span :class=\"styles.chevron\">\n <Icon name=\"down\" />\n </span>\n </button>\n </component>\n <!-- region -->\n <div\n ref=\"regions\"\n v-bind=\"api.getItemContentProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.content\"\n :style=\"{\n '--radix-accordion-content-height': heights.get(\n api.getItemContentProps({ value: item.value, disabled: item.disabled }).id,\n ),\n }\"\n :hidden=\"!regionPresent.has(item.value)\"\n data-accordion-part=\"region\"\n >\n <div :class=\"styles.inner\">\n <template v-if=\"typeof item.content === 'string'\">{{ item.content }}</template>\n <template v-else>\n <component :is=\"item.content\" />\n </template>\n </div>\n </div>\n </div>\n </template>\n </div>\n</template>\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Accordion.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/Accordion.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Disclosure list (`design/components/accordion.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/accordion.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport * as zag from '@zag-js/accordion'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { Icon, agentMember, useDirection } from '@polymorph/vue'\nimport { useKeyedPresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/structure/accordion.module.css'\n\nexport type AccordionHeadingLevel = NonNullable<AccordionProps['headingLevel']>\n\nexport interface AccordionItem {\n value: string\n label: string\n content: VNode | string\n disabled?: boolean\n}\n\nexport interface AccordionProps {\n /**\n * The open item may be closed again, leaving the list shut.\n */\n collapsible?: boolean\n defaultValue?: string | string[]\n headingLevel?: 3 | 4\n items: AccordionItem[]\n /**\n * Keeps a closed item's content in the document and `hidden`, so a page's server markup\n * carries it and its state survives a close. Without it the React member leaves closed content\n * out. The generated members keep it in every case.\n */\n keepMounted?: boolean\n type?: 'single' | 'multiple'\n value?: string | string[]\n}\n\ndefineOptions({ name: 'Accordion', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AccordionProps>(), {\n collapsible: undefined,\n headingLevel: 3,\n keepMounted: undefined,\n type: 'single',\n})\nconst emit = defineEmits<{ valueChange: [value: string | string[]] }>()\nconst uid = useId()\nconst heights = ref(new Map())\nconst regions = useTemplateRef<HTMLElement[]>('regions')\nconst root = useTemplateRef<HTMLElement>('root')\nconst documentDirection = useDirection(() => root.value)\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n multiple: props.type === 'multiple',\n collapsible: props.type === 'multiple' || (props.collapsible ?? true),\n value:\n props.value === undefined\n ? undefined\n : Array.isArray(props.value)\n ? props.value\n : props.value === ''\n ? []\n : [props.value],\n defaultValue:\n props.defaultValue === undefined\n ? undefined\n : Array.isArray(props.defaultValue)\n ? props.defaultValue\n : [props.defaultValue],\n onValueChange: (details) => {\n emit('valueChange', props.type === 'multiple' ? details.value : (details.value[0] ?? ''))\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst regionPresent = useKeyedPresence(\n () => api.value.value,\n regions,\n (element) =>\n props.items.find(\n (item) => api.value.getItemContentProps({ value: item.value }).id === element.id,\n )?.value,\n)\nconst effect1 = () => {\n heights.value = new Map(\n (regions.value ?? []).map((region) => [region.id, region.scrollHeight + 'px']),\n )\n}\nonMounted(effect1)\nwatch(() => api.value.value, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Accordion',\n element: () => root.value,\n state: () => ({\n value: api.value.value,\n items: props.items.map((item) => ({\n id: item.value,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n }),\n actions: {\n expand: {\n argument: 'id',\n run: (value) =>\n api.value.value.includes(value) ||\n api.value.setValue(props.type === 'multiple' ? [...api.value.value, value] : [value]),\n },\n collapse: {\n argument: 'id',\n run: (value) =>\n (() => {\n if (!api.value.value.includes(value)) return\n if (props.type !== 'multiple' && !(props.collapsible ?? true)) {\n throw new Error('This accordion keeps one item open; expand another item instead.')\n }\n api.value.setValue(api.value.value.filter((shown) => shown !== value))\n })(),\n },\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"accordion\">\n <template v-for=\"item in items\" :key=\"item.value\">\n <!-- item -->\n <div\n v-bind=\"api.getItemProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.item\"\n >\n <component :is=\"headingLevel === 4 ? 'h4' : 'h3'\" :class=\"styles.header\">\n <!-- trigger -->\n <button\n v-bind=\"api.getItemTriggerProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.trigger\"\n data-accordion-part=\"trigger\"\n >\n <span :class=\"styles.label\">\n {{ item.label }}\n </span>\n <span :class=\"styles.chevron\">\n <Icon name=\"down\" />\n </span>\n </button>\n </component>\n <!-- region -->\n <div\n ref=\"regions\"\n v-bind=\"api.getItemContentProps({ value: item.value, disabled: item.disabled })\"\n :class=\"styles.content\"\n :style=\"{\n '--radix-accordion-content-height': heights.get(\n api.getItemContentProps({ value: item.value, disabled: item.disabled }).id,\n ),\n }\"\n :hidden=\"!regionPresent.has(item.value)\"\n data-accordion-part=\"region\"\n >\n <div :class=\"styles.inner\">\n <template v-if=\"typeof item.content === 'string'\">{{ item.content }}</template>\n <template v-else>\n <component :is=\"item.content\" />\n </template>\n </div>\n </div>\n </div>\n </template>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDA,IAAM,IAAQ,GAMR,IAAO,GACP,IAAM,EAAM,GACZ,IAAU,kBAAI,IAAI,IAAI,CAAC,GACvB,IAAU,EAA8B,SAAS,GACjD,IAAO,EAA4B,MAAM,GACzC,IAAoB,QAAmB,EAAK,KAAK,GACjD,IAAU,EACd,EAAI,SACJ,SAAgB;GACd,IAAI;GACJ,KAAK,EAAkB;GACvB,UAAU,EAAM,SAAS;GACzB,aAAa,EAAM,SAAS,eAAe,EAAM,eAAe;GAChE,OACE,EAAM,UAAU,KAAA,IACZ,KAAA,IACA,MAAM,QAAQ,EAAM,KAAK,IACvB,EAAM,QACN,EAAM,UAAU,KACd,CAAC,IACD,CAAC,EAAM,KAAK;GACtB,cACE,EAAM,iBAAiB,KAAA,IACnB,KAAA,IACA,MAAM,QAAQ,EAAM,YAAY,IAC9B,EAAM,eACN,CAAC,EAAM,YAAY;GAC3B,gBAAgB,MAAY;IAC1B,EAAK,eAAe,EAAM,SAAS,aAAa,EAAQ,QAAS,EAAQ,MAAM,MAAM,EAAG;GAC1F;EACF,EAAE,CACJ,GACM,IAAM,QAAe,EAAI,QAAQ,GAAS,CAAc,CAAC,GACzD,IAAgB,QACd,EAAI,MAAM,OAChB,IACC,MACC,EAAM,MAAM,MACT,MAAS,EAAI,MAAM,oBAAoB,EAAE,OAAO,EAAK,MAAM,CAAC,CAAC,CAAC,OAAO,EAAQ,EAChF,CAAC,EAAE,KACP,GACM,UAAgB;GACpB,EAAQ,QAAQ,IAAI,KACjB,EAAQ,SAAS,CAAC,EAAA,CAAG,KAAK,MAAW,CAAC,EAAO,IAAI,EAAO,eAAe,IAAI,CAAC,CAC/E;EACF;EAEA,AADA,EAAU,CAAO,GACjB,QAAY,EAAI,MAAM,OAAO,GAAS,EAAE,OAAO,OAAO,CAAC;EACvD,IAAI;SAsCJ,QArCsB;GACpB,IAAW;GACX,IAAM,IAAM,EAAY;IACtB,QAAQ;IACR,eAAe,EAAK;IACpB,cAAc;KACZ,OAAO,EAAI,MAAM;KACjB,OAAO,EAAM,MAAM,KAAK,OAAU;MAChC,IAAI,EAAK;MACT,OAAO,EAAK;MACZ,GAAI,EAAK,aAAa,KAAO,EAAE,UAAU,GAAK,IAAI,CAAC;KACrD,EAAE;IACJ;IACA,SAAS;KACP,QAAQ;MACN,UAAU;MACV,MAAM,MACJ,EAAI,MAAM,MAAM,SAAS,CAAK,KAC9B,EAAI,MAAM,SAAS,EAAM,SAAS,aAAa,CAAC,GAAG,EAAI,MAAM,OAAO,CAAK,IAAI,CAAC,CAAK,CAAC;KACxF;KACA,UAAU;MACR,UAAU;MACV,MAAM,aACG;OACA,MAAI,MAAM,MAAM,SAAS,CAAK,GACnC;YAAI,EAAM,SAAS,cAAc,EAAE,EAAM,eAAe,KACtD,MAAU,MAAM,kEAAkE;QAEpF,EAAI,MAAM,SAAS,EAAI,MAAM,MAAM,QAAQ,MAAU,MAAU,CAAK,CAAC;OAFe;MAGtF,EAAA,CAAG;KACP;IACF;GACF,CAAC;GACD,UAAiB;IACf,EAAI;GACN;EACF,CACiB,GACjB,QAAsB,IAAW,CAAC,mBAIhC,EA4CM,OA5CN,EA4CM;YA5CG;GAAJ,KAAI;KAAe,EAAA,MAAI,aAAY,GAAA;GAAK,OAAO,EAAA,CAAA,CAAM,CAAC;GAAM,eAAY;eAC3E,EA0CW,GAAA,MAAA,EA1Cc,EAAA,QAAR,YAEf,EAuCM,OAvCN,EAuCM;QAzC8B,EAAK;;KAG/B,EAAA,MAAI,aAAY;GAAA,OAAU,EAAK;GAAK,UAAY,EAAK;EAAQ,CAAA,GAAA,EACpE,OAAO,EAAA,CAAA,CAAM,CAAC,KAAA,CAAA,GAAA,EAAA,EAAA,GAEf,EAcY,EAdI,EAAA,iBAAY,IAAA,OAAA,IAAA,GAAA,EAAuB,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,MAAM,EAAA,GAAA;oBAa5D,CAXT,EAWS,UAXT,EAWS,EAAA,SAAA,GAAA,GAVC,EAAA,MAAI,oBAAmB;IAAA,OAAU,EAAK;IAAK,UAAY,EAAK;GAAQ,CAAA,GAAA;IAC3E,OAAO,EAAA,CAAA,CAAM,CAAC;IACf,uBAAoB;QAEpB,EAEO,QAAA,EAFA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,KAAK,EAAA,GAAA,EACrB,EAAK,KAAK,GAAA,CAAA,GAEf,EAEO,QAAA,EAFA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO,EAAA,GAAA,CAC1B,EAAoB,EAAA,CAAA,GAAA,EAAd,MAAK,OAAM,CAAA,CAAA,GAAA,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA;;wBAKvB,EAkBM,OAlBN,EAkBM;;YAjBA;GAAJ,KAAI;sBACI,EAAA,MAAI,oBAAmB;GAAA,OAAU,EAAK;GAAK,UAAY,EAAK;EAAQ,CAAA,GAAA;GAC3E,OAAO,EAAA,CAAA,CAAM,CAAC;GACd,OAAK,EAAA,oCAAoD,EAAA,MAAQ,IAAmB,EAAA,MAAI,oBAAmB;IAAA,OAAU,EAAK;IAAK,UAAY,EAAK;GAAQ,CAAA,CAAA,CAAI,EAAA,EAAA;GAK5J,QAAM,CAAG,EAAA,CAAA,CAAa,CAAC,IAAI,EAAK,KAAK;GACtC,uBAAoB;OAEpB,EAKM,OAAA,EALA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,KAAK,EAAA,GAAA,CAAA,OACA,EAAK,WAAO,YAAA,EAAA,GAAnC,EAA+E,GAAA,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,EAA1B,EAAK,OAAO,GAAA,CAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GAE/D,EAAgC,EAAhB,EAAK,OAAO,GAAA,EAAA,KAAA,EAAA,CAAA,EAAA,GAAA,CAAA,CAAA,GAAA,IAAA,CAAA,CAAA,GAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","names":[],"sources":["../../../src/structure/Alert.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Inline status callout (`design/components/alert.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/alert.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { onBeforeUnmount, onMounted, ref, useTemplateRef } from 'vue'\n\nimport { Icon, agentMember, useDeparture, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/alert.module.css'\nimport Button from '../controls/Button.vue'\n\nexport type AlertTone = NonNullable<AlertProps['tone']>\n\nexport interface AlertProps {\n /**\n * The ✕'s accessible name, default `Dismiss`; localized hosts pass their own.\n */\n dismissLabel?: string\n /**\n * `false` hides the tone glyph, for dense stacks where the wash already shows the tone.\n */\n icon?: false\n /**\n * The first line. An empty title counts as no title.\n */\n title?: string\n tone?: 'info' | 'warning' | 'success' | 'danger'\n}\n\ndefineOptions({ name: 'Alert', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AlertProps>(), {\n dismissLabel: 'Dismiss',\n icon: undefined,\n tone: 'info',\n})\nconst emit = defineEmits<{ dismiss: [] }>()\ndefineSlots<{\n action?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n secondaryAction?: (props: Record<string, never>) => unknown\n}>()\nconst listening = useListening()\nconst settle = ref(undefined as (() => void) | undefined)\nconst closeRegion = useTemplateRef<HTMLElement>('closeRegion')\nconst root = useTemplateRef<HTMLElement>('root')\nconst departure = useDeparture(root, 'alert.dismiss')\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n undefined\n release1 = () => {\n settle.value?.()\n }\n}\nonMounted(effect1)\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Alert',\n element: () => root.value,\n state: () => ({ tone: props.tone, title: props.title ?? '', dismissible: listening.dismiss }),\n actions: {\n dismiss: () =>\n (() => {\n if (!listening.dismiss) throw new Error('This alert has no dismiss control.')\n return new Promise<void>((resolve) => {\n settle.value = () => {\n settle.value = undefined\n resolve()\n }\n departure.start(() => {\n emit('dismiss')\n settle.value?.()\n })\n })\n })(),\n },\n withholds: () => closeRegion.value,\n })\n
|
|
1
|
+
{"version":3,"file":"Alert.js","names":[],"sources":["../../../src/structure/Alert.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Inline status callout (`design/components/alert.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/alert.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from 'vue'\n\nimport { Icon, agentMember, focusAfterRemoval, useDeparture, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/alert.module.css'\nimport Button from '../controls/Button.vue'\n\nexport type AlertTone = NonNullable<AlertProps['tone']>\n\nexport interface AlertProps {\n /**\n * The ✕'s accessible name, default `Dismiss`; localized hosts pass their own.\n */\n dismissLabel?: string\n /**\n * `false` hides the tone glyph, for dense stacks where the wash already shows the tone.\n */\n icon?: false\n /**\n * The first line. An empty title counts as no title.\n */\n title?: string\n tone?: 'info' | 'warning' | 'success' | 'danger'\n}\n\ndefineOptions({ name: 'Alert', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AlertProps>(), {\n dismissLabel: 'Dismiss',\n icon: undefined,\n tone: 'info',\n})\nconst emit = defineEmits<{ dismiss: [] }>()\ndefineSlots<{\n action?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n secondaryAction?: (props: Record<string, never>) => unknown\n}>()\nconst listening = useListening()\nconst settle = ref(undefined as (() => void) | undefined)\nconst closeRegion = useTemplateRef<HTMLElement>('closeRegion')\nconst root = useTemplateRef<HTMLElement>('root')\nconst departure = useDeparture(root, 'alert.dismiss')\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n undefined\n release1 = () => {\n settle.value?.()\n }\n}\nonMounted(effect1)\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = focusAfterRemoval(root.value)\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nwatch(() => root.value, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = agentMember({\n member: 'Alert',\n element: () => root.value,\n state: () => ({ tone: props.tone, title: props.title ?? '', dismissible: listening.dismiss }),\n actions: {\n dismiss: () =>\n (() => {\n if (!listening.dismiss) throw new Error('This alert has no dismiss control.')\n return new Promise<void>((resolve) => {\n settle.value = () => {\n settle.value = undefined\n resolve()\n }\n departure.start(() => {\n emit('dismiss')\n settle.value?.()\n })\n })\n })(),\n },\n withholds: () => closeRegion.value,\n })\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nonBeforeUnmount(() => release3?.())\n</script>\n\n<template>\n <div\n v-if=\"(title !== undefined && title !== '') || $slots.default\"\n ref=\"root\"\n :class=\"styles.alert\"\n :role=\"tone === 'warning' || tone === 'danger' ? 'alert' : 'status'\"\n :data-tone=\"tone\"\n :data-state=\"departure.active ? 'closed' : undefined\"\n data-member=\"alert\"\n >\n <!-- panel -->\n <div :class=\"styles.panel\">\n <!-- glyph -->\n <span v-if=\"icon !== false\" :class=\"styles.glyph\">\n <Icon :name=\"tone === 'danger' ? 'error' : tone\" />\n </span>\n <!-- body -->\n <div :class=\"styles.body\">\n <!-- title -->\n <p v-if=\"title !== undefined && title !== ''\" :class=\"styles.title\">\n {{ title }}\n </p>\n <!-- text -->\n <div v-if=\"$slots.default\" :class=\"styles.text\">\n <slot />\n </div>\n <!-- actions -->\n <div v-if=\"$slots.action || $slots.secondaryAction\" :class=\"styles.action\">\n <slot name=\"action\" />\n <slot name=\"secondaryAction\" />\n </div>\n </div>\n <!-- close -->\n <div v-if=\"listening.dismiss\" ref=\"closeRegion\" :class=\"styles.close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"dismissLabel\"\n @click=\"\n departure.start(() => {\n emit('dismiss')\n settle?.()\n })\n \"\n />\n </div>\n </div>\n </div>\n</template>\n"],"mappings":""}
|